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

Improve operand parsing for more instructions #23875

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Conversation

edeca
Copy link
Contributor

@edeca edeca commented Jan 9, 2025

This sets ->ptr and other values when the operand points to memory.

Partial fix for issue #23857.

  • Mark this if you consider it ready to merge
  • I've added tests (optional)
  • I wrote some lines in the book (optional)

Description

As per discussion in #23857, additional instructions now have operands handled.

Some - like rotate and shift instructions - only take memory address in the first operand. Some already had equivalent parsing, e.g. cmp* instructions are covered by the inscmp() function.

This PR doesn't change any of the MMX/SSE/AVX instructions, which need a bit more thought as some take three operands / 128 bit memory pointers etc.

Tests still required.

This sets ->ptr and other values when the operand points to memory.

Partial fix for issue radareorg#23857.
@trufae trufae merged commit c5a6c76 into radareorg:master Jan 9, 2025
45 checks passed
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.

2 participants