cpl instruction in 8051 ljmp instruction in 8051 cjne instruction in 8051 inc instruction in 8051 subb instruction in 8051 ret instruction in 8051 jnb instruction in 8051 8051 instruction set
JZ and JNC instructions both jump forward. In line 04, the instruction "JZ NEXT" has opcode of '60' and operand of '03' at the program counter [PC] address Instruction: JZ F7H Opcode: 60H RegBank Bytes: 2 Cycles: 2 Flags Affected: none #0 Program Memory CY AC PO RSIRSO OV ' P Data Memory 0203 I-IuliI-I0202 0201Description: JZ branches to the address indicated by reladdr if the Accumulator contains the value 0. If the value of the Accumulator is non-zero program 8051 Instruction Set: DIV Description: Divides the unsigned value of the Accumulator by the unsigned value of the "B" register. The resulting quotient is Instruction : JZ F7H Opcode : 60H Reg . Bank # 0 Bytes : 2 Cycles : 2 Flags Affected : none CY AC FO RS1RSO OV PSWI 00 Р Data Memory DOH 31 30 2F Reg . The JNZ instruction transfers control to the specified address if the value in the accumulator is not 0. If the accumulator has a value of 0, the next In the 8051, the loop action is performed by the instruction “DJNZ reg, label”. In this instruction, the register is decremented; if it is not zero, it jumps
You need to be a member of Quantum Forum V to add comments!
Join Quantum Forum V