Pascal question

3 replies [Last post]
Offline
Joined: Feb 17 2013
Posts: 149

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?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speedyG's picture
Offline
Joined: Nov 16 2011
Posts: 2376
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

__________________

In early days I had a lot of money but no time - now I have no money but a lot of time....
the second part includes less friends but a lot more joy on life....

resman's picture
Offline
Joined: Feb 9 2006
Posts: 213
Re: Pascal question

Look for WCHAR and WSTRING in TURTLEGRAPHICS.

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

Pg 98

Dave...

Offline
Joined: Feb 17 2013
Posts: 149
Re: Pascal question

resman wrote:

Look for WCHAR and WSTRING in TURTLEGRAPHICS.

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

Pg 98

Dave...

Bingo! How did I miss that? Thanks!