monitor: Attempt to speed up console scrolling

This commit is contained in:
Ry 2022-04-25 22:27:01 -07:00
parent b87b5a3448
commit 51f167f253

View File

@ -62,7 +62,6 @@ print_character_to_monitor:
print_character_to_monitor_cr: print_character_to_monitor_cr:
; return to the beginning of the line ; return to the beginning of the line
mov.8 [MONITOR_CONSOLE_X], 0 mov.8 [MONITOR_CONSOLE_X], 0
call redraw_monitor_console
jmp print_character_to_monitor_end jmp print_character_to_monitor_end
print_character_to_monitor_lf: print_character_to_monitor_lf:
; return to the beginning of the line and increment the line ; return to the beginning of the line and increment the line
@ -71,7 +70,6 @@ print_character_to_monitor_lf:
; scroll the display if needed ; scroll the display if needed
cmp.8 [MONITOR_CONSOLE_Y], MONITOR_CONSOLE_Y_SIZE cmp.8 [MONITOR_CONSOLE_Y], MONITOR_CONSOLE_Y_SIZE
ifgteq call scroll_monitor_console ifgteq call scroll_monitor_console
call redraw_monitor_console
jmp print_character_to_monitor_end jmp print_character_to_monitor_end
print_character_to_monitor_bs: print_character_to_monitor_bs:
; go back one character ; go back one character
@ -106,8 +104,9 @@ scroll_monitor_console:
; size ; size
mov r2, MONITOR_CONSOLE_X_SIZE mov r2, MONITOR_CONSOLE_X_SIZE
mul r2, 28 mul r2, 28
div r2, 4
call copy_memory_bytes call copy_memory_words
mov.8 [MONITOR_CONSOLE_X], 0 mov.8 [MONITOR_CONSOLE_X], 0
mov.8 [MONITOR_CONSOLE_Y], 28 mov.8 [MONITOR_CONSOLE_Y], 28