Add space between arguments in assembly instructions and remove redundant a in instructions like add a, x

This commit is contained in:
xCrystal 2017-12-30 01:54:27 +01:00
parent 94b9a86c8b
commit 237aeb8fbd
50 changed files with 7221 additions and 7221 deletions

View file

@ -1,33 +1,33 @@
LoadWildData:
ld hl,WildDataPointers
ld a,[wCurMap]
ld hl, WildDataPointers
ld a, [wCurMap]
; get wild data for current map
ld c,a
ld b,0
add hl,bc
add hl,bc
ld a,[hli]
ld h,[hl]
ld l,a ; hl now points to wild data for current map
ld a,[hli]
ld [wGrassRate],a
ld c, a
ld b, 0
add hl, bc
add hl, bc
ld a, [hli]
ld h, [hl]
ld l, a ; hl now points to wild data for current map
ld a, [hli]
ld [wGrassRate], a
and a
jr z,.NoGrassData ; if no grass data, skip to surfing data
jr z, .NoGrassData ; if no grass data, skip to surfing data
push hl
ld de,wGrassMons ; otherwise, load grass data
ld bc,$0014
ld de, wGrassMons ; otherwise, load grass data
ld bc, $0014
call CopyData
pop hl
ld bc,$0014
add hl,bc
ld bc, $0014
add hl, bc
.NoGrassData
ld a,[hli]
ld [wWaterRate],a
ld a, [hli]
ld [wWaterRate], a
and a
ret z ; if no water data, we're done
ld de,wWaterMons ; otherwise, load surfing data
ld bc,$0014
ld de, wWaterMons ; otherwise, load surfing data
ld bc, $0014
jp CopyData
INCLUDE "data/wild_mons.asm"