Department of Computer Science and Information EngineeringNational Cheng Kung University, TAIWAN
HANELLOOP AND JUMP INSTRUCTIONSConditional Jumps(cont’)
All conditional jumps are short jumps
¾The address of the target must within -128 to +127 bytes of the contents of PC
Jump if bit=1 and clear bitJBCJump if bit=^0JNBJump if bit=^1JBJump if CY=^0JNCJump if CY=^1JCJump if byte≠#dataCJNE reg,#dataJump if A≠byteCJNE A,byteDecrement and Jump if A≠^0DJNZJump if A≠^0JNZJump if A=^0JZActions8051 conditional jump instructionsInstructions