Skip to content

Allow for sub address instructions.#10

Merged
KallDrexx merged 1 commit intoApfelTeeSaft:mainfrom
KallDrexx:support_virtual_instructions
Oct 12, 2025
Merged

Allow for sub address instructions.#10
KallDrexx merged 1 commit intoApfelTeeSaft:mainfrom
KallDrexx:support_virtual_instructions

Conversation

@KallDrexx
Copy link
Collaborator

When a wrap around scenario is detected during single function tracing, if the address prior to the "entry point" is a single byte, then we do not have any space to add the required jump call.

This fixes that by adding the concept of sub address instructions. This allows adding instructions at runtime that get sorted correctly against the real instructions from the ROM.

This not only solves the wrapping issue, but also allows for adding hooks at runtime.

When a wrap around scenario is detected during single function tracing,
if the address prior to the "entry point" is a single byte, then we do
not have any space to add the required jump call.

This fixes that by adding the concept of sub address instructions. This
allows adding instructions at runtime that get sorted correctly against
the real instructions from the ROM.

This not only solves the wrapping issue, but also allows for adding hooks
at runtime.
@KallDrexx KallDrexx merged commit bcd9ed4 into ApfelTeeSaft:main Oct 12, 2025
10 checks passed
@KallDrexx KallDrexx deleted the support_virtual_instructions branch October 12, 2025 03:17
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