beautypg.com

Texas Instruments MSP50C6xx User Manual

Page 261

background image

Individual Instruction Descriptions

4-175

Assembly Language Instructions

4.14.79

STAG

Set Tag

Syntax

[label]

name

dest

Clock, clk

Word, w

With RPT, clk

Class

STAG

{adrs}

Table 4–46

Table 4–46

5

Execution

memory tag bit at address adrs

1

PC

PC + w

Flags Affected

None

Opcode

Instructions

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

STAG {adrs}

1

1

0

1

0

1

1

0

0

adrs

x

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

Description

Sets the tag bit at the addressed memory location. All addressing modes are
available. Note that this instruction accesses only the 17

th

bit of the RAM

location. The argument, {adrs}, is interpreted as bytes. For odd RAM byte
addresses, the least significant bit is ignored.

See Also

RTAG, RFLAG, SFLAG

Example 4.14.79.1

STAG *R2+R5

Set TAG bit of the word in RAM byte address, R2 + R5. R2 and R5 remain unchanged.

Example 4.14.79.2

STAG *0x200 * 2

Set TAG bit of RAM word 0x200 (RAM byte address 0x400).

Example 4.14.79.3

STAG *0x401

Set TAG bit of RAM word 0x200 (RAM byte address 0x400).