
7 DETAILS OF INSTRUCTIONS
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
69
brk
Function
Debugging exception
Standard) W[0x60008]
← pc + 2, W[0x6000C] ← r0, pc ← W[0x60000]
Extension 1) Unusable
Extension 2) Unusable
Code
15 12 11 8 7 4 3 0
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
0x0400
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IE C V Z N
– – – – –
|
|
|
|
Mode
–
CLK
Nine cycles
Description
Calls a debugging handler routine.
The brk instruction stores the address that follows this instruction and the contents of the R0
register into the stack for debugging, then reads the vector for the debug-handler routine from the
debug-vector address (0x0060000) and sets it to the PC. Thus the program branches to the debug-
handler routine. Furthermore the processor enters the debug mode.
The
retd instruction must be used for return from the debug-handler routine.
This instruction is provided for debug firmware. Do not use it in general programs.
Example
brk ; Executes the debug-handler routine
Comentarios a estos manuales