49. Most of a config is a region nothing named reaches, and screen opcode 2 is its only referent¶
Found by the byte accounting of milestone M2 rather than by looking for it, which is the argument for having built the accounting first. With sixteen sections named and the two largest readers ported, the Harmony 600 is 24.5% attributed and the Harmony One 7.2%. The rest is not scattered across the file. It is one region at the top of it.
The region¶
Take the highest byte any structure this project can name reaches, and everything above it. The figures below were measured when two readers had been ported and are therefore stale; with every reader landed the region is 61.1% of a Harmony 700, 58.8% of a Harmony 600, 81.4% of a Harmony One and 3.9% of the arch 9 sample. The ranking does not change, which is the point of leaving them:
| sample | highest named structure | container ends | the region |
|---|---|---|---|
| Harmony 700 | 0x052C5F |
0x0EF0F0 |
631953 bytes, 64.5% |
| Harmony 600 | 0x043AA7 |
0x0B4365 |
460990 bytes, 62.5% |
| Harmony One | 0x048BC6 |
0x198680 |
1374394 bytes, 82.2% |
| Harmony One, spare | 0x01DE24 |
0x12CD6D |
1109833 bytes, 90.1% |
| 880, arch 8 | 0x025EBA |
0x06C760 |
289446 bytes, 65.2% |
| 525, arch 9 | 0x011FD0 |
0x013296 |
4806 bytes, 6.1% |
| the three safe mode | 0x000879 |
0x001BCB |
4946 bytes, 69.5% of a tiny file |
It is not padding. The Harmony 600's holds 140 distinct byte values, 35% of it zero and 0.6%
0xFF, which is the wrong shape for erased flash and the wrong shape for a run of one record type.
What points at it¶
One thing, and only one. Screen language opcode 2, whose five operands are two position bytes and a three byte flash address, section 40. Every target it names lands in the region, in every config that has one:
| sample | opcode 2 targets in the region | opcode 4 targets in the region |
|---|---|---|
| Harmony 600 | 4 of 4 | 0 of 21 |
| Harmony One | 141 of 141 | 0 of 60 |
Opcode 4 has the same shape, five operands ending in an address, and never points there, so this is a property of opcode 2 and not of "screen opcodes that carry an address".
The two container kinds with no opcode 2 have no region either. The arch 9 sample and the three safe mode containers emit none, and their unattributed remainder is 4806 and 4946 bytes rather than hundreds of kilobytes. That is the closure: the region exists exactly where its referent does.
What is not established¶
What the data is. The obvious guess from opcode 2's shape, a position and an address, is that it draws a picture, and the region's size tracking the model's screen would fit: a Harmony One with a colour touch panel carries 1.37 MB where a 600 carries 0.46 MB and an arch 9 remote with a small monochrome display carries none. That is a conjecture and it is written here as one. Nothing has been decoded and no firmware has been read for it.
Answered by section 51, and the conjecture was right. The region is image data: rows of 176 big endian RGB565 pixels on arch 12, with blank screens of exactly
176 * 220 * 2bytes fixing the height. Recovered on both Harmony Ones independently. What addresses it is still unknown, so the sentence above about "not established" now applies only to the referent.Answered in part by section 50, and the answer is narrower than this section expected. The firmware was read and opcode 2 does draw a picture, with a header this section did not know about. But the pictures are 125 to 885 bytes each, so all sixteen of the Harmony One's come to under seven kilobytes of its 1.37 MB region. Opcode 2 is still the only referent found, and it is now known to account for almost none of what it points into. Section 50 records what that rules out.
Why so few referents. Three to sixteen distinct targets for hundreds of kilobytes, so either each target addresses something very large, or a target is the head of a table with structure of its own. Those are different problems and the difference is not settled.
Section 50 rules out the first of those two and does not establish the second. A picture states its own size and the size is small, so no target addresses something very large. Whether a target heads a table is not settled either: the pictures do not tile, so they are not a run of records, and the region's only ascending pointer-shaped runs turned out to be misaligned reads of base slot 10's own array.
Two counts in the table above are occurrences and not distinct addresses, which section 50 measures instead: the Harmony 600's four opcode 2 instructions name three places and the Harmony One's 141 name sixteen. Both readings say the same thing about the region and the difference is recorded so the two sections can be compared.
Whether opcode 2 is the only way in. It is the only one found. Pointers inside records have not been swept, so a second referent from a structure that is itself only partly decoded is possible.
Still open after section 51, which swept eight candidates and found nothing. Two of them were the same misalignment trap this section's own successor fell into twice.
Why it matters more than its size¶
It is the largest single unknown in the format, it is the reason M2's coverage number cannot pass
about 35% no matter how many section readers are ported, and it is the first thing a writer would
have to reproduce. It is also the best remaining target for the firmware method of the
trace-section skill: opcode 2 has a handler in the arch 14 dispatcher at 0x1879C, and that
handler is what the region is for.
Section 48 | the archive | section 50. Section 49 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.