Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WRAM offsets #1

Open
DarkXoa opened this issue Jan 14, 2019 · 1 comment
Open

WRAM offsets #1

DarkXoa opened this issue Jan 14, 2019 · 1 comment

Comments

@DarkXoa
Copy link

DarkXoa commented Jan 14, 2019

I'm trying to get an autosplitter script working with lsnes to aid with obtaining the RTA timing for a theory TAS I recently made. Could you help me find the memory offset to where the emulator stores WRAM?

@rodamaral
Copy link
Owner

rodamaral commented Jan 15, 2019

There're two ways to read a given memory address:

  1. using absolute addresses
  2. using relative addresses to the region

The absolute address can be read with memory.readbyte(number), where number obeys this table.
eg: memory.readbyte(0x7E1234).

But it's much better and safer to use relative addresses, as in memory.readbyte('WRAM', 0x1234), especially if you wanna separate ROM from memory registers. Reading from BUS is often dangerous and affects emulation.

Any doubt, ask me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants