mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-21 20:35:48 +02:00
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:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user