Replace hardware_constants.asm with the community-standard hardware.inc 5.0 (#1186)

This commit is contained in:
Rangi
2025-06-23 09:11:33 -04:00
committed by GitHub
parent ae7ee67d21
commit 4c540aa43b
149 changed files with 3444 additions and 3103 deletions

View File

@@ -94,41 +94,41 @@ GetFarWord::
FarCopyWRAM::
; copy bc bytes from hl to a:de
ldh [hTempBank], a
ldh a, [rSVBK]
ldh a, [rWBK]
push af
ldh a, [hTempBank]
ldh [rSVBK], a
ldh [rWBK], a
call CopyBytes
pop af
ldh [rSVBK], a
ldh [rWBK], a
ret
GetFarWRAMByte::
; retrieve a single byte from a:hl, and return it in a.
ldh [hTempBank], a
ldh a, [rSVBK]
ldh a, [rWBK]
push af
ldh a, [hTempBank]
ldh [rSVBK], a
ldh [rWBK], a
ld a, [hl]
ldh [hFarByte], a
pop af
ldh [rSVBK], a
ldh [rWBK], a
ldh a, [hFarByte]
ret
GetFarWRAMWord:: ; unreferenced
; retrieve a word from a:hl, and return it in hl.
ldh [hTempBank], a
ldh a, [rSVBK]
ldh a, [rWBK]
push af
ldh a, [hTempBank]
ldh [rSVBK], a
ldh [rWBK], a
ld a, [hli]
ld h, [hl]
ld l, a
pop af
ldh [rSVBK], a
ldh [rWBK], a
ret