home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / utils / asmutl / hd64180b.lbr / EXEC.LZB / EXEC.LIB
Encoding:
Text File  |  1991-08-04  |  3.8 KB  |  117 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. gcxy$chn equ    39        ; Return current X-Y cursor address
  48. ;
  49. ; Channel numeric printing
  50. phac$chn equ    17        ; Print Accumulator as 2 hex digits
  51. pdac$chn equ    18        ; Lz-Print decimal accumulator
  52. phde$chn equ    19        ; Print DE as 4 hex digits
  53. pdde$chn equ    20        ; Lz-print DE as decimal number
  54. p32b$chn equ    21        ; Lz-print DEHL as a 32 bit number
  55. slzb$chn equ    22        ; Set LZB Mode
  56. ;
  57. ; Numeric and text Input
  58. gstr$chn equ    23        ; Get a string
  59. ihhl$chn equ    24        ; Get HEX into HL
  60. idhl$chn equ    25        ; Get decimal into HL
  61. ;
  62. ; Simple output
  63. spce$chn equ    26        ; Print  space
  64. crlf$chn equ    27        ; Print a CRLF
  65. ;
  66. ; Channel push and pop
  67. psh$chn    equ    28        ; Push channel to a "stack"
  68. pop$chn    equ    29        ; Pop channel from "stack"
  69. ;
  70. con$ip    equ    30        ; RS-232 channel 0 input
  71. con$op    equ    31        ; RS-232 channel 0 output
  72. con$is    equ    32        ; RS-232 channel 0 input status
  73. con$os    equ    33        ; RS-232 channel 0 output status
  74. ;
  75. get$clk    equ    34        ; Read real time clock
  76. put$clk    equ    35        ; Write to clock
  77. ;
  78. prn$prc    equ    36        ; Print the "price" integer in DE
  79. prn$tim    equ    37        ; Print a time HH:MM format
  80. pde$tim    equ    38        ; Print DE as a time. D=Hrs, E=Mins
  81. ;
  82. wdog    equ    40
  83.  
  84. ; LED Drivers
  85. zro$led    equ    42        ; CLear all leds (ZERO them)
  86. set$led    equ    43        ; Set one led
  87. clr$led    equ    44        ; Clear a led
  88. tog$led    equ    45        ; Toggle a led
  89. ;
  90. ;
  91. set$bel    equ    47        ; Turn on bell
  92. clr$bel    equ    48        ; Turn off bell
  93. ;
  94. bel$dly    equ    49        ; Load bell on time (core board version)
  95. ;
  96. set$csh    equ    49        ; Cash drawer on (Dinos version)
  97. clr$csh    equ    50        ; Cash drawer off (Dinos Version)
  98. ;
  99. ; Simple subroutines
  100. delay    equ    46        ; Delay (DE) Milliseconds
  101. caps    equ    55        ; Capitalize the channel
  102. cks$clr    equ    58        ; Clear checksum
  103. cks$mem    equ    59        ; Checksum of memory into HL from HL for BC
  104. ;
  105. clr$vec    equ    60        ; De-install all vectors
  106. con$vec    equ    61        ; Install con$hdlr vector
  107. aux$vec    equ    62        ; Install aux$hdlr vector
  108. tm0$vec    equ    63        ; Install tmr0$hdlr vector
  109. tm1$vec    equ    64        ; Install tmr1$hdlr vector
  110. int0$vec equ    65        ; Install int0$hdlr vector
  111. int1$vec equ    66        ; Install int1$hdlr vector
  112. int2$vec equ    67        ; Install int2$hdlr vector
  113. csio$vec equ    68        ; Install csio$hdlr vector
  114. ;
  115. ; -- End of module --
  116. ;
  117.