>I simply require a way to fix absolutely this jump table in memory. >Whether I write it in C or assembler seems to me to be irrelevant, as is >using an array of pointer to functions, because I still have the problem >of fixing these at absolute addresses. > >If anyone knows a way to do this, I would very much appreciate it.
The attachment illustrates what I mean by jumptable in asm, and its usage (see main). Address of .mysection was fixed to 0x00FF by passing it to the linker through avr-gcc ("-Wl,--section-start,.mysection=0xFF00"). It of course can be a separate asm file, and the individual lines can be generated by a handy macro; but those are only unimportant details. Enjoy! ;-) JW _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list