|
|
@@ -3,7 +3,7 @@ |
|
|
> **Assembled by a collective of 150 expert Commodore 64 developers.** |
|
|
> **Assembled by a collective of 150 expert Commodore 64 developers.** |
|
|
> This file is the primary reference for AI agents assisting with Commodore 64 application development. |
|
|
> This file is the primary reference for AI agents assisting with Commodore 64 application development. |
|
|
> Core C64 platform knowledge is sourced from canonical reference books (see Sources below). |
|
|
> Core C64 platform knowledge is sourced from canonical reference books (see Sources below). |
|
|
> Supplemental modern emulator workflow guidance is included for **VICE 3.10** from `C:\Program Files\GTK3VICE-3.10-win64\doc\vice.txt`. |
|
|
|
|
|
|
|
|
> Supplemental modern emulator workflow guidance is included for **VICE 3.10** from the manual installed as `C:\Program Files\GTK3VICE-3.10-win64\doc\vice.pdf` (copy kept at `reference/vice.pdf`). |
|
|
|
|
|
|
|
|
--- |
|
|
--- |
|
|
|
|
|
|
|
|
@@ -39,17 +39,34 @@ This repository contains structured skills and reference material for developing |
|
|
| `reference/cia-registers.md` | CIA 6526 register map | |
|
|
| `reference/cia-registers.md` | CIA 6526 register map | |
|
|
| `reference/disk-dos-commands.md` | 1541 DOS command reference | |
|
|
| `reference/disk-dos-commands.md` | 1541 DOS command reference | |
|
|
| `reference/vice-usage.md` | VICE 3.10 emulator, monitor, autostart, and automation reference | |
|
|
| `reference/vice-usage.md` | VICE 3.10 emulator, monitor, autostart, and automation reference | |
|
|
|
|
|
| `reference/vice.pdf` | VICE 3.10 manual as shipped with the emulator | |
|
|
|
|
|
| `reference/POWERc.d81` | Power C compiler, libraries, and headers (copy before writing to it) | |
|
|
|
|
|
| `reference/Power_C_Instruction_Manual.pdf` | Power C Instruction Manual (Spinnaker, 1986) | |
|
|
|
|
|
|
|
|
### Example Programs |
|
|
### Example Programs |
|
|
|
|
|
|
|
|
| File | Description | |
|
|
| File | Description | |
|
|
|------|-------------| |
|
|
|------|-------------| |
|
|
| `examples/hello-world.asm` | Minimal 6510 assembly hello world | |
|
|
| `examples/hello-world.asm` | Minimal 6510 assembly hello world | |
|
|
|
|
|
| `examples/bitmap-demo.asm` | Hi-res 320×200 bitmap mode: draws a diagonal line, key returns to text mode | |
|
|
| `examples/sprite-demo.bas` | BASIC sprite programming demo | |
|
|
| `examples/sprite-demo.bas` | BASIC sprite programming demo | |
|
|
|
|
|
| `examples/sprite-music-demo.bas` | Multicolor sprite moving to a SID bass line | |
|
|
| `examples/sound-demo.bas` | SID chip sound demo in BASIC | |
|
|
| `examples/sound-demo.bas` | SID chip sound demo in BASIC | |
|
|
| `examples/disk-access.bas` | Sequential and relative file access | |
|
|
| `examples/disk-access.bas` | Sequential and relative file access | |
|
|
| `examples/irq-handler.asm` | Custom IRQ handler skeleton | |
|
|
| `examples/irq-handler.asm` | Custom IRQ handler skeleton | |
|
|
| `examples/kernal-io.asm` | Using Kernal routines for I/O | |
|
|
| `examples/kernal-io.asm` | Using Kernal routines for I/O | |
|
|
|
|
|
| `examples/moonlander.c` | Lunar Lander game in C (cc65), joystick control | |
|
|
|
|
|
| `examples/moonlander.prg` | Built `moonlander.c` binary | |
|
|
|
|
|
| `examples/moonlander-build.bat` | Build `moonlander.c` with `cl65`; `-run` also launches it | |
|
|
|
|
|
| `examples/run.bat` | Rebuild if needed, then autostart `moonlander.prg` in VICE | |
|
|
|
|
|
| `examples/linked-list-test.c` | `malloc`-backed linked list tests plus a heap capacity probe (cc65) | |
|
|
|
|
|
| `examples/linked-list-test.prg` | Built `linked-list-test.c` binary | |
|
|
|
|
|
| `examples/linked-list-test-build.bat` | Build `linked-list-test.c` with `cl65`; `-run` also launches it | |
|
|
|
|
|
| `examples/powerc-hello.c` | Minimal Power C program; ASCII source converted to PETSCII for the disk | |
|
|
|
|
|
| `examples/powerc-hello.d81` | Power C work disk with `hello.c` compiled, linked, and ready to run | |
|
|
|
|
|
| `examples/powerc-work.d81` | Writable working copy of the Power C system disk | |
|
|
|
|
|
| `examples/powerc-build.bat` | Run a Power C Shell command sequence on a work disk via `-keybuf` | |
|
|
|
|
|
| `examples/powerc-ced.bat` | Boot the Power C system disk and enter the `ced` editor | |
|
|
| `examples/vice-autostart-c64os.bat` | Launch `c64os.prg` directly in `x64sc` | |
|
|
| `examples/vice-autostart-c64os.bat` | Launch `c64os.prg` directly in `x64sc` | |
|
|
| `examples/vice-monitor-c64os.txt` | VICE monitor playback script for debugging `c64os.prg` | |
|
|
| `examples/vice-monitor-c64os.txt` | VICE monitor playback script for debugging `c64os.prg` | |
|
|
| `examples/vice-debug-c64os.bat` | Launch `c64os.prg` with VICE native monitor and debug-friendly options | |
|
|
| `examples/vice-debug-c64os.bat` | Launch `c64os.prg` with VICE native monitor and debug-friendly options | |
|
|
@@ -194,7 +211,7 @@ This knowledge base was compiled from these canonical references: |
|
|
|
|
|
|
|
|
### Supplemental Emulator Source |
|
|
### Supplemental Emulator Source |
|
|
|
|
|
|
|
|
12. **VICE 3.10 Manual** — `C:\Program Files\GTK3VICE-3.10-win64\doc\vice.txt` |
|
|
|
|
|
|
|
|
12. **VICE 3.10 Manual** — `C:\Program Files\GTK3VICE-3.10-win64\doc\vice.pdf` (copy: `reference/vice.pdf`) |
|
|
- Use for emulator operation, autostart behavior, monitor commands, snapshots, and automation interfaces |
|
|
- Use for emulator operation, autostart behavior, monitor commands, snapshots, and automation interfaces |
|
|
|
|
|
|
|
|
--- |
|
|
--- |
|
|
|