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
46 lines
1.0 KiB
C
46 lines
1.0 KiB
C
#ifndef TDKPIN_RENDER_H
|
|
#define TDKPIN_RENDER_H
|
|
|
|
#include "tdkpin_segmented.h"
|
|
|
|
void tdkpin_blit_bitmap_to_background(
|
|
HBITMAP16 bitmap,
|
|
INT16 height,
|
|
INT16 width,
|
|
INT16 y,
|
|
INT16 x,
|
|
HDC16 reference_dc); /* 1008:07b6 */
|
|
void tdkpin_restore_background_region_a(
|
|
INT16 height,
|
|
INT16 width,
|
|
INT16 y,
|
|
INT16 x,
|
|
HDC16 reference_dc); /* 1008:0837 */
|
|
void tdkpin_restore_background_region_b(
|
|
INT16 height,
|
|
INT16 width,
|
|
INT16 y,
|
|
INT16 x,
|
|
HDC16 reference_dc); /* 1008:08bb */
|
|
void tdkpin_present_background_region(
|
|
INT16 height,
|
|
INT16 width,
|
|
INT16 y,
|
|
INT16 x,
|
|
HDC16 destination); /* 1008:093f */
|
|
void tdkpin_draw_score(
|
|
HDC16 destination,
|
|
int32_t value_or_player); /* 1008:0996 */
|
|
void tdkpin_update_status_display(
|
|
uint8_t player,
|
|
HDC16 destination); /* 1008:0b9e */
|
|
void tdkpin_draw_item_status(
|
|
int16_t item,
|
|
HDC16 destination); /* 1008:0dbd */
|
|
void tdkpin_draw_claw_frame(
|
|
uint8_t alternate,
|
|
uint16_t frame,
|
|
HDC16 destination); /* 1008:0e08 */
|
|
|
|
#endif
|