ZX80 Program Listing to text file

Emulator and emulator development specific topics
eegz
Posts: 8
Joined: Tue Dec 05, 2017 1:16 pm

ZX80 Program Listing to text file

Post by eegz »

Can someone help with getting a zx80 program listing to a text file on my Windows desktop?

Progress so far:
- Got eightyone to load my file from a wav.
- sirmorris and mrtinb got me to the point of having a .o file and pointed to the online emulator.

Still to do:
- Can't quite get my program listing to a text file (trying to avoid OCR'ing a screenshot as this would be painful for multi screen program listings)

Notes:
Googled around a bunch and found a tool called XuR, but won't work with my Windows architecture.
I can work in OSX or Linux if there's a tool that will help me there.

Thanks for any help!
eegz
Posts: 8
Joined: Tue Dec 05, 2017 1:16 pm

Re: ZX80 Program Listing to text file

Post by eegz »

Update:

I found something called P2TXT (from mobluse on github https://github.com/mobluse/zx81-mob/tre ... converters) which I was able to compile, but no output and no error. Probably because it's for .p files and I have an .o file (saving from zx-80 to .p didn't seem to help).

Maybe there's an O2TXT out there somewhere?
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: ZX80 Program Listing to text file

Post by sirmorris »

The ZX80 w/4k ROM and ZX81 have different memory layouts and you'll need to look into these differences, documented in the respective manuals, in order to make the necessary changes to p2txt. Don't be scared, it should be quite fun and educational ;)
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: ZX80 Program Listing to text file

Post by mrtinb »

eegz wrote: Tue Dec 05, 2017 10:36 pm Googled around a bunch and found a tool called XuR, but won't work with my Windows architecture.
I can work in OSX or Linux if there's a tool that will help me there.
Vb81 XuR won't help you much it would seem. I can't get it to emulate ZX80.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: ZX80 Program Listing to text file

Post by mrtinb »

It seems Grant's site had the same problem, so he decided to take pictures of his tv. http://zx80.netai.net/grant/zx80/zx80software.html
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
1024MAK
Posts: 5102
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: ZX80 Program Listing to text file

Post by 1024MAK »

Emulators for ZX80

If you use a Unix or similar system, there is also ‪ZEsarUX 6.0 stable‬
viewtopic.php?f=3&t=2675

An old Windows/DOS emulator is NO$ZX by Martin Korth
http://problemkaputt.de/zx.htm

I have not actually tried either in ZX80 mode though.

Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
User avatar
Paul
Posts: 1511
Joined: Thu May 27, 2010 8:15 am
Location: Germanys west end

Re: ZX80 Program Listing to text file

Post by Paul »

The ZX81-IDE (windows program which can run under wine) is able to load and Edit ZX80 and ZX81files.
From there you can copy and print your text.
It's a FASM Assembler extended to use Z80 mnemonic and offer mixed language programming with Sinclair Basic and Z80 assembler.
It's definitely worth a look.
It's made by Karl who is here in the forum (and in the german tlienhard forum) as user pokemon.
Kind regards
Paul
In theory, there is no difference between theory and practice. But, in practice, there is.
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: ZX80 Program Listing to text file

Post by sirmorris »

^^ What Paul said.

Also, if you're so inclined to mod the program anyway then good starting points are:

Description of system variables in a side-by-side form from Mastering Machine Code

The never-ending gift of the no-cash docs describing the P and O file layouts (and everything else as well)
eegz
Posts: 8
Joined: Tue Dec 05, 2017 1:16 pm

Re: ZX80 Program Listing to text file

Post by eegz »

Thanks for the leads guys.
I accidentally went down the route of using something called "Fresh" then found FASMW-ZX.

I output every format I can from the EightyOne emulator (.o, .p, .tzx, .t81, .p81).
Out of those, the ZX-81 IDE only seems to accept .p files and that causes it to crash when I pass it in.

Am I missing an option maybe?

BTW: Thanks for the info/doc links. The P2TXT mod project sounds fun, but it may be a while before I could get to it. I'm drifting between design and web dev jobs at the moment so time is a bit tight.
olofsen
Posts: 189
Joined: Wed Jan 08, 2014 12:29 pm

Re: ZX80 Program Listing to text file

Post by olofsen »

The "ZX80LP" button at http://rullf2.xs4all.nl/jszeddy/jszeddy.html prints every printed character to the printer area - so that would need a bit of formatting after a number of LIST commands, but perhaps it's something ;)
Post Reply