Texas Instruments MSC1210 manual Move into/out of Internal RAM, MOV operand1,operand2

Models: MSC1210

1 324
Download 324 pages 20.97 Kb
Page 300
Image 300

8052 Instruction Set

MOV

Move into/out of Internal RAM

 

 

 

Syntax

MOV operand1,operand2

 

 

 

 

 

 

 

 

 

 

 

Instructions

 

OpCode

Bytes

Cycles

Flags

 

 

 

 

 

 

 

 

MOV @R0,#data8

 

0x76

2

1

None

 

 

 

 

 

 

 

 

MOV @R1,#data8

 

0x77

2

1

None

 

 

 

 

 

 

 

 

MOV @R0,direct

 

0xA6

2

2

None

 

 

 

 

 

 

 

 

MOV @R1,direct

 

0xA7

2

2

None

 

 

 

 

 

 

 

 

MOV R0,#data8

 

0x78

2

1

None

 

 

 

 

 

 

 

 

MOV R1,#data8

 

0x79

2

1

None

 

 

 

 

 

 

 

 

MOV R2,#data8

 

0x7A

2

1

None

 

 

 

 

 

 

 

 

MOV R3,#data8

 

0x7B

2

1

None

 

 

 

 

 

 

 

 

MOV R4,#data8

 

0x7C

2

1

None

 

 

 

 

 

 

 

 

MOV R5,#data8

 

0x7D

2

1

None

 

 

 

 

 

 

 

 

MOV R6,#data8

 

0x7E

2

1

None

 

 

 

 

 

 

 

 

MOV R7,#data8

 

0x7F

2

1

None

 

 

 

 

 

 

 

 

MOV R0,direct

 

0xA8

2

2

None

 

 

 

 

 

 

 

 

MOV R1,direct

 

0xA9

2

2

None

 

 

 

 

 

 

 

 

MOV R2,direct

 

0xAA

2

2

None

 

 

 

 

 

 

 

 

MOV R3,direct

 

0xAB

2

2

None

 

 

 

 

 

 

 

 

MOV R4,direct

 

0xAC

2

2

None

 

 

 

 

 

 

 

 

MOV R5,direct

 

0xAD

2

2

None

 

 

 

 

 

 

 

 

MOV R6,direct

 

0xAE

2

2

None

 

 

 

 

 

 

 

 

MOV R7,direct

 

0xAF

2

2

None

 

 

 

 

 

 

 

 

MOV direct,#data8

 

0x75

3

2

None

 

 

 

 

 

 

 

 

MOV direct,@R0

 

0x86

2

2

None

 

 

 

 

 

 

 

 

MOV direct,@R1

 

0x87

2

2

None

 

 

 

 

 

 

 

 

MOV direct,R0

 

0x88

2

2

None

 

 

 

 

 

 

 

 

MOV direct,R1

 

0x89

2

2

None

 

 

 

 

 

 

 

 

MOV direct,R2

 

0x8A

2

2

None

 

 

 

 

 

 

 

 

MOV direct,R3

 

0x8B

2

2

None

 

 

 

 

 

 

 

 

MOV direct,R4

 

0x8C

2

2

None

 

 

 

 

 

 

 

 

MOV direct,R5

 

0x8D

2

2

None

 

 

 

 

 

 

 

 

MOV direct,R6

 

0x8E

2

2

None

 

 

 

 

 

 

 

 

MOV direct,R7

 

0x8F

2

2

None

 

 

 

 

 

 

 

 

MOV direct1,direct2

 

0x85

3

2

None

MOV copies the value of operand2 into operand1. The value of operand2 is not affected.

Note:

In the case of MOV direct1,direct2, the operand bytes of the instruction are stored in reverse order. That is, the instruction consisting of the bytes 85H, 20H, 50H means move the contents of internal RAM location 0x20 to internal RAM location 0x50, although the opposite would be generally presumed.

See also: MOVC, MOVX, XCH, XCHD, PUSH, POP

E-16

Page 300
Image 300
Texas Instruments MSC1210 manual Move into/out of Internal RAM, MOV operand1,operand2