Pascal question

4 posts / 0 new
Last post
Offline
Last seen: 3 years 9 months ago
Joined: Feb 17 2013 - 16:18
Posts: 149
Pascal question

Back when I had my Apple /// (early 1980s), I wrote a program in UCSD Pascal that displayed a calendar on the right side of the screen and a clock on the left. This was all in graphics mode, of course.

I am trying to recreate this program on my Apple //e. It's not hard, technically, except for one thing: I don't recall how I was able to print numbers on the clock and the dates inside the grid of the calendar.

The TURTLEGRAPHICS unit doesn't seem to have any ability to write text on the screen in graphics mode.

Now, I'm almost certain this is a native ability of the UCSD P-system, but damned if I can remember how to do it. None of the manuals I've looked at mention it.

I suppose it's possible either that this feature was unique to the SOS version of the P System that formed the ///'s operating system, or perhaps it was a third party unit that I was using.

Does anyone remember?

speedyG's picture
Offline
Last seen: 5 years 7 months ago
Joined: Nov 16 2011 - 07:45
Posts: 2493
Re: Pascal question

Hello dramsey,
why not while startup of the program ( and still in text mode ) define 2 arrays
one for the numbers ( moving the bits from char-Rom to array - i.e. 3 dimensional: 1 = number ; 2 = rows ; 3 = dots as bits as byte) or if alternate ( just defining the chars by yourself ) without even using the char-ROM but instead creating digi-type like numbers...
and one for display of the chars in the graphics mode - ( display table 10 chars wide and 1 char high.)...
and then after switch to graphics pickup the stuff from arrays....
just an idea.....
sincerely speedyG

resman's picture
Offline
Last seen: 9 months 3 weeks ago
Joined: Feb 9 2006 - 12:41
Posts: 217
Re: Pascal question

Look for WCHAR and WSTRING in TURTLEGRAPHICS.

http://www.apple2.pl/books/pasref.pdf

Pg 98

Dave...

Offline
Last seen: 3 years 9 months ago
Joined: Feb 17 2013 - 16:18
Posts: 149
Re: Pascal question

Look for WCHAR and WSTRING in TURTLEGRAPHICS.

http://www.apple2.pl/books/pasref.pdf

Pg 98

Dave...

Bingo! How did I miss that? Thanks!

Log in or register to post comments