Menu

#194 label in asm macro

open
nobody
pdk (3) asm (1)
5
2023-12-29
2023-12-29
No

I have little part of code which require local label inside of the macro

    .rept 2
    sr      arg_A+1     ;// a>>=1;
    t0sn.io f,c                      
    add     a, arg_B+1  ;// result += b;
1$:
    sl      arg_B+1     ;// b<<=1
    .endm

which emits "Error: multiple definitions error or macro recursion error"
how to manage this situation?

SDCC 4.4.0 #14549 (MINGW64)

Discussion


Log in to post a comment.