From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Classic Mac 68k CODE segments" |
|---|
| claim | "CODE 0 has u32 jump table size at offset 8 and u32 A5 offset at 12; entries start at 16, 8 bytes each: 16-bit (offset, 3F3C, segment, A9F0) or, after the marker 00 00 FF FF 00 00 00 00, 32-bit (segment u16, A9F0, offset u32)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Classic Mac 68k CODE segments" |
|---|
| observed_in | |
|---|
|
|---|
| data | | effect | "Maps A5-relative jump table entries to (segment, offset); address of entry = (entry offset - 16) + A5 offset + 2" |
|---|
| trigger | "68k application CODE 0 resource" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Read: struct.unpack_from('>LL', jt_resource, 8); loop from 16 to 16+jt_size step 8; the 16-bit form is unpacked '>HHHH' and checked for 0x3F3C and 0xA9F0; the 32-bit marker toggles 'thirtytwo' and entries are '>HHL' with 0xA9F0 checked." |
|---|
| repo | "elliotnunn/ToolboxToolbox" |
|---|
| commit | "f67194a8893ec4277fa189412bcda5a62160ff99" |
|---|
| path | "FlattenSegmentedMacAppForDisassembler.py" |
|---|
| lines | "35-61" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "CODE 0 jump table" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T03:33:26.386Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:18:42.737Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read FlattenSegmentedMacAppForDisassembler.py lines 30-61 at f67194a: >LL at offset 8, loop 16..16+size step 8, 16-bit >HHHH with 3F3C/A9F0 checks, marker 00 00 FF FF 00 00 00 00 toggling 32-bit >HHL entries, key jt_ofs-16+a5+2." |
|---|
|
|
|---|