gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Compiling and injecting code to be put in a WMB .nds

#153994 - yellowstar - Wed Apr 09, 2008 1:25 am

I am trying to compile and inject code to be put in a WMB .nds. But, I'm stuck. How do I setup a Makfile/project so it compiles c/c++/asm, and injects the code in the main function, to a specified location in the .nds?(This location would be at the end of the header)(Modding bytes at that location doesn't void RSA)

I do not want the whole 56K code injected. I ONLY want the code contained in main to be copied. So, if a=b would be in main, only a=b would be injected.

By the way, each processor executing this code would jump to wherever to would have started from the beginning, when it's done with everything else.