Replace pointless $FF00+$xx with $ffxx.

This commit is contained in:
yenatch 2014-12-28 18:44:23 -08:00
parent 0c55e33b5f
commit 346844a613
5 changed files with 210 additions and 209 deletions

View File

@ -1696,9 +1696,9 @@ Functioncd677: ; cd677 (33:5677)
ld a, $42 ld a, $42
ld [hLCDStatCustom], a ; $ff00+$c6 ld [hLCDStatCustom], a ; $ff00+$c6
ld a, $58 ld a, $58
ld [$FF00+$c7], a ld [$ffc7], a
ld a, $5e ld a, $5e
ld [$FF00+$c8], a ld [$ffc8], a
ret ret
Functioncd687: ; cd687 (33:5687) Functioncd687: ; cd687 (33:5687)
@ -1712,7 +1712,7 @@ Functioncd687: ; cd687 (33:5687)
jr nc, .asm_cd69b jr nc, .asm_cd69b
call Functionce72c call Functionce72c
xor a xor a
ld [$FF00+$c7], a ld [$ffc7], a
ret ret
.asm_cd69b .asm_cd69b
dec a dec a
@ -1730,7 +1730,7 @@ Functioncd687: ; cd687 (33:5687)
add [hl] add [hl]
sub $10 sub $10
ret c ret c
ld [$FF00+$c7], a ld [$ffc7], a
ld hl, $9 ld hl, $9
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
@ -1753,8 +1753,8 @@ Functioncd6c6: ; cd6c6 (33:56c6)
jr c, asm_cd6da jr c, asm_cd6da
xor a xor a
ld [hLCDStatCustom], a ; $ff00+$c6 ld [hLCDStatCustom], a ; $ff00+$c6
ld [$FF00+$c7], a ld [$ffc7], a
ld [$FF00+$c8], a ld [$ffc8], a
Functioncd6d6: ; cd6d6 (33:56d6) Functioncd6d6: ; cd6d6 (33:56d6)
call Functioncc9bd call Functioncc9bd
@ -1765,7 +1765,7 @@ asm_cd6da: ; cd6da (33:56da)
ld [hl], a ld [hl], a
sub $10 sub $10
ret c ret c
ld [$FF00+$c7], a ld [$ffc7], a
ret ret
Functioncd6e3: ; cd6e3 (33:56e3) Functioncd6e3: ; cd6e3 (33:56e3)

View File

