Texas Instruments MSP50C6xx Calculator User Manual


 
Individual Instruction Descriptions
4-185Assembly Language Instructions
4.14.86 XORB Logical XOR Byte
Syntax
[label] name dest, src Clock, clk Word, w With RPT, clk Class
XORB An, imm8 1 1 N/R 2a
Execution An An XOR imm8 (for two operands)
PC PC + 1
Flags Affected dest is An: OF, SF, ZF, CF are set accordingly
Opcode
Instructions 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
XORB An, imm8 0 0 1 0 1 1 0 An imm8
Description Bitwise logical XOR lower 8 bits of An and dest byte. Result is stored in
accumulator An. Upper 8 bits of accumulator An is not affected.
See Also XOR, XORS, AND, ANDS, OR, ORS, ORB, NOTAC, NOTACS
Example 4.14.86.1 XORB A2, 0x45
XOR 0x45 to accumulator A2 (byte mode). Upper 8 bits of A2 is unchanged.