Skip to content

254. The Harmony 525's re-validation is an instruction, and its action ring closes arithmetically

Read sections 256 and 257 first. Most of what follows re-derives two earlier readings. Section 72 read the same dispatcher on arch 12 on 9 August 2026 and got it right, and the paragraph below that calls the band an opcode range is wrong. Section 139's entry 23 already held arch 9's whole ladder, at these addresses, including the 0xD0 band's six byte path and the nibble reaching 0x02432. What is new here is the ring, its addresses and the pending count; what section 139 left open, what 0x02432 does, is closed in section 257 rather than here.

Section 253 left one thing open: the Harmony 525 re-validates its configuration when something asks it to, and what asks was unread. The caller sits in a chain that tests a byte against 0xC0, 0xD0, 0xF8 and 0xFF, which is the shape of an opcode decoder, and that shape was deliberately not claimed. It is one, and the surrounding structure carries a closure worth more than the answer.

The action ring on arch 9, with its address and both bounds

Three constants, each read off a different routine, and they close on each other:

value where
the ring's base 0x0346 the bound check at 0x02524, and two recovery stores at 0x01F24 and 0x01F30
the ring's exclusive end 0x03BE the bound check at 0x02562
the wrap constant 0x78 0x0201C adds it on underflow, 0x01F18 subtracts it on overflow
the write pointer 0x03BE, 0x03BF 0x02016 decrements it by 3
an instruction 3 bytes the interpreter fetches three at a time through 0x0193A

0x0346 + 0x78 = 0x03BE, so the wrap constant is the span, the pointer sits immediately past the ring, and 0x78 / 3 is 40 slots.

That is the same forty as arch 12 and it was reached with nothing in common. Section 34 derived a ring of 0x78 bytes holding forty three byte instructions on the Harmony One, and ACTION_QUEUE_BYTES in packages/codec/src/queue.ts is that number. Here the same figure falls out of a base address, an end address and two wrap sites on a different architecture whose SFR map even disagrees with the other two. So the queue rail that refuses an oversized sequence, and the 35 of 40 peak that the config which hung a Harmony One reaches, rest on a constant now confirmed twice.

The two wraps are in opposite directions and that is the second closure. 0x02524 compares the pointer against the base after three bytes were subtracted, and adds 0x78 when it went under; 0x02562 compares a working copy against the end after three were added, and subtracts 0x78 when it went over. Neither routine names the other's constant, and each is a bound only if the other's is right.

The re-validation is one instruction in that list

This section first said "opcodes at or above 0xC0 and below 0xD0" and section 255 corrects it within the hour: 0xC0 to 0xCF is a band of the operand's high byte, not of the opcode, and the opcodes that reach the chain are 0x1F to 0x3E. The structure and the handler are as described; what was wrong is which of an instruction's three bytes carries the number.

The handler at 0x02044 takes that byte's low nibble into 0x3DC and calls 0x02432, which re-validates a container and writes the verdict back into 0x109. 0x3DC holding 2 or 3 chooses the order, 0x024D0 validating container index 1 and 0x02508 index 0.

So on a Harmony 525 a configuration can ask the remote to re-check itself. Neither of the other two architectures has anything like it: arch 12 (Harmony One) re-checks on a cable transition and arch 14 (Harmony 600) re-checks from a poll, and on both it is the firmware's decision rather than the configuration's. No config in the corpus emits one, which is the same answer section 118 gave for the two flash writing opcodes on arch 14.

What the dispatched byte's address is: open here, settled in section 255

The chain compares 0xd8 in the banked form, and the bank is unknown on the path in: this project's disassembler drops its BSR tracking at a control transfer and the branch into the chain is one, and pic18_trace attributes the sites to bank 2 and finds no contradiction there, which is section 253's pitfall a second time in the same afternoon.

Two sites inside the same interpreter do resolve, with MOVLB 0x3 immediately before them, and they give 0x3D8: a bit 7 test at 0x01EFE and a low nibble mask at 0x02002. That does not settle it, because 0x3D8 is also written as the second of three bytes fetched at 0x01FE6, which is not where an opcode would sit. Either the buffer is read in an order this reading has wrong, or the chain switches on something else. Left open rather than resolved by preference, and the cheap next step is to follow the fetch routine 0x0193A and see what the first byte of a triple is stored as.

That step was taken and both readings were half right, section 255. It is 0x3D8, so the chain does switch on that byte, and 0x3D8 holds the operand's high byte rather than the opcode, so the band this section called an opcode range is a band of an operand.

Where it lands

  • tests/test_status_screens.py: the ring's base, end, wrap and pointer, the arithmetic closure between them, the equality with packages/codec's own queue constant, and the two bound checks being in opposite directions.
  • The open item above, and section 253's pitfall, which this is a second instance of.

Section 253 | the archive | section 255. Section 254 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.