BizHawk/BizHawk.Client.EmuHawk/tools/Debugger/AddBreakpointDialog.cs

74 lines
1.2 KiB
C#
Raw Normal View History

2014-05-26 18:23:58 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BizHawk.Emulation.Common;
2014-05-26 18:23:58 +00:00
namespace BizHawk.Client.EmuHawk
{
public partial class AddBreakpointDialog : Form
{
public AddBreakpointDialog()
{
InitializeComponent();
}
public MemoryCallbackType BreakType
2014-05-26 18:23:58 +00:00
{
get
{
if (ReadRadio.Checked)
{
return MemoryCallbackType.Read;
2014-05-26 18:23:58 +00:00
}
if (WriteRadio.Checked)
{
return MemoryCallbackType.Write;
2014-05-26 18:23:58 +00:00
}
if (ExecuteRadio.Checked)
{
return MemoryCallbackType.Execute;
2014-05-26 18:23:58 +00:00
}
return MemoryCallbackType.Read;
2014-05-26 18:23:58 +00:00
}
}
public uint Address
{
get { return (uint)AddressBox.ToRawInt().Value; }
}
public int MaxAddressSize
{
get
{
return AddressBox.MaxLength;
}
set
{
AddressBox.MaxLength = value;
}
}
2014-05-26 18:23:58 +00:00
private void AddButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Close();
}
private void AddBreakpointDialog_Load(object sender, EventArgs e)
{
}
}
}