| name | assembly-program |
| description | Execute 6502/6510 assembly workflows through c64bridge. |
Intent
Use this skill for custom assembly routines, register work, IRQ handlers, and hardware-timed code.
Inputs
- Hardware focus: VIC-II, SID, CIA, or mixed.
- Memory layout constraints, zero-page usage, and interrupt ownership.
- Validation target: screen state, memory state, or register state.
Execution
- Clarify which hardware blocks and memory ranges the routine may touch.
- Consult
c64://assembly/6510-spec, c64://memory/map, and any hardware-specific resource that applies.
- Use
c64_rag with op: "asm" when targeted timing tables or code examples are needed.
- Generate assembly source with explicit labels and memory usage.
- Execute with
c64_program using op: "upload_run_asm".
Validation
- Use
c64_memory with op: "read" for installed code, vectors, or register checks.
- Use
c64_memory with op: "read_screen" when the routine produces visible output.
- Report assembler diagnostics directly if compilation fails.
Safety
- Confirm before invasive recovery actions such as reset or reboot.
- Pause and resume the machine around manual memory patching when the workflow requires it.
Escalation
- Switch to
.github/skills/basic-program/SKILL.md when the task is better served by a high-level loader or a simple BASIC program.