Question: Write the following 3 short programs in Assembly language. 1. Multiply any two unsigned 16-bit numbers in R0, R1, result in R2, using only shift
Write the following 3 short programs in Assembly language.
1. Multiply any two unsigned 16-bit numbers in R0, R1, result in R2, using only shift and add instructions, no multiplication instructions
2. Convert any character in R0 from lower-case to upper-case by operating on it, NOT replacing it. The converted character should stay in R0. Hint: See ASCII table
3. Add two signed numbers in R0=0x78013729, R1=0x62029383 and result in R2.
Convert the values from R0, R1, R2 to decimal using 2s complement. What flags are set? How will you interpret the result?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
