use bochs magic breakpoints in the error printer
makes it easier to get a good state to do some investigating before reseting.
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
|
||||
%ifndef __INC_BOCHS_DEBUG_MAGIC
|
||||
|
||||
;
|
||||
; for things like the error printer, opperate differently when we are targeting a dev (bochs) build
|
||||
%define __STEVIA_DEV_DEBUG
|
||||
; port_e9_hack: enabled=1 needs to be set in bochsrc.txt/bxrc
|
||||
;
|
||||
%ifnmacro __BOCHS_PRINTC
|
||||
|
||||
@@ -22,7 +22,12 @@
|
||||
|
||||
%macro ERROR 1
|
||||
mov al, %1 ; al = 1 byte error code mapped to ascii values
|
||||
%ifdef __STEVIA_DEV_DEBUG
|
||||
__BOCHS_MAGIC_DEBUG
|
||||
%endif
|
||||
jmp error
|
||||
|
||||
|
||||
%endmacro
|
||||
|
||||
; pass error as ascii character in al, errors a-zA-Z or 0-9
|
||||
|
||||
Reference in New Issue
Block a user