summaryrefslogtreecommitdiff
path: root/hram.asm
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-06-08 14:59:43 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2018-06-08 14:59:43 -0400
commite0102c42ecf581c7a85e627b63c9609972787581 (patch)
tree0441372635932ef826f372f8e6ce96379db8537e /hram.asm
parenteec62f6e5bcfab7cbd5fdf2f8c2c2be6f3a6a97d (diff)
Multiply and Divide functions ported from Crystal
Diffstat (limited to 'hram.asm')
-rw-r--r--hram.asm26
1 files changed, 26 insertions, 0 deletions
diff --git a/hram.asm b/hram.asm
index c49ace3..0e26198 100644
--- a/hram.asm
+++ b/hram.asm
@@ -98,11 +98,37 @@ hSpriteOffset:: ; ffb1
db ; TODO
+UNION
+
+; ffb3
+hProduct::
+hDividend::
+ ; ds 4
+ db
+
+; ffb4
+hMultiplicand::
+hQuotient::
+ ds 3
+
+; ffb7
+hMultiplier::
+hDivisor::
+hRemainder::
+ db
+
+; ffb8
+hMathBuffer::
+ ds 5
+
+NEXTU
+
hPrintNumLeadingDigit:: db ; ffb3 digit one place-value up
hPrintNumDividend:: ds 3 ; ffb4 big-endian
hPrintNumDivisor:: ds 3 ; ffb7 big-endian
hPrintNumTemp:: ds 3 ; ffba big-endian
+ENDU
ds 19 ; TODO