cpu: translate the blast decoder and dispatch its callbacks #455
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/461"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T05:11:14Z.
Refs #459, #317. Translate the linked scalar x64 blast 1.3 export and its reachable routines from the reference PE to C++. Bind the callback actually loaded from the guest state to the caller-provided input or output function. Model the decoder's single nonlocal recovery point and data relocations. No pending PR dependencies.
The original reader uses the native codec. The pe_map child maps all three original modules individually. The AOT reader and decoder use the generated code and native callback adapter; import checks exclude the native decoder. A host callback refusal control checks contexts, byte content and the decoder's return 1.
Local x64 Windows, MSVC 19.51, head
219f289. Built archive_all_lifted, archive_reader_lifted and pe_map:Both presets passed 2/2. Two complete records emitted 26 bytes and exited 0. Truncating record two returned 4 then 0 at the input callback, took longjmp and delivered 1 tentative byte to the final output callback; stdout retained only the first 13 bytes, completed count 1, exit 2. Both runs allocated and freed twice. The documentation records the observed callback RVAs and scope.