<--- Turn the page
   
(contents page)
   
Turn the page ---> UndocumentedGetting ERROR LEVEL a different way |
|
Listing 1: push ds mov ax,5D06h int 21h add si,14h lodsw pop ds Service 5Dh, subservice 06h returns the segmented address of this table as DS:SI. Move to offset 14h (si + 14h) and get the word (2 bytes) at this position. ; ah = 00 normal voluntary end ; = 01 termination by MS-DOS due to a keyboard break (Ctrl-C) ; = 02 termination by MS-DOS due to a critical error ; = 03 normal voluntary end due to a TSR ; al = RC (error level)See Ralf Browns interrupt list for more on this table. ¥ |
<--- Turn the page
   
(contents page)
   
Turn the page ---> Page 13