Re: macro defining 16-bit address offset from and offset

2011-02-25 Thread Alan Modra
On Fri, Feb 25, 2011 at 03:16:08PM +0100, Skacore Systems wrote: > .byte \astart / 2 This is the problem. > as test.S -o test.o > test.S: Assembler messages: > test.S:26: Error: invalid sections for operation on `Manufacturer_ID_String' > and `L0' You can't divide a relocatable symbol like M

macro defining 16-bit address offset from and offset

2011-02-25 Thread Skacore Systems
Hello ! I'm trying to get working following simple macro for hours, but still no success. I just want to define two bytes, one containing length of the data and the other one an address - but in words, and therefore divided / 2 ( or >> 1) Is there any chances to get it working ? Please add me into