Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . The initial value in R 4 is 0 xFACE 5 6 7 8 , in R 7 is 0 xBB 1 1 4

1. The initial value in R4 is 0xFACE5678, in R7 is 0xBB114433, and the initial value of the 4-
bit condition code NZCV =0b0000
STOP MOVS R4, #0x5A ; instruction 1
MOVS R7, #0x0 ; instruction 2
CBNZ R7, DONE ; instruction 3
MOVW R4, #0xABCD ; instruction 4
DONE END ; instruction 5
a) Convert the instruction 1 into machine code (result in hexadecimal format) using the
code format from the class note. [3 points]
b) Convert the instruction 4 into machine code (result in hexadecimal format) using the
code format from the class note. [4 points]
c) What will be the condition code NZCV after the instruction 2 is executed? What is the
value in R7(word size =32 bits =4 bytes) in hexadecimal format after the instruction
2 is executed? [3 points]
Student Name:
ID Number:
d) After the instruction 3 is executed, what is the next instruction to be executed (instruction
4 or instruction 5)? Why? What will be the value in R4(word size) in hexadecimal
format after the instruction 5?[4 points]
e) If the STOP instruction is at the memory location 0x01000000, fill in the data in the
following memory block starting from 0x01000000 based on instructions 1-4.[12
points]
Even address content Odd address content
0x01000008(instruction 4)
[2 points]
0x01000006(instruction 4)
[2 points]
0x01000004(instruction 3)
[4 points]
0x01000002(instruction 2)
[2 points]
0x10000000(instruction 1)
[2 points]
f) What is the program counter (PC) value when the instruction 2 is executing? [2 points]
g) What is the program counter (PC) value at the end of the program? [2 points]

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

Transactions On Large Scale Data And Knowledge Centered Systems Iv Special Issue On Database Systems For Biomedical Applications Lncs 6990

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Christian Bohm ,Johann Eder ,Claudia Plant

2011th Edition

3642237398, 978-3642237393

More Books

Students also viewed these Databases questions

Question

Discuss the key people management challenges that Dorian faced.

Answered: 1 week ago

Question

How fast should bidder managers move into the target?

Answered: 1 week ago