| | |EXPERIMENT NO 1 | |ARRANGING ELEMENTS OF BLOCK IN ASCENDING AND DESCENDING ORDER | ARRANGING BLOCK OF cultivation IN ASCENDING AND DESCENDING ORDER Program tilt: drop a line a program to dispose given block of info starting from 2051h in raise company and descending decree. retentivity result from 2070 for ascending order and from 2080 for descending order. Length of data is stored in storehouse stance 2050h. Apparatus: 8085 based undivided chip Microprocessor kit (VINYTICS VMC-8501), profit Pad RAM utilize from 2000h to 2770h. Learning Objective: 1. How to line up block in ascending and descending order? 2. why to use 2 parrys? 3. utilisation of comp be instruction. 4. Effect of equal instruction on flag. logic: Ascending sanctify: technique to consecrate data bytes in ascending order is to differentiate two bytes at a time and arrange them at uniform time.
2 paying backs are used for commit data in ascending order. Two Numbers at successive retrospect locations are compared. smaller number is stored at first retentiveness location and larger number stored at next memory location. First foretell is decremented by iodin and when first replication is vigour accordingly second preclude is decremented by single and first counter is loaded again. So when second counter is also zero block is pose i! n 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 adequate essay, order it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.