Computer Organization Basic Computer Instructions (original) (raw)

Last Updated : 2 Mar, 2026

Computer organization describes how different parts of a computer system are arranged and connected to work together.

Basic Computer Instructions

Basic computer instructions are commands that tell a computer how to perform specific tasks. These instructions are typically divided into three categories:

Data Transfer Instructions

Data transfer instructions are used to move data from one location to another within a computer system. This includes transferring information between memory, CPU registers, and other storage locations.

Common Data Transfer Instructions

Arithmetic and Logic Instructions

These instructions are used to perform mathematical and logical operations. They enable computers to handle calculations and make decisions based on certain conditions.

Arithmetic Instructions

Logic Instructions

Control Instructions

Control instructions determine the flow of execution in a program. They guide the computer in deciding which instruction should be executed next, enabling decision-making, looping, and function execution.

Common Control Instructions

Instruction Set of a Basic Computer

A basic computer uses a 16-bit Instruction Register (IR). An instruction can be classified as a memory reference, register reference, or input/output instruction based on specific bits in the instruction format.

1. Memory Reference Instructions

These instructions use a **memory address as an operand, while the other operand is always the **accumulator.

1

Memory Reference Instruction Format

2. Register Reference Instructions

Register reference instructions perform operations directly on CPU registers rather than memory locations.

2

Register Reference Instruction Format

3. Input/Output Instructions

Input/output instructions are used for communication between the computer and external devices.

3

Input/Output Instruction Format

Essential Instructions in a Basic Computer

The **Program Counter (PC) is a key component of a computer system that holds the address of the next instruction to be executed. These instructions are processed by the Central Processing Unit (CPU) and form the foundation for all program operations.

Basic PC instructions

Symbol Hexadecimal Code Description
AND 0xxx, 8xxx AND memory word to AC
ADD 1xxx, 9xxx Add memory word to AC
LDA 2xxx, Axxx Load memory word to AC
STA 3xxx, Bxxx Store AC content in memory
BUN 4xxx, Cxxx Branch Unconditionally
BSA 5xxx, Dxxx Branch and Save Return Address
ISZ 6xxx, Exxx Increment and skip if 0
CLA 7800 Clear AC
CLE 7400 Clear E(overflow bit)
CMA 7200 Complement AC
CME 7100 Complement E
CIR 7080 Circulate right AC and E
CIL 7040 Circulate left AC and E
INC 7020 Increment AC
SPA 7010 Skip next instruction if AC > 0
SNA 7008 Skip next instruction if AC < 0
SZA 7004 Skip next instruction if AC = 0
SZE 7002 Skip next instruction if E = 0
HLT 7001 Halt computer
INP F800 Input character to AC
OUT F400 Output character from AC
SKI F200 Skip on input flag
SKO F100 Skip on output flag
ION F080 Interrupt On
IOF F040 Interrupt Off

**In the table:

**Example of ADD Instruction Execution

Assume that memory address **0001 contains the value **5 and the **Accumulator (AC) currently holds the value **10. When the **ADD instruction is executed, the CPU fetches the value from memory, adds it to the contents of the accumulator, and stores the result back in the accumulator.

AC ← AC + M[0001]
Result: AC = 10 + 5 = 15

**Uses of Basic Computer Instructions

**Issues of Basic Computer Instructions