This Rust package provides tools for meddling with TTK-91 code. This is part of TiToMachine project.
Binaries:
- titoasm - Assemble .k91 files to .b91
Library:
- libttktk::compiler - Assembler backend for titoasm and titomachine
- libttktk::disassembler - Disassembler
- libttktk::instructions - Instruction struct and related enums.
- libttktk::b91 - Parse .b91 contents.
(see: Titokone)
- Supports expressing values in bin, oct, and hex.
- Supports expressing values as unsigned.
- Symbols are case sensitive.
- Supports TiToMachine extended spec, but should be fully backwards compatible.
titoasm --help
titoasm file.k91
titoasm file.k91 -o outputfile.b91
Cargo.toml:
[dependencies]
# ...
ttktk = { git = "https://github.com/sevonj/ttktk.git", tag = "v0.3.0" }
use libttktk::compiler::compile;
// ...
let result = compile(source);
You need Rust.
Shell examples:
cargo build
cargo test
cargo run -- file.k91 -o outputfile.b91