ANDI

From Intellivision Wiki

(Difference between revisions)
Jump to: navigation, search
m (Protected "ANDI" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
 

Latest revision as of 07:47, 4 December 2010

Instruction NameAnd Immediate
MnemonicANDI
CP1610 Clock Cycles8 or 10
InterruptibleYes
Opcode Range$03B8-$03BF
Input FlagsNone
Output FlagsSign Flag and Zero Flag

The And Immediate (ANDI) instruction performs a bitwise AND between the value at the address immediately following the opcode and 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. Note that this is instruction is really just a variant of the And Indirect instruction using R7 as the address register. See the And Indirect documentation for more information.

   0000:0011:1011:1ddd
where: 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
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox