54. One missing operand count was holding arch 12 shut, and the region is pictures¶
Section 53 left the sharpest open question in the format: a mode record carries a screen program on arch 8 and arch 14, and on arch 12 not one of 268 does. That turned out to be false, and the reason it looked true was a single absent table entry.
Opcode 23 takes no operand¶
Dumping what follows an arch 12 mode record's tagged list shows a program that starts
02 00 00 6e 7c 12, which is screen opcode 2 with an address in the region, and then runs into a
0x17. Opcodes 22 and 23 are in the arch 12 dispatcher and in no config the corpus had reached, so
SCREEN_FIXED_OPERANDS had neither and the walk refused, correctly, rather than desynchronising.
Opcode 23's handler is at 0x29640 on the Harmony One 3.4 image. It copies the stream position into
0x19C to 0x19E, writes the position minus three into a table, sets 0x19E to 0x13 and returns
to the loop. It makes no read call at all, where every other handler in that dispatcher calls
its own reader; opcode 16's is one instruction, RCALL 0x292AC. So it consumes no operand.
That is the whole change: one entry, 23: 0. With it, 268 of 268 arch 12 mode programs decode,
each containing exactly one opcode 23 and one opcode 2. Opcode 22 appears nowhere in the corpus, so
it stays unestablished and a parser still refuses it.
A brute force over operand counts 0 to 7 for both opcodes was run first and could not choose: 22 never occurs, and 23 decodes at both 0 and 5. The firmware settled what the corpus could not, which is the project's usual order of authority and worth noting because the temptation was to take the count that produced the larger picture count.
stride is in pixels, and section 50 said bytes¶
With arch 12 open, its pictures read stride 176, rows 220, which is exactly the geometry section
51 recovered by minimising a row difference. That agreement is also what exposed an error: at
5 + stride * rows such a picture is 38725 bytes, but section 51's blank screens are 77440, twice
that, and the filled ones correlate at 352 bytes a row rather than 176.
A pixel is two bytes, as it is in a glyph and as the encoded kind already assumed, so a raw picture
is 5 + 2 * stride * rows. The corpus closes it without ambiguity: consecutive pictures then sit
exactly that far apart, 14 of the Harmony 600's 15 gaps, 17 of the 700's 20 and 23 of arch 8's 27,
where under the halved reading not one gap matched anything. Section 50's "the pictures do not tile"
was an artefact of the halved extent and is corrected there.
What the region is¶
Both corrections together:
| container | pictures | bytes | share of the region |
|---|---|---|---|
| Harmony 600 | 16 | 426700 | 98.3% |
| Harmony 700 | 21 | 558037 | 93.3% |
| 880, arch 8 | 28 | 276019 | 97.0% |
| Harmony One | 28 | 656275 | 48.2% |
| Harmony One, spare | 27 | 578830 | 52.5% |
So the region that sections 49, 50 and 51 circled is, on three of the four architectures, essentially all pictures, all addressed by screen opcode 2. There was never a second referent. There was one referent in programs that could not be reached, for two different reasons on two different architectures: on arch 8 and arch 14 because a mode record's program had no known start, and on arch 12 because of one missing operand count.
The Harmony One's remaining half is the open item, and it is a different question from the one this started as: not "what addresses the region" but "what else is in it besides the 28 pictures".
Answered in section 55: nothing else. The region is one contiguous array of pictures, 98 of them on that config, of which 28 are addressed. The rest are in the same array and nothing this project can reach draws them.
Coverage¶
M2's number, which is what all of this was for:
| sample | before this session | now |
|---|---|---|
| Harmony 700 | 26.0% | 87.8% |
| Harmony 600 | 24.5% | 86.4% |
| Harmony One | 7.2% | 47.9% |
| 880, arch 8 | 12.4% | 80.2% |
| the three safe mode | 64.5% | 89.5% |
Zero overlapping claims anywhere, which is the check that keeps those numbers honest.
Where it lands¶
docs/config-format.md, the screen language and base slot 6.SCREEN_FIXED_OPERANDS[23] = 0andSCREEN_ARCH12_ONLY = {22}in both codecs, the latter replaced bySCREEN_OPERANDS_BY_ARCHITECTUREin section 64 once 22 was read too;MODE_PROGRAM_ARCHITECTURESgains 12;PIXEL_BYTESand the corrected raw extent.tests/test_interpreter.pyandpackages/codec/test/screen.test.ts, where the tiling test now asserts the opposite of what it did and says so.
Section 53 | the archive | section 55. Section 54 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.