F²MC-16FX Family, Emulating and Debugging with Softune and MB2198-01, Doc. No. 002-04828 Rev. *B
19
5. Breakpoints
How to Set Break Points
Two types of break points are possible. Code break point and Data break point.
Code Break Point:
When code break point is set, program execution stops when the PC passes the break address (when instruction
at that address is executed).
Four hardware code break points can be set and 2048 software break points can be set. For software break
point, program halts every time when PC passes through the set address.
Hardware break point can be set with
pass count
from 1 to 65535 and
address mask
.
Pass count: It is the count of times PC needs to pass the set address before program execution stops at the
break point.
Address Mask: Apattern of characters, 32 bits long, used to select some of the bits from break address. For each
bit set to one in address mask field, corresponding bit from break address is compared for exact match with the
corresponding bit hold by PC and for each bit set to zero, corresponding bit from break address is ignored. Detail
explanation with example is given in coming chapters.
Data Break Point:
When Data break point is set, program execution stops when the data at break address is accessed.
As explained in hardware code breakpoint it is possible to set hardware data break point with
address mask
and
pass count
.
It is also possible to specify the
data
content with
data mask
, which is when read from or written to
break
address
, program execution will halt.
Further data can be specified with
size
option i.e. byte or word
.
Four data break points can be set.
5.1
Setting Break points
5.1.1
Setting code break point through editor window
Each assembler line in the mixed mode display of the source code has a blue arrow and a green circle symbol