11.5 Debugging Assembly Language

The Microsoft Macro Assembler (MASM) versions 5.0 and later provide type and size information for CodeView. With this information, CodeView can correctly evaluate expressions derived from assembly code (except for arrays, which require a different syntax, as discussed later in this section).

You can use either the C or C++ expression evaluators for debugging assembly language; CodeView does not have an assembly-language expression evaluator. The C and C++ expression evaluators provide special operators to simulate essential MASM operations.

You cannot always specify an expression in CodeView exactly as it would appear in assembly-language source code. You have to write an equivalent CodeView expression. This section describes the CodeView equivalents for MASM expressions.