sfc: You can turn off auto-joypad-polling while it's in progress.

Discovered by Jonas Quinn, and originally implemented for higan in commit
e422ddc.
This commit is contained in:
Tim Allen 2021-04-04 21:53:33 +10:00 committed by Screwtapello
parent 34af95da9e
commit 4ea984b688
1 changed files with 1 additions and 1 deletions

View File

@ -134,9 +134,9 @@ auto CPU::writeCPU(uint addr, uint8 data) -> void {
controllerPort2.device->latch(data & 1);
return;
//todo: it is not known what happens when writing to this register during auto-joypad polling
case 0x4200: //NMITIMEN
io.autoJoypadPoll = data & 1;
if(!io.autoJoypadPoll) status.autoJoypadCounter = 33; // Disable auto-joypad read
nmitimenUpdate(data);
return;