#50340 - mokoloko - Mon Aug 08, 2005 9:15 am
Hello:
I'm new to the DS coding but I have done some simple things for the GBA.
I have downloaded the devkitpro, and the ndslib and now I'm following the Doublec's tutorials.
I have compiled the first sample (Demo1) and I have flashed (demo1.nds.gba) it to a cart and it works on the real hardware (I have flashed my DS with the patched firmware.
Then I have tried the WMB application and I sended the program (demo1.nds) to the DS and it worked! I was surprised because I though that I must do some changes in the code to be able to run from the WiFi.
In the GBA you must change the start address and the address of the data segments to be on the RAM area, so I supossed that something similar happens on the DS, but this sample works without work.
Then I have tried more complex samples and demos from other people and they didn't worked.
I suposse that the Demo1 works because it doesn't access data outside from the executable, and if the DS copies the executable to the RAM it works, but if a program needs to read more data you need to prepare the data to the correct address.
So my question is how could I make a program that runs from the WiFi? I prefer to use the wifi to test my programs beacuse now they will be only a few KBs in size, and this way you don't need to flash one time and another all the times that you make a simple change to the code.
Probably with something like a define or changing some lines in the linker script you could have three diferent versions of your program.
I'm looking for something that let you make:
1.- A WiFi version. It's limited by the RAM, but it's very fast to test.
2.- A Flash version. It's the best way to reales a final work.
3.- A mixed version. You could flash the data (graphics, music, etc) to the flash and then send by WiFi the executable code. The program will read the data from the flash cart, but the code from ram. This is an ideal solution fro developing because the data won't change very often from built to built, but the code will change constantly, so you have a fast way to test your program with less limitations that the WiFi version.
I think that this can be done simply changing some information in the code, but I don't know what. As I have said today it's my first day coding on the DS and I haven't found any info about this.
Is out there any document that tells something about this? Anybody knows to do that?
I know that SCUMMVM uses something like that, because the author has released a WiFi version and a Flash version...
Thanks a lot. I hope that somebody could help me...
I'm new to the DS coding but I have done some simple things for the GBA.
I have downloaded the devkitpro, and the ndslib and now I'm following the Doublec's tutorials.
I have compiled the first sample (Demo1) and I have flashed (demo1.nds.gba) it to a cart and it works on the real hardware (I have flashed my DS with the patched firmware.
Then I have tried the WMB application and I sended the program (demo1.nds) to the DS and it worked! I was surprised because I though that I must do some changes in the code to be able to run from the WiFi.
In the GBA you must change the start address and the address of the data segments to be on the RAM area, so I supossed that something similar happens on the DS, but this sample works without work.
Then I have tried more complex samples and demos from other people and they didn't worked.
I suposse that the Demo1 works because it doesn't access data outside from the executable, and if the DS copies the executable to the RAM it works, but if a program needs to read more data you need to prepare the data to the correct address.
So my question is how could I make a program that runs from the WiFi? I prefer to use the wifi to test my programs beacuse now they will be only a few KBs in size, and this way you don't need to flash one time and another all the times that you make a simple change to the code.
Probably with something like a define or changing some lines in the linker script you could have three diferent versions of your program.
I'm looking for something that let you make:
1.- A WiFi version. It's limited by the RAM, but it's very fast to test.
2.- A Flash version. It's the best way to reales a final work.
3.- A mixed version. You could flash the data (graphics, music, etc) to the flash and then send by WiFi the executable code. The program will read the data from the flash cart, but the code from ram. This is an ideal solution fro developing because the data won't change very often from built to built, but the code will change constantly, so you have a fast way to test your program with less limitations that the WiFi version.
I think that this can be done simply changing some information in the code, but I don't know what. As I have said today it's my first day coding on the DS and I haven't found any info about this.
Is out there any document that tells something about this? Anybody knows to do that?
I know that SCUMMVM uses something like that, because the author has released a WiFi version and a Flash version...
Thanks a lot. I hope that somebody could help me...