I want to execute the following instructions (from avr-objdump) with inline ASM in an ISR:
tx_at = tx_buf; 14a: 8a e0 ldi r24, 0x0A ; 10 14c: 93 e0 ldi r25, 0x03 ; 3 14e: 90 93 03 01 sts 0x0103, r25 ; 0x800103 <tx_at+0x1> 152: 80 93 02 01 sts 0x0102, r24 ; 0x800102 <tx_at>
where the variables are declared as:
volatile static uint8_t *tx_at; volatile uint8_t tx_buf;
However I can't find the right constraints for the ASM input parameters in order to somehow arrive at the 0x0A and 0x03 values. I already figured that they must be the memory address of the array, but I have no clue how to get that address into the ASM code. So how can I do that?