Testing emulators using z80test-1.0. Quick results

Struggling with Fuse or trying to find an emulator with a specific feature. Ask your questions here.
User avatar
PeterJ
Site Admin
Posts: 6953
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Testing emulators using z80test-1.0. Quick results

Post by PeterJ »

MAME 0.227

Image
User avatar
Luzie
Manic Miner
Posts: 917
Joined: Fri May 01, 2020 2:07 pm

Re: Testing emulators using z80test-1.0. Quick results

Post by Luzie »

PeterJ wrote: Thu Jan 21, 2021 5:54 pm MAME 0.227

Image
Question on this test: Is this testing "Spectrum-exclusive-Tests" or "General Z80-Core-Tests"? I ask because if those Tests, where MAME 0.227 fails, are problem with MAMEs Z80 Core which can effect also other Systems in MAME like Arcade-Machines?
User avatar
TMD2003
Rick Dangerous
Posts: 2047
Joined: Fri Apr 10, 2020 9:23 am
Location: Airstrip One
Contact:

Re: Testing emulators using z80test-1.0. Quick results

Post by TMD2003 »

Furthermore, is this designed purely as an emulator test, or could it work just as well for real hardware?

I ask because my venerable old +2 almost certainly has a slight problem with the Z80, but every diagnostic test I've ever run on it, it's come up fine. I've got two +3s, one of which I know has a dodgy Z80, as when I swapped them over, it was the other +3 that had all the problems, so I might try it on those two and see what happens.
Spectribution: Dr. Jim's Sinclair computing pages.
Features my own programs, modified type-ins, RZXs, character sets & UDGs, and QL type-ins... so far!
User avatar
PeterJ
Site Admin
Posts: 6953
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Testing emulators using z80test-1.0. Quick results

Post by PeterJ »

TMD2003 wrote: Sun Jan 24, 2021 3:52 pm I ask because my venerable old +2 almost certainly has a slight problem with the Z80, but every diagnostic test I've ever run on it, it's come up fine. I've got two +3s, one of which I know has a dodgy Z80, as when I swapped them over, it was the other +3 that had all the problems, so I might try it on those two and see what happens.
For soak testing real hardware [mention]TMD2003[/mention] I would recommend this:

https://github.com/brendanalford/zx-diagnostics/wiki

You will also need this to put the ROM onto. Its very reasonably priced at under £30.

Peter
User avatar
TMD2003
Rick Dangerous
Posts: 2047
Joined: Fri Apr 10, 2020 9:23 am
Location: Airstrip One
Contact:

Re: Testing emulators using z80test-1.0. Quick results

Post by TMD2003 »

PeterJ wrote: Sun Jan 24, 2021 4:05 pm For soak testing real hardware @TMD2003 I would recommend this:

https://github.com/brendanalford/zx-diagnostics/wiki

You will also need this to put the ROM onto. Its very reasonably priced at under £30.
That's the diagnostic test that showed no problems. I am going to test Patrik's program (converted to WAV and loaded the normal way) and see if it gives a second opinion.
Spectribution: Dr. Jim's Sinclair computing pages.
Features my own programs, modified type-ins, RZXs, character sets & UDGs, and QL type-ins... so far!
User avatar
PeterJ
Site Admin
Posts: 6953
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Testing emulators using z80test-1.0. Quick results

Post by PeterJ »

The tests in this thread are for checking emulators. If it passed the diagnostic checks what makes you thing the machine is faulty?

This may need moving to a new thread.
User avatar
Luzie
Manic Miner
Posts: 917
Joined: Fri May 01, 2020 2:07 pm

Re: Testing emulators using z80test-1.0. Quick results

Post by Luzie »

PeterJ wrote: Thu Jan 21, 2021 5:54 pm MAME 0.227
Just for completeness, these are the test, where MAME 0.227 fails:

Image

Reported it to the MAMEDEV-Team in official MAMEDEV-Forum at: https://forum.mamedev.org/viewtopic.php?f=14&t=648
User avatar
PeterJ
Site Admin
Posts: 6953
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Testing emulators using z80test-1.0. Quick results

Post by PeterJ »

[mention]TMD2003[/mention]

Have you run the the test ROM built into the +3?

viewtopic.php?t=1572
User avatar
TMD2003
Rick Dangerous
Posts: 2047
Joined: Fri Apr 10, 2020 9:23 am
Location: Airstrip One
Contact:

Re: Testing emulators using z80test-1.0. Quick results

Post by TMD2003 »

I never even knew that existed, but I'll need a test that can run on any of the Amstrad-era machines at the very least.
Spectribution: Dr. Jim's Sinclair computing pages.
Features my own programs, modified type-ins, RZXs, character sets & UDGs, and QL type-ins... so far!
User avatar
ZjoyKiLer
Dizzy
Posts: 69
Joined: Thu Sep 09, 2021 3:20 pm

