Consider the following program segment for a hypothetical CPU having three user registers R1,R2 and R3.
InstructionMOV R1,5000MOV R2,(R1)ADD R2,R3MOV 6000,R2HaltOperationR1←Memory[5000]R2←Memory[(R1)]R2←R2+R3Memory[6000]←R2Machine HaltsInstruction size (in Words)21121
Let the clock cycles required for various operations be as follows:
Register to/from memory transferADD with both operands in registerInstruction fetch and decode3 clock cycles 1 clock cycles 2 clock cycles
The total number of clock cycles required to execute the program is