diff --git a/console.asm b/console.asm index 0f24c7c..b0bd67d 100644 --- a/console.asm +++ b/console.asm @@ -5,7 +5,7 @@ extern itoa section .rodata NL db 0xA - bufferLength equ 4096 + bufferLength equ 2 ERR_buffLen db " ERROR: Failed to complete printf(), reached buffer length!",0xA,0x0 lERR_buffLen equ $-ERR_buffLen-1 section .bss @@ -217,13 +217,11 @@ printf: cmp r14, bufferLength-1 jl .final - push r11 mov rax, NR_write mov rdi, 2 lea rsi, [rel ERR_buffLen] mov rdx, lERR_buffLen syscall - pop r11 .final: pop r14