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

Fixes for mov op for nz assembler #5020

Merged
merged 1 commit into from May 27, 2016
Merged

Fixes for mov op for nz assembler #5020

merged 1 commit into from May 27, 2016

Conversation

Svenito
Copy link
Contributor

@Svenito Svenito commented May 27, 2016

A number of fixes and updates to the mov command for the nz assembler including:

  • handling of esp register in more cases
  • able to handle negative offsets for target register both byte and word
  • able to handle negative offsets for target with immediate value as
    source, both byte and word
  • refactor mov block of code to be more consistent (further work needed)

Goes with r2r PR radare/radare2-regressions#435

ut8 *N = (ut8 *)&n;
int r = getreg (arg);
int r2;
int r2_is_num = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is bool , right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. I've seen int used in other places. Will replace with bool if preferable.

A number of fixes and updates to the `mov` command for the nz assembler
including:

* handling of `esp` register in more cases
* able to handle negative offsets for target register both byte and word
* able to handle negative offsets for target with immediate value as
        source, both byte and word
* refactor mov block of code to be more consistent (further work needed)
@radare radare merged commit c58689b into radareorg:master May 27, 2016
@radare
Copy link
Collaborator

radare commented May 27, 2016

thx

@Svenito Svenito deleted the neg-offset-nz branch June 20, 2016 11:03
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.

None yet

2 participants