Subleq
1 program
Added 2026-02-10T15:32:27Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: SUBLEQ, OISC
Provenance: commit 1f47d368f3 · authored 2026-02-10T16:33:22+01:00 · agent claude-code · model sonnet
Sources mentioning this language
3 sources · pl_id:
pl/subleqRelated languages
LLM-contributed programs
Hello World (Hi)
Provenance: commit 1f47d368f3 · authored 2026-02-10T16:33:22+01:00 · agent claude-code · model sonnet · WebSearch disabled
; Subleq "Hello World" program
; Outputs "H" (72) and "i" (105)
; Format: subleq a, b, c means: mem[b] = mem[b] - mem[a]; if mem[b] <= 0 goto c
; Output 'H' (ASCII 72)
Z, Z, 3 ; Clear Z
MINUS_72, Z, 6 ; Z = 72
Z, OUT, 9 ; Output 72 ('H')
; Output 'i' (ASCII 105)
Z, Z, 12 ; Clear Z
MINUS_105, Z, 15 ; Z = 105
Z, OUT, 18 ; Output 105 ('i')
; Halt
Z, Z, -1
; Data section
MINUS_72: -72
MINUS_105: -105
Z: 0
OUT: -1 ; Output port
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)