Redraw the monitor console if invoked while already in the monitor

This commit is contained in:
Ry 2022-10-27 19:13:50 -07:00
parent 7a3c1509a2
commit dafd947987

View File

@ -3,7 +3,7 @@
invoke_monitor: invoke_monitor:
; return if we're already in the monitor ; return if we're already in the monitor
cmp [0x000003FC], monitor_vsync_handler cmp [0x000003FC], monitor_vsync_handler
ifz ret ifz jmp invoke_monitor_aleady_in_monitor
; set the vsync handler to our own and reenable interrupts ; set the vsync handler to our own and reenable interrupts
mov [MONITOR_OLD_VSYNC_HANDLER], [0x000003FC] mov [MONITOR_OLD_VSYNC_HANDLER], [0x000003FC]
@ -63,6 +63,10 @@ exit_monitor:
ret ret
invoke_monitor_aleady_in_monitor:
call redraw_monitor_console
ret
info_str: data.str "fox32rom monitor" data.8 0x00 info_str: data.str "fox32rom monitor" data.8 0x00
#include "monitor/commands/commands.asm" #include "monitor/commands/commands.asm"