hBuffer -> hStackBank and hFarByte

This commit is contained in:
Rangi
2020-04-06 12:52:46 -04:00
parent 9076d63d62
commit 1ec60810b8
7 changed files with 32 additions and 31 deletions

View File

@@ -2,10 +2,10 @@ FarCall_de::
; Call a:de.
; Preserves other registers.
ldh [hBuffer], a
ldh [hStackBank], a
ldh a, [hROMBank]
push af
ldh a, [hBuffer]
ldh a, [hStackBank]
rst Bankswitch
call .de
jr ReturnFarCall
@@ -18,10 +18,10 @@ FarCall_hl::
; Call a:hl.
; Preserves other registers.
ldh [hBuffer], a
ldh [hStackBank], a
ldh a, [hROMBank]
push af
ldh a, [hBuffer]
ldh a, [hStackBank]
rst Bankswitch
call FarCall_JumpToHL