Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Branch and Conditional Execution (30pts + 30pts) 1. Examine each set of the following instructions. Assume that each instruction set is independent and resets with
Branch and Conditional Execution (30pts + 30pts) 1. Examine each set of the following instructions. Assume that each instruction set is independent and resets with the initial condition before the next instruction set. If any of the given instruction is not executed according to the condition, the specified destination register's original value should be shown in the Result column. Also, assume that the system uses little endian ordering. For each instruction set, show the entire 32-bit contents of the specified destination register in Hexadecimal format. Show your work if needed (to get partial credits). You don't need to write the results in a table. But if you want to fill a table, a separate MS Word document that contains the table is provided in Canvas. Otherwise, just show the result and work per sub problem without using table. Solve this problem without running Keil tool because you will be asked similar problems in the exam Register File R1- R2- R3 R4- R5- R6- 0x300FF12D 0x000001B1 0x0000000C OxFFFFFFF4 0x00000000 0x20000010 Result Work Instruction ADDLO R5, SUBGERS, MOVEQ R5, a. CMP RO, R1 R2, #0xC RI, #12 #0x1234 R5 C.TST R1 , #0x4000 R5- d. CMP R1, R4 MOVLS R5, #1 CMPHI R1, R6 MOVH R5 , #-1 CMN R4, #12 BEQ Else MOV R5, #5 R5- Else ADD R5, R5, #5 MOV R7, #0 MOV R5, #12 Loop CMP R7, R3 BGT Endloop CMP R7,#4 SUBGE R5, R5, #1 ADD R7, #1 Loop Endlod 2. Now that you learned how to implement loop iterations, convert your Vector-Vector Multiplication code implemented for HW2 to a loop-based Vector-Vector Multiplication But, this time, you should run more iterations with more data as shown in the following pscudo code signed int Inputl [8] -1, 5, 10, 2, 9, 2, -2, 12); signed int Input2 [8] 13, -5, 0, 4, 2, 8, -3, -5); signed int Output-0 unsigned int i0; for (i = 0;
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