English
Language : 

GMS30C2116 Datasheet, PDF (76/322 Pages) Hynix Semiconductor – USERS MANUAL
3-12
CHAPTER 3
3.2 Move Word Instructions
The source operand or the immediate operand is copied to the destination register and the
condition flags are set or cleared accordingly.
Format Notation
Operation
RR
MOV Rd, Rs
Rd := Rs;
Z := Rd = 0;
N := Rd(31);
V := undefined;
Rimm MOVI Rd, imm
Rd := imm;
Z := Rd = 0;
N := Rd(31);
V := 0;
3.3 Move Double-Word Instruction
The double-word source operand is copied to the double-word destination register pair and
the condition flags are set or cleared accordingly. The high-order word in Rs is copied first.
When the SR is denoted as a source operand, the source operand is supplied as zero
regardless of the content of SR//G2. When the PC is denoted as destination, the Return
instruction RET is executed instead of the Move Double-Word instruction.
Format Notation
Operation
RR
MOVD Rd, Rs
if Rd does not denote PC and Rs does not denote SR then
Rd := Rs;
Rdf := Rsf;
Z := Rd//Rdf = 0;
N := Rd(31);
V := undefined;
RR
MOVD Rd, 0
if Rd does not denote PC and Rs denotes SR then
Rd := 0;
Rdf := 0;
Z := 1;
N := 0;
V := undefined;
RR
RET PC, Rs
if Rd denotes PC then
execute the RET instruction;
Register
L0 : $XXXXXXXX
L1 : $XXXXXXXX
L6 : $0000FFFF
L7 : $FFFF0000
Instruction
MOV L0, L6
MOVI L0, $4
MOVD L0, L6
; L0 = L6 = $0000FFFF
; L0 = imm = $4
; L0 = L6 = $0000FFFF
; L1 = L7 = $FFFF0000