diff --git a/src/convert.asm b/src/convert.asm index 0368d6b..4408765 100644 --- a/src/convert.asm +++ b/src/convert.asm @@ -116,14 +116,8 @@ atoi: mov r9, rsi jmp .calcNum .calcBase_otherLoops: - mov rax, rsi - mov r9, r8 - dec r9 - .calcBaseLoop: - imul rsi - dec r9 - test r9, r9 - jnz .calcBaseLoop + mov rax, r9 + imul rsi mov r9, rax ; Calculate number