Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This assignment requires you to take an ARM assembly language program and simulate it . The program is available in the file array _ plus
This assignment requires you to take an ARM assembly language program and simulate it The program is available in the file arrayplusscalar.asm. Part A Install uVision on your computer using the Getting Started with Keil uVision document or go to the lab in ENG Start uVision. Create a new project using Project New uVision Project. Navigate to the desired directory I suggest the same directory as the asm file and give the project a name. You will be asked to Select Device for Target Target Select Legacy Device Database no RTE for the first pull down and then select ARM ARMBig Endian Add the source file to the project by using Project Manage Project Items. In the Manage Project Items popup, click on Add Files and select arrayplusscalar.asm you may need to change the filter to All Files to see it After you select the file, click on Add and then on Close. You should now be back in the Manage Project Items window and see arrayplusscalar.asm under Files. Click OK Use Project Build Target to run the Assembler. Debug the program using Debug StartStop Debug Session Youll see a popup window that says you are using the evaluation version and have a code limit of K Click OK Set up the memory map using Debug Memory Map In the memory map popup window, enter a map range equal to the current mapped region, with the beginning and ending address separated by a comma. Click on Read, Write, and Execute. Then, click on Map Range. You should see write added to the current mapped range. Click Close. Set a break point on the done B done instruction line Down in the bottom right of the Keil Simulator window, click on the Memory tab and enter as the Address at the top. This window shows you everything that has been put in memory, both instructions and data. The starting address of the line is followed by a colon and then each byte separated by a space. Red indicates that a data item has been read and green indicates that a data item has been written. Run the program and answer the following questions: Part B What is the value of the PC decimal and hexadecimal when the program ends execution? What are the memory addresses associated with x What are the memory addresses associated with y What values are stored in y decimal and hexadecimal Are they correct
This assignment requires you to take an ARM assembly language program and simulate it The program
is available in the file arrayplusscalar.asm.
Part A
Install uVision on your computer using the Getting Started with Keil uVision document or go to
the lab in ENG
Start uVision.
Create a new project using Project New uVision Project.
Navigate to the desired directory I suggest the same directory as the asm file and give the
project a name.
You will be asked to Select Device for Target Target Select Legacy Device Database no
RTE for the first pull down and then select ARM ARMBig Endian
Add the source file to the project by using Project Manage Project Items.
In the Manage Project Items popup, click on Add Files and select arrayplusscalar.asm you
may need to change the filter to All Files to see it After you select the file, click on Add and
then on Close. You should now be back in the Manage Project Items window and see
arrayplusscalar.asm under Files. Click OK
Use Project Build Target to run the Assembler.
Debug the program using Debug StartStop Debug Session
Youll see a popup window that says you are using the evaluation version and have a code limit
of K Click OK
Set up the memory map using Debug Memory Map
In the memory map popup window, enter a map range equal to the current mapped region,
with the beginning and ending address separated by a comma. Click on Read, Write, and
Execute. Then, click on Map Range. You should see write added to the current mapped range.
Click Close.
Set a break point on the done B done instruction line
Down in the bottom right of the Keil Simulator window, click on the Memory tab and enter
as the Address at the top. This window shows you everything that has been put in memory, both
instructions and data. The starting address of the line is followed by a colon and then each byte
separated by a space. Red indicates that a data item has been read and green indicates that a
data item has been written.
Run the program and answer the following questions:
Part B
What is the value of the PC decimal and hexadecimal when the program ends execution?
What are the memory addresses associated with x
What are the memory addresses associated with y
What values are stored in y decimal and hexadecimal
Are they correct
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