Added tutorial files
git-svn-id: svn://svn.cc65.org/cc65/trunk@1329 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
84cb41f625
commit
2922461175
3 changed files with 18 additions and 0 deletions
2
samples/tutorial/.cvsignore
Normal file
2
samples/tutorial/.cvsignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
text.s
|
||||
hello
|
12
samples/tutorial/hello.c
Normal file
12
samples/tutorial/hello.c
Normal 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
4
samples/tutorial/text.s
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
.export _text
|
||||
_text: .asciiz "Hello world!"
|
||||
|
Loading…
Add table
Reference in a new issue