@ -929,7 +929,7 @@ Functionc8565: ; c8565 (32:4565)
ld hl, $d422 ld hl, $d422
ld bc, $0 ld bc, $0
.asm_c8580 .asm_c8580
ld a, [$FF00+$c7] ld a, [$ffc7]
cp e cp e
jr nc, .asm_c858b jr nc, .asm_c858b
push hl push hl
@ -966,9 +966,9 @@ Functionc85a2: ; c85a2 (32:45a2)
ld a, $42 ld a, $42
ld [hLCDStatCustom], a ; $ff00+$c6 ld [hLCDStatCustom], a ; $ff00+$c6
xor a xor a
ld [$FF00+$c7], a ld [$ffc7], a
ld a, $5e ld a, $5e
ld [$FF00+$c8], a ld [$ffc8], a
ld de, $202 ld de, $202
call Functionc8f2e call Functionc8f2e
ret ret
@ -1040,9 +1040,9 @@ Functionc8610: ; c8610 (32:4610)
ld a, $43 ld a, $43
ld [hLCDStatCustom], a ; $ff00+$c6 ld [hLCDStatCustom], a ; $ff00+$c6
xor a xor a
ld [$FF00+$c7], a ld [$ffc7], a
ld a, $5f ld a, $5f
ld [$FF00+$c8], a ld [$ffc8], a
ld de, $605 ld de, $605
call Functionc8f2e call Functionc8f2e
ld hl, $3 ld hl, $3
@ -1136,9 +1136,9 @@ Functionc8698: ; c8698 (32:4698)
call Functionc8eca call Functionc8eca
ld a, $43 ld a, $43
call Functionc8ede call Functionc8ede
ld a, [$FF00+$c8] ld a, [$ffc8]
inc a inc a
ld [$FF00+$c8], a ld [$ffc8], a
ld hl, $2 ld hl, $2
add hl, bc add hl, bc
ld [hl], $0 ld [hl], $0
@ -1192,9 +1192,9 @@ Functionc86ea: ; c86ea (32:46ea)
inc a inc a
ld d, a ld d, a
ld h, $d2 ld h, $d2
ld a, [$FF00+$c7] ld a, [$ffc7]
ld l, a ld l, a
ld a, [$FF00+$c8] ld a, [$ffc8]
sub l sub l
srl a srl a
push af push af
@ -1234,7 +1234,7 @@ Functionc8712: ; c8712 (32:4712)
ld d, $2 ld d, $2
call Functionc8f2e call Functionc8f2e
ld h, $d2 ld h, $d2
ld a, [$FF00+$c8] ld a, [$ffc8]
ld l, a ld l, a
ld [hl], $0 ld [hl], $0
dec l dec l
@ -1242,7 +1242,7 @@ Functionc8712: ; c8712 (32:4712)
ret ret
Functionc8732: ; c8732 (32:4732) Functionc8732: ; c8732 (32:4732)
ld a, [$FF00+$c8] ld a, [$ffc8]
ld l, a ld l, a
ld h, $d2 ld h, $d2
ld e, l ld e, l
@ -1252,11 +1252,11 @@ Functionc8732: ; c8732 (32:4732)
ld a, [de] ld a, [de]
dec de dec de
ld [hld], a ld [hld], a
ld a, [$FF00+$c7] ld a, [$ffc7]
cp l cp l
jr nz, .asm_c873a jr nz, .asm_c873a
ld [hl], $90 ld [hl], $90
ld a, [$FF00+$c8] ld a, [$ffc8]
ld l, a ld l, a
ld a, [hl] ld a, [hl]
cp $1 cp $1
@ -1292,9 +1292,9 @@ Functionc876a: ; c876a (32:476a)
call Functionc8eca call Functionc8eca
ld a, $42 ld a, $42
call Functionc8ede call Functionc8ede
ld a, [$FF00+$c8] ld a, [$ffc8]
inc a inc a
ld [$FF00+$c8], a ld [$ffc8], a
ld hl, $2 ld hl, $2
add hl, bc add hl, bc
ld [hl], $1 ld [hl], $1
@ -1343,9 +1343,9 @@ Functionc87b2: ; c87b2 (32:47b2)
call Functionc8eca call Functionc8eca
ld a, $42 ld a, $42
call Functionc8ede call Functionc8ede
ld a, [$FF00+$c8] ld a, [$ffc8]
inc a inc a
ld [$FF00+$c8], a ld [$ffc8], a
ld hl, $2 ld hl, $2
add hl, bc add hl, bc
ld [hl], $2 ld [hl], $2
@ -1367,9 +1367,9 @@ Functionc87cf: ; c87cf (32:47cf)
call Functionc80e5 call Functionc80e5
Functionc87de: ; c87de (32:47de) Functionc87de: ; c87de (32:47de)
ld a, [$FF00+$c7] ld a, [$ffc7]
ld l, a ld l, a
ld a, [$FF00+$c8] ld a, [$ffc8]
sub l sub l
dec a dec a
ld hl, $2 ld hl, $2
@ -1411,9 +1411,9 @@ Functionc8810: ; c8810 (32:4810)
call Functionc8eca call Functionc8eca
ld a, $43 ld a, $43
call Functionc8ede call Functionc8ede
ld a, [$FF00+$c8] ld a, [$ffc8]
inc a inc a
ld [$FF00+$c8], a ld [$ffc8], a
ld hl, $3 ld hl, $3
add hl, bc add hl, bc
ld [hl], $0 ld [hl], $0
@ -1446,9 +1446,9 @@ Functionc8842: ; c8842 (32:4842)
call Functionc8eca call Functionc8eca
ld a, $43 ld a, $43
call Functionc8ef4 call Functionc8ef4
ld a, [$FF00+$c8] ld a, [$ffc8]
inc a inc a
ld [$FF00+$c8], a ld [$ffc8], a
ld hl, $3 ld hl, $3
add hl, bc add hl, bc
ld [hl], $0 ld [hl], $0
@ -1519,16 +1519,16 @@ Functionc88a5: ; c88a5 (32:48a5)
pop af pop af
jp Functionc900b jp Functionc900b
.asm_c88b7 .asm_c88b7
ld a, [$FF00+$c7] ld a, [$ffc7]
ld d, a ld d, a
ld a, [$FF00+$c8] ld a, [$ffc8]
sub d sub d
ld d, a ld d, a
ld h, LYOverridesBackup / $100 ld h, LYOverridesBackup / $100
ld a, [hSCY] ; $ff00+$d0 ld a, [hSCY] ; $ff00+$d0
or a or a
jr nz, .asm_c88d0 jr nz, .asm_c88d0
ld a, [$FF00+$c7] ld a, [$ffc7]
or a or a
jr z, .asm_c88d6 jr z, .asm_c88d6
dec a dec a
@ -1536,14 +1536,14 @@ Functionc88a5: ; c88a5 (32:48a5)
ld [hl], $0 ld [hl], $0
jr .asm_c88d6 jr .asm_c88d6
.asm_c88d0 .asm_c88d0
ld a, [$FF00+$c8] ld a, [$ffc8]
dec a dec a
ld l, a ld l, a
ld [hl], $0 ld [hl], $0
.asm_c88d6 .asm_c88d6
ld a, [hSCY] ; $ff00+$d0 ld a, [hSCY] ; $ff00+$d0
ld l, a ld l, a
ld a, [$FF00+$c7] ld a, [$ffc7]
sub l sub l
jr nc, .asm_c88e0 jr nc, .asm_c88e0
xor a xor a
@ -1576,9 +1576,9 @@ Functionc88f6: ; c88f6 (32:48f6)
call Functionc8eca call Functionc8eca
ld a, $43 ld a, $43
call Functionc8ede call Functionc8ede
ld a, [$FF00+$c8] ld a, [$ffc8]
inc a inc a
ld [$FF00+$c8], a ld [$ffc8], a
ld hl, $3 ld hl, $3
add hl, bc add hl, bc
ld [hl], $0 ld [hl], $0
@ -1623,9 +1623,9 @@ Functionc8933: ; c8933 (32:4933)
call Functionc8eca call Functionc8eca
ld a, $43 ld a, $43
call Functionc8ede call Functionc8ede
ld a, [$FF00+$c8] ld a, [$ffc8]
inc a inc a
ld [$FF00+$c8], a ld [$ffc8], a
ld hl, $3 ld hl, $3
add hl, bc add hl, bc
ld [hl], $0 ld [hl], $0
@ -1663,9 +1663,9 @@ Functionc896d: ; c896d (32:496d)
call Functionc8eca call Functionc8eca
ld a, $43 ld a, $43
call Functionc8ede call Functionc8ede
ld a, [$FF00+$c8] ld a, [$ffc8]
inc a inc a
ld [$FF00+$c8], a ld [$ffc8], a
xor a xor a
ld hl, $2 ld hl, $2
add hl, bc add hl, bc
@ -1762,9 +1762,9 @@ Functionc89f7: ; c89f7 (32:49f7)
call Functionc8eca call Functionc8eca
ld a, $42 ld a, $42
call Functionc8ef4 call Functionc8ef4
ld a, [$FF00+$c8] ld a, [$ffc8]
inc a inc a
ld [$FF00+$c8], a ld [$ffc8], a
ld hl, $2 ld hl, $2
add hl, bc add hl, bc
ld [hl], $1 ld [hl], $1
@ -1818,14 +1818,14 @@ Functionc8a49: ; c8a49 (32:4a49)
call Functionc8ecb call Functionc8ecb
ld a, $47 ld a, $47
call Functionc8ede call Functionc8ede
ld a, [$FF00+$c8] ld a, [$ffc8]
inc a inc a
ld [$FF00+$c8], a ld [$ffc8], a
ld a, [$FF00+$c7] ld a, [$ffc7]
ld l, a ld l, a
ld h, $d2 ld h, $d2
.asm_c8a60 .asm_c8a60
ld a, [$FF00+$c8] ld a, [$ffc8]
cp l cp l
jr z, .asm_c8a69 jr z, .asm_c8a69
xor a xor a
@ -1848,9 +1848,9 @@ Functionc8a70: ; c8a70 (32:4a70)
ld hl, $3 ld hl, $3
add hl, bc add hl, bc
ld [hl], $0 ld [hl], $0
ld a, [$FF00+$c7] ld a, [$ffc7]
inc a inc a
ld [$FF00+$c7], a ld [$ffc7], a
call Functionc80e5 call Functionc80e5
ret ret
@ -1858,7 +1858,7 @@ Functionc8a88: ; c8a88 (32:4a88)
call Functionc8ab0 call Functionc8ab0
jr nc, .asm_c8a96 jr nc, .asm_c8a96
call Functionc8a9a call Functionc8a9a
ld a, [$FF00+$c8] ld a, [$ffc8]
dec a dec a
ld l, a ld l, a
ld [hl], e ld [hl], e
@ -1869,9 +1869,9 @@ Functionc8a88: ; c8a88 (32:4a88)
Functionc8a9a: ; c8a9a (32:4a9a) Functionc8a9a: ; c8a9a (32:4a9a)
ld e, a ld e, a
ld a, [$FF00+$c7] ld a, [$ffc7]
ld l, a ld l, a
ld a, [$FF00+$c8] ld a, [$ffc8]
sub l sub l
srl a srl a
ld h, $d2 ld h, $d2
@ -1964,9 +1964,9 @@ Functionc8b0e: ; c8b0e (32:4b0e)
ld a, $47 ld a, $47
ld [hLCDStatCustom], a ; $ff00+$c6 ld [hLCDStatCustom], a ; $ff00+$c6
xor a xor a
ld [$FF00+$c7], a ld [$ffc7], a
ld a, $60 ld a, $60
ld [$FF00+$c8], a ld [$ffc8], a
ret ret
Functionc8b22: ; c8b22 (32:4b22) Functionc8b22: ; c8b22 (32:4b22)
@ -2214,9 +2214,9 @@ Functionc8c68: ; c8c68 (32:4c68)
call Functionc8eca call Functionc8eca
ld a, $43 ld a, $43
call Functionc8ede call Functionc8ede
ld a, [$FF00+$c8] ld a, [$ffc8]
inc a inc a
ld [$FF00+$c8], a ld [$ffc8], a
ld hl, $2 ld hl, $2
add hl, bc add hl, bc
ld [hl], $1 ld [hl], $1
@ -2261,9 +2261,9 @@ Functionc8cab: ; c8cab (32:4cab)
ld a, $43 ld a, $43
ld [hLCDStatCustom], a ; $ff00+$c6 ld [hLCDStatCustom], a ; $ff00+$c6
xor a xor a
ld [$FF00+$c7], a ld [$ffc7], a
ld a, $37 ld a, $37
ld [$FF00+$c8], a ld [$ffc8], a
ld hl, $3 ld hl, $3
add hl, bc add hl, bc
ld [hl], $0 ld [hl], $0
@ -2424,9 +2424,9 @@ Functionc8d8b: ; c8d8b (32:4d8b)
call Functionc8ecb call Functionc8ecb
ld a, $47 ld a, $47
call Functionc8ede call Functionc8ede
ld a, [$FF00+$c8] ld a, [$ffc8]
inc a inc a
ld [$FF00+$c8], a ld [$ffc8], a
ld hl, $3 ld hl, $3
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
@ -2662,9 +2662,9 @@ Functionc8ede: ; c8ede (32:4ede)
ld de, $2f5e ld de, $2f5e
.asm_c8eed .asm_c8eed
ld a, d ld a, d
ld [$FF00+$c7], a ld [$ffc7], a
ld a, e ld a, e
ld [$FF00+$c8], a ld [$ffc8], a
ret ret
Functionc8ef4: ; c8ef4 (32:4ef4) Functionc8ef4: ; c8ef4 (32:4ef4)
@ -2677,15 +2677,15 @@ Functionc8ef4: ; c8ef4 (32:4ef4)
ld de, $2d5e ld de, $2d5e
.asm_c8f03 .asm_c8f03
ld a, d ld a, d
ld [$FF00+$c7], a ld [$ffc7], a
ld a, e ld a, e
ld [$FF00+$c8], a ld [$ffc8], a
ret ret
Functionc8f0a: ; c8f0a (32:4f0a) Functionc8f0a: ; c8f0a (32:4f0a)
xor a xor a
ld [$FF00+$c7], a ld [$ffc7], a
ld [$FF00+$c8], a ld [$ffc8], a
call Functionc8eca call Functionc8eca
xor a xor a
ld [hLCDStatCustom], a ; $ff00+$c6 ld [hLCDStatCustom], a ; $ff00+$c6
@ -2699,8 +2699,8 @@ Functionc8f19: ; c8f19 (32:4f19)
ld [rBGP], a ; $ff00+$47 ld [rBGP], a ; $ff00+$47
ld [$cfc7], a ld [$cfc7], a
ld [$cfc9], a ld [$cfc9], a
ld [$FF00+$c7], a ld [$ffc7], a
ld [$FF00+$c8], a ld [$ffc8], a
call Functionc8eca call Functionc8eca
ret ret
@ -2716,10 +2716,10 @@ Functionc8f2e: ; c8f2e (32:4f2e)
ld [$d41c], a ld [$d41c], a
ld bc, $d200 ld bc, $d200
.asm_c8f43 .asm_c8f43
ld a, [$FF00+$c7] ld a, [$ffc7]
cp c cp c
jr nc, .asm_c8f58 jr nc, .asm_c8f58
ld a, [$FF00+$c8] ld a, [$ffc8]
cp c cp c
jr c, .asm_c8f58 jr c, .asm_c8f58
ld a, [$d41b] ld a, [$d41b]
@ -2793,14 +2793,14 @@ Functionc8f9a: ; c8f9a (32:4f9a)
call Functionc905d call Functionc905d
ld e, a ld e, a
pop hl pop hl
ld a, [$FF00+$c8] ld a, [$ffc8]
cp c cp c
jr c, .asm_c8fcf jr c, .asm_c8fcf
ld a, e ld a, e
ld [bc], a ld [bc], a
inc bc inc bc
.asm_c8fcf .asm_c8fcf
ld a, [$FF00+$c7] ld a, [$ffc7]
cp l cp l
jr nc, .asm_c8fd6 jr nc, .asm_c8fd6
ld [hl], e ld [hl], e
@ -2817,7 +2817,7 @@ Functionc8f9a: ; c8f9a (32:4f9a)
ret ret
Functionc8fe4: ; c8fe4 (32:4fe4) Functionc8fe4: ; c8fe4 (32:4fe4)
ld a, [$FF00+$c7] ld a, [$ffc7]
ld e, a ld e, a
ld a, [$d419] ld a, [$d419]
add e add e
@ -2827,13 +2827,13 @@ Functionc8fe4: ; c8fe4 (32:4fe4)
Functionc8fef: ; c8fef (32:4fef) Functionc8fef: ; c8fef (32:4fef)
push bc push bc
ld a, [$FF00+$c7] ld a, [$ffc7]
ld l, a ld l, a
inc a inc a
ld e, a ld e, a
ld h, $d2 ld h, $d2
ld d, h ld d, h
ld a, [$FF00+$c8] ld a, [$ffc8]
sub l sub l
and a and a
jr z, .asm_c9009 jr z, .asm_c9009
@ -2855,9 +2855,9 @@ Functionc8fef: ; c8fef (32:4fef)
Functionc900b: ; c900b (32:500b) Functionc900b: ; c900b (32:500b)
push af push af
ld h, $d2 ld h, $d2
ld a, [$FF00+$c7] ld a, [$ffc7]
ld l, a ld l, a
ld a, [$FF00+$c8] ld a, [$ffc8]
sub l sub l
ld d, a ld d, a
pop af pop af
@ -2870,14 +2870,14 @@ Functionc900b: ; c900b (32:500b)
Functionc901b: ; c901b (32:501b) Functionc901b: ; c901b (32:501b)
push af push af
ld e, a ld e, a
ld a, [$FF00+$c7] ld a, [$ffc7]
ld l, a ld l, a
ld a, [$FF00+$c8] ld a, [$ffc8]
sub l sub l
sub e sub e
ld d, a ld d, a
ld h, $d2 ld h, $d2
ld a, [$FF00+$c7] ld a, [$ffc7]
ld l, a ld l, a
ld a, $90 ld a, $90
.asm_c902c .asm_c902c

