/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package IntermediaryCode; import API.Instruction; /** * * @author Eugenio */ public class TestInstruction { /** * 6 5 5 5 5 6 * +--------+--------+-------+-------+------+--------+ R-type format
* | Op-code| Rs | Rt | Rd | SA |Funct-code| * +--------+--------+-------+-------+------+--------+
* 6 5 5 16
* +--------+--------+-------+------------------------+ I-type format
* |Op-code | Rs | Rt | 2’s complement constant| * +--------+--------+-------+------------------------+
* 6 26
* +--------+-----------------------------------------+ J-type format
* |Op-code| jump_target | * +--------+-----------------------------------------+
* bit 31 bit 0 * * @param r2 * @param tipo */ public void testar(Instruction r2, String tipo) { // System.out.println("TESTAR:" + r2); switch (tipo) { case "R": break; case "J": break; case "I": break; } } }