Difference between revisions of "Category:Z80 Routines:Input:DetectKeyPress"
From WikiTI
(created) |
m (corrected formatting) |
||
Line 5: | Line 5: | ||
Returns the result in z flag. | Returns the result in z flag. | ||
− | <nowiki> | + | <nowiki> |
;out: z flag for no key, nz flag for any key pressed (except On) | ;out: z flag for no key, nz flag for any key pressed (except On) | ||
detectkeypress: | detectkeypress: | ||
Line 15: | Line 15: | ||
inc a | inc a | ||
ret | ret | ||
− | </nowiki> | + | </nowiki> |
Revision as of 05:41, 21 April 2010
This routines tells whether any keys at all are pressed.
Returns the result in z flag.
;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
This category currently contains no pages or media.