summaryrefslogtreecommitdiff
path: root/home/math.asm
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2014-02-04 07:25:51 -0800
committerBryan Bishop <kanzure@gmail.com>2014-02-04 07:25:51 -0800
commit1202e68d2f695d4b91d184bd43139dbe10cb8131 (patch)
tree504954f57273cae14de4618a82770c4e4e2e5dd9 /home/math.asm
parent80465fc6e6f1455f4ae65b5c0db54b9953ca0cc5 (diff)
parent7c02c2bb31317c31446a5907fe68f26dabb4858f (diff)
Merge pull request #228 from yenatch/nuke-globals
Nuke globals.asm
Diffstat (limited to 'home/math.asm')
-rw-r--r--home/math.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/home/math.asm b/home/math.asm
index 87a00c412..5e1cbdb50 100644
--- a/home/math.asm
+++ b/home/math.asm
@@ -1,4 +1,4 @@
-SimpleMultiply: ; 3105
+SimpleMultiply:: ; 3105
; Return a * c.
and a
ret z
@@ -15,7 +15,7 @@ SimpleMultiply: ; 3105
; 3110
-SimpleDivide: ; 3110
+SimpleDivide:: ; 3110
; Divide a by c. Return quotient b and remainder a.
ld b, 0
.loop
@@ -28,7 +28,7 @@ SimpleDivide: ; 3110
; 3119
-Multiply: ; 3119
+Multiply:: ; 3119
; Multiply hMultiplicand (3 bytes) by hMultiplier. Result in hProduct.
; All values are big endian.
push hl
@@ -42,7 +42,7 @@ Multiply: ; 3119
; 3124
-Divide: ; 3124
+Divide:: ; 3124
; Divide hDividend length b (max 4 bytes) by hDivisor. Result in hQuotient.
; All values are big endian.
push hl
@@ -64,7 +64,7 @@ Divide: ; 3124
; 3136
-SubtractSigned: ; 3136
+SubtractSigned:: ; 3136
; Return a - b, sign in carry.
sub b
ret nc