6 Commits
Author SHA1 Message Date
ArzarothandClaude Opus 5.5 83da721187 [sc3/libs] Merge main (kernel calls by number, symbol maps, dual-layer CD)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 23:21:44 +01:00
ArzarothandClaude Opus 5.5 d2733b8dca [sc3/libs] feat(sif): module forms, IOP reset, memory and exits; tty and deci2 answered as no debugger
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 21:40:43 +01:00
ArzarothandClaude Opus 5.5 da6b52fe92 [con/libc-sceprintf] feat(libc): scePrintf is printf
The SDK's scePrintf formats as printf and writes to the TTY over DECI2;
natively it is the host's stdout, as printf.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 20:20:58 +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 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