I need to load a table address into the Z register.
Here's what worked in AVR Studio:
That doesn't work in gcc/gas. Here's the compile line in my makefile.
avr-gcc -c -mmcu=at90usb646 -I. -x assembler-with-cpp -Wa,-adhlns=$(<:.S=.lst),-gstabs
I've tried using hi8 and lo8 instead of high and low and I get the following error:
Error: invalid sections for operation on `TABL' and `L0'
I have no idea what that means.
Any help would be greatly appreciated. My project is at a halt.[/code]