8052 Instruction-Set Quick-Reference Guide

D.1 8052 Instruction-Set Quick-Reference Guide

00 NOP

01AJMP pg0Addr

02LJMP addr16

03

RR A

04

INC A

05INC direct

06INC @R0

07INC @R1

08INC R0

09INC R1

0A INC R2

0B INC R3

0C INC R4

0D INC R5

0E INC R6

0F INC R7

10JBC bitAddr,relAddr

11ACALL pg0Addr

12LCALL address16

13RRC A

14DEC A

15DEC direct

16DEC @R0

17DEC @R1

18DEC R0

19DEC R1

1A DEC R2

1B DEC R3

1C DEC R4

1D DEC R5

1E DEC R6

1F DEC R7

20JB bitAddr,relAddr

21AJMP pg1Addr

22RET

23RL A

24ADD A,#data8

25ADD A,direct

26ADD A,@R0

27ADD A,@R1

28ADD A,R0

29ADD A,R1

2A ADD A,R2

2B ADD A,R3

2C ADD A,R4

2D ADD A,R5

2E ADD A,R6

2F ADD A,R7

30JNB bitAddr,relAddr

31ACALL pg1Addr

32RETI

33RLC A

34ADDC A,#data

35ADDC A,direct

36ADDC A,@R0

37ADDC A,@R1

38ADDC A,R0

39ADDC A,R1

3A ADDC A,R2

3B ADDC A,R3

3C ADDC A,R4

3D ADDC A,R5

40JC relAddr

41AJMP pg2Addr

42ORL direct,A

43ORL direct,#data8

44ORL A,#data8

45ORL A,direct

46ORL A,@R0

47ORL A,@R1

48ORL A,R0

49ORL A,R1

4A ORL A,R2

4B ORL A,R3

4C ORL A,R4

4D ORL A,R5

4E ORL A,R6

4F ORL A,R7

50JNC relAddr

51ACALL pg2Addr

52ANL direct,A

53ORL direct,#data8

54ANL A,#data8

55ANL A,direct

56ANL A,@R0

57ANL A,@R1

58ANL A,R0

59ANL A,R1

5A ANL A,R2

5B ANL A,R3

5C ANL A,R4

5D ANL A,R5

5E ANL A,R6

5F ANL A,R7

60JZ relAddr

61AJMP pg3Addr

62XRL direct,A

63XRL direct,#data8

64XRL A,#data8

65XRL A,direct

66XRL A,@R0

67XRL A,@R1

68XRL A,R0

69XRL A,R1

6A XRL A,R2

6B XRL A,R3

6C XRL A,R4

6D XRL A,R5

6E XRL A,R6

6F XRL A,R7

70JNZ relAddr

71ACALL pg3Addr

72ORL C,bitAddr

73JMP @A+DPTR

74MOV A,#data8

75MOV direct,#data8

76MOV @R0,#data8

77MOV @R1,#data8

78MOV R0,#data8

79MOV R1,#data8

7A MOV R2,#data8

7B MOV R3,#data8

7C MOV R4,#data8

7D MOV R5,#data8

80SJMP relAddr

81AJMP pg4Addr

82ANL C,bitAddr

83MOVC A,@A+PC

84DIV AB

85MOV direct,direct

86MOV direct,@R0

87MOV direct,@R1

88MOV direct,R0

89MOV direct,R1

8A MOV direct,R2

8B MOV direct,R3

8C MOV direct,R4

8D MOV direct,R5

8E MOV direct,R6

8F MOV direct,R7

90MOV DPTR,#data16

91ACALL pg4Addr

92MOV bitAddr,C

93MOVC A,@DPTR

94SUBB A,#data8

95SUBB A,direct

96SUBB A,@R0

97SUBB A,@R1

98SUBB A,R0

99SUBB A,R1

9A

SUBB A,R2

9B

SUBB A,R3

9C

SUBB A,R4

9D

SUBB A,R5

9E

SUBB A,R6

9F

SUBB A,R7

A0

ORL C,/bitAddr

A1

AJMP pg5Addr

A2

MOV C,bitAddr

A3

INC DPTR

A4

MUL AB

A5

 

A6

MOV @R0,direct

A7

MOV @R1,direct

A8

MOV R0,direct

A9

MOV R1,direct

AA

MOV R2,direct

AB

MOV R3,direct

AC

MOV R4,direct

AD

MOV R5,direct

AE

MOV R6,direct

AF

MOV R7,direct

B0

ANL C,/bitAddr

B1

ACALL pg5Addr

B2

CPL bitAddr

B3

CPL C

B4

CJNE A,#data8,relAddr

B5

CJNE A,direct,relAddr

B6

CJNE @R0,#data8,relAddr

B7

CJNE @R1,#data8,relAddr

B8

CJNE R0,#data8,relAddr

B9

CJNE R1,#data8,relAddr

BA

CJNE R2,#data8,relAddr

BBCJNE R3,#data8,relAddr

BC

CJNE R4,#data8,relAddr

BD

CJNE R5,#data8,relAddr

C0

PUSH direct

C1

AJMP pg6Addr

C2

CLR bitAddr

C3

CLR C

C4

SWAP A

C5

XCH A,direct

C6

XCH A,@R0

C7

XCH A,@R1

C8

XCH A,R0

C9

XCH A,R1

CA

XCH A,R2

CB

XCH A,R3

CCXCH A,R4 CD XCH A,R5

CE

XCH A,R6

CF

XCH A,R7

D0

POP direct

D1

ACALL pg5Addr

D2

SETB bitAddr

D3

SETB C

D4

DA A

D5

DJNZ direct,relAddr

D6

XCHD A,@R0

D7

XCHD A,@R1

D8

XCHD A,R0

D9

XCHD A,R1

DA

XCHD A,R2

DB

XCHD A,R3

DC

XCHD A,R4

DD

XCHD A,R5

DE

XCHD A,R6

DF

XCHD A,R7

E0

MOVX A,@DPTR

E1

AJMP pg7Addr

E2

MOVX A,@R0

E3

MOVX A,@R1

E4

CLR A

E5

MOV A,direct

E6

MOV A,@R0

E7

MOV A,@R1

E8

MOV A,R0

E9

MOV A,R1

EA

MOV A,R2

EB

MOV A,R3

EC

MOV A,R4

ED

MOV A,R5

EE

MOV A,R6

EF

MOV A,R7

F0

MOVX @DPTR,A

F1

ACALL pg7Addr

F2

MOVX @R0,A

F3

MOVX @R1,A

F4

CPL A

F5

MOV direct,A

F6

MOV @R0,A

F7

MOV @R1,A

F8

MOV R0,A

F9

MOV R1,A

FA

MOV R2,A

FB

MOV R3,A

FC

MOV R4,A

FD

MOV R5,A

D-2

Page 284
Image 284
Texas Instruments MSC1210 manual Instruction-Set Quick-Reference Guide, JB bitAddr,relAddr Ajmp pg1Addr