PET BASIC

1 program Added 2026-02-13T08:57:11Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Commodore BASIC 1.0, Commodore BASIC 2.0, Commodore BASIC 4.0
Provenance: commit f7a13ed948 · authored 2026-02-13T09:58:01+01:00 · agent claude-code · model sonnet

Sources mentioning this language

5 sources · pl_id: pl/commodore-basic
LLM (this repo) · 1PldbWikipediaRosettacodeWikidata · Q337272

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Designed byMicrosoft
First appeared1977
Implemented inAssembly (6502)

Related languages

Commodore BASIC (0.42)BASIC-128 (0.39)BASIC-E (0.36)VIC-20 BASIC (0.33)Extended Color BASIC (0.21)

LLM-contributed programs

Factorial Calculator

Provenance: commit f7a13ed948 · authored 2026-02-13T09:58:01+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.bas · added: 2026-02-13T08:57:11Z
10 PRINT "FACTORIAL CALCULATOR"
20 PRINT "ENTER A NUMBER (0-12):"
30 INPUT N
40 IF N<0 OR N>12 THEN GOTO 20
50 F=1
60 FOR I=1 TO N
70 F=F*I
80 NEXT I
90 PRINT N;"! =";F
100 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 PET BASIC (mapped to pl/commodore-basic). 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/PET BASIC/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← pest petr →