Texas Instruments MSP50C614 ANDS, ANDB, OR, ORB, ORS, XOR, XORB, Xors, A3, *R4б, TF2, *0x0020

Models: MSP50C614

1 414
Download 414 pages 24.44 Kb
Page 173
Image 173

Individual Instruction Descriptions

See Also

ANDS, ANDB, OR, ORB, ORS, XOR, XORB, XORS

Example 4.14.4.1

AND A3, *R4б

And word at address in R4 to A3, store result in A3. Decrement value in R4 by 2 (word mode) after the AND operation.

Example 4.14.4.2 AND A0~, A0, 0xff0f, ±±A

Predecrement accumulator pointer AP0. And immediate value 0xff0f to register accumulator A0, store result in accumulator A0~.

Example 4.14.4.3

AND TF2, *0x0020

AND global flag bit at RAM word location 0x0020 to TF2 in the STAT. Store result in the TF2 bit in the STAT register. Note that {flagadrs} cannot exceed values greater than *0x003F.

Example 4.14.4.4

AND TF1, TF2

AND TF1 with TF2 bit in the STAT register and store result in TF1.

Assembly Language Instructions

4-81

Page 173
Image 173
Texas Instruments MSP50C614 manual ANDS, ANDB, OR, ORB, ORS, XOR, XORB, Xors, A3, *R4б, TF2, *0x0020