C64 Coding Tricks: Drawing Two Lines in 34 Bytes
2025-04-16

This article recaps the code optimization tricks used in a Commodore 64 coding competition. The challenge: create a C64 executable (PRG) that draws two lines using the fewest bytes possible. The article details the clever techniques employed by participants, including leveraging ROM subroutines, incremental screen pointer manipulation, self-modifying code, exploiting the power-on state, unconventional control flow, and bitpacked line drawing. The winning entry achieved an astonishing 34 bytes, showcasing impressive code optimization skills.
Development