From: Ralph Ronnquist Date: Sun, 6 Jun 2021 07:06:52 +0000 (+1000) Subject: restrict number parsing to current base X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=dca1b940cf2dbf0abca42ed9782013e5b3689ee1;p=rrq%2Frrqforth.git restrict number parsing to current base --- diff --git a/compile.asm b/compile.asm index 72a8763..defb1ac 100644 --- 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