home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / utils / asmutl / hd64180a.lbr / EXEC.LZB / EXEC.LIB
Encoding:
Text File  |  1991-08-04  |  3.6 KB  |  114 lines

  1.     title    'Executive Processor Function Name Library'
  2. ;----------------------------------------------------------------
  3. ; This module meerely gives simplenames to all the EXEC routines
  4. ; so that they can be used a little more conveniently.
  5. ;
  6. ;
  7. ; Written     By Richard Holmes    12/12/1987
  8. ; Last Update By Richard Holmes    10/08/1988
  9. ;
  10. ; Added cash drawer                                     21/05/1988
  11. ; Addedprint DE time                    10/08/88
  12. ;----------------------------------------------------------------
  13. ;
  14. ; Channel numbers used to setup the channel output selections
  15. ;
  16. con$io    equ    01        ; Console I/O
  17. aux$io    equ    02        ; Auxiliary device - AUX
  18. ser1$io    equ    03        ; Spare serial 1
  19. ser2$io    equ    04        ; Spare serial 2
  20. prn$io    equ    05        ; Printer output
  21. lcd$io    equ    06        ; LCD output
  22. ;
  23. ;
  24. ; ; ; ; ; Equates for facilities ; ; ; ; ;
  25. ;
  26. sys$res    equ    0        ; Executive processor reset
  27. ;
  28. ; Raw Channe I/O
  29. sel$chn    equ    1        ; Select an I/O Channel
  30. res$chn    equ    2        ; Reset a channel and its buffers
  31. get$chn    equ    3        ; Get current channel number
  32. inp$chn    equ    4        ; Input from channel
  33. out$chn    equ    5        ; Output to a channel
  34. ist$chn    equ    6        ; Return channel input status
  35. ost$chn    equ    7        ; Return channel output status
  36. ;
  37. ; Screen printing
  38. ptxt$chn equ    8        ; Print text at DE
  39. inln$chn equ    9        ; Inline channel print
  40. xyin$chn equ    10        ; Inline X-Y Channel print
  41. menu$chn equ    11        ; Print menu at mDE
  42. crsr$chn equ    12        ; Cursor address channel
  43. cscr$chn equ    13        ; Clear channel screen
  44. ceol$chn equ    14        ; Clear channel to end of line
  45. ceos$chn equ    15        ; Clear to end of screen
  46. vatt$chn equ    16        ; Visual attribute select channel
  47. ;
  48. ; Channel numeric printing
  49. phac$chn equ    17        ; Print Accumulator as 2 hex digits
  50. pdac$chn equ    18        ; Lz-Print decimal accumulator
  51. phde$chn equ    19        ; Print DE as 4 hex digits
  52. pdde$chn equ    20        ; Lz-print DE as decimal number
  53. p32b$chn equ    21        ; Lz-print DEHL as a 32 bit number
  54. slzb$chn equ    22        ; Set LZB Mode
  55. ;
  56. ; Numeric and text Input
  57. gstr$chn equ    23        ; Get a string
  58. ihhl$chn equ    24        ; Get HEX into HL
  59. idhl$chn equ    25        ; Get decimal into HL
  60. ;
  61. ; Simple output
  62. spce$chn equ    26        ; Print  space
  63. crlf$chn equ    27        ; Print a CRLF
  64. ;
  65. ; Channel push and pop
  66. psh$chn    equ    28        ; Push channel to a "stack"
  67. pop$chn    equ    29        ; Pop channel from "stack"
  68. ;
  69. con$ip    equ    30        ; RS-232 channel 0 input
  70. con$op    equ    31        ; RS-232 channel 0 output
  71. con$is    equ    32        ; RS-232 channel 0 input status
  72. con$os    equ    33        ; RS-232 channel 0 output status
  73. ;
  74. get$clk    equ    34        ; Read real time clock
  75. put$clk    equ    35        ; Write to clock
  76. ;
  77. prn$prc    equ    36        ; Print the "price" integer in DE
  78. prn$tim    equ    37        ; Print a time HH:MM format
  79. pde$tim    equ    38        ; Print DE as a time. D=Hrs, E=Mins
  80. ;
  81. wdog    equ    40
  82.  
  83. ; LED Drivers
  84. zro$led    equ    42        ; CLear all leds (ZERO them)
  85. set$led    equ    43        ; Set one led
  86. clr$led    equ    44        ; Clear a led
  87. tog$led    equ    45        ; Toggle a led
  88. ;
  89. ;
  90. set$bel    equ    47        ; Turn on bell
  91. clr$bel    equ    48        ; Turn off bell
  92. ;
  93. set$csh    equ    49        ; Cash drawer on
  94. clr$csh    equ    50        ; Cash drawer off
  95. ;
  96. ; Simple subroutines
  97. delay    equ    46        ; Delay (DE) Milliseconds
  98. caps    equ    55        ; Capitalize the channel
  99. cks$clr    equ    58        ; Clear checksum
  100. cks$mem    equ    59        ; Checksum of memory into HL from HL for BC
  101. ;
  102. clr$vec    equ    60        ; De-install all vectors
  103. con$vec    equ    61        ; Install con$hdlr vector
  104. aux$vec    equ    62        ; Install aux$hdlr vector
  105. tm0$vec    equ    63        ; Install tmr0$hdlr vector
  106. tm1$vec    equ    64        ; Install tmr1$hdlr vector
  107. int0$vec equ    65        ; Install int0$hdlr vector
  108. int1$vec equ    66        ; Install int1$hdlr vector
  109. int2$vec equ    67        ; Install int2$hdlr vector
  110. csio$vec equ    68        ; Install csio$hdlr vector
  111. ;
  112. ; -- End of module --
  113. ;
  114.