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);
|
controllerPort2.device->latch(data & 1);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//todo: it is not known what happens when writing to this register during auto-joypad polling
|
|
||||||
case 0x4200: //NMITIMEN
|
case 0x4200: //NMITIMEN
|
||||||
io.autoJoypadPoll = data & 1;
|
io.autoJoypadPoll = data & 1;
|
||||||
|
if(!io.autoJoypadPoll) status.autoJoypadCounter = 33; // Disable auto-joypad read
|
||||||
nmitimenUpdate(data);
|
nmitimenUpdate(data);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue