Difference between revisions of "MVI"

From Intellivision Wiki
Jump to: navigation, search
m (MVI doesn't store values in memory... case'n'paste error?)
m (Protected "MVI" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:
 
     0000:0010:1000:0rrr  aaaa:aaaa:aaaa:aaaa<br/>
 
     0000:0010:1000:0rrr  aaaa:aaaa:aaaa:aaaa<br/>
 
     where:
 
     where:
         rrr  indicates the register containing the value to move
+
         rrr  indicates the destination register             such that:
              such that:
 
 
                   rrr == 000    indicates register R0
 
                   rrr == 000    indicates register R0
 
                   rrr == 001    indicates register R1
 
                   rrr == 001    indicates register R1
Line 24: Line 23:
 
                   rrr == 110    indicates register R6
 
                   rrr == 110    indicates register R6
 
                   rrr == 111    indicates register R7<br/>
 
                   rrr == 111    indicates register R7<br/>
         aaaaaaaaaaaaaaaa    indicates the address to read the value from
+
         aaaaaaaaaaaaaaaa    indicates the source address

Latest revision as of 08:52, 4 December 2010

Instruction NameMove In
MnemonicMVI
CP1610 Clock Cycles10
InterruptibleYes
Opcode Range$0280-$0287
Input FlagsNone
Output FlagsNone

The Move In (MVI) instruction copies the value at the specified address into the specified register.

   Format - Decle #1    Format - Word #2
   0000:0010:1000: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