hardware: the medium only has to fit in a hand -- rank the candidates by size
With LOAD then RUN settled, the medium only has to deliver 19 to 51 KB once, so a floppy is pure overkill and the useful axis is size. Section 9 now ranks the candidates by area: * a DIP-8 EEPROM or SPI flash (24C512, 25Q64) is a 10 mm square in an 8 pin socket -- the ROM cartridge model, no filesystem at all because the chip is the address space, about 3-10 CNY, writable with any CH341A class programmer; * microSD is 15 by 11 mm and holds the whole tape library; the loader reads raw sectors from LBA 0, so no FAT parser is needed either (dd from a PC writes the card); * a credit-card punched card at 2 mm pitch holds about 1000 instructions, which runs hello (577) or full_add (95) but none of the big programs -- good as an art cartridge, not as the main medium; * a microcassette is 50 by 33 by 8 mm, a real small tape, 150 B/s so a 19 KB image loads in two minutes, drives second hand; * the 3.5 inch floppy, 90 by 94 mm, stays only if you want the clack. Both small options also drop the filesystem question: one reads raw blocks, the other is memory. A small AVR can act as the tape drive for a TTL machine behind a DATA/STROBE handshake, and on an FPGA the loader is a few dozen lines. The packer gains --at-lba 0 for the card case and --i2c-image for the programmer case; only the floppy route would need --fat12.
This commit is contained in:
1 parent
9d9d64a1d9
commit
e5a63d0196
1 file changed
+17
-11
+17
-11
@@ -261,19 +261,25 @@ rnz, 最低位 == 1: ip-- ; 深度=0
|
||||
* 括号栈、`ip` 计数器、64 格数据环都不变;
|
||||
* 机器开机跑一小段 ROM 里的 loader(或面板上一个 LOAD 键),之后就是纯 RAM 执行。
|
||||
|
||||
按这个架构,**软盘是完全合格的介质**,而且今天的可得性比想象中好:
|
||||
按这个架构,介质就只剩"能把 19~51 KB 的镜像一次性送到位"这一个要求,于是**大介质(软盘、
|
||||
卡带)反而是最不划算的** —— 面积越大越难安置,仪式感也不来自尺寸。按面积从小到大:
|
||||
|
||||
| 选项 | 现在的可得性 | 说明 |
|
||||
|---|---|---|
|
||||
| USB 软驱(3.5",1.44 MB) | 仍在量产,¥50~120 | 走 USB 大容量存储(UFI),只给**整扇区**读写,所以要一个 µC/树莓派当 host 把扇区喂给机器 —— "介质是真的,读盘的是现代小板" |
|
||||
| 内置 34 pin 软驱 + N82077AA 一类控制器 | 二手/NOS,驱动器 ¥50~200,控制器芯片更少 | 全部复古件,接口是并行的(数据 + 寄存器),要自己写 MFM 扇区状态机;坏了难修 |
|
||||
| Gotek / USB 软驱模拟器 | 新货,¥100~200 | 插 34 pin,放 .img 文件;**没有真介质**,但最可靠 |
|
||||
| 音频卡带 | 空白带仍在卖,随身听遍地 | 1200 baud ≈ 150 B/s:19 KB 镜像装 2 分钟 ✓ 装载体完全够用;执行仍在 RAM |
|
||||
| EEPROM + 面板"选程序" | 一直好买 | 内置程序(monitor / 计算器 / hello)走它,不需要"换带" |
|
||||
| 介质 | 尺寸 | 容量/速度 | 接口 | 说明 |
|
||||
|---|---|---|---|---|
|
||||
| **DIP-8 EEPROM/SPI flash**(24C512、25Q64) | **10×10 mm** 的芯片,插在 8 pin 座上 | 64 KB~8 MB;SPI 几十 MB/s、I²C 400 kHz(64 KB 约 2 s) | 2~4 根线 | **"ROM 卡带"模型**:底座就是插槽,拔插即换带,不用文件系统(EEPROM 整个就是内存);¥3~10,写片用 CH341A 那种烧写器 |
|
||||
| **microSD** | **15×11 mm** | 任意;SPI 模式几百 KB/s | SPI(4 线) | 现代的"软盘":一块卡装整个纸带库。**不需要 FAT** —— loader 直接从 LBA 0 顺序读,把 19 KB 读到 RAM 就完事;¥15 起,读卡器遍地 |
|
||||
| 信用片大小的穿孔卡 | 85×54 mm | 2 mm 孔距 ≈ 1000 条 | 光电/触点 + 步进 | 只够 `hello`(577 条)这种演示;当"艺术品卡带"很好,当主介质不行 |
|
||||
| microcassette | **50×33×8 mm** | 150 B/s → 19 KB 约 2 分钟 | 音频解码(FSK) | 真·小磁带,空带还有 NOS;装载体够用,驱动机只有二手 |
|
||||
| 3.5" 软盘 | 90×94 mm | 1.44 MB | 见上 | 太大,除非你就要那个"咔哒"一声 |
|
||||
|
||||
**软盘作为"直接执行的纸带"也不是不行**:300 rpm、18 扇区/轨 → 46 KB/s 的顺序流;
|
||||
5 万条(19 KB)的纸带一轮 0.4 s,配循环栈(只往前流)就能跑 —— 代价是每读一个字符要等
|
||||
0.4 s,而且必须自己做 MFM 解码/扇区同步。相比之下 **LOAD→RUN** 简单一个量级,还快 100 倍。
|
||||
**微控制器/flash 方案与 LOAD→RUN 天然合拍**:机器这边只要一个"从 SPI 依次收字节 → 写进
|
||||
RAM → 跳过去"的 loader(FPGA 里几十行;TTL 里可以用一片小 AVR 当"磁带驱动器",
|
||||
机器只看到一个 `DATA/STROBE` 握手)。**microSD 和 DIP-8 EEPROM 都不用文件系统**:
|
||||
前者按块读原始扇区,后者本身就是一片地址空间 —— 没有任何 FAT/文件解析的复杂度。
|
||||
|
||||
配套的软件工具因此很简单:`tape pack` 输出 `.bin`,需要时加 `--at-lba 0`(把镜像贴到
|
||||
microSD 的原始扇区里,用 dd 写卡)或 `--i2c-image`(给 EEPROM 烧写器的 hex)。
|
||||
软盘那条路若真要做,才需要 `--fat12 disk.img`。
|
||||
|
||||
软盘的真实风险不在买不到驱动机,而在**介质**:20~30 年的 3.5" 盘会发霉、掉磁;NOS 盘
|
||||
¥5~10 一片,多备几片、存两份镜像就没事。配套的软件工具很轻:`tape pack` 加一个
|
||||
|
||||
Reference in new issue
Block a user