Fails Blargg's GB-Z80 CPU Test program

Post Reply
Dwedit
Junior Member
Posts: 19
Joined: Tue Mar 18, 2008 9:06 pm

Fails Blargg's GB-Z80 CPU Test program

Post by Dwedit »

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.

Last edited by Dwedit on Mon Jan 19, 2009 7:07 pm, edited 1 time in total.
mudlord
Senior Member
Posts: 306
Joined: Sun Feb 08, 2009 7:16 am

Fails Blargg's GB-Z80 CPU Test program

Post by mudlord »

I'm sure the active developers will try and solve these inaccuracies.....

Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

Fails Blargg's GB-Z80 CPU Test program

Post by Squall Leonhart »

what do you mean by active being bolded

 

.< are you saying i do nothing >.<

jbo_85
Junior Member
Posts: 8
Joined: Sun Mar 23, 2008 8:05 pm

Fails Blargg's GB-Z80 CPU Test program

Post by jbo_85 »

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

mudlord
Senior Member
Posts: 306
Joined: Sun Feb 08, 2009 7:16 am

Fails Blargg's GB-Z80 CPU Test program

Post by mudlord »

Nice, I really should get back into devel.

Exophase
Junior Member
Posts: 16
Joined: Sun Jun 07, 2009 9:56 pm

Fails Blargg's GB-Z80 CPU Test program

Post by Exophase »

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.

Post Reply