Arts >> Theater >> Puppet Shows

Simpletron Machine Language (SML): A Minimal Assembly Language for Teaching Von Neumann Architecture

SML is a minimal instruction set for the hypothetical Simpletron computer, used to teach the basics of von Neumann architecture: memory, accumulator, and sequential control flow.

Instruction Set (Opcode | Mnemonic | Operation)

OpcodeMnemonicDescription
10READInput → memory location
11WRITEMemory location → output
20LOADMemory → accumulator
21STOREAccumulator → memory
30ADDAccumulator + memory → accumulator
31SUBAccumulator – memory → accumulator
32MULAccumulator × memory → accumulator
33DIVAccumulator ÷ memory → accumulator
40BRANCHUnconditional jump to address
41BRANCHNEGBranch if accumulator < 0
42BRANCHZEROBranch if accumulator = 0
43HALTStop execution

Execution Cycle

  1. Fetch instruction from memory (program counter).
  2. Decode opcode.
  3. Execute operation (ALU, memory, I/O).
  4. Increment PC (unless branch taken).
  5. Repeat until HALT.

SML strips computing to its essence. Ideal for a first course in computer organization.

Puppet Shows

Related Categories