SITE · THE LAB · LISTINGS · YOUTUBE · KO-FI · REPORT A MISPRINT
Original type-in programs for the Commodore 64, in the spirit of the 1980s listings: short, readable BASIC V2 you can type in one sitting. Every program is written in a modern editor, checked line by line, turned into a real .prg and run in VICE before it is published on c64n.blogspot.com with a full explanation.
This repository holds everything behind the site: the listings, the ready-to-run programs, the lab that tests them, and the Blogger theme.
0 "C64 CODING " CN 2A
7 "ZARIA" PRG
4 "BALL" PRG
7 "QUADRATIC" PRG
13 "CLOCK" PRG
4 "DODGE" PRG
20 "RESISTOR" PRG
609 BLOCKS FREE.
READY.
| Blocks | Program | What it does | Category | Article |
|---|---|---|---|---|
| 7 | ZARIA | Three dice that tumble, rattle and land; calls doubles and triples | Games | read |
| 4 | BALL | A ball bouncing round the screen: new colour, a SID note and a count on every bounce | Graphics | read |
| 7 | QUADRATIC | Solves ax²+bx+c=0 (real, double, complex or linear) and checks the answer | Maths | read |
| 13 | CLOCK | A digital clock with big digits, a blinking colon and an alarm | Utilities | read |
| 4 | DODGE | A small game in 6502 assembly: dodge the falling rocks. With a BASIC DATA loader to type in | Games | read |
| 20 | RESISTOR | The resistor colour code both ways, with the resistor drawn in colour | Utilities | read |
In an emulator. Open a listing folder, download the .prg and drag it onto a VICE window. It loads and runs on its own.
By hand. Type the .bas file into a real C64 or an emulator. Type every letter without SHIFT: the files are stored in lower case, which is how the C64 sees ordinary capitals. On the site you can tick off each line as you type it.
lab/ is the bench every listing goes through: VS Code for editing, a Python checker, petcat to tokenize, and VICE to run.
.bas ──► c64.py ──► petcat -w2 ──► .prg ──► x64sc
checks tokenizes $0801 runs
- Install VICE (tested with 3.10) and Python 3.9+.
- Open the
labfolder in VS Code. - If VICE is not in
D:\GTK3VICE-3.10-win64\bin, editVICE_BINinrun-c64.batandwatch-c64.bat. - Open
programs\HELLO.basand pressCtrl+Shift+B.
What it checks, how run-on-save works and how PETSCII case is handled: The Lab and lab/README.md. Tests: python -m unittest discover lab/tests.
lab/ the bench: VS Code tasks, c64.py, watcher, syntax colours
listings/ one folder per published listing: .bas, .prg, screenshot, notes
blogger/ the site: theme, page and post sources
assets/ logo, banner and social image (make_assets.py redraws them)
Found a typo in a listing, or a program that does not run? Open a misprint report. How a listing is added: CONTRIBUTING.md.
By Vasileios Dionysopoulos.
- Code (the listings in
listings/, the lab inlab/, the Blogger theme and the scripts inassets/): MIT. Type them in, change them, use them in your own programs; keep the copyright line. - Articles, screenshots, recordings and artwork (
blogger/posts/,blogger/pages/, the images and videos inlistings/andassets/): CC BY 4.0. Share and adapt them, with credit to C64 Coding and a link to c64n.blogspot.com.
Commodore 64 is a trademark of its respective owner; this is a fan project with no affiliation.