diff options
author | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-05-06 12:11:22 -0400 |
---|---|---|
committer | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-05-06 12:11:22 -0400 |
commit | d490de4d3afd3d9df415d2efe88d5b380e7eb5b3 (patch) | |
tree | 5e847ad581992fa3c819379b24ba5a1924b572e2 | |
parent | b97d571e8e3de28f705b709d1446e0748678eb8c (diff) |
Remove use of ldh.
RGBFix treats ld a,[$ffxx] as two bytes.
-rwxr-xr-x | scripts/route2gate.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/route2gate.asm b/scripts/route2gate.asm index 8ee087c8..97067e70 100755 --- a/scripts/route2gate.asm +++ b/scripts/route2gate.asm @@ -11,9 +11,9 @@ Route2GateText1: ; 5d5db (17:55db) bit 0, a jr nz, .asm_6592c ; 0x5d5e1 ld a, 10 ; pokemon needed - ldh [$db], a + ld [$ffdb], a ld a, HM_05 ; oak's aide reward - ldh [$dc], a + ld [$ffdc], a ld [wd11e], a call GetItemName ; $2fcf ld hl, wcd6d @@ -21,7 +21,7 @@ Route2GateText1: ; 5d5db (17:55db) ld bc, $000d call CopyData predef OaksAideScript ; call oak's aide script - ldh a, [$db] + ld a, [$ffdb] cp $1 jr nz, .asm_ad646 ; 0x5d606 ld hl, wd7c2 |