This commit is contained in:
sfja 2026-01-27 23:37:22 +01:00
parent 3477bb5888
commit 25f7c12e97

View File

@ -75,13 +75,20 @@ key_press_int:
mov [rsp], r1
add rsp, 2
call print_char
call term_putc
sub rsp, 2
.leave:
reti
print_char:
const term_width 20
term_y:
dw 0
term_x:
dw 0
term_putc:
mov [rsp], rbp
add rsp, 2
mov rbp, rsp
@ -139,7 +146,7 @@ print_u16:
mov [rsp], r0
add rsp, 2
call print_char
call term_putc
sub rsp, 2
mov r2, [rsp-2]