projects
/
rrq
/
rrqforth.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d578692
)
restrict number parsing to current base
author
Ralph Ronnquist
<ralph.ronnquist@gmail.com>
Sun, 6 Jun 2021 07:06:52 +0000
(17:06 +1000)
committer
Ralph Ronnquist
<ralph.ronnquist@gmail.com>
Sun, 6 Jun 2021 07:06:52 +0000
(17:06 +1000)
compile.asm
patch
|
blob
|
history
diff --git
a/compile.asm
b/compile.asm
index 72a8763375abfa406e77a9816f1df9cd66d723ed..defb1acaa5dcfc25e59eac9acbe315c216b5c450 100644
(file)
--- a/
compile.asm
+++ b/
compile.asm
@@
-193,6
+193,8
@@
p_number_ALPHA:
cmp al,'Z'
jg p_number_alpha
sub al,'A'-10
+ cmp rax,qword [p_base_DFA]
+ jge p_number_BAD
jmp p_number_CONSUME
p_number_alpha:
cmp al,'a'
@@
-200,6
+202,8
@@
p_number_alpha:
cmp al,'z'
jg p_number_BAD
sub al,'a'-10
+ cmp rax,qword [p_base_DFA]
+ jge p_number_BAD
jmp p_number_CONSUME
p_number_BAD:
push qword 0