all repos — mgba @ 1a6b47a29fd13716f71385abc87d00a052b46ea1

mGBA Game Boy Advance Emulator

GBA Hardware: More RTC fixes
Vicki Pfau vi@endrift.com
Sun, 04 Feb 2018 13:54:49 -0800
commit

1a6b47a29fd13716f71385abc87d00a052b46ea1

parent

2c870cacf4e820a9a3afb7c36d0bcc2450360e07

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/gba/hardware.csrc/gba/hardware.c

@@ -172,6 +172,8 @@ break;

case 1: if ((hw->pinState & 5) == 5) { hw->rtc.transferStep = 2; + } else { + hw->rtc.transferStep = 0; } _outputPins(hw, 5); break;

@@ -203,7 +205,7 @@ hw->rtc.bitsRead = 0;

hw->rtc.bytesRemaining = 0; hw->rtc.commandActive = 0; hw->rtc.command = 0; - hw->rtc.transferStep = 0; + hw->rtc.transferStep = hw->pinState & 1; _outputPins(hw, 1); } }