TRX64 / Reverse engineering environment

Recover verified source.

C64RE turns C64 media into verified source, a typed 6502 graph, and project knowledge.

An LLM client operates C64RE through MCP. Tools own the bytes. TRX64 Runtime supplies execution evidence.

01 / ArtifactC64 mediaPRG · CRT · D64 · G64
↓
02 / AnalyzeC64REDeterministic analysis + LLM semantics
Typed 6502 graphVerified sourceClaims + evidence

LLM/API-first

C64RE is operated through MCP.

C64RE exposes listings, graph queries, annotations, evidence, and verification. The connected LLM supplies interpretation and semantic work.

Tool authorityExtraction, disassembly, graph construction, traces, assembly, and byte comparison.

Agent responsibilityInterpretation, semantic naming, contracts, hypotheses, knowledge mining, and evidence selection.

System output

Disassembly produces a 6502-specific graph.

Nodes hold program objects. Typed edges record control flow, data access, evidence, and unknown paths.

6502 disassembly with semantic labels in C64RE
C64RE / semantic disassembly backed by the persistent graph
01 / Structure

Control flow and data access

Edges cover calls, jumps, branches, reads, writes, indirect accesses, pointers, and observed execution.

02 / Contracts

Routine interfaces

Contracts record inputs, outputs, clobbers, preserved state, stack effects, arguments, and unresolved exits.

03 / Impact

Change impact

change_impact follows callers, shared state, pointer tables, claims, timing evidence, and unknown paths.

Operating sequence

C64RE uses five project stages.

Artifact analysis runs in seven phases.

  1. 01 / ONBOARD

    Set the objective

    Create or resume the project. Select the workflow profile.

  2. 02 / INGEST

    Register artifacts

    Import media. Identify programs. Preserve lineage.

  3. 03 / ANALYZE

    Run analysis

    Extract, scan, disassemble, build the graph, classify, annotate, and verify.

  4. 04 / VALIDATE

    Test hypotheses

    Run targeted traces where static evidence is insufficient.

  5. 05 / DELIVER

    Deliver results

    Export source, knowledge, evidence, open questions, and byte comparisons.

1 Extract2 Scan3 Disassemble + graph4 Classify5 Annotate6 Validate7 Rebuild + compare
Components

C64RE analyzes. TRX64 executes.

Each component exposes a machine-callable interface.

Analyze / MCP

C64RE

Imports media, builds the graph, stores annotations, and verifies rebuilt output.

  • Deterministic structure and artifact lineage
  • LLM-supported disassembly and knowledge mining
  • Persistent evidence and confidence
  • Byte-for-byte rebuild verification
Repository and documentation ↗

Execute / JSON-RPC + Rust

TRX64 Runtime

Runs reversible C64, 1541, and 1581 models for inspection and automation.

  • Cycle-oriented execution and rewind
  • Writer lookup and reverse stepping
  • Trace capture and isolated sessions
  • CLI, daemon, and embeddable core
Repository ↗