Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use Code Composer Studio and your Launchpad to write and execute one complete assembly language program to perform the following task. Use variables in RAM
Use Code Composer Studio and your Launchpad to write and execute one complete assembly language program to perform the following task. Use variables in RAM or values in core registers to store temporary values. Make sure to comment your program: Place an array labeled array in FRAM with the following 16 bit signed decimal elements: -21, 301, -25, -1, 189,-43, -300, -22, 111, -89 Hint: to use signed decimals in CCS simply use the following syntax: array: .word -21, 301, -25, -1, 189,-43, -300, -22, 111, -89 Create a 16 bit variable named count in RAM with an initial value of O Task: Use a single for loop (alternate implementation, page 15, lesson 11) and a single if statement (alternate implementation, page 9, lesson 11) to determine the number of negative elements in the array. Store the number of negative elements in the variable count. It is a requirement that you use the structure for the for loop and if statement (alternate implementations) as described in lesson 11. Use Code Composer Studio and your Launchpad to write and execute one complete assembly language program to perform the following task. Use variables in RAM or values in core registers to store temporary values. Make sure to comment your program: Place an array labeled array in FRAM with the following 16 bit signed decimal elements: -21, 301, -25, -1, 189,-43, -300, -22, 111, -89 Hint: to use signed decimals in CCS simply use the following syntax: array: .word -21, 301, -25, -1, 189,-43, -300, -22, 111, -89 Create a 16 bit variable named count in RAM with an initial value of O Task: Use a single for loop (alternate implementation, page 15, lesson 11) and a single if statement (alternate implementation, page 9, lesson 11) to determine the number of negative elements in the array. Store the number of negative elements in the variable count. It is a requirement that you use the structure for the for loop and if statement (alternate implementations) as described in lesson 11
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started