shithub: pokecrystal

Download patch

ref: 0aadbec02a3a26fbad302cc56b841f3bd987370c
parent: c01409be5a9930d6f0687ce53c1c898e1855c884
author: Andrew Cook <ariscop@gmail.com>
date: Tue Feb 21 08:33:43 EST 2023

Label indirect access to rIE in lib/mobile

--- a/lib/mobile/main.asm
+++ b/lib/mobile/main.asm
@@ -3431,9 +3431,9 @@
 Function111686:
 	xor a
 	ldh [rTAC], a
-	ld c, $ff
+	ld c, LOW(rIE)
 	ldh a, [c]
-	and $f3
+	and ~(1 << SERIAL | 1 << TIMER)
 	ldh [c], a
 	ld a, [wMobileSDK_PacketBuffer + 1]
 	ld [wc86a], a