Texas Instruments MSP50C6xx Calculator User Manual


 
Individual Instruction Descriptions
4-184
See Also XORB, XORS, AND, ANDS, OR, ORS, ORB, NOTAC, NOTACS
Example 4.14.85.1 XOR A1, A1, 0x13FF
XOR immediate value 0x13FF to A1 and store result in A1.
Example 4.14.85.2 XOR A0, A0, 2, ++A
Preincrement pointer AP0, then XOR immediate value 2 to new A0 and store result in A0.
Example 4.14.85.3 XOR A1, A1~, A1
XOR accumulator A1 to accumulator A1~, put result in accumulator A1.
Example 4.14.85.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.85.5 XOR A2, A2~, *R2+R5, ––A
Predecrement 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.85.6 XOR TF1, *0x21
XOR TF1 with the flag at global address 0x21 and store result in TF1 in STAT.
Example 4.14.85.7 XOR TF2, *R6+0x21
XOR TF2 with the flag at effective address R6+0x21 and store result in TF2.
Example 4.14.85.8 XOR TF1, CF
XOR TF1 with the condition code CF (Carry Flag) and store result in TF1.
Example 4.14.85.9 XOR TF1, RZP, R3
XOR TF1 with the condition code RZP (Rx=0 flag) for R3, and store result in TF1. If the content of R3
is zero then RZP condition becomes true, otherwise false.