This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can I use HIGH in a simple relocatable expression?

Hi Everyone,

I am trying to get the following to assemble, but the assembler gives me error A20:-

defins_XSEG	segment xdata
		rseg    defins_XSEG

rx_buff:	ds	200h
tx_buff:	ds	200h

rx_msb EQU	HIGH rx_buff
rx_lsb EQU	LOW  rx_buff
tx_msb EQU	HIGH tx_buff
tx_lsb EQU	LOW  tx_buff


Can HIGH (and LOW) be used here or have I lost my mind and missed the obvious?

Many Thanks
Alex F.

Parents
  • I should even try to answer this as I haven't used this assembler. But I suspect that this would work if you were actually producing code with your HIGH. But that to generate an intermediate symbol value will not work. Try to generate some assembler code which uses the 'HIGH rx_buff' as a value and see if that works.

Reply
  • I should even try to answer this as I haven't used this assembler. But I suspect that this would work if you were actually producing code with your HIGH. But that to generate an intermediate symbol value will not work. Try to generate some assembler code which uses the 'HIGH rx_buff' as a value and see if that works.

Children