Added bios flush and simple hello command

This commit is contained in:
Joppe Blondel
2026-10-07 15:29:26 +02:00
parent 6454c1d978
commit c77469e1a1
3 changed files with 40 additions and 4 deletions
+12
View File
@@ -92,6 +92,8 @@ boot_copy:
jp try_getc
.org BIOS_PUTS
jp puts
.org BIOS_FLUSH
jp flush
; -------------------------------------------------------
; BIOS ENTRY
@@ -435,12 +437,22 @@ puts:
; -------------------------------------------------------
; Get a byte, block if unavailable
; returns a (byte)
; -------------------------------------------------------
getc:
call try_getc
jr c,getc
ret
; -------------------------------------------------------
; Wait till full tx buffer is empty
; uses a
; -------------------------------------------------------
flush:
ld a,(TX_COUNT)
cp 0
jr nz,flush
; -------------------------------------------------------
; Strings
; -------------------------------------------------------