Skip to content

Programming by Design

If you're not prepared to be wrong, you'll never come up with anything original. – Sir Ken Robinson

  • About
  • Java-PbD
  • C-PbD
  • ASM-PbD
  • Algorithms
  • More!
    • Commodore 64
    • Operating Systems
    • Odds and Ends
    • Theory

Category: C64

C64 BASIC and Assembler

Posted on October 15, 2026October 30, 2026 By William Jojo
C64

(Updated October 30, 2026) The following BASIC program for a Commodore 64 loads an interrupt routine that displays a clock in the upper right-hand corner. The code also prompts for the current time to set the 6522 CIA internal clock. If you click the Load Workspace button, it launches a JavaScript C64 emulator and starts … Read More “C64 BASIC and Assembler” »

C64 BASIC Tokenizing

Posted on November 20, 2024 By William Jojo
C64

(Updated November 20, 2024) Overview The process of tokenizing a BASIC program converts the text to a sequence of compressed codes mixed with ASCII (PETSCII) characters. The idea is to have the “compiling” of the code completed and work within an intermediate representation that: Reduces the space occupied by the program. Speeds interpretation of the … Read More “C64 BASIC Tokenizing” »

C64 BASIC (in about an hour)

Posted on April 4, 2024January 31, 2026 By William Jojo
C64, ciss-111

(Updated January 31, 2026) Table of contents Overview BASIC History BASIC Statement Structure BASIC Language BASIC Constructs Afterward VICE Overview The BASIC (Beginner’s All-purpose Symbolic Instruction Code) language was created by John Kemeny and Thomas Kurtz at Dartmouth in 1964. It was a simple, unstructured language that was reasonably easy to learn. BASIC was prevalent … Read More “C64 BASIC (in about an hour)” »

Machine Code – Assembly Language

Posted on January 18, 2024August 13, 2024 By William Jojo
C64, ciss-111

(Updated July 22, 2024) Overview The methods of programming CPUs/computers have had a vast history. This document is intended to provide a historical introduction to the complexity of how systems were programmed. The details contained here concern the 6502 and 6510 processors. The 6510 was used in the Commodore 64. This was chosen for its … Read More “Machine Code – Assembly Language” »

Commodore 64

Posted on September 13, 2023November 4, 2026 By William Jojo
C64

(Updated November 4, 2026) Table of contents Overview Emulation Operation Test Drive VICE Overview The Commodore 64 was notably the best-selling computer in history. It was inexpensive, easy to use, and had a following larger than any other platform from that period. Using the MOS-6510 (a descendant of the VIC-20’s MOS-6502), anyone familiar with the … Read More “Commodore 64” »

Commodore 64 Code Examples

Posted on September 8, 2023November 4, 2026 By William Jojo
C64

(Updated November 4, 2026) Table of contents Overview BASIC Operation Test Drive VICE Overview This document shows some intermediate to advanced coding examples in BASIC. If you are new to BASIC (especially on the Commodore 64 or with line numbers), you may benefit from reading this first. BASIC Programming in BASIC is relatively easy. It … Read More “Commodore 64 Code Examples” »

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Copyright © 2018 – 2026 Programming by Design.