diff options
author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2020-11-05 23:50:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-05 23:50:02 -0500 |
commit | 5db3bdd6551fad07066b669db1e44a6151aaa0b4 (patch) | |
tree | ab357b894c9457b3d1d38fd49300df34412168f8 /engine/math/bcd.asm | |
parent | ed03fc4f4a3287a01647e528abba27aac1937de0 (diff) | |
parent | 3de7ab601d465581accfe3ff171aeed2808c9647 (diff) |
Merge pull request #60 from Rangi42/master
Organize home and macro code
Diffstat (limited to 'engine/math/bcd.asm')
-rw-r--r-- | engine/math/bcd.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/math/bcd.asm b/engine/math/bcd.asm index 92bf6f17..5747a684 100644 --- a/engine/math/bcd.asm +++ b/engine/math/bcd.asm @@ -13,7 +13,7 @@ DivideBCD:: ldh [hDivideBCDBuffer+1], a ldh [hDivideBCDBuffer+2], a ld d, $1 -.mulBy10Loop +.mulBy10Loop ; multiply the divisor by 10 until the leading digit is nonzero ; to set up the standard long division algorithm ldh a, [hDivideBCDDivisor] @@ -108,7 +108,7 @@ DivideBCD:: ldh a, [hDivideBCDBuffer+2] ldh [hDivideBCDQuotient+2], a pop de - ld a, $6 + ld a, $6 sub d and a ret z |