;; DOSSTRUCT.SCR
;; Current Directory Structure entry - All DOS versions
structure CDS fields
        CURR_PATH (byte,asciiz,67)
        FLAGS (word,bin)
        DISK_BLK (dword)
        INFO_PTR (dword,ptr)
        f1 (word)
        ROOT_OFS (word,dec)
; In DOS 4.0 and above there are a further 7 bytes of 
; IFS/SHARE fields

;; System File Table entry - All DOS versions
structure SFT fields
    C_HANDLES (word,dec)
    OPEN_MODE (word)
    ATTR_BYTE (byte)
    DEV_INFO (word)
    DPB_PTR (dword,ptr)
    ST_CLSTR (word,dec)
    F_TIME (word)
    F_DATE (word)
    F_SIZE (dword,dec)
    F_POS (dword,dec)
    LAST_RELCLSTR (word,dec)
    LAST_ABSCLSTR (word,dec)
    DIR_SCTR_NO (word,dec)
    DIR_ENTRY_NO (byte,dec)
    FCB_FNAME (byte,ascii,11)

;; Swappable DOS Area - DOS versions 3.1 to 3.3 - Used 
;;  in the form SDA_SEG:SDA_OFS->SDA3
structure SDA3 fields
         CRITERR_FLAG (byte,dec)
         INDOS_FLAG (byte,dec)
         DRIVE_NO (byte,dec)
         LASTERR_DUM (byte,,9)
         CURR_DTA   (dword,ptr)
         CURR_PSP   (word)
         SP_X_INT23 (word)
         LAST_RC (word)
         CURR_DRIVE (byte)
         EXTBRK (byte)
         INT21_AX (word)
         SHRNET_PSP (word)
         NET_MC_NO (word)
         MEM_BLK_DATA (word,,3)
         DONTKNOW1 (byte,,10)
         DD (byte,dec)
         MM (byte,dec)
         YY_1980 (word,dec)
         D_1_1_1980 (word,dec)
         D_O_W (byte,dec)
         DONTKNOW2 (byte,,3)
         DEV_REQ_H1 (byte,dump,26)
         DEV_DRVPTR (dword,ptr)
         DEV_REQ_H2 (byte,dump,22)
         DEV_REQ_H3 (byte,dump,22)
         DONTKNOW3 (byte,,8)
         CLOCK_TXREC (byte,,6)
         DONTKNOW3A (byte,,2)
         FN1 (byte,asciiz,128)
         FN2 (byte,asciiz,128)
         SDB (byte,dump,21)
         FOUND_FILE (byte,dump,32)
         DRIVE_CDSCOPY (byte,dump,81)
         FCB_FN1 (byte,ascii,11)
         DONTKNOW4 (byte)
         FCB_FN2 (byte,ascii,11)
         DONTKNOW5 (byte,,11)
         SRCH_ATTR (byte)
         OPEN_MODE (byte)
         DONTKNOW6 (byte,,3)
         CALL_TYPE (byte)
         DONTKNOW7 (byte,,9)
         TERM_PROCTYP (byte)
         DONTKNOW8 (byte,,2)
         CRITERR_DPBPTR (dword,ptr)
         INT21_SS_SP (dword,ptr)
         DONTKNOW9 (byte,,14)
         MEDIA_ID (byte)
         DONTKNOW10 (byte)
         CURR_SFTPTR (dword,ptr)
         DRIVE_CDSPTR (dword,ptr)
         DONTKNOW11 (byte,,8)
         JFT_PTR (dword,ptr)
         FN1_CSOFS (word,hex)
         FN2_CSOFS (word,hex)
         DONTKNOW12 (byte,,46)
         BX_DS_TMP (word,,3)
         PREV_STACK (dword,ptr)
         REN_SRCFILE (byte,,21)
         REN_FILE (byte,,32)

;; Swappable DOS Area - DOS versions 4.0 onwards - Used 
;;  in the form SDA_SEG:SDA_OFS->SDA4
structure SDA4 fields
         CRITERR_FLAG (byte,dec)
         INDOS_FLAG (byte,dec)
         DRIVE_NO (byte,dec)
         LASTERR_DUM (byte,,9)
         CURR_DTA   (dword,ptr)
         CURR_PSP   (word)
         SP_X_INT23 (word)
         LAST_RC (word)
         CURR_DRIVE (byte)
         EXTBRK (byte)
         DONTKNOW0 (word)
         INT21_AX (word)
         SHRNET_PSP (word)
         NET_MC_NO (word)
         MEM_BLK_DATA (word,,3)
         DONTKNOW1 (byte,,10)
         DD (byte,dec)
         MM (byte,dec)
         YY_1980 (word,dec)
         D_1_1_1980 (word,dec)
         D_O_W (byte,dec)
         DONTKNOW2 (byte,,3)
         DEV_REQ_H1 (byte,dump,30)
         DEV_DRVPTR (dword,ptr)
         DEV_REQ_H2 (byte,dump,22)
         DEV_REQ_H3 (byte,dump,30)
         DONTKNOW3 (byte,,6)
         CLOCK_TXREC (byte,,6)
         DONTKNOW3A (byte,,2)
         FN1 (byte,asciiz,128)
         FN2 (byte,asciiz,128)
         SDB (byte,dump,21)
         FOUND_FILE (byte,dump,32)
         DRIVE_CDSCOPY (byte,dump,88)
         FCB_FN1 (byte,ascii,11)
         DONTKNOW4 (byte)
         FCB_FN2 (byte,ascii,11)
         DONTKNOW5 (byte,,11)
         SRCH_ATTR (byte)
         OPEN_ATTR (byte)
         DONTKNOW6 (byte,,3)
         CALL_TYPE (byte)
         DONTKNOW7 (byte,,9)
         TERM_PROCTYP (byte)
         DONTKNOW8 (byte,,3)
         CRITERR_DPBPTR (dword,ptr)
         INT21_SS_SP (dword,ptr)
         DONTKNOW9 (byte,,16)
         MEDIA_ID (byte)
         DONTKNOW10 (byte,,5)
         CURR_SFTPTR (dword,ptr)
         DRIVE_CDSPTR (dword,ptr)
         DONTKNOW11 (byte,,8)
         JFT_PTR (dword,ptr)
         FN1_CSOFS (word,hex)
         FN2_CSOFS (word,hex)
         DONTKNOW12 (byte,,52)
         BX_DS_TMP (word,,3)
         PREV_STACK (dword,ptr)
         DONTKNOW13 (byte,,9)
         SPOP_ACT (word)
         SPOP_ATTR (word)
         SPOP_MODE (word)
         DONTKNOW14 (byte,,29)
         REN_SRCFILE (byte,,21)
         REN_FILE (byte,,32)
