------------2010.06.12------------
1. Open hidden features inside NDS File System Window (Ctrl+N)
?NDS AutoLoad Module Editor: You can add your own module.
?Intro: Execute a custom multimedia demo before the game run. (in AutoLoad Module Editor)
?NEF Symbol Table: Display SDK Function Symbols with Debug version of NO$GBA.
And some minor changes.
2. Added Tile Composer(Tools Menu)
3. Added NDS Memory manager Editor(OS_GetInitArenaLo/OS_GetInitArenaHi)
this feature can allocate a memory segment for you own use
4. Search for Nitro SDK function entry (under Locate menu of NDS File System Window)
download CrystalTile2
*****************************
*** AutoLoad Module Usage ***
*****************************
AutoLoad Module does the operations of autoload function.
It will copy a code segment of arm9.bin to given memory address.
If you used static variables. They will be initialize after copying.
Just like in C: static int temp;
Example:
# C #
int getvalue()
{
static int value;
return value;
}
# ASM #
00000000 ldr r0,=value
00000004 bx lr
00000008 [value]
The advantage of static variables is reducing the code size.
Real code is 00000000-00000004 (4bytes), but 00000008 will be initialized by autoloader.
This function likes overlay function.
If you want to add your own code segment, you must allocate a segment of memory (CT2 can allocate 01FF section automatically. But it's limited to 02000000).
You can use Memory manager Editor feature to do this.
***************************
*** Memory Editor Usage ***
***************************
Open a rom, then press Ctrl+N open the NDS File System Information window.
Find the NDS AutoLoad Module Editor command under Edit menu.
Then click the Add button in the dialog, select the module you want to add in the Open dialog.
And fill in the Load Address and Static Data Size (input 0 if none) fields in the following dialog.
Click OK when done.
Note: If the result arm9.bin file size exceeds the original one,
CT2 will prompt to move the arm9.bin file.
**************************
*** Intro Editor Usage ***
**************************
Click the Intro button on the AutoLoad Module window.
CT2 will search for required Nitro SDK function entries.
Functions marked with "*" have replacements, they can be used even not found in the rom.
Click OK will enter the DS Intro Editor window.
Set images for both screen (256x192) in the Picture section,
and set background music in the Sound section.
Click Add when done.
You'll see a preview on the right of the window (note: DS color depth is 15bit).
The final result might be different from the preview.
Click Insert will add the intro to the rom.
1. Open hidden features inside NDS File System Window (Ctrl+N)
?NDS AutoLoad Module Editor: You can add your own module.
?Intro: Execute a custom multimedia demo before the game run. (in AutoLoad Module Editor)
?NEF Symbol Table: Display SDK Function Symbols with Debug version of NO$GBA.
And some minor changes.
2. Added Tile Composer(Tools Menu)
3. Added NDS Memory manager Editor(OS_GetInitArenaLo/OS_GetInitArenaHi)
this feature can allocate a memory segment for you own use
4. Search for Nitro SDK function entry (under Locate menu of NDS File System Window)
download CrystalTile2
*****************************
*** AutoLoad Module Usage ***
*****************************
AutoLoad Module does the operations of autoload function.
It will copy a code segment of arm9.bin to given memory address.
If you used static variables. They will be initialize after copying.
Just like in C: static int temp;
Example:
# C #
int getvalue()
{
static int value;
return value;
}
# ASM #
00000000 ldr r0,=value
00000004 bx lr
00000008 [value]
The advantage of static variables is reducing the code size.
Real code is 00000000-00000004 (4bytes), but 00000008 will be initialized by autoloader.
This function likes overlay function.
If you want to add your own code segment, you must allocate a segment of memory (CT2 can allocate 01FF section automatically. But it's limited to 02000000).
You can use Memory manager Editor feature to do this.
***************************
*** Memory Editor Usage ***
***************************
Open a rom, then press Ctrl+N open the NDS File System Information window.
Find the NDS AutoLoad Module Editor command under Edit menu.
Then click the Add button in the dialog, select the module you want to add in the Open dialog.
And fill in the Load Address and Static Data Size (input 0 if none) fields in the following dialog.
Click OK when done.
Note: If the result arm9.bin file size exceeds the original one,
CT2 will prompt to move the arm9.bin file.
**************************
*** Intro Editor Usage ***
**************************
Click the Intro button on the AutoLoad Module window.
CT2 will search for required Nitro SDK function entries.
Functions marked with "*" have replacements, they can be used even not found in the rom.
Click OK will enter the DS Intro Editor window.
Set images for both screen (256x192) in the Picture section,
and set background music in the Sound section.
Click Add when done.
You'll see a preview on the right of the window (note: DS color depth is 15bit).
The final result might be different from the preview.
Click Insert will add the intro to the rom.