home *** CD-ROM | disk | FTP | other *** search
/ RBBS in a Box Volume 1 #3.1 / RBBSIABOX31.cdr / dosc / dos_serv.lst < prev    next >
Encoding:
File List  |  1985-06-11  |  6.5 KB  |  151 lines

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