2021-05-09 21:34:53 +00:00
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
// Hello World for Sym-1
|
|
|
|
//
|
|
|
|
// Wayne Parham
|
|
|
|
//
|
|
|
|
// wayne@parhamdata.com
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
2021-06-07 16:50:47 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <sym1.h>
|
2021-05-09 21:34:53 +00:00
|
|
|
|
2021-06-16 21:47:38 +00:00
|
|
|
int main (void) {
|
2021-05-09 21:34:53 +00:00
|
|
|
char c = 0x00;
|
|
|
|
int d = 0x00;
|
|
|
|
int l = 0x00;
|
|
|
|
|
2021-06-16 22:14:44 +00:00
|
|
|
printf ("\nHello World!\n\n");
|
2021-05-09 21:34:53 +00:00
|
|
|
|
2021-06-16 22:14:44 +00:00
|
|
|
for ( l = 0; l < 2; l++ ) {
|
2021-05-09 21:34:53 +00:00
|
|
|
beep();
|
2021-06-16 22:14:44 +00:00
|
|
|
for ( d = 0; d < 10 ; d++ ) {
|
2021-05-09 21:34:53 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-16 22:14:44 +00:00
|
|
|
printf ("Type a line and press ENTER, please.\n\n");
|
2021-05-09 21:34:53 +00:00
|
|
|
|
2021-06-16 22:14:44 +00:00
|
|
|
while ( c != '\n' ) {
|
2021-05-09 21:34:53 +00:00
|
|
|
c = getchar();
|
|
|
|
}
|
|
|
|
|
2021-06-16 22:14:44 +00:00
|
|
|
printf ("\n\nThanks!\n\n");
|
2021-05-09 21:34:53 +00:00
|
|
|
|
2021-06-16 22:14:44 +00:00
|
|
|
for ( l = 0; l < 5; l++ ) {
|
2021-05-09 21:34:53 +00:00
|
|
|
beep();
|
2021-06-16 22:14:44 +00:00
|
|
|
for ( d = 0; d < 10 ; d++ ) {
|
2021-05-09 21:34:53 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-16 12:35:18 +00:00
|
|
|
|
|
|
|
return 0;
|
2021-05-09 21:34:53 +00:00
|
|
|
}
|