Difference between revisions of "XOR"

From Intellivision Wiki
Jump to: navigation, search
 
m (Protected "XOR" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
 
(No difference)

Latest revision as of 09:43, 4 December 2010

Instruction NameXor
MnemonicXOR
CP1610 Clock Cycles10
InterruptibleYes
Opcode Range$03C0-$03C7
Input FlagsNone
Output FlagsSign Flag, Zero Flag

The Xor (XOR) instruction performs a bitwise XOR of the value at the specified address with the value in the specified register, stores the final result in the register, and sets or clears the Sign Flag and Zero Flag according to the resulting value.

   Format - Decle #1    Format - Word #2
   0000:0011:1100:0rrr  aaaa:aaaa:aaaa:aaaa
where: rrr indicates the destination register such that: rrr == 000 indicates register R0 rrr == 001 indicates register R1 rrr == 010 indicates register R2 rrr == 011 indicates register R3 rrr == 100 indicates register R4 rrr == 101 indicates register R5 rrr == 110 indicates register R6 rrr == 111 indicates register R7
aaaaaaaaaaaaaaaa indicates the source address