├── v4.0 ├── src │ ├── H │ │ ├── MAKEFILE │ │ ├── COPYRIGH.H │ │ ├── VERSION.H │ │ ├── VERSIONC.H │ │ ├── CDS.H │ │ └── INTERNAT.H │ ├── LIB │ │ ├── MAKEFILE │ │ ├── LIB.EXE │ │ └── MEM.LIB │ ├── BIOS │ │ ├── LOCSCR │ │ ├── MSBIO.LNK │ │ ├── MSLOAD.INC │ │ ├── PUSHPOP.INC │ │ ├── DEVMARK.INC │ │ ├── MSDSKPR.INC │ │ ├── JUMPMAC.INC │ │ └── DEFEMS.INC │ ├── CMD │ │ ├── MORE │ │ │ ├── MORE.LNK │ │ │ ├── MORE.SKL │ │ │ ├── MAKEFILE │ │ │ └── MORE.INC │ │ ├── RESTORE │ │ │ ├── MESSAGES.INC │ │ │ ├── RTT3.C │ │ │ ├── RESTORE.LNK │ │ │ └── DIRECT.H │ │ ├── FIND │ │ │ ├── FIND.LNK │ │ │ ├── FINDMES.ASM │ │ │ ├── FIND.SKL │ │ │ └── MAKEFILE │ │ ├── SORT │ │ │ ├── SORT.LNK │ │ │ ├── SORT.SKL │ │ │ └── MAKEFILE │ │ ├── SYS │ │ │ ├── SYS.LNK │ │ │ ├── SYS1.ASM │ │ │ ├── SYS2.ASM │ │ │ └── SYSHDR.INC │ │ ├── LABEL │ │ │ ├── LABEL.LNK │ │ │ └── MAKEFILE │ │ ├── XCOPY │ │ │ ├── XCOPY.LNK │ │ │ └── MAKEFILE │ │ ├── TREE │ │ │ ├── TREE.LNK │ │ │ ├── TREE.ASM │ │ │ ├── TREE.SKL │ │ │ ├── TREEMS.INC │ │ │ └── MAKEFILE │ │ ├── PRINT │ │ │ ├── PRINT.LNK │ │ │ ├── PRIDEFS.INC │ │ │ └── PRINT_RM.ASM │ │ ├── MEM │ │ │ ├── MEM.C │ │ │ └── MEM.SKL │ │ ├── JOIN │ │ │ ├── JOIN.C │ │ │ ├── JOIN.LNK │ │ │ └── JOIN.SKL │ │ ├── COMP │ │ │ ├── COMP.LNK │ │ │ ├── COMP2.ASM │ │ │ └── MAKEFILE │ │ ├── DISKCOMP │ │ │ └── DISKCOMP.LNK │ │ ├── FDISK │ │ │ ├── FDISK.C │ │ │ ├── INT13.C │ │ │ ├── C_MENUS.C │ │ │ ├── D_MENUS.C │ │ │ ├── FDISK.MSG │ │ │ ├── FDISKMSG.C │ │ │ ├── MAINMENU.C │ │ │ ├── MESSAGES.C │ │ │ ├── FDISK5.SKL │ │ │ ├── FDISK.SKL │ │ │ ├── REBOOT.ASM │ │ │ ├── FDISK.LNK │ │ │ ├── TEST.H │ │ │ ├── PRINT.H │ │ │ └── BOOTREC.ASM │ │ ├── MODE │ │ │ ├── MAIN.ASM │ │ │ ├── MODE.SKL │ │ │ ├── DISPLAY.ASM │ │ │ ├── INVOKE.ASM │ │ │ ├── MODECOM.ASM │ │ │ ├── MODECP.ASM │ │ │ ├── MODEMES.ASM │ │ │ ├── MODEVID.ASM │ │ │ ├── RESCODE.ASM │ │ │ ├── SCRNTAB.ASM │ │ │ ├── TYPAMAT.ASM │ │ │ ├── MODECPRO.INC │ │ │ ├── MODEDEFS.INC │ │ │ ├── MODEECHO.ASM │ │ │ ├── MODELENG.ASM │ │ │ ├── MODEPARS.ASM │ │ │ ├── MODEPRIN.ASM │ │ │ ├── MODEQUAT.INC │ │ │ ├── MODESCRN.ASM │ │ │ ├── MODESUBS.INC │ │ │ ├── MODE.LNK │ │ │ ├── PARSHELL.ASM │ │ │ └── COMMON.STC │ │ ├── SUBST │ │ │ ├── SUBST.C │ │ │ └── SUBST.LNK │ │ ├── ATTRIB │ │ │ ├── ATTRIB.C │ │ │ ├── ATTRIB.H │ │ │ ├── ATTRIB.LNK │ │ │ └── MAKEFILE │ │ ├── EDLIN │ │ │ ├── EDLIN.LNK │ │ │ └── EDLSTDSW.INC │ │ ├── CHKDSK │ │ │ ├── CHKINIT.ASM │ │ │ ├── CHKDSK.FLS │ │ │ ├── CHKDSK.LNK │ │ │ └── CHKSEG.INC │ │ ├── FORMAT │ │ │ ├── FOREXEC.ASM │ │ │ ├── FORINIT.ASM │ │ │ ├── FORLABEL.ASM │ │ │ ├── FILESIZE.INC │ │ │ ├── FORMAT.LNK │ │ │ └── FORSWTCH.INC │ │ ├── GRAPHICS │ │ │ ├── GRCTRL.ASM │ │ │ ├── GRINST.ASM │ │ │ ├── GRAPHICS.OB │ │ │ ├── GRBWPRT.ASM │ │ │ ├── GRINT2FH.ASM │ │ │ ├── GRAPHICS.LNK │ │ │ ├── GRPARSE.EXT │ │ │ ├── GRPARMS.EXT │ │ │ ├── GRCPSD.EXT │ │ │ ├── GRBWPRT.EXT │ │ │ ├── GRCOLPRT.EXT │ │ │ ├── GRINT2FH.EXT │ │ │ └── GRLOAD3.EXT │ │ ├── IFSFUNC │ │ │ ├── IFSINIT.ASM │ │ │ ├── IFSERROR.ASM │ │ │ └── IFSFUNC.LNK │ │ ├── REPLACE │ │ │ ├── REPLACE.C │ │ │ ├── REPLACE.LNK │ │ │ └── MAKEFILE │ │ ├── EXE2BIN │ │ │ ├── EXE2BIN.LNK │ │ │ └── E2BEQU.INC │ │ ├── FASTOPEN │ │ │ ├── FASTINIT.ASM │ │ │ ├── FASTOPEN.TXT │ │ │ ├── FASTOPEN.LNK │ │ │ ├── FASTSEGS.INC │ │ │ └── MAKEFILE │ │ ├── GRAFTABL │ │ │ ├── GRTABCF.ASM │ │ │ ├── GRTABML.ASM │ │ │ ├── GRTABNO.ASM │ │ │ ├── GRTABPO.ASM │ │ │ ├── GRTABUS.ASM │ │ │ └── GRAFTABL.LNK │ │ ├── KEYB │ │ │ ├── KEYB.LNK │ │ │ ├── KEYBI2F.INC │ │ │ ├── KEYBI48.INC │ │ │ ├── KEYBI9.INC │ │ │ ├── KEYBCPSD.INC │ │ │ ├── COMMSUBS.INC │ │ │ ├── KEYBEQU.INC │ │ │ ├── KEYBTBBL.INC │ │ │ └── KEYBI9C.INC │ │ ├── RECOVER │ │ │ ├── RECOVER.LNK │ │ │ └── RECOVER.SKL │ │ ├── DISKCOPY │ │ │ └── DISKCOPY.LNK │ │ ├── COMMAND │ │ │ ├── COMSW.ASM │ │ │ ├── COMMAND.LNK │ │ │ ├── IFEQU.ASM │ │ │ ├── ENVDATA.ASM │ │ │ ├── FORDATA.ASM │ │ │ └── IPARSE.ASM │ │ ├── FC │ │ │ ├── FC.LNK │ │ │ ├── ERROR.C │ │ │ ├── MAXMIN.ASM │ │ │ ├── FC.H │ │ │ ├── NTOI.C │ │ │ ├── MESSAGES.ASM │ │ │ ├── INTERNAT.H │ │ │ └── FGETL.C │ │ ├── DEBUG │ │ │ ├── DEBUG.LNK │ │ │ ├── SYSVER.FAL │ │ │ ├── SYSVER.INC │ │ │ └── SYSVER.TRU │ │ ├── SHARE │ │ │ ├── SHARE.LNK │ │ │ └── SHARE.SKL │ │ ├── ASSIGN │ │ │ ├── ASSIGN.SKL │ │ │ └── MAKEFILE │ │ ├── APPEND │ │ │ ├── MAKEFILE │ │ │ ├── APPEND.SKL │ │ │ └── APPENDM.ASM │ │ ├── NLSFUNC │ │ │ ├── NLSFUNC.SKL │ │ │ ├── FUNCDBCS.INC │ │ │ ├── DOESMAC.INC │ │ │ ├── FUNCPARM.INC │ │ │ └── MAKEFILE │ │ ├── FILESYS │ │ │ ├── FILESYS.SKL │ │ │ └── MAKEFILE │ │ └── BACKUP │ │ │ └── MAKEFILE │ ├── DEV │ │ ├── DISPLAY │ │ │ ├── ZERO.DAT │ │ │ ├── DISPLAY.LNK │ │ │ ├── INIT.ASM │ │ │ ├── DEF-EQU.INC │ │ │ ├── DISPLAY.ASM │ │ │ ├── MACROS.INC │ │ │ ├── PARSER.ASM │ │ │ ├── TABLES.INC │ │ │ ├── WRITE.INC │ │ │ ├── CPS-FUNC.INC │ │ │ ├── F-PARSER.INC │ │ │ ├── INT2FCOM.INC │ │ │ ├── EGA │ │ │ │ ├── EGA.LNK │ │ │ │ ├── COPYRIGH.ASM │ │ │ │ └── CPI-HEAD.ASM │ │ │ ├── LCD │ │ │ │ ├── LCD.LNK │ │ │ │ ├── COPYRIGH.ASM │ │ │ │ ├── FONT-R3.ASM │ │ │ │ └── MAKEFILE │ │ │ ├── DISPMES.ASM │ │ │ └── DISPLAY.SKL │ │ ├── PRINTER │ │ │ ├── 4201 │ │ │ │ ├── MAKEFILE │ │ │ │ ├── 4201.CPI │ │ │ │ └── 4201.MAK │ │ │ ├── 4208 │ │ │ │ ├── MAKEFILE │ │ │ │ ├── 4208.CPI │ │ │ │ ├── 4208-CPY.ASM │ │ │ │ └── 4208.MAK │ │ │ ├── 5202 │ │ │ │ └── MAKEFILE │ │ │ ├── ZERO.DAT │ │ │ ├── CPSPI.ASM │ │ │ ├── PARSE4E.ASM │ │ │ ├── PARSER.ASM │ │ │ ├── PRINTER.LNK │ │ │ ├── PRINTER.SKL │ │ │ ├── MAKEFILE │ │ │ └── PTRMSG.ASM │ │ ├── DRIVER │ │ │ ├── DRIVER.LNK │ │ │ ├── DRIVER.SKL │ │ │ ├── DRIVER.MAK │ │ │ └── MAKEFILE │ │ ├── VDISK │ │ │ ├── VDISK.LNK │ │ │ ├── SLM.INI │ │ │ ├── VDISKMSG.ASM │ │ │ ├── MAKEFILE │ │ │ ├── VDISK.INC │ │ │ └── VDISKSYS.INC │ │ ├── SMARTDRV │ │ │ ├── SMARTDRV.LNK │ │ │ ├── FLUSH13.LNK │ │ │ ├── MAKEFILE │ │ │ ├── MI.ASM │ │ │ └── LOADALL.ASM │ │ ├── RAMDRIVE │ │ │ ├── RAMDRIVE.LNK │ │ │ ├── MI.INC │ │ │ ├── LOADALL.INC │ │ │ └── MAKEFILE │ │ ├── ANSI │ │ │ ├── ANSIVID.INC │ │ │ ├── ANSI.LNK │ │ │ ├── ANSI.SKL │ │ │ └── MAKEFILE │ │ ├── KEYBOARD │ │ │ ├── KDFBE.ASM │ │ │ ├── KDFCF.ASM │ │ │ ├── KDFDK.ASM │ │ │ ├── KDFFR.ASM │ │ │ ├── KDFGE.ASM │ │ │ ├── KDFIT.ASM │ │ │ ├── KDFLA.ASM │ │ │ ├── KDFNL.ASM │ │ │ ├── KDFNO.ASM │ │ │ ├── KDFPO.ASM │ │ │ ├── KDFSF.ASM │ │ │ ├── KDFSG.ASM │ │ │ ├── KDFSP.ASM │ │ │ ├── KDFSU.ASM │ │ │ ├── KDFSV.ASM │ │ │ ├── KDFUK.ASM │ │ │ ├── KDFFR120.ASM │ │ │ ├── KDFFR189.ASM │ │ │ ├── KDFIT141.ASM │ │ │ ├── KDFIT142.ASM │ │ │ ├── KDFUK166.ASM │ │ │ ├── KDFUK168.ASM │ │ │ ├── KEYBOARD.LNK │ │ │ └── KDFEOF.ASM │ │ ├── XMA2EMS │ │ │ ├── EMSINIT.INC │ │ │ ├── LIM40B.INC │ │ │ ├── XMA2EMS.ASM │ │ │ ├── GENIOCTL.INC │ │ │ ├── PS2_5060.INC │ │ │ ├── XMA2EMS.LC │ │ │ ├── MAKEFILE │ │ │ └── XMA2EMS.SKL │ │ ├── XMAEM │ │ │ ├── INDEXMAE.SYS │ │ │ ├── XMAEM.ARF │ │ │ ├── XMAEM.LNK │ │ │ ├── XMAEM.SKL │ │ │ └── XMAEM.LC │ │ ├── COUNTRY │ │ │ └── MAKEFILE │ │ └── MAKEFILE │ ├── INC │ │ ├── DBCS.ON │ │ ├── DBCS.SW │ │ ├── DBCS.OFF │ │ ├── SHELL.MEU │ │ ├── COMSUBS.LIB │ │ ├── MSGHAN.INC │ │ ├── PCINPUT.INC │ │ ├── PRINTF.OBJ │ │ ├── PSDATA.INC │ │ ├── SHELLRD.INC │ │ ├── STRING.OBJ │ │ ├── YESNO.ASM │ │ ├── COPYRIGH.INC │ │ ├── NIBDOS.ASM │ │ ├── MSTABLE.ASM │ │ ├── DIVMES.ASM │ │ ├── MSDOSME.ASM │ │ ├── FASTXXXX.INC │ │ ├── MACRO.DEF │ │ ├── FASTSEEK.INC │ │ ├── DPL.ASM │ │ ├── LOCK.INC │ │ ├── DOSSEG.ASM │ │ ├── MI.INC │ │ ├── VERSIONA.INC │ │ ├── MSDATA.ASM │ │ ├── MSDATA2.ASM │ │ ├── DPB.C │ │ ├── FIND.INC │ │ ├── BUGTYP.ASM │ │ └── ARENA.INC │ ├── TOOLS │ │ ├── C1.EXE │ │ ├── C1L.EXE │ │ ├── C2.EXE │ │ ├── C3.EXE │ │ ├── CL.EXE │ │ ├── LIB.EXE │ │ ├── DBOF.EXE │ │ ├── EXEC.EXE │ │ ├── LINK.EXE │ │ ├── MASM.EXE │ │ ├── NMAKE.EXE │ │ ├── ASC2HLP.EXE │ │ ├── ATTRIB.EXE │ │ ├── BUILDIDX.EXE │ │ ├── BUILDMSG.EXE │ │ ├── COMPRESS.COM │ │ ├── CONVERT.EXE │ │ ├── EXE2BIN.EXE │ │ ├── EXEFIX.EXE │ │ ├── EXEMOD.EXE │ │ ├── EXEPACK.EXE │ │ ├── MENUBLD.EXE │ │ ├── NOSRVBLD.EXE │ │ └── BLD │ │ │ ├── LIB │ │ │ ├── EM.LIB │ │ │ ├── LIBH.LIB │ │ │ ├── BINMODE.OBJ │ │ │ ├── CLIBCE.LIB │ │ │ ├── CLIBCR.LIB │ │ │ ├── CLIBFP.LIB │ │ │ ├── LLIBCE.LIB │ │ │ ├── LLIBCR.LIB │ │ │ ├── LLIBFP.LIB │ │ │ ├── MLIBCE.LIB │ │ │ ├── MLIBCR.LIB │ │ │ ├── MLIBFP.LIB │ │ │ ├── SETARGV.OBJ │ │ │ ├── SLIBCE.LIB │ │ │ ├── SLIBCR.LIB │ │ │ ├── SLIBFP.LIB │ │ │ ├── CVARSTCK.OBJ │ │ │ ├── GRAPHICS.LIB │ │ │ ├── LVARSTCK.OBJ │ │ │ ├── MVARSTCK.OBJ │ │ │ └── SVARSTCK.OBJ │ │ │ └── INC │ │ │ ├── SHARE.H │ │ │ ├── SYS │ │ │ ├── LOCKING.H │ │ │ ├── TYPES.H │ │ │ └── TIMEB.H │ │ │ ├── STDARG.H │ │ │ ├── VARARGS.H │ │ │ ├── DIRECT.H │ │ │ ├── ASSERT.H │ │ │ ├── SETJMP.H │ │ │ ├── CONIO.H │ │ │ └── SEARCH.H │ ├── MEMM │ │ ├── MEMM │ │ │ ├── EMMCOM.LNK │ │ │ ├── EMM386.LNK │ │ │ ├── EMM386D.LNK │ │ │ ├── DISP.INC │ │ │ ├── MACH_ID.INC │ │ │ └── ROMSTRUC.EQU │ │ └── MAKEFILE │ ├── SELECT │ │ ├── CASSFAR.LIB │ │ ├── SEL-PAN.LNK │ │ ├── TRANS.CHG │ │ ├── SELECT.LNK │ │ ├── DOSFILES.INC │ │ └── MPARSE.ASM │ ├── MESSAGES │ │ ├── USA-MS.MSG │ │ └── MAKEFILE │ ├── DOS │ │ ├── NSTDOS.ASM │ │ ├── MSIOCTL.ASM │ │ ├── STDIOCTL.ASM │ │ ├── MSPROC.ASM │ │ ├── MSDISP.ASM │ │ ├── STDPROC.ASM │ │ ├── MSCTRLC.ASM │ │ ├── STDDISP.ASM │ │ ├── STDTABLE.ASM │ │ ├── MSCODE.ASM │ │ ├── STDCTRLC.ASM │ │ ├── STDCODE.ASM │ │ ├── MSCPMIO.ASM │ │ ├── STDCPMIO.ASM │ │ ├── MSDOS.SKL │ │ ├── STDDOSME.ASM │ │ ├── SHRPRINT.ASM │ │ ├── DOSPRINT.ASM │ │ ├── STDDATA.ASM │ │ ├── MSSW.ASM │ │ ├── HIGHSW.ASM │ │ ├── STDASW.ASM │ │ └── STDSW.ASM │ ├── BOOT │ │ ├── BOOT.SKL │ │ └── MAKEFILE │ ├── MAPPER │ │ ├── MSC.INC │ │ ├── MAPPER.INC │ │ ├── KBD.INC │ │ ├── NLSAPI.INC │ │ ├── MACROS.INC │ │ ├── FIND.INC │ │ ├── MAPPER.LBR │ │ ├── GMACHMOD.ASM │ │ └── D_GCTRCD.ASM │ ├── SETENV.BAT │ └── MAKEFILE └── LICENSE ├── SECURITY.md ├── README.md └── LICENSE /v4.0/src/H/MAKEFILE: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /v4.0/src/LIB/MAKEFILE: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /v4.0/src/BIOS/LOCSCR: -------------------------------------------------------------------------------- 1 | 70 2 | -------------------------------------------------------------------------------- /v4.0/src/CMD/MORE/MORE.LNK: -------------------------------------------------------------------------------- 1 | more; 2 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/ZERO.DAT: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/4201/MAKEFILE: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/4208/MAKEFILE: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/ZERO.DAT: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /v4.0/src/INC/DBCS.ON: -------------------------------------------------------------------------------- 1 | DBCS = TRUE 2 |  -------------------------------------------------------------------------------- /v4.0/src/INC/DBCS.SW: -------------------------------------------------------------------------------- 1 | DBCS = FALSE 2 |  -------------------------------------------------------------------------------- /v4.0/src/INC/DBCS.OFF: -------------------------------------------------------------------------------- 1 | DBCS = FALSE 2 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/RESTORE/MESSAGES.INC: -------------------------------------------------------------------------------- 1 | include restmsg.inc -------------------------------------------------------------------------------- /v4.0/src/CMD/FIND/FIND.LNK: -------------------------------------------------------------------------------- 1 | FIND+ 2 | FINDMES 3 | FIND.EXE; 4 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/SORT/SORT.LNK: -------------------------------------------------------------------------------- 1 | SORT+ 2 | SORTMES 3 | SORT.EXE; 4 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/SYS/SYS.LNK: -------------------------------------------------------------------------------- 1 | SYS1+SYS2+SYSSR,sys,sys.map /m; 2 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/DRIVER/DRIVER.LNK: -------------------------------------------------------------------------------- 1 | DRIVER.OBJ 2 | DRIVER.EXE; 3 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/VDISK/VDISK.LNK: -------------------------------------------------------------------------------- 1 | VDISKSYS.OBJ 2 | VDISK.EXE; 3 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/LABEL/LABEL.LNK: -------------------------------------------------------------------------------- 1 | LABEL+ 2 | LABELM 3 | label.EXE; 4 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/XCOPY/XCOPY.LNK: -------------------------------------------------------------------------------- 1 | XCOPY+ 2 | XCPYINIT+ 3 | XCOPYPAR ; 4 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/TREE/TREE.LNK: -------------------------------------------------------------------------------- 1 | TREE+ 2 | TREEPAR+ 3 | TREESYSP+ 4 | TREESYSM; 5 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/SMARTDRV/SMARTDRV.LNK: -------------------------------------------------------------------------------- 1 | int13 2 | int13.exe 3 | int13.map -map; 4 | -------------------------------------------------------------------------------- /v4.0/src/CMD/PRINT/PRINT.LNK: -------------------------------------------------------------------------------- 1 | PRINT_RM+PRINT_R+PRINT_T+PRINT_TM,print,print.map /m; 2 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/MEM/MEM.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MEM/MEM.C -------------------------------------------------------------------------------- /v4.0/src/INC/SHELL.MEU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/INC/SHELL.MEU -------------------------------------------------------------------------------- /v4.0/src/LIB/LIB.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/LIB/LIB.EXE -------------------------------------------------------------------------------- /v4.0/src/LIB/MEM.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/LIB/MEM.LIB -------------------------------------------------------------------------------- /v4.0/src/TOOLS/C1.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/C1.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/C1L.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/C1L.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/C2.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/C2.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/C3.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/C3.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/CL.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/CL.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/LIB.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/LIB.EXE -------------------------------------------------------------------------------- /v4.0/src/CMD/JOIN/JOIN.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/JOIN/JOIN.C -------------------------------------------------------------------------------- /v4.0/src/CMD/MEM/MEM.SKL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MEM/MEM.SKL -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/DISPLAY.LNK: -------------------------------------------------------------------------------- 1 | DISPLAY.OBJ+ 2 | INIT.OBJ+ 3 | PARSER.OBJ 4 | DISPLAY.EXE; 5 | -------------------------------------------------------------------------------- /v4.0/src/DEV/RAMDRIVE/RAMDRIVE.LNK: -------------------------------------------------------------------------------- 1 | ramdrive messages 2 | ramdrive.exe 3 | ramdrive.map -map; 4 | -------------------------------------------------------------------------------- /v4.0/src/DEV/SMARTDRV/FLUSH13.LNK: -------------------------------------------------------------------------------- 1 | flush13.obj fl13.obj flmes.obj 2 | flush13.exe /m 3 | 4 | 5 | -------------------------------------------------------------------------------- /v4.0/src/INC/COMSUBS.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/INC/COMSUBS.LIB -------------------------------------------------------------------------------- /v4.0/src/INC/MSGHAN.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/INC/MSGHAN.INC -------------------------------------------------------------------------------- /v4.0/src/INC/PCINPUT.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/INC/PCINPUT.INC -------------------------------------------------------------------------------- /v4.0/src/INC/PRINTF.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/INC/PRINTF.OBJ -------------------------------------------------------------------------------- /v4.0/src/INC/PSDATA.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/INC/PSDATA.INC -------------------------------------------------------------------------------- /v4.0/src/INC/SHELLRD.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/INC/SHELLRD.INC -------------------------------------------------------------------------------- /v4.0/src/INC/STRING.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/INC/STRING.OBJ -------------------------------------------------------------------------------- /v4.0/src/MEMM/MEMM/EMMCOM.LNK: -------------------------------------------------------------------------------- 1 | memmcom+ 2 | memmonf 3 | emmcom.exe 4 | emmcom.map/m; 5 |  6 | -------------------------------------------------------------------------------- /v4.0/src/TOOLS/DBOF.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/DBOF.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/EXEC.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/EXEC.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/LINK.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/LINK.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/MASM.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/MASM.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/NMAKE.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/NMAKE.EXE -------------------------------------------------------------------------------- /v4.0/src/CMD/COMP/COMP.LNK: -------------------------------------------------------------------------------- 1 | COMP1+ 2 | COMPPAR+ 3 | COMPP+ 4 | COMPSM+ 5 | COMP2,COMP,COMP.MAP/M; 6 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/COMP/COMP2.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/COMP/COMP2.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/DISKCOMP/DISKCOMP.LNK: -------------------------------------------------------------------------------- 1 | DISKCOMP+ 2 | DCOMPSM+ 3 | DCOMPP+ 4 | DCOMPPAR+ 5 | COMPINIT; 6 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/FDISK.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/FDISK/FDISK.C -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/INT13.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/FDISK/INT13.C -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MAIN.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MAIN.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODE.SKL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODE.SKL -------------------------------------------------------------------------------- /v4.0/src/CMD/RESTORE/RTT3.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/RESTORE/RTT3.C -------------------------------------------------------------------------------- /v4.0/src/CMD/SUBST/SUBST.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/SUBST/SUBST.C -------------------------------------------------------------------------------- /v4.0/src/CMD/SYS/SYS1.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/SYS/SYS1.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/SYS/SYS2.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/SYS/SYS2.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/SYS/SYSHDR.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/SYS/SYSHDR.INC -------------------------------------------------------------------------------- /v4.0/src/CMD/TREE/TREE.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/TREE/TREE.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/TREE/TREE.SKL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/TREE/TREE.SKL -------------------------------------------------------------------------------- /v4.0/src/SELECT/CASSFAR.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/SELECT/CASSFAR.LIB -------------------------------------------------------------------------------- /v4.0/src/SELECT/SEL-PAN.LNK: -------------------------------------------------------------------------------- 1 | SEL-PAN+ 2 | PANELS+ 3 | COLORS+ 4 | SCROLL,,, 5 | CASSFAR.LIB; 6 | -------------------------------------------------------------------------------- /v4.0/src/SELECT/TRANS.CHG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/SELECT/TRANS.CHG -------------------------------------------------------------------------------- /v4.0/src/TOOLS/ASC2HLP.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/ASC2HLP.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/ATTRIB.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/ATTRIB.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BUILDIDX.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BUILDIDX.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BUILDMSG.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BUILDMSG.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/COMPRESS.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/COMPRESS.COM -------------------------------------------------------------------------------- /v4.0/src/TOOLS/CONVERT.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/CONVERT.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/EXE2BIN.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/EXE2BIN.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/EXEFIX.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/EXEFIX.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/EXEMOD.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/EXEMOD.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/EXEPACK.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/EXEPACK.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/MENUBLD.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/MENUBLD.EXE -------------------------------------------------------------------------------- /v4.0/src/TOOLS/NOSRVBLD.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/NOSRVBLD.EXE -------------------------------------------------------------------------------- /v4.0/src/CMD/ATTRIB/ATTRIB.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/ATTRIB/ATTRIB.C -------------------------------------------------------------------------------- /v4.0/src/CMD/ATTRIB/ATTRIB.H: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/ATTRIB/ATTRIB.H -------------------------------------------------------------------------------- /v4.0/src/CMD/ATTRIB/ATTRIB.LNK: -------------------------------------------------------------------------------- 1 | attriba+ 2 | attrib+ 3 | _parse+ 4 | _msgret 5 | attrib 6 | nul; 7 | 8 | -------------------------------------------------------------------------------- /v4.0/src/CMD/EDLIN/EDLIN.LNK: -------------------------------------------------------------------------------- 1 | EDLIN+ 2 | EDLCMD1+ 3 | EDLCMD2+ 4 | EDLMES+ 5 | EDLPARSE 6 | EDLIN.EXE; 7 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/C_MENUS.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/FDISK/C_MENUS.C -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/D_MENUS.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/FDISK/D_MENUS.C -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/FDISK.MSG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/FDISK/FDISK.MSG -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/FDISKMSG.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/FDISK/FDISKMSG.C -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/MAINMENU.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/FDISK/MAINMENU.C -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/MESSAGES.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/FDISK/MESSAGES.C -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/DISPLAY.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/DISPLAY.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/INVOKE.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/INVOKE.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODECOM.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODECOM.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODECP.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODECP.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODEMES.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODEMES.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODEVID.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODEVID.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/RESCODE.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/RESCODE.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/SCRNTAB.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/SCRNTAB.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/TYPAMAT.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/TYPAMAT.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/TREE/TREEMS.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/TREE/TREEMS.INC -------------------------------------------------------------------------------- /v4.0/src/DEV/ANSI/ANSIVID.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/ANSI/ANSIVID.INC -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/INIT.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/DISPLAY/INIT.ASM -------------------------------------------------------------------------------- /v4.0/src/MESSAGES/USA-MS.MSG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/MESSAGES/USA-MS.MSG -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/EM.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/EM.LIB -------------------------------------------------------------------------------- /v4.0/src/CMD/CHKDSK/CHKINIT.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/CHKDSK/CHKINIT.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/FORMAT/FOREXEC.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/FORMAT/FOREXEC.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/FORMAT/FORINIT.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/FORMAT/FORINIT.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/FORMAT/FORLABEL.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/FORMAT/FORLABEL.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAPHICS/GRCTRL.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/GRAPHICS/GRCTRL.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAPHICS/GRINST.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/GRAPHICS/GRINST.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/IFSFUNC/IFSINIT.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/IFSFUNC/IFSINIT.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODECPRO.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODECPRO.INC -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODEDEFS.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODEDEFS.INC -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODEECHO.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODEECHO.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODELENG.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODELENG.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODEPARS.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODEPARS.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODEPRIN.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODEPRIN.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODEQUAT.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODEQUAT.INC -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODESCRN.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODESCRN.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODESUBS.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/MODE/MODESUBS.INC -------------------------------------------------------------------------------- /v4.0/src/CMD/PRINT/PRIDEFS.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/PRINT/PRIDEFS.INC -------------------------------------------------------------------------------- /v4.0/src/CMD/REPLACE/REPLACE.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/REPLACE/REPLACE.C -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/DEF-EQU.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/DISPLAY/DEF-EQU.INC -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/DISPLAY.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/DISPLAY/DISPLAY.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/MACROS.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/DISPLAY/MACROS.INC -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/PARSER.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/DISPLAY/PARSER.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/TABLES.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/DISPLAY/TABLES.INC -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/WRITE.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/DISPLAY/WRITE.INC -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFBE.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFBE.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFCF.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFCF.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFDK.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFDK.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFFR.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFFR.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFGE.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFGE.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFIT.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFIT.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFLA.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFLA.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFNL.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFNL.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFNO.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFNO.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFPO.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFPO.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFSF.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFSF.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFSG.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFSG.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFSP.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFSP.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFSU.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFSU.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFSV.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFSV.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFUK.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFUK.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/CPSPI.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/PRINTER/CPSPI.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/PARSE4E.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/PRINTER/PARSE4E.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/PARSER.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/PRINTER/PARSER.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/XMA2EMS/EMSINIT.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/XMA2EMS/EMSINIT.INC -------------------------------------------------------------------------------- /v4.0/src/DEV/XMA2EMS/LIM40B.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/XMA2EMS/LIM40B.INC -------------------------------------------------------------------------------- /v4.0/src/DEV/XMA2EMS/XMA2EMS.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/XMA2EMS/XMA2EMS.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/XMAEM/INDEXMAE.SYS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/XMAEM/INDEXMAE.SYS -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/LIBH.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/LIBH.LIB -------------------------------------------------------------------------------- /v4.0/src/CMD/EXE2BIN/EXE2BIN.LNK: -------------------------------------------------------------------------------- 1 | /DOSSEG /MAP /E+ 2 | E2BINIT.obj+ 3 | DISPLAY.obj 4 | EXE2BIN.EXE, EXE2BIN.MAP; 5 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/FASTOPEN/FASTINIT.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/FASTOPEN/FASTINIT.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/FASTOPEN/FASTOPEN.TXT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/FASTOPEN/FASTOPEN.TXT -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAFTABL/GRTABCF.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/GRAFTABL/GRTABCF.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAFTABL/GRTABML.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/GRAFTABL/GRTABML.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAFTABL/GRTABNO.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/GRAFTABL/GRTABNO.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAFTABL/GRTABPO.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/GRAFTABL/GRTABPO.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAFTABL/GRTABUS.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/GRAFTABL/GRTABUS.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAPHICS/GRAPHICS.OB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/GRAPHICS/GRAPHICS.OB -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAPHICS/GRBWPRT.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/GRAPHICS/GRBWPRT.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAPHICS/GRINT2FH.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/GRAPHICS/GRINT2FH.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/IFSFUNC/IFSERROR.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/CMD/IFSFUNC/IFSERROR.ASM -------------------------------------------------------------------------------- /v4.0/src/CMD/KEYB/KEYB.LNK: -------------------------------------------------------------------------------- 1 | Keyb+keybi9+KEYBI9C+keybi2f+keybi48+ 2 | keybcpsd+commsubs+keybtbbl+parser+KEYBCMD; 3 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/RECOVER/RECOVER.LNK: -------------------------------------------------------------------------------- 1 | recdisp+ 2 | RECINIT+ 3 | RECproc+ 4 | RECover 5 | RECOVER.EXE,RECOVER.MAP ; 6 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/CPS-FUNC.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/DISPLAY/CPS-FUNC.INC -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/F-PARSER.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/DISPLAY/F-PARSER.INC -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/INT2FCOM.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/DISPLAY/INT2FCOM.INC -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFFR120.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFFR120.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFFR189.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFFR189.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFIT141.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFIT141.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFIT142.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFIT142.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFUK166.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFUK166.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFUK168.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/KEYBOARD/KDFUK168.ASM -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/4201/4201.CPI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/PRINTER/4201/4201.CPI -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/4208/4208.CPI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/PRINTER/4208/4208.CPI -------------------------------------------------------------------------------- /v4.0/src/DEV/XMA2EMS/GENIOCTL.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/XMA2EMS/GENIOCTL.INC -------------------------------------------------------------------------------- /v4.0/src/DEV/XMA2EMS/PS2_5060.INC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/DEV/XMA2EMS/PS2_5060.INC -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/BINMODE.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/BINMODE.OBJ -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/CLIBCE.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/CLIBCE.LIB -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/CLIBCR.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/CLIBCR.LIB -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/CLIBFP.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/CLIBFP.LIB -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/LLIBCE.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/LLIBCE.LIB -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/LLIBCR.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/LLIBCR.LIB -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/LLIBFP.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/LLIBFP.LIB -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/MLIBCE.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/MLIBCE.LIB -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/MLIBCR.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/MLIBCR.LIB -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/MLIBFP.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/MLIBFP.LIB -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/SETARGV.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/SETARGV.OBJ -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/SLIBCE.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/SLIBCE.LIB -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/SLIBCR.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/SLIBCR.LIB -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/SLIBFP.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/SLIBFP.LIB -------------------------------------------------------------------------------- /v4.0/src/CMD/DISKCOPY/DISKCOPY.LNK: -------------------------------------------------------------------------------- 1 | DISKCOPY.OBJ+ 2 | DCOPYSM.OBJ+ 3 | DCOPYP.OBJ+ 4 | DCOPYPAR.OBJ+ 5 | COPYINIT.OBJ; 6 |  -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/CVARSTCK.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/CVARSTCK.OBJ -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/GRAPHICS.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/GRAPHICS.LIB -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/LVARSTCK.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/LVARSTCK.OBJ -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/MVARSTCK.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/MVARSTCK.OBJ -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/LIB/SVARSTCK.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dos-fx/DOS-FX/HEAD/v4.0/src/TOOLS/BLD/LIB/SVARSTCK.OBJ -------------------------------------------------------------------------------- /v4.0/src/CMD/CHKDSK/CHKDSK.FLS: -------------------------------------------------------------------------------- 1 | CHKDSK1.ASM 2 | CHKMES.ASM 3 | CHKPRMT.ASM 4 | CHKPROC.ASM 5 | CHKPROC2.ASM 6 | CHKDSK2.ASM 7 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/ANSI/ANSI.LNK: -------------------------------------------------------------------------------- 1 | ANSI.OBJ+ 2 | IOCTL.OBJ+ 3 | ANSIINIT.OBJ+ 4 | PARSER.OBJ 5 | ANSI.EXE 6 | ANSI.MAP /M 7 | ; 8 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/EGA/EGA.LNK: -------------------------------------------------------------------------------- 1 | cpi-head+ 2 | 437-CPI+ 3 | 850-CPI+ 4 | 860-CPI+ 5 | 863-CPI+ 6 | 865-CPI+ 7 | COPYRIGH; 8 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/LCD/LCD.LNK: -------------------------------------------------------------------------------- 1 | FONT-R3+ 2 | 437-CPI+ 3 | 850-CPI+ 4 | 860-CPI+ 5 | 863-CPI+ 6 | 865-CPI+ 7 | COPYRIGH; 8 |  -------------------------------------------------------------------------------- /v4.0/src/INC/YESNO.ASM: -------------------------------------------------------------------------------- 1 | ; This is for contry Yes and No 2 | PUBLIC NLS_YES,NLS_yes2,NLS_NO,NLS_no2 3 | include msdos.cl3 4 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/FASTOPEN/FASTOPEN.LNK: -------------------------------------------------------------------------------- 1 | FASTOPEN.OBJ+ 2 | FASTSEEK.OBJ+ 3 | FASTINIT.OBJ+ 4 | FASTP.OBJ+ 5 | FASTSM.OBJ 6 | FASTOPEN.EXE,/m; 7 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/FORMAT/FILESIZE.INC: -------------------------------------------------------------------------------- 1 | 2 | %out ..filesize.inc 3 | 4 | BIOS_SIZE equ 35000 ;actually 5 | DOS_SIZE equ 37000 ;actually 6 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/PRINTER.LNK: -------------------------------------------------------------------------------- 1 | CPSPM10+ 2 | CPSFONT3+ 3 | PRTINT2F+ 4 | CPSPI07+ 5 | PARSER 6 | PRINTER.EXE 7 | PRINTER.MAP /M 8 | ; 9 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/VDISK/SLM.INI: -------------------------------------------------------------------------------- 1 | project = 340 2 | slm root = //WINSRC/CORE 3 | user root = //D:WINBLD1-D/MSDOS/340/SRC 4 | sub dir = /dev/VDISK 5 | -------------------------------------------------------------------------------- /v4.0/src/INC/COPYRIGH.INC: -------------------------------------------------------------------------------- 1 | DB "MS DOS Version 4.00 (C)Copyright 1988 Microsoft Corp" 2 | DB "Licensed Material - Property of Microsoft " 3 | -------------------------------------------------------------------------------- /v4.0/src/CMD/COMMAND/COMSW.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)comsw.asm 1.1 85/05/14 2 | ; SCCSID = @(#)comsw.asm 1.1 85/05/14 3 | 4 | include version.inc 5 | 6 |  -------------------------------------------------------------------------------- /v4.0/src/INC/NIBDOS.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)nibdos.asm 1.1 85/04/10 2 | TITLE NIBDOS 3 | NAME MSDOS_3 4 | 5 | include mssw.asm 6 | include msconst.asm 7 | END 8 | -------------------------------------------------------------------------------- /v4.0/src/DOS/NSTDOS.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)nstdos.asm 1.1 85/04/10 2 | TITLE MS-DOS 3 | NAME MSDOS_3 4 | 5 | include stdsw.asm 6 | include msconst.asm 7 | END 8 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FORMAT/FORMAT.LNK: -------------------------------------------------------------------------------- 1 | DISPLAY.OBJ+ 2 | FORINIT.OBJ+ 3 | FORLABEL.OBJ+ 4 | FORMAT.OBJ+ 5 | FORPROC.OBJ+ 6 | MSFOR.OBJ+ 7 | FOREXEC.OBJ 8 | FORMAT.exe,FORMAT.MAP; 9 | -------------------------------------------------------------------------------- /v4.0/src/DOS/MSIOCTL.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)IBMIOCTL.INC 1.1 85/04/10 2 | IBM EQU 0FFFFH ;TRUE 3 | 4 | INCLUDE IOCTL.INC 5 |  SCCSID = @(#)IBMIOCTL.INC 1.1 85/04/10 6 | -------------------------------------------------------------------------------- /v4.0/src/H/COPYRIGH.H: -------------------------------------------------------------------------------- 1 | char *copyright1 = "MS DOS Version 4.00 (C)Copyright 1988 Microsoft Corp"; 2 | char *copyright2 = "Licensed Material - Property of Microsoft "; 3 | 4 | -------------------------------------------------------------------------------- /v4.0/src/DOS/STDIOCTL.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)STDIOCTL.INC 1.1 85/04/10 2 | IBM EQU 0 ;FALSE 3 | 4 | INCLUDE IOCTL.INC 5 |  SCCSID = @(#)STDIOCTL.INC 1.1 85/04/10 6 | -------------------------------------------------------------------------------- /v4.0/src/H/VERSION.H: -------------------------------------------------------------------------------- 1 | /* Use the switch below to produce the standard Microsoft version 2 | or the IBM version of the operating system */ 3 | 4 | 5 | #define IBMCOPYRIGHT 0 6 | 7 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FC/FC.LNK: -------------------------------------------------------------------------------- 1 | fc.obj error.obj fgetl.obj getl.obj itoupper.obj ..\..\inc\kstring.obj + 2 | maxmin.obj move.obj ntoi.obj string.obj update.obj xtab.obj messages.obj 3 | fc.exe 4 | 5 | -------------------------------------------------------------------------------- /v4.0/src/CMD/REPLACE/REPLACE.LNK: -------------------------------------------------------------------------------- 1 | REPLACE.obj+ 2 | _REPLACE.OBJ+ 3 | _MSGRET.OBJ+ 4 | _PARSE.OBJ 5 | REPLACE 6 | NUL 7 | ..\..\mapper\mapper.lib+ 8 | ..\..\inc\comsubs.lib /STACK:31620; 9 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/DEBUG/DEBUG.LNK: -------------------------------------------------------------------------------- 1 | DEBUG+ 2 | DEBCOM1+ 3 | DEBCOM2+ 4 | DEBCOM3+ 5 | DEBASM+ 6 | DEBUASM+ 7 | DEBERR+ 8 | DEBCONST+ 9 | DEBMES+ 10 | DEBEMS+ 11 | DEBDATA 12 | DEBUG.EXE; 13 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/XMAEM/XMAEM.ARF: -------------------------------------------------------------------------------- 1 | INDEINI+ 2 | INDEEXC+ 3 | INDEEMU+ 4 | INDEXMA+ 5 | INDEDMA+ 6 | INDEI15+ 7 | INDEIDT+ 8 | INDEGDT+ 9 | INDEMSG+ 10 | INDEPAT 11 | xmaem.sys 12 | nul; 13 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/XMAEM/XMAEM.LNK: -------------------------------------------------------------------------------- 1 | INDEINI+ 2 | INDEEXC+ 3 | INDEEMU+ 4 | INDEXMA+ 5 | INDEDMA+ 6 | INDEI15+ 7 | INDEIDT+ 8 | INDEGDT+ 9 | INDEMSG+ 10 | INDEPAT 11 | xmaem.sys 12 | nul; 13 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/SHARE/SHARE.LNK: -------------------------------------------------------------------------------- 1 | gshare+ 2 | gshare2+ 3 | sharesr+ 4 | sharelnk+ 5 | ..\..\inc\nibdos+ 6 | ..\..\inc\const2+ 7 | ..\..\inc\msdata+ 8 | ..\..\inc\msdosme 9 | share,share.map /m; 10 | -------------------------------------------------------------------------------- /v4.0/src/DEV/XMA2EMS/XMA2EMS.LC: -------------------------------------------------------------------------------- 1 | XMA2EMS.ASM 2 | XMA2EMSP.INC 3 | DIAGS.ASM 4 | LIM40.INC 5 | LIM40B.INC 6 | PS2_5060.INC 7 | PARMPARS.INC 8 | EMSINIT.INC 9 | XMA1DIAG.INC 10 | GENIOCTL.INC 11 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAFTABL/GRAFTABL.LNK: -------------------------------------------------------------------------------- 1 | GRTABHAN+ 2 | GRTABUS+ 3 | GRTABML+ 4 | GRTABPO+ 5 | GRTABCF+ 6 | GRTABNO+ 7 | GRTABSM+ 8 | GRTABPAR+ 9 | GRTABP+ 10 | GRTAB 11 | GRAFTABL.EXE; 12 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/4208/4208-CPY.ASM: -------------------------------------------------------------------------------- 1 | 2 | CODE segment public 'code' 3 | ASSUME CS:CODE,DS:NOTHING,ES:NOTHING,SS:NOTHING 4 | org 0 5 | 6 | include copyrigh.inc 7 | 8 | code ends 9 | end 10 |  -------------------------------------------------------------------------------- /v4.0/src/BIOS/MSBIO.LNK: -------------------------------------------------------------------------------- 1 | msbio1+ 2 | msCON+ 3 | msAUX+ 4 | msLPT+ 5 | msCLOCK+ 6 | msDISK+ 7 | msBIO2+ 8 | mshard+ 9 | msinit+ 10 | sysinit1+ 11 | sysconf+ 12 | sysinit2+ 13 | sysimes,msbio,msBIO/M; 14 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/CHKDSK/CHKDSK.LNK: -------------------------------------------------------------------------------- 1 | chkdisk+ 2 | chkdisp+ 3 | CHKDSK1+ 4 | CHKDSK2+ 5 | chkfat+ 6 | CHKINIT+ 7 | CHKPRMT+ 8 | CHKPROC2+ 9 | CHKPROC 10 | CHKDSK.EXE,CHKDSK.MAP ; 11 | ;chkexec+ ;an038;bgb 12 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/DEBUG/SYSVER.FAL: -------------------------------------------------------------------------------- 1 | 2 | 3 | IF1 4 | %OUT Including ..SYSVER.FAL.. 5 | ENDIF 6 | 7 | SYSVER EQU FALSE ; if true, i/o direct to bios 8 | ; so DOS can be debugged 9 | 10 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/DEBUG/SYSVER.INC: -------------------------------------------------------------------------------- 1 | 2 | 3 | IF1 4 | %OUT Including ..SYSVER.FAL.. 5 | ENDIF 6 | 7 | SYSVER EQU FALSE ; if true, i/o direct to bios 8 | ; so DOS can be debugged 9 | 10 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/DEBUG/SYSVER.TRU: -------------------------------------------------------------------------------- 1 | 2 | 3 | IF1 4 | %OUT Including ..SYSVER.TRU.. 5 | ENDIF 6 | 7 | SYSVER EQU TRUE ; if true, i/o direct to bios 8 | ; so DOS can be debugged 9 | 10 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAPHICS/GRAPHICS.LNK: -------------------------------------------------------------------------------- 1 | GRAPHICS+ 2 | GRINT2FH+ 3 | GRPATTRN+ 4 | GRCTRL+ 5 | GRCPSD+ 6 | GRCOLPRT+ 7 | GRBWPRT+ 8 | GRINST+ 9 | GRPARSE+ 10 | grparms+ 11 | GRLOAD+ 12 | GRLOAD2+ 13 | GRLOAD3 14 | GRAPHICS.EXE; 15 |  -------------------------------------------------------------------------------- /v4.0/src/MEMM/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************* Root level Makefile ************************* 2 | 3 | make =nmake 4 | 5 | all: 6 | cd emm 7 | $(make) 8 | cd ..\memm 9 | $(make) 10 | cd .. 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /v4.0/src/BIOS/MSLOAD.INC: -------------------------------------------------------------------------------- 1 | ;MSLOAD.INC 2 | End_Of_File equ 0FFh 3 | FAT12_Bit equ 01h 4 | FAT16_Bit equ 04h 5 | ROM_TELETYPE equ 14 ;INT 10h, Teletype function 6 | 7 | NUM_DIR_PER_SECTOR equ 16 ; number of directory entries per sector 8 | -------------------------------------------------------------------------------- /v4.0/src/BOOT/BOOT.SKL: -------------------------------------------------------------------------------- 1 | :class 1 2 | ; MESSAGES FOR THE IBM BOOT SECTOR. NUL Terminated. 3 | ; At this time, for DOS 4.00, we only have maximum 11 bytes left 4 | ; for translation.!!!!!!!!!!!!!!!!!!!!! 5 | 6 | :use 001 BOOT SYSMSG 7 | 8 | :end 9 | -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/4201/4201.MAK: -------------------------------------------------------------------------------- 1 | #---- MAKEFILE FOR 4201.CPI ------------ 2 | # This make file prevents build output errors for (subdirs.bat config line 3 | # Mark Nosewicz 4 | 5 | 4201.CPI: 4201.CPI 6 | ECHO 4201.CPI HAS BEEN CHANGED 7 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/4208/4208.MAK: -------------------------------------------------------------------------------- 1 | #---- MAKEFILE FOR 4208.CPI ------------ 2 | # This make file prevents build output errors for (subdirs.bat config line 3 | # Mark Nosewicz 4 | 5 | 4208.CPI: 4208.CPI 6 | ECHO 4208.CPI HAS BEEN CHANGED 7 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/JOIN/JOIN.LNK: -------------------------------------------------------------------------------- 1 | JOIN.OBJ+ 2 | ..\..\inc\ERRTST.OBJ+ 3 | ..\..\inc\SYSVAR.OBJ+ 4 | ..\..\inc\CDS.OBJ+ 5 | ..\..\inc\DPB.OBJ+ 6 | _MSGRET.OBJ+ 7 | _PARSE.OBJ 8 | JOIN 9 | NUL 10 | ..\..\inc\comsubs.lib+ 11 | ..\..\mapper\mapper.lib; 12 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/LCD/COPYRIGH.ASM: -------------------------------------------------------------------------------- 1 | CODE SEGMENT BYTE PUBLIC 'CODE' 2 | ASSUME CS:CODE,DS:CODE 3 | 4 | DB 13,10 5 | DB "Microsoft MS-DOS (R) LCD Display Font File",13,10 6 | include copyrigh.inc 7 | DB 1Ah 8 | 9 | CODE ENDS 10 | END 11 | -------------------------------------------------------------------------------- /v4.0/src/DEV/XMAEM/XMAEM.SKL: -------------------------------------------------------------------------------- 1 | :class 1 2 | 3 | :use 1 xmaem Welcome 4 | :use 2 xmaem GoodLoad 5 | :use 3 xmaem No_80386 6 | :use 4 xmaem Was_Inst 7 | :use 5 xmaem Small_Parm 8 | :use 6 xmaem No_Mem 9 | 10 | :end 11 | 12 | 13 | 14 | 15 | 16 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/ASSIGN/ASSIGN.SKL: -------------------------------------------------------------------------------- 1 | :util ASSIGN 2 | :class 2 ;parse errors: 3 | 4 | :class A ;"Original %1: set to %2:" 5 | :use 1 COMMON1 ;MSG 1 is always 6 | ;"Incorrect DOS version" 7 | :def 2 "Original %1: set to %2:",cr,lf 8 | :end 9 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/MODE.LNK: -------------------------------------------------------------------------------- 1 | /MAP RESCODE+ 2 | MODEECHO+ 3 | MODELENG+ 4 | MODEMES+ 5 | MODESCRN+ 6 | MAIN+ 7 | MODEVID+ 8 | MODEPRIN+ 9 | MODECOM+ 10 | SCRNTAB+ 11 | MODECP+ 12 | DISPLAY+ 13 | TYPAMAT+ 14 | INVOKE+ 15 | PARSHELL+ 16 | MODEPARS,MODE; 17 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/SUBST/SUBST.LNK: -------------------------------------------------------------------------------- 1 | SUBST.OBJ+ 2 | ..\..\inc\ERRTST.OBJ+ 3 | ..\..\inc\SYSVAR.OBJ+ 4 | ..\..\inc\CDS.OBJ+ 5 | ..\..\inc\DPB.OBJ+ 6 | _MSGRET.OBJ+ 7 | _PARSE.OBJ 8 | SUBST 9 | NUL 10 | ..\..\inc\comsubs.lib+ 11 | ..\..\mapper\mapper.lib; 12 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/EGA/COPYRIGH.ASM: -------------------------------------------------------------------------------- 1 | CODE SEGMENT BYTE PUBLIC 'CODE' 2 | ASSUME CS:CODE,DS:CODE 3 | 4 | DB 13,10 5 | DB "Microsoft MS-DOS (R) EGA Display Font File",13,10 6 | include copyrigh.inc 7 | DB 1Ah 8 | 9 | CODE ENDS 10 | END 11 | 12 | -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KEYBOARD.LNK: -------------------------------------------------------------------------------- 1 | kdfnow.OBJ+KDFSP.OBJ+KDFPO.OBJ+KDFFR120.obj+kdffr189.obJ+KDFDK.OBJ+ 2 | KDFSG.OBJ+KDFGE.OBJ+KDFIT141.OBJ+KDFIT142.OBJ+KDFUK166.OBJ+KDFUK168.OBJ+ 3 | KDFSF.OBJ+KDFBE.OBJ+KDFNL.OBJ+KDFNO.OBJ+KDFCF.OBJ+ 4 | kdfsv.obj+KDFLA.OBJ+kdfeof.OBJ 5 | KEYBOARD.EXE; 6 |  -------------------------------------------------------------------------------- /v4.0/src/DOS/MSPROC.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)ibmproc.asm 1.1 85/04/10 2 | ; 3 | ; Pseudo EXEC system call for DOS 4 | ; 5 | 6 | .xlist 7 | .xcref 8 | include mssw.asm 9 | .cref 10 | .list 11 | 12 | TITLE IBMPROC - process maintenance 13 | NAME IBMPROC 14 | 15 | include proc.asm 16 | -------------------------------------------------------------------------------- /v4.0/src/INC/MSTABLE.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)ibmtable.asm 1.1 85/04/10 2 | ; 3 | ; Table Segment for DOS 4 | ; 5 | 6 | .xlist 7 | .xcref 8 | include mssw.asm 9 | .cref 10 | .list 11 | 12 | TITLE IBMTABLE - Table segment for DOS 13 | NAME IBMTABLE 14 | 15 | include ms_table.asm 16 | END 17 | -------------------------------------------------------------------------------- /v4.0/src/DOS/MSDISP.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)ibmdisp.asm 1.1 85/04/10 2 | TITLE IBM DOS DISPATCHER - System call dispatch code 3 | NAME DISP 4 | 5 | ; 6 | ; System call dispatch code 7 | ; 8 | 9 | .xlist 10 | .xcref 11 | include mssw.asm 12 | .cref 13 | .list 14 | 15 | include disp.asm 16 | END 17 |  -------------------------------------------------------------------------------- /v4.0/src/DOS/STDPROC.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)stdproc.asm 1.1 85/04/10 2 | ; 3 | ; Pseudo EXEC system call for MSDOS 4 | ; 5 | 6 | .xlist 7 | .xcref 8 | include stdsw.asm 9 | .cref 10 | .list 11 | 12 | TITLE STDPROC - process maintenance for MSDOS 13 | NAME STDPROC 14 | 15 | include proc.asm 16 | -------------------------------------------------------------------------------- /v4.0/src/DOS/MSCTRLC.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)ibmctrlc.asm 1.1 85/04/10 2 | ; 3 | ; ^C and error handler for MSDOS 4 | ; 5 | 6 | .xlist 7 | .xcref 8 | include mssw.asm 9 | .cref 10 | .list 11 | 12 | TITLE Control C detection, Hard error and EXIT routines 13 | NAME IBMCTRLC 14 | 15 | include ctrlc.asm 16 |  -------------------------------------------------------------------------------- /v4.0/src/DOS/STDDISP.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)stddisp.asm 1.1 85/04/10 2 | TITLE MS-DOS DOS DISPATCHER - System call dispatch code 3 | NAME DISP 4 | 5 | ; 6 | ; System call dispatch code 7 | ; 8 | 9 | .xlist 10 | .xcref 11 | include stdsw.asm 12 | .cref 13 | .list 14 | 15 | include disp.asm 16 | END 17 | -------------------------------------------------------------------------------- /v4.0/src/DOS/STDTABLE.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)stdtable.asm 1.1 85/04/10 2 | ; 3 | ; Table Segment for MS-DOS DOS 4 | ; 5 | 6 | .xlist 7 | .xcref 8 | include stdsw.asm 9 | .cref 10 | .list 11 | 12 | TITLE STDTABLE - Table segment for MS-DOS 13 | NAME STDTABLE 14 | 15 | include mstable.asm 16 | END 17 | -------------------------------------------------------------------------------- /v4.0/src/MESSAGES/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************* makefile for messages ************************** 2 | 3 | country =usa-ms 4 | 5 | # 6 | ####################### dependencies begin here. ######################### 7 | # 8 | 9 | all: $(country).idx 10 | 11 | $(country).idx: $(country).msg 12 | 13 | -------------------------------------------------------------------------------- /v4.0/src/DOS/MSCODE.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)ibmcode.asm 1.1 85/04/10 2 | TITLE MISC DOS ROUTINES - Int 25 and 26 handlers and other 3 | NAME IBMCODE 4 | 5 | ; 6 | ; System call dispatch code. 7 | ; 8 | 9 | .xlist 10 | .xcref 11 | include mssw.asm 12 | .cref 13 | .list 14 | 15 | include ms_code.asm 16 | END 17 | -------------------------------------------------------------------------------- /v4.0/src/DOS/STDCTRLC.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)stdctrlc.asm 1.1 85/04/10 2 | ; 3 | ; ^C and error handler for MSDOS 4 | ; 5 | 6 | .xlist 7 | .xcref 8 | include stdsw.asm 9 | .cref 10 | .list 11 | 12 | TITLE Control C detection, Hard error and EXIT routines 13 | NAME STDCTRLC 14 | 15 | include ctrlc.asm 16 | -------------------------------------------------------------------------------- /v4.0/src/INC/DIVMES.ASM: -------------------------------------------------------------------------------- 1 | ; THIS IS THE ONLY DOS "MESSAGE". IT DOES NOT NEED A TERMINATOR. 2 | PUBLIC DIVMES 3 | Public DIVM001S,DIVM001E 4 | DIVM001S label byte 5 | 6 | include msdos.cl1 7 | 8 | PUBLIC DivMesLen 9 | DivMesLen DW $-DivMes ; Length of the above message in bytes 10 | DIVM001E label byte 11 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/XMAEM/XMAEM.LC: -------------------------------------------------------------------------------- 1 | INDEINI.ASM 2 | INDEEMU.ASM 3 | INDEEXC.ASM 4 | INDEXMA.ASM 5 | INDEDMA.ASM 6 | INDEIDT.ASM 7 | INDEGDT.ASM 8 | INDEI15.ASM 9 | INDEMAUS.ASM 10 | INDEMSUS.INC 11 | INDEDAT.INC 12 | INDEACC.INC 13 | INDEOVP.MAC 14 | INDEINS.MAC 15 | INDEDES.MAC 16 | INDEMSUS.ASM 17 | INDEMSG.ASM 18 | INDEPAT.ASM 19 |  -------------------------------------------------------------------------------- /v4.0/src/DOS/STDCODE.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)stdcode.asm 1.1 85/04/10 2 | TITLE MS-DOS MISC DOS ROUTINES - Int 25 and 26 handlers and other 3 | NAME STDCODE 4 | 5 | ; 6 | ; System call dispatch code 7 | ; 8 | 9 | .xlist 10 | .xcref 11 | include stdsw.asm 12 | .cref 13 | .list 14 | 15 | include ms_code.asm 16 | END 17 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/RESTORE/RESTORE.LNK: -------------------------------------------------------------------------------- 1 | /STACK:50000 + 2 | restore + 3 | restpars + 4 | rtt1 + 5 | rtt3 + 6 | rtdo + 7 | rtdo1 + 8 | rtold + 9 | rtold1 + 10 | rtnew + 11 | rtnew1 + 12 | rtfile + 13 | rtfile1 + 14 | _parse + 15 | _msgret 16 | restore.exe,,..\..\mapper\mapper + ..\..\inc\comsubs; 17 |  -------------------------------------------------------------------------------- /v4.0/src/DOS/MSCPMIO.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)ibmcpmio.asm 1.1 85/04/10 2 | ; 3 | ; Standard device IO for MSDOS (first 12 function calls) 4 | ; 5 | 6 | .xlist 7 | .xcref 8 | include mssw.asm 9 | include dosseg.asm 10 | .cref 11 | .list 12 | 13 | TITLE IBMCPMIO - device IO for MSDOS 14 | NAME IBMCPMIO 15 | 16 | include cpmio.asm 17 |  -------------------------------------------------------------------------------- /v4.0/src/MAPPER/MSC.INC: -------------------------------------------------------------------------------- 1 | _DATA SEGMENT WORD PUBLIC 'DATA' 2 | _DATA ENDS 3 | 4 | CONST SEGMENT WORD PUBLIC 'CONST' 5 | CONST ENDS 6 | 7 | _BSS SEGMENT WORD PUBLIC 'BSS' 8 | _BSS ENDS 9 | 10 | STACK SEGMENT PARA PUBLIC 'STACK' 11 | STACK ENDS 12 | 13 | DGROUP GROUP _DATA, CONST, _BSS, STACK 14 | 15 | 16 |  -------------------------------------------------------------------------------- /v4.0/src/DOS/STDCPMIO.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)stdcpmio.asm 1.1 85/04/10 2 | ; 3 | ; Standard device IO for MSDOS (first 12 function calls) 4 | ; 5 | 6 | .xlist 7 | .xcref 8 | include stdsw.asm 9 | include dosseg.asm 10 | .cref 11 | .list 12 | 13 | TITLE STDCPMIO - device IO for MSDOS 14 | NAME STDCPMIO 15 | 16 | include cpmio.asm 17 | -------------------------------------------------------------------------------- /v4.0/src/INC/MSDOSME.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)ibmdosmes.asm 1.1 85/04/10 2 | ; 3 | ; Standard device IO for MSDOS (first 12 function calls) 4 | ; 5 | debug=0 6 | .xlist 7 | .xcref 8 | include mssw.asm 9 | include dosseg.asm 10 | .cref 11 | .list 12 | 13 | TITLE IBMDOSMES - DOS OEM dependancies 14 | NAME IBMDOSMES 15 | 16 | include dosmes.asm 17 |  -------------------------------------------------------------------------------- /v4.0/src/DOS/MSDOS.SKL: -------------------------------------------------------------------------------- 1 | 2 | :class 1 3 | ; This was taken from DEVMES.INC IN G:USA\ ... 4 | ; DIVMES DB 13,10,"Divide overflow",13,10 5 | 6 | :use 001 msdos DIVMES 7 | 8 | :class 3 9 | 10 | ;This is for Yes No check 11 | :use 205 command NLS_YES 12 | :use 206 command NLS_NO 13 | :use 002 msdos NLS_yes2 14 | :use 003 msdos NLS_no2 15 | 16 | :end 17 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/FIND/FINDMES.ASM: -------------------------------------------------------------------------------- 1 | title FIND Messages 2 | 3 | Message macro sym,text 4 | public sym,sym&_len 5 | sym db text 6 | sym&_len db $-sym 7 | endm 8 | 9 | CR equ 0dh ;A Carriage Return 10 | LF equ 0ah ;A Line Feed 11 | 12 | code segment public 13 | 14 | PUBLIC heading 15 | message heading, 16 | 17 | code ends 18 | end 19 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/DISPMES.ASM: -------------------------------------------------------------------------------- 1 | CODE SEGMENT BYTE PUBLIC 'CODE' ; 2 | ASSUME CS:CODE,DS:CODE ; 3 | ; 4 | CR EQU 13 ; 5 | LF EQU 10 ; 6 | ; 7 | PUBLIC ERROR_1B ; 8 | PUBLIC ERROR_1A ; 9 | PUBLIC ERROR_2 ; 10 | PUBLIC ERROR_3 ; 11 | ;; PUBLIC MSG_4 ; 12 | ; 13 | INCLUDE DISPMES.INC 14 | ; 15 | CODE ENDS ; 16 | END ; 17 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/FDISK5.SKL: -------------------------------------------------------------------------------- 1 | :class 1 2 | ; 3 | ;******** messages for the Fixed Disk Boot Record ****** 4 | ; 5 | ;m1: db "Invalid partition table",0 ;23 6 | :use 1114 fdisk m1: 7 | ; 8 | ;m2: db "Error loading operating system",0 ;30 9 | :use 1115 fdisk m2: 10 | ; 11 | ;m3: db "Missing operating system",0 ;24 12 | :use 1116 fdisk m3: 13 | ; 14 | :end 15 |  -------------------------------------------------------------------------------- /v4.0/src/SETENV.BAT: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo setting up system to build the MS-DOS 4.01 SOURCE BAK... 3 | set CL= 4 | set LINK= 5 | set MASM= 6 | set COUNTRY=usa-ms 7 | set BAKROOT=d: 8 | rem BAKROOT points to the home drive/directory of the sources. 9 | set LIB=%BAKROOT%\src\tools\lib 10 | set INIT=%BAKROOT%\src\tools 11 | set INCLUDE=%BAKROOT%\src\tools\inc 12 | set PATH=%BAKROOT%\src\tools 13 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FC/ERROR.C: -------------------------------------------------------------------------------- 1 | /* error.c - return text of error corresponding to the most recent DOS error */ 2 | 3 | #include "tools.h" 4 | 5 | extern int errno; 6 | extern sys_nerr; 7 | extern char *sys_errlist[]; 8 | extern char UnKnown[]; 9 | 10 | char *error () 11 | { 12 | if (errno < 0 || errno >= sys_nerr) 13 | return UnKnown; 14 | else 15 | return sys_errlist[errno]; 16 | } 17 | -------------------------------------------------------------------------------- /v4.0/src/CMD/IFSFUNC/IFSFUNC.LNK: -------------------------------------------------------------------------------- 1 | IFSSESS.OBJ IFSDIR.OBJ IFSFILE.OBJ IFSHAND.OBJ + 2 | IFSDEV.OBJ IFSUTIL.OBJ IFSERROR.OBJ IFSFDOS.OBJ IFSINIT.OBJ + 3 | ..\..\inc\NIBDOS.OBJ+ 4 | ..\..\inc\CONST2.OBJ+ 5 | ..\..\inc\msDATA.OBJ+ 6 | ..\..\inc\msTABLE.OBJ+ 7 | ..\..\dos\msDISP.OBJ + 8 | ..\..\dos\msCODE.OBJ + 9 | ..\..\inc\msDOSME.OBJ+ 10 | IFSFLINK.OBJ 11 | IFSFUNC.EXE,IFSFUNC.MAP /EX; 12 |  -------------------------------------------------------------------------------- /v4.0/src/DOS/STDDOSME.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)stddosmes.as 1.2 85/10/07 2 | ; SCCSID = @(#)stddosmes.as 1.2 85/10/07 3 | ; 4 | ; Standard device IO for MSDOS (first 12 function calls) 5 | ; 6 | 7 | .xlist 8 | .xcref 9 | include stdsw.asm 10 | include dosseg.asm 11 | .cref 12 | .list 13 | 14 | debug=0 15 | 16 | TITLE STDDOSMES - DOS OEM dependancies 17 | NAME STDDOSMES 18 | 19 | include dosmes.asm 20 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/COMMAND/COMMAND.LNK: -------------------------------------------------------------------------------- 1 | /map COMMAND1.OBJ COMMAND2.OBJ RUCODE.OBJ RDATA.OBJ INIT.OBJ IPARSE.OBJ + 2 | UINIT.OBJ TCODE.OBJ TBATCH.OBJ TBATCH2.OBJ TFOR.OBJ TCMD1A.OBJ TCMD1B.OBJ + 3 | TCMD2A.OBJ TCMD2B.OBJ TENV.OBJ TENV2.OBJ TMISC1.OBJ TMISC2.OBJ TPIPE.OBJ + 4 | PARSE2.OBJ PATH1.OBJ PATH2.OBJ TUCODE.OBJ COPY.OBJ COPYPR1.OBJ COPYPR2.OBJ + 5 | CPARSE.OBJ TPARSE.OBJ TPRINTF.OBJ TDATA.OBJ TSPC.OBJ,COMMAND.EXE,,; 6 |  -------------------------------------------------------------------------------- /v4.0/src/INC/FASTXXXX.INC: -------------------------------------------------------------------------------- 1 | ; Fastxxx equates 2 | FastOpen_ID equ 1 3 | FastSeek_ID equ 2 4 | Fast_yes equ 10000000B ; fastxxx flag 5 | 6 | ;Structure definitions 7 | ; 8 | Fasttable_Entry struc ; Fastxxx Entry pointer in DOS 9 | Fast_Entry_Num dw 2 ; number of entries 10 | FastOpen_Seek dd ? ; fastopen & fastseek entry address 11 | Fasttable_Entry ends 12 | ; 13 | -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/LCD/FONT-R3.ASM: -------------------------------------------------------------------------------- 1 | CODE SEGMENT BYTE PUBLIC 'CODE' 2 | ASSUME CS:CODE,DS:CODE 3 | 4 | BEGIN: ORG 0 5 | 6 | FNTHEAD:DB 0FFH,"FONT " ;FILE TAG 7 | DB 8 DUP(0) ;RESERVED 8 | DW 1 ;CNT OF POINTERS IN HEADER 9 | DB 1 ;TYPE FOR INFO POINTER 10 | DW OFFSET INFO,0 ;POINTER TO INFO IN FILE 11 | INFO: DW 5 ;COUNT OF ENTRIES 12 | 13 | CODE ENDS 14 | END 15 |  -------------------------------------------------------------------------------- /v4.0/src/BIOS/PUSHPOP.INC: -------------------------------------------------------------------------------- 1 | IF1 ;3.30 2 | 3 | SaveReg MACRO reglist ;; push those registers 4 | IRP reg, 5 | ?stackdepth = ?stackdepth + 1 6 | PUSH reg 7 | ENDM 8 | ENDM 9 | .xcref SaveReg 10 | 11 | 12 | RestoreReg MACRO reglist ;; pop those registers 13 | IRP reg, 14 | ?stackdepth = ?stackdepth - 1 15 | POP reg 16 | ENDM 17 | ENDM 18 | .xcref RestoreReg 19 | 20 | ENDIF ;3.30 21 | -------------------------------------------------------------------------------- /v4.0/src/INC/MACRO.DEF: -------------------------------------------------------------------------------- 1 | PAGE 2 | ;***************************************************************************; 3 | ; MACRO DEFINITION ; 4 | ;***************************************************************************; 5 | 6 | PRINT MACRO MESSAGE 7 | MOV DX,OFFSET MESSAGE&_PTR 8 | PUSH DX 9 | PUSH CS 10 | CALL PRINTF 11 | ENDM 12 | 13 | 14 | 15 | INPUT MACRO MESSAGE 16 | PRINT MESSAGE 17 | CALL PROMPT 18 | ENDM 19 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/COUNTRY/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************ Makefile for Country.sys ************************ 2 | 3 | dos =..\..\dos 4 | lib =..\..\lib 5 | inc =..\..\inc 6 | 7 | # 8 | ######################## Dependencies begin here ########################## 9 | # 10 | 11 | all: country.sys 12 | 13 | mkcntry.obj: mkcntry.asm mkcntry.inc 14 | 15 | mkcntry.exe: mkcntry.obj 16 | link mkcntry; 17 | 18 | country.sys: mkcntry.exe 19 | mkcntry 20 | -------------------------------------------------------------------------------- /v4.0/src/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************* Root level Makefile ************************* 2 | 3 | make =nmake 4 | 5 | all: 6 | cd messages 7 | $(make) 8 | cd ..\mapper 9 | $(make) 10 | cd ..\boot 11 | $(make) 12 | cd ..\bios 13 | $(make) 14 | cd ..\dos 15 | $(make) 16 | cd ..\cmd 17 | $(make) 18 | cd ..\dev 19 | $(make) 20 | cd ..\select 21 | $(make) 22 | cd ..\memm 23 | $(make) 24 | cd .. 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | ## Security 2 | 3 | **Since MS-DOS is historical reference software, this file is in place as a template only.** 4 | 5 | ## Reporting Security Issues 6 | 7 | **Please do not report security vulnerabilities through public GitHub issues.** 8 | 9 | You can learn more about the security reporting process with the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report). 10 | -------------------------------------------------------------------------------- /v4.0/src/MAPPER/MAPPER.INC: -------------------------------------------------------------------------------- 1 | 2 | 3 | _TEXT SEGMENT BYTE PUBLIC 'CODE' 4 | _TEXT ENDS 5 | 6 | CONST SEGMENT WORD PUBLIC 'CONST' 7 | CONST ENDS 8 | 9 | _BSS SEGMENT WORD PUBLIC 'BSS' 10 | _BSS ENDS 11 | 12 | _DATA SEGMENT WORD PUBLIC 'DATA' 13 | _DATA ENDS 14 | 15 | DGROUP GROUP CONST, _BSS, _DATA 16 | 17 | ASSUME CS: _TEXT 18 | ASSUME DS: DGROUP 19 | ASSUME SS: DGROUP 20 | ASSUME ES: DGROUP 21 | 22 | 23 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/ANSI/ANSI.SKL: -------------------------------------------------------------------------------- 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2 | ; 3 | ; Message Skeleton file for ANSI.SYS 4 | ; 5 | ; Author: WGR 6 | ; 7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 8 | 9 | :util ANSI ; utility name 10 | 11 | :class A 12 | :use 1 COMMON1 ; 'Incorrect DOS version' 13 | :def 10 "Invalid parameter - %1",CR,LF ; 'Invalid parameter' 14 | 15 | :end 16 |  -------------------------------------------------------------------------------- /v4.0/src/INC/FASTSEEK.INC: -------------------------------------------------------------------------------- 1 | ; 2 | ;Equates for FASTSEEK. 3 | ; 4 | ;FASTSEEK flags 5 | ; 6 | FS_begin equ 00000001B 7 | FS_end equ 11111110B 8 | FS_insert equ 00000010B 9 | FS_no_insert equ 11111101B 10 | 11 | ;FASTSEEK EXTENT CACHING Subfunctions 12 | FSEC_open equ 11 13 | FSEC_close equ 12 14 | FSEC_delete equ 13 15 | FSEC_lookup equ 14 16 | FSEC_insert equ 15 17 | FSEC_truncate equ 16 18 | ; 19 | ;Equates used in DOS. 20 | 21 | 22 | ; 23 | -------------------------------------------------------------------------------- /v4.0/src/DEV/SMARTDRV/MAKEFILE: -------------------------------------------------------------------------------- 1 | # rules and dependencies follow 2 | # 3 | # use microsoft make to build 4 | # 5 | # set up build environment - include and library for c 6 | # 7 | 8 | all: smartdrv.sys 9 | 10 | smartdrv.obj: smartdrv.asm mi.asm loadall.asm \ 11 | syscall.asm emm.asm above.asm \ 12 | devsym.asm 13 | masm smartdrv.asm; 14 | 15 | smartdrv.exe: smartdrv.obj 16 | link smartdrv,,smartdrv/M; 17 | 18 | smartdrv.sys: smartdrv.exe 19 | exe2bin smartdrv smartdrv.sys 20 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FIND/FIND.SKL: -------------------------------------------------------------------------------- 1 | :util FIND 2 | 3 | :class 1 ;Extended errors ;AN005; 4 | 5 | :class 2 ;Parser errors ;AN005; 6 | 7 | :class A ;Utility specific errors ;AN005; 8 | :use 1 COMMON1 ;AN005; ;"Incorrect DOS version" 9 | :use 2 EXTEND8 ;AN005; ;"Insufficient memory" 10 | :def 4 "FIND: " ;AN005; 11 | 12 | :end 13 | -------------------------------------------------------------------------------- /v4.0/src/CMD/COMMAND/IFEQU.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)ifequ.asm 1.1 85/05/14 2 | ; SCCSID = @(#)ifequ.asm 1.1 85/05/14 3 | ;************************************* 4 | ; COMMAND EQUs which are switch dependant 5 | 6 | IF1 7 | IF IBM 8 | %OUT DBCS Enabled IBM version 9 | ELSE 10 | %OUT Normal version 11 | ENDIF 12 | 13 | ;; IF KANJI 3/3/KK 14 | ;; %OUT Kanji version 3/3/KK 15 | ;; ENDIF 3/3/KK 16 | 17 | ENDIF 18 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/PRINTER.SKL: -------------------------------------------------------------------------------- 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2 | ; 3 | ; Message Skeleton file for PRINTER.SYS 4 | ; 5 | ; Author: WGR 6 | ; 7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 8 | 9 | :util PRINTER ; utility name 10 | 11 | :class A 12 | :use 1 COMMON1 13 | :def 2 "%1 code page driver cannot be initialized",CR,LF,BELL 14 | :def 12 "Invalid syntax on PRINTER.SYS code page driver",CR,LF,BELL 15 | 16 | :end 17 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/MORE/MORE.SKL: -------------------------------------------------------------------------------- 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2 | ; 3 | ; Message Skeleton file for MORE.COM 4 | ; 5 | ; Author: WGR 6 | ; 7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 8 | 9 | :util MORE ; utility name ;AN000; 10 | 11 | :class A ;AN000; 12 | :use 1 COMMON1 ; 'Incorrect DOS version' ;AN000; 13 | :def 2 "-- More --" ;AN000; 14 | 15 | :end ;AN000; 16 |  -------------------------------------------------------------------------------- /v4.0/src/INC/DPL.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)dpl.asm 1.1 85/04/10 2 | ; SCCSID = @(#)dpl.asm 1.1 85/04/10 3 | DPL STRUC 4 | DPL_AX DW ? ; AX register 5 | DPL_BX DW ? ; BX register 6 | DPL_CX DW ? ; CX register 7 | DPL_DX DW ? ; DX register 8 | DPL_SI DW ? ; SI register 9 | DPL_DI DW ? ; DI register 10 | DPL_DS DW ? ; DS register 11 | DPL_ES DW ? ; ES register 12 | DPL_reserved DW ? ; Reserved 13 | DPL_UID DW ? ; User (Machine) ID (0 = local macine) 14 | DPL_PID DW ? ; Process ID (0 = local user PID) 15 | DPL ENDS 16 | -------------------------------------------------------------------------------- /v4.0/src/CMD/APPEND/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** makefile for cmd\append *************************** 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: append.exe 13 | 14 | append.ctl: append.skl $(msg)\$(COUNTRY).msg 15 | 16 | append.obj: append.asm appendp.inc $(inc)\parse.asm append.ctl 17 | 18 | append.exe: append.obj 19 | link append; 20 | 21 | -------------------------------------------------------------------------------- /v4.0/src/INC/LOCK.INC: -------------------------------------------------------------------------------- 1 | ; 2 | ;Equates for LOCK 3 | ; 4 | ;LOCK functions 5 | ; 6 | Lock_all equ 0 7 | Unlock_all equ 1 8 | Lock_mul_range equ 2 9 | Unlock_mul_range equ 3 10 | Lock_read equ 4 11 | Write_unlock equ 5 12 | Lock_add equ 6 13 | 14 | ; 15 | ;Structure for Lock buffer 16 | 17 | LockBuf STRUC 18 | 19 | Lock_position DD ? ; file position for LOCK 20 | Lock_length DD ? ; number of bytes to LOCK 21 | 22 | LockBuf ENDS 23 | ; 24 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/DRIVER/DRIVER.SKL: -------------------------------------------------------------------------------- 1 | ;================================================ 2 | ; DRIVER.SYS Message Skeleton File 3 | ;================================================ 4 | 5 | :util DRIVER 6 | :class 2 7 | :use PARSE1 8 | :use PARSE2 9 | :use PARSE3 10 | :use PARSE4 11 | :use PARSE6 12 | :use PARSE7 13 | :use PARSE8 14 | 15 | :class A 16 | :use 1 COMMON1 ;"Incorrect DOS version" 17 | :def 2 "No Drive Specified",CR,LF,"$" 18 | :def 3 "Loaded External Disk Driver for Drive %1",CR,LF,"$" 19 | 20 | :end 21 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/DISPLAY.SKL: -------------------------------------------------------------------------------- 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2 | ; 3 | ; Message Skeleton file for DISPLAY.SYS 4 | ; 5 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 6 | 7 | :util DISPLAY ; utility name 8 | 9 | :class A 10 | :use 1 COMMON1 11 | :def 2 "%1 code page driver cannot be initialized",CR,LF,BELL 12 | :def 8 "Insufficient memory",CR,LF,BELL 13 | :def 12 "Invalid syntax on DISPLAY.SYS code page driver",CR,LF,BELL 14 | 15 | :end 16 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FC/MAXMIN.ASM: -------------------------------------------------------------------------------- 1 | ; 2 | ; maximum and minimum routines. 3 | ; 4 | 5 | .xlist 6 | include version.inc 7 | include cmacros.inc 8 | .list 9 | 10 | sBegin code 11 | assumes cs,code 12 | 13 | cProc max, 14 | parmW a 15 | parmW b 16 | cBegin 17 | mov ax,a 18 | cmp ax,b 19 | jg maxdone 20 | mov ax,b 21 | maxdone: 22 | cEnd 23 | 24 | cProc min, 25 | parmW a 26 | parmW b 27 | cBegin 28 | mov ax,a 29 | cmp ax,b 30 | jl mindone 31 | mov ax,b 32 | mindone: 33 | cEnd 34 | 35 | sEnd 36 | 37 | end 38 | -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/5202/MAKEFILE: -------------------------------------------------------------------------------- 1 | #********************** Makefile for Printer\5202.CPI ********************** 2 | 3 | inc =..\..\..\inc 4 | dos =..\..\..\dos 5 | hinc =..\..\..\h 6 | msg =..\..\..\message 7 | 8 | # 9 | ######################### Dependencies Begin Here ########################## 10 | # 11 | 12 | all: 5202.cpi 13 | 14 | 5202.obj: 5202.asm $(inc)\copyrigh.inc makefile 15 | 16 | 17 | 5202.cpi: 5202.obj 18 | link 5202; 19 | exe2bin 5202 5202.cpi 20 | del 5202.exe 21 | 22 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FC/FC.H: -------------------------------------------------------------------------------- 1 | struct lineType { 2 | int line; /* line number */ 3 | unsigned char text[MAXARG]; /* body of line */ 4 | }; 5 | 6 | #define byte unsigned char 7 | #define word unsigned short 8 | 9 | #define LOWVERSION 0x0300 + 10 10 | #define HIGHVERSION 0x0400 + 00 11 | 12 | extern unsigned char _ctype_[]; 13 | #define _SPACE 0x8 /* tab, carriage return, new line, */ 14 | #define ISSPACE(c) ( (_ctype_+1)[c] & _SPACE ) 15 | -------------------------------------------------------------------------------- /v4.0/src/CMD/NLSFUNC/NLSFUNC.SKL: -------------------------------------------------------------------------------- 1 | :util NLSFUNC ;AN000; 2 | :class 2 ;AN000; 3 | :use PARSE1 ;AN000; 4 | :use PARSE2 ;AN000; 5 | :use PARSE3 ;AN000; 6 | :use PARSE4 ;AN000; 7 | :use PARSE6 ;AN000; 8 | :use PARSE7 ;AN000; 9 | :use PARSE8 ;AN000; 10 | :use PARSE10 ;AN003; 11 | :class A ;AN000; 12 | :use 1 COMMON1 ;AN000;;MSG 1 is always "Incorrect DOS version" 13 | :use 2 COMMON2 ;AN000;;MSG 2 is always "%1 already installed" 14 | :use 3 EXTEND2 ;AN000;;MSG 3 is always "File not found - %1" 15 | :end ;AN000; 16 | -------------------------------------------------------------------------------- /v4.0/src/DEV/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** DEV root level Makefile *********************** 2 | 3 | make =nmake 4 | 5 | all: 6 | cd country 7 | $(make) 8 | cd ..\ansi 9 | $(make) 10 | cd ..\keyboard 11 | $(make) 12 | cd ..\display 13 | $(make) 14 | cd ..\printer 15 | $(make) 16 | cd ..\driver 17 | $(make) 18 | cd ..\ramdrive 19 | $(make) 20 | cd ..\smartdrv 21 | $(make) 22 | cd ..\xma2ems 23 | $(make) 24 | cd ..\vdisk 25 | $(make) 26 | cd ..\xmaem 27 | $(make) 28 | cd .. 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/EGA/CPI-HEAD.ASM: -------------------------------------------------------------------------------- 1 | CODE SEGMENT BYTE PUBLIC 'CODE' 2 | ASSUME CS:CODE,DS:CODE 3 | 4 | BEGIN: ORG 0 5 | 6 | FNTHEAD:DB 0FFH,"FONT " ;FILE TAG 7 | DB 8 DUP(0) ;RESERVED 8 | DW 1 ;CNT OF POINTERS IN HEADER 9 | DB 1 ;TYPE FOR INFO POINTER 10 | DW OFFSET INFO,0 ;POINTER TO INFO IN FILE 11 | INFO: DW 5 ;COUNT OF ENTRIES 12 | 13 | CODE ENDS 14 | END 15 |  -------------------------------------------------------------------------------- /v4.0/src/SELECT/SELECT.LNK: -------------------------------------------------------------------------------- 1 | SELECT0+ 2 | SELECT1+ 3 | SELECT2+ 4 | SELECT2A+ 5 | SELECT3+ 6 | SELECT4+ 7 | SELECT5+ 8 | SELECT5A+ 9 | SELECT6+ 10 | SELECT7+ 11 | SELECT8+ 12 | SELECT9+ 13 | ROUTINE2+ 14 | GEN_COMS+ 15 | ROUTINES+ 16 | INTVEC+ 17 | CKDISP+ 18 | SCN_PARM+ 19 | PRN_DEF+ 20 | VAR+ 21 | CASERVIC+ 22 | INPUT+ 23 | INITMEM+ 24 | MPARSE+ 25 | MOD_COPY+ 26 | S_DISPLY+ 27 | BRIDGE+ 28 | ASM2C+ 29 | GET_STAT+ 30 | GLOBAL+ 31 | INT13+ 32 | BOOTREC, 33 | SELECT.EXE /EXEPACK 34 | SELECT/MAP 35 | SERVICES.LIB+ 36 | CASSFAR.LIB; 37 | -------------------------------------------------------------------------------- /v4.0/src/DEV/RAMDRIVE/MI.INC: -------------------------------------------------------------------------------- 1 | BREAK 2 | 3 | mi_INT EQU 0CDh 4 | mi_Long_JMP EQU 0EAh 5 | mi_Long_CALL EQU 09Ah 6 | mi_Long_RET EQU 0CBh 7 | mi_Near_RET EQU 0C3h 8 | 9 | ; xxxxoditszxaxpxc 10 | f_Overflow EQU 0000100000000000B 11 | f_Direction EQU 0000010000000000B 12 | f_Interrupt EQU 0000001000000000B 13 | f_Trace EQU 0000000100000000B 14 | f_Sign EQU 0000000010000000B 15 | f_Zero EQU 0000000001000000B 16 | f_Aux EQU 0000000000010000B 17 | f_Parity EQU 0000000000000100B 18 | f_Carry EQU 0000000000000001B 19 | -------------------------------------------------------------------------------- /v4.0/src/DEV/SMARTDRV/MI.ASM: -------------------------------------------------------------------------------- 1 | BREAK 2 | 3 | mi_INT EQU 0CDh 4 | mi_Long_JMP EQU 0EAh 5 | mi_Long_CALL EQU 09Ah 6 | mi_Long_RET EQU 0CBh 7 | mi_Near_RET EQU 0C3h 8 | 9 | ; xxxxoditszxaxpxc 10 | f_Overflow EQU 0000100000000000B 11 | f_Direction EQU 0000010000000000B 12 | f_Interrupt EQU 0000001000000000B 13 | f_Trace EQU 0000000100000000B 14 | f_Sign EQU 0000000010000000B 15 | f_Zero EQU 0000000001000000B 16 | f_Aux EQU 0000000000010000B 17 | f_Parity EQU 0000000000000100B 18 | f_Carry EQU 0000000000000001B 19 | -------------------------------------------------------------------------------- /v4.0/src/MEMM/MEMM/EMM386.LNK: -------------------------------------------------------------------------------- 1 | memm386+ 2 | elimfunc+ 3 | emm+ 4 | emmmes+ 5 | emminit+ 6 | memmonf+ 7 | init+ 8 | m_state+ 9 | rom_srch+ 10 | ppage+ 11 | allocmem+ 12 | inittab+ 13 | shiphi+ 14 | extpool+ 15 | vdminit+ 16 | i286+ 17 | i386+ 18 | tabdef+ 19 | trapdef+ 20 | vmtrap+ 21 | vminst+ 22 | elimtrap+ 23 | iotrap+ 24 | a20trap+ 25 | oemproc+ 26 | initepg+ 27 | vminit+ 28 | em286ll+ 29 | em386ll+ 30 | moveb+ 31 | maplin+ 32 | retreal+ 33 | rrtrap+ 34 | errhndlr+ 35 | ekbd+ 36 | util+ 37 | initdeb+ 38 | mapdma 39 | emm386.exe 40 | emm386.map/m 41 | ..\emm\emmlib.lib 42 | -------------------------------------------------------------------------------- /v4.0/src/BOOT/MAKEFILE: -------------------------------------------------------------------------------- 1 | #******************** makefile for boot ***************************** 2 | 3 | msg =..\messages 4 | dos =..\dos 5 | inc =..\inc 6 | hinc =..\h 7 | 8 | # 9 | #################### dependencies begin here ############################ 10 | # 11 | 12 | all: msboot.bin 13 | 14 | boot.cl1: boot.skl \ 15 | $(msg)\$(COUNTRY).MSG \ 16 | makefile 17 | 18 | msboot.obj: msboot.asm boot.cl1 19 | 20 | msboot.bin: msboot.obj 21 | link msboot; 22 | exe2bin msboot.exe msboot.bin 23 | dbof msboot.bin boot.inc 7c00 200 24 | copy boot.inc $(inc) 25 | del boot.inc 26 | -------------------------------------------------------------------------------- /v4.0/src/INC/DOSSEG.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)dosseg.asm 1.1 85/04/10 2 | ; SCCSID = @(#)dosseg.asm 1.1 85/04/10 3 | ; 4 | ; segment ordering for MSDOS 5 | ; 6 | 7 | START SEGMENT BYTE PUBLIC 'START' 8 | START ENDS 9 | 10 | CONSTANTS SEGMENT WORD PUBLIC 'CONST' 11 | CONSTANTS ENDS 12 | 13 | DATA SEGMENT WORD PUBLIC 'DATA' 14 | DATA ENDS 15 | 16 | TABLE SEGMENT BYTE PUBLIC 'TABLE' 17 | TABLE ENDS 18 | 19 | CODE SEGMENT BYTE PUBLIC 'CODE' 20 | CODE ENDS 21 | 22 | LAST SEGMENT PARA PUBLIC 'LAST' 23 | LAST ENDS 24 | 25 | DOSGROUP GROUP START,CONSTANTS,DATA,TABLE,CODE,LAST 26 | -------------------------------------------------------------------------------- /v4.0/src/MEMM/MEMM/EMM386D.LNK: -------------------------------------------------------------------------------- 1 | memm386+ 2 | elimfunc+ 3 | emmD+ 4 | emmmes+ 5 | emminit+ 6 | memmonf+ 7 | init+ 8 | rom_srch+ 9 | ppage+ 10 | allocmem+ 11 | inittab+ 12 | vdminitD+ 13 | i286+ 14 | i386+ 15 | tabdefD+ 16 | trapdef+ 17 | kbd+ 18 | print+ 19 | vmtrapD+ 20 | vminstD+ 21 | elimtrap+ 22 | iotrap+ 23 | a20trap+ 24 | oemproc+ 25 | initepg+ 26 | vminit+ 27 | em286ll+ 28 | em386ll+ 29 | moveb+ 30 | maplin+ 31 | retreal+ 32 | rrtrap+ 33 | errhndlr+ 34 | ekbd+ 35 | util+ 36 | initdebD+ 37 | mapdma 38 | emm386d.exe 39 | emm386d.map/m 40 | ..\deb386\buglib.lib ..\emm\emmlib.lib 41 |  42 | -------------------------------------------------------------------------------- /v4.0/src/CMD/SORT/SORT.SKL: -------------------------------------------------------------------------------- 1 | :util SORT ;AN000; 2 | :class 1 ;AN000; 3 | 4 | :class 2 ;Parser errors ;AN003; 5 | 6 | :class A ;AN000; 7 | :use 1 COMMON1 ;AN000; ;"Incorrect DOS version",CR,LF 8 | :use 2 EXTEND8 ;AN000; ;"Insufficient memory",CR,LF 9 | :use 4 COMMON20 ;AN003; 10 | :def 5 "SORT: " ;AN003; 11 | 12 | :end ;AN000; 13 | -------------------------------------------------------------------------------- /v4.0/src/DEV/DRIVER/DRIVER.MAK: -------------------------------------------------------------------------------- 1 | COM=..\COMMON 2 | MSG=..\MESSAGES 3 | country=usa 4 | 5 | 6 | DRIVER.CTL: DRIVER.SKL $(MSG)\$(COUNTRY).MSG 7 | MSGBUILD DRIVER.SKL 8 | 9 | DRIVER.OBJ: DRIVER.ASM $(COM)\IBMBDS.INC $(COM)\VERSIONA.INC \ 10 | $(COM)\PARSE.ASM $(COM)\PSDATA.INC \ 11 | DRIVER.CTL $(COM)\SYSMSG.INC $(COM)\MSGSERV.ASM 12 | ASM87 DRIVER 13 | 14 | DRIVER.SYS: DRIVER.OBJ $(COM)\setver.bat DRIVER.ARF 15 | LINK @DRIVER.ARF 16 | EXE2BIN DRIVER.EXE DRIVER.SYS 17 | TAG DRIVER.SYS 18 | DEL DRIVER.EXE 19 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/FILESYS/FILESYS.SKL: -------------------------------------------------------------------------------- 1 | 2 | :util FILESYS 3 | 4 | :class 1 5 | 6 | :class A 7 | :use COMMON1 ;"Incorrect DOS version",cr,lf 8 | :def 10 " PAUSED %1 %2 %3",CR,LF 9 | :def 11 " %1 %2 %3",CR,LF 10 | :def 12 " Local IFS",CR,LF ;an001;bgb 11 | :def 13 " Status Device Name Parameters",CR,LF ;an001;bgb 12 | :def 14 " ______ ______ _________ ___________________",CR,LF,CR,LF 13 | :def 15 "No entries found",CR,LF 14 | :def 16 " ERROR %1 %2 %3",CR,LF 15 | :end 16 | -------------------------------------------------------------------------------- /v4.0/src/INC/MI.INC: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)mi.asm 1.1 85/04/10 2 | BREAK 3 | 4 | mi_INT EQU 0CDh 5 | mi_Long_JMP EQU 0EAh 6 | mi_Long_CALL EQU 09Ah 7 | mi_Long_RET EQU 0CBh 8 | mi_Near_RET EQU 0C3h 9 | 10 | ; xxxxoditszxaxpxc 11 | f_Overflow EQU 0000100000000000B 12 | f_Direction EQU 0000010000000000B 13 | f_Interrupt EQU 0000001000000000B 14 | f_Trace EQU 0000000100000000B 15 | f_Sign EQU 0000000010000000B 16 | f_Zero EQU 0000000001000000B 17 | f_Aux EQU 0000000000010000B 18 | f_Parity EQU 0000000000000100B 19 | f_Carry EQU 0000000000000001B 20 | -------------------------------------------------------------------------------- /v4.0/src/CMD/NLSFUNC/FUNCDBCS.INC: -------------------------------------------------------------------------------- 1 | ;; generic ioctl call data "packet" pointed to by DS:DX =E 2 | PACKET STRUC ;USED BY MINOR CODES: 6AH,4AH,4DH (SELECT, QUERY SELECTED, PREPARE END) =E 3 | PACKLEN DW 0 ;LENGTH OF PACKET IN BYTES =E 2/16/KK 4 | PACKCPID DW 0 ;CODE PAGE ID =E 5 | DBCS_EV DB 0,0 ; 2/16/KK 6 | DB 0,0 ; 2/16/KK 7 | DB 0,0 ; 2/16/KK 8 | DB 0,0 ; 2/16/KK 9 | DB 0,0 ; 2/16/KK 10 | DB 0,0 ; 2/16/KK 11 | DB 0,0 ; 2/16/KK 12 | DB 0,0 ; 2/16/KK 13 | PACKET ENDS 14 | 15 | 16 | STD_CPLENGTH equ 2 17 | PK PACKET <> ;CNS 18 |  -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/INC/SHARE.H: -------------------------------------------------------------------------------- 1 | /*** 2 | *share.h - defines file sharing modes for sopen 3 | * 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * This file defines the file sharing modes for sopen(). 8 | * 9 | *******************************************************************************/ 10 | 11 | #define SH_COMPAT 0x00 /* compatibility mode */ 12 | #define SH_DENYRW 0x10 /* deny read/write mode */ 13 | #define SH_DENYWR 0x20 /* deny write mode */ 14 | #define SH_DENYRD 0x30 /* deny read mode */ 15 | #define SH_DENYNO 0x40 /* deny none mode */ 16 | -------------------------------------------------------------------------------- /v4.0/src/H/VERSIONC.H: -------------------------------------------------------------------------------- 1 | 2 | #include /* Declaration & init of DOS _osmajor & _osminor */ 3 | 4 | #define expected_version_major 4 /* DOS Major Version 4 */ 5 | #define expected_version_minor 00 /* DOS Minor Version 00 */ 6 | 7 | /********************************************/ 8 | /*Each C program should: */ 9 | /* */ 10 | /* if ((expected_version_major != _osmajor) */ 11 | /* | (expected_version_minor != _osminor))*/ 12 | /* exit(incorrect_dos_version); */ 13 | /* */ 14 | /********************************************/ 15 | 16 | -------------------------------------------------------------------------------- /v4.0/src/CMD/RESTORE/DIRECT.H: -------------------------------------------------------------------------------- 1 | /* 2 | * direct.h 3 | * 4 | * This include file contains the function declarations for the library 5 | * functions related to directory handling and creation. 6 | * 7 | * Copyright (C) 1988 Microsoft Corporation 8 | * 9 | */ 10 | 11 | /* function declarations for those who want strong type checking 12 | * on arguments to library function calls 13 | */ 14 | 15 | #ifdef LINT_ARGS /* arg. checking enabled */ 16 | 17 | int chdir(char *); 18 | char *getcwd(char *, int); 19 | int mkdir(char *); 20 | int rmdir(char *); 21 | 22 | #else 23 | 24 | extern char *getcwd(); 25 | 26 | #endif /* LINT_ARGS */ 27 | -------------------------------------------------------------------------------- /v4.0/src/DOS/SHRPRINT.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)shrprint.asm 1.1 85/04/10 2 | TITLE SHRPRINT - PRINTF at SHARE level 3 | NAME SHRPRINT 4 | ; 5 | ; 6 | ; Modification history: 7 | ; 8 | ; Created: MZ 16 June 1984 9 | ; 10 | 11 | .xlist 12 | ; 13 | ; get the appropriate segment definitions 14 | ; 15 | include dosseg.asm 16 | 17 | Share SEGMENT PARA PUBLIC 'SHARE' 18 | ASSUME SS:DOSGROUP,CS:SHARE 19 | 20 | .xcref 21 | INCLUDE DOSSYM.INC 22 | INCLUDE DEVSYM.INC 23 | .cref 24 | .list 25 | .sall 26 | 27 | I_Need Proc_ID,WORD 28 | I_Need User_ID,WORD 29 | 30 | BREAK 31 | 32 | include print.asm 33 | 34 | SHARE ENDS 35 | END 36 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/FDISK.SKL: -------------------------------------------------------------------------------- 1 | :util FDISK ;utility name 2 | :class A ;system messages 3 | ; 4 | :use 1 COMMON1 ;"Incorrect DOS version" 5 | :use 2 COMMON2 ;"Insufficient Memory" 6 | :use 3 COMMON3 ;"Internal error loading messages" 7 | :use 8 EXTEND87 ;"Invalid parameter" 8 | :def 9 "Y",0 ;"Y" 9 | :def 10 "N",0 ;"N" 10 | ; 11 | :class B 12 | :def 4 "Cannot FDISK with network loaded",CR,LF 13 | :def 5 "No fixed disks present",CR,LF 14 | :def 6 "Error reading fixed disk",CR,LF 15 | :def 7 "Error writing fixed disk",CR,LF 16 | ; 17 | ; 18 | :end 19 | -------------------------------------------------------------------------------- /v4.0/src/BIOS/DEVMARK.INC: -------------------------------------------------------------------------------- 1 | ;Structure, Equtes for DEVMARK for MEM command. 2 | 3 | DEVMARK struc 4 | DEVMARK_ID db 0 5 | DEVMARK_SEG dw 0 6 | DEVMARK_SIZE dw 0 7 | DEVMARK_DUM db 3 dup (?) 8 | DEVMARK_FILENAME db 8 dup (' ') 9 | DEVMARK ends 10 | 11 | DEVMARK_STK equ 'S' 12 | DEVMARK_DEVICE equ 'D' 13 | DEVMARK_IFS equ 'I' 14 | DEVMARK_BUF equ 'B' 15 | DEVMARK_CDS equ 'L' ;lastdrive 16 | DEVMARK_FILES equ 'F' 17 | DEVMARK_FCBS equ 'X' 18 | DEVMARK_INST equ 'T' ;used for SYSINIT BASE for INSTALL= command. 19 | DEVMARK_EMS_STUB equ 'E' 20 | 21 | SETBRKDONE equ 00000001b 22 | FOR_DEVMARK equ 00000010b 23 | NOT_FOR_DEVMARK equ 11111101b 24 | -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/INC/SYS/LOCKING.H: -------------------------------------------------------------------------------- 1 | /*** 2 | *sys\locking.h - flags for locking() function 3 | * 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * This file defines the flags for the locking() function. 8 | * [System V] 9 | * 10 | *******************************************************************************/ 11 | 12 | #define LK_UNLCK 0 /* unlock the file region */ 13 | #define LK_LOCK 1 /* lock the file region */ 14 | #define LK_NBLCK 2 /* non-blocking lock */ 15 | #define LK_RLCK 3 /* lock for writing */ 16 | #define LK_NBRLCK 4 /* non-blocking lock for writing */ 17 | -------------------------------------------------------------------------------- /v4.0/src/H/CDS.H: -------------------------------------------------------------------------------- 1 | /* structure of a CDS */ 2 | 3 | #define DIRSTRLEN 64+3 4 | 5 | struct CDSType 6 | { 7 | char text[DIRSTRLEN] ; 8 | unsigned flags ; 9 | long pDPB ; 10 | long ID ; 11 | unsigned wUser ; 12 | unsigned cbEnd ; 13 | char type ; 14 | long ifs_hdr ; 15 | char fsda[2] ; 16 | } ; 17 | 18 | #define CDSNET 0x8000 19 | #define CDSINUSE 0x4000 20 | #define CDSSPLICE 0x2000 21 | #define CDSLOCAL 0x1000 22 | 23 | extern char fGetCDS() ; 24 | extern char fPutCDS() ; 25 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/REBOOT.ASM: -------------------------------------------------------------------------------- 1 | 2 | title Reboot Support for FDISK 3 | 4 | IF1 5 | %OUT ASSEMBLING: Reboot 6 | %OUT 7 | ENDIF 8 | 9 | ROMDATA segment at 040h 10 | org 072h 11 | BootType dw ? 12 | ROMDATA ends 13 | 14 | ROMBIOS segment at 0ffffh 15 | org 0 16 | POR label far 17 | ROMBIOS ends 18 | 19 | _text segment byte public 'code' 20 | assume cs:_TEXT 21 | assume ds:nothing 22 | assume es:nothing 23 | assume ss:nothing 24 | 25 | public _reboot 26 | _reboot proc near 27 | 28 | mov ax,ROMDATA 29 | mov ds,ax 30 | assume ds:ROMDATA 31 | 32 | mov BootType,1234h 33 | 34 | cli 35 | cld 36 | jmp POR 37 | 38 | _reboot endp 39 | 40 | _text ends 41 | 42 | end 43 |  -------------------------------------------------------------------------------- /v4.0/src/INC/VERSIONA.INC: -------------------------------------------------------------------------------- 1 | 2 | major_version equ 4 ;Major DOS version 3 | minor_version equ 00 ;Minor DOS Version 4 | 5 | expected_version equ (MINOR_VERSION SHL 8)+MAJOR_VERSION 6 | 7 | if1 8 | %OUT ... for DOS Version 4.00 ... 9 | endif 10 | 11 | ;****************************** 12 | ;Each assembler program should: 13 | ; mov ah,030h ;DOS Get Version function 14 | ; int 021h ;Version ret. in AX,minor version first 15 | ; cmp ax,expected_version ;ALL utilities should check for an 16 | ; jne error_handler ; EXACT version match. 17 | ;****************************** 18 | 19 | -------------------------------------------------------------------------------- /v4.0/src/DOS/DOSPRINT.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)dosprint.asm 1.1 85/04/10 2 | ; SCCSID = @(#)dosprint.asm 1.1 85/04/10 3 | TITLE DOSPRINT - PRINTF at DOS level 4 | NAME DOSPRINT 5 | ; 6 | ; 7 | ; Modification history: 8 | ; 9 | ; Created: MZ 16 June 1984 10 | ; 11 | 12 | .xlist 13 | ; 14 | ; get the appropriate segment definitions 15 | ; 16 | include dosseg.asm 17 | 18 | CODE SEGMENT BYTE PUBLIC 'CODE' 19 | ASSUME SS:DOSGroup,CS:DOSGroup 20 | 21 | .xcref 22 | INCLUDE DOSSYM.INC 23 | INCLUDE DEVSYM.INC 24 | .cref 25 | .list 26 | .sall 27 | 28 | I_Need Proc_ID,WORD 29 | I_Need User_ID,WORD 30 | 31 | BREAK 32 | 33 | include print.asm 34 | 35 | CODE ENDS 36 | END 37 | -------------------------------------------------------------------------------- /v4.0/src/MEMM/MEMM/DISP.INC: -------------------------------------------------------------------------------- 1 | extrn PrintString:near 2 | extrn PrintHex:near 3 | 4 | display macro string 5 | local dbs,disp_exit 6 | pushf 7 | push ds 8 | push es 9 | 10 | push cs 11 | pop ds 12 | push cs 13 | pop es 14 | 15 | push si 16 | mov si,offset cs:dbs 17 | call PrintString 18 | pop si 19 | pop es 20 | pop ds 21 | popf 22 | jmp disp_exit 23 | 24 | dbs db &string,0 25 | 26 | disp_exit: 27 | endm 28 | 29 | content macro reg 30 | pushf 31 | push ds 32 | push es 33 | push ax 34 | 35 | mov ax,reg 36 | 37 | push cs 38 | pop ds 39 | push cs 40 | pop es 41 | 42 | call PrintHex 43 | 44 | pop ax 45 | pop es 46 | pop ds 47 | popf 48 | endm 49 | 50 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/KEYB/KEYBI2F.INC: -------------------------------------------------------------------------------- 1 | .XLIST 2 | 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4 | ;; DOS - NLS Support - KEYB Command 5 | ;; (C) Copyright 1988 Microsoft 6 | ;; 7 | ;; File Name: KEYBI2F.INC 8 | ;; ---------- 9 | ;; 10 | ;; Description: 11 | ;; ------------ 12 | ;; External declarations and equates for procedures in file 13 | ;; KEYBI2F.ASM 14 | ;; 15 | ;; Change History: 16 | ;; --------------- 17 | ;; 18 | ;; 19 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 20 | ;; 21 | EXTRN KEYB_INT_2F:NEAR ;; 22 | ;; 23 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 24 | 25 | .LIST 26 | 27 | -------------------------------------------------------------------------------- /v4.0/src/INC/MSDATA.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)ibmdata.asm 1.1 85/04/10 2 | ; 3 | ; DATA Segment for DOS. 4 | ; 5 | 6 | .xlist 7 | .xcref 8 | include mssw.asm 9 | include dosseg.asm 10 | debug = FALSE ; No dossym (too big) 11 | INCLUDE DOSMAC.INC 12 | INCLUDE SF.INC 13 | INCLUDE DIRENT.INC 14 | INCLUDE CURDIR.INC 15 | INCLUDE DPB.INC 16 | INCLUDE BUFFER.INC 17 | INCLUDE ARENA.INC 18 | INCLUDE VECTOR.INC 19 | INCLUDE DEVSYM.INC 20 | INCLUDE PDB.INC 21 | INCLUDE FIND.INC 22 | INCLUDE MI.INC 23 | .cref 24 | .list 25 | 26 | TITLE IBMDATA - DATA segment for DOS 27 | NAME IBMDATA 28 | 29 | installed = TRUE 30 | 31 | include ms_data.asm 32 | include msinit.asm 33 | END 34 | -------------------------------------------------------------------------------- /v4.0/src/INC/MSDATA2.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)ibmdata.asm 1.1 85/04/10 2 | ; 3 | ; DATA Segment for DOS 4 | ; 5 | 6 | .xlist 7 | .xcref 8 | include mssw.asm 9 | include dosseg.asm 10 | debug = FALSE ; No dossym (too big) 11 | INCLUDE DOSMAC.INC 12 | INCLUDE SF.INC 13 | INCLUDE DIRENT.INC 14 | INCLUDE CURDIR.INC 15 | INCLUDE DPB.INC 16 | INCLUDE BUFFER.INC 17 | INCLUDE ARENA.INC 18 | INCLUDE VECTOR.INC 19 | INCLUDE DEVSYM.INC 20 | INCLUDE PDB.INC 21 | INCLUDE FIND.INC 22 | INCLUDE MI.INC 23 | .cref 24 | .list 25 | 26 | TITLE IBMDATA - DATA segment for DOS 27 | NAME IBMDATA 28 | 29 | installed = TRUE 30 | 31 | include msdata.asm 32 | include msinit.asm 33 | END 34 | -------------------------------------------------------------------------------- /v4.0/src/DEV/VDISK/VDISKMSG.ASM: -------------------------------------------------------------------------------- 1 | PAGE ,132 2 | TITLE VDISKMSG - VDISK message library 3 | 4 | ;All messages issued by VDISK are defined here for ease in 5 | ;translation for international use. 6 | 7 | ;Each message should end with a '$' to delimit the end of the string. 8 | 9 | CSEG SEGMENT PARA PUBLIC 'CODE' 10 | 11 | PUBLIC IMSG 12 | PUBLIC ERRM1,ERRM2,ERRM3,ERRM4,ERRM5,ERRM6,ERRM7,errm8 13 | PUBLIC MSG1,MSG2,MSG3,MSG4,MSG5,MSGCRLF 14 | PUBLIC MSGEND 15 | 16 | ;ASCII equates 17 | 18 | BEL EQU 07H ;alarm 19 | LF EQU 0AH ;line feed 20 | CR EQU 0DH ;carriage return 21 | 22 | 23 | include vdiskmsg.inc 24 | 25 | MSGEND LABEL BYTE ;must be last in module 26 | CSEG ENDS 27 | END 28 | -------------------------------------------------------------------------------- /v4.0/src/DOS/STDDATA.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)stddata.asm 1.1 85/04/10 2 | ; 3 | ; DATA Segment for MS-DOS 4 | ; 5 | 6 | .xlist 7 | .xcref 8 | include stdsw.asm 9 | include dosseg.asm 10 | debug = FALSE ; No dossym (too big) 11 | INCLUDE DOSMAC.INC 12 | INCLUDE SF.INC 13 | INCLUDE DIRENT.INC 14 | INCLUDE CURDIR.INC 15 | INCLUDE DPB.INC 16 | INCLUDE BUFFER.INC 17 | INCLUDE ARENA.INC 18 | INCLUDE VECTOR.INC 19 | INCLUDE DEVSYM.INC 20 | INCLUDE PDB.INC 21 | INCLUDE FIND.INC 22 | INCLUDE MI.INC 23 | .cref 24 | .list 25 | 26 | TITLE STDDATA - DATA segment for MS-DOS 27 | NAME STDDATA 28 | 29 | installed = TRUE 30 | 31 | include msdata.asm 32 | include msinit.asm 33 | END 34 | -------------------------------------------------------------------------------- /v4.0/src/CMD/KEYB/KEYBI48.INC: -------------------------------------------------------------------------------- 1 | 2 | .XLIST 3 | 4 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 5 | ;; DOS - NLS Support - KEYB Command 6 | ;; (C) Copyright 1988 Microsoft 7 | ;; 8 | ;; File Name: KEYBI48.INC 9 | ;; ---------- 10 | ;; 11 | ;; Description: 12 | ;; ------------ 13 | ;; External declarations and equates for procedures in file 14 | ;; KEYBI48.ASM 15 | ;; 16 | ;; Change History: 17 | ;; --------------- 18 | ;; 19 | ;; 20 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 21 | ;; 22 | EXTRN KEYB_INT_48:NEAR ;; 23 | ;; 24 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 25 | 26 | .LIST 27 | 28 | -------------------------------------------------------------------------------- /v4.0/src/DEV/DRIVER/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************ makefile for dev\driver ************************ 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: driver.sys 13 | 14 | driver.ctl: driver.skl $(msg)\$(COUNTRY).msg 15 | 16 | driver.obj: driver.asm $(inc)\msbds.inc $(inc)\versiona.inc \ 17 | $(inc)\parse.asm $(inc)\psdata.inc \ 18 | driver.ctl $(inc)\sysmsg.inc $(inc)\msgserv.asm 19 | 20 | driver.sys: driver.obj driver.lnk 21 | link @driver.lnk 22 | exe2bin driver.exe driver.sys 23 | del driver.exe 24 | -------------------------------------------------------------------------------- /v4.0/src/SELECT/DOSFILES.INC: -------------------------------------------------------------------------------- 1 | ALLOCATE_START DW 0 ;AN000; 2 | ; 3 | DEST DB 0 ;AN000; 4 | FILE_NUM DW 0 ;AN000; 5 | NUMBER_OF_FILES DW 0 ;AN000; 6 | TABLE_OFFSET DW 0 ;AN000; 7 | PATH_OFFSET DW 0 ;AN000; 8 | NOT_FOUND_FLAG DB 0 ;AN000; 9 | SP_SAVE DW 0 ;AN000; 10 | ; 11 | EVERYTHING DB 'B:*.*',0 ;AN000; 12 | ; 13 | DOS_FILE_PTR DW 0 ;AN000; 14 | BUFFER_START DW 0 ;AN000; 15 | ; 16 | B_TARGET DB 'B:\',0 ;AN000; 17 | LENGTH_B_TARGET EQU $-B_TARGET ;AN000; 18 | ; 19 | A_TARGET DB 'A:\',0 ;AN111;JW 20 | LENGTH_A_TARGET EQU $-A_TARGET ;AN111;JW 21 | -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/INC/STDARG.H: -------------------------------------------------------------------------------- 1 | /*** 2 | *stdarg.h - defines ANSI-style macros for variable argument functions 3 | * 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * This file defines ANSI-style macros for accessing arguments 8 | * of functions which take a variable number of arguments. 9 | * [ANSI] 10 | * 11 | *******************************************************************************/ 12 | 13 | #ifndef _VA_LIST_DEFINED 14 | typedef char *va_list; 15 | #define _VA_LIST_DEFINED 16 | #endif 17 | 18 | #define va_start(ap,v) ap = (va_list)&v + sizeof(v) 19 | #define va_arg(ap,t) ((t *)(ap += sizeof(t)))[-1] 20 | #define va_end(ap) ap = NULL 21 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/FDISK.LNK: -------------------------------------------------------------------------------- 1 | /DOSSEG /MAP /CPA:1000 /SEG:1024 /E+ 2 | main.obj + 3 | mainmenu.obj + 4 | d_menus.obj + 5 | c_menus.obj + 6 | fdisk.obj + 7 | reboot.obj + 8 | bootrec.obj + 9 | fdboot.obj + 10 | display.obj + 11 | input.obj + 12 | tdisplay.obj + 13 | vdisplay.obj + 14 | space.obj + 15 | partinfo.obj + 16 | video.obj + 17 | makepart.obj + 18 | int13.obj + 19 | diskout.obj + 20 | messages.obj + 21 | fdparse.obj + 22 | convert.obj + 23 | global.obj + 24 | _parse.obj + 25 | _msgret.obj + 26 | fdiskm.obj 27 | fdisk.exe, 28 | fdisk.map, 29 | ..\..\mapper\MAPPER.lib + 30 | ..\..\inc\comsubs.lib; 31 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/TEST.H: -------------------------------------------------------------------------------- 1 | test() 2 | 3 | BEGIN 4 | 5 | int i; 6 | int x; 7 | 8 | for (i=0;i<24;i++) 9 | BEGIN 10 | for (x=0;x <2; x++) 11 | BEGIN 12 | ext_part_entry[i][x].boot_ind = 0; 13 | ext_part_entry[i][x].start_head = 0; 14 | ext_part_entry[i][x].start_sector = 0; 15 | ext_part_entry[i][x].start_cyl = 0; 16 | ext_part_entry[i][x].sys_id = 0; 17 | ext_part_entry[i][x].end_head = 0; 18 | ext_part_entry[i][x].end_sector = 0; 19 | ext_part_entry[i][x].end_cyl = 0; 20 | ext_part_entry[i][x].rel_sec = 0; 21 | ext_part_entry[i][x].num_sec = 0; 22 | END 23 | END 24 | return; 25 | END 26 |  -------------------------------------------------------------------------------- /v4.0/src/BIOS/MSDSKPR.INC: -------------------------------------------------------------------------------- 1 | ; The following structure defines the disk parameter table 2 | ; pointed to by Interrupt vector 1EH (location 0:78H) 3 | 4 | DISK_PARMS STRUC 5 | DISK_SPECIFY_1 DB ? 6 | DISK_SPECIFY_2 DB ? 7 | DISK_MOTOR_WAIT DB ? ; Wait till motor off 8 | DISK_SECTOR_SIZ DB ? ; Bytes/Sector (2 = 512) 9 | DISK_EOT DB ? ; Sectors per track (MAX) 10 | DISK_RW_GAP DB ? ; Read Write Gap 11 | DISK_DTL DB ? 12 | DISK_FORMT_GAP DB ? ; Format Gap Length 13 | DISK_FILL DB ? ; Format Fill Byte 14 | DISK_HEAD_STTL DB ? ; Head Settle Time (MSec) 15 | DISK_MOTOR_STRT DB ? ; Motor start delay 16 | DISK_PARMS ENDS 17 | 18 | ROMStatus equ 1 19 | ROMRead equ 2 20 | ROMWrite equ 3 21 | ROMVerify equ 4 22 | ROMFormat equ 5 23 | -------------------------------------------------------------------------------- /v4.0/src/DEV/XMA2EMS/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************ makefile for dev\xma2ems************************ 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: xma2ems.sys 13 | 14 | xma2ems.ctl: xma2ems.skl $(MSG)\$(country).MSG makefile 15 | 16 | xma2ems.obj: xma2ems.asm xma1diag.inc xma2ems.cl1 $(inc)\COPYRIGH.INC \ 17 | parmpars.inc lim40.inc ps2_5060.inc makefile \ 18 | emsinit.inc genioctl.inc xma2emsp.inc lim40b.inc romscan.inc \ 19 | $(inc)\psdata.inc 20 | 21 | xma2ems.sys: xma2ems.obj makefile 22 | link xma2ems; 23 | exe2bin xma2ems.exe xma2ems.sys 24 | del xma2ems.exe 25 | -------------------------------------------------------------------------------- /v4.0/src/MAPPER/KBD.INC: -------------------------------------------------------------------------------- 1 | ; KeyData 2 | 3 | KeyData struc 4 | 5 | Char_Code db ? 6 | Scan_Code db ? 7 | Status db ? 8 | Shift_State dw ? 9 | Time dd ? 10 | 11 | KeyData ends 12 | 13 | 14 | 15 | KbdStatus struc 16 | 17 | KS_Length dw ? 18 | Bit_mask dw ? 19 | Turn_Around_Char dw ? 20 | Interim_Char_Flags dw ? 21 | Status_Shift_State dw ? 22 | 23 | KbdStatus ends 24 | 25 | ; Bit_Mask equates 26 | 27 | CookedModeOn equ 8 28 | RawModeOn equ 4 29 | EchoOff equ 2 30 | EchoOn equ 1 31 | 32 | 33 | include macros.inc 34 | 35 |  -------------------------------------------------------------------------------- /v4.0/src/BIOS/JUMPMAC.INC: -------------------------------------------------------------------------------- 1 | ;;Rev 3.30 Modification 2 | ; 3 | ; given a label either 2 byte jump to another label _J 4 | ; if it is near enough or 3 byte jump to 5 | ; 6 | 7 | jump macro lbl 8 | local a 9 | .xcref 10 | 11 | ifndef lbl&_j ;; is this the first invocation 12 | a: 13 | JMP lbl 14 | ELSE 15 | IF (lbl&_J GE $) OR ($-lbl&_J GT 126) 16 | a: 17 | JMP lbl ;; is the jump too far away? 18 | ELSE 19 | a: 20 | JMP lbl&_J ;; do the short one... 21 | ENDIF 22 | ENDIF 23 | lbl&_j = a 24 | .cref 25 | endm 26 | .xcref jump 27 | ;REDEFINE THE ABOVE MACRO TO ALWAYS TRY A 3 BYTE NEAR JUMP 28 | JUMP MACRO LBL 29 | JMP LBL 30 | ENDM ;;End of Modification 31 |  -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/INC/VARARGS.H: -------------------------------------------------------------------------------- 1 | /*** 2 | *varargs.h - XENIX style macros for variable argument functions 3 | * 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * This file defines XENIX style macros for accessing arguments of a 8 | * function which takes a variable number of arguments. 9 | * [System V] 10 | * 11 | *******************************************************************************/ 12 | 13 | #ifndef _VA_LIST_DEFINED 14 | typedef char *va_list; 15 | #define _VA_LIST_DEFINED 16 | #endif 17 | 18 | #define va_dcl va_list va_alist; 19 | #define va_start(ap) ap = (va_list)&va_alist 20 | #define va_arg(ap,t) ((t *)(ap += sizeof(t)))[-1] 21 | #define va_end(ap) ap = NULL 22 | -------------------------------------------------------------------------------- /v4.0/src/CMD/KEYB/KEYBI9.INC: -------------------------------------------------------------------------------- 1 | .XLIST 2 | 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4 | ;; DOS - NLS Support - KEYB Command 5 | ;; (C) Copyright 1988 Micrsoft 6 | ;; 7 | ;; File Name: KEYBI9.INC 8 | ;; ---------- 9 | ;; 10 | ;; Root File Name: KEYB.ASM 11 | ;; --------------- 12 | ;; 13 | ;; Description: 14 | ;; ------------ 15 | ;; External declarations and equates for procedures in file 16 | ;; KEYBI9.ASM 17 | ;; 18 | ;; Change History: 19 | ;; --------------- 20 | ;; 21 | ;; 22 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 23 | ;; 24 | EXTRN KEYB_STATE_PROCESSOR:NEAR 25 | ;; 26 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 27 | 28 | .LIST 29 | 30 | -------------------------------------------------------------------------------- /v4.0/src/CMD/COMMAND/ENVDATA.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)envdata.asm 1.1 85/05/14 2 | ; SCCSID = @(#)envdata.asm 1.1 85/05/14 3 | ; This file is included by command.asm and is used as the default command 4 | ; environment. 5 | 6 | ENVARENA SEGMENT PUBLIC PARA 7 | ORG 0 8 | DB 10h DUP (?) ;Pad for memory allocation addr mark 9 | ENVARENA ENDS 10 | 11 | ENVIRONMENT SEGMENT PUBLIC PARA ; Default COMMAND environment 12 | 13 | PUBLIC ECOMSPEC,ENVIREND,PATHSTRING 14 | 15 | ORG 0 16 | PATHSTRING DB "PATH=" 17 | USERPATH LABEL BYTE 18 | 19 | DB 0 ; Null path 20 | DB "COMSPEC=" 21 | ECOMSPEC DB "\COMMAND.COM" ;AC062 22 | DB 134 DUP (0) 23 | 24 | ENVIREND LABEL BYTE 25 | 26 | ENVIRONSIZ EQU $-PATHSTRING 27 | ENVIRONSIZ2 EQU $-ECOMSPEC 28 | ENVIRONMENT ENDS 29 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/PRINT.H: -------------------------------------------------------------------------------- 1 | 2 | clear_screen(0,0,24,39); 3 | printf("boot_ind=%d\n", part_table[temp][cur_disk].boot_ind); 4 | printf("start head=%d\n", part_table[temp][cur_disk].start_head); 5 | printf("start sec=%d\n", part_table[temp][cur_disk].start_sector); 6 | printf("start cyl=%d\n", part_table[temp][cur_disk].start_cyl); 7 | printf("sys id=%d\n", part_table[temp][cur_disk].sys_id); 8 | printf("end head=%d\n", part_table[temp][cur_disk].end_head); 9 | printf("end sec=%d\n", part_table[temp][cur_disk].end_sector); 10 | printf("end cyl=%d\n", part_table[temp][cur_disk].end_cyl); 11 | printf("rel sec=%d\n", part_table[temp][cur_disk].rel_sec); 12 | printf("num sec=%d\n", part_table[temp][cur_disk].num_sec); 13 | 14 | wait_for_esc(); 15 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/FC/NTOI.C: -------------------------------------------------------------------------------- 1 | /* convert an arbitrary based number to an integer */ 2 | 3 | #include 4 | #include "tools.h" 5 | 6 | /* p points to characters, return -1 if no good characters found 7 | * and base is 2 <= base <= 16 8 | */ 9 | int ntoi (p, base) 10 | char *p; 11 | int base; 12 | { 13 | register int i, c; 14 | flagType fFound; 15 | 16 | if (base < 2 || base > 16) 17 | return -1; 18 | i = 0; 19 | fFound = FALSE; 20 | while (c = *p++) { 21 | c = tolower (c); 22 | if (!isxdigit (c)) 23 | break; 24 | if (c <= '9') 25 | c -= '0'; 26 | else 27 | c -= 'a'-10; 28 | if (c >= base) 29 | break; 30 | i = i * base + c; 31 | fFound = TRUE; 32 | } 33 | if (fFound) 34 | return i; 35 | else 36 | return -1; 37 | } 38 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FASTOPEN/FASTSEGS.INC: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | .seq 5 | stack segment Stack 'STACK' ; represents STACK ;AN000; 6 | stack ends ;AN000; 7 | 8 | cseg_main segment Public 'CODE'; represents MAIN 9 | cseg_main ends 10 | 11 | cseg_open segment Public 'CODE'; represents FASTOPEN ;AN000; 12 | cseg_open ends ;AN000; 13 | 14 | cseg_seek segment Public 'CODE'; represents FASTSEEK ;AN000; 15 | cseg_seek ends ;AN000; 16 | 17 | cseg_init segment Public 'CODE' ; represents INIT 18 | cseg_init ends 19 | 20 |  -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/INC/DIRECT.H: -------------------------------------------------------------------------------- 1 | /*** 2 | *direct.h - function declarations for directory handling/creation 3 | * 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * This include file contains the function declarations for the library 8 | * functions related to directory handling and creation. 9 | * 10 | *******************************************************************************/ 11 | 12 | 13 | #ifndef NO_EXT_KEYS /* extensions enabled */ 14 | #define _CDECL cdecl 15 | #else /* extensions not enabled */ 16 | #define _CDECL 17 | #endif /* NO_EXT_KEYS */ 18 | 19 | /* function prototypes */ 20 | 21 | int _CDECL chdir(char *); 22 | char * _CDECL getcwd(char *, int); 23 | int _CDECL mkdir(char *); 24 | int _CDECL rmdir(char *); 25 | -------------------------------------------------------------------------------- /v4.0/src/DEV/RAMDRIVE/LOADALL.INC: -------------------------------------------------------------------------------- 1 | BREAK 2 | 3 | DEF_ACCESS EQU 92H 4 | DEF_LIMIT EQU 0FFFFH 5 | 6 | SEGREG_DESCRIPTOR STRUC 7 | SEG_BASE DW ? 8 | DB ? 9 | SEG_ACCESS DB DEF_ACCESS 10 | SEG_LIMIT DW DEF_LIMIT 11 | SEGREG_DESCRIPTOR ENDS 12 | 13 | DTR_DESCRIPTOR STRUC 14 | DTR_BASE DW ? 15 | DB ? 16 | DB 0 17 | DTR_LIMIT DW ? 18 | DTR_DESCRIPTOR ENDS 19 | ; 20 | ; 386 Descriptor template 21 | ; 22 | desc struc 23 | lim_0_15 dw 0 ; limit bits (0..15) 24 | bas_0_15 dw 0 ; base bits (0..15) 25 | bas_16_23 db 0 ; base bits (16..23) 26 | access db 0 ; access byte 27 | gran db 0 ; granularity byte 28 | bas_24_31 db 0 ; base bits (24..31) 29 | desc ends 30 | 31 | gdt_descriptor struc 32 | gdt_limit dw ? 33 | gdt_base_0 dw ? 34 | gdt_base_2 dw ? 35 | gdt_descriptor ends 36 | -------------------------------------------------------------------------------- /v4.0/src/DEV/RAMDRIVE/MAKEFILE: -------------------------------------------------------------------------------- 1 | #** makefile for Ramdrive 2 | 3 | DEST = ramdrive 4 | MSG = messages 5 | 6 | # Definitions for assembler 7 | 8 | ASM = masm 9 | AFLAGS = -Mx -t 10 | AINC = -I../../inc 11 | 12 | # Definitions for C compiler 13 | 14 | CC = cl 15 | CFLAGS = -Ox -X -Zlp 16 | CINC = -I../../h 17 | 18 | # Definitions for linker 19 | 20 | LINK = link 21 | 22 | # Dependencies follow 23 | 24 | all: ramdrive.sys 25 | 26 | ramdrive.obj: ramdrive.asm above.inc loadall.inc emm.inc mi.inc \ 27 | dirent.inc syscall.inc devsym.inc 28 | masm $(AFLAGS) $(AINC) ramdrive; 29 | 30 | messages.obj: messages.asm 31 | masm $(AFLAGS) $(AINC) messages; 32 | 33 | ramdrive.sys: ramdrive.obj messages.obj 34 | link @ramdrive.lnk 35 | exe2bin ramdrive ramdrive.sys 36 | del ramdrive.exe 37 | -------------------------------------------------------------------------------- /v4.0/src/DEV/SMARTDRV/LOADALL.ASM: -------------------------------------------------------------------------------- 1 | BREAK 2 | 3 | DEF_ACCESS EQU 92H 4 | DEF_LIMIT EQU 0FFFFH 5 | 6 | SEGREG_DESCRIPTOR STRUC 7 | SEG_BASE DW ? 8 | DB ? 9 | SEG_ACCESS DB DEF_ACCESS 10 | SEG_LIMIT DW DEF_LIMIT 11 | SEGREG_DESCRIPTOR ENDS 12 | 13 | DTR_DESCRIPTOR STRUC 14 | DTR_BASE DW ? 15 | DB ? 16 | DB 0 17 | DTR_LIMIT DW ? 18 | DTR_DESCRIPTOR ENDS 19 | ; 20 | ; 386 Descriptor template 21 | ; 22 | desc struc 23 | lim_0_15 dw 0 ; limit bits (0..15) 24 | bas_0_15 dw 0 ; base bits (0..15) 25 | bas_16_23 db 0 ; base bits (16..23) 26 | access db 0 ; access byte 27 | gran db 0 ; granularity byte 28 | bas_24_31 db 0 ; base bits (24..31) 29 | desc ends 30 | 31 | gdt_descriptor struc 32 | gdt_limit dw ? 33 | gdt_base_0 dw ? 34 | gdt_base_2 dw ? 35 | gdt_descriptor ends 36 | -------------------------------------------------------------------------------- /v4.0/src/DEV/DISPLAY/LCD/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************ Makefile for Display\LCD ************************ 2 | 3 | inc =..\..\..\inc 4 | msg =..\..\..\message 5 | dos =..\..\..\dos 6 | hinc =..\..\..\h 7 | 8 | # 9 | ######################### Dependencies Begin Here ######################### 10 | # 11 | 12 | all: lcd.cpi 13 | 14 | 865-cpi.obj: 865-cpi.asm 15 | 16 | 860-cpi.obj: 860-cpi.asm 17 | 18 | 437-cpi.obj: 437-cpi.asm 19 | 20 | 863-cpi.obj: 863-cpi.asm 21 | 22 | 850-cpi.obj: 850-cpi.asm 23 | 24 | copyrigh.obj: copyrigh.asm $(inc)\copyrigh.inc 25 | 26 | font-r3.obj: font-r3.asm 27 | 28 | lcd.cpi: font-r3.obj 437-cpi.obj 850-cpi.obj 860-cpi.obj \ 29 | 863-cpi.obj 865-cpi.obj copyrigh.obj lcd.lnk makefile 30 | link @lcd.lnk 31 | exe2bin font-r3.exe lcd.cpi 32 | del font-r3.exe 33 | -------------------------------------------------------------------------------- /v4.0/src/DOS/MSSW.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)ibmsw.asm 1.1 85/04/10 2 | 3 | include version.inc 4 | 5 | IBM EQU ibmver 6 | WANG EQU FALSE 7 | 8 | ; Set this switch to cause DOS to move itself to the end of memory 9 | HIGHMEM EQU FALSE 10 | 11 | ; Turn on switch below to allow testing disk code with DEBUG. It sets 12 | ; up a different stack for disk I/O (functions > 11) than that used for 13 | ; character I/O which effectively makes the DOS re-entrant. 14 | 15 | IF IBM 16 | ESCCH EQU 0 ; character to begin escape seq. 17 | CANCEL EQU 27 ;Cancel with escape 18 | TOGLPRN EQU TRUE ;One key toggles printer echo 19 | ZEROEXT EQU TRUE 20 | ELSE 21 | ESCCH EQU 1BH 22 | CANCEL EQU "X"-"@" ;Cancel with Ctrl-X 23 | TOGLPRN EQU FALSE ;Separate keys for printer echo on 24 | ;and off 25 | ZEROEXT EQU TRUE 26 | ENDIF 27 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/KEYB/KEYBCPSD.INC: -------------------------------------------------------------------------------- 1 | .XLIST 2 | 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4 | ;; DOS - NLS Support - KEYB Command 5 | ;; (C) Copyright 1988 Microsoft 6 | ;; 7 | ;; File Name: KEYBCPSD.INC 8 | ;; ---------- 9 | ;; 10 | ;; Description: 11 | ;; ------------ 12 | ;; External declarations and equates for procedures in file 13 | ;; KEYBCPSD.ASM 14 | ;; 15 | ;; Change History: 16 | ;; --------------- 17 | ;; 18 | ;; 19 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 20 | ;; 21 | EXTRN COPY_SD_AREA:NEAR ;; 22 | ;; 23 | EXTRN SD_DEST_PTR :BYTE ;; 24 | EXTRN SHARED_DATA :BYTE ;; 25 | ;; 26 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 27 | 28 | .LIST 29 | 30 | -------------------------------------------------------------------------------- /v4.0/src/CMD/LABEL/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** makefile for cmd\... *************************** 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: label.com 13 | 14 | labl.ctl: labl.skl \ 15 | makefile \ 16 | $(msg)\$(COUNTRY).msg 17 | 18 | label.obj: label.asm \ 19 | makefile 20 | 21 | labelm.obj: labelm.asm \ 22 | labl.ctl \ 23 | makefile \ 24 | $(inc)\copyrigh.inc \ 25 | $(inc)\sysmsg.inc \ 26 | $(inc)\msgserv.asm 27 | 28 | label.com: label.obj \ 29 | labelm.obj \ 30 | makefile \ 31 | label.lnk 32 | link @label.lnk 33 | exe2bin label.exe label.com 34 | del label.exe 35 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FDISK/BOOTREC.ASM: -------------------------------------------------------------------------------- 1 | ; Static Name Aliases 2 | ; 3 | TITLE bootrec.asm - master boot record images for fdisk 4 | 5 | _TEXT SEGMENT BYTE PUBLIC 'CODE' 6 | _TEXT ENDS 7 | _DATA SEGMENT WORD PUBLIC 'DATA' 8 | _DATA ENDS 9 | CONST SEGMENT WORD PUBLIC 'CONST' 10 | CONST ENDS 11 | _BSS SEGMENT WORD PUBLIC 'BSS' 12 | _BSS ENDS 13 | 14 | DGROUP GROUP CONST, _BSS, _DATA 15 | ASSUME CS: _TEXT, DS: DGROUP, SS: DGROUP, ES: DGROUP 16 | 17 | _DATA SEGMENT WORD PUBLIC 'DATA' 18 | 19 | ; 20 | ; extern struct struct-name BootRecordData; 21 | ; 22 | ; 23 | ; 24 | 25 | 26 | PUBLIC _master_boot_record 27 | public _master_boot_record 28 | _master_boot_record label byte 29 | 30 | include fdboot.inc 31 | include fdboot.inc 32 | 33 | _DATA ENDS 34 | 35 | END 36 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/NLSFUNC/DOESMAC.INC: -------------------------------------------------------------------------------- 1 | CallInstall MACRO name,mpx,fn,save,restore 2 | BREAK MACRO subtitle 3 | SUBTTL subtitle 4 | PAGE 5 | ENDM 6 | .xcref break 7 | IF Installed 8 | IFNB 9 | SaveReg 10 | ENDIF 11 | MOV AX,(mpx SHL 8) + fn 12 | INT 2Fh 13 | IFNB 14 | RestoreReg 15 | ENDIF 16 | ELSE 17 | Invoke name 18 | ENDIF 19 | ENDM 20 | 21 | BREAK 22 | 23 | SaveReg MACRO reglist ;; push those registers 24 | IRP reg, 25 | ?stackdepth = ?stackdepth + 1 26 | PUSH reg 27 | ENDM 28 | ENDM 29 | .xcref SaveReg 30 | 31 | BREAK 32 | 33 | RestoreReg MACRO reglist ;; pop those registers 34 | IRP reg, 35 | ?stackdepth = ?stackdepth - 1 36 | POP reg 37 | ENDM 38 | ENDM 39 | .xcref RestoreReg 40 |  -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/INC/ASSERT.H: -------------------------------------------------------------------------------- 1 | /*** 2 | *assert.h - define the assert macro 3 | * 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * Defines the assert(exp) macro. 8 | * [ANSI/System V] 9 | * 10 | *******************************************************************************/ 11 | 12 | 13 | #ifndef _ASSERT_DEFINED 14 | 15 | #ifndef NDEBUG 16 | 17 | static char _assertstring[] = "Assertion failed: %s, file %s, line %d\n"; 18 | 19 | #define assert(exp) { \ 20 | if (!(exp)) { \ 21 | fprintf(stderr, _assertstring, #exp, __FILE__, __LINE__); \ 22 | fflush(stderr); \ 23 | abort(); \ 24 | } \ 25 | } 26 | 27 | #else 28 | 29 | #define assert(exp) 30 | 31 | #endif /* NDEBUG */ 32 | 33 | #define _ASSERT_DEFINED 34 | 35 | #endif /* _ASSERT_DEFINED */ 36 | -------------------------------------------------------------------------------- /v4.0/src/MAPPER/NLSAPI.INC: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)nlsapi.inc 1.1 86/06/03 2 | SETCOUNTRYINFO equ 1 ; select country info 3 | SETUCASE equ 2 ; select uppercase tbl 4 | SETLCASE equ 3 ; select lowercase tbl 5 | SETUCASEFILE equ 4 ; select uppercase spec table 6 | SETFILELIST equ 5 ; select valid file character list 7 | SETCOLLATE equ 6 ; select collating sequence 8 | SETDBCS equ 7 ; select double byte char set 9 | 10 | MAXLBUFFER equ 500 ; max size for local buffer 11 | 12 | MAXCASEMAP equ 256 ; max size for ucase table in casemap 13 | 14 | MAXDBCS equ 256 ; max size for dbcs table in casemap 15 | 16 | NOT_DBCS_CHAR equ 0 17 | DBCS_CHAR equ 1 18 | -------------------------------------------------------------------------------- /v4.0/src/CMD/NLSFUNC/FUNCPARM.INC: -------------------------------------------------------------------------------- 1 | ;Parser INPUT PARM LIST Structure 2 | 3 | 4 | NLS_PARMS label word 5 | dw NLS_PARMSX 6 | db 0 ;no extra delimiters 7 | 8 | NLS_PARMSX label word 9 | db 0,1 ;Min 0 - no path 10 | ;Max 1 - path 11 | dw NLS_POS1 12 | 13 | NLS_POS1 label word 14 | dw 0201h ;File spec (optional) 15 | dw 0001h ;Cap result by file 16 | dw Res_Valptr ;tbl 17 | dw NoVal ;no value list 18 | db 0 ;no switch or 19 | ;keyword synonyms 20 | 21 | 22 | NOVAL label word 23 | db 0 24 | 25 | RES_VALPTR label word 26 | 27 | RES_TYPE db ? ;Result_type 28 | RES_ITAG db 0 ;Matched item tag 29 | RES_SYN dw 0 ;synonym returned 30 | RES_POFF dw 0 ;drive type or beginning of string 31 | RES_PSEG dw 0 ;may be string 32 | 33 |  -------------------------------------------------------------------------------- /v4.0/src/DOS/HIGHSW.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)highsw.asm 1.1 85/04/10 2 | TRUE EQU 0FFFFH 3 | FALSE EQU NOT TRUE 4 | 5 | ; Use the switches below to produce the standard Microsoft version or the IBM 6 | ; version of the operating system 7 | MSVER EQU TRUE 8 | IBM EQU FALSE 9 | WANG EQU FALSE 10 | ALTVECT EQU FALSE 11 | 12 | ; Set this switch to cause DOS to move itself to the end of memory 13 | HIGHMEM EQU TRUE 14 | 15 | IF IBM 16 | ESCCH EQU 0 ; character to begin escape seq. 17 | TOGLPRN EQU TRUE ;One key toggles printer echo 18 | ZEROEXT EQU TRUE 19 | ELSE 20 | IF WANG ;Are we assembling for WANG? 21 | ESCCH EQU 1FH ;Yes. Use 1FH for escape character 22 | ELSE 23 | ESCCH EQU 1BH 24 | ENDIF 25 | CANCEL EQU "X"-"@" ;Cancel with Ctrl-X 26 | TOGLPRN EQU FALSE ;Separate keys for printer echo on 27 | ;and off 28 | ZEROEXT EQU TRUE 29 | ENDIF 30 | -------------------------------------------------------------------------------- /v4.0/src/CMD/KEYB/COMMSUBS.INC: -------------------------------------------------------------------------------- 1 | .XLIST 2 | 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4 | ;; DOS - NLS Support - KEYB Command 5 | ;; (C) Copyright 1988 Microsoft 6 | ;; 7 | ;; File Name: CONVERT.INC 8 | ;; ---------- 9 | ;; 10 | ;; Root File Name: KEYBCMD.ASM 11 | ;; --------------- 12 | ;; 13 | ;; Description: 14 | ;; ------------ 15 | ;; External declarations for procedures in file KEYBCMD.ASM. 16 | ;; 17 | ;; Change History: 18 | ;; --------------- 19 | ;; 20 | ;; 21 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 22 | ;; 23 | EXTRN FIND_SYS_TYPE :NEAR ;; 24 | EXTRN FIND_KEYB_TYPE :NEAR ;; 25 | ;; 26 | EXTRN HW_TYPE :WORD ;; 27 | ;; 28 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 29 | 30 | .LIST 31 | -------------------------------------------------------------------------------- /v4.0/src/MAPPER/MACROS.INC: -------------------------------------------------------------------------------- 1 | ; 2 | if1 3 | %out macros.inc 4 | endif 5 | 6 | 7 | pushal macro 8 | push bx 9 | push cx 10 | push dx 11 | push si 12 | push di 13 | push ds 14 | push es 15 | push ss 16 | push bp 17 | endm 18 | ; 19 | popal macro 20 | pop bp 21 | pop ss 22 | pop es 23 | pop ds 24 | pop di 25 | pop si 26 | pop dx 27 | pop cx 28 | pop bx 29 | endm 30 | ; 31 | Enter macro Routine 32 | 33 | push bp 34 | mov bp,sp 35 | pushal 36 | 37 | endm 38 | ; 39 | Mexit macro 40 | 41 | popal 42 | mov sp,bp 43 | pop bp 44 | 45 | endm 46 |  -------------------------------------------------------------------------------- /v4.0/src/MAPPER/FIND.INC: -------------------------------------------------------------------------------- 1 | ; find.inc 2 | 3 | if1 4 | %out find.inc 5 | endif 6 | 7 | FileFindBuf struc 8 | Create_Date dw ? 9 | Create_Time dw ? 10 | Access_Date dw ? 11 | Access_Time dw ? 12 | Write_Date dw ? 13 | Write_Time dw ? 14 | File_Size dd ? 15 | FAlloc_Size dd ? 16 | Attributes dw ? 17 | String_Len db ? 18 | File_Name db 12 dup (?) 19 | FileFindBuf ends 20 | 21 | ; 22 | ; dta buffer structure 23 | ; 24 | 25 | dtastr struc 26 | db 21 dup (?) 27 | DTAFileAttrib db ? 28 | DTAFileTime dw ? 29 | DTAFileDate dw ? 30 | DTAFileSize dd ? 31 | DTAFileName db 13 dup (?) 32 | dtastr ends 33 | 34 | MaxFinds equ 8 35 | OpenedHandle equ 08000h 36 | 37 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/KEYBOARD/KDFEOF.ASM: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PAGE ,132 5 | TITLE DOS Keyboard Definition File 6 | 7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 8 | ;; DOS - NLS Support - Keyboard Definition File 9 | ;; (c) Copyright 1988 Microsoft 10 | ;; 11 | ;; This file contains the eof marker for the entire table 12 | ;; and the keyboard.sys copyright 13 | ;; 14 | ;; Linkage Instructions: 15 | ;; Refer to KDF.ASM. 16 | ;; 17 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 18 | ;; 19 | ;; 20 | CODE SEGMENT PUBLIC 'CODE' ;; 21 | ASSUME CS:CODE,DS:CODE ;; 22 | ;; 23 | ;; 24 | ;; 25 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 26 | include copyrigh.inc 27 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 28 | DB 1AH ;; EOF 29 | ;; 30 | CODE ENDS ;; 31 | END ;; 32 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 33 | -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAPHICS/GRPARSE.EXT: -------------------------------------------------------------------------------- 1 | .XLIST ;AN000; 2 | ;AN000; 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 4 | ;; DOS - GRAPHICS Command 5 | ;; (C) Copyright 1988 Microsoft 6 | ;; ;AN000; 7 | ;; File Name: GRINST.EXT ;AN000; 8 | ;; ---------- ;AN000; 9 | ;; ;AN000; 10 | ;; Description: ;AN000; 11 | ;; ------------ ;AN000; 12 | ;; External declarations for code and data defined in ;AN000; 13 | ;; GRLOAD.ASM ;AN000; 14 | ;; ;AN000; 15 | ;; Change History: ;AN000; 16 | ;; --------------- ;AN000; 17 | ;; ;AN000; 18 | ;; ;AN000; 19 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 20 | ;; ;AN000; 21 | EXTRN SYSPARSE:NEAR ;; ;AN000; 22 | ;; ;AN000; 23 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 24 | .LIST ;AN000; 25 | -------------------------------------------------------------------------------- /v4.0/src/DEV/VDISK/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************ Makefile for vdisk ************************** 2 | 3 | inc =..\..\inc 4 | msg =..\..\messages 5 | dos =..\..\dos 6 | hinc =..\..\hinc 7 | 8 | # 9 | ####################### Dependencies begin here. ####################### 10 | # 11 | 12 | all: vdisk.sys 13 | 14 | vdisk.ctl: vdisk.skl \ 15 | $(msg)\$(COUNTRY).msg \ 16 | makefile 17 | 18 | 19 | vdisksys.obj: vdisksys.asm \ 20 | vdisksys.inc \ 21 | vdisk.ctl \ 22 | vdisk.cl2 \ 23 | vdisk.cla \ 24 | vdisk.cl1 \ 25 | $(inc)\msgserv.asm \ 26 | $(inc)\sysmsg.inc \ 27 | makefile 28 | 29 | vdisk.sys: vdisksys.obj \ 30 | vdisk.lnk 31 | link @vdisk.lnk 32 | exe2bin vdisk.exe vdisk.sys 33 | del vdisk.exe 34 | -------------------------------------------------------------------------------- /v4.0/src/CMD/EDLIN/EDLSTDSW.INC: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)stdsw.asm 1.1 85/04/10 2 | ; Use the switches below to produce the standard Microsoft version or the IBM 3 | ; version of the operating system 4 | 5 | 6 | ;include EDLVERS.INC ;IBM/MSVER/JAPVER switches 7 | 8 | 9 | WANG EQU FALSE 10 | Rainbow EQU FALSE 11 | 12 | 13 | ; Set this switch to cause DOS to move itself to the end of memory 14 | HIGHMEM EQU FALSE 15 | 16 | IF IBM 17 | ESCCH EQU 0 ; character to begin escape seq. 18 | CANCEL EQU 27 ;Cancel with ESCAPE 19 | TOGLPRN EQU TRUE ;One key toggles printer echo 20 | ZEROEXT EQU TRUE 21 | ELSE 22 | IF WANG ;Are we assembling for WANG? 23 | ESCCH EQU 1FH ;Yes. Use 1FH for escape character 24 | ELSE 25 | ESCCH EQU 1BH 26 | ENDIF 27 | CANCEL EQU "X"-"@" ;Cancel with Ctrl-X 28 | TOGLPRN EQU FALSE ;Separate keys for printer echo on 29 | ;and off 30 | ZEROEXT EQU TRUE 31 | ENDIF 32 | 33 | -------------------------------------------------------------------------------- /v4.0/src/CMD/APPEND/APPEND.SKL: -------------------------------------------------------------------------------- 1 | 2 | ;------------------------------------------------------------------- 3 | ; message retriever skeleton file for APPEND 4 | ;------------------------------------------------------------------- 5 | :util APPEND 6 | 7 | :class a 8 | ;:use 1 COMMON1 9 | :def 1 "Incorrect APPEND version",CR,LF 10 | :def 2 "Invalid path",CR,LF 11 | :def 3 "Invalid parameter",CR,LF 12 | :def 4 "Invalid combination of parameters",CR,LF 13 | :def 5 "No Append",CR,LF 14 | 15 | :class b 16 | :def 6 "APPEND / ASSIGN Conflict",CR,LF 17 | :def 7 "APPEND / TopView Conflict",CR,LF 18 | :def 8 "Incorrect DOS Version",CR,LF 19 | :def 9 "APPEND already installed",CR,LF 20 | ;:use 8 COMMON1 ;"Incorrect DOS Version" 21 | ;:use 9 COMMON1 ;"APPEND already installed" 22 | 23 | :end 24 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAPHICS/GRPARMS.EXT: -------------------------------------------------------------------------------- 1 | .XLIST ;AN000; 2 | PAGE ,132 ;AN000; 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 4 | ;; DOS - GRAPHICS Command 5 | ;; (C) Copyright 1988 Microsoft 6 | ;; ;AN000; 7 | ;; File Name: GRPARMS.EXT ;AN000; 8 | ;; ---------- ;AN000; 9 | ;; ;AN000; 10 | ;; Description: ;AN000; 11 | ;; ------------ ;AN000; 12 | ;; External declarations for code and data defined in ;AN000; 13 | ;; GRPARMS.ASM ;AN000; 14 | ;; ;AN000; 15 | ;; Change History: ;AN000; 16 | ;; --------------- ;AN000; 17 | ;; ;AN000; 18 | ;; ;AN000; 19 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 20 | ;; ;AN000; 21 | EXTRN PARSE_PARMS:NEAR ;; ;AN000; 22 | ;; ;AN000; 23 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 24 | .LIST ;AN000; 25 | -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAPHICS/GRCPSD.EXT: -------------------------------------------------------------------------------- 1 | .XLIST ;AN000; 2 | PAGE ,132 ;AN000; 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 4 | ;; DOS - GRAPHICS Command 5 | ;; (C) Copyright 1988 Microsoft 6 | ;; ;AN000; 7 | ;; File Name: GRCPSD.EXT ;AN000; 8 | ;; ---------- ;AN000; 9 | ;; ;AN000; 10 | ;; Description: ;AN000; 11 | ;; ------------ ;AN000; 12 | ;; External declarations for code and data defined in ;AN000; 13 | ;; GRCPSD.ASM ;AN000; 14 | ;; ;AN000; 15 | ;; Change History: ;AN000; 16 | ;; --------------- ;AN000; 17 | ;; ;AN000; 18 | ;; ;AN000; 19 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 20 | ;; ;AN000; 21 | EXTRN COPY_SHARED_DATA:NEAR ;; ;AN000; 22 | ;; ;AN000; 23 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 24 | .LIST ;AN000; 25 | -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAPHICS/GRBWPRT.EXT: -------------------------------------------------------------------------------- 1 | .XLIST ;AN000; 2 | PAGE ;AN000; 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 4 | ;; DOS - GRAPHICS Command 5 | ;; (C) Copyright 1988 Microsoft 6 | ;; ;AN000; 7 | ;; File Name: GRBWPRT.EXT ;AN000; 8 | ;; ---------- ;AN000; 9 | ;; ;AN000; 10 | ;; Description: ;AN000; 11 | ;; ------------ ;AN000; 12 | ;; Include file containing external declarations for ;AN000; 13 | ;; the code and data defined in GRBWPRT.ASM. ;AN000; 14 | ;; ;AN000; 15 | ;; Change History: ;AN000; 16 | ;; --------------- ;AN000; 17 | ;; ;AN000; 18 | ;; ;AN000; 19 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 20 | ;; ;AN000; 21 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 22 | .LIST ;AN000; 23 | EXTRN PRINT_BW_APA:NEAR ;AN000; 24 | EXTRN LEN_OF_BW_MODULES:ABS ;; ;AN000; 25 | -------------------------------------------------------------------------------- /v4.0/src/CMD/EXE2BIN/E2BEQU.INC: -------------------------------------------------------------------------------- 1 | ; ; ; 2 | 3 | NO equ 0 4 | YES equ not NO 5 | 6 | 7 | DOS_Found equ 0 8 | 9 | INIT equ 0 10 | 11 | 12 | Net_Check equ 1200h 13 | Assign_Check equ 8000h 14 | 15 | Found_Yes equ 1 16 | Found_No equ 0 17 | 18 | Asciiz_End equ 0 19 | ;DBCS equ 81h 20 | DBCS_Blank equ 40h 21 | DBCS_Vector_Size equ 2 22 | End_Of_Vector equ 0 23 | 24 | 25 | Blank equ " " 26 | 27 | Label_Length equ 11 28 | CR equ 13 29 | 30 | DBCS_VECTOR equ NO 31 | 32 | ;------------------------------------------------------------------------------- 33 | 34 | 35 | 36 | 37 | 38 | DRNUM EQU 5CH 39 | 40 | 41 | 42 | ; Exit status defines 43 | ExitOK equ 0 44 | 45 | 46 | ;------------------------------------------------------------------------------- 47 | ; These are the data structures which we will need 48 | 49 | 50 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/VDISK/VDISK.INC: -------------------------------------------------------------------------------- 1 | EMS_STATUS EQU 40H 2 | EMS_GET_NUM_PAGES EQU 42H 3 | EMS_ALLOC_PAGES EQU 43H 4 | EMS_MAP_HANDLE EQU 44H 5 | EMS_VERSION EQU 46H 6 | EMS_SAVE_STATE EQU 47H 7 | EMS_RESTORE_STATE EQU 48H 8 | EMS_GET_FRAME_ADDR EQU 5100H 9 | EMS_INT EQU 67H 10 | 11 | EMS_EXPECTED_VERSION EQU 34H 12 | EMS_LOW_ERROR EQU 80H 13 | EMS_INSTALLED_FLAG EQU -1 14 | 15 | EMS_ALLOC_ERROR EQU -1 ; ***RPS ?? 16 | SINGLE_SEGMENT EQU 1 17 | DOS_PAGE1 EQU 0FEH 18 | DOS_PAGE2 EQU 0FFH 19 | DOS_PAGE_SZ EQU 16 20 | 21 | GET_PAGE_FRAME_STRUC STRUC 22 | START_PAGE DB ? 23 | NUM_PAGE DB ? 24 | FRAME_SEGMENT DW ? 25 | GET_PAGE_FRAME_STRUC ENDS 26 | BUFFER_ENTRY_SIZE EQU TYPE GET_PAGE_FRAME_STRUC 27 | 28 |  -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/INC/SYS/TYPES.H: -------------------------------------------------------------------------------- 1 | /*** 2 | *sys\types.h - types returned by system level calls for file and time info 3 | * 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * This file defines types used in defining values returned by system 8 | * level calls for file status and time information. 9 | * [System V] 10 | * 11 | *******************************************************************************/ 12 | 13 | #ifndef _INO_T_DEFINED 14 | typedef unsigned short ino_t; /* i-node number (not used on DOS) */ 15 | #define _INO_T_DEFINED 16 | #endif 17 | 18 | #ifndef _TIME_T_DEFINED 19 | typedef long time_t; 20 | #define _TIME_T_DEFINED 21 | #endif 22 | 23 | #ifndef _DEV_T_DEFINED 24 | typedef short dev_t; /* device code */ 25 | #define _DEV_T_DEFINED 26 | #endif 27 | 28 | #ifndef _OFF_T_DEFINED 29 | typedef long off_t; /* file offset value */ 30 | #define _OFF_T_DEFINED 31 | #endif 32 | -------------------------------------------------------------------------------- /v4.0/src/CMD/KEYB/KEYBEQU.INC: -------------------------------------------------------------------------------- 1 | .XLIST 2 | 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4 | ;; DOS - NLS Support - KEYB Command 5 | ;; (C) Copyright 1988 Microsoft 6 | ;; 7 | ;; File Name: KEYBEQU.INC 8 | ;; ---------- 9 | ;; 10 | ;; Root File Name: KEYB.ASM 11 | ;; --------------- 12 | ;; 13 | ;; Description: 14 | ;; ------------ 15 | ;; Include file containing equates used by all KEYB modules. 16 | ;; 17 | ;; Change History: 18 | ;; --------------- 19 | ;; 20 | ;; 21 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 22 | ;; 23 | YES EQU 1 ;; 24 | NO EQU 0 ;; 25 | ;; 26 | INT_2F_SUB_FUNC EQU 0ADH ;; our subfunction code for int 2f 27 | SD EQU SHARED_DATA ;; 28 | TSD EQU TEMP_SHARED_DATA ;; 29 | ;; 30 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 31 | .LIST 32 | -------------------------------------------------------------------------------- /v4.0/src/INC/DPB.C: -------------------------------------------------------------------------------- 1 | /* dpb.c - retrieve DPB for physical drive */ 2 | 3 | #include "types.h" 4 | #include "sysvar.h" 5 | #include "dpb.h" 6 | #include "cds.h" 7 | 8 | extern char NoMem[], ParmNum[], BadParm[] ; 9 | extern struct sysVarsType SysVars ; 10 | 11 | 12 | /* Walk the DPB list trying to find the appropriate DPB */ 13 | 14 | long GetDPB(i) 15 | int i ; 16 | { 17 | struct DPBType DPB ; 18 | struct DPBType *pd = &DPB ; 19 | struct DPBType far *dptr ; 20 | int j ; 21 | 22 | *(long *)(&dptr) = DPB.nextDPB = SysVars.pDPB ; 23 | DPB.drive = -1 ; 24 | 25 | while (DPB.drive != i) { 26 | if ((int)DPB.nextDPB == -1) 27 | return -1L ; 28 | 29 | *(long *)(&dptr) = DPB.nextDPB ; 30 | 31 | for (j=0 ; j < sizeof(DPB) ; j++) 32 | *((char *)pd+j) = *((char far *)dptr+j) ; 33 | 34 | } ; 35 | return (long)dptr ; 36 | } 37 | 38 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/FIND/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** makefile for cmd\... *************************** 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: find.exe 13 | 14 | find.ctl: find.skl \ 15 | $(msg)\$(COUNTRY).msg \ 16 | makefile 17 | 18 | find.obj: find.asm \ 19 | makefile \ 20 | find.ctl \ 21 | find.cla \ 22 | find.cl1 \ 23 | find.cl2 \ 24 | find.inc \ 25 | $(inc)\parse.asm \ 26 | $(inc)\psdata.inc \ 27 | $(inc)\syscall.inc \ 28 | $(inc)\msgserv.asm \ 29 | $(inc)\sysmsg.inc 30 | 31 | findmes.obj: findmes.asm 32 | 33 | find.exe: find.obj findmes.obj 34 | link find+findmes,find.exe/ex; 35 | -------------------------------------------------------------------------------- /v4.0/src/CMD/COMMAND/FORDATA.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)fordata.asm 1.1 85/05/14 2 | ; SCCSID = @(#)fordata.asm 1.1 85/05/14 3 | ; Data structure definitions included by tfor.asm 4 | 5 | for_info STRUC 6 | for_args DB (SIZE arg_unit) DUP (?) ; argv[] structure 7 | FOR_COM_START DB (?) ; beginning of 8 | FOR_EXPAND DW (?) ; * or ? item in ? 9 | FOR_MINARG DW (?) ; beginning of 10 | FOR_MAXARG DW (?) ; end of 11 | forbuf DW 64 DUP (?) ; temporary buffer 12 | fordma DW 64 DUP (?) ; FindFirst/Next buffer 13 | FOR_VAR DB (?) ; loop control variable 14 | for_info ENDS 15 | 16 | ; empty segment done for bogus addressing 17 | for_segment segment 18 | f LABEL BYTE 19 | for_segment ends 20 | -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAPHICS/GRCOLPRT.EXT: -------------------------------------------------------------------------------- 1 | .XLIST 2 | PAGE ,132 ;AN000; 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 4 | ;; DOS - GRAPHICS Command 5 | ;; (C) Copyright 1988 Microsoft 6 | ;; ;AN000; 7 | ;; File Name: GRCOLPRT.EXT ;AN000; 8 | ;; ---------- ;AN000; 9 | ;; ;AN000; 10 | ;; Description: ;AN000; 11 | ;; ------------ ;AN000; 12 | ;; Include file containing external declarations for ;AN000; 13 | ;; the code and data defined in GRCOLPRT.ASM ;AN000; 14 | ;; ;AN000; 15 | ;; Change History: ;AN000; 16 | ;; --------------- ;AN000; 17 | ;; ;AN000; 18 | ;; ;AN000; 19 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 20 | ;; ;AN000; 21 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 22 | .LIST ;AN000; 23 | EXTRN PRINT_MODULE_START:NEAR ;; ;AN000; 24 | EXTRN PRINT_COLOR:NEAR ;AN000; 25 | EXTRN LEN_OF_COLOR_MODULES:ABS ;; ;AN000; 26 | -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************* Makefile for Printer *************************** 2 | 3 | inc =..\..\inc 4 | msg =..\..\messages 5 | dos =..\..\dos 6 | hinc =..\..\h 7 | make =nmake 8 | 9 | # 10 | ######################## Dependencies Begin Here ########################## 11 | # 12 | 13 | all: printer.sys 5202.cpi 14 | 15 | printer.ctl: printer.skl $(msg)\$(COUNTRY).msg 16 | 17 | cpspm10.obj: cpspm10.asm cpspequ.inc 18 | 19 | cpsfont3.obj: cpsfont3.asm cpspequ.inc 20 | 21 | prtint2f.obj: prtint2f.asm cpspequ.inc $(inc)\struc.inc 22 | 23 | cpspi07.obj: cpspi07.asm cpspequ.inc \ 24 | $(inc)\sysmsg.inc printer.ctl \ 25 | $(inc)\versiona.inc 26 | 27 | parser.obj: parser.asm cpspequ.inc $(inc)\parse.asm \ 28 | $(inc)\struc.inc 29 | 30 | printer.sys: cpspm10.obj cpsfont3.obj parser.obj cpspi07.obj prtint2f.obj 31 | link @printer.lnk 32 | exe2bin printer.exe printer.sys < zero.dat 33 | del printer.exe 34 | 35 | 5202.cpi: 36 | cd 5202 37 | $(make) 38 | cd .. 39 | 40 | 41 | -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/INC/SYS/TIMEB.H: -------------------------------------------------------------------------------- 1 | /*** 2 | *sys\timeb.h - definition/declarations for ftime() 3 | * 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * This file define the ftime() function and the types it uses. 8 | * [System V] 9 | * 10 | *******************************************************************************/ 11 | 12 | 13 | #ifndef NO_EXT_KEYS /* extensions enabled */ 14 | #define CDECL cdecl 15 | #else /* extensions not enabled */ 16 | #define CDECL 17 | #endif /* NO_EXT_KEYS */ 18 | 19 | #ifndef _TIME_T_DEFINED 20 | typedef long time_t; 21 | #define _TIME_T_DEFINED 22 | #endif 23 | 24 | /* structure returned by ftime system call */ 25 | 26 | #ifndef _TIMEB_DEFINED 27 | struct timeb { 28 | time_t time; 29 | unsigned short millitm; 30 | short timezone; 31 | short dstflag; 32 | }; 33 | #define _TIMEB_DEFINED 34 | #endif 35 | 36 | 37 | /* function prototypes */ 38 | 39 | void CDECL ftime(struct timeb *); 40 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FC/MESSAGES.ASM: -------------------------------------------------------------------------------- 1 | ; 2 | ; message file for FC command 3 | ; 4 | 5 | CONST SEGMENT WORD PUBLIC 'DATA' 6 | CONST ENDS 7 | 8 | _BSS SEGMENT WORD PUBLIC 'DATA' 9 | _BSS ENDS 10 | 11 | _DATA SEGMENT WORD PUBLIC 'DATA' 12 | _DATA ENDS 13 | 14 | DGROUP GROUP CONST, _BSS, _DATA 15 | 16 | ASSUME DS:DGROUP 17 | 18 | _DATA SEGMENT 19 | PUBLIC _BadSw, _UseMes, _BadOpn, _LngFil, _NoDif, _NoMem, _Bad_ver, _ReSyncMes, _UnKnown 20 | 21 | _BadSw DB "Incompatible switches",0 22 | _Bad_ver DB "Incorrect DOS version",0 23 | _UseMes DB "usage: fc [/a] [/b] [/c] [/l] [/lbNN] [/w] [/t] [/n] [/NNNN] file1 file2",0ah,0 24 | _BadOpn DB "cannot open %s - %s",0 25 | _LngFil DB "%s longer than %s",0 26 | _NoDif DB "no differences encountered",0 27 | _NoMem DB "out of memory",0ah,0 28 | _ReSyncMes DB "Resync failed. Files are too different\n",0 29 | _UnKnown DB "Unknown error",0 30 | _DATA ENDS 31 | END 32 | -------------------------------------------------------------------------------- /v4.0/src/MAPPER/MAPPER.LBR: -------------------------------------------------------------------------------- 1 | mapper.lib 2 | y 3 | +CHDIR& 4 | +GETVER& 5 | +F_FIRST& 6 | +SET_TOD.obj& 7 | +WRITE.obj& 8 | +BEEP.obj& 9 | +MKDIR.obj& 10 | +EXIT.obj& 11 | +DELETE.obj& 12 | +GETCNTRY.obj& 13 | +F_CLOSE.obj& 14 | +OPEN.obj& 15 | +READ.obj& 16 | +RMDIR.obj& 17 | +QCURDIR.obj& 18 | +QCURDSK.obj& 19 | +QVERIFY.obj& 20 | +QFILEMOD.obj& 21 | +SVERIFY.obj& 22 | +SFILEMOD.obj& 23 | +LSEEK.obj& 24 | +SFILEINF.obj& 25 | +CLOSE.obj& 26 | +ALLOCSEG.obj& 27 | +FREESEG.obj& 28 | +SEL_DISK.obj& 29 | +QFSINFO.obj& 30 | +F_NEXT.obj& 31 | +GETMSG.obj& 32 | +GET_TOD.obj& 33 | +CHARIN.obj& 34 | +FLUSHBUF.obj& 35 | +DEVCONFG.obj& 36 | +REALLSEG.obj& 37 | +PUTMSG.obj& 38 | +EXECPGM.obj& 39 | +QHANDTYP.obj& 40 | +CWAIT.obj& 41 | +KBDGSTAT.obj& 42 | +KBDSSTAT.obj& 43 | +CASEMAP.obj& 44 | +DBCS.obj& 45 | +IOCTL.obj& 46 | +SIGHAND.obj& 47 | +ERROR.obj& 48 | +setint24.obj& 49 | +QFILEINF.obj& 50 | +SCURPOS.obj& 51 | +SCROLLUP.obj& 52 | +WCHSTRA.obj& 53 | +SCNTRY.obj& 54 | +SETFSINF.obj& 55 | +GMACHMOD.obj 56 | mapper.lst; 57 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/ATTRIB/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** makefile for cmd\append *************************** 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: attrib.exe 13 | 14 | attrib.ctl: attrib.skl \ 15 | $(msg)\$(COUNTRY).msg \ 16 | makefile 17 | 18 | _parse.obj: _parse.asm \ 19 | $(inc)\parse.asm \ 20 | $(inc)\psdata.inc 21 | 22 | _msgret.obj: _msgret.asm \ 23 | $(inc)\msgserv.asm \ 24 | $(inc)\sysmsg.inc \ 25 | $(inc)\copyrigh.inc \ 26 | attrib.skl \ 27 | attrib.ctl \ 28 | attrib.cl1 \ 29 | attrib.cl2 \ 30 | attrib.cla \ 31 | attrib.clb 32 | 33 | attriba.obj: attriba.asm 34 | 35 | attrib.obj: attrib.c \ 36 | attrib.h \ 37 | parse.h \ 38 | msgret.h \ 39 | makefile 40 | 41 | attrib.exe: attrib.obj \ 42 | attriba.obj \ 43 | _parse.obj \ 44 | _msgret.obj \ 45 | attrib.lnk 46 | link @attrib.lnk 47 | -------------------------------------------------------------------------------- /v4.0/src/CMD/COMMAND/IPARSE.ASM: -------------------------------------------------------------------------------- 1 | page 80,132 2 | ; SCCSID = @(#)iparse.asm 4.1 87/04/28 3 | ; SCCSID = @(#)iparse.asm 4.1 87/04/28 4 | TITLE COMMAND interface to SYSPARSE 5 | 6 | .xlist 7 | .xcref 8 | INCLUDE comseg.asm ;AN000; 9 | .list 10 | .cref 11 | 12 | 13 | INIT SEGMENT PUBLIC PARA ;AN000; 14 | 15 | ASSUME CS:RESGROUP,DS:RESGROUP,ES:NOTHING,SS:NOTHING ;AN000; 16 | 17 | 18 | ;AD054; public SYSPARSE ;AN000; 19 | 20 | DateSW equ 0 ;AN000; do not Check date format 21 | TimeSW equ 0 ;AN000; do not Check time format 22 | CmpxSW equ 0 ;AN000; do not check complex list 23 | KeySW equ 0 ;AN025; do not support keywords 24 | Val2SW equ 0 ;AN025; do not Support value definition 2 25 | Val3SW equ 0 ;AN000; do not Support value definition 3 26 | QusSW equ 0 ;AN025; do not include quoted string 27 | DrvSW equ 0 ;AN025; do not include drive only 28 | 29 | .xlist 30 | .xcref 31 | ;AD054; INCLUDE parse.asm ;AN000; 32 | .list 33 | .cref 34 | 35 | 36 | INIT ends ;AN000; 37 | end ;AN000; 38 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/SHARE/SHARE.SKL: -------------------------------------------------------------------------------- 1 | ;================================================ 2 | ; SHARE Message Skeleton File 3 | ;================================================ 4 | 5 | :util SHARE 6 | 7 | :class 1 8 | 9 | :use EXTEND8 10 | 11 | :class 2 12 | ;1 - Too many operands 13 | ;2 - Required operand missing 14 | :use PARSE3 ;3 - Not in switch list provided 15 | ;4 - Not in keyword list provided 16 | :use PARSE6 ;6 - Out of range specified 17 | ;7 - Not in value list provided 18 | ;8 - Not in string list provided 19 | :use PARSE9 ;9 - Invalid Parameter 20 | 21 | :class A 22 | 23 | :use 1 COMMON1 ; Incorrect DOS version 24 | :use 2 COMMON2 ; "%1 already installed" 25 | 26 | :end 27 |  -------------------------------------------------------------------------------- /v4.0/src/DEV/ANSI/MAKEFILE: -------------------------------------------------------------------------------- 1 | #*********************** Makefile for ansi.sys **************************** 2 | 3 | dos =..\..\dos 4 | inc =..\..\inc 5 | msg =..\..\messages 6 | 7 | # 8 | ####################### Dependencies Begin Here ########################## 9 | # 10 | 11 | all: ansi.sys 12 | 13 | ansi.ctl: ansi.skl $(msg)\$(COUNTRY).msg 14 | 15 | ansi.obj: ansi.asm ansi.inc \ 16 | $(inc)\vector.inc \ 17 | $(inc)\mult.inc \ 18 | $(inc)\struc.inc 19 | 20 | ioctl.obj: ioctl.asm ansi.inc \ 21 | $(inc)\struc.inc 22 | 23 | ansiinit.obj: ansiinit.asm ansi.inc ansivid.inc \ 24 | $(inc)\struc.inc 25 | 26 | parser.obj: parser.asm ansi.inc $(inc)\sysmsg.inc $(inc)\parse.asm \ 27 | $(inc)\struc.inc ansi.ctl $(inc)\versiona.inc 28 | 29 | ansi.sys: ansi.obj ioctl.obj ansiinit.obj parser.obj ansi.lnk makefile 30 | link @ansi.lnk 31 | exe2bin ansi.exe ansi.sys 32 | del ansi.exe 33 | 34 | -------------------------------------------------------------------------------- /v4.0/src/CMD/ASSIGN/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** makefile for cmd\assign *************************** 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: assign.com 13 | 14 | assign.ctl: assign.skl \ 15 | $(msg)\$(COUNTRY).msg \ 16 | makefile 17 | 18 | assgparm.obj: assgparm.asm \ 19 | $(inc)\psdata.inc \ 20 | $(inc)\parse.asm \ 21 | makefile 22 | 23 | assgmain.obj: assgmain.asm \ 24 | $(inc)\dosmac.inc \ 25 | $(inc)\sysvar.inc \ 26 | $(inc)\mult.inc \ 27 | $(inc)\pdb.inc \ 28 | $(inc)\syscall.inc \ 29 | $(inc)\msgserv.asm \ 30 | $(inc)\sysmsg.inc \ 31 | assgparm.inc \ 32 | assgmsg.inc \ 33 | assign.ctl \ 34 | assign.cla \ 35 | assign.cl1 \ 36 | assign.cl2 \ 37 | $(inc)\curdir.inc \ 38 | makefile 39 | 40 | assign.com: assgmain.obj assgparm.obj 41 | link assgmain.obj+assgparm.obj,assign,,; 42 | exe2bin assign.exe assign.com 43 | del assign.exe 44 | -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/PARSHELL.ASM: -------------------------------------------------------------------------------- 1 | 2 | PRINTF_CODE SEGMENT PUBLIC 3 | 4 | ASSUME CS:PRINTF_CODE,DS:PRINTF_CODE,ES:PRINTF_CODE,SS:PRINTF_CODE 5 | 6 | FARSW EQU 0 ;CALL parser by near call 7 | DATESW EQU 0 ;NO date checking code 8 | TIMESW EQU 0 ;NO time checking code 9 | FILESW EQU 1 ;have to check for font file name 10 | CAPSW EQU 0 ;don't have to display file names 11 | CMPXSW EQU 1 ;have complex list in codepage syntax 12 | DRVSW EQU 0 ;just a drive is never legal 13 | QUSSW EQU 0 ;quoted string is not legal 14 | NUMSW EQU 1 ;need to check a numeric value occaisionally 15 | KEYSW EQU 1 ;oodles of keywords to check 16 | SWSW EQU 1 ;/status 17 | VAL1SW EQU 1 ;handle numeric ranges 18 | VAL2SW EQU 1 ;handle list of numbers 19 | VAL3SW EQU 1 ;handle list of strings 20 | BASESW EQU 1 ;use DS addressability for PSDATA.INC variables 21 | ;INCSW EQU 1 22 | 23 | INCLUDE PARSE.ASM 24 | 25 | PUBLIC SYSPARSE 26 | 27 | PRINTF_CODE ENDS 28 | 29 | END 30 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/FORMAT/FORSWTCH.INC: -------------------------------------------------------------------------------- 1 | ; 2 | ;FORMAT Pre-defined switches 3 | SWITCH_S EQU 0001h ; System transfer 4 | SWITCH_V EQU 0002h ; Volume ID prompt 5 | SWITCH_BACKUP EQU 0004h 6 | SWITCH_C EQU 0008h 7 | SWITCH_T EQU 0010h 8 | SWITCH_N EQU 0020h 9 | SWITCH_1 EQU 0040h 10 | SWITCH_4 EQU 0080h 11 | SWITCH_8 EQU 0100h 12 | SWITCH_B EQU 0200h 13 | SWITCH_SELECT EQU 0400h 14 | SWITCH_AUTOTEST EQU 0800h 15 | SWITCH_F EQU 1000h 16 | SWITCH_FS EQU 2000h 17 | 18 | IF ShipDisk 19 | 20 | SWITCH_Z EQU 4000h ;an000; dms;1 sector/cluster switch 21 | 22 | ENDIF 23 | 24 | ; 25 | ; The following is a list of equates to define each IBM defined diskette size 26 | ; for use with the /F switch 27 | 28 | 29 | Size_160 equ 0001h ;Flag settings for size switch ;AN000; 30 | Size_180 equ 0002h ; ;AN000; 31 | Size_320 equ 0004h ; ;AN000; 32 | Size_360 equ 0008h ; ;AN000; 33 | Size_720 equ 0010h ; ;AN000; 34 | Size_1200 equ 0020h ; ;AN000; 35 | Size_1440 equ 0040h ; ;AN000; 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /v4.0/src/CMD/KEYB/KEYBTBBL.INC: -------------------------------------------------------------------------------- 1 | 2 | .XLIST 3 | 4 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 5 | ;; DOS - NLS Support - KEYB Command 6 | ;; (C) Copyright 1988 Microsoft 7 | ;; 8 | ;; File Name: KEYBTBBL.INC 9 | ;; ---------- 10 | ;; 11 | ;; Description: 12 | ;; ------------ 13 | ;; Include file containing structure definitions Shared Data Area 14 | ;; for the Shared Data Area. 15 | ;; The Shared Data Area contains data which is required by 16 | ;; both the resident and transient KEYB code. The Shared 17 | ;; Data Area is allocated in the KEYBI2F file and will be 18 | ;; resident following initial installation. 19 | ;; 20 | ;; Change History: 21 | ;; --------------- 22 | ;; 23 | ;; 24 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 25 | ;; 26 | EXTRN TABLE_BUILD :NEAR ;; 27 | EXTRN FIND_CP_TABLE :NEAR ;; 28 | ;; 29 | EXTRN CPN_INVALID :WORD ;; 30 | EXTRN SD_LENGTH :WORD ;; 31 | ;; 32 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 33 | .LIST 34 | -------------------------------------------------------------------------------- /v4.0/src/CMD/MORE/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************ makefile for cmd\more ************************* 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: more.com 13 | 14 | more.ctl: more.skl \ 15 | $(msg)\$(COUNTRY).msg \ 16 | makefile 17 | 18 | more.obj: more.asm \ 19 | more.inc \ 20 | makefile \ 21 | more.ctl \ 22 | more.cla \ 23 | more.cl1 \ 24 | more.cl2 \ 25 | $(inc)\syscall.inc \ 26 | $(inc)\struc.inc \ 27 | $(inc)\msgserv.asm \ 28 | $(inc)\sysmsg.inc \ 29 | $(inc)\versiona.inc \ 30 | $(inc)\copyrigh.inc 31 | 32 | more.com: more.obj \ 33 | more.lnk 34 | link @more.lnk 35 | exe2bin more.exe more.com 36 | del more.exe 37 | -------------------------------------------------------------------------------- /v4.0/src/DEV/PRINTER/PTRMSG.ASM: -------------------------------------------------------------------------------- 1 | 2 | PAGE ,132 3 | 4 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 5 | ;; 6 | ;; FILENAME: CPS Device Driver -- Message File 7 | ;; MODULE NAME: PTRMSG1 8 | ;; TYPE: Message External File 9 | ;; LINK PROCEDURE: see CPSPMNN.ASM 10 | ;; 11 | ;; INCLUDE FILES: 12 | ;; 13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 14 | ;; 15 | ;; 16 | CSEG SEGMENT PUBLIC 'CODE' ;; 17 | ASSUME CS:CSEG ;; 18 | ASSUME DS:NOTHING ;; 19 | ;; 20 | PUBLIC msg_no_init_p ;; 21 | PUBLIC msg_no_init ;; 22 | PUBLIC msg_bad_syntax ;; 23 | PUBLIC msg_insuff_mem ;; 24 | ;; 25 | 26 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 27 | ;; 28 | ;; ************************************ 29 | ;; ** ** 30 | ;; ** Resident Code ** 31 | ;; ** ** 32 | ;; ************************************ 33 | ;; 34 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 35 | 36 | INCLUDE PTRMSG.INC 37 | 38 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 39 | CSEG ENDS 40 | END 41 |  -------------------------------------------------------------------------------- /v4.0/src/INC/FIND.INC: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)find.asm 1.1 85/04/10 2 | ; SCCSID = @(#)find.asm 1.1 85/04/10 3 | Break 4 | 5 | find_buf STRUC 6 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; 7 | ; C A V E A T P R O G R A M M E R ; 8 | ; ; 9 | find_buf_drive DB ? ; drive of search 10 | find_buf_name DB 11 DUP (?) ; formatted name 11 | find_buf_sattr DB ? ; attribute of search 12 | find_buf_LastEnt DW ? ; LastEnt 13 | find_buf_DirStart DW ? ; DirStart 14 | find_buf_NetID DB 4 DUP (?) ; Reserved for NET 15 | ; ; 16 | ; C A V E A T P R O G R A M M E R ; 17 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; 18 | 19 | find_buf_attr DB ? ; attribute found 20 | find_buf_time DW ? ; time 21 | find_buf_date DW ? ; date 22 | find_buf_size_l DW ? ; low(size) 23 | find_buf_size_h DW ? ; high(size) 24 | find_buf_pname DB 13 DUP (?) ; packed name 25 | find_buf ENDS 26 | -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/INC/SETJMP.H: -------------------------------------------------------------------------------- 1 | /*** 2 | *setjmp.h - definitions/declarations for setjmp/longjmp routines 3 | * 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * This file defines the machine-dependent buffer used by 8 | * setjmp/longjmp to save and restore the program state, and 9 | * declarations for those routines. 10 | * [ANSI/System V] 11 | * 12 | *******************************************************************************/ 13 | 14 | 15 | #ifndef NO_EXT_KEYS /* extensions enabled */ 16 | #define _CDECL cdecl 17 | #else /* extensions not enabled */ 18 | #define _CDECL 19 | #endif /* NO_EXT_KEYS */ 20 | 21 | 22 | /* define the buffer type for holding the state information */ 23 | 24 | #define _JBLEN 9 /* bp, di, si, sp, ret addr, ds */ 25 | 26 | #ifndef _JMP_BUF_DEFINED 27 | typedef int jmp_buf[_JBLEN]; 28 | #define _JMP_BUF_DEFINED 29 | #endif 30 | 31 | 32 | /* function prototypes */ 33 | 34 | int _CDECL setjmp(jmp_buf); 35 | void _CDECL longjmp(jmp_buf, int); 36 | -------------------------------------------------------------------------------- /v4.0/src/CMD/SORT/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** makefile for cmd\... *************************** 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: sort.exe 13 | 14 | sort.ctl: sort.skl \ 15 | $(msg)\$(COUNTRY).msg \ 16 | makefile 17 | 18 | sort.obj: sort.asm \ 19 | makefile \ 20 | sort.ctl \ 21 | sort.cla \ 22 | sort.cl1 \ 23 | sort.cl2 \ 24 | $(inc)\parse.asm \ 25 | $(inc)\psdata.inc \ 26 | $(inc)\syscall.inc \ 27 | $(inc)\msgserv.asm \ 28 | $(inc)\sysmsg.inc 29 | 30 | sortmes.obj: sort.asm \ 31 | makefile \ 32 | $(inc)\syscall.inc 33 | 34 | sort.exe: sort.obj sortmes.obj 35 | link sort+sortmes,sort.exe; 36 | exefix sort.exe 1 1 37 | -------------------------------------------------------------------------------- /v4.0/src/CMD/MODE/COMMON.STC: -------------------------------------------------------------------------------- 1 | ;common structures 2 | 3 | bogus EQU 88H ;totally invalid value 4 | 5 | codepage_parms STRUC 6 | cp_device DW ? 7 | des_pack_ptr DW ? 8 | font_filespec DW ? 9 | request_typ DW ? 10 | codepage_parms ENDS 11 | 12 | 13 | parm_list_entry STRUC ;used by parse_parameters and invoke 14 | 15 | parm_type DB bogus 16 | item_tag DB 0FFH 17 | value1 DW bogus ;used only for filespecs and code page numbers 18 | value2 DW bogus ;used only for filespecs and code page numbers 19 | keyword_switch_ptr DW 0 20 | 21 | parm_list_entry ENDS 22 | 23 | 24 | sublist_def STRUC ;used by initialize_sublists 25 | 26 | db ? ;Sublist Length, fixed 27 | db ? ;Reserved, not used yet ;AN000; 28 | sublist_off dw ? ;offset 29 | sublist_seg dw ? ;segment part of pointer to piece of message 30 | db ? ;ID, special end of message format ;AN000; 31 | db ? ;flags 32 | db ? 33 | db ? 34 | db ? 35 | 36 | sublist_def ENDS 37 | -------------------------------------------------------------------------------- /v4.0/src/CMD/PRINT/PRINT_RM.ASM: -------------------------------------------------------------------------------- 1 | page 60,132 2 | ; $SALUT (4,25,30,41) 3 | INCLUDE pridefs.INC 4 | 5 | BREAK 6 | 7 | ; 8 | ; DOS PRINT 9 | ; 10 | ; Resident Portion Messages 11 | ; 12 | ; 02/15/84 MAU Created as a separate link module 13 | ; from the include file. should 14 | ; always be linked first!! 15 | ; 16 | ; 05/20/87 FJG Change format to new Message Service 17 | ; Routines 18 | ; 19 | 20 | CodeR Segment public para 21 | 22 | ASSUME CS:CodeR,DS:nothing,ES:nothing,SS:nothing 23 | 24 | public R_MES_BUFF 25 | ;-------------------------------------- 26 | ;INT 24 messages A La COMMAND 27 | ;-------------------------------------- 28 | 29 | R_MES_BUFF LABEL WORD ; Room is generated for: 30 | 31 | db 512 dup(?) ; ERR0 32 | ; ERR1 33 | ; ERR2 34 | ; ERR3 35 | ; ERR4 36 | ; ERR5 37 | ; ERR6 38 | ; ERR7 39 | ; ERR8 40 | ; ERR9 41 | ; ERR10 42 | ; ERR11 43 | ; ERR12 44 | ; 45 | 46 | CodeR EndS 47 | 48 | End 49 |  -------------------------------------------------------------------------------- /v4.0/src/H/INTERNAT.H: -------------------------------------------------------------------------------- 1 | /* 2 | Data structure for international table 3 | */ 4 | 5 | struct InterTbl 6 | { 7 | unsigned dateform ; /* Date format */ 8 | char currsym[5] ; /* Currency symbol as ASCIZ string */ 9 | char thousp[2] ; /* Thousands separator as ASCIZ string */ 10 | char decsp[2] ; /* Decimal separator as ASCIZ string */ 11 | char datesp[2] ; /* Date separator as ASCIZ string */ 12 | char timesp[2] ; /* Time separator as ASCIZ string */ 13 | unsigned char bits ; /* Bit field */ 14 | unsigned char numdig ; /* Number of signifigant decimal digits */ 15 | unsigned char timeform ;/* Time format */ 16 | unsigned long casecall ;/* Case mapping call */ 17 | char datasp[2] ; /* Data list separator as ASCIZ string */ 18 | int reserv[5] ; /* RESERVED */ 19 | } ; 20 | 21 | 22 | #define DATEFORM_USA 0 23 | #define DATEFORM_EUROPE 1 24 | #define DATEFORM_JAPAN 2 25 | 26 | #define BITS_CURRENCY 0x0001 27 | #define BITS_NUMSPC 0x0002 28 | 29 | #define TIMEFORM_12 0 30 | #define TIMEFORM_24 1 31 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FC/INTERNAT.H: -------------------------------------------------------------------------------- 1 | /* 2 | Data structure for international table 3 | */ 4 | 5 | struct InterTbl 6 | { 7 | unsigned dateform ; /* Date format */ 8 | char currsym[5] ; /* Currency symbol as ASCIZ string */ 9 | char thousp[2] ; /* Thousands separator as ASCIZ string */ 10 | char decsp[2] ; /* Decimal separator as ASCIZ string */ 11 | char datesp[2] ; /* Date separator as ASCIZ string */ 12 | char timesp[2] ; /* Time separator as ASCIZ string */ 13 | unsigned char bits ; /* Bit field */ 14 | unsigned char numdig ; /* Number of signifigant decimal digits */ 15 | unsigned char timeform ;/* Time format */ 16 | unsigned long casecall ;/* Case mapping call */ 17 | char datasp[2] ; /* Data list separator as ASCIZ string */ 18 | int reserv[5] ; /* RESERVED */ 19 | } ; 20 | 21 | 22 | #define DATEFORM_USA 0 23 | #define DATEFORM_EUROPE 1 24 | #define DATEFORM_JAPAN 2 25 | 26 | #define BITS_CURRENCY 0x0001 27 | #define BITS_NUMSPC 0x0002 28 | 29 | #define TIMEFORM_12 0 30 | #define TIMEFORM_24 1 31 | -------------------------------------------------------------------------------- /v4.0/src/MEMM/MEMM/MACH_ID.INC: -------------------------------------------------------------------------------- 1 | 2 | 3 | ;****************************************************************************** 4 | ; 5 | ; (C) Copyright MICROSOFT Corp. 1986 6 | ; 7 | ; Title: MEMM - MICROSOFT Expanded Memory Manager 386 8 | ; 9 | ; Module: MACH_ID.INC - include for Machine ID types 10 | ; 11 | ; Version: 0.03 12 | ; 13 | ; Date: April 9, 1986 14 | ; 15 | ; Author: 16 | ; 17 | ;****************************************************************************** 18 | ; 19 | ; Change log: 20 | ; 21 | ; DATE REVISION DESCRIPTION 22 | ; -------- -------- ------------------------------------------------------- 23 | ; 04/09/86 Original 24 | ; 25 | ;****************************************************************************** 26 | ifndef INC_LIST 27 | .xlist 28 | endif 29 | 30 | ; STANDARD ROM BIOS MACHINE TYPES used in ROM_BIOS_Machine_ID 31 | 32 | RBMI_PC equ 0FFh 33 | RBMI_PCXT equ 0FEh 34 | RBMI_PCjr equ 0FDh 35 | RBMI_PCAT equ 0FCh 36 | RBMI_PCConvertible equ 0F9h 37 | RBMI_Sys80 equ 0F8h 38 | RBMI_CompaqPortable equ 000h 39 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FILESYS/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** makefile for cmd\... *************************** 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: filesys.exe 13 | 14 | filesys.ctl: filesys.skl \ 15 | $(msg)\$(COUNTRY).msg \ 16 | makefile 17 | 18 | _msgret.obj: _msgret.asm \ 19 | filesys.ctl \ 20 | makefile \ 21 | $(inc)\msgserv.asm \ 22 | $(inc)\sysmsg.inc 23 | 24 | _parse.obj: _parse.asm \ 25 | makefile \ 26 | $(inc)\PARSE.ASM \ 27 | $(inc)\PSDATA.INC 28 | 29 | filesys.obj: filesys.c parse.h 30 | 31 | filesys.exe: filesys.obj \ 32 | _parse.obj \ 33 | _msgret.obj 34 | link filesys+ _parse+ _msgret; /NOI 35 | 36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DOS-FX Operating System 2 | 3 | The DOS-FX Operating System is a project whose goals are to create an MS-DOS compatible operating system using the newly released MS-DOS 4.0 source code for computers with i586 class cpus (the original pentium) or newer. This is very WIP as of 26/04/2024. 4 | 5 | # License 6 | 7 | All files within this repo are released under the [MIT License]( https://en.wikipedia.org/wiki/MIT_License) as per the [LICENSE file](https://github.com/dos-fx/DOS-FX/blob/main/LICENSE) stored in the root of this repo. 8 | 9 | # Trademarks 10 | 11 | This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft 12 | trademarks or logos is subject to and must follow 13 | [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/legal/intellectualproperty/trademarks/usage/general). 14 | Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. 15 | Any use of third-party trademarks or logos are subject to those third-party's policies. 16 | -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAPHICS/GRINT2FH.EXT: -------------------------------------------------------------------------------- 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 2 | ;; DOS - GRAPHICS Command 3 | ;; (C) Copyright 1988 Microsoft 4 | ;; ;AN000; 5 | ;; File Name: GRINT2FH.EXT ;AN000; 6 | ;; ---------- ;AN000; 7 | ;; ;AN000; 8 | ;; Description: ;AN000; 9 | ;; ------------ ;AN000; 10 | ;; External declarations for code and data defined in ;AN000; 11 | ;; GRINT2FH.ASM ;AN000; 12 | ;; ;AN000; 13 | ;; Change History: ;AN000; 14 | ;; --------------- ;AN000; 15 | ;; ;AN000; 16 | ;; ;AN000; 17 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 18 | ;; ;AN000; 19 | EXTRN OLD_INT_2FH:DWORD ;; ;AN000; 20 | EXTRN INT_2FH_DRIVER:NEAR ;; ;AN000; 21 | EXTRN PRT_SCR_2FH_NUMBER:ABS ;; ;AN000; 22 | EXTRN SHARED_DATA_AREA_PTR:WORD ;AN000; 23 | EXTRN RESIDENT_CODE_SEG:WORD ;AN000; 24 | ;; ;AN000; 25 | ;; ;AN000; 26 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 27 | -------------------------------------------------------------------------------- /v4.0/src/MAPPER/GMACHMOD.ASM: -------------------------------------------------------------------------------- 1 | ;0 2 | page 80,132 3 | ; 4 | title CP/DOS DOSGETMACHINEMODE mapper 5 | ; 6 | dosxxx segment byte public 'dos' 7 | assume cs:dosxxx,ds:nothing,es:nothing,ss:nothing 8 | ; 9 | ;********************************************************************** 10 | ;* 11 | ;* MODULE: dosgetmachinemode 12 | ;* Note that in PCDOS, this call should NOT BE ISSUED! 13 | ;* This mapper does not return anything, it is meant 14 | ;* only to allow the utility to link without errors. 15 | ;* 16 | ;********************************************************************* 17 | 18 | public dosgetmachinemode 19 | .sall 20 | .xlist 21 | include macros.inc 22 | .list 23 | 24 | str struc 25 | modeaddr dw ? 26 | str ends 27 | 28 | dosgetmachinemode proc far 29 | Enter DosGetMachMode ; push registers 30 | 31 | sub ax,ax ; set good return code 32 | 33 | mexit ; pop registers 34 | ret size str - 6 ; return garbage (Not supported in PCDOS) 35 | 36 | dosgetmachinemode endp 37 | 38 | dosxxx ends 39 | 40 | end 41 | -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/INC/CONIO.H: -------------------------------------------------------------------------------- 1 | /*** 2 | *conio.h - console and port I/O declarations 3 | * 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * This include file contains the function declarations for 8 | * the MS C V2.03 compatible console and port I/O routines. 9 | * 10 | *******************************************************************************/ 11 | 12 | 13 | #ifndef NO_EXT_KEYS /* extensions enabled */ 14 | #define _CDECL cdecl 15 | #else /* extensions not enabled */ 16 | #define _CDECL 17 | #endif /* NO_EXT_KEYS */ 18 | 19 | /* function prototypes */ 20 | 21 | char * _CDECL cgets(char *); 22 | int _CDECL cprintf(char *, ...); 23 | int _CDECL cputs(char *); 24 | int _CDECL cscanf(char *, ...); 25 | int _CDECL getch(void); 26 | int _CDECL getche(void); 27 | int _CDECL inp(unsigned int); 28 | unsigned _CDECL inpw(unsigned int); 29 | int _CDECL kbhit(void); 30 | int _CDECL outp(unsigned int, int); 31 | unsigned _CDECL outpw(unsigned int, unsigned int); 32 | int _CDECL putch(int); 33 | int _CDECL ungetch(int); 34 | 35 | -------------------------------------------------------------------------------- /v4.0/src/CMD/XCOPY/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** makefile for cmd\... *************************** 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: xcopy.exe 13 | 14 | xcopy.ctl: xcopy.skl \ 15 | $(msg)\$(COUNTRY).msg \ 16 | makefile 17 | 18 | xcopy.obj: xcopy.asm \ 19 | makefile \ 20 | $(inc)\versiona.inc \ 21 | $(inc)\copyrigh.inc \ 22 | $(inc)\sysmsg.inc \ 23 | $(inc)\msgserv.asm \ 24 | dos.equ \ 25 | xcopy.equ \ 26 | xcopy.ctl \ 27 | xcopy.cl1 \ 28 | xcopy.cl2 \ 29 | xcopy.cla \ 30 | xmainmsg.equ 31 | 32 | xcpyinit.obj: xcpyinit.asm \ 33 | makefile \ 34 | $(inc)\versiona.inc \ 35 | xcopy.equ \ 36 | dos.equ \ 37 | xinitmsg.equ 38 | 39 | xcopypar.obj: xcopypar.asm \ 40 | makefile \ 41 | $(inc)\psdata.inc \ 42 | $(inc)\parse.asm 43 | 44 | xcopy.exe: xcopy.obj \ 45 | makefile \ 46 | xcopy.lnk \ 47 | xcopypar.obj \ 48 | xcpyinit.obj 49 | link @xcopy.lnk 50 | -------------------------------------------------------------------------------- /v4.0/src/DEV/VDISK/VDISKSYS.INC: -------------------------------------------------------------------------------- 1 | EMS_STATUS EQU 40H 2 | EMS_GET_NUM_PAGES EQU 42H 3 | EMS_ALLOC_PAGES EQU 43H 4 | EMS_MAP_HANDLE EQU 44H 5 | EMS_VERSION EQU 46H 6 | EMS_SAVE_STATE EQU 4F00H 7 | EMS_RESTORE_STATE EQU 4F01H 8 | EMS_SET_HANDLE_NAME EQU 5301H 9 | EMS_FRAME_SEG EQU 5800H 10 | EMS_INT EQU 67H 11 | EMS_VERSION_LEVEL EQU 40H 12 | EMS_2F_Handler EQU 1Bh 13 | 14 | EMS_Mem EQU 'X' ;an005; dms; 15 | EM_Mem EQU 'E' ;an005; dms; 16 | 17 | EMS_EXPECTED_VERSION EQU 34H 18 | EMS_LOW_ERROR EQU 80H 19 | EMS_INSTALLED_FLAG EQU 00h ;ac006; dms; 20 | 21 | EMS_ALLOC_ERROR EQU -1 ; ***RPS ?? 22 | SINGLE_SEGMENT EQU 1 23 | ;;;DOS_PAGE1 EQU 0FFH 24 | ;;;DOS_PAGE2 EQU 0FEH 25 | DOS_PAGE_SZ EQU 16 26 | EMS_Page_Size EQU 4000h ;an002; dms; 27 | 28 | EM_Size_Get EQU 88h ;an001; dms; 29 | 30 | 31 | GET_PAGE_FRAME_STRUC STRUC 32 | FRAME_SEGMENT DW ? 33 | START_PAGE DB ? 34 | NUM_PAGE DB ? 35 | GET_PAGE_FRAME_STRUC ENDS 36 | BUFFER_ENTRY_SIZE EQU TYPE GET_PAGE_FRAME_STRUC 37 | 38 | -------------------------------------------------------------------------------- /v4.0/src/MAPPER/D_GCTRCD.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)d_gctrcd.asm 1.1 86/06/03 2 | .xlist 3 | ; include struc.inc 4 | include nlsapi.inc 5 | .list 6 | 7 | DGROUP group _DATA 8 | 9 | _TEXT segment word public 'CODE' 10 | _TEXT ends 11 | 12 | _DATA segment word public 'DATA' 13 | EXTRN _ApiSel:WORD 14 | _DATA ends 15 | 16 | _TEXT segment 17 | 18 | EXTRN W_NLS_APIS:near 19 | 20 | public DOSGETCTRYINFO 21 | DOSGETCTRYINFO proc far 22 | assume cs:_TEXT 23 | 24 | 25 | mov AX,BP ; Add 4 bytes of dummy parameters to the 26 | mov BP,SP ; Stack by copying the return address down 4 27 | push [BP+2] 28 | push [BP] 29 | mov BP,AX 30 | 31 | push DS 32 | mov AX,_DATA 33 | mov DS,AX 34 | mov AX, SETFILELIST 35 | mov DS:_ApiSel,AX 36 | pop DS 37 | 38 | jmp W_NLS_APIS 39 | 40 | ; pop bp 41 | ; ret 14 42 | 43 | DOSGETCTRYINFO endp 44 | 45 | _TEXT ENDS 46 | END 47 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/NLSFUNC/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** makefile for cmd\... *************************** 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: nlsfunc.exe 13 | 14 | nlsfunc.ctl: nlsfunc.skl \ 15 | $(msg)\$(COUNTRY).msg \ 16 | makefile 17 | 18 | 19 | nlsfunc.obj: nlsfunc.asm \ 20 | funcdbcs.inc \ 21 | msg2nls.inc \ 22 | funcparm.inc \ 23 | nlsfunc.ctl \ 24 | nlsfunc.cla \ 25 | nlsfunc.cl1 \ 26 | nlsfunc.cl2 \ 27 | doesmac.inc \ 28 | $(inc)\mult.inc \ 29 | $(inc)\msgserv.asm \ 30 | $(inc)\doscntry.inc \ 31 | $(inc)\devsym.inc \ 32 | $(inc)\struc.inc \ 33 | $(inc)\copyrigh.inc \ 34 | makefile 35 | 36 | nlsparm.obj: nlsparm.asm \ 37 | $(inc)\parse.asm \ 38 | $(inc)\psdata.inc \ 39 | makefile 40 | 41 | 42 | 43 | nlsfunc.exe: nlsfunc.obj nlsparm.obj 44 | link nlsfunc+nlsparm; 45 | 46 | -------------------------------------------------------------------------------- /v4.0/src/CMD/CHKDSK/CHKSEG.INC: -------------------------------------------------------------------------------- 1 | PSP segment public para 'DUMMY' ;an000;bgb 2 | PSP ends ;an000;bgb 3 | ;an000;bgb 4 | data segment public para 'DATA' ;an000;bgb 5 | data ends ;an000;bgb 6 | ;an000;bgb 7 | CONST SEGMENT PUBLIC para 'DATA' ;an000;bgb 8 | CONST ENDS ;an000;bgb 9 | ;an000;bgb 10 | code segment public para 'CODE' ;an000;bgb 11 | code ends ;an000;bgb 12 | ;an000;bgb 13 | cstack segment para stack 'STACK' ;an000;bgb 14 | cstack ends ;an000;bgb 15 | ;an000;bgb 16 | lastseg segment public para 'LAST' ;an000;bgb;AN000;bgb 17 | lastseg ends ;this is a pointer to the end of the pgm ;A;an000;bgbN000;bgb 18 | ;an000;bgb;AN000;bgb 19 | DG GROUP data,const,code,CSTACK,lastseg ;an000;bgb 20 | assume cs:dg,ds:dg,ss:dg,es:dg ;an000;bgb 21 |  -------------------------------------------------------------------------------- /v4.0/src/SELECT/MPARSE.ASM: -------------------------------------------------------------------------------- 1 | .ALPHA ;AN000; 2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 3 | ; 4 | ; DUMMY DATA SEGMENT 5 | ; 6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 7 | DATA SEGMENT BYTE PUBLIC 'DATA' ;AN000; 8 | DATA ENDS ;AN000;DATA 9 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 10 | ; 11 | ; PARSER INFORMATION 12 | ; 13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 14 | .XLIST ;AN000; 15 | FARSW EQU 1 ;AN000; 16 | DATESW EQU 0 ;AN000; 17 | TIMESW EQU 0 ;AN000; 18 | FILESW EQU 0 ;AN000; 19 | CAPSW EQU 0 ;AN000; 20 | CMPXSW EQU 0 ;AN000; 21 | DRVSW EQU 0 ;AN000; 22 | QUSSW EQU 0 ;AN000; 23 | KEYSW EQU 1 ;AN000; 24 | SWSW EQU 0 ;AN000; 25 | VAL1SW EQU 1 ;AN000; 26 | VAL2SW EQU 1 ;AN000; 27 | VAL3SW EQU 1 ;AN000; 28 | .LIST ;AN000; 29 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 30 | PARSER SEGMENT PARA PUBLIC 'PARSER' ;AN000; 31 | ASSUME CS:PARSER,DS:DATA,ES:DATA;AN000; 32 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 33 | PUBLIC SYSPARSE ;AN000; 34 | PAGE ;AN000; 35 | INCLUDE PARSE.ASM ;AN000; 36 | 37 | PARSER ENDS ;AN000; 38 | END ;AN000; 39 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/KEYB/KEYBI9C.INC: -------------------------------------------------------------------------------- 1 | .XLIST 2 | 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4 | ;; DOS - NLS Support - KEYB Command 5 | ;; (C) Copyright 1988 Microsoft 6 | ;; 7 | ;; File Name: KEYBI9C.INC 8 | ;; ---------- 9 | ;; 10 | ;; Root File Name: KEYB.ASM 11 | ;; --------------- 12 | ;; 13 | ;; Description: 14 | ;; ------------ 15 | ;; External declarations and equates for procedures in file 16 | ;; KEYBI9C.ASM 17 | ;; 18 | ;; Change History: 19 | ;; --------------- 20 | ;; 21 | ;; 22 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 23 | ;; 24 | EXTRN KEYB_INT_9:NEAR ;; 25 | EXTRN BUFFER_FILL:NEAR ;; 26 | EXTRN ERROR_BEEP :NEAR ;; 27 | EXTRN COUNTRY_FLAG:BYTE ;; 28 | EXTRN BEEP_PENDING:BYTE ;; 29 | EXTRN SCAN_CODE:BYTE ;; 30 | EXTRN K8:BYTE ;; 31 | EXTRN TEMP_HEAD:WORD ;; 32 | EXTRN TEMP_TAIL:WORD ;; 33 | EXTRN BUSY_TFLAG:BYTE ;; 34 | EXTRN MYBUFF:BYTE ;; 35 | EXTRN ENABLE_FL:BYTE ;; 36 | EXTRN NEW_BUFF_CTR :BYTE ;; 37 | ;; 38 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 39 | 40 | .LIST 41 | 42 | -------------------------------------------------------------------------------- /v4.0/src/DOS/STDASW.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)stdasw.asm 1.1 85/04/10 2 | TRUE EQU 0FFFFH 3 | FALSE EQU NOT TRUE 4 | 5 | ; Use the switches below to produce the standard Microsoft version or the IBM 6 | ; version of the operating system 7 | MSVER EQU TRUE 8 | IBM EQU FALSE 9 | WANG EQU FALSE 10 | ALTVECT EQU TRUE 11 | 12 | ; Set this switch to cause DOS to move itself to the end of memory 13 | HIGHMEM EQU FALSE 14 | 15 | IF IBM 16 | ESCCH EQU 0 ; character to begin escape seq. 17 | TOGLPRN EQU TRUE ;One key toggles printer echo 18 | ZEROEXT EQU TRUE 19 | ELSE 20 | IF WANG ;Are we assembling for WANG? 21 | ESCCH EQU 1FH ;Yes. Use 1FH for escape character 22 | ELSE 23 | ESCCH EQU 1BH 24 | ENDIF 25 | CANCEL EQU "X"-"@" ;Cancel with Ctrl-X 26 | TOGLPRN EQU FALSE ;Separate keys for printer echo on 27 | ;and off 28 | ZEROEXT EQU TRUE 29 | ENDIF 30 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FASTOPEN/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** makefile for cmd\... *************************** 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: fastopen.exe 13 | 14 | fastopen.ctl: fastopen.skl makefile $(msg)\$(COUNTRY).msg 15 | 16 | fastopen.obj: fastopen.asm $(inc)\fastopen.inc \ 17 | makefile 18 | 19 | fastseek.obj: fastseek.asm $(inc)\fastopen.inc \ 20 | makefile 21 | 22 | fastinit.obj: fastinit.asm $(inc)\dossym.inc $(inc)\fastopen.inc \ 23 | makefile 24 | 25 | fastp.obj: fastp.asm \ 26 | makefile \ 27 | $(inc)\psdata.inc \ 28 | $(inc)\parse.asm 29 | 30 | fastsm.obj: fastsm.asm \ 31 | makefile \ 32 | $(inc)\versiona.inc \ 33 | $(inc)\copyrigh.inc \ 34 | $(inc)\sysmsg.inc \ 35 | $(inc)\msgserv.asm \ 36 | fastopen.ctl \ 37 | fastopen.cl1 \ 38 | fastopen.cl2 \ 39 | fastopen.cla \ 40 | 41 | fastopen.exe: fastopen.obj \ 42 | fastopen.lnk \ 43 | fastseek.obj \ 44 | fastinit.obj \ 45 | fastp.obj \ 46 | fastsm.obj 47 | link @fastopen.lnk 48 | -------------------------------------------------------------------------------- /v4.0/src/INC/BUGTYP.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)bugtyp.asm 1.1 85/04/09 2 | ; 3 | ; debugging types and levels for MSDOS 4 | ; 5 | 6 | TypAccess EQU 0001h 7 | LevSFN EQU 0000h 8 | LevBUSY EQU 0001h 9 | 10 | TypShare EQU 0002h 11 | LevShEntry EQU 0000h 12 | LevMFTSrch EQU 0001h 13 | 14 | TypSect EQU 0004h 15 | LevEnter EQU 0000h 16 | LevLeave EQU 0001h 17 | LevReq EQU 0002h 18 | 19 | TypSMB EQU 0008h 20 | LevSMBin EQU 0000h 21 | LevSMBout EQU 0001h 22 | LevParm EQU 0002h 23 | LevASCIZ EQU 0003h 24 | LevSDB EQU 0004h 25 | LevVarlen EQU 0005h 26 | 27 | TypNCB EQU 0010h 28 | LevNCBin EQU 0000h 29 | LevNCBout EQU 0001h 30 | 31 | TypSeg EQU 0020h 32 | LevAll EQU 0000h 33 | 34 | TypSyscall EQU 0040h 35 | LevLog EQU 0000h 36 | LevArgs EQU 0001h 37 | 38 | TypInt24 EQU 0080h 39 | LevLog EQU 0000h 40 | 41 | TypProlog EQU 0100h 42 | LevLog EQU 0000h 43 | 44 | TypInt EQU 0200h 45 | LevLog equ 0000h 46 | 47 | typFCB equ 0400h 48 | LevLog equ 0000h 49 | LevCheck equ 0001h 50 | -------------------------------------------------------------------------------- /v4.0/src/MEMM/MEMM/ROMSTRUC.EQU: -------------------------------------------------------------------------------- 1 | 2 | 3 | ;****************************************************************************** 4 | ; 5 | ; (C) Copyright MICROSOFT Corp. 1986 6 | ; 7 | ; Title: MEMM - MICROSOFT Expanded Memory Manager 386 8 | ; 9 | ; Module: ROMSTRUC.EQU - structure of the option ROM headers. 10 | ; 11 | ; Version: 0.02 12 | ; 13 | ; Date: June 25,1986 14 | ; 15 | ; Author: 16 | ; 17 | ;****************************************************************************** 18 | ; 19 | ; Change log: 20 | ; 21 | ; DATE REVISION DESCRIPTION 22 | ; -------- -------- ------------------------------------------------------- 23 | ; 06/25/86 Original 24 | ; 06/28/86 0.02 Name change from MEMM386 to MEMM 25 | ; 26 | ;****************************************************************************** 27 | ifndef INC_LIST 28 | .xlist 29 | endif 30 | 31 | OPTION_ROM STRUC 32 | ROM_RECOGNITION DW ? ; HOLDS 0AA55 WORD IF REAL OPTION ROM 33 | ROM_LEN DB ? ; BYTE HOLDING ROM SIZE / 512 34 | ROM_ENTRY DB ? ; WHERE CODE STARTS IN OPTION ROM 35 | OPTION_ROM ENDS 36 | 37 | .list ; end of ROMSTRUC.EQU 38 | -------------------------------------------------------------------------------- /v4.0/src/CMD/MORE/MORE.INC: -------------------------------------------------------------------------------- 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 2 | ; ;AN000; 3 | ; MORE STRUC AND EQUATES ;AN000; 4 | ; ;AN000; 5 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 6 | ; ;AN000; 7 | ANSI_GET EQU 440CH ;AN000; 8 | GET_SUBFUNC EQU 037FH ;AN000; 9 | EXTENDED EQU 0 ;AN000; 10 | TEXT_MODE EQU 1 ;AN000; 11 | MORE_MSG EQU 2 ;AN000; 12 | FILE_TYPE_MSG EQU 4 ;AN001; 13 | DATA_LENGTH EQU 14 ;AN000; 14 | ; ;AN000; 15 | ANSI_STR STRUC ;AN000; 16 | DB 0 ;AN000; 17 | DB 0 ;AN000; 18 | DW DATA_LENGTH ;AN000; 19 | DW ? ;AN000; 20 | D_MODE DB ? ;AN000; 21 | DB ? ;AN000; 22 | DW ? ;AN000; 23 | DW ? ;AN000; 24 | DW ? ;AN000; 25 | DW ? ;AN000; 26 | SCR_ROWS DW ? ;AN000; 27 | ANSI_STR ENDS ;AN000; 28 | 29 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/GRAPHICS/GRLOAD3.EXT: -------------------------------------------------------------------------------- 1 | .XLIST ;AN000; 2 | ;AN000; 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 4 | ;; DOS - GRAPHICS Command 5 | ;; (C) Copyright 1988 Microsoft 6 | ;; ;AN000; 7 | ;; File Name: GRINST.EXT ;AN000; 8 | ;; ---------- ;AN000; 9 | ;; ;AN000; 10 | ;; Description: ;AN000; 11 | ;; ------------ ;AN000; 12 | ;; External declarations for code and data defined in ;AN000; 13 | ;; GRLOAD.ASM ;AN000; 14 | ;; ;AN000; 15 | ;; Change History: ;AN000; 16 | ;; --------------- ;AN000; 17 | ;; ;AN000; 18 | ;; ;AN000; 19 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 20 | ;; ;AN000; 21 | EXTRN PARSE_GRAPHICS:NEAR ;; ;AN000; 22 | EXTRN PARSE_COLORSELECT:NEAR ;; ;AN000; 23 | EXTRN PARSE_COLORPRINT:NEAR ;; ;AN000; 24 | EXTRN PARSE_DARKADJUST:NEAR ;; ;AN000; 25 | EXTRN LIMIT:NEAR ;; ;AN000; 26 | ;; ;AN000; 27 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000; 28 | .LIST ;AN000; 29 | -------------------------------------------------------------------------------- /v4.0/src/DEV/XMA2EMS/XMA2EMS.SKL: -------------------------------------------------------------------------------- 1 | :class 1 2 | 3 | :use 1 xma2ems CRLF 4 | :use 2 xma2ems Welcome_Msg 5 | :use 3 xma2ems DGS_Start_Msg 6 | :use 4 xma2ems DGS_End_Msg 7 | :use 5 xma2ems Page_Frame_Msg 8 | :use 6 xma2ems PF_Start 9 | :use 7 xma2ems Conv_Pages 10 | :use 8 xma2ems Reserve_Msg 11 | :use 9 xma2ems Res_Pages 12 | :use 10 xma2ems Avail_Msg 13 | 14 | :use 11 xma2ems EMS_Pages 15 | :use 12 xma2ems XMA1_Err_Msg 16 | :use 13 xma2ems Not_Found_Msg 17 | :use 14 xma2ems Parm_Err_Msg 18 | :use 15 xma2ems No_Emul_Msg 19 | :use 16 xma2ems Wrong_Emul_Msg 20 | :use 17 xma2ems Wrong_XMAA_Msg 21 | :use 18 xma2ems Req_EMS_Err_Msg 22 | :use 19 xma2ems Not_Instl_Msg 23 | :use 20 xma2ems Conflict_Msg 24 | 25 | :use 21 xma2ems Confl_Address 26 | :use 22 xma2ems Hole_Msg 27 | :use 23 xma2ems Hole_Address 28 | :use 24 xma2ems Frame_Msg 29 | :use 25 xma2ems Frame_Address 30 | :use 26 xma2ems No_Pages_Msg 31 | :use 27 xma2ems Size_Msg1 32 | :use 28 xma2ems Mem_OK 33 | :use 29 xma2ems Next_Line 34 | :use 28 common Prompt_Msg 35 | :use 30 xma2ems XMA2EMS_Msg_Term 36 | :use 16 common No_EMS_Memory 37 | :use 30 xma2ems XMA2EMS_Msg_Term1 38 | 39 | :end 40 | -------------------------------------------------------------------------------- /v4.0/src/DOS/STDSW.ASM: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)stdsw.asm 1.1 85/04/10 2 | TRUE EQU 0FFFFH 3 | FALSE EQU 0 4 | 5 | ; Use the switches below to produce the standard Microsoft version or the IBM 6 | ; version of the operating system 7 | MSVER EQU TRUE 8 | IBM EQU FALSE 9 | WANG EQU FALSE 10 | ALTVECT EQU FALSE 11 | Rainbow EQU FALSE 12 | 13 | 14 | ; Set this switch to cause DOS to move itself to the end of memory 15 | HIGHMEM EQU FALSE 16 | 17 | IF IBM 18 | ESCCH EQU 0 ; character to begin escape seq. 19 | CANCEL EQU 27 ;Cancel with ESCAPE 20 | TOGLPRN EQU TRUE ;One key toggles printer echo 21 | ZEROEXT EQU TRUE 22 | ELSE 23 | IF WANG ;Are we assembling for WANG? 24 | ESCCH EQU 1FH ;Yes. Use 1FH for escape character 25 | ELSE 26 | ESCCH EQU 1BH 27 | ENDIF 28 | CANCEL EQU "X"-"@" ;Cancel with Ctrl-X 29 | TOGLPRN EQU FALSE ;Separate keys for printer echo on 30 | ;and off 31 | ZEROEXT EQU TRUE 32 | ENDIF 33 | -------------------------------------------------------------------------------- /v4.0/src/CMD/COMP/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************* makefile for cmd\comp ************************* 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: comp.com 13 | 14 | comp.ctl: comp.skl \ 15 | $(msg)\$(COUNTRY).msg \ 16 | 17 | comp1.obj: comp1.asm \ 18 | makefile 19 | 20 | comppar.obj: comppar.asm \ 21 | compeq.inc \ 22 | makefile 23 | 24 | compp.obj: compp.asm \ 25 | $(inc)\parse.asm \ 26 | makefile 27 | 28 | compsm.obj: compsm.asm \ 29 | $(inc)\copyrigh.inc \ 30 | $(inc)\versiona.inc \ 31 | $(inc)\sysmsg.inc \ 32 | $(inc)\msghan.inc \ 33 | comp.ctl \ 34 | comp.cl1 \ 35 | comp.cl2 \ 36 | comp.cla \ 37 | compms.inc \ 38 | makefile 39 | 40 | comp2.obj: comp2.asm \ 41 | compeq.inc \ 42 | makefile 43 | 44 | comp.com: comp1.obj \ 45 | comp.lnk \ 46 | comppar.obj \ 47 | compp.obj \ 48 | compsm.obj \ 49 | comp2.obj 50 | link @comp.lnk 51 | exe2bin comp.exe comp.com 52 | del comp.exe 53 | -------------------------------------------------------------------------------- /v4.0/src/CMD/TREE/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** makefile for cmd\... *************************** 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | all: tree.com 13 | 14 | tree.ctl: tree.skl \ 15 | $(msg)\$(COUNTRY).msg \ 16 | makefile 17 | 18 | tree.obj: tree.asm \ 19 | makefile \ 20 | treequ.inc 21 | 22 | treesysp.obj: treesysp.asm \ 23 | makefile \ 24 | $(inc)\psdata.inc \ 25 | $(inc)\parse.asm 26 | 27 | treesysm.obj: treesysm.asm \ 28 | makefile \ 29 | $(inc)\copyrigh.inc \ 30 | $(inc)\versiona.inc \ 31 | $(inc)\sysmsg.inc \ 32 | $(inc)\msgserv.asm \ 33 | tree.ctl \ 34 | tree.cl1 \ 35 | tree.cl2 \ 36 | tree.cla \ 37 | $(inc)\msghan.inc \ 38 | treems.inc 39 | 40 | treepar.obj: treepar.asm \ 41 | makefile 42 | 43 | tree.com: tree.obj \ 44 | makefile \ 45 | tree.lnk \ 46 | treesysp.obj \ 47 | treesysm.obj \ 48 | treepar.obj 49 | link @tree.lnk 50 | exe2bin tree.exe tree.com 51 | del tree.exe 52 | -------------------------------------------------------------------------------- /v4.0/src/CMD/REPLACE/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** makefile for cmd\... *************************** 2 | 3 | msg =..\..\messages 4 | dos =..\..\dos 5 | inc =..\..\inc 6 | hinc =..\..\h 7 | 8 | # 9 | ####################### dependencies begin here. ######################### 10 | # 11 | 12 | map =..\..\mapper 13 | 14 | all: replace.exe 15 | 16 | replace.ctl: replace.skl \ 17 | $(msg)\$(COUNTRY).msg \ 18 | makefile 19 | 20 | _msgret.obj: _msgret.asm \ 21 | $(inc)\msgserv.asm \ 22 | $(inc)\sysmsg.inc \ 23 | replace.ctl \ 24 | replace.cla \ 25 | replace.cl1 \ 26 | replace.cl2 \ 27 | replace.skl 28 | 29 | _parse.obj: _parse.asm \ 30 | $(inc)\parse.asm \ 31 | $(inc)\psdata.inc 32 | 33 | _replace.obj: _replace.asm 34 | 35 | replace.obj: replace.c \ 36 | makefile \ 37 | replacep.h \ 38 | $(hinc)\comsub.h 39 | 40 | replace.exe: replace.obj \ 41 | _replace.obj \ 42 | $(map)\mapper.lib \ 43 | $(inc)\comsubs.lib \ 44 | _msgret.obj \ 45 | _parse.obj \ 46 | replace.lnk 47 | link @replace.lnk 48 | -------------------------------------------------------------------------------- /v4.0/src/TOOLS/BLD/INC/SEARCH.H: -------------------------------------------------------------------------------- 1 | /*** 2 | *search.h - declarations for searcing/sorting routines 3 | * 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * This file contains the declarations for the sorting and 8 | * searching routines. 9 | * [System V] 10 | * 11 | *******************************************************************************/ 12 | 13 | 14 | #ifndef _SIZE_T_DEFINED 15 | typedef unsigned int size_t; 16 | #define _SIZE_T_DEFINED 17 | #endif 18 | 19 | #ifndef NO_EXT_KEYS /* extensions enabled */ 20 | #define _CDECL cdecl 21 | #else /* extensions not enabled */ 22 | #define _CDECL 23 | #endif /* NO_EXT_KEYS */ 24 | 25 | 26 | /* function prototypes */ 27 | 28 | char * _CDECL lsearch(char *, char *, unsigned int *, unsigned int, int (_CDECL *)(void *, void *)); 29 | char * _CDECL lfind(char *, char *, unsigned int *, unsigned int, int (_CDECL *)(void *, void *)); 30 | void * _CDECL bsearch(const void *, const void *, size_t, size_t, int (_CDECL *)(const void *, const void *)); 31 | void _CDECL qsort(void *, size_t, size_t, int (_CDECL *)(const void *, const void *)); 32 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Microsoft Corporation. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE 22 | 23 | -------------------------------------------------------------------------------- /v4.0/src/CMD/RECOVER/RECOVER.SKL: -------------------------------------------------------------------------------- 1 | ;RECOVER Utility 2 | ;Message Service Routine 3 | 4 | :util RECOVER ;BEGIN UTIL 5 | 6 | :class A ;EXTENDED ERRORS 7 | ;------- --------------- 8 | :def 2 CR,LF,"File not found",CR,LF ;File not found 9 | 10 | 11 | ;COMMON & DEFINED MSGS 12 | ;------- ------------ 13 | :def 3 CR,LF,"Cannot RECOVER an ASSIGNED or SUBST'd drive",CR,LF 14 | :def 4 CR,LF,"Invalid drive or file name",CR,LF 15 | :def 5 CR,LF,"Warning - directory full",CR,LF 16 | 17 | :def 6 CR,LF,"Cannot RECOVER a Network Drive", CR,LF ;Cannot %1 a Network drive 18 | ;:def 7 CR,LF,"Recover not available on drive %1",CR,LF 19 | :def 8 CR,LF,"%1 file(s) recovered",CR,LF 20 | :def 9 CR,LF,"%1 of %2 bytes recovered",CR,LF 21 | 22 | ;:use COMMON28 ;Press any key... ;AC000;bgb 23 | :def 10 CR,LF,"Press any key to begin recovery of the",CR,LF,"file(s) on drive %1",CR,LF,CR,LF ;AN000;bgb 24 | :def 11 CR,LF,"Can not read file allocation table",CR,LF 25 | :def 12 CR,LF,"Can not write file allocation table",CR,LF 26 | :def 13 CR,LF 27 | :use 14 extend8 ;insufficent memory ;an013;bgb 28 | :end ;END UTIL 29 |  -------------------------------------------------------------------------------- /v4.0/src/BIOS/DEFEMS.INC: -------------------------------------------------------------------------------- 1 | ;J.K. This is a temporary version of EMS function definitions needed for 2 | ;IBMBIO SYSINIT. 3 | 4 | EMS_INT equ 67h ;interrupt vector designated for EMS. 5 | 6 | EMS_STATUS equ 40h ;status of memery manager 7 | EQ_PAGES equ 42h ;get number of unallocated & total pages 8 | E_GET_HANDLE equ 43h ;allocate pages 9 | EMAP_L_TO_P equ 44h ;Map logical to physical page 10 | EMAP_STATE equ 4Fh ;Mapping status 11 | GET_MAP_STATE equ 00h 12 | GET_MAP_SIZE equ 02h 13 | SET_MAP_STATE equ 01h 14 | EDE_ALLOCATE equ 45h ;deallocate pages 15 | EMS_VERSION equ 46h ;Get EMM version number 16 | GET_PAGE_FRAME equ 58h ;Get page frame address 17 | GET_PAGEFRAME_TAB equ 00H 18 | GET_NUM_PAGEFRAME equ 01H 19 | EMS_HANDLE_NAME equ 53h 20 | SET_HANDLE_NAME equ 01h 21 | 22 | IBM_PAGE_ID equ 255 ;Physical page id that will be used by 23 | ;IBMBIO and IBMDOS for buffer manipulation. 24 | 25 | ;MAX_NUM_PAGEFRAME equ 12 ;maximum number of page frames IBMBIO can 26 | ;handle 27 | 28 | MAX_NUM_PAGEFRAME equ 64 ;maximum number of page frames MSBIO can 29 | ;handle 30 | 31 | EMSVERSION equ 40h ;4.0 32 | 33 |  -------------------------------------------------------------------------------- /v4.0/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) IBM and Microsoft Corporation. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE 22 | -------------------------------------------------------------------------------- /v4.0/src/CMD/BACKUP/MAKEFILE: -------------------------------------------------------------------------------- 1 | #************************** makefile for cmd\backup *************************** 2 | 3 | cflags = -AS -Od -Zp $(extcsw) 4 | msg =..\..\messages 5 | dos =..\..\dos 6 | inc =..\..\inc 7 | hinc =..\..\h 8 | map =..\..\mapper 9 | here =..\cmd\backup 10 | 11 | # 12 | ####################### dependencies begin here. ######################### 13 | # 14 | 15 | all: backup.com 16 | 17 | $(map)\mapper.lib: 18 | cd $(map) 19 | nmake 20 | cd $(here) 21 | 22 | _parse.obj: _parse.asm \ 23 | $(inc)\parse.asm \ 24 | $(inc)\psdata.inc \ 25 | makefile 26 | 27 | backup.ctl: backup.skl \ 28 | $(msg)\$(COUNTRY).MSG 29 | 30 | _msgret.obj: _msgret.asm \ 31 | backup.ctl \ 32 | $(inc)\msgserv.asm \ 33 | $(inc)\sysmsg.inc \ 34 | $(inc)\versiona.inc \ 35 | $(inc)\copyrigh.inc \ 36 | makefile 37 | 38 | backup.obj: backup.c backpars.h backup.h makefile \ 39 | $(hinc)\doscalls.h 40 | 41 | backup.com: backup.obj _parse.obj _msgret.obj \ 42 | $(map)\mapper.lib $(inc)\comsubs.lib 43 | link /NOE backup + _parse + _msgret,,,$(map)\mapper + $(inc)\comsubs; 44 | convert backup.exe backup.com 45 | del backup.exe 46 | -------------------------------------------------------------------------------- /v4.0/src/INC/ARENA.INC: -------------------------------------------------------------------------------- 1 | ; SCCSID = @(#)arena.asm 1.1 85/04/09 2 | BREAK 3 | 4 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; 5 | ; C A V E A T P R O G R A M M E R ; 6 | ; ; 7 | ; 8 | ; arena item 9 | ; 10 | arena STRUC 11 | arena_signature DB ? ; 4D for valid item, 5A for last item 12 | arena_owner DW ? ; owner of arena item 13 | arena_size DW ? ; size in paragraphs of item 14 | arena_reserved DB 3 DUP(?) ; reserved 15 | arena_name DB 8 DUP(?) ; owner file name 16 | arena ENDS 17 | 18 | ; 19 | ; CAUTION: The routines in ALLOC.ASM rely on the fact that arena_signature 20 | ; and arena_owner_system are all equal to zero and are contained in DI. Change 21 | ; them and change ALLOC.ASM. 22 | 23 | arena_owner_system EQU 0 ; free block indication 24 | 25 | arena_signature_normal EQU 4Dh ; valid signature, not end of arena 26 | arena_signature_end EQU 5Ah ; valid signature, last block in arena 27 | ; ; 28 | ; C A V E A T P R O G R A M M E R ; 29 | ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----; 30 |  -------------------------------------------------------------------------------- /v4.0/src/CMD/APPEND/APPENDM.ASM: -------------------------------------------------------------------------------- 1 | page 60,120 2 | ; @@04 07/30/86 Fix second APPEND hang PTM P0000053 3 | ; @@05 08/13/86 Fix bad parm message PTM P0000125 4 | ; @@10 08/28/86 Change message for @@05 PTM P0000291 5 | ; @@11 09/10/86 Support message profile and make 6 | ; msg length variable. R.G. PTM P0000479 7 | cseg segment public para 'CODE' 8 | assume cs:cseg 9 | 10 | public bad_append_msg ;@@11 11 | public path_error_msg ;@@11 12 | public parm_error_msg ;@@11 13 | public path_parm_error_msg ;@@11 14 | public no_append_msg ;@@11 15 | public append_assign_msg ;@@11 16 | public append_tv_msg ;@@11 17 | public bad_DOS_msg ;@@11 18 | public second_append_msg ;@@11 19 | 20 | public len_bad_append_msg ;@@11 21 | public len_path_error_msg ;@@11 22 | public len_parm_error_msg ;@@11 23 | public len_path_parm_error_msg ;@@11 24 | public len_no_append_msg ;@@11 25 | public len_append_assign_msg ;@@11 26 | public len_append_tv_msg ;@@11 27 | public len_bad_DOS_msg ;@@11 28 | public len_second_append_msg ;@@11 29 | 30 | cr equ 13 31 | lf equ 10 32 | 33 | include appendm.inc 34 | 35 | cseg ends 36 | end 37 | -------------------------------------------------------------------------------- /v4.0/src/CMD/JOIN/JOIN.SKL: -------------------------------------------------------------------------------- 1 | ;JOIN Utility 2 | ;Message Service Routine 3 | 4 | :util JOIN ;BEGIN UTIL ;AN000; 5 | 6 | :class 1 ;EXTENDED ERRORS ;AN000; 7 | ;------- --------------- 8 | ;:use EXTEND8 ;Insufficient memory 9 | 10 | :class 2 ;PARSE ERRORS ;AN000; 11 | ;------- ------------ 12 | ;:use PARSE1 ;Too many parameters 13 | ;:use PARSE3 ;Invalid switch 14 | ;:use PARSE10 ;Invalid parameter 15 | 16 | :class A ;COMMON & DEFINED MSGS ;AN000; 17 | ;------- ------------ 18 | :use 1 COMMON1 ;Incorrect DOS version ;AN000; 19 | :def 2 "Directory not empty",CR,LF ;AN000; 20 | :use 12 COMMON12 ;Cannot %1 a network drive ;AN000; 21 | 22 | :end ;END UTIL ;AN000; 23 | -------------------------------------------------------------------------------- /v4.0/src/CMD/FC/FGETL.C: -------------------------------------------------------------------------------- 1 | /* fgetl.c - expand tabs and return lines w/o separators */ 2 | 3 | #include "tools.h" 4 | 5 | /* returns line from file (no CRLFs); returns NULL if EOF */ 6 | fgetl (buf, len, fh) 7 | char *buf; 8 | int len; 9 | FILE *fh; 10 | { 11 | register int c; 12 | register char *p; 13 | 14 | /* remember NUL at end */ 15 | len--; 16 | p = buf; 17 | while (len) { 18 | c = getc (fh); 19 | if (c == EOF || c == '\n') 20 | break; 21 | #if MSDOS 22 | if (c != '\r') 23 | #endif 24 | if (c != '\t') { 25 | *p++ = c; 26 | len--; 27 | } 28 | else { 29 | c = min (8 - ((p-buf) & 0x0007), len); 30 | Fill (p, ' ', c); 31 | p += c; 32 | len -= c; 33 | } 34 | } 35 | *p = 0; 36 | return ! ( (c == EOF) && (p == buf) ); 37 | } 38 | 39 | /* writes a line to file (with trailing CRLFs) from buf, return <> 0 if 40 | * writes fail 41 | */ 42 | fputl (buf, len, fh) 43 | char *buf; 44 | int len; 45 | FILE *fh; 46 | { 47 | #if MSDOS 48 | return (fwrite (buf, 1, len, fh) != len || fputs ("\r\n", fh) == EOF) ? EOF : 0; 49 | #else 50 | return (fwrite (buf, 1, len, fh) != len || fputs ("\n", fh) == EOF) ? EOF : 0; 51 | #endif 52 | } 53 | --------------------------------------------------------------------------------