Files
tdkpin/original/reconstructed/tdkpin_tpwincrt_text.h
T
ddidderr 8b99e9607c feat(reconstruction): complete binary-backed C recovery
Replace the partial mechanics transcriptions with a separate, readable C11
reconstruction of the complete Win16 image while preserving the original raw
Ghidra export as immutable evidence. Cover all ordinary and overlapping entry
points, Borland runtime behavior, Win16 imports, segmented data, callbacks,
resources, indirect control flow, physics, rendering, persistence, and
startup/shutdown lifecycles.

Add deterministic extraction and audit tooling plus address-linked ledgers for
functions, imports, DGROUP ranges and objects, relocations, resources, and
callbacks. The final gate records zero raw, partial, restored, unknown,
blocked, or unclassified required units. Keep the semantic-fidelity boundary
explicit: the portable C is not claimed to reproduce a byte-identical Borland
NE build.

Add strict focused harnesses for every reconstructed C unit, exact resource
round-trip checks, and a 16-bit Borland Real48 reference probe. No Rust source
or Cargo metadata is changed in this phase.

Test Plan:
- `bash original/tools/test_reconstructed_c.sh` -- passed
- `bash original/tools/probe_real48_reference.sh` -- passed bit-for-bit
- `python3 original/tools/audit_reconstruction.py --require-complete` -- passed
- `git diff --cached --check` -- passed
- `git diff HEAD -- '*.rs' Cargo.toml Cargo.lock` -- empty
2026-08-23 16:41:17 +02:00

26 lines
983 B
C

#ifndef TDKPIN_TPWINCRT_TEXT_H
#define TDKPIN_TPWINCRT_TEXT_H
#include "tdkpin_runtime_ui.h"
void tpwincrt_draw_row_range(
int16_t end_column, int16_t start_column); /* 1008:1a39 */
void tpwincrt_advance_line(
int16_t *changed_start, int16_t *changed_end); /* 1008:1a82 */
void tpwincrt_write_bytes(
uint16_t count, Win16FarPtr bytes); /* 1008:1b11 */
void tpwincrt_write_character(uint8_t character); /* 1008:1be9 */
bool tpwincrt_poll_input(void); /* 1008:1c03 */
uint8_t tpwincrt_read_character(void); /* 1008:1c5f */
uint16_t tpwincrt_read_line(
uint16_t capacity, Win16FarPtr destination); /* 1008:1cc6 */
uint16_t tpwincrt_text_write_buffer(Win16FarPtr record); /* 1008:22fc */
uint16_t tpwincrt_text_read_buffer(Win16FarPtr record); /* 1008:233c */
uint16_t tpwincrt_open_text_record(Win16FarPtr record); /* 1008:238b */
void tpwincrt_initialize_text_record(Win16FarPtr record); /* 1008:23fd */
void tpwincrt_create_window(void); /* 1008:2442 */
#endif