hardware: instruction lamps labelled STP BTP ROR, and the NO NUMBERS line gone
ci / linux-arm64 (push) Successful in 4m47s

Two panel edits.  The eight instruction lamps are now labelled with the mnemonics from
the opcode enum -- STP BTP ROR FLB BIZ RNZ OUT INP -- instead of the ASCII characters.
On a panel the characters read as punctuation, and a lone bracket looks like a mistake;
the mnemonics also match the enum names in tape.hh, so the panel, the packing tool and
the RTL all say the same words.  Pitch went from 7.4 to 7.9 mm to fit three letters per
lamp.

The legend line "NO NUMBERS: RESULTS VIA SERIAL" is deleted: it was explaining the design
to someone reading the panel, which is not what a panel is for.  The rule it stated is
still in panel.md, where a rule belongs.
This commit is contained in:
dsh committed 2026-11-25 16:51:29 +08:00
1 parent c289ccead8
commit ae595fcac3
3 files changed
+15 -8

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

+5 -1
View File
@@ -21,7 +21,7 @@
| 区 | 位置 | 内容 |
|---|---|---|
| **CELL** | 列一 / 上行 | 8 颗灯泡成一圈:**bit 0 在 9 点带楔形、刻 `0`**,其余顺时针标 `1..7` |
| **INSTRUCTION** | 列二 / 上行 | 8 颗灯 + 符号 `> < + - [ ] . ,`,当前那条亮 |
| **INSTRUCTION** | 列二 / 上行 | 8 颗灯 + **助记符 `STP BTP ROR FLB BIZ RNZ OUT INP`**,当前那条亮 |
| **INPUT BYTE** | 左半 / 第四行 | **8 个拨动开关(chrome 拨杆,8800 那种)**,下面刻 `7 6 5 4 3 2 1 0`;右边红色 **SEND** 按钮 |
| **DATA POINTER** | 列三 / 上行 | **6 颗红氖泡**,二进制显示 `dp`(bit 5 在左,bit 0 在右) |
| **PROGRAM CARTRIDGE** | 列一 / 下行 | 卡边槽,插 27C512 卡带 |
@@ -29,6 +29,10 @@
| 按钮排 | 列二 / 下行 | **STEP · START · HALT · RESET**(见 §5 的待定项) |
| 铭牌 | 列二 / 下行 | 1 MHz · 8 bit · 64 格;27C512 + 6116 + 74LS;"NO NUMBERS ON THE PANEL: RESULTS VIA SERIAL" |
> 灯下面刻的是**助记符**而不是那八个 ASCII 符号(`> < + - [ ] . ,`):面板上符号会读成标点,
> 尤其 `[` / `]` 看着像谁忘了删的括号;助记符和 `r8forge/tape.hh` 里的 opcode 枚举同名,也方便对照。
## 3. 显示规则
**面板不显示任何数字。** 每个信息只有一个表示:
+10 -7
View File
@@ -172,12 +172,16 @@ def main():
lamp(d, g, x, 30.2, 2.0, bool((dp >> (5 - i)) & 1), CURSOR)
d.text((p(x - 0.6), p(33.4)), str(5 - i), font=font(1.2), fill=LEGEND_DIM)
# ---- indicator row 2: instruction --------------------------------------
# ---- indicator row 2: instruction, labelled with the mnemonics ----------
# STP BTP ROR FLB BIZ RNZ OUT INP, the names the opcode enum uses, rather than
# the eight ASCII characters: on a panel the characters read as punctuation,
# and `[` and `]` especially look like a bracket someone left behind.
legend(d, 66.0, 39.0, "INSTRUCTION")
for i, op in enumerate("><+-[].,"):
x = 67.4 + i * 7.4
lamp(d, g, x, 45.6, 2.0, i == 1)
d.text((p(x - 1.1), p(48.6)), op, font=font(1.6), fill=LEGEND)
for i, name in enumerate(("STP", "BTP", "ROR", "FLB", "BIZ", "RNZ", "OUT", "INP")):
x = 68.2 + i * 7.9
lamp(d, g, x, 45.6, 2.1, i == 1)
tw = d.textlength(name, font=font(1.35))
d.text((p(x) - tw / 2, p(48.9)), name, font=font(1.35), fill=LEGEND)
# ---- toggle bank: the input byte ---------------------------------------
legend(d, 66.0, 55.4, "INPUT BYTE")
@@ -201,8 +205,7 @@ def main():
de9(d, 140.0, 48.6, 26.0, 10.0)
for i, line in enumerate(("1 MHz · 8 BIT CELLS",
"27C512 + 6116 + 74LS",
"NO NUMBERS: RESULTS VIA SERIAL")):
"27C512 + 6116 + 74LS")):
d.text((p(140.0), p(64.4 + i * 3.6)), line, font=font(1.3),
fill=LEGEND_DIM)