Skip to content

Latest commit

 

History

History
860 lines (844 loc) · 20.9 KB

PM_Opc_MOV8.md

File metadata and controls

860 lines (844 loc) · 20.9 KB

== MOV = Move Register (8-Bits) ==

Hex

Mnemonic

Cycles

40

MOV A, A

4

41

MOV A, B

4

42

MOV A, L

4

43

MOV A, H

4

44 nn

MOV A, [N+#nn]

12

45

MOV A, [HL]

8

46

MOV A, [X]

8

47

MOV A, [Y]

8

48

MOV B, A

4

49

MOV B, B

4

4A

MOV B, L

4

4B

MOV B, H

4

4C nn

MOV B, [N+#nn]

12

4D

MOV B, [HL]

8

4E

MOV B, [X]

8

4F

MOV B, [Y]

8

50

MOV L, A

4

51

MOV L, B

4

52

MOV L, L

4

53

MOV L, H

4

54 nn

MOV L, [N+#nn]

12

55

MOV L, [HL]

8

56

MOV L, [X]

8

57

MOV L, [Y]

8

58

MOV H, A

4

59

MOV H, B

4

5A

MOV H, L

4

5B

MOV H, H

4

5C nn

MOV H, [N+#nn]

12

5D

MOV H, [HL]

8

5E

MOV H, [X]

8

5F

MOV H, [Y]

8

60

MOV [X], A

8

61

MOV [X], B

8

62

MOV [X], L

8

63

MOV [X], H

8

64 nn

MOV [X], [N+#nn]

16

65

MOV [X], [HL]

12

66

MOV [X], [X]

12

67

MOV [X], [Y]

12

68

MOV [HL], A

8

69

MOV [HL], B

8

6A

MOV [HL], L

8

6B

MOV [HL], H

8

6C nn

MOV [HL], [N+#nn]

16

6D

MOV [HL], [HL]

12

6E

MOV [HL], [X]

12

6F

MOV [HL], [Y]

12

70

MOV [Y], A

8

71

MOV [Y], B

8

72

MOV [Y], L

8

73

MOV [Y], H

8

74 nn

MOV [Y], [N+#nn]

16

75

MOV [Y], [HL]

12

76

MOV [Y], [X]

12

77

MOV [Y], [Y]

12

78 nn

MOV [N+#nn], A

12

79 nn

MOV [N+#nn], B

12

7A nn

MOV [N+#nn], L

12

7B nn

MOV [N+#nn], H

12

7D nn

MOV [N+#nn], [HL]

16

7E nn

MOV [N+#nn], [X]

16

7F nn

MOV [N+#nn], [Y]

16

9F nn

MOV F, #nn

12

B0 nn

MOV A, #nn

8

B1 nn

MOV B, #nn

8

B2 nn

MOV L, #nn

8

B3 nn

MOV H, #nn

8

B4 nn

MOV N, #nn

8

B5 nn

MOV [HL], #nn

12

B6 nn

MOV [X], #nn

12

B7 nn

MOV [Y], #nn

12

Hex

Mnemonic

Cycles

DD nn nn

MOV [N+#nn], #nn

16

CE C4 nn

MOV U, #nn

16

CE C5 nn

MOV I, #nn

12

CE C6 nn

MOV XI, #nn

12

CE C7 nn

MOV YI, #nn

12

CE 40 ss

MOV A, [X+#ss]

16

CE 41 ss

MOV A, [Y+#ss]

16

CE 42

MOV A, [X+L]

16

CE 43

MOV A, [Y+L]

16

CE 48 ss

MOV B, [X+#ss]

16

CE 49 ss

MOV B, [Y+#ss]

16

CE 4A

MOV B, [X+L]

16

CE 4B

MOV B, [Y+L]

16

CE 50 ss

MOV L, [X+#ss]

16

CE 51 ss

MOV L, [Y+#ss]

16

CE 52

MOV L, [X+L]

16

CE 53

MOV L, [Y+L]

16

CE 58 ss

MOV H, [X+#ss]

16

CE 59 ss

MOV H, [Y+#ss]

16

CE 5A

MOV H, [X+L]

16

CE 5B

MOV H, [Y+L]

16

CE 44 ss

MOV [X+#ss], A

16

CE 45 ss

MOV [Y+#ss], A

16

CE 46

MOV [X+L], A

16

CE 47

MOV [Y+L], A

16

CE 4C ss

MOV [X+#ss], B

16

CE 4D ss

MOV [Y+#ss], B

16

CE 4E

MOV [X+L], B

16

CE 4F

MOV [Y+L], B

16

CE 54 ss

MOV [X+#ss], L

16

CE 55 ss

MOV [Y+#ss], L

16

CE 56

MOV [X+L], L

16

CE 57

MOV [Y+L], L

16

CE 5C ss

MOV [X+#ss], H

16

CE 5D ss

MOV [Y+#ss], H

16

CE 5E

MOV [X+L], H

16

CE 5F

MOV [Y+L], H

16

CE 60 ss

MOV [HL], [X+#ss]

20

CE 61 ss

MOV [HL], [Y+#ss]

20

CE 62

MOV [HL], [X+L]

20

CE 63

MOV [HL], [Y+L]

20

CE 68 ss

MOV [X], [X+#ss]

20

CE 69 ss

MOV [X], [Y+#ss]

20

CE 6A

MOV [X], [X+L]

20

CE 6B

MOV [X], [Y+L]

20

CE 78 ss

MOV [Y], [X+#ss]

20

CE 79 ss

MOV [Y], [Y+#ss]

20

CE 7A

MOV [Y], [X+L]

20

CE 7B

MOV [Y], [Y+L]

20

CE C0

MOV A, N

8

CE C1

MOV A, F

8

CE C8

MOV A, V

8

CE C9

MOV A, I

8

CE CA

MOV A, XI

8

CE CB

MOV A, YI

8

CE C2

MOV N, A

8

CE C3

MOV F, A

12

CE CC

MOV U, A

12

CE CD

MOV I, A

8

CE CE

MOV XI, A

8

CE CF

MOV YI, A

8

CE D0 nn nn

MOV A, [#nnnn]

20

CE D1 nn nn

MOV B, [#nnnn]

20

CE D2 nn nn

MOV L, [#nnnn]

20

CE D3 nn nn

MOV H, [#nnnn]

20

CE D4 nn nn

MOV [#nnnn], A

20

CE D5 nn nn

MOV [#nnnn], B

20

CE D6 nn nn

MOV [#nnnn], L

20

CE D7 nn nn

MOV [#nnnn], H

20

 

 

 

 

 

 

 

 

 

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

« Back to Instruction set