1 / 18

8085 Instruction Set

8085 Instruction Set. 8085 Instruction Set-Classification. Data transfer Group Arithmetic Group (ADD,SUB,INR,DCR) Logic operations ( AND,OR,XOR,Complement ) Rotate Group ( Left,Right ) Stack Operations Branching Group (JMP, CALL, RET) Input/Output Machine Control Group.

Télécharger la présentation

8085 Instruction Set

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 8085 Instruction Set

  2. 8085 Instruction Set-Classification • Data transfer Group • Arithmetic Group (ADD,SUB,INR,DCR) • Logic operations (AND,OR,XOR,Complement) • Rotate Group(Left,Right) • Stack Operations • Branching Group (JMP, CALL, RET) • Input/Output • Machine Control Group • Between Registers • Between Memory location and a Register • Direct write to a Register / Memory • Between I/O device and Accumulator

  3. 8085 Instruction Types

  4. 8085 Instruction Types

  5. 8085 Instruction Types

  6. Data Transfer Operations

  7. Before Execution After Execution A A 11 30 F F 22 22 33 SP SP 5100H 5100H 2066H B B 33 33 C C 80 55 201FH 201FH 2020H 2020H AE CD D D 66 66 E E 88 AE 2021H 2021H 30 30 2022H 2022H H H 20 20 L L 66 20 11 MVI C,80H MOV E,M MVI M,CDH MOV L,D STA 2022H LDA 2021H MOV M,B

  8. Data Transfer Operations

  9. Before Execution After Execution A A 85 99 F F 22 22 25 25 80 9515H SP SP 9515H 9515H 99 1020H 10 B B 33 33 C C 50 50 35 35 45 4500H 450FH D D 10 10 E E 20 20 55 55 4501H H H 66 45 L L 10 55 4510H 66 66 4511H 4511H 4512H 4512H 85 3550H LXI SP,80H SHLD 4500H LHLD 4511H STAX B LDAX D D 66 E 55 D 10 E 20 XCHG H 10 L 20 H 66 L 55

  10. Arithmetic Group

  11. ADD E A 83H 10000011 E 2EH 00101110 A B1H 10110001 ADI EEH A 83H 10000011 EEH 11101110 A B1H 01110001 CY 01H INR B B 83H 10000011 01H 00000001 B 84H 10000100 ADC M A 83H 10000011 HL 1020HE0H M E0H 11100000 CY 01H 00000001 A 64H 01100100 CY 01H DAD B HL 1256H 0001001001010110 BC 4500H 0100010100000000 HL 5256H 0101011101010110 ADD B & DAA A 01111000 B 01010100 1100 > 09 11001100 +06 00000110 1101 > 09 11010010 +60 01100000 132100110010 ADD B BCD 78H  A 01111000 BCD 54H  B 01010100 BCD 132H CCH A 11001100

  12. Arithmetic Group

  13. Logic Group + + +

  14. Rotate Group RLC- Rotate Accumulator Left RRC- Rotate Accumulator Right Before Execution Before Execution CY CY B7 B7 B6 B6 B7 B7 B5 B5 B6 B6 B4 B4 B5 B5 B3 B3 B4 B4 B2 B2 B3 B3 B1 B1 B2 B2 B0 B0 B1 B1 CY CY B0 B0 After Execution After Execution B7 B7 B7 B7 B6 B6 B6 B6 B7 B0 B0 B0 B5 B5 B5 B5 B4 B4 B4 B4 B3 B3 B3 B3 B2 B2 B2 B2 B1 B1 B1 B1 B0 B0 RAL- Rotate Accumulator Left through Carry RAR- Rotate Accumulator Right through Carry Before Execution Before Execution After Execution After Execution CY CY

  15. Stack Operations PUSH rp POP rp PUSH PSW POP PSW SPHL (SPHL) XTHL {L(SP) H (SP+1)} LIFO PUSH SP  SP-1 (SP)rpH or A SP  SP-1 (SP)rpL or Flag POP rpL or Flag (SP) SP  SP+1 rpH or A (SP) SP SP+1

  16. Branch Groups Branch Group Unconditional Conditional R condition RET RST n C cond addr CALL addr JMP addr J cond addr PCHL

  17. Input / Output control IN addr (8) A (addr) Copies the data at the specified port address into Accumulator IN 57H OUT addr (8) (addr) A Sends Accumulator data to specified port address OUT 9AH

  18. Machine control Group

More Related