Using the word or dword qualifiers to control the size
of a near jump produces illegal code:
27 00000042 66E90801 jmp
dword faraway ; Explicit
... NASM produces the 66 prefix, but does not change
the size of the operand to 32 bits (the correct
encoding is 66E908010000). As a result, the bytes
immediately after the instruction will be interpreted
as part of the address.
This is bad.
Log in to post a comment.