MathewWi / desmumewii

Automatically exported from code.google.com/p/desmumewii
GNU General Public License v3.0
0 stars 0 forks source link

The NDS_init() problem code #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have managed to trace the source of the current problem (where the screen
will freeze and do nothing) to a specific place.

The problem is actually in MMU_Init. This is the culprit:

for(i = 0x80; i<0xA0; ++i) {
    MMU_struct::MMU_MEM[0][i] = MMU.CART_ROM;
    MMU_struct::MMU_MEM[1][i] = MMU.CART_ROM;
}

After doing a lot more testing the problem was actually from the MMU_struct
access. I could get it to trace something to the screen up until that
point. A simple trace of "MMU_struct::MMU_MEM[0][0x80]" triggered the same
results.

I am still unsure as to WHY this is, though. Looking at the original
Desmume code, there is no difference. Of course, the original Desmume has
since updated the MMU code significantly. Trying to put in the new code
didn't work.

At least it's a bit more pinpointed, though. If that helps at all.

Original issue reported on code.google.com by dancinninjac on 13 Feb 2010 at 12:36

GoogleCodeExporter commented 9 years ago
Actually it does help quite a bit letting me know what I have to resolve. Thank 
you
very much :)

Original comment by castleva...@yahoo.com on 19 Feb 2010 at 6:35

GoogleCodeExporter commented 9 years ago
Thanks again for your hard work. I'm closing the issue now since we've all 
decided to
restart the port from the beginning using the latest official build of DeSmuMe.

Original comment by castleva...@yahoo.com on 6 Mar 2010 at 5:43