Assembly Language Bitwise And, OR, XOR, & Shift Please solve it and explain how you did it
Fantastic news! We've Found the answer you've been seeking!
Question:
Assembly Language Bitwise And, OR, XOR, & Shift
Please solve it and explain how you did it in order to get anupvote. thnks
Transcribed Image Text:
Assume the following values are stored at the indicated memory addresses and registers: Address Value Register Value 0x500 0x983FODFD Seax 0x500 0x504 0xC995769D sebx 0xA6DC437 0x508 0x8F9D82FE secx OxEF8B5502 0x50C 0xC78E3EFF sedx In the table below, show only the new value of the destination in hexadecimal. For example, if the instruction is andbal, ah, you should show the value of register ah after the instruction executes. Note: From the Intel manual about shifts 1. 2. 3. 4. 5. 6. 7. 8. 9. The destination operand can be a register or a memory location. The count operand can be an immediate value or the CL register. The count is masked to 5 bits. The count range is limited to 0 to 31. Instruction andb%cl, %bl andb 10 (%eax), %cl orb ch, dh orb 9 (seax), %d1 OxA049E577 xorb %bh, %bl xorb 6 (%eax), %bh shrl $8, 4 (%eax) sarl %cl, %edx sarl %cl, %ebx 10. salb $2, %bh 11. shll cl, %ebx New Value (in hex) Assume the following values are stored at the indicated memory addresses and registers: Address Value Register Value 0x500 0x983FODFD Seax 0x500 0x504 0xC995769D sebx 0xA6DC437 0x508 0x8F9D82FE secx OxEF8B5502 0x50C 0xC78E3EFF sedx In the table below, show only the new value of the destination in hexadecimal. For example, if the instruction is andbal, ah, you should show the value of register ah after the instruction executes. Note: From the Intel manual about shifts 1. 2. 3. 4. 5. 6. 7. 8. 9. The destination operand can be a register or a memory location. The count operand can be an immediate value or the CL register. The count is masked to 5 bits. The count range is limited to 0 to 31. Instruction andb%cl, %bl andb 10 (%eax), %cl orb ch, dh orb 9 (seax), %d1 OxA049E577 xorb %bh, %bl xorb 6 (%eax), %bh shrl $8, 4 (%eax) sarl %cl, %edx sarl %cl, %ebx 10. salb $2, %bh 11. shll cl, %ebx New Value (in hex)
Expert Answer:
Answer rating: 100% (QA)
Instruction New Value in hex andb cl bl 0x4 andb 10 eax cl 0x2 orb ch dh 0x9D orb 9 eax dl 0xDD xorb bh bl 0x0 xorb 6 eax bh 0x0 shrl 8 4 eax 0x98 sar... View the full answer
Related Book For
Accounting Tools for business decision making
ISBN: 978-0470095461
4th Edition
Authors: kimmel, weygandt, kieso
Posted Date:
Students also viewed these programming questions
-
In order to get your personal finances under control, you need to prepare a personal budget. Assume that you have compiled the following information regarding your expected cash flows for a typical...
-
In order to get an idea on current buying trends, a real estate agent collects data on 10 recent house sales in the area. Specifically, she notes the number of bedrooms in each house as follows: a....
-
In order to get in shape for mountain climbing, an avid hiker with a mass of 60. kg ascends the stairs in the worlds tallest structure, the 828 m tall Burj Khalifa in Dubai, United Arab Emirates....
-
Svetlana (45) and Petro (43) are both employed and each have their own group benefit plan that provides family coverage. Svetlana's birthday is in June and Petro's is in December. The couple has one...
-
Twix Company had the following account balances at year-end: Cost of Goods Sold $60,000; Inventory $15,000; Operating Expenses $29,000; Sales Revenue $115,000; Sales Discounts $1,300; and Sales...
-
1. Analyze Tans strategic decision to fund the venture without seeking venture capital from others. What were her reasons for the decision? Is the decision correct, in your view? 2. What strengths...
-
Compute the value of the chi-square statistic. Exercises 49 refer to the following data: Electric motors are assembled on four different production lines. Random samples of motors are taken from each...
-
Cooperative enterprises are collectively owned, and their affairs are directed through shared governance. Use the preceding theory to discuss the management of some cooperative enterprises with which...
-
Please describe your understanding of exceptional client service. What are your motivations for pursuing a career in sales? Why do you believe you will be successful? How would you describe...
-
Why do computers use binary numbers?
-
The following outline provides a guide to your detailed Risk Analysis and Management Plan Please apply the guidelines relative to your particular group project. Introduction (10mark) - Very brief...
-
Suppose you are given functions f (x, y), g(t), and h(s, t) and you know that af af x -(2, 1) = 1, g t h s (2, 1) = 1, h t (-5,7) = 1, (7) = 4, (-5, 7) = 3, g(7) = 2, h(-5, 7) = 1. If we let z (s, t)...
-
Find three consecutive even integers such that 6 times the sum of the first and is 8 less than 14 times the second.
-
The table below shows the durations and planned costs of each activity of an IT project. The project has been running so far for 12 weeks. Soon after the start of the project the union enforced new...
-
University of Iowa Athletics has learned that a small liberal arts college in northeastern Iowa is using its logo, without permission, on several of their marketing materials and website. Based on...
-
List the ways in which your organization is involved with intellectual property. You do not have to provide any trade secrets or specifics, but speak to where intellectual property is important to...
-
A commercial banks T-account in 2018 is shown as below Assets Loans: $800 Securities: $100 Reserves: $60 Liabilities plus equity Deposits: $900 Borrowing: $0 Equity: ? The bank pays 10% for the bank...
-
Accounting policies and practices that are most important to the portrayal of the companys financial condition and results, and require managements most difficult, subjective, or complex judgments...
-
Parkland Department Store is located near the Lyndale Shopping Mall. At the end of the companys fiscal year on December 31, 2012, the following accounts appeared in its adjusted trial balance....
-
Warner Inc. sells a high-speed retrieval system for mining information. It provides the following information for the year. Overhead is applied on the basis of direct labor hours. (a) Compute the...
-
Knight Company reports the following costs and expenses in May. Instructions From the information, determine the total amount of: (a) Manufacturing overhead. (b) Product costs. (c) Periodcosts....
-
Refer to exercise E2-28 of Chapter 2. Start from the trial balance and the posted T-accounts prepared at January 18, 2020. Later in January, the business completed these transactions: Requirements 1....
-
Refer to exercise E3-31. Requirements 1. After solving exercise E3-30, use the data in that exercise to prepare Yosaf Portraits Ltd.'s classified balance sheet at December 31, 2020. Use the report...
-
Satterfield Corporation reported the following current accounts at Deccmber 31, 2019 (amounts in thousands): During January 2020, Satterfield completed these selected transactions: - Sold services on...
Study smarter with the SolutionInn App