80-Bus News |
September–October 1983 · Volume 2 · Issue 5 |
| Page 51 of 67 |
|---|
As David Hunt has written a comparative review of the three colour boards for the 80-BUS, I have willingly left the detailed review of the Climax MV256 to him. Listing 1 is a program to run on it. This program draws a map of Ireland including the major rivers. Included are two extensions to this program. Listing 2, also written in MBASIC, is to be inserted into Listing 1 according to its line numbers. This draws the picture on an EPSON FX80 installed as the LST: device in Graphics Mode 4. This is slow, taking 27 minutes to draw the picture!
What happens in the printer driver is this: The Y coordinate is set to
255, and the X coord to 0. GETCOL(X,Y) is called to return the colour of the
pixel at X,Y. If this is not black, then we calculate the value needed to
display this bit if we print rows of 8 bits vertically. We work down 8 rows,
in the first column, building up the value of the byte. Then we move to the
next column, top row, and carry on. Having finished the screen-width, we
transmit the graphics line selectors, and the entire row. Then on to the next
group of 8 raster lines. Because of the looping involved, this is very slow!
Listing 3 is an improved version of this. It patches into the MVLINK
primitives and is written in assembly language. It should be inserted into
MV2.MAC after INIT, and MVLINK.MAC reassembled and linked with M80/
It is important when using the MV256 that the program be saved to disc before executing. If through some error or oversight one of the CALLs is not properly defined, it will be treated as CALL 0, and the program crashes, causing much weeping and gnashing of teeth. While there are methods of regaining the source code, it is easier to MVLINK, and LOAD "FILENAME"!
When purchasing the MV256, it is worth getting the disc with the driving primitives and demonstration program. The demo programs are quite impressive, and give one something to aim at.
| Page 51 of 67 |
|---|