### Welcome

Anti Essays offers essay examples to help students with their essay writing.

# Programs Assembly 8085 Essay

Below is an essay on "Programs Assembly 8085" from Anti Essays, your source for research papers, essays, and term paper examples.

AVERAGE OF N NUMBERS

AIM:

To write an assembly language program that finds the average of N numbers and execute the program using 8085 microprocessor kit.

APPARATUS REQUIRED:

8085 microprocessor kit, power supply.

ALGORITHM:

STEP 1: Load HL register pair with a memory pointer.
STEP 2: Get the count to B register and clear accumulator.
STEP 3: Push the count to stack pointer.
STEP 4: Increment memory pointer.
STEP 5: Add the content of memory location to accumulator.
STEP 6: If carry results increment D register.
STEP 7: Decrement count. If it is not zero go to STEP 4.
STEP 8: Else move the sum to E register.
STEP 9: Get the count from stack pointer.
STEP10: subtract the count from sum(content of DE pair).
STEP11:If the subtraction results a carry add the count to the result and get the remainder
STEP12: Otherwise increment B register content and go to STEP10.
STEP 13: Store the quotient and remainder in successive memory location.

PROGRAM:

|MEMORY LOATION           |MAHINE CODE               |LABEL                     |MNEMONICS               |COMMENTS                         |
|4100                     |21,00,42                 |                         |LXI   H, 4200           |Initialize HL register pair with |
|                         |                         |                         |                         |memory pointer                   |
|4103                     |46                       |                         |MOV   B,M                 |Transfer the memory content to B |
|                         |                         |                         |                         |register                         |
|4104                     |C5                       |                         |PUSH B                   |Push the content of B register to|
|                         |                         |                         |                         |stack pointer                     |
|4105...

• Submitted by: genmar
• on January 5, 2013
• Category: Science And Technology
• Length: 2,259 words
• Views: 361
• Popularity Rank: 205738
• 1 rating(s)

### Citations

##### MLA Citation

"Programs Assembly 8085". Anti Essays. 11 Dec. 2018

<http://parimatch-stavka7.com/free-essays/Programs-Assembly-8085-383008.html>

##### APA Citation

Programs Assembly 8085. Anti Essays. Retrieved December 11, 2018, from the World Wide Web: http://parimatch-stavka7.com/free-essays/Programs-Assembly-8085-383008.html

Magi: Sinbad no Bouken | View Deal on Amazon | Loosies 2012 BRRip XviD Ac3 Feel-Free