Verify a direct x64 call across two statically recompiled functions #22

Closed
opened 2026-11-21 09:30:27 +00:00 by R0Y00 · 0 comments
R0Y00 commented 2026-11-21 09:30:27 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T09:30:27Z.


Follow-up to the source-built CPU leaf experiment. Build two small x64 functions with a direct relative call and known inputs, return values and output writes. Translate the caller and callee from their PE machine code. In Windows CTest compare their behavior with the original, check arguments and preserved registers across the call, and include a negative control that detects an incorrect call result. Keep the fixture reproducible from this repository.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6527111370 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/22). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T09:30:27Z. --- Follow-up to the source-built CPU leaf experiment. Build two small x64 functions with a direct relative call and known inputs, return values and output writes. Translate the caller and callee from their PE machine code. In Windows CTest compare their behavior with the original, check arguments and preserved registers across the call, and include a negative control that detects an incorrect call result. Keep the fixture reproducible from this repository.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows#22
No description provided.