예제 #1
0
        protected SimInstruction GetInstruction(ulong address)
        {
            SimInstruction instruction = null;

            InstructionCache.TryGetValue(address, out instruction);

            return(instruction);
        }
예제 #2
0
 protected virtual void ExecuteOpcode(SimInstruction instruction)
 {
     instruction.Opcode.Execute(this, instruction);
 }
예제 #3
0
 public void AddInstruction(ulong address, SimInstruction instruction)
 {
     //Debug.Assert(!InstructionCache.ContainsKey(address), instruction.ToString());
     InstructionCache.Add(address, instruction);
 }
예제 #4
0
 protected virtual void ExecuteOpcode(SimInstruction instruction)
 {
     instruction.Opcode.Execute(this, instruction);
 }
예제 #5
0
 public void AddInstruction(ulong address, SimInstruction instruction)
 {
     //Debug.Assert(!InstructionCache.ContainsKey(address), instruction.ToString());
     InstructionCache.Add(address, instruction);
 }
예제 #6
0
 public void Add(ulong address, SimInstruction instruction)
 {
     CPU.AddInstruction(address, instruction);
 }
예제 #7
0
 public void Add(SimInstruction instruction)
 {
     CPU.AddInstruction(Address, instruction);
     Address = Address + instruction.OpcodeSize;
 }
예제 #8
0
파일: SimCPU.cs 프로젝트: tea/MOSA-Project
 public void AddInstruction(ulong address, SimInstruction instruction)
 {
     InstructionCache.Add(address, instruction);
 }