From 292246117544b0c0ec24fc9e1d3f870ef4f7d846 Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 1 Jul 2002 19:47:08 +0000 Subject: [PATCH] Added tutorial files git-svn-id: svn://svn.cc65.org/cc65/trunk@1329 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- samples/tutorial/.cvsignore | 2 ++ samples/tutorial/hello.c | 12 ++++++++++++ samples/tutorial/text.s | 4 ++++ 3 files changed, 18 insertions(+) create mode 100644 samples/tutorial/.cvsignore create mode 100644 samples/tutorial/hello.c create mode 100644 samples/tutorial/text.s 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!" + -- 2.39.5