Use type casts or the BY, WO, and DW operators with the address-of operator (&) to replace the assembly-language PTR operator.
MASM Expression | CodeView Equivalents |
BYTE PTR Var | BY &Var *(unsigned char*)&Var |
WORD PTR Var | WO &Var *(unsigned *)&Var |
DWORD PTR Var | DW &Var *(unsigned long*)&Var |