Page 1 of 2

ZX80 Program Listing to text file

Posted: Tue Dec 05, 2017 10:36 pm
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!

Re: ZX80 Program Listing to text file

Posted: Tue Dec 05, 2017 11:23 pm
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?

Re: ZX80 Program Listing to text file

Posted: Wed Dec 06, 2017 12:07 am
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 ;)

Re: ZX80 Program Listing to text file

Posted: Wed Dec 06, 2017 6:58 am
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.

Re: ZX80 Program Listing to text file

Posted: Wed Dec 06, 2017 7:13 am
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

Re: ZX80 Program Listing to text file

Posted: Wed Dec 06, 2017 7:17 am
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

Re: ZX80 Program Listing to text file

Posted: Wed Dec 06, 2017 7:50 am
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

Re: ZX80 Program Listing to text file

Posted: Wed Dec 06, 2017 8:28 am
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)

Re: ZX80 Program Listing to text file

Posted: Wed Dec 06, 2017 9:11 pm
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.

Re: ZX80 Program Listing to text file

Posted: Thu Dec 07, 2017 2:25 am
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 ;)