LC-3
1 program
Added 2026-02-12T00:00:00Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: Little Computer 3, LC3
Provenance: commit 3ea61692df · authored 2026-02-12T14:40:35+01:00 · agent claude-code · model sonnet
Sources mentioning this language
4 sources · pl_id:
pl/lc-3Related languages
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.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Add Two Numbers
Provenance: commit 3ea61692df · authored 2026-02-12T14:40:35+01:00 · agent claude-code · model sonnet · WebSearch disabled
; LC-3 Assembly Program - Add Two Numbers
; This program adds two numbers stored in memory
; and stores the result in another memory location
.ORIG x3000
; Load first number into R1
LD R1, NUM1
; Load second number into R2
LD R2, NUM2
; Add R1 and R2, store result in R3
ADD R3, R1, R2
; Store result
ST R3, RESULT
; Halt the program
HALT
; Data section
NUM1 .FILL #5
NUM2 .FILL #7
RESULT .BLKW 1
.END