Ext Imm13 - Epson S1C17 Series Manual

Cmos 16-bit single chip microcontroller
Hide thumbs Also See for S1C17 Series:
Table of Contents

Advertisement

7 DETAILS OF INSTRUCTIONS

ext imm13

Function
Immediate extension
Standard)
Extension 1) Unusable
Extension 2) Unusable
15 14 13 12 11 10
Code
0
1
0
|
|
IL
IE
C
Flag
|
|
Mode
Immediate data (unsigned)
CLK
One cycle
Description
Extends the immediate data or operand of the following instruction.
When extending an immediate data, the immediate data in the ext instruction will be placed on the
high-order side and the immediate data in the target instruction to be extended is placed on the low-
order side.
Up to two ext imm3 instructions can be used sequentially. In this case, the immediate data in the
first ext instruction is placed on the most upper part. When three or more ext instructions have
been described sequentially, the last two are effective and others are ignored.
See descriptions of each instruction for the extension contents and the usage.
Interrupts for the ext instruction (not including reset and debug break) are masked in the hardware,
and interrupt handling is determined when the target instruction to be extended is executed. In this
case, the return address from interrupt handling is the beginning of the ext instruction.
Example
ext
ext
add.a
Caution
When a load instruction that transfers data between memory and a register follows the ext
instruction, an address misaligned interrupt may occur before executing the load instruction (if the
address that is specified with the immediate data in the ext instruction as the displacement is not a
boundary address according to the transfer data size). When an address misaligned interrupt occurs,
the interrupt handling saves the address of the load instruction into the stack as the return address.
If the interrupt handler routine is returned by simply executing the reti instruction, the previous
ext instruction is invalidated. Therefore, it is necessary to modify the return address in that case.
7-34
Extends the immediate data/operand of the following instruction
9
8
7
|
imm13
|
|
|
|
|
|
V
Z
N
|
|
|
0x7ff
0x1fff
%r1,%r2
; r1 = r2 + 0xffffff
Seiko Epson Corporation
6
5
4
3
2
1
0
|
|
|
|
|
|
S1C17 CORE MANUAL
(REV. 1.2)

Advertisement

Table of Contents
loading

Table of Contents