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