Texas Instruments MSP50C614 User Manual

Page 265

Advertising
background image

Individual Instruction Descriptions

4-173

Assembly Language Instructions

4.14.78

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.78.1

STAG *R2+R5

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

Example 4.14.78.2

STAG *0x200 * 2

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

Example 4.14.78.3

STAG *0x401

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

Advertising