1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-06-07 15:50:17 +00:00
C02/py65/echomin.c02

23 lines
478 B
Plaintext
Raw Normal View History

2018-02-14 00:52:14 +00:00
/***************************************
* 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();
2019-03-22 23:32:08 +00:00
if (key = #ESCKEY) break;
select (key) {
case #DELKEY: delchr();
case #RTNKEY: newlin();
default: prchr(key);
}
2018-02-14 00:52:14 +00:00
}
goto exit;