]> git.sur5r.net Git - cc65/commitdiff
Added tutorial files
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 1 Jul 2002 19:47:08 +0000 (19:47 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 1 Jul 2002 19:47:08 +0000 (19:47 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1329 b7a2c559-68d2-44c3-8de9-860c34a00d81

samples/tutorial/.cvsignore [new file with mode: 0644]
samples/tutorial/hello.c [new file with mode: 0644]
samples/tutorial/text.s [new file with mode: 0644]

diff --git a/samples/tutorial/.cvsignore b/samples/tutorial/.cvsignore
new file mode 100644 (file)
index 0000000..da748bb
--- /dev/null
@@ -0,0 +1,2 @@
+text.s
+hello
diff --git a/samples/tutorial/hello.c b/samples/tutorial/hello.c
new file mode 100644 (file)
index 0000000..82695c1
--- /dev/null
@@ -0,0 +1,12 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+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 (file)
index 0000000..173a4da
--- /dev/null
@@ -0,0 +1,4 @@
+
+       .export _text
+       _text:  .asciiz "Hello world!"
+