-
Notifications
You must be signed in to change notification settings - Fork 238
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
InvalidOperationException
when assembling JMP r/m64
#310
Comments
Looks like a dupe of #212 |
Actually, I think this issue is just invalid altogether. I was under the impression that the |
If you want to jump to the address |
Right. That's precisely the behavior I wanted. Where I was mistaken is that I thought
My hope was to do it in a single instruction without modifying registers, but I see now that that's not going to work - unless I use a far jump, but that's a whole other can of worms. I ended up going with this trick that I've seen used in a few places:
Since this wasn't actually a bug in Iced, I'll go ahead and close this issue. |
This throws:
This seems odd to me. I would expect this to successfully assemble to a
JMP r/m64
: https://www.felixcloutier.com/x86/jmpBut it's quite possible I'm missing something, because some other tools also handle this particular instruction weirdly. For example, Binary Ninja's x86-64 assembler turns
jmp qword [0xaabbccddeeffaabb]
intoff 24 25 bb aa ff ee
...The text was updated successfully, but these errors were encountered: