Add IOP, audio, pad, fio changes, VAG handling, and call-stack logger#76
Merged
ran-j merged 1 commit intoran-j:mainfrom Feb 24, 2026
Merged
Conversation
Contributor
Author
|
Note how the audio implementation does not yet use iop_ram from ps2_memory.h. |
- Add IOP with RPC handling (handleRPC, LibSd SID) and init/reset using RDRAM - Add IOP audio layer for LibSd RPC (handleLibSdRpc) - Add PS2AudioBackend with VAG decode, onVagTransfer/onSoundCommand, raylib playback - Add PSPadBackend with readState and raylib input - Add IOP RAM mapping in Memory (getIOPRAM) for EE↔IOP access - Add fio syscalls: fioOpen, fioRead, fioWrite, fioClose, fioLseek, fioMkdir - Add VAG accumulation for fio reads (multi-chunk VagAccumEntry) - Add ps2_log.h call-stack logger (tab-indented, Debug only, ps2_log.txt next to exe) - Code generator: emit ps2_log include and PS_LOG_ENTRY for full functions - Recompiler: emit ps2_log include and PS_LOG_ENTRY for stubs - Runtime: print "[PS2 LOG] Logs saved at <path>" on exit (Debug only)
2bec677 to
d930f57
Compare
Contributor
Author
|
Problems: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Architecture
flowchart TB subgraph EE["Emotion Engine (EE)"] Recomp["Recompiled Code"] Syscalls["Syscalls / Stubs"] end subgraph Memory["Memory"] RDRAM["RDRAM (EE main RAM)"] IOPRAM["iop_ram (future)"] end subgraph IOP["IOP Layer"] RPC["handleRPC()"] LibSd["LibSd RPC"] end subgraph Backends["Host Backends"] Audio["PS2AudioBackend\n(VAG decode, raylib)"] Pad["PSPadBackend\n(raylib input)"] end subgraph FIO["File I/O"] SyscallFio["fioOpen/Read/Write/Close/Lseek/Mkdir"] VagAccum["VAG accumulation\n(multi-chunk)"] HostFS["Host filesystem"] end Recomp --> Syscalls Syscalls -->|"SIF RPC"| RPC Syscalls -->|"pad reads"| Pad Syscalls --> SyscallFio RPC -->|"rdram ptr"| RDRAM RPC --> LibSd LibSd --> Audio SyscallFio --> VagAccum VagAccum --> HostFS VagAccum -->|"VAG data"| Audio RDRAM -.->|"not yet used"| IOPRAM ```