|
|
|
@@ -9,23 +9,23 @@ |
|
|
|
|
|
|
|
## How to Use This Knowledge Base |
|
|
|
|
|
|
|
This repository contains structured skills and reference material for developing software on the Commodore 64. Each subdirectory under `skills/` is a self-contained topic skill. When answering a C64 development question, consult the most relevant skill first, then cross-reference the `reference/` files. |
|
|
|
This repository contains structured skills and reference material for developing software on the Commodore 64. Each subdirectory under `.claude/skills/` is a self-contained topic skill. When answering a C64 development question, consult the most relevant skill first, then cross-reference the `reference/` files. |
|
|
|
|
|
|
|
### Skill Index |
|
|
|
|
|
|
|
| Directory | Topic | When to Use | |
|
|
|
|-----------|-------|-------------| |
|
|
|
| `skills/6510-assembly/` | 6510 CPU, opcodes, addressing modes, registers | Writing or debugging assembly/ML programs | |
|
|
|
| `skills/memory-map/` | Complete C64 memory layout, zero page, banking | Memory management, PEEK/POKE, ML placement | |
|
|
|
| `skills/graphics-vic2/` | VIC-II chip, sprites, character modes, color | All graphics programming | |
|
|
|
| `skills/sound-sid/` | SID 6581, ADSR, waveforms, filters | Music and sound effects | |
|
|
|
| `skills/disk-io-1541/` | 1541 DOS, file types, direct access | Disk operations, file I/O | |
|
|
|
| `skills/kernal-routines/` | OS jump table, screen/serial/tape I/O | Using built-in OS calls from ML | |
|
|
|
| `skills/basic-programming/` | BASIC 2.0 interpreter, extending BASIC, tokens | BASIC programs, BASIC extensions | |
|
|
|
| `skills/interrupts/` | IRQ, NMI, CIA timers, raster interrupts | Interrupt-driven code, timing | |
|
|
|
| `skills/compiler-design/` | Compiler & assembler construction for C64/128 | Writing compilers, assemblers, parsers | |
|
|
|
| `skills/vice-emulator/` | VICE emulator, autostart, monitor, snapshots, automation | Running, testing, and debugging C64 software in VICE | |
|
|
|
| `skills/powerc/` | Power C compiler on the C64 | Writing, compiling, linking, and running C programs with Power C (reference/POWERc.d81); load this whenever Power C or on-C64 C development is requested | |
|
|
|
| `.claude/skills/6510-assembly/` | 6510 CPU, opcodes, addressing modes, registers | Writing or debugging assembly/ML programs | |
|
|
|
| `.claude/skills/memory-map/` | Complete C64 memory layout, zero page, banking | Memory management, PEEK/POKE, ML placement | |
|
|
|
| `.claude/skills/graphics-vic2/` | VIC-II chip, sprites, character modes, color | All graphics programming | |
|
|
|
| `.claude/skills/sound-sid/` | SID 6581, ADSR, waveforms, filters | Music and sound effects | |
|
|
|
| `.claude/skills/disk-io-1541/` | 1541 DOS, file types, direct access | Disk operations, file I/O | |
|
|
|
| `.claude/skills/kernal-routines/` | OS jump table, screen/serial/tape I/O | Using built-in OS calls from ML | |
|
|
|
| `.claude/skills/basic-programming/` | BASIC 2.0 interpreter, extending BASIC, tokens | BASIC programs, BASIC extensions | |
|
|
|
| `.claude/skills/interrupts/` | IRQ, NMI, CIA timers, raster interrupts | Interrupt-driven code, timing | |
|
|
|
| `.claude/skills/compiler-design/` | Compiler & assembler construction for C64/128 | Writing compilers, assemblers, parsers | |
|
|
|
| `.claude/skills/vice-emulator/` | VICE emulator, autostart, monitor, snapshots, automation | Running, testing, and debugging C64 software in VICE | |
|
|
|
| `.claude/skills/powerc/` | Power C compiler on the C64 | Writing, compiling, linking, and running C programs with Power C (reference/POWERc.d81); load this whenever Power C or on-C64 C development is requested | |
|
|
|
|
|
|
|
### Reference Files |
|
|
|
|
|
|
|
@@ -117,7 +117,7 @@ $E000–$FFFF Kernal ROM — Operating system (or RAM when banked out) |
|
|
|
%011 $33 BASIC + Kernal ROM, character ROM at $D000 (no I/O) |
|
|
|
%000 $30 all RAM |
|
|
|
``` |
|
|
|
BASIC ROM needs LORAM=1 and HIRAM=1. Full table: `skills/memory-map/SKILL.md`. |
|
|
|
BASIC ROM needs LORAM=1 and HIRAM=1. Full table: `.claude/skills/memory-map/SKILL.md`. |
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
@@ -244,11 +244,11 @@ This knowledge base was compiled from these canonical references: |
|
|
|
When an AI agent receives a C64 development question: |
|
|
|
|
|
|
|
1. **Identify the domain** using the Skill Index table above |
|
|
|
2. **Load the relevant SKILL.md** from the appropriate `skills/` subdirectory |
|
|
|
2. **Load the relevant SKILL.md** from the appropriate `.claude/skills/` subdirectory |
|
|
|
3. **Cross-reference** `reference/` files for specific register values, addresses, or opcodes |
|
|
|
4. **Check examples/** for working code patterns |
|
|
|
5. **If the task involves running or debugging software in an emulator**, load `skills/vice-emulator/SKILL.md` and `reference/vice-usage.md` |
|
|
|
6. **If the task involves writing C for the C64** (user mentions C, Power C, `ced`, `cc`, `link`, or `reference/POWERc.d81`), load `skills/powerc/SKILL.md` first. Power C is K&R C (no prototypes/`void`, 2-byte `int`, 8-char identifiers), sources on disk are PETSCII, and `cc`/`link` need specific steps. Also load `skills/vice-emulator/SKILL.md` to automate the build in VICE (copy `reference/POWERc.d81` first; never write to the original). Note: `examples/moonlander.c` and `examples/linked-list-test.c` use **cc65**, not Power C; pick the toolchain the user asked for. |
|
|
|
5. **If the task involves running or debugging software in an emulator**, load `.claude/skills/vice-emulator/SKILL.md` and `reference/vice-usage.md` |
|
|
|
6. **If the task involves writing C for the C64** (user mentions C, Power C, `ced`, `cc`, `link`, or `reference/POWERc.d81`), load `.claude/skills/powerc/SKILL.md` first. Power C is K&R C (no prototypes/`void`, 2-byte `int`, 8-char identifiers), sources on disk are PETSCII, and `cc`/`link` need specific steps. Also load `.claude/skills/vice-emulator/SKILL.md` to automate the build in VICE (copy `reference/POWERc.d81` first; never write to the original). Note: `examples/moonlander.c` and `examples/linked-list-test.c` use **cc65**, not Power C; pick the toolchain the user asked for. |
|
|
|
7. **Apply the 150-expert consensus**: prefer documented Kernal routines over custom implementations; use zero-page for speed; always consider memory banking when accessing $D000–$DFFF |
|
|
|
|
|
|
|
--- |
|
|
|
|