Commit Graph
7 Commits
Author SHA1 Message Date
dsh ac60cdaef9 hardware: the instruction lamps show the instruction at ip, not the last one
ci / linux-arm64 (push) Failing after 13m3s
Clarifying what the INSTRUCTION row means: it is the opcode at the program counter, so
while running it is the instruction executing and while stopped it is the next one to
execute -- which is what you want when single stepping.  On halt the lamps are gated
off, because past the end the ROM reads zeros and opcode 0 is a move, which would
show a lie.

That choice also keeps the panel rule intact: ip is state, and the last executed
instruction would be history, the same category as the step counter that was removed.
A last instruction display would need a 74LS273 latch and an end of instruction strobe,
and would lag by one during RUN, mixing state and history on one panel.  Recorded in
panel.md together with the halt detail.
2026-11-24 19:59:06 +08:00
dsh c4e081c5e0 hardware: the panel in the Altair 8800 idiom
ci / linux-arm64 (push) Successful in 4m54s
Blue-grey plate with white legends, and the 8800 arrangement: indicator rows stacked
at the upper left (data pointer, cell, instruction), the toggle bank below them with
numbered positions, and the function switches pressed into the bottom edge.  The
toggles are the chrome bat type the 8800 made famous, not the slide switches that were
there before.  The cartridge slot and the DE-9 keep the right hand side, where the 8800
puts its own I/O.

The cell row now runs bit 7 to bit 0 left to right with the wedge and its LSB mark at
the right hand end, which is how the 8800 labels its rows: every lamp numbered, in a
line.

Colour is a taste question, so panel.md says explicitly that the blue is a reference to
the 8800 and swapping it back to the beige and orange costs nothing but paint.
2026-11-24 19:54:56 +08:00
dsh da57096dc9 hardware: every lamp becomes a neon, and the CELL rule is clear of the dial
ci / linux-arm64 (push) Successful in 4m45s
The dial was overlapping the CELL group rule: it is smaller and lower now, with the
buttons under it, and the rule runs clear above the top lamp.

The real question was cost of going all neon.  The panel has 22 lamps -- eight on the
cell dial, eight instruction lamps, six on the dp row -- so it is about 65 CNY with
NE-2 and about 150 with 10 mm NH-4 lamps and illuminated buttons, against roughly 35
for 6 V filament bulbs.  The money is not the issue; the high voltage is.

Notes recorded in panel.md: 65 to 90 V strike, 0.3 to 1 mA hold, so all 22 lit draw
two watts; ULN2803 is only rated for 50 V, so the drivers have to be MPSA42; and DC
electroplates the cathode until one side blackens, which is why old equipment lit
neons from AC -- either the rail or a reverse diode across each lamp.  NE-2 glow dots
are 2 mm, which is small on a 200 mm panel, so the bigger domestic neons are the ones
that actually look impressive.
2026-11-24 19:18:00 +08:00
dsh fded52f0b0 hardware: the 64 cell matrix goes away; six neons say where dp is
ci / linux-arm64 (push) Successful in 4m45s
The matrix could not answer the one question a pointer display has to answer: where
am I now.  A lamp cannot change colour and a matrix cannot light one cell on its own,
so the matrix was showing a field of bits with no indication of which one the machine
was standing on.  Eleven square centimetres and 64 bulbs for that is a bad trade, so
it is gone.

What remains answers three questions and nothing else: the pointed cell byte on the
eight lamp dial, the current instruction on the eight instruction lamps, and the
pointer on six red neons fed straight from the dp counter.  The buttons are now on
the plate too: STEP, START, HALT, RESET, with STEP resolved as staying -- single step
is the point of a trainer.

panel.md follows: the display table loses the matrix row, the button question is
closed, and section 3.1 explains why a matrix was the wrong device rather than the
pointer being hard to show.
2026-11-24 19:15:07 +08:00
dsh 6a83d97056 hardware: dp gets six binary neon lamps instead of a cursor
ci / linux-arm64 (push) Successful in 4m53s
The crosshair was a compromise: sixteen lamps to say where one pointer is.  Six
red neons on the dp counter outputs say it exactly, need no decoder (open collector
buffers are enough for neon at two milliamps), and leave the matrix to do its own
job -- showing the LSB of every cell and nothing else.

It also fits the display rule better than it looks: six bits are the machine own
representation of its pointer, not a decimal readout, so results and step counts
still come only out of the serial port.  panel.md records the decision with the two
alternatives that lost: the sixteen lamp crosshair and a red neon ring in every cell.

Mockup: the row sits under the matrix, bit 5 on the left, index digits beneath.
It is showing 33, which is bit 5 and bit 0 lit.
2026-11-24 19:13:06 +08:00
dsh 7144e8fefe hardware: the pointer becomes a crosshair cursor, because one lamp cannot be special
ci / linux-arm64 (push) Successful in 5m0s
The question was what kind of lamp can turn from yellow to red, and the honest
answer is none, and it would not help anyway: in a lamp matrix a single cell cannot
be driven on its own.  The matrix lights cells by row and column, so changing either
line lights eight cells, and giving every cell its own override would mean 64 extra
gates or 64 separate lines.

So the cursor is a separate indicator.  Eight red neons down the left of the matrix
and eight across the top form a crosshair, and the lit pair crosses at the data
pointer.  dp is six bits, which splits exactly into dp[5:3] for the row and dp[2:0]
for the column: sixteen lamps, zero decode logic.

The alternative is a red neon ring in every cell, driven as a second 8 by 8 matrix
that shares the sixteen drive lines and is selected in time, so the red dot lands on
the cell itself.  That is 64 more neons and twice the panel density; the crosshair is
recommended for now.  panel.md records both, with the reasoning.
2026-11-24 19:08:15 +08:00
dsh f69925817c hardware: panel spec, and the display rules written down as rules
ci / linux-arm64 (push) Successful in 5m6s
hardware/panel.md is the orderable version of the mockup: mechanical sizes (200 x 100
mm plate in a 220 x 130 x 70 mm case), the grid, the section list, the connector
types (2 x 22 card edge slot, DE-9), the electrical budget (ULN2803 arrays, an 8 row
by 8 column lamp matrix, a 555 for the cursor blink), and the rule the panel has been
converging on -- every piece of information has exactly one representation, and all
numbers go out of the serial port.

One item left open on purpose: whether the button row keeps STEP.  GPT render shows
START / HALT / RESET, but single step is the whole point of a trainer, so it should
either stay as a fourth button or START should distinguish tap from hold.  That has
to be settled before the plate is drilled.
2026-11-24 19:05:25 +08:00