On AVR GNU assembler I'm trying to create a label inside a macro definition.
I would like to create a macro, which has a private lable, or unique label inside - just to be able to jump inside macro definition and use multiple instances of this macro.
Below is example of what I'm trying to do.
.macro SetFlag par0
brid local_noInt
cli
lds RTMP,FLAGS_M
sbr RTMP,(1<<\par0)
sts FLAGS_M,RTMP
sei
rjmp local_end
local_noInt:
lds RTMP,FLAGS_M
sbr RTMP,(1<<\par0)
sts FLAGS_M,RTMP
local_end:
.endm