2018-02-14 00:52:14 +00:00
|
|
|
/**********************************************
|
|
|
|
* TEST65 - Test Library py65.h02 for py65mon *
|
|
|
|
**********************************************/
|
|
|
|
|
|
|
|
#include <py65.h02>
|
|
|
|
|
|
|
|
char c; //Character
|
|
|
|
char key; //Key read from keyboard
|
|
|
|
|
|
|
|
main:
|
|
|
|
key = getkey(); //Read key from console
|
2019-03-22 23:32:08 +00:00
|
|
|
if (key = #ESCKEY) //If Escape was pressed
|
2018-02-14 00:52:14 +00:00
|
|
|
goto exit; // return to monitor
|
|
|
|
prbyte(key); //Print ASCII value of key
|
|
|
|
prchr(' '); // and a space
|
|
|
|
prchr(key); //Print key character
|
|
|
|
prchr(' '); // and another space
|
|
|
|
goto main; //Loop
|
|
|
|
|