home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
ENTERPRS
/
CPM
/
UTILS
/
S
/
ZCNFG21.LBR
/
ZCNFGCFG.LBR
/
CNFGDEF.LZB
/
CNFGDEF.LIÂ
Wrap
Text File
|
1991-10-25
|
2KB
|
61 lines
;DATA FOR CNFG PROGRAM LINKAGE
;function definitions - **needed for CASE Table entries**
switch equ 0 ;toggle bit n in a byte (n is specified)
text equ 1 ;replace a text string of specified length
duspec equ 2 ;replace a ZCPR style DU specification (NOT DIR:!)
hexrad equ 3 ;edit byte/word using HEX radix
decrad equ 4 ;edit byte/word using DECIMAL radix
textlc equ 5 ;same as function text, but lower case is OK
filesp equ 6 ;change all or part of a filespec DU:FN.FT
togl3 equ 7 ;toggle to one of three options: 001B, 010B, 100B
togltf equ 8 ;toggle a byte between 0ffh and 0
asciic equ 9 ;replace a single ascii character,
;including non-printing ones.
;see ZCNFG.HLP and ZCFG.HLP for a full definition of these functions.
;ASCII definitions
ctlc equ 3
bs equ 8 ;backspace
ht equ 9 ;horizontal tab
lf equ 10 ;line feed
cr equ 13 ;carriage return
spc equ 20h ;space char
dim equ 1 ;highlight
bright equ 2 ;normal intensity
hon equ dim ;highlight on
hof equ bright ;highlight off
;=========================================================
; MACRO DEFINITIONS
;this macro used for bitmapped byte data
bitmap macro A,functn,offset,bit,scr,dat
db '&A'
dw functn,offset
db 1 shl bit
dw scr,dat
endm
;=========================================================
;meaning of parameters in BITMAP & VECTOR macros:
; A = character used in screen image for this menu item.
; Must be unique, and not one of: ?/,.<>XQxq
; offset = byte offset in config block
; functn = function for conversion from config. block to screen
; scr = screen location
; dat = extra data word if required. Normally 0
;produces a record which is 8 bytes long
;=========================================================
;this macro used for byte data structures
vector macro A,functn,offset,byte,scr,dat
db '&A'
dw functn,offset
db byte
dw scr,dat
endm