ADD

From Intellivision Wiki
Revision as of 19:50, 12 January 2005 by Pingaso (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Instruction NameAdd
MnemonicADD
CP1610 Clock Cycles10
InterruptibleYes
Opcode Range$02C0-$02C7
Input FlagsNone
Output FlagsSign Flag, Zero Flag, Overflow Flag, Carry Flag

The Add Registers (ADDR) instruction adds the value in the specified source register to the value in the specified destination register, stores the result in the destination register, and sets or clears the Sign Flag, Zero Flag, Overflow Flag, and Carry Flag according to the result.

   0000:0010:1100:0rrr
where: rrr indicates the source 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