This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Using the Disassembly Window
To display the Disassembly window
- From the Debug menu, choose Windows and click Disassembly. (The debugger must be running or in a break state.)
The Disassembly window shows assembly code corresponding to the instructions created by the compiler. In addition, it can show the following optional information:
- Memory address where each instruction is located. (For native applications, this is the actual memory address. For C# or managed code, it is a pseudomemory address where the beginning of the application's memory space is location zero.)
- Source code from which the assembly code derives
- Code bytes (byte representations of the actual machine-code instructions)
- Symbols names for the memory addresses
- Line numbers corresponding to the source code
To turn optional information on or off
- Right-click in the Disassembly window and set or clear the desired options in the shortcut menu.
A yellow arrow in the left margin shows the location of the current execution point. For native code, this corresponds to the CPU's program counter. This location shows the next instruction that will be executed in your program.
Navigating the Memory Space
To page up or down in the memory space
- Click the vertical scrollbar, above or below the thumb.
You can't scroll by dragging the thumb up or down, as you can with ordinary scrollbars. Due to the huge size of the memory space on modern computers, scrolling would likely cause you to overshoot any area of memory you were looking for. So, the thumb acts as if it were spring loaded and always remains in the center of the scrollbar.
Notice that higher memory addresses appear at the bottom of the window, so if you want to view a higher address, you must page down.
To move up or down one instruction
- Click the arrow at the top or bottom of the vertical scrollbar.
See Also
Disassembly Window | Inspecting Your Program