libSceAjm.native debt: a title call of sceAjmBatchJobSetResampleParametersEx agrees with the argument registers #9480

Closed
opened 2026-10-21 23:02:09 +00:00 by xXPBSXx · 2 comments
xXPBSXx commented 2026-10-21 23:02:09 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-21T23:02:09Z.


The sceAjmBatchJobSetResampleParametersEx entry says its signature "is inferred from the name". The disassembly of PPSA02225 has one call to it, in a wrapper that appends Ajm batch jobs: the batch in rdi, the instance id as a 32-bit value in esi, two single-precision floats in xmm0 and xmm1, a 32-bit value in edx and the result pointer in rcx. That is the register layout of the implemented (info, instance, float, float, uint32 flags, void* result). The call does not show what the title passes for flags or which float is which; the ramp behaviour stays unconfirmed.
Fix: note the agreement in the entry; branch docs/debt-ajm-resample-ex-callsite.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5969916173 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9480). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-21T23:02:09Z. --- The `sceAjmBatchJobSetResampleParametersEx` entry says its signature "is inferred from the name". The disassembly of PPSA02225 has one call to it, in a wrapper that appends Ajm batch jobs: the batch in `rdi`, the instance id as a 32-bit value in `esi`, two single-precision floats in `xmm0` and `xmm1`, a 32-bit value in `edx` and the result pointer in `rcx`. That is the register layout of the implemented `(info, instance, float, float, uint32 flags, void* result)`. The call does not show what the title passes for `flags` or which float is which; the ramp behaviour stays unconfirmed. Fix: note the agreement in the entry; branch `docs/debt-ajm-resample-ex-callsite`. AI-assisted (Claude Code).
MarcZX10 commented 2026-10-22 01:17:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T01:17:31Z.


I reviewed open #9481 and the debt entry. The PPSA02225 call-site evidence supports the current argument shape and makes “inferred from the name” too broad for the argument registers, but it does not establish the semantic names/order of the two float parameters or the behavior for a nonzero ramp. Please update the entry to separate what the call establishes (register classes/positions and pointer result) from the still-unverified float meanings, flag use and ramp semantics. This is already being handled in #9481; I am not proposing a duplicate change.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6330314176 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9480#issuecomment-6330314176). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T01:17:31Z. --- I reviewed open #9481 and the debt entry. The PPSA02225 call-site evidence supports the current argument shape and makes “inferred from the name” too broad for the argument registers, but it does not establish the semantic names/order of the two float parameters or the behavior for a nonzero ramp. Please update the entry to separate what the call establishes (register classes/positions and pointer result) from the still-unverified float meanings, flag use and ramp semantics. This is already being handled in #9481; I am not proposing a duplicate change.
MarcZX10 commented 2026-10-22 03:36:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T03:36:50Z.


The updated debt wording in #9481 now separates the register-layout evidence from the unresolved float meanings, flag use and ramp behavior. I reviewed and approved #9481; the issue can close when that PR merges.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6332060975 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9480#issuecomment-6332060975). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T03:36:50Z. --- The updated debt wording in #9481 now separates the register-layout evidence from the unresolved float meanings, flag use and ramp behavior. I reviewed and approved #9481; the issue can close when that PR merges.
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
boykopovar/AnyPS5#9480
No description provided.