Epson S5U1C17001C Manual page 159

Cmos 16-bit single chip microcontroller (c compiler package for s1c17 family) (ver. 3.2)
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

 Processing resulting from the embedment of BRK command in source
When a BRK command embedded in a user application source, instead of a break command, PC+=2 is automatically
performed following a software break (①+2 results in ② in the following example). By embedding a BRK command in a
source, breaks can be implemented at a number of locations exceeding the number of hard breaks when ROM such as flash
memory is used for execution.
Example:
sample.c
void main()
{
a = b + 1
iRet = sub( a )
asm( "brk" )
if ( iRet 1 ) {
b -= 2
}
In the above example, if a software break is set at ①, the process stops at ①. This is because the debugger cannot
determine whether the BRK command embedded in memory is by a break command or one embedded in the source. Note
that the breakpoint setting must be cleared before the next execution.
When a hardware break is set at ①, the process stops at ②. After ③ is processed by "next," the process stops at ②.
S5U1C17001C Manual
(Rev. 1.0)
;
< Continues here.
;
< ③
;
< ①Embedment of brk command
;
< ②Stops here. (BRK command address + 2)
;
;
Seiko Epson Corporation
8 Debugger
8-33

Advertisement

Table of Contents
loading

Table of Contents