Store Halfword to Memory With a 5-Bit Unsigned Constant Offset or Register Offset STH

Execution

Pipeline

Increments and decrements default to 1 and offsets default to zero when no bracketed register or constant is specified. Stores that do no modification to the baseR can use the syntax *R. Square brackets, [ ], indicate that the ucst5 offset is left-shifted by 1. Parentheses, ( ), can be used to set a nonscaled, constant offset. You must type either brackets or parentheses around the specified offset, if you use the optional offset parameter.

Halfword addresses must be aligned on halfword (LSB is 0) boundaries.

if (cond) src mem else nop

Pipeline

E1

Stage

 

 

Read

baseR, offsetR, src

Written

baseR

Unit in use

.D2

 

 

Instruction Type

Store

Delay Slots

0

 

For more information on delay slots for a store, see Chapter 4.

See Also Example 1

A1

A10 mem 104h

STB, STW

 

STH .D1

A1,*+A10(4)

 

Before

 

 

1 cycle after

instruction

 

 

instruction

 

 

 

 

 

 

9A32

7634h

 

A1

9A32

7634h

 

 

 

 

 

 

 

 

 

 

 

 

0000

0100h

 

A10

0000

0100h

 

 

 

 

 

 

1134h

mem 104h

 

1134h

 

 

 

 

 

 

A1

A10 mem 104h

3 cycles after

instruction

9A32 7634h

0000 0100h

7634h

SPRU733

Instruction Set

3-241

Page 301
Image 301
Texas Instruments TMS320C67X/C67X+ DSP manual Stb, Stw, Before