6. (20 points) Given the following assembly program, show the progression of values stored in both...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
6. (20 points) Given the following assembly program, show the progression of values stored in both the registers and memory locations. Use hexadecimal numbers for all entries (may have to convert decimal to hex). Remember that the memory is byte-addressable, and registers are word-sized. ; This program finds and stores the maximum and minimum scores given. .data .byte 88, 92, 75, 100, 54, -1 .byte O .byte 0 .text scores: max: min: start: testMin: done: mov.w #max, R5 mov.w #min, R6 mov.w #scores, R4 mov.b @R4, 0(R5) mov.b @R4, 0(R6) mov.b @R4+, R7 tst.b R7 jl done cmp.b @R5, R7 jl mov.b R7, 0(R5) cmp.b @R6, R7 jge start mov.b R7, 0(R6) jmp start jmp $ testMin ;sets max = first number ;sets min = first number R4: R5: R6: R7: Symbol table: scores max min Memory: 2400 2406 2407 1 pt 1 pt 1 pt 1 pt 2400 2406 2407 2 pt 2 pt 2 pt 2 pt 2 pt 2 pt 2 pt 2 pt 6. (20 points) Given the following assembly program, show the progression of values stored in both the registers and memory locations. Use hexadecimal numbers for all entries (may have to convert decimal to hex). Remember that the memory is byte-addressable, and registers are word-sized. ; This program finds and stores the maximum and minimum scores given. .data .byte 88, 92, 75, 100, 54, -1 .byte O .byte 0 .text scores: max: min: start: testMin: done: mov.w #max, R5 mov.w #min, R6 mov.w #scores, R4 mov.b @R4, 0(R5) mov.b @R4, 0(R6) mov.b @R4+, R7 tst.b R7 jl done cmp.b @R5, R7 jl mov.b R7, 0(R5) cmp.b @R6, R7 jge start mov.b R7, 0(R6) jmp start jmp $ testMin ;sets max = first number ;sets min = first number R4: R5: R6: R7: Symbol table: scores max min Memory: 2400 2406 2407 1 pt 1 pt 1 pt 1 pt 2400 2406 2407 2 pt 2 pt 2 pt 2 pt 2 pt 2 pt 2 pt 2 pt
Expert Answer:
Answer rating: 100% (QA)
Answer R4 1 R5 64 R6 66 R7 1 Symbol Table Scores 2400 Max 2406 Min 2407 Memory 2400 ... View the full answer
Related Book For
The Architecture of Computer Hardware, Systems Software and Networking An Information Technology App
ISBN: 978-1118322635
5th edition
Authors: Irv Englander
Posted Date:
Students also viewed these computer network questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Take BHP as manufacturing company in Australia.What kind of investment entry mode is the most suitable for BHP Company?Compare these different investment entry modes (joint venture, greenfield...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Colt Division had the following results for the year just ended: Sales..................................$750,000 Contribution margin ..................300,000 Controllable...
-
In the middle part of the nineteenth century, the British parliament staged an experiment in private enterprise. In the early part of the century, water was drawn from local rivers, stored in ponds...
-
You have been asked by the director of your schools student union to make a chart of all the traditional media serving your market to use in promoting the centers 50th anniversary events. Develop a...
-
You have the opportunity to invest in a machine that will cost \($340,000.\) The machine will generate cash flows of \($100,000\) at the end of each year and require maintenance costs of \($10,000\)...
-
Finlon Upholstery, Inc. uses a job-order costing system to accumulate manufacturing costs. The companys work-in-process on December 31, 20x1, consisted of one job (no. 2077), which was carried on the...
-
D Riverbed Company purchased an electric press on June 30, 2025, by trading in its old gas model and paying the balance in cash. The following data relate to the purchase: List price of new press...
-
Paxton stayed up very late studying for an exam and slept through his alarm the next morning. When he awoke, Paxton had very little time to get to class before the exam started. He quickly dressed,...
-
Para obtener una muestra n=100 de una poblacion N=1000, se empleo el muestreo aleatorio simple. Se hallo una proporcin muestral de =0.30
-
"What strategies can businesses adopt to effectively navigate the ethical challenges posed by advancements in artificial intelligence and automation, ensuring responsible and humane use while...
-
Expand to 10 years with a 3% increase in the staff salary, Year 1 Year 2 Year 3 Year 4 Year 5 Year 6 Year 7 Year 8 Year 9 Year 10 Revenue Gross patient services revenue (GPSR) $ 20,075,000.00 Payment...
-
What Makes Information Useful? Explain each point. Q2. What are the Components of an AIS? Q3. What does documentation mean? Describe the two Techniques of Systems Documentation . Q4. Explain Three...
-
1 . Firm Z issued 1 6 - year bonds 6 years ago at a coupon rate of 8 . 1 8 percent. The bonds make semiannual payments. If the YTM on these bonds is 6 . 1 percent, what is the current bond price?...
-
"A condominium offers a unit with a selling price of 5 million pesos. A buyer may choose to amortize the unit monthly over a span of 2 5 years on top of paying annually an amount of 5 0 0 , 0 0 0 ....
-
Outdoor Luggage, Inc., makes high-end hard-sided luggage for sports equipment. Data concerning three of the company's most popular models appear below. Ski Guard Golf Guard Fishing Guard Selling...
-
Suppose that a company has 10.000 outstanding shares in the beginning of the year. On April 1st, the company increases its shares by 6.000. On July 1st, the company increases its shares again, but...
-
Sketch or print screen a typical GUI screen. Label each of the major components on the screen.
-
Who owns Internet backbones? Why are Internet backbones important in modern Internet use?
-
Using the weights in base 8, convert 212 10 into base 8. Convert 3212 10 into base 8.
-
Tobacco Leaf Treehouses, Inc., a Kentucky company, has determined that a majority of its customers are located in the Pennsylvania area. It therefore is considering using a lockbox system offered by...
-
Your firm has an average receipt size of \($50.\) A bank has approached you concerning a lockbox service that will decrease your total collection time by three days. You typically receive 12,000...
-
Pete Moss, Inc., a large fertilizer distributor based in California, is planning to use a lockbox system to speed up collections from its customers located on the East Coast. A Philadelphia-area bank...
Study smarter with the SolutionInn App