Skip to main content
Run any Skill in Manus
with one click

6502-merlin-assembler

Stars0
Forks0
UpdatedMay 23, 2026 at 09:59

How to read and write 6502/65C02/65816 assembly source for the Merlin macro assembler (Merlin 8, Merlin Pro, Merlin 16/16+, Merlin 32 on Apple II/IIgs, and Merlin 64/128 on Commodore). Covers Merlin's source column layout, its pseudo-opcodes/directives (ORG, EQU, DFB, DW, DDB, DCI, ASC, HEX, DS, LUP, DO/FIN, MAC/EOM), the macro system and parameters (]1..]8), label and variable conventions (:local, ]var), expression operators and Merlin's left-to-right evaluation, the low/high/bank byte-select operators, and forced addressing. Use this skill WHENEVER you encounter, write, or port Merlin-format assembly source, see Merlin directives like DFB/DCI/LUP/MAC/EOM/PUT, see labels like ]LOOP or :SKIP, or need to understand a .S Merlin listing. Especially trigger when the user mentions Merlin, or asks why an assembler expression evaluates oddly (left-to-right!), or how a macro expands. Pairs with the 6502-instruction-set, 6502-memory-map, and 6502-to-rust skills.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
3 files
SKILL.md
readonly