aboutsummaryrefslogtreecommitdiffstats
path: root/engine/predefs.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-05-31 16:25:16 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2021-05-31 16:25:16 -0400
commitf9ae7b1240863b4311d24944ae7ec3c1d9b24507 (patch)
tree2b56ef44fa89d464da16399f8432cd4807ec7d64 /engine/predefs.asm
parentStart reformatting WRAM labels (diff)
downloadpokeyellow-f9ae7b1240863b4311d24944ae7ec3c1d9b24507.tar.gz
pokeyellow-f9ae7b1240863b4311d24944ae7ec3c1d9b24507.tar.xz
pokeyellow-f9ae7b1240863b4311d24944ae7ec3c1d9b24507.zip
More WRAM label cleanup (still needs UNIONs and renaming)
Diffstat (limited to 'engine/predefs.asm')
-rw-r--r--engine/predefs.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/predefs.asm b/engine/predefs.asm
index a9877739..faf0029e 100644
--- a/engine/predefs.asm
+++ b/engine/predefs.asm
@@ -1,20 +1,20 @@
GetPredefPointer::
-; Store the contents of the register
-; pairs (hl, de, bc) at wPredefRegisters.
+; Back up the contents of the registers (hl, de, bc).
; Then put the bank and address of predef
; wPredefID in [wPredefBank] and hl.
ld a, h
- ld [wPredefRegisters], a
+ ld [wPredefHL], a
ld a, l
- ld [wPredefRegisters + 1], a
+ ld [wPredefHL + 1], a
- ld hl, wPredefRegisters + 2
+ ld hl, wPredefDE
ld a, d
ld [hli], a
ld a, e
ld [hli], a
+ ASSERT wPredefDE + 2 == wPredefBC
ld a, b
ld [hli], a
ld [hl], c