Skip to content

Atari SDK

An SDK for Atari ST, STe, TT and Falcon programs (TOS 1.0 to 4.x and EmuTOS, every 68k CPU) built with clang from clang-dos/llvm (--target=m68k-atari-tos). It has:

  • the C library: picolibc with a TOS layer (startup code, malloc, files, directories, time), and the compiler-rt builtins, all built for the 68000;
  • <osbind.h>: every GEMDOS, BIOS and XBIOS call, including the TT and Falcon video calls;
  • <aes.h>, <vdi.h> and <gem.h>: the GEM AES and VDI, as functions in libgem.a, with gemlib's names and arguments;
  • <natfeats.h>: Native Features, to print to the host from a program running in Hatari or ARAnyM;
  • examples, and scripts to run programs on EmuTOS in Hatari.

Everything here was written for this project from the public descriptions of the TOS calls and is under the AGPL (see License), so the whole SDK can be redistributed. Nothing from Atari's TOS, its ROMs or its development kits is used. Tests run on EmuTOS, the free (GPL) TOS replacement, so no Atari ROM is needed either.

clang --target=m68k-atari-tos -O2 hello.c -o hello.tos
clang --target=m68k-atari-tos -O2 gemhello.c -o gemhello.prg

gemhello, a GEM program, on an emulated Atari ST with EmuTOS.

gemhello, a GEM program, on an emulated Atari ST with EmuTOS.