Slide 5.6: Defining BYTE and SBYTE data Slide 5.8: Defining strings Home |
|
|
letters BYTE 'a', 'b', 'c', 'd' BYTE 'e', 'f', 'g', 'h'
mix1 BYTE 8, 16q, 32h ; different radixes mix2 BYTE 00100010b, 'f' ; character included
0 + [ X + 2 ] |
0 + [ offset X + 2 ] |
0 + [ offset X + 5 ] |
.data X BYTE 1, 2, 3 .code mov ebx, X + 2 sub eax, eax add al, [ebx] call DumpRegs |
.data X BYTE 1, 2, 3 .code mov ebx, OFFSET X + 2 sub eax, eax add al, [ebx] call DumpRegs |
.data X BYTE 1, 2, 3 Y BYTE 4, 5, 6 .code mov ebx, OFFSET X + 5 sub eax, eax add al, [ebx] call DumpRegs |
Output | Output | Output |