mirror of
https://github.com/gbdk-2020/gbdk-2020.git
synced 2026-03-04 22:44:54 +01:00
615 lines
120 KiB
HTML
615 lines
120 KiB
HTML
<!-- HTML header for doxygen 1.8.14-->
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="cache-control" content="max-age=86400"/>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>GBDK 2020 Docs: gbdk-lib/include/nes/nes.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">GBDK 2020 Docs
|
|
 <span id="projectnumber">4.3.0</span>
|
|
</div>
|
|
<div id="projectbrief">API Documentation for GBDK 2020</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('nes_8h_source.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">nes.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="nes_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>  </div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#ifndef _NES_H</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#define _NES_H</span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <types.h></span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <<a class="code" href="stdint_8h.html">stdint.h</a>></span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <<a class="code" href="version_8h.html">gbdk/version.h</a>></span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <<a class="code" href="nes_2hardware_8h.html">nes/hardware.h</a>></span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <<a class="code" href="rgb__to__nes__macro_8h.html">nes/rgb_to_nes_macro.h</a>></span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  </div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="nes_8h.html#a418f95f7c7744aa18840d4101388916a"> 13</a></span> <span class="preprocessor">#define NINTENDO_NES</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// Here NINTENDO means Game Boy & related clones</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#ifdef NINTENDO</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#undef NINTENDO</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifdef SEGA</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#undef SEGA</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#ifdef MSX</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#undef MSX</span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="nes_8h.html#a1e73068b3ffdb8436eaa3362f104ba74"> 28</a></span> <span class="preprocessor">#define SYSTEM_BITS_NTSC 0x00</span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="nes_8h.html#a599f3df346be94f25498749e2442bde8"> 29</a></span> <span class="preprocessor">#define SYSTEM_BITS_PAL 0x40</span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="nes_8h.html#aa370f208d677a232346ddf00a8ef7243"> 30</a></span> <span class="preprocessor">#define SYSTEM_BITS_DENDY 0x80</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#a78fd7730ed37db84f52bcfc9ff41873f">_SYSTEM</a>;</div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="nes_8h.html#a99bca2df4c6fde16a659797b4e584036"> 33</a></span> <span class="preprocessor">#define SYSTEM_60HZ 0x00</span></div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="nes_8h.html#ad6329c19927cf02579e2503e40c0bbde"> 34</a></span> <span class="preprocessor">#define SYSTEM_50HZ 0x01</span></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="nes_8h.html#a4a118ad3ee36468a3fa616977a64864e"> 36</a></span> <span class="preprocessor">#define RGB(r,g,b) RGB_TO_NES(((r) | ((g) << 2) | ((b) << 4)))</span></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="nes_8h.html#a7d2ed0f10b2b74123a544327bbfd7564"> 37</a></span> <span class="preprocessor">#define RGB8(r,g,b) RGB_TO_NES((((r) >> 6) | (((g) >> 6) << 2) | (((b) >> 6) << 4)))</span></div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="nes_8h.html#ab5a6e450fcf10402278fe585a421dbbd"> 38</a></span> <span class="preprocessor">#define RGBHTML(RGB24bit) RGB_TO_NES((((RGB24bit) >> 22) | ((((RGB24bit) & 0xFFFF) >> 14) << 2) | ((((RGB24bit) & 0xFF) >> 6) << 4)))</span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="nes_8h.html#aa039288455af8a3812a35aa1e7b903e4"> 45</a></span> <span class="preprocessor">#define RGB_RED 0x16 </span><span class="comment">// EGA12</span></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="nes_8h.html#ae29b6947ac7dca7db513e59f1cfcbf51"> 46</a></span> <span class="preprocessor">#define RGB_DARKRED 0x06 </span><span class="comment">// EGA4</span></div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="nes_8h.html#ab6c97468034c02fe204fd37036d9be15"> 47</a></span> <span class="preprocessor">#define RGB_GREEN 0x2A </span><span class="comment">// EGA10</span></div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="nes_8h.html#a1ee7a5d8fd635e9132a2820a60f9789d"> 48</a></span> <span class="preprocessor">#define RGB_DARKGREEN 0x1A </span><span class="comment">// EGA2</span></div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="nes_8h.html#a0eff802f1ca228046476209dc01c76ad"> 49</a></span> <span class="preprocessor">#define RGB_BLUE 0x12 </span><span class="comment">// EGA9</span></div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="nes_8h.html#ad44385fc245bbabf6da787dcc8930385"> 50</a></span> <span class="preprocessor">#define RGB_DARKBLUE 0x02 </span><span class="comment">// EGA1</span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="nes_8h.html#ad74a18fca945f257dc9d1b99f9edbd40"> 51</a></span> <span class="preprocessor">#define RGB_YELLOW 0x28 </span><span class="comment">// EGA14</span></div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="nes_8h.html#a2727da9f8c0b09a67375575a00186e2a"> 52</a></span> <span class="preprocessor">#define RGB_DARKYELLOW 0x18 </span><span class="comment">// EGA6</span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="nes_8h.html#a2ce30ac984869b55594447722b9d0579"> 53</a></span> <span class="preprocessor">#define RGB_CYAN 0x2C </span><span class="comment">// EGA11</span></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="nes_8h.html#ae4fe0c6cfa46b0c4804425f23bb48f4c"> 54</a></span> <span class="preprocessor">#define RGB_AQUA 0x1C </span><span class="comment">// EGA3</span></div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="nes_8h.html#a59fb596d3d65cfc4d3cb7e5044b8b10a"> 55</a></span> <span class="preprocessor">#define RGB_PINK 0x24 </span><span class="comment">// EGA13</span></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="nes_8h.html#a9d5a5f880df6bd4b64e6546839d41101"> 56</a></span> <span class="preprocessor">#define RGB_PURPLE 0x14 </span><span class="comment">// EGA5</span></div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="nes_8h.html#ae168f0f9864d4ed4be7807b9783f17f1"> 57</a></span> <span class="preprocessor">#define RGB_BLACK 0x0F </span><span class="comment">// EGA0</span></div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="nes_8h.html#a29b47e2361025eabcdc3bcbff2308044"> 58</a></span> <span class="preprocessor">#define RGB_DARKGRAY 0x00 </span><span class="comment">// EGA8</span></div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="nes_8h.html#a80efbf7b13421922fb174f3e6a3e235c"> 59</a></span> <span class="preprocessor">#define RGB_LIGHTGRAY 0x10 </span><span class="comment">// EGA7</span></div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="nes_8h.html#ac1771f95d9887118764bd8a074e537e1"> 60</a></span> <span class="preprocessor">#define RGB_WHITE 0x30 </span><span class="comment">// EGA15</span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  </div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="nes_8h.html#aa1843c9b694489b612595631315c1c21"> 62</a></span> <span class="keyword">typedef</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#aa1843c9b694489b612595631315c1c21">palette_color_t</a>;</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="nes_8h.html#ab38fda7bad70c80c390aa7017c48b405"> 64</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#ab38fda7bad70c80c390aa7017c48b405">set_bkg_palette</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_palette, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_palettes, <span class="keyword">const</span> <a class="code" href="cgb_8h.html#af868d7cdbd052c6b972ef137e02f6495">palette_color_t</a> *rgb_data) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="nes_8h.html#a7c75cb6992e73971f24cee46aa31184b"> 66</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a7c75cb6992e73971f24cee46aa31184b">set_sprite_palette</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_palette, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_palettes, <span class="keyword">const</span> <a class="code" href="cgb_8h.html#af868d7cdbd052c6b972ef137e02f6495">palette_color_t</a> *rgb_data) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="nes_8h.html#aaca025055febe9f4c605bfac12812d0e"> 68</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#aaca025055febe9f4c605bfac12812d0e">set_bkg_palette_entry</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> palette, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> entry, <a class="code" href="cgb_8h.html#af868d7cdbd052c6b972ef137e02f6495">palette_color_t</a> rgb_data) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  </div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="nes_8h.html#ad2adcd1b3390b43cdade1b73d95123a0"> 70</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#ad2adcd1b3390b43cdade1b73d95123a0">set_sprite_palette_entry</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> palette, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> entry, <a class="code" href="cgb_8h.html#af868d7cdbd052c6b972ef137e02f6495">palette_color_t</a> rgb_data) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  </div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="nes_8h.html#a05ca817ab32f6da612c3ae26db5abf02"> 85</a></span> <span class="preprocessor">#define J_UP 0x08U</span></div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="nes_8h.html#ae032c5c544196e37ec0432f6cfad7904"> 86</a></span> <span class="preprocessor">#define J_DOWN 0x04U</span></div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="nes_8h.html#ac70894fecac30c1ca9917f07373cf81c"> 87</a></span> <span class="preprocessor">#define J_LEFT 0x02U</span></div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="nes_8h.html#a3bad91d11ae09ffcbb3cb0a81873d325"> 88</a></span> <span class="preprocessor">#define J_RIGHT 0x01U</span></div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="nes_8h.html#a31af766e3b598eb7a6b63f55a4988e7a"> 89</a></span> <span class="preprocessor">#define J_A 0x80U</span></div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="nes_8h.html#ae47e59a309120f9420993f26816b5e6d"> 90</a></span> <span class="preprocessor">#define J_B 0x40U</span></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="nes_8h.html#ab416a9d96d1582490828f4bac78a8b5b"> 91</a></span> <span class="preprocessor">#define J_SELECT 0x20U</span></div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="nes_8h.html#ab769c6e20778298be8bc3321476ceb53"> 92</a></span> <span class="preprocessor">#define J_START 0x10U</span></div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="nes_8h.html#acc9798fc62b5d626c91c8b0f20b522ff"> 98</a></span> <span class="preprocessor">#define M_DRAWING 0x01U</span></div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="nes_8h.html#af0e30d6af308ffe5a025fbe85da40f6f"> 99</a></span> <span class="preprocessor">#define M_TEXT_OUT 0x02U</span></div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="nes_8h.html#a908826e7180f94a5988ceb8633313a2e"> 100</a></span> <span class="preprocessor">#define M_TEXT_INOUT 0x03U</span></div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="nes_8h.html#a04382de20738146fe873ddfb0585052b"> 106</a></span> <span class="preprocessor">#define M_NO_SCROLL 0x04U</span></div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="nes_8h.html#aca2855edd2d28f66be551a0f7ec23f07"> 110</a></span> <span class="preprocessor">#define M_NO_INTERP 0x08U</span></div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="nes_8h.html#a54572cf6791463b6d60623837e0bb5a6"> 116</a></span> <span class="preprocessor">#define S_PALETTE 0x10U</span></div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="nes_8h.html#ae97793b4039609f93b0f7f8bddb18011"> 120</a></span> <span class="preprocessor">#define S_FLIPX 0x40U</span></div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="nes_8h.html#a4bbb9cd6c38b2317de5256d1d889c63b"> 124</a></span> <span class="preprocessor">#define S_FLIPY 0x80U</span></div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="nes_8h.html#a9506d04c2ec7d2442a52054f67d2b32f"> 129</a></span> <span class="preprocessor">#define S_PRIORITY 0x20U</span></div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="nes_8h.html#a826169925ff12d52f0a0d51f14d2936b"> 133</a></span> <span class="preprocessor">#define S_PAL(n) n</span></div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  </div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="comment">/* DMG Palettes */</span></div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="nes_8h.html#ab311e53739c992294ae07ca506a924ad"> 136</a></span> <span class="preprocessor">#define DMG_BLACK 0x03</span></div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="nes_8h.html#a45d13a674e169dd83df7e1f46513ccba"> 137</a></span> <span class="preprocessor">#define DMG_DARK_GRAY 0x02</span></div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="nes_8h.html#a8ccd6732d3bdf390cc0943e8567341f3"> 138</a></span> <span class="preprocessor">#define DMG_LITE_GRAY 0x01</span></div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="nes_8h.html#a11cedc2ee58acfbbfc48dfb2b9a551b3"> 139</a></span> <span class="preprocessor">#define DMG_WHITE 0x00</span></div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="nes_8h.html#a9727caafc483ba6ec65e9344b033d684"> 159</a></span> <span class="preprocessor">#define DMG_PALETTE(C0, C1, C2, C3) ((uint8_t)((((C3) & 0x03) << 6) | (((C2) & 0x03) << 4) | (((C1) & 0x03) << 2) | ((C0) & 0x03)))</span></div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  </div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment">/* Limits */</span></div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="nes_8h.html#ada0cc738d27aad251151e69cb8d250e1"> 164</a></span> <span class="preprocessor">#define SCREENWIDTH DEVICE_SCREEN_PX_WIDTH</span></div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="nes_8h.html#ae189e98d0ef9263c37869ce1ff3710a5"> 167</a></span> <span class="preprocessor">#define SCREENHEIGHT DEVICE_SCREEN_PX_HEIGHT</span></div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  </div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="nes_8h.html#a9508f919d9482d1d51534ccac212454d"> 171</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="nes_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>)(void) <a class="code" href="asm_2types_8h.html#a7ed081d8dfb6902784b2fc730bbb7f96">NONBANKED</a>;</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  </div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="nes_8h.html#a5cc6bac1f2f0e9f71c7826a3ee8f35d0"> 180</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a5cc6bac1f2f0e9f71c7826a3ee8f35d0">remove_VBL</a>(<a class="code" href="nes_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  </div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="nes_8h.html#aca7413d0441f3ce1f30cca15ce4678ab"> 185</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#aca7413d0441f3ce1f30cca15ce4678ab">remove_LCD</a>(<a class="code" href="nes_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  </div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="nes_8h.html#a44e3fc6c86253db08fa99fdc448b1df0"> 215</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a44e3fc6c86253db08fa99fdc448b1df0">add_VBL</a>(<a class="code" href="nes_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  </div>
|
|
<div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="nes_8h.html#ad572dce0c703ed78eadcf5cd6cce7dd2"> 249</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#ad572dce0c703ed78eadcf5cd6cce7dd2">add_LCD</a>(<a class="code" href="nes_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="code" href="gb_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  </div>
|
|
<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="nes_8h.html#a00573fe55b0f1e2dd03b9647dfe15636"> 253</a></span> <span class="preprocessor">#define MAX_LCD_ISR_CALLS 4</span></div>
|
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  </div>
|
|
<div class="line"><a name="l00261"></a><span class="lineno"><a class="line" href="nes_8h.html#ade75173639b6e7be241b8eb31fe825ef"> 261</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#ade75173639b6e7be241b8eb31fe825ef">mode</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> m) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  </div>
|
|
<div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="nes_8h.html#abac3c04dc3c056618aca0a0052f2cb93"> 267</a></span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#abac3c04dc3c056618aca0a0052f2cb93">get_mode</a>(<span class="keywordtype">void</span>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  </div>
|
|
<div class="line"><a name="l00272"></a><span class="lineno"><a class="line" href="nes_8h.html#a4093fb5f45f807fe8d4a45121f3fffc5"> 272</a></span> <span class="keyword">inline</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#a4093fb5f45f807fe8d4a45121f3fffc5">get_system</a>(<span class="keywordtype">void</span>) {</div>
|
|
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keywordflow">if</span>(<a class="code" href="nes_8h.html#a78fd7730ed37db84f52bcfc9ff41873f">_SYSTEM</a> == <a class="code" href="nes_8h.html#a1e73068b3ffdb8436eaa3362f104ba74">SYSTEM_BITS_NTSC</a>)</div>
|
|
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keywordflow">return</span> <a class="code" href="nes_8h.html#a99bca2df4c6fde16a659797b4e584036">SYSTEM_60HZ</a>;</div>
|
|
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">else</span></div>
|
|
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keywordflow">return</span> <a class="code" href="nes_8h.html#ad6329c19927cf02579e2503e40c0bbde">SYSTEM_50HZ</a>;</div>
|
|
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> }</div>
|
|
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  </div>
|
|
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <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="nes_8h.html#a78d2fd18666afec116f176d46debb4e7">sys_time</a>;</div>
|
|
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  </div>
|
|
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <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="nes_8h.html#a06bab3f8bce032de0d21fbd86e14c3f3">_current_bank</a>;</div>
|
|
<div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="nes_8h.html#ae042588f20bf5a2349c8ad8716245233"> 298</a></span> <span class="preprocessor">#define CURRENT_BANK _current_bank</span></div>
|
|
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  </div>
|
|
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <span class="preprocessor">#ifndef BANK</span></div>
|
|
<div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="nes_8h.html#a42705001e2b9897f5167b67fb36c69dd"> 310</a></span> <span class="preprocessor">#define BANK(VARNAME) ( (uint8_t) & __bank_ ## VARNAME )</span></div>
|
|
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  </div>
|
|
<div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="nes_8h.html#a086293f2afb4c7945460a4496b20aea3"> 325</a></span> <span class="preprocessor">#define BANKREF(VARNAME) void __func_ ## VARNAME(void) __banked __naked { \</span></div>
|
|
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="preprocessor">__asm \</span></div>
|
|
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> <span class="preprocessor"> .local b___func_ ## VARNAME \</span></div>
|
|
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> <span class="preprocessor"> ___bank_ ## VARNAME = b___func_ ## VARNAME \</span></div>
|
|
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> <span class="preprocessor"> .globl ___bank_ ## VARNAME \</span></div>
|
|
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> <span class="preprocessor">__endasm; \</span></div>
|
|
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> <span class="preprocessor">}</span></div>
|
|
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  </div>
|
|
<div class="line"><a name="l00342"></a><span class="lineno"><a class="line" href="nes_8h.html#a261bba55a07b802baf99346feadd9852"> 342</a></span> <span class="preprocessor">#define BANKREF_EXTERN(VARNAME) extern const void __bank_ ## VARNAME;</span></div>
|
|
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  </div>
|
|
<div class="line"><a name="l00347"></a><span class="lineno"><a class="line" href="nes_8h.html#a412db28bcf6bda7f235d7c5d3c9d52c0"> 347</a></span> <span class="preprocessor">#define SWITCH_ROM_DUMMY(b)</span></div>
|
|
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  </div>
|
|
<div class="line"><a name="l00352"></a><span class="lineno"><a class="line" href="nes_8h.html#a2d29df5dc3791dbf77488b3322b71d6c"> 352</a></span> <span class="preprocessor">#define SWITCH_ROM_UNROM(b) _switch_prg0(b)</span></div>
|
|
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  </div>
|
|
<div class="line"><a name="l00359"></a><span class="lineno"><a class="line" href="nes_8h.html#a1e22a3b60368bb5f3705d625ac2d09cc"> 359</a></span> <span class="preprocessor">#define SWITCH_ROM SWITCH_ROM_UNROM</span></div>
|
|
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  </div>
|
|
<div class="line"><a name="l00365"></a><span class="lineno"><a class="line" href="nes_8h.html#a121feb0c32d124562f52398aa9656e7b"> 365</a></span> <span class="preprocessor">#define SWITCH_RAM(b) 0</span></div>
|
|
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  </div>
|
|
<div class="line"><a name="l00370"></a><span class="lineno"><a class="line" href="nes_8h.html#a0e9c88657beaac946231a4801481b97f"> 370</a></span> <span class="preprocessor">#define ENABLE_RAM</span></div>
|
|
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  </div>
|
|
<div class="line"><a name="l00375"></a><span class="lineno"><a class="line" href="nes_8h.html#a649d27b5587de16a66176e03a1b8ebd5"> 375</a></span> <span class="preprocessor">#define DISABLE_RAM</span></div>
|
|
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  </div>
|
|
<div class="line"><a name="l00381"></a><span class="lineno"><a class="line" href="nes_8h.html#a206e8e54468237daed636cad12a70055"> 381</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a206e8e54468237daed636cad12a70055">delay</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> <a class="code" href="gb_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  </div>
|
|
<div class="line"><a name="l00392"></a><span class="lineno"><a class="line" href="nes_8h.html#a8feed006393f8c8c070b2d29d91ec8aa"> 392</a></span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#a8feed006393f8c8c070b2d29d91ec8aa">joypad</a>(<span class="keywordtype">void</span>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  </div>
|
|
<div class="line"><a name="l00402"></a><span class="lineno"><a class="line" href="nes_8h.html#a0029224262fa919f42f3337c298bda10"> 402</a></span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#a0029224262fa919f42f3337c298bda10">waitpad</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> mask) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  </div>
|
|
<div class="line"><a name="l00407"></a><span class="lineno"><a class="line" href="nes_8h.html#ae192e07aabd7c8b822db52c9bc1e542d"> 407</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#ae192e07aabd7c8b822db52c9bc1e542d">waitpadup</a>(<span class="keywordtype">void</span>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  </div>
|
|
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
|
|
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> npads;</div>
|
|
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  <span class="keyword">union </span>{</div>
|
|
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <span class="keyword">struct </span>{</div>
|
|
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> joy0, joy1, joy2, joy3;</div>
|
|
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  };</div>
|
|
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> joypads[4];</div>
|
|
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  };</div>
|
|
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span> } <a class="code" href="structjoypads__t.html">joypads_t</a>;</div>
|
|
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  </div>
|
|
<div class="line"><a name="l00432"></a><span class="lineno"><a class="line" href="nes_8h.html#a54e98484026ce279ea5d3d0d7a3fb87a"> 432</a></span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#a54e98484026ce279ea5d3d0d7a3fb87a">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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  </div>
|
|
<div class="line"><a name="l00438"></a><span class="lineno"><a class="line" href="nes_8h.html#af3ee931a6c78c8716cadfedd9f627b6e"> 438</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#af3ee931a6c78c8716cadfedd9f627b6e">joypad_ex</a>(<a class="code" href="structjoypads__t.html">joypads_t</a> * joypads) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  </div>
|
|
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  </div>
|
|
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  </div>
|
|
<div class="line"><a name="l00450"></a><span class="lineno"><a class="line" href="nes_8h.html#a232883ed798bce00a03b09705c67deef"> 450</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a232883ed798bce00a03b09705c67deef">enable_interrupts</a>(<span class="keywordtype">void</span>) {</div>
|
|
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  __asm__(<span class="stringliteral">"cli"</span>);</div>
|
|
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span> }</div>
|
|
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  </div>
|
|
<div class="line"><a name="l00466"></a><span class="lineno"><a class="line" href="nes_8h.html#a2b17818c7916bc2ff75196ff0627b1e9"> 466</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a2b17818c7916bc2ff75196ff0627b1e9">disable_interrupts</a>(<span class="keywordtype">void</span>) {</div>
|
|
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  __asm__(<span class="stringliteral">"sei"</span>);</div>
|
|
<div class="line"><a name="l00468"></a><span class="lineno"> 468</span> }</div>
|
|
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  </div>
|
|
<div class="line"><a name="l00479"></a><span class="lineno"><a class="line" href="nes_8h.html#a73b4e18d7f5eaf5398bf0241c9c21586"> 479</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a73b4e18d7f5eaf5398bf0241c9c21586">vsync</a>(<span class="keywordtype">void</span>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  </div>
|
|
<div class="line"><a name="l00483"></a><span class="lineno"><a class="line" href="nes_8h.html#a64538fb78ce148a1a7045245f084a710"> 483</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a64538fb78ce148a1a7045245f084a710">wait_vbl_done</a>(<span class="keywordtype">void</span>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  </div>
|
|
<div class="line"><a name="l00489"></a><span class="lineno"><a class="line" href="nes_8h.html#a42756a31babdcb4b7e692960a069b13b"> 489</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a42756a31babdcb4b7e692960a069b13b">display_on</a>(<span class="keywordtype">void</span>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  </div>
|
|
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a98aab5a3d75429f9e7861a8100629782">display_off</a>(<span class="keywordtype">void</span>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  </div>
|
|
<div class="line"><a name="l00498"></a><span class="lineno"><a class="line" href="nes_8h.html#a70802f5e313285aa3ea04b0f73b2700f"> 498</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a70802f5e313285aa3ea04b0f73b2700f">refresh_OAM</a>(<span class="keywordtype">void</span>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  </div>
|
|
<div class="line"><a name="l00503"></a><span class="lineno"><a class="line" href="nes_8h.html#a5ae6b05b3e1559c97f0d1b2daaaa0ee4"> 503</a></span> <span class="preprocessor">#define DISPLAY_ON \</span></div>
|
|
<div class="line"><a name="l00504"></a><span class="lineno"> 504</span> <span class="preprocessor"> display_on();</span></div>
|
|
<div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  </div>
|
|
<div class="line"><a name="l00509"></a><span class="lineno"><a class="line" href="nes_8h.html#ad2ec9831813c5e7069917aa4455af682"> 509</a></span> <span class="preprocessor">#define DISPLAY_OFF \</span></div>
|
|
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span> <span class="preprocessor"> display_off();</span></div>
|
|
<div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  </div>
|
|
<div class="line"><a name="l00515"></a><span class="lineno"><a class="line" href="nes_8h.html#a0659212acd317ccdebc0ecf435df330f"> 515</a></span> <span class="preprocessor">#define HIDE_LEFT_COLUMN \</span></div>
|
|
<div class="line"><a name="l00516"></a><span class="lineno"> 516</span> <span class="preprocessor"> shadow_PPUMASK &= ~(PPUMASK_SHOW_BG_LC | PPUMASK_SHOW_SPR_LC); \</span></div>
|
|
<div class="line"><a name="l00517"></a><span class="lineno"> 517</span> <span class="preprocessor"></span> </div>
|
|
<div class="line"><a name="l00521"></a><span class="lineno"><a class="line" href="nes_8h.html#a5497c2255a9474d397446710189eacbe"> 521</a></span> <span class="preprocessor">#define SHOW_LEFT_COLUMN \</span></div>
|
|
<div class="line"><a name="l00522"></a><span class="lineno"> 522</span> <span class="preprocessor"> shadow_PPUMASK |= (PPUMASK_SHOW_BG_LC | PPUMASK_SHOW_SPR_LC);</span></div>
|
|
<div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  </div>
|
|
<div class="line"><a name="l00527"></a><span class="lineno"><a class="line" href="nes_8h.html#a3f3f7bd5879b807acbb203ce2aaa1e5d"> 527</a></span> <span class="preprocessor">#define SET_BORDER_COLOR(C)</span></div>
|
|
<div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  </div>
|
|
<div class="line"><a name="l00532"></a><span class="lineno"><a class="line" href="nes_8h.html#a8e3f36aa68ac036695816757f2a1322c"> 532</a></span> <span class="preprocessor">#define SHOW_BKG \</span></div>
|
|
<div class="line"><a name="l00533"></a><span class="lineno"> 533</span> <span class="preprocessor"> shadow_PPUMASK |= PPUMASK_SHOW_BG;</span></div>
|
|
<div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  </div>
|
|
<div class="line"><a name="l00538"></a><span class="lineno"><a class="line" href="nes_8h.html#a6d25f7c43b1cbbb48b95cda7ab2c3141"> 538</a></span> <span class="preprocessor">#define HIDE_BKG \</span></div>
|
|
<div class="line"><a name="l00539"></a><span class="lineno"> 539</span> <span class="preprocessor"> shadow_PPUMASK &= ~PPUMASK_SHOW_BG;</span></div>
|
|
<div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  </div>
|
|
<div class="line"><a name="l00544"></a><span class="lineno"><a class="line" href="nes_8h.html#a495bc9f405f916f02ad5d97e6e730134"> 544</a></span> <span class="preprocessor">#define SHOW_SPRITES \</span></div>
|
|
<div class="line"><a name="l00545"></a><span class="lineno"> 545</span> <span class="preprocessor"> shadow_PPUMASK |= PPUMASK_SHOW_SPR;</span></div>
|
|
<div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  </div>
|
|
<div class="line"><a name="l00550"></a><span class="lineno"><a class="line" href="nes_8h.html#a69ef98aee664b8abd8d1a3d45f016dda"> 550</a></span> <span class="preprocessor">#define HIDE_SPRITES \</span></div>
|
|
<div class="line"><a name="l00551"></a><span class="lineno"> 551</span> <span class="preprocessor"> shadow_PPUMASK &= ~PPUMASK_SHOW_SPR;</span></div>
|
|
<div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  </div>
|
|
<div class="line"><a name="l00556"></a><span class="lineno"><a class="line" href="nes_8h.html#af91d252f07f4764996154820f970c101"> 556</a></span> <span class="preprocessor">#define SPRITES_8x16 \</span></div>
|
|
<div class="line"><a name="l00557"></a><span class="lineno"> 557</span> <span class="preprocessor"> shadow_PPUCTRL |= PPUCTRL_SPR_8X16;</span></div>
|
|
<div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  </div>
|
|
<div class="line"><a name="l00562"></a><span class="lineno"><a class="line" href="nes_8h.html#aa87bec0d134136fdb727f52cb773b792"> 562</a></span> <span class="preprocessor">#define SPRITES_8x8 \</span></div>
|
|
<div class="line"><a name="l00563"></a><span class="lineno"> 563</span> <span class="preprocessor"> shadow_PPUCTRL &= ~PPUCTRL_SPR_8X16;</span></div>
|
|
<div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  </div>
|
|
<div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  </div>
|
|
<div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  </div>
|
|
<div class="line"><a name="l00573"></a><span class="lineno"><a class="line" href="nes_8h.html#a49635449fc261be2481b72d0165f12ad"> 573</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a49635449fc261be2481b72d0165f12ad">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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  </div>
|
|
<div class="line"><a name="l00578"></a><span class="lineno"><a class="line" href="nes_8h.html#aa81b3eb2f6ec56d70ccd27c7deae4098"> 578</a></span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * <a class="code" href="nes_8h.html#aa81b3eb2f6ec56d70ccd27c7deae4098">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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  </div>
|
|
<div class="line"><a name="l00580"></a><span class="lineno"><a class="line" href="nes_8h.html#a67f80e65620470b55a4950e2966eb868"> 580</a></span> <span class="preprocessor">#define COMPAT_PALETTE(C0,C1,C2,C3) ((uint8_t)(((C3) << 6) | ((C2) << 4) | ((C1) << 2) | (C0)))</span></div>
|
|
<div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  </div>
|
|
<div class="line"><a name="l00584"></a><span class="lineno"><a class="line" href="nes_8h.html#aa224c9bac27c7fd268e62bdf33338a84"> 584</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#aa224c9bac27c7fd268e62bdf33338a84">set_2bpp_palette</a>(<a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> palette) {</div>
|
|
<div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  palette;</div>
|
|
<div class="line"><a name="l00586"></a><span class="lineno"> 586</span> }</div>
|
|
<div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  </div>
|
|
<div class="line"><a name="l00588"></a><span class="lineno"> 588</span> <span class="keyword">extern</span> <a class="code" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> <a class="code" href="nes_8h.html#a250f5339e05523912926be566e9eb8c0">_current_1bpp_colors</a>;</div>
|
|
<div class="line"><a name="l00589"></a><span class="lineno"><a class="line" href="nes_8h.html#a050b8b27fe6af3efcc17cd804f808d7a"> 589</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a050b8b27fe6af3efcc17cd804f808d7a">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="nes_8h.html#ade75173639b6e7be241b8eb31fe825ef">mode</a>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00590"></a><span class="lineno"><a class="line" href="nes_8h.html#adcb394299a1033616fc7d2faec8bd6ad"> 590</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_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>
|
|
<div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  <a class="code" href="nes_8h.html#a050b8b27fe6af3efcc17cd804f808d7a">set_1bpp_colors_ex</a>(fgcolor, bgcolor, 0);</div>
|
|
<div class="line"><a name="l00592"></a><span class="lineno"> 592</span> }</div>
|
|
<div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  </div>
|
|
<div class="line"><a name="l00603"></a><span class="lineno"><a class="line" href="nes_8h.html#a4eb0e4c6c672efdeb49c3cdba2fa4d4a"> 603</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a4eb0e4c6c672efdeb49c3cdba2fa4d4a">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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00604"></a><span class="lineno"><a class="line" href="nes_8h.html#ab94bfec130df50d9cb808142f94603a5"> 604</a></span> <span class="preprocessor">#define set_bkg_2bpp_data set_bkg_data</span></div>
|
|
<div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  </div>
|
|
<div class="line"><a name="l00617"></a><span class="lineno"><a class="line" href="nes_8h.html#a92d990e45d1cc8e28d98a87b0b9d70ff"> 617</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a92d990e45d1cc8e28d98a87b0b9d70ff">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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  </div>
|
|
<div class="line"><a name="l00637"></a><span class="lineno"><a class="line" href="nes_8h.html#a6ab3fa75195d44d8d7e867d4a4cb1131"> 637</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a6ab3fa75195d44d8d7e867d4a4cb1131">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#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00638"></a><span class="lineno"><a class="line" href="nes_8h.html#a55f82ff980398dd97036fd936ebd727e"> 638</a></span> <span class="preprocessor">#define set_tile_map set_bkg_tiles</span></div>
|
|
<div class="line"><a name="l00639"></a><span class="lineno"> 639</span>  </div>
|
|
<div class="line"><a name="l00663"></a><span class="lineno"><a class="line" href="nes_8h.html#a0254d6e23d4202cb070b1fe54c6a7210"> 663</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a0254d6e23d4202cb070b1fe54c6a7210">set_bkg_attributes_nes16x16</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#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *attributes) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00664"></a><span class="lineno"> 664</span>  </div>
|
|
<div class="line"><a name="l00688"></a><span class="lineno"><a class="line" href="nes_8h.html#a8278909fae5ed243e03f8815ac95bab3"> 688</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a8278909fae5ed243e03f8815ac95bab3">set_bkg_attributes</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#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *attributes)</div>
|
|
<div class="line"><a name="l00689"></a><span class="lineno"> 689</span> {</div>
|
|
<div class="line"><a name="l00690"></a><span class="lineno"> 690</span>  <a class="code" href="nes_8h.html#a0254d6e23d4202cb070b1fe54c6a7210">set_bkg_attributes_nes16x16</a>(x >> 1, y >> 1, (w + 1) >> 1, (<a class="code" href="gb_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a> + 1) >> 1, attributes);</div>
|
|
<div class="line"><a name="l00691"></a><span class="lineno"> 691</span> }</div>
|
|
<div class="line"><a name="l00737"></a><span class="lineno"><a class="line" href="nes_8h.html#aadba8b700b97ec97dc9c488496619fd9"> 737</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#aadba8b700b97ec97dc9c488496619fd9">set_bkg_submap_attributes_nes16x16</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#aba4fa6f13f80e53daeb0caa7b1ec8afb">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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00738"></a><span class="lineno"> 738</span>  </div>
|
|
<div class="line"><a name="l00751"></a><span class="lineno"><a class="line" href="nes_8h.html#a34490cffc1e857ac41c880b6bca92c4f"> 751</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a34490cffc1e857ac41c880b6bca92c4f">set_bkg_submap_attributes</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#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <span class="keyword">const</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *attributes, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w)</div>
|
|
<div class="line"><a name="l00752"></a><span class="lineno"> 752</span> {</div>
|
|
<div class="line"><a name="l00753"></a><span class="lineno"> 753</span>  <a class="code" href="nes_8h.html#aadba8b700b97ec97dc9c488496619fd9">set_bkg_submap_attributes_nes16x16</a>(x >> 1, y >> 1, (w + 1) >> 1, (<a class="code" href="gb_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a> + 1) >> 1, attributes, map_w >> 1);</div>
|
|
<div class="line"><a name="l00754"></a><span class="lineno"> 754</span> }</div>
|
|
<div class="line"><a name="l00755"></a><span class="lineno"> 755</span>  </div>
|
|
<div class="line"><a name="l00756"></a><span class="lineno"> 756</span>  </div>
|
|
<div class="line"><a name="l00757"></a><span class="lineno"> 757</span> <span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a>;</div>
|
|
<div class="line"><a name="l00758"></a><span class="lineno"> 758</span>  </div>
|
|
<div class="line"><a name="l00777"></a><span class="lineno"><a class="line" href="nes_8h.html#a811c386cac0df2d260aacb5a43608be5"> 777</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_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#aba4fa6f13f80e53daeb0caa7b1ec8afb">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>
|
|
<div class="line"><a name="l00778"></a><span class="lineno"> 778</span>  <a class="code" href="nes_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a> = base_tile;</div>
|
|
<div class="line"><a name="l00779"></a><span class="lineno"> 779</span>  <a class="code" href="nes_8h.html#a6ab3fa75195d44d8d7e867d4a4cb1131">set_bkg_tiles</a>(x, y, w, <a class="code" href="gb_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, tiles);</div>
|
|
<div class="line"><a name="l00780"></a><span class="lineno"> 780</span>  <a class="code" href="nes_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a> = 0;</div>
|
|
<div class="line"><a name="l00781"></a><span class="lineno"> 781</span> }</div>
|
|
<div class="line"><a name="l00782"></a><span class="lineno"> 782</span>  </div>
|
|
<div class="line"><a name="l00783"></a><span class="lineno"> 783</span>  </div>
|
|
<div class="line"><a name="l00812"></a><span class="lineno"> 812</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#ac2c9fd8d613ad8ba52227c5a056e56fa">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#aba4fa6f13f80e53daeb0caa7b1ec8afb">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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00813"></a><span class="lineno"><a class="line" href="nes_8h.html#adb5d0970167b81401113812773c90838"> 813</a></span> <span class="preprocessor">#define set_tile_submap set_bkg_submap</span></div>
|
|
<div class="line"><a name="l00814"></a><span class="lineno"> 814</span>  </div>
|
|
<div class="line"><a name="l00815"></a><span class="lineno"> 815</span>  </div>
|
|
<div class="line"><a name="l00816"></a><span class="lineno"> 816</span> <span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a>;</div>
|
|
<div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  </div>
|
|
<div class="line"><a name="l00837"></a><span class="lineno"><a class="line" href="nes_8h.html#abc8bc5808620a9717263b8c9ec2237f0"> 837</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_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#aba4fa6f13f80e53daeb0caa7b1ec8afb">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>
|
|
<div class="line"><a name="l00838"></a><span class="lineno"> 838</span>  <a class="code" href="nes_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a> = base_tile;</div>
|
|
<div class="line"><a name="l00839"></a><span class="lineno"> 839</span>  <a class="code" href="nes_8h.html#ac2c9fd8d613ad8ba52227c5a056e56fa">set_bkg_submap</a>(x, y, w, <a class="code" href="gb_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, map, map_w);</div>
|
|
<div class="line"><a name="l00840"></a><span class="lineno"> 840</span>  <a class="code" href="nes_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a> = 0;</div>
|
|
<div class="line"><a name="l00841"></a><span class="lineno"> 841</span> }</div>
|
|
<div class="line"><a name="l00842"></a><span class="lineno"> 842</span>  </div>
|
|
<div class="line"><a name="l00843"></a><span class="lineno"> 843</span>  </div>
|
|
<div class="line"><a name="l00855"></a><span class="lineno"><a class="line" href="nes_8h.html#ab8d3e0c6cb1c5687806defef521f8fd2"> 855</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#ab8d3e0c6cb1c5687806defef521f8fd2">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#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a>, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00856"></a><span class="lineno"> 856</span>  </div>
|
|
<div class="line"><a name="l00857"></a><span class="lineno"> 857</span>  </div>
|
|
<div class="line"><a name="l00865"></a><span class="lineno"><a class="line" href="nes_8h.html#a31655c4b138654e803e295bd4413759c"> 865</a></span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * <a class="code" href="nes_8h.html#a31655c4b138654e803e295bd4413759c">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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00866"></a><span class="lineno"><a class="line" href="nes_8h.html#a3b235c526c517fb02d20cdea780ee2c5"> 866</a></span> <span class="preprocessor">#define set_tile_xy set_bkg_tile_xy</span></div>
|
|
<div class="line"><a name="l00867"></a><span class="lineno"> 867</span>  </div>
|
|
<div class="line"><a name="l00875"></a><span class="lineno"><a class="line" href="nes_8h.html#a7b7c27e672467f08097f744f3530bbc7"> 875</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a7b7c27e672467f08097f744f3530bbc7">set_bkg_attribute_xy_nes16x16</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> a) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00876"></a><span class="lineno"> 876</span>  </div>
|
|
<div class="line"><a name="l00889"></a><span class="lineno"><a class="line" href="nes_8h.html#a7cd23c81062d37753a4429b794907524"> 889</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a7cd23c81062d37753a4429b794907524">set_bkg_attribute_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> a)</div>
|
|
<div class="line"><a name="l00890"></a><span class="lineno"> 890</span> {</div>
|
|
<div class="line"><a name="l00891"></a><span class="lineno"> 891</span>  <a class="code" href="nes_8h.html#a7b7c27e672467f08097f744f3530bbc7">set_bkg_attribute_xy_nes16x16</a>(x >> 1, y >> 1, a);</div>
|
|
<div class="line"><a name="l00892"></a><span class="lineno"> 892</span> }</div>
|
|
<div class="line"><a name="l00893"></a><span class="lineno"><a class="line" href="nes_8h.html#ad7a73323735000cf26196e073cbbdcbf"> 893</a></span> <span class="preprocessor">#define set_attribute_xy set_bkg_attribute_xy</span></div>
|
|
<div class="line"><a name="l00894"></a><span class="lineno"> 894</span>  </div>
|
|
<div class="line"><a name="l00901"></a><span class="lineno"><a class="line" href="nes_8h.html#adaca04ce3d7213e6d0348196cd592780"> 901</a></span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#adaca04ce3d7213e6d0348196cd592780">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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00902"></a><span class="lineno"> 902</span>  </div>
|
|
<div class="line"><a name="l00903"></a><span class="lineno"> 903</span>  </div>
|
|
<div class="line"><a name="l00917"></a><span class="lineno"><a class="line" href="nes_8h.html#a6261537edc74068e3f7f057e6a3e8a57"> 917</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_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>
|
|
<div class="line"><a name="l00918"></a><span class="lineno"> 918</span>  <a class="code" href="nes_2hardware_8h.html#a406100d23af09b16e4b43a2d0eefe741">bkg_scroll_x</a> = x, <a class="code" href="nes_2hardware_8h.html#ad6629a16788cf8cc495555d7fae64d9f">bkg_scroll_y</a> = y;</div>
|
|
<div class="line"><a name="l00919"></a><span class="lineno"> 919</span> }</div>
|
|
<div class="line"><a name="l00920"></a><span class="lineno"> 920</span>  </div>
|
|
<div class="line"><a name="l00921"></a><span class="lineno"> 921</span>  </div>
|
|
<div class="line"><a name="l00931"></a><span class="lineno"><a class="line" href="nes_8h.html#a1f583f7a880daa6145ca78b086a209d1"> 931</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_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>
|
|
<div class="line"><a name="l00932"></a><span class="lineno"> 932</span>  <a class="code" href="nes_2hardware_8h.html#a406100d23af09b16e4b43a2d0eefe741">bkg_scroll_x</a> += x, <a class="code" href="nes_2hardware_8h.html#ad6629a16788cf8cc495555d7fae64d9f">bkg_scroll_y</a> += y;</div>
|
|
<div class="line"><a name="l00933"></a><span class="lineno"> 933</span> }</div>
|
|
<div class="line"><a name="l00934"></a><span class="lineno"> 934</span>  </div>
|
|
<div class="line"><a name="l00935"></a><span class="lineno"> 935</span>  </div>
|
|
<div class="line"><a name="l00947"></a><span class="lineno"><a class="line" href="nes_8h.html#adc0ef4fa6435ca3a1aac93f533eb85da"> 947</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#adc0ef4fa6435ca3a1aac93f533eb85da">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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00948"></a><span class="lineno"><a class="line" href="nes_8h.html#a43b4f0ba65856deef626c0d9e7e41ed4"> 948</a></span> <span class="preprocessor">#define set_sprite_2bpp_data set_sprite_data</span></div>
|
|
<div class="line"><a name="l00949"></a><span class="lineno"> 949</span>  </div>
|
|
<div class="line"><a name="l00961"></a><span class="lineno"><a class="line" href="nes_8h.html#a6372e69db6290fbc0e73244dbe15f903"> 961</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a6372e69db6290fbc0e73244dbe15f903">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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l00962"></a><span class="lineno"> 962</span>  </div>
|
|
<div class="line"><a name="l00969"></a><span class="lineno"> 969</span> <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>
|
|
<div class="line"><a name="l00970"></a><span class="lineno"> 970</span>  <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>; <span class="comment">//< Y coordinate of the sprite on screen - 1</span></div>
|
|
<div class="line"><a name="l00971"></a><span class="lineno"> 971</span>  <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">//< Sprite tile number</span></div>
|
|
<div class="line"><a name="l00972"></a><span class="lineno"> 972</span>  <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">//< OAM Property Flags</span></div>
|
|
<div class="line"><a name="l00973"></a><span class="lineno"> 973</span>  <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>; <span class="comment">//< X coordinate of the sprite on screen</span></div>
|
|
<div class="line"><a name="l00974"></a><span class="lineno"><a class="line" href="nes_8h.html#a8e5ea12b86bdfc812448c2f5c4336c03"> 974</a></span> } <a class="code" href="nes_8h.html#a8e5ea12b86bdfc812448c2f5c4336c03">OAM_item_t</a>;</div>
|
|
<div class="line"><a name="l00975"></a><span class="lineno"> 975</span>  </div>
|
|
<div class="line"><a name="l00976"></a><span class="lineno"> 976</span>  </div>
|
|
<div class="line"><a name="l00979"></a><span class="lineno"> 979</span> <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="nes_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a>[];</div>
|
|
<div class="line"><a name="l00980"></a><span class="lineno"> 980</span>  </div>
|
|
<div class="line"><a name="l00983"></a><span class="lineno"> 983</span> <span class="keyword">extern</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#a6286d69d5fb1133edd0c01c9545c62e4">_shadow_OAM_base</a>;</div>
|
|
<div class="line"><a name="l00984"></a><span class="lineno"> 984</span>  </div>
|
|
<div class="line"><a name="l00985"></a><span class="lineno"><a class="line" href="nes_8h.html#a47607089a434dcda7a8583cfca03b604"> 985</a></span> <span class="preprocessor">#define DISABLE_OAM_DMA \</span></div>
|
|
<div class="line"><a name="l00986"></a><span class="lineno"> 986</span> <span class="preprocessor"> _shadow_OAM_base = 0</span></div>
|
|
<div class="line"><a name="l00987"></a><span class="lineno"> 987</span>  </div>
|
|
<div class="line"><a name="l00990"></a><span class="lineno"><a class="line" href="nes_8h.html#abfd70bf31185a4900680977c9fb5a5ec"> 990</a></span> <span class="preprocessor">#define DISABLE_VBL_TRANSFER DISABLE_OAM_DMA</span></div>
|
|
<div class="line"><a name="l00991"></a><span class="lineno"> 991</span>  </div>
|
|
<div class="line"><a name="l00992"></a><span class="lineno"><a class="line" href="nes_8h.html#a20895d53fe9caacb08ce8b071d57ce53"> 992</a></span> <span class="preprocessor">#define ENABLE_OAM_DMA \</span></div>
|
|
<div class="line"><a name="l00993"></a><span class="lineno"> 993</span> <span class="preprocessor"> _shadow_OAM_base = (uint8_t)((uint16_t)&shadow_OAM >> 8)</span></div>
|
|
<div class="line"><a name="l00994"></a><span class="lineno"> 994</span>  </div>
|
|
<div class="line"><a name="l00997"></a><span class="lineno"><a class="line" href="nes_8h.html#a77d516c9d3f86f100eddea5e0d133a76"> 997</a></span> <span class="preprocessor">#define ENABLE_VBL_TRANSFER ENABLE_OAM_DMA</span></div>
|
|
<div class="line"><a name="l00998"></a><span class="lineno"> 998</span>  </div>
|
|
<div class="line"><a name="l01001"></a><span class="lineno"><a class="line" href="nes_8h.html#a8b77608c87a9aef65a03531482b2163b"> 1001</a></span> <span class="preprocessor">#define MAX_HARDWARE_SPRITES 64</span></div>
|
|
<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>  </div>
|
|
<div class="line"><a name="l01005"></a><span class="lineno"><a class="line" href="nes_8h.html#afc296eacbda6a42f2a71aacab376ceb7"> 1005</a></span> <span class="preprocessor">#define HARDWARE_SPRITE_CAN_FLIP_X 1</span></div>
|
|
<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>  </div>
|
|
<div class="line"><a name="l01009"></a><span class="lineno"><a class="line" href="nes_8h.html#a9119d69d971f6bee9e55d0df8f0ac983"> 1009</a></span> <span class="preprocessor">#define HARDWARE_SPRITE_CAN_FLIP_Y 1</span></div>
|
|
<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>  </div>
|
|
<div class="line"><a name="l01013"></a><span class="lineno"><a class="line" href="nes_8h.html#a7e0cdfd6b9a2ae1b7f30384f132d8687"> 1013</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a7e0cdfd6b9a2ae1b7f30384f132d8687">SET_SHADOW_OAM_ADDRESS</a>(<span class="keywordtype">void</span> * address) {</div>
|
|
<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>  <a class="code" href="nes_8h.html#a6286d69d5fb1133edd0c01c9545c62e4">_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 >> 8);</div>
|
|
<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span> }</div>
|
|
<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>  </div>
|
|
<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a2d30754c442641bdd882ab595dd77468">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>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>  </div>
|
|
<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>  </div>
|
|
<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#a58eab770442930dad603ffba2b5d28f3">get_sprite_tile</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>  </div>
|
|
<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>  </div>
|
|
<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a96b6dd8b1dcb44f540baa6093b54154b">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>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>  </div>
|
|
<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>  </div>
|
|
<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#a7f2058d3fe9c08127fd6f596a5df41c9">get_sprite_prop</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>  </div>
|
|
<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>  </div>
|
|
<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a3e80bb115f7212eb72a5f341fdc408d7">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>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>  </div>
|
|
<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>  </div>
|
|
<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a552685b6419acf2fa4925a4ab5687be9">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>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>  </div>
|
|
<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>  </div>
|
|
<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a92649b68e5fea88d171d933f9a605e50">hide_sprite</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>  </div>
|
|
<div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>  </div>
|
|
<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>  </div>
|
|
<div class="line"><a name="l01130"></a><span class="lineno"><a class="line" href="nes_8h.html#ae1a305a579576715ad2d8f70327265da"> 1130</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#ae1a305a579576715ad2d8f70327265da">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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>  </div>
|
|
<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>  </div>
|
|
<div class="line"><a name="l01151"></a><span class="lineno"><a class="line" href="nes_8h.html#a399a0430a177e349cc691c5109427c01"> 1151</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a399a0430a177e349cc691c5109427c01">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#aba4fa6f13f80e53daeb0caa7b1ec8afb">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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>  </div>
|
|
<div class="line"><a name="l01158"></a><span class="lineno"><a class="line" href="nes_8h.html#a2539f237ce7da8ff6eb0bad4c8c48a4c"> 1158</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a2539f237ce7da8ff6eb0bad4c8c48a4c">set_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>
|
|
<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>  <span class="keywordflow">if</span> (first_tile < 256) {</div>
|
|
<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>  <a class="code" href="nes_8h.html#a4eb0e4c6c672efdeb49c3cdba2fa4d4a">set_bkg_data</a>(first_tile, nb_tiles, data);</div>
|
|
<div class="line"><a name="l01161"></a><span class="lineno"> 1161</span>  <span class="keywordflow">if</span>(first_tile + nb_tiles > 256)</div>
|
|
<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>  <a class="code" href="nes_8h.html#adc0ef4fa6435ca3a1aac93f533eb85da">set_sprite_data</a>(first_tile - 256, nb_tiles, data);</div>
|
|
<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>  } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>  <a class="code" href="nes_8h.html#adc0ef4fa6435ca3a1aac93f533eb85da">set_sprite_data</a>(first_tile - 256, nb_tiles, data);</div>
|
|
<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>  }</div>
|
|
<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span> }</div>
|
|
<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>  </div>
|
|
<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a65860edee9a1a70fe56434dca397819e">set_bkg_native_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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>  </div>
|
|
<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a6c4aa6393c42e2d4079b2f922b9b9c84">set_sprite_native_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) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>  </div>
|
|
<div class="line"><a name="l01205"></a><span class="lineno"><a class="line" href="nes_8h.html#a68651e50243349b48164a8ad983dca4e"> 1205</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="nes_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>
|
|
<div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>  <span class="keywordflow">if</span> (first_tile < 256) {</div>
|
|
<div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>  <a class="code" href="nes_8h.html#a65860edee9a1a70fe56434dca397819e">set_bkg_native_data</a>(first_tile, nb_tiles, data);</div>
|
|
<div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>  <span class="keywordflow">if</span>(first_tile + nb_tiles > 256)</div>
|
|
<div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>  <a class="code" href="nes_8h.html#a6c4aa6393c42e2d4079b2f922b9b9c84">set_sprite_native_data</a>(first_tile - 256, nb_tiles, data);</div>
|
|
<div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>  } <span class="keywordflow">else</span> {</div>
|
|
<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>  <a class="code" href="nes_8h.html#a6c4aa6393c42e2d4079b2f922b9b9c84">set_sprite_native_data</a>(first_tile - 256, nb_tiles, data);</div>
|
|
<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>  }</div>
|
|
<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span> }</div>
|
|
<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>  </div>
|
|
<div class="line"><a name="l01220"></a><span class="lineno"><a class="line" href="nes_8h.html#ad4e94bfe39cbe8e1b366d65c13adb464"> 1220</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#ad4e94bfe39cbe8e1b366d65c13adb464">init_bkg</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="asm_2sm83_2string_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>  </div>
|
|
<div class="line"><a name="l01229"></a><span class="lineno"><a class="line" href="nes_8h.html#a2b8cf9f9482d5292459ad81d2ef78840"> 1229</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a2b8cf9f9482d5292459ad81d2ef78840">vmemset</a> (<span class="keywordtype">void</span> *s, <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="asm_2sm83_2string_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <span class="keywordtype">size_t</span> n) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>  </div>
|
|
<div class="line"><a name="l01239"></a><span class="lineno"><a class="line" href="nes_8h.html#a6879d813b6105ff8d9b36ec55c26a36e"> 1239</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a6879d813b6105ff8d9b36ec55c26a36e">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#aba4fa6f13f80e53daeb0caa7b1ec8afb">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>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01240"></a><span class="lineno"><a class="line" href="nes_8h.html#a47865835d7d007d71b4bc8ae5cefb73a"> 1240</a></span> <span class="preprocessor">#define fill_rect fill_bkg_rect</span></div>
|
|
<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>  </div>
|
|
<div class="line"><a name="l01249"></a><span class="lineno"><a class="line" href="nes_8h.html#a01ad58154ff5a51a439ffdd1bafe92c5"> 1249</a></span> <span class="keywordtype">void</span> <a class="code" href="nes_8h.html#a01ad58154ff5a51a439ffdd1bafe92c5">flush_shadow_attributes</a>(<span class="keywordtype">void</span>) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>  </div>
|
|
<div class="line"><a name="l01251"></a><span class="lineno"><a class="line" href="nes_8h.html#a7d6c7ed0155e52b62936a04f6d98715d"> 1251</a></span> <a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="nes_8h.html#a7d6c7ed0155e52b62936a04f6d98715d">_switch_prg0</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> bank) NO_OVERLAY_LOCALS;</div>
|
|
<div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>  </div>
|
|
<div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> <span class="preprocessor">#endif </span><span class="comment">/* _NES_H */</span><span class="preprocessor"></span></div>
|
|
<div class="ttc" id="aasm_2sm83_2string_8h_html_a0b3366755f3276b0243c1e0497471b7a"><div class="ttname"><a href="asm_2sm83_2string_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a></div><div class="ttdeci">char c</div><div class="ttdef"><b>Definition:</b> string.h:20</div></div>
|
|
<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:40</div></div>
|
|
<div class="ttc" id="acgb_8h_html_af868d7cdbd052c6b972ef137e02f6495"><div class="ttname"><a href="cgb_8h.html#af868d7cdbd052c6b972ef137e02f6495">palette_color_t</a></div><div class="ttdeci">uint16_t palette_color_t</div><div class="ttdef"><b>Definition:</b> cgb.h:85</div></div>
|
|
<div class="ttc" id="agb_8h_html_a0a3d95ad0ab8ad213016101d2e9c3d3e"><div class="ttname"><a href="gb_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a></div><div class="ttdeci">uint8_t d</div><div class="ttdef"><b>Definition:</b> gb.h:414</div></div>
|
|
<div class="ttc" id="agb_8h_html_aba4fa6f13f80e53daeb0caa7b1ec8afb"><div class="ttname"><a href="gb_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb">h</a></div><div class="ttdeci">uint8_t h</div><div class="ttdef"><b>Definition:</b> gb.h:414</div></div>
|
|
<div class="ttc" id="anes_2hardware_8h_html"><div class="ttname"><a href="nes_2hardware_8h.html">hardware.h</a></div></div>
|
|
<div class="ttc" id="anes_2hardware_8h_html_a406100d23af09b16e4b43a2d0eefe741"><div class="ttname"><a href="nes_2hardware_8h.html#a406100d23af09b16e4b43a2d0eefe741">bkg_scroll_x</a></div><div class="ttdeci">__SHADOW_REG bkg_scroll_x</div><div class="ttdef"><b>Definition:</b> hardware.h:56</div></div>
|
|
<div class="ttc" id="anes_2hardware_8h_html_ad6629a16788cf8cc495555d7fae64d9f"><div class="ttname"><a href="nes_2hardware_8h.html#ad6629a16788cf8cc495555d7fae64d9f">bkg_scroll_y</a></div><div class="ttdeci">__SHADOW_REG bkg_scroll_y</div><div class="ttdef"><b>Definition:</b> hardware.h:57</div></div>
|
|
<div class="ttc" id="anes_8h_html_a0029224262fa919f42f3337c298bda10"><div class="ttname"><a href="nes_8h.html#a0029224262fa919f42f3337c298bda10">waitpad</a></div><div class="ttdeci">uint8_t waitpad(uint8_t mask) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a01ad58154ff5a51a439ffdd1bafe92c5"><div class="ttname"><a href="nes_8h.html#a01ad58154ff5a51a439ffdd1bafe92c5">flush_shadow_attributes</a></div><div class="ttdeci">void flush_shadow_attributes(void) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a0254d6e23d4202cb070b1fe54c6a7210"><div class="ttname"><a href="nes_8h.html#a0254d6e23d4202cb070b1fe54c6a7210">set_bkg_attributes_nes16x16</a></div><div class="ttdeci">void set_bkg_attributes_nes16x16(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *attributes) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a050b8b27fe6af3efcc17cd804f808d7a"><div class="ttname"><a href="nes_8h.html#a050b8b27fe6af3efcc17cd804f808d7a">set_1bpp_colors_ex</a></div><div class="ttdeci">void set_1bpp_colors_ex(uint8_t fgcolor, uint8_t bgcolor, uint8_t mode) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a06bab3f8bce032de0d21fbd86e14c3f3"><div class="ttname"><a href="nes_8h.html#a06bab3f8bce032de0d21fbd86e14c3f3">_current_bank</a></div><div class="ttdeci">volatile uint8_t _current_bank</div><div class="ttdef"><b>Definition:</b> gb.h:522</div></div>
|
|
<div class="ttc" id="anes_8h_html_a1e73068b3ffdb8436eaa3362f104ba74"><div class="ttname"><a href="nes_8h.html#a1e73068b3ffdb8436eaa3362f104ba74">SYSTEM_BITS_NTSC</a></div><div class="ttdeci">#define SYSTEM_BITS_NTSC</div><div class="ttdef"><b>Definition:</b> nes.h:28</div></div>
|
|
<div class="ttc" id="anes_8h_html_a1f583f7a880daa6145ca78b086a209d1"><div class="ttname"><a href="nes_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> nes.h:931</div></div>
|
|
<div class="ttc" id="anes_8h_html_a206e8e54468237daed636cad12a70055"><div class="ttname"><a href="nes_8h.html#a206e8e54468237daed636cad12a70055">delay</a></div><div class="ttdeci">void delay(uint16_t d) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a232883ed798bce00a03b09705c67deef"><div class="ttname"><a href="nes_8h.html#a232883ed798bce00a03b09705c67deef">enable_interrupts</a></div><div class="ttdeci">void enable_interrupts(void)</div><div class="ttdef"><b>Definition:</b> nes.h:450</div></div>
|
|
<div class="ttc" id="anes_8h_html_a250f5339e05523912926be566e9eb8c0"><div class="ttname"><a href="nes_8h.html#a250f5339e05523912926be566e9eb8c0">_current_1bpp_colors</a></div><div class="ttdeci">uint16_t _current_1bpp_colors</div></div>
|
|
<div class="ttc" id="anes_8h_html_a2539f237ce7da8ff6eb0bad4c8c48a4c"><div class="ttname"><a href="nes_8h.html#a2539f237ce7da8ff6eb0bad4c8c48a4c">set_tile_data</a></div><div class="ttdeci">void set_tile_data(uint16_t first_tile, uint8_t nb_tiles, const uint8_t *data)</div><div class="ttdef"><b>Definition:</b> nes.h:1158</div></div>
|
|
<div class="ttc" id="anes_8h_html_a2b17818c7916bc2ff75196ff0627b1e9"><div class="ttname"><a href="nes_8h.html#a2b17818c7916bc2ff75196ff0627b1e9">disable_interrupts</a></div><div class="ttdeci">void disable_interrupts(void)</div><div class="ttdef"><b>Definition:</b> nes.h:466</div></div>
|
|
<div class="ttc" id="anes_8h_html_a2b8cf9f9482d5292459ad81d2ef78840"><div class="ttname"><a href="nes_8h.html#a2b8cf9f9482d5292459ad81d2ef78840">vmemset</a></div><div class="ttdeci">void vmemset(void *s, uint8_t c, size_t n) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a2d30754c442641bdd882ab595dd77468"><div class="ttname"><a href="nes_8h.html#a2d30754c442641bdd882ab595dd77468">set_sprite_tile</a></div><div class="ttdeci">void set_sprite_tile(uint8_t nb, uint8_t tile) NO_OVERLAY_LOCALS</div><div class="ttdef"><b>Definition:</b> gb.h:1874</div></div>
|
|
<div class="ttc" id="anes_8h_html_a31655c4b138654e803e295bd4413759c"><div class="ttname"><a href="nes_8h.html#a31655c4b138654e803e295bd4413759c">set_bkg_tile_xy</a></div><div class="ttdeci">uint8_t * set_bkg_tile_xy(uint8_t x, uint8_t y, uint8_t t) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a34490cffc1e857ac41c880b6bca92c4f"><div class="ttname"><a href="nes_8h.html#a34490cffc1e857ac41c880b6bca92c4f">set_bkg_submap_attributes</a></div><div class="ttdeci">void set_bkg_submap_attributes(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *attributes, uint8_t map_w)</div><div class="ttdef"><b>Definition:</b> nes.h:751</div></div>
|
|
<div class="ttc" id="anes_8h_html_a3619f9cb1e3c92238a033ead79a0c551"><div class="ttname"><a href="nes_8h.html#a3619f9cb1e3c92238a033ead79a0c551">shadow_OAM</a></div><div class="ttdeci">volatile struct OAM_item_t shadow_OAM[]</div></div>
|
|
<div class="ttc" id="anes_8h_html_a399a0430a177e349cc691c5109427c01"><div class="ttname"><a href="nes_8h.html#a399a0430a177e349cc691c5109427c01">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) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a3e80bb115f7212eb72a5f341fdc408d7"><div class="ttname"><a href="nes_8h.html#a3e80bb115f7212eb72a5f341fdc408d7">move_sprite</a></div><div class="ttdeci">void move_sprite(uint8_t nb, uint8_t x, uint8_t y) NO_OVERLAY_LOCALS</div><div class="ttdef"><b>Definition:</b> gb.h:1960</div></div>
|
|
<div class="ttc" id="anes_8h_html_a4093fb5f45f807fe8d4a45121f3fffc5"><div class="ttname"><a href="nes_8h.html#a4093fb5f45f807fe8d4a45121f3fffc5">get_system</a></div><div class="ttdeci">uint8_t get_system(void)</div><div class="ttdef"><b>Definition:</b> nes.h:272</div></div>
|
|
<div class="ttc" id="anes_8h_html_a42756a31babdcb4b7e692960a069b13b"><div class="ttname"><a href="nes_8h.html#a42756a31babdcb4b7e692960a069b13b">display_on</a></div><div class="ttdeci">void display_on(void) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a44e3fc6c86253db08fa99fdc448b1df0"><div class="ttname"><a href="nes_8h.html#a44e3fc6c86253db08fa99fdc448b1df0">add_VBL</a></div><div class="ttdeci">void add_VBL(int_handler h) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a49635449fc261be2481b72d0165f12ad"><div class="ttname"><a href="nes_8h.html#a49635449fc261be2481b72d0165f12ad">set_vram_byte</a></div><div class="ttdeci">void set_vram_byte(uint8_t *addr, uint8_t v) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a4eb0e4c6c672efdeb49c3cdba2fa4d4a"><div class="ttname"><a href="nes_8h.html#a4eb0e4c6c672efdeb49c3cdba2fa4d4a">set_bkg_data</a></div><div class="ttdeci">void set_bkg_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a54e98484026ce279ea5d3d0d7a3fb87a"><div class="ttname"><a href="nes_8h.html#a54e98484026ce279ea5d3d0d7a3fb87a">joypad_init</a></div><div class="ttdeci">uint8_t joypad_init(uint8_t npads, joypads_t *joypads) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a552685b6419acf2fa4925a4ab5687be9"><div class="ttname"><a href="nes_8h.html#a552685b6419acf2fa4925a4ab5687be9">scroll_sprite</a></div><div class="ttdeci">void scroll_sprite(uint8_t nb, int8_t x, int8_t y) NO_OVERLAY_LOCALS</div><div class="ttdef"><b>Definition:</b> gb.h:1976</div></div>
|
|
<div class="ttc" id="anes_8h_html_a58eab770442930dad603ffba2b5d28f3"><div class="ttname"><a href="nes_8h.html#a58eab770442930dad603ffba2b5d28f3">get_sprite_tile</a></div><div class="ttdeci">uint8_t get_sprite_tile(uint8_t nb) NO_OVERLAY_LOCALS</div><div class="ttdef"><b>Definition:</b> gb.h:1885</div></div>
|
|
<div class="ttc" id="anes_8h_html_a5cc6bac1f2f0e9f71c7826a3ee8f35d0"><div class="ttname"><a href="nes_8h.html#a5cc6bac1f2f0e9f71c7826a3ee8f35d0">remove_VBL</a></div><div class="ttdeci">void remove_VBL(int_handler h) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a6261537edc74068e3f7f057e6a3e8a57"><div class="ttname"><a href="nes_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> nes.h:917</div></div>
|
|
<div class="ttc" id="anes_8h_html_a6286d69d5fb1133edd0c01c9545c62e4"><div class="ttname"><a href="nes_8h.html#a6286d69d5fb1133edd0c01c9545c62e4">_shadow_OAM_base</a></div><div class="ttdeci">uint8_t _shadow_OAM_base</div><div class="ttdef"><b>Definition:</b> gb.h:1824</div></div>
|
|
<div class="ttc" id="anes_8h_html_a6372e69db6290fbc0e73244dbe15f903"><div class="ttname"><a href="nes_8h.html#a6372e69db6290fbc0e73244dbe15f903">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) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a64538fb78ce148a1a7045245f084a710"><div class="ttname"><a href="nes_8h.html#a64538fb78ce148a1a7045245f084a710">wait_vbl_done</a></div><div class="ttdeci">void wait_vbl_done(void) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a65860edee9a1a70fe56434dca397819e"><div class="ttname"><a href="nes_8h.html#a65860edee9a1a70fe56434dca397819e">set_bkg_native_data</a></div><div class="ttdeci">void set_bkg_native_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NO_OVERLAY_LOCALS</div><div class="ttdef"><b>Definition:</b> gb.h:2155</div></div>
|
|
<div class="ttc" id="anes_8h_html_a68651e50243349b48164a8ad983dca4e"><div class="ttname"><a href="nes_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> nes.h:1205</div></div>
|
|
<div class="ttc" id="anes_8h_html_a6879d813b6105ff8d9b36ec55c26a36e"><div class="ttname"><a href="nes_8h.html#a6879d813b6105ff8d9b36ec55c26a36e">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) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a6ab3fa75195d44d8d7e867d4a4cb1131"><div class="ttname"><a href="nes_8h.html#a6ab3fa75195d44d8d7e867d4a4cb1131">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) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a6c4aa6393c42e2d4079b2f922b9b9c84"><div class="ttname"><a href="nes_8h.html#a6c4aa6393c42e2d4079b2f922b9b9c84">set_sprite_native_data</a></div><div class="ttdeci">void set_sprite_native_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NO_OVERLAY_LOCALS</div><div class="ttdef"><b>Definition:</b> gb.h:2172</div></div>
|
|
<div class="ttc" id="anes_8h_html_a70802f5e313285aa3ea04b0f73b2700f"><div class="ttname"><a href="nes_8h.html#a70802f5e313285aa3ea04b0f73b2700f">refresh_OAM</a></div><div class="ttdeci">void refresh_OAM(void) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a73b4e18d7f5eaf5398bf0241c9c21586"><div class="ttname"><a href="nes_8h.html#a73b4e18d7f5eaf5398bf0241c9c21586">vsync</a></div><div class="ttdeci">void vsync(void) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a78d2fd18666afec116f176d46debb4e7"><div class="ttname"><a href="nes_8h.html#a78d2fd18666afec116f176d46debb4e7">sys_time</a></div><div class="ttdeci">volatile uint16_t sys_time</div></div>
|
|
<div class="ttc" id="anes_8h_html_a78fd7730ed37db84f52bcfc9ff41873f"><div class="ttname"><a href="nes_8h.html#a78fd7730ed37db84f52bcfc9ff41873f">_SYSTEM</a></div><div class="ttdeci">const uint8_t _SYSTEM</div></div>
|
|
<div class="ttc" id="anes_8h_html_a7b7c27e672467f08097f744f3530bbc7"><div class="ttname"><a href="nes_8h.html#a7b7c27e672467f08097f744f3530bbc7">set_bkg_attribute_xy_nes16x16</a></div><div class="ttdeci">void set_bkg_attribute_xy_nes16x16(uint8_t x, uint8_t y, uint8_t a) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a7c75cb6992e73971f24cee46aa31184b"><div class="ttname"><a href="nes_8h.html#a7c75cb6992e73971f24cee46aa31184b">set_sprite_palette</a></div><div class="ttdeci">void set_sprite_palette(uint8_t first_palette, uint8_t nb_palettes, const palette_color_t *rgb_data) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a7cd23c81062d37753a4429b794907524"><div class="ttname"><a href="nes_8h.html#a7cd23c81062d37753a4429b794907524">set_bkg_attribute_xy</a></div><div class="ttdeci">void set_bkg_attribute_xy(uint8_t x, uint8_t y, uint8_t a)</div><div class="ttdef"><b>Definition:</b> nes.h:889</div></div>
|
|
<div class="ttc" id="anes_8h_html_a7d6c7ed0155e52b62936a04f6d98715d"><div class="ttname"><a href="nes_8h.html#a7d6c7ed0155e52b62936a04f6d98715d">_switch_prg0</a></div><div class="ttdeci">uint8_t _switch_prg0(uint8_t bank) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a7e0cdfd6b9a2ae1b7f30384f132d8687"><div class="ttname"><a href="nes_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> nes.h:1013</div></div>
|
|
<div class="ttc" id="anes_8h_html_a7f2058d3fe9c08127fd6f596a5df41c9"><div class="ttname"><a href="nes_8h.html#a7f2058d3fe9c08127fd6f596a5df41c9">get_sprite_prop</a></div><div class="ttdeci">uint8_t get_sprite_prop(uint8_t nb) NO_OVERLAY_LOCALS</div><div class="ttdef"><b>Definition:</b> gb.h:1943</div></div>
|
|
<div class="ttc" id="anes_8h_html_a811c386cac0df2d260aacb5a43608be5"><div class="ttname"><a href="nes_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> nes.h:777</div></div>
|
|
<div class="ttc" id="anes_8h_html_a8278909fae5ed243e03f8815ac95bab3"><div class="ttname"><a href="nes_8h.html#a8278909fae5ed243e03f8815ac95bab3">set_bkg_attributes</a></div><div class="ttdeci">void set_bkg_attributes(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *attributes)</div><div class="ttdef"><b>Definition:</b> nes.h:688</div></div>
|
|
<div class="ttc" id="anes_8h_html_a8e5ea12b86bdfc812448c2f5c4336c03"><div class="ttname"><a href="nes_8h.html#a8e5ea12b86bdfc812448c2f5c4336c03">OAM_item_t</a></div><div class="ttdeci">struct OAM_item_t OAM_item_t</div></div>
|
|
<div class="ttc" id="anes_8h_html_a8feed006393f8c8c070b2d29d91ec8aa"><div class="ttname"><a href="nes_8h.html#a8feed006393f8c8c070b2d29d91ec8aa">joypad</a></div><div class="ttdeci">uint8_t joypad(void) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a92649b68e5fea88d171d933f9a605e50"><div class="ttname"><a href="nes_8h.html#a92649b68e5fea88d171d933f9a605e50">hide_sprite</a></div><div class="ttdeci">void hide_sprite(uint8_t nb) NO_OVERLAY_LOCALS</div><div class="ttdef"><b>Definition:</b> gb.h:1988</div></div>
|
|
<div class="ttc" id="anes_8h_html_a92d990e45d1cc8e28d98a87b0b9d70ff"><div class="ttname"><a href="nes_8h.html#a92d990e45d1cc8e28d98a87b0b9d70ff">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) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_a9508f919d9482d1d51534ccac212454d"><div class="ttname"><a href="nes_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a></div><div class="ttdeci">void(* int_handler)(void) NONBANKED</div><div class="ttdef"><b>Definition:</b> nes.h:171</div></div>
|
|
<div class="ttc" id="anes_8h_html_a96b6dd8b1dcb44f540baa6093b54154b"><div class="ttname"><a href="nes_8h.html#a96b6dd8b1dcb44f540baa6093b54154b">set_sprite_prop</a></div><div class="ttdeci">void set_sprite_prop(uint8_t nb, uint8_t prop) NO_OVERLAY_LOCALS</div><div class="ttdef"><b>Definition:</b> gb.h:1933</div></div>
|
|
<div class="ttc" id="anes_8h_html_a98aab5a3d75429f9e7861a8100629782"><div class="ttname"><a href="nes_8h.html#a98aab5a3d75429f9e7861a8100629782">display_off</a></div><div class="ttdeci">void display_off(void) NO_OVERLAY_LOCALS</div><div class="ttdef"><b>Definition:</b> msx.h:248</div></div>
|
|
<div class="ttc" id="anes_8h_html_a99bca2df4c6fde16a659797b4e584036"><div class="ttname"><a href="nes_8h.html#a99bca2df4c6fde16a659797b4e584036">SYSTEM_60HZ</a></div><div class="ttdeci">#define SYSTEM_60HZ</div><div class="ttdef"><b>Definition:</b> nes.h:33</div></div>
|
|
<div class="ttc" id="anes_8h_html_aa1843c9b694489b612595631315c1c21"><div class="ttname"><a href="nes_8h.html#aa1843c9b694489b612595631315c1c21">palette_color_t</a></div><div class="ttdeci">uint8_t palette_color_t</div><div class="ttdef"><b>Definition:</b> nes.h:62</div></div>
|
|
<div class="ttc" id="anes_8h_html_aa224c9bac27c7fd268e62bdf33338a84"><div class="ttname"><a href="nes_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> nes.h:584</div></div>
|
|
<div class="ttc" id="anes_8h_html_aa81b3eb2f6ec56d70ccd27c7deae4098"><div class="ttname"><a href="nes_8h.html#aa81b3eb2f6ec56d70ccd27c7deae4098">get_bkg_xy_addr</a></div><div class="ttdeci">uint8_t * get_bkg_xy_addr(uint8_t x, uint8_t y) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_aa82205e9629f984d0b3dc8055c211522"><div class="ttname"><a href="nes_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a></div><div class="ttdeci">uint8_t _map_tile_offset</div></div>
|
|
<div class="ttc" id="anes_8h_html_aaca025055febe9f4c605bfac12812d0e"><div class="ttname"><a href="nes_8h.html#aaca025055febe9f4c605bfac12812d0e">set_bkg_palette_entry</a></div><div class="ttdeci">void set_bkg_palette_entry(uint8_t palette, uint8_t entry, palette_color_t rgb_data) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_aadba8b700b97ec97dc9c488496619fd9"><div class="ttname"><a href="nes_8h.html#aadba8b700b97ec97dc9c488496619fd9">set_bkg_submap_attributes_nes16x16</a></div><div class="ttdeci">void set_bkg_submap_attributes_nes16x16(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_ab38fda7bad70c80c390aa7017c48b405"><div class="ttname"><a href="nes_8h.html#ab38fda7bad70c80c390aa7017c48b405">set_bkg_palette</a></div><div class="ttdeci">void set_bkg_palette(uint8_t first_palette, uint8_t nb_palettes, const palette_color_t *rgb_data) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_ab472d9bbb1bcfd141374f5babc71934c"><div class="ttname"><a href="nes_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a></div><div class="ttdeci">uint8_t _submap_tile_offset</div></div>
|
|
<div class="ttc" id="anes_8h_html_ab8d3e0c6cb1c5687806defef521f8fd2"><div class="ttname"><a href="nes_8h.html#ab8d3e0c6cb1c5687806defef521f8fd2">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) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_abac3c04dc3c056618aca0a0052f2cb93"><div class="ttname"><a href="nes_8h.html#abac3c04dc3c056618aca0a0052f2cb93">get_mode</a></div><div class="ttdeci">uint8_t get_mode(void) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_abc8bc5808620a9717263b8c9ec2237f0"><div class="ttname"><a href="nes_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> nes.h:837</div></div>
|
|
<div class="ttc" id="anes_8h_html_ac2c9fd8d613ad8ba52227c5a056e56fa"><div class="ttname"><a href="nes_8h.html#ac2c9fd8d613ad8ba52227c5a056e56fa">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) NO_OVERLAY_LOCALS</div><div class="ttdef"><b>Definition:</b> msx.h:619</div></div>
|
|
<div class="ttc" id="anes_8h_html_aca7413d0441f3ce1f30cca15ce4678ab"><div class="ttname"><a href="nes_8h.html#aca7413d0441f3ce1f30cca15ce4678ab">remove_LCD</a></div><div class="ttdeci">void remove_LCD(int_handler h) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_ad2adcd1b3390b43cdade1b73d95123a0"><div class="ttname"><a href="nes_8h.html#ad2adcd1b3390b43cdade1b73d95123a0">set_sprite_palette_entry</a></div><div class="ttdeci">void set_sprite_palette_entry(uint8_t palette, uint8_t entry, palette_color_t rgb_data) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_ad4e94bfe39cbe8e1b366d65c13adb464"><div class="ttname"><a href="nes_8h.html#ad4e94bfe39cbe8e1b366d65c13adb464">init_bkg</a></div><div class="ttdeci">void init_bkg(uint8_t c) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_ad572dce0c703ed78eadcf5cd6cce7dd2"><div class="ttname"><a href="nes_8h.html#ad572dce0c703ed78eadcf5cd6cce7dd2">add_LCD</a></div><div class="ttdeci">void add_LCD(int_handler h) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_ad6329c19927cf02579e2503e40c0bbde"><div class="ttname"><a href="nes_8h.html#ad6329c19927cf02579e2503e40c0bbde">SYSTEM_50HZ</a></div><div class="ttdeci">#define SYSTEM_50HZ</div><div class="ttdef"><b>Definition:</b> nes.h:34</div></div>
|
|
<div class="ttc" id="anes_8h_html_adaca04ce3d7213e6d0348196cd592780"><div class="ttname"><a href="nes_8h.html#adaca04ce3d7213e6d0348196cd592780">get_bkg_tile_xy</a></div><div class="ttdeci">uint8_t get_bkg_tile_xy(uint8_t x, uint8_t y) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_adc0ef4fa6435ca3a1aac93f533eb85da"><div class="ttname"><a href="nes_8h.html#adc0ef4fa6435ca3a1aac93f533eb85da">set_sprite_data</a></div><div class="ttdeci">void set_sprite_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_adcb394299a1033616fc7d2faec8bd6ad"><div class="ttname"><a href="nes_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> nes.h:590</div></div>
|
|
<div class="ttc" id="anes_8h_html_ade75173639b6e7be241b8eb31fe825ef"><div class="ttname"><a href="nes_8h.html#ade75173639b6e7be241b8eb31fe825ef">mode</a></div><div class="ttdeci">void mode(uint8_t m) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_ae192e07aabd7c8b822db52c9bc1e542d"><div class="ttname"><a href="nes_8h.html#ae192e07aabd7c8b822db52c9bc1e542d">waitpadup</a></div><div class="ttdeci">void waitpadup(void) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_ae1a305a579576715ad2d8f70327265da"><div class="ttname"><a href="nes_8h.html#ae1a305a579576715ad2d8f70327265da">set_data</a></div><div class="ttdeci">void set_data(uint8_t *vram_addr, const uint8_t *data, uint16_t len) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="anes_8h_html_af3ee931a6c78c8716cadfedd9f627b6e"><div class="ttname"><a href="nes_8h.html#af3ee931a6c78c8716cadfedd9f627b6e">joypad_ex</a></div><div class="ttdeci">void joypad_ex(joypads_t *joypads) NO_OVERLAY_LOCALS</div></div>
|
|
<div class="ttc" id="argb__to__nes__macro_8h_html"><div class="ttname"><a href="rgb__to__nes__macro_8h.html">rgb_to_nes_macro.h</a></div></div>
|
|
<div class="ttc" id="astdint_8h_html"><div class="ttname"><a href="stdint_8h.html">stdint.h</a></div></div>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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:1811</div></div>
|
|
<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:1812</div></div>
|
|
<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:1814</div></div>
|
|
<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:1813</div></div>
|
|
<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:1812</div></div>
|
|
<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:743</div></div>
|
|
<div class="ttc" id="aversion_8h_html"><div class="ttname"><a href="version_8h.html">version.h</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- HTML footer for doxygen 1.8.14-->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
</div>
|
|
</body>
|
|
</html>
|