Q1/ write a program to count the number of 5 in a given array stored in...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q1/ write a program to count the number of 5 in a given array stored in memory locations from 0110 H to 0120 H in the current data segment 0600 H, save the result in DL register, assume DS =0600 H Q 2/A- Write a program to add the following five data bytes stored in data segment offset starting from [0800H), if the sum generates a carry , stop the adding ,and store (2B) in data segment offset [0440H], otherwise, continue adding and store the sum in data segment offset [0440H], Data (H): 04,06 ,01,02 and 11. B- What two conditions can terminate the operation performed by the instruction LOOPNE? C- What flag condition is tested for by the instruction JNS? Q1/ write a program to count the number of 5 in a given array stored in memory locations from 0110 H to 0120 H in the current data segment 0600 H, save the result in DL register, assume DS =0600 H Q 2/A- Write a program to add the following five data bytes stored in data segment offset starting from [0800H), if the sum generates a carry , stop the adding ,and store (2B) in data segment offset [0440H], otherwise, continue adding and store the sum in data segment offset [0440H], Data (H): 04,06 ,01,02 and 11. B- What two conditions can terminate the operation performed by the instruction LOOPNE? C- What flag condition is tested for by the instruction JNS?
Expert Answer:
Answer rating: 100% (QA)
1 LC0 ascii The sum of the given array is000 LC1 ascii 012000 main push fp lr add fp sp 4 sub sp sp ... View the full answer
Related Book For
Data Structures and Algorithm Analysis in Java
ISBN: 978-0132576277
3rd edition
Authors: Mark A. Weiss
Posted Date:
Students also viewed these electrical engineering questions
-
I need the answer as soon as possible. Halsey Corporation first issued stock on January 1, 2016. Halsey has the following stock outstanding on December 31, 2019: Preferred Stock (5 percent...
-
Assume the risk-free rate is 3% and the market return is 10%. Stock X Stock Y Stock Z Beta 0.65 0.90 -- Current price $13.50 $26.50 Correlation (X/Y) = 0.35 (X/Z) = 0 (Y/Z) = 0.55 a) Most equity...
-
It is required to design a BPF with the following specifications -0.02 < |H(ejw)l < 0.02, 0<= |w| <=2n 0.95 < |H(ejw) < 1.05, ,3n <= Iw| <= 0.7n, -0.001 < |H(ejw)| <...
-
You measure 30 textbooks' weights, and find they have a mean weight of 72 ounces. Assume the population standard deviation is 4 ounces. Based on this, construct a 90% confidence interval for the true...
-
How and why would you expect variety (breadth) and assortment (depth) to differ between a traditional bricks and mortar store and its Internet counterpart?
-
Name the objectives of an effective accounting system.
-
Jason Cannon purchased a defective tractor for which Cannon brought numerous causes of action against Bodensteiner Implement Company (Bodensteiner). One of the claims was breach of express...
-
Norton Co. had the following amounts related to its pension plan in 2010. Actuarial liability loss for 2010 $28,000 Unexpected asset gain for 2010 18,000 Accumulated other comprehensive income (G/L)...
-
Defend the following statement: Data and database administration are even more important in the decentralized IS environment than in the centralized one
-
Design a clamper to perform the function indicated in Fig. 2.180. Silicon diodes 10 V 2.7 V vV Design -10 V
-
In which direction will each compass point when there is a large current in the direction shown? In which direction will each compass point when there is a large current in the direction shown? The...
-
In November 2007, Amazon introduced the Kindle, the first successful reading device for electronic books. The price was a daunting $399. In 2009, the company dropped the Kindle's price to $259 and in...
-
1. An excerpt of the insurance purchase dataset is given (see last page and the accompanying spreadsheet). A few values in BANK_FUND was modified to facilitate calculation in the assignment. There...
-
Obesity prevention practices in early care and education settings: an adaptive implementation Authors-Swindle T Rutledge JM Selig JP Painter J Zhang D Martin J Johnson SL Whiteside-Mansell L Almirall...
-
What is household wealth or net worth in the United States. How wealthy are we as a country (see Federal Reserve - Financial Accounts of the United States Z.1) (Answer to be at least a Paragraph)
-
How to determine ACA and TCSA of the entity? Provide example to explain your answer
-
Ruben??s funeral cost 6,000. Under Ruben??s will, his entire estatepasses to his daughter Sarah.In June 2018, Ruben had made a gift of 400,000 into a trust forSarah. Ruben agreed to pay any 2 answers
-
Suppose that A is an m n matrix with linearly independent columns and the linear system LS(A, b) is consistent. Show that this system has a unique solution.
-
Write the fast exponentiation routine without recursion.
-
Show how the recursive multiplication algorithm computes XY, where X = 1234 and Y = 4321. Include all recursive computations.
-
Sort 3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5 using quicksort with median-of-three partitioning and a cutoff of 3.
-
A big challenge for the GM managers at the auto plant making the Chevrolet Sonic will be maintaining positive employee morale. They will be managing a workforce of 1,550 employees that is composed of...
-
Assume you are an employee in a situation similar to the one described in this case, a situation in which you believe your union has not represented your interests fairly and made a deal with...
-
A British Workplace Behaviour Survey explored prevalence of a wide range of behaviors that comprise ill treatment in the UK workplace. Ill treatment included 47 percent reported unreasonable...
Study smarter with the SolutionInn App