mirror of https://github.com/pret/pokecrystal.git
$26d4 is GetScriptByte
This commit is contained in:
parent
8f6f5a0060
commit
e0ca5a243f
30
main.asm
30
main.asm
|
@ -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.
|
||||||
|
|
434
scripting.asm
434
scripting.asm
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue