diff --git a/console.asm b/console.asm index f45605b..e7cf03c 100644 --- a/console.asm +++ b/console.asm @@ -110,7 +110,9 @@ printf: push rdx push r8 push r10 + push rsi call itoa + pop rsi pop r10 pop r8 pop rdx diff --git a/core.asm b/core.asm index b3eb267..aaa9027 100644 --- a/core.asm +++ b/core.asm @@ -173,7 +173,6 @@ itoa: mov byte [rsi], 0 .quit: - pop rsi - mov rax, rsi + pop rax leave ret