![](http://datasheet.mmic.net.cn/230000/WGDB7_datasheet_15634924/WGDB7_29.png)
29/76
WGDB7
4.6 Loading a Program
When you load a program, you must specify the
.s19
file (ST7 assembly chain executable) or
.abs
file (Hiware tool chain executable) of the program to be loaded. The symbols are auto-
matically loaded from the appropriate symbol file. For details on the file types that you can de-
bug, see “Preparing Programs for Debugging” on page 17. You may also load such files as:
.in
files, for pin input simulation files (See “Pin Input/Output Simulation” on page 53),
.gdb
files, for GDB command files (See “Using GDB7 Commands” on page 66).
1
On the
File
menu, click
Open
.
The
Choose a File
dialog box opens:
This field:
Displays this:
Program
Counter
The Program Counter (PC) register value. This is a 16-bit register that stores
the address of the next instruction to be executed.
Stacks
The Stack Pointer (SP) value. This value points to the next free stack location.
Accumulator
The Accumulator (A). This is an 8-bit general purpose register used to hold
operands and the results of arithmetic and logic calculations as well as data
manipulations.
Index
Registers
The Indirect Registers (X and Y) are used during register-indirect addressing
mode as pointers to memory locations in the memory space.
Flags
H is the Half Carry Flag. The H bit is set when a carry occurs between the bit
3 and 4 of the ALU during an ADD or ADC instruction. The H bit is useful in
BCD arithmetic subroutines.
I is the Interrupt Mode Flag, which indicate whether or not the ST7 is in
interrupt mode.
N is the Negative Flag. When set, this bit indicates that the result of the last
arithmetic, logical or data manipulation is negative (i.e. the most significant bit
is set).
The zero (Z) flag is set when the result of the last arithmetic or logic operation
is zero, otherwise it is cleared. The carry (C) flag is set when a carry or borrow
occurs during arithmetic operations, otherwise it is cleared.
179