INT 21 - DOS 3.x Internal - SET ERROR DATA VALUES              
  
    
      | 
         Input  | 
      DOS1 | 
      N | 
      DOS2 | 
      N | 
      
         DOS3  | 
      Y | 
      DOS5 | 
      Y | 
      
         Output  | 
     
    
      | 
         AX  | 
      5Dh | 
      0Ah | 
        | 
        | 
      AX | 
     
    
      | 
         BX  | 
        | 
        | 
        | 
        | 
      BX | 
     
    
      | 
         CX  | 
        | 
        | 
        | 
        | 
      CX | 
     
    
      | 
         DX  | 
        | 
        | 
        | 
        | 
      DX | 
     
    
      | 
         DS:SI  | 
      Pointer
        to ERROR Structure | 
        | 
      CF | 
     
   
 
ERROR Structure:
        00h     WORD    Extended Error Code
        02h     BYTE    Action Code
        03h     BYTE    Class Code
        04h     WORD    Locus Code
        06h     WORD    DX at time error occurred
        08h     WORD    SI at time error occurred
        0Ah     WORD    DI at time error occurred
        0Ch     WORD    DS at time error occurred
        0Eh     WORD    ES at time error occurred
        10h     WORD    Reserved
        12h     WORD    Computer ID (0 = Local)
        13h     WORD    Program ID (0 = Local) |