|
|
4 days ago | |
|---|---|---|
| .claude | 1 week ago | |
| examples | 1 week ago | |
| newLang | 4 days ago | |
| reference | 1 week ago | |
| samples | 5 months ago | |
| skills | 1 week ago | |
| skirmish-game | 5 months ago | |
| vim | 6 days ago | |
| .gitattributes | 6 days ago | |
| AGENTS.md | 1 week ago | |
| CLAUDE.md | 1 week ago | |
| README.md | 5 months ago | |
A comprehensive reference system for AI agents and human developers building applications on the Commodore 64. Synthesized from 11 canonical C64 reference books, with supplemental VICE 3.10 emulator workflow notes for modern testing and debugging.
c64-dev-knowledge/
โโโ README.md โ This file
โโโ CLAUDE.md โ AI agent entry point
โโโ AGENTS.md โ Full AI reference document
โ
โโโ skills/ โ Topic skill files (SKILL.md in each)
โ โโโ 6510-assembly/ โ CPU, registers, opcodes, idioms
โ โโโ memory-map/ โ Address space, banking, zero page
โ โโโ graphics-vic2/ โ VIC-II modes, sprites, raster IRQ
โ โโโ sound-sid/ โ SID registers, music, effects
โ โโโ disk-io-1541/ โ 1541 DOS, file types, error codes
โ โโโ kernal-routines/ โ Kernal jump table, I/O patterns
โ โโโ basic-programming/ โ BASIC internals, extending BASIC
โ โโโ interrupts/ โ IRQ/NMI handlers, CIA, VIC timing
โ โโโ compiler-design/ โ Assembler/compiler construction
โ โโโ vice-emulator/ โ VICE launch, monitor, autostart, automation
โ
โโโ reference/ โ Quick-lookup tables
โ โโโ memory-map-complete.md โ Full $0000โ$FFFF address map
โ โโโ 6510-opcodes.md โ All opcodes with cycles/flags
โ โโโ vic-registers.md โ VIC-II $D000โ$D02E register table
โ โโโ sid-registers.md โ SID $D400โ$D418 register table
โ โโโ cia-registers.md โ CIA #1 and #2 register tables
โ โโโ kernal-jumplist.md โ All Kernal jump table entries
โ โโโ disk-dos-commands.md โ DOS commands, error codes, disk layout
โ โโโ vice-usage.md โ VICE 3.10 emulator and monitor quick reference
โ
โโโ examples/ โ Working code examples
โโโ hello-world.asm โ Minimal 6510 assembly hello world
โโโ irq-handler.asm โ Custom raster IRQ installation
โโโ kernal-io.asm โ File I/O using Kernal routines
โโโ bitmap-demo.asm โ Hi-res 320ร200 bitmap mode
โโโ sprite-demo.bas โ Sprite animation in BASIC
โโโ sprite-music-demo.bas โ Multicolor sprite + SID music
โโโ sound-demo.bas โ SID waveforms, ADSR, chords
โโโ disk-access.bas โ Sequential/relative file I/O
โโโ vice-autostart-c64os.bat โ Launch c64os.prg in x64sc
โโโ vice-debug-c64os.bat โ Launch c64os.prg with VICE native monitor
โโโ vice-monitor-c64os.txt โ VICE monitor playback commands
โโโ vice-monitor-c64os-debug.txt โ Repeatable VICE debug session
| I want toโฆ | Start here |
|---|---|
| Write 6510 machine code | skills/6510-assembly/SKILL.md |
| Understand the memory map | skills/memory-map/SKILL.md + reference/memory-map-complete.md |
| Program sprites or bitmap graphics | skills/graphics-vic2/SKILL.md |
| Make sound or music | skills/sound-sid/SKILL.md |
| Read/write disk files | skills/disk-io-1541/SKILL.md |
| Use Kernal routines | skills/kernal-routines/SKILL.md + reference/kernal-jumplist.md |
| Extend or interface with BASIC | skills/basic-programming/SKILL.md |
| Write custom IRQ handlers | skills/interrupts/SKILL.md |
| Build a compiler or assembler | skills/compiler-design/SKILL.md |
| Run or debug software in VICE | skills/vice-emulator/SKILL.md + reference/vice-usage.md |
| Look up an opcode | reference/6510-opcodes.md |
| Look up a chip register | reference/vic-registers.md, sid-registers.md, cia-registers.md |
| Find a Kernal routine | reference/kernal-jumplist.md |
| Understand a disk error | reference/disk-dos-commands.md |
See CLAUDE.md for the primary agent entry point. See AGENTS.md for the comprehensive reference used by AI to answer C64 development questions.
All skill files follow a consistent structure:
Supplemental emulator material is intentionally kept separate from the canonical platform references so agents can distinguish between C64 hardware facts and modern tooling workflows.
For emulator debugging, start with skills/vice-emulator/SKILL.md, then use reference/vice-usage.md as the command quick reference.
The most useful repo examples are:
examples/vice-debug-c64os.bat for launching c64os.prg in x64sc with native monitor, keep-open, and refresh-on-break enabledexamples/vice-monitor-c64os-debug.txt for a repeatable monitor session with breakpoints, watchpoints, stepping hints, and keyboard-buffer injection| Component | Details |
|---|---|
| CPU | MOS 6510 @ 1.02MHz (PAL) / 0.985MHz (NTSC) |
| RAM | 64 KB (with banking) |
| ROM | 20 KB (BASIC 8KB + Kernal 8KB + Char 4KB) |
| Video | MOS 6569 VIC-II (PAL) / 6567 (NTSC) |
| Sound | MOS 6581/8580 SID โ 3 voices, 4 waveforms, filter |
| I/O | MOS 6526 CIA ร 2 (keyboard, joystick, serial, timer) |
| Storage | Commodore 1541 (170KB, 35 tracks, GCR encoding) |
| Display | 40ร25 text / 320ร200 hi-res / 160ร200 multicolor |
| Sprites | 8 hardware sprites (24ร21 pixels each) |
| Colors | 16 fixed colors |
Powered by TurnKey Linux.