EmulatorJS self-test: Commodore 64

Controls

A tiny Commodore 64 program, written from scratch for the EmulatorJS module, that checks the emulator the way an arcade board checks itself at power-on: the CPU, RAM, the program as loaded, ROM banking, color memory, a CIA timer, the SID's noise generator and the raster beam, each reported as OK! or FAIL. Below the results, joystick port 2 lights up as you press its directions and fire button, and KEY lights while a key is held on the C64's own keyboard.

Public domain (CC0).