home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / kaypro / kp-vt52.lbr / BDOS.EQU < prev    next >
Text File  |  1985-09-06  |  3KB  |  79 lines

  1. BDOS    EQU    0005H        ;Call BDOS
  2.  
  3. ;BDOS calls
  4. ;
  5. ;Function Name        Function    Input Parameters Output Parameter
  6. ;=============        ========    ================ ================
  7. ;    (ALL Function Numbers are passed in Register C)
  8. CONIN    EQU    01H        ;Read Console    NONE    ASCII Char in A
  9. CONOUT    EQU    02H        ;Write Console    ASCII Char in E     NONE
  10. AUXIN    EQU    03H        ;Auxiliary input
  11. RDRIN    EQU    03H        ;Read Reader    NONE    ASCII Char in A
  12. AUXOUT    EQU    04H        ;Auxiliary output
  13. PUNOUT    EQU    04H        ;Write Punch    ASCII Char in E     NONE
  14. LSTOUT    EQU    05H        ;Write List    ASCII Char in E     NONE
  15. DCONIO    EQU    06H        ;Direct Con I/O ASCII Char in E    I/O Status in A
  16.                 ;             if E=0FEH,
  17.                 ;              Input if E=0FFH
  18.  
  19. AUXIST    EQU    07H    ;Get AUXIN: status         A=FF is character
  20.                 ;             ready, A=0 if none
  21. GTIOB    EQU    07H        ;Get I/O status NONE    I/O Status in A
  22. AUXOST    EQU    08H        ;Get AUXOUT: status    A=FF if ready, A=0
  23.                 ;             if not ready
  24. PTIOB    EQU    08H        ;Put I/O status    I/O Status in E     NONE
  25. PRSTR    EQU    09H        ;Print String    String-Address     NONE
  26. ;                    in DE (term=$)
  27. RDSTR    EQU    0AH        ;Read Buffer Buffer-Address Read Buffer filled
  28. ;                    in DE
  29. ;    Read Buffer    Byte    Function
  30. ;              1    Maximum Buffer Length
  31. ;              2    Current Buffer Length (returned value)
  32. ;            3-n    Data (returned values)
  33. ;
  34. CONSTA    EQU    0BH        ;Console Stat    NONE    LSB(A)=1 if char ready
  35. INBDOS    EQU    0DH        ;Init BDOS    NONE    NONE
  36. LOGDSK    EQU    0EH        ;LOG-In disk    Value in E    NONE
  37. ;                    A=0,B=1,...
  38. OPENF    EQU    0FH        ;Open File FCB-Addr in DE Byte Addr.of FCB,
  39.     ;                 or 0FFH if not
  40. CLOSF    EQU    10H        ;Close File FCB-Addr in DE Byte Addr.of FCB,
  41.     ;                 or 0FFH if not
  42. SFIRST    EQU    11H        ;Search File    FCB-Addr in DE    Byte Addr.of FCB(0-3),
  43.     ;                 or 0FFH if not
  44. SNEXT    EQU    12H        ;Search next    FCB-Addr in DE    Byte Addr.of next FCB,
  45.     ;                 or 0FFH if not
  46. DELF    EQU    13H        ;Delete File    FCB-Addr in DE    Byte Addr.of FCB(0-3),
  47.     ;                 or 0FFH if not
  48. READF    EQU    14H        ;Read Record    FCB-Addr in DE    0=successful read
  49. ;                            1=read past EOF
  50. ;                            2=reading random data
  51. WRITEF    EQU    15H        ;Write Record    FCB-Addr in DE    0=successful write
  52. ;                            1=ERROR extending
  53. ;                            2=End of disk data
  54. ;                            255=No more DIR space
  55. MAKEF    EQU    16H
  56. RENAM    EQU    17H
  57. RDLOG    EQU    18H        ;Ret. Log Code    NONE        Login Vector in HL
  58. RDDRV    EQU    19H        ;Read Drive #    NONE        # of logged in drive in
  59. ;                            (A=0,B=1,C=2....)
  60. SETDMA    EQU    1AH        ;Set DMA Addr.    Addr. of 128    NONE
  61. ;                    byte buffer in DE
  62. GETALV    EQU    1BH        ;Get All.Vect.    NONE        All.Vect in HL
  63. WRTPRT    EQU    1CH        ;Write prot dsk    NONE        NONE
  64. GETROV    EQU    1DH        ;Get R/O Vect.    NONE        HL= R/O Vect. value
  65. SETFAT    EQU    1EH        ;Set File Attr.    FCB-Addr.in DE    Dir. code in A
  66. GTDPAR    EQU    1FH        ;Get DSK par.    NONE        HL=DPB Address
  67. USRCOD    EQU    20H        ;Get/Set Usr.Cd    E=0FFH (get)    A=current code (get)
  68. ;                    E-code (set)    A=no value (set)
  69. RRAND    EQU    21H        ;Read  Random    FCB-Addr in DE    A=Return code
  70. WRAND    EQU    22H        ;Write Random    FCB-Addr in DE    1=read'g unwritten data
  71. ;                            2=(not used)
  72. ;                            3=can't close curr. ext
  73. ;                            4=seek to unwr. ext.
  74. ;                            5=dir overflow(write)
  75. ;                            6=seek past End of DSK
  76. CFLSZ    EQU    23H        ;Comp File Sz.    FCB Addr.in DE    Rand.Rec.field set to
  77.     ;                 File size
  78. SETRAR    EQU    24H        ;Set Rand. Rec.    FCB-Addr.in DE    Rand.Rec.field set
  79.