
CGM to Vectrex 6809 assembly converter
--------------------------------------

Just a quick hack that enables you to convert CGM pictures to Vectrex
vectors. I couldn't run the v-model package in Linux so I hacked together
this converter. Draw pictures with Xfig, export them to CGM and off you
go! Filename and scaling factor are required parameters, x and y offset
optional. Only polygon, polyline and rectangle primitives are supported.
Brightness values are inverted ie. white=dark and black=light (Xfig wants
a white background)

The example picture "Arsekiini 2" was drawn by me in about an hour. I'm
sure you can do better than that ;v) The picture was converted to assembly
with this command line: cgm2as arsek 0.3 -110 -115
example.as9 shows how to use the picture from your own code.

There are probably several bugs etc. but it works for me. Probably there
is a lot of slow code too, but hey, I've coded on Vectrex about a week :v/

This version is a bit fixed, since the last one wasn't DVE compatible
(I tried only with XMESS). There must something very wrong with DVE, since
a simple LEAX crashes it. I changed LEAX to LDX and now it works.

- Marq/L!T (marq@iki.fi) July 19th 2000

