snes_address 0.1.1

A library for translating memory address for SNES games
Documentation
  • Coverage
  • 16.67%
    1 out of 6 items documented1 out of 4 items with examples
  • Size
  • Source code size: 9.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.41 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 16s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • rnwtn/snes_address
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • krankykong

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