Added bios flush and simple hello command
This commit is contained in:
@@ -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
|
||||
; -------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user