Skip to content

Commit

Permalink
sfc: Report auto joypad polling in the HVBJOY register [asuramaru]
Browse files Browse the repository at this point in the history
  • Loading branch information
fuel-pcbox authored and Screwtapello committed Mar 23, 2021
1 parent 52af4eb commit 44cbb88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion higan/sfc/cpu/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ auto CPU::readCPU(uint24 address, uint8 data) -> uint8 {
return data;

case 0x4212: //HVBJOY
data.bit(0) = status.autoJoypadActive;
data.bit(0) = io.autoJoypadPoll && status.autoJoypadCounter < 33;
data.bit(6) = hcounter() <= 2 || hcounter() >= 1096; //Hblank
data.bit(7) = vcounter() >= ppu.vdisp(); //Vblank
return data;
Expand Down

0 comments on commit 44cbb88

Please sign in to comment.