PPT Slide
A0 A
A1 X
A2 count=40
A3 A*X
A4 Y
A15
MVK .S 40, A2
LDH .D *MemA, A0
LDH .D *MemX, A1
MPY .M A0, A1, A3
ADD .L A3, A4, A4
B .S loop
STH .D A4, *MemY
32-bits
Data Memory
.M
.L
Register File A
.D
.S
loop:
.
.
.
2
Previous slide
Next slide
Back to first slide
View graphic version
Notes:
Returning to our code example, we insert the move K instruction, which initializes the loop counter, A2.