diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-08-26 14:37:42 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-08-26 14:37:42 -0400 |
commit | f8bebd4d2705c7f7dec2e1e9441b1748c3a9477d (patch) | |
tree | ae63642f842bbcaf525c9e747b5aad00d18a951b | |
parent | 557ce82073dc7c84ad701099713b00bcb7194860 (diff) |
Nested union for the Multiply+Divide inputs+results
-rw-r--r-- | hram.asm | 32 |
1 files changed, 15 insertions, 17 deletions
@@ -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 |