Slide 8.6: Addressing modes Slide 8.8: Memory addressing (cont.) Home |
MOVS
: Move string, and
CMPS
: Compare strings.
mov eax, X+2 |
mov eax, X[2] |
mov eax, [X+2] |
.data X DWORD 12345678h .code mov eax, 0 mov eax, X+2 call WriteHex |
.data X DWORD 12345678h .code mov eax, 0 mov eax, X[2] call WriteHex |
.data X DWORD 12345678h .code mov eax, 0 mov eax, [X+2] call WriteHex |
Output | Output | Output |