Author Topic: ZEXALL z80 tests...  (Read 8281 times)

0 Members and 1 Guest are viewing this topic.

Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.137
  • Country: br
    • Awards
ZEXALL z80 tests...
« on: 17:32, 01 July 14 »
I was reading the PC-CPC thread in CPC-Rulez, and the last beta pass the ZEXALL tests. Great Work Demoniak! :)

And in the CPC-Power page appears than a few months ago all the tests were passed by a real CPC, all the zxism from previous version have been eliminated, now is an exclusive z80 test.

CPC++ and Sugarbox pass those tests too. And i will tell to Bruno for adding PC-CPC to that list and if i remember well, CPCBox passed those tests too.

Has other emu authors tested his z80 emulation against them?

PS: CPMBox pass those tests too ;)
« Last Edit: 17:54, 01 July 14 by SyX »
like
0
No reactions

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
    • Awards
Re: ZEXALL z80 tests...
« Reply #1 on: 21:14, 01 July 14 »
JavaCPC passes all tests except this one:

Code: [Select]
ldd<r> (1)....................  OK
ldd<r> (2)....................  ERROR **** crc expected:39dd3de1 found:21a2bb41
ldi<r> (1)....................  OK
ldi<r> (2)....................  OK
« Last Edit: 01:47, 02 July 14 by Devilmarkus »
like
0
No reactions
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.336
  • Country: gb
    • Unofficial Amstrad WWW Resource
    • Awards
Re: ZEXALL z80 tests...
« Reply #2 on: 21:57, 01 July 14 »
my wip of arnold uses "inkz80" emulation core written by a friend.

This z80 emulation passes zexall and all the other tests including the recent findings for scf/ccf.
But of course my wip is not released yet - it's been many years in development!  :laugh:

like
0
No reactions
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
    • Awards
Re: ZEXALL z80 tests...
« Reply #3 on: 01:41, 02 July 14 »
Yippieehhhhh....

Code: [Select]
CP/M 2.2 - Amstrad Consumer Electronics plc

A>zexall
Z80 instruction exerciser
ldd<r> (1)....................  OK
ldd<r> (2)....................  OK
ldi<r> (1)....................  OK
ldi<r> (2)....................  OK
neg...........................  OK
<rrd,rld>.....................  OK
<rlca,rrca,rla,rra>...........  OK
shf/rot (<ix,iy>+1)...........  OK
shf/rot <b,c,d,e,h,l,(hl),a>..  OK
<set,res> n,<bcdehl(hl)a>.....  OK
<set,res> n,(<ix,iy>+1).......  OK
ld (<ix,iy>+1),<b,c,d,e>......  OK
ld (<ix,iy>+1),<h,l>..........  OK
ld (<ix,iy>+1),a..............  OK
ld (<bc,de>),a................  OK
Tests complete
A>█

Thanks SyX for sending me the quick SNA for testing these instructions quickly :)
« Last Edit: 01:44, 02 July 14 by Devilmarkus »
like
0
No reactions
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 17.118
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
    • Awards
Re: ZEXALL z80 tests...
« Reply #4 on: 11:32, 02 July 14 »
This may be a naive question, but does this test have any practical significance?
like
0
No reactions

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 4.029
  • Country: fr
    • ?area=showdonations;u=4
    • Awards
Re: ZEXALL z80 tests...
« Reply #5 on: 11:47, 02 July 14 »
SyX, the master!  8)

As I know, if this test is not OK, you are not emulating properly the CPU.
(means, you emulator should have bugs related to that)
like
0
No reactions
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 17.118
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
    • Awards
Re: ZEXALL z80 tests...
« Reply #6 on: 11:49, 02 July 14 »
Yeah, that's my understanding too, however sometimes CPU features are so obscure and never to be encountered, so that you can get away with these bugs and never meet them...
like
0
No reactions

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 4.029
  • Country: fr
    • ?area=showdonations;u=4
    • Awards
Re: ZEXALL z80 tests...
« Reply #7 on: 12:13, 02 July 14 »
Or not.  ;D
like
0
No reactions
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 17.118
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
    • Awards
