Use more lb

and other clean up
This commit is contained in:
dannye 2015-08-05 16:20:29 -05:00
parent 891627d4ba
commit f8a9c37a00
106 changed files with 346 additions and 326 deletions

View file

@ -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

View file

@ -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

View file

@ -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