]> git.sur5r.net Git - cc65/blobdiff - doc/nes.sgml
Added space after function name.
[cc65] / doc / nes.sgml
index 5d465c813ac3dfa725d741b0e564107685efabb4..3f8f74183c59b5285b88610b0bfab32e9270f58c 100644 (file)
@@ -1,11 +1,10 @@
 <!doctype linuxdoc system>
 
 <article>
 <!doctype linuxdoc system>
 
 <article>
-
 <title>Nintendo Entertainment System specific information for cc65
 <title>Nintendo Entertainment System specific information for cc65
-<author>Ullrich von Bassewitz, <htmlurl url="mailto:uz@cc65.org" name="uz@cc65.org">
-Stefan A. Haubenthal, <htmlurl url="mailto:polluks@sdf.lonestar.org" name="polluks@sdf.lonestar.org">
-<date>2005-07-17
+<author>
+<url url="mailto:uz@cc65.org" name="Ullrich von Bassewitz">,<newline>
+<url url="mailto:polluks@sdf.lonestar.org" name="Stefan A. Haubenthal">
 
 <abstract>
 An overview over the NES runtime system as it is implemented for the
 
 <abstract>
 An overview over the NES runtime system as it is implemented for the
@@ -24,7 +23,7 @@ with the cc65 C compiler. It describes the memory layout, NES specific header
 files, available drivers, and any pitfalls specific to that platform.
 
 Please note that NES specific functions are just mentioned here, they are
 files, available drivers, and any pitfalls specific to that platform.
 
 Please note that NES specific functions are just mentioned here, they are
-described in detail in the separate <htmlurl url="funcref.html" name="function
+described in detail in the separate <url url="funcref.html" name="function
 reference">. Even functions marked as "platform dependent" may be available on
 more than one platform. Please see the function reference for more
 information.
 reference">. Even functions marked as "platform dependent" may be available on
 more than one platform. Please see the function reference for more
 information.
@@ -68,8 +67,8 @@ Programs containing NES specific code may use the <tt/nes.h/ header file.
 <sect1>NES specific functions<p>
 
 <itemize>
 <sect1>NES specific functions<p>
 
 <itemize>
-<item>waitvblank
-<item>get_tv
+<item>waitvsync - wait until the start of the next frame</item>
+<item>get_tv</item>
 </itemize>
 
 
 </itemize>
 
 
@@ -122,6 +121,14 @@ No extended memory drivers are currently available for the NES.
 
 </descrip><p>
 
 
 </descrip><p>
 
+The generic interface doesn't export the start and select buttons. To
+test for those, use the defines in nes.h instead of the generic masks.
+
+Example:
+<tscreen><verb>
+if (joy_read(0) & KEY_A)
+</verb></tscreen>
+
 
 <sect1>Mouse drivers<p>
 
 
 <sect1>Mouse drivers<p>
 
@@ -172,17 +179,14 @@ including commercial applications, and to alter it and redistribute it
 freely, subject to the following restrictions:
 
 <enum>
 freely, subject to the following restrictions:
 
 <enum>
-<item> The origin of this software must not be misrepresented; you must not
-       claim that you wrote the original software. If you use this software
-       in a product, an acknowledgment in the product documentation would be
-       appreciated but is not required.
-<item> Altered source versions must be plainly marked as such, and must not
-       be misrepresented as being the original software.
-<item> This notice may not be removed or altered from any source
-       distribution.
+<item>  The origin of this software must not be misrepresented; you must not
+        claim that you wrote the original software. If you use this software
+        in a product, an acknowledgment in the product documentation would be
+        appreciated but is not required.
+<item>  Altered source versions must be plainly marked as such, and must not
+        be misrepresented as being the original software.
+<item>  This notice may not be removed or altered from any source
+        distribution.
 </enum>
 
 </article>
 </enum>
 
 </article>
-
-
-