Answered step by step
Verified Expert Solution
Question
1 Approved Answer
11. it) Write a program in 506 A Asembly langgag! to swrps the first and the list members of an army of 10 double-mords. Note
11. it) Write a program in 506 A Asembly langgag! to swrps the first and the list members of an army of 10 double-mords. Note that the array is pointed by SI. b) Write a program in 3066 Asmenbly Langusge to malt iplies the least significant nibble and the anst slgnifint nibble of AX register. The result is to be saved into AL. 12. Given the deefinition of the following data sogment, where A and IS ate ASCII mumbers. DATA A DB 28: B DB 34 CRS 0100 C DB ? Wyite the reguired code segment that converts these ASCII numbers to packed BCD and add them up to calculate sum in park [3CD3 form. Sive the result in maiable C. The resulting liK:D number is assined to be a byte. 13. Develoy a soquenoe of instructions that converts the unsigned numher in AX (0-65535) into a 5 digit BCD tumber stored in neboty, begitning at the locadion adcinessed by the BX register in data segtient. Note that the most significant chararter is stored first and no attempt is made to hlank lesding zero. 14. Assume that there is a tavo digit cxanman amode 7-segmeat L.ED display connented to the kawer 4 bits of port B of a PPI (8255) at address 0t-10H [Akiress of the port B). The displav is conmected to the PPI through a Iexadecimal to 7 Segment. Display driver chip (74T.847) as shown in Figume 1. Dip-switch is comected we port C Lower. Pull-Up NPN ratsistors are consected to port C Lpper. a) Tyhat are the addresas of port A. port B. port C. and coutrol registen PCW. b) Which ontrol word is required to interfare the seven wegnent displiys and Dip-switch. [3age: 2 c) Consider ony Display I. Write an 8086 A.P program to read the status of the Dip-switch continuously and display it an Display 1. d) Again, consider only Display 1. Write an sigi ALP progratn to tieplay ou Display 1 the nuaber of the switch that change of status. Assume switches ate numbered from l to 4 and aniy ane switch civange of status at a linet- e) Consider now Dleplay 1 and Display 2. Write an Bueb ALP plogran to read the status of the Dipswitch continususly and display it on Display 1 hit 0 is oqual to 1. Otherwise dispiay the status of the Dip-switel an Displive 2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started