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 > Background program

#139584 - Aethel - Fri Sep 07, 2007 8:08 pm

Hello!

I am starting to learn the C language by programming on the DS.
There is one particular thing I want to do, and it involves running a program at the same time as a game (just like cheat devices and nitrohax/dipstar do, but the game's a ROM, not a official cart), however, I am pretty lost and I don't know what to do.

Would you mind to answer some questions I got here?

1. Is there any way to move code from its assigned location on the memory to the end of the memory? That way, it wouldn't get modified unless the game uses all of the ds's memory. Which they don't, because ARDS works.
I have seen in rebootlib how to place code in binary at a point of the memory (chism's bin). How can I turn my code to .bin? I only get .arm9, .arm7 and .nds

2. How can I do it so, on the game's main loop, my code gets executed too? Would I have to overwrite the game's code? How can I do that without making it crash?

I know this is a little complicated but since I have seen that custom cheat programs have been made, then maybe you can help me a little.

Thank you!

#139587 - tepples - Fri Sep 07, 2007 8:30 pm

Aethel wrote:
I am starting to learn the C language by programming on the DS.
There is one particular thing I want to do, and it involves running a program at the same time as a game (just like cheat devices and nitrohax/dipstar do, but the game's a ROM, not a official cart)

This isn't the place to ask for help running ROMs at all, even if you are running your own code at the same time.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#139591 - Aethel - Fri Sep 07, 2007 9:24 pm

tepples wrote:
Aethel wrote:
I am starting to learn the C language by programming on the DS.
There is one particular thing I want to do, and it involves running a program at the same time as a game (just like cheat devices and nitrohax/dipstar do, but the game's a ROM, not a official cart)

This isn't the place to ask for help running ROMs at all, even if you are running your own code at the same time.


Eh, that means you can't run ROM's with the rebootlib? Bad news for me then :(
Anyway, any idea on how to append my own code to, say, a homebrew web browser, for example? (Without having the source of the browser)

#139602 - tepples - Sat Sep 08, 2007 1:33 am

Aethel wrote:
Anyway, any idea on how to append my own code to, say, a homebrew web browser, for example? (Without having the source of the browser)

Which piece of proprietary freeware are you talking about? Links (for DSLinux) is GPL, and DSOrganize is GPL.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.