English
Language : 

GMS30C2116 Datasheet, PDF (319/322 Pages) Hynix Semiconductor – USERS MANUAL
Appendix A. Instruction Set Details
Index Move
A-145
XMx
Format:
RRlim format
15
OP-code 0001 00
e
XXX
9 87
43
0
ds
Rd-code
Rs-code
lim1
lim2
s = 0: Rs-code encodes G0..G15 for Rs, s = 1: Rs-code encodes L0..L15 for Rs
d = 0: Rd-code encodes G0..G15 for Rd, d = 1: Rd-code encodes L0..L15 for Rd
XXX: X-code, X14..X12 encode index instructions
e = 0: lim = 20 zeros // lim1, range 0..4,095
e = 1: lim = 4 zeros // lim1 // lim2, range 0..268,435,455
Notation:
XMx Rd, Rs, imm
XMx Rd, Rs, 0 (Move without flag change)
Description:
The source operand is placed shifted left by 0, 1, 2 or 3 bit positions in the destination
register, corresponding to a multiplication by 1, 2, 4 or 8. At XM1..XM4, a trap to Range
Error occurs if the source operand is higher than the immediate operand lim (upper bound).
All condition flags remain unchanged. All operands and the result are interpreted as
unsigned integers.
The SR must not be denoted as a source or as a destination, nor the PC as a destination
operand; these notations are reversed for future expansion. When the PC is denoted as a
source operand, a trap to Range Error occurs if PC > lim.
Operation:
X-code Format Notation
Operation
0
RRlim
XM1 Rd, Rs, lim
Rd := Rs ∗ 1;
if Rs > lim then
trap ⇒ Range Error;
1
RRlim
XM2 Rd, Rs, lim
Rd := Rs ∗ 2;
if Rs > lim then
trap ⇒ Range Error;
2
RRlim
XM4 Rd, Rs, lim
Rd := Rs ∗ 4;
if Rs > lim then
trap ⇒ Range Error;