View File

@ -2091,19 +2091,19 @@ Functionf36f: ; f36f (3:736f)
Functionf378: ; f378 (3:7378) Functionf378: ; f378 (3:7378)
push bc push bc
ld a, $24 ld a, PartyMon1MaxHP - PartyMon1
call GetPartyParamLocation call GetPartyParamLocation
ld a, [hli] ld a, [hli]
ld [hPastLeadingZeroes], a ; $ff00+$b3 (aliases: hDividend, hProduct) ld [hDividend + 0], a
ld a, [hl] ld a, [hl]
ld [hQuotient], a ; $ff00+$b4 (aliases: hMultiplicand) ld [hDividend + 1], a
ld a, $5 ld a, 5
ld [hDivisor], a ; $ff00+$b7 (aliases: hMultiplier) ld [hDivisor], a
ld b, $2 ld b, 2
call Divide call Divide
ld a, [$FF00+$b5] ld a, [hQuotient + 1]
ld d, a ld d, a
ld a, [$FF00+$b6] ld a, [hQuotient + 2]
ld e, a ld e, a
pop bc pop bc
ret ret
@ -2153,6 +2153,7 @@ Tablef3af: ; f3af
; f3df ; f3df
Functionf3df: ; f3df (3:73df) Functionf3df: ; f3df (3:73df)
; Softboiled/Milk Drink in the field
ld a, [$d0d8] ld a, [$d0d8]
dec a dec a
ld b, a ld b, a

