In this tutorial, we are going to learn about the various types of instructions (logical, arithmetic, branch) in computer organization.
Logical Instructions in Computer Organization:
A microprocessor’s logical instructions are simply those that carry out simple logical operations like OR, AND, XOR, and so on. The accumulator register is always the destination operand for instructions in Intel’s 8085 CPU. The logical operations are carried out on a bitwise level in this case. The accumulator register also stores the corresponding result.
Arithmetic Instruction in Computer Organization:
Arithmetic Instructions are orders that carry out basic arithmetic operations such as addition, subtraction, and a few more. In an 8085 microprocessor, the accumulator is normally the destination operand. In an 8085 microprocessor, the accumulator is normally the destination operand. The destination operand of the 8086 microprocessor does not have to be the accumulator, unlike the 8085 microprocessor.
Data Transfer Instructions :
The instructions for transferring data into a microcontroller are basically data transfer instructions. Types of data transfer instructions are –
a) Data is transferred from one register to another. Consider a situation in which you must do binary addition.
b) Data will go from the register to the specified memory location in this data transfer.
c) Memory to Register: Data will move from memory to the register in this data transfer. Consider the case when the supplied location is 201k and you need to load data to the accumulator from this memory location.
d) Data will move to the immediate supplied register in this constant to register data transfer. Consider the following scenario: It is 05, and you must load data into the accumulator.
Branching Instructions in Computer Organization:
The act of moving execution to a different instruction sequence as a result of executing a branch instruction is branching.
The following are the three types of branching instructions:
- Jump Instructions — Based on the provided flag, the jump instruction transfers the program sequence to the memory address given in the operand. Unconditional and conditional jump instructions are the two forms of jump instructions.
- Call Instructions – A call instruction sends the program sequence to the operand’s memory address. The address of the next instruction following CALL is pushed onto the stack before transferring. Unconditional and conditional call instructions are the two forms of call instructions.
- Return Instructions – The return instruction passes the program sequence from the caller program to the subroutine. Unconditional Jump Instructions and Conditional Jump Instructions are the two forms of return instructions.