mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-17 15:06:29 +00:00
23 lines
478 B
Plaintext
23 lines
478 B
Plaintext
/***************************************
|
|
* ECHO - Demo C02 program for py65mon *
|
|
* using minimal header file *
|
|
* Echoes typed characters to display *
|
|
* ESC key aborts to monitor *
|
|
***************************************/
|
|
|
|
#include <py65min.h02>
|
|
|
|
char key; //Key value
|
|
|
|
main:
|
|
while() {
|
|
key = rdkey();
|
|
if (key = #ESCKEY) break;
|
|
select (key) {
|
|
case #DELKEY: delchr();
|
|
case #RTNKEY: newlin();
|
|
default: prchr(key);
|
|
}
|
|
}
|
|
goto exit;
|