From: cuz Date: Mon, 1 Jul 2002 19:47:08 +0000 (+0000) Subject: Added tutorial files X-Git-Tag: V2.12.0~2295 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=292246117544b0c0ec24fc9e1d3f870ef4f7d846;p=cc65 Added tutorial files git-svn-id: svn://svn.cc65.org/cc65/trunk@1329 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/samples/tutorial/.cvsignore b/samples/tutorial/.cvsignore new file mode 100644 index 000000000..da748bb4e --- /dev/null +++ b/samples/tutorial/.cvsignore @@ -0,0 +1,2 @@ +text.s +hello diff --git a/samples/tutorial/hello.c b/samples/tutorial/hello.c new file mode 100644 index 000000000..82695c18f --- /dev/null +++ b/samples/tutorial/hello.c @@ -0,0 +1,12 @@ +#include +#include + +extern const char text[]; /* In text.s */ + +int main (void) +{ + printf ("%s\n", text); + return EXIT_SUCCESS; +} + + diff --git a/samples/tutorial/text.s b/samples/tutorial/text.s new file mode 100644 index 000000000..173a4da0d --- /dev/null +++ b/samples/tutorial/text.s @@ -0,0 +1,4 @@ + + .export _text + _text: .asciiz "Hello world!" +