crazyjul Posted August 16, 2005 Share Posted August 16, 2005 I'd like to work on the emulator, but when I try to compile, nmake complains about missing file mmu.c. As it seems gpu.c is also lacking. Any ideas?? Thanks Crazyjul Link to comment Share on other sites More sharing options...
doublec Posted August 16, 2005 Share Posted August 16, 2005 Are you using the Darcs repository? Are you using the VC6 project files? Don't use the Makefile, it's out of date. Link to comment Share on other sites More sharing options...
crazyjul Posted August 17, 2005 Author Share Posted August 17, 2005 I'm currently working with darcs files I've tried both. With nmake, files are missing, with vc6 project, symbols are missing ( symbols seems to come from mmu.c ) I've really no idea about what happens Crazyjul Link to comment Share on other sites More sharing options...
doublec Posted August 17, 2005 Share Posted August 17, 2005 I'll take a look tonight and see if I can find the problem. In the meantime you could try unpulling the latest patch: darcs unpull from within your darcs repository. Then try to rebuild. Link to comment Share on other sites More sharing options...
crazyjul Posted August 17, 2005 Author Share Posted August 17, 2005 After unpulling the archive, it's working. Maybe you've forgot to put a file in the repository? Thanks for your fast answer. Crazyjul Link to comment Share on other sites More sharing options...
crazyjul Posted August 17, 2005 Author Share Posted August 17, 2005 To complete, when I compile the DS dll I get those link errors : dsmmumain.obj : error LNK2019: unresolved external symbol _sram_read referenced in function _MMUMainrdBdsmmusub.obj : error LNK2001: unresolved external symbol _sram_readdsmmumain.obj : error LNK2019: unresolved external symbol _sram_write referenced in function _MMUMainwrBdsmmusub.obj : error LNK2001: unresolved external symbol _sram_writeglds.obj : error LNK2001: unresolved external symbol _sram_saveglds.obj : error LNK2001: unresolved external symbol _sram_load.\..\..\Build\Debug/ds.dll : fatal error LNK1120: 4 unresolved externals Hope it help crazyjul Link to comment Share on other sites More sharing options...
crazyjul Posted August 17, 2005 Author Share Posted August 17, 2005 Finally found what was wrong!!! The file sram.c was lacking in the project. Thanks for your help Do you want me to submit a patch? Link to comment Share on other sites More sharing options...
doublec Posted August 17, 2005 Share Posted August 17, 2005 That would be great, thanks! The sram patch was a contribution I received and I applied the patch, but after I tested it I forgot to save and record the project. Link to comment Share on other sites More sharing options...
crazyjul Posted August 18, 2005 Author Share Posted August 18, 2005 That would be great, thanks! The sram patch was a contribution I received and I applied the patch, but after I tested it I forgot to save and record the project.<{POST_SNAPBACK}> With the sram fixed, I've made a bit of cleaning. I've remove nearly all warnings.I also fix declarations of all function. I think I've found a bug: In the sqrt intruction, you're doing : src=arm7reg.r[0]; arm7reg.r[0]= (u32) sqrt(src); As far as I know, this sqrt is made on integer and not float. Am I right??If yes, as math.h was not include, sqrt was returning a float, but was treated as an int. IF no, the code should work,but it's better to cast the register as a float before calling sqrt. Hope it help I've send you the patchs with darcs send command. Crazyjul Link to comment Share on other sites More sharing options...
doublec Posted August 18, 2005 Share Posted August 18, 2005 Thanks for the fixes. I've not yet received the patch though. If you are on Windows the automatic sending of the patch sometimes doesn't work. I recommend using the '-o' option to darcs send: darcs send -o file.patch http://www.double.co.nz/nintendo_ds/dsemu Then zip up the file.patch (so the emailer doesn't corrupt it on sending by inserting line breaks) and email me the zip file. I've not yet looked at the bios implementations for the math functions so i'll take a look when I receive you patch. Thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now