Changes

Programming:Keyboard scanning

46 bytes removed, 13:11, 27 August 2006
== Hardware scancode table ==
{|{{Prettytable|width: 700px; font-size: 2em;}}
|'''ValueBit:<br>LayerLine''' || '''&7F7''' || '''&BF6''' || '''&DF5''' || '''&EF4''' || '''&F73''' || '''&FB2''' || '''&FD1''' || '''&FE0'''
|-
|'''&40''' || (ZB) || ENTER || F3 || F6 || F9 || CURDOWN || CURRIGHT || CURUP
This is a routine which scans one line of the keyboard directly. It is approximately 8% faster then the firmware routine and doesn't enable interrupts.
'''Input:''' A = ''layer line (&40 - &49)
'''Output:''' A = ''hardware keyboard value''
<pre>
ld a, layer line ;use the value from the table above
ld bc, &F6C0
out (c), c
Now check for the value from the table
e.g. with''' 'cp <value>bit x,A' '''
and a condition
e.g.''' 'jp <condition>z, xxxx' '''or''' 'call <condition>z, xxxx' '''
Please note: