mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-21 03:41:51 +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);
|
||||
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;
|
||||
|
||||
|
Reference in New Issue
Block a user