Pascal for ZX81

Discussion about ZX80 / ZX81 Software
jdfan1000
Posts: 81
Joined: Tue Aug 02, 2016 8:06 pm
Location: Buffalo, NY
Contact:

Re: Pascal for ZX81

Post by jdfan1000 »

So, I took the scans of the Partial Pascal manual, converted them to one PDF and hired someone on Fiverr to do the initial retyping. The Fiverr person did a pretty good job; I only had to do some light editing throughout the document.

Attached is my first pass through. I've started marking up the text, differentiating between instruction and typed code with typography. I'm also going to insert screenshots where it makes sense.

Best,
David
Attachments
Semper Partial Pascal manual.pdf
(587.48 KiB) Downloaded 234 times
My archive.org collection, containing many Timex/Sinclair related publications.

TimexSinclair.com, my website about Sinclair computers in the US.
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Pascal for ZX81

Post by mrtinb »

Wow! This is brilliant.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
jdfan1000
Posts: 81
Joined: Tue Aug 02, 2016 8:06 pm
Location: Buffalo, NY
Contact:

Re: Pascal for ZX81

Post by jdfan1000 »

Ok, I believe I've finished cleaning it up and apply typographic magic.

This will also be on archive.org any minute now.
Attachments
Semper Partial Pascal manual.pdf
(763.29 KiB) Downloaded 229 times
My archive.org collection, containing many Timex/Sinclair related publications.

TimexSinclair.com, my website about Sinclair computers in the US.
User avatar
siggi
Posts: 988
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: Pascal for ZX81

Post by siggi »

Great!

Thanks a lot
Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
zx-heinz
Posts: 41
Joined: Thu Apr 27, 2017 8:56 pm

Re: Pascal for ZX81

Post by zx-heinz »

It seems there is no direct way to write a program, to compile it afterwards and run immediately. You have to save in between. Is this true or am I wrong?
jdfan1000
Posts: 81
Joined: Tue Aug 02, 2016 8:06 pm
Location: Buffalo, NY
Contact:

Re: Pascal for ZX81

Post by jdfan1000 »

That's my read: write the program, compile, then load for execution. I think it's more a system for teaching Pascal than for anything actually useful.
My archive.org collection, containing many Timex/Sinclair related publications.

TimexSinclair.com, my website about Sinclair computers in the US.
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Pascal for ZX81

Post by mrtinb »

Yes, you have to save in between. And saving is to the program’s own tape format. So the only way to use the program is to save to real tape, or the wave tape in the Eighty One emulator. No binary file format can be used.

The only way to run a program is in this environment as well. No machine code is generated, as mentioned in my previous post. It seems to be generating some sort of p-code, which is like byte code in the Java world.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
stefano
Posts: 542
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: Pascal for ZX81

Post by stefano »

well, if it has a p-code (or similar interpreter), that is definitely interesting :)
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Pascal for ZX81

Post by mrtinb »

It does not look like other p-code documentation I’ve found. It seems it has it’s own proprietary p-code.

I had hoped I could make a plain machine code binary with this program, but unfortunately that will require a lot of hacking, including having the interpreter in the binary as well.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
Vorticon
Posts: 69
Joined: Tue Mar 01, 2022 1:14 pm

Re: Pascal for ZX81

Post by Vorticon »

Just saw this thread. I am a big fan of Pascal, so this awesome and a big step up from Basic even without pointers support. I'll be curious to see how much faster than Basic the compiled programs run since it seems that it compiles to p-code and not machine code.
Post Reply