1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-18 21:07:28 +00:00
C02/test/echohex.c02
2018-09-16 20:53:34 -04:00

18 lines
462 B
Plaintext

/*******************************************************
* ECHOHEX - Test/Demo program for C02 Standard Header *
* Displays ASCII Code of Typed Keys to Screen *
* ESCAPE/STOP key Ends Program *
*******************************************************/
//Specify System Header using -H option
char key; //Key value
main:
while() {
key = getchr();
prbyte(key);
putchr(' ');
if (key==#ESCKEY) goto exit;
}