add term
This commit is contained in:
parent
3477bb5888
commit
25f7c12e97
@ -75,13 +75,20 @@ key_press_int:
|
|||||||
|
|
||||||
mov [rsp], r1
|
mov [rsp], r1
|
||||||
add rsp, 2
|
add rsp, 2
|
||||||
call print_char
|
call term_putc
|
||||||
sub rsp, 2
|
sub rsp, 2
|
||||||
|
|
||||||
.leave:
|
.leave:
|
||||||
reti
|
reti
|
||||||
|
|
||||||
print_char:
|
const term_width 20
|
||||||
|
|
||||||
|
term_y:
|
||||||
|
dw 0
|
||||||
|
term_x:
|
||||||
|
dw 0
|
||||||
|
|
||||||
|
term_putc:
|
||||||
mov [rsp], rbp
|
mov [rsp], rbp
|
||||||
add rsp, 2
|
add rsp, 2
|
||||||
mov rbp, rsp
|
mov rbp, rsp
|
||||||
@ -139,7 +146,7 @@ print_u16:
|
|||||||
|
|
||||||
mov [rsp], r0
|
mov [rsp], r0
|
||||||
add rsp, 2
|
add rsp, 2
|
||||||
call print_char
|
call term_putc
|
||||||
sub rsp, 2
|
sub rsp, 2
|
||||||
|
|
||||||
mov r2, [rsp-2]
|
mov r2, [rsp-2]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user