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 > DTCM problems

#169449 - FluBBa - Sat Jul 11, 2009 12:01 pm

I'm trying to optimise my emulator and though I put the opcode jump table in DTCM but it didn't work (tested on No$GBA and HW).
Looking into it a little deeper it seem the section is zeroed out where it's supposed to be copied from, in the link map it says it's load address is 0x0201f0f4. When a added a breakpoint for writes to 0x0B00000 in No$GBA it actually shows the coping of data from 0x0201f0f4 to 0x0B00000, and the area at 0x0201f0f4 is just zeroes for the amount of data I use in my DTCM section.
I just used ".section .dtcm" to declare my section and this is for ARM asm.
So is this how it's supposed to work or is it a bug?
_________________
I probably suck, my not is a programmer.

#169451 - Dwedit - Sat Jul 11, 2009 1:51 pm

It's wrong.
Use .section .dtcm, "ax", %progbits

I have no idea why the designers of GNU Assembler didn't make that the default.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#169452 - FluBBa - Sat Jul 11, 2009 1:58 pm

Thank you very much =)
_________________
I probably suck, my not is a programmer.