$26d4 is GetScriptByte

This commit is contained in:
Bryan Bishop 2013-02-28 15:36:21 -06:00
parent 8f6f5a0060
commit e0ca5a243f
2 changed files with 245 additions and 219 deletions

View File

@ -2245,16 +2245,41 @@ PushScriptPointer: ; 261f
ret ret
; 2631 ; 2631
INCBIN "baserom.gbc",$2631,$26ef - $2631 INCBIN "baserom.gbc",$2631,$26d4 - $2631
GetScriptByte: ; 0x26d4
push hl
push bc
ld a, [$ff9d]
push af
ld a, [$d439]
rst $10
ld hl, $d43a
ld c, [hl]
inc hl
ld b, [hl]
ld a, [bc]
inc bc
ld [hl], b
dec hl
ld [hl], c
ld b, a
pop af
rst $10
ld a, b
pop bc
pop hl
ret
; 0x26ef
ObjectEvent: ; 0x26ef ObjectEvent: ; 0x26ef
jumptextfaceplayer ObjectEventText jumptextfaceplayer ObjectEventText
; 0x26f2 ; 0x26f2
ObjectEventText: ObjectEventText:
TX_FAR _ObjectEventText TX_FAR _ObjectEventText
db "@" db "@"
; 0x26f7
INCBIN "baserom.gbc",$26f7,$2bed-$26f7 INCBIN "baserom.gbc",$26f7,$2bed-$26f7
@ -2289,6 +2314,7 @@ GetMapHeaderPointer: ; 0x2bed
ld a, OlivineGym_MapHeader - OlivinePokeCenter1F_MapHeader ld a, OlivineGym_MapHeader - OlivinePokeCenter1F_MapHeader
call AddNTimes call AddNTimes
ret ret
; 0x2c04
GetMapHeaderMember: ; 0x2c04 GetMapHeaderMember: ; 0x2c04
; Extract data from the current map's header. ; Extract data from the current map's header.

File diff suppressed because it is too large Load Diff