The debugger does not recognize brackets ([ ]) to indicate a memory location pointed to by a register. Instead, use the BY, WO, and DW operators to reference the corresponding byte, word, or doubleword values.
MASM expression | Debugger expression | C++ expression |
---|---|---|
BYTE PTR [bx] | BY ebx | *(unsigned char) ebx |
WORD PTR [bp] | WO ebp | *(unsigned short *) ebp |
DWORD PTR [bp] | DW ebp | *(unsigned long *) ebp |