Re: Testing emulators using z80test-1.0. Quick results

Post by ZjoyKiLer »

The following are the results from my Z80 emulator, tested using my multi-system emulator (YUME). The Z80 core is a C89 library which I'll release soon under the terms of the LGPLv3 or later. It's fast, small, easy to understand and fully documented.

The Z80 core implements everything know about the Z80 and includes full support for the interrupt mode 0 and the special reset.

Patrik Rak's Zilog Z80 CPU Test Suite v1.0:
Image
Image
Image
Image
Image
Image

Frank D. Cringle's Z80 Instruction Set Exerciser (adaptated and improved by Patrik Rak and Jonathan Graham Harston):
Image
Image
Image
Image

Mark Woodmass' Z80 Test Suite:

Image
Image

Those tests can also be executed without a machine emulator. I've written a small utility to run them and output the resuls to the standard output, which will also be included in the official distribution of the library.
Jusalak
Drutt
Posts: 5
Joined: Sat May 18, 2024 4:47 pm

Re: Testing emulators using z80test-1.0. Quick results

Post by Jusalak »

Hello to all,

After many years I became interested in Z80 emulation again and I updated the Z80 core of my old DOS emulator Finspe, so that it passes Flags and MEMPTR tests; with regard to SCF/CCF it goes the NEC way.

I can't get through to the WOS forum, unfortunately, so at the moment it is only available through the link below:

https://drive.google.com/file/d/1inXEFu ... sp=sharing

It runs fine on DOSBox-X, if anyone has interest.
User avatar
Cheez26
Microbot
Posts: 124
Joined: Sat May 04, 2024 2:36 am
Location: Midwestern United States
Contact:

Re: Testing emulators using z80test-1.0. Quick results

Post by Cheez26 »

@Jusalak Welcome to the Spectrum Computing forums, and welcome back to the ZX Spectrum scene as well. I'm actually a new person here, so I don't really get why would anyone put a Z80 in a DOS context. Doesn't DOSBox just emulate MS-DOS or something? Just curious.
Chelsea E., a Speccy fan from the U.S.
Also a musician and a beginning games developer.
🏳️‍⚧️ p r i d e 🏳️‍🌈
Jusalak
Drutt
Posts: 5
Joined: Sat May 18, 2024 4:47 pm

Re: Testing emulators using z80test-1.0. Quick results

Post by Jusalak »

I wrote it in 1999 in x86 assembler, even then DOS was becoming obsolete, but PCs could run it easily. Even relatively modern PCs still can run it if booted in DOS (MS-DOS or FreeDOS), I tried it on 6th generation Intel.
User avatar
ZjoyKiLer
Dizzy
Posts: 69
Joined: Thu Sep 09, 2021 3:20 pm

Re: Testing emulators using z80test-1.0. Quick results

Post by ZjoyKiLer »

Jusalak wrote: Sat May 18, 2024 5:03 pm Hello to all,

After many years I became interested in Z80 emulation again and I updated the Z80 core of my old DOS emulator Finspe, so that it passes Flags and MEMPTR tests; with regard to SCF/CCF it goes the NEC way.

I can't get through to the WOS forum, unfortunately, so at the moment it is only available through the link below:

https://drive.google.com/file/d/1inXEFu ... sp=sharing

It runs fine on DOSBox-X, if anyone has interest.
Welcome @Jusalak,

Now that you are updating your emulator, I think you might be interested in taking a look at my test collections: viewtopic.php?t=10627
Jusalak
Drutt
Posts: 5
Joined: Sat May 18, 2024 4:47 pm

Re: Testing emulators using z80test-1.0. Quick results

Post by Jusalak »

Thank you. There are many interesting tests there.

Image

1st interrupt test result is quite expected - the emulator runs 1 frame before, since interrupts were disabled in the beginning.

Image

Tape edge results - what do these mean?

Image

Tapetest gave all tick-marks.

Image

Rak's Zilog Z80 CPU Test suite Z80 Full - the 4 failing ones are non-NEC SCF/CCF.

Image

Z80 Test Suite by Mark Woodmass passed all tests.
However, anything testing things related to contention is expected to produce inaccurate results, as in general is the case with emulators of the same era.
User avatar
ZjoyKiLer
Dizzy
Posts: 69
Joined: Thu Sep 09, 2021 3:20 pm

Re: Testing emulators using z80test-1.0. Quick results

Post by ZjoyKiLer »

Jusalak wrote: Mon May 20, 2024 4:16 pm Image

Tape edge results - what do these mean?
I'm not sure about Tape Edge, I think it tests the polarity of the audio signal.

BTW, join our Discord server, it's full of ZX Spectrum emulator authors and it's also the primary source of tests and info about new discoveries: https://discord.gg/x56wyxevxm

You can ask Woody about Tape Edge in Discord.
Post Reply