home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / enterprs / cpm / utils / a / concat11.lbr / DOSCALLS.LZB / DOSCALLS.LIB
Encoding:
Text File  |  1993-04-11  |  3.1 KB  |  90 lines

  1. ;
  2. ;BDOS    equates
  3. ;
  4. WARMBOOT EQU    0
  5. DEFUSR    EQU    3
  6. DEFDRV    EQU    4
  7. BDOS    EQU    5 
  8. FCB    EQU    5CH
  9. FCB2    EQU    6CH
  10. DMA    EQU    80H
  11. TPA    EQU    100H
  12. ;
  13. ;BDOS    functions
  14. ;
  15. CONIN    EQU    01H    ;exit - character in A
  16. CONOUT    EQU    02H    ;entry - character in E
  17. RDRIN    EQU    03H    ;exit - character in A
  18. PUNOUT    EQU    04H    ;entry - character in E
  19. LSTOUT    EQU    05H    ;entry - character in E
  20. DCONIO    EQU    06H    ;entry - char. or 0FFH in E / exit if 0FFH - char. in A
  21. GETIOB    EQU    07H    ;exit - IOBYTE in A
  22. SETIOB    EQU    08H    ;entry - IOBYTE in E
  23. PRTSTR    EQU    09H    ;entry - DE ^= string
  24. CONSBUF EQU    0AH    ;entry - DE point to buffer
  25. CONSTA    EQU    0BH    ;exit - zero/non-zero status in A
  26. GETVER    EQU    0CH    ;exit - version in HL
  27. RSTDSK    EQU    0DH    ;no parameters
  28. SETDSK    EQU    0EH    ;entry - disk number (org 0) in A
  29. OPENF    EQU    0FH    ;entry - DE ^= FCB / exit - directory code in A
  30. CLOSEF     EQU    10H    ;entry - DE ^= FCB / exit - directory code in A
  31. SCHFRST EQU    11H    ;entry - DE ^= FCB / exit - directory code in A
  32. SCHNEXT EQU    12H    ;entry - DE ^= FCB / exit - directory code in A
  33. DELF    EQU    13H    ;entry - DE ^= FCB / exit - directory code in A
  34. RDSEQ    EQU    14H    ;entry - DE ^= FCB / exit - Z/NZ status in A
  35. WRTSEQ    EQU    15H    ;entry - DE ^= FCB / exit - Z/NZ status in A
  36. MAKEF    EQU    16H    ;entry - DE ^= FCB / exit - directory code in A
  37. RENF    EQU    17H    ;entry - DE ^= FCB / exit - directory code in A
  38. GETACT    EQU    18H    ;exit - HL bitmapped A to P set if active
  39. GETDSK    EQU    19H    ;exit - A = current disk
  40. SETDMA    EQU    1AH    ;entry - DE ^= DMA address
  41. ALLOCV    EQU    1BH    ;exit - HL ^= allocation vector
  42. SETRO    EQU    1CH    ;write protects current disk
  43. GETRO    EQU    1DH    ;exit - HL bitmapped A to P set if read-only
  44. SETATT    EQU    1EH    ;entry - DE ^= FCB / exit - directory code in A
  45. DPBADDR EQU    1FH    ;exit - HL ^= Disk Paramter Block
  46. SGTUSR    EQU    20H    ;entry - user number or 0FFH in E  
  47.             ;  exit if 0FFH - current user number in A
  48. RDRAN    EQU    21H    ;entry - DE ^= FCB / exit - Z/NZ status in A
  49. WRTRAN    EQU    22H    ;entry - DE ^= FCB / exit - Z/NZ status in A
  50. FSIZE    EQU    23H    ;entry - DE ^= FCB / exit - file size 
  51.             ;  in random record field
  52. GETRAN    EQU    24H    ;entry - DE ^= FCB / exit - translates
  53.             ;   seq rd to random in random record field
  54. RSET1    EQU    25H    ;entry - DE bitmapped A to P set if reset
  55. GETDMA    EQU    26H    ;exit - HL ^= current DMA address
  56. CHGUSR    EQU    27H    ;entry - DE ^= FCB with destination user in S1
  57. WRAN0    EQU    28H    ;entry - DE ^= FCB / exit - Z/NZ status in A
  58. GETTIME    EQU    29H    ;exit - HL ^= date 6 byte BCD YY MM DD HH mm ss
  59. SETTIME    EQU    2AH    ;entry - DE ^= date 6 byte BCD YY MM DD HH mm ss
  60. GETSTAMP EQU    2BH    ;exit - HL ^= current stamp
  61. USESTAMP EQU    2CH    ;no entry or exit
  62. SGPCODE    EQU    2DH    ;entry - return code or 0FFH in E 
  63.             ;  exit if 0FFH - last program return code in A
  64. GETLBL    EQU    2EH    ;exit - directory code in A
  65. SETLBL    EQU    2FH    ;entry - DE ^= FCB / exit - directory code in A
  66. GETPERM    EQU    30H    ;exit - HL bitmapped A to P set if permanent media
  67. GOBIOS    EQU    31H    ;entry - number of bios function in E
  68. ;
  69. ;character equates
  70. ;
  71. BELL    EQU    07H
  72. BS    EQU    08H
  73. TAB    EQU    09H
  74. LF    EQU    0AH
  75. FF    EQU    0CH
  76. CR    EQU    0DH
  77. EOF     EQU    1AH
  78. ESC    EQU    1BH
  79. DEL    EQU    7FH
  80. ;
  81. FALSE    EQU    0
  82. TRUE    EQU    NOT    FALSE
  83. ;
  84. ;report macro to show where things are
  85. ;
  86. REPORT    MACRO    MESSAGE,VALUE
  87. .PRINTX    MESSAGE = VALUE
  88.     ENDM
  89. ;
  90.