mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Use more lb
and other clean up
This commit is contained in:
parent
891627d4ba
commit
f8a9c37a00
106 changed files with 346 additions and 326 deletions
|
|
@ -161,7 +161,7 @@ CopyVideoDataDouble::
|
|||
|
||||
ClearScreenArea::
|
||||
; Clear tilemap area cxb at hl.
|
||||
ld a, $7f ; blank tile
|
||||
ld a, " " ; blank tile
|
||||
ld de, 20 ; screen width
|
||||
.y
|
||||
push hl
|
||||
|
|
@ -218,7 +218,7 @@ ClearScreen::
|
|||
ld bc, 20 * 18
|
||||
inc b
|
||||
coord hl, 0, 0
|
||||
ld a, $7f
|
||||
ld a, " "
|
||||
.loop
|
||||
ld [hli], a
|
||||
dec c
|
||||
|
|
|
|||
|
|
@ -1995,7 +1995,7 @@ LoadBikePlayerSpriteGraphics:: ; 105d (0:105d)
|
|||
LoadPlayerSpriteGraphicsCommon:: ; 1063 (0:1063)
|
||||
push de
|
||||
push hl
|
||||
ld bc,(BANK(RedSprite) << 8) + $0c
|
||||
lb bc, BANK(RedSprite), $0c
|
||||
call CopyVideoData
|
||||
pop hl
|
||||
pop de
|
||||
|
|
@ -2006,7 +2006,7 @@ LoadPlayerSpriteGraphicsCommon:: ; 1063 (0:1063)
|
|||
inc d
|
||||
.noCarry
|
||||
set 3,h
|
||||
ld bc,$050c
|
||||
lb bc, BANK(RedSprite), $0c
|
||||
jp CopyVideoData
|
||||
|
||||
; function to load data from the map header
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ Char51:: ; 1ab4 (0:1ab4)
|
|||
call ProtectedDelay3
|
||||
call ManualTextScroll
|
||||
coord hl, 1, 13
|
||||
ld bc,$0412
|
||||
lb bc, 4, 18
|
||||
call ClearScreenArea
|
||||
ld c,20
|
||||
call DelayFrames
|
||||
|
|
@ -306,7 +306,7 @@ Char49:: ; 1ad5 (0:1ad5)
|
|||
call ProtectedDelay3
|
||||
call ManualTextScroll
|
||||
coord hl, 1, 10
|
||||
ld bc,$0712
|
||||
lb bc, 7, 18
|
||||
call ClearScreenArea
|
||||
ld c,20
|
||||
call DelayFrames
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue