Editing PS1DRV

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
==HW Registers==
PS1 emulation specific registers used by PS1DRV.
===PS1DRV 1.1.0===
{| class="wikitable"
! Address !! Name !! Description
|-
| 0x1000F240 || SIF_CR        || Sif control register, used by PS1DRV to?
|-
| 0x1000F300 || STAT          || PS1 GPUSTAT.
|-
| 0x1000F310 || GP0_E2_reg*  || Store response for GP1 (0x10000002) cmd.
|-
| 0x1000F320 || GP0_E3_reg*  || Store response for GP1 (0x10000003) cmd.
|-
| 0x1000F330 || GP0_E4_reg*  || Store response for GP1 (0x10000004) cmd.
|-
| 0x1000F340 || GP0_E5_reg*    || Store response for GP1 (0x10000005) cmd.
|-
| 0x1000F380 || PGIF          || PGIF status register.
|-
| 0x1000F3C0 || sfifo || Read from here return GP1 command from PS1 GPU fifo, fifo size is 8 words.
|-
| 0x1000F3E0 || gfifo || Read from here return GP0 command from PS1 GPU fifo, fifo size is 32 words.
|-
|}
Note: Beside this specific set, PS1DRV use standard VIF/GIF/TIMER/ETC. registers for transfers to GS, and other tasks.<br>
( * ) are made up names.
==GP1 commands handling==
PS1DRV 1.1.0 handle GP1 (0x00,0x01,0x03,0x05-0x08) on software side, while commands 0x02, 0x04, and 0x10 are completely ignored by PS1DRV. This imply some kind of hardware behavior on PGIF side that take care of mentioned CMDs.
GP1 parser function is at 0x201D1C, a0 is command from buffer (0x70000060) which is previously read from sfifo.<br>
Function which read GP1 from sfifo is located at 0x204F08, and is set as pgif handler using syscall 114. Function additionally check if command is 0/1, if yes then flag indicating gp0 fifo flush in near future is set. This shorten time where pgif wait for gfifo, and eventually give up since flush is in the plan anyway.
==Hardcoded Settings==
==Hardcoded Settings==
===Overview===
===Overview===
Line 37: Line 4:
Compatibility flags for PS1DRV, mostly PS1 GPU emulation related.
Compatibility flags for PS1DRV, mostly PS1 GPU emulation related.


===Config values explanation===
====Config values explanation====
{| class="wikitable"
{| class="wikitable"
! Name (PS1DRV) !! Name (Deckard) !! Description
! Name (PS1DRV) !! Name (Deckard) !! Description
Line 45: Line 12:
| sprt    || || Render Rectangle Delay by X multiplier.
| sprt    || || Render Rectangle Delay by X multiplier.
|-
|-
| mecha    || || Write values to 0x1F402014.
| mecha    || || Set 0x1F402014 to value (When greater than 2, this overwrites the speed setting set in OSDSYS.)
|-
|-
| null    || PARAM_CPU_DELAY || GP0 Increased Sync: Makes the emulator spend more time polling the GP0 FIFO directly,
| null    || PARAM_CPU_DELAY || GP0 Increased Sync: Makes the emulator spend more time polling the GP0 FIFO directly,
Line 58: Line 25:
| special  || || See table below
| special  || || See table below
|}
|}
====Special====
=====Special=====
Bit 2 and higher are unavailable/unused in non Deckard models.
Bit 2 and higher are unavailable/unused in non Deckard models.
{| class="wikitable"
{| class="wikitable"
Line 84: Line 51:
|-
|-
|}
|}
*Configs which write to 0x1CB404XX write directly to 0x00B40400 400KB segment on Deckard PPC side.
*Configs which write to 0x1CB404XX write directly to 0x00B40400 400KB segment on Deckard PPC side.
*Source for non Deckard commands: https://psi-rockin.github.io/ps2tek/
*Source for non Deckard commands: https://psi-rockin.github.io/ps2tek/
*For Deckard commands see: [[IOP/Deckard#Per_game_configuration]]
*For Deckard commands see: [[IOP/Deckard#Per_game_configuration]]


====Mecha====
===VER 1.1.0===
 
{| class="wikitable"
! Name !! Hex !! Description
|-
| || 0x11 || Delay every PS1 drive cmd by 79 units
|-
| || 0x12 || Allow Stop command even if disc is not valid CD media.
|-
| || 0x14 || Delay Getstat command by 79 units
|-
| || 0x17 || Some kind of timing for Pause command (70 units), same as 0x1A
|-
| || 0x18 || Some kind of timing for ReadS command (400 units)
|-
| || 0x19 || Skip seeking status check on cmd Pause
|-
| || 0x1A || Some kind of timing for Pause command (70 units), same as 0x17
|-
| || 0x1B || Some kind of timing for Pause command (100 units)
|-
| || 0x1C || Delay every PS1 drive cmd by 53 units
|-
| || 0x1D || Some kind of timing for SeekL/SeekP command (50 units)
|-
| || 0x1E || Change speed immediately if cdda is playing during Setmode, and new value differ from old.
|-
| || 0x1F || Some kind of timing for Pause command (40 units), combined with 0x1C setting
|-
| || 0xFE || Fast CD
|-                               
|}
Note: Some commands are missing from the list. "Unit" seems to be ms, but this need more work. Generally this table need more work, and should be considered as w.i.p.
 
===PS1DRV 1.1.0===
From 2.00-2.10 ROMS, latest available for non Deckard models.<br>
From 2.00-2.10 ROMS, latest available for non Deckard models.<br>
'''Values are decimal''', that's how PS2 read them. Also please don't edit game IDs if is written in small letters, etc. This is also how emu search for them.
'''Values are decimal''', that's how PS2 read them. Also please don't edit game IDs if is written in small letters, etc. This is also how emu search for them.
Line 1,275: Line 1,209:
</div>
</div>


===PS1DRV 1.3.0 (Deckard model)===
===VER 1.3.0 (Deckard model)===
Values from ROM 2.50, so latest available model (TV).<br>
Values from ROM 2.50, so latest available model (TV).<br>
'''Values are hexdecimal''', that's how new PS2 read them. Also please don't edit game IDs if is written in small letters, etc. This is also how emu search for them.
'''Values are hexdecimal''', that's how new PS2 read them. Also please don't edit game IDs if is written in small letters, etc. This is also how emu search for them.
Please note that all contributions to PS2 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS2 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)