1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00

Added tutorial files

git-svn-id: svn://svn.cc65.org/cc65/trunk@1329 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-07-01 19:47:08 +00:00
parent 84cb41f625
commit 2922461175
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,2 @@
text.s
hello

12
samples/tutorial/hello.c Normal file
View File

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

4
samples/tutorial/text.s Normal file
View File

@ -0,0 +1,4 @@
.export _text
_text: .asciiz "Hello world!"