Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Platform:Classic Mac OS

From ReverseEngineering.wiki
Platform
CPU Motorola 68000 family; PowerPC 601 and later
Endianness Big-endian
On this wiki Facts · Code · Notes · Topics

Apple's Macintosh operating system from System 1 (1984) to Mac OS 9 (1999-2002) on Motorola 68000 and PowerPC; its programs are 68k 'CODE' resources or PEF fragments, and files have a data fork and a resource fork.

Overview

Classic Mac OS (System 6, System 7, Mac OS 8 and 9) runs 68k code, and from 1994 PowerPC code, both big-endian. Files carry a four-letter file type and creator code plus two forks. Reversers of old Mac games and applications meet the formats below.

Program formats

Transport containers

Because other filesystems have no forks, files arrive as Format:MacBinary, Format:AppleSingle and AppleDouble, Format:BinHex 4.0 or inside Format:StuffIt archives. Disk images of the era (Disk Copy, HFS) are separate subjects; for the modern .dmg see Format:Apple Disk Image (UDIF).

Tools

elliotnunn/macresources, tbxi and ToolboxToolbox (MIT), dgelessus/python-rsrcfork (MIT), MacPaw/XADMaster (LGPL-2.1).

Code & repositories

  • https://github.com/dgelessus/python-rsrcfork @ d2bbab1f5dd8670baa1ea5a31a1754b824743493 · license: MIT
    Python reader and CLI for classic Mac resource files, with 'dcmp' decompression of compressed resources.
    Tested on: source read, not run: read the source only (api.py, compress/common.py) · checked 2026-10-19; last activity 2023-02-14
  • https://github.com/elliotnunn/tbxi @ 69839ea3ad16697a161125408f9797765d66f2a9 · license: MIT
    Mac OS ROM mangler (Python, MIT) with PEF header parsing and 'cfrg' data fork offset handling.
    Tested on: source read, not run: read the source only (cfrg_rsrc.py, pef_info.py) · checked 2026-10-19; last activity 2025-12-01
  • https://github.com/elliotnunn/ToolboxToolbox @ f67194a8893ec4277fa189412bcda5a62160ff99 · license: MIT
    Scripts to take Toolbox ROMs and classic apps apart; FlattenSegmentedMacAppForDisassembler.py rebuilds a flat image from CODE segments with MacsBug names.
    Tested on: source read, not run: read the source only · checked 2026-10-19; last activity 2022-03-31