Skip to content

About

Original type-in BASIC listings for the Commodore 64, the lab that tests them, and the site's Blogger theme.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

C64 Coding: original BASIC type-in listings for the Commodore 64

SITE  ·  THE LAB  ·  LISTINGS  ·  YOUTUBE  ·  KO-FI  ·  REPORT A MISPRINT


READY.

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.

LOAD"$",8

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

RUN

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.

The lab

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
  1. Install VICE (tested with 3.10) and Python 3.9+.
  2. Open the lab folder in VS Code.
  3. If VICE is not in D:\GTK3VICE-3.10-win64\bin, edit VICE_BIN in run-c64.bat and watch-c64.bat.
  4. Open programs\HELLO.bas and press Ctrl+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.

LIST

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)

?MISPRINT ERROR

Found a typo in a listing, or a program that does not run? Open a misprint report. How a listing is added: CONTRIBUTING.md.

License

By Vasileios Dionysopoulos.

  • Code (the listings in listings/, the lab in lab/, the Blogger theme and the scripts in assets/): 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 in listings/ and assets/): 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.

About

Original type-in BASIC listings for the Commodore 64, the lab that tests them, and the site's Blogger theme.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages