mirror of
https://github.com/cc65/cc65.git
synced 2024-11-12 07:07:19 +00:00
25 lines
518 B
C
25 lines
518 B
C
// --------------------------------------------------------------------------
|
|
// Hello World for KIM-1
|
|
//
|
|
// Dave Plummer based on Sym-1 sample by Wayne Parham
|
|
//
|
|
// davepl@davepl.com
|
|
// --------------------------------------------------------------------------
|
|
|
|
#include <stdio.h>
|
|
#include <kim1.h>
|
|
|
|
int main (void)
|
|
{
|
|
char str[100];
|
|
char c = 0x00;
|
|
|
|
printf ("\nHello World!\n\n");
|
|
printf ("Type a line and press ENTER, please.\n\n");
|
|
|
|
gets( str );
|
|
|
|
printf ("\n\nThanks: %s\n\n", str);
|
|
return 0;
|
|
}
|