7
DETAILS OF INSTRUCTIONS
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
77
ext
imm13
Function
Immediate extension
Standard)
Extends the immediate data/operand of the following instruction
Extension
1
) Unusable
Extension
2
) Unusable
Code
15
13
12
0
1
1
0
imm13
0xC0__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IE C V Z N
– – – – –
|
|
|
|
Mode
Immediate data (unsigned)
CLK
Zero or One cycle (depending on the instruction queue status)
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. If three or more
ext
imm13
instructions are
described sequentially, an undefined instruction exception (
ext
exception) will occur.
See descriptions of each instruction for the extension contents and the usage.
Exceptions for the
ext
instruction (not including reset and debug break) are masked in the
hardware, and exception handling is determined when the target instruction to be extended is
executed. In this case, the return address from exception handling is the beginning of the
ext
instruction.
Example
ext 0x1000
ext 0x1fff
add %r1,0x3f
; r1 = r1 + 0x8007ffff
Caution
When a load instruction that transfers data between memory and a register follows the
ext
instruction, an address misaligned exception 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 exception occurs,
the trap handling saves the address of the load instruction into the stack as the return address. If
the trap 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.
Содержание S1C33 Series
Страница 1: ...CMOS 32 BIT SINGLE CHIP MICROCOMPUTER Core Manual S1C33 Family C33 PE ...
Страница 4: ......