Ejemplo n.º 1
0
 public void Initialize(Chip8XMachine machine)
 {
     m_Memory        = new ChipMemory(m_CurrentMachine);
     m_1802Regs[0x6] = (ushort)Memory.ChipCorePointer;
     m_1802Regs[0x7] = (ushort)Memory.ChipCorePointer;
     m_1802Regs[0xF] = (ushort)Memory.VideoPointer;
     m_Memory.Reset();
     m_TimerWait = new EventWaitHandle(false, EventResetMode.AutoReset);
     m_Paused    = false;
     m_Stop      = false;
     m_IReg      = 0;
     Array.Clear(this.m_VRegs, 0, this.m_VRegs.Length);
     Array.Clear(this.m_RPLFlags, 0, this.m_RPLFlags.Length);
     m_ST      = 0;
     m_LastKey = 17;
     m_DT      = 0;
     m_Rand    = new Random(System.Environment.TickCount);
     m_Stack   = new Stack <ushort>(StackMaxSize);
     OnInit();
 }
Ejemplo n.º 2
0
 public ChipMemory(Chip8XMachine machine) : base((VirtualMachine)machine)
 {
 }
Ejemplo n.º 3
0
 public ChipResources(Chip8XMachine machine)
 {
     m_Machine = machine;
 }
Ejemplo n.º 4
0
 public CodeEngine(Chip8XMachine currentMachine)
 {
     m_CurrentMachine = currentMachine;
 }