char;
readKey();
{char;
ch;
for (
; // TODO: Warning!!!!
NULL EXPRESSION DETECTED...
;
) {
PORTA = 0;
x0F;
(PA7 -
PA4);
0;
while () {
0;
x0F;
key;
checking;
PORTA;
a;
(key ==
pressed);
keycode;
delayms(10);
debounce;
from;
pressing;
key;
while
(code) {
PORTA;
check;
if
(PORTA) {
changed;
code
= readKeyCode();
determine;
code;
of;
key;
pressed;
PORTA
= 0;
(PA7
- PA4);
0;
while
(PORTA) {
0;
x0F;
wait;
for
(release; ; release++)
{
of;
key;
delayms(10);
debounce;
from;
release;
of;
key;
ch
= translate(code);
translate;
keycode;
ascii;
return
ch;
1110;
1111;
1101;
1111;
1011;
1111;
111;
1111;
}
}
}
}
}
}
Carlos Aguilar Mares © 2017
translate this pseudocode to assmbler char readKey() { char ch do { PORTA = OxOF; //set...