prog8-coder

Author Prog8 programs for 6502-based retro systems with structured conventions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prog8 coder provides structured guidance and conventions for writing Prog8 programs (6502-based) to streamline development, improve readability, and reduce common pitfalls.

Core Features & Use Cases

  • Establishes consistent frontmatter, coding standards, and memory/pointer patterns for 8-bit retro targets (C64, CX16, C128, PET32) including a virtual test target
  • Documents module imports, subroutines, and assembly-ext subroutines usage to help teams collaborate on Prog8 projects
  • Hands-on examples and best practices for leveraging libraries, IR outputs, and the compiler to build reliable Prog8 software

Quick Start

Create a minimal Prog8 program with a main block that initializes and prints a greeting on a CX16 target.

Frequently Asked Questions about prog8-coder

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

FAQPage Schema
How do I write Prog8 programs for 6502-based retro systems like the C64 or CX16?

To write Prog8 programs for 6502-based retro systems, use established conventions for frontmatter, module imports, and memory pointer patterns to ensure readable and maintainable code across targets like the C64 and CX16.

What's the best way to structure assembly subroutines in Prog8?

Structuring assembly subroutines in Prog8 involves documenting module imports and following specific safety guidance for assembly-ext subroutines, ensuring reliable integration with main blocks and library functions.

Can I test 8-bit retro assembly code without physical hardware?

Yes, you can test 8-bit retro assembly code without physical hardware by targeting a built-in virtual test system, allowing you to safely verify pointer math and module behavior before deploying to C64 or CX16.

How do I manage memory usage and pointer math in 8-bit system code?

Managing memory usage and pointer math in 8-bit system code requires following established Prog8 patterns that reduce common pitfalls, ensuring safe memory allocation across compatible targets like the C128 and PET32.

Does Prog8 support portable code across different 6502 targets?

Prog8 supports portable code across different 6502 targets by enforcing consistent syntax and recommended library usage, allowing a single codebase to run on the C64, CX16, C128, and PET32 with minimal target-specific adjustments.

How do I compile Prog8 code and check IR outputs for 8-bit retro targets?

To compile Prog8 code and check IR outputs for 8-bit retro targets, use the compiler best practices provided by the Skill, which guide you through generating intermediate representations and leveraging libraries for reliable software builds.