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
LLM-contributed programs
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
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.)