Difference between revisions of "Category:Z80 Routines:Input:DetectKeyPress"

From WikiTI
Jump to: navigation, search
m (corrected formatting)
m (error)
 
Line 1: Line 1:
[[Category:Z80 Routines:Input|DetectKeyPress]]
+
wrong page
[[Category:Z80 Routines|DetectKeyPress]]
+
[[Z80_Routines:Input:DetectKeyPress]]
 
+
This routines tells whether any keys at all are pressed.
+
Returns the result in z flag.
+
 
+
<nowiki>
+
;out: z flag for no key, nz flag for any key pressed (except On)
+
detectkeypress:
+
xor a
+
out (1),a ; any part of keyboard is detected
+
nop
+
nop
+
in a,(1)
+
inc a
+
ret
+
</nowiki>
+

Latest revision as of 06:48, 21 April 2010

wrong page Z80_Routines:Input:DetectKeyPress

This category currently contains no pages or media.