From 51f167f25358f88229712f2faa8e61e83ad537a3 Mon Sep 17 00:00:00 2001 From: Ry Date: Mon, 25 Apr 2022 22:27:01 -0700 Subject: [PATCH] monitor: Attempt to speed up console scrolling --- monitor/console.asm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/monitor/console.asm b/monitor/console.asm index e8fa9c0..48eade4 100644 --- a/monitor/console.asm +++ b/monitor/console.asm @@ -62,7 +62,6 @@ print_character_to_monitor: print_character_to_monitor_cr: ; return to the beginning of the line mov.8 [MONITOR_CONSOLE_X], 0 - call redraw_monitor_console jmp print_character_to_monitor_end print_character_to_monitor_lf: ; 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 cmp.8 [MONITOR_CONSOLE_Y], MONITOR_CONSOLE_Y_SIZE ifgteq call scroll_monitor_console - call redraw_monitor_console jmp print_character_to_monitor_end print_character_to_monitor_bs: ; go back one character @@ -106,8 +104,9 @@ scroll_monitor_console: ; size mov r2, MONITOR_CONSOLE_X_SIZE mul r2, 28 + div r2, 4 - call copy_memory_bytes + call copy_memory_words mov.8 [MONITOR_CONSOLE_X], 0 mov.8 [MONITOR_CONSOLE_Y], 28