Texas Instruments MSP50C6xx User Manual

Page 205

Advertising
background image

Individual Instruction Descriptions

4-119

Assembly Language Instructions

Syntax

Description

MOV STR, imm8

Move immediate byte to String Register (STR)

MOV APn, imm5

Move immediate 5-bit value to APn register

† Accumulator condition flags are modified to reflect the value loaded into either An or An~.
‡ Signed multiplier mode resets UM (bit 1 in status register) to 0
¶ Load the logic value of the test condition to the TFn bit in the status register (STAT). If the condition is true, TFn=1, else TFn=0.

See Also

MOVU, MOVT, MOVB, MOVBS, MOVS

Example 4.14.28.1

MOV A0, *0x0200 * 2, ++A

Preincrement accumulator pointer AP0. Copy content of word memory location 0x0200 to accumulator
A0.

Example 4.14.28.2

MOV *0x0200 * 2, A0, ++A

Preincrement accumulator pointer AP0. Copy content of accumulator A0 to word memory location
0x0200.

Example 4.14.28.3

MOV *0x0200 * 2, *A1

Transfer content of program memory location pointed by A1 to word data memory location 0x0200.

Example 4.14.28.4

MOV A2, 0xf200, ––A

Predecrement accumulator pointer AP2. Load accumulator A2 with immediate value 0xf200.

Example 4.14.28.5

MOV A0, A0~

Copy content of accumulator A0~ to accumulator A0.

Example 4.14.28.6

MOV A0~, A0

Copy content of accumulator A0 to accumulator A0~.

Example 4.14.28.7

MOV A0~, PH

Copy content of PH to accumulator A0~.

Example 4.14.28.8

MOV SV, A3, ––A

Predecrement accumulator pointer AP3. Copy content of accumulator A3 to SV.

Example 4.14.28.9

MOV PH, A3

Copy content of accumulator A3 to PH.

Example 4.14.28.10

MOV MR, A3, ––A

Predecrement accumulator pointer AP3. Copy content of accumulator A3 to MR.

Example 4.14.28.11

MOV A1~, *A1

Transfer program memory value pointed by accumulator A1 to accumulator A1~. This is a table lookup
instruction.

Example 4.14.28.12

MOV *0x0200 * 2, R0

Store content of R0 to data memory word location 0x0200.

Advertising