Individual Instruction Descriptions

4.14.35 MOVSPHS

 

 

 

 

 

Move String With Subtract From PH

 

 

 

 

 

 

 

 

 

 

 

Syntax

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[label]

name

 

dest, src, src1

 

 

 

Clock, clk

Word, w

 

 

With RPT, clk

 

 

Class

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOVSPHS

 

An, MR, {adrs}

 

 

 

 

 

Table 4–46

 

 

 

 

Table 4–46

 

 

1b

Execution

 

An

 

 

An (second word) PH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MR contents of {adrs}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC PC + w

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flags Affected

 

TAG, OF, SF, ZF, CF are set accordingly

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Opcode

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instructions

 

 

 

16

 

15

14

13

12

11

10

9

 

8

 

7

 

6

 

5

 

4

 

3

2

 

1

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOVSPHS An, MR, {adrs}

 

 

0

 

1

1

0

0

1

1

 

An

 

 

 

 

 

 

 

 

adrs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

x

 

 

 

dma16 (for direct) or offset16 (long relative) [see section 4.13]

 

 

 

 

Description

 

Move data memory word string to MR, subtract PH from second word An

 

 

 

string. Store result in An. Certain restrictions apply to the use of this instruction

 

 

 

when interrupts are occuring on the background. See Section 4.8 for more

 

 

 

details.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

See Also

 

MOVSPH, MOVAPH, MOVAPHS, MOVTPH, MOVTPHS

 

 

 

 

 

 

 

 

Example 4.14.37.1 MOVSPHS A0, MR, *R3+R5

Load the content of byte address created by adding R3 and R5 to MR register. At the same time, subtract PH register from second word of A0 string, store result in A0 string.

Assembly Language Instructions

4-129

Page 215
Image 215
Texas Instruments MSP50C6xx Movsphs Move String With Subtract From PH, An second word PH MR contents of adrs, Details