print font
This commit is contained in:
parent
0eb67c0e10
commit
142f3eb468
@ -48,6 +48,25 @@ _start:
|
||||
mov r0, 0
|
||||
mov [counter], r0
|
||||
|
||||
mov r1, 0
|
||||
.loop_body:
|
||||
mov r2, r1
|
||||
add r2, 32
|
||||
|
||||
add rsp, 4
|
||||
mov [rsp-4], r1
|
||||
mov [rsp-2], r2
|
||||
call term_putc
|
||||
mov r1, [rsp-4]
|
||||
sub rsp, 4
|
||||
|
||||
add r1, 1
|
||||
.loop_cond:
|
||||
cmp r1, 127 - 32
|
||||
mov r0, rfl
|
||||
and r0, fl_lt
|
||||
jnz r0, .loop_body
|
||||
|
||||
main_loop:
|
||||
hlt
|
||||
jmp main_loop
|
||||
@ -76,7 +95,7 @@ key_press_int:
|
||||
and r2, fl_eq
|
||||
jnz r2, .print_dot
|
||||
|
||||
add r1, 61 ; scancode letter -> ascii
|
||||
add r1, 93 ; scancode letter -> ascii
|
||||
mov [rsp], r1
|
||||
add rsp, 2
|
||||
call term_putc
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user