Added workaround to reduce auto-joypad polling delays

(until we can emulate the behavior more faithfully)
This commit is contained in:
byuu 2019-12-28 13:53:06 +09:00
parent 2551f20f3a
commit cc4ab9bc25
1 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,11 @@ auto CPU::dmaCounter() const -> uint {
//joypad auto-poll clock divider
auto CPU::joypadCounter() const -> uint {
return counter.cpu & 255;
//todo: this should be &255, but it causes too many issues in games, due to incomplete emulation:
//Nuke (PD): inputs do not work (unless clearing $421x to $00)
//Taikyoku Igo - Goliath: start button not acknowledged (unless clearing $421x to $ff)
//Tatakae Genshijin 2: attract sequence ends early
return counter.cpu & 31;
}
auto CPU::stepOnce() -> void {