Instructions
www.ti.com
MOV32 mem32, RaH
Move 32-bit Floating-Point Register Contents to Memory
Operands
RaH
floating-point register (R0H to R7H)
mem32
points to the 32-bit destination memory
Opcode
LSW: 1110 0010
0000 0011
MSW: 0000 0aaa
mem32
Description
Move from memory to STF.
[mem32] = RaH
Flags
This instruction modifies the following flags in the STF register:
Flag
TF
ZI
NI
ZF
NF
LUF
LVF
Modified
No
No
No
No
No
No
No
No flags affected.
Pipeline
This is a single-cycle instruction.
Example
;
Perform 5 multiply and accumulate operations:
;
;
1st multiply: A = X0 * Y0
;
2nd multiply: B = X1 * Y1
;
3rd multiply: C = X2 * Y2
;
4th multiply: D = X3 * Y3
;
5th multiply: E = X3 * Y3
;
;
Result = A + B + C + D + E
MOV32
R0H, *XAR4++
; R0H = X0
MOV32
R1H, *XAR5++
; R1H = Y0
; R6H = A = X0 * Y0
MPYF32 R6H, R0H, R1H
; In parallel R0H = X1
|| MOV32
R0H, *XAR4++
MOV32
R1H, *XAR5++
; R1H = Y1
; R7H = B = X1 * Y1
MPYF32 R7H, R0H, R1H
; In parallel R0H = X2
|| MOV32
R0H, *XAR4++
MOV32
R1H, *XAR5++
; R1H = Y2
; R7H = A + B
; R6H = C = X2 * Y2
MACF32 R7H, R6H, R6H, R0H, R1H ; In parallel R0H = X3
|| MOV32
R0H, *XAR4++
MOV32
R1H, *XAR5++
; R1H = Y3
; R3H = (A + B) + C
; R6H = D = X3 * Y3
MACF32 R7H, R6H, R6H, R0H, R1H ; In parallel R0H = X4
||
MOV32
R0H, *XAR4
MOV32
R1H, *XAR5
; R1H = Y4
; R6H = E = X4 * Y4
MPYF32 R6H, R0H, R1H
; in parallel R7H = (A + B + C) + D
|| ADDF32 R7H, R7H, R2H
NOP
; Wait for MPYF32 || ADDF32 to complete
ADDF32 R7H, R7H, R6H
; R7H = (A + B + C + D) + E
NOP
; Wait for ADDF32 to complete
MOV32
@Result, R7H
; Store the result
See also
82
Instruction Set
SPRUEO2A – June 2007 – Revised August 2008
Содержание TMS320C28 series
Страница 2: ...2 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 12: ...Introduction 12 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 20: ...CPU Register Set 20 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...
Страница 136: ...Instruction Set 136 SPRUEO2A June 2007 Revised August 2008 Submit Documentation Feedback ...