예제 #1
0
        private void OpCall(MipsOp[] callTable, Int32 index, MipsInstruction inst)
        {
            /* NOP */
            if (inst.Instruction == 0)
            {
                return;
            }

            MipsOp call = callTable[index];

            if (call != null)
            {
                call(inst);
            }
            else
            {
                throw new InvalidOperationException("Unsupport Instruction: " + inst.ToString());
            }
        }
예제 #2
0
        private void OpCall(MipsOp[] callTable, Int32 index, MipsInstruction inst)
        {
            /* NOP */
            if (inst.Instruction == 0)
                return;

            MipsOp call = callTable[index];

            if (call != null)
            {
                call(inst);
            }
            else
            {
                throw new InvalidOperationException("Unsupport Instruction: " + inst.ToString());
            }
        }
예제 #3
0
 protected void TraceOp(Int64 pc, MipsInstruction inst)
 {
     if (logger.IsDebugEnabled)
         logger.Debug("{0:X8} {1:X4} {2:X4} {3}", pc, inst.Instruction >> 16, inst.Instruction & 0xFFFF, inst.ToString());
 }
예제 #4
0
 protected void TraceOp(Int64 pc, MipsInstruction inst)
 {
     if (logger.IsDebugEnabled)
     {
         logger.Debug("{0:X8} {1:X4} {2:X4} {3}", pc, inst.Instruction >> 16, inst.Instruction & 0xFFFF, inst.ToString());
     }
 }