You are on page 1of 4

Instructions

An instruction is an order given to a computer processor by a


computer program. At the lowest level, each instruction is a sequence of 0s
and 1s that describes a physical operation the computer is to perform (such
as "Add") and, depending on the particular instruction type, the specification of
special storage areas called registers that may contain data to be used in
carrying out the instruction, or the location in computer memory of data.

Computer Instructions
The basic computer has three instruction code formats. The Operation code (opcode) part
of the instruction contains 3 bits and remaining 13 bits depends upon the operation code
encountered.
There are three types of formats:
Memory Reference Instruction
Register Reference Instruction
Input-Output Instruction
OpCode:

Examples are “add memory location A to memory location B,” or “store the number five in
memory location C.” “Add” and “Store” are the opcodes in these examples.

You might also like