-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when tracing and emulating the instruction [90 fd] = > CALL (Y) #9
Comments
Looks like 'my' binary had only |
Here's an example compiled with int test_function(void) {
return 123;
}
int main(void) {
volatile int(*function)(void) = test_function;
function();
return function();
} What @konvikkor mentioned seems to be correct: |
Could you check that this fix haven't break anything? And, maybe, you also have another CALL/JP cases with variable destination like |
Error when tracing and emulating the instruction [90 fd] = > CALL (Y)
debugging at the chip level and in the Ghidra program showed that the instruction in the STM8S controller works differently than in the documentation.
How it works
CALL (Y) is equivalent to CALL Y without a request to address a jump by the value of register Y and the same with register X
The text was updated successfully, but these errors were encountered: