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 / JSAGE / ZSUS / LBR / LX22.LBR / LXCNFG.LZR / CNFGDEF.LIB next >
Text File  |  1992-02-19  |  2KB  |  56 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. ;see ZCNFG.WS (or .DOC) for a full definition of these functions.
  14.  
  15. ;ASCII definitions
  16. ctlc    equ    3
  17. bs    equ    8        ;backspace
  18. ht    equ    9        ;horizontal tab
  19. tab    equ    9        ;horizontal tab
  20. lf    equ    10        ;line feed
  21. cr    equ    13        ;carriage return
  22. spc    equ    20h        ;space char
  23.  
  24. ;=========================================================
  25. ;    MACRO DEFINITIONS
  26.  
  27. ;this macro used for bitmapped byte data
  28.  
  29. bitmap    macro    A,functn,offset,bit,scr,dat
  30.     db    '&A'
  31.     dw    functn,offset
  32.     db    1 shl bit
  33.     dw    scr,dat
  34.     endm
  35.  
  36. ;=========================================================
  37. ;meaning of parameters in BITMAP & VECTOR macros:
  38. ;    A   = character used in screen image for this menu item.
  39. ;          Must be unique, and not one of: ?/,.<>XQxq 
  40. ;    offset = byte offset in config block
  41. ;    functn = function for conversion from config. block to screen
  42. ;    scr = screen location
  43. ;    dat = extra data word if required. Normally 0
  44. ;produces a record which is 8 bytes long
  45. ;=========================================================
  46.  
  47. ;this macro used for byte data structures
  48.  
  49. vector    macro    A,functn,offset,byte,scr,dat
  50.     db    '&A'
  51.     dw    functn,offset
  52.     db    byte
  53.     dw    scr,dat
  54.     endm
  55.  
  56.