Question: Help me please to convert this Sudoku code into Assembly char pollReadKey() { char ch = NOKEY; // Initialized as no key. int count =
Help me please to convert this Sudoku code into Assembly
char pollReadKey() {
char ch = NOKEY; // Initialized as no key.
int count = POLLCOUNT; // Number of checks to be done
PORTA = 0x0f; // Resets PORTA
do {
if (PORTA != 0x0f) { // Checks for key press
delayms(1);
if (PORTA != 0x0f) { // Check again for key press
ch = readKey(); // Reads key and converts to ASCII
break; // End loop
}
}
count--;
} while (count);
return ch;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
