mirror of https://github.com/mgba-emu/mgba.git
GB: Properly clear KEY1 bit 0 when switching speeds
This commit is contained in:
parent
06ee3340f9
commit
3a0b8af70a
1
CHANGES
1
CHANGES
|
@ -21,6 +21,7 @@ Bugfixes:
|
|||
- GBA Hardware: Improve Game Boy Player rumble behavior
|
||||
- GB: Initialize audio properly
|
||||
- GB MBC: Fix RTC access when no save file is loaded
|
||||
- GB: Properly clear KEY1 bit 0 when switching speeds
|
||||
Misc:
|
||||
- All: Only update version info if needed
|
||||
- FFmpeg: Encoding cleanup
|
||||
|
|
|
@ -572,7 +572,7 @@ void GBStop(struct LR35902Core* cpu) {
|
|||
}
|
||||
if (gb->memory.io[REG_KEY1] & 1) {
|
||||
gb->doubleSpeed ^= 1;
|
||||
gb->memory.io[REG_KEY1] &= 1;
|
||||
gb->memory.io[REG_KEY1] = 0;
|
||||
gb->memory.io[REG_KEY1] |= gb->doubleSpeed << 7;
|
||||
} else if (cpu->bus) {
|
||||
if (cpu->components && cpu->components[CPU_COMPONENT_DEBUGGER]) {
|
||||
|
|
Loading…
Reference in New Issue