pokered/scripts/battlecenterm.asm
U-Daniel-PC\Daniel f4a31b3e0b Rename/organize part 2 of 4
rename functions, clean up address/wram comments, other misc
only broken up so that all changes are viewable on github
2015-07-03 14:38:12 -05:00

38 lines
644 B
NASM
Executable file

BattleCenterMScript: ; 4fd10 (13:7d10)
call EnableAutoTextBoxDrawing
ld a, [$ffaa]
cp $2
ld a, $8
jr z, .asm_4fd1d
ld a, $c
.asm_4fd1d
ld [$ff8d], a
ld a, $1
ld [$ff8c], a
call SetSpriteFacingDirection
ld hl, wd72d
bit 0, [hl]
set 0, [hl]
ret nz
ld hl, wSpriteStateData2 + $14
ld a, $8
ld [hli], a
ld a, $a
ld [hl], a
ld a, $8
ld [wSpriteStateData1 + $19], a
ld a, [$ffaa]
cp $2
ret z
ld a, $7
ld [wSpriteStateData2 + $15], a
ld a, $c
ld [wSpriteStateData1 + $19], a
ret
BattleCenterMTextPointers: ; 4fd4c (13:7d4c)
dw BattleCenterMText1
BattleCenterMText1: ; 4fd4e (13:7d4e)
TX_FAR _BattleCenterMText1
db "@"