cscg22-gearboy

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

sgb_8h_source.html (13355B)


      1<!-- HTML header for doxygen 1.8.14-->
      2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      3<html xmlns="http://www.w3.org/1999/xhtml">
      4<head>
      5<meta http-equiv="cache-control" content="max-age=86400"/>
      6<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
      7<meta http-equiv="X-UA-Compatible" content="IE=9"/>
      8<meta name="generator" content="Doxygen 1.8.20"/>
      9<meta name="viewport" content="width=device-width, initial-scale=1"/>
     10<title>GBDK 2020 Docs: gb/sgb.h Source File</title>
     11<link href="tabs.css" rel="stylesheet" type="text/css"/>
     12<script type="text/javascript" src="jquery.js"></script>
     13<script type="text/javascript" src="dynsections.js"></script>
     14<link href="navtree.css" rel="stylesheet" type="text/css"/>
     15<script type="text/javascript" src="resize.js"></script>
     16<script type="text/javascript" src="navtreedata.js"></script>
     17<script type="text/javascript" src="navtree.js"></script>
     18<link href="search/search.css" rel="stylesheet" type="text/css"/>
     19<script type="text/javascript" src="search/searchdata.js"></script>
     20<script type="text/javascript" src="search/search.js"></script>
     21<link href="doxygen.css" rel="stylesheet" type="text/css" />
     22<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
     23</head>
     24<body>
     25<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
     26<div id="titlearea">
     27<table cellspacing="0" cellpadding="0">
     28 <tbody>
     29 <tr style="height: 56px;">
     30  <td id="projectalign" style="padding-left: 0.5em;">
     31   <div id="projectname">GBDK 2020 Docs
     32   &#160;<span id="projectnumber">4.0.6</span>
     33   </div>
     34   <div id="projectbrief">API Documentation for GBDK 2020</div>
     35  </td>
     36 </tr>
     37 </tbody>
     38</table>
     39</div>
     40<!-- end header part -->
     41<!-- Generated by Doxygen 1.8.20 -->
     42<script type="text/javascript">
     43/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     44var searchBox = new SearchBox("searchBox", "search",false,'Search');
     45/* @license-end */
     46</script>
     47<script type="text/javascript" src="menudata.js"></script>
     48<script type="text/javascript" src="menu.js"></script>
     49<script type="text/javascript">
     50/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     51$(function() {
     52  initMenu('',true,false,'search.php','Search');
     53  $(document).ready(function() { init_search(); });
     54});
     55/* @license-end */</script>
     56<div id="main-nav"></div>
     57</div><!-- top -->
     58<div id="side-nav" class="ui-resizable side-nav-resizable">
     59  <div id="nav-tree">
     60    <div id="nav-tree-contents">
     61      <div id="nav-sync" class="sync"></div>
     62    </div>
     63  </div>
     64  <div id="splitbar" style="-moz-user-select:none;" 
     65       class="ui-resizable-handle">
     66  </div>
     67</div>
     68<script type="text/javascript">
     69/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     70$(document).ready(function(){initNavTree('sgb_8h_source.html',''); initResizable(); });
     71/* @license-end */
     72</script>
     73<div id="doc-content">
     74<!-- window showing the filter options -->
     75<div id="MSearchSelectWindow"
     76     onmouseover="return searchBox.OnSearchSelectShow()"
     77     onmouseout="return searchBox.OnSearchSelectHide()"
     78     onkeydown="return searchBox.OnSearchSelectKey(event)">
     79</div>
     80
     81<!-- iframe showing the search results (closed by default) -->
     82<div id="MSearchResultsWindow">
     83<iframe src="javascript:void(0)" frameborder="0" 
     84        name="MSearchResults" id="MSearchResults">
     85</iframe>
     86</div>
     87
     88<div class="header">
     89  <div class="headertitle">
     90<div class="title">sgb.h</div>  </div>
     91</div><!--header-->
     92<div class="contents">
     93<a href="sgb_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
     94<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#ifndef _SGB_H</span></div>
     95<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#define _SGB_H</span></div>
     96<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
     97<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;types.h&gt;</span></div>
     98<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="stdint_8h.html">stdint.h</a>&gt;</span></div>
     99<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
    100<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="sgb_8h.html#a70bdb512d109fbcaeb95efa32e9dcaf5">   12</a></span>&#160;<span class="preprocessor">#define SGB_PAL_01 0x00U    </span></div>
    101<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="sgb_8h.html#acaa2f1ac9949189896582fc5ad0823b1">   13</a></span>&#160;<span class="preprocessor">#define SGB_PAL_23 0x01U    </span></div>
    102<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="sgb_8h.html#af9e1ca804555fad619db3f38b62a49e8">   14</a></span>&#160;<span class="preprocessor">#define SGB_PAL_03 0x02U    </span></div>
    103<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="sgb_8h.html#a8d633d52d4a7adfaef516953d5e8552a">   15</a></span>&#160;<span class="preprocessor">#define SGB_PAL_12 0x03U    </span></div>
    104<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="sgb_8h.html#a6437bd5982922fffdbc7c5d8c643e357">   16</a></span>&#160;<span class="preprocessor">#define SGB_ATTR_BLK 0x04U  </span></div>
    105<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="sgb_8h.html#ade5ba9723a9964e55cff72108149037a">   17</a></span>&#160;<span class="preprocessor">#define SGB_ATTR_LIN 0x05U  </span></div>
    106<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="sgb_8h.html#adcb3f50616813637283f88bfd4d53e22">   18</a></span>&#160;<span class="preprocessor">#define SGB_ATTR_DIV 0x06U  </span></div>
    107<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="sgb_8h.html#a41981a213b67bdc45bf8ed78f07e7bba">   19</a></span>&#160;<span class="preprocessor">#define SGB_ATTR_CHR 0x07U  </span></div>
    108<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="sgb_8h.html#a42e0fbc58e65874e0a76d7f33a322ce8">   20</a></span>&#160;<span class="preprocessor">#define SGB_SOUND 0x08U     </span></div>
    109<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="sgb_8h.html#a82a976ea6a32ae0078a27e3c06143bcf">   21</a></span>&#160;<span class="preprocessor">#define SGB_SOU_TRN 0x09U   </span></div>
    110<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="sgb_8h.html#ad9023ed1d8dd4a2eebc55a376207f3d2">   22</a></span>&#160;<span class="preprocessor">#define SGB_PAL_SET 0x0AU   </span></div>
    111<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="sgb_8h.html#ac490ce8566f869727e8b00fabb1c9fc6">   23</a></span>&#160;<span class="preprocessor">#define SGB_PAL_TRN 0x0BU   </span></div>
    112<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="sgb_8h.html#a3d81b1e455d60d760ee58e2685953775">   24</a></span>&#160;<span class="preprocessor">#define SGB_ATRC_EN 0x0CU   </span></div>
    113<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="sgb_8h.html#a8e644a43af63932283e9c78a472881dc">   25</a></span>&#160;<span class="preprocessor">#define SGB_TEST_EN 0x0DU   </span></div>
    114<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="sgb_8h.html#a46440df1df1597852a286d56c1a68a48">   26</a></span>&#160;<span class="preprocessor">#define SGB_ICON_EN 0x0EU   </span></div>
    115<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="sgb_8h.html#ae4fe10a0c9eca38d126f3a8701e3c9a2">   27</a></span>&#160;<span class="preprocessor">#define SGB_DATA_SND 0x0FU  </span></div>
    116<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="sgb_8h.html#a862a450451cfccf138311089b85292fc">   28</a></span>&#160;<span class="preprocessor">#define SGB_DATA_TRN 0x10U  </span></div>
    117<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="sgb_8h.html#a70aad9e5786ca8a4753c47583e88f8a2">   29</a></span>&#160;<span class="preprocessor">#define SGB_MLT_REQ 0x11U   </span></div>
    118<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="sgb_8h.html#aac4217b88053614f70af5b1f32e72870">   30</a></span>&#160;<span class="preprocessor">#define SGB_JUMP 0x12U      </span></div>
    119<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="sgb_8h.html#af4d8b611dfdda33039038375ee95f424">   31</a></span>&#160;<span class="preprocessor">#define SGB_CHR_TRN 0x13U   </span></div>
    120<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="sgb_8h.html#ac0bf9d5dc54d711fd14f44bf58eaa5db">   32</a></span>&#160;<span class="preprocessor">#define SGB_PCT_TRN 0x14U   </span></div>
    121<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="sgb_8h.html#a1762d2df2599cf864400bac4934a5d61">   33</a></span>&#160;<span class="preprocessor">#define SGB_ATTR_TRN 0x15U  </span></div>
    122<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="sgb_8h.html#abf8d94c42e97e1ce640340657df70640">   34</a></span>&#160;<span class="preprocessor">#define SGB_ATTR_SET 0x16U  </span></div>
    123<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="sgb_8h.html#a20477d5772564b63de2d151e062dd5a7">   35</a></span>&#160;<span class="preprocessor">#define SGB_MASK_EN 0x17U   </span></div>
    124<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="sgb_8h.html#a3b76bf1e9ac81da97c533fa3ab12096c">   36</a></span>&#160;<span class="preprocessor">#define SGB_OBJ_TRN 0x18U   </span></div>
    125<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="sgb_8h.html#a48bc560ec2455bf97002e03c0a6055f0">   40</a></span>&#160;<span class="preprocessor">uint8_t sgb_check() OLDCALL PRESERVES_REGS(b, c);</span></div>
    126<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
    127<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="sgb_8h.html#a84e1f2ab7dce1faabd3d271b6bf8df8c">   63</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="sgb_8h.html#a84e1f2ab7dce1faabd3d271b6bf8df8c">sgb_transfer</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * packet) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="sgb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    128<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
    129<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _SGB_H */</span><span class="preprocessor"></span></div>
    130</div><!-- fragment --></div><!-- contents -->
    131</div><!-- doc-content -->
    132<div class="ttc" id="astdint_8h_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition:</b> stdint.h:51</div></div>
    133<div class="ttc" id="asgb_8h_html_a0b3366755f3276b0243c1e0497471b7a"><div class="ttname"><a href="sgb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a></div><div class="ttdeci">uint8_t c</div><div class="ttdef"><b>Definition:</b> sgb.h:40</div></div>
    134<div class="ttc" id="asgb_8h_html_a84e1f2ab7dce1faabd3d271b6bf8df8c"><div class="ttname"><a href="sgb_8h.html#a84e1f2ab7dce1faabd3d271b6bf8df8c">sgb_transfer</a></div><div class="ttdeci">void sgb_transfer(uint8_t *packet) OLDCALL PRESERVES_REGS(b</div></div>
    135<div class="ttc" id="astdint_8h_html"><div class="ttname"><a href="stdint_8h.html">stdint.h</a></div></div>
    136<div class="ttc" id="agb_8h_html_a4c2e4adef74067fdbb49005bc73de937"><div class="ttname"><a href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></div><div class="ttdeci">void b</div><div class="ttdef"><b>Definition:</b> gb.h:608</div></div>
    137<div class="ttc" id="aasm_2types_8h_html_a0971918860055db2e50dacea4da8f3bc"><div class="ttname"><a href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></div><div class="ttdeci">#define OLDCALL</div><div class="ttdef"><b>Definition:</b> types.h:19</div></div>
    138<div class="ttc" id="aasm_2types_8h_html_acb825e83a33fcc06482c59b4ab2cf961"><div class="ttname"><a href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a></div><div class="ttdeci">#define PRESERVES_REGS(...)</div><div class="ttdef"><b>Definition:</b> types.h:29</div></div>
    139<!-- HTML footer for doxygen 1.8.14-->
    140<!-- start footer part -->
    141<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
    142</div>
    143</body>
    144</html>