Replace hardware_constants.asm with the community-standard hardware.inc 5.0 (#1186)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user