October 2018
Beginner to intermediate
436 pages
9h 36m
English
NEG
This operation does a two's complement.
Consider the following as an example: NEG EAX or NEG dword ptr [00403000].
If EAX were 01h, it becomes FFFFFFFFh (-1).
MOVSX
This moves a BYTE to WORD or WORD to DWORD, including the sign. It is a more flexible instruction than CBW, CWDE, CWD, since it accommodates operands.
Consider the following as an example: MOVSX EAX, BX.
If BX were FFFFh (-1) and the sign flag is set, EAX will be FFFFFFFFh (-1).
CBW
Similar to MOVSX, it converts a BYTE into WORD, including the sign. The affected register is AL and AX. This is an instruction without any operands and is similar to MOVSX. The effect turns the byte AL extend to its word counterpart, AX. Such conversion is dentoed with ...
Read now
Unlock full access