SUBLEQ · OISC
ONE INSTRUCTION SET COMPUTER — mem[B] −= mem[A]; if mem[B] ≤ 0 goto C
INITIALIZING…
Settings & Controls
SPEED 4 steps/s
Output Port — addr FF
7
6
5
4
3
2
1
0
0x00 = 0
Input Port — addr FE (toggle switches)
7
6
5
4
3
2
1
0
0x00
Assembly Listing
Current Instruction
Memory — 256 bytes · click cell to inspect
PC A operand B operand C operand
Click a cell to inspect
CPU Registers
PC
0x00
dec 0
A — SRC
B — DST
C — JMP
RESULT
CYCLES
0
 
N=0
Z=0
BRANCH: NO
SUBLEQ A, B, C  —  mem[B] = mem[B] − mem[A]  —  if result ≤ 0 → jump to C