Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question: Assemble the codes Using the following picture of Thumb2s encoding formats, convert the following three assembly language instructions to the machine codes in hexadecimal.

Question: Assemble the codes Using the following picture of Thumb2s encoding formats, convert the following three assembly language instructions to the machine codes in hexadecimal. You have to show your work, otherwise you get zero.

Please help to solve 1)ADDS R7, R5, #7 and 2)MOVW R10, #0x1234. If possible please explain how the thing works. please use another method rather than the previous person answered this question. His/her answer was completely not what we are looking for.

1) ADDS R7, R5, #7 2) MOVW R10, #0x1234.

image text in transcribed

-------------------

Example:

image text in transcribed

ADDS Rds, \#imm8 ADDS Rd, Rs, \#imm3 MOVS Rd, \#imm8 ADD{S}Rd,Rs,# imm12 imm12 = i:imm3:imm8 MOVW Rd, \#imm16 imm16 = imm4:i:imm3:imm8 ADDS Rd, Rs, imm3 ADDS=0001110#5=101Rs=R2=010Rd=R3=011

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

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

What is the market structure for Apple watches? and why?

Answered: 1 week ago