??? 11/21/06 13:39 Read: times |
#128357 - passing a #define to assembler within SDCC Responding to: ???'s previous message |
> I do not know to which extent other toolsets support this.
SDCC passes inline assembler through the precompiler (unless told otherwise), so: #define RALPH_SIZE 0x1000 #ifndef RALPH_SIZE # define RALPH_SIZE 0 #endif void dummy_eo_xdata(void) __naked { __asm .area XSEG_DUMMY (XDATA) _eo_xdata:: .ds RALPH_SIZE __endasm; }would be fine with SDCC. |