Question
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.
-------------------
Example:
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
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