Simple Computer

Arrays

array[index]

Address register implementation

Functions

Stored Program Concept

Stack

PUSH

POP

SubRoutine

Jump to SubRoutine (JSR)

Return to SubRoutine(RTS)

Stack Pointer wiring

The layout of the address register is the same as the stack pointer except it has a adder

Different addressing modes

Directives - used to define variables, giving them a : type, name, space in memory, value

Identifiers - this is the chosen name for a variable

Immediate

#4 - # followed by address

Load the address

Direct

4 - just the address

Operand is the address of the value to be used

Indirect

(A0)

-(A0) - pre-decriment first

(A0)+ - increment first

Operand is the address of the address of the data to be used

Indexed (Displacement)

Operand + Index register = address of data to be loaded

Relative

Operand + Address register = address of data to be loaded