mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
sceAmprCommandBufferWaitOnCounter_04_00 and WriteCounter_04_00 take the counter access size and offset, the wait mask and the write operation, with their measure functions; ConstructNop records a nop with an optional leading word and a payload of up to 60 bytes, and ConstructMarker records the set, push and pop markers by type. Signatures and checks follow ampr_emu. The executor now reads and writes counters by access: the 8-byte access of counter n spans n and n + 1, the 2- and 1-byte accesses a half or a byte of the counter. Waits compare at the access width, so the signed and wrapped compares see the field's own sign bit, and the atomic writes wrap within the field. The legacy counter commands record a 4-byte access. Co-Authored-By: Claude Opus 5.5 <[email protected]>