home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / asmutl / m80date.lbr / BDOS.IZC / BDOS.INC
Text File  |  1987-07-18  |  4KB  |  95 lines

  1.  
  2. ;************************************************************************
  3. ;                                    *
  4. ;       BDOS functions  (cp/m 3.0)                    *
  5. ;                                    *
  6. ;************************************************************************
  7.  
  8. BDOS    EQU    5
  9. SYSRST    EQU    0        ;warmstart
  10. RDCON    EQU    1        ;wait for & read console character
  11. WRCON    EQU    2        ;write to console
  12. RDAUX    EQU    3        ;wait for & read aux
  13. WRAUX    EQU    4        ;write to aux
  14. LIST    EQU    5        ;write to list device
  15. DRCON    EQU    6        ;direct console i/o character or
  16. ;                                           ff=read
  17. ;                                           fe=status only
  18. ;                                           fd=wait for input   
  19. AUXINS    EQU    7        ;aux in status
  20. AUXOTS    EQU    8        ;aux out status
  21. PRTSTR    EQU    9        ;de=string
  22. RDBUFF    EQU    10        ;de=buffer   max, count, c1,c2,... 
  23. CONST    EQU    11        ;console in status
  24. GETVER    EQU    12        ;return version in HL
  25. DSKRST    EQU    13        ;reset disk system
  26. SELDSK    EQU    14        ;select disk 0=a:
  27. OPENF    EQU    15        ;open file de=fcb
  28. CLOSEF    EQU    16        ;close file
  29. SRCHF    EQU    17        ;search for first occurance
  30. SRCHN    EQU    18        ;find next occurance
  31. DELETE    EQU    19        ;delete file
  32. READ    EQU    20        ;read sequential
  33. WRITE    EQU    21        ;write sequential
  34. MAKE    EQU    22        ;make file
  35. RENAME    EQU    23        ;rename file new name at fcb+16
  36. LOGINV    EQU    24        ;return login vector in hl
  37. CURDSK    EQU    25        ;return current disk in a
  38. SETDMA    EQU    26        ;set new dma
  39. GETALV    EQU    27        ;get allocation vector address
  40. WRTPRT    EQU    28        ;write protect current disk
  41. ROVEC    EQU    29        ;get r/o vector in hl
  42. SETFLG    EQU    30        ;set file attributes
  43. GETDPB    EQU    31        ;return dpb address
  44. USER    EQU    32        ;get/set user ff=get
  45. RDRAND    EQU    33        ;read random record
  46. WRRAND    EQU    34        ;write random record
  47. FLSIZE    EQU    35        ;compute file size
  48. SETRAN    EQU    36        ;set random record from last sequential read
  49. RSTDRV    EQU    37        ;reset drive
  50. ACCDRV    EQU    38        ;mpm only - access drive
  51. FREEDR    EQU    39        ;mpm only - free drive
  52. WRRAN0    EQU    40        ;fill a random record with 0
  53. TSTWRT    EQU    41        ;mpm only - test and write
  54. LOCK    EQU    42        ;mpm only - lock record
  55. UNLOCK    EQU    43        ;mpm only - unlock record       
  56. MULTIS    EQU    44        ;set multi sector count
  57. ERRMOD    EQU    45        ;set bdos error mode
  58. FREESP    EQU    46        ;return free space in 1st 3 bytes of dma
  59. CHAIN    EQU    47        ;chain to pgm name in def buff (80h)
  60. FLUSH    EQU    48        ;flush buffers
  61. SCB    EQU    49        ;get set scb de=.scb pb   db offset
  62. ;                                                 db ffh set byte
  63. ;                                                    feh set word
  64. ;                                                    00h get
  65. ;                                                 dw value
  66. DRBIOS    EQU    50        ;direct bios call de=.bios pb  db bios func #
  67. ;                                                      db = A
  68. ;                                                      dw =BC
  69. ;                                                      dw =DE
  70. ;                                                      dw =HL
  71. LDOVL    EQU    59        ;load overlay
  72. CALRSX    EQU    60        ;call rsx  de=.rsx pb   db rsx func #
  73. ;                                               db # of word parameters
  74. ;                                               dw p1
  75. ;                                               dw p2
  76. FRBLKS    EQU    98        ;free temporary blocks
  77. TRUNF    EQU    99        ;truncate file
  78. SETLAB    EQU    100        ;set directory label
  79. DIRLAB    EQU    101        ;return directory label data e=drive
  80. RDSTMP    EQU    102        ;read file stamps & password mode
  81. WRXFCB    EQU    103
  82. SETDAT    EQU    104
  83. RDTIME    EQU    105
  84. DEFPWD    EQU    106        ;set def password
  85. RETSN    EQU    107        ;return serial number address
  86. RETCOD    EQU    108        ;get/set return code
  87. CONMOD    EQU    109        ;get/set console mode
  88. DELIM    EQU    110        ;get/set string output delimiter
  89. PRTBLK    EQU    111        ;print block  de = ccb  dw=address
  90. ;                                               dw=length
  91. LSTBLK    EQU    112        ;list block
  92. PARSE    EQU    152        ;parse file name   de=pfcb   dw=input addr
  93.  
  94. RESTART EQU    0        ;jump address for warm boot.
  95.