feat(libSceAgc): implement sceAgcDcbSetIndexIndirectArgs #1998
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1998"
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 boykopovar/AnyPS5. Originally posted by ryyReid on 2026-10-09T04:26:03Z.
What
Implements
sceAgcDcbSetIndexIndirectArgs, which #1584 leaves unimplemented because of its declaration.(buf, dataOffsetInBytes). OpenAGC and SharpProspero both declare a 64-bit address followed by a 32-bit value, so it is now(buf, std::uint64_t address, std::uint32_t offset).0xc0029100, address low, address high, offset(AGC-specific opcode 0x91), as OpenAGC does. The header encodes 3 payload dwords, which matches the 16-byte size both sources give.sceAgcDcbSetCfRegisterDirectprecedent (8ab5fab8). Recorded in TechnicalDebt, including that SharpProspero names the third argument an index count.The GetSize export is left to #1584.
Tested
Windows 11, WinLibs GCC 15.2.0 r7 (
x86_64-ucrt-posix-seh):agc_commands: newtestIndexIndirectArgschecks the packet words, the cursor, and that a null address, a misaligned address, an offset above 16 bits and a null command buffer throw without touching the buffer.ctest: 488/488.tools/check_conventions.py --base origin/mainpasses.No title was tested; none I have calls this export.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T04:38:28Z.
I reviewed the complete three-file diff against the cited OpenAGC implementation. The packet header and three payload dwords match; the null/alignment and 16-bit checks follow the project command helpers. I also built and ran
agc_commandson Linux (pass), andtools/check_conventions.py --base upstream/mainpasses. The PR still has no upstream checks attached, so I am holding formal approval until the standard Build and Conventions checks report on this head. The local test-registration script could not run because this environment has noninjaexecutable; CTest does listagc_commands.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T04:55:11Z.
Follow-up to my earlier review: I installed Ninja in a temporary environment and ran the exact CI registration check on head
fd89ead1. It passes: 439 test executables, only the three already recorded as built and not run, none new. The earlier localagc_commandsrun and conventions check also pass. Upstream still has no checks attached to this head, so formal approval remains pending the maintainer-approved Build and Conventions workflows.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T05:04:13Z.
Additional verification on exact head
fd89ead1: a fresh Release build ofagc_command_testscompleted,ctest -R ^agc_commands$passed (1/1, 0.02 s), and the conventions and diff checks pass. The CTest registration check also passes (439 executables; no unrecorded tests). The only missing evidence is upstream Build/Conventions CI, which remains unattached because the runs require maintainer approval.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:53:23Z.
Closing: no title is shown to call
sceAgcDcbSetIndexIndirectArgson main, and library functions go in when one does. Please reopen with the title ID and the log line if you find one.Pull request closed