INC - Increment Register |
Description: The INC instruction increments the value of associated operands by 1. If the current value of operands is 255, then the operand value is reset to 0 and then incremented further. |
Syntax: INC Operand |
Example: INC A INC Rn INC @RAM |
JB - Jump if Bit Set |
Description: The JB instruction jumps to the address indicated, if the bit address indicated in the instruction is set. If associated bit is not set the program will continued with the next statement. |
Syntax: JB bit_addr, prog_addr |
Example: JB ACC.2, LABEL JB P1.1, LABEL |
JBC - Jump if Bit Set and Clear Bit |
Description: The JBC instruction jumps to the indicated address if the bit address indicated is set or 1. ecrements the value of associated operands by 1. If associated bit address is not set, the designated bit address is cleared and the program will continued with the next statement. |
Syntax: DEC Operand |
Example: JBC ACC.2, LABEL JBC P1.1, LABEL |
JC - Jump if Carry Set |
Description: The JC instruction jumps to the indicated address if the Carry Flag is set or 1. If the Carry Flag is not set, the program will continued with the next statement. |
Syntax: JC Rel_Addr |
Example: JC LABEL |
JMP - Jump to Data Pointer + Accumulator |
Description: The JMP instruction unconditionally jumps to the address represents by sum of value of Accumulator and the 16-bit DPTR register. |
Syntax: JMP @A + Rel_Addr |
Example: JMP @A+DPTR |
JNB - Jump if Bit Not Set |
Description: The JNB instruction jumps to the address indicated, if the bit address indicated in the instruction is not set or zero. If associated bit is set or 1 the program will continued with the next statement. |
Syntax: JNB bit_addr, prog_addr |
Example: JNB ACC.2, LABEL JNB P1.1, LABEL |
JNC - Jump if Carry Not Set |
Description: The JNC instruction jumps to the indicated address if the Carry Flag is not set or zero. If the Carry Flag is set or 1, the program will continued with the next statement. |
Syntax: JNC Rel_Addr |
Example: JNC LABEL |
JNZ - Jump if Accumulator Not Zero |
Description: The JNZ instruction jumps to the indicated address if the Accumulator has any value other than zero. If the Accumulator contains Zero value, the program will continued with the next statement. |
Syntax: JNZ Rel_Addr |
Example: JNZ LABEL |
JZ - Jump if Accumulator Zero |
Description: The JZ instruction jumps to the indicated address if the Accumulator contains zero value. If the Accumulator contains other Zero value or any of the bit of Accumulator is 1, the program will continued with the next statement. |
Syntax: JZ Rel_Addr |
Example: JZ LABEL |
No comments:
Post a Comment