diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-18 07:46:26 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-18 07:46:26 +0100 |
| commit | 407048d0037c8d6d26c7e3fe2384e974212f124e (patch) | |
| tree | 7f083e85156c61ed0193d6336ae3445bbcb6df74 /crates/nasm/src/main.rs | |
| parent | 5cea733924c3fd9df91a19c7d7c59ae85915221b (diff) | |
| download | tools.nes-407048d0037c.tar.gz tools.nes-407048d0037c.zip | |
Add the readrom binary
The readrom binary is similar to `readelf` from Linux and it will allow
to display information from an NES/Famicom ROM file. For now the
information being shown is just the header, but in the future we might
also include disassembling parts of the code, or retrieving the "CHARS"
section for a given ROM file, and similar.
In order to implement the header parsing part a new library has been
introduced, simply named "header" which abstracts everything away so you
just need to call `Header::try_from("my bytes")` to fetch the actual
information.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'crates/nasm/src/main.rs')
| -rw-r--r-- | crates/nasm/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/nasm/src/main.rs b/crates/nasm/src/main.rs index 9ad710b..105a995 100644 --- a/crates/nasm/src/main.rs +++ b/crates/nasm/src/main.rs @@ -5,7 +5,7 @@ use std::io::{self, Read, Write}; use xixanta::assembler::Assembler; use xixanta::mapping::{Mapping, EMPTY, NROM, NROM65}; -/// Assembler for the 6502 microprocessor that targets the NES. +/// Assembler for the 6502 microprocessor that targets the NES/Famicom. #[derive(ClapParser, Debug)] #[command(version, about, long_about = None)] struct Args { |
