From 4115d83eb537ffbd81e2fd8d12790a8fad769199 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 22 Dec 2024 23:33:33 +0100 Subject: nasm: Allow file paths for the configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This opens up the door for developers to pass their own configuration files. Signed-off-by: Miquel Sabaté Solà --- README.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 7d29b1a..bbc281e 100644 --- a/README.md +++ b/README.md @@ -30,12 +30,21 @@ By default it will assume the configuration for an `NROM` mapper, but this can be changed with the `-c/--configuration` flag, which accepts the following values: -- `empty`: just `HEADER` and `CODE`. Useful for one-liners (e.g. "how is this - instruction encoded in binary?"). -- `nrom`: the default configuration. It has the following segments: `HEADER`, - `CODE`, `VECTORS`, and `CHARS`. -- `nrom65`: same as `nrom` but it also has `STARTUP` for compatibility with the - default linker configuration from [cc65](https://github.com/cc65/cc65). +- [empty](./lib/xixanta/src/mappings/empty.toml): just `HEADER` and `CODE`. + Useful for one-liners (e.g. "how is this instruction encoded in binary?"). +- [nrom](./lib/xixanta/src/mappings/nrom.toml): the default configuration. + It has the following segments: `HEADER`, `CODE`, `VECTORS`, and `CHARS`. +- [nrom65](./lib/xixanta/src/mappings/nrom65.toml): same as `nrom` but it + also has `STARTUP` for compatibility with the default linker configuration + from [cc65](https://github.com/cc65/cc65). +- [unrom or uxrom](./lib/xixanta/src/mappings/unrom.toml): a configuration for + UxROM chips, with seven swappable banks bound at 0x8000 and 16KB of size + (`PRG0`..`PRG6`), and a fixed bank on 0xC000 and 16KB of size as well + (`FIXED`). + +Alternatively, you can also pass a path to a configuration of your own. Check +out the [ones already bundled](./lib/xixanta/src/mappings) on this application +for reference. ## `readrom` -- cgit v1.2.3