cscg22-gearboy

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

sms_8h.html (245466B)


      1<!-- HTML header for doxygen 1.8.14-->
      2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      3<html xmlns="http://www.w3.org/1999/xhtml">
      4<head>
      5<meta http-equiv="cache-control" content="max-age=86400"/>
      6<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
      7<meta http-equiv="X-UA-Compatible" content="IE=9"/>
      8<meta name="generator" content="Doxygen 1.8.20"/>
      9<meta name="viewport" content="width=device-width, initial-scale=1"/>
     10<title>GBDK 2020 Docs: sms/sms.h File Reference</title>
     11<link href="tabs.css" rel="stylesheet" type="text/css"/>
     12<script type="text/javascript" src="jquery.js"></script>
     13<script type="text/javascript" src="dynsections.js"></script>
     14<link href="navtree.css" rel="stylesheet" type="text/css"/>
     15<script type="text/javascript" src="resize.js"></script>
     16<script type="text/javascript" src="navtreedata.js"></script>
     17<script type="text/javascript" src="navtree.js"></script>
     18<link href="search/search.css" rel="stylesheet" type="text/css"/>
     19<script type="text/javascript" src="search/searchdata.js"></script>
     20<script type="text/javascript" src="search/search.js"></script>
     21<link href="doxygen.css" rel="stylesheet" type="text/css" />
     22<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
     23</head>
     24<body>
     25<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
     26<div id="titlearea">
     27<table cellspacing="0" cellpadding="0">
     28 <tbody>
     29 <tr style="height: 56px;">
     30  <td id="projectalign" style="padding-left: 0.5em;">
     31   <div id="projectname">GBDK 2020 Docs
     32   &#160;<span id="projectnumber">4.0.6</span>
     33   </div>
     34   <div id="projectbrief">API Documentation for GBDK 2020</div>
     35  </td>
     36 </tr>
     37 </tbody>
     38</table>
     39</div>
     40<!-- end header part -->
     41<!-- Generated by Doxygen 1.8.20 -->
     42<script type="text/javascript">
     43/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     44var searchBox = new SearchBox("searchBox", "search",false,'Search');
     45/* @license-end */
     46</script>
     47<script type="text/javascript" src="menudata.js"></script>
     48<script type="text/javascript" src="menu.js"></script>
     49<script type="text/javascript">
     50/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     51$(function() {
     52  initMenu('',true,false,'search.php','Search');
     53  $(document).ready(function() { init_search(); });
     54});
     55/* @license-end */</script>
     56<div id="main-nav"></div>
     57</div><!-- top -->
     58<div id="side-nav" class="ui-resizable side-nav-resizable">
     59  <div id="nav-tree">
     60    <div id="nav-tree-contents">
     61      <div id="nav-sync" class="sync"></div>
     62    </div>
     63  </div>
     64  <div id="splitbar" style="-moz-user-select:none;" 
     65       class="ui-resizable-handle">
     66  </div>
     67</div>
     68<script type="text/javascript">
     69/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     70$(document).ready(function(){initNavTree('sms_8h.html',''); initResizable(); });
     71/* @license-end */
     72</script>
     73<div id="doc-content">
     74<!-- window showing the filter options -->
     75<div id="MSearchSelectWindow"
     76     onmouseover="return searchBox.OnSearchSelectShow()"
     77     onmouseout="return searchBox.OnSearchSelectHide()"
     78     onkeydown="return searchBox.OnSearchSelectKey(event)">
     79</div>
     80
     81<!-- iframe showing the search results (closed by default) -->
     82<div id="MSearchResultsWindow">
     83<iframe src="javascript:void(0)" frameborder="0" 
     84        name="MSearchResults" id="MSearchResults">
     85</iframe>
     86</div>
     87
     88<div class="header">
     89  <div class="summary">
     90<a href="#nested-classes">Data Structures</a> &#124;
     91<a href="#define-members">Macros</a> &#124;
     92<a href="#typedef-members">Typedefs</a> &#124;
     93<a href="#func-members">Functions</a> &#124;
     94<a href="#var-members">Variables</a>  </div>
     95  <div class="headertitle">
     96<div class="title">sms.h File Reference</div>  </div>
     97</div><!--header-->
     98<div class="contents">
     99<div class="textblock"><code>#include &lt;types.h&gt;</code><br />
    100<code>#include &lt;<a class="el" href="stdint_8h_source.html">stdint.h</a>&gt;</code><br />
    101<code>#include &lt;<a class="el" href="version_8h_source.html">gbdk/version.h</a>&gt;</code><br />
    102<code>#include &lt;<a class="el" href="sms_2hardware_8h_source.html">sms/hardware.h</a>&gt;</code><br />
    103</div>
    104<p><a href="sms_8h_source.html">Go to the source code of this file.</a></p>
    105<table class="memberdecls">
    106<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
    107Data Structures</h2></td></tr>
    108<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structjoypads__t.html">joypads_t</a></td></tr>
    109<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
    110</table><table class="memberdecls">
    111<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
    112Macros</h2></td></tr>
    113<tr class="memitem:a19e5fbd76b85bf708ec31d55905fc537"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a19e5fbd76b85bf708ec31d55905fc537">SEGA</a></td></tr>
    114<tr class="separator:a19e5fbd76b85bf708ec31d55905fc537"><td class="memSeparator" colspan="2">&#160;</td></tr>
    115<tr class="memitem:a6bc34abf062d8e3be88170ac106f197f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a6bc34abf062d8e3be88170ac106f197f">VBK_REG</a>&#160;&#160;&#160;<a class="el" href="sms_2hardware_8h.html#a019bf78a6d586c987aec03af8d20e02f">VDP_ATTR_SHIFT</a></td></tr>
    116<tr class="separator:a6bc34abf062d8e3be88170ac106f197f"><td class="memSeparator" colspan="2">&#160;</td></tr>
    117<tr class="memitem:a05ca817ab32f6da612c3ae26db5abf02"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a05ca817ab32f6da612c3ae26db5abf02">J_UP</a>&#160;&#160;&#160;0b00000001</td></tr>
    118<tr class="separator:a05ca817ab32f6da612c3ae26db5abf02"><td class="memSeparator" colspan="2">&#160;</td></tr>
    119<tr class="memitem:ae032c5c544196e37ec0432f6cfad7904"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ae032c5c544196e37ec0432f6cfad7904">J_DOWN</a>&#160;&#160;&#160;0b00000010</td></tr>
    120<tr class="separator:ae032c5c544196e37ec0432f6cfad7904"><td class="memSeparator" colspan="2">&#160;</td></tr>
    121<tr class="memitem:ac70894fecac30c1ca9917f07373cf81c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ac70894fecac30c1ca9917f07373cf81c">J_LEFT</a>&#160;&#160;&#160;0b00000100</td></tr>
    122<tr class="separator:ac70894fecac30c1ca9917f07373cf81c"><td class="memSeparator" colspan="2">&#160;</td></tr>
    123<tr class="memitem:a3bad91d11ae09ffcbb3cb0a81873d325"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a3bad91d11ae09ffcbb3cb0a81873d325">J_RIGHT</a>&#160;&#160;&#160;0b00001000</td></tr>
    124<tr class="separator:a3bad91d11ae09ffcbb3cb0a81873d325"><td class="memSeparator" colspan="2">&#160;</td></tr>
    125<tr class="memitem:a31af766e3b598eb7a6b63f55a4988e7a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a31af766e3b598eb7a6b63f55a4988e7a">J_A</a>&#160;&#160;&#160;0b00010000</td></tr>
    126<tr class="separator:a31af766e3b598eb7a6b63f55a4988e7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
    127<tr class="memitem:ae47e59a309120f9420993f26816b5e6d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ae47e59a309120f9420993f26816b5e6d">J_B</a>&#160;&#160;&#160;0b00100000</td></tr>
    128<tr class="separator:ae47e59a309120f9420993f26816b5e6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
    129<tr class="memitem:af0e30d6af308ffe5a025fbe85da40f6f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#af0e30d6af308ffe5a025fbe85da40f6f">M_TEXT_OUT</a>&#160;&#160;&#160;0x02U</td></tr>
    130<tr class="separator:af0e30d6af308ffe5a025fbe85da40f6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
    131<tr class="memitem:a908826e7180f94a5988ceb8633313a2e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a908826e7180f94a5988ceb8633313a2e">M_TEXT_INOUT</a>&#160;&#160;&#160;0x03U</td></tr>
    132<tr class="separator:a908826e7180f94a5988ceb8633313a2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
    133<tr class="memitem:a04382de20738146fe873ddfb0585052b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a04382de20738146fe873ddfb0585052b">M_NO_SCROLL</a>&#160;&#160;&#160;0x04U</td></tr>
    134<tr class="separator:a04382de20738146fe873ddfb0585052b"><td class="memSeparator" colspan="2">&#160;</td></tr>
    135<tr class="memitem:aca2855edd2d28f66be551a0f7ec23f07"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aca2855edd2d28f66be551a0f7ec23f07">M_NO_INTERP</a>&#160;&#160;&#160;0x08U</td></tr>
    136<tr class="separator:aca2855edd2d28f66be551a0f7ec23f07"><td class="memSeparator" colspan="2">&#160;</td></tr>
    137<tr class="memitem:ae97793b4039609f93b0f7f8bddb18011"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ae97793b4039609f93b0f7f8bddb18011">S_FLIPX</a>&#160;&#160;&#160;0x02U</td></tr>
    138<tr class="separator:ae97793b4039609f93b0f7f8bddb18011"><td class="memSeparator" colspan="2">&#160;</td></tr>
    139<tr class="memitem:a4bbb9cd6c38b2317de5256d1d889c63b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a4bbb9cd6c38b2317de5256d1d889c63b">S_FLIPY</a>&#160;&#160;&#160;0x04U</td></tr>
    140<tr class="separator:a4bbb9cd6c38b2317de5256d1d889c63b"><td class="memSeparator" colspan="2">&#160;</td></tr>
    141<tr class="memitem:a54572cf6791463b6d60623837e0bb5a6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a54572cf6791463b6d60623837e0bb5a6">S_PALETTE</a>&#160;&#160;&#160;0x08U</td></tr>
    142<tr class="separator:a54572cf6791463b6d60623837e0bb5a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
    143<tr class="memitem:a9506d04c2ec7d2442a52054f67d2b32f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a9506d04c2ec7d2442a52054f67d2b32f">S_PRIORITY</a>&#160;&#160;&#160;0x10U</td></tr>
    144<tr class="separator:a9506d04c2ec7d2442a52054f67d2b32f"><td class="memSeparator" colspan="2">&#160;</td></tr>
    145<tr class="memitem:aa34282113397af810be737df1acec36c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(REG,  v)&#160;&#160;&#160;shadow_##REG=(v);__critical{VDP_CMD=(shadow_##REG),VDP_CMD=REG;}</td></tr>
    146<tr class="separator:aa34282113397af810be737df1acec36c"><td class="memSeparator" colspan="2">&#160;</td></tr>
    147<tr class="memitem:a964e713cb2535d7464d0d6ca7677049a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(REG)&#160;&#160;&#160;shadow_##REG</td></tr>
    148<tr class="separator:a964e713cb2535d7464d0d6ca7677049a"><td class="memSeparator" colspan="2">&#160;</td></tr>
    149<tr class="memitem:aa027abe630d44039f238034bcb2d2f36"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aa027abe630d44039f238034bcb2d2f36">EMPTY_IFLAG</a>&#160;&#160;&#160;0x00U</td></tr>
    150<tr class="separator:aa027abe630d44039f238034bcb2d2f36"><td class="memSeparator" colspan="2">&#160;</td></tr>
    151<tr class="memitem:a2ca7720b9a5da9b2173e1f74dba85541"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a2ca7720b9a5da9b2173e1f74dba85541">VBL_IFLAG</a>&#160;&#160;&#160;0x01U</td></tr>
    152<tr class="separator:a2ca7720b9a5da9b2173e1f74dba85541"><td class="memSeparator" colspan="2">&#160;</td></tr>
    153<tr class="memitem:a61a9e2910380de6abb34df14ef634eb4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a61a9e2910380de6abb34df14ef634eb4">LCD_IFLAG</a>&#160;&#160;&#160;0x02U</td></tr>
    154<tr class="separator:a61a9e2910380de6abb34df14ef634eb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
    155<tr class="memitem:a604256210ec5b90b68185e1a18efab49"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a604256210ec5b90b68185e1a18efab49">TIM_IFLAG</a>&#160;&#160;&#160;0x04U</td></tr>
    156<tr class="separator:a604256210ec5b90b68185e1a18efab49"><td class="memSeparator" colspan="2">&#160;</td></tr>
    157<tr class="memitem:ad90564458646c5646b3880b93db3443e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ad90564458646c5646b3880b93db3443e">SIO_IFLAG</a>&#160;&#160;&#160;0x08U</td></tr>
    158<tr class="separator:ad90564458646c5646b3880b93db3443e"><td class="memSeparator" colspan="2">&#160;</td></tr>
    159<tr class="memitem:a2f829cf27d6e3e24c875e9b82dfcb280"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a2f829cf27d6e3e24c875e9b82dfcb280">JOY_IFLAG</a>&#160;&#160;&#160;0x10U</td></tr>
    160<tr class="separator:a2f829cf27d6e3e24c875e9b82dfcb280"><td class="memSeparator" colspan="2">&#160;</td></tr>
    161<tr class="memitem:ada0cc738d27aad251151e69cb8d250e1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ada0cc738d27aad251151e69cb8d250e1">SCREENWIDTH</a>&#160;&#160;&#160;<a class="el" href="sms_2hardware_8h.html#ad14c51cdfb347c34c364f54e67dc978d">DEVICE_SCREEN_PX_WIDTH</a></td></tr>
    162<tr class="separator:ada0cc738d27aad251151e69cb8d250e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
    163<tr class="memitem:ae189e98d0ef9263c37869ce1ff3710a5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ae189e98d0ef9263c37869ce1ff3710a5">SCREENHEIGHT</a>&#160;&#160;&#160;<a class="el" href="sms_2hardware_8h.html#a7bd450aa268b881257089cf8cd6697ec">DEVICE_SCREEN_PX_HEIGHT</a></td></tr>
    164<tr class="separator:ae189e98d0ef9263c37869ce1ff3710a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
    165<tr class="memitem:a5a796bbf3e4347d914b83568350143a9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a5a796bbf3e4347d914b83568350143a9">MINWNDPOSX</a>&#160;&#160;&#160;0x00U</td></tr>
    166<tr class="separator:a5a796bbf3e4347d914b83568350143a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
    167<tr class="memitem:af3d632ba2d7cef6619df5dfea8730909"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#af3d632ba2d7cef6619df5dfea8730909">MINWNDPOSY</a>&#160;&#160;&#160;0x00U</td></tr>
    168<tr class="separator:af3d632ba2d7cef6619df5dfea8730909"><td class="memSeparator" colspan="2">&#160;</td></tr>
    169<tr class="memitem:a6dffb66ec1b1d9bb380a1af52a601ec5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a6dffb66ec1b1d9bb380a1af52a601ec5">MAXWNDPOSX</a>&#160;&#160;&#160;0x00U</td></tr>
    170<tr class="separator:a6dffb66ec1b1d9bb380a1af52a601ec5"><td class="memSeparator" colspan="2">&#160;</td></tr>
    171<tr class="memitem:ad57f2f8c54204687f02801d8ab1bd150"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ad57f2f8c54204687f02801d8ab1bd150">MAXWNDPOSY</a>&#160;&#160;&#160;0x00U</td></tr>
    172<tr class="separator:ad57f2f8c54204687f02801d8ab1bd150"><td class="memSeparator" colspan="2">&#160;</td></tr>
    173<tr class="memitem:a5ae6b05b3e1559c97f0d1b2daaaa0ee4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a5ae6b05b3e1559c97f0d1b2daaaa0ee4">DISPLAY_ON</a>&#160;&#160;&#160;	<a class="el" href="sms_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>, <a class="el" href="sms_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>) |= <a class="el" href="sms_2hardware_8h.html#adbfdd7c42539613c371820dffd14906f">R1_DISP_ON</a>)</td></tr>
    174<tr class="separator:a5ae6b05b3e1559c97f0d1b2daaaa0ee4"><td class="memSeparator" colspan="2">&#160;</td></tr>
    175<tr class="memitem:ad2ec9831813c5e7069917aa4455af682"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ad2ec9831813c5e7069917aa4455af682">DISPLAY_OFF</a>&#160;&#160;&#160;	<a class="el" href="sms_8h.html#a7b09691f25fddd65f12ed199b3f88ef0">display_off</a>();</td></tr>
    176<tr class="separator:ad2ec9831813c5e7069917aa4455af682"><td class="memSeparator" colspan="2">&#160;</td></tr>
    177<tr class="memitem:a0659212acd317ccdebc0ecf435df330f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a0659212acd317ccdebc0ecf435df330f">HIDE_LEFT_COLUMN</a>&#160;&#160;&#160;	<a class="el" href="sms_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a673a19a1e353c852003c54d1d110b5e6">VDP_R0</a>, <a class="el" href="sms_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a673a19a1e353c852003c54d1d110b5e6">VDP_R0</a>) |= <a class="el" href="sms_2hardware_8h.html#a83088549f6d87bf5ccb8bf51dfe7ea7b">R0_LCB</a>)</td></tr>
    178<tr class="separator:a0659212acd317ccdebc0ecf435df330f"><td class="memSeparator" colspan="2">&#160;</td></tr>
    179<tr class="memitem:a5497c2255a9474d397446710189eacbe"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a5497c2255a9474d397446710189eacbe">SHOW_LEFT_COLUMN</a>&#160;&#160;&#160;	<a class="el" href="sms_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a673a19a1e353c852003c54d1d110b5e6">VDP_R0</a>, <a class="el" href="sms_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a673a19a1e353c852003c54d1d110b5e6">VDP_R0</a>) &amp;= (~<a class="el" href="sms_2hardware_8h.html#a83088549f6d87bf5ccb8bf51dfe7ea7b">R0_LCB</a>))</td></tr>
    180<tr class="separator:a5497c2255a9474d397446710189eacbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
    181<tr class="memitem:a8e3f36aa68ac036695816757f2a1322c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a8e3f36aa68ac036695816757f2a1322c">SHOW_BKG</a></td></tr>
    182<tr class="separator:a8e3f36aa68ac036695816757f2a1322c"><td class="memSeparator" colspan="2">&#160;</td></tr>
    183<tr class="memitem:a6d25f7c43b1cbbb48b95cda7ab2c3141"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a6d25f7c43b1cbbb48b95cda7ab2c3141">HIDE_BKG</a></td></tr>
    184<tr class="separator:a6d25f7c43b1cbbb48b95cda7ab2c3141"><td class="memSeparator" colspan="2">&#160;</td></tr>
    185<tr class="memitem:ab19da2ab719bb8897bc0843a84af28f8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ab19da2ab719bb8897bc0843a84af28f8">SHOW_WIN</a></td></tr>
    186<tr class="separator:ab19da2ab719bb8897bc0843a84af28f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
    187<tr class="memitem:aedb6e32c42d4b1d25ad11adccd7100c3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aedb6e32c42d4b1d25ad11adccd7100c3">HIDE_WIN</a></td></tr>
    188<tr class="separator:aedb6e32c42d4b1d25ad11adccd7100c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
    189<tr class="memitem:a495bc9f405f916f02ad5d97e6e730134"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a495bc9f405f916f02ad5d97e6e730134">SHOW_SPRITES</a></td></tr>
    190<tr class="separator:a495bc9f405f916f02ad5d97e6e730134"><td class="memSeparator" colspan="2">&#160;</td></tr>
    191<tr class="memitem:a69ef98aee664b8abd8d1a3d45f016dda"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a69ef98aee664b8abd8d1a3d45f016dda">HIDE_SPRITES</a></td></tr>
    192<tr class="separator:a69ef98aee664b8abd8d1a3d45f016dda"><td class="memSeparator" colspan="2">&#160;</td></tr>
    193<tr class="memitem:af91d252f07f4764996154820f970c101"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#af91d252f07f4764996154820f970c101">SPRITES_8x16</a>&#160;&#160;&#160;	<a class="el" href="sms_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>, <a class="el" href="sms_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>) |= <a class="el" href="sms_2hardware_8h.html#a4985d6df1031afe8efb993f9c480ca12">R1_SPR_8X16</a>)</td></tr>
    194<tr class="separator:af91d252f07f4764996154820f970c101"><td class="memSeparator" colspan="2">&#160;</td></tr>
    195<tr class="memitem:aa87bec0d134136fdb727f52cb773b792"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aa87bec0d134136fdb727f52cb773b792">SPRITES_8x8</a>&#160;&#160;&#160;	<a class="el" href="sms_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>, <a class="el" href="sms_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>) &amp;= (~<a class="el" href="sms_2hardware_8h.html#a4985d6df1031afe8efb993f9c480ca12">R1_SPR_8X16</a>))</td></tr>
    196<tr class="separator:aa87bec0d134136fdb727f52cb773b792"><td class="memSeparator" colspan="2">&#160;</td></tr>
    197<tr class="memitem:a231ec05679809190782e61c6e8aaaba4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a231ec05679809190782e61c6e8aaaba4">DEVICE_SUPPORTS_COLOR</a>&#160;&#160;&#160;(<a class="el" href="types_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>)</td></tr>
    198<tr class="separator:a231ec05679809190782e61c6e8aaaba4"><td class="memSeparator" colspan="2">&#160;</td></tr>
    199<tr class="memitem:af0d15cf2a26924d2ef00ac4017e6b1d8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#af0d15cf2a26924d2ef00ac4017e6b1d8">_current_bank</a>&#160;&#160;&#160;MAP_FRAME1</td></tr>
    200<tr class="separator:af0d15cf2a26924d2ef00ac4017e6b1d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
    201<tr class="memitem:ae042588f20bf5a2349c8ad8716245233"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ae042588f20bf5a2349c8ad8716245233">CURRENT_BANK</a>&#160;&#160;&#160;MAP_FRAME1</td></tr>
    202<tr class="separator:ae042588f20bf5a2349c8ad8716245233"><td class="memSeparator" colspan="2">&#160;</td></tr>
    203<tr class="memitem:a42705001e2b9897f5167b67fb36c69dd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a42705001e2b9897f5167b67fb36c69dd">BANK</a>(VARNAME)&#160;&#160;&#160;( (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>) &amp; __bank_ ## VARNAME )</td></tr>
    204<tr class="separator:a42705001e2b9897f5167b67fb36c69dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
    205<tr class="memitem:a086293f2afb4c7945460a4496b20aea3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a086293f2afb4c7945460a4496b20aea3">BANKREF</a>(VARNAME)</td></tr>
    206<tr class="separator:a086293f2afb4c7945460a4496b20aea3"><td class="memSeparator" colspan="2">&#160;</td></tr>
    207<tr class="memitem:a261bba55a07b802baf99346feadd9852"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a261bba55a07b802baf99346feadd9852">BANKREF_EXTERN</a>(VARNAME)&#160;&#160;&#160;extern const void __bank_ ## VARNAME;</td></tr>
    208<tr class="separator:a261bba55a07b802baf99346feadd9852"><td class="memSeparator" colspan="2">&#160;</td></tr>
    209<tr class="memitem:af61262bbc05629f31020afce67e1b9ea"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#af61262bbc05629f31020afce67e1b9ea">SWITCH_ROM</a>(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>)&#160;&#160;&#160;MAP_FRAME1=(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>)</td></tr>
    210<tr class="separator:af61262bbc05629f31020afce67e1b9ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
    211<tr class="memitem:a86d47feb2b999aaabbba9f63f4bb3567"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a86d47feb2b999aaabbba9f63f4bb3567">SWITCH_ROM1</a>&#160;&#160;&#160;<a class="el" href="sms_8h.html#af61262bbc05629f31020afce67e1b9ea">SWITCH_ROM</a></td></tr>
    212<tr class="separator:a86d47feb2b999aaabbba9f63f4bb3567"><td class="memSeparator" colspan="2">&#160;</td></tr>
    213<tr class="memitem:a6d40a15ff27c2a1c8269d3dbe67eae65"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a6d40a15ff27c2a1c8269d3dbe67eae65">SWITCH_ROM2</a>(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>)&#160;&#160;&#160;MAP_FRAME2=(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>)</td></tr>
    214<tr class="separator:a6d40a15ff27c2a1c8269d3dbe67eae65"><td class="memSeparator" colspan="2">&#160;</td></tr>
    215<tr class="memitem:a121feb0c32d124562f52398aa9656e7b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a121feb0c32d124562f52398aa9656e7b">SWITCH_RAM</a>(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>)&#160;&#160;&#160;RAM_CONTROL=((<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>)&amp;1)?RAM_CONTROL|RAMCTL_BANK:RAM_CONTROL&amp;(~<a class="el" href="sms_2hardware_8h.html#a8f4dbe8a2e6389c78b9f6fb9a3ff1dca">RAMCTL_BANK</a>)</td></tr>
    216<tr class="separator:a121feb0c32d124562f52398aa9656e7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
    217<tr class="memitem:a0e9c88657beaac946231a4801481b97f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a0e9c88657beaac946231a4801481b97f">ENABLE_RAM</a>&#160;&#160;&#160;RAM_CONTROL|=<a class="el" href="sms_2hardware_8h.html#a8728acabf97eae3322439bc3cb41b02d">RAMCTL_RAM</a></td></tr>
    218<tr class="separator:a0e9c88657beaac946231a4801481b97f"><td class="memSeparator" colspan="2">&#160;</td></tr>
    219<tr class="memitem:a649d27b5587de16a66176e03a1b8ebd5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a649d27b5587de16a66176e03a1b8ebd5">DISABLE_RAM</a>&#160;&#160;&#160;RAM_CONTROL&amp;=(~<a class="el" href="sms_2hardware_8h.html#a8728acabf97eae3322439bc3cb41b02d">RAMCTL_RAM</a>)</td></tr>
    220<tr class="separator:a649d27b5587de16a66176e03a1b8ebd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
    221<tr class="memitem:a2215732f2ba2ec6406b65d3cca56a200"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a2215732f2ba2ec6406b65d3cca56a200">set_bkg_palette_entry</a>&#160;&#160;&#160;<a class="el" href="sms_8h.html#a2c9aabf4519e01257b0d0e04e8108164">set_palette_entry</a></td></tr>
    222<tr class="separator:a2215732f2ba2ec6406b65d3cca56a200"><td class="memSeparator" colspan="2">&#160;</td></tr>
    223<tr class="memitem:a8b5c17235a3f65af70492e109a25f237"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a8b5c17235a3f65af70492e109a25f237">set_sprite_palette_entry</a>(palette,  entry,  rgb_data)&#160;&#160;&#160;<a class="el" href="sms_8h.html#a2c9aabf4519e01257b0d0e04e8108164">set_palette_entry</a>(1,entry,rgb_data)</td></tr>
    224<tr class="separator:a8b5c17235a3f65af70492e109a25f237"><td class="memSeparator" colspan="2">&#160;</td></tr>
    225<tr class="memitem:a9f879bd31899f7989f887b6238de24e3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a9f879bd31899f7989f887b6238de24e3">set_bkg_palette</a>&#160;&#160;&#160;<a class="el" href="sms_8h.html#a92109adcc20960f26e8bc5fbb141d27e">set_palette</a></td></tr>
    226<tr class="separator:a9f879bd31899f7989f887b6238de24e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
    227<tr class="memitem:a7d5ed1aed79d8fd2894893d7f6f9b835"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a7d5ed1aed79d8fd2894893d7f6f9b835">set_sprite_palette</a>(first_palette,  nb_palettes,  rgb_data)&#160;&#160;&#160;<a class="el" href="sms_8h.html#a92109adcc20960f26e8bc5fbb141d27e">set_palette</a>(1,1,rgb_data)</td></tr>
    228<tr class="separator:a7d5ed1aed79d8fd2894893d7f6f9b835"><td class="memSeparator" colspan="2">&#160;</td></tr>
    229<tr class="memitem:a67f80e65620470b55a4950e2966eb868"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a67f80e65620470b55a4950e2966eb868">COMPAT_PALETTE</a>(C0,  C1,  C2,  C3)&#160;&#160;&#160;(((<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>)(C3) &lt;&lt; 12) | ((<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>)(C2) &lt;&lt; 8) | ((<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>)(C1) &lt;&lt; 4) | (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>)(C0))</td></tr>
    230<tr class="separator:a67f80e65620470b55a4950e2966eb868"><td class="memSeparator" colspan="2">&#160;</td></tr>
    231<tr class="memitem:a9a732aec1b7aec7d10a9d76ca4da2064"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a9a732aec1b7aec7d10a9d76ca4da2064">set_bkg_tiles</a>&#160;&#160;&#160;<a class="el" href="sms_8h.html#a7c38b146f77eda84981c06c2271fe116">set_tile_map_compat</a></td></tr>
    232<tr class="separator:a9a732aec1b7aec7d10a9d76ca4da2064"><td class="memSeparator" colspan="2">&#160;</td></tr>
    233<tr class="memitem:a429db030287423012f40a6dca81ae7e3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a429db030287423012f40a6dca81ae7e3">set_win_tiles</a>&#160;&#160;&#160;<a class="el" href="sms_8h.html#a7c38b146f77eda84981c06c2271fe116">set_tile_map_compat</a></td></tr>
    234<tr class="separator:a429db030287423012f40a6dca81ae7e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
    235<tr class="memitem:a3b7ffab8d64e2c345f03221145a935c0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a3b7ffab8d64e2c345f03221145a935c0">fill_bkg_rect</a>&#160;&#160;&#160;<a class="el" href="sms_8h.html#af2fc27409f907cfae9583b5ebf0c5ea8">fill_rect_compat</a></td></tr>
    236<tr class="separator:a3b7ffab8d64e2c345f03221145a935c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
    237<tr class="memitem:a5a69a3129f4faa99857a8b3d80db1d4a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a5a69a3129f4faa99857a8b3d80db1d4a">fill_win_rect</a>&#160;&#160;&#160;<a class="el" href="sms_8h.html#af2fc27409f907cfae9583b5ebf0c5ea8">fill_rect_compat</a></td></tr>
    238<tr class="separator:a5a69a3129f4faa99857a8b3d80db1d4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
    239<tr class="memitem:abfd70bf31185a4900680977c9fb5a5ec"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#abfd70bf31185a4900680977c9fb5a5ec">DISABLE_VBL_TRANSFER</a>&#160;&#160;&#160;    <a class="el" href="sms_8h.html#a5435fd985412934e96a490e103c6bc49">_shadow_OAM_base</a> = 0</td></tr>
    240<tr class="separator:abfd70bf31185a4900680977c9fb5a5ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
    241<tr class="memitem:a77d516c9d3f86f100eddea5e0d133a76"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a77d516c9d3f86f100eddea5e0d133a76">ENABLE_VBL_TRANSFER</a>&#160;&#160;&#160;    <a class="el" href="sms_8h.html#a5435fd985412934e96a490e103c6bc49">_shadow_OAM_base</a> = (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>)((<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>)&amp;<a class="el" href="sms_8h.html#af02f9e73bd894cc25e03aedb0a10a91d">shadow_OAM</a> &gt;&gt; 8)</td></tr>
    242<tr class="separator:a77d516c9d3f86f100eddea5e0d133a76"><td class="memSeparator" colspan="2">&#160;</td></tr>
    243<tr class="memitem:a8b77608c87a9aef65a03531482b2163b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a8b77608c87a9aef65a03531482b2163b">MAX_HARDWARE_SPRITES</a>&#160;&#160;&#160;64</td></tr>
    244<tr class="separator:a8b77608c87a9aef65a03531482b2163b"><td class="memSeparator" colspan="2">&#160;</td></tr>
    245<tr class="memitem:adcd40a58f7c7d348d506cc400cd94739"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#adcd40a58f7c7d348d506cc400cd94739">set_bkg_tile_xy</a>&#160;&#160;&#160;<a class="el" href="sms_8h.html#a5834057f6297c0fa8f8e9a6b714f1ff7">set_tile_xy</a></td></tr>
    246<tr class="separator:adcd40a58f7c7d348d506cc400cd94739"><td class="memSeparator" colspan="2">&#160;</td></tr>
    247<tr class="memitem:a95d929d964d9988f4dc5a25ed399ae08"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a95d929d964d9988f4dc5a25ed399ae08">set_win_tile_xy</a>&#160;&#160;&#160;<a class="el" href="sms_8h.html#a5834057f6297c0fa8f8e9a6b714f1ff7">set_tile_xy</a></td></tr>
    248<tr class="separator:a95d929d964d9988f4dc5a25ed399ae08"><td class="memSeparator" colspan="2">&#160;</td></tr>
    249<tr class="memitem:a6eaafdbe6cf1695d30724ce75acb9412"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a6eaafdbe6cf1695d30724ce75acb9412">get_win_xy_addr</a>&#160;&#160;&#160;<a class="el" href="sms_8h.html#a66b4bfb8c1ea3005ff01ce040a778e63">get_bkg_xy_addr</a></td></tr>
    250<tr class="separator:a6eaafdbe6cf1695d30724ce75acb9412"><td class="memSeparator" colspan="2">&#160;</td></tr>
    251</table><table class="memberdecls">
    252<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
    253Typedefs</h2></td></tr>
    254<tr class="memitem:a9508f919d9482d1d51534ccac212454d"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>) (void) <a class="el" href="asm_2types_8h.html#a7ed081d8dfb6902784b2fc730bbb7f96">NONBANKED</a></td></tr>
    255<tr class="separator:a9508f919d9482d1d51534ccac212454d"><td class="memSeparator" colspan="2">&#160;</td></tr>
    256</table><table class="memberdecls">
    257<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
    258Functions</h2></td></tr>
    259<tr class="memitem:a498b148efd22ab8ad9b844b2dc5e5bb8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a498b148efd22ab8ad9b844b2dc5e5bb8">WRITE_VDP_CMD</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> cmd) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></td></tr>
    260<tr class="separator:a498b148efd22ab8ad9b844b2dc5e5bb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
    261<tr class="memitem:aa2ddf9662320c4a9d00fd4a94d347570"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aa2ddf9662320c4a9d00fd4a94d347570">WRITE_VDP_DATA</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> data) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></td></tr>
    262<tr class="separator:aa2ddf9662320c4a9d00fd4a94d347570"><td class="memSeparator" colspan="2">&#160;</td></tr>
    263<tr class="memitem:a3ea524204d839377cf39842eec23e202"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a3ea524204d839377cf39842eec23e202">mode</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> m) <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></td></tr>
    264<tr class="separator:a3ea524204d839377cf39842eec23e202"><td class="memSeparator" colspan="2">&#160;</td></tr>
    265<tr class="memitem:ad9a83378f5ec1f6444c879e4cf1e1a83"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ad9a83378f5ec1f6444c879e4cf1e1a83">get_mode</a> () <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></td></tr>
    266<tr class="separator:ad9a83378f5ec1f6444c879e4cf1e1a83"><td class="memSeparator" colspan="2">&#160;</td></tr>
    267<tr class="memitem:aefda0091b2934571a11e07b512735f50"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aefda0091b2934571a11e07b512735f50">set_interrupts</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> flags) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a></td></tr>
    268<tr class="separator:aefda0091b2934571a11e07b512735f50"><td class="memSeparator" colspan="2">&#160;</td></tr>
    269<tr class="memitem:a98f7ef49e1758c601979bcb0ff19a1f0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a98f7ef49e1758c601979bcb0ff19a1f0">remove_VBL</a> (<a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    270<tr class="separator:a98f7ef49e1758c601979bcb0ff19a1f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
    271<tr class="memitem:aa8962b27b960bb0c8d3bb899246c690c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aa8962b27b960bb0c8d3bb899246c690c">remove_LCD</a> (<a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></td></tr>
    272<tr class="separator:aa8962b27b960bb0c8d3bb899246c690c"><td class="memSeparator" colspan="2">&#160;</td></tr>
    273<tr class="memitem:a98785a1b0ddc91cd8e8c8fab8de1de20"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a98785a1b0ddc91cd8e8c8fab8de1de20">remove_TIM</a> (<a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a></td></tr>
    274<tr class="separator:a98785a1b0ddc91cd8e8c8fab8de1de20"><td class="memSeparator" colspan="2">&#160;</td></tr>
    275<tr class="memitem:a98de9141f407585801fcbf55bf6dcc4c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a98de9141f407585801fcbf55bf6dcc4c">remove_SIO</a> (<a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a></td></tr>
    276<tr class="separator:a98de9141f407585801fcbf55bf6dcc4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
    277<tr class="memitem:a35a3ff12ab34534b763517576afe38a6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a35a3ff12ab34534b763517576afe38a6">remove_JOY</a> (<a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a></td></tr>
    278<tr class="separator:a35a3ff12ab34534b763517576afe38a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
    279<tr class="memitem:ae59628e2237f301df1341e22bfc8296e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ae59628e2237f301df1341e22bfc8296e">add_VBL</a> (<a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a></td></tr>
    280<tr class="separator:ae59628e2237f301df1341e22bfc8296e"><td class="memSeparator" colspan="2">&#160;</td></tr>
    281<tr class="memitem:a51add93356a25c71e8c37a73c9065c9d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a51add93356a25c71e8c37a73c9065c9d">add_LCD</a> (<a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></td></tr>
    282<tr class="separator:a51add93356a25c71e8c37a73c9065c9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
    283<tr class="memitem:a6c66a583a8f0744e3985c89725e3dc10"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a6c66a583a8f0744e3985c89725e3dc10">add_TIM</a> (<a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a></td></tr>
    284<tr class="separator:a6c66a583a8f0744e3985c89725e3dc10"><td class="memSeparator" colspan="2">&#160;</td></tr>
    285<tr class="memitem:a3372d61a07e0466bdb909a27f3aaaca9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a3372d61a07e0466bdb909a27f3aaaca9">add_SIO</a> (<a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a></td></tr>
    286<tr class="separator:a3372d61a07e0466bdb909a27f3aaaca9"><td class="memSeparator" colspan="2">&#160;</td></tr>
    287<tr class="memitem:a48163816121cd669526817d3e6266fd9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a48163816121cd669526817d3e6266fd9">add_JOY</a> (<a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a></td></tr>
    288<tr class="separator:a48163816121cd669526817d3e6266fd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
    289<tr class="memitem:ade5d4c955b871b0ed884273cc2b7215a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ade5d4c955b871b0ed884273cc2b7215a">cancel_pending_interrupts</a> ()</td></tr>
    290<tr class="separator:ade5d4c955b871b0ed884273cc2b7215a"><td class="memSeparator" colspan="2">&#160;</td></tr>
    291<tr class="memitem:a6261537edc74068e3f7f057e6a3e8a57"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a6261537edc74068e3f7f057e6a3e8a57">move_bkg</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y)</td></tr>
    292<tr class="separator:a6261537edc74068e3f7f057e6a3e8a57"><td class="memSeparator" colspan="2">&#160;</td></tr>
    293<tr class="memitem:a1f583f7a880daa6145ca78b086a209d1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a1f583f7a880daa6145ca78b086a209d1">scroll_bkg</a> (<a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> x, <a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> y)</td></tr>
    294<tr class="separator:a1f583f7a880daa6145ca78b086a209d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
    295<tr class="memitem:acd186eb292d441f9389e77b545a55619"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#acd186eb292d441f9389e77b545a55619">wait_vbl_done</a> () <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></td></tr>
    296<tr class="separator:acd186eb292d441f9389e77b545a55619"><td class="memSeparator" colspan="2">&#160;</td></tr>
    297<tr class="memitem:a7b09691f25fddd65f12ed199b3f88ef0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a7b09691f25fddd65f12ed199b3f88ef0">display_off</a> ()</td></tr>
    298<tr class="separator:a7b09691f25fddd65f12ed199b3f88ef0"><td class="memSeparator" colspan="2">&#160;</td></tr>
    299<tr class="memitem:a7542d00af674e3c58b6c9887ab01919f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a7542d00af674e3c58b6c9887ab01919f">refresh_OAM</a> ()</td></tr>
    300<tr class="separator:a7542d00af674e3c58b6c9887ab01919f"><td class="memSeparator" colspan="2">&#160;</td></tr>
    301<tr class="memitem:a217232c82eb5f99f7639b5786ce5abc6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a217232c82eb5f99f7639b5786ce5abc6">delay</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> <a class="el" href="sms_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a>) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a></td></tr>
    302<tr class="separator:a217232c82eb5f99f7639b5786ce5abc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
    303<tr class="memitem:a176c477d759b814664785f3a0ad5e253"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a176c477d759b814664785f3a0ad5e253">joypad</a> () <a class="el" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></td></tr>
    304<tr class="separator:a176c477d759b814664785f3a0ad5e253"><td class="memSeparator" colspan="2">&#160;</td></tr>
    305<tr class="memitem:a79b565677967da5ef9bf1a00aa6776ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a79b565677967da5ef9bf1a00aa6776ce">waitpad</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> mask) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></td></tr>
    306<tr class="separator:a79b565677967da5ef9bf1a00aa6776ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
    307<tr class="memitem:a955d3733e5018f18b17a572aff45cf26"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a955d3733e5018f18b17a572aff45cf26">waitpadup</a> () <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></td></tr>
    308<tr class="separator:a955d3733e5018f18b17a572aff45cf26"><td class="memSeparator" colspan="2">&#160;</td></tr>
    309<tr class="memitem:abe90cc2b5bb10c0ed9e01e548ddf8862"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#abe90cc2b5bb10c0ed9e01e548ddf8862">joypad_init</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> npads, <a class="el" href="structjoypads__t.html">joypads_t</a> *joypads) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a></td></tr>
    310<tr class="separator:abe90cc2b5bb10c0ed9e01e548ddf8862"><td class="memSeparator" colspan="2">&#160;</td></tr>
    311<tr class="memitem:a1d45c65829490c5ec98362f5e60edc20"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a1d45c65829490c5ec98362f5e60edc20">joypad_ex</a> (<a class="el" href="structjoypads__t.html">joypads_t</a> *joypads) <a class="el" href="asm_2z80_2types_8h.html#af45e54cf59a5202abc9125c07b64abf1">Z88DK_FASTCALL</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    312<tr class="separator:a1d45c65829490c5ec98362f5e60edc20"><td class="memSeparator" colspan="2">&#160;</td></tr>
    313<tr class="memitem:abd34836339579013c097ae4dea10c014"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#abd34836339579013c097ae4dea10c014">set_default_palette</a> ()</td></tr>
    314<tr class="separator:abd34836339579013c097ae4dea10c014"><td class="memSeparator" colspan="2">&#160;</td></tr>
    315<tr class="memitem:a884a743919b234cd9c37789380784d08"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a884a743919b234cd9c37789380784d08">cpu_fast</a> ()</td></tr>
    316<tr class="separator:a884a743919b234cd9c37789380784d08"><td class="memSeparator" colspan="2">&#160;</td></tr>
    317<tr class="memitem:a2c9aabf4519e01257b0d0e04e8108164"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a2c9aabf4519e01257b0d0e04e8108164">set_palette_entry</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> palette, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> entry, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> rgb_data) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    318<tr class="separator:a2c9aabf4519e01257b0d0e04e8108164"><td class="memSeparator" colspan="2">&#160;</td></tr>
    319<tr class="memitem:a92109adcc20960f26e8bc5fbb141d27e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a92109adcc20960f26e8bc5fbb141d27e">set_palette</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> first_palette, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb_palettes, <a class="el" href="cgb_8h.html#af868d7cdbd052c6b972ef137e02f6495">palette_color_t</a> *rgb_data) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a></td></tr>
    320<tr class="separator:a92109adcc20960f26e8bc5fbb141d27e"><td class="memSeparator" colspan="2">&#160;</td></tr>
    321<tr class="memitem:a24764a152441b966ea04a83278c73207"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a24764a152441b966ea04a83278c73207">set_native_tile_data</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, const void *src) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    322<tr class="separator:a24764a152441b966ea04a83278c73207"><td class="memSeparator" colspan="2">&#160;</td></tr>
    323<tr class="memitem:aeff13dca11be49e8c159820c616016ec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aeff13dca11be49e8c159820c616016ec">set_bkg_4bpp_data</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, const void *src)</td></tr>
    324<tr class="separator:aeff13dca11be49e8c159820c616016ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
    325<tr class="memitem:a24f53cfe7e25c04fbb5dcb08cfb3b432"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a24f53cfe7e25c04fbb5dcb08cfb3b432">set_sprite_4bpp_data</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, const void *src)</td></tr>
    326<tr class="separator:a24f53cfe7e25c04fbb5dcb08cfb3b432"><td class="memSeparator" colspan="2">&#160;</td></tr>
    327<tr class="memitem:aa224c9bac27c7fd268e62bdf33338a84"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aa224c9bac27c7fd268e62bdf33338a84">set_2bpp_palette</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> palette)</td></tr>
    328<tr class="separator:aa224c9bac27c7fd268e62bdf33338a84"><td class="memSeparator" colspan="2">&#160;</td></tr>
    329<tr class="memitem:ab752b1bb0f58da2a6d52e9747c4b3dd8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ab752b1bb0f58da2a6d52e9747c4b3dd8">set_tile_2bpp_data</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, const void *src, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> palette) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    330<tr class="separator:ab752b1bb0f58da2a6d52e9747c4b3dd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
    331<tr class="memitem:a8130306da1177f4fef89e699f8e2add4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a8130306da1177f4fef89e699f8e2add4">set_bkg_data</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, const void *src)</td></tr>
    332<tr class="separator:a8130306da1177f4fef89e699f8e2add4"><td class="memSeparator" colspan="2">&#160;</td></tr>
    333<tr class="memitem:a216a3e3d320ee4d8cf4845600487ae39"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a216a3e3d320ee4d8cf4845600487ae39">set_sprite_data</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, const void *src)</td></tr>
    334<tr class="separator:a216a3e3d320ee4d8cf4845600487ae39"><td class="memSeparator" colspan="2">&#160;</td></tr>
    335<tr class="memitem:aa7ba76e4d44dbf19da351fd1ea8e3023"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aa7ba76e4d44dbf19da351fd1ea8e3023">set_bkg_2bpp_data</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, const void *src)</td></tr>
    336<tr class="separator:aa7ba76e4d44dbf19da351fd1ea8e3023"><td class="memSeparator" colspan="2">&#160;</td></tr>
    337<tr class="memitem:a10ee2919fcab7a5c482816ed718d1c4a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a10ee2919fcab7a5c482816ed718d1c4a">set_sprite_2bpp_data</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, const void *src)</td></tr>
    338<tr class="separator:a10ee2919fcab7a5c482816ed718d1c4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
    339<tr class="memitem:adcb394299a1033616fc7d2faec8bd6ad"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#adcb394299a1033616fc7d2faec8bd6ad">set_1bpp_colors</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> fgcolor, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> bgcolor)</td></tr>
    340<tr class="separator:adcb394299a1033616fc7d2faec8bd6ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
    341<tr class="memitem:a747033606e041b45ae09b38fdb06b871"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a747033606e041b45ae09b38fdb06b871">set_tile_1bpp_data</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, const void *src, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> colors) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    342<tr class="separator:a747033606e041b45ae09b38fdb06b871"><td class="memSeparator" colspan="2">&#160;</td></tr>
    343<tr class="memitem:a4d5f74eed0489ebfdc2410ee3f9f7f04"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a4d5f74eed0489ebfdc2410ee3f9f7f04">set_bkg_1bpp_data</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, const void *src)</td></tr>
    344<tr class="separator:a4d5f74eed0489ebfdc2410ee3f9f7f04"><td class="memSeparator" colspan="2">&#160;</td></tr>
    345<tr class="memitem:a2cc121fbeb5570248531b85a8f0b5b97"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a2cc121fbeb5570248531b85a8f0b5b97">set_sprite_1bpp_data</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> start, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> ntiles, const void *src)</td></tr>
    346<tr class="separator:a2cc121fbeb5570248531b85a8f0b5b97"><td class="memSeparator" colspan="2">&#160;</td></tr>
    347<tr class="memitem:a8fe17423c7ef7c44f1ccff27d3afbebc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a8fe17423c7ef7c44f1ccff27d3afbebc">set_data</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> dst, const void *src, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> size) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    348<tr class="separator:a8fe17423c7ef7c44f1ccff27d3afbebc"><td class="memSeparator" colspan="2">&#160;</td></tr>
    349<tr class="memitem:a33a749b14dfbd203c460e8d7f3500636"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a33a749b14dfbd203c460e8d7f3500636">vmemcpy</a> (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> dst, const void *src, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> size) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    350<tr class="separator:a33a749b14dfbd203c460e8d7f3500636"><td class="memSeparator" colspan="2">&#160;</td></tr>
    351<tr class="memitem:a14fc41e69085b5aa3da2fae9a2aa3ef3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a14fc41e69085b5aa3da2fae9a2aa3ef3">set_tile_map</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    352<tr class="separator:a14fc41e69085b5aa3da2fae9a2aa3ef3"><td class="memSeparator" colspan="2">&#160;</td></tr>
    353<tr class="memitem:a7c38b146f77eda84981c06c2271fe116"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a7c38b146f77eda84981c06c2271fe116">set_tile_map_compat</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    354<tr class="separator:a7c38b146f77eda84981c06c2271fe116"><td class="memSeparator" colspan="2">&#160;</td></tr>
    355<tr class="memitem:a811c386cac0df2d260aacb5a43608be5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a811c386cac0df2d260aacb5a43608be5">set_bkg_based_tiles</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile)</td></tr>
    356<tr class="separator:a811c386cac0df2d260aacb5a43608be5"><td class="memSeparator" colspan="2">&#160;</td></tr>
    357<tr class="memitem:a739a212609ae60c9c56c095f96b4ea80"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a739a212609ae60c9c56c095f96b4ea80">set_win_based_tiles</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *tiles, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile)</td></tr>
    358<tr class="separator:a739a212609ae60c9c56c095f96b4ea80"><td class="memSeparator" colspan="2">&#160;</td></tr>
    359<tr class="memitem:a84774e034fe0e70af62bd17ac716ba34"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a84774e034fe0e70af62bd17ac716ba34">set_tile_submap</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w, const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    360<tr class="separator:a84774e034fe0e70af62bd17ac716ba34"><td class="memSeparator" colspan="2">&#160;</td></tr>
    361<tr class="memitem:aba0308b5e8e154cc920f041a185ac770"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aba0308b5e8e154cc920f041a185ac770">set_tile_submap_compat</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w, const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    362<tr class="separator:aba0308b5e8e154cc920f041a185ac770"><td class="memSeparator" colspan="2">&#160;</td></tr>
    363<tr class="memitem:a0cfd261bc7a94b1f6093f423bad30298"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a0cfd261bc7a94b1f6093f423bad30298">set_bkg_submap</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w)</td></tr>
    364<tr class="separator:a0cfd261bc7a94b1f6093f423bad30298"><td class="memSeparator" colspan="2">&#160;</td></tr>
    365<tr class="memitem:abb50a392ca0d0419a080413287ee5d79"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#abb50a392ca0d0419a080413287ee5d79">set_win_submap</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w)</td></tr>
    366<tr class="separator:abb50a392ca0d0419a080413287ee5d79"><td class="memSeparator" colspan="2">&#160;</td></tr>
    367<tr class="memitem:abc8bc5808620a9717263b8c9ec2237f0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#abc8bc5808620a9717263b8c9ec2237f0">set_bkg_based_submap</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile)</td></tr>
    368<tr class="separator:abc8bc5808620a9717263b8c9ec2237f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
    369<tr class="memitem:a1b8a1026983cb2b2c0bd46334b4692a0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a1b8a1026983cb2b2c0bd46334b4692a0">set_win_based_submap</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *map, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> map_w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> base_tile)</td></tr>
    370<tr class="separator:a1b8a1026983cb2b2c0bd46334b4692a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
    371<tr class="memitem:aba932d128338fb19644842565139a20d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aba932d128338fb19644842565139a20d">fill_rect</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, const <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> tile) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    372<tr class="separator:aba932d128338fb19644842565139a20d"><td class="memSeparator" colspan="2">&#160;</td></tr>
    373<tr class="memitem:af2fc27409f907cfae9583b5ebf0c5ea8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#af2fc27409f907cfae9583b5ebf0c5ea8">fill_rect_compat</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> w, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a>, const <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> tile) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    374<tr class="separator:af2fc27409f907cfae9583b5ebf0c5ea8"><td class="memSeparator" colspan="2">&#160;</td></tr>
    375<tr class="memitem:a7e0cdfd6b9a2ae1b7f30384f132d8687"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a7e0cdfd6b9a2ae1b7f30384f132d8687">SET_SHADOW_OAM_ADDRESS</a> (void *address)</td></tr>
    376<tr class="separator:a7e0cdfd6b9a2ae1b7f30384f132d8687"><td class="memSeparator" colspan="2">&#160;</td></tr>
    377<tr class="memitem:a05bf0b9f1328de7b568a19a2a428bcfe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a05bf0b9f1328de7b568a19a2a428bcfe">set_sprite_tile</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> tile)</td></tr>
    378<tr class="separator:a05bf0b9f1328de7b568a19a2a428bcfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
    379<tr class="memitem:af5c0beff7d7a7d8641b51fd95c811b2a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#af5c0beff7d7a7d8641b51fd95c811b2a">get_sprite_tile</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb)</td></tr>
    380<tr class="separator:af5c0beff7d7a7d8641b51fd95c811b2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
    381<tr class="memitem:a99ea3252469e3614e977cce2aa1d06f7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a99ea3252469e3614e977cce2aa1d06f7">set_sprite_prop</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> prop)</td></tr>
    382<tr class="separator:a99ea3252469e3614e977cce2aa1d06f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
    383<tr class="memitem:a6b873c807c9e2c90fb574951e85fdf88"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a6b873c807c9e2c90fb574951e85fdf88">get_sprite_prop</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb)</td></tr>
    384<tr class="separator:a6b873c807c9e2c90fb574951e85fdf88"><td class="memSeparator" colspan="2">&#160;</td></tr>
    385<tr class="memitem:ab42c12c1d9aed3fd963248fbea9830cd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ab42c12c1d9aed3fd963248fbea9830cd">move_sprite</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y)</td></tr>
    386<tr class="separator:ab42c12c1d9aed3fd963248fbea9830cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
    387<tr class="memitem:a6c59aa9a4f9ea42bed6ca6940b2741fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a6c59aa9a4f9ea42bed6ca6940b2741fe">scroll_sprite</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb, <a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> x, <a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a> y)</td></tr>
    388<tr class="separator:a6c59aa9a4f9ea42bed6ca6940b2741fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
    389<tr class="memitem:ad22c51635d052399bbbe1777999c794d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ad22c51635d052399bbbe1777999c794d">hide_sprite</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> nb)</td></tr>
    390<tr class="separator:ad22c51635d052399bbbe1777999c794d"><td class="memSeparator" colspan="2">&#160;</td></tr>
    391<tr class="memitem:afe1bc7117a68cd0939c2d03baaa06b89"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#afe1bc7117a68cd0939c2d03baaa06b89">set_vram_byte</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *addr, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> v) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    392<tr class="separator:afe1bc7117a68cd0939c2d03baaa06b89"><td class="memSeparator" colspan="2">&#160;</td></tr>
    393<tr class="memitem:a476f433ea736a1dd610490238f2a6250"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a476f433ea736a1dd610490238f2a6250">set_attributed_tile_xy</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> t) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    394<tr class="separator:a476f433ea736a1dd610490238f2a6250"><td class="memSeparator" colspan="2">&#160;</td></tr>
    395<tr class="memitem:a5834057f6297c0fa8f8e9a6b714f1ff7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a5834057f6297c0fa8f8e9a6b714f1ff7">set_tile_xy</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> t) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    396<tr class="separator:a5834057f6297c0fa8f8e9a6b714f1ff7"><td class="memSeparator" colspan="2">&#160;</td></tr>
    397<tr class="memitem:a66b4bfb8c1ea3005ff01ce040a778e63"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a66b4bfb8c1ea3005ff01ce040a778e63">get_bkg_xy_addr</a> (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> x, <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> y) <a class="el" href="asm_2z80_2types_8h.html#aa19670cfef9fe1cc31f28fafb0e1000a">Z88DK_CALLEE</a> <a class="el" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    398<tr class="separator:a66b4bfb8c1ea3005ff01ce040a778e63"><td class="memSeparator" colspan="2">&#160;</td></tr>
    399</table><table class="memberdecls">
    400<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
    401Variables</h2></td></tr>
    402<tr class="memitem:a0b3366755f3276b0243c1e0497471b7a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a></td></tr>
    403<tr class="separator:a0b3366755f3276b0243c1e0497471b7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
    404<tr class="memitem:a0a3d95ad0ab8ad213016101d2e9c3d3e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e">d</a></td></tr>
    405<tr class="separator:a0a3d95ad0ab8ad213016101d2e9c3d3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
    406<tr class="memitem:aeda4515a31485c9688c4601ac5ce2d79"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aeda4515a31485c9688c4601ac5ce2d79">e</a></td></tr>
    407<tr class="separator:aeda4515a31485c9688c4601ac5ce2d79"><td class="memSeparator" colspan="2">&#160;</td></tr>
    408<tr class="memitem:aade844cba18122ad48cb2f92b1c87ab0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aade844cba18122ad48cb2f92b1c87ab0">iyh</a></td></tr>
    409<tr class="separator:aade844cba18122ad48cb2f92b1c87ab0"><td class="memSeparator" colspan="2">&#160;</td></tr>
    410<tr class="memitem:af279c752a3b15c4bd5c67f54b92e553f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#af279c752a3b15c4bd5c67f54b92e553f">iyl</a></td></tr>
    411<tr class="separator:af279c752a3b15c4bd5c67f54b92e553f"><td class="memSeparator" colspan="2">&#160;</td></tr>
    412<tr class="memitem:a1f1dfeb2f802fe99f37fe91867b84456"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a1f1dfeb2f802fe99f37fe91867b84456">h</a></td></tr>
    413<tr class="separator:a1f1dfeb2f802fe99f37fe91867b84456"><td class="memSeparator" colspan="2">&#160;</td></tr>
    414<tr class="memitem:af79b920bcb642bba2e652874c4f7eeff"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#af79b920bcb642bba2e652874c4f7eeff">l</a></td></tr>
    415<tr class="separator:af79b920bcb642bba2e652874c4f7eeff"><td class="memSeparator" colspan="2">&#160;</td></tr>
    416<tr class="memitem:a78d2fd18666afec116f176d46debb4e7"><td class="memItemLeft" align="right" valign="top">volatile <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a78d2fd18666afec116f176d46debb4e7">sys_time</a></td></tr>
    417<tr class="separator:a78d2fd18666afec116f176d46debb4e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
    418<tr class="memitem:a22dc57e538f0f49e2dc7d1c73f67fc8f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a22dc57e538f0f49e2dc7d1c73f67fc8f">_current_2bpp_palette</a></td></tr>
    419<tr class="separator:a22dc57e538f0f49e2dc7d1c73f67fc8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
    420<tr class="memitem:a250f5339e05523912926be566e9eb8c0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a250f5339e05523912926be566e9eb8c0">_current_1bpp_colors</a></td></tr>
    421<tr class="separator:a250f5339e05523912926be566e9eb8c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
    422<tr class="memitem:aa82205e9629f984d0b3dc8055c211522"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#aa82205e9629f984d0b3dc8055c211522">_map_tile_offset</a></td></tr>
    423<tr class="separator:aa82205e9629f984d0b3dc8055c211522"><td class="memSeparator" colspan="2">&#160;</td></tr>
    424<tr class="memitem:ab472d9bbb1bcfd141374f5babc71934c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#ab472d9bbb1bcfd141374f5babc71934c">_submap_tile_offset</a></td></tr>
    425<tr class="separator:ab472d9bbb1bcfd141374f5babc71934c"><td class="memSeparator" colspan="2">&#160;</td></tr>
    426<tr class="memitem:af02f9e73bd894cc25e03aedb0a10a91d"><td class="memItemLeft" align="right" valign="top">volatile <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#af02f9e73bd894cc25e03aedb0a10a91d">shadow_OAM</a> []</td></tr>
    427<tr class="separator:af02f9e73bd894cc25e03aedb0a10a91d"><td class="memSeparator" colspan="2">&#160;</td></tr>
    428<tr class="memitem:a5435fd985412934e96a490e103c6bc49"><td class="memItemLeft" align="right" valign="top">volatile <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a5435fd985412934e96a490e103c6bc49">_shadow_OAM_base</a></td></tr>
    429<tr class="separator:a5435fd985412934e96a490e103c6bc49"><td class="memSeparator" colspan="2">&#160;</td></tr>
    430<tr class="memitem:a388d1dff2698172ba8574e43f5c77c93"><td class="memItemLeft" align="right" valign="top">volatile <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sms_8h.html#a388d1dff2698172ba8574e43f5c77c93">_shadow_OAM_OFF</a></td></tr>
    431<tr class="separator:a388d1dff2698172ba8574e43f5c77c93"><td class="memSeparator" colspan="2">&#160;</td></tr>
    432</table>
    433<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
    434<div class="textblock"><p>SMS/GG specific functions. </p>
    435</div><h2 class="groupheader">Macro Definition Documentation</h2>
    436<a id="a19e5fbd76b85bf708ec31d55905fc537"></a>
    437<h2 class="memtitle"><span class="permalink"><a href="#a19e5fbd76b85bf708ec31d55905fc537">&#9670;&nbsp;</a></span>SEGA</h2>
    438
    439<div class="memitem">
    440<div class="memproto">
    441      <table class="memname">
    442        <tr>
    443          <td class="memname">#define SEGA</td>
    444        </tr>
    445      </table>
    446</div><div class="memdoc">
    447
    448</div>
    449</div>
    450<a id="a6bc34abf062d8e3be88170ac106f197f"></a>
    451<h2 class="memtitle"><span class="permalink"><a href="#a6bc34abf062d8e3be88170ac106f197f">&#9670;&nbsp;</a></span>VBK_REG</h2>
    452
    453<div class="memitem">
    454<div class="memproto">
    455      <table class="memname">
    456        <tr>
    457          <td class="memname">#define VBK_REG&#160;&#160;&#160;<a class="el" href="sms_2hardware_8h.html#a019bf78a6d586c987aec03af8d20e02f">VDP_ATTR_SHIFT</a></td>
    458        </tr>
    459      </table>
    460</div><div class="memdoc">
    461
    462</div>
    463</div>
    464<a id="a05ca817ab32f6da612c3ae26db5abf02"></a>
    465<h2 class="memtitle"><span class="permalink"><a href="#a05ca817ab32f6da612c3ae26db5abf02">&#9670;&nbsp;</a></span>J_UP</h2>
    466
    467<div class="memitem">
    468<div class="memproto">
    469      <table class="memname">
    470        <tr>
    471          <td class="memname">#define J_UP&#160;&#160;&#160;0b00000001</td>
    472        </tr>
    473      </table>
    474</div><div class="memdoc">
    475<p>Joypad bits. A logical OR of these is used in the wait_pad and joypad functions. For example, to see if the B button is pressed try</p>
    476<p>uint8_t keys; keys = <a class="el" href="sms_8h.html#a176c477d759b814664785f3a0ad5e253">joypad()</a>; if (keys &amp; J_B) { ... }</p>
    477<dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a176c477d759b814664785f3a0ad5e253">joypad</a> </dd></dl>
    478
    479</div>
    480</div>
    481<a id="ae032c5c544196e37ec0432f6cfad7904"></a>
    482<h2 class="memtitle"><span class="permalink"><a href="#ae032c5c544196e37ec0432f6cfad7904">&#9670;&nbsp;</a></span>J_DOWN</h2>
    483
    484<div class="memitem">
    485<div class="memproto">
    486      <table class="memname">
    487        <tr>
    488          <td class="memname">#define J_DOWN&#160;&#160;&#160;0b00000010</td>
    489        </tr>
    490      </table>
    491</div><div class="memdoc">
    492
    493</div>
    494</div>
    495<a id="ac70894fecac30c1ca9917f07373cf81c"></a>
    496<h2 class="memtitle"><span class="permalink"><a href="#ac70894fecac30c1ca9917f07373cf81c">&#9670;&nbsp;</a></span>J_LEFT</h2>
    497
    498<div class="memitem">
    499<div class="memproto">
    500      <table class="memname">
    501        <tr>
    502          <td class="memname">#define J_LEFT&#160;&#160;&#160;0b00000100</td>
    503        </tr>
    504      </table>
    505</div><div class="memdoc">
    506
    507</div>
    508</div>
    509<a id="a3bad91d11ae09ffcbb3cb0a81873d325"></a>
    510<h2 class="memtitle"><span class="permalink"><a href="#a3bad91d11ae09ffcbb3cb0a81873d325">&#9670;&nbsp;</a></span>J_RIGHT</h2>
    511
    512<div class="memitem">
    513<div class="memproto">
    514      <table class="memname">
    515        <tr>
    516          <td class="memname">#define J_RIGHT&#160;&#160;&#160;0b00001000</td>
    517        </tr>
    518      </table>
    519</div><div class="memdoc">
    520
    521</div>
    522</div>
    523<a id="a31af766e3b598eb7a6b63f55a4988e7a"></a>
    524<h2 class="memtitle"><span class="permalink"><a href="#a31af766e3b598eb7a6b63f55a4988e7a">&#9670;&nbsp;</a></span>J_A</h2>
    525
    526<div class="memitem">
    527<div class="memproto">
    528      <table class="memname">
    529        <tr>
    530          <td class="memname">#define J_A&#160;&#160;&#160;0b00010000</td>
    531        </tr>
    532      </table>
    533</div><div class="memdoc">
    534
    535</div>
    536</div>
    537<a id="ae47e59a309120f9420993f26816b5e6d"></a>
    538<h2 class="memtitle"><span class="permalink"><a href="#ae47e59a309120f9420993f26816b5e6d">&#9670;&nbsp;</a></span>J_B</h2>
    539
    540<div class="memitem">
    541<div class="memproto">
    542      <table class="memname">
    543        <tr>
    544          <td class="memname">#define J_B&#160;&#160;&#160;0b00100000</td>
    545        </tr>
    546      </table>
    547</div><div class="memdoc">
    548
    549</div>
    550</div>
    551<a id="af0e30d6af308ffe5a025fbe85da40f6f"></a>
    552<h2 class="memtitle"><span class="permalink"><a href="#af0e30d6af308ffe5a025fbe85da40f6f">&#9670;&nbsp;</a></span>M_TEXT_OUT</h2>
    553
    554<div class="memitem">
    555<div class="memproto">
    556      <table class="memname">
    557        <tr>
    558          <td class="memname">#define M_TEXT_OUT&#160;&#160;&#160;0x02U</td>
    559        </tr>
    560      </table>
    561</div><div class="memdoc">
    562<p>Screen modes. Normally used by internal functions only. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a3ea524204d839377cf39842eec23e202">mode()</a> </dd></dl>
    563
    564</div>
    565</div>
    566<a id="a908826e7180f94a5988ceb8633313a2e"></a>
    567<h2 class="memtitle"><span class="permalink"><a href="#a908826e7180f94a5988ceb8633313a2e">&#9670;&nbsp;</a></span>M_TEXT_INOUT</h2>
    568
    569<div class="memitem">
    570<div class="memproto">
    571      <table class="memname">
    572        <tr>
    573          <td class="memname">#define M_TEXT_INOUT&#160;&#160;&#160;0x03U</td>
    574        </tr>
    575      </table>
    576</div><div class="memdoc">
    577
    578</div>
    579</div>
    580<a id="a04382de20738146fe873ddfb0585052b"></a>
    581<h2 class="memtitle"><span class="permalink"><a href="#a04382de20738146fe873ddfb0585052b">&#9670;&nbsp;</a></span>M_NO_SCROLL</h2>
    582
    583<div class="memitem">
    584<div class="memproto">
    585      <table class="memname">
    586        <tr>
    587          <td class="memname">#define M_NO_SCROLL&#160;&#160;&#160;0x04U</td>
    588        </tr>
    589      </table>
    590</div><div class="memdoc">
    591<p>Set this in addition to the others to disable scrolling</p>
    592<p>If scrolling is disabled, the cursor returns to (0,0) </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a3ea524204d839377cf39842eec23e202">mode()</a> </dd></dl>
    593
    594</div>
    595</div>
    596<a id="aca2855edd2d28f66be551a0f7ec23f07"></a>
    597<h2 class="memtitle"><span class="permalink"><a href="#aca2855edd2d28f66be551a0f7ec23f07">&#9670;&nbsp;</a></span>M_NO_INTERP</h2>
    598
    599<div class="memitem">
    600<div class="memproto">
    601      <table class="memname">
    602        <tr>
    603          <td class="memname">#define M_NO_INTERP&#160;&#160;&#160;0x08U</td>
    604        </tr>
    605      </table>
    606</div><div class="memdoc">
    607<p>Set this to disable interpretation </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a3ea524204d839377cf39842eec23e202">mode()</a> </dd></dl>
    608
    609</div>
    610</div>
    611<a id="ae97793b4039609f93b0f7f8bddb18011"></a>
    612<h2 class="memtitle"><span class="permalink"><a href="#ae97793b4039609f93b0f7f8bddb18011">&#9670;&nbsp;</a></span>S_FLIPX</h2>
    613
    614<div class="memitem">
    615<div class="memproto">
    616      <table class="memname">
    617        <tr>
    618          <td class="memname">#define S_FLIPX&#160;&#160;&#160;0x02U</td>
    619        </tr>
    620      </table>
    621</div><div class="memdoc">
    622<p>If set the background tile will be flipped horizontally. </p>
    623
    624</div>
    625</div>
    626<a id="a4bbb9cd6c38b2317de5256d1d889c63b"></a>
    627<h2 class="memtitle"><span class="permalink"><a href="#a4bbb9cd6c38b2317de5256d1d889c63b">&#9670;&nbsp;</a></span>S_FLIPY</h2>
    628
    629<div class="memitem">
    630<div class="memproto">
    631      <table class="memname">
    632        <tr>
    633          <td class="memname">#define S_FLIPY&#160;&#160;&#160;0x04U</td>
    634        </tr>
    635      </table>
    636</div><div class="memdoc">
    637<p>If set the background tile will be flipped vertically. </p>
    638
    639</div>
    640</div>
    641<a id="a54572cf6791463b6d60623837e0bb5a6"></a>
    642<h2 class="memtitle"><span class="permalink"><a href="#a54572cf6791463b6d60623837e0bb5a6">&#9670;&nbsp;</a></span>S_PALETTE</h2>
    643
    644<div class="memitem">
    645<div class="memproto">
    646      <table class="memname">
    647        <tr>
    648          <td class="memname">#define S_PALETTE&#160;&#160;&#160;0x08U</td>
    649        </tr>
    650      </table>
    651</div><div class="memdoc">
    652<p>If set the background tile palette. </p>
    653
    654</div>
    655</div>
    656<a id="a9506d04c2ec7d2442a52054f67d2b32f"></a>
    657<h2 class="memtitle"><span class="permalink"><a href="#a9506d04c2ec7d2442a52054f67d2b32f">&#9670;&nbsp;</a></span>S_PRIORITY</h2>
    658
    659<div class="memitem">
    660<div class="memproto">
    661      <table class="memname">
    662        <tr>
    663          <td class="memname">#define S_PRIORITY&#160;&#160;&#160;0x10U</td>
    664        </tr>
    665      </table>
    666</div><div class="memdoc">
    667<p>If set the background tile priority. </p>
    668
    669</div>
    670</div>
    671<a id="aa34282113397af810be737df1acec36c"></a>
    672<h2 class="memtitle"><span class="permalink"><a href="#aa34282113397af810be737df1acec36c">&#9670;&nbsp;</a></span>__WRITE_VDP_REG</h2>
    673
    674<div class="memitem">
    675<div class="memproto">
    676      <table class="memname">
    677        <tr>
    678          <td class="memname">#define __WRITE_VDP_REG</td>
    679          <td>(</td>
    680          <td class="paramtype">&#160;</td>
    681          <td class="paramname">REG, </td>
    682        </tr>
    683        <tr>
    684          <td class="paramkey"></td>
    685          <td></td>
    686          <td class="paramtype">&#160;</td>
    687          <td class="paramname">v&#160;</td>
    688        </tr>
    689        <tr>
    690          <td></td>
    691          <td>)</td>
    692          <td></td><td>&#160;&#160;&#160;shadow_##REG=(v);__critical{VDP_CMD=(shadow_##REG),VDP_CMD=REG;}</td>
    693        </tr>
    694      </table>
    695</div><div class="memdoc">
    696
    697</div>
    698</div>
    699<a id="a964e713cb2535d7464d0d6ca7677049a"></a>
    700<h2 class="memtitle"><span class="permalink"><a href="#a964e713cb2535d7464d0d6ca7677049a">&#9670;&nbsp;</a></span>__READ_VDP_REG</h2>
    701
    702<div class="memitem">
    703<div class="memproto">
    704      <table class="memname">
    705        <tr>
    706          <td class="memname">#define __READ_VDP_REG</td>
    707          <td>(</td>
    708          <td class="paramtype">&#160;</td>
    709          <td class="paramname">REG</td><td>)</td>
    710          <td>&#160;&#160;&#160;shadow_##REG</td>
    711        </tr>
    712      </table>
    713</div><div class="memdoc">
    714
    715</div>
    716</div>
    717<a id="aa027abe630d44039f238034bcb2d2f36"></a>
    718<h2 class="memtitle"><span class="permalink"><a href="#aa027abe630d44039f238034bcb2d2f36">&#9670;&nbsp;</a></span>EMPTY_IFLAG</h2>
    719
    720<div class="memitem">
    721<div class="memproto">
    722      <table class="memname">
    723        <tr>
    724          <td class="memname">#define EMPTY_IFLAG&#160;&#160;&#160;0x00U</td>
    725        </tr>
    726      </table>
    727</div><div class="memdoc">
    728<p>Disable calling of interrupt service routines </p>
    729
    730</div>
    731</div>
    732<a id="a2ca7720b9a5da9b2173e1f74dba85541"></a>
    733<h2 class="memtitle"><span class="permalink"><a href="#a2ca7720b9a5da9b2173e1f74dba85541">&#9670;&nbsp;</a></span>VBL_IFLAG</h2>
    734
    735<div class="memitem">
    736<div class="memproto">
    737      <table class="memname">
    738        <tr>
    739          <td class="memname">#define VBL_IFLAG&#160;&#160;&#160;0x01U</td>
    740        </tr>
    741      </table>
    742</div><div class="memdoc">
    743<p>VBlank Interrupt occurs at the start of the vertical blank.</p>
    744<p>During this period the video ram may be freely accessed. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#aefda0091b2934571a11e07b512735f50">set_interrupts()</a>, </dd>
    745<dd>
    746<a class="el" href="sms_8h.html#ae59628e2237f301df1341e22bfc8296e">add_VBL</a> </dd></dl>
    747
    748</div>
    749</div>
    750<a id="a61a9e2910380de6abb34df14ef634eb4"></a>
    751<h2 class="memtitle"><span class="permalink"><a href="#a61a9e2910380de6abb34df14ef634eb4">&#9670;&nbsp;</a></span>LCD_IFLAG</h2>
    752
    753<div class="memitem">
    754<div class="memproto">
    755      <table class="memname">
    756        <tr>
    757          <td class="memname">#define LCD_IFLAG&#160;&#160;&#160;0x02U</td>
    758        </tr>
    759      </table>
    760</div><div class="memdoc">
    761<p>LCD Interrupt when triggered by the STAT register. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#aefda0091b2934571a11e07b512735f50">set_interrupts()</a>, </dd>
    762<dd>
    763<a class="el" href="sms_8h.html#a51add93356a25c71e8c37a73c9065c9d">add_LCD</a> </dd></dl>
    764
    765</div>
    766</div>
    767<a id="a604256210ec5b90b68185e1a18efab49"></a>
    768<h2 class="memtitle"><span class="permalink"><a href="#a604256210ec5b90b68185e1a18efab49">&#9670;&nbsp;</a></span>TIM_IFLAG</h2>
    769
    770<div class="memitem">
    771<div class="memproto">
    772      <table class="memname">
    773        <tr>
    774          <td class="memname">#define TIM_IFLAG&#160;&#160;&#160;0x04U</td>
    775        </tr>
    776      </table>
    777</div><div class="memdoc">
    778<p>Does nothing on SMS/GG </p>
    779
    780</div>
    781</div>
    782<a id="ad90564458646c5646b3880b93db3443e"></a>
    783<h2 class="memtitle"><span class="permalink"><a href="#ad90564458646c5646b3880b93db3443e">&#9670;&nbsp;</a></span>SIO_IFLAG</h2>
    784
    785<div class="memitem">
    786<div class="memproto">
    787      <table class="memname">
    788        <tr>
    789          <td class="memname">#define SIO_IFLAG&#160;&#160;&#160;0x08U</td>
    790        </tr>
    791      </table>
    792</div><div class="memdoc">
    793<p>Does nothing on SMS/GG </p>
    794
    795</div>
    796</div>
    797<a id="a2f829cf27d6e3e24c875e9b82dfcb280"></a>
    798<h2 class="memtitle"><span class="permalink"><a href="#a2f829cf27d6e3e24c875e9b82dfcb280">&#9670;&nbsp;</a></span>JOY_IFLAG</h2>
    799
    800<div class="memitem">
    801<div class="memproto">
    802      <table class="memname">
    803        <tr>
    804          <td class="memname">#define JOY_IFLAG&#160;&#160;&#160;0x10U</td>
    805        </tr>
    806      </table>
    807</div><div class="memdoc">
    808<p>Does nothing on SMS/GG </p>
    809
    810</div>
    811</div>
    812<a id="ada0cc738d27aad251151e69cb8d250e1"></a>
    813<h2 class="memtitle"><span class="permalink"><a href="#ada0cc738d27aad251151e69cb8d250e1">&#9670;&nbsp;</a></span>SCREENWIDTH</h2>
    814
    815<div class="memitem">
    816<div class="memproto">
    817      <table class="memname">
    818        <tr>
    819          <td class="memname">#define SCREENWIDTH&#160;&#160;&#160;<a class="el" href="sms_2hardware_8h.html#ad14c51cdfb347c34c364f54e67dc978d">DEVICE_SCREEN_PX_WIDTH</a></td>
    820        </tr>
    821      </table>
    822</div><div class="memdoc">
    823<p>Width of the visible screen in pixels. </p>
    824
    825</div>
    826</div>
    827<a id="ae189e98d0ef9263c37869ce1ff3710a5"></a>
    828<h2 class="memtitle"><span class="permalink"><a href="#ae189e98d0ef9263c37869ce1ff3710a5">&#9670;&nbsp;</a></span>SCREENHEIGHT</h2>
    829
    830<div class="memitem">
    831<div class="memproto">
    832      <table class="memname">
    833        <tr>
    834          <td class="memname">#define SCREENHEIGHT&#160;&#160;&#160;<a class="el" href="sms_2hardware_8h.html#a7bd450aa268b881257089cf8cd6697ec">DEVICE_SCREEN_PX_HEIGHT</a></td>
    835        </tr>
    836      </table>
    837</div><div class="memdoc">
    838<p>Height of the visible screen in pixels. </p>
    839
    840</div>
    841</div>
    842<a id="a5a796bbf3e4347d914b83568350143a9"></a>
    843<h2 class="memtitle"><span class="permalink"><a href="#a5a796bbf3e4347d914b83568350143a9">&#9670;&nbsp;</a></span>MINWNDPOSX</h2>
    844
    845<div class="memitem">
    846<div class="memproto">
    847      <table class="memname">
    848        <tr>
    849          <td class="memname">#define MINWNDPOSX&#160;&#160;&#160;0x00U</td>
    850        </tr>
    851      </table>
    852</div><div class="memdoc">
    853<p>The Minimum X position of the Window Layer (Left edge of screen) </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="gb_8h.html#aeef17768c494bcd6b67f7591329f7ff5">move_win()</a> </dd></dl>
    854
    855</div>
    856</div>
    857<a id="af3d632ba2d7cef6619df5dfea8730909"></a>
    858<h2 class="memtitle"><span class="permalink"><a href="#af3d632ba2d7cef6619df5dfea8730909">&#9670;&nbsp;</a></span>MINWNDPOSY</h2>
    859
    860<div class="memitem">
    861<div class="memproto">
    862      <table class="memname">
    863        <tr>
    864          <td class="memname">#define MINWNDPOSY&#160;&#160;&#160;0x00U</td>
    865        </tr>
    866      </table>
    867</div><div class="memdoc">
    868<p>The Minimum Y position of the Window Layer (Top edge of screen) </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="gb_8h.html#aeef17768c494bcd6b67f7591329f7ff5">move_win()</a> </dd></dl>
    869
    870</div>
    871</div>
    872<a id="a6dffb66ec1b1d9bb380a1af52a601ec5"></a>
    873<h2 class="memtitle"><span class="permalink"><a href="#a6dffb66ec1b1d9bb380a1af52a601ec5">&#9670;&nbsp;</a></span>MAXWNDPOSX</h2>
    874
    875<div class="memitem">
    876<div class="memproto">
    877      <table class="memname">
    878        <tr>
    879          <td class="memname">#define MAXWNDPOSX&#160;&#160;&#160;0x00U</td>
    880        </tr>
    881      </table>
    882</div><div class="memdoc">
    883<p>The Maximum X position of the Window Layer (Right edge of screen) </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="gb_8h.html#aeef17768c494bcd6b67f7591329f7ff5">move_win()</a> </dd></dl>
    884
    885</div>
    886</div>
    887<a id="ad57f2f8c54204687f02801d8ab1bd150"></a>
    888<h2 class="memtitle"><span class="permalink"><a href="#ad57f2f8c54204687f02801d8ab1bd150">&#9670;&nbsp;</a></span>MAXWNDPOSY</h2>
    889
    890<div class="memitem">
    891<div class="memproto">
    892      <table class="memname">
    893        <tr>
    894          <td class="memname">#define MAXWNDPOSY&#160;&#160;&#160;0x00U</td>
    895        </tr>
    896      </table>
    897</div><div class="memdoc">
    898<p>The Maximum Y position of the Window Layer (Bottom edge of screen) </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="gb_8h.html#aeef17768c494bcd6b67f7591329f7ff5">move_win()</a> </dd></dl>
    899
    900</div>
    901</div>
    902<a id="a5ae6b05b3e1559c97f0d1b2daaaa0ee4"></a>
    903<h2 class="memtitle"><span class="permalink"><a href="#a5ae6b05b3e1559c97f0d1b2daaaa0ee4">&#9670;&nbsp;</a></span>DISPLAY_ON</h2>
    904
    905<div class="memitem">
    906<div class="memproto">
    907      <table class="memname">
    908        <tr>
    909          <td class="memname">#define DISPLAY_ON&#160;&#160;&#160;	<a class="el" href="sms_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>, <a class="el" href="sms_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>) |= <a class="el" href="sms_2hardware_8h.html#adbfdd7c42539613c371820dffd14906f">R1_DISP_ON</a>)</td>
    910        </tr>
    911      </table>
    912</div><div class="memdoc">
    913<p>Turns the display back on. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a7b09691f25fddd65f12ed199b3f88ef0">display_off</a>, <a class="el" href="sms_8h.html#ad2ec9831813c5e7069917aa4455af682">DISPLAY_OFF</a> </dd></dl>
    914
    915</div>
    916</div>
    917<a id="ad2ec9831813c5e7069917aa4455af682"></a>
    918<h2 class="memtitle"><span class="permalink"><a href="#ad2ec9831813c5e7069917aa4455af682">&#9670;&nbsp;</a></span>DISPLAY_OFF</h2>
    919
    920<div class="memitem">
    921<div class="memproto">
    922      <table class="memname">
    923        <tr>
    924          <td class="memname">#define DISPLAY_OFF&#160;&#160;&#160;	<a class="el" href="sms_8h.html#a7b09691f25fddd65f12ed199b3f88ef0">display_off</a>();</td>
    925        </tr>
    926      </table>
    927</div><div class="memdoc">
    928<p>Turns the display off immediately. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a7b09691f25fddd65f12ed199b3f88ef0">display_off</a>, <a class="el" href="sms_8h.html#a5ae6b05b3e1559c97f0d1b2daaaa0ee4">DISPLAY_ON</a> </dd></dl>
    929
    930</div>
    931</div>
    932<a id="a0659212acd317ccdebc0ecf435df330f"></a>
    933<h2 class="memtitle"><span class="permalink"><a href="#a0659212acd317ccdebc0ecf435df330f">&#9670;&nbsp;</a></span>HIDE_LEFT_COLUMN</h2>
    934
    935<div class="memitem">
    936<div class="memproto">
    937      <table class="memname">
    938        <tr>
    939          <td class="memname">#define HIDE_LEFT_COLUMN&#160;&#160;&#160;	<a class="el" href="sms_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a673a19a1e353c852003c54d1d110b5e6">VDP_R0</a>, <a class="el" href="sms_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a673a19a1e353c852003c54d1d110b5e6">VDP_R0</a>) |= <a class="el" href="sms_2hardware_8h.html#a83088549f6d87bf5ccb8bf51dfe7ea7b">R0_LCB</a>)</td>
    940        </tr>
    941      </table>
    942</div><div class="memdoc">
    943<p>Blanks leftmost column, so it is not garbaged when you use horizontal scroll </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a5497c2255a9474d397446710189eacbe">SHOW_LEFT_COLUMN</a> </dd></dl>
    944
    945</div>
    946</div>
    947<a id="a5497c2255a9474d397446710189eacbe"></a>
    948<h2 class="memtitle"><span class="permalink"><a href="#a5497c2255a9474d397446710189eacbe">&#9670;&nbsp;</a></span>SHOW_LEFT_COLUMN</h2>
    949
    950<div class="memitem">
    951<div class="memproto">
    952      <table class="memname">
    953        <tr>
    954          <td class="memname">#define SHOW_LEFT_COLUMN&#160;&#160;&#160;	<a class="el" href="sms_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a673a19a1e353c852003c54d1d110b5e6">VDP_R0</a>, <a class="el" href="sms_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a673a19a1e353c852003c54d1d110b5e6">VDP_R0</a>) &amp;= (~<a class="el" href="sms_2hardware_8h.html#a83088549f6d87bf5ccb8bf51dfe7ea7b">R0_LCB</a>))</td>
    955        </tr>
    956      </table>
    957</div><div class="memdoc">
    958<p>Shows leftmost column </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a0659212acd317ccdebc0ecf435df330f">HIDE_LEFT_COLUMN</a> </dd></dl>
    959
    960</div>
    961</div>
    962<a id="a8e3f36aa68ac036695816757f2a1322c"></a>
    963<h2 class="memtitle"><span class="permalink"><a href="#a8e3f36aa68ac036695816757f2a1322c">&#9670;&nbsp;</a></span>SHOW_BKG</h2>
    964
    965<div class="memitem">
    966<div class="memproto">
    967      <table class="memname">
    968        <tr>
    969          <td class="memname">#define SHOW_BKG</td>
    970        </tr>
    971      </table>
    972</div><div class="memdoc">
    973<p>Turns on the background layer. Not yet implemented </p>
    974
    975</div>
    976</div>
    977<a id="a6d25f7c43b1cbbb48b95cda7ab2c3141"></a>
    978<h2 class="memtitle"><span class="permalink"><a href="#a6d25f7c43b1cbbb48b95cda7ab2c3141">&#9670;&nbsp;</a></span>HIDE_BKG</h2>
    979
    980<div class="memitem">
    981<div class="memproto">
    982      <table class="memname">
    983        <tr>
    984          <td class="memname">#define HIDE_BKG</td>
    985        </tr>
    986      </table>
    987</div><div class="memdoc">
    988<p>Turns off the background layer. Not yet implemented </p>
    989
    990</div>
    991</div>
    992<a id="ab19da2ab719bb8897bc0843a84af28f8"></a>
    993<h2 class="memtitle"><span class="permalink"><a href="#ab19da2ab719bb8897bc0843a84af28f8">&#9670;&nbsp;</a></span>SHOW_WIN</h2>
    994
    995<div class="memitem">
    996<div class="memproto">
    997      <table class="memname">
    998        <tr>
    999          <td class="memname">#define SHOW_WIN</td>
   1000        </tr>
   1001      </table>
   1002</div><div class="memdoc">
   1003<p>Turns on the window layer Not yet implemented </p>
   1004
   1005</div>
   1006</div>
   1007<a id="aedb6e32c42d4b1d25ad11adccd7100c3"></a>
   1008<h2 class="memtitle"><span class="permalink"><a href="#aedb6e32c42d4b1d25ad11adccd7100c3">&#9670;&nbsp;</a></span>HIDE_WIN</h2>
   1009
   1010<div class="memitem">
   1011<div class="memproto">
   1012      <table class="memname">
   1013        <tr>
   1014          <td class="memname">#define HIDE_WIN</td>
   1015        </tr>
   1016      </table>
   1017</div><div class="memdoc">
   1018<p>Turns off the window layer. Not yet implemented </p>
   1019
   1020</div>
   1021</div>
   1022<a id="a495bc9f405f916f02ad5d97e6e730134"></a>
   1023<h2 class="memtitle"><span class="permalink"><a href="#a495bc9f405f916f02ad5d97e6e730134">&#9670;&nbsp;</a></span>SHOW_SPRITES</h2>
   1024
   1025<div class="memitem">
   1026<div class="memproto">
   1027      <table class="memname">
   1028        <tr>
   1029          <td class="memname">#define SHOW_SPRITES</td>
   1030        </tr>
   1031      </table>
   1032</div><div class="memdoc">
   1033<p>Turns on the sprites layer. Not yet implemented </p>
   1034
   1035</div>
   1036</div>
   1037<a id="a69ef98aee664b8abd8d1a3d45f016dda"></a>
   1038<h2 class="memtitle"><span class="permalink"><a href="#a69ef98aee664b8abd8d1a3d45f016dda">&#9670;&nbsp;</a></span>HIDE_SPRITES</h2>
   1039
   1040<div class="memitem">
   1041<div class="memproto">
   1042      <table class="memname">
   1043        <tr>
   1044          <td class="memname">#define HIDE_SPRITES</td>
   1045        </tr>
   1046      </table>
   1047</div><div class="memdoc">
   1048<p>Turns off the sprites layer. Not yet implemented </p>
   1049
   1050</div>
   1051</div>
   1052<a id="af91d252f07f4764996154820f970c101"></a>
   1053<h2 class="memtitle"><span class="permalink"><a href="#af91d252f07f4764996154820f970c101">&#9670;&nbsp;</a></span>SPRITES_8x16</h2>
   1054
   1055<div class="memitem">
   1056<div class="memproto">
   1057      <table class="memname">
   1058        <tr>
   1059          <td class="memname">#define SPRITES_8x16&#160;&#160;&#160;	<a class="el" href="sms_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>, <a class="el" href="sms_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>) |= <a class="el" href="sms_2hardware_8h.html#a4985d6df1031afe8efb993f9c480ca12">R1_SPR_8X16</a>)</td>
   1060        </tr>
   1061      </table>
   1062</div><div class="memdoc">
   1063<p>Sets sprite size to 8x16 pixels, two tiles one above the other. </p>
   1064
   1065</div>
   1066</div>
   1067<a id="aa87bec0d134136fdb727f52cb773b792"></a>
   1068<h2 class="memtitle"><span class="permalink"><a href="#aa87bec0d134136fdb727f52cb773b792">&#9670;&nbsp;</a></span>SPRITES_8x8</h2>
   1069
   1070<div class="memitem">
   1071<div class="memproto">
   1072      <table class="memname">
   1073        <tr>
   1074          <td class="memname">#define SPRITES_8x8&#160;&#160;&#160;	<a class="el" href="sms_8h.html#aa34282113397af810be737df1acec36c">__WRITE_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>, <a class="el" href="sms_8h.html#a964e713cb2535d7464d0d6ca7677049a">__READ_VDP_REG</a>(<a class="el" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">VDP_R1</a>) &amp;= (~<a class="el" href="sms_2hardware_8h.html#a4985d6df1031afe8efb993f9c480ca12">R1_SPR_8X16</a>))</td>
   1075        </tr>
   1076      </table>
   1077</div><div class="memdoc">
   1078<p>Sets sprite size to 8x8 pixels, one tile. </p>
   1079
   1080</div>
   1081</div>
   1082<a id="a231ec05679809190782e61c6e8aaaba4"></a>
   1083<h2 class="memtitle"><span class="permalink"><a href="#a231ec05679809190782e61c6e8aaaba4">&#9670;&nbsp;</a></span>DEVICE_SUPPORTS_COLOR</h2>
   1084
   1085<div class="memitem">
   1086<div class="memproto">
   1087      <table class="memname">
   1088        <tr>
   1089          <td class="memname">#define DEVICE_SUPPORTS_COLOR&#160;&#160;&#160;(<a class="el" href="types_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>)</td>
   1090        </tr>
   1091      </table>
   1092</div><div class="memdoc">
   1093<p>Macro returns TRUE if device supports color (it always does on SMS/GG) </p>
   1094
   1095</div>
   1096</div>
   1097<a id="af0d15cf2a26924d2ef00ac4017e6b1d8"></a>
   1098<h2 class="memtitle"><span class="permalink"><a href="#af0d15cf2a26924d2ef00ac4017e6b1d8">&#9670;&nbsp;</a></span>_current_bank</h2>
   1099
   1100<div class="memitem">
   1101<div class="memproto">
   1102      <table class="memname">
   1103        <tr>
   1104          <td class="memname">#define _current_bank&#160;&#160;&#160;MAP_FRAME1</td>
   1105        </tr>
   1106      </table>
   1107</div><div class="memdoc">
   1108<p>Tracks current active ROM bank in frame 1 </p>
   1109
   1110</div>
   1111</div>
   1112<a id="ae042588f20bf5a2349c8ad8716245233"></a>
   1113<h2 class="memtitle"><span class="permalink"><a href="#ae042588f20bf5a2349c8ad8716245233">&#9670;&nbsp;</a></span>CURRENT_BANK</h2>
   1114
   1115<div class="memitem">
   1116<div class="memproto">
   1117      <table class="memname">
   1118        <tr>
   1119          <td class="memname">#define CURRENT_BANK&#160;&#160;&#160;MAP_FRAME1</td>
   1120        </tr>
   1121      </table>
   1122</div><div class="memdoc">
   1123
   1124</div>
   1125</div>
   1126<a id="a42705001e2b9897f5167b67fb36c69dd"></a>
   1127<h2 class="memtitle"><span class="permalink"><a href="#a42705001e2b9897f5167b67fb36c69dd">&#9670;&nbsp;</a></span>BANK</h2>
   1128
   1129<div class="memitem">
   1130<div class="memproto">
   1131      <table class="memname">
   1132        <tr>
   1133          <td class="memname">#define BANK</td>
   1134          <td>(</td>
   1135          <td class="paramtype">&#160;</td>
   1136          <td class="paramname">VARNAME</td><td>)</td>
   1137          <td>&#160;&#160;&#160;( (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>) &amp; __bank_ ## VARNAME )</td>
   1138        </tr>
   1139      </table>
   1140</div><div class="memdoc">
   1141<p>Obtains the <b>bank number</b> of VARNAME</p>
   1142<dl class="params"><dt>Parameters</dt><dd>
   1143  <table class="params">
   1144    <tr><td class="paramname">VARNAME</td><td>Name of the variable which has a __bank_VARNAME companion symbol which is adjusted by bankpack</td></tr>
   1145  </table>
   1146  </dd>
   1147</dl>
   1148<p>Use this to obtain the bank number from a bank reference created with <a class="el" href="gb_8h.html#a086293f2afb4c7945460a4496b20aea3">BANKREF()</a>.</p>
   1149<dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a261bba55a07b802baf99346feadd9852">BANKREF_EXTERN()</a>, <a class="el" href="sms_8h.html#a086293f2afb4c7945460a4496b20aea3">BANKREF()</a> </dd></dl>
   1150
   1151</div>
   1152</div>
   1153<a id="a086293f2afb4c7945460a4496b20aea3"></a>
   1154<h2 class="memtitle"><span class="permalink"><a href="#a086293f2afb4c7945460a4496b20aea3">&#9670;&nbsp;</a></span>BANKREF</h2>
   1155
   1156<div class="memitem">
   1157<div class="memproto">
   1158      <table class="memname">
   1159        <tr>
   1160          <td class="memname">#define BANKREF</td>
   1161          <td>(</td>
   1162          <td class="paramtype">&#160;</td>
   1163          <td class="paramname">VARNAME</td><td>)</td>
   1164          <td></td>
   1165        </tr>
   1166      </table>
   1167</div><div class="memdoc">
   1168<b>Value:</b><div class="fragment"><div class="line"><span class="keywordtype">void</span> __func_ ## VARNAME() __banked __naked { \</div>
   1169<div class="line">__asm \</div>
   1170<div class="line">    .local b___func_ ## VARNAME \</div>
   1171<div class="line">    ___bank_ ## VARNAME = b___func_ ## VARNAME \</div>
   1172<div class="line">    .globl ___bank_ ## VARNAME \</div>
   1173<div class="line">__endasm; \</div>
   1174<div class="line">}</div>
   1175</div><!-- fragment --><p>Creates a reference for retrieving the bank number of a variable or function</p>
   1176<dl class="params"><dt>Parameters</dt><dd>
   1177  <table class="params">
   1178    <tr><td class="paramname">VARNAME</td><td>Variable name to use, which may be an existing identifier</td></tr>
   1179  </table>
   1180  </dd>
   1181</dl>
   1182<dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a42705001e2b9897f5167b67fb36c69dd">BANK()</a> for obtaining the bank number of the included data.</dd></dl>
   1183<p>More than one <code><a class="el" href="sms_8h.html#a086293f2afb4c7945460a4496b20aea3">BANKREF()</a></code> may be created per file, but each call should always use a unique VARNAME.</p>
   1184<p>Use <a class="el" href="gb_8h.html#a261bba55a07b802baf99346feadd9852">BANKREF_EXTERN()</a> within another source file to make the variable and it's data accesible there. </p>
   1185
   1186</div>
   1187</div>
   1188<a id="a261bba55a07b802baf99346feadd9852"></a>
   1189<h2 class="memtitle"><span class="permalink"><a href="#a261bba55a07b802baf99346feadd9852">&#9670;&nbsp;</a></span>BANKREF_EXTERN</h2>
   1190
   1191<div class="memitem">
   1192<div class="memproto">
   1193      <table class="memname">
   1194        <tr>
   1195          <td class="memname">#define BANKREF_EXTERN</td>
   1196          <td>(</td>
   1197          <td class="paramtype">&#160;</td>
   1198          <td class="paramname">VARNAME</td><td>)</td>
   1199          <td>&#160;&#160;&#160;extern const void __bank_ ## VARNAME;</td>
   1200        </tr>
   1201      </table>
   1202</div><div class="memdoc">
   1203<p>Creates extern references for accessing a <a class="el" href="sms_8h.html#a086293f2afb4c7945460a4496b20aea3">BANKREF()</a> generated variable.</p>
   1204<dl class="params"><dt>Parameters</dt><dd>
   1205  <table class="params">
   1206    <tr><td class="paramname">VARNAME</td><td>Name of the variable used with <a class="el" href="gb_8h.html#a086293f2afb4c7945460a4496b20aea3">BANKREF()</a></td></tr>
   1207  </table>
   1208  </dd>
   1209</dl>
   1210<p>This makes a <a class="el" href="gb_8h.html#a086293f2afb4c7945460a4496b20aea3">BANKREF()</a> reference in another source file accessible in the current file for use with <a class="el" href="gb_8h.html#a42705001e2b9897f5167b67fb36c69dd">BANK()</a>.</p>
   1211<dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a086293f2afb4c7945460a4496b20aea3">BANKREF()</a>, <a class="el" href="sms_8h.html#a42705001e2b9897f5167b67fb36c69dd">BANK()</a> </dd></dl>
   1212
   1213</div>
   1214</div>
   1215<a id="af61262bbc05629f31020afce67e1b9ea"></a>
   1216<h2 class="memtitle"><span class="permalink"><a href="#af61262bbc05629f31020afce67e1b9ea">&#9670;&nbsp;</a></span>SWITCH_ROM</h2>
   1217
   1218<div class="memitem">
   1219<div class="memproto">
   1220      <table class="memname">
   1221        <tr>
   1222          <td class="memname">#define SWITCH_ROM</td>
   1223          <td>(</td>
   1224          <td class="paramtype">&#160;</td>
   1225          <td class="paramname"><a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></td><td>)</td>
   1226          <td>&#160;&#160;&#160;MAP_FRAME1=(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>)</td>
   1227        </tr>
   1228      </table>
   1229</div><div class="memdoc">
   1230<p>Makes switch the active ROM bank in frame 1 </p><dl class="params"><dt>Parameters</dt><dd>
   1231  <table class="params">
   1232    <tr><td class="paramname">b</td><td>ROM bank to switch to </td></tr>
   1233  </table>
   1234  </dd>
   1235</dl>
   1236
   1237</div>
   1238</div>
   1239<a id="a86d47feb2b999aaabbba9f63f4bb3567"></a>
   1240<h2 class="memtitle"><span class="permalink"><a href="#a86d47feb2b999aaabbba9f63f4bb3567">&#9670;&nbsp;</a></span>SWITCH_ROM1</h2>
   1241
   1242<div class="memitem">
   1243<div class="memproto">
   1244      <table class="memname">
   1245        <tr>
   1246          <td class="memname">#define SWITCH_ROM1&#160;&#160;&#160;<a class="el" href="sms_8h.html#af61262bbc05629f31020afce67e1b9ea">SWITCH_ROM</a></td>
   1247        </tr>
   1248      </table>
   1249</div><div class="memdoc">
   1250
   1251</div>
   1252</div>
   1253<a id="a6d40a15ff27c2a1c8269d3dbe67eae65"></a>
   1254<h2 class="memtitle"><span class="permalink"><a href="#a6d40a15ff27c2a1c8269d3dbe67eae65">&#9670;&nbsp;</a></span>SWITCH_ROM2</h2>
   1255
   1256<div class="memitem">
   1257<div class="memproto">
   1258      <table class="memname">
   1259        <tr>
   1260          <td class="memname">#define SWITCH_ROM2</td>
   1261          <td>(</td>
   1262          <td class="paramtype">&#160;</td>
   1263          <td class="paramname"><a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></td><td>)</td>
   1264          <td>&#160;&#160;&#160;MAP_FRAME2=(<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>)</td>
   1265        </tr>
   1266      </table>
   1267</div><div class="memdoc">
   1268<p>Makes switch the active ROM bank in frame 2 </p><dl class="params"><dt>Parameters</dt><dd>
   1269  <table class="params">
   1270    <tr><td class="paramname">b</td><td>ROM bank to switch to </td></tr>
   1271  </table>
   1272  </dd>
   1273</dl>
   1274
   1275</div>
   1276</div>
   1277<a id="a121feb0c32d124562f52398aa9656e7b"></a>
   1278<h2 class="memtitle"><span class="permalink"><a href="#a121feb0c32d124562f52398aa9656e7b">&#9670;&nbsp;</a></span>SWITCH_RAM</h2>
   1279
   1280<div class="memitem">
   1281<div class="memproto">
   1282      <table class="memname">
   1283        <tr>
   1284          <td class="memname">#define SWITCH_RAM</td>
   1285          <td>(</td>
   1286          <td class="paramtype">&#160;</td>
   1287          <td class="paramname"><a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></td><td>)</td>
   1288          <td>&#160;&#160;&#160;RAM_CONTROL=((<a class="el" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>)&amp;1)?RAM_CONTROL|RAMCTL_BANK:RAM_CONTROL&amp;(~<a class="el" href="sms_2hardware_8h.html#a8f4dbe8a2e6389c78b9f6fb9a3ff1dca">RAMCTL_BANK</a>)</td>
   1289        </tr>
   1290      </table>
   1291</div><div class="memdoc">
   1292<p>Switches RAM bank </p><dl class="params"><dt>Parameters</dt><dd>
   1293  <table class="params">
   1294    <tr><td class="paramname">b</td><td>SRAM bank to switch to </td></tr>
   1295  </table>
   1296  </dd>
   1297</dl>
   1298
   1299</div>
   1300</div>
   1301<a id="a0e9c88657beaac946231a4801481b97f"></a>
   1302<h2 class="memtitle"><span class="permalink"><a href="#a0e9c88657beaac946231a4801481b97f">&#9670;&nbsp;</a></span>ENABLE_RAM</h2>
   1303
   1304<div class="memitem">
   1305<div class="memproto">
   1306      <table class="memname">
   1307        <tr>
   1308          <td class="memname">#define ENABLE_RAM&#160;&#160;&#160;RAM_CONTROL|=<a class="el" href="sms_2hardware_8h.html#a8728acabf97eae3322439bc3cb41b02d">RAMCTL_RAM</a></td>
   1309        </tr>
   1310      </table>
   1311</div><div class="memdoc">
   1312<p>Enables RAM </p>
   1313
   1314</div>
   1315</div>
   1316<a id="a649d27b5587de16a66176e03a1b8ebd5"></a>
   1317<h2 class="memtitle"><span class="permalink"><a href="#a649d27b5587de16a66176e03a1b8ebd5">&#9670;&nbsp;</a></span>DISABLE_RAM</h2>
   1318
   1319<div class="memitem">
   1320<div class="memproto">
   1321      <table class="memname">
   1322        <tr>
   1323          <td class="memname">#define DISABLE_RAM&#160;&#160;&#160;RAM_CONTROL&amp;=(~<a class="el" href="sms_2hardware_8h.html#a8728acabf97eae3322439bc3cb41b02d">RAMCTL_RAM</a>)</td>
   1324        </tr>
   1325      </table>
   1326</div><div class="memdoc">
   1327<p>Disables RAM </p>
   1328
   1329</div>
   1330</div>
   1331<a id="a2215732f2ba2ec6406b65d3cca56a200"></a>
   1332<h2 class="memtitle"><span class="permalink"><a href="#a2215732f2ba2ec6406b65d3cca56a200">&#9670;&nbsp;</a></span>set_bkg_palette_entry</h2>
   1333
   1334<div class="memitem">
   1335<div class="memproto">
   1336      <table class="memname">
   1337        <tr>
   1338          <td class="memname">#define set_bkg_palette_entry&#160;&#160;&#160;<a class="el" href="sms_8h.html#a2c9aabf4519e01257b0d0e04e8108164">set_palette_entry</a></td>
   1339        </tr>
   1340      </table>
   1341</div><div class="memdoc">
   1342
   1343</div>
   1344</div>
   1345<a id="a8b5c17235a3f65af70492e109a25f237"></a>
   1346<h2 class="memtitle"><span class="permalink"><a href="#a8b5c17235a3f65af70492e109a25f237">&#9670;&nbsp;</a></span>set_sprite_palette_entry</h2>
   1347
   1348<div class="memitem">
   1349<div class="memproto">
   1350      <table class="memname">
   1351        <tr>
   1352          <td class="memname">#define set_sprite_palette_entry</td>
   1353          <td>(</td>
   1354          <td class="paramtype">&#160;</td>
   1355          <td class="paramname">palette, </td>
   1356        </tr>
   1357        <tr>
   1358          <td class="paramkey"></td>
   1359          <td></td>
   1360          <td class="paramtype">&#160;</td>
   1361          <td class="paramname">entry, </td>
   1362        </tr>
   1363        <tr>
   1364          <td class="paramkey"></td>
   1365          <td></td>
   1366          <td class="paramtype">&#160;</td>
   1367          <td class="paramname">rgb_data&#160;</td>
   1368        </tr>
   1369        <tr>
   1370          <td></td>
   1371          <td>)</td>
   1372          <td></td><td>&#160;&#160;&#160;<a class="el" href="sms_8h.html#a2c9aabf4519e01257b0d0e04e8108164">set_palette_entry</a>(1,entry,rgb_data)</td>
   1373        </tr>
   1374      </table>
   1375</div><div class="memdoc">
   1376
   1377</div>
   1378</div>
   1379<a id="a9f879bd31899f7989f887b6238de24e3"></a>
   1380<h2 class="memtitle"><span class="permalink"><a href="#a9f879bd31899f7989f887b6238de24e3">&#9670;&nbsp;</a></span>set_bkg_palette</h2>
   1381
   1382<div class="memitem">
   1383<div class="memproto">
   1384      <table class="memname">
   1385        <tr>
   1386          <td class="memname">#define set_bkg_palette&#160;&#160;&#160;<a class="el" href="sms_8h.html#a92109adcc20960f26e8bc5fbb141d27e">set_palette</a></td>
   1387        </tr>
   1388      </table>
   1389</div><div class="memdoc">
   1390
   1391</div>
   1392</div>
   1393<a id="a7d5ed1aed79d8fd2894893d7f6f9b835"></a>
   1394<h2 class="memtitle"><span class="permalink"><a href="#a7d5ed1aed79d8fd2894893d7f6f9b835">&#9670;&nbsp;</a></span>set_sprite_palette</h2>
   1395
   1396<div class="memitem">
   1397<div class="memproto">
   1398      <table class="memname">
   1399        <tr>
   1400          <td class="memname">#define set_sprite_palette</td>
   1401          <td>(</td>
   1402          <td class="paramtype">&#160;</td>
   1403          <td class="paramname">first_palette, </td>
   1404        </tr>
   1405        <tr>
   1406          <td class="paramkey"></td>
   1407          <td></td>
   1408          <td class="paramtype">&#160;</td>
   1409          <td class="paramname">nb_palettes, </td>
   1410        </tr>
   1411        <tr>
   1412          <td class="paramkey"></td>
   1413          <td></td>
   1414          <td class="paramtype">&#160;</td>
   1415          <td class="paramname">rgb_data&#160;</td>
   1416        </tr>
   1417        <tr>
   1418          <td></td>
   1419          <td>)</td>
   1420          <td></td><td>&#160;&#160;&#160;<a class="el" href="sms_8h.html#a92109adcc20960f26e8bc5fbb141d27e">set_palette</a>(1,1,rgb_data)</td>
   1421        </tr>
   1422      </table>
   1423</div><div class="memdoc">
   1424
   1425</div>
   1426</div>
   1427<a id="a67f80e65620470b55a4950e2966eb868"></a>
   1428<h2 class="memtitle"><span class="permalink"><a href="#a67f80e65620470b55a4950e2966eb868">&#9670;&nbsp;</a></span>COMPAT_PALETTE</h2>
   1429
   1430<div class="memitem">
   1431<div class="memproto">
   1432      <table class="memname">
   1433        <tr>
   1434          <td class="memname">#define COMPAT_PALETTE</td>
   1435          <td>(</td>
   1436          <td class="paramtype">&#160;</td>
   1437          <td class="paramname">C0, </td>
   1438        </tr>
   1439        <tr>
   1440          <td class="paramkey"></td>
   1441          <td></td>
   1442          <td class="paramtype">&#160;</td>
   1443          <td class="paramname">C1, </td>
   1444        </tr>
   1445        <tr>
   1446          <td class="paramkey"></td>
   1447          <td></td>
   1448          <td class="paramtype">&#160;</td>
   1449          <td class="paramname">C2, </td>
   1450        </tr>
   1451        <tr>
   1452          <td class="paramkey"></td>
   1453          <td></td>
   1454          <td class="paramtype">&#160;</td>
   1455          <td class="paramname">C3&#160;</td>
   1456        </tr>
   1457        <tr>
   1458          <td></td>
   1459          <td>)</td>
   1460          <td></td><td>&#160;&#160;&#160;(((<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>)(C3) &lt;&lt; 12) | ((<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>)(C2) &lt;&lt; 8) | ((<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>)(C1) &lt;&lt; 4) | (<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>)(C0))</td>
   1461        </tr>
   1462      </table>
   1463</div><div class="memdoc">
   1464
   1465</div>
   1466</div>
   1467<a id="a9a732aec1b7aec7d10a9d76ca4da2064"></a>
   1468<h2 class="memtitle"><span class="permalink"><a href="#a9a732aec1b7aec7d10a9d76ca4da2064">&#9670;&nbsp;</a></span>set_bkg_tiles</h2>
   1469
   1470<div class="memitem">
   1471<div class="memproto">
   1472      <table class="memname">
   1473        <tr>
   1474          <td class="memname">#define set_bkg_tiles&#160;&#160;&#160;<a class="el" href="sms_8h.html#a7c38b146f77eda84981c06c2271fe116">set_tile_map_compat</a></td>
   1475        </tr>
   1476      </table>
   1477</div><div class="memdoc">
   1478
   1479</div>
   1480</div>
   1481<a id="a429db030287423012f40a6dca81ae7e3"></a>
   1482<h2 class="memtitle"><span class="permalink"><a href="#a429db030287423012f40a6dca81ae7e3">&#9670;&nbsp;</a></span>set_win_tiles</h2>
   1483
   1484<div class="memitem">
   1485<div class="memproto">
   1486      <table class="memname">
   1487        <tr>
   1488          <td class="memname">#define set_win_tiles&#160;&#160;&#160;<a class="el" href="sms_8h.html#a7c38b146f77eda84981c06c2271fe116">set_tile_map_compat</a></td>
   1489        </tr>
   1490      </table>
   1491</div><div class="memdoc">
   1492
   1493</div>
   1494</div>
   1495<a id="a3b7ffab8d64e2c345f03221145a935c0"></a>
   1496<h2 class="memtitle"><span class="permalink"><a href="#a3b7ffab8d64e2c345f03221145a935c0">&#9670;&nbsp;</a></span>fill_bkg_rect</h2>
   1497
   1498<div class="memitem">
   1499<div class="memproto">
   1500      <table class="memname">
   1501        <tr>
   1502          <td class="memname">#define fill_bkg_rect&#160;&#160;&#160;<a class="el" href="sms_8h.html#af2fc27409f907cfae9583b5ebf0c5ea8">fill_rect_compat</a></td>
   1503        </tr>
   1504      </table>
   1505</div><div class="memdoc">
   1506
   1507</div>
   1508</div>
   1509<a id="a5a69a3129f4faa99857a8b3d80db1d4a"></a>
   1510<h2 class="memtitle"><span class="permalink"><a href="#a5a69a3129f4faa99857a8b3d80db1d4a">&#9670;&nbsp;</a></span>fill_win_rect</h2>
   1511
   1512<div class="memitem">
   1513<div class="memproto">
   1514      <table class="memname">
   1515        <tr>
   1516          <td class="memname">#define fill_win_rect&#160;&#160;&#160;<a class="el" href="sms_8h.html#af2fc27409f907cfae9583b5ebf0c5ea8">fill_rect_compat</a></td>
   1517        </tr>
   1518      </table>
   1519</div><div class="memdoc">
   1520
   1521</div>
   1522</div>
   1523<a id="abfd70bf31185a4900680977c9fb5a5ec"></a>
   1524<h2 class="memtitle"><span class="permalink"><a href="#abfd70bf31185a4900680977c9fb5a5ec">&#9670;&nbsp;</a></span>DISABLE_VBL_TRANSFER</h2>
   1525
   1526<div class="memitem">
   1527<div class="memproto">
   1528      <table class="memname">
   1529        <tr>
   1530          <td class="memname">#define DISABLE_VBL_TRANSFER&#160;&#160;&#160;    <a class="el" href="sms_8h.html#a5435fd985412934e96a490e103c6bc49">_shadow_OAM_base</a> = 0</td>
   1531        </tr>
   1532      </table>
   1533</div><div class="memdoc">
   1534<p>Disable shadow OAM to VRAM copy on each VBlank </p>
   1535
   1536</div>
   1537</div>
   1538<a id="a77d516c9d3f86f100eddea5e0d133a76"></a>
   1539<h2 class="memtitle"><span class="permalink"><a href="#a77d516c9d3f86f100eddea5e0d133a76">&#9670;&nbsp;</a></span>ENABLE_VBL_TRANSFER</h2>
   1540
   1541<div class="memitem">
   1542<div class="memproto">
   1543      <table class="memname">
   1544        <tr>
   1545          <td class="memname">#define ENABLE_VBL_TRANSFER&#160;&#160;&#160;    <a class="el" href="sms_8h.html#a5435fd985412934e96a490e103c6bc49">_shadow_OAM_base</a> = (<a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>)((<a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>)&amp;<a class="el" href="sms_8h.html#af02f9e73bd894cc25e03aedb0a10a91d">shadow_OAM</a> &gt;&gt; 8)</td>
   1546        </tr>
   1547      </table>
   1548</div><div class="memdoc">
   1549<p>Enable shadow OAM to VRAM copy on each VBlank </p>
   1550
   1551</div>
   1552</div>
   1553<a id="a8b77608c87a9aef65a03531482b2163b"></a>
   1554<h2 class="memtitle"><span class="permalink"><a href="#a8b77608c87a9aef65a03531482b2163b">&#9670;&nbsp;</a></span>MAX_HARDWARE_SPRITES</h2>
   1555
   1556<div class="memitem">
   1557<div class="memproto">
   1558      <table class="memname">
   1559        <tr>
   1560          <td class="memname">#define MAX_HARDWARE_SPRITES&#160;&#160;&#160;64</td>
   1561        </tr>
   1562      </table>
   1563</div><div class="memdoc">
   1564<p>Amount of hardware sprites in OAM </p>
   1565
   1566</div>
   1567</div>
   1568<a id="adcd40a58f7c7d348d506cc400cd94739"></a>
   1569<h2 class="memtitle"><span class="permalink"><a href="#adcd40a58f7c7d348d506cc400cd94739">&#9670;&nbsp;</a></span>set_bkg_tile_xy</h2>
   1570
   1571<div class="memitem">
   1572<div class="memproto">
   1573      <table class="memname">
   1574        <tr>
   1575          <td class="memname">#define set_bkg_tile_xy&#160;&#160;&#160;<a class="el" href="sms_8h.html#a5834057f6297c0fa8f8e9a6b714f1ff7">set_tile_xy</a></td>
   1576        </tr>
   1577      </table>
   1578</div><div class="memdoc">
   1579
   1580</div>
   1581</div>
   1582<a id="a95d929d964d9988f4dc5a25ed399ae08"></a>
   1583<h2 class="memtitle"><span class="permalink"><a href="#a95d929d964d9988f4dc5a25ed399ae08">&#9670;&nbsp;</a></span>set_win_tile_xy</h2>
   1584
   1585<div class="memitem">
   1586<div class="memproto">
   1587      <table class="memname">
   1588        <tr>
   1589          <td class="memname">#define set_win_tile_xy&#160;&#160;&#160;<a class="el" href="sms_8h.html#a5834057f6297c0fa8f8e9a6b714f1ff7">set_tile_xy</a></td>
   1590        </tr>
   1591      </table>
   1592</div><div class="memdoc">
   1593
   1594</div>
   1595</div>
   1596<a id="a6eaafdbe6cf1695d30724ce75acb9412"></a>
   1597<h2 class="memtitle"><span class="permalink"><a href="#a6eaafdbe6cf1695d30724ce75acb9412">&#9670;&nbsp;</a></span>get_win_xy_addr</h2>
   1598
   1599<div class="memitem">
   1600<div class="memproto">
   1601      <table class="memname">
   1602        <tr>
   1603          <td class="memname">#define get_win_xy_addr&#160;&#160;&#160;<a class="el" href="sms_8h.html#a66b4bfb8c1ea3005ff01ce040a778e63">get_bkg_xy_addr</a></td>
   1604        </tr>
   1605      </table>
   1606</div><div class="memdoc">
   1607
   1608</div>
   1609</div>
   1610<h2 class="groupheader">Typedef Documentation</h2>
   1611<a id="a9508f919d9482d1d51534ccac212454d"></a>
   1612<h2 class="memtitle"><span class="permalink"><a href="#a9508f919d9482d1d51534ccac212454d">&#9670;&nbsp;</a></span>int_handler</h2>
   1613
   1614<div class="memitem">
   1615<div class="memproto">
   1616      <table class="memname">
   1617        <tr>
   1618          <td class="memname">typedef void(* int_handler) (void) <a class="el" href="asm_2types_8h.html#a7ed081d8dfb6902784b2fc730bbb7f96">NONBANKED</a></td>
   1619        </tr>
   1620      </table>
   1621</div><div class="memdoc">
   1622<p>Interrupt handlers </p>
   1623
   1624</div>
   1625</div>
   1626<h2 class="groupheader">Function Documentation</h2>
   1627<a id="a498b148efd22ab8ad9b844b2dc5e5bb8"></a>
   1628<h2 class="memtitle"><span class="permalink"><a href="#a498b148efd22ab8ad9b844b2dc5e5bb8">&#9670;&nbsp;</a></span>WRITE_VDP_CMD()</h2>
   1629
   1630<div class="memitem">
   1631<div class="memproto">
   1632      <table class="memname">
   1633        <tr>
   1634          <td class="memname">void WRITE_VDP_CMD </td>
   1635          <td>(</td>
   1636          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   1637          <td class="paramname"><em>cmd</em></td><td>)</td>
   1638          <td></td>
   1639        </tr>
   1640      </table>
   1641</div><div class="memdoc">
   1642
   1643</div>
   1644</div>
   1645<a id="aa2ddf9662320c4a9d00fd4a94d347570"></a>
   1646<h2 class="memtitle"><span class="permalink"><a href="#aa2ddf9662320c4a9d00fd4a94d347570">&#9670;&nbsp;</a></span>WRITE_VDP_DATA()</h2>
   1647
   1648<div class="memitem">
   1649<div class="memproto">
   1650      <table class="memname">
   1651        <tr>
   1652          <td class="memname">void WRITE_VDP_DATA </td>
   1653          <td>(</td>
   1654          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   1655          <td class="paramname"><em>data</em></td><td>)</td>
   1656          <td></td>
   1657        </tr>
   1658      </table>
   1659</div><div class="memdoc">
   1660
   1661</div>
   1662</div>
   1663<a id="a3ea524204d839377cf39842eec23e202"></a>
   1664<h2 class="memtitle"><span class="permalink"><a href="#a3ea524204d839377cf39842eec23e202">&#9670;&nbsp;</a></span>mode()</h2>
   1665
   1666<div class="memitem">
   1667<div class="memproto">
   1668      <table class="memname">
   1669        <tr>
   1670          <td class="memname">void mode </td>
   1671          <td>(</td>
   1672          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   1673          <td class="paramname"><em>m</em></td><td>)</td>
   1674          <td></td>
   1675        </tr>
   1676      </table>
   1677</div><div class="memdoc">
   1678<p>Set the current screen mode - one of M_* modes</p>
   1679<p>Normally used by internal functions only.</p>
   1680<dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#af0e30d6af308ffe5a025fbe85da40f6f">M_TEXT_OUT</a>, <a class="el" href="sms_8h.html#a908826e7180f94a5988ceb8633313a2e">M_TEXT_INOUT</a>, <a class="el" href="sms_8h.html#a04382de20738146fe873ddfb0585052b">M_NO_SCROLL</a>, <a class="el" href="sms_8h.html#aca2855edd2d28f66be551a0f7ec23f07">M_NO_INTERP</a> </dd></dl>
   1681
   1682</div>
   1683</div>
   1684<a id="ad9a83378f5ec1f6444c879e4cf1e1a83"></a>
   1685<h2 class="memtitle"><span class="permalink"><a href="#ad9a83378f5ec1f6444c879e4cf1e1a83">&#9670;&nbsp;</a></span>get_mode()</h2>
   1686
   1687<div class="memitem">
   1688<div class="memproto">
   1689      <table class="memname">
   1690        <tr>
   1691          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> get_mode </td>
   1692          <td>(</td>
   1693          <td class="paramname"></td><td>)</td>
   1694          <td></td>
   1695        </tr>
   1696      </table>
   1697</div><div class="memdoc">
   1698<p>Returns the current mode</p>
   1699<dl class="section see"><dt>See also</dt><dd><a class="el" href="gb_8h.html#af0e30d6af308ffe5a025fbe85da40f6f">M_TEXT_OUT</a>, <a class="el" href="gb_8h.html#a908826e7180f94a5988ceb8633313a2e">M_TEXT_INOUT</a>, <a class="el" href="gb_8h.html#a04382de20738146fe873ddfb0585052b">M_NO_SCROLL</a>, <a class="el" href="gb_8h.html#aca2855edd2d28f66be551a0f7ec23f07">M_NO_INTERP</a></dd></dl>
   1700<p>Returns the current mode</p>
   1701<dl class="section see"><dt>See also</dt><dd><a class="el" href="gb_8h.html#acc9798fc62b5d626c91c8b0f20b522ff">M_DRAWING</a>, <a class="el" href="gb_8h.html#af0e30d6af308ffe5a025fbe85da40f6f">M_TEXT_OUT</a>, <a class="el" href="gb_8h.html#a908826e7180f94a5988ceb8633313a2e">M_TEXT_INOUT</a>, <a class="el" href="gb_8h.html#a04382de20738146fe873ddfb0585052b">M_NO_SCROLL</a>, <a class="el" href="gb_8h.html#aca2855edd2d28f66be551a0f7ec23f07">M_NO_INTERP</a> </dd></dl>
   1702
   1703</div>
   1704</div>
   1705<a id="aefda0091b2934571a11e07b512735f50"></a>
   1706<h2 class="memtitle"><span class="permalink"><a href="#aefda0091b2934571a11e07b512735f50">&#9670;&nbsp;</a></span>set_interrupts()</h2>
   1707
   1708<div class="memitem">
   1709<div class="memproto">
   1710      <table class="memname">
   1711        <tr>
   1712          <td class="memname">void set_interrupts </td>
   1713          <td>(</td>
   1714          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   1715          <td class="paramname"><em>flags</em></td><td>)</td>
   1716          <td></td>
   1717        </tr>
   1718      </table>
   1719</div><div class="memdoc">
   1720<p>Clears any pending interrupts and sets the interrupt mask register IO to flags. </p><dl class="params"><dt>Parameters</dt><dd>
   1721  <table class="params">
   1722    <tr><td class="paramname">flags</td><td>A logical OR of *_IFLAGS</td></tr>
   1723  </table>
   1724  </dd>
   1725</dl>
   1726<dl class="section note"><dt>Note</dt><dd>: This disables and then re-enables interrupts so it must be used outside of a critical section.</dd></dl>
   1727<dl class="section see"><dt>See also</dt><dd><a class="el" href="gb_8h.html#ae0b13f17609b26c86fc33944aeb6e867">enable_interrupts()</a>, <a class="el" href="gb_8h.html#ad77796783b3a601b6f3781dfc3983499">disable_interrupts()</a> </dd>
   1728<dd>
   1729<a class="el" href="gb_8h.html#a2ca7720b9a5da9b2173e1f74dba85541">VBL_IFLAG</a>, <a class="el" href="gb_8h.html#a61a9e2910380de6abb34df14ef634eb4">LCD_IFLAG</a>, <a class="el" href="gb_8h.html#a604256210ec5b90b68185e1a18efab49">TIM_IFLAG</a>, <a class="el" href="gb_8h.html#ad90564458646c5646b3880b93db3443e">SIO_IFLAG</a>, <a class="el" href="gb_8h.html#a2f829cf27d6e3e24c875e9b82dfcb280">JOY_IFLAG</a> </dd></dl>
   1730
   1731</div>
   1732</div>
   1733<a id="a98f7ef49e1758c601979bcb0ff19a1f0"></a>
   1734<h2 class="memtitle"><span class="permalink"><a href="#a98f7ef49e1758c601979bcb0ff19a1f0">&#9670;&nbsp;</a></span>remove_VBL()</h2>
   1735
   1736<div class="memitem">
   1737<div class="memproto">
   1738      <table class="memname">
   1739        <tr>
   1740          <td class="memname">void remove_VBL </td>
   1741          <td>(</td>
   1742          <td class="paramtype"><a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>&#160;</td>
   1743          <td class="paramname"><em>h</em></td><td>)</td>
   1744          <td></td>
   1745        </tr>
   1746      </table>
   1747</div><div class="memdoc">
   1748<p>Removes the VBL interrupt handler. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#ae59628e2237f301df1341e22bfc8296e">add_VBL()</a> </dd></dl>
   1749
   1750</div>
   1751</div>
   1752<a id="aa8962b27b960bb0c8d3bb899246c690c"></a>
   1753<h2 class="memtitle"><span class="permalink"><a href="#aa8962b27b960bb0c8d3bb899246c690c">&#9670;&nbsp;</a></span>remove_LCD()</h2>
   1754
   1755<div class="memitem">
   1756<div class="memproto">
   1757      <table class="memname">
   1758        <tr>
   1759          <td class="memname">void remove_LCD </td>
   1760          <td>(</td>
   1761          <td class="paramtype"><a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>&#160;</td>
   1762          <td class="paramname"><em>h</em></td><td>)</td>
   1763          <td></td>
   1764        </tr>
   1765      </table>
   1766</div><div class="memdoc">
   1767<p>Removes the LCD interrupt handler. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a51add93356a25c71e8c37a73c9065c9d">add_LCD()</a>, <a class="el" href="sms_8h.html#a98f7ef49e1758c601979bcb0ff19a1f0">remove_VBL()</a> </dd></dl>
   1768
   1769</div>
   1770</div>
   1771<a id="a98785a1b0ddc91cd8e8c8fab8de1de20"></a>
   1772<h2 class="memtitle"><span class="permalink"><a href="#a98785a1b0ddc91cd8e8c8fab8de1de20">&#9670;&nbsp;</a></span>remove_TIM()</h2>
   1773
   1774<div class="memitem">
   1775<div class="memproto">
   1776      <table class="memname">
   1777        <tr>
   1778          <td class="memname">void remove_TIM </td>
   1779          <td>(</td>
   1780          <td class="paramtype"><a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>&#160;</td>
   1781          <td class="paramname"><em>h</em></td><td>)</td>
   1782          <td></td>
   1783        </tr>
   1784      </table>
   1785</div><div class="memdoc">
   1786
   1787</div>
   1788</div>
   1789<a id="a98de9141f407585801fcbf55bf6dcc4c"></a>
   1790<h2 class="memtitle"><span class="permalink"><a href="#a98de9141f407585801fcbf55bf6dcc4c">&#9670;&nbsp;</a></span>remove_SIO()</h2>
   1791
   1792<div class="memitem">
   1793<div class="memproto">
   1794      <table class="memname">
   1795        <tr>
   1796          <td class="memname">void remove_SIO </td>
   1797          <td>(</td>
   1798          <td class="paramtype"><a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>&#160;</td>
   1799          <td class="paramname"><em>h</em></td><td>)</td>
   1800          <td></td>
   1801        </tr>
   1802      </table>
   1803</div><div class="memdoc">
   1804
   1805</div>
   1806</div>
   1807<a id="a35a3ff12ab34534b763517576afe38a6"></a>
   1808<h2 class="memtitle"><span class="permalink"><a href="#a35a3ff12ab34534b763517576afe38a6">&#9670;&nbsp;</a></span>remove_JOY()</h2>
   1809
   1810<div class="memitem">
   1811<div class="memproto">
   1812      <table class="memname">
   1813        <tr>
   1814          <td class="memname">void remove_JOY </td>
   1815          <td>(</td>
   1816          <td class="paramtype"><a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>&#160;</td>
   1817          <td class="paramname"><em>h</em></td><td>)</td>
   1818          <td></td>
   1819        </tr>
   1820      </table>
   1821</div><div class="memdoc">
   1822
   1823</div>
   1824</div>
   1825<a id="ae59628e2237f301df1341e22bfc8296e"></a>
   1826<h2 class="memtitle"><span class="permalink"><a href="#ae59628e2237f301df1341e22bfc8296e">&#9670;&nbsp;</a></span>add_VBL()</h2>
   1827
   1828<div class="memitem">
   1829<div class="memproto">
   1830      <table class="memname">
   1831        <tr>
   1832          <td class="memname">void add_VBL </td>
   1833          <td>(</td>
   1834          <td class="paramtype"><a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>&#160;</td>
   1835          <td class="paramname"><em>h</em></td><td>)</td>
   1836          <td></td>
   1837        </tr>
   1838      </table>
   1839</div><div class="memdoc">
   1840<p>Adds a V-blank interrupt handler. </p>
   1841
   1842</div>
   1843</div>
   1844<a id="a51add93356a25c71e8c37a73c9065c9d"></a>
   1845<h2 class="memtitle"><span class="permalink"><a href="#a51add93356a25c71e8c37a73c9065c9d">&#9670;&nbsp;</a></span>add_LCD()</h2>
   1846
   1847<div class="memitem">
   1848<div class="memproto">
   1849      <table class="memname">
   1850        <tr>
   1851          <td class="memname">void add_LCD </td>
   1852          <td>(</td>
   1853          <td class="paramtype"><a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>&#160;</td>
   1854          <td class="paramname"><em>h</em></td><td>)</td>
   1855          <td></td>
   1856        </tr>
   1857      </table>
   1858</div><div class="memdoc">
   1859<p>Adds a LCD interrupt handler. </p>
   1860
   1861</div>
   1862</div>
   1863<a id="a6c66a583a8f0744e3985c89725e3dc10"></a>
   1864<h2 class="memtitle"><span class="permalink"><a href="#a6c66a583a8f0744e3985c89725e3dc10">&#9670;&nbsp;</a></span>add_TIM()</h2>
   1865
   1866<div class="memitem">
   1867<div class="memproto">
   1868      <table class="memname">
   1869        <tr>
   1870          <td class="memname">void add_TIM </td>
   1871          <td>(</td>
   1872          <td class="paramtype"><a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>&#160;</td>
   1873          <td class="paramname"><em>h</em></td><td>)</td>
   1874          <td></td>
   1875        </tr>
   1876      </table>
   1877</div><div class="memdoc">
   1878<p>Does nothing on SMS/GG </p>
   1879
   1880</div>
   1881</div>
   1882<a id="a3372d61a07e0466bdb909a27f3aaaca9"></a>
   1883<h2 class="memtitle"><span class="permalink"><a href="#a3372d61a07e0466bdb909a27f3aaaca9">&#9670;&nbsp;</a></span>add_SIO()</h2>
   1884
   1885<div class="memitem">
   1886<div class="memproto">
   1887      <table class="memname">
   1888        <tr>
   1889          <td class="memname">void add_SIO </td>
   1890          <td>(</td>
   1891          <td class="paramtype"><a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>&#160;</td>
   1892          <td class="paramname"><em>h</em></td><td>)</td>
   1893          <td></td>
   1894        </tr>
   1895      </table>
   1896</div><div class="memdoc">
   1897<p>Does nothing on SMS/GG </p>
   1898
   1899</div>
   1900</div>
   1901<a id="a48163816121cd669526817d3e6266fd9"></a>
   1902<h2 class="memtitle"><span class="permalink"><a href="#a48163816121cd669526817d3e6266fd9">&#9670;&nbsp;</a></span>add_JOY()</h2>
   1903
   1904<div class="memitem">
   1905<div class="memproto">
   1906      <table class="memname">
   1907        <tr>
   1908          <td class="memname">void add_JOY </td>
   1909          <td>(</td>
   1910          <td class="paramtype"><a class="el" href="sms_8h.html#a9508f919d9482d1d51534ccac212454d">int_handler</a>&#160;</td>
   1911          <td class="paramname"><em>h</em></td><td>)</td>
   1912          <td></td>
   1913        </tr>
   1914      </table>
   1915</div><div class="memdoc">
   1916<p>Does nothing on SMS/GG </p>
   1917
   1918</div>
   1919</div>
   1920<a id="ade5d4c955b871b0ed884273cc2b7215a"></a>
   1921<h2 class="memtitle"><span class="permalink"><a href="#ade5d4c955b871b0ed884273cc2b7215a">&#9670;&nbsp;</a></span>cancel_pending_interrupts()</h2>
   1922
   1923<div class="memitem">
   1924<div class="memproto">
   1925<table class="mlabels">
   1926  <tr>
   1927  <td class="mlabels-left">
   1928      <table class="memname">
   1929        <tr>
   1930          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> cancel_pending_interrupts </td>
   1931          <td>(</td>
   1932          <td class="paramname"></td><td>)</td>
   1933          <td></td>
   1934        </tr>
   1935      </table>
   1936  </td>
   1937  <td class="mlabels-right">
   1938<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   1939  </tr>
   1940</table>
   1941</div><div class="memdoc">
   1942<p>Cancel pending interrupts </p>
   1943
   1944</div>
   1945</div>
   1946<a id="a6261537edc74068e3f7f057e6a3e8a57"></a>
   1947<h2 class="memtitle"><span class="permalink"><a href="#a6261537edc74068e3f7f057e6a3e8a57">&#9670;&nbsp;</a></span>move_bkg()</h2>
   1948
   1949<div class="memitem">
   1950<div class="memproto">
   1951<table class="mlabels">
   1952  <tr>
   1953  <td class="mlabels-left">
   1954      <table class="memname">
   1955        <tr>
   1956          <td class="memname">void move_bkg </td>
   1957          <td>(</td>
   1958          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   1959          <td class="paramname"><em>x</em>, </td>
   1960        </tr>
   1961        <tr>
   1962          <td class="paramkey"></td>
   1963          <td></td>
   1964          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   1965          <td class="paramname"><em>y</em>&#160;</td>
   1966        </tr>
   1967        <tr>
   1968          <td></td>
   1969          <td>)</td>
   1970          <td></td><td></td>
   1971        </tr>
   1972      </table>
   1973  </td>
   1974  <td class="mlabels-right">
   1975<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   1976  </tr>
   1977</table>
   1978</div><div class="memdoc">
   1979
   1980</div>
   1981</div>
   1982<a id="a1f583f7a880daa6145ca78b086a209d1"></a>
   1983<h2 class="memtitle"><span class="permalink"><a href="#a1f583f7a880daa6145ca78b086a209d1">&#9670;&nbsp;</a></span>scroll_bkg()</h2>
   1984
   1985<div class="memitem">
   1986<div class="memproto">
   1987<table class="mlabels">
   1988  <tr>
   1989  <td class="mlabels-left">
   1990      <table class="memname">
   1991        <tr>
   1992          <td class="memname">void scroll_bkg </td>
   1993          <td>(</td>
   1994          <td class="paramtype"><a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a>&#160;</td>
   1995          <td class="paramname"><em>x</em>, </td>
   1996        </tr>
   1997        <tr>
   1998          <td class="paramkey"></td>
   1999          <td></td>
   2000          <td class="paramtype"><a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a>&#160;</td>
   2001          <td class="paramname"><em>y</em>&#160;</td>
   2002        </tr>
   2003        <tr>
   2004          <td></td>
   2005          <td>)</td>
   2006          <td></td><td></td>
   2007        </tr>
   2008      </table>
   2009  </td>
   2010  <td class="mlabels-right">
   2011<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   2012  </tr>
   2013</table>
   2014</div><div class="memdoc">
   2015
   2016</div>
   2017</div>
   2018<a id="acd186eb292d441f9389e77b545a55619"></a>
   2019<h2 class="memtitle"><span class="permalink"><a href="#acd186eb292d441f9389e77b545a55619">&#9670;&nbsp;</a></span>wait_vbl_done()</h2>
   2020
   2021<div class="memitem">
   2022<div class="memproto">
   2023      <table class="memname">
   2024        <tr>
   2025          <td class="memname">void wait_vbl_done </td>
   2026          <td>(</td>
   2027          <td class="paramname"></td><td>)</td>
   2028          <td></td>
   2029        </tr>
   2030      </table>
   2031</div><div class="memdoc">
   2032<p>HALTs the CPU and waits for the vertical blank interrupt (VBL) to finish.</p>
   2033<p>This is often used in main loops to idle the CPU at low power until it's time to start the next frame. It's also useful for syncing animation with the screen re-draw.</p>
   2034<p>Warning: If the VBL interrupt is disabled, this function will never return. If the screen is off this function returns immediately. </p>
   2035
   2036</div>
   2037</div>
   2038<a id="a7b09691f25fddd65f12ed199b3f88ef0"></a>
   2039<h2 class="memtitle"><span class="permalink"><a href="#a7b09691f25fddd65f12ed199b3f88ef0">&#9670;&nbsp;</a></span>display_off()</h2>
   2040
   2041<div class="memitem">
   2042<div class="memproto">
   2043<table class="mlabels">
   2044  <tr>
   2045  <td class="mlabels-left">
   2046      <table class="memname">
   2047        <tr>
   2048          <td class="memname">void display_off </td>
   2049          <td>(</td>
   2050          <td class="paramname"></td><td>)</td>
   2051          <td></td>
   2052        </tr>
   2053      </table>
   2054  </td>
   2055  <td class="mlabels-right">
   2056<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   2057  </tr>
   2058</table>
   2059</div><div class="memdoc">
   2060<p>Turns the display off.</p>
   2061<dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a5ae6b05b3e1559c97f0d1b2daaaa0ee4">DISPLAY_ON</a> </dd></dl>
   2062
   2063</div>
   2064</div>
   2065<a id="a7542d00af674e3c58b6c9887ab01919f"></a>
   2066<h2 class="memtitle"><span class="permalink"><a href="#a7542d00af674e3c58b6c9887ab01919f">&#9670;&nbsp;</a></span>refresh_OAM()</h2>
   2067
   2068<div class="memitem">
   2069<div class="memproto">
   2070      <table class="memname">
   2071        <tr>
   2072          <td class="memname">void refresh_OAM </td>
   2073          <td>(</td>
   2074          <td class="paramname"></td><td>)</td>
   2075          <td></td>
   2076        </tr>
   2077      </table>
   2078</div><div class="memdoc">
   2079<p>Copies data from shadow OAM to OAM </p>
   2080
   2081</div>
   2082</div>
   2083<a id="a217232c82eb5f99f7639b5786ce5abc6"></a>
   2084<h2 class="memtitle"><span class="permalink"><a href="#a217232c82eb5f99f7639b5786ce5abc6">&#9670;&nbsp;</a></span>delay()</h2>
   2085
   2086<div class="memitem">
   2087<div class="memproto">
   2088      <table class="memname">
   2089        <tr>
   2090          <td class="memname">void delay </td>
   2091          <td>(</td>
   2092          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2093          <td class="paramname"><em>d</em></td><td>)</td>
   2094          <td></td>
   2095        </tr>
   2096      </table>
   2097</div><div class="memdoc">
   2098<p>Delays the given number of milliseconds. Uses no timers or interrupts, and can be called with interrupts disabled </p>
   2099
   2100</div>
   2101</div>
   2102<a id="a176c477d759b814664785f3a0ad5e253"></a>
   2103<h2 class="memtitle"><span class="permalink"><a href="#a176c477d759b814664785f3a0ad5e253">&#9670;&nbsp;</a></span>joypad()</h2>
   2104
   2105<div class="memitem">
   2106<div class="memproto">
   2107      <table class="memname">
   2108        <tr>
   2109          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> joypad </td>
   2110          <td>(</td>
   2111          <td class="paramname"></td><td>)</td>
   2112          <td></td>
   2113        </tr>
   2114      </table>
   2115</div><div class="memdoc">
   2116<p>Reads and returns the current state of the joypad. </p>
   2117
   2118</div>
   2119</div>
   2120<a id="a79b565677967da5ef9bf1a00aa6776ce"></a>
   2121<h2 class="memtitle"><span class="permalink"><a href="#a79b565677967da5ef9bf1a00aa6776ce">&#9670;&nbsp;</a></span>waitpad()</h2>
   2122
   2123<div class="memitem">
   2124<div class="memproto">
   2125      <table class="memname">
   2126        <tr>
   2127          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> waitpad </td>
   2128          <td>(</td>
   2129          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2130          <td class="paramname"><em>mask</em></td><td>)</td>
   2131          <td></td>
   2132        </tr>
   2133      </table>
   2134</div><div class="memdoc">
   2135<p>Waits until at least one of the buttons given in mask are pressed. </p>
   2136
   2137</div>
   2138</div>
   2139<a id="a955d3733e5018f18b17a572aff45cf26"></a>
   2140<h2 class="memtitle"><span class="permalink"><a href="#a955d3733e5018f18b17a572aff45cf26">&#9670;&nbsp;</a></span>waitpadup()</h2>
   2141
   2142<div class="memitem">
   2143<div class="memproto">
   2144      <table class="memname">
   2145        <tr>
   2146          <td class="memname">void waitpadup </td>
   2147          <td>(</td>
   2148          <td class="paramname"></td><td>)</td>
   2149          <td></td>
   2150        </tr>
   2151      </table>
   2152</div><div class="memdoc">
   2153<p>Waits for the directional pad and all buttons to be released.</p>
   2154<p>Note: Checks in a loop that doesn't HALT at all, so the CPU will be maxed out until this call returns. </p>
   2155
   2156</div>
   2157</div>
   2158<a id="abe90cc2b5bb10c0ed9e01e548ddf8862"></a>
   2159<h2 class="memtitle"><span class="permalink"><a href="#abe90cc2b5bb10c0ed9e01e548ddf8862">&#9670;&nbsp;</a></span>joypad_init()</h2>
   2160
   2161<div class="memitem">
   2162<div class="memproto">
   2163      <table class="memname">
   2164        <tr>
   2165          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> joypad_init </td>
   2166          <td>(</td>
   2167          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2168          <td class="paramname"><em>npads</em>, </td>
   2169        </tr>
   2170        <tr>
   2171          <td class="paramkey"></td>
   2172          <td></td>
   2173          <td class="paramtype"><a class="el" href="structjoypads__t.html">joypads_t</a> *&#160;</td>
   2174          <td class="paramname"><em>joypads</em>&#160;</td>
   2175        </tr>
   2176        <tr>
   2177          <td></td>
   2178          <td>)</td>
   2179          <td></td><td></td>
   2180        </tr>
   2181      </table>
   2182</div><div class="memdoc">
   2183<p>Initializes <a class="el" href="structjoypads__t.html">joypads_t</a> structure for polling multiple joypads </p><dl class="params"><dt>Parameters</dt><dd>
   2184  <table class="params">
   2185    <tr><td class="paramname">npads</td><td>number of joypads requested (1, 2 or 4) </td></tr>
   2186    <tr><td class="paramname">joypads</td><td>pointer to <a class="el" href="structjoypads__t.html">joypads_t</a> structure to be initialized</td></tr>
   2187  </table>
   2188  </dd>
   2189</dl>
   2190<p>Only required for <a class="el" href="sms_8h.html#a1d45c65829490c5ec98362f5e60edc20">joypad_ex</a>, not required for calls to regular <a class="el" href="gb_8h.html#a176c477d759b814664785f3a0ad5e253">joypad()</a> </p><dl class="section return"><dt>Returns</dt><dd>number of joypads avaliable </dd></dl>
   2191<dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a1d45c65829490c5ec98362f5e60edc20">joypad_ex()</a>, <a class="el" href="structjoypads__t.html">joypads_t</a> </dd></dl>
   2192
   2193</div>
   2194</div>
   2195<a id="a1d45c65829490c5ec98362f5e60edc20"></a>
   2196<h2 class="memtitle"><span class="permalink"><a href="#a1d45c65829490c5ec98362f5e60edc20">&#9670;&nbsp;</a></span>joypad_ex()</h2>
   2197
   2198<div class="memitem">
   2199<div class="memproto">
   2200      <table class="memname">
   2201        <tr>
   2202          <td class="memname">void joypad_ex </td>
   2203          <td>(</td>
   2204          <td class="paramtype"><a class="el" href="structjoypads__t.html">joypads_t</a> *&#160;</td>
   2205          <td class="paramname"><em>joypads</em></td><td>)</td>
   2206          <td></td>
   2207        </tr>
   2208      </table>
   2209</div><div class="memdoc">
   2210<p>Polls all avaliable joypads </p><dl class="params"><dt>Parameters</dt><dd>
   2211  <table class="params">
   2212    <tr><td class="paramname">joypads</td><td>pointer to <a class="el" href="structjoypads__t.html">joypads_t</a> structure to be filled with joypad statuses, must be previously initialized with <a class="el" href="sms_8h.html#abe90cc2b5bb10c0ed9e01e548ddf8862">joypad_init()</a></td></tr>
   2213  </table>
   2214  </dd>
   2215</dl>
   2216<dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#abe90cc2b5bb10c0ed9e01e548ddf8862">joypad_init()</a>, <a class="el" href="structjoypads__t.html">joypads_t</a> </dd></dl>
   2217
   2218</div>
   2219</div>
   2220<a id="abd34836339579013c097ae4dea10c014"></a>
   2221<h2 class="memtitle"><span class="permalink"><a href="#abd34836339579013c097ae4dea10c014">&#9670;&nbsp;</a></span>set_default_palette()</h2>
   2222
   2223<div class="memitem">
   2224<div class="memproto">
   2225      <table class="memname">
   2226        <tr>
   2227          <td class="memname">void set_default_palette </td>
   2228          <td>(</td>
   2229          <td class="paramname"></td><td>)</td>
   2230          <td></td>
   2231        </tr>
   2232      </table>
   2233</div><div class="memdoc">
   2234
   2235</div>
   2236</div>
   2237<a id="a884a743919b234cd9c37789380784d08"></a>
   2238<h2 class="memtitle"><span class="permalink"><a href="#a884a743919b234cd9c37789380784d08">&#9670;&nbsp;</a></span>cpu_fast()</h2>
   2239
   2240<div class="memitem">
   2241<div class="memproto">
   2242<table class="mlabels">
   2243  <tr>
   2244  <td class="mlabels-left">
   2245      <table class="memname">
   2246        <tr>
   2247          <td class="memname">void cpu_fast </td>
   2248          <td>(</td>
   2249          <td class="paramname"></td><td>)</td>
   2250          <td></td>
   2251        </tr>
   2252      </table>
   2253  </td>
   2254  <td class="mlabels-right">
   2255<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   2256  </tr>
   2257</table>
   2258</div><div class="memdoc">
   2259<p>Set CPU speed to fast (CGB Double Speed) operation.</p>
   2260<p>On startup the CGB operates in Normal Speed Mode and can be switched into Double speed mode (faster processing but also higher power consumption). See the Pan Docs for more information about which hardware features operate faster and which remain at Normal Speed.</p>
   2261<ul>
   2262<li>Interrupts are temporarily disabled and then re-enabled during this call. </li>
   2263<li>You can check to see if <a class="el" href="gb_8h.html#a874b9bd95b0a05d6a6072feabc879e45">_cpu</a> == <a class="el" href="gb_8h.html#aee435a3a0dde3dbd7b6112dbb456cde8">CGB_TYPE</a> before using this function.</li>
   2264</ul>
   2265<dl class="section see"><dt>See also</dt><dd><a class="el" href="cgb_8h.html#a6a36fb9584e4a123f6164530a3b1e5e2">cpu_slow()</a>, <a class="el" href="gb_8h.html#a874b9bd95b0a05d6a6072feabc879e45">_cpu</a> </dd></dl>
   2266
   2267</div>
   2268</div>
   2269<a id="a2c9aabf4519e01257b0d0e04e8108164"></a>
   2270<h2 class="memtitle"><span class="permalink"><a href="#a2c9aabf4519e01257b0d0e04e8108164">&#9670;&nbsp;</a></span>set_palette_entry()</h2>
   2271
   2272<div class="memitem">
   2273<div class="memproto">
   2274      <table class="memname">
   2275        <tr>
   2276          <td class="memname">void set_palette_entry </td>
   2277          <td>(</td>
   2278          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2279          <td class="paramname"><em>palette</em>, </td>
   2280        </tr>
   2281        <tr>
   2282          <td class="paramkey"></td>
   2283          <td></td>
   2284          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2285          <td class="paramname"><em>entry</em>, </td>
   2286        </tr>
   2287        <tr>
   2288          <td class="paramkey"></td>
   2289          <td></td>
   2290          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2291          <td class="paramname"><em>rgb_data</em>&#160;</td>
   2292        </tr>
   2293        <tr>
   2294          <td></td>
   2295          <td>)</td>
   2296          <td></td><td></td>
   2297        </tr>
   2298      </table>
   2299</div><div class="memdoc">
   2300
   2301</div>
   2302</div>
   2303<a id="a92109adcc20960f26e8bc5fbb141d27e"></a>
   2304<h2 class="memtitle"><span class="permalink"><a href="#a92109adcc20960f26e8bc5fbb141d27e">&#9670;&nbsp;</a></span>set_palette()</h2>
   2305
   2306<div class="memitem">
   2307<div class="memproto">
   2308      <table class="memname">
   2309        <tr>
   2310          <td class="memname">void set_palette </td>
   2311          <td>(</td>
   2312          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2313          <td class="paramname"><em>first_palette</em>, </td>
   2314        </tr>
   2315        <tr>
   2316          <td class="paramkey"></td>
   2317          <td></td>
   2318          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2319          <td class="paramname"><em>nb_palettes</em>, </td>
   2320        </tr>
   2321        <tr>
   2322          <td class="paramkey"></td>
   2323          <td></td>
   2324          <td class="paramtype"><a class="el" href="cgb_8h.html#af868d7cdbd052c6b972ef137e02f6495">palette_color_t</a> *&#160;</td>
   2325          <td class="paramname"><em>rgb_data</em>&#160;</td>
   2326        </tr>
   2327        <tr>
   2328          <td></td>
   2329          <td>)</td>
   2330          <td></td><td></td>
   2331        </tr>
   2332      </table>
   2333</div><div class="memdoc">
   2334
   2335</div>
   2336</div>
   2337<a id="a24764a152441b966ea04a83278c73207"></a>
   2338<h2 class="memtitle"><span class="permalink"><a href="#a24764a152441b966ea04a83278c73207">&#9670;&nbsp;</a></span>set_native_tile_data()</h2>
   2339
   2340<div class="memitem">
   2341<div class="memproto">
   2342      <table class="memname">
   2343        <tr>
   2344          <td class="memname">void set_native_tile_data </td>
   2345          <td>(</td>
   2346          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2347          <td class="paramname"><em>start</em>, </td>
   2348        </tr>
   2349        <tr>
   2350          <td class="paramkey"></td>
   2351          <td></td>
   2352          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2353          <td class="paramname"><em>ntiles</em>, </td>
   2354        </tr>
   2355        <tr>
   2356          <td class="paramkey"></td>
   2357          <td></td>
   2358          <td class="paramtype">const void *&#160;</td>
   2359          <td class="paramname"><em>src</em>&#160;</td>
   2360        </tr>
   2361        <tr>
   2362          <td></td>
   2363          <td>)</td>
   2364          <td></td><td></td>
   2365        </tr>
   2366      </table>
   2367</div><div class="memdoc">
   2368
   2369</div>
   2370</div>
   2371<a id="aeff13dca11be49e8c159820c616016ec"></a>
   2372<h2 class="memtitle"><span class="permalink"><a href="#aeff13dca11be49e8c159820c616016ec">&#9670;&nbsp;</a></span>set_bkg_4bpp_data()</h2>
   2373
   2374<div class="memitem">
   2375<div class="memproto">
   2376<table class="mlabels">
   2377  <tr>
   2378  <td class="mlabels-left">
   2379      <table class="memname">
   2380        <tr>
   2381          <td class="memname">void set_bkg_4bpp_data </td>
   2382          <td>(</td>
   2383          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2384          <td class="paramname"><em>start</em>, </td>
   2385        </tr>
   2386        <tr>
   2387          <td class="paramkey"></td>
   2388          <td></td>
   2389          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2390          <td class="paramname"><em>ntiles</em>, </td>
   2391        </tr>
   2392        <tr>
   2393          <td class="paramkey"></td>
   2394          <td></td>
   2395          <td class="paramtype">const void *&#160;</td>
   2396          <td class="paramname"><em>src</em>&#160;</td>
   2397        </tr>
   2398        <tr>
   2399          <td></td>
   2400          <td>)</td>
   2401          <td></td><td></td>
   2402        </tr>
   2403      </table>
   2404  </td>
   2405  <td class="mlabels-right">
   2406<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   2407  </tr>
   2408</table>
   2409</div><div class="memdoc">
   2410
   2411</div>
   2412</div>
   2413<a id="a24f53cfe7e25c04fbb5dcb08cfb3b432"></a>
   2414<h2 class="memtitle"><span class="permalink"><a href="#a24f53cfe7e25c04fbb5dcb08cfb3b432">&#9670;&nbsp;</a></span>set_sprite_4bpp_data()</h2>
   2415
   2416<div class="memitem">
   2417<div class="memproto">
   2418<table class="mlabels">
   2419  <tr>
   2420  <td class="mlabels-left">
   2421      <table class="memname">
   2422        <tr>
   2423          <td class="memname">void set_sprite_4bpp_data </td>
   2424          <td>(</td>
   2425          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2426          <td class="paramname"><em>start</em>, </td>
   2427        </tr>
   2428        <tr>
   2429          <td class="paramkey"></td>
   2430          <td></td>
   2431          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2432          <td class="paramname"><em>ntiles</em>, </td>
   2433        </tr>
   2434        <tr>
   2435          <td class="paramkey"></td>
   2436          <td></td>
   2437          <td class="paramtype">const void *&#160;</td>
   2438          <td class="paramname"><em>src</em>&#160;</td>
   2439        </tr>
   2440        <tr>
   2441          <td></td>
   2442          <td>)</td>
   2443          <td></td><td></td>
   2444        </tr>
   2445      </table>
   2446  </td>
   2447  <td class="mlabels-right">
   2448<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   2449  </tr>
   2450</table>
   2451</div><div class="memdoc">
   2452
   2453</div>
   2454</div>
   2455<a id="aa224c9bac27c7fd268e62bdf33338a84"></a>
   2456<h2 class="memtitle"><span class="permalink"><a href="#aa224c9bac27c7fd268e62bdf33338a84">&#9670;&nbsp;</a></span>set_2bpp_palette()</h2>
   2457
   2458<div class="memitem">
   2459<div class="memproto">
   2460<table class="mlabels">
   2461  <tr>
   2462  <td class="mlabels-left">
   2463      <table class="memname">
   2464        <tr>
   2465          <td class="memname">void set_2bpp_palette </td>
   2466          <td>(</td>
   2467          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2468          <td class="paramname"><em>palette</em></td><td>)</td>
   2469          <td></td>
   2470        </tr>
   2471      </table>
   2472  </td>
   2473  <td class="mlabels-right">
   2474<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   2475  </tr>
   2476</table>
   2477</div><div class="memdoc">
   2478
   2479</div>
   2480</div>
   2481<a id="ab752b1bb0f58da2a6d52e9747c4b3dd8"></a>
   2482<h2 class="memtitle"><span class="permalink"><a href="#ab752b1bb0f58da2a6d52e9747c4b3dd8">&#9670;&nbsp;</a></span>set_tile_2bpp_data()</h2>
   2483
   2484<div class="memitem">
   2485<div class="memproto">
   2486      <table class="memname">
   2487        <tr>
   2488          <td class="memname">void set_tile_2bpp_data </td>
   2489          <td>(</td>
   2490          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2491          <td class="paramname"><em>start</em>, </td>
   2492        </tr>
   2493        <tr>
   2494          <td class="paramkey"></td>
   2495          <td></td>
   2496          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2497          <td class="paramname"><em>ntiles</em>, </td>
   2498        </tr>
   2499        <tr>
   2500          <td class="paramkey"></td>
   2501          <td></td>
   2502          <td class="paramtype">const void *&#160;</td>
   2503          <td class="paramname"><em>src</em>, </td>
   2504        </tr>
   2505        <tr>
   2506          <td class="paramkey"></td>
   2507          <td></td>
   2508          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2509          <td class="paramname"><em>palette</em>&#160;</td>
   2510        </tr>
   2511        <tr>
   2512          <td></td>
   2513          <td>)</td>
   2514          <td></td><td></td>
   2515        </tr>
   2516      </table>
   2517</div><div class="memdoc">
   2518
   2519</div>
   2520</div>
   2521<a id="a8130306da1177f4fef89e699f8e2add4"></a>
   2522<h2 class="memtitle"><span class="permalink"><a href="#a8130306da1177f4fef89e699f8e2add4">&#9670;&nbsp;</a></span>set_bkg_data()</h2>
   2523
   2524<div class="memitem">
   2525<div class="memproto">
   2526<table class="mlabels">
   2527  <tr>
   2528  <td class="mlabels-left">
   2529      <table class="memname">
   2530        <tr>
   2531          <td class="memname">void set_bkg_data </td>
   2532          <td>(</td>
   2533          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2534          <td class="paramname"><em>start</em>, </td>
   2535        </tr>
   2536        <tr>
   2537          <td class="paramkey"></td>
   2538          <td></td>
   2539          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2540          <td class="paramname"><em>ntiles</em>, </td>
   2541        </tr>
   2542        <tr>
   2543          <td class="paramkey"></td>
   2544          <td></td>
   2545          <td class="paramtype">const void *&#160;</td>
   2546          <td class="paramname"><em>src</em>&#160;</td>
   2547        </tr>
   2548        <tr>
   2549          <td></td>
   2550          <td>)</td>
   2551          <td></td><td></td>
   2552        </tr>
   2553      </table>
   2554  </td>
   2555  <td class="mlabels-right">
   2556<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   2557  </tr>
   2558</table>
   2559</div><div class="memdoc">
   2560
   2561</div>
   2562</div>
   2563<a id="a216a3e3d320ee4d8cf4845600487ae39"></a>
   2564<h2 class="memtitle"><span class="permalink"><a href="#a216a3e3d320ee4d8cf4845600487ae39">&#9670;&nbsp;</a></span>set_sprite_data()</h2>
   2565
   2566<div class="memitem">
   2567<div class="memproto">
   2568<table class="mlabels">
   2569  <tr>
   2570  <td class="mlabels-left">
   2571      <table class="memname">
   2572        <tr>
   2573          <td class="memname">void set_sprite_data </td>
   2574          <td>(</td>
   2575          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2576          <td class="paramname"><em>start</em>, </td>
   2577        </tr>
   2578        <tr>
   2579          <td class="paramkey"></td>
   2580          <td></td>
   2581          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2582          <td class="paramname"><em>ntiles</em>, </td>
   2583        </tr>
   2584        <tr>
   2585          <td class="paramkey"></td>
   2586          <td></td>
   2587          <td class="paramtype">const void *&#160;</td>
   2588          <td class="paramname"><em>src</em>&#160;</td>
   2589        </tr>
   2590        <tr>
   2591          <td></td>
   2592          <td>)</td>
   2593          <td></td><td></td>
   2594        </tr>
   2595      </table>
   2596  </td>
   2597  <td class="mlabels-right">
   2598<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   2599  </tr>
   2600</table>
   2601</div><div class="memdoc">
   2602
   2603</div>
   2604</div>
   2605<a id="aa7ba76e4d44dbf19da351fd1ea8e3023"></a>
   2606<h2 class="memtitle"><span class="permalink"><a href="#aa7ba76e4d44dbf19da351fd1ea8e3023">&#9670;&nbsp;</a></span>set_bkg_2bpp_data()</h2>
   2607
   2608<div class="memitem">
   2609<div class="memproto">
   2610<table class="mlabels">
   2611  <tr>
   2612  <td class="mlabels-left">
   2613      <table class="memname">
   2614        <tr>
   2615          <td class="memname">void set_bkg_2bpp_data </td>
   2616          <td>(</td>
   2617          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2618          <td class="paramname"><em>start</em>, </td>
   2619        </tr>
   2620        <tr>
   2621          <td class="paramkey"></td>
   2622          <td></td>
   2623          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2624          <td class="paramname"><em>ntiles</em>, </td>
   2625        </tr>
   2626        <tr>
   2627          <td class="paramkey"></td>
   2628          <td></td>
   2629          <td class="paramtype">const void *&#160;</td>
   2630          <td class="paramname"><em>src</em>&#160;</td>
   2631        </tr>
   2632        <tr>
   2633          <td></td>
   2634          <td>)</td>
   2635          <td></td><td></td>
   2636        </tr>
   2637      </table>
   2638  </td>
   2639  <td class="mlabels-right">
   2640<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   2641  </tr>
   2642</table>
   2643</div><div class="memdoc">
   2644
   2645</div>
   2646</div>
   2647<a id="a10ee2919fcab7a5c482816ed718d1c4a"></a>
   2648<h2 class="memtitle"><span class="permalink"><a href="#a10ee2919fcab7a5c482816ed718d1c4a">&#9670;&nbsp;</a></span>set_sprite_2bpp_data()</h2>
   2649
   2650<div class="memitem">
   2651<div class="memproto">
   2652<table class="mlabels">
   2653  <tr>
   2654  <td class="mlabels-left">
   2655      <table class="memname">
   2656        <tr>
   2657          <td class="memname">void set_sprite_2bpp_data </td>
   2658          <td>(</td>
   2659          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2660          <td class="paramname"><em>start</em>, </td>
   2661        </tr>
   2662        <tr>
   2663          <td class="paramkey"></td>
   2664          <td></td>
   2665          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2666          <td class="paramname"><em>ntiles</em>, </td>
   2667        </tr>
   2668        <tr>
   2669          <td class="paramkey"></td>
   2670          <td></td>
   2671          <td class="paramtype">const void *&#160;</td>
   2672          <td class="paramname"><em>src</em>&#160;</td>
   2673        </tr>
   2674        <tr>
   2675          <td></td>
   2676          <td>)</td>
   2677          <td></td><td></td>
   2678        </tr>
   2679      </table>
   2680  </td>
   2681  <td class="mlabels-right">
   2682<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   2683  </tr>
   2684</table>
   2685</div><div class="memdoc">
   2686
   2687</div>
   2688</div>
   2689<a id="adcb394299a1033616fc7d2faec8bd6ad"></a>
   2690<h2 class="memtitle"><span class="permalink"><a href="#adcb394299a1033616fc7d2faec8bd6ad">&#9670;&nbsp;</a></span>set_1bpp_colors()</h2>
   2691
   2692<div class="memitem">
   2693<div class="memproto">
   2694<table class="mlabels">
   2695  <tr>
   2696  <td class="mlabels-left">
   2697      <table class="memname">
   2698        <tr>
   2699          <td class="memname">void set_1bpp_colors </td>
   2700          <td>(</td>
   2701          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2702          <td class="paramname"><em>fgcolor</em>, </td>
   2703        </tr>
   2704        <tr>
   2705          <td class="paramkey"></td>
   2706          <td></td>
   2707          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2708          <td class="paramname"><em>bgcolor</em>&#160;</td>
   2709        </tr>
   2710        <tr>
   2711          <td></td>
   2712          <td>)</td>
   2713          <td></td><td></td>
   2714        </tr>
   2715      </table>
   2716  </td>
   2717  <td class="mlabels-right">
   2718<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   2719  </tr>
   2720</table>
   2721</div><div class="memdoc">
   2722
   2723</div>
   2724</div>
   2725<a id="a747033606e041b45ae09b38fdb06b871"></a>
   2726<h2 class="memtitle"><span class="permalink"><a href="#a747033606e041b45ae09b38fdb06b871">&#9670;&nbsp;</a></span>set_tile_1bpp_data()</h2>
   2727
   2728<div class="memitem">
   2729<div class="memproto">
   2730      <table class="memname">
   2731        <tr>
   2732          <td class="memname">void set_tile_1bpp_data </td>
   2733          <td>(</td>
   2734          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2735          <td class="paramname"><em>start</em>, </td>
   2736        </tr>
   2737        <tr>
   2738          <td class="paramkey"></td>
   2739          <td></td>
   2740          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2741          <td class="paramname"><em>ntiles</em>, </td>
   2742        </tr>
   2743        <tr>
   2744          <td class="paramkey"></td>
   2745          <td></td>
   2746          <td class="paramtype">const void *&#160;</td>
   2747          <td class="paramname"><em>src</em>, </td>
   2748        </tr>
   2749        <tr>
   2750          <td class="paramkey"></td>
   2751          <td></td>
   2752          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2753          <td class="paramname"><em>colors</em>&#160;</td>
   2754        </tr>
   2755        <tr>
   2756          <td></td>
   2757          <td>)</td>
   2758          <td></td><td></td>
   2759        </tr>
   2760      </table>
   2761</div><div class="memdoc">
   2762
   2763</div>
   2764</div>
   2765<a id="a4d5f74eed0489ebfdc2410ee3f9f7f04"></a>
   2766<h2 class="memtitle"><span class="permalink"><a href="#a4d5f74eed0489ebfdc2410ee3f9f7f04">&#9670;&nbsp;</a></span>set_bkg_1bpp_data()</h2>
   2767
   2768<div class="memitem">
   2769<div class="memproto">
   2770<table class="mlabels">
   2771  <tr>
   2772  <td class="mlabels-left">
   2773      <table class="memname">
   2774        <tr>
   2775          <td class="memname">void set_bkg_1bpp_data </td>
   2776          <td>(</td>
   2777          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2778          <td class="paramname"><em>start</em>, </td>
   2779        </tr>
   2780        <tr>
   2781          <td class="paramkey"></td>
   2782          <td></td>
   2783          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2784          <td class="paramname"><em>ntiles</em>, </td>
   2785        </tr>
   2786        <tr>
   2787          <td class="paramkey"></td>
   2788          <td></td>
   2789          <td class="paramtype">const void *&#160;</td>
   2790          <td class="paramname"><em>src</em>&#160;</td>
   2791        </tr>
   2792        <tr>
   2793          <td></td>
   2794          <td>)</td>
   2795          <td></td><td></td>
   2796        </tr>
   2797      </table>
   2798  </td>
   2799  <td class="mlabels-right">
   2800<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   2801  </tr>
   2802</table>
   2803</div><div class="memdoc">
   2804
   2805</div>
   2806</div>
   2807<a id="a2cc121fbeb5570248531b85a8f0b5b97"></a>
   2808<h2 class="memtitle"><span class="permalink"><a href="#a2cc121fbeb5570248531b85a8f0b5b97">&#9670;&nbsp;</a></span>set_sprite_1bpp_data()</h2>
   2809
   2810<div class="memitem">
   2811<div class="memproto">
   2812<table class="mlabels">
   2813  <tr>
   2814  <td class="mlabels-left">
   2815      <table class="memname">
   2816        <tr>
   2817          <td class="memname">void set_sprite_1bpp_data </td>
   2818          <td>(</td>
   2819          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2820          <td class="paramname"><em>start</em>, </td>
   2821        </tr>
   2822        <tr>
   2823          <td class="paramkey"></td>
   2824          <td></td>
   2825          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2826          <td class="paramname"><em>ntiles</em>, </td>
   2827        </tr>
   2828        <tr>
   2829          <td class="paramkey"></td>
   2830          <td></td>
   2831          <td class="paramtype">const void *&#160;</td>
   2832          <td class="paramname"><em>src</em>&#160;</td>
   2833        </tr>
   2834        <tr>
   2835          <td></td>
   2836          <td>)</td>
   2837          <td></td><td></td>
   2838        </tr>
   2839      </table>
   2840  </td>
   2841  <td class="mlabels-right">
   2842<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   2843  </tr>
   2844</table>
   2845</div><div class="memdoc">
   2846
   2847</div>
   2848</div>
   2849<a id="a8fe17423c7ef7c44f1ccff27d3afbebc"></a>
   2850<h2 class="memtitle"><span class="permalink"><a href="#a8fe17423c7ef7c44f1ccff27d3afbebc">&#9670;&nbsp;</a></span>set_data()</h2>
   2851
   2852<div class="memitem">
   2853<div class="memproto">
   2854      <table class="memname">
   2855        <tr>
   2856          <td class="memname">void set_data </td>
   2857          <td>(</td>
   2858          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2859          <td class="paramname"><em>dst</em>, </td>
   2860        </tr>
   2861        <tr>
   2862          <td class="paramkey"></td>
   2863          <td></td>
   2864          <td class="paramtype">const void *&#160;</td>
   2865          <td class="paramname"><em>src</em>, </td>
   2866        </tr>
   2867        <tr>
   2868          <td class="paramkey"></td>
   2869          <td></td>
   2870          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2871          <td class="paramname"><em>size</em>&#160;</td>
   2872        </tr>
   2873        <tr>
   2874          <td></td>
   2875          <td>)</td>
   2876          <td></td><td></td>
   2877        </tr>
   2878      </table>
   2879</div><div class="memdoc">
   2880<p>Copies arbitrary data to an address in VRAM</p>
   2881<dl class="params"><dt>Parameters</dt><dd>
   2882  <table class="params">
   2883    <tr><td class="paramname">dst</td><td>destination VRAM Address </td></tr>
   2884    <tr><td class="paramname">src</td><td>Pointer to source buffer </td></tr>
   2885    <tr><td class="paramname">size</td><td>Number of bytes to copy</td></tr>
   2886  </table>
   2887  </dd>
   2888</dl>
   2889<p>Copies <b>size</b> bytes from a buffer at _src__ to VRAM starting at <b>dst</b>. </p>
   2890
   2891</div>
   2892</div>
   2893<a id="a33a749b14dfbd203c460e8d7f3500636"></a>
   2894<h2 class="memtitle"><span class="permalink"><a href="#a33a749b14dfbd203c460e8d7f3500636">&#9670;&nbsp;</a></span>vmemcpy()</h2>
   2895
   2896<div class="memitem">
   2897<div class="memproto">
   2898      <table class="memname">
   2899        <tr>
   2900          <td class="memname">void vmemcpy </td>
   2901          <td>(</td>
   2902          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2903          <td class="paramname"><em>dst</em>, </td>
   2904        </tr>
   2905        <tr>
   2906          <td class="paramkey"></td>
   2907          <td></td>
   2908          <td class="paramtype">const void *&#160;</td>
   2909          <td class="paramname"><em>src</em>, </td>
   2910        </tr>
   2911        <tr>
   2912          <td class="paramkey"></td>
   2913          <td></td>
   2914          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   2915          <td class="paramname"><em>size</em>&#160;</td>
   2916        </tr>
   2917        <tr>
   2918          <td></td>
   2919          <td>)</td>
   2920          <td></td><td></td>
   2921        </tr>
   2922      </table>
   2923</div><div class="memdoc">
   2924
   2925</div>
   2926</div>
   2927<a id="a14fc41e69085b5aa3da2fae9a2aa3ef3"></a>
   2928<h2 class="memtitle"><span class="permalink"><a href="#a14fc41e69085b5aa3da2fae9a2aa3ef3">&#9670;&nbsp;</a></span>set_tile_map()</h2>
   2929
   2930<div class="memitem">
   2931<div class="memproto">
   2932      <table class="memname">
   2933        <tr>
   2934          <td class="memname">void set_tile_map </td>
   2935          <td>(</td>
   2936          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2937          <td class="paramname"><em>x</em>, </td>
   2938        </tr>
   2939        <tr>
   2940          <td class="paramkey"></td>
   2941          <td></td>
   2942          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2943          <td class="paramname"><em>y</em>, </td>
   2944        </tr>
   2945        <tr>
   2946          <td class="paramkey"></td>
   2947          <td></td>
   2948          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2949          <td class="paramname"><em>w</em>, </td>
   2950        </tr>
   2951        <tr>
   2952          <td class="paramkey"></td>
   2953          <td></td>
   2954          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2955          <td class="paramname"><em>h</em>, </td>
   2956        </tr>
   2957        <tr>
   2958          <td class="paramkey"></td>
   2959          <td></td>
   2960          <td class="paramtype">const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
   2961          <td class="paramname"><em>tiles</em>&#160;</td>
   2962        </tr>
   2963        <tr>
   2964          <td></td>
   2965          <td>)</td>
   2966          <td></td><td></td>
   2967        </tr>
   2968      </table>
   2969</div><div class="memdoc">
   2970
   2971</div>
   2972</div>
   2973<a id="a7c38b146f77eda84981c06c2271fe116"></a>
   2974<h2 class="memtitle"><span class="permalink"><a href="#a7c38b146f77eda84981c06c2271fe116">&#9670;&nbsp;</a></span>set_tile_map_compat()</h2>
   2975
   2976<div class="memitem">
   2977<div class="memproto">
   2978      <table class="memname">
   2979        <tr>
   2980          <td class="memname">void set_tile_map_compat </td>
   2981          <td>(</td>
   2982          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2983          <td class="paramname"><em>x</em>, </td>
   2984        </tr>
   2985        <tr>
   2986          <td class="paramkey"></td>
   2987          <td></td>
   2988          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2989          <td class="paramname"><em>y</em>, </td>
   2990        </tr>
   2991        <tr>
   2992          <td class="paramkey"></td>
   2993          <td></td>
   2994          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   2995          <td class="paramname"><em>w</em>, </td>
   2996        </tr>
   2997        <tr>
   2998          <td class="paramkey"></td>
   2999          <td></td>
   3000          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3001          <td class="paramname"><em>h</em>, </td>
   3002        </tr>
   3003        <tr>
   3004          <td class="paramkey"></td>
   3005          <td></td>
   3006          <td class="paramtype">const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
   3007          <td class="paramname"><em>tiles</em>&#160;</td>
   3008        </tr>
   3009        <tr>
   3010          <td></td>
   3011          <td>)</td>
   3012          <td></td><td></td>
   3013        </tr>
   3014      </table>
   3015</div><div class="memdoc">
   3016
   3017</div>
   3018</div>
   3019<a id="a811c386cac0df2d260aacb5a43608be5"></a>
   3020<h2 class="memtitle"><span class="permalink"><a href="#a811c386cac0df2d260aacb5a43608be5">&#9670;&nbsp;</a></span>set_bkg_based_tiles()</h2>
   3021
   3022<div class="memitem">
   3023<div class="memproto">
   3024<table class="mlabels">
   3025  <tr>
   3026  <td class="mlabels-left">
   3027      <table class="memname">
   3028        <tr>
   3029          <td class="memname">void set_bkg_based_tiles </td>
   3030          <td>(</td>
   3031          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3032          <td class="paramname"><em>x</em>, </td>
   3033        </tr>
   3034        <tr>
   3035          <td class="paramkey"></td>
   3036          <td></td>
   3037          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3038          <td class="paramname"><em>y</em>, </td>
   3039        </tr>
   3040        <tr>
   3041          <td class="paramkey"></td>
   3042          <td></td>
   3043          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3044          <td class="paramname"><em>w</em>, </td>
   3045        </tr>
   3046        <tr>
   3047          <td class="paramkey"></td>
   3048          <td></td>
   3049          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3050          <td class="paramname"><em>h</em>, </td>
   3051        </tr>
   3052        <tr>
   3053          <td class="paramkey"></td>
   3054          <td></td>
   3055          <td class="paramtype">const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
   3056          <td class="paramname"><em>tiles</em>, </td>
   3057        </tr>
   3058        <tr>
   3059          <td class="paramkey"></td>
   3060          <td></td>
   3061          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3062          <td class="paramname"><em>base_tile</em>&#160;</td>
   3063        </tr>
   3064        <tr>
   3065          <td></td>
   3066          <td>)</td>
   3067          <td></td><td></td>
   3068        </tr>
   3069      </table>
   3070  </td>
   3071  <td class="mlabels-right">
   3072<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3073  </tr>
   3074</table>
   3075</div><div class="memdoc">
   3076
   3077</div>
   3078</div>
   3079<a id="a739a212609ae60c9c56c095f96b4ea80"></a>
   3080<h2 class="memtitle"><span class="permalink"><a href="#a739a212609ae60c9c56c095f96b4ea80">&#9670;&nbsp;</a></span>set_win_based_tiles()</h2>
   3081
   3082<div class="memitem">
   3083<div class="memproto">
   3084<table class="mlabels">
   3085  <tr>
   3086  <td class="mlabels-left">
   3087      <table class="memname">
   3088        <tr>
   3089          <td class="memname">void set_win_based_tiles </td>
   3090          <td>(</td>
   3091          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3092          <td class="paramname"><em>x</em>, </td>
   3093        </tr>
   3094        <tr>
   3095          <td class="paramkey"></td>
   3096          <td></td>
   3097          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3098          <td class="paramname"><em>y</em>, </td>
   3099        </tr>
   3100        <tr>
   3101          <td class="paramkey"></td>
   3102          <td></td>
   3103          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3104          <td class="paramname"><em>w</em>, </td>
   3105        </tr>
   3106        <tr>
   3107          <td class="paramkey"></td>
   3108          <td></td>
   3109          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3110          <td class="paramname"><em>h</em>, </td>
   3111        </tr>
   3112        <tr>
   3113          <td class="paramkey"></td>
   3114          <td></td>
   3115          <td class="paramtype">const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
   3116          <td class="paramname"><em>tiles</em>, </td>
   3117        </tr>
   3118        <tr>
   3119          <td class="paramkey"></td>
   3120          <td></td>
   3121          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3122          <td class="paramname"><em>base_tile</em>&#160;</td>
   3123        </tr>
   3124        <tr>
   3125          <td></td>
   3126          <td>)</td>
   3127          <td></td><td></td>
   3128        </tr>
   3129      </table>
   3130  </td>
   3131  <td class="mlabels-right">
   3132<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3133  </tr>
   3134</table>
   3135</div><div class="memdoc">
   3136
   3137</div>
   3138</div>
   3139<a id="a84774e034fe0e70af62bd17ac716ba34"></a>
   3140<h2 class="memtitle"><span class="permalink"><a href="#a84774e034fe0e70af62bd17ac716ba34">&#9670;&nbsp;</a></span>set_tile_submap()</h2>
   3141
   3142<div class="memitem">
   3143<div class="memproto">
   3144      <table class="memname">
   3145        <tr>
   3146          <td class="memname">void set_tile_submap </td>
   3147          <td>(</td>
   3148          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3149          <td class="paramname"><em>x</em>, </td>
   3150        </tr>
   3151        <tr>
   3152          <td class="paramkey"></td>
   3153          <td></td>
   3154          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3155          <td class="paramname"><em>y</em>, </td>
   3156        </tr>
   3157        <tr>
   3158          <td class="paramkey"></td>
   3159          <td></td>
   3160          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3161          <td class="paramname"><em>w</em>, </td>
   3162        </tr>
   3163        <tr>
   3164          <td class="paramkey"></td>
   3165          <td></td>
   3166          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3167          <td class="paramname"><em>h</em>, </td>
   3168        </tr>
   3169        <tr>
   3170          <td class="paramkey"></td>
   3171          <td></td>
   3172          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3173          <td class="paramname"><em>map_w</em>, </td>
   3174        </tr>
   3175        <tr>
   3176          <td class="paramkey"></td>
   3177          <td></td>
   3178          <td class="paramtype">const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
   3179          <td class="paramname"><em>map</em>&#160;</td>
   3180        </tr>
   3181        <tr>
   3182          <td></td>
   3183          <td>)</td>
   3184          <td></td><td></td>
   3185        </tr>
   3186      </table>
   3187</div><div class="memdoc">
   3188
   3189</div>
   3190</div>
   3191<a id="aba0308b5e8e154cc920f041a185ac770"></a>
   3192<h2 class="memtitle"><span class="permalink"><a href="#aba0308b5e8e154cc920f041a185ac770">&#9670;&nbsp;</a></span>set_tile_submap_compat()</h2>
   3193
   3194<div class="memitem">
   3195<div class="memproto">
   3196      <table class="memname">
   3197        <tr>
   3198          <td class="memname">void set_tile_submap_compat </td>
   3199          <td>(</td>
   3200          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3201          <td class="paramname"><em>x</em>, </td>
   3202        </tr>
   3203        <tr>
   3204          <td class="paramkey"></td>
   3205          <td></td>
   3206          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3207          <td class="paramname"><em>y</em>, </td>
   3208        </tr>
   3209        <tr>
   3210          <td class="paramkey"></td>
   3211          <td></td>
   3212          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3213          <td class="paramname"><em>w</em>, </td>
   3214        </tr>
   3215        <tr>
   3216          <td class="paramkey"></td>
   3217          <td></td>
   3218          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3219          <td class="paramname"><em>h</em>, </td>
   3220        </tr>
   3221        <tr>
   3222          <td class="paramkey"></td>
   3223          <td></td>
   3224          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3225          <td class="paramname"><em>map_w</em>, </td>
   3226        </tr>
   3227        <tr>
   3228          <td class="paramkey"></td>
   3229          <td></td>
   3230          <td class="paramtype">const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
   3231          <td class="paramname"><em>map</em>&#160;</td>
   3232        </tr>
   3233        <tr>
   3234          <td></td>
   3235          <td>)</td>
   3236          <td></td><td></td>
   3237        </tr>
   3238      </table>
   3239</div><div class="memdoc">
   3240
   3241</div>
   3242</div>
   3243<a id="a0cfd261bc7a94b1f6093f423bad30298"></a>
   3244<h2 class="memtitle"><span class="permalink"><a href="#a0cfd261bc7a94b1f6093f423bad30298">&#9670;&nbsp;</a></span>set_bkg_submap()</h2>
   3245
   3246<div class="memitem">
   3247<div class="memproto">
   3248<table class="mlabels">
   3249  <tr>
   3250  <td class="mlabels-left">
   3251      <table class="memname">
   3252        <tr>
   3253          <td class="memname">void set_bkg_submap </td>
   3254          <td>(</td>
   3255          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3256          <td class="paramname"><em>x</em>, </td>
   3257        </tr>
   3258        <tr>
   3259          <td class="paramkey"></td>
   3260          <td></td>
   3261          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3262          <td class="paramname"><em>y</em>, </td>
   3263        </tr>
   3264        <tr>
   3265          <td class="paramkey"></td>
   3266          <td></td>
   3267          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3268          <td class="paramname"><em>w</em>, </td>
   3269        </tr>
   3270        <tr>
   3271          <td class="paramkey"></td>
   3272          <td></td>
   3273          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3274          <td class="paramname"><em>h</em>, </td>
   3275        </tr>
   3276        <tr>
   3277          <td class="paramkey"></td>
   3278          <td></td>
   3279          <td class="paramtype">const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
   3280          <td class="paramname"><em>map</em>, </td>
   3281        </tr>
   3282        <tr>
   3283          <td class="paramkey"></td>
   3284          <td></td>
   3285          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3286          <td class="paramname"><em>map_w</em>&#160;</td>
   3287        </tr>
   3288        <tr>
   3289          <td></td>
   3290          <td>)</td>
   3291          <td></td><td></td>
   3292        </tr>
   3293      </table>
   3294  </td>
   3295  <td class="mlabels-right">
   3296<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3297  </tr>
   3298</table>
   3299</div><div class="memdoc">
   3300<p>Sets a rectangular area of the Background Tile Map using a sub-region from a source tile map. Useful for scrolling implementations of maps larger than 32 x 32 tiles.</p>
   3301<dl class="params"><dt>Parameters</dt><dd>
   3302  <table class="params">
   3303    <tr><td class="paramname">x</td><td>X Start position in Background Map tile coordinates. Range 0 - 31 </td></tr>
   3304    <tr><td class="paramname">y</td><td>Y Start position in Background Map tile coordinates. Range 0 - 31 </td></tr>
   3305    <tr><td class="paramname">w</td><td>Width of area to set in tiles. Range 1 - 255 </td></tr>
   3306    <tr><td class="paramname">h</td><td>Height of area to set in tiles. Range 1 - 255 </td></tr>
   3307    <tr><td class="paramname">map</td><td>Pointer to source tile map data </td></tr>
   3308    <tr><td class="paramname">map_w</td><td>Width of source tile map in tiles. Range 1 - 255</td></tr>
   3309  </table>
   3310  </dd>
   3311</dl>
   3312<p>Entries are copied from <b>map</b> to the Background Tile Map starting at <b>x</b>, <b>y</b> writing across for <b>w</b> tiles and down for <b>h</b> tiles, using <b>map_w</b> as the rowstride for the source tile map.</p>
   3313<p>Use this instead of <a class="el" href="gb_8h.html#a6da9e2fa1bafd35363e84ee999909ec7">set_bkg_tiles</a> when the source map is wider than 32 tiles or when writing a width that does not match the source map width.</p>
   3314<p>One byte per source tile map entry.</p>
   3315<p>Writes that exceed coordinate 31 on the x or y axis will wrap around to the Left and Top edges.</p>
   3316<p>See <a class="el" href="gb_8h.html#a6da9e2fa1bafd35363e84ee999909ec7">set_bkg_tiles</a> for setting CGB attribute maps with <a class="el" href="gb_2hardware_8h.html#a5ccae0d556500e1055a0ec8de20c535a">VBK_REG</a>.</p>
   3317<dl class="section see"><dt>See also</dt><dd><a class="el" href="gb_8h.html#a8e3f36aa68ac036695816757f2a1322c">SHOW_BKG</a> </dd>
   3318<dd>
   3319<a class="el" href="gb_8h.html#a1f5101f2b7bb0123c26a3e257f843626">set_bkg_data</a>, <a class="el" href="gb_8h.html#a6da9e2fa1bafd35363e84ee999909ec7">set_bkg_tiles</a>, <a class="el" href="gb_8h.html#af80befa3cad9cae361c7cf4fffb3a8de">set_win_submap</a>, <a class="el" href="gb_8h.html#a9b205ee302f54cb96ee59aac6d53a91c">set_tiles</a> </dd></dl>
   3320
   3321</div>
   3322</div>
   3323<a id="abb50a392ca0d0419a080413287ee5d79"></a>
   3324<h2 class="memtitle"><span class="permalink"><a href="#abb50a392ca0d0419a080413287ee5d79">&#9670;&nbsp;</a></span>set_win_submap()</h2>
   3325
   3326<div class="memitem">
   3327<div class="memproto">
   3328<table class="mlabels">
   3329  <tr>
   3330  <td class="mlabels-left">
   3331      <table class="memname">
   3332        <tr>
   3333          <td class="memname">void set_win_submap </td>
   3334          <td>(</td>
   3335          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3336          <td class="paramname"><em>x</em>, </td>
   3337        </tr>
   3338        <tr>
   3339          <td class="paramkey"></td>
   3340          <td></td>
   3341          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3342          <td class="paramname"><em>y</em>, </td>
   3343        </tr>
   3344        <tr>
   3345          <td class="paramkey"></td>
   3346          <td></td>
   3347          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3348          <td class="paramname"><em>w</em>, </td>
   3349        </tr>
   3350        <tr>
   3351          <td class="paramkey"></td>
   3352          <td></td>
   3353          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3354          <td class="paramname"><em>h</em>, </td>
   3355        </tr>
   3356        <tr>
   3357          <td class="paramkey"></td>
   3358          <td></td>
   3359          <td class="paramtype">const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
   3360          <td class="paramname"><em>map</em>, </td>
   3361        </tr>
   3362        <tr>
   3363          <td class="paramkey"></td>
   3364          <td></td>
   3365          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3366          <td class="paramname"><em>map_w</em>&#160;</td>
   3367        </tr>
   3368        <tr>
   3369          <td></td>
   3370          <td>)</td>
   3371          <td></td><td></td>
   3372        </tr>
   3373      </table>
   3374  </td>
   3375  <td class="mlabels-right">
   3376<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3377  </tr>
   3378</table>
   3379</div><div class="memdoc">
   3380<p>Sets a rectangular area of the Window Tile Map using a sub-region from a source tile map.</p>
   3381<dl class="params"><dt>Parameters</dt><dd>
   3382  <table class="params">
   3383    <tr><td class="paramname">x</td><td>X Start position in Window Map tile coordinates. Range 0 - 31 </td></tr>
   3384    <tr><td class="paramname">y</td><td>Y Start position in Wimdpw Map tile coordinates. Range 0 - 31 </td></tr>
   3385    <tr><td class="paramname">w</td><td>Width of area to set in tiles. Range 1 - 255 </td></tr>
   3386    <tr><td class="paramname">h</td><td>Height of area to set in tiles. Range 1 - 255 </td></tr>
   3387    <tr><td class="paramname">map</td><td>Pointer to source tile map data </td></tr>
   3388    <tr><td class="paramname">map_w</td><td>Width of source tile map in tiles. Range 1 - 255</td></tr>
   3389  </table>
   3390  </dd>
   3391</dl>
   3392<p>Entries are copied from <b>map</b> to the Window Tile Map starting at <b>x</b>, <b>y</b> writing across for <b>w</b> tiles and down for <b>h</b> tiles, using <b>map_w</b> as the rowstride for the source tile map.</p>
   3393<p>Use this instead of <a class="el" href="gb_8h.html#a5c59b4ee6323af9832998906d087266b">set_win_tiles</a> when the source map is wider than 32 tiles or when writing a width that does not match the source map width.</p>
   3394<p>One byte per source tile map entry.</p>
   3395<p>Writes that exceed coordinate 31 on the x or y axis will wrap around to the Left and Top edges.</p>
   3396<p>GBC only: <a class="el" href="gb_2hardware_8h.html#a5ccae0d556500e1055a0ec8de20c535a">VBK_REG</a> determines whether Tile Numbers or Tile Attributes get set. </p><ul>
   3397<li>VBK_REG=0 Tile Numbers are written </li>
   3398<li>VBK_REG=1 Tile Attributes are written</li>
   3399</ul>
   3400<p>See <a class="el" href="gb_8h.html#a6da9e2fa1bafd35363e84ee999909ec7">set_bkg_tiles</a> for details about CGB attribute maps with <a class="el" href="gb_2hardware_8h.html#a5ccae0d556500e1055a0ec8de20c535a">VBK_REG</a>.</p>
   3401<dl class="section see"><dt>See also</dt><dd><a class="el" href="gb_8h.html#ab19da2ab719bb8897bc0843a84af28f8">SHOW_WIN</a>, <a class="el" href="gb_8h.html#aedb6e32c42d4b1d25ad11adccd7100c3">HIDE_WIN</a>, <a class="el" href="gb_8h.html#a5c59b4ee6323af9832998906d087266b">set_win_tiles</a>, <a class="el" href="gb_8h.html#adb21d1c7d533a7133bab36a845489780">set_bkg_submap</a>, <a class="el" href="gb_8h.html#a6da9e2fa1bafd35363e84ee999909ec7">set_bkg_tiles</a>, <a class="el" href="gb_8h.html#a1f5101f2b7bb0123c26a3e257f843626">set_bkg_data</a>, <a class="el" href="gb_8h.html#a9b205ee302f54cb96ee59aac6d53a91c">set_tiles</a> </dd></dl>
   3402
   3403</div>
   3404</div>
   3405<a id="abc8bc5808620a9717263b8c9ec2237f0"></a>
   3406<h2 class="memtitle"><span class="permalink"><a href="#abc8bc5808620a9717263b8c9ec2237f0">&#9670;&nbsp;</a></span>set_bkg_based_submap()</h2>
   3407
   3408<div class="memitem">
   3409<div class="memproto">
   3410<table class="mlabels">
   3411  <tr>
   3412  <td class="mlabels-left">
   3413      <table class="memname">
   3414        <tr>
   3415          <td class="memname">void set_bkg_based_submap </td>
   3416          <td>(</td>
   3417          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3418          <td class="paramname"><em>x</em>, </td>
   3419        </tr>
   3420        <tr>
   3421          <td class="paramkey"></td>
   3422          <td></td>
   3423          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3424          <td class="paramname"><em>y</em>, </td>
   3425        </tr>
   3426        <tr>
   3427          <td class="paramkey"></td>
   3428          <td></td>
   3429          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3430          <td class="paramname"><em>w</em>, </td>
   3431        </tr>
   3432        <tr>
   3433          <td class="paramkey"></td>
   3434          <td></td>
   3435          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3436          <td class="paramname"><em>h</em>, </td>
   3437        </tr>
   3438        <tr>
   3439          <td class="paramkey"></td>
   3440          <td></td>
   3441          <td class="paramtype">const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
   3442          <td class="paramname"><em>map</em>, </td>
   3443        </tr>
   3444        <tr>
   3445          <td class="paramkey"></td>
   3446          <td></td>
   3447          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3448          <td class="paramname"><em>map_w</em>, </td>
   3449        </tr>
   3450        <tr>
   3451          <td class="paramkey"></td>
   3452          <td></td>
   3453          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3454          <td class="paramname"><em>base_tile</em>&#160;</td>
   3455        </tr>
   3456        <tr>
   3457          <td></td>
   3458          <td>)</td>
   3459          <td></td><td></td>
   3460        </tr>
   3461      </table>
   3462  </td>
   3463  <td class="mlabels-right">
   3464<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3465  </tr>
   3466</table>
   3467</div><div class="memdoc">
   3468
   3469</div>
   3470</div>
   3471<a id="a1b8a1026983cb2b2c0bd46334b4692a0"></a>
   3472<h2 class="memtitle"><span class="permalink"><a href="#a1b8a1026983cb2b2c0bd46334b4692a0">&#9670;&nbsp;</a></span>set_win_based_submap()</h2>
   3473
   3474<div class="memitem">
   3475<div class="memproto">
   3476<table class="mlabels">
   3477  <tr>
   3478  <td class="mlabels-left">
   3479      <table class="memname">
   3480        <tr>
   3481          <td class="memname">void set_win_based_submap </td>
   3482          <td>(</td>
   3483          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3484          <td class="paramname"><em>x</em>, </td>
   3485        </tr>
   3486        <tr>
   3487          <td class="paramkey"></td>
   3488          <td></td>
   3489          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3490          <td class="paramname"><em>y</em>, </td>
   3491        </tr>
   3492        <tr>
   3493          <td class="paramkey"></td>
   3494          <td></td>
   3495          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3496          <td class="paramname"><em>w</em>, </td>
   3497        </tr>
   3498        <tr>
   3499          <td class="paramkey"></td>
   3500          <td></td>
   3501          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3502          <td class="paramname"><em>h</em>, </td>
   3503        </tr>
   3504        <tr>
   3505          <td class="paramkey"></td>
   3506          <td></td>
   3507          <td class="paramtype">const <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
   3508          <td class="paramname"><em>map</em>, </td>
   3509        </tr>
   3510        <tr>
   3511          <td class="paramkey"></td>
   3512          <td></td>
   3513          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3514          <td class="paramname"><em>map_w</em>, </td>
   3515        </tr>
   3516        <tr>
   3517          <td class="paramkey"></td>
   3518          <td></td>
   3519          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3520          <td class="paramname"><em>base_tile</em>&#160;</td>
   3521        </tr>
   3522        <tr>
   3523          <td></td>
   3524          <td>)</td>
   3525          <td></td><td></td>
   3526        </tr>
   3527      </table>
   3528  </td>
   3529  <td class="mlabels-right">
   3530<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3531  </tr>
   3532</table>
   3533</div><div class="memdoc">
   3534
   3535</div>
   3536</div>
   3537<a id="aba932d128338fb19644842565139a20d"></a>
   3538<h2 class="memtitle"><span class="permalink"><a href="#aba932d128338fb19644842565139a20d">&#9670;&nbsp;</a></span>fill_rect()</h2>
   3539
   3540<div class="memitem">
   3541<div class="memproto">
   3542      <table class="memname">
   3543        <tr>
   3544          <td class="memname">void fill_rect </td>
   3545          <td>(</td>
   3546          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3547          <td class="paramname"><em>x</em>, </td>
   3548        </tr>
   3549        <tr>
   3550          <td class="paramkey"></td>
   3551          <td></td>
   3552          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3553          <td class="paramname"><em>y</em>, </td>
   3554        </tr>
   3555        <tr>
   3556          <td class="paramkey"></td>
   3557          <td></td>
   3558          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3559          <td class="paramname"><em>w</em>, </td>
   3560        </tr>
   3561        <tr>
   3562          <td class="paramkey"></td>
   3563          <td></td>
   3564          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3565          <td class="paramname"><em>h</em>, </td>
   3566        </tr>
   3567        <tr>
   3568          <td class="paramkey"></td>
   3569          <td></td>
   3570          <td class="paramtype">const <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   3571          <td class="paramname"><em>tile</em>&#160;</td>
   3572        </tr>
   3573        <tr>
   3574          <td></td>
   3575          <td>)</td>
   3576          <td></td><td></td>
   3577        </tr>
   3578      </table>
   3579</div><div class="memdoc">
   3580
   3581</div>
   3582</div>
   3583<a id="af2fc27409f907cfae9583b5ebf0c5ea8"></a>
   3584<h2 class="memtitle"><span class="permalink"><a href="#af2fc27409f907cfae9583b5ebf0c5ea8">&#9670;&nbsp;</a></span>fill_rect_compat()</h2>
   3585
   3586<div class="memitem">
   3587<div class="memproto">
   3588      <table class="memname">
   3589        <tr>
   3590          <td class="memname">void fill_rect_compat </td>
   3591          <td>(</td>
   3592          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3593          <td class="paramname"><em>x</em>, </td>
   3594        </tr>
   3595        <tr>
   3596          <td class="paramkey"></td>
   3597          <td></td>
   3598          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3599          <td class="paramname"><em>y</em>, </td>
   3600        </tr>
   3601        <tr>
   3602          <td class="paramkey"></td>
   3603          <td></td>
   3604          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3605          <td class="paramname"><em>w</em>, </td>
   3606        </tr>
   3607        <tr>
   3608          <td class="paramkey"></td>
   3609          <td></td>
   3610          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3611          <td class="paramname"><em>h</em>, </td>
   3612        </tr>
   3613        <tr>
   3614          <td class="paramkey"></td>
   3615          <td></td>
   3616          <td class="paramtype">const <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   3617          <td class="paramname"><em>tile</em>&#160;</td>
   3618        </tr>
   3619        <tr>
   3620          <td></td>
   3621          <td>)</td>
   3622          <td></td><td></td>
   3623        </tr>
   3624      </table>
   3625</div><div class="memdoc">
   3626
   3627</div>
   3628</div>
   3629<a id="a7e0cdfd6b9a2ae1b7f30384f132d8687"></a>
   3630<h2 class="memtitle"><span class="permalink"><a href="#a7e0cdfd6b9a2ae1b7f30384f132d8687">&#9670;&nbsp;</a></span>SET_SHADOW_OAM_ADDRESS()</h2>
   3631
   3632<div class="memitem">
   3633<div class="memproto">
   3634<table class="mlabels">
   3635  <tr>
   3636  <td class="mlabels-left">
   3637      <table class="memname">
   3638        <tr>
   3639          <td class="memname">void SET_SHADOW_OAM_ADDRESS </td>
   3640          <td>(</td>
   3641          <td class="paramtype">void *&#160;</td>
   3642          <td class="paramname"><em>address</em></td><td>)</td>
   3643          <td></td>
   3644        </tr>
   3645      </table>
   3646  </td>
   3647  <td class="mlabels-right">
   3648<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3649  </tr>
   3650</table>
   3651</div><div class="memdoc">
   3652<p>Sets address of 256-byte aligned array of shadow OAM to be transferred on each VBlank </p>
   3653
   3654</div>
   3655</div>
   3656<a id="a05bf0b9f1328de7b568a19a2a428bcfe"></a>
   3657<h2 class="memtitle"><span class="permalink"><a href="#a05bf0b9f1328de7b568a19a2a428bcfe">&#9670;&nbsp;</a></span>set_sprite_tile()</h2>
   3658
   3659<div class="memitem">
   3660<div class="memproto">
   3661<table class="mlabels">
   3662  <tr>
   3663  <td class="mlabels-left">
   3664      <table class="memname">
   3665        <tr>
   3666          <td class="memname">void set_sprite_tile </td>
   3667          <td>(</td>
   3668          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3669          <td class="paramname"><em>nb</em>, </td>
   3670        </tr>
   3671        <tr>
   3672          <td class="paramkey"></td>
   3673          <td></td>
   3674          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3675          <td class="paramname"><em>tile</em>&#160;</td>
   3676        </tr>
   3677        <tr>
   3678          <td></td>
   3679          <td>)</td>
   3680          <td></td><td></td>
   3681        </tr>
   3682      </table>
   3683  </td>
   3684  <td class="mlabels-right">
   3685<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3686  </tr>
   3687</table>
   3688</div><div class="memdoc">
   3689<p>Sets sprite number <b>nb__in the OAM to display tile number __tile</b>.</p>
   3690<dl class="params"><dt>Parameters</dt><dd>
   3691  <table class="params">
   3692    <tr><td class="paramname">nb</td><td>Sprite number, range 0 - 39 </td></tr>
   3693    <tr><td class="paramname">tile</td><td>Selects a tile (0 - 255) from memory at 8000h - 8FFFh <br  />
   3694 In CGB Mode this could be either in VRAM Bank <br  />
   3695 0 or 1, depending on Bit 3 of the OAM Attribute Flag <br  />
   3696 (see <a class="el" href="sms_8h.html#a99ea3252469e3614e977cce2aa1d06f7">set_sprite_prop</a>)</td></tr>
   3697  </table>
   3698  </dd>
   3699</dl>
   3700<p>In 8x16 mode: </p><ul>
   3701<li>The sprite will also display the next tile (<b>tile</b> + 1) directly below (y + 8) the first tile. </li>
   3702<li>The lower bit of the tile number is ignored: the upper 8x8 tile is (<b>tile</b> &amp; 0xFE), and the lower 8x8 tile is (<b>tile</b> | 0x01). </li>
   3703<li>See: <a class="el" href="sms_8h.html#af91d252f07f4764996154820f970c101">SPRITES_8x16</a> </li>
   3704</ul>
   3705
   3706</div>
   3707</div>
   3708<a id="af5c0beff7d7a7d8641b51fd95c811b2a"></a>
   3709<h2 class="memtitle"><span class="permalink"><a href="#af5c0beff7d7a7d8641b51fd95c811b2a">&#9670;&nbsp;</a></span>get_sprite_tile()</h2>
   3710
   3711<div class="memitem">
   3712<div class="memproto">
   3713<table class="mlabels">
   3714  <tr>
   3715  <td class="mlabels-left">
   3716      <table class="memname">
   3717        <tr>
   3718          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> get_sprite_tile </td>
   3719          <td>(</td>
   3720          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3721          <td class="paramname"><em>nb</em></td><td>)</td>
   3722          <td></td>
   3723        </tr>
   3724      </table>
   3725  </td>
   3726  <td class="mlabels-right">
   3727<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3728  </tr>
   3729</table>
   3730</div><div class="memdoc">
   3731<p>Returns the tile number of sprite number <b>nb</b> in the OAM.</p>
   3732<dl class="params"><dt>Parameters</dt><dd>
   3733  <table class="params">
   3734    <tr><td class="paramname">nb</td><td>Sprite number, range 0 - 39</td></tr>
   3735  </table>
   3736  </dd>
   3737</dl>
   3738<dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#a05bf0b9f1328de7b568a19a2a428bcfe">set_sprite_tile</a> for more details </dd></dl>
   3739
   3740</div>
   3741</div>
   3742<a id="a99ea3252469e3614e977cce2aa1d06f7"></a>
   3743<h2 class="memtitle"><span class="permalink"><a href="#a99ea3252469e3614e977cce2aa1d06f7">&#9670;&nbsp;</a></span>set_sprite_prop()</h2>
   3744
   3745<div class="memitem">
   3746<div class="memproto">
   3747<table class="mlabels">
   3748  <tr>
   3749  <td class="mlabels-left">
   3750      <table class="memname">
   3751        <tr>
   3752          <td class="memname">void set_sprite_prop </td>
   3753          <td>(</td>
   3754          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3755          <td class="paramname"><em>nb</em>, </td>
   3756        </tr>
   3757        <tr>
   3758          <td class="paramkey"></td>
   3759          <td></td>
   3760          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3761          <td class="paramname"><em>prop</em>&#160;</td>
   3762        </tr>
   3763        <tr>
   3764          <td></td>
   3765          <td>)</td>
   3766          <td></td><td></td>
   3767        </tr>
   3768      </table>
   3769  </td>
   3770  <td class="mlabels-right">
   3771<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3772  </tr>
   3773</table>
   3774</div><div class="memdoc">
   3775
   3776</div>
   3777</div>
   3778<a id="a6b873c807c9e2c90fb574951e85fdf88"></a>
   3779<h2 class="memtitle"><span class="permalink"><a href="#a6b873c807c9e2c90fb574951e85fdf88">&#9670;&nbsp;</a></span>get_sprite_prop()</h2>
   3780
   3781<div class="memitem">
   3782<div class="memproto">
   3783<table class="mlabels">
   3784  <tr>
   3785  <td class="mlabels-left">
   3786      <table class="memname">
   3787        <tr>
   3788          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> get_sprite_prop </td>
   3789          <td>(</td>
   3790          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3791          <td class="paramname"><em>nb</em></td><td>)</td>
   3792          <td></td>
   3793        </tr>
   3794      </table>
   3795  </td>
   3796  <td class="mlabels-right">
   3797<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3798  </tr>
   3799</table>
   3800</div><div class="memdoc">
   3801
   3802</div>
   3803</div>
   3804<a id="ab42c12c1d9aed3fd963248fbea9830cd"></a>
   3805<h2 class="memtitle"><span class="permalink"><a href="#ab42c12c1d9aed3fd963248fbea9830cd">&#9670;&nbsp;</a></span>move_sprite()</h2>
   3806
   3807<div class="memitem">
   3808<div class="memproto">
   3809<table class="mlabels">
   3810  <tr>
   3811  <td class="mlabels-left">
   3812      <table class="memname">
   3813        <tr>
   3814          <td class="memname">void move_sprite </td>
   3815          <td>(</td>
   3816          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3817          <td class="paramname"><em>nb</em>, </td>
   3818        </tr>
   3819        <tr>
   3820          <td class="paramkey"></td>
   3821          <td></td>
   3822          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3823          <td class="paramname"><em>x</em>, </td>
   3824        </tr>
   3825        <tr>
   3826          <td class="paramkey"></td>
   3827          <td></td>
   3828          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3829          <td class="paramname"><em>y</em>&#160;</td>
   3830        </tr>
   3831        <tr>
   3832          <td></td>
   3833          <td>)</td>
   3834          <td></td><td></td>
   3835        </tr>
   3836      </table>
   3837  </td>
   3838  <td class="mlabels-right">
   3839<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3840  </tr>
   3841</table>
   3842</div><div class="memdoc">
   3843<p>Moves sprite number <b>nb</b> to the <b>x</b>, <b>y</b> position on the screen.</p>
   3844<dl class="params"><dt>Parameters</dt><dd>
   3845  <table class="params">
   3846    <tr><td class="paramname">nb</td><td>Sprite number, range 0 - 39 </td></tr>
   3847    <tr><td class="paramname">x</td><td>X Position. Specifies the sprites horizontal position on the screen (minus 8). <br  />
   3848 An offscreen value (X=0 or X&gt;=168) hides the sprite, but the sprite still affects the priority ordering - a better way to hide a sprite is to set its Y-coordinate offscreen. </td></tr>
   3849    <tr><td class="paramname">y</td><td>Y Position. Specifies the sprites vertical position on the screen (minus 16). <br  />
   3850 An offscreen value (for example, Y=0 or Y&gt;=160) hides the sprite.</td></tr>
   3851  </table>
   3852  </dd>
   3853</dl>
   3854<p>Moving the sprite to 0,0 (or similar off-screen location) will hide it. </p>
   3855
   3856</div>
   3857</div>
   3858<a id="a6c59aa9a4f9ea42bed6ca6940b2741fe"></a>
   3859<h2 class="memtitle"><span class="permalink"><a href="#a6c59aa9a4f9ea42bed6ca6940b2741fe">&#9670;&nbsp;</a></span>scroll_sprite()</h2>
   3860
   3861<div class="memitem">
   3862<div class="memproto">
   3863<table class="mlabels">
   3864  <tr>
   3865  <td class="mlabels-left">
   3866      <table class="memname">
   3867        <tr>
   3868          <td class="memname">void scroll_sprite </td>
   3869          <td>(</td>
   3870          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3871          <td class="paramname"><em>nb</em>, </td>
   3872        </tr>
   3873        <tr>
   3874          <td class="paramkey"></td>
   3875          <td></td>
   3876          <td class="paramtype"><a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a>&#160;</td>
   3877          <td class="paramname"><em>x</em>, </td>
   3878        </tr>
   3879        <tr>
   3880          <td class="paramkey"></td>
   3881          <td></td>
   3882          <td class="paramtype"><a class="el" href="stdint_8h.html#aef44329758059c91c76d334e8fc09700">int8_t</a>&#160;</td>
   3883          <td class="paramname"><em>y</em>&#160;</td>
   3884        </tr>
   3885        <tr>
   3886          <td></td>
   3887          <td>)</td>
   3888          <td></td><td></td>
   3889        </tr>
   3890      </table>
   3891  </td>
   3892  <td class="mlabels-right">
   3893<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3894  </tr>
   3895</table>
   3896</div><div class="memdoc">
   3897<p>Moves sprite number <b>nb</b> relative to its current position.</p>
   3898<dl class="params"><dt>Parameters</dt><dd>
   3899  <table class="params">
   3900    <tr><td class="paramname">nb</td><td>Sprite number, range 0 - 39 </td></tr>
   3901    <tr><td class="paramname">x</td><td>Number of pixels to move the sprite on the <b>X axis</b> <br  />
   3902 Range: -128 - 127 </td></tr>
   3903    <tr><td class="paramname">y</td><td>Number of pixels to move the sprite on the <b>Y axis</b> <br  />
   3904 Range: -128 - 127</td></tr>
   3905  </table>
   3906  </dd>
   3907</dl>
   3908<dl class="section see"><dt>See also</dt><dd><a class="el" href="sms_8h.html#ab42c12c1d9aed3fd963248fbea9830cd">move_sprite</a> for more details about the X and Y position </dd></dl>
   3909
   3910</div>
   3911</div>
   3912<a id="ad22c51635d052399bbbe1777999c794d"></a>
   3913<h2 class="memtitle"><span class="permalink"><a href="#ad22c51635d052399bbbe1777999c794d">&#9670;&nbsp;</a></span>hide_sprite()</h2>
   3914
   3915<div class="memitem">
   3916<div class="memproto">
   3917<table class="mlabels">
   3918  <tr>
   3919  <td class="mlabels-left">
   3920      <table class="memname">
   3921        <tr>
   3922          <td class="memname">void hide_sprite </td>
   3923          <td>(</td>
   3924          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3925          <td class="paramname"><em>nb</em></td><td>)</td>
   3926          <td></td>
   3927        </tr>
   3928      </table>
   3929  </td>
   3930  <td class="mlabels-right">
   3931<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
   3932  </tr>
   3933</table>
   3934</div><div class="memdoc">
   3935<p>Hides sprite number <b>nb</b> by moving it to zero position by Y.</p>
   3936<dl class="params"><dt>Parameters</dt><dd>
   3937  <table class="params">
   3938    <tr><td class="paramname">nb</td><td>Sprite number, range 0 - 39 </td></tr>
   3939  </table>
   3940  </dd>
   3941</dl>
   3942
   3943</div>
   3944</div>
   3945<a id="afe1bc7117a68cd0939c2d03baaa06b89"></a>
   3946<h2 class="memtitle"><span class="permalink"><a href="#afe1bc7117a68cd0939c2d03baaa06b89">&#9670;&nbsp;</a></span>set_vram_byte()</h2>
   3947
   3948<div class="memitem">
   3949<div class="memproto">
   3950      <table class="memname">
   3951        <tr>
   3952          <td class="memname">void set_vram_byte </td>
   3953          <td>(</td>
   3954          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
   3955          <td class="paramname"><em>addr</em>, </td>
   3956        </tr>
   3957        <tr>
   3958          <td class="paramkey"></td>
   3959          <td></td>
   3960          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3961          <td class="paramname"><em>v</em>&#160;</td>
   3962        </tr>
   3963        <tr>
   3964          <td></td>
   3965          <td>)</td>
   3966          <td></td><td></td>
   3967        </tr>
   3968      </table>
   3969</div><div class="memdoc">
   3970<p>Set byte in vram at given memory location</p>
   3971<dl class="params"><dt>Parameters</dt><dd>
   3972  <table class="params">
   3973    <tr><td class="paramname">addr</td><td>address to write to </td></tr>
   3974    <tr><td class="paramname">v</td><td>value </td></tr>
   3975  </table>
   3976  </dd>
   3977</dl>
   3978
   3979</div>
   3980</div>
   3981<a id="a476f433ea736a1dd610490238f2a6250"></a>
   3982<h2 class="memtitle"><span class="permalink"><a href="#a476f433ea736a1dd610490238f2a6250">&#9670;&nbsp;</a></span>set_attributed_tile_xy()</h2>
   3983
   3984<div class="memitem">
   3985<div class="memproto">
   3986      <table class="memname">
   3987        <tr>
   3988          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>* set_attributed_tile_xy </td>
   3989          <td>(</td>
   3990          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3991          <td class="paramname"><em>x</em>, </td>
   3992        </tr>
   3993        <tr>
   3994          <td class="paramkey"></td>
   3995          <td></td>
   3996          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   3997          <td class="paramname"><em>y</em>, </td>
   3998        </tr>
   3999        <tr>
   4000          <td class="paramkey"></td>
   4001          <td></td>
   4002          <td class="paramtype"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a>&#160;</td>
   4003          <td class="paramname"><em>t</em>&#160;</td>
   4004        </tr>
   4005        <tr>
   4006          <td></td>
   4007          <td>)</td>
   4008          <td></td><td></td>
   4009        </tr>
   4010      </table>
   4011</div><div class="memdoc">
   4012<p>Set single tile t with attributes on background layer at x,y </p><dl class="params"><dt>Parameters</dt><dd>
   4013  <table class="params">
   4014    <tr><td class="paramname">x</td><td>X-coordinate </td></tr>
   4015    <tr><td class="paramname">y</td><td>Y-coordinate </td></tr>
   4016    <tr><td class="paramname">t</td><td>tile index </td></tr>
   4017  </table>
   4018  </dd>
   4019</dl>
   4020<dl class="section return"><dt>Returns</dt><dd>returns the address of tile, so you may use faster <a class="el" href="sms_8h.html#afe1bc7117a68cd0939c2d03baaa06b89">set_vram_byte()</a> later </dd></dl>
   4021
   4022</div>
   4023</div>
   4024<a id="a5834057f6297c0fa8f8e9a6b714f1ff7"></a>
   4025<h2 class="memtitle"><span class="permalink"><a href="#a5834057f6297c0fa8f8e9a6b714f1ff7">&#9670;&nbsp;</a></span>set_tile_xy()</h2>
   4026
   4027<div class="memitem">
   4028<div class="memproto">
   4029      <table class="memname">
   4030        <tr>
   4031          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>* set_tile_xy </td>
   4032          <td>(</td>
   4033          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   4034          <td class="paramname"><em>x</em>, </td>
   4035        </tr>
   4036        <tr>
   4037          <td class="paramkey"></td>
   4038          <td></td>
   4039          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   4040          <td class="paramname"><em>y</em>, </td>
   4041        </tr>
   4042        <tr>
   4043          <td class="paramkey"></td>
   4044          <td></td>
   4045          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   4046          <td class="paramname"><em>t</em>&#160;</td>
   4047        </tr>
   4048        <tr>
   4049          <td></td>
   4050          <td>)</td>
   4051          <td></td><td></td>
   4052        </tr>
   4053      </table>
   4054</div><div class="memdoc">
   4055<p>Set single tile t on background layer at x,y </p><dl class="params"><dt>Parameters</dt><dd>
   4056  <table class="params">
   4057    <tr><td class="paramname">x</td><td>X-coordinate </td></tr>
   4058    <tr><td class="paramname">y</td><td>Y-coordinate </td></tr>
   4059    <tr><td class="paramname">t</td><td>tile index </td></tr>
   4060  </table>
   4061  </dd>
   4062</dl>
   4063<dl class="section return"><dt>Returns</dt><dd>returns the address of tile, so you may use faster <a class="el" href="sms_8h.html#afe1bc7117a68cd0939c2d03baaa06b89">set_vram_byte()</a> later </dd></dl>
   4064
   4065</div>
   4066</div>
   4067<a id="a66b4bfb8c1ea3005ff01ce040a778e63"></a>
   4068<h2 class="memtitle"><span class="permalink"><a href="#a66b4bfb8c1ea3005ff01ce040a778e63">&#9670;&nbsp;</a></span>get_bkg_xy_addr()</h2>
   4069
   4070<div class="memitem">
   4071<div class="memproto">
   4072      <table class="memname">
   4073        <tr>
   4074          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>* get_bkg_xy_addr </td>
   4075          <td>(</td>
   4076          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   4077          <td class="paramname"><em>x</em>, </td>
   4078        </tr>
   4079        <tr>
   4080          <td class="paramkey"></td>
   4081          <td></td>
   4082          <td class="paramtype"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
   4083          <td class="paramname"><em>y</em>&#160;</td>
   4084        </tr>
   4085        <tr>
   4086          <td></td>
   4087          <td>)</td>
   4088          <td></td><td></td>
   4089        </tr>
   4090      </table>
   4091</div><div class="memdoc">
   4092<p>Get address of X,Y tile of background map </p>
   4093
   4094</div>
   4095</div>
   4096<h2 class="groupheader">Variable Documentation</h2>
   4097<a id="a0b3366755f3276b0243c1e0497471b7a"></a>
   4098<h2 class="memtitle"><span class="permalink"><a href="#a0b3366755f3276b0243c1e0497471b7a">&#9670;&nbsp;</a></span>c</h2>
   4099
   4100<div class="memitem">
   4101<div class="memproto">
   4102      <table class="memname">
   4103        <tr>
   4104          <td class="memname">void c</td>
   4105        </tr>
   4106      </table>
   4107</div><div class="memdoc">
   4108
   4109</div>
   4110</div>
   4111<a id="a0a3d95ad0ab8ad213016101d2e9c3d3e"></a>
   4112<h2 class="memtitle"><span class="permalink"><a href="#a0a3d95ad0ab8ad213016101d2e9c3d3e">&#9670;&nbsp;</a></span>d</h2>
   4113
   4114<div class="memitem">
   4115<div class="memproto">
   4116      <table class="memname">
   4117        <tr>
   4118          <td class="memname">void d</td>
   4119        </tr>
   4120      </table>
   4121</div><div class="memdoc">
   4122
   4123</div>
   4124</div>
   4125<a id="aeda4515a31485c9688c4601ac5ce2d79"></a>
   4126<h2 class="memtitle"><span class="permalink"><a href="#aeda4515a31485c9688c4601ac5ce2d79">&#9670;&nbsp;</a></span>e</h2>
   4127
   4128<div class="memitem">
   4129<div class="memproto">
   4130      <table class="memname">
   4131        <tr>
   4132          <td class="memname">void e</td>
   4133        </tr>
   4134      </table>
   4135</div><div class="memdoc">
   4136
   4137</div>
   4138</div>
   4139<a id="aade844cba18122ad48cb2f92b1c87ab0"></a>
   4140<h2 class="memtitle"><span class="permalink"><a href="#aade844cba18122ad48cb2f92b1c87ab0">&#9670;&nbsp;</a></span>iyh</h2>
   4141
   4142<div class="memitem">
   4143<div class="memproto">
   4144      <table class="memname">
   4145        <tr>
   4146          <td class="memname">void iyh</td>
   4147        </tr>
   4148      </table>
   4149</div><div class="memdoc">
   4150
   4151</div>
   4152</div>
   4153<a id="af279c752a3b15c4bd5c67f54b92e553f"></a>
   4154<h2 class="memtitle"><span class="permalink"><a href="#af279c752a3b15c4bd5c67f54b92e553f">&#9670;&nbsp;</a></span>iyl</h2>
   4155
   4156<div class="memitem">
   4157<div class="memproto">
   4158      <table class="memname">
   4159        <tr>
   4160          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> iyl</td>
   4161        </tr>
   4162      </table>
   4163</div><div class="memdoc">
   4164
   4165</div>
   4166</div>
   4167<a id="a1f1dfeb2f802fe99f37fe91867b84456"></a>
   4168<h2 class="memtitle"><span class="permalink"><a href="#a1f1dfeb2f802fe99f37fe91867b84456">&#9670;&nbsp;</a></span>h</h2>
   4169
   4170<div class="memitem">
   4171<div class="memproto">
   4172      <table class="memname">
   4173        <tr>
   4174          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> h</td>
   4175        </tr>
   4176      </table>
   4177</div><div class="memdoc">
   4178
   4179</div>
   4180</div>
   4181<a id="af79b920bcb642bba2e652874c4f7eeff"></a>
   4182<h2 class="memtitle"><span class="permalink"><a href="#af79b920bcb642bba2e652874c4f7eeff">&#9670;&nbsp;</a></span>l</h2>
   4183
   4184<div class="memitem">
   4185<div class="memproto">
   4186      <table class="memname">
   4187        <tr>
   4188          <td class="memname">void l</td>
   4189        </tr>
   4190      </table>
   4191</div><div class="memdoc">
   4192
   4193</div>
   4194</div>
   4195<a id="a78d2fd18666afec116f176d46debb4e7"></a>
   4196<h2 class="memtitle"><span class="permalink"><a href="#a78d2fd18666afec116f176d46debb4e7">&#9670;&nbsp;</a></span>sys_time</h2>
   4197
   4198<div class="memitem">
   4199<div class="memproto">
   4200<table class="mlabels">
   4201  <tr>
   4202  <td class="mlabels-left">
   4203      <table class="memname">
   4204        <tr>
   4205          <td class="memname">volatile <a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> sys_time</td>
   4206        </tr>
   4207      </table>
   4208  </td>
   4209  <td class="mlabels-right">
   4210<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
   4211  </tr>
   4212</table>
   4213</div><div class="memdoc">
   4214<p>Global Time Counter in VBL periods (60Hz)</p>
   4215<p>Increments once per Frame</p>
   4216<p>Will wrap around every ~18 minutes (unsigned 16 bits = 65535 / 60 / 60 = 18.2) </p>
   4217
   4218</div>
   4219</div>
   4220<a id="a22dc57e538f0f49e2dc7d1c73f67fc8f"></a>
   4221<h2 class="memtitle"><span class="permalink"><a href="#a22dc57e538f0f49e2dc7d1c73f67fc8f">&#9670;&nbsp;</a></span>_current_2bpp_palette</h2>
   4222
   4223<div class="memitem">
   4224<div class="memproto">
   4225<table class="mlabels">
   4226  <tr>
   4227  <td class="mlabels-left">
   4228      <table class="memname">
   4229        <tr>
   4230          <td class="memname"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> _current_2bpp_palette</td>
   4231        </tr>
   4232      </table>
   4233  </td>
   4234  <td class="mlabels-right">
   4235<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
   4236  </tr>
   4237</table>
   4238</div><div class="memdoc">
   4239
   4240</div>
   4241</div>
   4242<a id="a250f5339e05523912926be566e9eb8c0"></a>
   4243<h2 class="memtitle"><span class="permalink"><a href="#a250f5339e05523912926be566e9eb8c0">&#9670;&nbsp;</a></span>_current_1bpp_colors</h2>
   4244
   4245<div class="memitem">
   4246<div class="memproto">
   4247<table class="mlabels">
   4248  <tr>
   4249  <td class="mlabels-left">
   4250      <table class="memname">
   4251        <tr>
   4252          <td class="memname"><a class="el" href="stdint_8h.html#adf4d876453337156dde61095e1f20223">uint16_t</a> _current_1bpp_colors</td>
   4253        </tr>
   4254      </table>
   4255  </td>
   4256  <td class="mlabels-right">
   4257<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
   4258  </tr>
   4259</table>
   4260</div><div class="memdoc">
   4261
   4262</div>
   4263</div>
   4264<a id="aa82205e9629f984d0b3dc8055c211522"></a>
   4265<h2 class="memtitle"><span class="permalink"><a href="#aa82205e9629f984d0b3dc8055c211522">&#9670;&nbsp;</a></span>_map_tile_offset</h2>
   4266
   4267<div class="memitem">
   4268<div class="memproto">
   4269<table class="mlabels">
   4270  <tr>
   4271  <td class="mlabels-left">
   4272      <table class="memname">
   4273        <tr>
   4274          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> _map_tile_offset</td>
   4275        </tr>
   4276      </table>
   4277  </td>
   4278  <td class="mlabels-right">
   4279<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
   4280  </tr>
   4281</table>
   4282</div><div class="memdoc">
   4283
   4284</div>
   4285</div>
   4286<a id="ab472d9bbb1bcfd141374f5babc71934c"></a>
   4287<h2 class="memtitle"><span class="permalink"><a href="#ab472d9bbb1bcfd141374f5babc71934c">&#9670;&nbsp;</a></span>_submap_tile_offset</h2>
   4288
   4289<div class="memitem">
   4290<div class="memproto">
   4291<table class="mlabels">
   4292  <tr>
   4293  <td class="mlabels-left">
   4294      <table class="memname">
   4295        <tr>
   4296          <td class="memname"><a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> _submap_tile_offset</td>
   4297        </tr>
   4298      </table>
   4299  </td>
   4300  <td class="mlabels-right">
   4301<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
   4302  </tr>
   4303</table>
   4304</div><div class="memdoc">
   4305
   4306</div>
   4307</div>
   4308<a id="af02f9e73bd894cc25e03aedb0a10a91d"></a>
   4309<h2 class="memtitle"><span class="permalink"><a href="#af02f9e73bd894cc25e03aedb0a10a91d">&#9670;&nbsp;</a></span>shadow_OAM</h2>
   4310
   4311<div class="memitem">
   4312<div class="memproto">
   4313<table class="mlabels">
   4314  <tr>
   4315  <td class="mlabels-left">
   4316      <table class="memname">
   4317        <tr>
   4318          <td class="memname">volatile <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> shadow_OAM[]</td>
   4319        </tr>
   4320      </table>
   4321  </td>
   4322  <td class="mlabels-right">
   4323<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
   4324  </tr>
   4325</table>
   4326</div><div class="memdoc">
   4327<p>Shadow OAM array in WRAM, that is transferred into the real OAM each VBlank </p>
   4328
   4329</div>
   4330</div>
   4331<a id="a5435fd985412934e96a490e103c6bc49"></a>
   4332<h2 class="memtitle"><span class="permalink"><a href="#a5435fd985412934e96a490e103c6bc49">&#9670;&nbsp;</a></span>_shadow_OAM_base</h2>
   4333
   4334<div class="memitem">
   4335<div class="memproto">
   4336<table class="mlabels">
   4337  <tr>
   4338  <td class="mlabels-left">
   4339      <table class="memname">
   4340        <tr>
   4341          <td class="memname">volatile <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> _shadow_OAM_base</td>
   4342        </tr>
   4343      </table>
   4344  </td>
   4345  <td class="mlabels-right">
   4346<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
   4347  </tr>
   4348</table>
   4349</div><div class="memdoc">
   4350<p>MSB of shadow_OAM address is used by OAM copying routine</p>
   4351<p>MSB of shadow_OAM address is used by OAM DMA copying routine </p>
   4352
   4353</div>
   4354</div>
   4355<a id="a388d1dff2698172ba8574e43f5c77c93"></a>
   4356<h2 class="memtitle"><span class="permalink"><a href="#a388d1dff2698172ba8574e43f5c77c93">&#9670;&nbsp;</a></span>_shadow_OAM_OFF</h2>
   4357
   4358<div class="memitem">
   4359<div class="memproto">
   4360<table class="mlabels">
   4361  <tr>
   4362  <td class="mlabels-left">
   4363      <table class="memname">
   4364        <tr>
   4365          <td class="memname">volatile <a class="el" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> _shadow_OAM_OFF</td>
   4366        </tr>
   4367      </table>
   4368  </td>
   4369  <td class="mlabels-right">
   4370<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
   4371  </tr>
   4372</table>
   4373</div><div class="memdoc">
   4374<p>Flag for disabling of OAM copying routine</p>
   4375<p>Values: </p><ul>
   4376<li>1: OAM copy routine is disabled (non-isr VDP operation may be in progress) </li>
   4377<li>0: OAM copy routine is enabled</li>
   4378</ul>
   4379<p>This flag is modified by all sms/gg GBDK API calls that write to the VDP. It is set to DISABLED when they start and ENABLED when they complete.</p>
   4380<dl class="section note"><dt>Note</dt><dd>It is recommended to avoid writing to the Video Display Processor (VDP) during an interrupt service routine (ISR) since it can corrupt the VDP pointer of an VDP operation already in progress.</dd></dl>
   4381<p>If it is necessary, this flag can be used during an ISR to determine whether a VDP operation is already in progress. If the value is <code>1</code> then avoid writing to the VDP (tiles, map, scrolling, colors, etc).</p>
   4382<div class="fragment"><div class="line"><span class="comment">// at the beginning of and ISR that would write to the VDP</span></div>
   4383<div class="line"><span class="keywordflow">if</span> (<a class="code" href="sms_8h.html#a388d1dff2698172ba8574e43f5c77c93">_shadow_OAM_OFF</a>) <span class="keywordflow">return</span>;</div>
   4384</div><!-- fragment --><dl class="section see"><dt>See also</dt><dd><a class="el" href="docs_supported_consoles.html#docs_consoles_safe_display_controller_access">docs_consoles_safe_display_controller_access</a> </dd></dl>
   4385
   4386</div>
   4387</div>
   4388</div><!-- contents -->
   4389</div><!-- doc-content -->
   4390<div class="ttc" id="asms_8h_html_a388d1dff2698172ba8574e43f5c77c93"><div class="ttname"><a href="sms_8h.html#a388d1dff2698172ba8574e43f5c77c93">_shadow_OAM_OFF</a></div><div class="ttdeci">volatile uint8_t _shadow_OAM_OFF</div></div>
   4391<!-- HTML footer for doxygen 1.8.14-->
   4392<!-- start footer part -->
   4393<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
   4394</div>
   4395</body>
   4396</html>