#44521 - Mollusk - Thu Jun 02, 2005 2:36 pm
Hi everyone,
I've been using an old template and old startup files for a while now, and it worked out pretty well. With DevkitARM r12, I decided to switch to the new template at the same time. First got a problem with the OAM (my DMA copy doesn't work anymore for it, I have to copy everything to it with a large loop...), and now another problem :
My saves (on the gba SRAM) used to work perfectly, and now I can only read them... If I create a save file in notepad, write stuff to it, then load it from the DS, it works... If I take that save file back to the PC with the linker, there's the text I had written in it plus stuff follwing (I suppose the linker takes all the found data for the save, not just the beginning).
But if try writting to it with SRAM[0] = 's', for example (or whatever number), the save becomes :
and stuff after that...
Any idea why ? (writing at a diff?rent offset doesn't change anything).
Did something change in the devkit files concerning Sram ?
Thanks in advance !
Mol
Edit : problem solved, thanks to DesktopMa :
<DesktopMa> iaccess: 0x06606333 daccess: 0x36033333
<DesktopMa> in ds_arm9_crt0.s
<DesktopMa> make it by writing make CRT=arm9_crt
I've been using an old template and old startup files for a while now, and it worked out pretty well. With DevkitARM r12, I decided to switch to the new template at the same time. First got a problem with the OAM (my DMA copy doesn't work anymore for it, I have to copy everything to it with a large loop...), and now another problem :
My saves (on the gba SRAM) used to work perfectly, and now I can only read them... If I create a save file in notepad, write stuff to it, then load it from the DS, it works... If I take that save file back to the PC with the linker, there's the text I had written in it plus stuff follwing (I suppose the linker takes all the found data for the save, not just the beginning).
But if try writting to it with SRAM[0] = 's', for example (or whatever number), the save becomes :
Code: |
x8 ?? GB |
Any idea why ? (writing at a diff?rent offset doesn't change anything).
Did something change in the devkit files concerning Sram ?
Thanks in advance !
Mol
Edit : problem solved, thanks to DesktopMa :
<DesktopMa> iaccess: 0x06606333 daccess: 0x36033333
<DesktopMa> in ds_arm9_crt0.s
<DesktopMa> make it by writing make CRT=arm9_crt