print font

This commit is contained in:
sfja 2026-01-30 22:21:50 +01:00
parent 0eb67c0e10
commit 142f3eb468

View File

@ -48,6 +48,25 @@ _start:
mov r0, 0 mov r0, 0
mov [counter], r0 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: main_loop:
hlt hlt
jmp main_loop jmp main_loop
@ -76,7 +95,7 @@ key_press_int:
and r2, fl_eq and r2, fl_eq
jnz r2, .print_dot jnz r2, .print_dot
add r1, 61 ; scancode letter -> ascii add r1, 93 ; scancode letter -> ascii
mov [rsp], r1 mov [rsp], r1
add rsp, 2 add rsp, 2
call term_putc call term_putc