Пример #1
0
 public override void RemoveWatchpoint(uint addr)
 {
     if (DGenThread.GetDGen() != null)
     {
         DGenThread.GetDGen().ClearWatchpoint((int)addr);
     }
 }
Пример #2
0
 public override void RemoveAllBreakpoints()
 {
     if (DGenThread.GetDGen() != null)
     {
         DGenThread.GetDGen().ClearBreakpoints();
     }
 }
Пример #3
0
 public override void RemoveAllWatchPoints()
 {
     //TODO
     if (DGenThread.GetDGen() != null)
     {
         DGenThread.GetDGen().ClearBreakpoints();
     }
 }
Пример #4
0
 public override void ReadMemory(uint address, uint size, byte[] memory)
 {
     unsafe
     {
         fixed(byte *ptr = memory)
         {
             DGenThread.GetDGen().ReadMemory(address, size, ptr);
         }
     }
 }
Пример #5
0
 public override bool AddWatchpoint(uint fromAddr, uint toAddr)
 {
     if (DGenThread.GetDGen() != null)
     {
         return(DGenThread.GetDGen().AddWatchpoint((int)fromAddr, (int)toAddr) != 0);
     }
     else
     {
         return(false);
     }
 }
Пример #6
0
 public TargetDGen()
 {
     try
     {
         m_DGenThread = new DGenThread();
     }
     catch (Exception e)
     {
         throw (e);
     }
 }
Пример #7
0
 public override bool AddBreakpoint(uint addr)
 {
     if (DGenThread.GetDGen() != null)
     {
         return(DGenThread.GetDGen().AddBreakpoint((int)addr) != 0);
     }
     else
     {
         return(false);
     }
 }
Пример #8
0
        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);
            }
        }
Пример #9
0
        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);
        }
Пример #10
0
 public override bool IsHalted()
 {
     return((DGenThread.GetDGen() != null) ? DGenThread.GetDGen().IsDebugging() : false);
 }
Пример #11
0
 public override uint Step()
 {
     DGenThread.GetDGen().StepInto();
     return(GetPC());
 }
Пример #12
0
 public override void Resume()
 {
     DGenThread.GetDGen().Resume();
 }
Пример #13
0
 public override uint Break()
 {
     DGenThread.GetDGen().Break();
     return(GetPC());
 }
Пример #14
0
 public override void SoftReset()
 {
     DGenThread.GetDGen().SoftReset();
 }
Пример #15
0
 public override void SendKeyPress(int vkCode, int keyDown)
 {
     DGenThread.GetDGen().KeyPressed(vkCode, keyDown);
 }
Пример #16
0
 public override uint GetZ80Reg(Z80Regs reg)
 {
     return((uint)DGenThread.GetDGen().GetZ80Reg((DGenInterface.DGen.Z80Regs)reg));
 }
Пример #17
0
 public override void BringToFront()
 {
     DGenThread.GetDGen().BringToFront();
 }
Пример #18
0
 public override byte GetVDPRegisterValue(int index)
 {
     return(DGenThread.GetDGen().GetVDPRegisterValue(index));
 }
Пример #19
0
 public override uint GetSR()
 {
     return((uint)DGenThread.GetDGen().GetSR());
 }
Пример #20
0
 public override uint GetPC()
 {
     return((uint)DGenThread.GetDGen().GetCurrentPC());
 }
Пример #21
0
 public override uint ReadLong(uint address)
 {
     return(DGenThread.GetDGen().ReadLong(address));
 }
Пример #22
0
 public override ushort ReadWord(uint address)
 {
     return(DGenThread.GetDGen().ReadWord(address));
 }
Пример #23
0
 public override uint GetDReg(int index)
 {
     return((uint)DGenThread.GetDGen().GetDReg(index));
 }
Пример #24
0
 public override void SetInputMapping(SDLInputs input, int mapping)
 {
     DGenThread.GetDGen().SetInputMapping((DGenInterface.DGen.SDLInputs)input, mapping);
 }
Пример #25
0
 public override byte ReadZ80Byte(uint address)
 {
     return(DGenThread.GetDGen().ReadZ80Byte(address));
 }