Skip to content

recomp-abi: Library::interpret and interpret_at - #1

Merged
fearkov merged 1 commit into
fearkov:mainfrom
patricksmill:interpret-at
Oct 30, 2026
Merged

fearkov merged 1 commit into
fearkov:mainfrom
patricksmill:interpret-at

Conversation

@patricksmill

@patricksmill patricksmill commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Adds two methods so a host can make the interpreter run chosen functions instead of the recompiled code:

  • interpret(unit, start) marks the function starting at start stale.
  • interpret_at(unit, address) marks every function whose code includes address, since code can belong to more than one function.

I use this in a Kid Icarus: Uprising mod that has to stop at specific addresses that the recompiled code would run straight through.

…he interpreter run chosen functions

interpret marks the function starting at an address stale, as if its code had
changed, so the interpreter runs it. interpret_at marks every function whose
code takes in an address: code can be part of more than one function, so a host
that has to stop at an address marks each of them, not only the one starting
there.
@fearkov
fearkov merged commit f507bcb into fearkov:main Oct 30, 2026
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.

2 participants