; PRTRLECF.MAC ; ; ZCNFG configuration module for PRTRLE.COM. The assembled version of ; this file must be named PRTRLExx.CFG to be automatically recognized ; by ZCNFG. ; ; Version 1.0 -- December 25, 1990 -- Gene Pizzetta ; For PRTRLE 2.0. ; ; Patch locations . . . ; HdrFlg equ 015h ; header print flag FFFlag equ 016h ; form feed flag ; ; ZCNFG function definitions . . . ; Switch equ 0 ; toggle bit n in a byte (n is specified) Text equ 1 ; edit text with UC conversion 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 ; edit text, both UC and LC FileSp equ 6 ; edit a Z3 filespec or filespec fragment Togl3 equ 7 ; toggle to one of three options: 001B, 010B, 100B ToglTF equ 8 ; toggle a byte between 0ffh and 0 ; ; ASCII characters . . . ; HON equ 1 ; highlighting on HOF equ 2 ; highlighting off TAB equ 9 ; tab LF equ 10 ; linefeed CR equ 13 ; carriage return ; ; Code . . . ; rst 0 ; for safety, so .CFG file won't execute ; dw MenuA ; for relocation of addresses, this ; ..points to the NEXT location. ; ; Menu list section . . . ; MenuA: dw MenuA, MenuA, ScrnA, CaseA, HelpA ; single menu ; ; Case table section . . . ; CaseA: db (CaseAX-CaseA1)/(CaseA2-CaseA1) ; number of cases db CaseA2-CaseA1 ; length of each record ; CaseA1: db '1' ; menu selector dw ToglTF ; ZCNFG function number dw HdrFlg ; patch location in file db 1 ; number of bytes to change dw ScrnA1 ; screen location dw NoYes ; string address ; CaseA2: db '2' ; menu selector dw ToglTF ; ZCNFG function number dw FFFlag ; patch location in file db 1 ; number of bytes to change dw ScrnA2 ; screen location dw YesNo ; permissible input range ; CaseAX: ; for calculation of list length ; ; Case table support . . . ; YesNo: db 'YES',0 ; displayed if value is FFh (ToglTF) db ' NO',0 ; displayed if value is 00h (ToglTF) NoYes: db ' NO',0 ; displayed if value is FFh (ToglTF) db 'YES',0 ; displayed if value is 00h (ToglTF) ; ; Screen image section . . . ; ScrnA: db cr,lf,lf,tab,tab,tab,' PRTRLE Installation Menu' db cr,lf,lf,lf ; db tab,tab,'(1) ',1,'Print header for each picture? . . . ',2 ScrnA1: db ' ' ; current value db cr,lf,lf ; db tab,tab,'(2) ',1,'Form feed after each picture? . . . . ',2 ScrnA2: db ' ' ; current value db cr,lf ; db lf,lf,lf,lf,lf,lf,lf, ; fill rest of screen ; db 0 ; terminator ; ; Help screen section . . . ; HelpA: db CR,LF,LF ; db HON,'Option (1)',HOF,' -- Determines whether a filename ' db ' header will be printed by',CR,LF db 'default before each picture is printed. Whatever is chosen ' db 'as the default',CR,LF db 'can be toggled by the command line H option.' db CR,LF,LF ; db HON,'Option (2)',HOF,' -- Determines whether a formfeed will ' db 'be sent to the printer by',CR,LF db 'default after each picture is printed. If this option is ' db ' set to NO, a',CR,LF db 'formfeed will be sent only after three pictures (that is, ' db 'three pictures',CR,LF db 'will be printed per page). Whatever is chosen as the ' db ' default can be',CR,LF db 'toggled by the command line F option.' db CR,LF ; db 0 ; Terminator ; end