Mads

From ilmenit/atari-800-skills · View interactive version

Mads is an AI agent skill from the GitHub repository ilmenit/atari-800-skills. Use for MADS/Mad-Assembler work: Atari 8-bit 6502/65C02/65816 assembly syntax, command-line usage, directives, pseudo-commands, labels, macros, procedures, structures, arrays, memory banks, relocatable code, and SpartaDOS X output.

How to use this skill

Skill file

MADS Assembler

MADS, also called Mad-Assembler, is a cross-assembler commonly used for Atari

8-bit development. Its syntax is close to XASM/QA/FA, with additions for local

and temporary labels, macros, procedures, typed data, virtual and hardware

memory banks, relocatable output, SpartaDOS X files, and WDC 65816 code.

Use this skill when writing, reviewing, porting, or debugging MADS assembly.

Prefer the smallest reference file that answers the question.

Quick Start

references/usage.md.

and operator precedence, read references/syntax.md.

.VAR, .ZPVAR, .IFDEF, .REPT, .PRINT, .ERROR, .LEN, .SIZEOF,

.DEFINE, and .UNDEF, read references/directives.md.

SIN, COS, RND, IFT, ELS, ELI, and EIF, read

references/pseudo-commands.md.

Reference Map

Orientation

relates to XASM, compilation notes, and MADS vs XASM differences.

6502, 65816, and mnemonic-extension notes.

detection symbols.

Assembly Control and Syntax

conditional assembly pointers, and zero-page assembly behavior.

#IF, #WHILE, and #CYCLE code-generation directives.

pseudo-commands.

commands such as MVA, MWA, ADW, SBW, branches, increments, moves, and

compares.

Names and Scope

temporary, self-modifying, and MAE-style labels.

scoped areas.

Abstractions and Data

syntax, generated labels, and calls.

calls, .REG/.VAR, and typed parameters.

with OPT B- and hardware memory banks with OPT B+.

Linking and Output Formats

file blocks, relocation/update/definition blocks, and SDX programming notes.

Authoring Guidance

areas, .PROC, .STRUCT, .ARRAY, and macro commands are expected in MADS

projects.

references/introduction.md before changing

syntax that XASM and MADS treat differently.

mode directives in references/relocatable-code.md

and mnemonic support in references/mnemonics.md.

references/usage.md and the output-affecting OPT /

ORG / INS / ICL / DTA behavior in

references/pseudo-commands.md.

Reference Layout Notes

The bundled references/ files are the self-contained assembler reference for

this skill. Load only the specific reference file needed for the task, and keep

topic work in the Atari router files unless the user is specifically asking

about MADS syntax, directives, relocation, or SpartaDOS X output.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.