Tape to EPROM possible ?

Discussions about Sinclair ZX80 and ZX81 Hardware
User avatar
kolbeck
Posts: 59
Joined: Sat May 02, 2020 3:10 pm

Re: Tape to EPROM possible ?

Post by kolbeck »

One approach to auto run a P file from eprom EAS16K can be found here https://ws-nbg.de/zx81/main.php
https://api.zxinfo.dk/v3/ - ZXDB API for developers
zxinfo-file-browser - Cross platform app to manage your files
https://zxinfo.dk - another ZXDB frontend
User avatar
XavSnap
Posts: 2195
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.
Contact:

Re: Tape to EPROM possible ?

Post by XavSnap »

:oops:

No autorun on this wiring diagram...
A P file ... is a binary (ASM) ?
The BASIC can't run under a ROM @ $4000 and can't be launch without a ROM SYSTEM hack.
We had to jump to an ASM routine to the "RUN" command or the end of the "LOAD" routine, but in the $0000-$2000 memory segment.

In case of a single byte changed in this segment:
http://zx81.ordi5.free.fr/brico/RAMTOPoMATIC/


Image
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
User avatar
kolbeck
Posts: 59
Joined: Sat May 02, 2020 3:10 pm

Re: Tape to EPROM possible ?

Post by kolbeck »

I haven’t build this, but my understanding is that it allows you to transfer a zx81 tape file to eprom, which is then launched at boot using a special boot loader, that transfer the program to ram and starts it. I would also assume that the boot Rom swaps itself out. The reference to this was more about the concept “tape to eprom”
https://api.zxinfo.dk/v3/ - ZXDB API for developers
zxinfo-file-browser - Cross platform app to manage your files
https://zxinfo.dk - another ZXDB frontend
User avatar
XavSnap
Posts: 2195
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.
Contact:

Re: Tape to EPROM possible ?

Post by XavSnap »

We had to:

1- Patch the BASIC ROM to intercept the end of BASIC ROM loading, before the "K" display (?offset?).
2- Jump to a LDIR routine in the "P" ROM (somewhere in your BASIC program).
3- jump to the end of LOAD Routine (JP $046F)
4- The P file must be saved using a 9990 SAVE "prg" + 9999 RUN (autostart mode using RUN 9990)
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
User avatar
1024MAK
Posts: 5534
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...
Contact:

Re: Tape to EPROM possible ?

Post by 1024MAK »

Alternatively, a micro controller could produce the required keyboard key presses in sequence. That then means there is no need to modify the Sinclair BASIC ROM.

Is this tape file/program a BASIC program, a machine code program or a mix of both? And is it a commercial product or something written by you?

Only, if this is a program written by you, if using the method of modifying the Sinclair BASIC ROM, it’s a bit easier than if it’s a commercial product.

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

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Spring approaching...
User avatar
kolbeck
Posts: 59
Joined: Sat May 02, 2020 3:10 pm

Re: Tape to EPROM possible ?

Post by kolbeck »

OK, got this up and working - so it's now possible to put a P tape file into an eprom, which is then AUTORUN when your ZX81 is powered on.

What is needed?
- My ZX81 external EPROM interface, that supports 16KiB ROM in the space 0-0x3fff on GitHub (or similiar device that allows custom ROM in 0-16k area)
IMG_1217.jpg
The EPROM is organized as
- 0-0x1fff, ZX81 ROM with small modification
- 0x2000 - 0x3fff: boot code and P file to run

The ZX81 ROM modification is based on the concept of "ZX81 AUTOBASIC - Wilf Rigter - 1997", as part of this modification the ZX81 jumps to 0x2000 which copies the P file to memory in a LOAD fashion. Hold shift down on powering up to skip to normal operation.

With 16K rom image, there is space for 8K data to contain the boot code and P file - using the smart compression ZX0 it's possible to fit most 16K programs, making this interface a nice "cartridge" like of setup :-)
https://api.zxinfo.dk/v3/ - ZXDB API for developers
zxinfo-file-browser - Cross platform app to manage your files
https://zxinfo.dk - another ZXDB frontend
User avatar
kolbeck
Posts: 59
Joined: Sat May 02, 2020 3:10 pm

Re: Tape to EPROM possible ?

Post by kolbeck »

Here is a video of my setup in action - all more or less DIY/homemade :-)

https://youtube.com/shorts/YK3HYUyBtW4? ... R4pPWHy7F0
Screenshot 2024-06-21 at 14.57.19.png
https://api.zxinfo.dk/v3/ - ZXDB API for developers
zxinfo-file-browser - Cross platform app to manage your files
https://zxinfo.dk - another ZXDB frontend
User avatar
mrtinb
Posts: 2004
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Tape to EPROM possible ?

Post by mrtinb »

Cool work!
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
XavSnap
Posts: 2195
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.
Contact:

Re: Tape to EPROM possible ?

Post by XavSnap »

Xavier ...on the Facebook groupe : "Zx81 France"(fr)
Post Reply