8085 OPCODES


8085 OPCODES:

DATA TRANSFER:
40, MOV B B, 4       50, MOV D B, 4      60, MOV H B, 4      70, MOV M B, 7      06,MVI B 8,7
41, MOV B C, 4       51, MOV D C, 4      61, MOV H C, 4      71, MOV M C, 7      0E,MVI C 8,7
42, MOV B D, 4      52, MOV D D, 4      62, MOV H D, 4      72, MOV M D, 7     16,MVI D 8,7
43, MOV B E, 4       53, MOV D E, 4      63, MOV H E, 4      73, MOV M E, 7      1E,MVI E 8,7
44, MOV B H, 4      54, MOV D H, 4      64, MOV H H, 4      74, MOV M H, 7     26,MVI H 8,7
45, MOV B L, 4       55, MOV D L, 4      65, MOV H L, 4      75, MOV M L, 7      2E,MVI L 8,7
46, MOV B M, 7      56, MOV D M, 7     66, MOV H M, 7     77, MOV M A, 7     36,MVI M 8,10
47, MOV B A, 4      57, MOV D A, 4      67, MOV H A, 4      78, MOV A B, 4      3E,MVI A 8,7
48, MOV C B, 4       58, MOV E B, 4       68, MOV L B, 4       79, MOV A C, 4     
49, MOV C C, 4       59, MOV E C, 4       69, MOV L C, 4       7A, MOV A D, 4    
4A, MOV C D, 4      5A, MOV E D, 4      6A, MOV L D, 4      7B, MOV A E, 4     
4B, MOV C E, 4      5B, MOV E E, 4      6B, MOV L E, 4      7C, MOV A H, 4     
4C, MOV C H, 4      5C, MOV E H, 4      6C, MOV L H, 4      7D, MOV A L, 4
4D, MOV C L, 4      5D, MOV E L, 4      6D, MOV L L, 4      7E, MOV A M, 7
4E, MOV C M, 7     5E, MOV E M, 7     6E, MOV L M, 7     7F, MOV A A, 4
4F, MOV C A, 4      5F, MOV E A, 4      6F, MOV L A, 4     


LOAD:
0A,LDAX B,7          01,LXI B 16,10       D3,OUT 8,10           E1,POP H,10
1A,LDAX D,7         11,LXI D 16,10       DB,IN 8,10              F1,POP PSW,10
2A,LHLD 16,16      21,LXI H 16,10       C5,PUSH B,12
3A,LDA 16,13         31,LXI SP 16,10      D5,PUSH D,12
02,STAX B,7           F9,SPHL,6               E5,PUSH H,12
12,STAX D,7           E3,XTHL,16            F5,PUSH PSW,12
22,SHLD 16,16       EB,XCHG,4             C1,POP B,10
32,STA 16,13          EB,XCHG,4             D1,POP D,10



ARITHMATIC:
80,ADD B,4     85,ADD L,4    8A,ADC D,4            8F,ADC A,4         90,SUB B,4              96,SUB M,7                                                                                               
81,ADD C,4     86,ADD M,7   8B,ADC E,4             C6,ADI 8,7          91,SUB C,4              97,SUB A,4
82,ADD D,4     87,ADD A,4    8C,ADC H,4            CE,ACI 8,7          92,SUB D,4             98,SBB B,4
83,ADD E,4     88,ADC B,4     8D,ADC L,4                                        93,SUB E,4              99,SBB C,4
84,ADD H,4     89,ADC C,4    8E,ADC M,7                                        94,SUB H,4             9A,SBB D,4
95,SUB L,4              9B,SBB E,4

9C,SBB H,4     09,DAD B,10   0C,INR C,4              3C,INR A,4              0D,DCR C,4             3D,DCR A,4
9D,SBB L,4     19,DAD D,10   14,INR D,4              03,INX B,6              15,DCR D,4             0B,DCX B,6
9E,SBB M,7    29,DAD H,10   1C,INR E,4              13,INX D,6              1D,DCR E,4             1B,DCX D,6
9F,SBB A,4     39,DAD SP,10  24,INR H,4              23,INX H,6              25,DCR H,4             2B,DCX H,6
D6,SUI 8,7      27,DAA,4        2C,INR L,4              33,INX SP,6            2D,DCR L,4             3B,DCX SP,6
DE,SBI 8,7      04,INR B,4       34,INR M,7             05,DCR B,4             35,DCR M,7           
          

LOGICAL:
A0,ANA B,4            B0,ORA B,4             FE,CPI 8,4               CF,RST1,12             C8,RZ,6
A1,ANA C,4            B1,ORA C,4             07,RLC,4                 D7,RST2,12             D0,RNC,6
A2,ANA D,4            B2,ORA D,4            0F,RRC,4                 DF,RST3,12             D8,RC,6
A3,ANA E,4            B3,ORA E,4             17,RAL,4                 E7,RST4,12             E0,RPO,6
A4,ANA H,4            B4,ORA H,4            1F,RAR,4                 EF,RST5,12             E8,RPE,6
A5,ANA L,4            B5,ORA L,4             2F,CMA,4                F7,RST6,12             F0,RP,6
A6,ANA M,7           B5,ORA L,4             3F,CMC,4                 FF,RST7,12             F8,RM,6
A7,ANA A,4            B6,ORA M,7            C3,JMP AD,10         CD,CALL AD,18     00,NOP,4
E6,ANI 8,7              B7,ORA A,4            C2,JNZ AD,7           C4,CNZ AD,9          76,HLT,5
A8,XRA B,4            F6,ORI 8,7               CA,JZ AD,7             CC,CZ AD,9            F3,DI,4
A9,XRA C,4            B8,CMP B,4             D2,JNC AD,7           D4,CNC AD,9          FB,EI,4
AA,XRA D,4           B9,CMP C,4             DA,JC AD,7             DC,CC AD,9            20,RIM,4
AB,XRA E,4            BA,CMP D,4            E2,JPO AD,7           E4,CPO AD,9          30,SIM,4
AC,XRA H,4            BB,CMP E,4            EA,JPE AD,7           EC,CPE AD,9                         
AD,XRA L,4            BC,CMP H,4            F2,JP AD,7              F4,CP AD,9                            
AE,XRA M,7           BD,CMP L,4            FA,JM AD,7            FC,CM AD,9                           
AF,XRA A,4            BE,CMP M,7           E9,PCHL,6              C9,RET,10                              
EE,XRI 8,7              BF,CMP A,4            C7,RST0,12             C0,RNZ,6                               

No comments:

Post a Comment

WASE open book exams - June 2013

Hey waseians, All the best for exams... ☺ Exams time table Useful posts for open book exam Semester 3 materials Get ready...