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.

Graphics > MapEd problem

#30219 - Jau - Mon Nov 29, 2004 5:06 pm

When I try to export a map with MapEd it appears as name of array arrayMap[%arraySize%]ALIGN4 = ...

What does mean ALIGN4 and what is it for?
It gives me a compilation error, but in the HEL examples I have seen similar words without giving compilation error. Do I have to write it or can I pass without it?

Thanks

#30222 - identitycrisisuk - Mon Nov 29, 2004 5:46 pm

I wanna be a nice guy and help you out but you really should put ALIGN4 into the search function on here you'll find stuff about this. The long and the short of it is that you need to put this in code somewhere:
Code:
#define ALIGN4 __attribute__((aligned (4)))

It's about aligning the data so it can be copied with DMA easier I think (but like I said, search for a better definition than mine).
_________________
Code:
CanIKickIt(YES_YOU_CAN);