The D-pad pushes the left stick too, but always with its button bit. Games
that read the D-pad apart (VP2's battle: left/right split the party) could
not be given a plain stick move from a script. The new names push one stick
to its end with no button bit or pressure, winning on their axis.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
CoN asks the slot count of each port every frame (padProcess); the guest
libpad answers it over its SIF client, which nothing serves natively.
4 on port 1 while the multitap is open, else 1.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
sceMtapInit, PortOpen, PortClose, GetConnection, ChangeThreadPriority and GetModVersion (MTAPMAN 3.0) answered natively,
as TMB's overrides did per port; PadState::multitapAttached (default on) says whether port 1 has one.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two DualShock 2 controllers on ports 1 and 2 as the reference presents them (state 5 for the frame of a mode command
and the next, IDs 4 then 7, pressure mode 0x79, the D-pad mirrored on the left stick, the reference's pressure order
L1 L2 R1 R2). Their input comes from a PadInput: ScriptInput reads the reference runs' frame-keyed scripts
(bozo-run --pad-script); a PC input source plugs in later, rumble included.
boot: 29,973 pad calls native, match1p (ch1p_frames.txt): 161,084, 0 divergences; both match every frame and record.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
runtime/libs (bozo/libs): native functions bound by the game's symbol names, on a Guest that journals every write.
bozo-run --native checks each native call against its record (result registers, every byte written, cycles,
operations) and keeps native state in step with the calls the log still answers.
libc: memcpy, memset, strlen, strchr, strcpy, strcmp, strncat, sprintf, printf, malloc/free (the reference's heap:
16-byte first fit from SetupHeap's result, no headers; the reference's libmpeg takes 0x600 per sceMpegCreate),
rand/srand (the reference's 64-bit LCG, not the ELF's newlib rand). libm: sqrt, __ieee754_rem_pio2f (the reference's
single-step reduction), __kernel_sinf/cosf (the Universal CRT's sinf/cosf of x + y; open point L1 elsewhere).
boot: 242,588 calls native, match1p: 10,840,985, 0 divergences; both still match every frame and record.
docs/specs/libraries.md sections 1-3.
Co-Authored-By: Claude Opus 5.5 <[email protected]>