FIX: itoa() not saving rbx
This commit is contained in:
2
core.asm
2
core.asm
@ -131,6 +131,7 @@ itoa:
|
|||||||
push rbp
|
push rbp
|
||||||
mov rbp, rsp
|
mov rbp, rsp
|
||||||
|
|
||||||
|
push rbx
|
||||||
push rsi
|
push rsi
|
||||||
push rdi
|
push rdi
|
||||||
mov rdi, rsi
|
mov rdi, rsi
|
||||||
@ -176,6 +177,7 @@ itoa:
|
|||||||
|
|
||||||
.quit:
|
.quit:
|
||||||
pop rax
|
pop rax
|
||||||
|
pop rbx
|
||||||
leave
|
leave
|
||||||
ret
|
ret
|
||||||
;----- exit(int exit_code) -----;
|
;----- exit(int exit_code) -----;
|
||||||
|
Reference in New Issue
Block a user