Page 3 of 8

Re: Pascal for ZX81

Posted: Sat Mar 20, 2021 3:26 am
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

Re: Pascal for ZX81

Posted: Sat Mar 20, 2021 8:18 am
by mrtinb
Wow! This is brilliant.

Re: Pascal for ZX81

Posted: Sun Mar 21, 2021 3:51 am
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.

Re: Pascal for ZX81

Posted: Sun Mar 21, 2021 11:27 am
by siggi
Great!

Thanks a lot
Siggi

Re: Pascal for ZX81

Posted: Sun Mar 21, 2021 4:55 pm
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?

Re: Pascal for ZX81

Posted: Sun Mar 21, 2021 5:44 pm
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.

Re: Pascal for ZX81

Posted: Sun Mar 21, 2021 7:14 pm
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.

Re: Pascal for ZX81

Posted: Sun Jun 20, 2021 10:09 pm
by stefano
well, if it has a p-code (or similar interpreter), that is definitely interesting :)

Re: Pascal for ZX81

Posted: Sun Jun 20, 2021 10:26 pm
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.

Re: Pascal for ZX81

Posted: Sun Mar 20, 2022 12:13 pm
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.