Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the difference between an assembly instruction and an assembly directive? Explain what each line of the following code does and what data is

What is the difference between an assembly instruction and an assembly directive?

Explain what each line of the following code does and what data is created and stored (both in registers and in memory). Make sure to include all relevant memory locations if appropriate. Assume that the first line of code below starts at memory address 0x0. (Shown in image attached)

(Please solve problem 1 in pict attached)

image text in transcribed

Cheggx (--> secure https://blackboard.learn.fresnostate.edu/bbcswebdav/pid-2108562-dt-content-rid-18700732-1/courses/ECE118-01-34504-2183/hw2-1 18.pdf processing system to create your PDE, or print this PDF out, write on the paper, and then scan or take a picture to create a PDF to turn into Blackboard. Total Score /44 pts] . 1412 pts I4 ptsl What is the difference between an assembly instruction and an assembly directive? 12 pts Explain what cach linc of the following code docs and what data is crcated and stored (both in registers and in memory). Make sure to include all relevant memory locations if appropriate. Assume that the first line of code below starts at memory address Ox0. TMP1 DCD 0x2A TMP2 EQU 0x38 LDR LDR LDR R3, [RO] STR RI, =TMP2 R3, [R1], #8 2. 4 + 8 pts 4 ptsl What does "ALIGN 4, 2" mean? [8 pts] Draw the data memory layout and the data (all values in hex) if the data memory starts at 0xE0 and the following directives are executed. AREA SDRAM, DATA ALIGN 4 DCD 0x22 ALIGN 4,3 TMP2 TMP3 DCB 0b111 3. I4 ptsl Get the Keil Simulator up and running (dircctions posted on Blackboard). If you dont have a computer, you can install it on a lab computer (note every night the lab computers are reset, so v nced to install it cach time Run through the entire tutorial orn O Type here to search 2:20 AM 2/22/2018 Cheggx (--> secure https://blackboard.learn.fresnostate.edu/bbcswebdav/pid-2108562-dt-content-rid-18700732-1/courses/ECE118-01-34504-2183/hw2-1 18.pdf processing system to create your PDE, or print this PDF out, write on the paper, and then scan or take a picture to create a PDF to turn into Blackboard. Total Score /44 pts] . 1412 pts I4 ptsl What is the difference between an assembly instruction and an assembly directive? 12 pts Explain what cach linc of the following code docs and what data is crcated and stored (both in registers and in memory). Make sure to include all relevant memory locations if appropriate. Assume that the first line of code below starts at memory address Ox0. TMP1 DCD 0x2A TMP2 EQU 0x38 LDR LDR LDR R3, [RO] STR RI, =TMP2 R3, [R1], #8 2. 4 + 8 pts 4 ptsl What does "ALIGN 4, 2" mean? [8 pts] Draw the data memory layout and the data (all values in hex) if the data memory starts at 0xE0 and the following directives are executed. AREA SDRAM, DATA ALIGN 4 DCD 0x22 ALIGN 4,3 TMP2 TMP3 DCB 0b111 3. I4 ptsl Get the Keil Simulator up and running (dircctions posted on Blackboard). If you dont have a computer, you can install it on a lab computer (note every night the lab computers are reset, so v nced to install it cach time Run through the entire tutorial orn O Type here to search 2:20 AM 2/22/2018

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago