diff options
| author | PikalaxALT <pikalaxalt@gmail.com> | 2018-06-08 14:59:43 -0400 |
|---|---|---|
| committer | PikalaxALT <pikalaxalt@gmail.com> | 2018-06-08 14:59:43 -0400 |
| commit | e0102c42ecf581c7a85e627b63c9609972787581 (patch) | |
| tree | 0441372635932ef826f372f8e6ce96379db8537e /hram.asm | |
| parent | eec62f6e5bcfab7cbd5fdf2f8c2c2be6f3a6a97d (diff) | |
Multiply and Divide functions ported from Crystal
Diffstat (limited to 'hram.asm')
| -rw-r--r-- | hram.asm | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -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 |
