Skip to content

Conversation

@HertzDevil
Copy link
Contributor

This PR adds two functions to the Lua API for reading from or writing to selected internal registers and pseudo-registers directly, without having to go through emu.getState every time, which creates very large tables with values the caller isn't interested in (the SNES one for example has 602 entries). This is especially useful for setting individual flags in a status register, see my forum comment that led to this PR.

The interpretations of the registers are identical to debugger expressions for the most part, with two notable exceptions: ML and MH are distinct registers on the CX4, and PC is read-only on the WonderSwan.

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

Successfully merging this pull request may close these issues.

1 participant