SP-2-ZX81, the new ZX81-emulator for the 48K ZX Spectrum

Emulator and emulator development specific topics
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: SP-2-ZX81, the new ZX81-emulator for the 48K ZX Spectrum

Post by dr beep »

salvacam wrote: Sun Jun 04, 2023 8:23 pm
dr beep wrote: Fri Jun 02, 2023 10:50 pm
kokkiklhs wrote: Fri Jun 02, 2023 6:30 pm The only game I couldn't get to run though (neither with previous versions) is 81-tris and I can't see an obvious reason, seems like a "normal" 16k game to me...
81-tris, like my 1K hires games, has a special defined displaymethod.
It looks like an intrupt controlled game but the method is different from my CALCULUS MAZXIMUS.

We need to ask SALVACAM
I don't know how I can help you, I use z88dk to program, to paint the blocks of the pieces I use the SetBlock function (in ASM), for the rest, instructions, markers,... I use the printf function (from z88dk).

All my games have the code available on my website, it is in my signature
I suspected something like this.
I need to alter too much and at the cost of speed to add support for your game.
The compiler you use is using IY and that could give problems when an intrupt occurs and IY would have a different value than #4000
since during intrupt a systenvariable is checked with the value of IY.
redgatemodels
Posts: 160
Joined: Tue Sep 05, 2023 11:56 am

Re: SP-2-ZX81, the new ZX81-emulator for the 48K ZX Spectrum

Post by redgatemodels »

Hi,

very much a newbie here, but am I right in thinking that this can be made into a tape program that can be loaded into a Spectrum and then load ZX81 games into it?

I've got a couple of ZX81 titles from when I was a kid that I'd love to play again.

If this is the case, how is the tape made?
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: SP-2-ZX81, the new ZX81-emulator for the 48K ZX Spectrum

Post by dr beep »

redgatemodels wrote: Tue Sep 05, 2023 2:05 pm Hi,

very much a newbie here, but am I right in thinking that this can be made into a tape program that can be loaded into a Spectrum and then load ZX81 games into it?

I've got a couple of ZX81 titles from when I was a kid that I'd love to play again.

If this is the case, how is the tape made?
You can download a TAP-file here
https://www.mediafire.com/file/8ppnz7lp ... 6.tap/file
and convert it to WAV with this
https://www.sinclairzxworld.com/viewtopic.php?t=3145
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: SP-2-ZX81, the new ZX81-emulator for the 48K ZX Spectrum

Post by dr beep »

redgatemodels wrote: Tue Sep 05, 2023 2:05 pm Hi,

very much a newbie here, but am I right in thinking that this can be made into a tape program that can be loaded into a Spectrum and then load ZX81 games into it?

I've got a couple of ZX81 titles from when I was a kid that I'd love to play again.

If this is the case, how is the tape made?
When you can find the games on the net you can convert them too into a tap and then load them.
When your games are on tape you can best convert them to PC first and then do step above again.
redgatemodels
Posts: 160
Joined: Tue Sep 05, 2023 11:56 am

Re: SP-2-ZX81, the new ZX81-emulator for the 48K ZX Spectrum

Post by redgatemodels »

dr beep wrote: Tue Sep 05, 2023 10:00 pm
redgatemodels wrote: Tue Sep 05, 2023 2:05 pm Hi,

very much a newbie here, but am I right in thinking that this can be made into a tape program that can be loaded into a Spectrum and then load ZX81 games into it?

I've got a couple of ZX81 titles from when I was a kid that I'd love to play again.

If this is the case, how is the tape made?
You can download a TAP-file here
https://www.mediafire.com/file/8ppnz7lp ... 6.tap/file
and convert it to WAV with this
https://www.sinclairzxworld.com/viewtopic.php?t=3145


Many thanks, I'll have a go once I get my Speccy fixed, it died last night :cry:
User avatar
chernandezba
Posts: 205
Joined: Tue Mar 11, 2014 4:30 pm

Re: SP-2-ZX81, the new ZX81-emulator for the 48K ZX Spectrum

Post by chernandezba »

