mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-25 06:31:25 +00:00
19 lines
368 B
Plaintext
19 lines
368 B
Plaintext
|
/**************************************************
|
||
|
* ECHO HEX - Demo program for the Apple 1 *
|
||
|
* Displays typed key ASCII values in hexadecimal *
|
||
|
**************************************************/
|
||
|
|
||
|
#include <apple1.h>
|
||
|
#include <apple1.asm>
|
||
|
|
||
|
char key; //Key value
|
||
|
|
||
|
main:
|
||
|
key = getkey();
|
||
|
echo(key);
|
||
|
echo(32);
|
||
|
prbyte(key);
|
||
|
echo(32);
|
||
|
goto main;
|
||
|
|