== MOV = Move Register (16-Bits) ==
|
|
Source as the column, and Destination as the row:
#nnnn | BA | HL | X | Y | SP | PC | [HL] | [X] | [Y] | [#nnnn] | [SP+#ss] | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
BA | C4 nn nn | CF E0 | CF E1 | CF E2 | CF E3 | CF F8 | CF F9 | CF C0 | CF D0 | CF D8 | B8 nn nn | CF 70 ss |
HL | C5 nn nn | CF E4 | CF E5 | CF E6 | CF E7 | CF F4 | CF F5 | CF C1 | CF D1 | CF D9 | B9 nn nn | CF 71 ss |
X | C6 nn nn | CF E8 | CF E9 | CF EA | CF EB | CF FA | CF C2 | CF D2 | CF DA | BA nn nn | CF 72 ss | |
Y | C7 nn nn | CF EC | CF ED | CF EE | CF EF | CF FE | CF C3 | CF D3 | CF DB | BB nn nn | CF 73 ss | |
SP | CF 6E nn nn | CF F0 | CF F1 | CF F2 | CF F3 | CF 78 nn nn | ||||||
[HL] | CF C4 | CF C5 | CF C6 | CF C7 | ||||||||
[X] | CF D4 | CF D5 | CF D6 | CF D7 | ||||||||
[Y] | CF DC | CF DD | CF DE | CF DF | ||||||||
[#nnnn] | BC nn nn | BD nn nn | BE nn nn | BF nn nn | CF 6E nn nn | |||||||
[SP+#ss] | CF 74 ss | CF 75 ss | CF 76 ss | CF 77 |
#nnnn = Immediate unsigned 16-Bits
#ss = Immediate signed 8-Bits
BA = Register BA: (B shl 8) or A
HL = Register HL: (H shl 8) or L
X = Register X
Y = Register Y
SP = Register SP (Stack Pointer)
PC = Register PC (Program Counter)
[HL] = Memory: (I shl 16) or HL
[X] = Memory: (XI shl 16) or X
[Y] = Memory: (YI shl 16) or Y
[#nnnn] = Memory: (I shl 16) or #nnnn
[SP+#ss] = Memory: SP + #ss
; MOV Ds, Sc
;
; Ds = Destination
; Sc = Source
Ds = Sc
16-Bits Source gets copied to the 16-Bits Destination.
None
; A = 0xF0
; B = 0x0E
MOV`` ``BA,`` ``$1337
; A = 0x37
; B = 0x13
; A = 0x12
; B = 0xCF
; L = 0x7E
; H = 0xAB
MOV`` ``BA,`` ``HL
; A = 0x7E
; B = 0xAB
; L = 0x7E
; H = 0xAB
; [HL] = 0xBEEF
; A = 0xAD
; B = 0xDE
MOV`` ``BA,`` ``[HL]
; [HL] = 0xBEEF
; A = 0xEF
; B = 0xBE