Re: ZEXALL z80 tests...
« Reply #8 on: 12:15, 02 July 14 »
Yeah, well, that's what I'm asking :D
like
0
No reactions

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
    • Awards
Re: ZEXALL z80 tests...
« Reply #9 on: 13:55, 02 July 14 »
JavaCPC passes them all, too, now...

Result:

Code: [Select]
CP/M 2.2 - Amstrad Consumer Electronics plc

A>zexall
Z80 instruction exerciser
<adc,sbc> hl,<bc,de,hl,sp>....  OK
add hl,<bc,de,hl,sp>..........  OK
add ix,<bc,de,ix,sp>..........  OK
add iy,<bc,de,iy,sp>..........  OK
aluop a,nn....................  OK
aluop a,<b,c,d,e,h,l,(hl),a>..  OK
aluop a,<ixh,ixl,iyh,iyl>.....  OK
aluop a,(<ix,iy>+1)...........  OK
bit n,(<ix,iy>+1).............  OK
bit n,<b,c,d,e,h,l,(hl),a>....  OK
cpd<r>........................  OK
cpi<r>........................  OK
<daa,cpl,scf,ccf>.............  OK
<inc,dec> a...................  OK
<inc,dec> b...................  OK
<inc,dec> bc..................  OK
<inc,dec> c...................  OK
<inc,dec> d...................  OK
<inc,dec> de..................  OK
<inc,dec> e...................  OK
<inc,dec> h...................  OK
<inc,dec> hl..................  OK
<inc,dec> ix..................  OK
<inc,dec> iy..................  OK
<inc,dec> l...................  OK
<inc,dec> (hl)................  OK
<inc,dec> sp..................  OK
<inc,dec> (<ix,iy>+1).........  OK
<inc,dec> ixh.................  OK
<inc,dec> ixl.................  OK
<inc,dec> iyh.................  OK
<inc,dec> iyl.................  OK
ld <bc,de>,(nnnn).............  OK
ld hl,(nnnn)..................  OK
ld sp,(nnnn)..................  OK
ld <ix,iy>,(nnnn).............  OK
ld (nnnn),<bc,de>.............  OK
ld (nnnn),hl..................  OK
ld (nnnn),sp..................  OK
ld (nnnn),<ix,iy>.............  OK
ld <bc,de,hl,sp>,nnnn.........  OK
ld <ix,iy>,nnnn...............  OK
ld a,<(bc),(de)>..............  OK
ld <b,c,d,e,h,l,(hl),a>,nn....  OK
ld (<ix,iy>+1),nn.............  OK
ld <b,c,d,e>,(<ix,iy>+1)......  OK
ld <h,l>,(<ix,iy>+1)..........  OK
ld a,(<ix,iy>+1)..............  OK
ld <ixh,ixl,iyh,iyl>,nn.......  OK
ld <bcdehla>,<bcdehla>........  OK
ld <bcdexya>,<bcdexya>........  OK
ld a,(nnnn) / ld (nnnn),a.....  OK
ldd<r> (1)....................  OK
ldd<r> (2)....................  OK
ldi<r> (1)....................  OK
ldi<r> (2)....................  OK
neg...........................  OK
<rrd,rld>.....................  OK
<rlca,rrca,rla,rra>...........  OK
shf/rot (<ix,iy>+1)...........  OK
shf/rot <b,c,d,e,h,l,(hl),a>..  OK
<set,res> n,<bcdehl(hl)a>.....  OK
<set,res> n,(<ix,iy>+1).......  OK
ld (<ix,iy>+1),<b,c,d,e>......  OK
ld (<ix,iy>+1),<h,l>..........  OK
ld (<ix,iy>+1),a..............  OK
ld (<bc,de>),a................  OK
Tests complete
A>█

[attachimg=1]

« Last Edit: 14:14, 02 July 14 by Devilmarkus »
like
0
No reactions
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
    • Awards
