Memory operators are unary operators that return the result of a direct memory operation. These operators are used mainly to debug assembly-language code.
Syntax
{BY | WO | DW} address
The BY operator returns a short integer that contains the first byte at address. This operator simulates BYTE PTR.
The WO operator returns a short integer that contains the value of the word (two bytes) at address. This operator simulates the Microsoft Macro Assembler WORD PTR operation. The DW operator returns a long integer that contains the value of the first four bytes at address. This operator simulates DWORD PTR.
The x format specifier used in some of these examples causes the result to be displayed in hexadecimal.
Examples
BY sum
new_set
:
WO new_set
DW sum
BY ebp+6,x
WO esp,x
DW esi,x