home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CBM Funet Archive
/
cbm-funet-archive-2003.iso
/
cpm
/
zutils
/
lbrhlp22.lbr
/
LBRHLPCF.ZZ0
/
LBRHLPCF.Z80
Wrap
Text File
|
1992-05-09
|
6KB
|
192 lines
; lbrhlpcf.z80
;
; mODIFIED 5/3/92, gENE pIZZETTA
;mADE SLIGHT CHANGES TO MENU SCREEN AND ADDED HIGHTLIGHTING.
;
;---------------------------------------------------------
; lbrhlp pATCH OFFSETS 19 feb 92
HDUEQU0BH;ALTERNATE DU
HDIREQU015H;ALTERNATE DIR
HNAMEQU1DH;DEFAULT FILE NAME
LNAMEQU25H;LBR NAME
;HTYPEQU2DH;FILE TYPE
LTYPEQU30H;LBR TYPE
PTRCHKEQU33H;PRINTER CHECK
;---------------------------------------------------------
;data for cnfg program linkage
;FUNCTION DEFINITIONS - **NEEDED FOR case tABLE ENTRIES**
SWITCHEQU0;TOGGLE BIT N IN A BYTE (N IS SPECIFIED)
TEXTEQU1;REPLACE A TEXT STRING OF SPECIFIED LENGTH
DUSPECEQU2;REPLACE A zcpr STYLE du SPECIFICATION (not dir:!)
HEXRADEQU3;EDIT BYTE/WORD USING hex RADIX
DECRADEQU4;EDIT BYTE/WORD USING decimal RADIX
TEXTLCEQU5;SAME AS FUNCTION TEXT, BUT LOWER CASE IS ok
FILESPEQU6;CHANGE ALL OR PART OF A FILESPEC du:fn.ft
TOGL3EQU7;TOGGLE TO ONE OF THREE OPTIONS: 001b, 010b, 100b
TOGLTFEQU8;TOGGLE A BYTE BETWEEN 0FFH AND 0
;SEE zcnfg.ws (OR .doc) FOR A FULL DEFINITION OF THESE FUNCTIONS.
;ascii DEFINITIONS
HONEQU1; HIGHLIGHTING ON
HOFEQU2; HIGHLIGHTING OFF
CTLCEQU3
BSEQU8;BACKSPACE
HTEQU9;HORIZONTAL TAB
TABEQU9;HORIZONTAL TAB
LFEQU10;LINE FEED
CREQU13;CARRIAGE RETURN
SPCEQU20H;SPACE CHAR
;=========================================================
;macro definitions
;THIS MACRO USED FOR BITMAPPED BYTE DATA
BITMAPMACROa,FUNCTN,OFFSET,BIT,SCR,DAT
DB'&a'
DWFUNCTN,OFFSET
DB1 SHL BIT
DWSCR,DAT
ENDM
;=========================================================
;MEANING OF PARAMETERS IN bitmap & vector MACROS:
;a = CHARACTER USED IN SCREEN IMAGE FOR THIS MENU ITEM.
; mUST BE UNIQUE, AND NOT ONE OF: ?/,.<>xqXQ
;OFFSET = BYTE OFFSET IN CONFIG BLOCK
;FUNCTN = FUNCTION FOR CONVERSION FROM CONFIG. BLOCK TO SCREEN
;SCR = SCREEN LOCATION
;DAT = EXTRA DATA WORD IF REQUIRED. nORMALLY 0
;PRODUCES A RECORD WHICH IS 8 BYTES LONG
;=========================================================
;THIS MACRO USED FOR BYTE DATA STRUCTURES
VECTORMACROa,FUNCTN,OFFSET,BYTE,SCR,DAT
DB'&a'
DWFUNCTN,OFFSET
DBBYTE
DWSCR,DAT
ENDM
;************************************************************
;start of overlay code
;************************************************************
;tHE NEXT 13 BYTES MUST REMAIN IN THIS LOCATION.
RST0;FOR SAFETY - FILE WON'T EXECUTE
DWMENU1;FOR RELOCATION OF ADDRESSES, THIS
;POINTS TO THE next LOCATION.
;FIRST menu LIST MUST BE HERE. aLL NAMES ARE LOCAL.
MENU1:DWMENU1,MENU1,SCRN1,CASE1,HELP1;menu a
;=========================================================
CASE1:DB(CASE1X-CASE11)/(CASE12-CASE11);NUMBER OF CASES
DBCASE12-CASE11;LENGTH OF EACH RECORD
;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.
CASE11:VECTORl,TEXT,LNAM,8, SCR100,0
CASE12:VECTORe,TEXT,LTYP,3, SCR101,0
VECTORn,TEXT,HNAM,8, SCR102,0
VECTORd,TEXT,HDIR,8, SCR104,0
VECTORa,DUSPEC,HDU,0, SCR105,0
VECTOR p,TOGLTF, PTRCHK, 1, SCR106, YNDATA
;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:DBCR,LF,LF
DBTAB,TAB,TAB,' lhc/lhq cONFIGURATION'
DBCR,LF,LF,LF
DBTAB,TAB,'(l) ',HON,'dEFAULT lbr NAME . . . . . ',HOF
scr100:DB' '
DBCR,LF
DBTAB,TAB,'(e) ',HON,'lbr EXTENSION . . . . . . . . . ',HOF,'.'
scr101:DB' '
DBCR,LF,LF
DBTAB,TAB,'(n) ',HON,'dEFAULT FILE NAME . . . . . ',HOF
scr102:DB' '
DBCR,LF,LF
DBTAB,TAB,'(d) ',HON,'aLTERNATE DIRECTORY . . . . ',HOF
scr104:DB' '
DBCR,LF
DBTAB,TAB,'(a) ',HON,'aLTERNATE du . . . . . . . . . ',HOF
scr105:DB' '
DBCR,LF,LF
DBTAB,TAB,'(p) ',HON,'dO PRINTER-READY TEST . . . . . ',HOF
scr106:DB' '
DBCR,LF
DB0
;=========================================================
;
YNDATA:DEFZ'yes'; FOR 0FFH
DEFZ' no'; FOR 0
;=========================================================
HELP1:DBcr,lf
;
DBhon,'oPTION l -- dEFAULT LIBRARY.',hof,' tHIS OPTION '
DB'DEFINES THE DEFAULT LIBRARY NAME',cr,lf
DB'THAT lhc/lhq WILL SEARCH FOR IF NONE IS GIVEN ON THE '
DB'COMMAND LINE WHEN THE',cr,lf
DB'PROGRAM IS INVOKED.'
DBcr,lf,lf
;
DBhon,'oPTION e -- lIBRARY FILE TYPE.',hof,' sPECIFIES '
DB'THE FILE TYPE OR EXTENSION OF THE',cr,lf
DB'LIBRARY. iN MOST CASES, THIS WILL BE "lbr."'
DBcr,lf,lf
;
DBhon,'oPTION n -- dEFAULT HELP FILE.',hof,' tHIS OPTION '
DB'DEFINES THE HELP FILE NAME THAT',cr,lf
DB'lhc/lhq WILL SEARCH FOR IF NONE IS SPECIFIED. tHIS IS '
DB'THE DEFAULT FOR BOTH',cr,lf
DB'THE LIBRARY MEMBER NAME AND THE STAND-ALONE HELP FILE '
DB'NAME.'
DBcr,lf,lf
;
DBhon,'oPTIONS d AND a -- aLTERNATE DIRECTORIES.',hof,' '
DB' dEFINE HERE THE ALTERNATE NAMED',cr,lf
DB'DIRECTORY AND ALTERNATE du TO BE SEARCHED. lhc/lhq '
DB' FIRST SEARCHES THE',cr,lf
DB'DIRECTORY SPECIFIED ON THE COMMAND LINE, (THE CURRENT '
DB'DIRECTORY IF NONE',cr,lf
DB'SPECIFIED), FOR THE REQUESTED HELP LIBRARY OR STAND-ALONE '
DB'HELP FILE. iF',cr,lf
DB'THE FILE CANNOT BE FOUND, lhc/lhq ATTEMPTS TO SEARCH '
DB'FOR IT IN THE NAMED',cr,lf
DB'DIRECTORY SPECIFIED FOR OPTION d. iF THE SYSTEM '
DB' DOES NOT CONTAIN A',cr,lf
DB'DIRECTORY WITH THIS NAME, THEN THE du DEFINED BY OPTION '
DB'a IS SEARCHED.'
DBcr,lf
;
DB':',cr,lf; NEW PAGE
;
DBhon,'oPTION p -- pRINTER CHECK.',hof,' sPECIFIES WHETHER '
DB'A PRINTER-READY TEST WILL BE',cr,lf
DB'MADE BEFORE PRINTING. iF YOUR SYSTEM HAS TROUBLE '
DB'WITH THE bios listst',cr,lf
DB'CALL, SET THIS TO off.'
DBcr,lf
;
DB0
;=========================================================
END