diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-04-06 13:02:23 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-04-06 13:02:23 -0400 |
commit | 10909e6b437f6c137c794337e94f32cdc7fe9eb4 (patch) | |
tree | 22c38abe4cee26ce3f629ba509e4511398290b07 /home/copy.asm | |
parent | 1ec60810b8226943125c656ff8f0c3f947be7aaa (diff) |
hStackBank -> hTempBank
Diffstat (limited to 'home/copy.asm')
-rw-r--r-- | home/copy.asm | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/home/copy.asm b/home/copy.asm index 8e7d07c12..55951342c 100644 --- a/home/copy.asm +++ b/home/copy.asm @@ -54,10 +54,10 @@ ByteFill:: GetFarByte:: ; retrieve a single byte from a:hl, and return it in a. ; bankswitch to new bank - ldh [hStackBank], a + ldh [hTempBank], a ldh a, [hROMBank] push af - ldh a, [hStackBank] + ldh a, [hTempBank] rst Bankswitch ; get byte from new bank @@ -75,10 +75,10 @@ GetFarByte:: GetFarHalfword:: ; retrieve a halfword from a:hl, and return it in hl. ; bankswitch to new bank - ldh [hStackBank], a + ldh [hTempBank], a ldh a, [hROMBank] push af - ldh a, [hStackBank] + ldh a, [hTempBank] rst Bankswitch ; get halfword from new bank, put it in hl @@ -92,10 +92,10 @@ GetFarHalfword:: ret FarCopyWRAM:: - ldh [hStackBank], a + ldh [hTempBank], a ldh a, [rSVBK] push af - ldh a, [hStackBank] + ldh a, [hTempBank] ldh [rSVBK], a call CopyBytes @@ -105,10 +105,10 @@ FarCopyWRAM:: ret GetFarWRAMByte:: - ldh [hStackBank], a + ldh [hTempBank], a ldh a, [rSVBK] push af - ldh a, [hStackBank] + ldh a, [hTempBank] ldh [rSVBK], a ld a, [hl] ldh [hFarByte], a @@ -118,10 +118,10 @@ GetFarWRAMByte:: ret GetFarWRAMWord:: - ldh [hStackBank], a + ldh [hTempBank], a ldh a, [rSVBK] push af - ldh a, [hStackBank] + ldh a, [hTempBank] ldh [rSVBK], a ld a, [hli] ld h, [hl] |