Renesas R8C/Tiny Series Software Manual page 95

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 interrupts.
[ Selectable src ]
#IMM
*1*2
*1 #IMM denotes a software interrupt number.
*2 The range of values that can be taken on 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 ]
Interrupt by INT instruction
2
+
2)
, FLG
H
2
+
2)
ML
+
src
4)
src
S
Z
D
C
BRK,INTO
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 on the left.
78
3.2 Functions
src
.
represents a software interrupt
INT
Page=181

Advertisement

Table of Contents
loading

Table of Contents