You are on page 1of 2

Instruction Cycle:

Any program residing in the memory contains a set of instruction that need to be executed by the computer in a
sequential manner. This cycle for every instruction is known as the instruction cycle. The cycle consists of the
following steps as mentioned in fig:

- Fetch instruction: Like the name stated in this process the cpu fetches the instruction from the memory. The PC
get loaded with the address of the instruction.

- Decode: the instruction: In this process the instruction gets decoded by the processor.

- In case the instruction has an indirect address the effective address is read from the memory.

- Fetch the operand from the memory

- Execution: once the instruction gets decoded the processor executes the instruction.

Steps involved in executing the given program:

MVI B, 76 H

MVI A, F2H

ADD B

HLT.

Fetch:

The program starts from location 2000, so CPU fetches instruction from the given address 2000.

Decode:

These statements are written in assembly language which are decoded by assembler in the system.

MVI B, 76H Load a 8-bit number 76 in Register B.

MVI A, F2H- Load a 8-bit number F2 in Register A.

Add B Add register B content to register A.

HLT- Stop processing

Fetch operand:
Operand can be fetched from register, memory etc.

E.g. : MOV B, 2000[ ] - Transfer value from memory location 2000 to register B.

Execution:

once the instruction gets decoded the processor executes the instruction.

You might also like