cscg22-gearboy

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

sms_2hardware_8h_source.html (52748B)


      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/hardware.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('sms_2hardware_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">hardware.h</div>  </div>
     91</div><!--header-->
     92<div class="contents">
     93<a href="sms_2hardware_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="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#ifndef _HARDWARE_H</span></div>
     95<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#define _HARDWARE_H</span></div>
     96<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160; </div>
     97<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;types.h&gt;</span></div>
     98<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
     99<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ab2767d5f8f0ad35d8c8ee0bb3f4c51c3">   10</a></span>&#160;<span class="preprocessor">#define __BYTES extern UBYTE</span></div>
    100<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a3b39604bdf93a32e9ff965c1a55f0df8">   11</a></span>&#160;<span class="preprocessor">#define __BYTE_REG extern volatile UBYTE</span></div>
    101<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
    102<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x3E) MEMORY_CTL;</div>
    103<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
    104<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#af4607245a47e34bd6af5d2d43d7fb30f">   15</a></span>&#160;<span class="preprocessor">#define MEMCTL_JOYON   0b00000000</span></div>
    105<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ad8b8ecb5a71567cabc47af43da5dadf1">   16</a></span>&#160;<span class="preprocessor">#define MEMCTL_JOYOFF  0b00000100</span></div>
    106<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a2a98128eb9ca41477c139988da9d803f">   17</a></span>&#160;<span class="preprocessor">#define MEMCTL_BASEON  0b00000000</span></div>
    107<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a29d7c3b98f855f88d6bb3f380b301d64">   18</a></span>&#160;<span class="preprocessor">#define MEMCTL_BASEOFF 0b00001000</span></div>
    108<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#af4522efccaecbb6ce47a337f6dbada24">   19</a></span>&#160;<span class="preprocessor">#define MEMCTL_RAMON   0b00000000</span></div>
    109<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#adbfef6bdd2da5ba3901e91062390bb68">   20</a></span>&#160;<span class="preprocessor">#define MEMCTL_RAMOFF  0b00010000</span></div>
    110<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ad729a51cb551d9ee8bfb57c50c9dfd11">   21</a></span>&#160;<span class="preprocessor">#define MEMCTL_CROMON  0b00000000</span></div>
    111<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a79ca0cc4a9979b2eeaeda61b043b36ae">   22</a></span>&#160;<span class="preprocessor">#define MEMCTL_CROMOFF 0b00100000</span></div>
    112<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a27b47b593a0d021ab342dfc744403b86">   23</a></span>&#160;<span class="preprocessor">#define MEMCTL_ROMON   0b00000000</span></div>
    113<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a25882a19ebfb78cd09158a5f743a6409">   24</a></span>&#160;<span class="preprocessor">#define MEMCTL_ROMOFF  0b01000000</span></div>
    114<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a41654dd6b42ebdd213edc44494855caf">   25</a></span>&#160;<span class="preprocessor">#define MEMCTL_EXTON   0b00000000</span></div>
    115<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ac4c1790dd7397ef1005190dc01b3e808">   26</a></span>&#160;<span class="preprocessor">#define MEMCTL_EXTOFF  0b10000000</span></div>
    116<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
    117<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x3F) JOY_CTL;</div>
    118<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
    119<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aa8e128eeff1d58f674cebdbacc413f3c">   30</a></span>&#160;<span class="preprocessor">#define JOY_P1_LATCH   0b00000010</span></div>
    120<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a2cfa517650949a89a7ebabf0253fcdf7">   31</a></span>&#160;<span class="preprocessor">#define JOY_P2_LATCH   0b00001000</span></div>
    121<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
    122<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x7E) VCOUNTER;</div>
    123<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
    124<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x7F) PSG;</div>
    125<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
    126<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a6777f1ed2475b5ba6aa60b9a16fa02d3">   37</a></span>&#160;<span class="preprocessor">#define PSG_LATCH      0x80</span></div>
    127<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
    128<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ad8a903de6b38e08e1591fc5ef278381c">   39</a></span>&#160;<span class="preprocessor">#define PSG_CH0        0b00000000</span></div>
    129<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#addc12c4ee03ea787b826e337f1acd317">   40</a></span>&#160;<span class="preprocessor">#define PSG_CH1        0b00100000</span></div>
    130<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aaeefb1ac1fb4d0d2324b8ee7f4953226">   41</a></span>&#160;<span class="preprocessor">#define PSG_CH2        0b01000000</span></div>
    131<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ac760259fb86ee72abb5922018ae0db42">   42</a></span>&#160;<span class="preprocessor">#define PSG_CH3        0b01100000</span></div>
    132<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
    133<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a3d806ff027bffa67c4dfc5967f87c1d1">   44</a></span>&#160;<span class="preprocessor">#define PSG_VOLUME     0b00010000</span></div>
    134<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
    135<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x7F) HCOUNTER;</div>
    136<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160; </div>
    137<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xBE) VDP_DATA;</div>
    138<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xBF) VDP_CMD;</div>
    139<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xBF) VDP_STATUS;</div>
    140<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160; </div>
    141<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a4702e74fffdc57d60c3835e63c665cc1">   52</a></span>&#160;<span class="preprocessor">#define STATF_INT_VBL  0b10000000</span></div>
    142<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a4a7b807e5e5987302a5315fe5c815ce8">   53</a></span>&#160;<span class="preprocessor">#define STATF_9_SPR    0b01000000</span></div>
    143<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a6fdd982d805d5af6de0417e24faf027d">   54</a></span>&#160;<span class="preprocessor">#define STATF_SPR_COLL 0b00100000</span></div>
    144<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
    145<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a99ca7572e3708ffed188359799045b19">   56</a></span>&#160;<span class="preprocessor">#define VDP_REG_MASK   0b10000000</span></div>
    146<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a673a19a1e353c852003c54d1d110b5e6">   57</a></span>&#160;<span class="preprocessor">#define VDP_R0         0b10000000</span></div>
    147<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#aa80cb68338819c004095531d32b70e38">shadow_VDP_R0</a>;</div>
    148<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
    149<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a283c5cad8b93ee7e72ad07aabb9bf522">   60</a></span>&#160;<span class="preprocessor">#define R0_VSCRL       0b00000000</span></div>
    150<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a65fa6547c2cd80b353a0b266cd834ff0">   61</a></span>&#160;<span class="preprocessor">#define R0_VSCRL_INH   0b10000000</span></div>
    151<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a61143072ad490ff0050177e7b4b2dd40">   62</a></span>&#160;<span class="preprocessor">#define R0_HSCRL       0b00000000</span></div>
    152<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a5c238a0b81716020b92cf851b2498b96">   63</a></span>&#160;<span class="preprocessor">#define R0_HSCRL_INH   0b01000000</span></div>
    153<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#acdd680365862fb618641818646edeb7e">   64</a></span>&#160;<span class="preprocessor">#define R0_NO_LCB      0b00000000</span></div>
    154<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a83088549f6d87bf5ccb8bf51dfe7ea7b">   65</a></span>&#160;<span class="preprocessor">#define R0_LCB         0b00100000</span></div>
    155<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a56819f822caf1e545ff803d41cac3ede">   66</a></span>&#160;<span class="preprocessor">#define R0_IE1_OFF     0b00000000</span></div>
    156<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ae9ab439a46f9918cc24453cd65f95202">   67</a></span>&#160;<span class="preprocessor">#define R0_IE1         0b00010000</span></div>
    157<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a10e6ffa0580e9956440f4259a3e79a38">   68</a></span>&#160;<span class="preprocessor">#define R0_SS_OFF      0b00000000</span></div>
    158<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ada8068942691b363f9004ccfd0cb8e82">   69</a></span>&#160;<span class="preprocessor">#define R0_SS          0b00001000</span></div>
    159<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#af69775608c5d3218fb769c4fb370685f">   70</a></span>&#160;<span class="preprocessor">#define R0_DEFAULT     0b00000110</span></div>
    160<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aebdf04065a0abf79ae8e1016d03caa1f">   71</a></span>&#160;<span class="preprocessor">#define R0_ES_OFF      0b00000000</span></div>
    161<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a07d8e5a18c957c482218804ab764dab9">   72</a></span>&#160;<span class="preprocessor">#define R0_ES          0b00000001</span></div>
    162<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
    163<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">   74</a></span>&#160;<span class="preprocessor">#define VDP_R1         0b10000001</span></div>
    164<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#a542cb696f242df44b0d8e9225d532ef4">shadow_VDP_R1</a>;</div>
    165<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
    166<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a490562a6e4b57d7bf25e8fed3b3f6905">   77</a></span>&#160;<span class="preprocessor">#define R1_DEFAULT     0b10000000</span></div>
    167<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a143660061646a3f502d03a2251575588">   78</a></span>&#160;<span class="preprocessor">#define R1_DISP_OFF    0b00000000</span></div>
    168<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#adbfdd7c42539613c371820dffd14906f">   79</a></span>&#160;<span class="preprocessor">#define R1_DISP_ON     0b01000000</span></div>
    169<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#adf542fd9d2bf9affc6016718e3885473">   80</a></span>&#160;<span class="preprocessor">#define R1_IE_OFF      0b00000000</span></div>
    170<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a29a2945a9e77ba1f003a2305b7500568">   81</a></span>&#160;<span class="preprocessor">#define R1_IE          0b00100000</span></div>
    171<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aa4062707b9b0f9ff5d1ee982ccc42fe7">   82</a></span>&#160;<span class="preprocessor">#define R1_SPR_8X8     0b00000000</span></div>
    172<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a4985d6df1031afe8efb993f9c480ca12">   83</a></span>&#160;<span class="preprocessor">#define R1_SPR_8X16    0b00000010</span></div>
    173<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
    174<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a2c9f91fcf2aad494a80e967f0c4bb414">   85</a></span>&#160;<span class="preprocessor">#define VDP_R2         0b10000010</span></div>
    175<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#a7f7fa2c0e33c6d515332a50c2acb54e7">shadow_VDP_R2</a>;</div>
    176<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
    177<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a8ce8807a3666fa8c7c93d4834ab22fe3">   88</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x3800  0xFF</span></div>
    178<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a725647b41b3c8083a7ae8db762ffc880">   89</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x3000  0xFD</span></div>
    179<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a43ae738f82e8c6e84d30a96fb9c2c792">   90</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x2800  0xFB</span></div>
    180<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aa2c53c6a4d12fb0614c1a18c015e39af">   91</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x2000  0xF9</span></div>
    181<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a08fade3bc2afb94785b0ac50d6959faa">   92</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x1800  0xF7</span></div>
    182<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a43a631b4692a370b2db6b9d5fc2512e1">   93</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x1000  0xF5</span></div>
    183<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a64cfebfe759bacd1424ad147931ff5a3">   94</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x0800  0xF3</span></div>
    184<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#acf804b73635a1bfeb04b7dbeafb7fd9f">   95</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x0000  0xF1</span></div>
    185<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
    186<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a2a58ae82037e16756404df4820a23f47">   97</a></span>&#160;<span class="preprocessor">#define VDP_R3         0b10000011</span></div>
    187<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#ab984056ff9eb011fbd84abdafb3a8bce">shadow_VDP_R3</a>;</div>
    188<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a5d1f215594c86a9e3d670f5a7f89e301">   99</a></span>&#160;<span class="preprocessor">#define VDP_R4         0b10000100</span></div>
    189<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#af9a30a728fedbe7e4c660c448c262e2c">shadow_VDP_R4</a>;</div>
    190<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a75e2c9878fe4cc7c86f71d8e8fa09924">  101</a></span>&#160;<span class="preprocessor">#define VDP_R5         0b10000101</span></div>
    191<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#a221db76cb39200a948234330ed309af7">shadow_VDP_R5</a>;</div>
    192<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
    193<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ae973ce797203f9e4bebc10f5010a8fdd">  104</a></span>&#160;<span class="preprocessor">#define R5_SAT_0x3F00  0xFF</span></div>
    194<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ab0ea6874bcc910239b098025c9761c01">  105</a></span>&#160;<span class="preprocessor">#define R5_SAT_MASK    0b10000001</span></div>
    195<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
    196<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a81ae7462829d0fcc65c3c99194a68772">  107</a></span>&#160;<span class="preprocessor">#define VDP_R6         0b10000110</span></div>
    197<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#a8afbdaaf8c6dee4e7482a341351344b4">shadow_VDP_R6</a>;</div>
    198<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
    199<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a1aba84d3beebe43e641766525630d0ad">  110</a></span>&#160;<span class="preprocessor">#define R6_BANK0       0xFB</span></div>
    200<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a81289f179bb00ade9e4f7221ddff0e46">  111</a></span>&#160;<span class="preprocessor">#define R6_DATA_0x0000 0xFB</span></div>
    201<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#adcc51095e67b158df848367761d735a4">  112</a></span>&#160;<span class="preprocessor">#define R6_BANK1       0xFF</span></div>
    202<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ac59ac38e5ec2e23e511f854403d7cbe4">  113</a></span>&#160;<span class="preprocessor">#define R6_DATA_0x2000 0xFF</span></div>
    203<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
    204<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aa82ab1c04cff3363327f3309d09ae638">  115</a></span>&#160;<span class="preprocessor">#define VDP_R7         0b10000111</span></div>
    205<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#a33b3e7c120a579cb729caf588ba1d9a8">shadow_VDP_R7</a>;</div>
    206<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#abef00e3cae6f12d97973b318ebbf9737">  117</a></span>&#160;<span class="preprocessor">#define VDP_RBORDER    0b10000111</span></div>
    207<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#a20a977182f6f5f60ee6464e15f05aed0">shadow_VDP_RBORDER</a>;</div>
    208<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160; </div>
    209<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aa1a024a7dc26ef40663fe283565bcf50">  120</a></span>&#160;<span class="preprocessor">#define R7_COLOR_MASK  0b11110000</span></div>
    210<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
    211<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a3cb38487469808e023fcb331c180c4b9">  122</a></span>&#160;<span class="preprocessor">#define VDP_R8         0b10001000</span></div>
    212<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#add65b8e5f0b806e563ce27de7348ba31">shadow_VDP_R8</a>;</div>
    213<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a9c49833bc96a70b8972027d28c816d2f">  124</a></span>&#160;<span class="preprocessor">#define VDP_RSCX       0b10001000</span></div>
    214<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#af6a84b0288b045560f83a1944a8c1c3b">shadow_VDP_RSCX</a>;</div>
    215<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
    216<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a294388f3d14b6fec1f1bbeafc7d0f91e">  127</a></span>&#160;<span class="preprocessor">#define VDP_R9         0b10001001</span></div>
    217<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#a1ccce1e3f8acb76170fb752ee40ae659">shadow_VDP_R9</a>;</div>
    218<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a3cce162b45d638126c478c5b6f7bcbc7">  129</a></span>&#160;<span class="preprocessor">#define VDP_RSCY       0b10001001</span></div>
    219<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#a292b59055beb22b566b39462da3b7eba">shadow_VDP_RSCY</a>;</div>
    220<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
    221<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a1049d2a3f634380f4dffff619334a504">  132</a></span>&#160;<span class="preprocessor">#define VDP_R10        0b10001010</span></div>
    222<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#af310a900e3b4b5b5032f4ffd6fa309b0">shadow_VDP_R10</a>;</div>
    223<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160; </div>
    224<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a98d635ed568cfe9f853eaf7e1707dec4">  135</a></span>&#160;<span class="preprocessor">#define R10_INT_OFF    0xFF</span></div>
    225<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#adf9e7ec5362058df23e1c0e4c06ad5d6">  136</a></span>&#160;<span class="preprocessor">#define R10_INT_EVERY  0x00</span></div>
    226<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160; </div>
    227<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xDC) JOY_PORT1;</div>
    228<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160; </div>
    229<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a086bde6bcc92e5f4d3e9ae45f0de475e">  140</a></span>&#160;<span class="preprocessor">#define JOY_P1_UP      0b00000001</span></div>
    230<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ab4dd6ee624c6d9e5fe5820ce925ffb20">  141</a></span>&#160;<span class="preprocessor">#define JOY_P1_DOWN    0b00000010</span></div>
    231<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a7d709160cbd7b369109bf40161ae8ccd">  142</a></span>&#160;<span class="preprocessor">#define JOY_P1_LEFT    0b00000100</span></div>
    232<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a1efece9134651ad4d2bd1836c1d1d6d6">  143</a></span>&#160;<span class="preprocessor">#define JOY_P1_RIGHT   0b00001000</span></div>
    233<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aacc8667a6d5d9683ed4876e52aba2d33">  144</a></span>&#160;<span class="preprocessor">#define JOY_P1_SW1     0b00010000</span></div>
    234<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#af29f72f4cc7c94deae5fb9c29b1cc94f">  145</a></span>&#160;<span class="preprocessor">#define JOY_P1_TRIGGER 0b00010000</span></div>
    235<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a9ab9954d0c66751a154f7824e344806b">  146</a></span>&#160;<span class="preprocessor">#define JOY_P1_SW2     0b00100000</span></div>
    236<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a307ba8e12d9273a99aa4830c5e0a3c88">  147</a></span>&#160;<span class="preprocessor">#define JOY_P2_UP      0b01000000</span></div>
    237<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a6d4129d670d421656f5e9a1f4b68a7f4">  148</a></span>&#160;<span class="preprocessor">#define JOY_P2_DOWN    0b10000000</span></div>
    238<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
    239<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xDD) JOY_PORT2;</div>
    240<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
    241<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a2121cb75e0d570b0f92c7630bc1af25f">  152</a></span>&#160;<span class="preprocessor">#define JOY_P2_LEFT    0b00000001</span></div>
    242<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a16dac3d386b8bc0da50c6c814952472d">  153</a></span>&#160;<span class="preprocessor">#define JOY_P2_RIGHT   0b00000010</span></div>
    243<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a942e3ecdef267100c84a36f6e0dc0b51">  154</a></span>&#160;<span class="preprocessor">#define JOY_P2_SW1     0b00000100</span></div>
    244<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#afe5ec4ca4d413ae5388be131d9c4f93b">  155</a></span>&#160;<span class="preprocessor">#define JOY_P2_TRIGGER 0b00000100</span></div>
    245<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a6d181ce63ff84bd559d13f4423a336b3">  156</a></span>&#160;<span class="preprocessor">#define JOY_P2_SW2     0b00001000</span></div>
    246<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a5b3dff084cbb77646a337d94d16a1714">  157</a></span>&#160;<span class="preprocessor">#define JOY_RESET      0b00010000</span></div>
    247<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a772c8def7b33ad4fd3cbfc74d84441de">  158</a></span>&#160;<span class="preprocessor">#define JOY_P1_LIGHT   0b01000000</span></div>
    248<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a42ded04442bd4fb4acf5333b248423fa">  159</a></span>&#160;<span class="preprocessor">#define JOY_P2_LIGHT   0b10000000</span></div>
    249<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160; </div>
    250<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xF0) FMADDRESS;</div>
    251<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xF1) FMDATA;</div>
    252<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xF2) AUDIOCTRL;</div>
    253<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
    254<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xfffc) RAM_CONTROL;</div>
    255<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160; </div>
    256<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a8f4dbe8a2e6389c78b9f6fb9a3ff1dca">  167</a></span>&#160;<span class="preprocessor">#define RAMCTL_BANK    0b00000100</span></div>
    257<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a0167c8f86de8ef1a327b806c8ed0c64c">  168</a></span>&#160;<span class="preprocessor">#define RAMCTL_ROM     0b00000000</span></div>
    258<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a8728acabf97eae3322439bc3cb41b02d">  169</a></span>&#160;<span class="preprocessor">#define RAMCTL_RAM     0b00001000</span></div>
    259<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#afa9ebb221cf9cd92038131ab588679bf">  170</a></span>&#160;<span class="preprocessor">#define RAMCTL_RO      0b00010000</span></div>
    260<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a97eb5adb5f29e17ce5766728447317f5">  171</a></span>&#160;<span class="preprocessor">#define RAMCTL_PROT    0b10000000</span></div>
    261<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
    262<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xfff8) GLASSES_3D;</div>
    263<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
    264<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xfffd) MAP_FRAME0;</div>
    265<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xfffe) MAP_FRAME1;</div>
    266<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xffff) MAP_FRAME2;</div>
    267<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160; </div>
    268<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#a735fc9fb4f089391a584293f2dff1008">_BIOS</a>;</div>
    269<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160; </div>
    270<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#a7093bf38c5e663715f4efed44341502d">_SYSTEM</a>;</div>
    271<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160; </div>
    272<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a1ac4bf5582e0754ea814c3f51c99a91a">  183</a></span>&#160;<span class="preprocessor">#define SYSTEM_PAL     0x00</span></div>
    273<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ae6888157a94fca2f1a1b5136494f2e07">  184</a></span>&#160;<span class="preprocessor">#define SYSTEM_NTSC    0x01</span></div>
    274<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; </div>
    275<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="sms_2hardware_8h.html#a019bf78a6d586c987aec03af8d20e02f">VDP_ATTR_SHIFT</a>;</div>
    276<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160; </div>
    277<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ad3b833661b103edc2648258dd741c92c">  188</a></span>&#160;<span class="preprocessor">#define VDP_SAT_TERM   0xD0</span></div>
    278<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160; </div>
    279<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="preprocessor">#if defined(__TARGET_sms)</span></div>
    280<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_X_OFFSET 0</span></div>
    281<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_Y_OFFSET 0</span></div>
    282<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_WIDTH 32</span></div>
    283<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_HEIGHT 24</span></div>
    284<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_BUFFER_WIDTH 32</span></div>
    285<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_BUFFER_HEIGHT 28</span></div>
    286<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_MAP_ENTRY_SIZE 2</span></div>
    287<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="preprocessor">#define DEVICE_SPRITE_PX_OFFSET_X 0</span></div>
    288<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="preprocessor">#define DEVICE_SPRITE_PX_OFFSET_Y -1</span></div>
    289<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="preprocessor">#elif defined(__TARGET_gg)</span></div>
    290<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_X_OFFSET 6</span></div>
    291<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_Y_OFFSET 3</span></div>
    292<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_WIDTH 20</span></div>
    293<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_HEIGHT 18</span></div>
    294<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_BUFFER_WIDTH 32</span></div>
    295<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_BUFFER_HEIGHT 28</span></div>
    296<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_MAP_ENTRY_SIZE 2</span></div>
    297<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="preprocessor">#define DEVICE_SPRITE_PX_OFFSET_X 48</span></div>
    298<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="preprocessor">#define DEVICE_SPRITE_PX_OFFSET_Y 23</span></div>
    299<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="preprocessor">#else</span></div>
    300<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="preprocessor">#error Unrecognized port</span></div>
    301<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="preprocessor">#endif</span></div>
    302<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ad14c51cdfb347c34c364f54e67dc978d">  213</a></span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_PX_WIDTH (DEVICE_SCREEN_WIDTH * 8)</span></div>
    303<div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a7bd450aa268b881257089cf8cd6697ec">  214</a></span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_PX_HEIGHT (DEVICE_SCREEN_HEIGHT * 8)</span></div>
    304<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160; </div>
    305<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<span class="preprocessor">#endif</span></div>
    306</div><!-- fragment --></div><!-- contents -->
    307</div><!-- doc-content -->
    308<div class="ttc" id="asms_2hardware_8h_html_af310a900e3b4b5b5032f4ffd6fa309b0"><div class="ttname"><a href="sms_2hardware_8h.html#af310a900e3b4b5b5032f4ffd6fa309b0">shadow_VDP_R10</a></div><div class="ttdeci">UBYTE shadow_VDP_R10</div></div>
    309<div class="ttc" id="aasm_2types_8h_html_afb3731986211fded0a874086c98ffcc4"><div class="ttname"><a href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a></div><div class="ttdeci">#define SFR</div><div class="ttdef"><b>Definition:</b> types.h:31</div></div>
    310<div class="ttc" id="aasm_2types_8h_html_a66d3e9555a86fa871932c5f60834c67e"><div class="ttname"><a href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a></div><div class="ttdeci">#define AT(A)</div><div class="ttdef"><b>Definition:</b> types.h:32</div></div>
    311<div class="ttc" id="asms_2hardware_8h_html_a7f7fa2c0e33c6d515332a50c2acb54e7"><div class="ttname"><a href="sms_2hardware_8h.html#a7f7fa2c0e33c6d515332a50c2acb54e7">shadow_VDP_R2</a></div><div class="ttdeci">UBYTE shadow_VDP_R2</div></div>
    312<div class="ttc" id="asms_2hardware_8h_html_a019bf78a6d586c987aec03af8d20e02f"><div class="ttname"><a href="sms_2hardware_8h.html#a019bf78a6d586c987aec03af8d20e02f">VDP_ATTR_SHIFT</a></div><div class="ttdeci">volatile UBYTE VDP_ATTR_SHIFT</div></div>
    313<div class="ttc" id="asms_2hardware_8h_html_af9a30a728fedbe7e4c660c448c262e2c"><div class="ttname"><a href="sms_2hardware_8h.html#af9a30a728fedbe7e4c660c448c262e2c">shadow_VDP_R4</a></div><div class="ttdeci">UBYTE shadow_VDP_R4</div></div>
    314<div class="ttc" id="asms_2hardware_8h_html_ab984056ff9eb011fbd84abdafb3a8bce"><div class="ttname"><a href="sms_2hardware_8h.html#ab984056ff9eb011fbd84abdafb3a8bce">shadow_VDP_R3</a></div><div class="ttdeci">UBYTE shadow_VDP_R3</div></div>
    315<div class="ttc" id="asms_2hardware_8h_html_a8afbdaaf8c6dee4e7482a341351344b4"><div class="ttname"><a href="sms_2hardware_8h.html#a8afbdaaf8c6dee4e7482a341351344b4">shadow_VDP_R6</a></div><div class="ttdeci">UBYTE shadow_VDP_R6</div></div>
    316<div class="ttc" id="aasm_2types_8h_html_a280213815420791851f7e59bdc8a3c95"><div class="ttname"><a href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a></div><div class="ttdeci">UINT8 UBYTE</div><div class="ttdef"><b>Definition:</b> types.h:58</div></div>
    317<div class="ttc" id="asms_2hardware_8h_html_add65b8e5f0b806e563ce27de7348ba31"><div class="ttname"><a href="sms_2hardware_8h.html#add65b8e5f0b806e563ce27de7348ba31">shadow_VDP_R8</a></div><div class="ttdeci">UBYTE shadow_VDP_R8</div></div>
    318<div class="ttc" id="asms_2hardware_8h_html_a735fc9fb4f089391a584293f2dff1008"><div class="ttname"><a href="sms_2hardware_8h.html#a735fc9fb4f089391a584293f2dff1008">_BIOS</a></div><div class="ttdeci">const UBYTE _BIOS</div></div>
    319<div class="ttc" id="asms_2hardware_8h_html_af6a84b0288b045560f83a1944a8c1c3b"><div class="ttname"><a href="sms_2hardware_8h.html#af6a84b0288b045560f83a1944a8c1c3b">shadow_VDP_RSCX</a></div><div class="ttdeci">UBYTE shadow_VDP_RSCX</div></div>
    320<div class="ttc" id="asms_2hardware_8h_html_a33b3e7c120a579cb729caf588ba1d9a8"><div class="ttname"><a href="sms_2hardware_8h.html#a33b3e7c120a579cb729caf588ba1d9a8">shadow_VDP_R7</a></div><div class="ttdeci">UBYTE shadow_VDP_R7</div></div>
    321<div class="ttc" id="asms_2hardware_8h_html_aa80cb68338819c004095531d32b70e38"><div class="ttname"><a href="sms_2hardware_8h.html#aa80cb68338819c004095531d32b70e38">shadow_VDP_R0</a></div><div class="ttdeci">UBYTE shadow_VDP_R0</div></div>
    322<div class="ttc" id="asms_2hardware_8h_html_a20a977182f6f5f60ee6464e15f05aed0"><div class="ttname"><a href="sms_2hardware_8h.html#a20a977182f6f5f60ee6464e15f05aed0">shadow_VDP_RBORDER</a></div><div class="ttdeci">UBYTE shadow_VDP_RBORDER</div></div>
    323<div class="ttc" id="asms_2hardware_8h_html_a221db76cb39200a948234330ed309af7"><div class="ttname"><a href="sms_2hardware_8h.html#a221db76cb39200a948234330ed309af7">shadow_VDP_R5</a></div><div class="ttdeci">UBYTE shadow_VDP_R5</div></div>
    324<div class="ttc" id="asms_2hardware_8h_html_a1ccce1e3f8acb76170fb752ee40ae659"><div class="ttname"><a href="sms_2hardware_8h.html#a1ccce1e3f8acb76170fb752ee40ae659">shadow_VDP_R9</a></div><div class="ttdeci">UBYTE shadow_VDP_R9</div></div>
    325<div class="ttc" id="asms_2hardware_8h_html_a542cb696f242df44b0d8e9225d532ef4"><div class="ttname"><a href="sms_2hardware_8h.html#a542cb696f242df44b0d8e9225d532ef4">shadow_VDP_R1</a></div><div class="ttdeci">UBYTE shadow_VDP_R1</div></div>
    326<div class="ttc" id="asms_2hardware_8h_html_a292b59055beb22b566b39462da3b7eba"><div class="ttname"><a href="sms_2hardware_8h.html#a292b59055beb22b566b39462da3b7eba">shadow_VDP_RSCY</a></div><div class="ttdeci">UBYTE shadow_VDP_RSCY</div></div>
    327<div class="ttc" id="asms_2hardware_8h_html_a7093bf38c5e663715f4efed44341502d"><div class="ttname"><a href="sms_2hardware_8h.html#a7093bf38c5e663715f4efed44341502d">_SYSTEM</a></div><div class="ttdeci">const UBYTE _SYSTEM</div></div>
    328<!-- HTML footer for doxygen 1.8.14-->
    329<!-- start footer part -->
    330<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
    331</div>
    332</body>
    333</html>