Implemented R-type ops and instruction tests.