diff options
author | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-08-24 01:14:04 -0500 |
---|---|---|
committer | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-08-24 01:14:04 -0500 |
commit | ee01f1a7f1e10be78bcceb4f0f42aa352a6a588f (patch) | |
tree | 271e7034ee94e4447784db5b31bf8e332b30fbba /newasm/parsers/decimal.s | |
parent | 80d8f3ae48255f786bd4d52a1819ea0c339f6946 (diff) |
Diffstat (limited to 'newasm/parsers/decimal.s')
-rw-r--r-- | newasm/parsers/decimal.s | 4 |
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 |