Basic Operation of Machine Language

Read 3.1(P59-61), 3.3,3.5 4.1-4.4 in Ford & Topp

The control unit executes instructions from top to bottom. For each instruction it does the following:

  1. FETCH instruction
  2. EXECUTE instruction

FETCH is the big time hog. Getting data from instruction is considered part of the FETCH and is especially slow. Storing data is also slow. A/L operations are quick.
The getting and storing of data is referred to as the "Von Neumann Bottleneck".

Basic Format Of ML instruction



Eg. ADDI.W #5,$A23FE8 ;add the constant 5 to memory location $A23FE8

somewhere in memory = $A034C0

A034C0 0679 Opcode
           2 0005 Extension
           4 00A2 Extension
           6 3FE8 Extension


Assuming 2 bytes are read/writen to memory each time, this instruction does 5 ML operations - 4 memory operations and one arithmetic operation. Costs 5 clock cycles. In RISC, 1 cycle per instruction always.

HARDWARE MODEL

Memory