summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-08-26 14:37:42 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2018-08-26 14:37:42 -0400
commitf8bebd4d2705c7f7dec2e1e9441b1748c3a9477d (patch)
treeae63642f842bbcaf525c9e747b5aad00d18a951b
parent557ce82073dc7c84ad701099713b00bcb7194860 (diff)
Nested union for the Multiply+Divide inputs+results
-rw-r--r--hram.asm32
1 files changed, 15 insertions, 17 deletions
diff --git a/hram.asm b/hram.asm
index d5c684564..805c459bd 100644
--- a/hram.asm
+++ b/hram.asm
@@ -62,38 +62,36 @@ ENDU ; ffb1
hEnemyMonSpeed:: dw ; ffb1
UNION ; ffb3
-; miscellaneous
- ds 9
-hMGStatusFlags:: db ; ffbc
+; math-related values
-NEXTU ; ffb3
+UNION ; ffb3
; inputs to Multiply
- ds 1
+ ds 1
hMultiplicand:: ds 3 ; ffb4
-hMultiplier:: db ; ffb7
-
+hMultiplier:: db ; ffb7
NEXTU ; ffb3
; result of Multiply
-hProduct:: ds 4 ; ffb3
-
+hProduct:: ds 4 ; ffb3
NEXTU ; ffb3
; inputs to Divide
-hDividend:: ds 4 ; ffb3
-hDivisor:: db ; ffb7
-
+hDividend:: ds 4 ; ffb3
+hDivisor:: db ; ffb7
NEXTU ; ffb3
; results of Divide
-hQuotient:: ds 4 ; ffb3
-hRemainder:: db ; ffb7
+hQuotient:: ds 4 ; ffb3
+hRemainder:: db ; ffb7
+ENDU ; ffb8
-NEXTU ; ffb3
-; math-related scratch space
- ds 5
hMathBuffer:: ds 5 ; ffb8
NEXTU ; ffb3
; PrintNum scratch space
hPrintNumBuffer:: ds 10 ; ffb3
+
+NEXTU ; ffb3
+; miscellaneous
+ ds 9
+hMGStatusFlags:: db ; ffbc
ENDU ; ffbd
hUsedSpriteIndex:: db ; ffbd