INSTRUCTIONS

The CPU architecture currently has a total of 32 distinct instructions. Most of these have a full set of eight opcodes reserved for them; the rest have fewer, and are grouped into a set of extended instructions. Most instructions are divisible into one of a few related groups.

The instruction documentation is currently incomplete. It will be finished sometime in the near future.


TRANSFER INSTRUCTIONS

LoadNZ-----E

Store--------

InNZ-----E

Out--------

Transfer to special register--------

Transfer from special register--------

Transfer to stack pointer--------

Transfer from stack pointer--------


ARITHMETIC INSTRUCTIONS

AddNZ-----E

Add with carryNZC----E

SubtractNZ-----E

Subtract with borrowNZCO---E


BITWISE INSTRUCTIONS

ShiftNZCOIAUE

Shift with carryNZCOIAUE

Shift right with sign-extendNZCOIAUE

RotateNZCOIAUE

Twos-complementNZCOIAUE


BOOLEAN INSTRUCTIONS

AndNZCOIAUE

OrNZCOIAUE

XOrNZCOIAUE


TEST INSTRUCTIONS

CompareNZCOIAUE

TestNZCOIAUE


FLOW-CONTROL INSTRUCTIONS

BranchNZCOIAUE

JumpNZCOIAUE

CallNZCOIAUE

Software interruptNZCOIAUE

LoopNZCOIAUE

ReturnNZCOIAUE

Return from interruptNZCOIAUE


STACK INSTRUCTIONS

PushNZCOIAUE

PullNZCOIAUE


OTHER INSTRUCTIONS

No-opNZCOIAUE

HaltNZCOIAUE