I'm wondering, Does assembler support if staments? (like a C program) Tried something very simple:
org 0h sjmp BEGIN org 50h BEGIN: IF R0 == #45 MOV A, #54 CPL A ELSE MOV A, #45 CPL A ENDIF END
IF R0 == can not be done ITS CODE, you can not do an not an IF on a register cjne AR0,#45,not45 mov a,#-54 sjmp done not45: mov a,#-45 done: