mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-19 12:32:08 +00:00
21 lines
412 B
Plaintext
21 lines
412 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 = $1B) break;
|
|
prchr(key);
|
|
if (key = $0D) prchr($0A);
|
|
}
|
|
goto exit;
|
|
|