Something went wrong. Try again.
A programming language for the TRS-80 Color Computer
Something went wrong. Try again.
Files
README.md
Dodo #
Dodo is a programming language for the TRS-80 Color Computer (CoCo).
Setup #
The easiest way to try out Dodo is via an emulator.
macOS #
- Install XRoar
- Add
xroarto your PATHsudo ln -s /Applications/XRoar.app/Contents/MacOS/xroar /usr/local/bin/xroar - Install the required ROMs:
This downloadscargo run -- setupbas13.rom,extbas11.rom, anddisk11.romfrom the Color Computer Archive into~/.xroar/roms, verifying their checksums. It's idempotent; use--checkto report problems without downloading anything, or--forceto re-download. - Run one of the examples:
This builds a DECB disk image (cargo run -- run examples/01_hello.dodobuild/01_hello.dsk), attaches it as drive 0, and typesLOADM"01HELLO":EXECinto BASIC for you. Pass--binto skip the disk image and autorun the.bindirectly. To build artifacts without launching the emulator, usecargo run -- build examples/01_hello.dodo(a.bin) or pass--dskfor a disk image.
Testing #
Unit tests run with plain cargo test. If xroar is on your PATH (and
the ROMs above are installed), this also runs the end-to-end suite in
crates/dodo/tests/e2e/, which executes compiled programs headlessly
on an emulated CoCo 2 and asserts on the resulting memory contents.
A cycle-count report for the programs in crates/dodo/tests/e2e/perf/
(with optional per-program budgets) is available via:
cargo test --test e2e perf_report -- --ignored --nocapture
See the doc comment in crates/dodo/tests/e2e.rs for the harness
protocol and how to add new test programs.
·
Copy SHA
·
Copy SHA
·
Copy SHA
·
Copy SHA
·
Copy SHA
·
Copy SHA
·
Copy SHA
·
Copy SHA
·
Copy SHA
- Rust 100%