Pascal for ZX81

Discussion about ZX80 / ZX81 Software
User avatar
mrtinb
Posts: 1910
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Pascal for ZX81

Post by mrtinb »

The catch here is, that the implementation of Pascal for ZX81, only works inside a programming environment for Pascal. And the only storage medium is tape. No emulator emulates this, as it has it's own routines to save files to tape, so we are not talking ".p"-files. (If you save to wave files from EO, it can be emulated.)

Again the programs in p-code format, does only run inside the pascal environment.

I believe the friends in ZX-Team has created a patch for Pascal, so it will run on their MSFISDOS.

The caveat is that for others to use your program, which is programmed in Pascal, they need:
  1. To load the Pascal environment,
  2. and from there load the binary p-code in one of these ways:
    • From physical tape drive
    • From special hardware that runs MEFISDOS
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 »

I see... Definitely limits the dissemination of Pascal programs.
Nonetheless, it's still very cool to see a Pascal implementation on the Zeddy.
User avatar
Vorticon
Posts: 69
Joined: Tue Mar 01, 2022 1:14 pm

Re: Pascal for ZX81

Post by Vorticon »

Working my way through the pascal package. I still think it's an impressive feat to have Pascal on the Zeddy :)
16479139940156684526268739685399.jpg
User avatar
mrtinb
Posts: 1910
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Pascal for ZX81

Post by mrtinb »

I agree
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 »

That said, this implementation is significantly crippled given that record and set structures, along with pointers, were omitted which puts into doubt the practicality of using it for real world development as compared to Basic for example, particularly since the development environment is required to run the compiled programs. On the other hand, the full screen editor is very nice and a welcome change to the Basic editing process.
I'm working my way through the package documentation and I'll have a better idea of how this all works out in terms of execution speed and usability later on.

N.B.: I giggle a little when I talk about real world practicality of this package while sitting in front of a 40+ year old machine hooked up to a B&W television and a tape recorder :P
User avatar
mrtinb
Posts: 1910
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Pascal for ZX81

Post by mrtinb »

Unfortunately it does not produce machine code, but p-code, which is more like Java, that produces byte-code, and need the JVM. Here we need the pascal-"virtual-machine".
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
timsenecal
Posts: 4
Joined: Sun Jul 18, 2021 7:21 am

Re: Pascal for ZX81

Post by timsenecal »

Vorticon wrote: Tue Mar 22, 2022 12:25 pm ...
N.B.: I giggle a little when I talk about real world practicality of this package while sitting in front of a 40+ year old machine hooked up to a B&W television and a tape recorder :P
I used this package in 1984 to complete a pascal course i took in high school... the class ended prematurely, i only had the timex sinclair 1000 at home, and discovered this existed, so i bought it, and used it to work through the rest of the text book... the hardest part of the whole endeavour was the 16 minute load times before i could start working. I will have to look and see if i kept any of this from 40 years ago, and if any of it works.
User avatar
mrtinb
Posts: 1910
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Pascal for ZX81

Post by mrtinb »

Wow cool to hear from someone who actually worked with this software back in the day. :)
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 »

The fact that one could do pascal using a sub $200 computer system (computer, 16K expansion, tape recorder) was unheard of back in the day. I had a TI 99/4A at the time and it would have cost me close to an additional $2000 to upgrade to the point of being able to use pascal on it (32K card, disk controller, 2 disk drives, pcode card and peripheral expansion box). So yeah, as I stated earlier, an impressive feat..
Lardo Boffin
Posts: 2169
Joined: Sat Nov 26, 2016 2:42 am

Re: Pascal for ZX81

Post by Lardo Boffin »

timsenecal wrote: Tue Mar 22, 2022 4:57 pm
Vorticon wrote: Tue Mar 22, 2022 12:25 pm ...
N.B.: I giggle a little when I talk about real world practicality of this package while sitting in front of a 40+ year old machine hooked up to a B&W television and a tape recorder :P
I used this package in 1984 to complete a pascal course i took in high school... the class ended prematurely, i only had the timex sinclair 1000 at home, and discovered this existed, so i bought it, and used it to work through the rest of the text book... the hardest part of the whole endeavour was the 16 minute load times before i could start working. I will have to look and see if i kept any of this from 40 years ago, and if any of it works.
Fit a Wespi - the load times will be significantly lower! The save times won’t be any better but i suspect that the load times are the worst part?
ZX80
ZX81 iss 1 (bugged ROM, kludge fix, normal, rebuilt)
TS 1000 iss 3, ZXPand AY and +, ZX8-CCB, ZX-KDLX & ChromaSCART
Tatung 81 + Wespi
TS 1500 & 2000
Spectrum 16k (iss 1 s/n 862)
Spectrum 48ks plus a DIVMMC future and SPECTRA
Post Reply