, you need to create an assembly program in uVision to modify individual bits of a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
, you need to create an assembly program in uVision to modify individual bits of a value, then store that value into memory. Fill in the blanks/comment area of the code outline below, adding your own comments. Note that I'll be referring to the individual bits of this as C7 C6 C5 C4 C3 C2 C1 Co with 7 being the most significant bit as 0 being the least significant bit) Test this program with two different bytes for Control. Take a screenshot after each test of the full uVision window in debug mode after stepping through the entirety of your code (with the Memory Window set to address 0x20000000). Make sure the value for Control is visible in the code window so we can see both it and the final result of Status in the memory window all in the same screenshot. • Place both screenshots in a PDF then submit this to Canvas. • Also submit to Canvas your code as a .s or .txt file • • Do not use a zipped folder. Canvas will let you upload two documents as a single submission. Uncommented code will receive a zero. The comments I put in as instructions don't count; you need to add your own comments as well to explain what you're doing. • If you have difficulty getting your code to run, make sure to check the PDF of frequent errors on Canvas. You can scroll up in the Build Output window to see what's causing the code to not build. If you cannot find the answers there, send a screenshot with your question to both Nabid and I. Hints: • You'll still need a b. at the end of the code you've written. The space directive allocates a labeled spot in memory with blank/0x00 bytes AREA RESET, CODE THUMB ENTRY Main here) ; start with all zeroes in a register of your choosing. This ; register (Rx) will be modified throughout the code and eventually ; stored in memory ; read in the byte labeled Control. ; if C7 is set, set bit 2 of Rx ; if c5 is set AND C4 is clear, set bits 5, 3, and 1 of Rx ; if C3 is clear, toggle bit 1 of Rx ; if c7 OR C2 is set, set bit 6 of Rx ; if co is clear, set bits 7 and 4 of Rx ; I accidentally had the above as C8, which was a typo ; if C1 is equal to bit 1 of Rx, set bit 0 of Rx (don't change bit 1. ; store Rx into the byte labeled Status b. Control dcb 0x00 ; you'll need to change this to other values to test your code AREA HW7, DATA , you need to create an assembly program in uVision to modify individual bits of a value, then store that value into memory. Fill in the blanks/comment area of the code outline below, adding your own comments. Note that I'll be referring to the individual bits of this as C7 C6 C5 C4 C3 C2 C1 Co with 7 being the most significant bit as 0 being the least significant bit) Test this program with two different bytes for Control. Take a screenshot after each test of the full uVision window in debug mode after stepping through the entirety of your code (with the Memory Window set to address 0x20000000). Make sure the value for Control is visible in the code window so we can see both it and the final result of Status in the memory window all in the same screenshot. • Place both screenshots in a PDF then submit this to Canvas. • Also submit to Canvas your code as a .s or .txt file • • Do not use a zipped folder. Canvas will let you upload two documents as a single submission. Uncommented code will receive a zero. The comments I put in as instructions don't count; you need to add your own comments as well to explain what you're doing. • If you have difficulty getting your code to run, make sure to check the PDF of frequent errors on Canvas. You can scroll up in the Build Output window to see what's causing the code to not build. If you cannot find the answers there, send a screenshot with your question to both Nabid and I. Hints: • You'll still need a b. at the end of the code you've written. The space directive allocates a labeled spot in memory with blank/0x00 bytes AREA RESET, CODE THUMB ENTRY Main here) ; start with all zeroes in a register of your choosing. This ; register (Rx) will be modified throughout the code and eventually ; stored in memory ; read in the byte labeled Control. ; if C7 is set, set bit 2 of Rx ; if c5 is set AND C4 is clear, set bits 5, 3, and 1 of Rx ; if C3 is clear, toggle bit 1 of Rx ; if c7 OR C2 is set, set bit 6 of Rx ; if co is clear, set bits 7 and 4 of Rx ; I accidentally had the above as C8, which was a typo ; if C1 is equal to bit 1 of Rx, set bit 0 of Rx (don't change bit 1. ; store Rx into the byte labeled Status b. Control dcb 0x00 ; you'll need to change this to other values to test your code AREA HW7, DATA
Expert Answer:
Answer rating: 100% (QA)
assembly AREA RESET CODE THUMB ENTRY Main MOV R0 0 Initialize R0 register with all ze... View the full answer
Posted Date:
Students also viewed these general management questions
-
Lea atentamente, analice la informacin de acuerdo con los contenidos revisados en la semana y conteste las preguntas que se presentan a continuacin: Imagine que usted ha sido contratada(o) en un...
-
In this assignment, you will create a program that allows theuser to draw in a window using brushes of different sizes andcolors. The user will be able to change the size and color of thebrush using...
-
Assume that your team has been in contract with the headquarters of a company that owns several restaurants in different states in the US. Your team is to provide software that manages these...
-
1. What velocity will a 300 kg snowmobile acquire if pushed from rest by a force of 6240 N [E] for 1.25 s? What average force will stop this snowmobile from moving at this speed in 1.25 s? (v = 26.0...
-
For the National Football League, ratings for the all-time leading passers were as shown below. Also shown for each quarterback is the percentage of passes that were interceptions, along with the...
-
The relief time provided by a standard dose of a popular children's allergy medicine averages six hours with a standard deviation of two hours. a. Determine the percentage of children who experience...
-
Discuss the pros and cons of a 360 - degree evaluation of the chief executive s performance.
-
Sherrod, Inc. reported pretax accounting income of $76 million for 2011. The following information relates to differences between pretax accounting income and taxable income: a. Income from...
-
Question 1 1. Stihl Repairs completed the following petty cash transactions during July 2017: Add 13% HST to all transactions. All vouchers are numbered sequentially beginning with #81 July 5:...
-
Read the passage carefully and answer the questions: You are about to graduate your Bachelor Degree Programme after all these years of study. Thinking seriously about your future, you realize that...
-
Let f(x)=6x+2x+3. Use the limit definition of the derivative of f(x) and then find f'(4) Find the following: simplify the result. Step 1: f(x + h) = Step 2: f(x+h) f(x) = f(x+ h) - f(x) Step 3: = 77h...
-
Riverbed Company reported operating expenses of $373000 for 2025. The following data were extracted from the company's financial records: 12/31/24 12/31/25 Prepaid Expenses $60800 $68400 Accrued...
-
1) Explain how the conflict of different objectives of financial management is resolved? 2) Explain briefly the meaning of the balance between profitability and liquidity 3) The difference between...
-
Select two of the Morality Crimes below (you may go off of this list if you seek approval from your instructor). Define the criminal action in general terms or find that actual federal or state law...
-
Marigold Company's record of transactions concerning part X for the month of April was as follows. Purchases Sales April 1 (balance on hand) 230 $5.40 April 5. 430 4 530 5.50 12 330 11 430 5.70 27...
-
Obesity is a serious problem in the Arab world as well as worldwide. Young people in the Arab world are facing problems caused by obesity for many reasons, such as a lack of outdoor sports owing to...
-
If you want to solve a minimization problem by applying the geometric method to the dual problem, how many variables and problem constraints must be in the original problem?
-
Consider the Bayesian model for \(\tau=\left\{x_{1}, \ldots, x_{n} ight\}\) with likelihood \(g(\tau \mid \mu)\) such that \(\left(X_{1}, \ldots, X_{n} \mid \mu ight) \sim_{\text {idd }}...
-
Consider the sequence \(w_{0}, w_{1}, \ldots\),where \(w_{0}=g(\boldsymbol{\theta})\) is a non-degenerate initial guess and \(w_{t}(\boldsymbol{\theta}) \propto w_{t-1}(\boldsymbol{\theta}) g(\tau...
-
Let \(X \sim \operatorname{Gamma}(\alpha, \lambda)\). Show that the pdf of \(Z=1 / X\) is equal to \[ \frac{\lambda^{\alpha}(z)^{-\alpha-1} \mathrm{e}^{-\lambda(z)-1}}{\Gamma(\alpha)}, \quad z>0 \]
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App