-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmapper0_8h_source.html
95 lines (93 loc) · 12.5 KB
/
mapper0_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>craziNES: src/mappers/mapper0.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">craziNES
 <span id="projectnumber">0.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_29c88563d03148ba4c309ff3e02018c1.html">mappers</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">mapper0.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="mapper0_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> <span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> </div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include <cstdint></span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <<a class="code" href="mapper_8h.html">mappers/mapper.h</a>></span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <<a class="code" href="ppu_8h.html">ppu.h</a>></span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> </div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="keyword">namespace </span><a class="code" href="namespacenes.html">nes</a></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> {</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  <span class="keyword">struct </span><a class="code" href="namespacenes.html#ad9986ccb3b7e5aed6ba3c62ac4a48a97">memory_section</a>;</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  <span class="keyword">class </span>PPU;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  <span class="keyword">class </span>Mapper;</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classnes_1_1_mapper0.html"> 13</a></span>  <span class="keyword">class </span><a class="code" href="classnes_1_1_mapper0.html">Mapper0</a>: <span class="keyword">public</span> <a class="code" href="classnes_1_1_mapper.html">Mapper</a></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <a class="code" href="classnes_1_1_mapper0.html#ac4616059fb0a3b2d69ff9404e06a1779">Mapper0</a>(<a class="code" href="classnes_1_1_r_o_m.html">nes::ROM</a> *, <a class="code" href="classnes_1_1_p_p_u.html">nes::PPU</a> *);</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <a class="code" href="structnes_1_1memory__section.html">nes::memory_section</a> <a class="code" href="classnes_1_1_mapper0.html#aad7b137ac7e3fdfbf906f6b1c9d55200">get_section</a>(uint16_t addr);</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classnes_1_1_mapper0.html#a3bfae58adba838a6abec710fe4348771"> 19</a></span>  uint8_t *<a class="code" href="classnes_1_1_mapper0.html#a3bfae58adba838a6abec710fe4348771">ram</a> = <span class="keyword">new</span> uint8_t[0x800];</div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classnes_1_1_mapper0.html#a61e4c7617e618d98f16784abe5158ff3"> 20</a></span>  uint8_t *<a class="code" href="classnes_1_1_mapper0.html#a61e4c7617e618d98f16784abe5158ff3">registers</a> = <span class="keyword">new</span> uint8_t[0x20];</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classnes_1_1_mapper0.html#a974688ff06f5f60f492b58c3935cf738"> 21</a></span>  uint8_t *<a class="code" href="classnes_1_1_mapper0.html#a974688ff06f5f60f492b58c3935cf738">lprgrom</a> = <span class="keyword">new</span> uint8_t[0x4000];</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classnes_1_1_mapper0.html#ae05a43358f5cec684376d275a721d1f2"> 22</a></span>  uint8_t *<a class="code" href="classnes_1_1_mapper0.html#ae05a43358f5cec684376d275a721d1f2">hprgrom</a> = <span class="keyword">new</span> uint8_t[0x4000];</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classnes_1_1_mapper0.html#ac675b7ba08f155bd58eaa0a5049d5a4a"> 23</a></span>  uint8_t *<a class="code" href="classnes_1_1_mapper0.html#ac675b7ba08f155bd58eaa0a5049d5a4a">prgram</a> = <span class="keyword">new</span> uint8_t[0x2000];</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classnes_1_1_mapper0.html#a0c3665cf54aab9efc7351dbfe8f63b00"> 24</a></span>  <a class="code" href="classnes_1_1_p_p_u.html">nes::PPU</a> *<a class="code" href="classnes_1_1_mapper0.html#a0c3665cf54aab9efc7351dbfe8f63b00">ppu</a> = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  };</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> }</div><div class="ttc" id="classnes_1_1_mapper0_html_a61e4c7617e618d98f16784abe5158ff3"><div class="ttname"><a href="classnes_1_1_mapper0.html#a61e4c7617e618d98f16784abe5158ff3">nes::Mapper0::registers</a></div><div class="ttdeci">uint8_t * registers</div><div class="ttdef"><b>Definition:</b> <a href="mapper0_8h_source.html#l00020">mapper0.h:20</a></div></div>
