You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
@@ -27,7 +27,7 @@ GetDexNumber:: ; unreferenced
|
||||
ld bc, BASE_DATA_SIZE
|
||||
call AddNTimes
|
||||
ld a, BANK(BaseData)
|
||||
call GetFarHalfword
|
||||
call GetFarWord
|
||||
ld b, l
|
||||
ld c, h
|
||||
pop hl
|
||||
|
@@ -72,8 +72,8 @@ GetFarByte::
|
||||
ldh a, [hFarByte]
|
||||
ret
|
||||
|
||||
GetFarHalfword::
|
||||
; retrieve a halfword from a:hl, and return it in hl.
|
||||
GetFarWord::
|
||||
; retrieve a word from a:hl, and return it in hl.
|
||||
; bankswitch to new bank
|
||||
ldh [hTempBank], a
|
||||
ldh a, [hROMBank]
|
||||
@@ -81,7 +81,7 @@ GetFarHalfword::
|
||||
ldh a, [hTempBank]
|
||||
rst Bankswitch
|
||||
|
||||
; get halfword from new bank, put it in hl
|
||||
; get word from new bank, put it in hl
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
|
@@ -1008,7 +1008,7 @@ TextCommand_STRINGBUFFER::
|
||||
add hl, de
|
||||
add hl, de
|
||||
ld a, BANK(StringBufferPointers)
|
||||
call GetFarHalfword
|
||||
call GetFarWord
|
||||
ld d, h
|
||||
ld e, l
|
||||
ld h, b
|
||||
|
@@ -116,7 +116,7 @@ LoadTrainer_continue::
|
||||
ld hl, MAPOBJECT_SCRIPT_POINTER
|
||||
add hl, bc
|
||||
ld a, [wSeenTrainerBank]
|
||||
call GetFarHalfword
|
||||
call GetFarWord
|
||||
ld de, wTempTrainer
|
||||
ld bc, wTempTrainerEnd - wTempTrainer
|
||||
ld a, [wSeenTrainerBank]
|
||||
@@ -215,7 +215,7 @@ CheckTrainerFlag:: ; unreferenced
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
call GetMapScriptsBank
|
||||
call GetFarHalfword
|
||||
call GetFarWord
|
||||
ld d, h
|
||||
ld e, l
|
||||
push de
|
||||
|
Reference in New Issue
Block a user