Browse Source

Add HiTech C Sample source code

pull/604/head
Marshall Gates 6 months ago
parent
commit
2d2696d22c
  1. 11
      Source/Images/d_hitechc/Readme.txt
  2. 7
      Source/Images/d_hitechc/u0/HELLO.C
  3. 7
      Source/Images/d_hitechc/u1/HELLO.C

11
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

7
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);
}
}

7
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);
}
}
Loading…
Cancel
Save