Individual Instruction Descriptions

4.14.32 MOVBS

 

 

Move Byte String from Source to Destination

 

 

 

 

 

 

Syntax

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[label]

 

name

 

dest, src

 

 

 

 

 

 

Clock, clk

Word, w

 

 

With RPT, clk

 

 

Class

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOVBS

An, {adrs}8

 

 

 

 

 

 

 

Table 4–46

 

 

 

 

Table 4–46

 

 

1b

 

 

MOVBS

{adrs}, An

 

 

 

 

 

 

 

Table 4–46

 

 

 

 

Table 4–46

 

 

1b

Execution

dest

src

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC PC + w

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flags Affected

dest is An:

 

 

 

OF, SF, ZF, CF are set accordingly

 

 

 

 

 

 

 

 

 

dest is {adrs}:

 

 

XSF, XZF are set accordingly

 

 

 

 

 

 

 

 

 

 

 

 

src is {adrs}

 

 

 

TAG bit is set to bit 17th value

 

 

 

 

 

 

 

 

 

Opcode

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instructions

 

 

16

15

 

14

13

12

 

11

10

9

 

8

7

 

6

 

5

 

4

 

3

2

 

1

 

0

MOVBS An, {adrs}8

 

 

0

1

 

0

0

1

 

1

1

 

An

 

 

 

 

 

 

 

adrs

 

 

 

 

 

 

 

 

 

 

 

x

 

 

 

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOVBS {adrs}8, An

 

 

0

1

 

0

1

0

 

0

0

 

An

 

 

 

 

 

 

 

adrs

 

 

 

 

 

 

 

 

 

 

 

x

 

 

 

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

 

 

 

 

Description

Copy value of src byte to dest.

 

 

 

Syntax

 

Description

 

 

 

MOVBS An, {adrs}

 

Move data memory byte string to An word string

 

 

 

MOVB {adrs}, An

 

Move An byte string to data memory

See Also

MOVU, MOV, MOVT, MOVB, MOVS

Example 4.14.30.1

MOVBS A2, *0x0200

Transfer the byte string at data memory location 0x0200 to accumulator string A2.

Example 4.14.30.2

MOVBS *0x0200, A2

Transfer accumulator string A2 to data memory byte string location 0x0200.

Assembly Language Instructions

4-125

Page 211
Image 211
Texas Instruments MSP50C6xx manual Movbs Move Byte String from Source to Destination, TAG bit is set to bit 17th value