hardware: the cell dial comes back, inside the Altair layout
ci / linux-arm64 (push) Successful in 5m32s
ci / linux-arm64 (push) Successful in 5m32s
The round cell display was right: eight neons on a circle, bit 0 at nine o'clock marked with the wedge, the rest numbered 1 to 7, and it sits as the one instrument on the left of an otherwise row based panel. The three rows move right and narrow to 7.4 mm pitch, the toggle bank follows them, the function switches stay along the bottom edge, and the cartridge slot and the DE-9 move to the far right so nothing overlaps.
This commit is contained in:
1 parent
c4e081c5e0
commit
9fcc9675df
2 files changed
+44
-30
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 61 KiB |
@@ -137,41 +137,55 @@ def main():
|
||||
width=max(1, p(0.25)))
|
||||
legend(d, 11.5, 17.0, "8-BIT COMPUTER · 64 CELL DATA RING")
|
||||
|
||||
# ---- column one: the pointed cell on a dial ----------------------------
|
||||
# The one round thing on an otherwise row-based 8800 panel, and it earns the
|
||||
# place: the eight bits of the cell, with bit 0 at nine o'clock marked by a
|
||||
# wedge because that is the bit biz and rnz test.
|
||||
legend(d, 11.5, 23.6, "CELL")
|
||||
ccx, ccy, cr = 37.0, 49.0, 15.0
|
||||
d.ellipse([p(ccx - cr - 3.0), p(ccy - cr - 3.0), p(ccx + cr + 3.0),
|
||||
p(ccy + cr + 3.0)], outline=(84, 98, 112), width=max(1, p(0.3)))
|
||||
d.ellipse([p(ccx - cr), p(ccy - cr), p(ccx + cr), p(ccy + cr)],
|
||||
outline=(150, 166, 180), width=max(1, p(0.2)))
|
||||
import math
|
||||
bits = [1, 0, 0, 1, 1, 0, 1, 0] # bit 0 .. bit 7, clockwise from nine
|
||||
lr = 3.3
|
||||
for i, bit in enumerate(bits):
|
||||
a = math.pi - i * (2 * math.pi / 8)
|
||||
px, py = ccx + cr * math.cos(a), ccy + cr * math.sin(a)
|
||||
lamp(d, g, px, py, lr, bool(bit))
|
||||
if i:
|
||||
lx = ccx + (cr + lr + 3.0) * math.cos(a) - 0.7
|
||||
ly = ccy + (cr + lr + 3.0) * math.sin(a) - 1.0
|
||||
d.text((p(lx), p(ly)), str(i), font=font(1.2), fill=LEGEND_DIM)
|
||||
tip = (ccx - (cr + lr + 0.8), ccy)
|
||||
base = (ccx - (cr + lr + 5.2), ccy)
|
||||
d.polygon([(p(tip[0]), p(tip[1])), (p(base[0]), p(base[1] - 2.2)),
|
||||
(p(base[0]), p(base[1] + 2.2))], fill=LEGEND)
|
||||
d.text((p(base[0] - 3.4), p(ccy - 1.0)), "0", font=font(1.4), fill=LEGEND)
|
||||
|
||||
# ---- indicator row 1: data pointer -------------------------------------
|
||||
legend(d, 11.5, 23.6, "DATA POINTER")
|
||||
legend(d, 66.0, 23.6, "DATA POINTER")
|
||||
dp = 33
|
||||
for i in range(6):
|
||||
x = 12.8 + (5 - i) * 8.4
|
||||
x = 67.4 + (5 - i) * 7.4
|
||||
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: the pointed cell, bit 7 .. bit 0 ------------------
|
||||
legend(d, 11.5, 39.0, "CELL")
|
||||
bits = [1, 0, 0, 1, 1, 0, 1, 0] # bit 7 .. bit 0, left to right
|
||||
for i, bit in enumerate(bits):
|
||||
x = 12.8 + i * 8.4
|
||||
lamp(d, g, x, 45.6, 2.0, bool(bit))
|
||||
d.text((p(x - 0.6), p(48.8)), str(7 - i), font=font(1.2), fill=LEGEND_DIM)
|
||||
d.polygon([(p(12.8 + 7 * 8.4 + 3.4), p(45.6)),
|
||||
(p(12.8 + 7 * 8.4 + 6.0), p(45.6 - 1.9)),
|
||||
(p(12.8 + 7 * 8.4 + 6.0), p(45.6 + 1.9))], fill=LEGEND)
|
||||
d.text((p(12.8 + 7 * 8.4 + 6.6), p(44.7)), "LSB", font=font(1.15),
|
||||
fill=LEGEND_DIM)
|
||||
|
||||
# ---- indicator row 3: instruction --------------------------------------
|
||||
legend(d, 11.5, 55.0, "INSTRUCTION")
|
||||
# ---- indicator row 2: instruction --------------------------------------
|
||||
legend(d, 66.0, 39.0, "INSTRUCTION")
|
||||
for i, op in enumerate("><+-[].,"):
|
||||
x = 12.8 + i * 8.4
|
||||
lamp(d, g, x, 61.4, 2.0, i == 1)
|
||||
d.text((p(x - 1.1), p(64.4)), op, font=font(1.6), fill=LEGEND)
|
||||
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)
|
||||
|
||||
# ---- toggle bank: the input byte ---------------------------------------
|
||||
legend(d, 11.5, 70.0, "INPUT BYTE")
|
||||
legend(d, 66.0, 55.4, "INPUT BYTE")
|
||||
for i in range(8):
|
||||
x = 12.8 + i * 8.4
|
||||
toggle(d, x, 77.0, up=(i % 3 != 0))
|
||||
d.text((p(x - 0.6), p(82.6)), str(7 - i), font=font(1.2), fill=LEGEND_DIM)
|
||||
button(d, 92.0, 77.0, 4.0, RED_BTN, "SEND")
|
||||
x = 67.4 + i * 7.4
|
||||
toggle(d, x, 62.6, up=(i % 3 != 0))
|
||||
d.text((p(x - 0.6), p(68.2)), str(7 - i), font=font(1.2), fill=LEGEND_DIM)
|
||||
button(d, 130.6, 62.6, 3.4, RED_BTN, "SEND")
|
||||
|
||||
# ---- function switches along the bottom --------------------------------
|
||||
for x, colour, label in ((17.0, RED_BTN, "STEP"),
|
||||
@@ -181,15 +195,15 @@ def main():
|
||||
button(d, x, 88.4, 3.5, colour, label)
|
||||
|
||||
# ---- right side: cartridge and serial ----------------------------------
|
||||
legend(d, 106.0, 23.6, "PROGRAM / 27C512")
|
||||
card_slot(d, 106.0, 27.6, 50.0, 12.0)
|
||||
legend(d, 106.0, 44.6, "SERIAL / 6850")
|
||||
de9(d, 106.0, 48.6, 26.0, 10.0)
|
||||
legend(d, 140.0, 23.6, "PROGRAM / 27C512")
|
||||
card_slot(d, 140.0, 27.6, 46.0, 12.0)
|
||||
legend(d, 140.0, 44.6, "SERIAL / 6850")
|
||||
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")):
|
||||
d.text((p(106.0), p(65.0 + i * 3.6)), line, font=font(1.3),
|
||||
d.text((p(140.0), p(64.4 + i * 3.6)), line, font=font(1.3),
|
||||
fill=LEGEND_DIM)
|
||||
|
||||
img = Image.alpha_composite(
|
||||
|
||||
Reference in new issue
Block a user