fall-through error in is_numeric, is_id_* wrong register

This commit is contained in:
janis 2025-10-28 16:47:54 +01:00
parent 1886231dcd
commit e8f6cfb44a
Signed by: janis
SSH key fingerprint: SHA256:bB1qbbqmDXZNT0KKD5c2Dfjg53JGhj7B3CFcLIzSqq8

View file

@ -354,7 +354,7 @@ is_numeric:
cmp dil, '0' cmp dil, '0'
jb .not_numeric jb .not_numeric
cmp dil, '9' cmp dil, '9'
jbe .is_numeric_ret ja .not_numeric
.is_numeric_ret: .is_numeric_ret:
mov rax, 1 mov rax, 1
ret ret
@ -370,9 +370,9 @@ is_id_continue:
call is_numeric call is_numeric
test rax, rax test rax, rax
jne .is_id_continue_ret jne .is_id_continue_ret
cmp cl, '_' cmp dil, '_'
je .is_id_continue_ret je .is_id_continue_ret
cmp cl, '-' cmp dil, '-'
je .is_id_continue_ret je .is_id_continue_ret
xor rax, rax xor rax, rax
ret ret
@ -385,7 +385,7 @@ is_id_start:
call is_alpha call is_alpha
test rax, rax test rax, rax
jne .is_ret jne .is_ret
cmp cl, '_' cmp dil, '_'
je .is_ret je .is_ret
xor rax, rax xor rax, rax
ret ret