English
Language : 

GMS30C2216 Datasheet, PDF (51/320 Pages) Hynix Semiconductor – 16/32 BIT RISC/DSP
Instruction General
2-3
2.3 Instruction Formats
Instructions have a length of one, two or three half-words and must be located on half-
word boundaries. The following formats are provided:
Format
Configuration
15
87
43
0
LL
OP-code
Ld-code Ls-code
Ls-code encodes L0..L15 for Ls
Ld-code encodes L0..L15 for Ld
LLext
15
OP-code
87
43
0
Ld-code Ls-code
OP-code extension
Ls-code encodes L0..L15 for Ls
Ld-code encodes L0..L15 for Ld
OP-code extension encodes the
EXTEND instructions
15
987
43
0 s = 0: Rs-code encodes G0..G15 for Rs
s = 1: Rs-code encodes L0..L15 for Rs
LR
OP-code
s Ld-code Rs-code
Ld-code encosed L0..L15 for Ld
15
10 9 8 7
43
0
s = 0: Rs-code encodes G0..G15 for Rs
s = 1: Rs-code encodes L0..L15 for Rs
RR
OP-Code d s Rd-code Rs-code
d = 0: Rd-code encodes G0..G15 for Rd
d = 1: Rd-code encodes L0..L15 for Rd
15
987
43
0
Ld-code encodes L0..L15 for Ld
Ln
OP-code
n Ld-code
n
n: Bit 8//bits 3..0 encode n = 0..31
15
10 9 8 7
43
0 d = 0: Rd-code encodes G0..G15 for Rd
Rn
OP-Code d n Rd-code
n
d = 1: Rd-code encodes L0..L15 for Rd
n: Bit 8//bits 3..0 encode n = 0..31
PCadr
15
OP-code
87
0
adr-byte
adr = 24 ones's//adr-byte(7..2)//00
PCrel
15
OP-code
876
10
0
low-rel
S
S: sign bit of rel
rel = 25 S//low-rel//0
range -128..126
PCrel
15
OP-code
876
10
1
high-rel
low-rel
S
S: sign bit of rel
rel = 9 S//high-rel//low-rel//0
range -8 388 608..8 388 606
Table 2.1: Instruction Formats, Part 1