From 25f7c12e9779719302e8b759c3dd58e6e82b8695 Mon Sep 17 00:00:00 2001 From: sfja Date: Tue, 27 Jan 2026 23:37:22 +0100 Subject: [PATCH] add term --- programs/boot.vc5asm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/programs/boot.vc5asm b/programs/boot.vc5asm index 61df3e7..e0bfff9 100644 --- a/programs/boot.vc5asm +++ b/programs/boot.vc5asm @@ -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]