MOV = Move Register (8-Bits)
|
|
Source as the column, and Destination as the row:
#nn | A | B | L | H | N | F | V | I | XI | YI | |
---|---|---|---|---|---|---|---|---|---|---|---|
A | B0 nn | 40 | 41 | 42 | 43 | CE C0 | CE C1 | CE C8 | CE C9 | CE CA | CE CB |
B | B1 nn | 48 | 49 | 4A | 4B | ||||||
L | B2 nn | 50 | 51 | 52 | 53 | ||||||
H | B3 nn | 58 | 59 | 5A | 5B | ||||||
N | B4 nn | CE C2 | |||||||||
F | 9F nn | CE C3 | |||||||||
U | CE C4 nn | CE CC | |||||||||
I | CE C5 nn | CE CD | |||||||||
XI | CE C6 nn | CE CE | |||||||||
YI | CE C7 nn | CE CF | |||||||||
[N+#nn] | DD nn nn | 78 nn | 79 nn | 7A nn | 7B nn | ||||||
[HL] | B5 nn | 68 | 69 | 6A | 6B | ||||||
[X] | B6 nn | 60 | 61 | 62 | 63 | ||||||
[Y] | B7 nn | 70 | 71 | 72 | 73 | ||||||
[#nnnn] | CE D4 nn nn | CE D5 nn nn | CE D6 nn nn | CE D7 nn nn | |||||||
[X+#ss] | CE 44 ss | CE 4C ss | CE 54 ss | CE 5C ss | |||||||
[Y+#ss] | CE 45 ss | CE 4D ss | CE 55 ss | CE 5D ss | |||||||
[X+L] | CE 46 | CE 4E | CE 56 | CE 5E ss | |||||||
[Y+L] | CE 47 | CE 4F | CE 57 | CE 5F ss | |||||||
[N+#nn] | [HL] | [X] | [Y] | [#nnnn] | [X+#ss] | [Y+#ss] | [X+L] | [Y+L] | |||
A | 44 nn | 45 | 46 | 47 | CE D0 nn nn | CE 40 ss | CE 41 ss | CE 42 | CE 43 | ||
B | 4C nn | 4D | 4E | 4F | CE D1 nn nn | CE 48 ss | CE 49 ss | CE 4A | CE 4B | ||
L | 54 nn | 55 | 56 | 57 | CE D2 nn nn | CE 50 ss | CE 51 ss | CE 52 | CE 53 | ||
H | 5C nn | 5D | 5E | 5F | CE D3 nn nn | CE 58 ss | CE 59 ss | CE 5A | CE 5B | ||
N | |||||||||||
F | |||||||||||
U | |||||||||||
I | |||||||||||
XI | |||||||||||
YI | |||||||||||
[N+#nn] | 7D nn | 7E nn | 7F nn | ||||||||
[HL] | 6C nn | 6D | 6E | 6F | CE 60 ss | CE 61 ss | CE 62 | CE 63 | |||
[X] | 64 nn | 65 | 66 | 67 | CE 68 ss | CE 69 ss | CE 6A | CE 6B | |||
[Y] | 74 nn | 75 | 76 | 77 | CE 78 ss | CE 79 ss | CE 7A | CE 7B | |||
[#nnnn] | |||||||||||
[X+#ss] | |||||||||||
[Y+#ss] | |||||||||||
[X+L] | |||||||||||
[Y+L] |
Execute
#nn = Immediate unsigned 8-Bits #ss = Immediate signed 8-Bits A = Register A B = Register B L = Register L H = Register H N = Register N F = Register F U/V = Register U or V I = Register I XI = Register XI YI = Register YI [N+#nn] = Memory: (I shl 16) or (N shl 8) or #nn [HL] = Memory: (I shl 16) or HL [X] = Memory: (XI shl 16) or X [Y] = Memory: (YI shl 16) or Y [#nnnn] = Memory: #nnnn [X+#ss] = Memory: (XI shl 16) or (X + #ss) [Y+#ss] = Memory: (YI shl 16) or (Y + #ss) [X+L] = Memory: (XI shl 16) or (X + signed(L)) [Y+L] = Memory: (YI shl 16) or (Y + signed(L))
; MOV Ds, Sc ; ; Ds = Destination ; Sc = Source Ds = Sc
Description
8-Bits Source gets copied to the 8-Bits Destination.
Conditions
None
Examples
; A = 0x55 MOV A, $80 ; A = 0x80
; A = 0x12 ; B = 0xCF MOV B, A ; A = 0x12 ; B = 0x12
; [HL] = 0xDE ; A = 0xCF MOV A, [HL] ; [HL] = 0xDE ; A = 0xDE