beautypg.com

31 movb move byte from source to destination – Texas Instruments MSP50C6xx User Manual

Page 209

background image

Individual Instruction Descriptions

4-123

Assembly Language Instructions

4.14.31

MOVB

Move Byte From Source to Destination

Syntax

[label]

name

dest, src

Clock, clk

Word, w

With RPT, clk

Class

MOVB

An, {adrs}

Table 4–46

Table 4–46

1b

MOVB

{adrs}, An

Table 4–46

Table 4–46

1b

MOVB

An, imm8

1

1

N/R

2a

MOVB

MR, imm8

1

1

N/R

2a

MOVB

Rx, imm8

1

1

N/R

2b

Execution

dest

src

PC

PC + w

Flags Affected

dest is An:

OF, SF, ZF, CF are set accordingly

dest is Rx:

RCF, RZF are set accordingly

dest is {adrs}:

XSF, XZF are set accordingly

src is {adrs}

TAG bit is set accordingly

Opcode

Instructions

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

MOVB An, {adrs}

0

1

0

0

1

1

0

An

adrs

x

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

MOVB {adrs}, An

0

1

0

1

0

0

0

An

adrs

x

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

MOVB An, imm8

1

0

1

0

0

0

1

An

imm8

MOVB MR, imm8

1

0

1

0

1

1

1

An

imm8

MOVB Rx, imm8

1

0

1

1

1

0

k4

k3

k2

k7

k6

k5

Rx

k1

k0

Description

Copy value of unsigned src byte to dest byte.

Syntax

Description

MOVB An, {adrs}

Move data memory byte to An

MOVB {adrs}, An

Move An byte to data memory

MOVB An, imm8

Move immediate byte to An

MOVB MR, imm8

Move immediate byte to multiply register (MR)

MOVB Rx, imm8

Move immediate byte to Rx

† Zeros loaded to upper 8 bits of An.
‡ Status flags are not modified

See Also

MOVU, MOV, MOVT, MOVBS, MOVS

Example 4.14.29.1

MOVB A0, *R2

Copy data memory byte pointed by R2 to accumulator A0.