cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

emu__debug_8h_source.html (14617B)


      1<!-- HTML header for doxygen 1.8.14-->
      2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      3<html xmlns="http://www.w3.org/1999/xhtml">
      4<head>
      5<meta http-equiv="cache-control" content="max-age=86400"/>
      6<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
      7<meta http-equiv="X-UA-Compatible" content="IE=9"/>
      8<meta name="generator" content="Doxygen 1.8.20"/>
      9<meta name="viewport" content="width=device-width, initial-scale=1"/>
     10<title>GBDK 2020 Docs: gb/emu_debug.h Source File</title>
     11<link href="tabs.css" rel="stylesheet" type="text/css"/>
     12<script type="text/javascript" src="jquery.js"></script>
     13<script type="text/javascript" src="dynsections.js"></script>
     14<link href="navtree.css" rel="stylesheet" type="text/css"/>
     15<script type="text/javascript" src="resize.js"></script>
     16<script type="text/javascript" src="navtreedata.js"></script>
     17<script type="text/javascript" src="navtree.js"></script>
     18<link href="search/search.css" rel="stylesheet" type="text/css"/>
     19<script type="text/javascript" src="search/searchdata.js"></script>
     20<script type="text/javascript" src="search/search.js"></script>
     21<link href="doxygen.css" rel="stylesheet" type="text/css" />
     22<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
     23</head>
     24<body>
     25<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
     26<div id="titlearea">
     27<table cellspacing="0" cellpadding="0">
     28 <tbody>
     29 <tr style="height: 56px;">
     30  <td id="projectalign" style="padding-left: 0.5em;">
     31   <div id="projectname">GBDK 2020 Docs
     32   &#160;<span id="projectnumber">4.0.6</span>
     33   </div>
     34   <div id="projectbrief">API Documentation for GBDK 2020</div>
     35  </td>
     36 </tr>
     37 </tbody>
     38</table>
     39</div>
     40<!-- end header part -->
     41<!-- Generated by Doxygen 1.8.20 -->
     42<script type="text/javascript">
     43/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     44var searchBox = new SearchBox("searchBox", "search",false,'Search');
     45/* @license-end */
     46</script>
     47<script type="text/javascript" src="menudata.js"></script>
     48<script type="text/javascript" src="menu.js"></script>
     49<script type="text/javascript">
     50/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     51$(function() {
     52  initMenu('',true,false,'search.php','Search');
     53  $(document).ready(function() { init_search(); });
     54});
     55/* @license-end */</script>
     56<div id="main-nav"></div>
     57</div><!-- top -->
     58<div id="side-nav" class="ui-resizable side-nav-resizable">
     59  <div id="nav-tree">
     60    <div id="nav-tree-contents">
     61      <div id="nav-sync" class="sync"></div>
     62    </div>
     63  </div>
     64  <div id="splitbar" style="-moz-user-select:none;" 
     65       class="ui-resizable-handle">
     66  </div>
     67</div>
     68<script type="text/javascript">
     69/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     70$(document).ready(function(){initNavTree('emu__debug_8h_source.html',''); initResizable(); });
     71/* @license-end */
     72</script>
     73<div id="doc-content">
     74<!-- window showing the filter options -->
     75<div id="MSearchSelectWindow"
     76     onmouseover="return searchBox.OnSearchSelectShow()"
     77     onmouseout="return searchBox.OnSearchSelectHide()"
     78     onkeydown="return searchBox.OnSearchSelectKey(event)">
     79</div>
     80
     81<!-- iframe showing the search results (closed by default) -->
     82<div id="MSearchResultsWindow">
     83<iframe src="javascript:void(0)" frameborder="0" 
     84        name="MSearchResults" id="MSearchResults">
     85</iframe>
     86</div>
     87
     88<div class="header">
     89  <div class="headertitle">
     90<div class="title">emu_debug.h</div>  </div>
     91</div><!--header-->
     92<div class="contents">
     93<a href="emu__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>&#160; </div>
     94<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#ifndef __EMU_DEBUG_INCLUDE</span></div>
     95<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#define __EMU_DEBUG_INCLUDE</span></div>
     96<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
     97<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;types.h&gt;</span></div>
     98<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
     99<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#a5624be3849bf5308c6cc05bc4a624557">   40</a></span>&#160;<span class="preprocessor">#define EMU_MESSAGE(message_text) EMU_MESSAGE1(EMU_MACRONAME(__LINE__), message_text)</span></div>
    100<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#aabd48c83af8f69ed624bb8a83347fa39">   41</a></span>&#160;<span class="preprocessor">#define BGB_MESSAGE(message_text) EMU_MESSAGE(message_text)</span></div>
    101<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
    102<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#define EMU_MACRONAME(A) EMU_MACRONAME1(A)</span></div>
    103<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#define EMU_MACRONAME1(A) EMULOG##A</span></div>
    104<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
    105<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#define EMU_MESSAGE1(name, message_text) \</span></div>
    106<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">__asm \</span></div>
    107<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">.MACRO name msg_t, ?llbl\</span></div>
    108<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">  ld d, d \</span></div>
    109<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">  jr llbl \</span></div>
    110<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">  .dw 0x6464 \</span></div>
    111<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">  .dw 0x0000 \</span></div>
    112<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor">  .ascii msg_t \</span></div>
    113<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">llbl: \</span></div>
    114<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor">.ENDM \</span></div>
    115<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">name ^/message_text/ \</span></div>
    116<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">__endasm</span></div>
    117<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
    118<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">#define EMU_MESSAGE_SUFFIX(message_text, message_suffix) EMU_MESSAGE3(EMU_MACRONAME(__LINE__), message_text, message_suffix)</span></div>
    119<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="preprocessor">#define EMU_MESSAGE3(name, message_text, message_suffix) \</span></div>
    120<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor">__asm \</span></div>
    121<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">.MACRO name msg_t, msg_s, ?llbl\</span></div>
    122<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">  ld d, d \</span></div>
    123<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">  jr llbl \</span></div>
    124<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">  .dw 0x6464 \</span></div>
    125<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">  .dw 0x0000 \</span></div>
    126<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor">  .ascii msg_t \</span></div>
    127<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">  .ascii msg_s \</span></div>
    128<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">llbl: \</span></div>
    129<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">.ENDM \</span></div>
    130<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">name ^/message_text/, ^/message_suffix/ \</span></div>
    131<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor">__endasm</span></div>
    132<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
    133<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#a5359c3e6ddab89f41f1de770cc3640d4">   86</a></span>&#160;<span class="preprocessor">#define EMU_PROFILE_BEGIN(MSG) EMU_MESSAGE_SUFFIX(MSG, &quot;%ZEROCLKS%&quot;);</span></div>
    134<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#ab5b05deda52856c84f274fb28578b6ee">   87</a></span>&#160;<span class="preprocessor">#define BGB_PROFILE_BEGIN(MSG) EMU_PROFILE_BEGIN(MSG)</span></div>
    135<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
    136<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#acce78126775a7ca3c862459e28203aba">  113</a></span>&#160;<span class="preprocessor">#define EMU_PROFILE_END(MSG) EMU_MESSAGE_SUFFIX(MSG,&quot;%-8+LASTCLKS%&quot;);</span></div>
    137<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#ab43f94064dc523e99c4aefb440e2c3ed">  114</a></span>&#160;<span class="preprocessor">#define BGB_PROFILE_END(MSG) EMU_PROFILE_END(MSG)</span></div>
    138<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
    139<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#ad1ca656789d7d285b352afeaa4cc56bd">  116</a></span>&#160;<span class="preprocessor">#define EMU_TEXT(MSG) EMU_MESSAGE(MSG)</span></div>
    140<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#a6afa665bd7d093e7ca2d310cc92b08a9">  117</a></span>&#160;<span class="preprocessor">#define BGB_TEXT(MSG) EMU_TEXT(MSG)</span></div>
    141<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160; </div>
    142<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#a1e2adc0111203ce0f551bcb1d99395df">  127</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="emu__debug_8h.html#a1e2adc0111203ce0f551bcb1d99395df">EMU_profiler_message</a>();</div>
    143<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#a47c147586d9a21282ce72a83947508e9">  128</a></span>&#160;<span class="preprocessor">#define BGB_profiler_message() EMU_profiler_message()</span></div>
    144<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160; </div>
    145<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#a586ce1ddfba9c35726887ca31f933963">  151</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="emu__debug_8h.html#a586ce1ddfba9c35726887ca31f933963">EMU_printf</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    146<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#a892ddea0cd396141c1ae05e384303cbf">  152</a></span>&#160;<span class="preprocessor">#define BGB_printf(...) EMU_printf(__VA_ARGS__)</span></div>
    147<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; </div>
    148<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="keyword">static</span> <span class="keywordtype">void</span> * __EMU_PROFILER_INIT = &amp;<a class="code" href="emu__debug_8h.html#a1e2adc0111203ce0f551bcb1d99395df">EMU_profiler_message</a>;</div>
    149<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160; </div>
    150<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#a9e856b4691d63bb41c5148b9097bd2bb">  158</a></span>&#160;<span class="preprocessor">#define EMU_BREAKPOINT __asm__(&quot;ld b, b&quot;);</span></div>
    151<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="emu__debug_8h.html#a95c9ae3faadfe6f93a3cac87085b3481">  159</a></span>&#160;<span class="preprocessor">#define BGB_BREAKPOINT EMU_BREAKPOINT</span></div>
    152<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160; </div>
    153<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="preprocessor">#endif</span></div>
    154</div><!-- fragment --></div><!-- contents -->
    155</div><!-- doc-content -->
    156<div class="ttc" id="aemu__debug_8h_html_a586ce1ddfba9c35726887ca31f933963"><div class="ttname"><a href="emu__debug_8h.html#a586ce1ddfba9c35726887ca31f933963">EMU_printf</a></div><div class="ttdeci">void EMU_printf(const char *format,...) OLDCALL</div></div>
    157<div class="ttc" id="aemu__debug_8h_html_a1e2adc0111203ce0f551bcb1d99395df"><div class="ttname"><a href="emu__debug_8h.html#a1e2adc0111203ce0f551bcb1d99395df">EMU_profiler_message</a></div><div class="ttdeci">void EMU_profiler_message()</div></div>
    158<div class="ttc" id="aasm_2types_8h_html_a0971918860055db2e50dacea4da8f3bc"><div class="ttname"><a href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></div><div class="ttdeci">#define OLDCALL</div><div class="ttdef"><b>Definition:</b> types.h:19</div></div>
    159<!-- HTML footer for doxygen 1.8.14-->
    160<!-- start footer part -->
    161<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
    162</div>
    163</body>
    164</html>