; Module: NTS configuration file ; Author: Rob Friefeld ; Date: 16 Sep 91 ; Version: 1.1 ; EQUATES ;Labels Locations Descriptions Patch1 equ 00Bh+11 ; Default note file drive Patch2 equ 00Ch+11 ; Default note file user Patch3 equ 00Dh+11 ; Default note file name Patch4 equ 015h+11 ; Default note file type Patch5 equ 018h+11 ; Text lines Patch6 equ 019h+11 ; Initial right margin Patch7 equ 01Ah+11 ; Initial insert/overwrite Patch8 equ 01Bh+11 ; Prompt for file name? ; ZCNFG function definitions, used in CASE TABLES below. Do not modify. Text equ 1 ; Edit text with UC conversion DecRad equ 4 ; Edit byte/word using DECIMAL radix ToglTF equ 8 ; Toggle a byte between 0ffh and 0 ; Sample ASCII definitions, used in SCREEN sections below. tab equ 9 ;horizontal tab lf equ 10 ;line feed cr equ 13 ;carriage return ; ======================================= ; ; C O D E B E G I N S ; ; ======================================= ; ; NOTE: the next 13 bytes (up to BMenu, below) MUST remain in ; the following locations: rst 0 ; For safety, so .CFG file won't execute dw AMenu ; For relocation of addresses, this ; ..points to the NEXT location. ; --------------------------------------------------------- ; ; MENU LIST SECTION ; AMenu: dw AMenu, AMenu, AScrn, ACase, AHelp ; Entry for menu A ; ------------------------------------- ; ; CASE TABLE SECTION ; ACase: db (ACaseX-ACase1)/(ACase2-ACase1) ; Number of cases db ACase2-ACase1 ; Length of each record ACase1: db '1' ; Unique ASCII selector from SCREEN IMAGE dw DecRad ; ZCNFG function number dw Patch1 ; Location in file to be patched by ZCNFG db 1 ; Number of bytes for ZCNFG to change dw AScrn1 ; Location to change in SCREEN IMAGE dw 0 ; 0 or address of min/max data words or strings ACase2: db '2' ; Unique ASCII selector from SCREEN IMAGE dw DecRad ; ZCNFG function number dw Patch2 ; Location in file to be patched by ZCNFG db 1 ; Number of bytes for ZCNFG to change dw AScrn2 ; Location to change in SCREEN IMAGE dw 0 ; 0 or address of min/max data words or strings ACase3: db '3' ; Unique ASCII selector from SCREEN IMAGE dw Text ; ZCNFG function number dw Patch3 ; Location in file to be patched by ZCNFG db 8 ; Number of bytes for ZCNFG to change dw AScrn3 ; Location to change in SCREEN IMAGE dw 0 ; 0 or address of min/max data words or strings ACase4: db '4' ; Unique ASCII selector from SCREEN IMAGE dw Text ; ZCNFG function number dw Patch4 ; Location in file to be patched by ZCNFG db 3 ; Number of bytes for ZCNFG to change dw AScrn4 ; Location to change in SCREEN IMAGE dw 0 ; 0 or address of min/max data words or strings ACase5: db '5' dw DecRad dw Patch5 ; Text lines db 1 dw AScrn5 dw MM4 ACase6: db '6' dw DecRad dw Patch6 ; Right margin db 1 dw AScrn6 dw MM5 ACase7: db '7' dw ToglTF dw Patch7 db 1 dw AScrn7 dw YNData ACase8: db '8' dw ToglTF dw Patch8 db 1 dw AScrn8 dw YNData ACaseX: ; Label for calculation of list length YNData: ; Null-terminated data pair for ZCNFG's ToglTF function db ' ON',0 ; First entry is displayed if current value is 0FFh db 'OFF',0 ; Second entry is displayed if current value is 000h MM4: dw 3 ; Text lines dw 21 MM5: dw 20 ; Right margin dw 135 ; ------------------------------------------ ; ; SCREEN IMAGE SECTION AScrn: db cr,lf,' NTS Installation' db cr,lf,lf db ' NOTE FILE DEFAULT:' db cr,lf,lf db ' 1) Drive (0=current, A=1) ............ ' AScrn1: db ' ' ; Display current value here db cr,lf db ' 2) User (255=current) ................ ' AScrn2: db ' ' ; Display current value here db cr,lf db ' 3) Name .............................. ' AScrn3: db ' ' ; Display current value here db cr,lf db ' 4) Type .............................. ' AScrn4: db ' ' ; Display current value here db cr,lf,lf db ' EDITOR DEFAULT:' db cr,lf,lf db ' 5) Text Lines (no more than CRT-3) ... ' AScrn5: db ' ' ; Display current value here db cr,lf db ' 6) Right Margin ...................... ' AScrn6: db ' ' ; Display current value here db cr,lf db ' 7) Insert ............................ ' AScrn7: db ' ' ; Display current value here db cr,lf db ' 8) Prompt for "File: " on exit ....... ' AScrn8 db ' ' ; Display current value here db cr,lf db 0 ; Terminator ; --------------------------------------------------- ; ; HELP SCREEN SECTION ; AHelp: db cr,lf db 'Note File Defaults: If no file name is given on entry or exit to NTS,' db cr,lf db 'a default file in a preset directory may be used. If a file name only' db cr,lf db 'is given, the default type extension is used.' db cr,lf,lf db 'The note entry window appears at the bottom of the CRT. You need to leave' db cr,lf db 'blank lines for the date header, but can otherwise use the full screen.' db cr,lf db '(I recommend at least trying the small screen default of 8 lines.)' db cr,lf db 0 ; Terminator