7 Commits
Author SHA1 Message Date
Thomas MartinandClaude Opus 5.5 8beaf9648c Memory card: entries listed in creation order
A card kept in a host folder now lists its files in the order they were
created (the host's creation time where it keeps one, else the write time;
then the name), and a file made again keeps its place. JC2's save list
reads each slot at a fixed position after icon.sys and the three icons, so
an alphabetical listing showed every slot empty. BOZO_TRACE_MC also logs
each read's size and buffer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 10:02:41 +01:00
ArzarothandClaude Opus 5.5 3962eea4ec [sctpt2/mc-getdir-missing-folder] fix(mc): a listing in a folder that is not there returns -4
sceMcGetDir("FOLDER/*") with no FOLDER answered 0, which a game reads as a save
folder with nothing in it: SCTPT2 then reports its system data as corrupt
instead of missing. A continued listing past its end still returns 0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 04:57:15 +01:00
ArzarothandClaude Opus 5.5 63caf16bb9 [sc3/libs] feat(mc): seek, delete, rename, format and the rest of libmc
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 21:40:43 +01:00
Thomas Martin 11cb6df323 Add reusable native image, compiled-library and port services 2026-11-06 02:47:13 +01:00
Thomas MartinandClaude Opus 5.5 a8bef92557 Native kernel and libraries from match4p and the stages (phase 4 M5): TerminateThread and DeleteThread of an unknown thread -407 (KE_UNKNOWN_THID); RemoveDmacHandler / RemoveIntcHandler 0 also for a handler not there; DeleteSema makes its operation for an unknown id too; sceSifFreeIopHeap -1 for a block not allocated (the movie player torn down twice, match4p #11334755-#11334788); sceMcGetInfo of a multitap slot: no card, type, free and format 0, result -4 (#228107); printf's %p as the reference's host printed it, 16 hex digits (#16615141, the stages' "toc starts at")
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 19:46:59 +01:00
Thomas MartinandClaude Opus 5.5 7de41905ce Native libraries: libmc, two formatted cards on host files (phase 3, batch A 5)
sceMcInit, GetInfo, GetDir and Sync answered as the reference did (results via sceMcSync, -1 for a new card after
init, '.' and '..' at the deterministic date, -4 for a missing file); Mkdir, Open, Read, Write, Close for the save
path, unit-tested (tests/libs) but not checked against the reference: the save run has no call log yet (docs section
7 says what recording it would settle). bozo-run --card-dir backs the cards with host folders.

boot and match1p with every batch A library native: 293,586 and 11,119,646 calls, 0 divergences, every frame and
record matching. docs/specs/libraries.md sections 7-9, PLAN.md and tools/run/README.md updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:42:36 +01:00
Thomas MartinandClaude Opus 5.5 163e472342 Native libraries: the C library and libm (phase 3, batch A 1)
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]>
2026-11-03 17:14:34 +01:00