Skip to main content

Module loader

Module loader 

Source
Expand description

68k loader data types: CODE 0 header, jump table entries, and the LoadedApp state record returned by FixtureRunner::load_app.

Structs§

ApplicationSizeResource
Application 'SIZE' resource data used by the Process Manager to choose the app’s launch partition. The standard application resource is ID -1 and stores a 16-bit mode flag word followed by preferred and minimum partition sizes.
Code0Header
CODE 0 resource header — 16 bytes parsed from the start of every 68k application’s CODE resource ID 0. Defines the A5-world layout (above + below sizes) and where the jump table lives within it. Inside Macintosh: Memory 1992, 7-31 (“CODE Resource Format”).
JumpTableEntry
One slot in the application’s jump table. The Mac OS Segment Loader patches each slot’s loaded + address lazily as LoadSeg faults pull CODE segments into memory.
LoadedApp
State produced by loading a 68k application: parsed CODE 0 header, resolved A5 placement, jump-table slot vector, per-segment load addresses, and the initial stack pointer the runner will seed.

Enums§

CodeSegmentHeader
Header stored at the front of each nonzero CODE resource.