mirror of
https://github.com/cc65/cc65.git
synced 2024-11-05 08:05:51 +00:00
40 lines
719 B
C
40 lines
719 B
C
// --------------------------------------------------------------------------
|
|
// Hello World for Sym-1
|
|
//
|
|
// Wayne Parham
|
|
//
|
|
// wayne@parhamdata.com
|
|
// --------------------------------------------------------------------------
|
|
|
|
#include <stdio.h>
|
|
#include <sym1.h>
|
|
|
|
int main (void) {
|
|
char c = 0x00;
|
|
int d = 0x00;
|
|
int l = 0x00;
|
|
|
|
printf ("\nHello World!\n\n");
|
|
|
|
for ( l = 0; l < 2; l++ ) {
|
|
beep();
|
|
for ( d = 0; d < 10 ; d++ ) {
|
|
}
|
|
}
|
|
printf ("Type a line and press ENTER, please.\n\n");
|
|
|
|
while ( c != '\n' ) {
|
|
c = getchar();
|
|
}
|
|
|
|
printf ("\n\nThanks!\n\n");
|
|
|
|
for ( l = 0; l < 5; l++ ) {
|
|
beep();
|
|
for ( d = 0; d < 10 ; d++ ) {
|
|
}
|
|
}
|
|
|
|
return 0;
|
|
}
|