Little Man Computing is an instruction set for assembly language, composed of 12 instructions, using [[Memory Addressing#|#Direct]].

Example

Adding two numbers.

INP
STA NUM1
INP
ADD NUM1
OUT
 
NUM1 DAT 0

Labels

A label is a reference to a location within the RAM.

Defining

{label} OPCODE OPERAND

Referencing

The label is replaced with the location associated with the label in RAM.

OPCODE {label}

Instructions

InstructionNameDescription
HLTHaltStops the proogram.
ADDAddAdds the content of the memory address (operand) to the accumulator.
SUBSubtractSubtracts the content of the memory address (operand) to the accumulator.
LDALoadLoads the content of the memory address (operand) to the accumulator.
BRABranchBranches to the memory address (operand).
BRZBranch if ZeroBranches to the memory address (operand) if the accumulator is zero.
BRPBranch if PositiveBranches to the memory address (operand) if the accumulator is positive.
INPInputTakes an input as a number and stores it in the accumulator.
OUTOutputOutputs the accumulator as a number.
OTCOutput as CharacterOutputs the accumulator as an ASCII character.
DATDataIndicates a location in memory to store data.