Difference between revisions of "XORR"

From Intellivision Wiki
Jump to: navigation, search
 
m (important to say "bitwise", to distiguish from C's notion of "logical" operator vs. "bitwise" operator.)
Line 9: Line 9:
 
<tr><td>Output Flags</td><td>[[Sign Flag]], [[Zero Flag]]</td></tr>
 
<tr><td>Output Flags</td><td>[[Sign Flag]], [[Zero Flag]]</td></tr>
 
</table><br/>
 
</table><br/>
The Xor Registers (XORR) instruction performs a logical XOR of the value in the specified source register with the value in the specified destination register, stores the result in the destination register, and sets or clears the [[Sign Flag]] and [[Zero Flag]] according to the result.<br/>
+
The XOR Registers (XORR) instruction performs a bitwise logical XOR (Exclusive OR) of the value in the specified source register with the value in the specified destination register, stores the result in the destination register, and sets or clears the [[Sign Flag]] and [[Zero Flag]] according to the result.<br/>
  
 
     0000:0001:11ss:sddd<br/>
 
     0000:0001:11ss:sddd<br/>

Revision as of 19:30, 12 January 2005

Instruction NameXor Registers
MnemonicXORR
CP1610 Clock Cycles6
InterruptibleYes
Opcode Range$01C0-$01FF
Input FlagsNone
Output FlagsSign Flag, Zero Flag

The XOR Registers (XORR) instruction performs a bitwise logical XOR (Exclusive OR) of the value in the specified source register with the value in the specified destination register, stores the result in the destination register, and sets or clears the Sign Flag and Zero Flag according to the result.

   0000:0001:11ss:sddd
where: sss indicates the source register such that: sss == 000 indicates register R0 sss == 001 indicates register R1 sss == 010 indicates register R2 sss == 011 indicates register R3 sss == 100 indicates register R4 sss == 101 indicates register R5 sss == 110 indicates register R6 sss == 111 indicates register R7
ddd indicates the destination register such that: ddd == 000 indicates register R0 ddd == 001 indicates register R1 ddd == 010 indicates register R2 ddd == 011 indicates register R3 ddd == 100 indicates register R4 ddd == 101 indicates register R5 ddd == 110 indicates register R6 ddd == 111 indicates register R7