EO + ZXpand?

Emulator and emulator development specific topics
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

EO + ZXpand?

Post by sirmorris »

Yep.
guesswho.png
guesswho.png (6.07 KiB) Viewed 12938 times

** Edit - 15th July 2011 - Updated attachment to version X3 **

The very latest version will always be available at this top post.
Attachments
EO-1.0-X3.zip
EightyOne 1.0 X3 - with zxpand support & AY fixes
(1.44 MiB) Downloaded 452 times
Last edited by sirmorris on Fri Jul 15, 2011 11:16 am, edited 2 times in total.
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: EO + ZXpand?

Post by sirmorris »

The zxpand emulation uses an sd card image. You can grab one from your device using something like DD, or you can generate one with a tool such as 'Build Floppy Image' or BFI for short. I've attached a copy. The license permits this.

What I have is a folder full of directories and .p files. Using a commandline such as this:

bfi -v -f=card.bin -lZEDDY sourcedir

will leave you with a FAT formatted disk image ready for use with the ZXpand emulation. It will contain all the files from sourcedir, and have the label ZEDDY.

Coupled with the wonderful text to P program you have a complete end-to-end solution for creating sd card images and programs to test under emulation.

Why would you need to do this? Well, it's handy when you need a debugger, for instance. But who'd need one of those?? :D
Attachments
bfi10.zip
(89.86 KiB) Downloaded 369 times
Prime
Posts: 134
Joined: Thu Mar 24, 2011 3:02 am

Re: EO + ZXpand?

Post by Prime »

So, I presume you didn't write a PIC emulator in a couple of days :) :) :) but are emulating the functionality of the PIC with your EO module ?

Cheers.

Phill.
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: EO + ZXpand?

Post by sirmorris »

The firmware for the PIC is written in C. It has a very clean interface meaning that it's easy to use elsewhere.

It only needs bytes feeding to/reading from it. When running in the PIC this is done by passing on the data written to/read from the parallel slave port. In the emulators this is done by calling the internal state machine more directly.

Right now I've wrapped the zxpand core in a dll and this is being driven by the EO/MESS code with minimal changes.

If anyone is interested in having the DLL I'll be happy to talk to them. ZXpand in vb81 xur? Sure!

C
User avatar
iturbez
Posts: 154
Joined: Fri Dec 25, 2009 1:06 pm
Location: Spain

Re: EO + ZXpand?

Post by iturbez »

So... What do I need to "run" ZXpand with EO :?: :?: :?:
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: EO + ZXpand?

Post by sirmorris »

Here's the patched EO. I've made a final few tweaks and I'm happy to release it, though of course the phrase 'you get what you pay for' may well apply in this case ;)

I'd like to get in touch with Mike W to get a blessing, but seeing as he's been away from the scene for a while I think that might be some time in coming.

It's a package of bits to drop onto an installation of 1.0a which you can get from here.

There's the zxpand V3 ROM, a test card image, and some other bits of clart that I've managed to shove in there.

Because there are some aspects of ZXpand's workings that are hard to emulate without a huge effort the following do not work:

* Turning off the ROM with config or load extensions
* RAM configuration
* Joystick input.

Turn on ZXpand in the hardware menu.

TTFN

Charlie
Attachments
eo-zxpand-patch.zip
eightyone with zxpand patch
(1.44 MiB) Downloaded 418 times
User avatar
iturbez
Posts: 154
Joined: Fri Dec 25, 2009 1:06 pm
Location: Spain

Re: EO + ZXpand?

Post by iturbez »

Thaks, sirmorris. I will test it, but I'd rather test my REAL ZXPAND I've bougth this morning... (I can't wait it to arrrive...)
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: EO + ZXpand?

Post by sirmorris »

Now with the beginnings of ZX80 support.

I know what the question is, and the answer is 'Yes, with a new GAL'.

In the 'hardware' menu ensure that both the zx80 machine and zxpand options are selected.

The only command implemented at the moment is 'cat'. Press Z to get the command, and for those not well-versed in zx80 keyboard you can get quotes with shifted-Y.

The zx80 character set is different to the '81 so the catalogue listing is a little strange with directory entries being shown enclosed with + and - marks instead of the angled brackets. There are a couple of options - look for symbols which are the same for both machines or have a configuration setting to switch between. I favour the latter. As it's only cosmetic I'll hold off releasing new PIC firmware.

The cat command waits for a key when the listing is paused or finished. This is different to the '81 version and the reason is that the '80 clears the screen when returning to immediate mode >:¬(

Try CAT "GM" to see a long listing - pressing space will quit out, any other will continue to the next page(s). If anyone can tell me why the command leaves a '.p' in the bottom corner of the screen I'll be pleased to know ;)

C
Attachments
eo-zx80-zxpand.zip
(1.5 MiB) Downloaded 800 times
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: EO + ZXpand?

Post by sirmorris »

At last I feel the DLL is ready for release so here it is.

I've also supplied some test code which uses the ZXpand interface firmware emulator to read some directory entries from a card image. It's not exactly how you'd use it in an emulator but it illustrates the overall shape of the code.

There are many things to keep in mind when implementing the ZXpand in an emulator and I'll be happy to talk those over with people via email - there's too much technical guffery for the forum ;)

C
Attachments
ZXpand_emu.zip
(323.96 KiB) Downloaded 371 times
User avatar
XavSnap
Posts: 1941
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: EO + ZXpand?

Post by XavSnap »

Hi,

I tryed DskCenter on the Binary file, and it can read root directory of the SD image disk !

ProDos is already code in this project.

But, the ZXpand's DLL declarations in Vb81 seem to generate an error...

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