Found this I've posted in a Yahoo group once.
After some information exchange with Thierry about bit-map graphics
and the p-system, I took my 99 off the shelf, turned it on, found
that it didn't work, repaired it and looked into the old files I
created in 1987.
I had forgotten how I did it, but it turned out that the memory
expansion of my console isn't necessary to run bit-map graphics under
Pascal. It can be done on a standard 99/4A.
These graphic procedures were written with the intention of providing
compatibility with the (integer) turtlegraphics unit that was
provided with UCSD Pascal II.1, for the Apple II+.
My unit turtlegraphics wasn't completed (probably because this was at
about the time when I started working with programming every day, and
didn't want to do that in the evenings too). But it works, and I have
all the source code.
Is anyone interested in taking this project "home", if I take the
trouble to transfer all the source code (I found out that I've even
written a manual for it!) to PC text files?
As far as I can remember, I've implemented colored line drawing, text
output and a printout of the current screen (on an FX-80 compatible
matrix printer). I think implementation of colored text on the screen
was the next thing to do, when I stopped working on this system.
I also implemented the viewport concept, which means that any
rectangle on the screen can be defined as active. Any drawing
directed elsewhere will not be performed. A line can have both
endpoints outside the viewport, but will only be drawn inside this
rectangle.
To use this feature with the p-system, I made a utility (bitreserve)
which can allocate and de-allocate the required memory in VDP RAM.
Once this is done, programs are executed just as always.
Of course, it's necessary to change mode to graphics (and back!) in
the user program, but the turtlegraphics unit takes care of saving
the necessary areas of VDP RAM.
There are also some drawbacks of minor importance, like forgetting to
de-allocate VDP RAM before loading a program like the Filer... well,
you don't forget that more than a few times.
Also, screen left and screen right accesses VDP RAM where they think
the screen is, which results in garbage on the screen.
I have Pascal and assembly files which make up the turtlegraphics
unit, and twelve different test programs, to check various functions.
Several of these test programs require my real-time clock and my I/O
card, but that can easily be changed.
Since I now have the system running, but don't intend to keep it up
(I don't have any good space for it right now), please respond within
a week or so, if someone wants me to go through the process of
transferring the files to my PC.
Best regards
Anders Persson
Then here I found a link to a summary of my attempts to make the p-system truly multitasking.
ftp://ftp.whtech.com...ultisupport.TXT
Note that the e-mail address ending with @rixtele.com is no longer current.
Edited by apersson850, Thu Feb 16, 2012 3:29 AM.