Saturday, July 23, 2011

Jump Instructions


JZ LABEL ; JUMP IF A = 0
JNZ LABEL ; JUMP IF A <> 0
DJNZ Rn, LABEL ; DECREMENT AND JUMP IF REGISTER <> 0
CJNE A, DATA ; JUMP IF A <> DATA
CJNE REG, #DATA ; JUMP IF BYTE <> #DATA
JC LABEL ; JUMP IF CY = 1
JNC LABEL ; JUMP IF CY = 0
JB BIT, LABEL ; JUMP IF BIT = 1
JNB BIT, LABEL ; JUMP IF BIT = 0
JBC BIT, LABEL ; JUMP IF BIT = 1 AND CLEAR BIT
SJMP LABEL ; SHORT JUMP
LJMP LABEL ; LONG JUMP

No comments:

Post a Comment