Mitsubishi M16C/60 Series Software Manual page 50

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/60 Series:
Table of Contents

Advertisement

BRK
(B) ← 1
Op e r a t io n :
(PC) ← (PC) + 2
(M(S)) ← (PC
(S) ← (S) – 1
(M(S)) ← (PC
(S) ← (S) – 1
(M(S)) ← (PS)
(S) ← (S) – 1
(I) ← 1
(PC) ← BADRS (Note 1)
F u n c t io n :
When the BRK instruction is executed, the CPU pushes the
current PC contents onto the stack. The BADRS designated in
the interrupt vector table is stored into the PC.
St a t u s fla g : N :
V :
T :
B :
I :
D :
Z :
C :
Addressing mode
∆BRK∆
Implied
Notes 1: "BADRS" means a break address.
2: The value of the PC pushed onto the stack by the execution of the
BRK instruction is the BRK instruction address plus two. Therefore,
the byte following the BRK will not be executed when the value of
the PC is returned from the BRK routine.
3: Both after the BRK instruction is executed and after INT is input, the
program is branched to the address where is specified by the inter-
rupt vector table. By testing the value of the B Flag in the PS
(pushed on the Stack) in the interrupt service routine, the user can
determine if the interrupt was caused by the BRK instruction.
44
FORCE
)
H
)
L
No change
No change
No change
1
1
No change
No change
No change
Statement
BR
K
EA
Machine codes
Byte number
00
16
BRK
Cycle number
1
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/20 series

Table of Contents