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

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

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

Post by dr beep »

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
dr beep
Posts: 2059
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 »

UPDATED VERSION:

EDIT: VERSION 1.01 LACKED THE SPEEDFINDUPDATE, REPAIR FOLLOWED IN V1.02

Release of version 1.01

Bugfix:
Bug LD A,R, my opcode source missed this opcode but some games use this as some kind of RND

Convenience fix:
DEBOUNCE set to 10, a bit slower as request

Extra options:
Added CHROMA CHR-support.

Extra tools outside the emulator:
Converter for CHR-files
Converter .P to TAP-files

1 CHROMA game added

The emulator:
{REPLACED BY 1.03}

EDIT: BUGFIX DELAYFINDER V1.02
Last edited by dr beep on Wed May 06, 2020 7:14 pm, edited 1 time in total.
dr beep
Posts: 2059
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 »

Version 1.03

Bug LD A,R was NOT fixed in 1.02

Added tooling to convert CHR and P file directly in 1 TAP-file
2020 SP-2-ZX81_v103.zip
(96.18 KiB) Downloaded 737 times
dr beep
Posts: 2059
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 »

I am working on speeding up by some percentages.
I don’t use IX so I am changing JP MAIN into JP (IX) on all opcodes. This gives some speedup.
Also room left in range 8K-16K so I migh5 move the screenroutine there and make some speed there.
dr beep
Posts: 2059
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 »

I coded a whole new version to add speed to the emulation.
On 3 points speed could be won:

1) When each opcode would have its own mainroutine 10 tstates per opcode should be won.
The intruptroutine needed to be called anytime to get this working and all opcodes would get extra code.

2) Split A from F can speed up over 40 opcodes in the emulation from 4 up to 8 tstates

3) Mainroutine ED and FD inside own table would win 4 tstates on both opcodes with prefixes.

All is added in the version 2.00 and some bugs are fixed.
Also FULL SOURCE now added.

The memory of the 48K ZX Spectrum is now filled. No room left for other options or speeding up.

The full emulator:
SP2ZX81-20.zip
(254.24 KiB) Downloaded 756 times
User avatar
kokkiklhs
Posts: 103
Joined: Sat Jan 10, 2015 12:09 pm

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

Post by kokkiklhs »

This is great, I hadn't visited the forum for a while and it was a precious gift for me to see your new emulator finished!
I just tested it on real Speccy, it works fine!!! Next step will be to try it on my Enterprise 128, using the excellent software-only Speccy emulator! I'm pretty sure it will also work there! ;)
The manual is a very nice and useful addition!
You are surely my ZX81 hero dr beep, thank you, thank you, THANK YOU!!!
8-)
dr beep
Posts: 2059
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 »

Well,

A quick scan on WIKIPEDIA tells me that on a ENTERPRISE a full speed ZX81 emulator must be possible, like the SAM-coupe or a ZX Spectrum 128 with interface. Bankswitching must be possible to set memory in order and update screen during intrupt.




Johan "Dr Beep" Koelman
User avatar
kokkiklhs
Posts: 103
Joined: Sat Jan 10, 2015 12:09 pm

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

Post by kokkiklhs »

Hmmm, I was recently reading this:
viewtopic.php?f=5&t=2986
Great improvements by zsolt here, excellent work...

My crazy thought to propose to dr.beep:
Could it be possible to build a separate version of your amazing SP-2-ZX81 emulator using this ROM? An original/improved ROM switching option to the already built emulator would consume another 8k of the precious 48k RAM, so it's most probably out of question...
I suspect that you may have already thought about it, or even tried to do it, but what would the result be, running on a REAL speccy?
:roll:
dr beep
Posts: 2059
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 »

kokkiklhs wrote: Sat Dec 12, 2020 8:55 am Hmmm, I was recently reading this:
viewtopic.php?f=5&t=2986
Great improvements by zsolt here, excellent work...

My crazy thought to propose to dr.beep:
Could it be possible to build a separate version of your amazing SP-2-ZX81 emulator using this ROM? An original/improved ROM switching option to the already built emulator would consume another 8k of the precious 48k RAM, so it's most probably out of question...
I suspect that you may have already thought about it, or even tried to do it, but what would the result be, running on a REAL speccy?
:roll:
Altering the ROM is simple. I need to check where I have translated the ROM directly but It would run directly with the altered ROM.
Loading would need a fix but is possible,speeding up as mentioned can be done later.

Unfortunately I am too busy at the moment to do this.
I also have the request to make it a ZX80 emulator with the ZX80 ROM.

Not forgotten, but short in time... even now for my running 8bitwars project.
User avatar
kokkiklhs
Posts: 103
Joined: Sat Jan 10, 2015 12:09 pm

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

Post by kokkiklhs »

Oy, please take your time and of course keep your priorities, as scheduled!
These are pure hobbyist things and they shouldn't be done in a hurry or under pressure! Just when you have the time and the right mood!
Thank you for keeping my idea in your mind, even for (much) later!! ;)

P.S. ZX80 emulator?? Wow, this will be cool, too!!!
8-)
Post Reply