From 407048d0037c8d6d26c7e3fe2384e974212f124e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 18 Dec 2024 07:46:26 +0100 Subject: Add the readrom binary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 552c48f..9a387eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,10 +6,11 @@ resolver = "2" rust-version = "1.82" edition = "2021" license = "GPLv3+" -authors = ["Miquel Sabaté Solà"] +authors = ["Miquel Sabaté Solà "] [workspace.dependencies] xixanta = { path = "./lib/xixanta", version = "0.1.0" } +header = { path = "./lib/header", version = "0.1.0" } [profile.release] codegen-units = 1 -- cgit v1.2.3