CUPS Specification

CUPS (CPU architecture with Unbounded Per-address Stacks) is a fictional CPU architecture, wherein every memory address (as well as registers) contains not just a single numerical value, but instead a fully unbounded stack. Documented here is the specification for CUPS as well as additional information about its implementation and design.

Documentation

Instructions

Generic

NOP No Operation Does nothing.
HALT Halt Stops execution.
SYS System Call Calls the System Call with the provided name.
MOV Move Writes data from location B to location A
CALL Call Push PC+1 to call stack and jump to address A
RETURN Return Pop an address from the call stack and jump to that address