
This document information is the intellectual property of Megawin Technology Co., Ltd.
13
Megawin Technology Co., Ltd. 2014 All right reserved.
MEGAWIN
MAKE YOU WIN
8051 OCD ICE
User Manual, v3.00
5.2 Introduction to the Debugger Environment
There are four basic windows regarding the debugging operation in the debugger environment. They are Register
Window, Disassembly Window, Watch Window and Memory Window, as described below.
Register Window
This window shows the contents of the current register bank (R0~R7), the system registers (A, B, SP, DTPR and
the Program Counter) and the Program Status Word (PSW). The register with blue background means its content
is just changed due to the instruction just executed.
Disassembly Window
This window is the default window opened just when the debugger mode is entered. It shows the source-level
code followed by its corresponding assembly code.
Watch Window
This window automatically shows the local variables when
Locals
is clicked. The local variables are the variables
declared within a function including the main() function. To view the global variables, click
Watch #1
or
Watch #2
and type <
F2
> key to edit and enter the variable name. The variable with blue background means its content is
just changed due to the instruction just executed.
Memory Window
This window shows the contents of the memory located at the
data
/
idata
/
xdata
/
code
memory space. The
available commands are: d:0x00~d:0xFF, i:0x00~i:0xFF, x:0x0000~x:0xFFFF and c:0x0000~c:0xFFFF. The user
can view any of the four memory by entering the corresponding command.