Skip to content

td_rust ​

Tool tools/dos/td_rust.py (library, 16-bit DOS). Rust code from Borland Turbo Debugger symbols: record types, the data segment's variables, and the Pascal reader/writer they use.

A library: other tools and your own scripts import it. Source on GitHub.

Its own help ​

This is the help text in the tool itself, as ./gameframe tool td_rust prints it.

text
Rust code from Borland Turbo Debugger symbols: record types, the data segment's variables,
and the Pascal reader/writer they use. Used by tdinfo.py (commands rust, rust-globals,
rust-reader); see its help.

  rust_for(td, type_names)   one Rust module: structs with read/write for record types
  rust_globals(td, out_dir)  a module directory: one file per Pascal unit with that unit's
                             variables at their data-segment offsets, types/ (one file per
                             record type), mod.rs joining them into Globals with load/store
  rust_locals(td, proc_name) one Rust module: a struct of a procedure's local variables (and
                             parameters) at their BP offsets, with load/store from an image of the
                             stack segment and the procedure's BP
  reader()                   templates/pascal.rs: PascalReader, PascalWriter, PStr, Real48

Code: Apache 2.0. Content: CC0 1.0. No game material: bring your own copy.