home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
norge.freeshell.org (192.94.73.8)
/
192.94.73.8.tar
/
192.94.73.8
/
pub
/
computers
/
cpm
/
alphatronic
/
CGRAPH.ZIP
/
README.DOC
< prev
next >
Wrap
Text File
|
1998-07-30
|
3KB
|
78 lines
You may use these graphics subroutines for commercial use, there
is no use fee, as I am placing them in the public domain. I do
however request that you include the following release notice on all
code so used. The source code for the PASCAL programs will be in the
August issue of MicroSystems.
Thank you.
#############################################
Computer Graphics, Version 1.1
Courtesy of:
Clermont Computer Consultants
RD 1 Box 316
Cape May Court House, NJ 08210
(609) 263 7511
#############################################
PLOT.MAC is the machine code source file for the graphics
plotting routines. It will be necessary for you to reassemble this
file with the proper equates set up for your particular operating
system and memory size.
PLOT.BAS produces a bullseye pattern for checking out the
operation of the printer interface. The program BODE.BAS can be used
to produce logarithimic BODE diagrams representing the frequency
response of linear networks.
In order to reassemble the graphics plotting routines you will
need the following:
MACRO-80, macro assembler
L-80, linking loader
DDT, or preferably a Z-80 debug program
Proceed as follows:
1. Edit the program PLOT.MAC as desired
2. Assemble: (produce a file PLOT.REL)
A>M80 PLOT,=PLOT
3. Link: (produce a file PLOT.HEX)
L80 /P:7400,PLOT,PLOT/N/X/E
4. Relocate: (produce a file PLOT-TST.COM)
A>DDT
5. Under DDT:
a. F0100,8000,0<CR>
(fill memory with 0's)
b. IPLOT.HEX
(set FCB with source name)
c. R8E00
(Read with offset -> 0200 start)
d. A0100
(assemble at 0100)
0100 LXI H,0200
(transfer from 0200)
0103 LXI D,7400
(to 7400)
0106 LXI B,700
(700 bytes total)
0109 NOP
(fill in with LDIR code)
010A NOP
010B RET
(return to CP/M)
010C .<CR>
e. S0109 (substitute at 0109)
0109 00 ED
010A 00 B0
(LDIR instruction)
010B C9 .<CR>
f. G0 (return to CP/M)
6. Under the CCP:
a. SAVE 8 PLOT-TST.COM
(save image in memory)