cscg22-gearboy

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

gb_8h_source.html (169781B)


      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/gb.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('gb_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">gb.h</div>  </div>
     91</div><!--header-->
     92<div class="contents">
     93<a href="gb_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="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#ifndef _GB_H</span></div>
     95<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#define _GB_H</span></div>
     96<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
     97<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;types.h&gt;</span></div>
     98<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="stdint_8h.html">stdint.h</a>&gt;</span></div>
     99<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="version_8h.html">gbdk/version.h</a>&gt;</span></div>
    100<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="gb_2hardware_8h.html">gb/hardware.h</a>&gt;</span></div>
    101<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
    102<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="gb_8h.html#a385397587c93683e8e11afb712e2960b">   12</a></span>&#160;<span class="preprocessor">#define NINTENDO</span></div>
    103<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#ifdef SEGA</span></div>
    104<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#undef SEGA</span></div>
    105<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#endif</span></div>
    106<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#if defined(__TARGET_ap)</span></div>
    107<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define ANALOGUEPOCKET</span></div>
    108<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#elif defined(__TARGET_gb)</span></div>
    109<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="gb_8h.html#af10046e88cba47031142a763a94210df">   19</a></span>&#160;<span class="preprocessor">#define GAMEBOY</span></div>
    110<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#elif defined(__TARGET_duck)</span></div>
    111<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#define MEGADUCK</span></div>
    112<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#endif</span></div>
    113<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
    114<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
    115<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="gb_8h.html#a05ca817ab32f6da612c3ae26db5abf02">   38</a></span>&#160;<span class="preprocessor">#define J_UP         0x04U</span></div>
    116<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="gb_8h.html#ae032c5c544196e37ec0432f6cfad7904">   39</a></span>&#160;<span class="preprocessor">#define J_DOWN       0x08U</span></div>
    117<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="gb_8h.html#ac70894fecac30c1ca9917f07373cf81c">   40</a></span>&#160;<span class="preprocessor">#define J_LEFT       0x02U</span></div>
    118<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="gb_8h.html#a3bad91d11ae09ffcbb3cb0a81873d325">   41</a></span>&#160;<span class="preprocessor">#define J_RIGHT      0x01U</span></div>
    119<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="gb_8h.html#a31af766e3b598eb7a6b63f55a4988e7a">   42</a></span>&#160;<span class="preprocessor">#define J_A          0x10U</span></div>
    120<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="gb_8h.html#ae47e59a309120f9420993f26816b5e6d">   43</a></span>&#160;<span class="preprocessor">#define J_B          0x20U</span></div>
    121<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="gb_8h.html#ab416a9d96d1582490828f4bac78a8b5b">   44</a></span>&#160;<span class="preprocessor">#define J_SELECT     0x40U</span></div>
    122<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="gb_8h.html#ab769c6e20778298be8bc3321476ceb53">   45</a></span>&#160;<span class="preprocessor">#define J_START      0x80U</span></div>
    123<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
    124<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="gb_8h.html#acc9798fc62b5d626c91c8b0f20b522ff">   51</a></span>&#160;<span class="preprocessor">#define M_DRAWING    0x01U</span></div>
    125<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="gb_8h.html#af0e30d6af308ffe5a025fbe85da40f6f">   52</a></span>&#160;<span class="preprocessor">#define M_TEXT_OUT   0x02U</span></div>
    126<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="gb_8h.html#a908826e7180f94a5988ceb8633313a2e">   53</a></span>&#160;<span class="preprocessor">#define M_TEXT_INOUT 0x03U</span></div>
    127<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
    128<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="gb_8h.html#a04382de20738146fe873ddfb0585052b">   59</a></span>&#160;<span class="preprocessor">#define M_NO_SCROLL  0x04U</span></div>
    129<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160; </div>
    130<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="gb_8h.html#aca2855edd2d28f66be551a0f7ec23f07">   63</a></span>&#160;<span class="preprocessor">#define M_NO_INTERP  0x08U</span></div>
    131<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
    132<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="gb_8h.html#a54572cf6791463b6d60623837e0bb5a6">   69</a></span>&#160;<span class="preprocessor">#define S_PALETTE    0x10U</span></div>
    133<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
    134<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="gb_8h.html#ae97793b4039609f93b0f7f8bddb18011">   73</a></span>&#160;<span class="preprocessor">#define S_FLIPX      0x20U</span></div>
    135<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
    136<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="gb_8h.html#a4bbb9cd6c38b2317de5256d1d889c63b">   77</a></span>&#160;<span class="preprocessor">#define S_FLIPY      0x40U</span></div>
    137<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160; </div>
    138<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="gb_8h.html#a9506d04c2ec7d2442a52054f67d2b32f">   82</a></span>&#160;<span class="preprocessor">#define S_PRIORITY   0x80U</span></div>
    139<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
    140<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="comment">/* Interrupt flags */</span></div>
    141<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="gb_8h.html#aa027abe630d44039f238034bcb2d2f36">   87</a></span>&#160;<span class="preprocessor">#define EMPTY_IFLAG  0x00U</span></div>
    142<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
    143<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="gb_8h.html#a2ca7720b9a5da9b2173e1f74dba85541">   93</a></span>&#160;<span class="preprocessor">#define VBL_IFLAG    0x01U</span></div>
    144<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
    145<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="gb_8h.html#a61a9e2910380de6abb34df14ef634eb4">   97</a></span>&#160;<span class="preprocessor">#define LCD_IFLAG    0x02U</span></div>
    146<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
    147<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="gb_8h.html#a604256210ec5b90b68185e1a18efab49">  101</a></span>&#160;<span class="preprocessor">#define TIM_IFLAG    0x04U</span></div>
    148<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
    149<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="gb_8h.html#ad90564458646c5646b3880b93db3443e">  105</a></span>&#160;<span class="preprocessor">#define SIO_IFLAG    0x08U</span></div>
    150<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
    151<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="gb_8h.html#a2f829cf27d6e3e24c875e9b82dfcb280">  109</a></span>&#160;<span class="preprocessor">#define JOY_IFLAG    0x10U</span></div>
    152<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
    153<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160; </div>
    154<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="comment">/* DMG Palettes */</span></div>
    155<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="gb_8h.html#ab311e53739c992294ae07ca506a924ad">  113</a></span>&#160;<span class="preprocessor">#define DMG_BLACK     0x03</span></div>
    156<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="gb_8h.html#a45d13a674e169dd83df7e1f46513ccba">  114</a></span>&#160;<span class="preprocessor">#define DMG_DARK_GRAY 0x02</span></div>
    157<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="gb_8h.html#a8ccd6732d3bdf390cc0943e8567341f3">  115</a></span>&#160;<span class="preprocessor">#define DMG_LITE_GRAY 0x01</span></div>
    158<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="gb_8h.html#a11cedc2ee58acfbbfc48dfb2b9a551b3">  116</a></span>&#160;<span class="preprocessor">#define DMG_WHITE     0x00</span></div>
    159<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
    160<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="gb_8h.html#a9727caafc483ba6ec65e9344b033d684">  136</a></span>&#160;<span class="preprocessor">#define DMG_PALETTE(C0, C1, C2, C3) ((uint8_t)((((C3) &amp; 0x03) &lt;&lt; 6) | (((C2) &amp; 0x03) &lt;&lt; 4) | (((C1) &amp; 0x03) &lt;&lt; 2) | ((C0) &amp; 0x03)))</span></div>
    161<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160; </div>
    162<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="comment">/* Limits */</span></div>
    163<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="gb_8h.html#ada0cc738d27aad251151e69cb8d250e1">  141</a></span>&#160;<span class="preprocessor">#define SCREENWIDTH  DEVICE_SCREEN_PX_WIDTH</span></div>
    164<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
    165<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="gb_8h.html#ae189e98d0ef9263c37869ce1ff3710a5">  144</a></span>&#160;<span class="preprocessor">#define SCREENHEIGHT DEVICE_SCREEN_PX_HEIGHT</span></div>
    166<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
    167<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="gb_8h.html#a5a796bbf3e4347d914b83568350143a9">  147</a></span>&#160;<span class="preprocessor">#define MINWNDPOSX   0x07U</span></div>
    168<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160; </div>
    169<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="gb_8h.html#af3d632ba2d7cef6619df5dfea8730909">  150</a></span>&#160;<span class="preprocessor">#define MINWNDPOSY   0x00U</span></div>
    170<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
    171<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="gb_8h.html#a6dffb66ec1b1d9bb380a1af52a601ec5">  153</a></span>&#160;<span class="preprocessor">#define MAXWNDPOSX   0xA6U</span></div>
    172<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160; </div>
    173<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="gb_8h.html#ad57f2f8c54204687f02801d8ab1bd150">  156</a></span>&#160;<span class="preprocessor">#define MAXWNDPOSY   0x8FU</span></div>
    174<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160; </div>
    175<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
    176<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">  161</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>)(void) <a class="code" href="asm_2types_8h.html#a7ed081d8dfb6902784b2fc730bbb7f96">NONBANKED</a>;</div>
    177<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
    178<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="gb_8h.html#ad43fdfdb1e157b141f3fc48b78bf4386">  170</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#ad43fdfdb1e157b141f3fc48b78bf4386">remove_VBL</a>(<a class="code" href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    179<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160; </div>
    180<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="gb_8h.html#a32683767caa2a263a1f494b3605786e7">  175</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a32683767caa2a263a1f494b3605786e7">remove_LCD</a>(<a class="code" href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    181<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160; </div>
    182<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="gb_8h.html#a142f6c7755fce8b1148faf658d8ec147">  180</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a142f6c7755fce8b1148faf658d8ec147">remove_TIM</a>(<a class="code" href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    183<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160; </div>
    184<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="gb_8h.html#a5b821b31215361265d8b7894a9ae7118">  194</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a5b821b31215361265d8b7894a9ae7118">remove_SIO</a>(<a class="code" href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    185<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
    186<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="gb_8h.html#a4a3e87e0917d5efb6bc7c94e9754fcd0">  199</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a4a3e87e0917d5efb6bc7c94e9754fcd0">remove_JOY</a>(<a class="code" href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    187<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
    188<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="gb_8h.html#a0d29659d08708143dd8bc720278e06b5">  217</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a0d29659d08708143dd8bc720278e06b5">add_VBL</a>(<a class="code" href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    189<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160; </div>
    190<div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="gb_8h.html#a9f9f77105099a34556247d5bb03368d1">  234</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a9f9f77105099a34556247d5bb03368d1">add_LCD</a>(<a class="code" href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    191<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160; </div>
    192<div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="gb_8h.html#a028d1a2e820951bb4f103d6469975ffb">  246</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a028d1a2e820951bb4f103d6469975ffb">add_TIM</a>(<a class="code" href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    193<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160; </div>
    194<div class="line"><a name="l00260"></a><span class="lineno"><a class="line" href="gb_8h.html#a970f18857533e062f4780f6e1c407d69">  260</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a970f18857533e062f4780f6e1c407d69">add_low_priority_TIM</a>(<a class="code" href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    195<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160; </div>
    196<div class="line"><a name="l00270"></a><span class="lineno"><a class="line" href="gb_8h.html#aa82422752016328ed0765879e286019f">  270</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#aa82422752016328ed0765879e286019f">add_SIO</a>(<a class="code" href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    197<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160; </div>
    198<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160; </div>
    199<div class="line"><a name="l00284"></a><span class="lineno"><a class="line" href="gb_8h.html#aa2f0235e78da2d1d94d3628d7a1afc30">  284</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#aa2f0235e78da2d1d94d3628d7a1afc30">add_JOY</a>(<a class="code" href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    200<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160; </div>
    201<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160; </div>
    202<div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="gb_8h.html#a695c6d0e8fd7cf11dae0d4c67bc058f9">  302</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a695c6d0e8fd7cf11dae0d4c67bc058f9">nowait_int_handler</a>();</div>
    203<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160; </div>
    204<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160; </div>
    205<div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="gb_8h.html#acc9afd0cb72e763a1213d256b942a68f">  317</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#acc9afd0cb72e763a1213d256b942a68f">wait_int_handler</a>();</div>
    206<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160; </div>
    207<div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="gb_8h.html#ade5d4c955b871b0ed884273cc2b7215a">  321</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#ade5d4c955b871b0ed884273cc2b7215a">cancel_pending_interrupts</a>() {</div>
    208<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="gb_2hardware_8h.html#a509a5d0f138b40830cb447a862573be5">IF_REG</a> = 0;</div>
    209<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;}</div>
    210<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160; </div>
    211<div class="line"><a name="l00331"></a><span class="lineno"><a class="line" href="gb_8h.html#a3ea524204d839377cf39842eec23e202">  331</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a3ea524204d839377cf39842eec23e202">mode</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> m) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    212<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160; </div>
    213<div class="line"><a name="l00337"></a><span class="lineno"><a class="line" href="gb_8h.html#a19969b36a6535fc6a966c0e5476baf9c">  337</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a19969b36a6535fc6a966c0e5476baf9c">get_mode</a>() <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    214<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160; </div>
    215<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;extern <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a874b9bd95b0a05d6a6072feabc879e45">_cpu</a>;</div>
    216<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160; </div>
    217<div class="line"><a name="l00347"></a><span class="lineno"><a class="line" href="gb_8h.html#a0031c07799247a6d6c1bfa3decac79d0">  347</a></span>&#160;<span class="preprocessor">#define DMG_TYPE 0x01</span></div>
    218<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160; </div>
    219<div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="gb_8h.html#ae996ed4fd8bb6b308b9c8708a91df06b">  350</a></span>&#160;<span class="preprocessor">#define MGB_TYPE 0xFF</span></div>
    220<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160; </div>
    221<div class="line"><a name="l00353"></a><span class="lineno"><a class="line" href="gb_8h.html#aee435a3a0dde3dbd7b6112dbb456cde8">  353</a></span>&#160;<span class="preprocessor">#define CGB_TYPE 0x11</span></div>
    222<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160; </div>
    223<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a539b7b45b1c2d6b2051553665c76fd36">_is_GBA</a>;</div>
    224<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160; </div>
    225<div class="line"><a name="l00363"></a><span class="lineno"><a class="line" href="gb_8h.html#aa311f84dd9fce6e136ba4881e7b0d98d">  363</a></span>&#160;<span class="preprocessor">#define GBA_NOT_DETECTED 0x00</span></div>
    226<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160; </div>
    227<div class="line"><a name="l00366"></a><span class="lineno"><a class="line" href="gb_8h.html#a6ccf5d0f34fb0af0b6e73b9df0ccd745">  366</a></span>&#160;<span class="preprocessor">#define GBA_DETECTED 0x01</span></div>
    228<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160; </div>
    229<div class="line"><a name="l00370"></a><span class="lineno"><a class="line" href="gb_8h.html#a231ec05679809190782e61c6e8aaaba4">  370</a></span>&#160;<span class="preprocessor">#define DEVICE_SUPPORTS_COLOR (_cpu == CGB_TYPE)</span></div>
    230<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160; </div>
    231<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;<span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> <a class="code" href="gb_8h.html#a78d2fd18666afec116f176d46debb4e7">sys_time</a>;</div>
    232<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160; </div>
    233<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160; </div>
    234<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160; </div>
    235<div class="line"><a name="l00389"></a><span class="lineno"><a class="line" href="gb_8h.html#ae339d7d8d7e0ebd6691b42608c416964">  389</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#ae339d7d8d7e0ebd6691b42608c416964">send_byte</a>();</div>
    236<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160; </div>
    237<div class="line"><a name="l00398"></a><span class="lineno"><a class="line" href="gb_8h.html#a9a7fd7be44bb12bc85a144b732ce02f7">  398</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a9a7fd7be44bb12bc85a144b732ce02f7">receive_byte</a>();</div>
    238<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160; </div>
    239<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;<span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a2e3415ce2f7fb63427618bd9b9cb6635">_io_status</a>;</div>
    240<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160; </div>
    241<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;<span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a02f3a1585ae654444e628c1aa98ef0cf">_io_in</a>;</div>
    242<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160; </div>
    243<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;<span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#acae13736da20f9fc53e8d38934aa2119">_io_out</a>;</div>
    244<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160; </div>
    245<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;<span class="comment">/* Status codes */</span></div>
    246<div class="line"><a name="l00413"></a><span class="lineno"><a class="line" href="gb_8h.html#a268cc6c704e16f3fa02dd1cf0e17070a">  413</a></span>&#160;<span class="preprocessor">#define IO_IDLE     0x00U</span></div>
    247<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160; </div>
    248<div class="line"><a name="l00415"></a><span class="lineno"><a class="line" href="gb_8h.html#ab69a3f7cd2c6b5eb4f518aefee099007">  415</a></span>&#160;<span class="preprocessor">#define IO_SENDING  0x01U</span></div>
    249<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160; </div>
    250<div class="line"><a name="l00417"></a><span class="lineno"><a class="line" href="gb_8h.html#aee03efddee0f2f6fbcaec789301aaa9b">  417</a></span>&#160;<span class="preprocessor">#define IO_RECEIVING    0x02U</span></div>
    251<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160; </div>
    252<div class="line"><a name="l00419"></a><span class="lineno"><a class="line" href="gb_8h.html#a5d4c9c7b61a0326a939f9109f96d7423">  419</a></span>&#160;<span class="preprocessor">#define IO_ERROR    0x04U</span></div>
    253<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160; </div>
    254<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160; </div>
    255<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160; </div>
    256<div class="line"><a name="l00427"></a><span class="lineno"><a class="line" href="gb_8h.html#a98b848953a95ce2fff6fda643575d74a">  427</a></span>&#160;<a class="code" href="gb_2hardware_8h.html#a0b42e4dadd74c927e8b801b4f42c0e44">__REG</a> <a class="code" href="gb_8h.html#a98b848953a95ce2fff6fda643575d74a">_current_bank</a>;</div>
    257<div class="line"><a name="l00428"></a><span class="lineno"><a class="line" href="gb_8h.html#ae042588f20bf5a2349c8ad8716245233">  428</a></span>&#160;<span class="preprocessor">#define CURRENT_BANK _current_bank</span></div>
    258<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160; </div>
    259<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;<span class="preprocessor">#ifndef BANK</span></div>
    260<div class="line"><a name="l00440"></a><span class="lineno"><a class="line" href="gb_8h.html#a42705001e2b9897f5167b67fb36c69dd">  440</a></span>&#160;<span class="preprocessor">#define BANK(VARNAME) ( (uint8_t) &amp; __bank_ ## VARNAME )</span></div>
    261<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;<span class="preprocessor">#endif</span></div>
    262<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160; </div>
    263<div class="line"><a name="l00455"></a><span class="lineno"><a class="line" href="gb_8h.html#a086293f2afb4c7945460a4496b20aea3">  455</a></span>&#160;<span class="preprocessor">#define BANKREF(VARNAME) void __func_ ## VARNAME() __banked __naked { \</span></div>
    264<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;<span class="preprocessor">__asm \</span></div>
    265<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;<span class="preprocessor">    .local b___func_ ## VARNAME \</span></div>
    266<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;<span class="preprocessor">    ___bank_ ## VARNAME = b___func_ ## VARNAME \</span></div>
    267<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;<span class="preprocessor">    .globl ___bank_ ## VARNAME \</span></div>
    268<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;<span class="preprocessor">__endasm; \</span></div>
    269<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;<span class="preprocessor">}</span></div>
    270<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160; </div>
    271<div class="line"><a name="l00472"></a><span class="lineno"><a class="line" href="gb_8h.html#a261bba55a07b802baf99346feadd9852">  472</a></span>&#160;<span class="preprocessor">#define BANKREF_EXTERN(VARNAME) extern const void __bank_ ## VARNAME;</span></div>
    272<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160; </div>
    273<div class="line"><a name="l00477"></a><span class="lineno"><a class="line" href="gb_8h.html#a3fca2d0a22aa2717e62fed659caf4743">  477</a></span>&#160;<span class="preprocessor">#define SWITCH_ROM_MEGADUCK(b) \</span></div>
    274<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;<span class="preprocessor">  _current_bank = (b), *(uint8_t *)0x0001 = (b)</span></div>
    275<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160; </div>
    276<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160; </div>
    277<div class="line"><a name="l00484"></a><span class="lineno"><a class="line" href="gb_8h.html#a19558f5bbc9fea767f945001ae9cd13f">  484</a></span>&#160;<span class="preprocessor">#define SWITCH_ROM_MBC1(b) \</span></div>
    278<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;<span class="preprocessor">  _current_bank = (b), *(uint8_t *)0x2000 = (b)</span></div>
    279<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160; </div>
    280<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;<span class="preprocessor">#if defined(__TARGET_duck)</span></div>
    281<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;<span class="preprocessor">#define SWITCH_ROM SWITCH_ROM_MEGADUCK</span></div>
    282<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;<span class="preprocessor">#else</span></div>
    283<div class="line"><a name="l00495"></a><span class="lineno"><a class="line" href="gb_8h.html#a1e22a3b60368bb5f3705d625ac2d09cc">  495</a></span>&#160;<span class="preprocessor">#define SWITCH_ROM SWITCH_ROM_MBC1</span></div>
    284<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;<span class="preprocessor">#endif</span></div>
    285<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160; </div>
    286<div class="line"><a name="l00501"></a><span class="lineno"><a class="line" href="gb_8h.html#a38ea3e4dfe02b8eae70df27f39d4a951">  501</a></span>&#160;<span class="preprocessor">#define SWITCH_RAM_MBC1(b) \</span></div>
    287<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;<span class="preprocessor">  *(uint8_t *)0x4000 = (b)</span></div>
    288<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160; </div>
    289<div class="line"><a name="l00509"></a><span class="lineno"><a class="line" href="gb_8h.html#a6e40dcc763efd953181c7400642a9f69">  509</a></span>&#160;<span class="preprocessor">#define SWITCH_RAM SWITCH_RAM_MBC1</span></div>
    290<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160; </div>
    291<div class="line"><a name="l00513"></a><span class="lineno"><a class="line" href="gb_8h.html#ae202f64307ec00f6970ef9225e54646c">  513</a></span>&#160;<span class="preprocessor">#define ENABLE_RAM_MBC1 \</span></div>
    292<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;<span class="preprocessor">  *(uint8_t *)0x0000 = 0x0A</span></div>
    293<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160; </div>
    294<div class="line"><a name="l00516"></a><span class="lineno"><a class="line" href="gb_8h.html#a0e9c88657beaac946231a4801481b97f">  516</a></span>&#160;<span class="preprocessor">#define ENABLE_RAM ENABLE_RAM_MBC1</span></div>
    295<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160; </div>
    296<div class="line"><a name="l00520"></a><span class="lineno"><a class="line" href="gb_8h.html#a177fadce938422926b186a8e42575d1d">  520</a></span>&#160;<span class="preprocessor">#define DISABLE_RAM_MBC1 \</span></div>
    297<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;<span class="preprocessor">  *(uint8_t *)0x0000 = 0x00</span></div>
    298<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160; </div>
    299<div class="line"><a name="l00523"></a><span class="lineno"><a class="line" href="gb_8h.html#a649d27b5587de16a66176e03a1b8ebd5">  523</a></span>&#160;<span class="preprocessor">#define DISABLE_RAM DISABLE_RAM_MBC1</span></div>
    300<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160; </div>
    301<div class="line"><a name="l00525"></a><span class="lineno"><a class="line" href="gb_8h.html#a0c689c5a814f1c347c4d98f28ed6c7d6">  525</a></span>&#160;<span class="preprocessor">#define SWITCH_16_8_MODE_MBC1 \</span></div>
    302<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;<span class="preprocessor">  *(uint8_t *)0x6000 = 0x00</span></div>
    303<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160; </div>
    304<div class="line"><a name="l00528"></a><span class="lineno"><a class="line" href="gb_8h.html#aa5d64e386a00b373f22ffdc5a152c7ba">  528</a></span>&#160;<span class="preprocessor">#define SWITCH_4_32_MODE_MBC1 \</span></div>
    305<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;<span class="preprocessor">  *(uint8_t *)0x6000 = 0x01</span></div>
    306<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160; </div>
    307<div class="line"><a name="l00536"></a><span class="lineno"><a class="line" href="gb_8h.html#a92d040284342702026eb19dab59b586e">  536</a></span>&#160;<span class="preprocessor">#define SWITCH_ROM_MBC5(b) \</span></div>
    308<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;<span class="preprocessor">  _current_bank = (b), \</span></div>
    309<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;<span class="preprocessor">  *(uint8_t *)0x3000 = 0, \</span></div>
    310<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;<span class="preprocessor">  *(uint8_t *)0x2000 = (b)</span></div>
    311<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160; </div>
    312<div class="line"><a name="l00547"></a><span class="lineno"><a class="line" href="gb_8h.html#a6c15ebc660abd3a978137493ab63ffe9">  547</a></span>&#160;<span class="preprocessor">#define SWITCH_ROM_MBC5_8M(b) \</span></div>
    313<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;<span class="preprocessor">  *(uint8_t *)0x3000 = ((uint16_t)(b) &gt;&gt; 8), \</span></div>
    314<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;<span class="preprocessor">  *(uint8_t *)0x2000 = (b)</span></div>
    315<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160; </div>
    316<div class="line"><a name="l00554"></a><span class="lineno"><a class="line" href="gb_8h.html#a361d5055a7ae880fc1c9d6e0d1164fd6">  554</a></span>&#160;<span class="preprocessor">#define SWITCH_RAM_MBC5(b) \</span></div>
    317<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;<span class="preprocessor">  *(uint8_t *)0x4000 = (b)</span></div>
    318<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160; </div>
    319<div class="line"><a name="l00559"></a><span class="lineno"><a class="line" href="gb_8h.html#a3f033f00c8d781637f9a665b06750937">  559</a></span>&#160;<span class="preprocessor">#define ENABLE_RAM_MBC5 \</span></div>
    320<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;<span class="preprocessor">  *(uint8_t *)0x0000 = 0x0A</span></div>
    321<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160; </div>
    322<div class="line"><a name="l00564"></a><span class="lineno"><a class="line" href="gb_8h.html#a60191cdfa50ed9b88515f181747eaba2">  564</a></span>&#160;<span class="preprocessor">#define DISABLE_RAM_MBC5 \</span></div>
    323<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;<span class="preprocessor">  *(uint8_t *)0x0000 = 0x00</span></div>
    324<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160; </div>
    325<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160; </div>
    326<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160; </div>
    327<div class="line"><a name="l00573"></a><span class="lineno"><a class="line" href="gb_8h.html#a2afae202a1f8ca59a12a6455bb909c5d">  573</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a2afae202a1f8ca59a12a6455bb909c5d">delay</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> <a class="code" href="gb_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    328<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160; </div>
    329<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160; </div>
    330<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160; </div>
    331<div class="line"><a name="l00587"></a><span class="lineno"><a class="line" href="gb_8h.html#af79b920bcb642bba2e652874c4f7eeff">  587</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a176c477d759b814664785f3a0ad5e253">joypad</a>() <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="code" href="gb_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a>);</div>
    332<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160; </div>
    333<div class="line"><a name="l00601"></a><span class="lineno"><a class="line" href="gb_8h.html#aae433db7d8e3ee4c095c254b8abd7b8b">  601</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#aae433db7d8e3ee4c095c254b8abd7b8b">waitpad</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> mask) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    334<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160; </div>
    335<div class="line"><a name="l00608"></a><span class="lineno"><a class="line" href="gb_8h.html#a8484d346b788309ac702b7e0b1fca730">  608</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a8484d346b788309ac702b7e0b1fca730">waitpadup</a>() <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(a, <a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="gb_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="gb_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="code" href="gb_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a>);</div>
    336<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160; </div>
    337<div class="line"><a name="l00615"></a><span class="lineno"><a class="line" href="structjoypads__t.html">  615</a></span>&#160;typedef struct {</div>
    338<div class="line"><a name="l00616"></a><span class="lineno"><a class="line" href="structjoypads__t.html#af84e3549a0708ee0e04295e5f853e9f5">  616</a></span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="structjoypads__t.html#af84e3549a0708ee0e04295e5f853e9f5">npads</a>;</div>
    339<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;    <span class="keyword">union </span>{</div>
    340<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;        <span class="keyword">struct </span>{</div>
    341<div class="line"><a name="l00619"></a><span class="lineno"><a class="line" href="structjoypads__t.html#ab281d26e5197e49633274f412b164295">  619</a></span>&#160;            <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> joy0, joy1, joy2, <a class="code" href="structjoypads__t.html#ab281d26e5197e49633274f412b164295">joy3</a>;</div>
    342<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;        };</div>
    343<div class="line"><a name="l00621"></a><span class="lineno"><a class="line" href="structjoypads__t.html#a8d181ece2d3db614ed6686cfba545238">  621</a></span>&#160;        <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> joypads[4];</div>
    344<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;    };</div>
    345<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;} <a class="code" href="structjoypads__t.html">joypads_t</a>;</div>
    346<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160; </div>
    347<div class="line"><a name="l00634"></a><span class="lineno"><a class="line" href="gb_8h.html#ab7e35e1eff44ed78ad8f0015c6e85b4e">  634</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#ab7e35e1eff44ed78ad8f0015c6e85b4e">joypad_init</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> npads, <a class="code" href="structjoypads__t.html">joypads_t</a> * joypads) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    348<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160; </div>
    349<div class="line"><a name="l00642"></a><span class="lineno"><a class="line" href="gb_8h.html#a6e6f8eb1de2ae1ec9adeafbd7b9884db">  642</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a6e6f8eb1de2ae1ec9adeafbd7b9884db">joypad_ex</a>(<a class="code" href="structjoypads__t.html">joypads_t</a> * joypads) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    350<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160; </div>
    351<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160; </div>
    352<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160; </div>
    353<div class="line"><a name="l00654"></a><span class="lineno"><a class="line" href="gb_8h.html#ae0b13f17609b26c86fc33944aeb6e867">  654</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#ae0b13f17609b26c86fc33944aeb6e867">enable_interrupts</a>() <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(a, <a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="gb_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="gb_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="code" href="gb_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a>) {</div>
    354<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;    __asm__(<span class="stringliteral">&quot;ei&quot;</span>);</div>
    355<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;}</div>
    356<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160; </div>
    357<div class="line"><a name="l00670"></a><span class="lineno"><a class="line" href="gb_8h.html#ad77796783b3a601b6f3781dfc3983499">  670</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#ad77796783b3a601b6f3781dfc3983499">disable_interrupts</a>() <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(a, <a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="gb_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="gb_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="code" href="gb_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a>) {</div>
    358<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;    __asm__(<span class="stringliteral">&quot;di&quot;</span>);</div>
    359<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;}</div>
    360<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160; </div>
    361<div class="line"><a name="l00684"></a><span class="lineno"><a class="line" href="gb_8h.html#a9312e7ec34162d6b6ed0875631fa6fe3">  684</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a9312e7ec34162d6b6ed0875631fa6fe3">set_interrupts</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> flags) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="gb_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="gb_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>);</div>
    362<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160; </div>
    363<div class="line"><a name="l00689"></a><span class="lineno"><a class="line" href="gb_8h.html#ad20897c5c8bd47f5d4005989bead0e55">  689</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#ad20897c5c8bd47f5d4005989bead0e55">reset</a>();</div>
    364<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160; </div>
    365<div class="line"><a name="l00701"></a><span class="lineno"><a class="line" href="gb_8h.html#acd186eb292d441f9389e77b545a55619">  701</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#acd186eb292d441f9389e77b545a55619">wait_vbl_done</a>() <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="gb_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="gb_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="code" href="gb_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a>);</div>
    366<div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160; </div>
    367<div class="line"><a name="l00708"></a><span class="lineno"><a class="line" href="gb_8h.html#a04d57683cdd046dfa45e7e56d7c4ec4d">  708</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a04d57683cdd046dfa45e7e56d7c4ec4d">display_off</a>() <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="gb_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="gb_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="code" href="gb_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a>);</div>
    368<div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160; </div>
    369<div class="line"><a name="l00712"></a><span class="lineno"><a class="line" href="gb_8h.html#a2550e7b6b9fd7e1fc495872502311dbb">  712</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a2550e7b6b9fd7e1fc495872502311dbb">refresh_OAM</a>() <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <a class="code" href="gb_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>, <a class="code" href="gb_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a>, <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="code" href="gb_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a>);</div>
    370<div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160; </div>
    371<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160; </div>
    372<div class="line"><a name="l00720"></a><span class="lineno"><a class="line" href="gb_8h.html#a97b9f2fc6ac7cae97656aca940d65d44">  720</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a97b9f2fc6ac7cae97656aca940d65d44">hiramcpy</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> dst, const <span class="keywordtype">void</span> *src, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> n) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    373<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160; </div>
    374<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160; </div>
    375<div class="line"><a name="l00726"></a><span class="lineno"><a class="line" href="gb_8h.html#a5ae6b05b3e1559c97f0d1b2daaaa0ee4">  726</a></span>&#160;<span class="preprocessor">#define DISPLAY_ON \</span></div>
    376<div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;<span class="preprocessor">  LCDC_REG|=LCDCF_ON</span></div>
    377<div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160; </div>
    378<div class="line"><a name="l00732"></a><span class="lineno"><a class="line" href="gb_8h.html#ad2ec9831813c5e7069917aa4455af682">  732</a></span>&#160;<span class="preprocessor">#define DISPLAY_OFF \</span></div>
    379<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;<span class="preprocessor">  display_off();</span></div>
    380<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160; </div>
    381<div class="line"><a name="l00737"></a><span class="lineno"><a class="line" href="gb_8h.html#a0659212acd317ccdebc0ecf435df330f">  737</a></span>&#160;<span class="preprocessor">#define HIDE_LEFT_COLUMN</span></div>
    382<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160; </div>
    383<div class="line"><a name="l00741"></a><span class="lineno"><a class="line" href="gb_8h.html#a5497c2255a9474d397446710189eacbe">  741</a></span>&#160;<span class="preprocessor">#define SHOW_LEFT_COLUMN</span></div>
    384<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160; </div>
    385<div class="line"><a name="l00746"></a><span class="lineno"><a class="line" href="gb_8h.html#a8e3f36aa68ac036695816757f2a1322c">  746</a></span>&#160;<span class="preprocessor">#define SHOW_BKG \</span></div>
    386<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;<span class="preprocessor">  LCDC_REG|=LCDCF_BGON</span></div>
    387<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160; </div>
    388<div class="line"><a name="l00752"></a><span class="lineno"><a class="line" href="gb_8h.html#a6d25f7c43b1cbbb48b95cda7ab2c3141">  752</a></span>&#160;<span class="preprocessor">#define HIDE_BKG \</span></div>
    389<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;<span class="preprocessor">  LCDC_REG&amp;=~LCDCF_BGON</span></div>
    390<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160; </div>
    391<div class="line"><a name="l00758"></a><span class="lineno"><a class="line" href="gb_8h.html#ab19da2ab719bb8897bc0843a84af28f8">  758</a></span>&#160;<span class="preprocessor">#define SHOW_WIN \</span></div>
    392<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;<span class="preprocessor">  LCDC_REG|=LCDCF_WINON</span></div>
    393<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160; </div>
    394<div class="line"><a name="l00764"></a><span class="lineno"><a class="line" href="gb_8h.html#aedb6e32c42d4b1d25ad11adccd7100c3">  764</a></span>&#160;<span class="preprocessor">#define HIDE_WIN \</span></div>
    395<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;<span class="preprocessor">  LCDC_REG&amp;=~LCDCF_WINON</span></div>
    396<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160; </div>
    397<div class="line"><a name="l00770"></a><span class="lineno"><a class="line" href="gb_8h.html#a495bc9f405f916f02ad5d97e6e730134">  770</a></span>&#160;<span class="preprocessor">#define SHOW_SPRITES \</span></div>
    398<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;<span class="preprocessor">  LCDC_REG|=LCDCF_OBJON</span></div>
    399<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160; </div>
    400<div class="line"><a name="l00776"></a><span class="lineno"><a class="line" href="gb_8h.html#a69ef98aee664b8abd8d1a3d45f016dda">  776</a></span>&#160;<span class="preprocessor">#define HIDE_SPRITES \</span></div>
    401<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;<span class="preprocessor">  LCDC_REG&amp;=~LCDCF_OBJON</span></div>
    402<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160; </div>
    403<div class="line"><a name="l00782"></a><span class="lineno"><a class="line" href="gb_8h.html#af91d252f07f4764996154820f970c101">  782</a></span>&#160;<span class="preprocessor">#define SPRITES_8x16 \</span></div>
    404<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;<span class="preprocessor">  LCDC_REG|=LCDCF_OBJ16</span></div>
    405<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160; </div>
    406<div class="line"><a name="l00788"></a><span class="lineno"><a class="line" href="gb_8h.html#aa87bec0d134136fdb727f52cb773b792">  788</a></span>&#160;<span class="preprocessor">#define SPRITES_8x8 \</span></div>
    407<div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;<span class="preprocessor">  LCDC_REG&amp;=~LCDCF_OBJ16</span></div>
    408<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160; </div>
    409<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160; </div>
    410<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160; </div>
    411<div class="line"><a name="l00799"></a><span class="lineno"><a class="line" href="gb_8h.html#a7080649e10765996c581e5b618e603b8">  799</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a7080649e10765996c581e5b618e603b8">set_vram_byte</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * addr, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> v) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    412<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160; </div>
    413<div class="line"><a name="l00807"></a><span class="lineno"><a class="line" href="gb_8h.html#aa33ba8b8d381df76edf15ea251ccb675">  807</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#aa33ba8b8d381df76edf15ea251ccb675">get_vram_byte</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * addr) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    414<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160; </div>
    415<div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160; </div>
    416<div class="line"><a name="l00813"></a><span class="lineno"><a class="line" href="gb_8h.html#a9005b80d3315f50f0fb0e1728e7ee60f">  813</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * <a class="code" href="gb_8h.html#a9005b80d3315f50f0fb0e1728e7ee60f">get_bkg_xy_addr</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    417<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160; </div>
    418<div class="line"><a name="l00815"></a><span class="lineno"><a class="line" href="gb_8h.html#a67f80e65620470b55a4950e2966eb868">  815</a></span>&#160;<span class="preprocessor">#define COMPAT_PALETTE(C0,C1,C2,C3) ((uint8_t)(((C3) &lt;&lt; 6) | ((C2) &lt;&lt; 4) | ((C1) &lt;&lt; 2) | (C0)))</span></div>
    419<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160; </div>
    420<div class="line"><a name="l00819"></a><span class="lineno"><a class="line" href="gb_8h.html#aa224c9bac27c7fd268e62bdf33338a84">  819</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#aa224c9bac27c7fd268e62bdf33338a84">set_2bpp_palette</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> palette) {</div>
    421<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;    palette;</div>
    422<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;}</div>
    423<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160; </div>
    424<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> <a class="code" href="gb_8h.html#a250f5339e05523912926be566e9eb8c0">_current_1bpp_colors</a>;</div>
    425<div class="line"><a name="l00824"></a><span class="lineno"><a class="line" href="gb_8h.html#a1f00bd35cd56aac84c108f5a802c3f9c">  824</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a1f00bd35cd56aac84c108f5a802c3f9c">set_1bpp_colors_ex</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> fgcolor, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> bgcolor, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a3ea524204d839377cf39842eec23e202">mode</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    426<div class="line"><a name="l00825"></a><span class="lineno"><a class="line" href="gb_8h.html#adcb394299a1033616fc7d2faec8bd6ad">  825</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#adcb394299a1033616fc7d2faec8bd6ad">set_1bpp_colors</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> fgcolor, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> bgcolor) {</div>
    427<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;    <a class="code" href="gb_8h.html#a1f00bd35cd56aac84c108f5a802c3f9c">set_1bpp_colors_ex</a>(fgcolor, bgcolor, 0);</div>
    428<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;}</div>
    429<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160; </div>
    430<div class="line"><a name="l00846"></a><span class="lineno"><a class="line" href="gb_8h.html#a1f5101f2b7bb0123c26a3e257f843626">  846</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a1f5101f2b7bb0123c26a3e257f843626">set_bkg_data</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_tiles, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    431<div class="line"><a name="l00847"></a><span class="lineno"><a class="line" href="gb_8h.html#ab94bfec130df50d9cb808142f94603a5">  847</a></span>&#160;<span class="preprocessor">#define set_bkg_2bpp_data set_bkg_data</span></div>
    432<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160; </div>
    433<div class="line"><a name="l00864"></a><span class="lineno"><a class="line" href="gb_8h.html#a711fa26feecc76dc51482b0f77062859">  864</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a711fa26feecc76dc51482b0f77062859">set_bkg_1bpp_data</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_tiles, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    434<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160; </div>
    435<div class="line"><a name="l00880"></a><span class="lineno"><a class="line" href="gb_8h.html#a5c13238dfec416439d75b133a272e6df">  880</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a5c13238dfec416439d75b133a272e6df">get_bkg_data</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_tiles, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    436<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160; </div>
    437<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160; </div>
    438<div class="line"><a name="l00935"></a><span class="lineno"><a class="line" href="gb_8h.html#a6da9e2fa1bafd35363e84ee999909ec7">  935</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a6da9e2fa1bafd35363e84ee999909ec7">set_bkg_tiles</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    439<div class="line"><a name="l00936"></a><span class="lineno"><a class="line" href="gb_8h.html#a55f82ff980398dd97036fd936ebd727e">  936</a></span>&#160;<span class="preprocessor">#define set_tile_map set_bkg_tiles</span></div>
    440<div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160; </div>
    441<div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160; </div>
    442<div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a>;</div>
    443<div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160; </div>
    444<div class="line"><a name="l00959"></a><span class="lineno"><a class="line" href="gb_8h.html#a811c386cac0df2d260aacb5a43608be5">  959</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a811c386cac0df2d260aacb5a43608be5">set_bkg_based_tiles</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile) {</div>
    445<div class="line"><a name="l00960"></a><span class="lineno">  960</span>&#160;    <a class="code" href="gb_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a> = base_tile;</div>
    446<div class="line"><a name="l00961"></a><span class="lineno">  961</span>&#160;    <a class="code" href="gb_8h.html#a6da9e2fa1bafd35363e84ee999909ec7">set_bkg_tiles</a>(x, y, w, <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, tiles);</div>
    447<div class="line"><a name="l00962"></a><span class="lineno">  962</span>&#160;    <a class="code" href="gb_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a> = 0;</div>
    448<div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;}</div>
    449<div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160; </div>
    450<div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160; </div>
    451<div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#adb21d1c7d533a7133bab36a845489780">set_bkg_submap</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    452<div class="line"><a name="l00995"></a><span class="lineno"><a class="line" href="gb_8h.html#adb5d0970167b81401113812773c90838">  995</a></span>&#160;<span class="preprocessor">#define set_tile_submap set_bkg_submap</span></div>
    453<div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160; </div>
    454<div class="line"><a name="l00997"></a><span class="lineno">  997</span>&#160; </div>
    455<div class="line"><a name="l00998"></a><span class="lineno">  998</span>&#160;<span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a>;</div>
    456<div class="line"><a name="l00999"></a><span class="lineno">  999</span>&#160; </div>
    457<div class="line"><a name="l01019"></a><span class="lineno"><a class="line" href="gb_8h.html#abc8bc5808620a9717263b8c9ec2237f0"> 1019</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#abc8bc5808620a9717263b8c9ec2237f0">set_bkg_based_submap</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile) {</div>
    458<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>&#160;    <a class="code" href="gb_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a> = base_tile;</div>
    459<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;    <a class="code" href="gb_8h.html#adb21d1c7d533a7133bab36a845489780">set_bkg_submap</a>(x, y, w, <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, map, map_w);</div>
    460<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160;    <a class="code" href="gb_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a> = 0;</div>
    461<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>&#160;}</div>
    462<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160; </div>
    463<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>&#160; </div>
    464<div class="line"><a name="l01044"></a><span class="lineno"><a class="line" href="gb_8h.html#aa6bcf24d97f93307b30f2906251f39a0"> 1044</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#aa6bcf24d97f93307b30f2906251f39a0">get_bkg_tiles</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    465<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>&#160; </div>
    466<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>&#160; </div>
    467<div class="line"><a name="l01054"></a><span class="lineno"><a class="line" href="gb_8h.html#a74ee8f0a3495508c90de4ce246b81060"> 1054</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * <a class="code" href="gb_8h.html#a74ee8f0a3495508c90de4ce246b81060">set_bkg_tile_xy</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> t) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    468<div class="line"><a name="l01055"></a><span class="lineno"><a class="line" href="gb_8h.html#a3b235c526c517fb02d20cdea780ee2c5"> 1055</a></span>&#160;<span class="preprocessor">#define set_tile_xy set_bkg_tile_xy</span></div>
    469<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>&#160; </div>
    470<div class="line"><a name="l01063"></a><span class="lineno"><a class="line" href="gb_8h.html#a55c6581dbe9300dc6df41730f090af51"> 1063</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a55c6581dbe9300dc6df41730f090af51">get_bkg_tile_xy</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    471<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>&#160; </div>
    472<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>&#160; </div>
    473<div class="line"><a name="l01079"></a><span class="lineno"><a class="line" href="gb_8h.html#a6261537edc74068e3f7f057e6a3e8a57"> 1079</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a6261537edc74068e3f7f057e6a3e8a57">move_bkg</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) {</div>
    474<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>&#160;    <a class="code" href="gb_2hardware_8h.html#a86cc170585319565195f2c163250be1f">SCX_REG</a>=x, <a class="code" href="gb_2hardware_8h.html#a244b162cf13bbcb4fe842d7e298b39c2">SCY_REG</a>=y;</div>
    475<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>&#160;}</div>
    476<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>&#160; </div>
    477<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>&#160; </div>
    478<div class="line"><a name="l01093"></a><span class="lineno"><a class="line" href="gb_8h.html#a1f583f7a880daa6145ca78b086a209d1"> 1093</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a1f583f7a880daa6145ca78b086a209d1">scroll_bkg</a>(<a class="code" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> x, <a class="code" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> y) {</div>
    479<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>&#160;    <a class="code" href="gb_2hardware_8h.html#a86cc170585319565195f2c163250be1f">SCX_REG</a>+=x, <a class="code" href="gb_2hardware_8h.html#a244b162cf13bbcb4fe842d7e298b39c2">SCY_REG</a>+=y;</div>
    480<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>&#160;}</div>
    481<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>&#160; </div>
    482<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>&#160; </div>
    483<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>&#160; </div>
    484<div class="line"><a name="l01102"></a><span class="lineno"><a class="line" href="gb_8h.html#aa8213cfad631865e3b6faec18e772cb4"> 1102</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * <a class="code" href="gb_8h.html#aa8213cfad631865e3b6faec18e772cb4">get_win_xy_addr</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    485<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>&#160; </div>
    486<div class="line"><a name="l01117"></a><span class="lineno"><a class="line" href="gb_8h.html#ac2bf0c4919c30d322fa5853c896e710f"> 1117</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#ac2bf0c4919c30d322fa5853c896e710f">set_win_data</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_tiles, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    487<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>&#160; </div>
    488<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>&#160; </div>
    489<div class="line"><a name="l01131"></a><span class="lineno"><a class="line" href="gb_8h.html#acd5ee7a94059e6edbe9223f291bc2b46"> 1131</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#acd5ee7a94059e6edbe9223f291bc2b46">set_win_1bpp_data</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_tiles, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    490<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>&#160; </div>
    491<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>&#160; </div>
    492<div class="line"><a name="l01145"></a><span class="lineno"><a class="line" href="gb_8h.html#a7ef32e7c1669aba48f235500a495baba"> 1145</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a7ef32e7c1669aba48f235500a495baba">get_win_data</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_tiles, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    493<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>&#160; </div>
    494<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>&#160; </div>
    495<div class="line"><a name="l01179"></a><span class="lineno"><a class="line" href="gb_8h.html#a5c59b4ee6323af9832998906d087266b"> 1179</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a5c59b4ee6323af9832998906d087266b">set_win_tiles</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    496<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>&#160; </div>
    497<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>&#160; </div>
    498<div class="line"><a name="l01200"></a><span class="lineno"><a class="line" href="gb_8h.html#a739a212609ae60c9c56c095f96b4ea80"> 1200</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a739a212609ae60c9c56c095f96b4ea80">set_win_based_tiles</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile) {</div>
    499<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>&#160;    <a class="code" href="gb_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a> = base_tile;</div>
    500<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>&#160;    <a class="code" href="gb_8h.html#a5c59b4ee6323af9832998906d087266b">set_win_tiles</a>(x, y, w, <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, tiles);</div>
    501<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>&#160;    <a class="code" href="gb_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a> = 0;</div>
    502<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>&#160;}</div>
    503<div class="line"><a name="l01205"></a><span class="lineno"> 1205</span>&#160; </div>
    504<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#af80befa3cad9cae361c7cf4fffb3a8de">set_win_submap</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    505<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>&#160; </div>
    506<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>&#160; </div>
    507<div class="line"><a name="l01258"></a><span class="lineno"><a class="line" href="gb_8h.html#a1b8a1026983cb2b2c0bd46334b4692a0"> 1258</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a1b8a1026983cb2b2c0bd46334b4692a0">set_win_based_submap</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile) {</div>
    508<div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>&#160;    <a class="code" href="gb_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a> = base_tile;</div>
    509<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>&#160;    <a class="code" href="gb_8h.html#af80befa3cad9cae361c7cf4fffb3a8de">set_win_submap</a>(x, y, w, <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, map, map_w);</div>
    510<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>&#160;    <a class="code" href="gb_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a> = 0;</div>
    511<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>&#160;}</div>
    512<div class="line"><a name="l01263"></a><span class="lineno"> 1263</span>&#160; </div>
    513<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>&#160; </div>
    514<div class="line"><a name="l01282"></a><span class="lineno"><a class="line" href="gb_8h.html#a8a469de4c6640f921254b336b5a6191a"> 1282</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a8a469de4c6640f921254b336b5a6191a">get_win_tiles</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    515<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>&#160; </div>
    516<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>&#160; </div>
    517<div class="line"><a name="l01292"></a><span class="lineno"><a class="line" href="gb_8h.html#a0c70a53db1fbc0c99627da3f282befd8"> 1292</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * <a class="code" href="gb_8h.html#a0c70a53db1fbc0c99627da3f282befd8">set_win_tile_xy</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> t) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    518<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>&#160; </div>
    519<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>&#160; </div>
    520<div class="line"><a name="l01301"></a><span class="lineno"><a class="line" href="gb_8h.html#a2e29fdca81c28c627c2591029722e71c"> 1301</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a2e29fdca81c28c627c2591029722e71c">get_win_tile_xy</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    521<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>&#160; </div>
    522<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>&#160; </div>
    523<div class="line"><a name="l01315"></a><span class="lineno"><a class="line" href="gb_8h.html#aeef17768c494bcd6b67f7591329f7ff5"> 1315</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#aeef17768c494bcd6b67f7591329f7ff5">move_win</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) {</div>
    524<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>&#160;    <a class="code" href="gb_2hardware_8h.html#a310aa43fbee2fd6b6b419df48acce1e0">WX_REG</a>=x, <a class="code" href="gb_2hardware_8h.html#a1c8d52607616ef37da335447e4cbe850">WY_REG</a>=y;</div>
    525<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>&#160;}</div>
    526<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>&#160; </div>
    527<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>&#160; </div>
    528<div class="line"><a name="l01329"></a><span class="lineno"><a class="line" href="gb_8h.html#a12c2b5ac249d01caf1561cbbf3962044"> 1329</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a12c2b5ac249d01caf1561cbbf3962044">scroll_win</a>(<a class="code" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> x, <a class="code" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> y) {</div>
    529<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>&#160;    <a class="code" href="gb_2hardware_8h.html#a310aa43fbee2fd6b6b419df48acce1e0">WX_REG</a>+=x, <a class="code" href="gb_2hardware_8h.html#a1c8d52607616ef37da335447e4cbe850">WY_REG</a>+=y;</div>
    530<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>&#160;}</div>
    531<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>&#160; </div>
    532<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>&#160; </div>
    533<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>&#160; </div>
    534<div class="line"><a name="l01350"></a><span class="lineno"><a class="line" href="gb_8h.html#ae45b1c639698951b47e44fa8e89556f2"> 1350</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#ae45b1c639698951b47e44fa8e89556f2">set_sprite_data</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_tiles, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    535<div class="line"><a name="l01351"></a><span class="lineno"><a class="line" href="gb_8h.html#a43b4f0ba65856deef626c0d9e7e41ed4"> 1351</a></span>&#160;<span class="preprocessor">#define set_sprite_2bpp_data set_sprite_data</span></div>
    536<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>&#160; </div>
    537<div class="line"><a name="l01368"></a><span class="lineno"><a class="line" href="gb_8h.html#ab3e60c92c9f8fbed855f8712187ea3ea"> 1368</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#ab3e60c92c9f8fbed855f8712187ea3ea">set_sprite_1bpp_data</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_tiles, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    538<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>&#160; </div>
    539<div class="line"><a name="l01382"></a><span class="lineno"><a class="line" href="gb_8h.html#adcdec4034a14abc5be9bb88c29b947c9"> 1382</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#adcdec4034a14abc5be9bb88c29b947c9">get_sprite_data</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_tiles, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    540<div class="line"><a name="l01383"></a><span class="lineno"> 1383</span>&#160; </div>
    541<div class="line"><a name="l01384"></a><span class="lineno"> 1384</span>&#160; </div>
    542<div class="line"><a name="l01391"></a><span class="lineno"><a class="line" href="struct_o_a_m__item__t.html"> 1391</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct_o_a_m__item__t.html">OAM_item_t</a> {</div>
    543<div class="line"><a name="l01392"></a><span class="lineno"><a class="line" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18"> 1392</a></span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>, <a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>;  <span class="comment">//&lt; X, Y Coordinates of the sprite on screen</span></div>
    544<div class="line"><a name="l01393"></a><span class="lineno"><a class="line" href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6"> 1393</a></span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">tile</a>;  <span class="comment">//&lt; Sprite tile number</span></div>
    545<div class="line"><a name="l01394"></a><span class="lineno"><a class="line" href="struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9"> 1394</a></span>&#160;    <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9">prop</a>;  <span class="comment">//&lt; OAM Property Flags</span></div>
    546<div class="line"><a name="l01395"></a><span class="lineno"><a class="line" href="gb_8h.html#a8e5ea12b86bdfc812448c2f5c4336c03"> 1395</a></span>&#160;} <a class="code" href="gb_8h.html#a8e5ea12b86bdfc812448c2f5c4336c03">OAM_item_t</a>;</div>
    547<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>&#160; </div>
    548<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>&#160; </div>
    549<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>&#160;<span class="keyword">extern</span> <span class="keyword">volatile</span> <span class="keyword">struct </span><a class="code" href="struct_o_a_m__item__t.html">OAM_item_t</a> <a class="code" href="gb_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[];</div>
    550<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>&#160; </div>
    551<div class="line"><a name="l01404"></a><span class="lineno"><a class="line" href="sms_8h.html#a5435fd985412934e96a490e103c6bc49"> 1404</a></span>&#160;<a class="code" href="gb_2hardware_8h.html#a0b42e4dadd74c927e8b801b4f42c0e44">__REG</a> <a class="code" href="gb_8h.html#a7b662ae4d83f9837bacb9fd580673054">_shadow_OAM_base</a>;</div>
    552<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>&#160; </div>
    553<div class="line"><a name="l01406"></a><span class="lineno"><a class="line" href="gb_8h.html#a47607089a434dcda7a8583cfca03b604"> 1406</a></span>&#160;<span class="preprocessor">#define DISABLE_OAM_DMA \</span></div>
    554<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>&#160;<span class="preprocessor">    _shadow_OAM_base = 0</span></div>
    555<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>&#160; </div>
    556<div class="line"><a name="l01411"></a><span class="lineno"><a class="line" href="gb_8h.html#abfd70bf31185a4900680977c9fb5a5ec"> 1411</a></span>&#160;<span class="preprocessor">#define DISABLE_VBL_TRANSFER DISABLE_OAM_DMA</span></div>
    557<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>&#160; </div>
    558<div class="line"><a name="l01413"></a><span class="lineno"><a class="line" href="gb_8h.html#a20895d53fe9caacb08ce8b071d57ce53"> 1413</a></span>&#160;<span class="preprocessor">#define ENABLE_OAM_DMA \</span></div>
    559<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>&#160;<span class="preprocessor">    _shadow_OAM_base = (uint8_t)((uint16_t)&amp;shadow_OAM &gt;&gt; 8)</span></div>
    560<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>&#160; </div>
    561<div class="line"><a name="l01418"></a><span class="lineno"><a class="line" href="gb_8h.html#a77d516c9d3f86f100eddea5e0d133a76"> 1418</a></span>&#160;<span class="preprocessor">#define ENABLE_VBL_TRANSFER ENABLE_OAM_DMA</span></div>
    562<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>&#160; </div>
    563<div class="line"><a name="l01422"></a><span class="lineno"><a class="line" href="gb_8h.html#a8b77608c87a9aef65a03531482b2163b"> 1422</a></span>&#160;<span class="preprocessor">#define MAX_HARDWARE_SPRITES 40</span></div>
    564<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>&#160; </div>
    565<div class="line"><a name="l01426"></a><span class="lineno"><a class="line" href="gb_8h.html#a7e0cdfd6b9a2ae1b7f30384f132d8687"> 1426</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a7e0cdfd6b9a2ae1b7f30384f132d8687">SET_SHADOW_OAM_ADDRESS</a>(<span class="keywordtype">void</span> * address) {</div>
    566<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>&#160;    <a class="code" href="gb_8h.html#a7b662ae4d83f9837bacb9fd580673054">_shadow_OAM_base</a> = (<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>)((<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>)address &gt;&gt; 8);</div>
    567<div class="line"><a name="l01428"></a><span class="lineno"> 1428</span>&#160;}</div>
    568<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>&#160; </div>
    569<div class="line"><a name="l01446"></a><span class="lineno"><a class="line" href="gb_8h.html#a05bf0b9f1328de7b568a19a2a428bcfe"> 1446</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a05bf0b9f1328de7b568a19a2a428bcfe">set_sprite_tile</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">tile</a>) {</div>
    570<div class="line"><a name="l01447"></a><span class="lineno"> 1447</span>&#160;    <a class="code" href="gb_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb].<a class="code" href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">tile</a>=<a class="code" href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">tile</a>;</div>
    571<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>&#160;}</div>
    572<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>&#160; </div>
    573<div class="line"><a name="l01450"></a><span class="lineno"> 1450</span>&#160; </div>
    574<div class="line"><a name="l01457"></a><span class="lineno"><a class="line" href="gb_8h.html#af5c0beff7d7a7d8641b51fd95c811b2a"> 1457</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#af5c0beff7d7a7d8641b51fd95c811b2a">get_sprite_tile</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb) {</div>
    575<div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="gb_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb].<a class="code" href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">tile</a>;</div>
    576<div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>&#160;}</div>
    577<div class="line"><a name="l01460"></a><span class="lineno"> 1460</span>&#160; </div>
    578<div class="line"><a name="l01461"></a><span class="lineno"> 1461</span>&#160; </div>
    579<div class="line"><a name="l01492"></a><span class="lineno"><a class="line" href="gb_8h.html#a99ea3252469e3614e977cce2aa1d06f7"> 1492</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a99ea3252469e3614e977cce2aa1d06f7">set_sprite_prop</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9">prop</a>) {</div>
    580<div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>&#160;    <a class="code" href="gb_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb].<a class="code" href="struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9">prop</a>=<a class="code" href="struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9">prop</a>;</div>
    581<div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>&#160;}</div>
    582<div class="line"><a name="l01495"></a><span class="lineno"> 1495</span>&#160; </div>
    583<div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>&#160; </div>
    584<div class="line"><a name="l01502"></a><span class="lineno"><a class="line" href="gb_8h.html#a6b873c807c9e2c90fb574951e85fdf88"> 1502</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a6b873c807c9e2c90fb574951e85fdf88">get_sprite_prop</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb) {</div>
    585<div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="gb_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb].<a class="code" href="struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9">prop</a>;</div>
    586<div class="line"><a name="l01504"></a><span class="lineno"> 1504</span>&#160;}</div>
    587<div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>&#160; </div>
    588<div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>&#160; </div>
    589<div class="line"><a name="l01519"></a><span class="lineno"><a class="line" href="gb_8h.html#ab42c12c1d9aed3fd963248fbea9830cd"> 1519</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#ab42c12c1d9aed3fd963248fbea9830cd">move_sprite</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>) {</div>
    590<div class="line"><a name="l01520"></a><span class="lineno"> 1520</span>&#160;    <a class="code" href="struct_o_a_m__item__t.html">OAM_item_t</a> * itm = &amp;<a class="code" href="gb_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb];</div>
    591<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>&#160;    itm-&gt;<a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>=<a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>, itm-&gt;<a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>=<a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>;</div>
    592<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>&#160;}</div>
    593<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>&#160; </div>
    594<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>&#160; </div>
    595<div class="line"><a name="l01535"></a><span class="lineno"><a class="line" href="gb_8h.html#a6c59aa9a4f9ea42bed6ca6940b2741fe"> 1535</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a6c59aa9a4f9ea42bed6ca6940b2741fe">scroll_sprite</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb, <a class="code" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>, <a class="code" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> <a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>) {</div>
    596<div class="line"><a name="l01536"></a><span class="lineno"> 1536</span>&#160;    <a class="code" href="struct_o_a_m__item__t.html">OAM_item_t</a> * itm = &amp;<a class="code" href="gb_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb];</div>
    597<div class="line"><a name="l01537"></a><span class="lineno"> 1537</span>&#160;    itm-&gt;<a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>+=<a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>, itm-&gt;<a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>+=<a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>;</div>
    598<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>&#160;}</div>
    599<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>&#160; </div>
    600<div class="line"><a name="l01540"></a><span class="lineno"> 1540</span>&#160; </div>
    601<div class="line"><a name="l01545"></a><span class="lineno"><a class="line" href="gb_8h.html#ad22c51635d052399bbbe1777999c794d"> 1545</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#ad22c51635d052399bbbe1777999c794d">hide_sprite</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb) {</div>
    602<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>&#160;    <a class="code" href="gb_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[nb].<a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a> = 0;</div>
    603<div class="line"><a name="l01547"></a><span class="lineno"> 1547</span>&#160;}</div>
    604<div class="line"><a name="l01548"></a><span class="lineno"> 1548</span>&#160; </div>
    605<div class="line"><a name="l01549"></a><span class="lineno"> 1549</span>&#160; </div>
    606<div class="line"><a name="l01550"></a><span class="lineno"> 1550</span>&#160; </div>
    607<div class="line"><a name="l01566"></a><span class="lineno"><a class="line" href="gb_8h.html#a650d2df96e69a40b70548ab468e00f25"> 1566</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a650d2df96e69a40b70548ab468e00f25">set_data</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *vram_addr, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> len) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    608<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>&#160; </div>
    609<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>&#160; </div>
    610<div class="line"><a name="l01584"></a><span class="lineno"><a class="line" href="gb_8h.html#afd8fd71eaa36b0ddd54a2e8e516ed224"> 1584</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#afd8fd71eaa36b0ddd54a2e8e516ed224">get_data</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *vram_addr, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> len) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    611<div class="line"><a name="l01585"></a><span class="lineno"> 1585</span>&#160; </div>
    612<div class="line"><a name="l01598"></a><span class="lineno"><a class="line" href="gb_8h.html#a36f9e5d95c2d7d58f203b5ac358e25e7"> 1598</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a36f9e5d95c2d7d58f203b5ac358e25e7">vmemcpy</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *dest, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *sour, <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> len) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    613<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>&#160; </div>
    614<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>&#160; </div>
    615<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>&#160; </div>
    616<div class="line"><a name="l01625"></a><span class="lineno"><a class="line" href="gb_8h.html#a9b205ee302f54cb96ee59aac6d53a91c"> 1625</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a9b205ee302f54cb96ee59aac6d53a91c">set_tiles</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *vram_addr, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    617<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>&#160; </div>
    618<div class="line"><a name="l01637"></a><span class="lineno"><a class="line" href="gb_8h.html#abe4846d4570b4880b0e54b9e503f4d30"> 1637</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#abe4846d4570b4880b0e54b9e503f4d30">set_tile_data</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_tiles, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    619<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>&#160; </div>
    620<div class="line"><a name="l01660"></a><span class="lineno"><a class="line" href="gb_8h.html#a728b9440accedc5fb3477be3d150323a"> 1660</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a728b9440accedc5fb3477be3d150323a">get_tiles</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *vram_addr, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    621<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>&#160; </div>
    622<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>&#160; </div>
    623<div class="line"><a name="l01677"></a><span class="lineno"><a class="line" href="gb_8h.html#a68651e50243349b48164a8ad983dca4e"> 1677</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a68651e50243349b48164a8ad983dca4e">set_native_tile_data</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> first_tile, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_tiles, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data) {</div>
    624<div class="line"><a name="l01678"></a><span class="lineno"> 1678</span>&#160;    <span class="keywordflow">if</span> (first_tile &lt; 256) {</div>
    625<div class="line"><a name="l01679"></a><span class="lineno"> 1679</span>&#160;        <a class="code" href="gb_8h.html#a1f5101f2b7bb0123c26a3e257f843626">set_bkg_data</a>(first_tile, nb_tiles, data);</div>
    626<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>&#160;    } <span class="keywordflow">else</span> {</div>
    627<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>&#160;        <a class="code" href="gb_8h.html#ae45b1c639698951b47e44fa8e89556f2">set_sprite_data</a>(first_tile - 256, nb_tiles, data);</div>
    628<div class="line"><a name="l01682"></a><span class="lineno"> 1682</span>&#160;    }</div>
    629<div class="line"><a name="l01683"></a><span class="lineno"> 1683</span>&#160;}</div>
    630<div class="line"><a name="l01684"></a><span class="lineno"> 1684</span>&#160; </div>
    631<div class="line"><a name="l01685"></a><span class="lineno"> 1685</span>&#160; </div>
    632<div class="line"><a name="l01691"></a><span class="lineno"><a class="line" href="gb_8h.html#af6ac67037de041eb0141ba3725b1db83"> 1691</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#af6ac67037de041eb0141ba3725b1db83">init_win</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    633<div class="line"><a name="l01692"></a><span class="lineno"> 1692</span>&#160; </div>
    634<div class="line"><a name="l01698"></a><span class="lineno"><a class="line" href="gb_8h.html#a46058204097dd305bf72bc20ea7f7a3b"> 1698</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a46058204097dd305bf72bc20ea7f7a3b">init_bkg</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    635<div class="line"><a name="l01699"></a><span class="lineno"> 1699</span>&#160; </div>
    636<div class="line"><a name="l01707"></a><span class="lineno"><a class="line" href="gb_8h.html#a97bab71effd5e4e386629cb6ca5816cf"> 1707</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a97bab71effd5e4e386629cb6ca5816cf">vmemset</a> (<span class="keywordtype">void</span> *s, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <span class="keywordtype">size_t</span> n) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    637<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>&#160; </div>
    638<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>&#160; </div>
    639<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>&#160; </div>
    640<div class="line"><a name="l01719"></a><span class="lineno"><a class="line" href="gb_8h.html#a74c3f53fca019f7abcd1270650808849"> 1719</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#a74c3f53fca019f7abcd1270650808849">fill_bkg_rect</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">tile</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    641<div class="line"><a name="l01720"></a><span class="lineno"><a class="line" href="gb_8h.html#a47865835d7d007d71b4bc8ae5cefb73a"> 1720</a></span>&#160;<span class="preprocessor">#define fill_rect fill_bkg_rect</span></div>
    642<div class="line"><a name="l01721"></a><span class="lineno"> 1721</span>&#160; </div>
    643<div class="line"><a name="l01730"></a><span class="lineno"><a class="line" href="gb_8h.html#ad5bc3dc922707507aa51ed7f5b4a21e3"> 1730</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="gb_8h.html#ad5bc3dc922707507aa51ed7f5b4a21e3">fill_win_rect</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">x</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">y</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">tile</a>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    644<div class="line"><a name="l01731"></a><span class="lineno"> 1731</span>&#160; </div>
    645<div class="line"><a name="l01732"></a><span class="lineno"> 1732</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _GB_H */</span><span class="preprocessor"></span></div>
    646</div><!-- fragment --></div><!-- contents -->
    647</div><!-- doc-content -->
    648<div class="ttc" id="agb_8h_html_a6b873c807c9e2c90fb574951e85fdf88"><div class="ttname"><a href="gb_8h.html#a6b873c807c9e2c90fb574951e85fdf88">get_sprite_prop</a></div><div class="ttdeci">uint8_t get_sprite_prop(uint8_t nb)</div><div class="ttdef"><b>Definition:</b> gb.h:1502</div></div>
    649<div class="ttc" id="agb_8h_html_a811c386cac0df2d260aacb5a43608be5"><div class="ttname"><a href="gb_8h.html#a811c386cac0df2d260aacb5a43608be5">set_bkg_based_tiles</a></div><div class="ttdeci">void set_bkg_based_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *tiles, uint8_t base_tile)</div><div class="ttdef"><b>Definition:</b> gb.h:959</div></div>
    650<div class="ttc" id="agb_8h_html_a2e3415ce2f7fb63427618bd9b9cb6635"><div class="ttname"><a href="gb_8h.html#a2e3415ce2f7fb63427618bd9b9cb6635">_io_status</a></div><div class="ttdeci">volatile uint8_t _io_status</div></div>
    651<div class="ttc" id="agb_8h_html_a5c59b4ee6323af9832998906d087266b"><div class="ttname"><a href="gb_8h.html#a5c59b4ee6323af9832998906d087266b">set_win_tiles</a></div><div class="ttdeci">void set_win_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *tiles) OLDCALL PRESERVES_REGS(b</div></div>
    652<div class="ttc" id="astdint_8h_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition:</b> stdint.h:51</div></div>
    653<div class="ttc" id="astruct_o_a_m__item__t_html_a3a13fb7441f8c431d9494cd2441c6c0b"><div class="ttname"><a href="struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b">OAM_item_t::x</a></div><div class="ttdeci">uint8_t x</div><div class="ttdef"><b>Definition:</b> gb.h:1392</div></div>
    654<div class="ttc" id="agb_8h_html_a6261537edc74068e3f7f057e6a3e8a57"><div class="ttname"><a href="gb_8h.html#a6261537edc74068e3f7f057e6a3e8a57">move_bkg</a></div><div class="ttdeci">void move_bkg(uint8_t x, uint8_t y)</div><div class="ttdef"><b>Definition:</b> gb.h:1079</div></div>
    655<div class="ttc" id="agb_8h_html_a02f3a1585ae654444e628c1aa98ef0cf"><div class="ttname"><a href="gb_8h.html#a02f3a1585ae654444e628c1aa98ef0cf">_io_in</a></div><div class="ttdeci">volatile uint8_t _io_in</div></div>
    656<div class="ttc" id="astdint_8h_html_aef44329758059c91c76d334e8fc09700"><div class="ttname"><a href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a></div><div class="ttdeci">signed char int8_t</div><div class="ttdef"><b>Definition:</b> stdint.h:43</div></div>
    657<div class="ttc" id="agb_8h_html_a8a469de4c6640f921254b336b5a6191a"><div class="ttname"><a href="gb_8h.html#a8a469de4c6640f921254b336b5a6191a">get_win_tiles</a></div><div class="ttdeci">void get_win_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *tiles) OLDCALL PRESERVES_REGS(b</div></div>
    658<div class="ttc" id="agb_8h_html_a3619f9cb1e3c92238a033ead79a0c551"><div class="ttname"><a href="gb_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a></div><div class="ttdeci">volatile struct OAM_item_t shadow_OAM[]</div></div>
    659<div class="ttc" id="astructjoypads__t_html_af84e3549a0708ee0e04295e5f853e9f5"><div class="ttname"><a href="structjoypads__t.html#af84e3549a0708ee0e04295e5f853e9f5">joypads_t::npads</a></div><div class="ttdeci">uint8_t npads</div><div class="ttdef"><b>Definition:</b> gb.h:616</div></div>
    660<div class="ttc" id="agb_8h_html_a8e5ea12b86bdfc812448c2f5c4336c03"><div class="ttname"><a href="gb_8h.html#a8e5ea12b86bdfc812448c2f5c4336c03">OAM_item_t</a></div><div class="ttdeci">struct OAM_item_t OAM_item_t</div></div>
    661<div class="ttc" id="agb_8h_html_aae433db7d8e3ee4c095c254b8abd7b8b"><div class="ttname"><a href="gb_8h.html#aae433db7d8e3ee4c095c254b8abd7b8b">waitpad</a></div><div class="ttdeci">uint8_t waitpad(uint8_t mask) OLDCALL PRESERVES_REGS(b</div></div>
    662<div class="ttc" id="agb_8h_html_a98b848953a95ce2fff6fda643575d74a"><div class="ttname"><a href="gb_8h.html#a98b848953a95ce2fff6fda643575d74a">_current_bank</a></div><div class="ttdeci">__REG _current_bank</div><div class="ttdef"><b>Definition:</b> gb.h:427</div></div>
    663<div class="ttc" id="agb_8h_html_a176c477d759b814664785f3a0ad5e253"><div class="ttname"><a href="gb_8h.html#a176c477d759b814664785f3a0ad5e253">joypad</a></div><div class="ttdeci">uint8_t joypad() OLDCALL PRESERVES_REGS(b</div></div>
    664<div class="ttc" id="agb_8h_html_a6da9e2fa1bafd35363e84ee999909ec7"><div class="ttname"><a href="gb_8h.html#a6da9e2fa1bafd35363e84ee999909ec7">set_bkg_tiles</a></div><div class="ttdeci">void set_bkg_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *tiles) OLDCALL PRESERVES_REGS(b</div></div>
    665<div class="ttc" id="astructjoypads__t_html"><div class="ttname"><a href="structjoypads__t.html">joypads_t</a></div><div class="ttdef"><b>Definition:</b> gb.h:615</div></div>
    666<div class="ttc" id="agb_8h_html_a1b8a1026983cb2b2c0bd46334b4692a0"><div class="ttname"><a href="gb_8h.html#a1b8a1026983cb2b2c0bd46334b4692a0">set_win_based_submap</a></div><div class="ttdeci">void set_win_based_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w, uint8_t base_tile)</div><div class="ttdef"><b>Definition:</b> gb.h:1258</div></div>
    667<div class="ttc" id="agb_8h_html_a99ea3252469e3614e977cce2aa1d06f7"><div class="ttname"><a href="gb_8h.html#a99ea3252469e3614e977cce2aa1d06f7">set_sprite_prop</a></div><div class="ttdeci">void set_sprite_prop(uint8_t nb, uint8_t prop)</div><div class="ttdef"><b>Definition:</b> gb.h:1492</div></div>
    668<div class="ttc" id="agb_2hardware_8h_html_a0b42e4dadd74c927e8b801b4f42c0e44"><div class="ttname"><a href="gb_2hardware_8h.html#a0b42e4dadd74c927e8b801b4f42c0e44">__REG</a></div><div class="ttdeci">#define __REG</div><div class="ttdef"><b>Definition:</b> hardware.h:14</div></div>
    669<div class="ttc" id="agb_2hardware_8h_html_a86cc170585319565195f2c163250be1f"><div class="ttname"><a href="gb_2hardware_8h.html#a86cc170585319565195f2c163250be1f">SCX_REG</a></div><div class="ttdeci">__REG SCX_REG</div><div class="ttdef"><b>Definition:</b> hardware.h:287</div></div>
    670<div class="ttc" id="agb_8h_html_ae0b13f17609b26c86fc33944aeb6e867"><div class="ttname"><a href="gb_8h.html#ae0b13f17609b26c86fc33944aeb6e867">enable_interrupts</a></div><div class="ttdeci">void enable_interrupts() PRESERVES_REGS(a</div></div>
    671<div class="ttc" id="agb_8h_html_adb21d1c7d533a7133bab36a845489780"><div class="ttname"><a href="gb_8h.html#adb21d1c7d533a7133bab36a845489780">set_bkg_submap</a></div><div class="ttdeci">void set_bkg_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w) OLDCALL</div><div class="ttdef"><b>Definition:</b> sms.h:585</div></div>
    672<div class="ttc" id="agb_8h_html_abc8bc5808620a9717263b8c9ec2237f0"><div class="ttname"><a href="gb_8h.html#abc8bc5808620a9717263b8c9ec2237f0">set_bkg_based_submap</a></div><div class="ttdeci">void set_bkg_based_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w, uint8_t base_tile)</div><div class="ttdef"><b>Definition:</b> gb.h:1019</div></div>
    673<div class="ttc" id="agb_8h_html_a55c6581dbe9300dc6df41730f090af51"><div class="ttname"><a href="gb_8h.html#a55c6581dbe9300dc6df41730f090af51">get_bkg_tile_xy</a></div><div class="ttdeci">uint8_t get_bkg_tile_xy(uint8_t x, uint8_t y) OLDCALL PRESERVES_REGS(b</div></div>
    674<div class="ttc" id="agb_8h_html_abe4846d4570b4880b0e54b9e503f4d30"><div class="ttname"><a href="gb_8h.html#abe4846d4570b4880b0e54b9e503f4d30">set_tile_data</a></div><div class="ttdeci">void set_tile_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data, uint8_t base) OLDCALL PRESERVES_REGS(b</div></div>
    675<div class="ttc" id="agb_8h_html_acae13736da20f9fc53e8d38934aa2119"><div class="ttname"><a href="gb_8h.html#acae13736da20f9fc53e8d38934aa2119">_io_out</a></div><div class="ttdeci">volatile uint8_t _io_out</div></div>
    676<div class="ttc" id="agb_8h_html_ab7e35e1eff44ed78ad8f0015c6e85b4e"><div class="ttname"><a href="gb_8h.html#ab7e35e1eff44ed78ad8f0015c6e85b4e">joypad_init</a></div><div class="ttdeci">uint8_t joypad_init(uint8_t npads, joypads_t *joypads) OLDCALL</div></div>
    677<div class="ttc" id="agb_8h_html_a7b662ae4d83f9837bacb9fd580673054"><div class="ttname"><a href="gb_8h.html#a7b662ae4d83f9837bacb9fd580673054">_shadow_OAM_base</a></div><div class="ttdeci">__REG _shadow_OAM_base</div><div class="ttdef"><b>Definition:</b> gb.h:1404</div></div>
    678<div class="ttc" id="agb_8h_html_a2550e7b6b9fd7e1fc495872502311dbb"><div class="ttname"><a href="gb_8h.html#a2550e7b6b9fd7e1fc495872502311dbb">refresh_OAM</a></div><div class="ttdeci">void refresh_OAM() PRESERVES_REGS(b</div></div>
    679<div class="ttc" id="agb_8h_html_aa8213cfad631865e3b6faec18e772cb4"><div class="ttname"><a href="gb_8h.html#aa8213cfad631865e3b6faec18e772cb4">get_win_xy_addr</a></div><div class="ttdeci">uint8_t * get_win_xy_addr(uint8_t x, uint8_t y) OLDCALL PRESERVES_REGS(b</div></div>
    680<div class="ttc" id="agb_8h_html_a04d57683cdd046dfa45e7e56d7c4ec4d"><div class="ttname"><a href="gb_8h.html#a04d57683cdd046dfa45e7e56d7c4ec4d">display_off</a></div><div class="ttdeci">void display_off() PRESERVES_REGS(b</div></div>
    681<div class="ttc" id="agb_8h_html_a1f5101f2b7bb0123c26a3e257f843626"><div class="ttname"><a href="gb_8h.html#a1f5101f2b7bb0123c26a3e257f843626">set_bkg_data</a></div><div class="ttdeci">void set_bkg_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) OLDCALL PRESERVES_REGS(b</div></div>
    682<div class="ttc" id="agb_8h_html_ae45b1c639698951b47e44fa8e89556f2"><div class="ttname"><a href="gb_8h.html#ae45b1c639698951b47e44fa8e89556f2">set_sprite_data</a></div><div class="ttdeci">void set_sprite_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) OLDCALL PRESERVES_REGS(b</div></div>
    683<div class="ttc" id="agb_8h_html_a5c13238dfec416439d75b133a272e6df"><div class="ttname"><a href="gb_8h.html#a5c13238dfec416439d75b133a272e6df">get_bkg_data</a></div><div class="ttdeci">void get_bkg_data(uint8_t first_tile, uint8_t nb_tiles, uint8_t *data) OLDCALL PRESERVES_REGS(b</div></div>
    684<div class="ttc" id="agb_8h_html_a3ea524204d839377cf39842eec23e202"><div class="ttname"><a href="gb_8h.html#a3ea524204d839377cf39842eec23e202">mode</a></div><div class="ttdeci">void mode(uint8_t m) OLDCALL</div></div>
    685<div class="ttc" id="astdint_8h_html_adf4d876453337156dde61095e1f20223"><div class="ttname"><a href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a></div><div class="ttdeci">unsigned short int uint16_t</div><div class="ttdef"><b>Definition:</b> stdint.h:52</div></div>
    686<div class="ttc" id="agb_8h_html_afd8fd71eaa36b0ddd54a2e8e516ed224"><div class="ttname"><a href="gb_8h.html#afd8fd71eaa36b0ddd54a2e8e516ed224">get_data</a></div><div class="ttdeci">void get_data(uint8_t *data, uint8_t *vram_addr, uint16_t len) OLDCALL PRESERVES_REGS(b</div></div>
    687<div class="ttc" id="agb_8h_html_a0b3366755f3276b0243c1e0497471b7a"><div class="ttname"><a href="gb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a></div><div class="ttdeci">uint8_t c</div><div class="ttdef"><b>Definition:</b> gb.h:337</div></div>
    688<div class="ttc" id="aversion_8h_html"><div class="ttname"><a href="version_8h.html">version.h</a></div></div>
    689<div class="ttc" id="agb_8h_html_a2afae202a1f8ca59a12a6455bb909c5d"><div class="ttname"><a href="gb_8h.html#a2afae202a1f8ca59a12a6455bb909c5d">delay</a></div><div class="ttdeci">void delay(uint16_t d) OLDCALL</div></div>
    690<div class="ttc" id="agb_8h_html_a9f9f77105099a34556247d5bb03368d1"><div class="ttname"><a href="gb_8h.html#a9f9f77105099a34556247d5bb03368d1">add_LCD</a></div><div class="ttdeci">void add_LCD(int_handler h) OLDCALL</div></div>
    691<div class="ttc" id="agb_2hardware_8h_html_a509a5d0f138b40830cb447a862573be5"><div class="ttname"><a href="gb_2hardware_8h.html#a509a5d0f138b40830cb447a862573be5">IF_REG</a></div><div class="ttdeci">__REG IF_REG</div><div class="ttdef"><b>Definition:</b> hardware.h:84</div></div>
    692<div class="ttc" id="agb_8h_html_af79b920bcb642bba2e652874c4f7eeff"><div class="ttname"><a href="gb_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a></div><div class="ttdeci">uint8_t l</div><div class="ttdef"><b>Definition:</b> gb.h:587</div></div>
    693<div class="ttc" id="agb_8h_html_a695c6d0e8fd7cf11dae0d4c67bc058f9"><div class="ttname"><a href="gb_8h.html#a695c6d0e8fd7cf11dae0d4c67bc058f9">nowait_int_handler</a></div><div class="ttdeci">void nowait_int_handler()</div></div>
    694<div class="ttc" id="agb_8h_html_aa2f0235e78da2d1d94d3628d7a1afc30"><div class="ttname"><a href="gb_8h.html#aa2f0235e78da2d1d94d3628d7a1afc30">add_JOY</a></div><div class="ttdeci">void add_JOY(int_handler h) OLDCALL</div></div>
    695<div class="ttc" id="agb_2hardware_8h_html_a310aa43fbee2fd6b6b419df48acce1e0"><div class="ttname"><a href="gb_2hardware_8h.html#a310aa43fbee2fd6b6b419df48acce1e0">WX_REG</a></div><div class="ttdeci">__REG WX_REG</div><div class="ttdef"><b>Definition:</b> hardware.h:303</div></div>
    696<div class="ttc" id="agb_8h_html_a5b821b31215361265d8b7894a9ae7118"><div class="ttname"><a href="gb_8h.html#a5b821b31215361265d8b7894a9ae7118">remove_SIO</a></div><div class="ttdeci">void remove_SIO(int_handler h) OLDCALL</div></div>
    697<div class="ttc" id="agb_8h_html_a78d2fd18666afec116f176d46debb4e7"><div class="ttname"><a href="gb_8h.html#a78d2fd18666afec116f176d46debb4e7">sys_time</a></div><div class="ttdeci">volatile uint16_t sys_time</div></div>
    698<div class="ttc" id="agb_8h_html_a36f9e5d95c2d7d58f203b5ac358e25e7"><div class="ttname"><a href="gb_8h.html#a36f9e5d95c2d7d58f203b5ac358e25e7">vmemcpy</a></div><div class="ttdeci">void vmemcpy(uint8_t *dest, uint8_t *sour, uint16_t len) OLDCALL PRESERVES_REGS(b</div></div>
    699<div class="ttc" id="agb_8h_html_ad20897c5c8bd47f5d4005989bead0e55"><div class="ttname"><a href="gb_8h.html#ad20897c5c8bd47f5d4005989bead0e55">reset</a></div><div class="ttdeci">void reset()</div></div>
    700<div class="ttc" id="agb_8h_html_af6ac67037de041eb0141ba3725b1db83"><div class="ttname"><a href="gb_8h.html#af6ac67037de041eb0141ba3725b1db83">init_win</a></div><div class="ttdeci">void init_win(uint8_t c) OLDCALL PRESERVES_REGS(b</div></div>
    701<div class="ttc" id="agb_8h_html_acd186eb292d441f9389e77b545a55619"><div class="ttname"><a href="gb_8h.html#acd186eb292d441f9389e77b545a55619">wait_vbl_done</a></div><div class="ttdeci">void wait_vbl_done() PRESERVES_REGS(b</div></div>
    702<div class="ttc" id="agb_8h_html_ade5d4c955b871b0ed884273cc2b7215a"><div class="ttname"><a href="gb_8h.html#ade5d4c955b871b0ed884273cc2b7215a">cancel_pending_interrupts</a></div><div class="ttdeci">uint8_t cancel_pending_interrupts()</div><div class="ttdef"><b>Definition:</b> gb.h:321</div></div>
    703<div class="ttc" id="agb_8h_html_ad5bc3dc922707507aa51ed7f5b4a21e3"><div class="ttname"><a href="gb_8h.html#ad5bc3dc922707507aa51ed7f5b4a21e3">fill_win_rect</a></div><div class="ttdeci">void fill_win_rect(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t tile) OLDCALL PRESERVES_REGS(b</div></div>
    704<div class="ttc" id="agb_8h_html_a7ef32e7c1669aba48f235500a495baba"><div class="ttname"><a href="gb_8h.html#a7ef32e7c1669aba48f235500a495baba">get_win_data</a></div><div class="ttdeci">void get_win_data(uint8_t first_tile, uint8_t nb_tiles, uint8_t *data) OLDCALL PRESERVES_REGS(b</div></div>
    705<div class="ttc" id="agb_8h_html_aa82205e9629f984d0b3dc8055c211522"><div class="ttname"><a href="gb_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a></div><div class="ttdeci">uint8_t _map_tile_offset</div></div>
    706<div class="ttc" id="agb_8h_html_a728b9440accedc5fb3477be3d150323a"><div class="ttname"><a href="gb_8h.html#a728b9440accedc5fb3477be3d150323a">get_tiles</a></div><div class="ttdeci">void get_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *vram_addr, uint8_t *tiles) OLDCALL PRESERVES_REGS(b</div></div>
    707<div class="ttc" id="agb_8h_html_a650d2df96e69a40b70548ab468e00f25"><div class="ttname"><a href="gb_8h.html#a650d2df96e69a40b70548ab468e00f25">set_data</a></div><div class="ttdeci">void set_data(uint8_t *vram_addr, const uint8_t *data, uint16_t len) OLDCALL PRESERVES_REGS(b</div></div>
    708<div class="ttc" id="agb_8h_html_a0c70a53db1fbc0c99627da3f282befd8"><div class="ttname"><a href="gb_8h.html#a0c70a53db1fbc0c99627da3f282befd8">set_win_tile_xy</a></div><div class="ttdeci">uint8_t * set_win_tile_xy(uint8_t x, uint8_t y, uint8_t t) OLDCALL PRESERVES_REGS(b</div></div>
    709<div class="ttc" id="agb_8h_html_a9b205ee302f54cb96ee59aac6d53a91c"><div class="ttname"><a href="gb_8h.html#a9b205ee302f54cb96ee59aac6d53a91c">set_tiles</a></div><div class="ttdeci">void set_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *vram_addr, const uint8_t *tiles) OLDCALL PRESERVES_REGS(b</div></div>
    710<div class="ttc" id="agb_8h_html_aeda4515a31485c9688c4601ac5ce2d79"><div class="ttname"><a href="gb_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a></div><div class="ttdeci">void e</div><div class="ttdef"><b>Definition:</b> gb.h:608</div></div>
    711<div class="ttc" id="agb_8h_html_acc9afd0cb72e763a1213d256b942a68f"><div class="ttname"><a href="gb_8h.html#acc9afd0cb72e763a1213d256b942a68f">wait_int_handler</a></div><div class="ttdeci">void wait_int_handler()</div></div>
    712<div class="ttc" id="agb_8h_html_aa6bcf24d97f93307b30f2906251f39a0"><div class="ttname"><a href="gb_8h.html#aa6bcf24d97f93307b30f2906251f39a0">get_bkg_tiles</a></div><div class="ttdeci">void get_bkg_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *tiles) OLDCALL PRESERVES_REGS(b</div></div>
    713<div class="ttc" id="agb_8h_html_a68651e50243349b48164a8ad983dca4e"><div class="ttname"><a href="gb_8h.html#a68651e50243349b48164a8ad983dca4e">set_native_tile_data</a></div><div class="ttdeci">void set_native_tile_data(uint16_t first_tile, uint8_t nb_tiles, const uint8_t *data)</div><div class="ttdef"><b>Definition:</b> gb.h:1677</div></div>
    714<div class="ttc" id="agb_8h_html_aa82422752016328ed0765879e286019f"><div class="ttname"><a href="gb_8h.html#aa82422752016328ed0765879e286019f">add_SIO</a></div><div class="ttdeci">void add_SIO(int_handler h) OLDCALL</div></div>
    715<div class="ttc" id="agb_8h_html_a7e0cdfd6b9a2ae1b7f30384f132d8687"><div class="ttname"><a href="gb_8h.html#a7e0cdfd6b9a2ae1b7f30384f132d8687">SET_SHADOW_OAM_ADDRESS</a></div><div class="ttdeci">void SET_SHADOW_OAM_ADDRESS(void *address)</div><div class="ttdef"><b>Definition:</b> gb.h:1426</div></div>
    716<div class="ttc" id="astdint_8h_html"><div class="ttname"><a href="stdint_8h.html">stdint.h</a></div></div>
    717<div class="ttc" id="agb_8h_html_adcdec4034a14abc5be9bb88c29b947c9"><div class="ttname"><a href="gb_8h.html#adcdec4034a14abc5be9bb88c29b947c9">get_sprite_data</a></div><div class="ttdeci">void get_sprite_data(uint8_t first_tile, uint8_t nb_tiles, uint8_t *data) OLDCALL PRESERVES_REGS(b</div></div>
    718<div class="ttc" id="agb_8h_html_a9a7fd7be44bb12bc85a144b732ce02f7"><div class="ttname"><a href="gb_8h.html#a9a7fd7be44bb12bc85a144b732ce02f7">receive_byte</a></div><div class="ttdeci">void receive_byte()</div></div>
    719<div class="ttc" id="agb_8h_html_a739a212609ae60c9c56c095f96b4ea80"><div class="ttname"><a href="gb_8h.html#a739a212609ae60c9c56c095f96b4ea80">set_win_based_tiles</a></div><div class="ttdeci">void set_win_based_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *tiles, uint8_t base_tile)</div><div class="ttdef"><b>Definition:</b> gb.h:1200</div></div>
    720<div class="ttc" id="agb_8h_html_a9005b80d3315f50f0fb0e1728e7ee60f"><div class="ttname"><a href="gb_8h.html#a9005b80d3315f50f0fb0e1728e7ee60f">get_bkg_xy_addr</a></div><div class="ttdeci">uint8_t * get_bkg_xy_addr(uint8_t x, uint8_t y) OLDCALL PRESERVES_REGS(b</div></div>
    721<div class="ttc" id="agb_8h_html_a9508f919d9482d1d51534ccac212454d"><div class="ttname"><a href="gb_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a></div><div class="ttdeci">void(* int_handler)(void) NONBANKED</div><div class="ttdef"><b>Definition:</b> gb.h:161</div></div>
    722<div class="ttc" id="agb_8h_html_a874b9bd95b0a05d6a6072feabc879e45"><div class="ttname"><a href="gb_8h.html#a874b9bd95b0a05d6a6072feabc879e45">_cpu</a></div><div class="ttdeci">uint8_t _cpu</div></div>
    723<div class="ttc" id="agb_8h_html_ad77796783b3a601b6f3781dfc3983499"><div class="ttname"><a href="gb_8h.html#ad77796783b3a601b6f3781dfc3983499">disable_interrupts</a></div><div class="ttdeci">void disable_interrupts() PRESERVES_REGS(a</div></div>
    724<div class="ttc" id="agb_8h_html_a250f5339e05523912926be566e9eb8c0"><div class="ttname"><a href="gb_8h.html#a250f5339e05523912926be566e9eb8c0">_current_1bpp_colors</a></div><div class="ttdeci">uint16_t _current_1bpp_colors</div></div>
    725<div class="ttc" id="agb_8h_html_ab42c12c1d9aed3fd963248fbea9830cd"><div class="ttname"><a href="gb_8h.html#ab42c12c1d9aed3fd963248fbea9830cd">move_sprite</a></div><div class="ttdeci">void move_sprite(uint8_t nb, uint8_t x, uint8_t y)</div><div class="ttdef"><b>Definition:</b> gb.h:1519</div></div>
    726<div class="ttc" id="agb_8h_html_a711fa26feecc76dc51482b0f77062859"><div class="ttname"><a href="gb_8h.html#a711fa26feecc76dc51482b0f77062859">set_bkg_1bpp_data</a></div><div class="ttdeci">void set_bkg_1bpp_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) OLDCALL PRESERVES_REGS(b</div></div>
    727<div class="ttc" id="agb_8h_html_aa33ba8b8d381df76edf15ea251ccb675"><div class="ttname"><a href="gb_8h.html#aa33ba8b8d381df76edf15ea251ccb675">get_vram_byte</a></div><div class="ttdeci">uint8_t get_vram_byte(uint8_t *addr) OLDCALL PRESERVES_REGS(b</div></div>
    728<div class="ttc" id="agb_8h_html_a1f00bd35cd56aac84c108f5a802c3f9c"><div class="ttname"><a href="gb_8h.html#a1f00bd35cd56aac84c108f5a802c3f9c">set_1bpp_colors_ex</a></div><div class="ttdeci">void set_1bpp_colors_ex(uint8_t fgcolor, uint8_t bgcolor, uint8_t mode) OLDCALL</div></div>
    729<div class="ttc" id="agb_8h_html_a4c2e4adef74067fdbb49005bc73de937"><div class="ttname"><a href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></div><div class="ttdeci">void b</div><div class="ttdef"><b>Definition:</b> gb.h:608</div></div>
    730<div class="ttc" id="agb_8h_html_a6c59aa9a4f9ea42bed6ca6940b2741fe"><div class="ttname"><a href="gb_8h.html#a6c59aa9a4f9ea42bed6ca6940b2741fe">scroll_sprite</a></div><div class="ttdeci">void scroll_sprite(uint8_t nb, int8_t x, int8_t y)</div><div class="ttdef"><b>Definition:</b> gb.h:1535</div></div>
    731<div class="ttc" id="agb_8h_html_a539b7b45b1c2d6b2051553665c76fd36"><div class="ttname"><a href="gb_8h.html#a539b7b45b1c2d6b2051553665c76fd36">_is_GBA</a></div><div class="ttdeci">uint8_t _is_GBA</div></div>
    732<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>
    733<div class="ttc" id="agb_8h_html_a9312e7ec34162d6b6ed0875631fa6fe3"><div class="ttname"><a href="gb_8h.html#a9312e7ec34162d6b6ed0875631fa6fe3">set_interrupts</a></div><div class="ttdeci">void set_interrupts(uint8_t flags) OLDCALL PRESERVES_REGS(b</div></div>
    734<div class="ttc" id="agb_8h_html_a1f1dfeb2f802fe99f37fe91867b84456"><div class="ttname"><a href="gb_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a></div><div class="ttdeci">uint8_t h</div><div class="ttdef"><b>Definition:</b> gb.h:587</div></div>
    735<div class="ttc" id="agb_8h_html_a0a3d95ad0ab8ad213016101d2e9c3d3e"><div class="ttname"><a href="gb_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a></div><div class="ttdeci">void d</div><div class="ttdef"><b>Definition:</b> gb.h:608</div></div>
    736<div class="ttc" id="agb_8h_html_a12c2b5ac249d01caf1561cbbf3962044"><div class="ttname"><a href="gb_8h.html#a12c2b5ac249d01caf1561cbbf3962044">scroll_win</a></div><div class="ttdeci">void scroll_win(int8_t x, int8_t y)</div><div class="ttdef"><b>Definition:</b> gb.h:1329</div></div>
    737<div class="ttc" id="agb_2hardware_8h_html"><div class="ttname"><a href="gb_2hardware_8h.html">hardware.h</a></div></div>
    738<div class="ttc" id="agb_8h_html_a74c3f53fca019f7abcd1270650808849"><div class="ttname"><a href="gb_8h.html#a74c3f53fca019f7abcd1270650808849">fill_bkg_rect</a></div><div class="ttdeci">void fill_bkg_rect(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t tile) OLDCALL PRESERVES_REGS(b</div></div>
    739<div class="ttc" id="agb_8h_html_a05bf0b9f1328de7b568a19a2a428bcfe"><div class="ttname"><a href="gb_8h.html#a05bf0b9f1328de7b568a19a2a428bcfe">set_sprite_tile</a></div><div class="ttdeci">void set_sprite_tile(uint8_t nb, uint8_t tile)</div><div class="ttdef"><b>Definition:</b> gb.h:1446</div></div>
    740<div class="ttc" id="astruct_o_a_m__item__t_html_a6c269ed01269d02bcf7e36e0de3696f6"><div class="ttname"><a href="struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6">OAM_item_t::tile</a></div><div class="ttdeci">uint8_t tile</div><div class="ttdef"><b>Definition:</b> gb.h:1393</div></div>
    741<div class="ttc" id="agb_8h_html_a1f583f7a880daa6145ca78b086a209d1"><div class="ttname"><a href="gb_8h.html#a1f583f7a880daa6145ca78b086a209d1">scroll_bkg</a></div><div class="ttdeci">void scroll_bkg(int8_t x, int8_t y)</div><div class="ttdef"><b>Definition:</b> gb.h:1093</div></div>
    742<div class="ttc" id="agb_8h_html_a028d1a2e820951bb4f103d6469975ffb"><div class="ttname"><a href="gb_8h.html#a028d1a2e820951bb4f103d6469975ffb">add_TIM</a></div><div class="ttdeci">void add_TIM(int_handler h) OLDCALL</div></div>
    743<div class="ttc" id="agb_8h_html_a97b9f2fc6ac7cae97656aca940d65d44"><div class="ttname"><a href="gb_8h.html#a97b9f2fc6ac7cae97656aca940d65d44">hiramcpy</a></div><div class="ttdeci">void hiramcpy(uint8_t dst, const void *src, uint8_t n) OLDCALL PRESERVES_REGS(b</div></div>
    744<div class="ttc" id="agb_8h_html_af5c0beff7d7a7d8641b51fd95c811b2a"><div class="ttname"><a href="gb_8h.html#af5c0beff7d7a7d8641b51fd95c811b2a">get_sprite_tile</a></div><div class="ttdeci">uint8_t get_sprite_tile(uint8_t nb)</div><div class="ttdef"><b>Definition:</b> gb.h:1457</div></div>
    745<div class="ttc" id="agb_8h_html_a0d29659d08708143dd8bc720278e06b5"><div class="ttname"><a href="gb_8h.html#a0d29659d08708143dd8bc720278e06b5">add_VBL</a></div><div class="ttdeci">void add_VBL(int_handler h) OLDCALL</div></div>
    746<div class="ttc" id="agb_8h_html_a19969b36a6535fc6a966c0e5476baf9c"><div class="ttname"><a href="gb_8h.html#a19969b36a6535fc6a966c0e5476baf9c">get_mode</a></div><div class="ttdeci">uint8_t get_mode() OLDCALL PRESERVES_REGS(b</div></div>
    747<div class="ttc" id="agb_2hardware_8h_html_a1c8d52607616ef37da335447e4cbe850"><div class="ttname"><a href="gb_2hardware_8h.html#a1c8d52607616ef37da335447e4cbe850">WY_REG</a></div><div class="ttdeci">__REG WY_REG</div><div class="ttdef"><b>Definition:</b> hardware.h:301</div></div>
    748<div class="ttc" id="agb_8h_html_a2e29fdca81c28c627c2591029722e71c"><div class="ttname"><a href="gb_8h.html#a2e29fdca81c28c627c2591029722e71c">get_win_tile_xy</a></div><div class="ttdeci">uint8_t get_win_tile_xy(uint8_t x, uint8_t y) OLDCALL PRESERVES_REGS(b</div></div>
    749<div class="ttc" id="agb_8h_html_a32683767caa2a263a1f494b3605786e7"><div class="ttname"><a href="gb_8h.html#a32683767caa2a263a1f494b3605786e7">remove_LCD</a></div><div class="ttdeci">void remove_LCD(int_handler h) OLDCALL</div></div>
    750<div class="ttc" id="agb_8h_html_a142f6c7755fce8b1148faf658d8ec147"><div class="ttname"><a href="gb_8h.html#a142f6c7755fce8b1148faf658d8ec147">remove_TIM</a></div><div class="ttdeci">void remove_TIM(int_handler h) OLDCALL</div></div>
    751<div class="ttc" id="aasm_2types_8h_html_a7ed081d8dfb6902784b2fc730bbb7f96"><div class="ttname"><a href="asm_2types_8h.html#a7ed081d8dfb6902784b2fc730bbb7f96">NONBANKED</a></div><div class="ttdeci">#define NONBANKED</div><div class="ttdef"><b>Definition:</b> types.h:36</div></div>
    752<div class="ttc" id="agb_8h_html_acd5ee7a94059e6edbe9223f291bc2b46"><div class="ttname"><a href="gb_8h.html#acd5ee7a94059e6edbe9223f291bc2b46">set_win_1bpp_data</a></div><div class="ttdeci">void set_win_1bpp_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) OLDCALL PRESERVES_REGS(b</div></div>
    753<div class="ttc" id="agb_8h_html_ab472d9bbb1bcfd141374f5babc71934c"><div class="ttname"><a href="gb_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a></div><div class="ttdeci">uint8_t _submap_tile_offset</div></div>
    754<div class="ttc" id="astruct_o_a_m__item__t_html"><div class="ttname"><a href="struct_o_a_m__item__t.html">OAM_item_t</a></div><div class="ttdef"><b>Definition:</b> gb.h:1391</div></div>
    755<div class="ttc" id="agb_8h_html_aa224c9bac27c7fd268e62bdf33338a84"><div class="ttname"><a href="gb_8h.html#aa224c9bac27c7fd268e62bdf33338a84">set_2bpp_palette</a></div><div class="ttdeci">void set_2bpp_palette(uint16_t palette)</div><div class="ttdef"><b>Definition:</b> gb.h:819</div></div>
    756<div class="ttc" id="astruct_o_a_m__item__t_html_ad5ad9d3d300858bf0b1cd9e210366a18"><div class="ttname"><a href="struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18">OAM_item_t::y</a></div><div class="ttdeci">uint8_t y</div><div class="ttdef"><b>Definition:</b> gb.h:1392</div></div>
    757<div class="ttc" id="agb_8h_html_ae339d7d8d7e0ebd6691b42608c416964"><div class="ttname"><a href="gb_8h.html#ae339d7d8d7e0ebd6691b42608c416964">send_byte</a></div><div class="ttdeci">void send_byte()</div></div>
    758<div class="ttc" id="agb_8h_html_ad43fdfdb1e157b141f3fc48b78bf4386"><div class="ttname"><a href="gb_8h.html#ad43fdfdb1e157b141f3fc48b78bf4386">remove_VBL</a></div><div class="ttdeci">void remove_VBL(int_handler h) OLDCALL</div></div>
    759<div class="ttc" id="agb_8h_html_a970f18857533e062f4780f6e1c407d69"><div class="ttname"><a href="gb_8h.html#a970f18857533e062f4780f6e1c407d69">add_low_priority_TIM</a></div><div class="ttdeci">void add_low_priority_TIM(int_handler h) OLDCALL</div></div>
    760<div class="ttc" id="aasm_2types_8h_html_acb825e83a33fcc06482c59b4ab2cf961"><div class="ttname"><a href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a></div><div class="ttdeci">#define PRESERVES_REGS(...)</div><div class="ttdef"><b>Definition:</b> types.h:29</div></div>
    761<div class="ttc" id="agb_8h_html_a6e6f8eb1de2ae1ec9adeafbd7b9884db"><div class="ttname"><a href="gb_8h.html#a6e6f8eb1de2ae1ec9adeafbd7b9884db">joypad_ex</a></div><div class="ttdeci">void joypad_ex(joypads_t *joypads) OLDCALL PRESERVES_REGS(b</div></div>
    762<div class="ttc" id="agb_8h_html_a7080649e10765996c581e5b618e603b8"><div class="ttname"><a href="gb_8h.html#a7080649e10765996c581e5b618e603b8">set_vram_byte</a></div><div class="ttdeci">void set_vram_byte(uint8_t *addr, uint8_t v) OLDCALL PRESERVES_REGS(b</div></div>
    763<div class="ttc" id="agb_8h_html_aeef17768c494bcd6b67f7591329f7ff5"><div class="ttname"><a href="gb_8h.html#aeef17768c494bcd6b67f7591329f7ff5">move_win</a></div><div class="ttdeci">void move_win(uint8_t x, uint8_t y)</div><div class="ttdef"><b>Definition:</b> gb.h:1315</div></div>
    764<div class="ttc" id="astruct_o_a_m__item__t_html_a435e018f3bbc0ebaa9eaf96806d386d9"><div class="ttname"><a href="struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9">OAM_item_t::prop</a></div><div class="ttdeci">uint8_t prop</div><div class="ttdef"><b>Definition:</b> gb.h:1394</div></div>
    765<div class="ttc" id="agb_8h_html_ac2bf0c4919c30d322fa5853c896e710f"><div class="ttname"><a href="gb_8h.html#ac2bf0c4919c30d322fa5853c896e710f">set_win_data</a></div><div class="ttdeci">void set_win_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) OLDCALL PRESERVES_REGS(b</div></div>
    766<div class="ttc" id="agb_8h_html_ab3e60c92c9f8fbed855f8712187ea3ea"><div class="ttname"><a href="gb_8h.html#ab3e60c92c9f8fbed855f8712187ea3ea">set_sprite_1bpp_data</a></div><div class="ttdeci">void set_sprite_1bpp_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) OLDCALL PRESERVES_REGS(b</div></div>
    767<div class="ttc" id="agb_8h_html_a4a3e87e0917d5efb6bc7c94e9754fcd0"><div class="ttname"><a href="gb_8h.html#a4a3e87e0917d5efb6bc7c94e9754fcd0">remove_JOY</a></div><div class="ttdeci">void remove_JOY(int_handler h) OLDCALL</div></div>
    768<div class="ttc" id="agb_8h_html_a8484d346b788309ac702b7e0b1fca730"><div class="ttname"><a href="gb_8h.html#a8484d346b788309ac702b7e0b1fca730">waitpadup</a></div><div class="ttdeci">void waitpadup() PRESERVES_REGS(a</div></div>
    769<div class="ttc" id="agb_8h_html_af80befa3cad9cae361c7cf4fffb3a8de"><div class="ttname"><a href="gb_8h.html#af80befa3cad9cae361c7cf4fffb3a8de">set_win_submap</a></div><div class="ttdeci">void set_win_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w) OLDCALL</div><div class="ttdef"><b>Definition:</b> sms.h:588</div></div>
    770<div class="ttc" id="agb_8h_html_a97bab71effd5e4e386629cb6ca5816cf"><div class="ttname"><a href="gb_8h.html#a97bab71effd5e4e386629cb6ca5816cf">vmemset</a></div><div class="ttdeci">void vmemset(void *s, uint8_t c, size_t n) OLDCALL PRESERVES_REGS(b</div></div>
    771<div class="ttc" id="agb_8h_html_a46058204097dd305bf72bc20ea7f7a3b"><div class="ttname"><a href="gb_8h.html#a46058204097dd305bf72bc20ea7f7a3b">init_bkg</a></div><div class="ttdeci">void init_bkg(uint8_t c) OLDCALL PRESERVES_REGS(b</div></div>
    772<div class="ttc" id="agb_2hardware_8h_html_a244b162cf13bbcb4fe842d7e298b39c2"><div class="ttname"><a href="gb_2hardware_8h.html#a244b162cf13bbcb4fe842d7e298b39c2">SCY_REG</a></div><div class="ttdeci">__REG SCY_REG</div><div class="ttdef"><b>Definition:</b> hardware.h:285</div></div>
    773<div class="ttc" id="agb_8h_html_ad22c51635d052399bbbe1777999c794d"><div class="ttname"><a href="gb_8h.html#ad22c51635d052399bbbe1777999c794d">hide_sprite</a></div><div class="ttdeci">void hide_sprite(uint8_t nb)</div><div class="ttdef"><b>Definition:</b> gb.h:1545</div></div>
    774<div class="ttc" id="agb_8h_html_a74ee8f0a3495508c90de4ce246b81060"><div class="ttname"><a href="gb_8h.html#a74ee8f0a3495508c90de4ce246b81060">set_bkg_tile_xy</a></div><div class="ttdeci">uint8_t * set_bkg_tile_xy(uint8_t x, uint8_t y, uint8_t t) OLDCALL PRESERVES_REGS(b</div></div>
    775<div class="ttc" id="astructjoypads__t_html_ab281d26e5197e49633274f412b164295"><div class="ttname"><a href="structjoypads__t.html#ab281d26e5197e49633274f412b164295">joypads_t::joy3</a></div><div class="ttdeci">uint8_t joy3</div><div class="ttdef"><b>Definition:</b> gb.h:619</div></div>
    776<div class="ttc" id="agb_8h_html_adcb394299a1033616fc7d2faec8bd6ad"><div class="ttname"><a href="gb_8h.html#adcb394299a1033616fc7d2faec8bd6ad">set_1bpp_colors</a></div><div class="ttdeci">void set_1bpp_colors(uint8_t fgcolor, uint8_t bgcolor)</div><div class="ttdef"><b>Definition:</b> gb.h:825</div></div>
    777<!-- HTML footer for doxygen 1.8.14-->
    778<!-- start footer part -->
    779<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
    780</div>
    781</body>
    782</html>