SMS/Z80 Zexall
Posted: Fri Nov 03, 2017 7:03 am
Hi all,
I wondered if anyone else had worked on a Z80/SMS emulator that passes zexall sms?
I've managed to implement all the instructions and have a full pass on zexdoc (using the sdsc version as I do not currently implement the vdp).
Running zexall shows passes on all except this one:
I believe it has something to do with the bizarro bit n,(hl) undocumented flags, but from the documentation I can find online I think I've implemented MEMPTR in the instructions that affect it.
Looking at the source for the version of the test available at https://github.com/maxim-zhao/zexall-sm ... 1301-L1306 it looks like the instruction immediately before the instruction under test is ld sp,(nn), which I believe places addr+1 into MEMPTR. StackPointerBeforeTest is set to $C07E so would place $C07F into MEMPTR, so if I'm understanding correctly bits 3 and 5 of the high byte would not be set anyway, so shouldn't affect the flags.
Anyone able to help?
Also, has anyone got any build instrcutions for zexall? The latest source in that repo doesn't correspond with the latest released version, and I've never done anything with wla-dx to know where to start building it.
Cheers
I wondered if anyone else had worked on a Z80/SMS emulator that passes zexall sms?
I've managed to implement all the instructions and have a full pass on zexdoc (using the sdsc version as I do not currently implement the vdp).
Running zexall shows passes on all except this one:
Code: Select all
bit n,<b,c,d,e,h,l,(hl),a>... CRC:e283c214 expected:a937a161
Looking at the source for the version of the test available at https://github.com/maxim-zhao/zexall-sm ... 1301-L1306 it looks like the instruction immediately before the instruction under test is ld sp,(nn), which I believe places addr+1 into MEMPTR. StackPointerBeforeTest is set to $C07E so would place $C07F into MEMPTR, so if I'm understanding correctly bits 3 and 5 of the high byte would not be set anyway, so shouldn't affect the flags.
Anyone able to help?
Also, has anyone got any build instrcutions for zexall? The latest source in that repo doesn't correspond with the latest released version, and I've never done anything with wla-dx to know where to start building it.
Cheers