diff --git a/Source/Images/d_hitechc/Readme.txt b/Source/Images/d_hitechc/Readme.txt index 2fd60e7f..85b4e07d 100644 --- a/Source/Images/d_hitechc/Readme.txt +++ b/Source/Images/d_hitechc/Readme.txt @@ -51,3 +51,14 @@ warning and error messages. The code number for each of these messages will still be printed. The textual description for all of these warnings/errors can be found in the Doc/Language directory, HI-TECH Z80 C Compiler Messages.txt. + +== Sample Application == + +This disk image includes a very small sample application called +HELLO.C that can be used to demonstrate the build process. The +following commands will build this sample application. + +C -V HELLO.C + +Then run it by typeing +HELLO diff --git a/Source/Images/d_hitechc/u0/HELLO.C b/Source/Images/d_hitechc/u0/HELLO.C new file mode 100644 index 00000000..177f2c7f --- /dev/null +++ b/Source/Images/d_hitechc/u0/HELLO.C @@ -0,0 +1,7 @@ +main() +{ + int i; + for( i = 1; i <= 10; i++ ) { + printf("Hello World, from HiTech C line %d\n", i); + } +} diff --git a/Source/Images/d_hitechc/u1/HELLO.C b/Source/Images/d_hitechc/u1/HELLO.C new file mode 100644 index 00000000..177f2c7f --- /dev/null +++ b/Source/Images/d_hitechc/u1/HELLO.C @@ -0,0 +1,7 @@ +main() +{ + int i; + for( i = 1; i <= 10; i++ ) { + printf("Hello World, from HiTech C line %d\n", i); + } +}