Screens¶
A Harmony's screen shows only what its configuration tells it to show. The configuration carries small programs in a drawing language of its own: fill a rectangle, put a picture here, write this text there, choose a font, look at a value the remote keeps and pick what to draw from it. The pictures sit in one long array near the end of the file, the picture bank. Letters are pictures too: a font is a table of small images, and a piece of text is a list of numbers that pick images out of that table, not letters in any standard encoding. That is why nothing in a configuration says which language it is in, and why adding text means building the images for it.
This page describes those structures as every architecture shares them, and says where one differs. What a remote's screen looks like to a person is on its model's display page, for example the Harmony One's or the Harmony 650's. What Logitech's compiler draws with them is on the compiler pages of the Harmony 600, 650 and 700 and the Harmony One.
The screen language¶
A second interpreter, separate from the action lists, with one byte opcodes of its own. It draws the display.1 A program is reached three ways: from base slot 11, the screen program table; from a base slot 14 lookup, state; and from a mode record, whose own program sits immediately after its tagged list, modes and keys. That third way is where the full screen pictures are named. It is measured on arch 8 and 142, on arch 123, and on arch 9, where every mode record's program is also a page's program23.
| opcode | operands | meaning |
|---|---|---|
| 0 | none | end |
| 1 | x, y, width, height, then a colour high byte first |
fill the rectangle with the colour, below |
| 2 | 2 position bytes, u24 |
draw the picture at that address, below |
| 3 | 6 position bytes, u24 |
copy a region of the picture at that address, destination first, below |
| 4 | 2 position bytes, u24 |
draw the glyph string at that address, which is another program's own, below |
| 5 | 2 position bytes, then the string | draw the glyph string inline |
| 16 | 1 byte | select the font, an index into base slot 7 |
| 17 | u16 operand, u8 opcode |
queue an action list instruction |
| 18, 19 | a switch, below | switch on a state variable and jump |
| 20 | u24 |
jump |
| 21 | x, y, width, height |
arch 8 only: invert the rectangle, below |
| 22 | per architecture, below | arch 12: call. arch 9: select a screen page |
| 23 | none | per architecture: arch 12 the return matching opcode 22; arch 9 the page transfer |
The opcodes and their handlers are read in the firmware of the Harmony One 3.4, the Harmony 600 0.2 and the Harmony 700 2.81, opcode 23's empty operand on the Harmony One4, and on arch 8 in the Harmony 885's and 720's, where the eleven above and the end are the whole set: any other byte ends the program as 0 does, so a stray byte truncates a page with no error37. Opcode 21's length was inferred from four arch 8 configurations5 and its meaning unknown until the arch 8 firmware was read.
22846 programs across 19 containers and four architectures decode with nothing left over, which is the check that matters: an instruction has no length field, so a wrong operand count throws the walk out of step at once.23
Read with gspm.screen_program and gspm.screen_program_roots, or print one with tools/screen_dump.py.
Filling a rectangle¶
Opcode 1 fills a rectangle. Six bytes: x, y, width, height, one byte each, then the colour as two
bytes in the order a picture's pixel is stored, high byte first. The remote fills one row at a time from y
while the row is below y + height taken in eight bits, so a rectangle whose y + height is 256 or more
draws nothing (220 rows from y 40 end at row 4). Each row is clipped to the display, its width to the
columns right of x, and a row or a column past the screen is drawn nowhere. A width of 0 is not read.6
Read in full on the Harmony One 3.4, and on the Harmony 600 and 650 0.2 and the Harmony 700 2.8 as far as the
row loop and the row routine's clip at 128 by 1286. On arch 8 (Harmony 880 and 885) the width is
clipped to 160 - x and the column window runs to 159, where the panel is 128 wide and the invert and the
pictures clip at 128 - x; and a width of 0 fills 256 pixels, since the pixel loop decrements before it
tests37. What the display controller does with columns past 127 is not checked36. The
Harmony 650 0.4 image and arch 9 and 10 are not checked36; this said arch 8 was not checked
either. What Logitech uses it for on the Harmony One is on its compiler
page, and that the Harmony One draws a page over what the
screen held is on its display page. Whether the Harmony 600, 650 and 700 clear the screen before a page is not
read36.
Opcode 21 inverts a rectangle, on arch 8¶
Opcode 21 turns every pixel of a rectangle into its inverse: four bytes, x, y, width and height, and
no address, so relocating never touches it. It reads each row back from the display, complements it and writes
it again, so a second invert of the same rectangle restores the screen, and what it shows depends on what was
drawn under it. Rows stop at 160, the width at 128 - x, and a width of 0 runs 256 pixels37.
Every arch 8 configuration read uses it the same way, eight cells of 64 by 32 in a two by four grid on the
Harmony 880 and 885 and six of 64 by 42 on the 720, each the only instruction of its program38.
What those cells are on the remote is not checked36.
Text, opcodes 4 and 5¶
The inline strings are glyph codes, not characters. The renderer resolves one by indexing the selected font by the code minus the font's first code, which is one in every generated configuration.78 A code with bit 7 set is the first half of a wide code and takes a second byte with it, so a terminator cannot be found by scanning for a zero.9 Not on arch 8: the Harmony 880 and 885 draw every nonzero byte as one code, take the first code from the font set whatever its count, and check the code against neither the count nor a NULL glyph37; no arch 8 string holds a byte with bit 7 set38. Whether any configuration holds a wide code is not checked36. What a code means is per configuration, and the text is recovered from the glyph's pixels, below.
Opcode 4 is the commoner of the two, and its target is never a place of its own. In 12052 of 12052
instances, on four architectures, its u24 lands on the glyph payload of some opcode 5 instruction in another
reachable program, three bytes past that instruction's start. So a string is stored once, inline, by
whichever program draws it that way, and every other program that wants it names those bytes:
15742 of the configurations' 23419 drawn strings are
references, two draws in three.9
The run it names is read exactly as opcode 5's is, ended by a zero byte. It may be empty: nine references in each arch 8 configuration name a string of no length, which is a blank label at a position.9
The switch¶
Opcodes 18 and 19 differ only in the width of their counts and values:1
u8 state variable index
count u8 in opcode 18, u16 in opcode 19
{ value; u24 target }[count] value likewise one byte or two
count
{ low; high; u24 target }[count]
Opcodes 22 and 23, per architecture¶
Opcode 22 is the one opcode whose operand width is not the same everywhere, so a parser has to know the architecture before it can walk past one.
- Arch 12 (Harmony One): 3 bytes, a
u24target. It seeks there and keeps the position after its operands in a link register, which opcode 23 restores: a call and its return, read out of the handlers at0x2966Eand0x29640on the Harmony One 3.4 image. There is one link register, so calls do not nest.10 No arch 12 configuration uses it, so the width is the firmware's and the semantics are not tried against data.11 - Arch 10 (Harmony 890 and 895): 3 bytes, measured per program: every mode page program that was otherwise unread decodes and lands exactly on its own end under three, 49 of 49 on a Harmony 890 and 34 of 34 on a Harmony 895.12 What it does there is not read, since no firmware image exists36.
- Arch 9 (Harmony 525): 1 byte, a page index from 0 to 7, and the instruction after it is an ordinary
opcode 3 drawing a 96 by 8 strip at
y = 8 * index. Every mode page's program issues the eight once each, and every strip on a page comes from the same 96 by 64 picture, the whole panel.13 The index is sent to the display controller as a page address, and opcode 23 transfers 96 pixels into that page: the 525's panel is addressed as eight pages of eight pixel rows.14 How its display controller is driven is on the 525's firmware page. - Arch 8 (Harmony 880 and 885): neither exists, and either ends the program as 0 does37.
- Arch 14: whether either opcode exists there is not read36.
Where a program ends¶
A program's storage ends with a SCREEN_END byte even where its last instruction is a jump or a switch.
After a jump no execution reaches it. After a switch it is reached on arch 8 (Harmony 880 and 885): a switch
that matches nothing returns with the stream past its tables, so the bytes after it are its default arm; of 189
switches in the sixteen arch 8 containers read, copies of six configurations, 48 are followed by an end byte and
141 by another instruction, at an address a root also reaches3738. This said no execution can reach
that byte on every architecture; whether arch 9, 12 and 14 fall through the same way is not
checked36. Positionally, in front of a mode page record, 91 to 294 programs a container
end with a terminator that is reached, against 49 to 64 per arch 8 configuration that are not. A jump may
also abut the next structure with no terminator at all, 36 times in a Harmony One configuration, so the byte
belongs to the program only when it is zero.15
The picture bank¶
A picture is a five byte header and then its pixels. Every picture a configuration holds sits in one contiguous array, the picture bank, running from the end of the named content to the trailer, with no table, no count and no header. Walking it from its start lands exactly on the trailer in every container that has one.16 A Harmony One configuration holds 98 pictures, a Harmony 600's 18, a Harmony 700's 24 and an arch 8 configuration 31 to 33.17 Every picture in a bank is drawn by a screen program, on all four architectures, with two exceptions in all the configurations read and both in the arch 9 safe mode container; so the bank is the set of pictures the programs draw rather than a region that happens to hold them.17
A picture¶
+0x00 u8 kind
+0x01 u16 stride, the width in pixels
+0x03 u16 rows
+0x05 the pixels
- Kind 0 is raw rows, so it is exactly
5 + 2 * stride * rowsbytes, and consecutive pictures in a bank sit exactly that far apart.183 - Kind 1 is encoded: the renderer reads and discards the two sizes and runs the skip and literal
encoding of a glyph, over two byte pixels, ending at a
0x00control byte, the font table. It still breaks rows exactlyrows - 1times, which is the closure its extent rests on, on all 51 encoded pictures of arch 8, 12 and 14.18 - Kind 2 is a bare
RETURNin the arch 12 and arch 14 firmware, valid and drawing nothing, and a higher kind returns without reading the header.18 On arch 8 every kind above 1 returns before drawing.37 On arch 9 (Harmony 525) kind 2 is the only kind used, one bit a pixel, since the panel is monochrome. A row is padded to a whole byte, so the picture is5 + ceil(stride / 8) * rowsbytes: a 96 pixel row is 12 bytes and a 19 pixel one 3.1913 Every picture in an arch 9 user configuration is 96 by 64, the whole panel, at 773 bytes; the safe mode container also carries a 19 by 10 and an 18 by 10.13
A pixel is RGB565 stored high byte first, the one field in this format that is not little endian: it is the order a display controller takes over a serial bus, so a picture is stored the way it is sent. Read the other way, the green field shifts across the red and the blue.20 Arch 9 is the exception, one bit a pixel, and its glyphs are two bits, 1 the ink and 2 the paper, the 525's display page.21
A skipped pixel in an encoded picture is transparent, not background, which is what lets an icon be drawn over a screen already painted.20 Which of Logitech's pictures leave pixels undrawn is per model, for example the Harmony One's gauges.
Two size classes. The pictures base slot 11's programs name are icons, 245 to 1765 bytes. The ones a mode record's program names are full screens: 128 by 128 on arch 14, 128 by 160 on arch 8 and 176 by 220 on arch 12, which is the Harmony One's panel.2 The icons' strides are 12 on the Harmony 600 and 700, 16 to 19 on arch 8 and 20, 22 or 88 on the Harmony One, over 10, 11 or 18 rows.22
Placing a picture, opcodes 2 and 3¶
Two opcodes draw a picture, each naming it in its last three operand bytes, and 4548 of 4548 opcode 3 instructions in the configurations name a picture. Which architecture uses which: arch 12 emits no opcode 3 at all, arch 9 emits nothing else, and arch 8 and arch 14 name most of their pictures with opcode 2 and two of them with opcode 3.17
They are not two spellings of one instruction. Opcode 2 draws a whole picture at an origin:18
+0x00 u8 x
+0x01 u8 y
+0x02 u24 the picture's address
Opcode 3 is a region copy, nine operand bytes, the destination first:2324
+0x00 u8 dx where on the display it lands
+0x01 u8 dy
+0x02 u8 sx where in the picture it comes from
+0x03 u8 sy
+0x04 u8 w the region's size in pixels
+0x05 u8 h
+0x06 u24 the picture's address
Read as stated, every destination rectangle fits its display and every source rectangle fits the picture it
names, 3540 of 3540; swapping the two pairs puts 292 of the 708 asymmetric arch 8 instructions outside their
own picture, against none as stated.24 On arch 9 the asymmetric ones settle the same order: all 34 are
a one pixel rule at (0, 12) under a page title, and the page opcode 22 has just selected contains the first
pair and not the second, 55 of 55.23 2624 of the 3540 copy a region onto itself, a page strip drawn
where it already sits; why is not read, and it costs nothing since the copy is idempotent.24
Where the bank starts¶
Where the bank starts is stated three ways, and the third needs no pointer slot. Base slot 17 names it, two bytes in front, on arch 8, 9 and 14.19 Arch 12 uses that slot for the touch hit map, modes and keys, so there the bank is found by searching upward from the end of the named content for the one start whose walk lands exactly on the trailer and contains every picture a program addresses. Exactly one start satisfies both, except in the arch 9 safe mode container, where two do because two of its four pictures are addressed by nothing.1617 Both routes need the section readers. The third needs only the trailer's position, which the framing states, and it is what reads on arch 10, where no slot reader is trusted:25
- walk from every offset in the blob, keeping the offsets whose walk lands exactly on the trailer
- discard any whose pictures exceed 256 pixels in either axis, which is
PICTURE_CEILING - take the survivor with the most pictures, which is then the lowest
It agrees with the reader route on 14 of 14 containers whose bank that route can locate, start address
and picture count both, over four architectures. Step 3 alone is right on 9 of the 14 and step 1 alone on 4,
so both filters are load bearing. The ceiling is a plateau: 224, 256, 400 and 1024 give the identical answer
everywhere, and 180 does not, because it is below the Harmony One's 220 pixel backgrounds.25
pictureBankByClosure, gspm.picture_bank. What it finds on the Harmony 890 and 895 is their memory
page.
The display size¶
A configuration states its own display size, twice. The screen programs say it: opcode 2 as an origin
plus the picture's own size, opcode 3 as dx + w by dy + h; nine containers state it both ways and agree
exactly, on arch 8 and arch 14, and on arch 9 opcode 3 is the only witness.24 And the largest picture
in a bank is the display size, which agrees on all four architectures that state one.25 Both are
SCREEN_SIZES.
| architecture | display |
|---|---|
| arch 8 (Harmony 880 and 885) | 128 by 16020 |
| arch 9 (Harmony 525) | 96 by 6420 |
| arch 10 (Harmony 890 and 895) | 128 by 16025 |
| arch 12 (Harmony One) | 176 by 22020 |
| arch 14 (Harmony 600, 650 and 700) | 128 by 12820 |
Every architecture's drawn text stops just inside its own figure, and the pen advances nothing past a
glyph's stated width: the gap between letters is a background column the glyph itself carries.20
packages/config/src/screens/render.ts draws a page from these, and every mode page of every container renders with
no picture and no glyph unresolved.20
Writing a picture or a glyph back¶
A picture and a glyph are written back from their pixels by one rule, measured on arch 8, 10, 12 and 14 and not on arch 9:26
- kind: encoded (1) when any pixel is undrawn, raw (0) otherwise; no encoded picture in the configurations draws every pixel;
- stream, kind 1: per row, left to right, maximal runs of undrawn and drawn pixels, each cut at 127
(measured for a skip only: no drawn run in the configurations exceeds 122); an undrawn run is
0x80 | n, a drawn run isnand itsnpixels high byte first; the row's trailing undrawn run is written;0x80between rows,rows - 1of them;0x00after the last row; - a glyph, base slot 7: its width byte, then the same stream with its pixels high byte first, as a picture's, since the firmware sends both to the panel in stored order through one routine.27
The format admits other streams for the same pixels, a row without its trailing skip for one; Logitech's
compiler emits this one for every picture and glyph of the 37 containers measured, so a re-encoded Logitech
image is its original bytes.26 encodeBitmap, encodeGlyph.
Base slot 11: the screen program table¶
+0x00 u16 count
+0x02 u24 address[count]
One of the six pointer arrays. Each entry is a screen program, and the table's one reader
is action 0x73, which queues the program.128 On a Harmony 700 configuration 5703 of the 5711
entries are the same two instruction program, queue one action list instruction and end, so the table is
mostly indirection.5
Only entries 0 to 255 can run. Action 0x73 indexes the table with its operand's low byte, read on the
Harmony 600 0.2, the Harmony 650 0.2 and 0.4, the Harmony 700 2.8 and the Harmony One 3.4; on the four arch 14
images the table is sought at that one site and no other. So an operand of 256 or more runs entry
operand & 0xff.28
What Logitech's compiler keeps in the table differs by platform: the program in the screen's corner that draws the sending mark on the Harmony 600, 650 and 700, and on the Harmony One a table generated from the clock's programs and every base slot 14 case's program.
Status screens¶
The container the firmware falls back on is a library of status screens: its screen programs are the messages a remote shows when it is not showing a configuration, 30 on a Harmony One and 35 on arch 14, the arch 12 set being the arch 14 set with its first five removed and the shared 30 in the same order. Five images across two architectures agree, by two routes, a read off a remote's own flash and Logitech's own firmware packages. Three of them are about the configuration and they are three different screens, an invalid one, a corrupted one and a request to go to the website and update settings, so which one a remote shows says what went wrong.29 Where the container sits is on each platform's memory page, the Harmony One's and the Harmony 600, 650 and 700's.
The screen shown is a status code plus a base per container. The firmware raises a numbered status, the same number on every architecture, and displays the record at that number plus the container's base: 0 on the Harmony One, 5 on arch 14 and 11 on the Harmony 525, whose records are read here in a user configuration rather than a status container. One base per container fits every screen, and neither neighbouring offset does.30 Where arch 9 and arch 14 add their base is not read36.
Base slot 7: the font table¶
A count prefixed pointer array, indexed by opcode 16 of the screen language; Logitech's configurations hold 5 to 18 entries. Each entry is one typeface:31
+0x00 u8 glyph height in pixels, shared by every glyph in the set
+0x01 u8 the first glyph code
+0x02 u8 the glyph count
+0x03 u24 glyph[count] NULL for a code this configuration never draws
unless +0x02 is zero, and then the count is at +0x01 and the first code is 1. That is a
discriminator and not an explanation, and it is what every arch 12 user configuration needs. A code's index
is code - first.8 The arch 8 firmware never applies the discriminator: it always takes +0x01 as the
first code and uses neither the height nor the count37, and none of the 140 font sets of the arch 8
configurations read has a zero count38.
and each glyph
+0x00 u8 width in pixels
followed by one byte operations: 0x00 ends the glyph, a byte with bit 7 set skips that many background
pixels, and a byte below 0x80 introduces that many literal pixels of two bytes each. A row is exactly
width pixels and the next begins as soon as that many are accounted for; the height comes from the set
header rather than from the glyph.31 Arch 9 packs a glyph differently, two bits a pixel, the 525's
display page.21
The count is the same for every set in every generated configuration, 46 to 76, so it is a character set size chosen per configuration; the arch 9 safe mode container declares 91, 90, 50 and 90 in one container, so the field is per set and a generator happens to choose once.31
A set holds the glyphs its own strings draw and no others, so a code the configuration draws in one font
can be NULL in another. On one Harmony One configuration the font that titles every device page cannot spell
LG, while the row font of the same height carries the whole drawn alphabet, so whether a text can be
drawn is a question per character per font.41
Which sets are one typeface is shown by the glyphs they already share, since nothing in a set's header names
its face and two sets of one height can be two faces. Over the eight Harmony 880 and 885 configurations read, five
of skin 15 and three of skin 17, every pair of sets of one height either draws every non blank character both hold
in the same bytes, 280 pairs sharing 5 to 67 such characters, or draws none of them alike, 294 pairs; no pair agrees
on some and not others.40 So a glyph one configuration's set lacks can be copied from another
configuration's set that agrees with it on every glyph they share, which is how borrowGlyphs in
packages/config/src/drawing/glyphborrow.ts fills a letter a compile never drew, refusing a donor set that shares fewer
than three. A code given to a character this way is NULL in every set it was not copied into, and the arch 8
firmware checks neither a NULL pointer nor the count37, so a text may use it only in those sets.
Whether sets agree the same way across configurations of the other architectures is not checked.36
A glyph code is one based in every generated configuration, because zero ends an inline string and nothing can name a glyph by the code zero. It is the header that says so, not the format: the arch 9 safe mode container's sets start at 32 and its codes are ASCII.8
Three checks, over every container but the Harmony 525's, whose glyphs are packed differently; the totals including it are 5220 glyphs and 67303 codes:31
- every row comes to exactly
width, for 4838 glyphs, with no stream ending mid row; - every glyph decodes to exactly the height its set declares, 3933 of 3933 on the twelve containers it was first measured on;
- every inline string resolves: 63327 glyph codes land on a non-NULL glyph of the font their own program selected, none out of range and none on an empty slot.
Decoding with a one byte pixel instead fails on almost all of them, which is the calibration.31
Read the sets and glyphs with gspm.font_sets, gspm.Container.images and gspm.Container.glyph; draw them
with tools/screen_dump.py --images or --strings.
A font set is findable with no pointer slot¶
Base slot 7 names the table, so fontSets cannot answer where the slot mapping is not trusted, on arch 10. A
set is findable anyway because of how much it has to get right at once: a candidate is accepted only if
every nonzero address in its array decodes into a glyph whose rows tile exactly to its own declared
width, at the set's declared height. fontSetsByClosure is exact against the slot route on 14 of 14
containers, address for address.32
Two thresholds, and they are separate because a real set can be almost entirely null, one Harmony One set
declaring 73 pointers of which 66 are: the array must hold at least 8 pointers and at least
FONT_SET_MINIMUM_GLYPHS of them must decode. The second is a plateau, exact anywhere from 1 to 5, where 0
admits 179 false positives and 8 loses four real sets.32
The font table is not next to the picture bank: over thirteen containers its top sits 1918 to 48385 bytes below the bank, so the bank does not locate it.32 What the closure finds on the Harmony 890 and 895 is their memory page.
What a glyph code means, and how the text is recovered¶
A code is not a character and not an encoding. It is assigned per configuration, in the order characters
first appear in the generator's own string list, which is not the order the strings sit in the file. So two
configurations of the same remote agree about the codes their shared boilerplate needs and diverge from the
first code the owner's own strings reach: in two Harmony One configurations code 20 is a colon in one and
the digit 1 in the other.33
What is stable is the typeface. The same character at the same size has the same pixels in every configuration of a skin, so a code is resolved by matching its glyph's pixels:33
- a shape is keyed by
(font height, pixels). Height is part of it becauseIandlare the same pixels at several sizes, and a key blind to size reads a talllas anIfrom a smaller set; - evidence is intersected across the sets a code appears in, not counted: a size where two characters share a shape says less than a size where they do not;
- a blank glyph is a space and is evidence about nothing else. A set carries a blank slot for codes it does not draw, and the same code is a real letter in another set;
- a shape that draws two characters keeps both. Eight do, all
Iagainstl, and a code that only appears at those sizes stays ambiguous and is reported as such.
Seven typefaces cover the configurations read, one alphabet each: the Harmony One's skin (every arch 12 user
configuration), arch 14 (the Harmony 600 and 700), arch 8, the Harmony 525, and the safe mode containers of
arch 9, arch 12 and arch 14. The arch 12 safe mode container shares not one shape with the arch 12 user
configurations, so an alphabet is per typeface and not per architecture or per remote.33 The arch 9
safe mode container's codes are ASCII outright, its sets starting at code 32, which is how the field at
+0x01 was read and how the 525's user configuration was decoded without reading its glyphs: the two share a
typeface.833
170920 of 170922 drawn glyphs come back as characters. The two that do not are one code drawn once in each Harmony 700 configuration. The closure is that a decoded string turns up verbatim inside a base slot 0 name, which is ASCII and which this decoder never reads: fifteen of the sixteen containers with a name tree do it, between three and eleven distinct strings each. The exception is the arch 9 safe mode container, which names one variable and draws none of it because it holds no devices.33
A glyph code is one character and a character is one code, which is the generator's own rule: the code
is that character's position in the string list it walks. As a check it found three hand read labels that
were wrong, each showing up as a character sitting on two codes at once. As a resolver it settles the one
pair no shape distinguishes, I against l, and the other, O against a zero drawn without a slash:
whichever member another code has already settled is not available to this one.34
Read with characterMap, screenStrings and textCoverage in packages/config/src/screens/text.ts, the alphabets
in packages/config/src/screens/alphabets.ts, and make text for the per container figures.
The language a configuration is in¶
A configuration's interface is localised and no field says which language. Every word a remote shows is
in the file as a run of glyph codes, in the language of whoever generated it, and the language is a property
of a few hundred strings and of nothing else. Twelve of the thirteen user configurations read are English and
one is Dutch, and the language is inferred from Logitech's own menu and Help wording, which answers on all
thirteen with every rival language at zero and refuses on the three containers that are nobody's
configuration. A third to a half of the mode pages are the Help walkthrough, whose wording is that template
with the owner's own device names in it.35 configLanguage, LANGUAGE_MARKERS.
A page of the Harmony 880 and 885¶
A device's pages and the device list are one grammar on these remotes, a page of cells beside the eight keys next to the screen, two columns of four, filled left then right, row by row. Over every page of the eight configurations read39:
- a label's line 18 pixels below its row's top starts at x 3 in the left column and ends at x 125 in the right, the rows 32 apart from 24, and is never wider than 59 pixels;
- every such line is followed by its cell's separator, a picture at x 0 for the left column and x 64 for the right, at the row's top;
- a page counter,
n OF m, is two arrow pictures at x 25 and 88 of row 152 and three texts in one font, the number ending at x 52,OFat 57 and the total at 75.
A device mode of one page draws in the mode's own program, the page and the mode naming the same address; the device modes of one configuration share the tags of their own key list, its handlers and the content of the list their programs queue; and every device page stores its key list in the compiler's tag order, names the same lists in its pool copy, and binds no list that opens with a beep39. The device list's copies are activities and devices.
For a writer¶
- A string is shared: opcode 4 names another program's bytes, so editing a string in place changes every draw that names it.9 Same family as the shared infrared duration blocks, infrared records.
- Opcode 22's width depends on the architecture, and on arch 12 its call does not nest.101312
- Opcode 1 counts its rows in eight bits, so a rectangle reaching row 256 draws nothing.6
- A picture's position is implied by everything before it, so inserting or resizing one moves every
later address.16 Read with
gspm.bitmapsandgspm.bitmap_at. - The renderer loads only the low byte of a picture's stride and row count, so a value above 255 is taken modulo 256 with no error, and its row loop stops drawing at row 128 but still reads the rest of the picture. Read on the Harmony 700 2.8 image18. On arch 8 the low byte rule holds and the row stop is 16037; other images are not checked36.
- On arch 8 (Harmony 880 and 885): opcodes 22 and 23 do not exist and an unknown byte silently ends a page; the bytes after a switch run when no case matches, so an edit must keep them; keep opcodes 1 and 21 inside 128 by 160 and never a width of 0; a text byte is one code, so every byte a string draws must be a code of the font in force, on a glyph that is not NULL.37
- A program of ours that is queued takes a free base slot 11 entry below 256 and is never appended past
it, since an operand of 256 or more runs entry
operand & 0xff.28 - A picture or a glyph re-encodes to its original bytes by the rule above, and an editor still carries every image it did not change through unchanged.26
- The language cannot be changed by editing a field, because there is none: it means regenerating every drawn string.35
- Adding text means building a font set and numbering it, because the codes are the generator's own and nothing looks a character up.33
-
Read in the firmware. Section 40 ↩↩↩↩
-
Measured in configurations. Section 53 ↩↩↩
-
Measured in configurations. Section 54 ↩↩↩
-
Read in the firmware. Section 54 ↩
-
Measured in configurations. Section 40 ↩↩
-
Read in the firmware. Section 425 ↩↩↩
-
Read in the firmware. Section 46 ↩
-
Measured in configurations. Section 78 ↩↩↩↩
-
Measured in configurations. Section 121 ↩↩↩↩
-
Read in the firmware. Section 64 ↩↩
-
Measured in configurations. Section 64 ↩
-
Measured in configurations. Section 185 ↩↩
-
Measured in configurations. Section 85 ↩↩↩↩
-
Read in the firmware. Section 101 ↩
-
Measured in configurations. Section 84 ↩
-
Measured in configurations. Section 55 ↩↩↩
-
Measured in configurations. Section 146 ↩↩↩↩
-
Measured in configurations. Section 62 ↩↩
-
Measured in configurations. Section 63 ↩↩
-
Measured in configurations. Section 50 ↩
-
Measured in configurations. Section 118 ↩↩↩
-
Measured in configurations. Section 148 ↩↩↩↩
-
Measured in configurations. Section 179 ↩↩↩↩
-
Measured in configurations. Section 363 ↩↩↩
-
Read in the firmware. Section 367 ↩
-
Read in the firmware. Section 369 ↩↩↩
-
Measured in configurations. Section 244 ↩
-
Read in the firmware. Section 249 ↩
-
Measured in configurations. Section 180 ↩↩↩
-
Measured in configurations. Section 124 ↩
-
Measured in configurations. Section 149 ↩↩
-
Measured in configurations. Section 173 ↩