How microsoft/ms-dos works
This tree is a slice of the MS-DOS 4.00 source, not a single application. Its visible product surface includes command-line utilities, disk setup and selection, memory management, and disk-cache control. The clearest user-to-result flow in the excerpts is BACKUP: it initializes, validates drives and paths, parses options, then performs backup work. The graph preserves the other substantial command and system modules listed in the source index; their internal links are mostly omitted because their call relationships were not shown.
Main entry points: BACKUP.C Backup utility · RESTPARS.C Restore parsing · MAIN.C Partition manager · EMM40.C Expanded memory manager
Components 24
DOS Commands
- Backup utility
v4.0/src/CMD/BACKUP/BACKUP.C - Backup options
v4.0/src/CMD/BACKUP/BACKPARS.H - File attributes
v4.0/src/CMD/ATTRIB/ATTRIB.C - Attribute options
v4.0/src/CMD/ATTRIB/PARSE.H - File comparison
v4.0/src/CMD/FC/FC.C - Restore parsing
v4.0/src/CMD/RESTORE/RESTPARS.C - Restore files
v4.0/src/CMD/RESTORE/RTFILE.C - Restore legacy data
v4.0/src/CMD/RESTORE/RTOLD1.C - Device assignment
v4.0/src/CMD/FILESYS/FILESYS.C - Drive joining
v4.0/src/CMD/JOIN/JOIN.C - Memory reporting
v4.0/src/CMD/MEM/MEM.C - File replacement
v4.0/src/CMD/REPLACE/REPLACE.C - Drive substitution
v4.0/src/CMD/SUBST/SUBST.C
Disk Utilities
- Partition manager
v4.0/src/CMD/FDISK/MAIN.C - Disk call interface
v4.0/src/CMD/FDISK/DOSCALL.H - Disk status transfer
v4.0/src/SELECT/GET_STAT.C - Disk interrupt support
v4.0/src/SELECT/INT13.C
Memory and Cache
- Expanded memory manager
v4.0/src/MEMM/EMM/EMM40.C - EMM page functions
v4.0/src/MEMM/EMM/EMMFUNCT.C - DMA page mapping
v4.0/src/MEMM/MEMM/MAPDMA.C - Cache control
v4.0/src/DEV/SMARTDRV/FLUSH13.C
System Support
- DOS runtime helpers
v4.0/src/INC/ERRTST.C - Shared message definitions
v4.0/src/H/UTILMID.H
Other components
- DOS user
Connections 14
- DOS user → Backup utility: runs command
- Backup utility → Backup options: parses options
- Backup utility → Backup utility: initializes and validates
v4.0/src/CMD/BACKUP/BACKUP.C - DOS user → File attributes: runs command
- DOS user → File comparison: runs command
- DOS user → Partition manager: runs command
- Partition manager → Disk call interface: uses disk calls
- DOS user → Device assignment: runs command
- DOS user → Restore parsing: runs command
- Restore parsing → Restore files: dispatches restore
- Restore parsing → Restore legacy data: dispatches restore
- Disk status transfer → Disk interrupt support: reads disk status
- Expanded memory manager → EMM page functions: uses page functions
- DMA page mapping → Expanded memory manager: remaps EMM pages