beautypg.com

Texas Instruments MSP50C6xx User Manual

Page 213

background image

Individual Instruction Descriptions

4-127

Assembly Language Instructions

Description

Copy value of src string to dest string. Premodification of accumulator pointers
is allowed with some operand types.

Syntax

Description

MOVS An[~], {adrs}

Move data memory word string to An[~] string

MOVS {adrs}, An[~]

Move An[~] string to data memory

MOVS {adrs}, *An

Move program memory string at *An to data memory

MOVS An[~], pma16

Move program memory string to An[~] string

MOVS An, An~

Move An~ string to An

MOVS An~, An

Move An string to An~ string

MOVS An[~], PH

Move product high reg to An[~], string mode. This instruction ignores the string
count, executing only once but maintains the CF and ZF status of the previous
multiply or shift operation as if the sequence was a single string.

MOVS An[~], *An[~]

Move program memory string at *An[~] to An[~]

See Also

MOVU, MOV, MOVT, MOVB, MOVBS

Example 4.14.31.1

MOVS A2~, *R6

Load the string pointed by R6 to accumulator string A2~.

Example 4.14.31.2

MOVS *R4, A2~

Copy the accumulator string A2~ to data memory location pointed by R4.

Example 4.14.31.3

MOVS *0x0100 * 2, *A0

Transfer the program memory word string pointed by content of A0 to the data memory word location
0x0100. This is a lookup instruction.

Example 4.14.31.4

MOVS A2~, 0x1400

Transfer program memory string at 0x1400 to accumulator string A2~.

Example 4.14.31.5

MOVS A1, A1~

Transfer accumulator string A1~ to accumulator string A1.

Example 4.14.31.6

MOVS A1~, A1

Transfer accumulator string A1 to accumulator string A1~.

Example 4.14.31.7

MOVS A2, PH

Transfer value in PH to accumulator string A2. PH is copied to the second word of the string.