;--------------------------------------------------------- ; ZCNFG Patch offsets IDSTR EQU 0DH ;location of ID string DEFUSR EQU 19H ;alternate User/Drive (2 bytes) TGTTYP EQU 1BH ;target file default filetype OVLTYP EQU 1EH ;overlay file default filetype SCRNLN EQU 21H ;your console screen length, lines Z3INST EQU 22H ;switch for Z3 install during config. CLBRFN EQU 23H ;name of CFG lbr in alternate DU ZCOPT0 EQU 2EH ;bit mapped byte ;offsets in ZCOPT0 ; bit position ;meaning: CFGDU EQU 0 ;0=target DIR is default for ovly DU ;1=DEFDU is default for overlay DU ;--------------------------------------------------------- INCLUDE CNFGDEF.LIB ;************************************************************ ; START OF OVERLAY CODE ;************************************************************ ;The next 13 bytes must remain in this location. RST 0 ;for safety - file won't execute DW MENU1 ;for relocation of addresses, this ;points to the NEXT location. ;first MENU list must be here. All names are local. MENU1: DW MENU1,MENU1,SCRN1,CASE1,HELP1 ;MENU A ;========================================================= CASE1: DB (CASE1X-CASE11)/(CASE12-CASE11) ;number of cases DB CASE12-CASE11 ;length of each record ; macro .single char menu selector ; | | .function (see above) ; | | | .offset in cnfg block ; | | | | .function dependent data ; | | | | | .screen location ; | | | | | | ;ACSE1: BITMAP 0, SWITCH, OBYTE0, CRTFLG, ASCRL0, YNDATA ; | ; address of data structure used by function._| ; ;The first two entries in the case table must be labeled to ;provide data for the calculation at case1:. Subsequent ;entries (one for each menu selection) need not be labeled. ; default filetype for Target file CASE11: VECTOR T, TEXT, TGTTYP, 3, SCR100, 0 ; default filetype for configuration overlay CASE12: VECTOR O, TEXT, OVLTYP, 3, SCR101, 0 ; Install Z3ENV address? VECTOR Z, TOGLTF, Z3INST, 1, SCR102, YNDATA ; ALTernate directory for CFG files and CFG library VECTOR A, DUSPEC, DEFUSR, 1, SCR103, 0 ; screen length VECTOR L, DECRAD, SCRNLN, 1, SCR104, RANGE1 ; name of the CFG library VECTOR C, TEXT, CLBRFN, 8, SCR105, 0 ; which default to use for CFG DU BITMAP D, SWITCH, ZCOPT0, CFGDU, SCR106, DUDATA ;the next entry is a label which terminates the list. ;It is required for use in the calculation at case1: CASE1X: ;label used to calc number of entries ;========================================================= SCRN1: INCLUDE ZCSCR1 ;screen image for first screen ;----------------------------------- ; FUNCTION DATA LIST ;data pair for representing bit values in screen image ;Can also be used for function 8 display (True/False) ;these are null terminated strings. Note the 'DZ'. YNDATA: DZ 'YES' ;for 1=yes DZ 'NO ' DUDATA: DZ 'CURRENT' ;bit0(zcopt0)=1 DZ 'TARGET ' ;bit0 = 0 RANGE1: DW 12,80 ;min/max lines per screen ;========================================================= HELP1: INCLUDE ZCHLP1 ; ZCNFG help screen for menu1 ;========================================================= END