Rename GetFarHalfword to GetFarWord

Fixes #796
This commit is contained in:
Rangi
2021-01-09 15:16:05 -05:00
parent f773fd1dd8
commit 7d3ea88611
18 changed files with 40 additions and 40 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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