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

Unneeded SIB byte #5

Open
gaul opened this issue Sep 6, 2020 · 1 comment
Open

Unneeded SIB byte #5

gaul opened this issue Sep 6, 2020 · 1 comment

Comments

@gaul
Copy link
Owner

gaul commented Sep 6, 2020

Simple indirect references can elide the SIB byte:

C645 04 05           mov byte[ebp+4],5
C64465 04 05         mov byte[ebp+4],5
C64425 04 05         mov byte[ebp+4],5
C644A5 04 05         mov byte[ebp+4],5
C644E5 04 05         mov byte[ebp+4],5

From https://www.strchr.com/machine_code_redundancy.

@gaul
Copy link
Owner Author

gaul commented Oct 11, 2021

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

1 participant