Re: ZEXALL z80 tests...
« Reply #10 on: 14:12, 02 July 14 »
Oh... and of course this is for you, SyX:

Spoiler: ShowHide
[attachimg=1]


like
0
No reactions
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.137
  • Country: br
    • Awards
Re: ZEXALL z80 tests...
« Reply #11 on: 14:20, 02 July 14 »
FANTASTIC WORK MARKUS!!! :D :D :D

@Arnoldemu: Release the new version of arnold!!! 40Crisis uses it for his great projects ;)

@Gryzor: Yes, i have this special skill to generate code that make visible these bugs a lot, the funnier one was one that changed the left eye in the pacman ghost by O in CPCs and emulators that pass those tests, while in the ones failing the ghosts looked perfectly, i will always remember those "superfun" debugging afternoons :)
like
0
No reactions

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.939
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
    • Awards
Re: ZEXALL z80 tests...
« Reply #12 on: 14:27, 02 July 14 »
Yeah, that's my understanding too, however sometimes CPU features are so obscure and never to be encountered, so that you can get away with these bugs and never meet them...


Are you referring to "The Eternal Light" test?  :-X
like
0
No reactions
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 17.118
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
    • Awards
Re: ZEXALL z80 tests...
« Reply #13 on: 15:25, 02 July 14 »

Are you referring to "The Eternal Light" test?  :-X


None in particular, just saying...
like
0
No reactions

Offline Kris

  • 6128 Plus
  • ******
  • Posts: 589
  • Country: fr
  • Team Impact
    • Awards
Re: ZEXALL z80 tests...
« Reply #14 on: 15:29, 02 July 14 »
Great job ! Congrats  ;)
like
0
No reactions

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 785
  • Country: au
  • WinAPE Developer
    • WinAPE
    • Awards
Re: ZEXALL z80 tests...
« Reply #15 on: 03:10, 04 July 14 »
I'm pretty sure this isn't the latest version of the ZEXALL tests since it doesn't appear to be testing the SCF/CCF flag effects, which are definitely NOT emulated by my latest JEMU core, which also passes all the tests.
like
0
No reactions

Offline Kris

  • 6128 Plus
  • ******
  • Posts: 589
  • Country: fr
  • Team Impact
    • Awards
Re: ZEXALL z80 tests...
« Reply #16 on: 10:33, 04 July 14 »
Where can we find the latest version ?
like
0
No reactions

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
    • Awards
Re: ZEXALL z80 tests...
« Reply #17 on: 12:55, 04 July 14 »
Because CPC-Power captcha, I'll attach the dsk image here:

like
0
No reactions
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline cngsoft

  • CPC6128
  • ****
  • Posts: 184
  • Country: es
    • Awards
Re: ZEXALL z80 tests...
« Reply #18 on: 00:48, 08 July 14 »
CPCE 1.94 doesn't handle ZEXALL too well...



However, something curious happens in an alt. version I tried to build back in the day, when the internal workings of Z80's MEMPTR register were discovered and explained:



It gets several instructions right where the official binary doesn't, but the four "aluop" still fail, albeit with different values.

Not that it matters too much; CPCE ran into a dead end years ago, when I ran out of space in the 16-bit binary. All attempts to add new stuff have been either limited to the 32-bit binaries (DOS and Win32) or had to be commented out because they led to excessively different behaviors. Yet another reason to scrap CPCE and rewrite it from scratch :-(
like
0
No reactions
(if you can't see the banner right now my server is currently offline)

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.336
  • Country: gb
    • Unofficial Amstrad WWW Resource
    • Awards
Re: ZEXALL z80 tests...
« Reply #19 on: 11:13, 08 July 14 »
Concentrate on PS4CPC ;)

Your work on BB4CPC was and still is fantastic!
like
0
No reactions
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline steve

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.263
  • Country: gb
    • Awards
Re: ZEXALL z80 tests...
« Reply #20 on: 13:43, 08 July 14 »
PS4CPC, yes please, I would very much like to see a CPC emulating a playstation.  :laugh:
like
0
No reactions