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

Emulator and emulator development specific topics
dr beep
Posts: 2196
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: Thu Jun 01, 2023 10:19 pm
dr beep wrote: Thu Jun 01, 2023 10:14 pm I must compile a new version. This version has a debuggerroutine active which slows the emulator down
Wow, this sounds great! I'm looking forward to it! Furthermore I will inform geco about the potential bug in his Spemu, he may want to fix it, as his latest compiled version is from 2014.
Thank you for the very detailed explanation, even though I didn't understand all of it (I need to study more about Z80 assembly), I'm sure geco will do!!
8-)
New version now in the link.
dr beep
Posts: 2196
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 »

DEBUG-mode was still in it.
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 »

Faster than light!! You rock!!!
Thank you so much, I will do some further testing tomorrow!
8-)
dr beep
Posts: 2196
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: Thu Jun 01, 2023 10:26 pm Faster than light!! You rock!!!
Thank you so much, I will do some further testing tomorrow!
8-)
I was still too fast. Now right version.
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 »

dr beep wrote: Thu Jun 01, 2023 10:33 pm I was still too fast. Now right version.
Yes, I noticed that the previous 2.16 version was much slower than 2.15! I'll see the last one! Thank you, Johan!
dr beep
Posts: 2196
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: Thu Jun 01, 2023 7:07 pm
So the compatibility rate is extremely high (much better than it was before v2.0) and the speed is more than satisfactory!!! I am truly impressed!
Games that don't use full screen (ie 1K games that only produce a few lines) can run faster when you activate the menu and run the speedfinder.

Especially older games have a screen with multiple linefeeds to fill the screen.
The speedfinder count's those lines and replaces them with a single JP (HL).
The emulator knows that this command is the end of the screen and will stop updatung the screen.

A boardgame like the original 1K chess uses 8 lines. That means that 2/3 of the screen can be skipped when updating.
This can give more speed.

My modern 1K games all end with JP (HL) on the screen so they run faster directly after loading.
dr beep
Posts: 2196
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: Thu Jun 01, 2023 10:19 pm
Wow, this sounds great! I'm looking forward to it! Furthermore I will inform geco about the potential bug in his Spemu, he may want to fix it, as his latest compiled version is from 2014.
Thank you for the very detailed explanation, even though I didn't understand all of it (I need to study more about Z80 assembly), I'm sure geco will do!!
8-)
As I recall the Enterprise (memorylayout)I think we should join forces and make it a full speed ZX81 emulator on the Enterprise.
His knowledge of the enterprise and my idea how I coded the SAM81-emulator should work together.
dr beep
Posts: 2196
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: Thu Jun 01, 2023 10:42 pm
dr beep wrote: Thu Jun 01, 2023 10:33 pm I was still too fast. Now right version.
Yes, I noticed that the previous 2.16 version was much slower than 2.15! I'll see the last one! Thank you, Johan!
Due to multiple ZIP-files yesterday wrong file was uploaded.
Now correct version.
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 »

dr beep wrote: Fri Jun 02, 2023 6:55 am As I recall the Enterprise (memorylayout)I think we should join forces and make it a full speed ZX81 emulator on the Enterprise.
His knowledge of the enterprise and my idea how I coded the SAM81-emulator should work together.
I am amazed that you are considering this as a good idea!!! If this ever happens, you'll both make a happy man out of me! :D
dr beep wrote: Fri Jun 02, 2023 12:51 pm Due to multiple ZIP-files yesterday wrong file was uploaded.
Now correct version.
Yes, I tested the second 2.16 uploaded version and it was slow, as well! Now it's time to test the right one! You are my hero!!!
8-)
Well, on the latest version, 3D Ant Attack plays nicely, I also tested Omega Phoenix (I hadn't before) and it plays well and at a reasonable speed! Yay!!!!
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...
dr beep
Posts: 2196
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: Fri Jun 02, 2023 6:30 pm I am amazed that you are considering this as a good idea!!! If this ever happens, you'll both make a happy man out of me! :D
In 2006 or so I had plans to code emulators on multiple machines.
Most wanted would be machines where the memory could be used on right addresses with banks like on the SAM.
By heart the enterprise can do this. With the right expertise from both sides we could make a good emulator.
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...
Just report not working games.
So far MAYHEM, intrupt controlled programs like my CALCULUS MAZXIMUS and 3D ANT ATTACK were reported and I was able
to add them without losing speed in the emulator.
Post Reply