EBonura/PSoXide
Sobre
Bare-metal Rust SDK and tools for the original PlayStation. Editor/engine/Cortex and emulator are separate repositories.
Jogos e emulaçãoCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- +1
- em 15 dias
- +1
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalPSoXide SDK
Largely written with agentic coding. I direct the agents and test their work in two places: PSoXide's emulator, which profiles every cycle, and a real PlayStation, which shows me where the emulator is wrong. Working between them is where the accuracy and the speed come from. How PSoXide is built
Bare-metal Rust tools and libraries for the original PlayStation. This is the SDK repository at the original EBonura/PSoXide URL. It provides the runtime, GPU/GTE, audio, input, disc and memory-card APIs, fixed-point math, shared data formats, a disc packer and small homebrew examples.
The editor, engine and Cortex Ignition live together in PSoXide-editor. The emulator is in PSoXide-emulator. Their source history and existing pre-split Git revisions remain available.
Build a triangle
Install Rust through rustup and a C/C++ build toolchain for your host. The
checked-in rust-toolchain.toml selects the required nightly and components.
The post-link hazard and stack checks are Rust (tools/psoxide-hazard): no
Python or MIPS binutils needed to build.
git clone https://github.com/EBonura/PSoXide.git
cd PSoXide
make check
make test
make hello-tri-disc
The result is build/examples/mipsel-sony-psx/release/hello-tri.{exe,bin,cue}.
Keep the BIN and CUE together. It runs on a PS1 or in an emulator; no editor is
needed to compile or package it. Launch with an existing emulator executable:
make run-tri FRONTEND=/absolute/path/to/frontend
make disc EXAMPLE=hello-input selects another self-contained example.
Examples that use CD audio or WORLD.PAK need their own pack inputs; the generic
disc target only creates a data-only image.
Layout
sdk/: the device crates, linker script and examples.
crates/: shared hardware, disc, trace and cooked-asset format contracts.tools/mkisopsx: host-side BIN/CUE mastering.tools/psoxide-link: source hydration for pinned downstream builds, andpsoxide-components, which brings a consumer's imported paths to itscomponents.lock.jsonand records a content receipt.tools/psoxide-pgo: emulator PC histogram to LLVM sample profile, for profile-guided guest builds with no instrumentation.portablewrites a profile that can be committed, andrebindapplies it to a build made in any other checkout.orderand the+ordervariants link functions in an I-cache-aware order from exact per-word counts, gated per game bychoose.tools/psoxide-hazard(hazard-patch,hazard-scan,stack-guard) andguest_symbol_gate.sh(a link-map grep for 64-bit and soft-float helpers): guest checks. psoxide-hazard decodes the image withcrates/psx-disasm, no objdump. The patcher and scanner share one detector; given the link's-Map(--map), both bound each switch's jump table to its own function and read, and rewrite, nothing outside the map's.text(plus the trampoline array and the proven jump table words;--code LO..HIadds code the map does not span, and--module LINK_LO..LINK_HI@IMAGE_ATdeclares a code module linked in the RAM mirrors whose bytes sit at another address of the load, which is then checked and patched at its link address). Without a maphazard-patchrefuses unless--whole-imageis given, because data decodes as branches and loads.stack-guardproves everypsx_rt::scratchpad::ScratchpadStackcall tree in a linked exe fits its scratchpad region, from the exe and its ld.lld-Map(--forbid SYMBOLalso fails a tree that reaches a function, such as psx-rt's I-cache flush). psoxide-pgo runs all three in-process.hazard-patchalso zero-pads the flat file to the sector multiple its header claims:psoxide.ldstarts.bsswhere.dataends (the programs get back what used to be padding, up to 2047 bytes), so the linker's file stops short of the header's size, and the loader copies the padding over the start of.bss, which_startclears.mkisopsxandpsx_iso::Exe::parseaccept a file short of that by under a sector.tools/xtask: repository tasks,cargo run -p xtask -- <task>:check-mfc0(make lint),material-audit(CI),fmv-test-movie(hello-fmv's movie) and the website'ssitetasks. The repository runs no Python.tools/check-register-literals.sh(make lint): fails when a hardware-window address literal appears anywhere outsidecrates/psx-hw.sdk/profile.tomland the architecture gate (sdk/docs/GATE.md): a program that enables an unlisted feature of an SDK crate, writes a register address, installs an exception-vector handler, runs COP0 assembly or carries a private copy of an SDK crate does not build (psx-gate, run bypsoxide-pgo apply) and does not become a disc (mkisopsxchecks the receiptapplywrote). Today's exceptions are listed in the profile by name and can only shrink.
The root host workspace and sdk/ device workspace intentionally remain
separate. Existing sdk/crates/* and sdk/psoxide.ld paths are retained.
The dependency-free psxed-format package now lives in crates/psxed-format;
its package name and binary layouts are unchanged.
Downstream games
Pin a full Git revision and commit lockfiles. SDK-only hydration contains this
repository; engine-based games additionally pin the editor/runtime component.
The demo-disc repository owns the tested component combination for each disc.
See components.json for the SDK package layout and extraction provenance.
Repinning a game onto the Rust tools
From ceabbac8f the post-link checks are Rust, and from 8a7252089 the
component bootstrap is too; this repository no longer ships the Python
versions. The Rust tools patch, scan and report exactly as the Python ones
did (checked on the WipEout, Half-Life and Quake builds), so after a repin any
difference in a game's image comes from other SDK changes in the range. A game
moving its SDK pin past them changes four things:
- Its build driver runs
hazard-patch,hazard-scanandstack-guard, built from the hydrated tree (cargo build --release -p psoxide-hazardin.psoxide), where it ranpython3 .psoxide/tools/hazard_patch.py,hazard_scan.pyandstack_guard.py. The arguments are unchanged, except thathazard-patchneeds--map(the link's-Mapoutput). psoxide-pgo runs them in-process, so a PGO build needs nothing. - Its
components.lock.jsonliststools/psoxide-hazardfor the SDK component in place of the three.pypaths (cratesalready bringscrates/psx-disasm). - It builds against an editor revision whose
Cargo.lockincludespsoxide-hazardandpsx-disasm, because games build--lockedagainst the editor's lock. - Its emulator component is a revision that compiles against the new SDK:
since
3a7c21a05(psx-iso reads tracks through aTrackSource), emulator3d49e63or later.
It also replaces its copy of tools/bootstrap-components.py with
psoxide-components (tools/psoxide-link): same arguments, lock, receipt
and files. A Rust build driver that already depends on psoxide-link can
call psoxide_link::components::materialize instead; otherwise install the
binary from the pinned revision with cargo install --locked --git https://github.com/EBonura/PSoXide --rev REV psoxide-link.
A driver that extracts SDK files itself (for example by untarring git archive) must give them a fresh modification time, or clean its guest
target directory when the pin changes. An archive dates files at their
commit, and Cargo, which compares mtimes, can otherwise link objects built
from the previous SDK. psoxide-link and psoxide-components always write
fresh files.
The project is pre-1.0. Format/API changes require coordinated consumer updates. Device code uses bounded memory and 32-bit fixed-point arithmetic. Emulator checks complement rather than replace original-hardware testing.
License
Code remains GPL-2.0-or-later. Preserve existing attribution and provenance; extraction does not change licensing. Example assets have their own provenance records. See downstream licensing before distribution.
How This Was Built
AI coding agents wrote nearly all of the code in PSoXide. A human directs the architecture, reviews every change and verifies the results on hardware. How PSoXide is built lists the rules the agents work to and the checks each change passes.
This is not a clean-room implementation. An LLM is trained on large amounts of existing code, so AI-written code can carry influence from its training data that neither the tool nor the author can fully audit. Disclosing AI assistance is therefore not a warranty of clean-room provenance or of non-infringement. The emulator core was rewritten from hardware documentation and console measurements; some behaviour in it was first matched to PCSX-Redux (GPL-2.0-or-later) traces and is tracked in the emulator's provenance record. See downstream licensing and the license audit.
Recent changes
Source snapshot 2026.09.05: Split the SDK from the editor and emulator; existing Git revisions still resolve. See the changelog for the remaining changes.
Firmware policy
PSoXide does not bundle or load external console firmware. Homebrew runs through the built-in emulator runtime. See the cleanup audit for the source, binary-header and history checks.
Explore projetos relacionados
Carregando…