slide1 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Detailed Review of the 8085 Instruction Set PowerPoint Presentation
Download Presentation
Detailed Review of the 8085 Instruction Set

Loading in 2 Seconds...

play fullscreen
1 / 22

Detailed Review of the 8085 Instruction Set - PowerPoint PPT Presentation


  • 119 Views
  • Uploaded on

Detailed Review of the 8085 Instruction Set. 8085 Instruction Set. The 8085 instructions can be classified as follows: Data transfer operations Arithmetic operations (ADD, SUB, INR, DCR) Logic operations Branching operations (JMP, CALL, RET). Between registers

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Detailed Review of the 8085 Instruction Set' - steven-short


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
slide1

Detailed Review of the

8085 Instruction Set

slide2

8085 Instruction Set

The 8085 instructions can be classified as follows:

  • Data transfer operations
  • Arithmetic operations (ADD, SUB, INR, DCR)
  • Logic operations
  • Branching operations (JMP, CALL, RET)
  • Between registers
  • Between memory location and a register
  • Direct write to a register / memory
  • Between I/O device and accumulator
slide6

Simple Data Transfer Operations

Examples:

  • MOV B,A 47 From ACC to REG
  • MOV C,D 4A Between two REGs
  • MVI D,47 16 Direct-write into REG D

47

slide7

Simple Data Transfer Operations

Example:

  • OUT 05 D3

05

Contents of ACC sent to output port number 05.

slide18

Branching Operations

Note: This is an unconditional jump operation.

It will always force the program counter to a fixed

memory address continuous loop !

slide19

Branching Operations

Conditional jump operations are very useful for decision

making during the execution of the program.

slide20

Example

Write a 8085 machine code program:

  • Read two different memory locations
  • Add the contents
  • Send the result to output port 02 (display)

if there is no overflow

  • Display “FF” if there is an overflow
  • Stop
slide21

Example

2000 LDA 2050 3A

2001 50

2002 20

2003 MOV B,A 47

2004 LDA 2051 3A

2005 51

2006 20

2007 ADD B 80

2008 JNC XXYY D2

2009 YY

2010 XX

2011 MVI A,FF 3E

2012 FF

2013 OUT 02 D3

2014 02

2015 HLT 76

Load contents of memory location 2050 into accumulator

Save the first number in B

Load contents of memory location 2051 into accumulator

Add accumulator with B

Jump to YYXX if no carry !

Direct write FF into accumulator

Display accumulator contents at output port 02

Stop

slide22

Updated Code

2000 LDA 2050 3A

2001 50

2002 20

2003 MOV B,A 47

2004 LDA 2051 3A

2005 51

2006 20

2007 ADD B 80

2008 JNC 2013 D2

2009 13

2010 20

2011 MVI A,FF 3E

2012 FF

2013 OUT 02 D3

2014 02

2015 HLT 76

Load contents of memory location 2050 into accumulator

Save the first number in B

Load contents of memory location 2051 into accumulator

Add accumulator with B

Jump to 2013 if no carry !

Direct write FF into accumulator

Display accumulator contents at output port 02

Stop