From e239aa4aba89156ac52b2af26d1bbf084ee88e75 Mon Sep 17 00:00:00 2001 From: Rangi Date: Mon, 13 Jul 2020 13:05:05 -0400 Subject: Disassemble the final English debug ROM --- engine/overworld/time.asm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'engine/overworld') diff --git a/engine/overworld/time.asm b/engine/overworld/time.asm index da6d6745a..86807119d 100644 --- a/engine/overworld/time.asm +++ b/engine/overworld/time.asm @@ -25,6 +25,20 @@ NextCallReceiveDelay: ld hl, .ReceiveCallDelays add hl, de ld a, [hl] +if DEF(_DEBUG) + ld h, a + ld a, BANK(sDebugTimeCyclesSinceLastCall) + call OpenSRAM + ld a, [sDebugTimeCyclesSinceLastCall] + call CloseSRAM + dec a + cp 2 + jr nc, .debug_ok + xor 1 + ld h, a +.debug_ok + ld a, h +endc jp RestartReceiveCallDelay .ReceiveCallDelays: -- cgit v1.2.3