snes_address

Crates.iosnes_address
lib.rssnes_address
version0.1.1
sourcesrc
created_at2022-10-23 13:15:40.671505
updated_at2022-10-24 01:11:04.940723
descriptionA library for translating memory address for SNES games
homepage
repositoryhttps://github.com/smedit/snes_address/
max_upload_size
id695171
size9,732
(krankykong)

documentation

README

snes_address

For converting between PC and SNES memory map addresses.

Supported Memory Map Conversions

  • LoRom
  • HiRom
  • ExLoRom
  • ExHiRom Others to be added...

Usage

Rust Library:

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)
}

Shared Library:

TODO: Add wrapper project to compile this to so (linux), dll (windows), and dylib (mac)

Binary:

cargo install snes_address

Usage:");
    snes_address [option] <address_in_hex>

Options:
    -P2L: decompress
    -L2P: LoRom to PC
Commit count: 4

cargo fmt