GCC (AVR) Assembly: Subtract label address?

Note: I'm not that familiar with AVR assembler, this is just what I could gauge from reading a few webpages. I'm also assuming that your addresses are 16-bit.

Note: I'm not that familiar with AVR assembler, this is just what I could gauge from reading a few webpages. I'm also assuming that your addresses are 16-bit. ; Address you wish to subtract the label from in R16 (low):R17 (high) SUBI R16, LOW(LABEL) SBCI R17, HIGH(LABEL) ; Omit this part if you have.

Subi r16, pm_lo8(LABEL) sbci r17, pm_hi8(LABEL) as answered on avrfreaks: avrfreaks.net/index.php?name=PNphpBB2&fi... reference document: sourceware.org/binutils/docs-2.21/as/AVR....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions