-
Notifications
You must be signed in to change notification settings - Fork 55
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
Possible error in PUSH immediate #6
Labels
Comments
Good point. I don't have the original Intel manual that's been around when I wrote the reference but I'd swear the operation was described as follows:
Now, the And sorry for late response. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
PUSH
immediate encodings list the operands types asIbss
andIvs
, the descriptions for which state that they are sign-extended to the size of the stack pointer (which is fixed at 64 bits in 64 bit mode). However, the Intel manual states that immediate operands toPUSH
are sign-extended to the operand size, which defaults to 64 bits in 64 bit mode but may be set to 16 bits using the operand size override prefix. Testing indicates that this does in fact work and it's sign extended to the operand size as the Intel manual states.The text was updated successfully, but these errors were encountered: