aboutsummaryrefslogtreecommitdiff
path: root/newasm/parsers/decimal.s
diff options
context:
space:
mode:
Diffstat (limited to 'newasm/parsers/decimal.s')
-rw-r--r--newasm/parsers/decimal.s4
1 files changed, 1 insertions, 3 deletions
diff --git a/newasm/parsers/decimal.s b/newasm/parsers/decimal.s
index a1516d2..cc9dff4 100644
--- a/newasm/parsers/decimal.s
+++ b/newasm/parsers/decimal.s
@@ -5,8 +5,6 @@
.type decimal, %function
.global decimal
-// 1 not a digit
-
// R4 input stream
// R2 output value
@@ -35,5 +33,5 @@ loop: LDRB R0, [R4] // get another char
MULS R2, R3 // shift result by one decimal place
ADDS R2, R0 // accumulate into R2
B loop // keep getting digits
-bad: MOVS R0, #1 // return code 1 (not a digit)
+bad: MOVS R0, #5 // return code 5 (not a digit)
BX LR