Im looking for a feature that lets me write jumps relative the current program counter. For example when writing polling loops:
polling: SBRS flagregister,someflag
I don't want to define a new label for every such poll. I have also programmed PIC-microcontrollers and in mpasm you can use:
where $-1 means one step back, i.e. the current program counter value minus one.
Does anyone know if this is possible in AVR Assembler? If not, this is probably an nice feature for the developers of AVR Assembler to implement!
/Marcus Rudberg - Student Chalmers University of thecnology