2
0
mirror of https://github.com/bebbo/amigaos-cross-toolchain.git synced 2025-12-08 22:38:24 +00:00

Put together an example that works on A500.

This commit is contained in:
Krystian Bacławski
2014-01-05 01:03:48 +01:00
parent a3e87c32ae
commit c87ff419d1
3 changed files with 31 additions and 0 deletions

17
examples/hello.c Normal file
View File

@ -0,0 +1,17 @@
/* This example works even for Kickstart 1.3 ! */
#include <proto/exec.h>
#include <proto/dos.h>
int __nocommandline = 1;
int __initlibraries = 0;
struct DosLibrary *DOSBase = NULL;
int main() {
if ((DOSBase = (struct DosLibrary *) OpenLibrary("dos.library", 34))) {
Write(Output(), "Hello world!\n", 13);
CloseLibrary((struct Library *)DOSBase);
}
return 0;
}