各位高手,汇编中,相等转移怎么实现啊?比如 当寄存器A的值为#03h时候,转移到changdec 有么好的指令吗 谢谢 我是这样实现的
MOV R1,#0ffH MOV R2,#0ffH MOV R3,#10 GAINWAITAX: MOVX A,@DPTR ANL A,#03H CLR C SUBB A,#03H JNC GAININTERX jb gainbit,gainwaita0X DJNZ R1,GAINWAITAX MOV R1,#255 DJNZ R2,GAINWAITAX mov r2,#0ffh djnz r3,gainwaitaX setb gainbit CLR EX0 gainwaita0X: clr gainbit LJMP LOOP
可以吗 |