Crates.io | snes_address |
lib.rs | snes_address |
version | 0.1.1 |
source | src |
created_at | 2022-10-23 13:15:40.671505 |
updated_at | 2022-10-24 01:11:04.940723 |
description | A library for translating memory address for SNES games |
homepage | |
repository | https://github.com/smedit/snes_address/ |
max_upload_size | |
id | 695171 |
size | 9,732 |
For converting between PC and SNES memory map addresses.
Add dependency
https://crates.io/crates/snes_address
use snes_address::errors::AddressError;
fn lorom_to_pc(lorom_address: usize) -> Result<usize, AddressError> {
snes_address::lorom_to_pc(lorom_address)
}
fn pc_to_lorom(pc_address: usize) -> Result<usize, AddressError> {
snes_address::pc_to_lorom(pc_address)
}
TODO: Add wrapper project to compile this to so (linux), dll (windows), and dylib (mac)
cargo install snes_address
Usage:");
snes_address [option] <address_in_hex>
Options:
-P2L: decompress
-L2P: LoRom to PC