home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / BDOS / Z80DOS10.LBR / FUNCTION.ZZD / FUNCTION.Z8Ä
Text File  |  2000-06-30  |  3KB  |  76 lines

  1.                Z80DOS Function Summary
  2.                -----------------------
  3.  
  4. No.  ------ Name -------  ------  Input -------  ---------- Output ----------
  5.  
  6.   0  Boot          None             None
  7.   1  Console input      None             A = Character
  8.   2  Console output      E = Character      A = 00h
  9.   3  Reader input      None             A = Character
  10.   4  Punch output      E = Character      A = 00h
  11.   5  List output      E = Character      A = 00h
  12.   6  Direct console I/O   E = 0ffh         A = Input character or 00h
  13.                              if no character present
  14.               E = 0feh         A = Console status
  15.               E = 000h..0fdh     A = 00h
  16.   7  Get I/O byte      None             A = I/O byte (ramlow+03h)
  17.   8  Set I/O byte      E = I/O byte         A = 00h
  18.   9  Print string      DE = Address string     A = 00h
  19.  10  Read console buffer  DE = Address buffer     A = 00h
  20.  11  Get console status   None             A = 00h no character present
  21.                          A = 01h character present
  22.  12  Return CP/M version  None             A = Version number (22h)
  23.  13  Reset disk system      None             A = 00h no $*.* file
  24.                          A = 0ffh $*.* file present
  25.  14  Select disk      E = Disk number     A = 00h
  26.  15  Open file          DE = Address FCB     A = Directory code
  27.  16  Close file       DE = Address FCB     A = Directory code
  28.  17  Search for first      DE = Address FCB     A = Directory code
  29.  18  Search for next      DE = Address FCB     A = Directory code
  30.  19  Delete file      DE = Address FCB     A = Error code
  31.  20  Read sequential      DE = Address FCB     A = Read/write code
  32.  21  Write sequential      DE = Address FCB     A = Read/write code
  33.  22  Make file          DE = Address FCB     A = Directory code
  34.  23  Rename file      DE = Address FCB     A = Error code
  35.  24  Return login vector  None             HL = Login vector
  36.  25  Return current disk  None             A = Current disk
  37.  26  Set DMA address      DE = DMA address     A = 00h
  38.  27  Get alloc. address   None             HL = Alloc. address
  39.  28  Write protect disk   None             A = 00h
  40.  29  Get R/O vector      None             HL = R/O vector
  41.  30  Set file attributes  DE = Address FCB     A = Error code
  42.  31  Get address DPB      None             HL = Address DPB
  43.  32  Set/get user code      E = 0ffh         A = User number
  44.               E = User number     A = 00h
  45.  33  Read random      DE = Address FCB     A = Read/write code
  46.  34  Write random      DE = Address FCB     A = Read/write code
  47.  35  Compute file size      DE = Address FCB     A = Error code
  48.  36  Set random record      DE = Address FCB     A = 00h
  49.  37  Reset drive      DE = Mask         A = 00h
  50.  38  Not implemented      None             A = 00h
  51.  39  Not implemented      None             A = 00h
  52.  40  Write random w/fill  DE = Address FCB     A = Read/write code
  53.  54  Get Stamp          None             HL = Address stamp
  54.  55  Use Stamp          None             Stored stamp used next call
  55. 104  Set time          DE = Address time     A = 00h
  56. 105  Get time          DE = Address for time  A = 00h
  57.  
  58.  
  59.          Return Codes:
  60.          -------------
  61.  
  62. Directory code:  A = 00h,01h,02h,03h if no error
  63.          A = 0ffh if error
  64.  
  65. Error code:     A = 00h  if no error
  66.          A = 0ffh if error
  67.  
  68. Read/write code: A = 00h if no error
  69.          A = 01h read  ==> end of file
  70.              write ==> directory full
  71.          A = 02h disk full
  72.          A = 03h close error during random record read/write
  73.          A = 04h read empty record during random record read
  74.          A = 05h directory full error during random record write
  75.  
  76.