asm — Assemble a bank from files
Reads the JSON metadata file produced by disasm and reassembles the binary .Abk file. The "type" field in the JSON determines which importer is used. Data files are resolved relative to the JSON file’s directory.
Usage
portamos asm [options] <bank.json> <output.Abk>
Options
--optimize- Run the Pac.Pic palette optimizer before compressing. Only has an effect on Pac.Pic banks. Can also be set per-bank via
"optimize": truein the JSON. --no-optimize- Disable the palette optimizer even if
"optimize": trueis set in the JSON.
Example
portamos asm output/sprites.json Sprites.Abk
Bank JSON format
All bank JSON files share a common envelope:
{
"type": "...",
"bankNumber": 1,
"chipRam": false
}
The "type" field is set automatically by disasm. See the bank documentation for the full schema for each type:
"type" value | Bank | Schema |
|---|---|---|
Music | Music bank | Music bank |
Samples | Sample bank | Sample bank |
Tracker | ProTracker MOD | Tracker bank |
Sprite / Icon | Sprite or icon bank | Sprite / Icon bank |
Resource | Resource bank | Resource bank |
PacPic | Pac.Pic compressed image | Pac.Pic bank |
Amal | AMAL animation bank | AMAL bank |
Menu | Menu bank | Menu bank |
Work / Data | Raw data bank | Work / Data bank |