-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now injects a branch instruction and sets the value elsewhere.
This allows for 32 bit values instead of the previous 16 bit limit. Since I could not find any suitable chunks of unused bytes near the original function I had to introduce a detour into the normal control flow. The original function's 16 bit immediate move instruction is replaced by a unconditional branch to a function fragment at the top of flash rom. The new value is loaded from the last 32 bit word of flash and control flow proceeds in the original function after the replaced instruction.
- Loading branch information
Showing
3 changed files
with
212 additions
and
85 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.