Skip to content

An assembler and some scripts to let you use a normal (distro-packaged) m68k GCC cross-compiler to build Atari ST .prg binaries

Notifications You must be signed in to change notification settings

tomm/atari-st-gcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

$ make

$ sudo make install

Usage

To compile your C to an Atari ST .prg (arch=m68000) binary, do:

atari-st-gcc my_main.c

Note that the assembler can't link multiple object files, so you need to code in the slightly odd way where you just #include .c files from your my_main.c entrypoint file.

There are some helpful utilities:

#include "atari-st/softmath.h"
#include "atari-st/tos.h"

Softmath allows 32-bit divide/multiply to work on m68k. tos.h wraps some basic tos, xbios, bios and gemdos calls.

See hello_world.c for a working example of an Atari ST C program.

About

An assembler and some scripts to let you use a normal (distro-packaged) m68k GCC cross-compiler to build Atari ST .prg binaries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages