MSM6295: add more rates

This commit is contained in:
tildearrow 2022-05-29 13:29:18 -05:00
parent 5f4db8ca0b
commit 1cb07eb1a2
2 changed files with 54 additions and 0 deletions

View File

@ -352,6 +352,33 @@ void DivPlatformMSM6295::setFlags(unsigned int flags) {
case 3:
chipClock=4224000;
break;
case 4:
chipClock=COLOR_NTSC;
break;
case 5:
chipClock=COLOR_NTSC/2.0;
break;
case 6:
chipClock=COLOR_NTSC*2.0/7.0;
break;
case 7:
chipClock=COLOR_NTSC/4.0;
break;
case 8:
chipClock=4000000/2;
break;
case 9:
chipClock=4224000/2;
break;
case 10:
chipClock=875000;
break;
case 11:
chipClock=937500;
break;
case 12:
chipClock=1500000;
break;
}
rate=chipClock/3;
for (int i=0; i<4; i++) {

View File

@ -427,6 +427,33 @@ void FurnaceGUI::drawSysConf(int chan, DivSystem type, unsigned int& flags, bool
if (ImGui::RadioButton("4.224MHz",flags==3)) {
copyOfFlags=3;
}
if (ImGui::RadioButton("3.58MHz",flags==4)) {
copyOfFlags=4;
}
if (ImGui::RadioButton("1.79MHz",flags==5)) {
copyOfFlags=5;
}
if (ImGui::RadioButton("1.02MHz",flags==6)) {
copyOfFlags=6;
}
if (ImGui::RadioButton("0.89MHz",flags==7)) {
copyOfFlags=7;
}
if (ImGui::RadioButton("2MHz",flags==8)) {
copyOfFlags=8;
}
if (ImGui::RadioButton("2.112MHz",flags==9)) {
copyOfFlags=9;
}
if (ImGui::RadioButton("0.875MHz",flags==10)) {
copyOfFlags=10;
}
if (ImGui::RadioButton("0.9375MHz",flags==11)) {
copyOfFlags=11;
}
if (ImGui::RadioButton("1.5MHz",flags==12)) {
copyOfFlags=12;
}
break;
}
case DIV_SYSTEM_GB: