-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug_8h_source.html
94 lines (92 loc) · 17.7 KB
/
debug_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>craziNES: src/debug.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">craziNES
 <span id="projectnumber">0.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">debug.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="debug_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef _CRAZINES_DEBUG_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define _CRAZINES_DEBUG_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <wx/wx.h></span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="keywordtype">void</span> <a class="code" href="debug_8h.html#a1ff20a5668299b928ce2e6370a4d6285">open_memory</a>();</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="keywordtype">void</span> <a class="code" href="debug_8h.html#accff11565f9beef617e6c8933194ac2e">open_registers</a>();</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="keywordtype">void</span> <a class="code" href="debug_8h.html#afdd7fb2369574ac489b2ccff3362ec29">open_log</a>();</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="class_log_window.html"> 10</a></span> <span class="keyword">class </span><a class="code" href="class_log_window.html">LogWindow</a>: <span class="keyword">public</span> wxFrame</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> {</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  <a class="code" href="class_log_window.html#a9905205c3d57674ff4c8497e8b9098d5">LogWindow</a>(wxWindow *parent, <span class="keyword">const</span> wxString &title, <span class="keyword">const</span> wxPoint &pos, <span class="keyword">const</span> wxSize &size);</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <a class="code" href="class_log_window.html#a8c96adb435e3e88f42396876f6213527">~LogWindow</a>();</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_log_window.html#ae22cace953b92d849025f89aaff1c61c"> 15</a></span>  wxListBox *<a class="code" href="class_log_window.html#ae22cace953b92d849025f89aaff1c61c">log_listbox</a> = NULL;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> };</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="class_registers_window.html"> 18</a></span> <span class="keyword">class </span><a class="code" href="class_registers_window.html">RegistersWindow</a>: <span class="keyword">public</span> wxFrame</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <a class="code" href="class_registers_window.html">RegistersWindow</a>(wxWindow *parent, <span class="keyword">const</span> wxString &title, <span class="keyword">const</span> wxPoint &pos, <span class="keyword">const</span> wxSize &size);</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  ~<a class="code" href="class_registers_window.html">RegistersWindow</a>();</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="class_registers_window.html#a5d8baf6bde30c9782d102ed64816a3b3"> 23</a></span>  wxListBox *registers_listbox = NULL;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> };</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_memory_window.html"> 26</a></span> <span class="keyword">class </span><a class="code" href="class_memory_window.html">MemoryWindow</a>: <span class="keyword">public</span> wxFrame</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="class_memory_window.html#accbcdadaf0d0679ac8fb91beb8e0a241"> 29</a></span>  uint16_t start_addr = 0, end_addr = 0;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <a class="code" href="class_memory_window.html">MemoryWindow</a>(wxWindow *parent, <span class="keyword">const</span> wxString &title, <span class="keyword">const</span> wxPoint &pos, <span class="keyword">const</span> wxSize &size);</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  ~<a class="code" href="class_memory_window.html">MemoryWindow</a>();</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_memory_window.html#afc62fd0fc8bb5435b1c76352fff6411c"> 33</a></span>  wxListBox *memory_listbox = NULL;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">void</span> view(uint16_t start_addr, uint16_t end_addr);</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_memory_window.html#ab7c38278f788112b59890d767a9cfa82"> 35</a></span>  wxTextCtrl *debugger_pc = NULL;</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_memory_window.html#a9d8a603050d985c3b7d3ecb3c54f85e8"> 36</a></span>  wxButton *cpu_step = NULL;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordtype">void</span> OnCPUStep(wxCommandEvent &event);</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_memory_window.html#a5402e81d70a23d1bce767eb30f24027b"> 38</a></span>  wxTextCtrl *cpu_steps_count = NULL;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="class_memory_window.html#af768acd6b4420a77a6bf4f4798c36d80"> 39</a></span>  wxButton *cpu_steps = NULL;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordtype">void</span> OnCPUSteps(wxCommandEvent &event);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  wxDECLARE_EVENT_TABLE();</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> };</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">enum</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> {</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="debug_8h.html#adf764cbdea00d65edcd07bb9953ad2b7af12be5a8e07b1d1f750c6716d2ee2c4f"> 46</a></span>  <a class="code" href="debug_8h.html#adf764cbdea00d65edcd07bb9953ad2b7af12be5a8e07b1d1f750c6716d2ee2c4f">BUTTON_cpu_step</a> = 20,</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="debug_8h.html#adf764cbdea00d65edcd07bb9953ad2b7a8ccf494208db44e5ea74be49d579841a"> 47</a></span>  <a class="code" href="debug_8h.html#adf764cbdea00d65edcd07bb9953ad2b7a8ccf494208db44e5ea74be49d579841a">BUTTON_cpu_steps</a> = 21</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> };</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="debug_8h.html#a4807be450e4c28955ba3434eeca35e1d"> 50</a></span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="debug_8h.html#a4807be450e4c28955ba3434eeca35e1d">ID_MEMORY_LISTBOX</a> = 100;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="debug_8h.html#a1f3c967377f2a3a9214b2474a1b0b41b"> 51</a></span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="debug_8h.html#a1f3c967377f2a3a9214b2474a1b0b41b">ID_REGISTERS_LISTBOX</a> = 101;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="debug_8h.html#a648ea8ec50c2bf49f313c249f9734662"> 52</a></span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="debug_8h.html#a648ea8ec50c2bf49f313c249f9734662">ID_CPU_STEP_COUNT</a> = 102;</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="debug_8h.html#af9fe8174820895f5c9ce66448f8b90ee"> 53</a></span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="debug_8h.html#af9fe8174820895f5c9ce66448f8b90ee">ID_DEBUGGER_PC</a> = 103;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="debug_8h.html#add19ab49c40d56ff43291ff9ec21640c"> 54</a></span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="debug_8h.html#add19ab49c40d56ff43291ff9ec21640c">ID_LOG_LISTBOX</a> = 104;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="debug_8h_html_a4807be450e4c28955ba3434eeca35e1d"><div class="ttname"><a href="debug_8h.html#a4807be450e4c28955ba3434eeca35e1d">ID_MEMORY_LISTBOX</a></div><div class="ttdeci">const int ID_MEMORY_LISTBOX</div><div class="ttdef"><b>Definition:</b> <a href="debug_8h_source.html#l00050">debug.h:50</a></div></div>
<div class="ttc" id="class_log_window_html"><div class="ttname"><a href="class_log_window.html">LogWindow</a></div><div class="ttdef"><b>Definition:</b> <a href="debug_8h_source.html#l00010">debug.h:10</a></div></div>
<div class="ttc" id="class_log_window_html_ae22cace953b92d849025f89aaff1c61c"><div class="ttname"><a href="class_log_window.html#ae22cace953b92d849025f89aaff1c61c">LogWindow::log_listbox</a></div><div class="ttdeci">wxListBox * log_listbox</div><div class="ttdef"><b>Definition:</b> <a href="debug_8h_source.html#l00015">debug.h:15</a></div></div>
<div class="ttc" id="class_registers_window_html"><div class="ttname"><a href="class_registers_window.html">RegistersWindow</a></div><div class="ttdef"><b>Definition:</b> <a href="debug_8h_source.html#l00018">debug.h:18</a></div></div>
<div class="ttc" id="debug_8h_html_add19ab49c40d56ff43291ff9ec21640c"><div class="ttname"><a href="debug_8h.html#add19ab49c40d56ff43291ff9ec21640c">ID_LOG_LISTBOX</a></div><div class="ttdeci">const int ID_LOG_LISTBOX</div><div class="ttdef"><b>Definition:</b> <a href="debug_8h_source.html#l00054">debug.h:54</a></div></div>
<div class="ttc" id="debug_8h_html_a648ea8ec50c2bf49f313c249f9734662"><div class="ttname"><a href="debug_8h.html#a648ea8ec50c2bf49f313c249f9734662">ID_CPU_STEP_COUNT</a></div><div class="ttdeci">const int ID_CPU_STEP_COUNT</div><div class="ttdef"><b>Definition:</b> <a href="debug_8h_source.html#l00052">debug.h:52</a></div></div>
<div class="ttc" id="debug_8h_html_adf764cbdea00d65edcd07bb9953ad2b7a8ccf494208db44e5ea74be49d579841a"><div class="ttname"><a href="debug_8h.html#adf764cbdea00d65edcd07bb9953ad2b7a8ccf494208db44e5ea74be49d579841a">BUTTON_cpu_steps</a></div><div class="ttdef"><b>Definition:</b> <a href="debug_8h_source.html#l00047">debug.h:47</a></div></div>
<div class="ttc" id="debug_8h_html_a1f3c967377f2a3a9214b2474a1b0b41b"><div class="ttname"><a href="debug_8h.html#a1f3c967377f2a3a9214b2474a1b0b41b">ID_REGISTERS_LISTBOX</a></div><div class="ttdeci">const int ID_REGISTERS_LISTBOX</div><div class="ttdef"><b>Definition:</b> <a href="debug_8h_source.html#l00051">debug.h:51</a></div></div>
<div class="ttc" id="debug_8h_html_a1ff20a5668299b928ce2e6370a4d6285"><div class="ttname"><a href="debug_8h.html#a1ff20a5668299b928ce2e6370a4d6285">open_memory</a></div><div class="ttdeci">void open_memory()</div><div class="ttdef"><b>Definition:</b> <a href="debug_8cpp_source.html#l00013">debug.cpp:13</a></div></div>
<div class="ttc" id="class_log_window_html_a8c96adb435e3e88f42396876f6213527"><div class="ttname"><a href="class_log_window.html#a8c96adb435e3e88f42396876f6213527">LogWindow::~LogWindow</a></div><div class="ttdeci">~LogWindow()</div><div class="ttdef"><b>Definition:</b> <a href="debug_8cpp_source.html#l00193">debug.cpp:193</a></div></div>
<div class="ttc" id="debug_8h_html_accff11565f9beef617e6c8933194ac2e"><div class="ttname"><a href="debug_8h.html#accff11565f9beef617e6c8933194ac2e">open_registers</a></div><div class="ttdeci">void open_registers()</div><div class="ttdef"><b>Definition:</b> <a href="debug_8cpp_source.html#l00104">debug.cpp:104</a></div></div>
<div class="ttc" id="class_log_window_html_a9905205c3d57674ff4c8497e8b9098d5"><div class="ttname"><a href="class_log_window.html#a9905205c3d57674ff4c8497e8b9098d5">LogWindow::LogWindow</a></div><div class="ttdeci">LogWindow(wxWindow *parent, const wxString &title, const wxPoint &pos, const wxSize &size)</div><div class="ttdef"><b>Definition:</b> <a href="debug_8cpp_source.html#l00188">debug.cpp:188</a></div></div>
<div class="ttc" id="debug_8h_html_adf764cbdea00d65edcd07bb9953ad2b7af12be5a8e07b1d1f750c6716d2ee2c4f"><div class="ttname"><a href="debug_8h.html#adf764cbdea00d65edcd07bb9953ad2b7af12be5a8e07b1d1f750c6716d2ee2c4f">BUTTON_cpu_step</a></div><div class="ttdef"><b>Definition:</b> <a href="debug_8h_source.html#l00046">debug.h:46</a></div></div>
<div class="ttc" id="debug_8h_html_afdd7fb2369574ac489b2ccff3362ec29"><div class="ttname"><a href="debug_8h.html#afdd7fb2369574ac489b2ccff3362ec29">open_log</a></div><div class="ttdeci">void open_log()</div><div class="ttdef"><b>Definition:</b> <a href="debug_8cpp_source.html#l00087">debug.cpp:87</a></div></div>
<div class="ttc" id="class_memory_window_html"><div class="ttname"><a href="class_memory_window.html">MemoryWindow</a></div><div class="ttdef"><b>Definition:</b> <a href="debug_8h_source.html#l00026">debug.h:26</a></div></div>
<div class="ttc" id="debug_8h_html_af9fe8174820895f5c9ce66448f8b90ee"><div class="ttname"><a href="debug_8h.html#af9fe8174820895f5c9ce66448f8b90ee">ID_DEBUGGER_PC</a></div><div class="ttdeci">const int ID_DEBUGGER_PC</div><div class="ttdef"><b>Definition:</b> <a href="debug_8h_source.html#l00053">debug.h:53</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>