home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
beehive
/
compress
/
ql40.arc
/
QL40-CFG.DOC
< prev
next >
Wrap
Text File
|
1991-08-11
|
6KB
|
184 lines
SETTING IT UP
Vanilla or Chocolate CP/M:
If you can edit 5 lines and then type "Z1 QL40", you should take the
extra minute to configure the program for your terminal. Simply edit
the file QL40.AZM and insert the byte sequences for clearscreen, dim /
bright, and reverse / normal video where indicated. After editing,
follow the simple assembly instructions below.
If you do not know or have all the video features mentioned, you should
at least try to put in the clearscreen code. The reverse video is only
used to highlight strings found when using the "Find" command. The dim
/ bright sequence is used in the filename selection screens (binary
files displayed dim) and to display status information (to visually
separate the status/command line from the file being viewed).
......
ZCPR3x
No configuration is necessary; the program will use your 'standout'
video for both of the sequences described above. If yours is
dim/bright, you are in pretty good shape already. Reverse video is much
less appropriate and not likely to look that great. For absolute best
results in either case, however, fill in the 'other' sequence so both
modes are used. See the notes in QL40.AZM for more detail on how the
'hardcoded' sequence will always take precedence. Then follow the ZCPR3
assembly and linking instructions below.
......
All Systems:
A number of other things can be configured to your preference, but all
are non-essential. Each and briefly described in comments near each
option. All user configurable options are all located in the short
QL40.AZM file.
HOW TO ASSEMBLE AFTER CONFIGURING
For standard CP/M 2.2 or CP/M+, you can use the Z1 assembler included,
even if you've never assembled a program before. Just make sure you've
got the QL40.AZM file you just edited, along with the rest of the files
in this release, all on the same drive / user. Then just type:
Z1 QL40
...and wait for your new customized QL40.COM to be created. You will
probably want to rename it just plain "QL.COM" for convenience.
1
------------------------------------------------------------------------
Advanced or alternative assembly and linking instructions:
If you prefer to use a different assembler or are creating a ZCPR3 ver-
sion, here are some helpful tips:
......................
For regular (non-ZCPR) assembly, if you prefer to use either M80 or
SLR's Z80ASM, you must first make sure that you have changed the M80
equate at the beginning of QL40.AZM from FALSE to TRUE. Then:
......
For M80: ren QL40.MAC=QL40.AZM (do not rename any other files)
M80 =QL40/N/Z
then,w/ L80: L80 /P:100,QL40,QL40/N,/E
or, w/ LINK: LINK QL
......
For Z80ASM: ren QL40.Z80=QL40.AZM (do not rename any other files)
Z80ASM QL40 (that's it)
......................
For ZCPR3, you must set ZCPR3 to TRUE in QL40.AZM. You must also set
M80 to TRUE, since the Z1 assembler cannot be used. You must have cop-
ies of SYSLIB, Z3LIB, and VLIB to link to (not supplied).
For M80: ren QL40.MAC=QL40.AZM (do not rename any other files)
M80 =QL40/N/Z
then, w/LINK LINK QL,VLIB[s],Z3LIB[s],SYSLIB[s]
......
For Z80ASM ren QL40.Z80=QL40.AZM (do not rename any other files)
Z80ASM QL40/6
then,
w/SLRNK+ SLRNK+ QL40/n/a:100/j QL40 VLIB/s Z3LIB/s SYSLIB/s /e
(or use LINK as above)
......
Other combinations of assemblers and linkers are left as an exercise..
2
Resulting file sizes will vary depending on the assemblers and linkers
used (SLR always give the smallest and fastest results). The programs
have been set up so the resulting COM files will not include large data
blocks. The regular CP/M version should always be less than 8k, as
should the ZCPR3 version. A pre-assembled, pre-linked, ZCPR3 version of
QL40 is included as QLZ40.COM, and should run right "out of the box" for
many Z3 systems, especially if your TCAP is set up for dim video. It is
63 records long, and was created by SLRNK+ and linked to the new 'z80-
ified' versions of the three libraries (the pre-linked file included was
supplied courtesy Bruce Morgen). The new libraries are not only slight-
ly shorter, but they utilize DSEG's to save additional code space.
The standard libraries, linked with SLRNK+, should still give you a 64
record COM file. If you use a linker which leaves DSEG's unnecessarily
attached, the result may be slightly larger. QL initializes all its
data when run, so if you know what you are doing, and "breaking the 8k
barrier" really bothers you, you can chop off the DSEG with a debugger.
The self-initialization also means that there is no problem re-running
QL40 with a 'GO' command or equivalent.
Finally, if you want to just patch terminal control codes into the
QLZ40.COM file supplied, these are the relevant addresses. There should
be a series of 6 zeroes at each address, of which up to 5 may be re-
placed with a control sequence. These addresses are specific to the
exact QLZ40.COM file supplied in the distribution library. Patched in
sequences will override any TCAP defined sequences.
Dim video on: 173BH
Dim video off: 1759H
Reverse video on: 177CH
Reverse video off: 17A1H
Clear screen 17DCH
- Steven Greenberg
14 August 1988
3