Machine Code

All instructions are stored as binary numbers. Code written like this is machine code.

A computer can easily understand machine code, but it is hard for people to interpret.

$$\begin{array}{l|l} \text{Not Machine Code}&\text{ADD R6 R8 R2}\\ \text{Machine Code}&0100011010000010 \end{array}$$

Assembly Code

Low-level programming language, known as Assembly Language, is a set of more readable ways to display machine code.

The advantages of assembly language would be:

Notation

There is some basic notation for computer instructions.

$$\begin{array}{r | l} \text{CON(A)}&\text{Contents of memory cell A}\\ \text{A}\rightarrow\text{B}&\text{Send value in register A to register B}\\ \text{FETCH}&\text{Initiate a memory fetch operation}\\ \text{STORE}&\text{Initiate a memory store operation}\\ \text{ADD}&\text{Instruct the ALU to select the output of the adder circuit}\\ \text{SUBTRACT}&\text{Instruct the ALU to select the output of the subtract circuit} \end{array}$$

Using this notation, we can see our Von Neumann Cycle.