Skip to content
Agentmart
Submit a tool

msx-regen

Regenerate an 8 KiB mapper bank with z80dasm via tools/workbench/msx/regen-bank.sh, emit a per-bank symbol file, and strip listing comments.

Skill by 0xe1f

IndexedApache-2.0★ 1
Write a review

Chalk Labs

Need help deploying msx-regen?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/0xe1f-msx-regen

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Regenerate an 8 KiB mapper bank with z80dasm via tools/workbench/msx/regen-bank.sh, emit a per-bank symbol file, and strip listing comments. Use when regenerating a bank, running regen-bank.sh, bank_sym.py, strip-listing.py, split-rom.sh, folding generated/bankNN.generated.asm, or after renaming labels in msx.sym.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/msx-regen

What's inside

Skill name
msx-regen
Description
Regenerate an 8 KiB mapper bank with z80dasm via tools/workbench/msx/regen-bank.sh, emit a per-bank symbol file, and strip listing comments. Use when regenerating a bank, running regen-bank.sh, bank_sym.py, strip-listing.py, split-rom.sh, folding generated/bankNN.generated.asm, or after renaming labels in msx.sym.
License
Apache-2.0
Instructions
75 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# MSX bank regen

Need `z80dasm`, `tools/sjasmplus`, a `workbench.cfg`, and a built `<Game>.rom`
(`make`, or `ROM=`). Missing assembler: `tools/workbench/bin/install-sjasmplus`
(`msx-scaffold`). Run from the **game** repo root. Do not invent a one-off
disassembler.

## Regen one bank

```
tools/workbench/msx/regen-bank.sh <n> [origin-hex] [banks/banks_<stem>.blocks]
```

`<n>` is the 8 KiB bank index (0-based). Origin defaults to `workbench.cfg`
`bank_org`. Optional `.blocks` marks code vs data (rendering only). After
windows exist, pass that window’s `.blocks` for every slice in the group
(the script keeps blocks whose **start** is in this 8 KiB; z80dasm rejects a range outside the image). How to seed it:
`msx-code-data`. Window merge: `konami-msx-disasm`. Do not regen until
`bank_org` matches the pager.

Writes gitignored scratch:

- `generated/<prefix>NN.generated.asm` — listing comments stripped; **fold this**
- `generated/<prefix>NN.raw.asm` — address/opcode listing; temporary reference

Never copy the generated file over annotated source. Never commit z80dasm
`;addr bytes ascii` tails. `strip-listing.py` is the safety net.

## Graduate one leftover bank

1. Confirm CPU origin from paging helpers; put it in `bank_org` and the
   master’s `PHASE` (`msx-code-data`). Do not z80dasm gfx / packed-PSG /
   table-only payload — those stay `INCBIN` until the consumer is named,
   then labelled `.asm` (`msx-code-data` peel).
2. `regen-bank.sh N [origin] [banks/banks_<stem>.blocks]` (or `bankNN.blocks`
   before windows exist).
3. Grep `generated/<prefix>NN.raw.asm` for `;illegal sequence`.
4. Prepend a header; copy the **generated** file (not raw) into the window
   `.asm` (or `banks/bankNN.asm` if that 8 KiB is still alone). Drop
   z80dasm’s `equ` lines (those symbols live in other banks or `bios.inc`).
   Master: `INCBIN` → `INCLUDE`.
5. BIOS-lie audit on non-`call`/`jp`/`jr` lines. `make verify`, then
   `make banks` (drops the leftover `.bin`).
   Do not regen a window after its `ram.inc` names have been applied in the
   asm. `ram.inc` is kept out of `msx.sym`, so regen writes those immediates
   back as hex. If a regen is required, re-apply the map afterward
   (`konami-msx-disasm`).
6. Two **windows** that share a CPU range cannot share z80dasm `lXXXXh` /
   `sub_XXXXh` names. Wrap later windows in one `MODULE` / `ENDMODULE`, or
   prefix auto labels. Do not put those addresses in `msx.sym`. Combining
   contiguous banks: `konami-msx-disasm`.

## Symbols (`msx.sym` is flat, the ROM is banked)

```
tools/workbench/msx/bank_sym.py N
tools/workbench/msx/bank_sym.py --audit
```

Keep new names in the game’s `msx.sym`. Do not split into committed per-bank
`.sym` files.

## Leftover bins

```
tools/workbench/msx/split-rom.sh
```

Extracts unmigrated `banks/bankNN.bin` from the ROM; deletes bins for migrated
banks (`migrated=all` or a `bankNN.asm` exists).

After regen: audit BIOS-name lies on non-`call`/`jp`/`jr` lines. `make verify`
after every edit; never commit a break. Naming: `konami-msx-disasm`.

From 0xe1f/MSXDAW, Apache-2.0.

More from 0xe1f/MSXDAW

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 18, 2026 (12 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from 0xe1f

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get msx-regen running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying msx-regen?

CallGet help
Cite this page

msx-regen skill. Agent Mart. https://agentmart.dev/skills/0xe1f-msx-regen (last updated 2026-10-24)