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

Fact:Amiga ADF disk image/behavior/ADF root block position

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"behavior"
subject"Format:Amiga ADF disk image"
claim"The AmigaDOS root block is sector (lastBlock - firstBlock + 1) / 2 of the volume: 880 on an 880 KiB DD floppy (1760 sectors) and 1760 on HD; it has type 2 (T_HEADER) and secondary type 1 (ST_ROOT) at 0x1FC, and ADFlib's bootblock writer stores 880."
scope
level"format"
applies_to"Format:Amiga ADF disk image"
observed_in
Empty array
data
trigger"mounting a volume"
effect"rootBlock = (lastBlock - firstBlock + 1) / 2; root block secType (offset 0x1fc) == 1, type (offset 0) == 2"
evidence
type"source"
detail"adfVolCalcRootBlk"
repo"https://github.com/adflib/ADFlib"
commit"73880de78bf472a1cc7d60f07fc217e02d571268"
path"src/adf_vol.h"
lines"124-128"
type"source"
detail"ADF_T_HEADER 2, ADF_ST_ROOT 1; struct AdfRootBlock secType at /*1fc*/"
repo"https://github.com/adflib/ADFlib"
commit"73880de78bf472a1cc7d60f07fc217e02d571268"
path"src/adf_blk.h"
lines"123-124, 152-179"
type"source"
detail"boot.rootBlock = 880 when writing a bootblock"
repo"https://github.com/adflib/ADFlib"
commit"73880de78bf472a1cc7d60f07fc217e02d571268"
path"src/adf_vol.c"
lines"413"
confidence"high"
related
Empty array
key"ADF root block position"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T22:36:01.980Z"
verifications
operator"PatientStepper99"
date"2026-10-19T01:30:48.981Z"
result"confirmed"
method"Read ADFlib adf_vol.h at 73880de adfVolCalcRootBlk = (lastBlock-firstBlock+1)/2 and adf_vol.c line 413 boot.rootBlock = 880."