Repository navigation
recomp-abi: Library::interpret and interpret_at - #1
Merged
Merged
Conversation
patricksmill
force-pushed
the
interpret-at
branch
from
October 29, 2026 16:56
aa060d7 to
b43cd5a
Compare
…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.
patricksmill
force-pushed
the
interpret-at
branch
from
October 29, 2026 16:58
b43cd5a to
4625a68
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 atstartstale.interpret_at(unit, address)marks every function whose code includesaddress, 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.