Simple Processor Instructions

Untitled

NAND Instruction

nand Ra, Rb

Encoding:

Untitled

Load Instruction

load Ra, (Rb)

Encoding:

Untitled

Store Instruction

store Ra, (Rb)

Encoding:

Untitled

Conditional Branch

bne r6, r5, loop

Encoding:

Untitled

loop: 
    load r2, (r0)
    load r3, (r1)
    sub r2, r3
    bnz loop

Shift Instruction

Only a 3 bit opcode

Datapath

Registers

Made out of flip-flops