234
main.asm
View File

@ -17891,23 +17891,23 @@ Function11e75: ; 11e75 (4:5e75)
ld [hl], e ld [hl], e
inc hl inc hl
ld [hl], d ld [hl], d
ld a, [$FF00+$de] ld a, [$ffde]
push af push af
xor a xor a
ld [$FF00+$de], a ld [$ffde], a
ld a, [$FF00+$aa] ld a, [$ffaa]
push af push af
ld a, $1 ld a, $1
ld [$FF00+$aa], a ld [$ffaa], a
call Function11e9a call Function11e9a
call DelayFrame call DelayFrame
.asm_11e8e .asm_11e8e
call Function11fc0 call Function11fc0
jr nc, .asm_11e8e jr nc, .asm_11e8e
pop af pop af
ld [$FF00+$aa], a ld [$ffaa], a
pop af pop af
ld [$FF00+$de], a ld [$ffde], a
ret ret
Function11e9a: ; 11e9a (4:5e9a) Function11e9a: ; 11e9a (4:5e9a)
@ -33660,7 +33660,7 @@ Function25105: ; 25105
ld a, [$cf63] ld a, [$cf63]
bit 7, a bit 7, a
jr nz, .asm_25132 jr nz, .asm_25132
ld a, [$FF00+$a9] ld a, [$ffa9]
and $2 and $2
jr nz, .asm_25132 jr nz, .asm_25132
call Function2518e call Function2518e
@ -33889,7 +33889,7 @@ Function25299: ; 25299 (9:5299)
hlcoord 14, 1 hlcoord 14, 1
ld bc, $507 ld bc, $507
xor a xor a
ld [$FF00+$ad], a ld [$ffad], a
predef FillBox predef FillBox
ret ret
; 252ec (9:52ec) ; 252ec (9:52ec)
@ -34084,7 +34084,7 @@ Function25415: ; 25415 (9:5415)
ld de, GameTimeMinutes ; $d4c6 ld de, GameTimeMinutes ; $d4c6
ld bc, $8102 ld bc, $8102
call PrintNum call PrintNum
ld a, [$FF00+$9b] ld a, [$ff9b]
and $1f and $1f
ret nz ret nz
hlcoord 15, 12 hlcoord 15, 12
@ -34094,7 +34094,7 @@ Function25415: ; 25415 (9:5415)
ret ret
Function25438: ; 25438 (9:5438) Function25438: ; 25438 (9:5438)
ld a, [$FF00+$9b] ld a, [$ff9b]
and $7 and $7
ret nz ret nz
ld a, [$cf64] ld a, [$cf64]
@ -42233,10 +42233,10 @@ Unknown_2c74a: ; 2c74a
Function2c76f: ; 2c76f (b:476f) Function2c76f: ; 2c76f (b:476f)
ld a, $1 ld a, $1
ld [$FF00+$aa], a ld [$ffaa], a
call Function2c8d3 call Function2c8d3
ld a, $0 ld a, $0
ld [$FF00+$aa], a ld [$ffaa], a
ret nc ret nc
call Function1bee call Function1bee
call WaitBGMap call WaitBGMap
@ -49007,10 +49007,10 @@ Function4876f: ; 4876f (12:476f)
call PlaceString call PlaceString
ld hl, MenuDataHeader_0x48509 ld hl, MenuDataHeader_0x48509
call LoadMenuDataHeader call LoadMenuDataHeader
ld a, [$FF00+$aa] ld a, [$ffaa]
push af push af
ld a, $1 ld a, $1
ld [$FF00+$aa], a ld [$ffaa], a
hlcoord 10, 5 hlcoord 10, 5
ld b, $1 ld b, $1
ld c, $8 ld c, $8
@ -49056,7 +49056,7 @@ Function4876f: ; 4876f (12:476f)
hlcoord 11, 6 hlcoord 11, 6
call Function487ec call Function487ec
pop af pop af
ld [$FF00+$aa], a ld [$ffaa], a
jp Function4840c jp Function4840c
Function487ec: ; 487ec (12:47ec) Function487ec: ; 487ec (12:47ec)
@ -49211,10 +49211,10 @@ Function488d3: ; 488d3 (12:48d3)
jp c, Function4840c jp c, Function4840c
ld hl, MenuDataHeader_0x4850e ld hl, MenuDataHeader_0x4850e
call LoadMenuDataHeader call LoadMenuDataHeader
ld a, [$FF00+$aa] ld a, [$ffaa]
push af push af
ld a, $1 ld a, $1
ld [$FF00+$aa], a ld [$ffaa], a
hlcoord 10, 9 hlcoord 10, 9
ld b, $1 ld b, $1
ld c, $8 ld c, $8
@ -49359,7 +49359,7 @@ asm_48972: ; 48972 (12:4972)
ld bc, $108 ld bc, $108
call ClearBox call ClearBox
pop af pop af
ld [$FF00+$aa], a ld [$ffaa], a
jp Function4840c jp Function4840c
Function489ea: ; 489ea (12:49ea) Function489ea: ; 489ea (12:49ea)
@ -49956,7 +49956,7 @@ Function48d4a: ; 48d4a (12:4d4a)
ld [hld], a ld [hld], a
xor a xor a
ld [hQuotient], a ; $ff00+$b4 (aliases: hMultiplicand) ld [hQuotient], a ; $ff00+$b4 (aliases: hMultiplicand)
ld [$FF00+$b5], a ld [$ffb5], a
ld a, [hl] ld a, [hl]
srl a srl a
srl a srl a
@ -49968,13 +49968,13 @@ Function48d4a: ; 48d4a (12:4d4a)
ld a, [hli] ld a, [hli]
and $f and $f
add b add b
ld [$FF00+$b6], a ld [$ffb6], a
ld a, 100 ld a, 100
ld [hDivisor], a ; $ff00+$b7 (aliases: hMultiplier) ld [hDivisor], a ; $ff00+$b7 (aliases: hMultiplier)
call Multiply call Multiply
ld a, [$FF00+$b5] ld a, [$ffb5]
ld b, a ld b, a
ld a, [$FF00+$b6] ld a, [$ffb6]
ld c, a ld c, a
ld e, [hl] ld e, [hl]
add e add e
@ -50008,7 +50008,7 @@ Function48d94: ; 48d94 (12:4d94)
sla b sla b
or b or b
ld [hld], a ld [hld], a
ld a, [$FF00+$b6] ld a, [$ffb6]
ld c, 10 ld c, 10
call SimpleDivide call SimpleDivide
sla b sla b
@ -54098,10 +54098,10 @@ Function4cf45: ; 4cf45 (13:4f45)
push af push af
xor a xor a
ld [hBGMapMode], a ; $ff00+$d4 ld [hBGMapMode], a ; $ff00+$d4
ld a, [$FF00+$de] ld a, [$ffde]
push af push af
xor a xor a
ld [$FF00+$de], a ld [$ffde], a
.asm_4cf57 .asm_4cf57
ld a, [rLY] ; $ff00+$44 ld a, [rLY] ; $ff00+$44
cp $60 cp $60
@ -54121,7 +54121,7 @@ Function4cf45: ; 4cf45 (13:4f45)
jr c, .asm_4cf72 jr c, .asm_4cf72
ei ei
pop af pop af
ld [$FF00+$de], a ld [$ffde], a
pop af pop af
ld [hBGMapMode], a ; $ff00+$d4 ld [hBGMapMode], a ; $ff00+$d4
ret ret
@ -54129,11 +54129,11 @@ Function4cf45: ; 4cf45 (13:4f45)
Function4cf80: ; 4cf80 (13:4f80) Function4cf80: ; 4cf80 (13:4f80)
ld [hSPBuffer], sp ; $ffd9 ld [hSPBuffer], sp ; $ffd9
ld sp, hl ld sp, hl
ld a, [$FF00+$d7] ld a, [$ffd7]
ld h, a ld h, a
ld l, $0 ld l, $0
ld a, $12 ld a, $12
ld [$FF00+$d3], a ld [$ffd3], a
ld b, $2 ld b, $2
ld c, $41 ld c, $41
.asm_4cf91 .asm_4cf91
@ -54229,13 +54229,13 @@ Function4cf80: ; 4cf80 (13:4f80)
inc l inc l
ld de, $c ld de, $c
add hl, de add hl, de
ld a, [$FF00+$d3] ld a, [$ffd3]
dec a dec a
ld [$FF00+$d3], a ld [$ffd3], a
jr nz, .asm_4cf91 jr nz, .asm_4cf91
ld a, [hSPBuffer] ; $ff00+$d9 ld a, [hSPBuffer] ; $ff00+$d9
ld l, a ld l, a
ld a, [$FF00+$da] ld a, [$ffda]
ld h, a ld h, a
ld sp, hl ld sp, hl
ret ret
@ -56374,11 +56374,11 @@ Function4e0e7: ; 4e0e7 (13:60e7)
callba Function50e47 callba Function50e47
ld hl, $d118 ld hl, $d118
ld hl, $d118 ld hl, $d118
ld a, [$FF00+$b6] ld a, [$ffb6]
sub [hl] sub [hl]
dec hl dec hl
ld [$d1ec], a ld [$d1ec], a
ld a, [$FF00+$b5] ld a, [$ffb5]
sbc [hl] sbc [hl]
dec hl dec hl
ld [Buffer2], a ; $d1eb (aliases: MovementType) ld [Buffer2], a ; $d1eb (aliases: MovementType)
@ -64217,7 +64217,7 @@ Function844bc: ; 844bc (21:44bc)
ld a, c ld a, c
ld [MovementBuffer], a ; $d007 ld [MovementBuffer], a ; $d007
xor a xor a
ld [$FF00+$ac], a ld [$ffac], a
ld [$d003], a ld [$d003], a
call Function8474c call Function8474c
ld a, [rIE] ; $ff00+$ff ld a, [rIE] ; $ff00+$ff
@ -64268,7 +64268,7 @@ Function844bc: ; 844bc (21:44bc)
call Function84559 call Function84559
.asm_84545 .asm_84545
pop af pop af
ld [$FF00+$9e], a ld [$ff9e], a
call Function84411 call Function84411
xor a xor a
ld [rIF], a ; $ff00+$f ld [rIF], a ; $ff00+$f
@ -73546,9 +73546,9 @@ Function8c3e8: ; 8c3e8 (23:43e8)
ld a, $43 ld a, $43
ld [hLCDStatCustom], a ; $ff00+$c6 ld [hLCDStatCustom], a ; $ff00+$c6
xor a xor a
ld [$FF00+$c7], a ld [$ffc7], a
ld a, $90 ld a, $90
ld [$FF00+$c8], a ld [$ffc8], a
xor a xor a
ld [$cf64], a ld [$cf64], a
ld [$cf65], a ld [$cf65], a
@ -79275,7 +79275,7 @@ Function90672: ; 90672 (24:4672)
call PrintText call PrintText
call Functiona80 call Functiona80
pop af pop af
ld [$FF00+$aa], a ld [$ffaa], a
ret ret
Function90783: ; 90783 (24:4783) Function90783: ; 90783 (24:4783)
@ -92697,12 +92697,12 @@ Functione2391: ; e2391 (38:6391)
push af push af
xor a xor a
ld [VramState], a ; $d0ed ld [VramState], a ; $d0ed
ld a, [$FF00+$aa] ld a, [$ffaa]
push af push af
ld a, $1 ld a, $1
ld [$FF00+$aa], a ld [$ffaa], a
xor a xor a
ld [$FF00+$de], a ld [$ffde], a
call Functione2963 call Functione2963
xor a xor a
ld [$cb2e], a ld [$cb2e], a
@ -92718,7 +92718,7 @@ Functione2391: ; e2391 (38:6391)
.asm_e23c6 .asm_e23c6
call ClearSprites call ClearSprites
pop af pop af
ld [$FF00+$aa], a ld [$ffaa], a
pop af pop af
ld [VramState], a ; $d0ed ld [VramState], a ; $d0ed
pop af pop af
@ -92958,12 +92958,12 @@ Functione2583: ; e2583 (38:6583)
push af push af
xor a xor a
ld [VramState], a ; $d0ed ld [VramState], a ; $d0ed
ld a, [$FF00+$aa] ld a, [$ffaa]
push af push af
ld a, $1 ld a, $1
ld [$FF00+$aa], a ld [$ffaa], a
xor a xor a
ld [$FF00+$de], a ld [$ffde], a
call Functione2963 call Functione2963
ld a, $f ld a, $f
ld [$cb2e], a ld [$cb2e], a
@ -92979,7 +92979,7 @@ Functione2583: ; e2583 (38:6583)
.asm_e25b9 .asm_e25b9
call ClearSprites call ClearSprites
pop af pop af
ld [$FF00+$aa], a ld [$ffaa], a
pop af pop af
ld [VramState], a ; $d0ed ld [VramState], a ; $d0ed
pop af pop af
@ -99272,7 +99272,7 @@ Functionfbd77: ; fbd77 (3e:7d77)
call Functionfbd9d call Functionfbd9d
ld a, $31 ld a, $31
.asm_fbd8a .asm_fbd8a
ld [$FF00+$ad], a ld [$ffad], a
predef FillBox predef FillBox
Functionfbd91: ; fbd91 (3e:7d91) Functionfbd91: ; fbd91 (3e:7d91)
ld a, $1 ld a, $1
@ -100240,11 +100240,11 @@ Functionfd0a6: ; fd0a6 (3f:50a6)
ld de, $3 ld de, $3
add hl, de add hl, de
ld a, [hli] ld a, [hli]
ld [$FF00+$c3], a ld [$ffc3], a
ld a, [hli] ld a, [hli]
ld [$FF00+$c4], a ld [$ffc4], a
ld a, [hli] ld a, [hli]
ld [$FF00+$c5], a ld [$ffc5], a
ld de, $d851 ld de, $d851
ld bc, $ffc3 ld bc, $ffc3
callba Function15ffa callba Function15ffa
@ -103597,7 +103597,7 @@ Function1041a4: ; 104a14
ret ret
Function1041ad: ; 1041ad (41:41ad) Function1041ad: ; 1041ad (41:41ad)
ld a, [$FF00+$d7] ld a, [$ffd7]
ld d, a ld d, a
ld a, [hBGMapAddress] ; $ff00+$d6 ld a, [hBGMapAddress] ; $ff00+$d6
ld e, a ld e, a
@ -103605,7 +103605,7 @@ Function1041ad: ; 1041ad (41:41ad)
jr Function104209 jr Function104209
Function1041b7: ; 1041b7 (41:41b7) Function1041b7: ; 1041b7 (41:41b7)
ld a, [$FF00+$d7] ld a, [$ffd7]
ld d, a ld d, a
ld a, [hBGMapAddress] ; $ff00+$d6 ld a, [hBGMapAddress] ; $ff00+$d6
ld e, a ld e, a
@ -103723,7 +103723,7 @@ Function10424e: ; 10424e (41:424e)
ld [rHDMA1], a ; $ff00+$51 ld [rHDMA1], a ; $ff00+$51
ld a, l ld a, l
ld [rHDMA2], a ; $ff00+$52 ld [rHDMA2], a ; $ff00+$52
ld a, [$FF00+$d7] ld a, [$ffd7]
and $1f and $1f
ld [rHDMA3], a ; $ff00+$53 ld [rHDMA3], a ; $ff00+$53
ld a, [hBGMapAddress] ; $ff00+$d6 ld a, [hBGMapAddress] ; $ff00+$d6
@ -104218,7 +104218,7 @@ Function1047cf: ; 1047cf
call LoadTilesetHeader call LoadTilesetHeader
call Function2821 call Function2821
xor a xor a
ld [$FF00+$de], a ld [$ffde], a
xor a xor a
ld [hTileAnimFrame], a ; $ff00+$df ld [hTileAnimFrame], a ; $ff00+$df
callba Function14168 callba Function14168
@ -104545,12 +104545,12 @@ Function104a95: ; 104a95 (41:4a95)
.asm_104a9f .asm_104a9f
call Function104d96 call Function104d96
call Function104ddd call Function104ddd
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $10 cp $10
jp z, Function104bd0 jp z, Function104bd0
cp $6c cp $6c
jr nz, .asm_104a9f jr nz, .asm_104a9f
ld a, [$FF00+$bb] ld a, [$ffbb]
cp $2 cp $2
jr z, Function104b22 jr z, Function104b22
ld hl, $ffb3 ld hl, $ffb3
@ -104593,11 +104593,11 @@ Function104a95: ; 104a95 (41:4a95)
jr z, .asm_104a9f jr z, .asm_104a9f
or a or a
jr nz, .asm_104a9f jr nz, .asm_104a9f
ld a, [$FF00+$c4] ld a, [$ffc4]
bit 1, a bit 1, a
jr z, .asm_104ad5 jr z, .asm_104ad5
ld a, $10 ld a, $10
ld [$FF00+$bc], a ld [$ffbc], a
jp Function104bd0 jp Function104bd0
Function104b04: ; 104b04 (41:4b04) Function104b04: ; 104b04 (41:4b04)
@ -104634,7 +104634,7 @@ Function104b40: ; 104b40 (41:4b40)
Function104b49: ; 104b49 (41:4b49) Function104b49: ; 104b49 (41:4b49)
call Function105033 call Function105033
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret nz ret nz
ld a, [$ffb3] ld a, [$ffb3]
@ -104649,7 +104649,7 @@ Function104b49: ; 104b49 (41:4b49)
call Function104d4e call Function104d4e
ret nz ret nz
call Function10502e call Function10502e
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret nz ret nz
call Function104d43 call Function104d43
@ -104660,7 +104660,7 @@ Function104b49: ; 104b49 (41:4b49)
call Function104d56 call Function104d56
ret nz ret nz
call Function105033 call Function105033
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret ret
@ -104672,7 +104672,7 @@ Function104b88: ; 104b88 (41:4b88)
call Function104d4e call Function104d4e
ret nz ret nz
call Function10502e call Function10502e
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret nz ret nz
call Function104d43 call Function104d43
@ -104682,7 +104682,7 @@ Function104b88: ; 104b88 (41:4b88)
call Function104d56 call Function104d56
ret nz ret nz
call Function105033 call Function105033
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret nz ret nz
ld a, [$ffb3] ld a, [$ffb3]
@ -104696,13 +104696,13 @@ Function104b88: ; 104b88 (41:4b88)
call Function104d4e call Function104d4e
ret nz ret nz
call Function10502e call Function10502e
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret ret
Function104bd0: ; 104bd0 (41:4bd0) Function104bd0: ; 104bd0 (41:4bd0)
nop nop
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $10 cp $10
jr z, .asm_104c18 jr z, .asm_104c18
cp $6c cp $6c
@ -104721,7 +104721,7 @@ Function104bd0: ; 104bd0 (41:4bd0)
call Function1050fb call Function1050fb
ld a, $26 ld a, $26
ld [$ca02], a ld [$ca02], a
ld a, [$FF00+$bb] ld a, [$ffbb]
cp $2 cp $2
jr z, .asm_104c10 jr z, .asm_104c10
call Function104d43 call Function104d43
@ -104732,7 +104732,7 @@ Function104bd0: ; 104bd0 (41:4bd0)
jr nz, Function104bd0 jr nz, Function104bd0
jp Function104b22 jp Function104b22
.asm_104c18 .asm_104c18
ld a, [$FF00+$bc] ld a, [$ffbc]
push af push af
call Function104da0 call Function104da0
xor a xor a
@ -104752,12 +104752,12 @@ Function104c2d: ; 104c2d (41:4c2d)
.asm_104c37 .asm_104c37
call Function104d96 call Function104d96
call Function104ddd call Function104ddd
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $10 cp $10
jp z, Function104d1c jp z, Function104d1c
cp $6c cp $6c
jr nz, .asm_104c37 jr nz, .asm_104c37
ld a, [$FF00+$bb] ld a, [$ffbb]
cp $2 cp $2
jr z, .asm_104c6c jr z, .asm_104c6c
call Function104c8a call Function104c8a
@ -104788,7 +104788,7 @@ Function104c8a: ; 104c8a (41:4c8a)
call Function104d56 call Function104d56
ret nz ret nz
call Function105033 call Function105033
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret nz ret nz
ld a, [$ffb3] ld a, [$ffb3]
@ -104803,7 +104803,7 @@ Function104c8a: ; 104c8a (41:4c8a)
call Function104d4e call Function104d4e
ret nz ret nz
call Function10502e call Function10502e
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret nz ret nz
call Function104d43 call Function104d43
@ -104814,7 +104814,7 @@ Function104c8a: ; 104c8a (41:4c8a)
call Function104d56 call Function104d56
ret nz ret nz
call Function105033 call Function105033
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret ret
@ -104826,7 +104826,7 @@ Function104cd2: ; 104cd2 (41:4cd2)
call Function104d4e call Function104d4e
ret nz ret nz
call Function10502e call Function10502e
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret nz ret nz
call Function104d43 call Function104d43
@ -104836,7 +104836,7 @@ Function104cd2: ; 104cd2 (41:4cd2)
call Function104d56 call Function104d56
ret nz ret nz
call Function105033 call Function105033
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret nz ret nz
ld a, [$ffb3] ld a, [$ffb3]
@ -104851,13 +104851,13 @@ Function104cd2: ; 104cd2 (41:4cd2)
call Function104d4e call Function104d4e
ret nz ret nz
call Function10502e call Function10502e
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret ret
Function104d1c: ; 104d1c (41:4d1c) Function104d1c: ; 104d1c (41:4d1c)
nop nop
ld a, [$FF00+$bc] ld a, [$ffbc]
push af push af
call Function104da0 call Function104da0
xor a xor a
@ -104872,33 +104872,33 @@ Function104d1c: ; 104d1c (41:4d1c)
Function104d32: ; 104d32 (41:4d32) Function104d32: ; 104d32 (41:4d32)
ld a, $80 ld a, $80
ld [$FF00+$bc], a ld [$ffbc], a
and a and a
ret ret
Function104d38: ; 104d38 (41:4d38) Function104d38: ; 104d38 (41:4d38)
call Function104d96 call Function104d96
call Function104e46 call Function104e46
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret ret
Function104d43: ; 104d43 (41:4d43) Function104d43: ; 104d43 (41:4d43)
call Function104d96 call Function104d96
call Function104dfe call Function104dfe
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret ret
Function104d4e: ; 104d4e (41:4d4e) Function104d4e: ; 104d4e (41:4d4e)
call Function104e93 call Function104e93
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret ret
Function104d56: ; 104d56 (41:4d56) Function104d56: ; 104d56 (41:4d56)
call Function104f57 call Function104f57
ld a, [$FF00+$bc] ld a, [$ffbc]
cp $6c cp $6c
ret ret
@ -104945,7 +104945,7 @@ Function104d96: ; 104d96 (41:4d96)
ld a, $c0 ld a, $c0
call Function104e8c call Function104e8c
ld a, $1 ld a, $1
ld [$FF00+$bb], a ld [$ffbb], a
ret ret
Function104da0: ; 104da0 (41:4da0) Function104da0: ; 104da0 (41:4da0)
@ -105009,16 +105009,16 @@ Function104ddd: ; 104ddd (41:4ddd)
ld d, $0 ld d, $0
ld e, d ld e, d
ld a, $1 ld a, $1
ld [$FF00+$bb], a ld [$ffbb], a
.asm_104de4 .asm_104de4
call Function105038 call Function105038
ld b, $2 ld b, $2
ld c, $56 ld c, $56
ld a, [$FF00+$c4] ld a, [$ffc4]
bit 1, a bit 1, a
jr z, .asm_104df6 jr z, .asm_104df6
ld a, $10 ld a, $10
ld [$FF00+$bc], a ld [$ffbc], a
ret ret
.asm_104df6 .asm_104df6
bit 0, a bit 0, a
@ -105041,7 +105041,7 @@ Function104dfe: ; 104dfe (41:4dfe)
call Function104da9 call Function104da9
jp z, Function104f42 jp z, Function104f42
ld a, $6c ld a, $6c
ld [$FF00+$bc], a ld [$ffbc], a
ld d, $3d ld d, $3d
call Function104dd1 call Function104dd1
ld d, $5 ld d, $5
@ -105067,7 +105067,7 @@ asm_104e3a: ; 104e3a (41:4e3a)
Function104e46: ; 104e46 (41:4e46) Function104e46: ; 104e46 (41:4e46)
ld a, $2 ld a, $2
ld [$FF00+$bb], a ld [$ffbb], a
ld c, $56 ld c, $56
ld d, $0 ld d, $0
ld e, d ld e, d
@ -105094,13 +105094,13 @@ Function104e46: ; 104e46 (41:4e46)
ld d, $3d ld d, $3d
call Function104dd1 call Function104dd1
ld a, $6c ld a, $6c
ld [$FF00+$bc], a ld [$ffbc], a
ret ret
Function104e8c: ; 104e8c (41:4e8c) Function104e8c: ; 104e8c (41:4e8c)
ld [rRP], a ; $ff00+$56 ld [rRP], a ; $ff00+$56
ld a, $ff ld a, $ff
ld [$FF00+$bc], a ld [$ffbc], a
ret ret
Function104e93: ; 104e93 (41:4e93) Function104e93: ; 104e93 (41:4e93)
@ -105125,7 +105125,7 @@ Function104e93: ; 104e93 (41:4e93)
ld a, [hDivisor] ; $ff00+$b7 (aliases: hMultiplier) ld a, [hDivisor] ; $ff00+$b7 (aliases: hMultiplier)
ld [hQuotient], a ; $ff00+$b4 (aliases: hMultiplicand) ld [hQuotient], a ; $ff00+$b4 (aliases: hMultiplicand)
ld a, [hMathBuffer] ; $ff00+$b8 ld a, [hMathBuffer] ; $ff00+$b8
ld [$FF00+$b5], a ld [$ffb5], a
push hl push hl
ld hl, hQuotient ; $ffb4 (aliases: hMultiplicand) ld hl, hQuotient ; $ffb4 (aliases: hMultiplicand)
ld b, $2 ld b, $2
@ -105135,7 +105135,7 @@ Function104e93: ; 104e93 (41:4e93)
call Function104faf call Function104faf
ld a, [hQuotient] ; $ff00+$b4 (aliases: hMultiplicand) ld a, [hQuotient] ; $ff00+$b4 (aliases: hMultiplicand)
ld [hDivisor], a ; $ff00+$b7 (aliases: hMultiplier) ld [hDivisor], a ; $ff00+$b7 (aliases: hMultiplier)
ld a, [$FF00+$b5] ld a, [$ffb5]
ld [hMathBuffer], a ; $ff00+$b8 ld [hMathBuffer], a ; $ff00+$b8
pop hl pop hl
ret ret
@ -105157,7 +105157,7 @@ Function104ed6: ; 104ed6 (41:4ed6)
inc b inc b
jr z, .asm_104f2e jr z, .asm_104f2e
ld a, $8 ld a, $8
ld [$FF00+$b6], a ld [$ffb6], a
ld a, [hli] ld a, [hli]
ld e, a ld e, a
ld a, [hDivisor] ; $ff00+$b7 (aliases: hMultiplier) ld a, [hDivisor] ; $ff00+$b7 (aliases: hMultiplier)
@ -105192,10 +105192,10 @@ Function104ed6: ; 104ed6 (41:4ed6)
db $76 ;halt (prevents rgbasm from putting in an extra nop) db $76 ;halt (prevents rgbasm from putting in an extra nop)
nop nop
.asm_104f25 .asm_104f25
ld a, [$FF00+$b6] ld a, [$ffb6]
dec a dec a
jr z, .asm_104eee jr z, .asm_104eee
ld [$FF00+$b6], a ld [$ffb6], a
jr .asm_104f02 jr .asm_104f02
.asm_104f2e .asm_104f2e
ld a, $fe ld a, $fe
@ -105211,21 +105211,21 @@ Function104ed6: ; 104ed6 (41:4ed6)
ret ret
Function104f42: ; 104f42 (41:4f42) Function104f42: ; 104f42 (41:4f42)
ld a, [$FF00+$bc] ld a, [$ffbc]
or $2 or $2
ld [$FF00+$bc], a ld [$ffbc], a
ret ret
Function104f49: ; 104f49 (41:4f49) Function104f49: ; 104f49 (41:4f49)
ld a, [$FF00+$bc] ld a, [$ffbc]
or $1 or $1
ld [$FF00+$bc], a ld [$ffbc], a
ret ret
Function104f50: ; 104f50 (41:4f50) Function104f50: ; 104f50 (41:4f50)
ld a, [$FF00+$bc] ld a, [$ffbc]
or $80 or $80
ld [$FF00+$bc], a ld [$ffbc], a
ret ret
Function104f57: ; 104f57 (41:4f57) Function104f57: ; 104f57 (41:4f57)
@ -105237,8 +105237,8 @@ Function104f57: ; 104f57 (41:4f57)
ld hl, hQuotient ; $ffb4 (aliases: hMultiplicand) ld hl, hQuotient ; $ffb4 (aliases: hMultiplicand)
ld b, $2 ld b, $2
call Function104faf call Function104faf
ld a, [$FF00+$b5] ld a, [$ffb5]
ld [$FF00+$ba], a ld [$ffba], a
ld b, a ld b, a
pop hl pop hl
pop af pop af
@ -105295,13 +105295,13 @@ Function104faf: ; 104faf (41:4faf)
cpl cpl
ld b, a ld b, a
xor a xor a
ld [$FF00+$c5], a ld [$ffc5], a
call Function104d86 call Function104d86
.asm_104fd2 .asm_104fd2
inc b inc b
jr z, .asm_10501a jr z, .asm_10501a
ld a, $8 ld a, $8
ld [$FF00+$b6], a ld [$ffb6], a
.asm_104fd9 .asm_104fd9
ld d, $0 ld d, $0
.asm_104fdb .asm_104fdb
@ -105318,10 +105318,10 @@ Function104faf: ; 104faf (41:4faf)
bit 1, a bit 1, a
jr nz, .asm_104fe5 jr nz, .asm_104fe5
.asm_104fed .asm_104fed
ld a, [$FF00+$c5] ld a, [$ffc5]
ld d, a ld d, a
ld a, [rTIMA] ; $ff00+$5 ld a, [rTIMA] ; $ff00+$5
ld [$FF00+$c5], a ld [$ffc5], a
sub d sub d
cp $12 cp $12
jr c, .asm_104ffd jr c, .asm_104ffd
@ -105330,9 +105330,9 @@ Function104faf: ; 104faf (41:4faf)
.asm_104ffd .asm_104ffd
res 0, e res 0, e
.asm_104fff .asm_104fff
ld a, [$FF00+$b6] ld a, [$ffb6]
dec a dec a
ld [$FF00+$b6], a ld [$ffb6], a
jr z, .asm_10500b jr z, .asm_10500b
ld a, e ld a, e
rlca rlca
@ -105388,12 +105388,12 @@ Function105038: ; 105038 (41:5038)
and $f and $f
or b or b
ld c, a ld c, a
ld a, [$FF00+$c3] ld a, [$ffc3]
xor c xor c
and c and c
ld [$FF00+$c4], a ld [$ffc4], a
ld a, c ld a, c
ld [$FF00+$c3], a ld [$ffc3], a
ld a, $30 ld a, $30
ld [rJOYP], a ; $ff00+$0 ld [rJOYP], a ; $ff00+$0
ret ret
@ -108268,13 +108268,13 @@ Function117656: ; 117656
Function11765d: ; 11765d (45:765d) Function11765d: ; 11765d (45:765d)
ld a, [$FF00+$aa] ld a, [$ffaa]
push af push af
ld a, $1 ld a, $1
ld [$FF00+$aa], a ld [$ffaa], a
call Function11766b call Function11766b
pop af pop af
ld [$FF00+$aa], a ld [$ffaa], a
ret ret
Function11766b: ; 11766b (45:766b) Function11766b: ; 11766b (45:766b)
@ -115355,13 +115355,13 @@ Function170c8b: ; 170c8b
INCBIN "baserom.gbc",$170c98,$1719c8 - $170c98 INCBIN "baserom.gbc",$170c98,$1719c8 - $170c98
Function1719c8: ; 1719c8 (5c:59c8) Function1719c8: ; 1719c8 (5c:59c8)
ld a, [$FF00+$aa] ld a, [$ffaa]
push af push af
ld a, $1 ld a, $1
ld [$FF00+$aa], a ld [$ffaa], a
call Function1719d6 call Function1719d6
pop af pop af
ld [$FF00+$aa], a ld [$ffaa], a
ret ret
Function1719d6: ; 1719d6 (5c:59d6) Function1719d6: ; 1719d6 (5c:59d6)

View File

@ -151,13 +151,13 @@ Function17a770: ; 17a770 (5e:6770)
ret ret
Function17a781: ; 17a781 (5e:6781) Function17a781: ; 17a781 (5e:6781)
ld a, [$FF00+$aa] ld a, [$ffaa]
push af push af
ld a, $1 ld a, $1
ld [$FF00+$aa], a ld [$ffaa], a
call Functiona57 call Functiona57
pop af pop af
ld [$FF00+$aa], a ld [$ffaa], a
ret ret
Function17a78f: ; 17a78f (5e:678f) Function17a78f: ; 17a78f (5e:678f)
@ -261,7 +261,7 @@ Function17a81a: ; 17a81a (5e:681a)
ret ret
Function17a83c: ; 17a83c (5e:683c) Function17a83c: ; 17a83c (5e:683c)
ld a, [$FF00+$a9] ld a, [$ffa9]
and $f0 and $f0
ld c, a ld c, a
ld a, [hJoyPressed] ; $ff00+$a7 ld a, [hJoyPressed] ; $ff00+$a7