public override void RemoveWatchpoint(uint addr) { if (DGenThread.GetDGen() != null) { DGenThread.GetDGen().ClearWatchpoint((int)addr); } }
public override void RemoveAllBreakpoints() { if (DGenThread.GetDGen() != null) { DGenThread.GetDGen().ClearBreakpoints(); } }
public override void RemoveAllWatchPoints() { //TODO if (DGenThread.GetDGen() != null) { DGenThread.GetDGen().ClearBreakpoints(); } }
public override void ReadMemory(uint address, uint size, byte[] memory) { unsafe { fixed(byte *ptr = memory) { DGenThread.GetDGen().ReadMemory(address, size, ptr); } } }
public override bool AddWatchpoint(uint fromAddr, uint toAddr) { if (DGenThread.GetDGen() != null) { return(DGenThread.GetDGen().AddWatchpoint((int)fromAddr, (int)toAddr) != 0); } else { return(false); } }
public TargetDGen() { try { m_DGenThread = new DGenThread(); } catch (Exception e) { throw (e); } }
public override bool AddBreakpoint(uint addr) { if (DGenThread.GetDGen() != null) { return(DGenThread.GetDGen().AddBreakpoint((int)addr) != 0); } else { return(false); } }
public void Init(int windowWidth, int windowHeight, IntPtr parent, bool pal, char region) { m_Instance = this; m_DGen = new DGen(); m_DGen.Init(windowWidth, windowHeight, parent, pal, (sbyte)region); if (Settings.Default.DGenWindowLocation != null) { m_DGen.SetWindowPosition(Settings.Default.DGenWindowLocation.X, Settings.Default.DGenWindowLocation.Y); } }
public override uint Disassemble(uint address, ref string text) { uint size = 0; unsafe { fixed(char *cstr = disassembleString) { size = DGenThread.GetDGen().Disassemble(address, (sbyte *)cstr); text = System.Runtime.InteropServices.Marshal.PtrToStringAnsi((System.IntPtr)cstr); } } return(size); }
public override bool IsHalted() { return((DGenThread.GetDGen() != null) ? DGenThread.GetDGen().IsDebugging() : false); }
public override uint Step() { DGenThread.GetDGen().StepInto(); return(GetPC()); }
public override void Resume() { DGenThread.GetDGen().Resume(); }
public override uint Break() { DGenThread.GetDGen().Break(); return(GetPC()); }
public override void SoftReset() { DGenThread.GetDGen().SoftReset(); }
public override void SendKeyPress(int vkCode, int keyDown) { DGenThread.GetDGen().KeyPressed(vkCode, keyDown); }
public override uint GetZ80Reg(Z80Regs reg) { return((uint)DGenThread.GetDGen().GetZ80Reg((DGenInterface.DGen.Z80Regs)reg)); }
public override void BringToFront() { DGenThread.GetDGen().BringToFront(); }
public override byte GetVDPRegisterValue(int index) { return(DGenThread.GetDGen().GetVDPRegisterValue(index)); }
public override uint GetSR() { return((uint)DGenThread.GetDGen().GetSR()); }
public override uint GetPC() { return((uint)DGenThread.GetDGen().GetCurrentPC()); }
public override uint ReadLong(uint address) { return(DGenThread.GetDGen().ReadLong(address)); }
public override ushort ReadWord(uint address) { return(DGenThread.GetDGen().ReadWord(address)); }
public override uint GetDReg(int index) { return((uint)DGenThread.GetDGen().GetDReg(index)); }
public override void SetInputMapping(SDLInputs input, int mapping) { DGenThread.GetDGen().SetInputMapping((DGenInterface.DGen.SDLInputs)input, mapping); }
public override byte ReadZ80Byte(uint address) { return(DGenThread.GetDGen().ReadZ80Byte(address)); }