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:
parent
84cb41f625
commit
2922461175
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…
Reference in New Issue
Block a user