Skip to content
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

ARM PC-relative Tests #11

Open
aarant opened this issue Oct 19, 2020 · 2 comments
Open

ARM PC-relative Tests #11

aarant opened this issue Oct 19, 2020 · 2 comments

Comments

@aarant
Copy link

aarant commented Oct 19, 2020

Add tests for PC-relative instructions in ARM mode.

Some examples include:

  • LDRH r12,[pc+0x16] E1DFC1B6, which requires a 2-byte change from B6 to B4 to work on emulator/console.

  • sbc r12,pc,** E2CFC0** %% R12=PC-** **=C5 on emulator, C7 on console, which requires different values to create the same result in r12.

@endrift
Copy link
Member

endrift commented Oct 19, 2020

for the latter, what is the address of the instruction and what is the result you want in r12?

@aarant
Copy link
Author

aarant commented Oct 19, 2020

It varies with Emerald's ASLR, so I can't really give a constant value, but both are in EWRAM, if that helps.

This is where it's pulled from, Line 47: https://pastebin.com/kYfBzVE3

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

No branches or pull requests

2 participants