コード例 #1
0
ファイル: DDIVU.java プロジェクト: lupino3/edumips64
 public void doWB() throws IrregularStringOfBitsException {
   // passing results from temporary registers to destination registers and unlocking them
   Register lo = cpu.getLO();
   Register hi = cpu.getHI();
   lo.setBits(TR[LO_REG].getBinString(), 0);
   hi.setBits(TR[HI_REG].getBinString(), 0);
   lo.decrWriteSemaphore();
   hi.decrWriteSemaphore();
 }