beautypg.com

Texas Instruments TMS320C2XX User Manual

Page 284

background image

OR With Accumulator

OR

7-131

Assembly Language Instructions

Example 1

OR DAT8

;(DP = 8)

Before Instruction

After Instruction

Data Memory

Data Memory

408h

0F000h

408h

0F000h

ACC

X

100002h

ACC

X

10F002h

C

C

Example 2

OR *,AR0

Before Instruction

After Instruction

ARP

1

ARP

0

AR1

300h

AR1

300h

Data Memory

Data Memory

300h

1111h

300h

1111h

ACC

X

222h

ACC

X

1333h

C

C

Example 3

OR #08111h,8

Before Instruction

After Instruction

ACC

X

0FF0000h

ACC

X

0FF1100h

C

C