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