aboutsummaryrefslogtreecommitdiff
path: root/crates/nasm
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-18 07:46:26 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-18 07:46:26 +0100
commit407048d0037c8d6d26c7e3fe2384e974212f124e (patch)
tree7f083e85156c61ed0193d6336ae3445bbcb6df74 /crates/nasm
parent5cea733924c3fd9df91a19c7d7c59ae85915221b (diff)
downloadtools.nes-407048d0037c8d6d26c7e3fe2384e974212f124e.tar.gz
tools.nes-407048d0037c8d6d26c7e3fe2384e974212f124e.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')
-rw-r--r--crates/nasm/src/main.rs2
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 {