← Awesome REA

DX-Ball 1.07 / REA / N0zoM1z0 / EN

Recover a sound-pan function, then check its bytes

ENGLISH SUMMARY

Recover a sound-pan function, then check its bytes

Follow x86 instructions, caller references, and constants to reconstruct the game's position-to-pan calculation in C.

The question

How does a brick's screen position determine its sound's stereo pan?

The workflow

  1. Inspect pseudocode and assembly to recover a missing input.
  2. Follow the caller and read constants to reconstruct the C expression.
  3. Compare original-x86 results and replay a pinned compiler for byte matching.

Findings & output

The case documents 3,205 original-x86 comparison cases and a compiler replay matching all 63 function bytes.

Evidence scope

Validation covers this sound-pan function, not an entire reconstructed game. It depends on a matching target and pinned toolchain.

中文摘要

恢复一个音效声像函数,逐字节核对

从不完整的伪代码回到 x86 指令,追踪输入与常量,把横坐标到左右声道的计算写成 C,再与原版对比。

调查的问题

砖块的屏幕横坐标如何影响音效的左右声道位置?

怎么做的

  1. 检查目标函数的伪代码与汇编,找回缺失参数。
  2. 追调用方与内存常量,恢复 C 表达式。
  3. 对照原始 x86 返回值,再核对固定编译器生成的字节。

发现与产出

案例给出 3,205 组原始 x86 差分测试,以及完整 63 字节函数的编译匹配。

证据范围

验证范围是这个音效函数,不是整款游戏的完整重建。需要匹配的原始目标和固定工具链。

Original sources / 原始来源

Checked / 核对 2026-10-12 · Public code / 有公开代码