text

Browsing the web on a 1983 Commodore 64

24 November 2026 · studio notes · Commodore 64

Five days ago the Commodore 64 loaded a one-line BASIC program from an ESP32 on a breadboard and printed HELLO FROM THE STUDIO. The whole reason I started wiring the serial bus was much simpler than building a browser: I had been drawing in KoalaPainter and wanted a way to save pictures and move them between the C64 and the rest of the studio.

Today that same 1983 machine browsed NRK news, Wikipedia, Google, Google Images, ChatGPT and this website live on the studio network, dropped web pages straight into authentic 1983 KoalaPainter for drawing with a real KoalaPad, and saved the edited paintings back to the ESP32 virtual disk.

Rendering the modern web for 160x200 pixels

Shrinking a modern browser screenshot down to a C64 screen produces illegible noise. Instead, KoalaWeb splits the work cleanly: a Linux server fetches and lays out the page for the VIC-II’s native 160x200 16-color multicolor bitmap mode, while a small 6502 client handles the display, hardware Sprite 0 pointer, keyboard, KoalaPad input and differential scrolling.

Every 8x8 cell on a C64 multicolor bitmap can only hold three local colors plus one shared background color. Photos go through an Oklab Pair-Bayer quantizer tuned for that 16-color palette, and scrolling shifts bitmap, screen and color RAM locally on the 6502 so only newly exposed 8-pixel row strips cross the wire.

Standard HTML sites like NRK, Wikipedia and kaaregrundvaag.com run through a direct HTTP fetcher with full UTF-8 and non-ASCII URL handling (so Norwegian letters and Wikipedia redirects stop breaking). Interactive JavaScript apps like Google search, Google Images and ChatGPT run through a headless Chromium CDP backend. Because logging into modern accounts on a C64 keyboard is painful, ChatGPT sign-in renders a native C64 QR code on screen: I scan it with my phone, sign in there, and the authenticated session hands back to the C64.

The last feature to land tonight was Google Images search paired with a full-screen black-background image viewer. Search results appear as a 3-column 16-color gallery right below the search box. Clicking any thumbnail opens it full-width on pure black with [BACK], [EDIT] and [PAGE] controls, ready to send straight to KoalaPainter.

Pushing real speed over the IEC bus

Running in VICE is one thing; sitting in front of the real 1983 breadbin on the floor is another. The first real-hardware milestone (Stage 1) used standard KERNAL IEC transfers over Studio Disk Device 17 SA 2, with a 64 KiB PSRAM ring buffer on the ESP32-S3 bridging a plain LAN TCP socket. It worked end to end, proving the whole chain from real C64 keyboard and KoalaPad to the live web, though full-screen redraws asked for patience.

Stage 2 replaced the slow KERNAL byte loop with a cycle-exact 2-bit fast IEC burst receiver on Device 17 SA 3, pushing roughly 10 to 11 KB/s into the C64 while blanking the VIC-II cleanly around active bursts. On top of that, 6502 PackBits RLE cuts 56 to 65 percent of the bytes on the wire for typical pages, and pipelined streaming updates collapse per-chunk handshakes into a single final ACK with mid-stream NACK recovery. The difference on real hardware was immediate.

Two small quality-of-life fixes made the machine feel finished rather than fragile. First, the border color now stays black across scrolls instead of flashing back to C64 blue after every differential update. Second, pressing Q or RUN/STOP closes the Device 17 channel, restores KERNAL and BASIC vectors, and drops cleanly back to READY. so I can load another program from Device 8 without reaching for the power switch.

The 1984 crack hiding inside KoalaPainter

The part that connects back to how this started is pressing E inside KoalaWeb. It exports the current screen (whether an NRK article, my own site, or a full-screen Google Image) and chains straight into authentic 1983 KoalaPainter with the picture already loaded on the canvas. F3 toggles the original KoalaPainter tool and color palette menu, F5 quick-saves and returns, and Storage saves paintings directly to Device 8 (PIC M NEWS, PIC N KITTIWAK).

When I plugged the physical 1983 KoalaPad into Control Port 1, KoalaWeb tracked the stylus cleanly, but KoalaPainter ignored it completely. Disassembling the KoalaPainter binary turned up a piece of 1984 history: the disk image we had started from was an ANTIRAM crack that had patched out the analog paddle reads so people could use a joystick instead.

Because our companion patch already lives in the unused zero gap above KoalaPainter ($4600 to $4EFF), we added two small 6502 hooks that re-select the CIA1 4066 paddle mux for Control Port 1, read the real SID POTX/POTY registers ($D419/$D41A) and left/right pad buttons, and only fall back to joystick if a joystick is actually moved. The 43-year-old touch pad came straight back to life, letting me pull a reference image off Google Images, draw over it with the stylus in 1983 KoalaPainter, and save it back to the studio disk.

Rounding out Device 8 as a desk machine

Studio Disk itself also grew up today. New .PRG builds deploy over Wi-Fi SSH using atomic put!, Device 8 supports S0: scratch commands, and the ESP32 recovers the IEC bus cleanly after a C64 reset. Since Q now drops cleanly back to READY., I staged a small native software shelf on Device 8 beside KOALAWEB, KOALAPAINT and TERMINAL:

  • ED: a custom Unix-style C64 line editor writing plain ASCII text files readable on both the C64 and Linux.
  • SPEEDSCR: Charles Brannon’s SpeedScript 3.2r2 full-screen 40-column word processor.
  • CYNTHCART: Paul Slocum’s v2.0.1 live SID synthesizer, playable straight from the C64 keyboard.
  • SIDWIZARD: Hermit’s 1.7 three-channel SID music tracker.
  • README: a short on-disk guide readable directly on the C64.

What started five days ago as two BC547 transistors to rescue a few KoalaPainter drawings now sits on the bench as a working studio machine: it reads the news, searches for images, drops them onto a 1983 touch pad for drawing, plays the SID chip, and saves everything straight back to the local network.

Technical notes and galleries live on the KoalaWeb and Studio Disk lab pages.