<div class="ttc" id="namespacenes_html_ad9986ccb3b7e5aed6ba3c62ac4a48a97"><div class="ttname"><a href="namespacenes.html#ad9986ccb3b7e5aed6ba3c62ac4a48a97">nes::memory_section</a></div><div class="ttdeci">struct nes::memory_section memory_section</div></div>
<div class="ttc" id="mapper_8h_html"><div class="ttname"><a href="mapper_8h.html">mapper.h</a></div></div>
<div class="ttc" id="classnes_1_1_mapper0_html_aad7b137ac7e3fdfbf906f6b1c9d55200"><div class="ttname"><a href="classnes_1_1_mapper0.html#aad7b137ac7e3fdfbf906f6b1c9d55200">nes::Mapper0::get_section</a></div><div class="ttdeci">nes::memory_section get_section(uint16_t addr)</div><div class="ttdef"><b>Definition:</b> <a href="mapper0_8cpp_source.html#l00035">mapper0.cpp:35</a></div></div>
<div class="ttc" id="classnes_1_1_p_p_u_html"><div class="ttname"><a href="classnes_1_1_p_p_u.html">nes::PPU</a></div><div class="ttdef"><b>Definition:</b> <a href="ppu_8h_source.html#l00011">ppu.h:11</a></div></div>
<div class="ttc" id="namespacenes_html"><div class="ttname"><a href="namespacenes.html">nes</a></div><div class="ttdef"><b>Definition:</b> <a href="cpu__6502_8cpp_source.html#l00005">cpu_6502.cpp:5</a></div></div>
<div class="ttc" id="classnes_1_1_mapper0_html_ac4616059fb0a3b2d69ff9404e06a1779"><div class="ttname"><a href="classnes_1_1_mapper0.html#ac4616059fb0a3b2d69ff9404e06a1779">nes::Mapper0::Mapper0</a></div><div class="ttdeci">Mapper0(nes::ROM *, nes::PPU *)</div><div class="ttdef"><b>Definition:</b> <a href="mapper0_8cpp_source.html#l00009">mapper0.cpp:9</a></div></div>
<div class="ttc" id="classnes_1_1_r_o_m_html"><div class="ttname"><a href="classnes_1_1_r_o_m.html">nes::ROM</a></div><div class="ttdef"><b>Definition:</b> <a href="rom_8h_source.html#l00027">rom.h:27</a></div></div>
<div class="ttc" id="classnes_1_1_mapper0_html_a974688ff06f5f60f492b58c3935cf738"><div class="ttname"><a href="classnes_1_1_mapper0.html#a974688ff06f5f60f492b58c3935cf738">nes::Mapper0::lprgrom</a></div><div class="ttdeci">uint8_t * lprgrom</div><div class="ttdef"><b>Definition:</b> <a href="mapper0_8h_source.html#l00021">mapper0.h:21</a></div></div>
<div class="ttc" id="classnes_1_1_mapper0_html"><div class="ttname"><a href="classnes_1_1_mapper0.html">nes::Mapper0</a></div><div class="ttdef"><b>Definition:</b> <a href="mapper0_8h_source.html#l00013">mapper0.h:13</a></div></div>
<div class="ttc" id="classnes_1_1_mapper_html"><div class="ttname"><a href="classnes_1_1_mapper.html">nes::Mapper</a></div><div class="ttdef"><b>Definition:</b> <a href="mapper_8h_source.html#l00019">mapper.h:19</a></div></div>
<div class="ttc" id="ppu_8h_html"><div class="ttname"><a href="ppu_8h.html">ppu.h</a></div></div>
<div class="ttc" id="classnes_1_1_mapper0_html_ae05a43358f5cec684376d275a721d1f2"><div class="ttname"><a href="classnes_1_1_mapper0.html#ae05a43358f5cec684376d275a721d1f2">nes::Mapper0::hprgrom</a></div><div class="ttdeci">uint8_t * hprgrom</div><div class="ttdef"><b>Definition:</b> <a href="mapper0_8h_source.html#l00022">mapper0.h:22</a></div></div>
<div class="ttc" id="classnes_1_1_mapper0_html_ac675b7ba08f155bd58eaa0a5049d5a4a"><div class="ttname"><a href="classnes_1_1_mapper0.html#ac675b7ba08f155bd58eaa0a5049d5a4a">nes::Mapper0::prgram</a></div><div class="ttdeci">uint8_t * prgram</div><div class="ttdef"><b>Definition:</b> <a href="mapper0_8h_source.html#l00023">mapper0.h:23</a></div></div>
<div class="ttc" id="classnes_1_1_mapper0_html_a0c3665cf54aab9efc7351dbfe8f63b00"><div class="ttname"><a href="classnes_1_1_mapper0.html#a0c3665cf54aab9efc7351dbfe8f63b00">nes::Mapper0::ppu</a></div><div class="ttdeci">nes::PPU * ppu</div><div class="ttdef"><b>Definition:</b> <a href="mapper0_8h_source.html#l00024">mapper0.h:24</a></div></div>
<div class="ttc" id="classnes_1_1_mapper0_html_a3bfae58adba838a6abec710fe4348771"><div class="ttname"><a href="classnes_1_1_mapper0.html#a3bfae58adba838a6abec710fe4348771">nes::Mapper0::ram</a></div><div class="ttdeci">uint8_t * ram</div><div class="ttdef"><b>Definition:</b> <a href="mapper0_8h_source.html#l00019">mapper0.h:19</a></div></div>
<div class="ttc" id="structnes_1_1memory__section_html"><div class="ttname"><a href="structnes_1_1memory__section.html">nes::memory_section</a></div><div class="ttdef"><b>Definition:</b> <a href="mapper_8h_source.html#l00010">mapper.h:10</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>