Texas Instruments MSP50C614 Stereo System User Manual


 
Individual Instruction Descriptions
4-182
See Also XORB, XORS, AND, ANDS, OR, ORS, ORB, NOTAC, NOTACS
Example 4.14.84.1 XOR A1, A1, 0x13FF
XOR immediate value 0x13FF to A1 and store result in A1.
Example 4.14.84.2 XOR A0, A0, 2, ++A
Pre–increment pointer AP0, then XOR immediate value 2 to new A0 and store result in A0.
Example 4.14.84.3 XOR A1, A1~, A1
XOR accumulator A1 to accumulator A1~, put result in accumulator A1.
Example 4.14.84.4 XOR A3, *R4—
XOR word at address in R4 to accumulator A3, decrement value in R4 by 2 (word mode) after the
operation.
Example 4.14.84.5 XOR A2, A2~, *R2+R5, ––A
Pre–decrement pointer AP2. XOR word at effective address R2+R5 to new accumulator A2~, put result
in accumulator A2. Value of R2 is not modified.
Example 4.14.84.6 XOR TF1, *0x21
XOR TF1 with the flag at global address 0x21 and store result in TF1 in STAT.
Example 4.14.84.7 XOR TF2, *R6+0x21
XOR TF2 with the flag at effective address R6+0x21 and store result in TF2.
Example 4.14.84.8 XOR TF1, CF
XOR TF1 with the condition code CF (Carry Flag) and store result in TF1.
Example 4.14.84.9 XOR TF1, RZP, R3
XOR TF1 with the condition code RZP (R
x
=0 flag) for R3, and store result in TF1. If the content of R3
is zero then RZP condition becomes true, otherwise false.