Jump to content
Visual Boy Advance-M
Dwedit

Fails Blargg's GB-Z80 CPU Test program

Recommended Posts

Blargg made a GB-Z80 testing program: http://h1.ripway.com/blargg/temp/gb_cpu_test.zip

 

Among the instructions that fail are:

E8: ADD SP,nn

F8: LD HL,SP+nn

 

Those instructions are quite deceptive with what they do to flags: They use the lower byte of SP added to the unsigned byte to determine halfcarry and carry flags. All other flags are cleared.

 

Several other tests also fail.

Share this post


Link to post
Share on other sites

The instructions are fixed in SVN. The only thing that doesn't work with Blargg's test roms is the read/write mem timing.

Share this post


Link to post
Share on other sites

Neat, maybe I'll try this with my unreleased GB emulator too. I love CPU test ROMs! blargg is my hero. Maybe I can convince him to write something for ARM7 and maybe ARM9? Although we do have armwrestler it doesn't check ldm/stm correctly and those can be surprisingly tricky. It'd be great if there was a test ROM for GBA timings as well.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×