Implement the new MIPS instruction jagi regx,regy (standing for jump and get instruction) on the single
cycle MIPS architecture. The semantics of jagi are as follows:
• Store the current instruction in regx.
• Branch to the location stored in MEM[regy].
For example, if regy contains 0x12345678 and the memory word at location 0x12345678 contains 1610, the
instruction would store the current machine code in regx and jump to address 1610.
Follow the same directions as given in the previous homework – this means you don’t get credit if you don’t
tell the grader what your machine code format is.