1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-28 10:51:14 +00:00
C02/apple1/echomin.c02
2018-01-28 14:52:58 -05:00

21 lines
483 B
Plaintext

/***************************************
* ECHO - Demo C02 program for Apple 1 *
* using minimal header file *
* Echos typed keys to display *
* ESC key aborts to monitor *
***************************************/
#include "a1min.h02"
char key; //Key value
main:
while() {
key = rdkey(); //Read keyboard
if (key == $9B) //If ESCAPE pressed
break; //exit loop
echo(key); //Display character on screen
}
goto exit;