mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Remove remaining raw $xxxx values, and replace "+ -1" with "- 1" (supported by rgbds 0.4.0)
This commit is contained in:
parent
7e92d5ba8c
commit
e4e0af4d67
29 changed files with 172 additions and 158 deletions
|
|
@ -133,8 +133,7 @@ LoadMapSpriteTilePatterns:
|
|||
jr nc, .fourTileSpriteVRAMAddr
|
||||
ld d, a
|
||||
dec d
|
||||
; Equivalent to multiplying $C0 (number of bytes in 12 tiles) times the VRAM
|
||||
; slot and adding the result to $8000 (the VRAM base address).
|
||||
; vSprites += [hVRAMSlot] * $C0 (the number of bytes in 12 tiles)
|
||||
.calculateVRAMAddrLoop
|
||||
add hl, bc
|
||||
dec d
|
||||
|
|
|
|||
|
|
@ -16,10 +16,10 @@ LoadWildData::
|
|||
jr z, .NoGrassData ; if no grass data, skip to surfing data
|
||||
push hl
|
||||
ld de, wGrassMons ; otherwise, load grass data
|
||||
ld bc, $0014
|
||||
ld bc, $14
|
||||
call CopyData
|
||||
pop hl
|
||||
ld bc, $0014
|
||||
ld bc, $14
|
||||
add hl, bc
|
||||
.NoGrassData
|
||||
ld a, [hli]
|
||||
|
|
@ -27,7 +27,7 @@ LoadWildData::
|
|||
and a
|
||||
ret z ; if no water data, we're done
|
||||
ld de, wWaterMons ; otherwise, load surfing data
|
||||
ld bc, $0014
|
||||
ld bc, $14
|
||||
jp CopyData
|
||||
|
||||
INCLUDE "data/wild/grass_water.asm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue