Store Byte to Memory With a 5-Bit Unsigned Constant Offset or Register Offset STB

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

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

A1

A10 mem 100h

STH, STW

 

STB .D1

A1,*A10

 

Before

 

 

1 cycle after

instruction

 

 

instruction

 

 

 

 

 

 

9A32

7634h

 

A1

9A32

7634h

 

 

 

 

 

 

 

 

 

 

 

 

0000

0100h

 

A10

0000

0100h

 

 

 

 

 

 

 

 

 

 

 

11h

mem 100h

 

11h

 

 

 

 

 

 

A1

A10 mem 100h

3 cycles after

instruction

9A32 7634h

0000 0100h

34h

SPRU733

Instruction Set

3-237

Page 297
Image 297
Texas Instruments TMS320C67X/C67X+ DSP manual Sth, Stw, Before Cycle after Instruction