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;
|
|
|
|
|
|
2014-12-07 18:53:56 +00:00
|
|
|
|
using BizHawk.Emulation.Common;
|
|
|
|
|
|
2014-05-26 18:23:58 +00:00
|
|
|
|
namespace BizHawk.Client.EmuHawk
|
|
|
|
|
{
|
|
|
|
|
public partial class AddBreakpointDialog : Form
|
|
|
|
|
{
|
|
|
|
|
public AddBreakpointDialog()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-07 18:53:56 +00:00
|
|
|
|
public MemoryCallbackType BreakType
|
2014-05-26 18:23:58 +00:00
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (ReadRadio.Checked)
|
|
|
|
|
{
|
2014-12-07 18:53:56 +00:00
|
|
|
|
return MemoryCallbackType.Read;
|
2014-05-26 18:23:58 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (WriteRadio.Checked)
|
|
|
|
|
{
|
2014-12-07 18:53:56 +00:00
|
|
|
|
return MemoryCallbackType.Write;
|
2014-05-26 18:23:58 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (ExecuteRadio.Checked)
|
|
|
|
|
{
|
2014-12-07 18:53:56 +00:00
|
|
|
|
return MemoryCallbackType.Execute;
|
2014-05-26 18:23:58 +00:00
|
|
|
|
}
|
|
|
|
|
|
2014-12-07 18:53:56 +00:00
|
|
|
|
return MemoryCallbackType.Read;
|
2014-05-26 18:23:58 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public uint Address
|
|
|
|
|
{
|
|
|
|
|
get { return (uint)AddressBox.ToRawInt().Value; }
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-13 16:59:01 +00:00
|
|
|
|
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)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|