我试图在 PIC16F84 的汇编中模拟 IF() .... ELIF .... ENDIF,但它似乎不适用于多种用途。我试图在两个地方使用这样的东西,但是它给出了一些标签重复的错误。不应该在标签中替换宏中的参数吗?(真实姓名中的姓名:)
_f macro name
btfsc EQUAL,0
goto true_name
goto false_name
true_name:
endm
_lse macro name
goto next_name
false_name:
endm
_ndif macro name
goto next_name
next_name:
endm
;; usage example
_f label1
...
_lse label1
...
_ndif