Thursday, February 28, 2013

Mpmc Writeups

| |
|EXPERIMENT NO 1 |
|ARRANGING ELEMENTS OF BLOCK IN ASCENDING AND DESCENDING ORDER |

ARRANGING BLOCK OF information IN ASCENDING AND DESCENDING ORDER

Program Statement:
drop a line a program to habilitate given block of info starting from 2051h in emanation company and descending order. retentivity result from 2070 for ascending order and from 2080 for descending order. Length of data is stored in memory location 2050h.

Apparatus:
8085 based undivided chip Microprocessor kit (VINYTICS VMC-8501), Scratch Pad RAM utilize from 2000h to 2770h.

Learning Objective:
1. How to arrange block in ascending and descending order?
2. Why to use two parrys?
3. utilisation of comp be instruction.
4. Effect of compare instruction on flag.

logic:
Ascending sanctify:
Technique to arrange data bytes in ascending order is to compare two bytes at a time and arrange them at same time.

Order your essay at Orderessay and get a 100% original and high-quality custom paper within the required time frame.

2 paying backs are used for put data in ascending order. Two Numbers at successive memory locations are compared. smaller number is stored at first memory location and larger number stored at next memory location. First foretell is decremented by single and when first counter is vigour accordingly second counter is decremented by one and first counter is loaded again. So when second counter is also zero block is arranged in ascending order.

Descending Order:
Technique to arrange data bytes in descending order is to compare two bytes at a time and arrange them at same time. Two counters are used for arranging data in descending order. Two Numbers at successive memory locations are compared. Larger number is stored at first memory location and smaller number at next memory location. First counter is decremented by one and when first counter is zero then second counter is decremented by one and first counter is loaded...If you want to repair a full essay, order it on our website: Orderessay



If you want to get a full essay, wisit our page: write my essay .

No comments:

Post a Comment