diff --git a/src/convert.asm b/src/convert.asm index 4408765..e606725 100644 --- a/src/convert.asm +++ b/src/convert.asm @@ -59,14 +59,13 @@ atoi: ; nope, decimal mov rsi, 10 mov rdx, '9' - jmp .getLen + jmp .getLenLoop .skipBaseNotation: cmp rcx, 1 ;If '-' was found, using base is invalid je .quit add rdi, 2 ; -- Get length of numeric string + test if valid - .getLen: .getLenLoop: cmp byte [rdi], EOS je .calculate