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-3
LLM (this repo) · 1PldbWikipediaWikidata · Q6457333

Related languages

Little Man Computer (0.42)Little (0.26)LC-3 Assembly (0.25)LiE (0.23)Little b (0.20)

LLM-contributed programs

Add Two Numbers

Provenance: commit 3ea61692df · authored 2026-02-12T14:40:35+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.asm · added: 2026-02-12T00:00:00Z
; 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.)

Contribute — propose a file extension

Tell us where to find evidence about LC-3 (mapped to pl/lc-3). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/LC-3/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Lbj LC-3 Assembly →