dr beep wrote: Sat May 02, 2020 10:05 pm This is the official release of my NEW ZX81 EMULATOR for the 48K ZX Spectrum.
Fully software and much faster than my emulator from 1997.
The old emulator is also included.
https://www.mediafire.com/file/oiejfzmj ... X.zip/file
Awesome! I've just discovered this emulator, you did an amazing work! It's incredible how , according to your documentation, you have an emulation speed of 12.5% but I've tried Mazogs and it's playable! I'd say it's a bit less of half of the speed than on a real ZX81, I assume you get more speed by emulating the
display routines and avoiding all the NMI stuff from the ZX81.

Also I've debugged a bit your emulator and saw your mainprogram routine and look at how you emulate some opcodes, very interesting!

Just a question:

- Where can I find the last release? The mediafire zip has a tap file "2020 SP-2-ZX81.tap" but there's also another mediafire download, just the tap file "sp2zx81v216.tap" (which I assume this is the last one) . Where is the last release, with all files: emulator, source code, pdf, etc... ?

Maybe you could consider putting all this files on github... ;)

Regards,
César
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://github.com/chernandezba/zesarux
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: SP-2-ZX81, the new ZX81-emulator for the 48K ZX Spectrum

Post by dr beep »

chernandezba wrote: Wed Sep 13, 2023 9:20 am
dr beep wrote: Sat May 02, 2020 10:05 pm This is the official release of my NEW ZX81 EMULATOR for the 48K ZX Spectrum.
Fully software and much faster than my emulator from 1997.
The old emulator is also included.
https://www.mediafire.com/file/oiejfzmj ... X.zip/file
Awesome! I've just discovered this emulator, you did an amazing work! It's incredible how , according to your documentation, you have an emulation speed of 12.5% but I've tried Mazogs and it's playable! I'd say it's a bit less of half of the speed than on a real ZX81, I assume you get more speed by emulating the
display routines and avoiding all the NMI stuff from the ZX81.

Also I've debugged a bit your emulator and saw your mainprogram routine and look at how you emulate some opcodes, very interesting!

Just a question:

- Where can I find the last release? The mediafire zip has a tap file "2020 SP-2-ZX81.tap" but there's also another mediafire download, just the tap file "sp2zx81v216.tap" (which I assume this is the last one) . Where is the last release, with all files: emulator, source code, pdf, etc... ?

Maybe you could consider putting all this files on github... ;)

Regards,
César
I will make a version of sources manual etc for 2.16, which is the latest version.

speed is gained by skipping screenupdates which you can set in the menu.
Another method to win speed was by "translating" frequent used ROM routines into routines that can run without checking relocated code. These routines are triggered by non existing ED code or IX code.

Another trick that works on game that don't use full screen is that empty lines are skipped when a check in the menu is done.
Last edited by dr beep on Wed Sep 13, 2023 8:04 pm, edited 1 time in total.
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: SP-2-ZX81, the new ZX81-emulator for the 48K ZX Spectrum

Post by dr beep »

chernandezba wrote: Wed Sep 13, 2023 9:20 am
Awesome! I've just discovered this emulator, you did an amazing work! It's incredible how , according to your documentation, you have an emulation speed of 12.5% but I've tried Mazogs and it's playable! I'd say it's a bit less of half of the speed than on a real ZX81, I assume you get more speed by emulating the
display routines and avoiding all the NMI stuff from the ZX81.
MAZOGS plays even better on SP-2-ZX80
Also I've debugged a bit your emulator and saw your mainprogram routine and look at how you emulate some opcodes, very interesting!
The mainroutine is also used in an emulator on the SAM-coupe.
Maybe you could consider putting all this files on github... ;)

Regards,
César
https://github.com/zx81coder
but sofar only the smallest model to code games on the ZX81.
User avatar
chernandezba
Posts: 205
Joined: Tue Mar 11, 2014 4:30 pm

Re: SP-2-ZX81, the new ZX81-emulator for the 48K ZX Spectrum

Post by chernandezba »

dr beep wrote: Wed Sep 13, 2023 6:39 pm
Another method to win speed was by "translating" frequent used ROM routines into routines that can run without checking relocated code. These routines are triggered by non existing ED code or IX code.
That's very clever!
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://github.com/chernandezba/zesarux
Post Reply