Skip to content

Commit

Permalink
Remove useless test main() from ALU_IType
Browse files Browse the repository at this point in the history
  • Loading branch information
lupino3 committed Feb 22, 2015
1 parent 9849cd8 commit 9bdc5e4
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/org/edumips64/core/is/ALU_IType.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,30 +94,4 @@ public void pack() throws IrregularStringOfBitsException {
repr.setBits(Converter.intToBin(RT_FIELD_LENGTH, params.get(RT_FIELD)), RT_FIELD_INIT);
repr.setBits(Converter.intToBin(IMM_FIELD_LENGTH, params.get(IMM_FIELD)), IMM_FIELD_INIT);
}
public static void main(String[] args) {
//DEBUGGING DADDI DADDUI ANDI
//ANDI ins =new ANDI();
DADDI ins = new DADDI();
//DADDUI ins=new DADDUI();
//ORI ins=new ORI();
//LUI ins=new LUI();
//SLTI ins=new SLTI();
//SLTIU ins=new SLTIU();
//XORI ins=new XORI();
List<Integer>params = new Vector<Integer>();
int rt = 2;
int rs = 3;
int imm = -223;
params.add(rt); //destinazione R2
params.add(rs); //sorgente1 R3
params.add(imm); //immediato R4

try {
cpu.getRegister(rs).writeDoubleWord(337236854775807L); //rs register
ins.setParams(params);
} catch (IrregularWriteOperationException e) {
e.printStackTrace();
}
}

}

0 comments on commit 9bdc5e4

Please sign in to comment.