gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
docs/api/nes_2hardware_8h_source.html
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.9.2"/>
9 <meta name="viewport" content="width=device-width, initial-scale=1"/>
10 <title>GBDK 2020 Docs: gbdk-lib/include/nes/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-awesome.css" rel="stylesheet" type="text/css"/>
23 <link href="doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
24 <link href="doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
25 <!-- BEGIN: doxygen-awesome-css -->
26 <script type="text/javascript" src="doxygen-awesome-darkmode-toggle.js"></script>
27 <script type="text/javascript">
28 DoxygenAwesomeDarkModeToggle.init()
29 </script>
30 <script type="text/javascript" src="doxygen-awesome-paragraph-link.js"></script>
31 <script type="text/javascript">
32 DoxygenAwesomeParagraphLink.init()
33 </script>
34 <!-- END: doxygen-awesome-css -->
35 </head>
36 <body>
37 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
38 <div id="titlearea">
39 <table cellspacing="0" cellpadding="0">
40 <tbody>
41 <tr style="height: 56px;">
42 <td id="projectalign" style="padding-left: 0.5em;">
43 <div id="projectname">GBDK 2020 Docs
44  <span id="projectnumber">4.5.0</span>
45 </div>
46 <div id="projectbrief">API Documentation for GBDK 2020</div>
47 </td>
48 </tr>
49 </tbody>
50 </table>
51 </div>
52 <!-- end header part -->
53 <!-- Generated by Doxygen 1.9.2 -->
54 <script type="text/javascript">
55 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
56 var searchBox = new SearchBox("searchBox", "search",'Search','.html');
57 /* @license-end */
58 </script>
59 <script type="text/javascript" src="menudata.js"></script>
60 <script type="text/javascript" src="menu.js"></script>
61 <script type="text/javascript">
62 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
63 $(function() {
64 initMenu('',true,false,'search.php','Search');
65 $(document).ready(function() { init_search(); });
66 });
67 /* @license-end */
68 </script>
69 <div id="main-nav"></div>
70 </div><!-- top -->
71 <div id="side-nav" class="ui-resizable side-nav-resizable">
72 <div id="nav-tree">
73 <div id="nav-tree-contents">
74 <div id="nav-sync" class="sync"></div>
75 </div>
76 </div>
77 <div id="splitbar" style="-moz-user-select:none;"
78 class="ui-resizable-handle">
79 </div>
80 </div>
81 <script type="text/javascript">
82 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
83 $(document).ready(function(){initNavTree('nes_2hardware_8h_source.html',''); initResizable(); });
84 /* @license-end */
85 </script>
86 <div id="doc-content">
87 <!-- window showing the filter options -->
88 <div id="MSearchSelectWindow"
89 onmouseover="return searchBox.OnSearchSelectShow()"
90 onmouseout="return searchBox.OnSearchSelectHide()"
91 onkeydown="return searchBox.OnSearchSelectKey(event)">
92 </div>
93
94 <!-- iframe showing the search results (closed by default) -->
95 <div id="MSearchResultsWindow">
96 <iframe src="javascript:void(0)" frameborder="0"
97 name="MSearchResults" id="MSearchResults">
98 </iframe>
99 </div>
100
101 <div class="header">
102 <div class="headertitle"><div class="title">hardware.h</div></div>
103 </div><!--header-->
104 <div class="contents">
105 <a href="nes_2hardware_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
106 <div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#ifndef _HARDWARE_H</span></div>
107 <div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#define _HARDWARE_H</span></div>
108 <div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
109 <div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include <types.h></span></div>
110 <div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
111 <div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#__SHADOW_REG"> 10</a></span><span class="preprocessor">#define __SHADOW_REG extern volatile uint8_t</span></div>
112 <div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#__REG"> 11</a></span><span class="preprocessor">#define __REG(addr) volatile __at (addr) uint8_t</span></div>
113 <div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
114 <div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#__REG"> 13</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__REG">__REG</a>(0x2000) PPUCTRL;</div>
115 <div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUCTRL_NMI"> 14</a></span><span class="preprocessor">#define PPUCTRL_NMI 0b10000000</span></div>
116 <div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUCTRL_SPR_8X8"> 15</a></span><span class="preprocessor">#define PPUCTRL_SPR_8X8 0b00000000</span></div>
117 <div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUCTRL_SPR_8X16"> 16</a></span><span class="preprocessor">#define PPUCTRL_SPR_8X16 0b00100000</span></div>
118 <div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUCTRL_BG_CHR"> 17</a></span><span class="preprocessor">#define PPUCTRL_BG_CHR 0b00010000</span></div>
119 <div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUCTRL_SPR_CHR"> 18</a></span><span class="preprocessor">#define PPUCTRL_SPR_CHR 0b00001000</span></div>
120 <div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUCTRL_INC32"> 19</a></span><span class="preprocessor">#define PPUCTRL_INC32 0b00000100</span></div>
121 <div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#shadow_PPUCTRL"> 20</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__SHADOW_REG">__SHADOW_REG</a> <a class="code hl_variable" href="nes_2hardware_8h.html#shadow_PPUCTRL">shadow_PPUCTRL</a>;</div>
122 <div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
123 <div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#__REG"> 22</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__REG">__REG</a>(0x2001) PPUMASK;</div>
124 <div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUMASK_BLUE"> 23</a></span><span class="preprocessor">#define PPUMASK_BLUE 0b10000000</span></div>
125 <div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUMASK_RED"> 24</a></span><span class="preprocessor">#define PPUMASK_RED 0b01000000</span></div>
126 <div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUMASK_GREEN"> 25</a></span><span class="preprocessor">#define PPUMASK_GREEN 0b00100000</span></div>
127 <div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUMASK_SHOW_SPR"> 26</a></span><span class="preprocessor">#define PPUMASK_SHOW_SPR 0b00010000</span></div>
128 <div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUMASK_SHOW_BG"> 27</a></span><span class="preprocessor">#define PPUMASK_SHOW_BG 0b00001000</span></div>
129 <div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUMASK_SHOW_SPR_LC"> 28</a></span><span class="preprocessor">#define PPUMASK_SHOW_SPR_LC 0b00000100</span></div>
130 <div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUMASK_SHOW_BG_LC"> 29</a></span><span class="preprocessor">#define PPUMASK_SHOW_BG_LC 0b00000010</span></div>
131 <div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#PPUMASK_MONOCHROME"> 30</a></span><span class="preprocessor">#define PPUMASK_MONOCHROME 0b00000001</span></div>
132 <div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#shadow_PPUMASK"> 31</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__SHADOW_REG">__SHADOW_REG</a> <a class="code hl_variable" href="nes_2hardware_8h.html#shadow_PPUMASK">shadow_PPUMASK</a>;</div>
133 <div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
134 <div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#__REG"> 33</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__REG">__REG</a>(0x2002) PPUSTATUS;</div>
135 <div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#__REG"> 34</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__REG">__REG</a>(0x2003) OAMADDR;</div>
136 <div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#__REG"> 35</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__REG">__REG</a>(0x2004) OAMDATA;</div>
137 <div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#__REG"> 36</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__REG">__REG</a>(0x2005) PPUSCROLL;</div>
138 <div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#__REG"> 37</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__REG">__REG</a>(0x2006) PPUADDR;</div>
139 <div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#__REG"> 38</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__REG">__REG</a>(0x2007) PPUDATA;</div>
140 <div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#__REG"> 39</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__REG">__REG</a>(0x4014) OAMDMA;</div>
141 <div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
142 <div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#DEVICE_SCREEN_X_OFFSET"> 41</a></span><span class="preprocessor">#define DEVICE_SCREEN_X_OFFSET 0</span></div>
143 <div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#DEVICE_SCREEN_Y_OFFSET"> 42</a></span><span class="preprocessor">#define DEVICE_SCREEN_Y_OFFSET 0</span></div>
144 <div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#DEVICE_SCREEN_WIDTH"> 43</a></span><span class="preprocessor">#define DEVICE_SCREEN_WIDTH 32</span></div>
145 <div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#DEVICE_SCREEN_HEIGHT"> 44</a></span><span class="preprocessor">#define DEVICE_SCREEN_HEIGHT 30</span></div>
146 <div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
147 <div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="preprocessor">#if defined(NES_TILEMAP_F)</span></div>
148 <div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="comment">// Full tilemap</span></div>
149 <div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span><span class="preprocessor">#define DEVICE_SCREEN_BUFFER_WIDTH 64</span></div>
150 <div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span><span class="preprocessor">#define DEVICE_SCREEN_BUFFER_HEIGHT 60</span></div>
151 <div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span><span class="keyword">typedef</span> <a class="code hl_typedef" href="stdint_8h.html#uint16_t">uint16_t</a> <a class="code hl_typedef" href="nes_2hardware_8h.html#scroll_x_t">scroll_x_t</a>;</div>
152 <div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span><span class="keyword">typedef</span> <a class="code hl_typedef" href="stdint_8h.html#uint16_t">uint16_t</a> <a class="code hl_typedef" href="nes_2hardware_8h.html#scroll_y_t">scroll_y_t</a>;</div>
153 <div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span><span class="preprocessor">#elif defined(NES_TILEMAP_H)</span></div>
154 <div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="comment">// Horizontally arranged tilemap</span></div>
155 <div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="preprocessor">#define DEVICE_SCREEN_BUFFER_WIDTH 64</span></div>
156 <div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><span class="preprocessor">#define DEVICE_SCREEN_BUFFER_HEIGHT 30</span></div>
157 <div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span><span class="keyword">typedef</span> <a class="code hl_typedef" href="stdint_8h.html#uint16_t">uint16_t</a> <a class="code hl_typedef" href="nes_2hardware_8h.html#scroll_x_t">scroll_x_t</a>;</div>
158 <div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><span class="keyword">typedef</span> <a class="code hl_typedef" href="stdint_8h.html#uint8_t">uint8_t</a> <a class="code hl_typedef" href="nes_2hardware_8h.html#scroll_y_t">scroll_y_t</a>;</div>
159 <div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="preprocessor">#elif defined(NES_TILEMAP_V)</span></div>
160 <div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span><span class="comment">// Vertically arranged tilemap</span></div>
161 <div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="preprocessor">#define DEVICE_SCREEN_BUFFER_WIDTH 32</span></div>
162 <div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span><span class="preprocessor">#define DEVICE_SCREEN_BUFFER_HEIGHT 60</span></div>
163 <div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span><span class="keyword">typedef</span> <a class="code hl_typedef" href="stdint_8h.html#uint8_t">uint8_t</a> <a class="code hl_typedef" href="nes_2hardware_8h.html#scroll_x_t">scroll_x_t</a>;</div>
164 <div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><span class="keyword">typedef</span> <a class="code hl_typedef" href="stdint_8h.html#uint16_t">uint16_t</a> <a class="code hl_typedef" href="nes_2hardware_8h.html#scroll_y_t">scroll_y_t</a>;</div>
165 <div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><span class="preprocessor">#else</span></div>
166 <div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="comment">// Single-screen tilemap</span></div>
167 <div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#DEVICE_SCREEN_BUFFER_WIDTH"> 66</a></span><span class="preprocessor">#define DEVICE_SCREEN_BUFFER_WIDTH 32</span></div>
168 <div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#DEVICE_SCREEN_BUFFER_HEIGHT"> 67</a></span><span class="preprocessor">#define DEVICE_SCREEN_BUFFER_HEIGHT 30</span></div>
169 <div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#scroll_x_t"> 68</a></span><span class="keyword">typedef</span> <a class="code hl_typedef" href="stdint_8h.html#uint8_t">uint8_t</a> <a class="code hl_typedef" href="nes_2hardware_8h.html#scroll_x_t">scroll_x_t</a>;</div>
170 <div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#scroll_y_t"> 69</a></span><span class="keyword">typedef</span> <a class="code hl_typedef" href="stdint_8h.html#uint8_t">uint8_t</a> <a class="code hl_typedef" href="nes_2hardware_8h.html#scroll_y_t">scroll_y_t</a>;</div>
171 <div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span><span class="preprocessor">#endif</span></div>
172 <div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
173 <div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#DEVICE_SCREEN_MAP_ENTRY_SIZE"> 72</a></span><span class="preprocessor">#define DEVICE_SCREEN_MAP_ENTRY_SIZE 1</span></div>
174 <div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#DEVICE_SPRITE_PX_OFFSET_X"> 73</a></span><span class="preprocessor">#define DEVICE_SPRITE_PX_OFFSET_X 0</span></div>
175 <div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#DEVICE_SPRITE_PX_OFFSET_Y"> 74</a></span><span class="preprocessor">#define DEVICE_SPRITE_PX_OFFSET_Y -1</span></div>
176 <div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#DEVICE_WINDOW_PX_OFFSET_X"> 75</a></span><span class="preprocessor">#define DEVICE_WINDOW_PX_OFFSET_X 0</span></div>
177 <div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#DEVICE_WINDOW_PX_OFFSET_Y"> 76</a></span><span class="preprocessor">#define DEVICE_WINDOW_PX_OFFSET_Y 0</span></div>
178 <div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#DEVICE_SCREEN_PX_WIDTH"> 77</a></span><span class="preprocessor">#define DEVICE_SCREEN_PX_WIDTH (DEVICE_SCREEN_WIDTH * 8)</span></div>
179 <div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#DEVICE_SCREEN_PX_HEIGHT"> 78</a></span><span class="preprocessor">#define DEVICE_SCREEN_PX_HEIGHT (DEVICE_SCREEN_HEIGHT * 8)</span></div>
180 <div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
181 <div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span><span class="comment">// Scrolling coordinates (will be written to PPUSCROLL at end-of-vblank by NMI handler)</span></div>
182 <div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#bkg_scroll_x"> 81</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__SHADOW_REG">__SHADOW_REG</a> <a class="code hl_variable" href="nes_2hardware_8h.html#bkg_scroll_x">bkg_scroll_x</a>;</div>
183 <div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#bkg_scroll_y"> 82</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__SHADOW_REG">__SHADOW_REG</a> <a class="code hl_variable" href="nes_2hardware_8h.html#bkg_scroll_y">bkg_scroll_y</a>;</div>
184 <div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span><span class="comment">// LCD scanline - a software-driven version of GB's incrasing 'LY' scanline counter</span></div>
185 <div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#_lcd_scanline"> 84</a></span><a class="code hl_define" href="nes_2hardware_8h.html#__SHADOW_REG">__SHADOW_REG</a> <a class="code hl_variable" href="nes_2hardware_8h.html#_lcd_scanline">_lcd_scanline</a>;</div>
186 <div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
187 <div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span><span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code hl_typedef" href="asm_2types_8h.html#UBYTE">UBYTE</a> <a class="code hl_variable" href="gb_2hardware_8h.html#TIMA_REG">TIMA_REG</a>;</div>
188 <div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span><span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code hl_typedef" href="asm_2types_8h.html#UBYTE">UBYTE</a> <a class="code hl_variable" href="gb_2hardware_8h.html#TMA_REG">TMA_REG</a>;</div>
189 <div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span><span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code hl_typedef" href="asm_2types_8h.html#UBYTE">UBYTE</a> <a class="code hl_variable" href="gb_2hardware_8h.html#TAC_REG">TAC_REG</a>;</div>
190 <div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
191 <div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span><span class="comment">// Compatibility defines for GB LY / LYC registers, to allow easier LCD ISR porting</span></div>
192 <div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#SCY_REG"> 91</a></span><span class="preprocessor">#define SCY_REG bkg_scroll_y </span></div>
193 <div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#rSCY"> 92</a></span><span class="preprocessor">#define rSCY SCY_REG</span></div>
194 <div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#SCX_REG"> 93</a></span><span class="preprocessor">#define SCX_REG bkg_scroll_x </span></div>
195 <div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#rSCX"> 94</a></span><span class="preprocessor">#define rSCX SCX_REG</span></div>
196 <div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#LY_REG"> 95</a></span><span class="preprocessor">#define LY_REG _lcd_scanline </span></div>
197 <div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#rLY"> 96</a></span><span class="preprocessor">#define rLY LY_REG</span></div>
198 <div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#LYC_REG"> 97</a></span><span class="preprocessor">#define LYC_REG _lcd_scanline </span></div>
199 <div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="nes_2hardware_8h.html#rLYC"> 98</a></span><span class="preprocessor">#define rLYC LYC_REG</span></div>
200 <div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
201 <div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span><span class="preprocessor">#endif</span></div>
202 <div class="ttc" id="aasm_2types_8h_html_UBYTE"><div class="ttname"><a href="asm_2types_8h.html#UBYTE">UBYTE</a></div><div class="ttdeci">UINT8 UBYTE</div><div class="ttdef"><b>Definition:</b> types.h:62</div></div>
203 <div class="ttc" id="agb_2hardware_8h_html_TAC_REG"><div class="ttname"><a href="gb_2hardware_8h.html#TAC_REG">TAC_REG</a></div><div class="ttdeci">__REG TAC_REG</div><div class="ttdef"><b>Definition:</b> hardware.h:94</div></div>
204 <div class="ttc" id="agb_2hardware_8h_html_TIMA_REG"><div class="ttname"><a href="gb_2hardware_8h.html#TIMA_REG">TIMA_REG</a></div><div class="ttdeci">__REG TIMA_REG</div><div class="ttdef"><b>Definition:</b> hardware.h:90</div></div>
205 <div class="ttc" id="agb_2hardware_8h_html_TMA_REG"><div class="ttname"><a href="gb_2hardware_8h.html#TMA_REG">TMA_REG</a></div><div class="ttdeci">__REG TMA_REG</div><div class="ttdef"><b>Definition:</b> hardware.h:92</div></div>
206 <div class="ttc" id="anes_2hardware_8h_html___REG"><div class="ttname"><a href="nes_2hardware_8h.html#__REG">__REG</a></div><div class="ttdeci">#define __REG(addr)</div><div class="ttdef"><b>Definition:</b> hardware.h:11</div></div>
207 <div class="ttc" id="anes_2hardware_8h_html___SHADOW_REG"><div class="ttname"><a href="nes_2hardware_8h.html#__SHADOW_REG">__SHADOW_REG</a></div><div class="ttdeci">#define __SHADOW_REG</div><div class="ttdef"><b>Definition:</b> hardware.h:10</div></div>
208 <div class="ttc" id="anes_2hardware_8h_html__lcd_scanline"><div class="ttname"><a href="nes_2hardware_8h.html#_lcd_scanline">_lcd_scanline</a></div><div class="ttdeci">__SHADOW_REG _lcd_scanline</div><div class="ttdef"><b>Definition:</b> hardware.h:84</div></div>
209 <div class="ttc" id="anes_2hardware_8h_html_bkg_scroll_x"><div class="ttname"><a href="nes_2hardware_8h.html#bkg_scroll_x">bkg_scroll_x</a></div><div class="ttdeci">__SHADOW_REG bkg_scroll_x</div><div class="ttdef"><b>Definition:</b> hardware.h:81</div></div>
210 <div class="ttc" id="anes_2hardware_8h_html_bkg_scroll_y"><div class="ttname"><a href="nes_2hardware_8h.html#bkg_scroll_y">bkg_scroll_y</a></div><div class="ttdeci">__SHADOW_REG bkg_scroll_y</div><div class="ttdef"><b>Definition:</b> hardware.h:82</div></div>
211 <div class="ttc" id="anes_2hardware_8h_html_scroll_x_t"><div class="ttname"><a href="nes_2hardware_8h.html#scroll_x_t">scroll_x_t</a></div><div class="ttdeci">uint8_t scroll_x_t</div><div class="ttdef"><b>Definition:</b> hardware.h:68</div></div>
212 <div class="ttc" id="anes_2hardware_8h_html_scroll_y_t"><div class="ttname"><a href="nes_2hardware_8h.html#scroll_y_t">scroll_y_t</a></div><div class="ttdeci">uint8_t scroll_y_t</div><div class="ttdef"><b>Definition:</b> hardware.h:69</div></div>
213 <div class="ttc" id="anes_2hardware_8h_html_shadow_PPUCTRL"><div class="ttname"><a href="nes_2hardware_8h.html#shadow_PPUCTRL">shadow_PPUCTRL</a></div><div class="ttdeci">__SHADOW_REG shadow_PPUCTRL</div><div class="ttdef"><b>Definition:</b> hardware.h:20</div></div>
214 <div class="ttc" id="anes_2hardware_8h_html_shadow_PPUMASK"><div class="ttname"><a href="nes_2hardware_8h.html#shadow_PPUMASK">shadow_PPUMASK</a></div><div class="ttdeci">__SHADOW_REG shadow_PPUMASK</div><div class="ttdef"><b>Definition:</b> hardware.h:31</div></div>
215 <div class="ttc" id="astdint_8h_html_uint16_t"><div class="ttname"><a href="stdint_8h.html#uint16_t">uint16_t</a></div><div class="ttdeci">unsigned short int uint16_t</div><div class="ttdef"><b>Definition:</b> stdint.h:52</div></div>
216 <div class="ttc" id="astdint_8h_html_uint8_t"><div class="ttname"><a href="stdint_8h.html#uint8_t">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition:</b> stdint.h:51</div></div>
217 </div><!-- fragment --></div><!-- contents -->
218 </div><!-- doc-content -->
219 <!-- start footer part -->
220 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
221 <ul>
222 <li class="navelem"><a class="el" href="dir_8bd3092e915ccc8a773a74e0a10d4d15.html">gbdk-lib</a></li><li class="navelem"><a class="el" href="dir_a9f896cff747ba031115e41245385c17.html">include</a></li><li class="navelem"><a class="el" href="dir_af92cb28f7f9115544c8de6a3c7e6d6b.html">nes</a></li><li class="navelem"><a class="el" href="nes_2hardware_8h.html">hardware.h</a></li>
223 <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2 </li>
224 </ul>
225 </div>
226 </body>
227 </html>
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.