Posted on

A Commodore 64 memorial demo written in 6502 assembly. It shows a bitmap image with a cover of Coldplay's "Clocks" playing from the SID chip.

GitHub: drproteus/earthman64

Earthman64 demo

Building

Assemble with dasm, then run the .prg in VICE. After loading, enter sys 2064.

dasm main.asm -oearthman.prg

Music and timing

The music plays from a raster interrupt. The code points the IRQ vector at $0314 to irq, then fires it at scanline $7e. Each interrupt calls the SID player and acknowledges the VIC:

	lda #<irq
	ldx #>irq
	ldy #$7e
	sta $0314
	stx $0315
	sty $d012
	...
irq:
	jsr $1003
	asl $d019
	jmp $ea81

The demo is still in progress. Scrolling text is on the to-do list.

Table of Contents