Platform:Atari ST
| CPU | Motorola 68000 at 8 MHz |
|---|---|
| On this wiki | Facts · Code · Notes · Topics |
Atari's 1985 68000-based computer; floppies are PC-style 512-byte-sector MFM disks distributed as raw .ST or compressed .MSA images.
Overview
The ST uses a WD1772 floppy controller and FAT12 disks with a PC-like boot sector (a boot sector is executable when EmuTOS's compute_cksum over the 512-byte sector equals 0x1234: bios/floppy.c line 696 and bios/disk.c line 166 at emutos 02c2db75fc; Protobt writes the checksum word so the total reaches 0x1234. Unverified: that compute_cksum is the plain 16-bit big-endian word sum).
Files
Format:Atari ST and MSA disk images (.st, .msa); flux: Format:SCP flux image, Format:HFE image (HxC).
Related
Platform:Amiga, Platform:Atari 8-bit.
System calls
Programs reach the OS through 68000 TRAP instructions: trap #1 GEMDOS (files, memory, processes: Fact:Atari ST/enum/GEMDOS function numbers), trap #13 BIOS (Fact:Atari ST/enum/BIOS function numbers) and trap #14 XBIOS (hardware: Fact:Atari ST/enum/XBIOS function numbers). Calling convention: Fact:Atari ST/behavior/Trap 1 13 14 calling convention. The AES/VDI GEM libraries are reached through trap #2 (EmuTOS installs vector 0x22 for it); Unverified: the AES opcode tables were not read in this round.
Searching a disassembly: a move.w #N,-(sp) immediately before trap #1/#13/#14 gives the function number, followed by addq.l #2..#n,sp to drop the arguments (Unverified: common compiler idiom).
Executables: Format:Atari TOS executable.
Code & repositories
- https://github.com/emutos/emutos @
02c2db75fc875265c1449efea014450466cf20b7· license: GPL-2.0-or-later (declared by the contributor; GitHub's detector did not recognize a license file)
EmuTOS, free TOS replacement (GPL-2): bdos/kpgmld.c is the PRG loader and relocator, bdos/bdosmain.c the GEMDOS function table, bios/bios.c and bios/xbios.c the BIOS/XBIOS tables, bios/vectors.S the trap 13/14 entry.
Tested on: source read, not run: source reading only · checked 2026-10-19 - https://github.com/hatari/hatari @
1262318909db005b6cbc4b9caaec75865ec19708· license: GPL-2.0-or-later (declared by the contributor; GitHub's detector did not recognize a license file)
Hatari Atari ST/TT/Falcon emulator (GPL-2): src/gemdos.c GemDOS_LoadAndReloc loads PRG files, src/debug/symbols-common.c parses DRI/GST, a.out and ELF symbol tables and prints the program flags.
Tested on: source read, not run: source reading only · checked 2026-10-19