home *** CD-ROM | disk | FTP | other *** search
File List | 1985-06-11 | 6.5 KB | 151 lines |
-
- The following is a list of possible DOS services through
- Int 21H. The services are organized into groups by function. The
- groups and the services within the groups are generally in ascending
- order by request number, but functional relationships are given
- precedence. Having found the service you need, you can access its
- detailed description in your DOS manual through its request number.
-
-
- Service number in decimal & hex
- | Appears in which release
- | | Functional group
- | | | Capsule description
- | | |
- ------------------------------------------------------------------------
- 0/00 1/2/3 program cntl end program (requires PSP*CS)
- 49/31 -/2/3 program cntl end, stay resident, AL=ret, DX=size
- 76/4C -/2/3 program cntl end program, AL=ret
- 38/26 1/2/3 program cntl make daughter PSP at (DX:00)
- 75/4B -/2/3 program cntl (AL=0) load, run daughter from path *DS:DX
- 77/4D -/2/3 program cntl get AH=term code, AL=ret of daughter
- 75/4B -/2/3 program cntl (AL=3) load DS:DX --> path as overlay
- 98/62 -/-/3 program cntl get BX=paraddr of my PSP
-
- 48/30 -/2/3 system info get DOS version number
- 42/2A 1/+/3 system info get CX=year, DH=mo, DL=day (2,3:AL=dow)
- 44/2C 1/2/3 system info get time as CH:CL:DH:DL
- 51/33 -/2/3 system info (AL=00) get Break switch in DL
- 53/35 -/2/3 system info get int(AL) vector to ES+BX
- 56/38 -/2/+ system info (AL=00) get country dependent info
- 72/48 -/2/3 system info (BX=FFFF) get size available ram to BX
- 89/59 -/-/3 system info get extended error to AX,BH,BL,CH
-
- 37/25 1/2/3 system cntl set int(AL) vector to (DS+DX)
- 43/2B 1/2/3 system cntl set date from CX,DX
- 45/2D 1/2/3 system cntl set time from CH:CL:DH:DL
- 51/33 -/2/3 system cntl (AL=01) set Break switch from DL.0
- 56/38 -/-/3 system cntl (??) set country dependent info
- 72/48 -/2/3 system cntl allocate BX paragraphs
- 73/49 -/2/3 system cntl return RAM from ES=paraddr
- 73/4A -/2/3 system cntl resize ES=paraddr to BX paras
-
- 1/01 1/2/3 kbd/handle 0 get key: wait, echo, break check
- 6/06 1/2/3 kbd/handle 0 (DL=FF) get key: no echo, no wait, no break
- 7/07 1/2/3 kbd/handle 0 get key: wait, no echo, no break
- 8/08 1/2/3 kbd/handle 0 get key: wait, no echo, break
- 10/0A 1/2/3 kbd/handle 0 buffered line input with editing
- 11/0B 1/2/3 kbd/handle 0 test if key available (break)
- 12/0C 1/2/3 kbd/handle 0 flush buffered keys, then do (AL)
-
- 2/02 1/2/3 scrn/handle 1 put DL with editing and break check
- 6/06 1/2/3 scrn/handle 1 (DL <> FF) put DL, no edit, no break
- 9/09 1/2/3 scrn/handle 1 iterate DOA 2 over *DS:DX to $
-
- 3/03 1/2/3 aux/handle 3 get byte from COM1
- 4/04 1/2/3 aux/handle 3 put byte to COM1
-
- 5/05 1/2/3 prt/handle 4 put byte to LPT1
-
- 25/19 1/2/3 disk info get AL=default frive
- 47/2F -/2/3 disk info get Disk Transfer Address to ES:BX
- 27/1B 1/+/3 disk info get FAT *DS:BX(2,3: only 1st byte of FAT)
- 28/1C -/2/3 disk info .. and CS=bytes/sec AL=sec/unit DX=units/disk
- 54/36 -/2/3 disk info BX=free units, CX/DX/AL as for 1C
- 84/54 -/2/3 disk info get write-verify switch to AL.0
-
- 13/0D 1/2/3 disk control reset disk system
- 14/0E 1/2/3 disk control select drives, return count of drives
- 26/1A 1/2/3 disk control set Disk transfer Address=DS:DX
- 46/2E -/2/3 disk control set write verify switch from AL.0
-
- 15/0F 1/2/3 fcb control open file from FCB
- 16/10 1/2/3 fcb control close file from FCB
- 17/11 1/2/3 fcb control scan current directory for 1st match
- 18/12 1/2/3 fcb control scan current directory for next match
- 19/13 1/2/3 fcb control erase files matching FCB
- 22/16 1/2/3 fcb control make new file from FCB
- 23/17 1/2/3 fcb control rename file from FCB
- 35/23 1/2/3 fcb control get size of file to FCB
- 36/24 1/2/3 fcb control set relrecno from current file position
- 40/28 1/2/3 fcb control (CX=0) trunc or stretch file to size
- 41/29 1/+/3 fcb control parse filespec *DS:SI into fcb *ES:DI
-
- 20/14 1/2/3 fcb i/o read next record to DTA
- 21/15 1/2/3 fcb i/o write DTA to next record
- 33/21 1/2/3 fcb i/o read record at direct address
- 34/22 1/2/3 fcb i/o write record to direct address
- 39/27 1/2/3 fcb i/o block read CX records to DTA
- 40/28 1/2/3 fcb i/o (CX>0) block write CX recs from DTA
-
- 57/39 -/2/3 directories make directory for path *DS:DX
- 58/3A -/2/3 directories erase directory at end of path *DS:DX
- 59/3B -/2/3 directories set current path as path *DS:DX
- 71/47 -/2/3 directories get current path of DL=drv to DS:DI
-
- 63/3F -/2/3 file i/o read CX bytes from BX=handle to DS:DX
- 64/40 -/2/3 file i/o write CX bytes to BX=handle from DS:DX
-
- 60/3C -/2/3 file control create/trunc file (path *DS:DX, CX=attr)
- 91/5B -/-/3 file control create new or fail (path *DS:DX, CX=attr)
- 90/5A -/-/3 file control create unique file (path *DS:DX, CX=attr)
- 61/3D -/2/+ file control open file (path *DS:DX, AL=access type)
- 62/3E -/2/3 file control close file (BX=handle)
- 65/41 -/2/3 file control erase file (path *DS:DX)
- 66/42 -/2/3 file control seek (BX=handle, AL=method, CX+DX=offset)
- 67/43 -/2/3 file control (AL=0) get CX=attr of file path *DS:DX
- 67/43 -/2/3 file control (AL=1) set attr of file path *DS:DX
- 69/45 -/2/3 file control create a duplicate file handle
- 70/46 -/2/3 file control force a handle to be a duplicate
- 78/4E -/2/3 file control search 1st match to path *DS:DX
- 79/4F -/2/3 file control search next match to path *DS:DX
- 86/56 -/2/3 file control rename/move path *DS:DX to path *ES:DI
- 87/57 -/2/3 file control (AL=0) get CX=time, DX=date of path *DS:DX
- 87/57 -/2/3 file control (AL=1) set CX=time, DX=date of path *DS:DX
- 92/5C -/-/3 file control (AL=0) at CX+DX in BX=hdl, lock SI+DI bytes
- 92/5C -/-/3 file control (AL=1) release bytes locked by prior call
-
-
-
-
- The following are command codes to which an MSDOS device driver
- must respond. These are omitted from IBM's DOS Technical Reference manuals.
- Codes 13, 14, and 15 are new with PCDOS 3.0. Codes 3, 12, and 15 are
- passed only to drivers that indicate IOCTL support in their Device HE
- Attribute word..
-
-
- Command Type of Operation
- Code Driver
-
- 0 either initialize
- 1 block media (sic) check
- 2 block build BIOS parameter block
- 3 either IOCTL input call
- 4 either input
- 5 character nondestructive input no wait
- 6 character input status check
- 7 character input flush
- 8 either output
- 9 either output with verify
- 10 character output status
- 11 character output flush
- 12 either IOCTL output call
- 13 either notification of file open
- 14 either notification of file close
- 15 either IOCTL query: removable disk?
-
-
-
-
-