9 releases (1 stable)

new 1.0.0 Jan 17, 2025
0.13.0 Jan 11, 2025
0.12.0 May 24, 2024
0.11.0 Nov 4, 2023
0.6.0 Nov 1, 2022

#233 in Emulators

Download history 6/week @ 2024-09-25 2/week @ 2024-10-02 2/week @ 2024-12-04 10/week @ 2024-12-11 131/week @ 2025-01-08

131 downloads per month

MIT license

43KB
703 lines

TRuSt-80

Current Crates.io Version Downloads badge

TRuSt-80 is a cross-platform TRS-80 (model 1) emulator, based on my Z80 emulator. It has a working keyboard (hint : for " type shift+2 like on the original layout), can run Level 1 and Level 2 basic, and load .cas tape images. You will need a ROM, and the AnotherMansTreasureMIB64C2X3Y.ttf font. If not already installed, you will need sdl2 and sdl2_ttf libraries.

Screenshot

You can customize the RAM, ROM and resolution, among other things, in the ~/.config/trust80/config.toml file. The F12 key quits the emulator.

In the console, the reset command resets the TRS-80.
The powercycle command resets the TRS-80 and clears the RAM.
The tape rewind command is used to "rewind" the tape.
The tape command followed by a filename is used to "insert" a tape.
Type help to display available commands.

There is also an integrated machine language monitor:
d 0x0000 disassembles code at 0x0000 and the 20 next instructions.
m 0xeeee displays memory content at address 0xeeee
m 0xeeee 0xaa sets memory address to the 0xaa value
j 0x0000 jumps to 0x0000 address
b displays set breakpoints
b 0x0002 sets a breakpoint at address 0x0002
f 0x0002 "frees" (deletes) breakpoint at address 0x0002
g resumes execution after a breakpoint has been used to halt execution
r displays the contents of flags and registers

Dependencies

~18MB
~384K SLoC