Question: DO NOT USE C OR C++ Step 1 Create a new ASSEMBLY project using Keil Software (1) Make sure you use the M3 option (2)
DO NOT USE C OR C++


Step 1 Create a new ASSEMBLY project using Keil Software (1) Make sure you use the M3 option (2) Make sure you name the folder "COSC2440 Lab08 YourFirstName YourLastName" Step 2: Write an ARM assembly language program that counts the number of 1's for any value in RO. The program must assemble/compile in KEIL and must be able to run in the KEIL simulator. Generally, RO may contain any value, but for purpose of this exercise, you may move 0x2345ABCD into RO. The number in RO does not need be preserved. You may use any other registers as you need. The result, total count of 1's in RO, should be in R1 when the program ends. UHCL: Unwala CENG 3371Microcontroller Programming Spring 2017 Step 3: Copy the template below to your assembly file AREA Lab 09 YourFirstName YourLastName, CODE, READONLY EXPORT main main LDR RO, -0x2345ABCD; This is how you assign large value to RO. MOV will NOT work! stop B stop END Step 1 Create a new ASSEMBLY project using Keil Software (1) Make sure you use the M3 option (2) Make sure you name the folder "COSC2440 Lab08 YourFirstName YourLastName" Step 2: Write an ARM assembly language program that counts the number of 1's for any value in RO. The program must assemble/compile in KEIL and must be able to run in the KEIL simulator. Generally, RO may contain any value, but for purpose of this exercise, you may move 0x2345ABCD into RO. The number in RO does not need be preserved. You may use any other registers as you need. The result, total count of 1's in RO, should be in R1 when the program ends. UHCL: Unwala CENG 3371Microcontroller Programming Spring 2017 Step 3: Copy the template below to your assembly file AREA Lab 09 YourFirstName YourLastName, CODE, READONLY EXPORT main main LDR RO, -0x2345ABCD; This is how you assign large value to RO. MOV will NOT work! stop B stop END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
