GameBoy Color, Information Wanted
Page 2 of 2

Author:  Dwedit [ Thu Jan 01, 2009 5:40 am ]
Post subject: 

Is it GBZ80 bugs that are stopping the games from running?

Author:  MottZilla [ Thu Jan 01, 2009 11:33 am ]
Post subject: 

I don't know yet. I've got to look through the CPU execution log to see what it is doing and try to determine what is not behaving as it should. That takes a long time.

I'm not really sure the CPU core is at fault in most cases, as it could be GB related registers not behaving the way the game wants, or possibly waiting for the couple interrupts I have not yet implemented.

I do know that Dr. Mario uses the Timer interrupt for sound updates and if you disable it, you get no music or sound. Dr. Mario is the game that works "best" for me right now. But basically it gets into the game and you can see one virus in the bottom right of the jar. I wait and wait and pills never appear at the bottom. I'm not sure why that is, but CPU core bugs I imagine are the problem there. But basically I've gotta go through huge logs or reexamine each opcode for potential errors.

I suppose I was a bit spoiled with the NES CPU Test rom which helped me debug the core on my NES emu.

Author:  tomaitheous [ Thu Jan 01, 2009 1:54 pm ]
Post subject: 

It might help to take a lot at mednafen's source? I still have my flash card for GB/C and can dig it out if you need some testing done (you write the code ofcourse - I've got a lot I'm still working on ;) )

Author:  MottZilla [ Thu Jan 01, 2009 4:01 pm ]
Post subject: 

Well I've been progressing today. Tetris and Asteroids are doing some stuff though it's hard to tell with Asteroids since it heavily uses sprites. But surprisingly Super Mario Land is looking the best so far as it runs through all 3 different demos of levels with no problems and keep going and going.

So I added some support for MBC-1 bank switching so I could run SML and test out some others. Where exactly can you find Mednafen's source? If the CPU core is readable then I might find that useful to see if I have any opcodes that are not working like they should because I didn't understand them or anything like that. I am finding some of those bugs out by testing various games and figuring out why they lock up or behave wrong.

One strange behavior I haven't looked into yet is in Tetris, the blocks are always the 2x2 square. I have a feeling though that it uses that Timer as a seed for randomization.

I also thought that Alleyway would be really easy to get working but it expects the serial transfer interrupt to get triggered and if it doesn't the game doesn't really cooperate at all.

Right now I'm mainly interested in Tetris, Asteroids, and Super Mario Land as they seem to do the most interesting things.

Author:  tomaitheous [ Thu Jan 01, 2009 5:16 pm ]
Post subject: - Right under change log is the link to the sources/builds. It's modified VBA source I believe.

Page 2 of 2 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group