NOESCAPE: run the default command if a load is interrupted
authorhpa <hpa>
Thu, 18 Aug 2005 21:15:01 +0000 (21:15 +0000)
committerhpa <hpa>
Thu, 18 Aug 2005 21:15:01 +0000 (21:15 +0000)
abort.inc

index 3c90597..e2cfcbb 100644 (file)
--- a/abort.inc
+++ b/abort.inc
@@ -61,12 +61,10 @@ abort_check:
                sti
                 call cwritestr                  ; Expects SI -> error msg
 
-               ; If onerror is set, jump to onerror, otherwise return
-               ; to the command prompt
-               mov cx,[OnerrorLen]
-               and cx,cx
-               jnz on_error
-               jmp enter_command               ; Return to command prompt
+               ; If NOESCAPE is active, then execute the default command
+               cmp byte [KbdFlags],0
+               jz auto_boot                    ; Default command
+               jmp enter_command               ; Otherwise command prompt
 
 ;
 ; End of abort_check