Renesas R8C/Tiny Series Software Manual page 96

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

Advertisement

Chapter 3
Functions
INT
[ Syntax ]
INT
src
[ Operation ]
SP
SP –
M(SP)
(PC
SP
SP
M(SP)
(PC
PC
M(IntBase
[ Function ]
• This instruction generates a software interrupt specified by
number.
src
• If
is 31 or smaller, the U flag is cleared to 0 and the interrupt stack pointer (ISP) is used.
src
• If
is 32 or larger, the stack pointer indicated by the U flag is used.
• The interrupts generated by the INT instruction are nonmaskable.
[ Selectable src ]
*1*2
#IMM
*1 #IMM denotes a software interrupt number.
*2 The acceptable range of values is 0 < #IMM < 63.
[ Flag Change ]
U
I
O B
Flag
Change
Conditions
U :
The flag is cleared if the software interrupt number is 31 or smaller. The flag does not change if
the software interrupt number is 32 or larger.
I
:
The flag is cleared.
D :
The flag is cleared.
[ Description Example ]
INT
#0
[ Related Instructions ]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
Interrupt by INT instruction
2
+
2)
, FLG
H
2
+
2)
ML
+
src
4)
src
S
Z
D
C
BRK, INTO
page 78 of 263
INTerrupt
[ Instruction Code/Number of Cycles ]
src
.
*3 The flags are saved to the stack area before the INT in-
struction is executed. After the interrupt, the flags
change state as shown at left.
3.2 Functions
src
represents a software interrupt
INT
Page: 181

Advertisement

Table of Contents
loading

Table of Contents