home *** CD-ROM | disk | FTP | other *** search
- [ 2. DOS INT 21h Interface]
- EMBEDDED DOS INTERRUPT 21H FUNCTIONS
- ════════════════════════════════════════════════════════════════════════
- Embedded DOS supports all of the INT 21h functions called by MS-DOS
- programs. Because it was designed for real-time applications, all
- these function calls are reentrant; your application may perform any
- combination of these calls simultaneously with multiple threads (tasks)
- without fear of clobbering the static data structures found in other
- DOS operating systems.
-
- CODE DOS FUNCTION DESCRIPTION
- ════════════════════════════════════════════════════════════════════════
- 0x00 DOSTERMINATE Terminate program.
- 0x01 DOSCONINPUT Read console character with echo.
- 0x02 DOSCONOUTPUT Write character to console.
- 0x03 DOSAUXINPUT Read from AUX device.
- 0x04 DOSAUXOUTPUT Write to AUX device.
- 0x05 DOSPRNOUTPUT Write to PRN device.
- 0x06 DOSCONIO Read/write to console (direct).
- 0x07 DOSCONINPUTRAW Read raw console char without echo.
- 0x08 DOSCONINPUTRAW2 Read raw console char without echo.
- 0x09 DOSCONSTROUTPUT Write string to console.
- 0x0a DOSCONSTRINPUT Read string from console.
- 0x0b DOSCONGETSTATUS Get status of input buffer.
- 0x0c DOSCONFLUSH Flush input buffer & exec command.
- 0x0d DOSDISKRESET Reset diskette subsystem.
- 0x0e DOSSETDEFAULTDRIVE Set default drive number.
- 0x0f DOSOPENFCB Open file using FCB.
- 0x10 DOSCLOSEFCB Close file using FCB.
- 0x11 DOSFINDFIRSTFCB Find first match using FCB.
- 0x12 DOSFINDNEXTFCB Find next match using FCB.
- 0x13 DOSDELETEFCB Delete file using FCB.
- 0x14 DOSREADFCB Sequential file read using FCB.
- 0x15 DOSWRITEFCB Sequential file write using FCB.
- 0x16 DOSCREATEFCB Create file using FCB.
- 0x17 DOSRENAMEFCB Rename file using FCB.
- 0x18 DOSGETLOGIN Return login vector (CP/M compatibility).
- 0x19 DOSGETDEFAULTDRIVE Get default drive using FCB.
- 0x1a DOSSETDTA Set disk transfer address for FCB.
- 0x1b DOSGETDEFAULTINFO Get allocation info for default drive.
- 0x1c DOSGETINFO Get allocation info for specific drive.
- 0x1d DOSGETREADONLYVECTOR Get R/O vector (CP/M compatibility).
- 0x1e DOSSETFILEATTRIBUTES Set file attr (CP/M compatibility).
- 0x1f DOSGETDEFAULTDPB Get ptr to default DPB.
- 0x20 DOSUSERCODE Get/set user code (CP/M compatibility).
- 0x21 DOSRANDOMREADFCB Random read on FCB.
- 0x22 DOSRANDOMWRITEFCB Random write on FCB.
- 0x23 DOSGETFILESIZEFCB Get size of file on FCB.
- 0x24 DOSSETRANDOMRECFCB Set random record position on FCB.
- 0x25 DOSSETVECTOR Set interrupt vector.
- 0x26 DOSCREATEPSP Create program segment prefix.
- 0x27 DOSRANDOMREADBLKFCB Random read (block I/O) on FCB.
- 0x28 DOSRANDOMWRITEBLKFCB Random write (block I/O) on FCB.
- 0x29 DOSPARSEFILENAME Parse filename in FCB.
- 0x2a DOSGETDATE Get system date.
- 0x2b DOSSETDATE Set system date.
- 0x2c DOSGETTIME Get system time.
- 0x2d DOSSETTIME Set system time.
- 0x2e DOSSETVERIFY Set disk I/O verify mode on or off.
- 0x2f DOSGETDTA Get disk transfer address.
- 0x30 DOSGETVERSION Get MS-DOS compatibility version #.
- 0x31 DOSTSR Terminate and stay resident in memory.
- 0x32 DOSGETDPB Get ptr to DPB.
- 0x33 DOSBREAKFLAG Get/set break flag for Ctrl-C.
- 0x34 DOSGETVAR Get DOS variables address.
- 0x35 DOSGETVECTOR Get interrupt vector.
- 0x36 DOSGETDISKFREE Get disk free space.
- 0x37 DOSSWITCHAR Get/set switch character.
- 0x38 DOSCOUNTRYINFO Get/set country information.
- 0x39 DOSCREATEDIR Create subdirectory.
- 0x3a DOSDELETEDIR Delete subdirectory.
- 0x3b DOSSETDIR Set current directory.
- 0x3c DOSCREATE Create or truncate file.
- 0x3d DOSOPEN Open file or device.
- 0x3e DOSCLOSE Close handle to file or device.
- 0x3f DOSREAD Read file or device.
- 0x40 DOSWRITE Write file or device.
- 0x41 DOSDELETE Delete file.
- 0x42 DOSSETPOS Set file pointer position.
- 0x43 DOSFILEATTR Get/set file attributes.
- 0x44 DOSDEVIOCTL General device I/O control.
- 0x45 DOSDUPLICATE Duplicate handle.
- 0x46 DOSFORCEDUPLICATE Force duplicate handle.
- 0x47 DOSGETDIR Get current directory.
- 0x48 DOSALLOCSEG Allocate memory segment.
- 0x49 DOSFREESEG Free memory segment.
- 0x4a DOSSIZESEG Change size of memory segment.
- 0x4b DOSEXEC Load/execute program/overlay.
- 0x4c DOSEXIT Terminate process.
- 0x4d DOSWAIT Wait for process to get return code.
- 0x4e DOSFINDFIRST Find first file in pattern.
- 0x4f DOSFINDNEXT Find next file in pattern.
- 0x50 DOSSETPSP Set current PSP.
- 0x51 DOSGETPSP Get current PSP.
- 0x52 DOSGETANCHOR Get anchor block.
- 0x53 DOSBPBTODPB Convert BPB to DPB.
- 0x54 DOSGETVERIFY Get verify flag status.
- 0x55 DOSDUPPSP Duplicate PSP for DOSEXEC.
- 0x56 DOSRENAME Rename file.
- 0x57 DOSTIMESTAMP Get/set file date/time stamp.
- 0x58 DOSALLOCSTRAT Get/set memory allocation strategy.
- 0x59 DOSGETEXTERROR Get extended error information.
- 0x5a DOSCREATETEMPFILE Create a temporary file.
- 0x5b DOSCREATENEWFILE Create a new file.
- 0x5c DOSLOCK Lock/unlock byte range in file.
- 0x5d DOSMSNET MS-NET support.
- 0x5e DOSMACHINEINFO Get/set machine name/printer setup.
- 0x5f DOSNETWORK Perform network operations.
- 0x60 DOSCANNONICALIZEPATH Cannonicalize object pathname.
- 0x61 NOSUCHDOSCALL Not required in MS-DOS 3.31.
- 0x62 DOSGETPSP Get program segment prefix.
- 0x63 DOSGETLEADBYTETBL Get lead byte table (not in 3.x).
- 0x64 NOSUCHDOSCALL Not required in MS-DOS 3.31.
- 0x65 DOSGETEXTCOUNTRYINFO Get extended country information.
- 0x66 DOSGETSETCODEPAGE Get or set the current code page.
- 0x67 DOSSETHANDLELIMIT Set the max. # of handles/curr process.
- 0x68 DOSCOMMITFILE Commit file to disk.