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:
17
examples/hello.c
Normal file
17
examples/hello.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user