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(); }
public ChipMemory(Chip8XMachine machine) : base((VirtualMachine)machine) { }
public ChipResources(Chip8XMachine machine) { m_Machine = machine; }
public CodeEngine(Chip8XMachine currentMachine) { m_CurrentMachine = currentMachine; }