Assume that the contents in AX and BX are signed numbers and the contents in CX...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Assume that the contents in AX and BX are signed numbers and the contents in CX and DX are unsigned numbers. Please use a comparison instruction and a conditional transfer instruction to accomplish the following tasks. 1) If the content in DX is larger than that in CX, transfer to execute the instruction with a label of EXCEED. 2) If the content in BX is larger than that in AX, transfer to execute the instruction with a label of EXCEED. 3) If the content in BX is larger than or equal to that in AX, transfer to execute the instruction with a label of EXCEED. 4) If the content in CX is zero, transfer to execute the instruction with a label of ZERO. 5) If the content in BX is equal to that in AX, transfer to execute the instruction with a label of EQ 6) If the content in BX is less than or equal to that in AX, transfer to execute the instruction with a label of EQSMA. 7) If the content in CX is equal to 5678H, transfer to execute the instruction with a label of EQ 8) If the content in DX is less than that in CX, transfer to execute the instruction with a label of EQSM 9) If the content in AX is positive, transfer to execute the instruction with a label of ABC 10) If the content in AX is negative, transfer to execute the instruction with a label of ABC. 2. (25pts) Write a code segment that can subtract hexadecimal number 12345678H from another hexadecimal number76543210H, the result is stored in DX and AX, where DX stores the high 16 bits of the result. 3. (25pts) Write a code segment that can set the 100 bytes that start with an offset address of 1000H in data segment to be all zeros. Assume that the contents in AX and BX are signed numbers and the contents in CX and DX are unsigned numbers. Please use a comparison instruction and a conditional transfer instruction to accomplish the following tasks. 1) If the content in DX is larger than that in CX, transfer to execute the instruction with a label of EXCEED. 2) If the content in BX is larger than that in AX, transfer to execute the instruction with a label of EXCEED. 3) If the content in BX is larger than or equal to that in AX, transfer to execute the instruction with a label of EXCEED. 4) If the content in CX is zero, transfer to execute the instruction with a label of ZERO. 5) If the content in BX is equal to that in AX, transfer to execute the instruction with a label of EQ 6) If the content in BX is less than or equal to that in AX, transfer to execute the instruction with a label of EQSMA. 7) If the content in CX is equal to 5678H, transfer to execute the instruction with a label of EQ 8) If the content in DX is less than that in CX, transfer to execute the instruction with a label of EQSM 9) If the content in AX is positive, transfer to execute the instruction with a label of ABC 10) If the content in AX is negative, transfer to execute the instruction with a label of ABC. 2. (25pts) Write a code segment that can subtract hexadecimal number 12345678H from another hexadecimal number76543210H, the result is stored in DX and AX, where DX stores the high 16 bits of the result. 3. (25pts) Write a code segment that can set the 100 bytes that start with an offset address of 1000H in data segment to be all zeros.
Expert Answer:
Answer rating: 100% (QA)
Here are the assembly language instructions to accomplish the tasks 1 CMP ... View the full answer
Related Book For
Posted Date:
Students also viewed these general management 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...
-
Construct the current assets section of the balance sheet shown here from the following data: Yearly Credit Sales b. Inventory Turnover c. Current Liabilities d. Current Ratio e. c. Quick Ratio...
-
1 YOUR NAME: 2 Asset # 3 Asset name: 4 Date acquired: 5 Cost: 6 Depreciation method: 7 Salvage (residual) value: 8 Estimated useful life (years): 9 222 Computer 1/1/2018 $50,000 Straight Line (SL)...
-
It is often instructive to construct a personal scorecard to measure your own growth and evolution. For instance, you could construct a triad of attributes that measure your personal competencies,...
-
Retrieve the 2016 Under Armour financial statements at www.sec.gov by clicking on Filings and then searching for Under Armour under Company Filings. When you see the list of filings for the company,...
-
Compare and contrast the era of colonization between 1500 and 1800 with colonizing in the 19th century.
-
Think about sending a first-class letter to an international pen pal. Describe the process that the letter goes through to get from your initial creation of the letter to being read by your friend,...
-
How collaborative leadership can help principals balance discipline with other responsibilities? How would you intentionally structure your leadership teams to address instructional leadership?
-
The September bank statement and cash T-account for Terrick Company follow: There were no deposits in transit or outstanding checks at August 31. Required: 1. Identify and list the deposits in...
-
f 2 Required information [The following information applies to the questions displayed below.] Big Tommy Corporation is a local grocery store organized seven years ago as a corporation. The...
-
What issues are at the core of expatriation and repatriation problems?
-
What are the basic issues involved in recruiting and selecting managers for foreign assignments?
-
What is the basis for expressing the response of a system under periodic excitation as a summation of several harmonic responses?
-
How does the degree of centralization or decentralization affect international staffing?
-
The transient part of the solution arises from a. forcing function b. initial conditions c. bounding conditions
-
Consider an investor with initial wealth of WO = 10000. He/she has the opportunity to invest in a risk-free account yielding 4% p.a. or in a stock index account with an expected rate of return of 10%...
-
A company manufactures a single product with the following variable costs per unit: Direct materials ...............................7.00 Direct labour ....................................5.50...
-
Using the discounted cash flow yield (internal rate of return) for evaluating investment opportunities has the basic weakness that it does not give attention to the amount of the capital investment,...
-
Johnson trades as a chandler at the Savoy Marina. His profit in this business during the year to 30 June was £12 000. Johnson also undertakes occasional contracts to build pleasure cruisers,...
-
Find the maximum of the function using Trust region method \(f=15 x_{1}+8 x_{1} x_{2}+5 x_{2}\) subject to \(x_{1}+x_{2} \leq 10\)
-
Discuss the effect of initial trust region radius (ITRR) on the performance of TR algorithm.
-
Calculate the reduction ratio \(r_{k}=\frac{f\left(X_{k} ight)-f\left(X_{k}+s_{k} ight)}{m_{k}\left(X_{k} ight)-m_{k}\left(X_{k}+s_{k} ight)}\) for the function given in problem 1 .
Study smarter with the SolutionInn App