ChipsProcessorsEsoteric & theoretical › Subleq (OISC)

Subleq (OISC)

1988

A one-instruction set computer whose sole operation, subtract-and-branch-if-less-or-equal, is enough to compute anything.

Subleq (OISC) Online Emulator

Play Subleq (OISC) using JavaScript directly in your browser.

Configurations

ConfigurationEmulatorMachineOSLegal
Hello, world!SubleqSubleq (OISC)openOpen ⛶

Machines

Emulators

EmulatorTypeLicenseSite
SubleqonlinePublic domainWebsite ↗
Subleq (Mazonka)bothFreewareWebsite ↗

Reference & documentation

External technical references for programming Subleq (OISC) and for writing emulators.

ResourceTypeNotes
Subleq - Esolang Wiki ↗Instruction setCanonical single-instruction spec, operands, Turing-completeness, variants
Subleq - Esolang Wiki ↗Memory mapMemory-mapped I/O: address -1 output, negative halt
Higher Subleq - Esolang Wiki ↗ProgrammingTypeless C-like language compiling to Subleq; stdlib details
SUBLEQ - A One Instruction Set Computer (TechTinkering) ↗Programmingsblasm macro assembler, self-modifying code, hello world
A Simple Multi-Processor Computer Based on Subleq (Mazonka & Kolodin) ↗ReferencePrimary paper: architecture, FPGA array, C-to-Subleq compiler
howerj/subleq-vhdl - VHDL SUBLEQ CPU ↗Schematic16-bit VHDL CPU synthesized for Spartan-6 FPGA
davidar/subleq - Logisim CPU ↗SchematicLogisim processor: three buses, six control signals
davidar/subleq - CPU design and toolchain ↗SourceAssembler libraries, C and JS interpreters, demos
jserv/subleq - Forth on a 16-bit SUBLEQ machine ↗SourceOptimized C VM with fused instructions, self-hosting eForth
howerj/subleq - eForth SUBLEQ system ↗Source~600-byte C virtual machine, self-hosting Forth image
kjh618/subleq-compiler ↗ToolHigher-level assembly to Subleq compiler; mov/add/jmp directives