You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Resolve #428: Use HIGH(X) and LOW(X) instead of X / $100 and X % $100 or X >> 8 and X & $ff
This commit is contained in:
@@ -72,16 +72,16 @@ OldDMATransfer:: ; dfd
|
||||
call DelayFrame
|
||||
; add $100 to hl and de
|
||||
ld a, l
|
||||
add $100 % $100
|
||||
add LOW($100)
|
||||
ld l, a
|
||||
ld a, h
|
||||
adc $100 / $100
|
||||
adc HIGH($100)
|
||||
ld h, a
|
||||
ld a, e
|
||||
add $100 % $100
|
||||
add LOW($100)
|
||||
ld e, a
|
||||
ld a, d
|
||||
adc $100 / $100
|
||||
adc HIGH($100)
|
||||
ld d, a
|
||||
jr .loop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user