docs(debt): note that a title call of sceAjmBatchJobSetResampleParametersEx agrees with the argument registers #9481

Merged
xXPBSXx merged 1 commit from upstream-pr/9481 into main 2026-10-22 18:51:03 +00:00
xXPBSXx commented 2026-10-21 23:02:49 +00:00 (Migrated from github.com)

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


What

The sceAjmBatchJobSetResampleParametersEx entry of docs/dev/debt/libSceAjm.native.md said that the signature is inferred from the name. A call in the disassembly of PPSA02225 agrees with the register layout of the implemented signature: 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. The entry now says so (shortened to stay under the 1000-character debt limit) and that the call does not show what the title passes for flags or which float is which. The ramp behaviour part is unchanged.

Method: Ghidra 12.1.4 headless on the unwrapped executable of one title, one call site read from the instruction listing and the decompiled caller. The calling convention fits; the semantics stay open. Only statements are given here: the listing and decompiled code are game code and are not attached.

Tested

Documentation only. tools/check_conventions.py --base upstream/main passes without warnings (the entry is under 1000 characters). No code or test changed.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: #9480
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4959519267 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9481). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-21T23:02:49Z. --- ### What The `sceAjmBatchJobSetResampleParametersEx` entry of `docs/dev/debt/libSceAjm.native.md` said that the signature is inferred from the name. A call in the disassembly of PPSA02225 agrees with the register layout of the implemented signature: 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`. The entry now says so (shortened to stay under the 1000-character debt limit) and that the call does not show what the title passes for `flags` or which float is which. The ramp behaviour part is unchanged. Method: Ghidra 12.1.4 headless on the unwrapped executable of one title, one call site read from the instruction listing and the decompiled caller. The calling convention fits; the semantics stay open. Only statements are given here: the listing and decompiled code are game code and are not attached. ### Tested Documentation only. `tools/check_conventions.py --base upstream/main` passes without warnings (the entry is under 1000 characters). No code or test changed. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: #9480 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes AI-assisted (Claude Code).
MarcZX10 commented 2026-10-21 23:04:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T23:04:10Z.


One template detail: the repository instructions require preserving the checklist field as Fixes:. This body currently says Fixes #9480 without the colon. Please restore the template label and keep the issue number as its value.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6328512466 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9481#issuecomment-6328512466). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T23:04:10Z. --- One template detail: the repository instructions require preserving the checklist field as `Fixes:`. This body currently says `Fixes #9480` without the colon. Please restore the template label and keep the issue number as its value.
MarcZX10 commented 2026-10-21 23:18:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T23:18:07Z.

Review: CHANGES_REQUESTED


The debt wording is supported by the documented call-site register layout, and the change preserves the uncertainty about argument meaning and ramp behavior. One required repository template field is still malformed: the checklist line says Fixes #9480 and omits the required Fixes: field label. I previously left a comment about this, but the current body still has the same text. Please restore the exact checklist label with #9480 as its value; I will revisit after that template correction. The documentation-only convention and PR intake checks pass; build jobs were skipped.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607403641 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9481#pullrequestreview-5607403641). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T23:18:07Z. **Review:** CHANGES_REQUESTED --- The debt wording is supported by the documented call-site register layout, and the change preserves the uncertainty about argument meaning and ramp behavior. One required repository template field is still malformed: the checklist line says `Fixes #9480` and omits the required `Fixes:` field label. I previously left a comment about this, but the current body still has the same text. Please restore the exact checklist label with `#9480` as its value; I will revisit after that template correction. The documentation-only convention and PR intake checks pass; build jobs were skipped.
xXPBSXx commented 2026-10-22 00:27:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-22T00:27:00Z.


Thanks, fixed: the checklist line now reads Fixes: #9480 with the colon. I will use that form in the PR bodies from here on.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6329651655 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9481#issuecomment-6329651655). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-22T00:27:00Z. --- Thanks, fixed: the checklist line now reads `Fixes: #9480` with the colon. I will use that form in the PR bodies from here on. AI-assisted (Claude Code).
MarcZX10 commented 2026-10-22 00:30:36 +00:00 (Migrated from github.com)

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

Review: APPROVED


The current PR body now includes the required Fixes: #9480 checklist field. The debt entry preserves the register evidence while keeping flags, float roles and ramp behavior explicitly unresolved; current convention checks pass. This is documentation-only, and no local code tests were applicable.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607868827 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9481#pullrequestreview-5607868827). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T00:30:36Z. **Review:** APPROVED --- The current PR body now includes the required `Fixes: #9480` checklist field. The debt entry preserves the register evidence while keeping `flags`, float roles and ramp behavior explicitly unresolved; current convention checks pass. This is documentation-only, and no local code tests were applicable.
MarcZX10 commented 2026-10-22 03:36:37 +00:00 (Migrated from github.com)

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

Review: APPROVED


The updated debt line now separates what the PPSA02225 call-site register layout supports from the still-unknown float meanings, flag use and ramp behavior. It addresses issue #9480 without changing implementation code, and retains the existing caveat that ramp semantics are unverified. The author reports the convention checker passed; hosted conventions, eligibility/intake and label checks pass, with product/relinker jobs skipped. I did not rerun Ghidra or local checks.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5608967830 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9481#pullrequestreview-5608967830). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T03:36:37Z. **Review:** APPROVED --- The updated debt line now separates what the PPSA02225 call-site register layout supports from the still-unknown float meanings, flag use and ramp behavior. It addresses issue #9480 without changing implementation code, and retains the existing caveat that ramp semantics are unverified. The author reports the convention checker passed; hosted conventions, eligibility/intake and label checks pass, with product/relinker jobs skipped. I did not rerun Ghidra or local checks.
Sign in to join this conversation.
No reviewers
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!9481
No description provided.