User Tools

Site Tools


keyscan-codes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
keyscan-codes [2016/05/18 08:49] darkbytekeyscan-codes [2017/02/16 13:23] (current) darkbyte
Line 1: Line 1:
-==== return codes from keyscan $028e ====+====Return codes from keyscan $028e==== 
 + 
 +----
  
 <code z80> <code z80>
 keyscan call $028e keyscan call $028e
  ld a,e  ld a,e
- cp 'return code'+ cp "return code"
  jr z,key1  jr z,key1
- cp 'return code'+ cp "return code"
  jr z,key2  jr z,key2
  ....  ....
Line 23: Line 25:
 ;Other usage is INKEY$ with return code in ASCII ;Other usage is INKEY$ with return code in ASCII
 ;input: none ;input: none
-;output: a = ASCII code of pressed key +;output: a = ASCII code of pressed key, or $00 if nothing was pressed or bad combination
  
 inkey call $028e inkey call $028e
Line 38: Line 40:
 </code> </code>
  
-Navigation: [[general]] . [[math]] . [[graphic]] . [[sound]] . [[system]] . [[other]] . back to [[start]]+---- 
 + 
 +**Navigation: [[general]] . [[math]] . [[graphic]] . [[sound]] . [[system]] . [[other]] . back to [[start]]**
keyscan-codes.1463554145.txt.gz · Last modified: 2016/05/18 08:49 by darkbyte