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.LZH / ZCNFGCFG.LZH / CNFGDEF.LIB next >
Text File  |  1992-11-03  |  2KB  |  61 lines

  1. ;DATA FOR CNFG PROGRAM LINKAGE
  2. ;function definitions - **needed for CASE Table entries**
  3.  
  4. switch    equ    0    ;toggle bit n in a byte (n is specified)
  5. text    equ    1    ;replace a text string of specified length
  6. duspec    equ    2    ;replace a ZCPR style DU specification (NOT DIR:!)
  7. hexrad    equ    3    ;edit byte/word using HEX radix
  8. decrad    equ    4    ;edit byte/word using DECIMAL radix
  9. textlc    equ    5    ;same as function text, but lower case is OK
  10. filesp    equ    6    ;change all or part of a filespec DU:FN.FT
  11. togl3    equ    7    ;toggle to one of three options: 001B, 010B, 100B
  12. togltf    equ    8    ;toggle a byte between 0ffh and 0
  13. asciic    equ    9    ;replace a single ascii character, 
  14.             ;including non-printing ones.
  15. ;see ZCNFG.HLP and ZCFG.HLP for a full definition of these functions.
  16.  
  17. ;ASCII definitions
  18. ctlc    equ    3
  19. bs    equ    8        ;backspace
  20. ht    equ    9        ;horizontal tab
  21. lf    equ    10        ;line feed
  22. cr    equ    13        ;carriage return
  23. spc    equ    20h        ;space char
  24. dim    equ    1        ;highlight
  25. bright    equ    2        ;normal intensity
  26. hon    equ    dim        ;highlight on
  27. hof    equ    bright        ;highlight off
  28.  
  29. ;=========================================================
  30. ;    MACRO DEFINITIONS
  31.  
  32. ;this macro used for bitmapped byte data
  33.  
  34. bitmap    macro    A,functn,offset,bit,scr,dat
  35.     db    '&A'
  36.     dw    functn,offset
  37.     db    1 shl bit
  38.     dw    scr,dat
  39.     endm
  40.  
  41. ;=========================================================
  42. ;meaning of parameters in BITMAP & VECTOR macros:
  43. ;    A   = character used in screen image for this menu item.
  44. ;          Must be unique, and not one of: ?/,.<>XQxq 
  45. ;    offset = byte offset in config block
  46. ;    functn = function for conversion from config. block to screen
  47. ;    scr = screen location
  48. ;    dat = extra data word if required. Normally 0
  49. ;produces a record which is 8 bytes long
  50. ;=========================================================
  51.  
  52. ;this macro used for byte data structures
  53.  
  54. vector    macro    A,functn,offset,byte,scr,dat
  55.     db    '&A'
  56.     dw    functn,offset
  57.     db    byte
  58.     dw    scr,dat
  59.     endm
  60.  
  61.