13 releases (1 stable)
new 1.0.0 | Jan 15, 2025 |
---|---|
0.16.0 | Sep 27, 2024 |
0.15.0 | May 16, 2024 |
0.14.0 | Mar 29, 2024 |
0.7.0 | Nov 6, 2021 |
#114 in Emulators
34 downloads per month
19KB
374 lines
Altair 8800 / Teletype Emulator
This is an Altair 8800 / 88-SIO / teletype emulator, written with my 8080 emulator library. The 8080 processor speed is 2.1 Mhz.
To install:
cargo install teletype
You can configure the ROM file and the amount of RAM you want in the config file: ~/.config/teletype/config.toml
Example for Microsoft Basic 3.2:
[memory]
rom = "/Users/nicolasb/4kbas32.bin"
ram = 0xFFFF
MEMORY SIZE?
TERMINAL WIDTH?
WANT SIN? Y
62166 BYTES FREE
BASIC VERSION 3.2
[4K VERSION]
OK
The escape key opens a menu, from which you can:
- Quit the emulator without having to press CTRL-C
- Auto-type a BASIC file from your disk. This "injects" the text of the file into the teletype and is very convenient to load a BASIC program, since BASIC 3.2 does not provide disk operation commands.
- Load or save a snapshot (altair.snapshot)
Pressing ESC a second time quits the menu.
Bash has an issue that deactivates terminal echo when the program quits (I noticed the same behavior with other programs that use the console crate). Two solutions:
- type
stty echo
after quit - use zsh
On this page you will find several basic programs. I personally love seawar4k.bas and lander4k.bas.
Dependencies
~2.4–9.5MB
~92K SLoC