You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
comments for GetScriptByte
This commit is contained in:
18
main.asm
18
main.asm
@@ -85,7 +85,6 @@ DelayFrames: ; 0x468
|
|||||||
ret
|
ret
|
||||||
; 0x46f
|
; 0x46f
|
||||||
|
|
||||||
|
|
||||||
RTC: ; 46f
|
RTC: ; 46f
|
||||||
; update time and time-sensitive palettes
|
; update time and time-sensitive palettes
|
||||||
|
|
||||||
@@ -2248,25 +2247,34 @@ PushScriptPointer: ; 261f
|
|||||||
INCBIN "baserom.gbc",$2631,$26d4 - $2631
|
INCBIN "baserom.gbc",$2631,$26d4 - $2631
|
||||||
|
|
||||||
GetScriptByte: ; 0x26d4
|
GetScriptByte: ; 0x26d4
|
||||||
|
; Return byte at ScriptBank:ScriptPos in a.
|
||||||
|
|
||||||
push hl
|
push hl
|
||||||
push bc
|
push bc
|
||||||
|
|
||||||
ld a, [$ff9d]
|
ld a, [$ff9d]
|
||||||
push af
|
push af
|
||||||
ld a, [$d439]
|
|
||||||
rst $10
|
ld a, [ScriptBank]
|
||||||
ld hl, $d43a
|
rst Bankswitch
|
||||||
|
|
||||||
|
ld hl, ScriptPos
|
||||||
ld c, [hl]
|
ld c, [hl]
|
||||||
inc hl
|
inc hl
|
||||||
ld b, [hl]
|
ld b, [hl]
|
||||||
|
|
||||||
ld a, [bc]
|
ld a, [bc]
|
||||||
|
|
||||||
inc bc
|
inc bc
|
||||||
ld [hl], b
|
ld [hl], b
|
||||||
dec hl
|
dec hl
|
||||||
ld [hl], c
|
ld [hl], c
|
||||||
|
|
||||||
ld b, a
|
ld b, a
|
||||||
pop af
|
pop af
|
||||||
rst $10
|
rst Bankswitch
|
||||||
ld a, b
|
ld a, b
|
||||||
|
|
||||||
pop bc
|
pop bc
|
||||||
pop hl
|
pop hl
|
||||||
ret
|
ret
|
||||||
|
6
wram.asm
6
wram.asm
@@ -1115,6 +1115,12 @@ OTPartyMon5Nickname: ; d416
|
|||||||
OTPartyMon6Nickname: ; d421
|
OTPartyMon6Nickname: ; d421
|
||||||
ds 11
|
ds 11
|
||||||
|
|
||||||
|
SECTION "Scripting",BSS[$d439]
|
||||||
|
|
||||||
|
ScriptBank: ; d439
|
||||||
|
ds 1
|
||||||
|
ScriptPos: ; d43a
|
||||||
|
ds 2
|
||||||
|
|
||||||
SECTION "Player",BSS[$d472]
|
SECTION "Player",BSS[$d472]
|
||||||
PlayerGender: ; d472
|
PlayerGender: ; d472
|
||||||
|
Reference in New Issue
Block a user