Download PDF file - finechips

Transcript
S3CC11B/FC11B
CaImMAC1616
EMUL (2) – Multiply w/ One Parallel Move
Format:
EMUL XiYi, <dest>,<src>
<dest>,<src> : Ai,Mj
Ai,MjSR*
Ai,MjSL**
mgx,@rps
Operation:
P < - Xi * Yi, <dest> <- <src>
This instruction multiplies Xi register value and Yi register value, and stores the result to the P
register. This instruction also stores source operand from data memory or 16-bit higher portion of the
MAj register to the destination register.
Flags:
When <dest> is Ai
Z:
Set if the value to Ai is zero by load. Reset if not.
V:
Set if overflow is generated by load. Reset if not.
N:
Set if loaded value is negative.
Notes: * MjSR : 1-bit right shifted MAj[31:16]
** MjSL : 1-bit left shifted MAj[31:16]
Examples:
EMUL X1Y0, A,MA1SR
EMUL X0Y0, X0,@RP1+S1
# of Words:
1
21-99