-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwednesday_2.html
183 lines (149 loc) · 8.09 KB
/
wednesday_2.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="en">
<head>
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="https://gutomaia.net/theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="https://gutomaia.net/theme/pygments/github.min.css">
<link rel="stylesheet" type="text/css" href="https://gutomaia.net/theme/font-awesome/css/font-awesome.min.css">
<link href="https://gutomaia.net/['/css/hacks.css']" rel="stylesheet">
<link href="https://gutomaia.net/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="gutomaia Atom">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<meta name="author" content="Guto Maia" />
<meta name="description" content="Keep up I've refactored the tests and extracted to CPU6502Spec, and them start playing with py65. Didn't take long to have most of the test working. Now I have the same test spec running with either ApplyPy or Py65 6502, and that's amazing. Although, let's keep in mind that the …" />
<meta name="keywords" content="nes, emulator, python">
<meta property="og:site_name" content="gutomaia"/>
<meta property="og:title" content="wedNESday #2"/>
<meta property="og:description" content="Keep up I've refactored the tests and extracted to CPU6502Spec, and them start playing with py65. Didn't take long to have most of the test working. Now I have the same test spec running with either ApplyPy or Py65 6502, and that's amazing. Although, let's keep in mind that the …"/>
<meta property="og:locale" content="en_US"/>
<meta property="og:url" content="https://gutomaia.net/wednesday_2.html"/>
<meta property="og:type" content="article"/>
<meta property="article:published_time" content="2017-01-11 23:00:00-02:00"/>
<meta property="article:modified_time" content="2017-01-14 17:34:00-02:00"/>
<meta property="article:author" content="https://gutomaia.net/author/guto-maia.html">
<meta property="article:section" content="nes"/>
<meta property="article:tag" content="nes"/>
<meta property="article:tag" content="emulator"/>
<meta property="article:tag" content="python"/>
<meta property="og:image" content="https://s.gravatar.com/avatar/760d34405db2c028a3fb099a4510d870?s=100">
<title>gutomaia – wedNESday #2</title>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-8039666399992046",
enable_page_level_ads: true
});
</script>
</head>
<body>
<aside>
<div>
<a href="https://gutomaia.net">
<img src="https://s.gravatar.com/avatar/760d34405db2c028a3fb099a4510d870?s=100" alt="gutomaia" title="gutomaia">
</a>
<h1><a href="https://gutomaia.net">gutomaia</a></h1>
<p>Pythonist with a NES and an ☂</p>
<nav>
<ul class="list">
<li><a href="/pyNES" target="_blank">pyNES</a></li>
<li><a href="/nodeNES" target="_blank">nodeNES</a></li>
<li><a href="/TylerD" target="_blank">TylerD</a></li>
<li><a href="/wedNESday/0.0.x" target="_blank">wedNESday</a></li>
</ul>
</nav>
<ul class="social">
<li><a class="sc-twitter" href="http://twitter.com/gutomaia" target="_blank"><i class="fa fa-twitter"></i></a></li>
<li><a class="sc-github" href="http://github.com/gutomaia" target="_blank"><i class="fa fa-github"></i></a></li>
<li><a class="sc-linkedin" href="http://linkedin.com/in/gutomaia" target="_blank"><i class="fa fa-linkedin"></i></a></li>
</ul>
</div>
</aside>
<main>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle ads-responsive"
data-ad-client="ca-pub-8039666399992046"
data-ad-slot="2727902218"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<article class="single">
<header>
<h1 id="wednesday_2">wedNESday #2</h1>
<p>
Posted on Wed 11 January 2017 in <a href="https://gutomaia.net/category/nes.html">nes</a>
</p>
</header>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle ads-responsive"
data-ad-client="ca-pub-8039666399992046"
data-ad-slot="2588301415"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<div>
<div class="section" id="keep-up">
<h2>Keep up</h2>
<p>I've refactored the tests and extracted to <a class="reference external" href="https://github.com/gutomaia/wedNESday/blob/68e17dff9ec06215c53f05c5069c3c06aadc8816/wednesday/tests/cpu_6502_spec.py">CPU6502Spec</a>, and them start playing with py65. Didn't take long to have most of the test working. Now I have the same test spec running with either ApplyPy or Py65 6502, and that's amazing. Although, let's keep in mind that the goal is a Ricoh 2A03 CPU, the NES CPU. And that lead us to deal with interrupts.</p>
</div>
<div class="section" id="irq-and-nmi">
<h2>IRQ and NMI</h2>
<p>IRQ stands for "Interrupt Request" and NMI for "Non-Masked Interrupt". As far as I know, and please someone correct me if I got it wrong. Interrupts are used for event handling. On the NES, you have two CPUs (Main and PPU for graphics) that runs in parallel. There fore, to accurately emulate a NES, we need to deal with several race conditional on the hardware. Or, for start, we can make then serial (<a class="reference external" href="https://wiki.nesdev.com/w/index.php/NMI_thread">NMI Thread</a> on NESDev gives good tips in NMI only), and be able to run Super Mario Bros.</p>
<p>As usual, you can checkout the progress at <a class="reference external" href="https://github.com/gutomaia/wedNESday">wedNESday repository</a>.</p>
</div>
<div class="section" id="next-wednesday">
<h2>Next wedNESday</h2>
<blockquote>
<ul class="simple">
<li>Create a fake PPU and a memory bridge and try to run a simple waitvblank program.</li>
<li>Create a pull request with CPUSpec and send to <a class="reference external" href="https://github.com/mnaberez/py65">py65</a>.</li>
</ul>
</blockquote>
</div>
</div>
<div class="tag-cloud">
<p>
<a href="https://gutomaia.net/tag/nes.html">nes</a>
<a href="https://gutomaia.net/tag/emulator.html">emulator</a>
<a href="https://gutomaia.net/tag/python.html">python</a>
</p>
</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle ads-responsive"
data-ad-client="ca-pub-8039666399992046"
data-ad-slot="4065034611"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</article>
<footer>
<p>© Guto Maia 2024</p>
<p> Powered by <a href="http://getpelican.com" target="_blank">Pelican</a> - <a href="https://github.com/alexandrevicenzi/flex" target="_blank">Flex</a> theme by <a href="http://alexandrevicenzi.com" target="_blank">Alexandre Vicenzi</a>
</p> </footer>
</main>
<!-- Google Analytics -->
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-32666248-1', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Blog",
"name": " gutomaia ",
"url" : "https://gutomaia.net",
"image": "https://s.gravatar.com/avatar/760d34405db2c028a3fb099a4510d870?s=100",
"description": ""
}
</script>
</body>
</html>