Slide 8.5: SIZEOF operator and LABEL directive Slide 8.7: Memory addressing Home |
Register Addressing | Direct-Offset Operand | Immediate Addressing |
.code mov eax, 0 mov ebx, 1 mov ecx, 7 L1: add eax, ebx call WriteInt xchg eax, ebx loop L1 |
.data X SWORD 1234h Y SWORD 5678h .code movsx eax, Y+1-2 call WriteHex |
.data X SWORD 1234h Y SWORD 5678h .code add Y, 1-2 movsx eax, Y call WriteHex |
Output | Output | Output |