Sub %Sp, Imm10 - Epson S1C33 Series Core Manual

Cmos 32-bit single chip microcomputer
Hide thumbs Also See for S1C33 Series:
Table of Contents

Advertisement

7 DETAILS OF INSTRUCTIONS

sub %sp, imm10

Function
Subtraction
Standard)
Extension 1) Unusable
Extension 2) Unusable
15
Code
1
0
0
|
|
IE
C
V
Flag
|
|
Mode
Src:Immediate data (unsigned)
Dst:Register direct (SP)
CLK
One cycle
Description
(1) Standard
Quadruples the 10-bit immediate imm10 and subtracts it from the stack pointer SP. The imm10
is zero-extended into 32 bits prior to the operation.
(2) Delayed instruction
This instruction may be executed as a delayed instruction by writing it directly after a branch
instruction with the "d" bit.
Example
sub
%sp,0x100
164
sp ← sp - imm10 × 4
12 11 10
9
|
|
0
0
1
|
|
|
|
|
Z
N
|
|
; sp = sp - 0x400
0
imm10
|
|
|
|
|
|
EPSON
0x84__
S1C33 FAMILY C33 PE CORE MANUAL

Advertisement

Table of Contents
loading

Table of Contents