2720d0ddff
Also handle more types of exceptions. *** First commit compatible with the C rewrite!! ***
18 lines
392 B
NASM
18 lines
392 B
NASM
; panic routines
|
|
|
|
; panic invoke the monitor
|
|
; inputs:
|
|
; r0: pointer to null-terminated string, or zero for none
|
|
; outputs:
|
|
; none, does not return
|
|
panic:
|
|
cmp r0, 0
|
|
ifz mov r0, panic_string
|
|
call debug_print
|
|
call print_string_to_monitor
|
|
call redraw_monitor_console
|
|
call invoke_monitor
|
|
rjmp 0
|
|
|
|
panic_string: data.str "Unspecified panic occurred!" data.8 10 data.8 0
|