fox32rom: Fix a few mistakes with the monitor

This commit is contained in:
Ry 2022-04-18 15:27:27 -07:00
parent 92f23e91a6
commit 9769b10df6
2 changed files with 0 additions and 15 deletions

View File

@ -3,8 +3,6 @@
; print a string to the monitor
; inputs:
; r0: pointer to null-terminated string
; r1: foreground color
; r2: background color
; outputs:
print_string_to_monitor:
push r0
@ -23,20 +21,12 @@ print_string_to_monitor_loop:
; print a single character to the monitor
; inputs:
; r0: character
; r1: foreground color
; r2: background color
; outputs:
; none
print_character_to_monitor:
push r0
push r1
push r2
push r3
push r4
push r5
mov r3, r1
mov r4, r2
cmp.8 r0, 0 ; null
ifz jmp print_character_to_monitor_end
@ -80,9 +70,6 @@ print_character_to_monitor_lf:
ifgteq call scroll_monitor_console
call redraw_monitor_console
print_character_to_monitor_end:
pop r5
pop r4
pop r3
pop r2
pop r1
pop r0

View File

@ -61,8 +61,6 @@ monitor_event_loop:
key_down_event:
mov r0, r1
call scancode_to_ascii
mov r1, TEXT_COLOR
mov r2, 0x00000000
call print_character_to_monitor
call redraw_monitor_console_line
ret