asm6502-coder

Write 6502/65C02 assembly code using 64tass syntax within Prog8 programs.

198|27|Updated Jan 9, 2019
One-click install
npx skills add https://github.com/irmen/prog8 --skill asm6502-coder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: asm6502-coder
Source: https://github.com/irmen/prog8/tree/main/.agents/skills/asm6502-coder
Command: npx skills add https://github.com/irmen/prog8 --skill asm6502-coder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Write 6502/65C02 assembly code using 64tass syntax inside Prog8 programs, enabling tight, low-level control within a modern Prog8 workflow.

Core Features & Use Cases

  • Embeds 64tass-compatible assembly in Prog8 via %asm {{ }} blocks or asmsub routines.
  • Enforces 6502/65C02 instruction rules and explicit operand usage where required, with guidance for zeropage and CX16 targets.
  • Supports both standalone *.asm files and embedded assembly within Prog8 programs, enabling modular low-level routines.

Quick Start

Create a small *.asm file implementing a simple routine and call it from Prog8 using an asmsub block.

Frequently Asked Questions about asm6502-coder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write 6502 assembly code inside a Prog8 program?

To write 6502 assembly inside Prog8, embed 64tass-compatible code using %asm {{ }} blocks or asmsub routines, ensuring proper subroutine call conventions and clobber reporting.

Can I use 65C02 instructions with 64tass syntax for CX16 targets?

Yes, you can use 65C02 instructions with 64tass syntax for CX16 targets. The Skill enforces 6502/65C02 rules and explicit operand usage while providing zeropage usage guidance.

What is the best way to embed low-level assembly routines in Prog8?

The best way to embed low-level routines in Prog8 is using asmsub blocks or standalone *.asm files. This enables modular 6502 assembly with clear mapping to Prog8 symbols.

Does Prog8 support standalone assembly files alongside embedded asm blocks?

Yes, Prog8 supports both standalone *.asm files and embedded assembly within %asm {{ }} blocks. You can create a standalone *.asm file and call it from Prog8 using an asmsub block.

Why do my 6502 assembly subroutines fail when called from Prog8?

6502 assembly subroutines may fail if they lack proper subroutine call conventions, explicit operand usage for selective instructions, or accurate clobber reporting mapped to Prog8 symbols.

Do I need to report clobbered registers when writing embedded assembly in Prog8?

Yes, you need proper clobber reporting when writing embedded assembly in Prog8. This ensures correct mapping to Prog8 symbols and maintains stability across 6502-family targets.