示例#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());
     }
 }