From a328146985c9138ee1d6109f3f34db6446c86a00 Mon Sep 17 00:00:00 2001 From: Nicolas Pixel Noble Date: Sun, 28 Aug 2022 18:50:35 -0700 Subject: [PATCH] Adding Redux' ports. --- docs/expansionportpio.md | 25 +++++++++++++++++++++++-- docs/iomap.md | 8 ++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/docs/expansionportpio.md b/docs/expansionportpio.md index 4bfe1ce..b7ccb13 100644 --- a/docs/expansionportpio.md +++ b/docs/expansionportpio.md @@ -456,8 +456,6 @@ The first write to 1F802070h is 32bit, all further writes seem to be 8bit.
#### 1FA00000h - POST3 - External 7-segment Display (W) - PS2 Similar to POST, but PS2 BIOS uses this address.
- - ## EXP2 Nocash Emulation Expansion #### 1F802060h Emu-Expansion ID1 "E" (R) #### 1F802061h Emu-Expansion ID2 "X" (R) @@ -485,3 +483,26 @@ acknowledging the previous interrupt.
2 Controller Turbo (0=Normal, 1=Turbo) 3-7 Reserved (must be zero) ``` + +## EXP2 PCSX-Redux Emulation Expansion +PCSX-Redux contains some specific hardware registers for the purpose of testing and debugging. +They are located past the 1F802080h address, which means that accessing them on the real +hardware will cause an exception, unless the [1F80101Ch register](https://psx-spx.consoledev.net/memorycontrol/#1f80101ch-expansion-2-delaysize-usually-00070777h-128-bytes-8bit-bus) has been set to +be at least twice its normal size. + +#### 1F802080h 4 Redux-Expansion ID "PCSX" (R) +Identification string. Use this to query that your binary is running under PCSX-Redux. + +#### 1F802080h 1 Redux-Expansion Console putchar (W) +Adds this character to the console output. This is an easier way to write to the console than using the BIOS. + +#### 1F802081h 1 Redux-Expansion Debug break (W) +Causes a debug breakpoint to be triggered. PCSX-Redux will pause and the user will be alerted of a software breakpoint. + +#### 1F802082h 1 Redux-Expansion Exit code (W) +Sets the exit code for the program. When in test mode, PCSX-Redux will exit with this code. + +#### 1F802084h 4 Redux-Expansion Notification message pointer (W) +Displays a pop-up message to the user with the specified string. + +See [PCSX-Redux's documentation](https://pcsx-redux.consoledev.net/mips_api/) for more details and examples. diff --git a/docs/iomap.md b/docs/iomap.md index f706d82..58154c0 100644 --- a/docs/iomap.md +++ b/docs/iomap.md @@ -222,6 +222,14 @@ 1F802066h Emu-Expansion Halt (R) 1F802067h Emu-Expansion Turbo Mode Flags (R/W) ``` +#### Expansion Region 2 - PCSX-Redux Emulation Expansion +``` + 1F802080h 4 Redux-Expansion ID "PCSX" (R) + 1F802080h 1 Redux-Expansion Console putchar (W) + 1F802081h 1 Redux-Expansion Debug break (W) + 1F802082h 1 Redux-Expansion Exit code (W) + 1F802084h 4 Redux-Expansion Notification message pointer (W) +``` #### Expansion Region 3 (default 1 byte, max 2 MBytes) ``` 1FA00000h - Not used by BIOS or any PSX games