<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wikiti.brandonw.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=Z80_Routines%3AInput%3ADetectKeyPress</id>
		<title>Z80 Routines:Input:DetectKeyPress - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=Z80_Routines%3AInput%3ADetectKeyPress"/>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=Z80_Routines:Input:DetectKeyPress&amp;action=history"/>
		<updated>2026-04-14T19:39:52Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.5</generator>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=Z80_Routines:Input:DetectKeyPress&amp;diff=9143&amp;oldid=prev</id>
		<title>Galandros: right page created</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=Z80_Routines:Input:DetectKeyPress&amp;diff=9143&amp;oldid=prev"/>
				<updated>2010-04-21T13:47:17Z</updated>
		
		<summary type="html">&lt;p&gt;right page created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Z80 Routines:Input|DetectKeyPress]]&lt;br /&gt;
[[Category:Z80 Routines|DetectKeyPress]]&lt;br /&gt;
&lt;br /&gt;
This routines tells whether any keys at all are pressed.&lt;br /&gt;
Returns the result in z flag.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
;out: z flag for no key, nz flag for any key pressed (except On)&lt;br /&gt;
detectkeypress:&lt;br /&gt;
	xor a&lt;br /&gt;
	out (1),a	; any part of keyboard is detected&lt;br /&gt;
	nop&lt;br /&gt;
	nop&lt;br /&gt;
	in a,(1)&lt;br /&gt;
	inc a&lt;br /&gt;
	ret&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Galandros</name></author>	</entry>

	</feed>