mirror of https://github.com/bsnes-emu/bsnes.git
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:
parent
34af95da9e
commit
4ea984b688
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue