Hi, The following code does not work: static code BYTE InitArray[] _at_ 0x1234 = { 0x01, 0x02, 0x03, 0x04 }; Is there a way to put an initialized array at an absolute position in memory? Second similar question: I need to word-align several constants in memory (a DMA transfer need word-aligned addresses). The code of the previous question could help but I would like a more elegant solution... Thanks
Don't forget to use those <pre> and </pre> tags when posting code:
static code BYTE InitArray[] _at_ 0x1234 = { 0x01, 0x02, 0x03, 0x04 };
Thanks a lot, Yes, my constants are continuous. I managed to write them in ASM, adding some dummy bytes somewhere to align them, but as I frequently modify them for my developments I would prefeer to use C.
Thanks a lot,<br> <br> Yes, my constants are continuous. I managed to write them in ASM, adding some dummy bytes somewhere to align them, but as I frequently modify them for my developments I would prefeer to use C.<br>