Talk:PS1 Emulation: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
 
(156 intermediate revisions by 7 users not shown)
Line 1: Line 1:
== PS1 Emulator Types and Revisions ==
== Memory Map ==  
<div>
For now here, i will move when finished.
<div style="float:top; text-align:center;">'''PS1 Emulator Types and Revisions'''</div>
Based on ps1_netemu 4.86.
<div style="float:left;">
* emu memory 0x770780 - 0x97077F = PS1 RAM (80000000 - 801FFFFF)
{| class="wikitable" style="line-height:100%; font-size:70%; margin-right:5px"
* emu memory 0x970780 - 0x970B7F = PS1 Scratchpad (1F800000 - 1F8003FF)
|+ ps1_emu.elf (decrypted)
* emu memory 0x970B80 - 0xD70B80 = PS1 ROM (1FC00000 - 1FFFFFFF) (only 512kb used)
! Firmware !! Size !! MD5 !! Timestamp !! <abbr title="Revision">Rev</abbr> !! style="padding:1px" | <abbr title="Maximun number of supported commands">Comm</abbr>
|-
! [[1.00_AV|1.00 AV]]
| 10 296 408 || style="font-family:monospace" | 981A7428C2A59219FA05861EDEEDBD4A || 06/10/04/12:16 || ? || ?
|-
! [[1.02_CEX|1.02]]
| 10.296.408 || style="font-family:monospace" | C5FE03742A951194C336EE33783F5CD6 || 06/10/21/00:01 || ? || ?
|-
! [[1.10_CEX|1.10]]
| 10.296.408 || style="font-family:monospace" | C9C9D7D2E36F3E3579A5DF713E9ABE1E || 06/11/09/06:09 || ? || ?
|-
! [[1.11_CEX|1.11]]
| 10.296.408 || style="font-family:monospace" | 26271CCA29B77483DC3D7FDDE7B9CC3C || 06/11/21/17:55 || ? || ?
|-
! [[1.30_CEX|1.30]]
| 10.296.496 || style="font-family:monospace" | E7932EC24E72B3005EE152B141A63690 || 06/12/05/05:34 || ? || ?
|-
! [[1.31_CEX|1.31]]
| 10.296.496 || style="font-family:monospace" | 2244DE70C85093D7E37BC3D3F4278BE1 || 06/12/12/18:48 || ? || ?
|-
! [[1.32_CEX|1.32]]
| 10.296.496 || style="font-family:monospace" | 601BCADBBBC0A2D0433C932A2D67C4EF || 06/12/18/05:55 || ? || ?
|-
! [[1.50_CEX|1.50]]
| 10.303.536 || style="font-family:monospace" | F8050B006CDFCC64DF742D7BBDC03130 || 07/01/18/22:53 || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! [[1.90_CEX|1.90]]
| 6.974.864 || style="font-family:monospace" | 478CFED0F7EE13C94F01C2A246C83D45 || 07/07/21/06:45 || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
| colspan="6" style="background:#ff8080; text-align:center; line-height:75%" | Stripped/extracted rom/bios
|-
! [[2.10_CEX|2.10]]
| ? || ? || ? || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! [[3.40_CEX|3.40]]
| 2.824.576 || style="font-family:monospace" | A6ABFB04739575E2264A4D3FEB2A9CBF || 10/06/23/15:45 || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! [[3.66_CEX|3.66]]
| 2.824.832 || style="font-family:monospace" | 95399A202003E216794511BD2D2E9DF6 || 11/06/16/03:52 || ? || ?
|-{{cellcolors|#bbbbff}}
! [[3.70_CEX|3.70]]
| rowspan="3" | 2.824.920 || style="font-family:monospace" | 045D81147B9BDFB8C8A416FD5F5A0C56 || 11/08/05/03:42 || rowspan="3" | same || rowspan="3" | ?
|-{{cellcolors|#bbbbff}}
! ~
| colspan="2" style="text-align:center; background-color:#bbbbff;" | ''Any''
|-{{cellcolors|#bbbbff}}
! [[3.72_CEX|3.72]]
| style="font-family:monospace" | C745A30231103B83F04539021E4878FC || 11/09/14/01:17
|-{{cellcolors|#ddddff}}
! [[3.73_CEX|3.73]]
| rowspan="2" | 2.824.920 || style="font-family:monospace" | EB3AFF30B3206CFA6A8962AB393F773E || 11/10/04/12:55 || rowspan="2" | same || rowspan="2" | ?
|-{{cellcolors|#ddddff}}
! [[3.74_CEX|3.74]]
| style="font-family:monospace" | E2A77C3DC9FD5AD4264341196462D096 || 11/10/25/00:38
|-{{cellcolors|#bbbbff}}
! [[4.00_CEX|4.00]]
| rowspan="3" | 2.829.784 || style="font-family:monospace" | 94A8E6A8063C08FAD8CA9B340CCCAE67 || 11/11/22/03:17 || rowspan="3" | same || rowspan="3" | ?
|-{{cellcolors|#bbbbff}}
! ~
| colspan="2" style="text-align:center; background-color:#bbbbff;" | ''Any''
|-{{cellcolors|#bbbbff}}
! [[4.11_CEX|4.11]]
| style="font-family:monospace" | 02B7F6D5F517959161B2154135D4B3BC || 12/02/11/07:13
|-
! [[4.15_CEX|4.15]]
| ? || ? || ? || ? || ?
|-{{cellcolors|#ddddff}}
! [[4.20_CEX|4.20]]
| rowspan="2" | 2.829.912 || style="font-family:monospace" | 3778948C92F5FA12CB0AABE65BEE5465 || 12/06/15/02:09 || rowspan="2" | same || rowspan="2" | ?
|-{{cellcolors|#ddddff}}
! [[4.21_CEX|4.21]]
| style="font-family:monospace" | B7B662397E3FFDD7C11F9617C1B41856 || 12/06/30/01:13
|-
! [[4.23_SEX|4.23 S]]
| 2.829.912 || style="font-family:monospace" | 6E74CC51E0C6462DF1F9278ED9DB9593 || 12/07/31/00:22 || ? || ?
|-
! [[4.25_CEX|4.25]]
| 2.829.912 || style="font-family:monospace" | 03EA65C3EA3F8DB04F236C49C6B6C0E1 || 12/09/07/07:03 || <abbr title="same code than 4.20 CEX and 4.21 CEX.... but different than the 4.23 SEX in between, grrrr">same</abbr> || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! [[4.78_CEX|4.78]]
| 2.765.488 || style="font-family:monospace" | 354F1DEEDCA3C4CFA1B49B6B28B1648D || 15/12/17/01:18 || ? || ?
|-
! [[4.80_CEX|4.80]]
| ? || ? || ? || ? || ?
|-
! [[4.81_CEX|4.81]]
| 2.765.616 || style="font-family:monospace" | 2123E3D6A8E81647CB41F51AFEE6CCD6 || 16/10/24/19:23 || ? || ?
|-
! colspan="6" style="background:#80ff80; line-height:75%" | Abandoned (last revision)
|-{{cellcolors|#ddddff}}
! [[4.82_CEX|4.82]]
| rowspan="3" | 2.765.616 || style="font-family:monospace" | 64BFA4DBD595A20E317B2189B54BF673 || 17/08/24/15:42 || rowspan="3" | Last || rowspan="3" | 0x15
|-
! ~
| colspan="2" style="text-align:center; background-color:#ddddff;" | ''Any''
|-
! [[4.88_CEX|4.88]]
| style="background-color:#ddddff; font-family:monospace" | 0C553CE93A2A6322E16636DD76D75E32 || style="background-color:#ddddff;" | 21/04/12/11:34
|}
<span style="font-size:small">
{{widedot}}'''Decrypted (elf)''': changes <abbr title="When comparing two decrypted files of the same revision from different firmwares the only differences are the build label (1 area with size 0x20) and the target firmware (1 area with size 0x2)">every firmware version</abbr><br>
{{widedot}}'''<abbr title="0x20 bytes">Build label</abbr>''': yes, with timestamp, search for '''-sgpu-sspu-sli4'''<br>
{{widedot}}'''<abbr title="2 bytes">Target Firmware</abbr>''': yes repeated '''one''' time<br>
{{widedot}}'''Revision''': unknown
</span>
</div>
<div style="float:left;">
{| class="wikitable" style="line-height:100%; font-size:70%; margin-left:5px; margin-right:5px"
|+ ps1_netemu.elf (decrypted)
! Firmware !! Size !! MD5 !! Timestamp !! <abbr title="Revision">Rev</abbr> !! style="padding:1px" | <abbr title="Maximun number of supported commands">Comm</abbr>
|-
! [[1.70_CEX|1.70]]
| ? || ? || ? || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! [[1.90_CEX|1.90]]
| 6.853.368 || style="font-family:monospace" | 8A5A3676B461C97A9A467D5651D6EAAD || 07/07/21/06:47 || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
| colspan="6" style="background:#ff8080; text-align:center; line-height:75%" | Stripped/extracted rom/bios
|-
! [[2.10_CEX|2.10]]
| ? || ? || ? || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! [[3.40_CEX|3.40]]
| 2.971.288 || style="font-family:monospace" | FD32C7B7CBA2639FC8DB9EB615A16461 || 10/06/23/15:46 || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! [[3.66_CEX|3.66]]
| 2.971.976 || style="font-family:monospace" | 9586FC8B121E59526C31405DCFFB79CA || 11/06/16/03:54 || ? || ?
|-{{cellcolors|#bbbbff}}
! [[3.70_CEX|3.70]]
| rowspan="3" | 2.972.168 || style="font-family:monospace" | AA1DB63461EE0BE021ED45F85A6EECE0 || 11/08/05/03:43 || rowspan="3" | same || rowspan="3" | ?
|-{{cellcolors|#bbbbff}}
! ~
| colspan="2" style="text-align:center; background-color:#bbbbff;" | ''Any''
|-{{cellcolors|#bbbbff}}
! [[3.72_CEX|3.72]]
| style="font-family:monospace" | 32F45129EC2844D419582912E54CEB22 || 11/09/14/01:18
|-{{cellcolors|#ddddff}}
! [[3.73_CEX|3.73]]
| rowspan="2" | 2.972.168 || style="font-family:monospace" | 17063FFAB205B72ABF7F59582B8A7988 || 11/10/04/12:56 || rowspan="2" | same || rowspan="2" | ?
|-{{cellcolors|#ddddff}}
! [[3.74_CEX|3.74]]
| style="font-family:monospace" | 89C03D80ACE7C4FA914DD699621EB4F8 || 11/10/25/00:40
|-{{cellcolors|#bbbbff}}
! [[4.00_CEX|4.00]]
| rowspan="2" | 2.977.128 || style="font-family:monospace" | DBB8FB62BE3F2064D31332FCB7575DF1 || 11/11/22/03:19 || rowspan="2" | same || rowspan="2" | ?
|-{{cellcolors|#bbbbff}}
! [[4.01_CEX|4.01]]
| style="font-family:monospace" | 9E60379FA979B0440C27C6AEE38754AF || 11/12/23/01:10
|-{{cellcolors|#ddddff}}
! [[4.10_CEX|4.10]]
| rowspan="2" | 2.977.208 || style="font-family:monospace" | B3CD41AB8235906AB41D3DA18D04F00E || 12/02/05/23:19 || rowspan="2" | same || rowspan="2" | ?
|-{{cellcolors|#ddddff}}
! [[4.11_CEX|4.11]]
| style="font-family:monospace" | 4DDF2C3289AD9BEDF0719DBE1BDA971C || 12/02/11/07:15
|-
! [[4.15_CEX|4.15]]
| ? || ? || ? || ? || ?
|-{{cellcolors|#bbbbff}}
! [[4.20_CEX|4.20]]
| rowspan="2" | 2.977.432 || style="font-family:monospace" | 363A2D5EE2246E9CEFCBF1078593C771 || 12/06/15/02:10 || rowspan="2" | same || rowspan="2" | ?
|-{{cellcolors|#bbbbff}}
! [[4.21_CEX|4.21]]
| style="font-family:monospace" | 5E08C86EC07E4F227D3591DD9530CC95 || 12/06/30/01:15
|-
! [[4.23_SEX|4.23 S]]
| 2.977.416 || style="font-family:monospace" | 149E5E6AD727B1B37E29D4E8D15D5BB0 || 12/07/31/00:23 || ? || ?
|-
! [[4.25_CEX|4.25]]
| 2.977.432 || style="font-family:monospace" | 295B61D9EEE704077FEC870C8EAC7D35 || 12/09/07/07:04 || <abbr title="same code than 4.20 CEX and 4.21 CEX.... but different than the 4.23 SEX in between, grrrr">same</abbr> || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! [[4.78_CEX|4.78]]
| 2.913.480 || style="font-family:monospace" | 398A7CA9F0E8449E15FCB33B87C96194 || 15/12/17/01:19 || ? || ?
|-
! [[4.80_CEX|4.80]]
| ? || ? || ? || ? || ?
|-
! [[4.81_CEX|4.81]]
| 2.913.656 || style="font-family:monospace" | 8765A00EE467B8635A13ECCBB1F85B89 || 16/10/24/19:24 || ? || ?
|-
! [[4.82_CEX|4.82]]
| 2.913.752 || style="font-family:monospace" | FCEB6595F9F8E5C77BA36C73C38397D9 || 17/08/24/15:43 || ? || ?
|-
! colspan="6" style="background:#80ff80; line-height:75%" | Abandoned (last revision)
|-{{cellcolors|#ddddff}}
! [[4.83_CEX|4.83]]
| rowspan="3" | 2.913.992 || style="font-family:monospace" | CA9509623B9885E18D12E14FA1488EEF || 18/09/02/18:03 || rowspan="3" | Last || rowspan="3" | 0x3C
|-
! ~
| colspan="2" style="text-align:center; background-color:#ddddff;" | ''Any''
|-
! [[4.88_CEX|4.88]]
| style="background-color:#ddddff; font-family:monospace" | D3283D3F3B5CDF68113560829530E7B3 || style="background-color:#ddddff;" | 21/04/12/11:34
|}
<span style="font-size:small">
{{widedot}}'''Decrypted (elf)''': changes <abbr title="When comparing two decrypted files of the same revision from different firmwares the only differences are the build label (1 area with size 0x20) and the target firmware (2 areas with size 0x2)">every firmware version</abbr><br>
{{widedot}}'''<abbr title="0x20 bytes">Build label</abbr>''': yes, with timestamp, search for '''-sgpu-sli4'''<br>
{{widedot}}'''<abbr title="2 bytes">Target Firmware</abbr>''': yes repeated '''two''' times<br>
{{widedot}}'''Revision''': unknown
</span>
</div><div style="float:left;">
{| class="wikitable" style="line-height:100%; font-size:70%; margin-left:5px; margin-right:5px"
|+ ps1_newemu.elf (decrypted)
! Firmware !! Size !! MD5 !! Timestamp !! <abbr title="Revision">Rev</abbr> !! style="padding:1px" | <abbr title="Maximun number of supported commands">Comm</abbr>
|-
! [[2.10_CEX|2.10]]
| ? || ? || ? || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! [[3.40_CEX|3.40]]
| 2.708.856 || style="font-family:monospace" | C866D54E85BAA06D111C8300F9EA85F1 || 10/06/23/15:51 || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! [[3.66_CEX|3.66]]
| 2.708.864 || style="font-family:monospace" | 9AB86CFAEB12675F3DB08FCAA3541534 || 11/06/16/03:54 || ? || ?
|-{{cellcolors|#bbbbff}}
! [[3.70_CEX|3.70]]
| rowspan="3" | 2.708.880 || style="font-family:monospace" | 7AB7C32901778E3F0C9B8DB45296821B || 11/08/05/03:44 || rowspan="3" | same || rowspan="3" | ?
|-{{cellcolors|#bbbbff}}
! ~
| colspan="2" style="text-align:center; background-color:#bbbbff;" | ''Any''
|-{{cellcolors|#bbbbff}}
! [[3.72_CEX|3.72]]
| style="font-family:monospace" | 2863E9B70B4FB6C5A0938FF508C46057 || 11/09/14/01:18
|-{{cellcolors|#ddddff}}
! [[3.73_CEX|3.73]]
| rowspan="2" | 2.708.880 || style="font-family:monospace" | 871E256771632569D664FF2A1ECE82C3 || 11/10/04/12:57 || rowspan="2" | same || rowspan="2" | ?
|-{{cellcolors|#ddddff}}
! [[3.74_CEX|3.74]]
| style="font-family:monospace" | 8A8AC80CBA58561CC754C6CF66B059AB || 11/10/25/00:40
|-{{cellcolors|#bbbbff}}
! [[4.00_CEX|4.00]]
| rowspan="2" | 2.713.832 || style="font-family:monospace" | F9E840430B2BC982CB1A71B7BDD7FC35 || 11/11/22/03:19 || rowspan="2" | same || rowspan="2" | ?
|-{{cellcolors|#bbbbff}}
! [[4.01_CEX|4.01]]
| style="font-family:monospace" | 953090CBCB96626899731B711B3D5B6A || 11/12/23/01:11
|-{{cellcolors|#ddddff}}
! [[4.10_CEX|4.10]]
| rowspan="2" | 2.713.720 || style="font-family:monospace" | 47E7FA52DB7BDEDF2187EB02D868834D || 12/02/05/23:20 || rowspan="2" | same || rowspan="2" | ?
|-{{cellcolors|#ddddff}}
! [[4.11_CEX|4.11]]
| style="font-family:monospace" | 8A90DB2A206BE79423A99D4CF2458241 || 12/02/11/07:16
|-
! [[4.15_CEX|4.15]]
| ? || ? || ? || ? || ?
|-{{cellcolors|#bbbbff}}
! [[4.20_CEX|4.20]]
| rowspan="2" | 2.713.904 || style="font-family:monospace" | 8AC80356D1EFDDCFF7A7AD82136137D2 || 12/06/15/02:11 || rowspan="2" | same || rowspan="2" | ?
|-{{cellcolors|#bbbbff}}
! [[4.21_CEX|4.21]]
| style="font-family:monospace" | E482927E47B00C1478313E343DD652C4 || 12/06/30/01:15
|-
! [[4.23_SEX|4.23 S]]
| 2.713.888 || style="font-family:monospace" | A2CF9C4C00B40779FB5C529849E0D6A4 || 12/07/31/00:24 || ? || ?
|-
! [[4.25_CEX|4.25]]
| 2.713.904 || style="font-family:monospace" | 24107753F0B02075DAB20492BA67167D || 12/09/07/07:05 || <abbr title="same code than 4.20 CEX and 4.21 CEX.... but different than the 4.23 SEX in between, grrrr">same</abbr> || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! ?
| ? || ? || ? || ? || ?
|-
! [[4.78_CEX|4.78]]
| 2.649.144 || style="font-family:monospace" | BF78A0DC74084B43777A7F8CE6C7B66A || 15/12/17/01:20 || ? || ?
|-
! [[4.80_CEX|4.80]]
| ? || ? || ? || ? || ?
|-
! [[4.81_CEX|4.81]]
| 2.649.272 || style="font-family:monospace" | 0C76DE974439B12546EA494639C8EE9A || 16/10/24/19:25 || ? || ?
|-
! colspan="6" style="background:#80ff80; line-height:75%" | Abandoned (last revision)
|-{{cellcolors|#ddddff}}
! [[4.82_CEX|4.82]]
| rowspan="3" | 2.649.288 || style="font-family:monospace" | C5957F268EE9E1429DE3AF0BC15F1395 || 17/08/24/15:44 || rowspan="3" | Last || rowspan="3" | 0x18
|-
! ~
| colspan="2" style="text-align:center; background-color:#ddddff;" | ''Any''
|-
! [[4.88_CEX|4.88]]
| style="background-color:#ddddff; font-family:monospace" | 4002EC6CB88F5D2D5E7DF0B0F80A6A0A || style="background-color:#ddddff;" | 21/04/12/11:35
|}
<span style="font-size:small">
{{widedot}}'''Decrypted (elf)''': changes <abbr title="When comparing two decrypted files of the same revision from different firmwares the only differences are the build label (1 area with size 0x20) and the target firmware (2 areas with size 0x2)">every firmware version</abbr><br>
{{widedot}}'''<abbr title="0x20 bytes">Build label</abbr>''': yes, with timestamp, search for '''-sgpu-sspu-sli4'''<br>
{{widedot}}'''<abbr title="2 bytes">Target Firmware</abbr>''': yes repeated '''two''' times<br>
{{widedot}}'''Revision''': unknown
</span>
</div><div style="float:left;">
{| class="wikitable" style="line-height:100%; font-size:70%; margin-left:5px"
|+ ps1_rom.bin
! Firmware !! Size !! MD5
|-
! [[2.10_CEX|2.10]]
| ? || ?
|-
! ?
| ? || ?
|-
! [[3.40_CEX|3.40]] ~ [[3.74_CEX|3.74]]
| 4.089.584 || style="font-family:monospace" | FBB5F59EC332451DEBCCF1E377017237
|-
! [[4.00_CEX|4.00]] ~ [[4.88_CEX|4.88]]
| 524.288 || style="font-family:monospace" | 81BBE60BA7A3D1CEA1D48C14CBCC647B
|}
<span style="font-size:small">
{{widedot}}'''Format''': Not compiled or encrypted for every firmware<br>
{{widedot}}'''Build label''': unknown<br>
{{widedot}}'''Revision''': unknown
</span>
</div>
</div>
<br style="clear: both;" />


== Command IDs mapping ==
== GPU related info ==
All the PS1 emulators have some game settings hardcoded inside them organized in a table using a hierarchy, pretty much the same structure used by ps2_gxemu.self and ps2_softemu.self to store the CONFIGS<br>
<pre>
There is a point of the hierarchy where is indicated the number of commands and the offset where are located. Every command is composed by ID[4] and data[4] (where the data coould be another offset to load more data from a deeper level of the hierarchy)<br>
Highly recommended to visit site below to understand this info:
That IDs differs in between the PS1 emulator versions because are not a direct ID, it seems every ID is mapped to a different ID (probably static and common for all emu versions) in a separated table
http://problemkaputt.de/psx-spx.htm#gpustatusregister
http://problemkaputt.de/psx-spx.htm#gpudisplaycontrolcommandsgp1
 
Offset in emu memory (ps1_netemu 4.86) | name | info
 
001B39D0 GP0_commands_table {ParamsCount, OPD}
0x10C5E4 GP1_reset_gpu
0x10C88C GP1_reset_command_buffer
0x10C940 GP1_acknowledge_gpu_IRQ1
0x10C968 GP1_display_enable
0x10C9A4 GP1_dma_direction___data_request
0x10CA20 GP1_display_mode
0x10CAEC GP1_get_gpu_info
0x10CB00 GP1_horizontal_display_range
0x10CB30 GP1_vertical_display_range
0x10CB60 GP1_start_of_display_area_in_VRAM
0x10CBD8 dma_dir_GPUREADtoCPU
0x10CD34 dma_dir_Off
 
Emulated GPU important data addresses.
0xD70BE4 E2_REG (used for immediate response by GPUINFO request)\
0xD70BE8 E3_REG (used for immediate response by GPUINFO request) \ Set by GP0 Ex cmds.
0xD70BEC E4_REG (used for immediate response by GPUINFO request) /
0xD70BF0 E5_REG (used for immediate response by GPUINFO request)/
0xD70C1C GP1_get_gpu_info_request (data supplied in GP1 0x10-0x1F cmd)
0xD70C20 GPUSTAT_r (PS1 GPU status register 1F801814 in read mode)
0xD70C24 dma_dir__data_req (from GP1 0x04 cmd)
0xD70C28 - 0xD70DA0 UNCONFIRMED seems to be GP0 fifo on PPU side, but need some reversing to confirm.
0xD70DA4 display_enable_request (based on GP1 0x03 cmd)
0xD70DA8 start_of_display_area_in_VRAM__X (from GP1 0x05 cmd)
0xD70DAC start_of_display_area_in_VRAM__Y (from GP1 0x05 cmd)
0xD70DB0 H_display_range_X1 (from GP1 0x06 cmd)
0xD70DB4 H_display_range_X2 (from GP1 0x06 cmd)
0xD70DB8 V_display_range_Y1 (from GP1 0x07 cmd)
0xD70DBC V_display_range_Y2 (from GP1 0x07 cmd)
0xD70DC0 H_resolution_1 (from GP1 0x08 cmd)
0xD70DC4 V_resolution (from GP1 0x08 cmd)
0xD70DC8 video_mode___is_pal (from GP1 0x08 cmd)
0xD70DCC display_area_color_depth (from GP1 0x08 cmd)
0xD70DD0 vertical_interlace (from GP1 0x08 cmd)
0xD70DD4 H_resolution_2 (from GP1 0x08 cmd)
0xD70DD8 reverse_flag (from GP1 0x08 cmd)
0xD70DEC display_enable (from GP1 0x03 cmd)
0xD70DF0 display_params_change_requested (1 when old display_mode != new from cmd 0x08)
0xD70DF4 display_mode (whole 8 bits of GP1 0x08)
 
 
Config GPU related commands.
Some values are not directly from cfg (are shifted before writing here, etc.).
0xD70E14 set_by_cmd_21
0xD70E18 set_by_cmd_22
0xD70E1C set_by_cmd_23
0xD70E20 set_by_cmd_24
0xD70E24 set_by_cmd_25
0xD70E28 set_by_cmd_26
0xD70E2C set_by_cmd_27
0xD70E30 set_by_cmd_28
0xD70E34 set_by_cmd_29
0xD70E38 set_by_cmd_2B
0xD70E3C set_by_cmd_2C
0xD70E40 set_by_cmd_2D
0xD70E44 set_by_cmd_2E
0xD70E48 set_by_cmd_2F
0xD70E4C set_by_cmd_20
0xD70E50 set_by_cmd_31
0xD70E54 set_by_cmd_30
</pre>
 
=== ps1_emu vs ps1_netemu GPU emulation differences ===
 
In some cracktros (Spyro 3, Sydney 2000, NFS Porsche 2000) the GP0 command E4h (E4080200) draws the image on the wrong coordinates, causing the frozen image of the zoomed PS1 licence screen. According to this [https://psx-spx.consoledev.net/graphicsprocessingunitgpu/#gp0e4h-set-drawing-area-bottom-right-x2y2 info], that command does make use of the newer 2MB VRAM GPU coordinates. Restricting the drawing area to the lower coordinates does fix the image. It looks like a lot of emulators are affected by this, either the Sony ones (ps1_emu on PS3, PS1 on PS2 hardware emulator, POPS on PSP) or the homebrew pSX 1.13. The ps1_netemu is displaying the image correctly. Does it mean the ps1_netemu emulate a different, newer GPU or just increase the emulation accuracy in general (assuming these cracktros work fine even on the oldest PSX released EDIT: I have found reports they are picky even on the original PS1 hardware too.)?
* Yes, this should fail also on old PS1 GPU. I can also confirm that PS1DRV (at least before deckard PS2 models) emulate old GPU model.
As for PS3. ps1_emu, and ps1_newemu emulate old GPU, ps1_netemu emulate new GPU at least partially. Also small tip, all emulators have pair of 2 embed
SPE ELFs. One is SPU emulator, second is GPU emulator. All of them have debug symbols.
 
ps1_emu
<pre>
.text:000014D0 E4_cmd:                             
.text:000014D0      il        r56, 0x3FF
.text:000014D4      hbrr      loc_1504, loc_403C
.text:000014D8      rotmi      r54, r12, -10      # r12 = whole 32 bit command
                                                  # r54 = is command shifted by 10 to skip
                                                  # x-cord. So now first bits are y-cord.
.text:000014DC      lqr        r51, xmmword_E520
.text:000014E0      and        r55, r12, r56      # x-cord and with whole 10 bits.
.text:000014E4      cwd        r53, 0xF0+var_F0(sp)
.text:000014E8      cwd        r49, 0xF0+var_F0+8(sp)
.text:000014EC      ai        r52, r55, 1
.text:000014F0      andi      r50, r54, 0x1FF    # y-cord and with 0x1FF, so only 9 bits.
</pre>
 
ps1_netemu
<pre>
.text:00003338 E4_cmd:                         
.text:00003338      rotmi      r18, r12, -10      # r12 = whole 32 bit command
                                                  # r18 = is command shifted by 10 to skip
                                                  # x-cord. So now first bits are y-cord.
.text:0000333C      hbrr      loc_3384, loc_3328
.text:00003340      il        r19, 0x3FF
.text:00003344      lqr        r39, xmmword_150D0
.text:00003348      il        r8, 0x200
.text:0000334C      lqr        r33, xmmword_150E0
.text:00003350      and        r44, r12, r19      # x-cord and with whole 10 bits.
.text:00003354      cwd        r42, arg_0+0xC(sp)
.text:00003358      and       r43, r18, r19      # y-cord and with 0x3FF, so whole 10 bits.
</pre>
---kozarovv.
 
== PS1 I/O handlers ==
List of functions that are responsible for interpreting HW registers reads/writes. Based on 4.86 ps1_netemu.
<pre>
timers_hwreg_write_handler  0xC2CC0
timers_hwreg_read_handler  0xC2F80
dma_hw_read_handler        0xD09C8
dma_hw_write_handler        0xD0E18
spu_hwreg_write_handler    0xD1E68
spu_hwreg_read_handler      0xD1FF8
joy_hwreg_write_handler    0xD44A8
joy_hwreg_read_handler      0xD49F8
sio_hwreg_write_handler    0xD758C
sio_hwreg_read_handler      0xD7620
cdr_hwreg_read_handler      0xD80A0
cdr_hwreg_write_handler    0xE8598
mdec_hwreg_write_handler    0xE9A18
mdec_hwreg_read_handler    0xEA2F0
i_ctrl_hwreg_read_handler  0x10577C
i_ctrl_hwreg_write_handler  0x1063AC
gpu_hwreg_read_handler      0x10BF40
gpu_hwreg_write_handler    0x10C48C
</pre>
 
== Experimental Patches ==
This patches are intended to be applyed to the PS1 emulators
 
==== Disable Dithering ====
Always set bit 9 in GP0 E1 command to 0. Patches apply to SPE PS1 GPU emulation program. Based on 4.86, but should be valid for all firmwares since 4.6x<br><br>
For ps1_emu.elf
<pre>
search for: 23 EC A4 04 23 E3 3B 85  33 7E 26 00 32 05 86 00 0F 3D C6 11
replace to: 23 EC A4 04 23 E3 3B 85  33 7E 26 00 32 05 86 00 40 80 00 11
</pre>
 
For ps1_netemu.elf
<pre>
search for: 7C 38 41 94 20 7F F4 94 0F 3D C6 3C 12 7F F3 8A
replace to: 7C 38 41 94 20 7F F4 94 40 80 00 3C 12 7F F3 8A
</pre>
 
For ps1_newemu.elf
<pre>
search for: 20 7F FD 4C 23 9D C5 85  32 05 B2 80 12 05 B2 0B 0F 3D C6 58
replace to: 20 7F FD 4C 23 9D C5 85  32 05 B2 80 12 05 B2 0B 40 80 00 58
</pre>


====How hardcoded config is read based on ps1emu.====
Patch for rpcs3 (newemu only) for testing purpose.
Like mentioned above config is created from 2x u32 values. Lets call first value command, and second value param.<br>
Command is used to calculate address for param, and only param is stored on obtained address.<br>
Emulator then check for params, and if found (usually when not zero) apply settings based on them.<br>
<pre>
<pre>
0x10BC8                lwz      r0, 0(r9)      # load HASH
Version: 1.2
0x10BCC                cmpw      cr7, r0, r27    # compare title HASH with one from DB
 
0x10BD0                bne      cr7, loc_10BB8  # loop till HASH found
SPU-f3d8be702bf4cb8545656e37c29fcc6201a57991:
0x10BD4                slwi      r0, r10, 4      # config number << 4 to get offset from first entry in table
  "Disable Dithering":
0x10BD8                addi      r24, r1, 0xAB0+var_A40
     Games:
0x10BDC                extsw     r0, r0
       All:
0x10BE0                clrldi    r3, r24, 32
        All: [ All ]
0x10BE4                add       r29, r0, r8    # r29 now points to game entry in config table
     Author: "kozarovv"
0x10BE8                lwz      r4, 4(r29)      # load pointer to game ID
    Patch Version: 1.0
0x10BEC                bl        sub_137FF8
     Patch:
0x10BF0                nop
       - [ be32, 0xFB0, 0x40800058 ]
0x10BF4                lwz      r28, 8(r29)
0x10BF8                cmpwi     cr7, r28, 0
0x10BFC                ble      cr7, loc_10C58  # check config count is not 0 or less
0x10C00                lwz      r26, 0xC(r29)  # r26 is now pointer to configs for game
0x10C04                li        r30, 0
0x10C08                li        r29, 0
0x10C0C                lwz      r25, off_17B5D8 # "core.c: CoreCheckTitle: param[%d] = 0x%"...
0x10C10
0x10C10 read_conf_loop:                          # CODE XREF: CoreCheckTitle+2DC↓j
0x10C10                add      r11, r30, r26  # r11 is now pointer to currently read config for game
0x10C14                addi      r29, r29, 1     # count...
0x10C18                clrldi    r11, r11, 32
0x10C1C                mr        r3, r25        # just for print
0x10C20                addi      r30, r30, 8    # add 8 so next time in loop we read new config (4),
0x10C20                                          # and new params (4) if game have more than one config
0x10C24                lwz      r4, 0(r11)      # load command
0x10C28                lwz      r0, 4(r11)      # load params
0x10C2C                slwi      r9, r4, 2      # r9 = r4 << 2 so shift our command to the left by 2, and store in r9
0x10C30                clrldi    r5, r0, 32      # just print again
0x10C34                addi      r9, r9, 0x10    # add 0x10 to shifted command value
0x10C34                                          # to create address where param of config will be stored
0x10C38                extsw     r4, r4
0x10C3C                extsw    r9, r9
0x10C40                add       r9, r9, r31    # r31 is value that change between emu versions.
0x10C40                                          # That way emulator can keep correct config IDs without changes to table.
0x10C40                                          # r31 0x2B0930 + what we currently have in r9 after previous calculations.
0x10C44                stw      r0, 4(r9)      # Store param on finally calculated address + 4. For example for config 04
0x10C44                                          # address will be 0x2B0954.
0x10C48                bl        print_
0x10C4C                nop
0x10C50                cmpw      cr7, r28, r29  # r28 overall config count
0x10C50                                          # r29 currently read count
0x10C54                bne      cr7, read_conf_loop
</pre>
</pre>
====Known ps1emu.self commands====
* 0xB param is magic word for libcrypt.
* 0xE param is divider for 0x204CC00 (psx cpu speed), result is stored on fixed address and used by many functions.
* 0x15 when param is set to 3, force game reload with ps1netemu. Is not known what other param values do.


== Commands Info ==
==== Allow non encrypted ISO.BIN.EDAT and skip signature check (RPCS3 only) ====
For easier config testing. Patch allow to use unencrypted ISO.BIN.EDAT so we don't need to mess with klic. Also ECDSA signature at the end of file is no longer required. So we can ftp configs as is, for faster testing. Warning! This patch break official ps1_classics.
<br><br>
ps1_netemu.elf 4.86-4.90 offset in raw hex (for Hxd, etc.)
0xDDD6C replace 48 07 14 21 to 38 60 00 00
0xE13C4 replace 60 00 00 00 to 38 60 00 00
 
==== GTE Automatic Widescreen Hack ====
Automatic widescreen without per game patches. Work only for 3D elements (like 95% of available widescreen patches).<br>
Tested on both RPCS3 and real PS3 (CFW only, but can be added to hen).<br>
ps1_netemu.elf 4.86 - 4.91 offsets in raw hex (for Hxd, etc.)
0x2BDA4 original code:
    7C 69 1B 78 3C 60 80 54 2F 89 00 00 60 63 00 10
    40 9E 00 14 3C 60 80 54 60 63 00 02 7C 63 07 B4
    4E 80 00 20 A0 09 00 02 2F 80 00 00 41 9E FF F0
    C0 02 A3 D8 FF 81 00 00 41 9D FF DC C0 02 A3 DC
    38 60 00 00 FF 81 00 00 41 9C FF CC D0 29 00 6C
    4B FF FF CC
replace to:
    78 C0 F8 42 78 C6 F0 82 7C C6 02 14 7D 08 32 14
    48 0C 47 7E 78 E9 F8 42 78 E7 F0 82 7C E9 3A 14
    7C C6 3A 14 48 0C 65 66 79 00 F8 42 79 08 F0 82
    7D 08 02 14 7C C6 42 14 48 0C 69 0A 79 00 F8 42
    79 08 F0 82 7D 08 02 14 7C C6 42 14 48 0C 6C 6A
    60 00 00 00
0xB4778  original code: 7D 08 32 14 replace to: 48 03 BD A6
0xB6560  original code: 7C C6 3A 14 replace to: 48 03 BD BA
0xB6904  original code: 7C C6 42 14 replace to: 48 03 BD CE
0xB6C64  original code: 7C C6 42 14 replace to: 48 03 BD E2
 
== Ps1_netemu Commands Info ==
 
=== External Configs ===
 
Loading external commands is be possible in ps1_netemu. From this we can also figure out that sony call those configs "ad hoc params" which can be little bit misleading. Emulator expect them inside ISO.BIN.EDAT file. Offset depend if "optional header" exist or not. Values are little endian.
The offsets below are the offsets from the start of the PSISOIMG section. This data starts at absolute file offset 0x424 for single disk games that do not use a PSTITLEIMG section. For games that do have a PSTITLEIMG section, the absolute offset will be shifted by 0x400 bytes, i.e. to offset 0x824 and similar.
* Offset 0x424 Config revision in bcd format, that need to be higher than DB from emu (11624 for 4.86). Safe to use 0x200000.
* Offset 0x42C first config command
* Offset 0x430 param for first command
* This repeats 8 times as only 8 commands is supported.
* Command 2 is unsupported.
* Command 0 is unsupported because $ony made mistake in parser.
* Command 0x17 is supported, but there is different official way to inject it, and it is libcrypt key so there is no point to do it this way.
This probably repeats for multidiscs, but for now let's figure out single discs first.
<br>Function that search for configs look like this:
case 9:
  if ( *(&0x161FD80) ) 1570FA0(base) + AEDE0(offset in ISO.BIN.DAT or PSISOIMG? ) = 161FD80 in 4.86 ps1_netemu
  {
    cfg_rev = get_cfg_rev_from_PSIMG();
    db_rev = get_titledb_rev();
    decimal_16 = ret_32() >> 1;
    tty_print("ad hoc param: %x <%x>\n", cfg_rev, db_rev);
    if ( decimal_16 )
    {
      low_rev = cfg_rev < db_rev;          // Check is opposite to ps2_netemu, only config version higher than included db will pass.
                                            // Which mean config need to be higher version than emu database.
      for ( i = 0; i < decimal_16; i += 2 ) // up to 8 configs supported (8 commands + 8 values)
      {
        cfg_command = read_cfg_from_PSIMG(i);
        _cfg_value = read_cfg_from_PSIMG(i + 1);
        if ( cfg_command - 1 <= 0x3B )      // max cfg nr 0x3C
        {
          v245 = cfg_command >> 28;        // Most likely check for wrong endianess. Configs are LE and are byte reversed before we end up here.
          if ( low_rev || v245 || cfg_command == 2 )// cfg 2 unsupported (replaced in later PSIMG rev with subchannel data), or old config rev, or v245.
          {
            tty_print("%x: %2d=0x%08x ***\n", v245 & 0xF, cfg_command, _cfg_value); // Ignore cfg
          }
          else
          {
            cfg_value = _cfg_value;
            tty_print("%x: %2d=0x%08x\n", 0LL, cfg_command, _cfg_value);
            WriteInternalConfigValue(cfg_command, cfg_value);
          }
        }
      }
    }
  }
 
=== Command IDs mapping ===
The command IDs differs in between the PS1 emulator types and versions because are an indirect ID, it seems every command ID is mapped to a static ID in a separated table<br>
The command ID's varies in between firmware versions, most probably because new functions was added every few versions, reorganized, etc... and this changes created a "displacement" of the old commands that causes them to increase his ID<br>
The command ID's varies in between firmware versions, most probably because new functions was added every few versions, reorganized, etc... and this changes created a "displacement" of the old commands that causes them to increase his ID<br>
At the time of writing this we dont know how to map that variable ID's to an static ID (that could be valid for all firmware versions), so by now in this list is needed to indicate the firmware version where the command ID was found<br>
At the time of writing this we dont know how to map that variable ID's to an static ID (that could be valid for all firmware versions), so by now in this list is needed to indicate the firmware version where the command ID was found<br>
Coincidentially there are a few commands that preserves his ID in between firmware versions, most probably is because are the first commands implemented (up to netemu command 0x04)) and the variable ID given to them is a very low value, so always was kept at a low position in the commands list and was not disturbed by the modifications made to the other commands.
Coincidentially there are a few commands that preserves his ID in between emulator types and revisions, most probably is because are the first commands implemented and the variable ID given to them is a very low value, so always was kept at a low position in the commands list and was not disturbed by the modifications made to the other commands.
<br><br>
According to internal tables (4.86):
* ps1_emu support commands up to 0x15
* ps1_newemu support commands up to 0x18
* ps1_netemu support commands up to 0x3C
Beside functions that read command params directly, every emulator have function (madeup name) ReadInternalConfigValue(u32 command_id). This function take command_id as only variable, and return param in r3 for selected command. This is used widely to read command params, that include libcrypt commands.
<br><br>
Function mentioned above is placed on (in emu memory, 4.86):
* ps1_emu 0x10638
* ps1_newemu 0x12F54
* ps1_netemu 0xB65F0


=== Command 0x00 (netemu 3.40 up to 4.88) ===
*Valid values found
**0 = ? (used by SCPS-18011 Um Jammer Lammy, and SLPS-01818 Langrisser IV & V Final Edition [Disc1of2])
In Um Jammer Lammy is used together with command 0x13, so it was a bit doubtful if it was a mistake. But Langrisser IV & V Final Edition [Disc1of2] uses it too and is the only command used by this disc, so it "should" do something. Um Jammer Lammy in netemu 3.40 was fixed only with command 0x0/0x0 (id/data)
*Um Jammer Lammy (SCPS-18011) uses somewhat new external config revision (11580) in official classic's external config, but only uses command 0x13. Keep in mind the game was released Febuary 27, 2008, so package was possibly updated with new config at some point, and then in internal table, so maybe it once had a different config command in config table and 0x00 nullified it. Langrisser IV (SLPS-01818) has old config revision (5713) and uses command 0x03 set to 0x3E8, so just default. Maybe internal config for Langrisser IV is empty config just to also nullify external config? --[[User:Mrjaredbeta|Mrjaredbeta]] ([[User talk:Mrjaredbeta|talk]]) 03:32, 1 September 2023 (CEST)


=== Command 0x01 (netemu 3.40 up to 4.88) ===
=== Command 0x01 (netemu 3.40 up to 4.88) ===
Used by SLPM_865.49, SLPM_865.50, SLPS_017.16, SLPS_004.16, SLUS_004.33)
*Valid values found
*Valid values found
**2 (in SLPM_865.49, SLPM_865.50, SLPS_017.16)
**1 = ? (used by SLPS_004.16, SLUS_004.33)
**1 (in SLPS_004.16, SLUS_004.33)
**2 = ? (used by SLPM_865.49, SLPM_865.50, SLPS_017.16)


=== Command 0x02 (netemu 3.40 up to 4.88) ===
=== Command 0x02 (netemu 3.40 up to 4.88) ===
The command data contains an offset that points to an area where are stored a list of sectors (4 bytes each), there are only 3 games using this command and are libcrypt protected: MediEvil (SCES-00311), Vagrant Story (SLES-02754), and Crash Team Racing (SCES-02105)<br>
There are only 3 games using this command and are libcrypt protected games:, Crash Team Racing (SCES-02105), MediEvil (SCES-00311), and Vagrant Story (SLES-02754)<br>
The command data contains an offset that points to an area where are stored a list of sectors (4 bytes each). When the emulator starts reading the list it doesnt knows how long is it so it reads groups of 4 bytes consecutivelly until it finds the value 00000000 that works as a terminator, the presence of this terminator at the end of the sector list is mandatory. Worth to note that list is more extensive than redump libcrypt one, but they match to some extend. Probably redump store only sectors really needed to run game correctly, while Sony decided to keep them all. Command is used only with LC1 games (Redump is wrong about medievil, is LC1).<br>
The libcrypt protection is related with subchannel data stored by sectors, in redump.org this data is managed with the SBI files, displayed in a hexeditor view in each specific game page. If we convert the data from the official format to decimal and we compare it with the sector numbers in the redump.org SBI file it can be seen all the libcrypt protected sectors from the SBI file are included in the official format<br>
The libcrypt protection is related with subchannel data stored by sectors, in redump.org this data is managed with the SBI files, displayed in a hexeditor view in each specific game page. If we convert the data from the official format to decimal and we compare it with the sector numbers in the redump.org SBI file it can be seen all the libcrypt protected sectors from the SBI file are included in the official format<br>
The official format seems to include a lot more sectors which purpose is unknown<br>
The official format seems to include a lot more sectors which purpose is unknown<br>
There seems to be way to supply that data/command from external file. Some research by "Fedor Wearing A Fedora" [https://www.psx-place.com/threads/ps1-libcrypt-support-on-ps3-official-emus-research-thread.35836/page-13#post-318218 here] and [https://www.psx-place.com/threads/ps1-libcrypt-support-on-ps3-official-emus-research-thread.35836/page-13#post-318506 here]<br>
<u>Crash Team Racing</u> [http://redump.org/disc/798/ SCES-02105] (at absolute offset 0x1627E4 in ps1_netemu.self 4.83-4.88)
<small><pre style="height:410px">
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
001627E0              00 00 06 A3 00 00 0E 21 00 00 17 79      ...£...!...y
001627F0  00 00 29 CB 00 00 2B 21 00 00 2E 22 00 00 31 31  ..)Ë..+!..."..11
00162800  00 00 37 19 00 00 37 1E 00 00 38 35 00 00 38 95  ..7...7...85..8•
00162810  00 00 38 9A 00 00 3A D0 00 00 3A D5 00 00 3B 1A  ..8š..:Ð..:Õ..;.
00162820  00 00 3B 1F 00 00 3B D0 00 00 3B D5 00 00 3C 12  ..;...;Ð..;Õ..<.
00162830  00 00 3C 17 00 00 3D 0C 00 00 3D 11 00 00 3F 27  ..<...=...=...?'
00162840  00 00 3F 2C 00 00 48 91 00 00 55 35 00 00 57 A1  ..?,..H‘..U5..W¡
00162850  00 00 58 38 00 00 59 38 00 00 5B 67 00 00 62 A9  ..X8..Y8..[g..b©
00162860  00 00 62 C5 00 00 78 4F 00 00 78 CA 00 00 7E 94  ..bÅ..xO..xÊ..~”
00162870  00 00 90 30 00 00 9A D5 00 00 9E 05 00 00 A4 3D  ...0..šÕ..ž...¤=
00162880  00 00 A4 42 00 00 A5 C0 00 00 A5 C5 00 00 A8 04  ..¤B..¥À..¥Å..¨.
00162890  00 00 A8 09 00 00 A8 A9 00 00 A8 AE 00 00 A9 5A  ..¨...¨©..¨®..©Z
001628A0  00 00 A9 5F 00 00 A9 90 00 00 A9 95 00 00 AA 72  ..©_..©...©•..ªr
001628B0  00 00 AA 77 00 00 AD 18 00 00 AD 1D 00 00 C5 5C  ..ªw........Å\
001628C0  00 00 EC 56 00 00 FB CA 00 01 04 52 00 01 04 7C  ..ìV..ûÊ...R...|
001628D0  00 01 08 F4 00 01 22 A3 00 01 26 79 00 01 2F 8B  ...ô.."£..&y../‹
001628E0  00 01 2F A6 00 01 2F CE 00 01 53 A8 00 01 79 10  ../¦../Î..S¨..y.
001628F0  00 01 86 0D 00 01 C3 96 00 01 CD 83 00 01 EA 08  ..†...Ö..̓..ê.
00162900  00 01 F6 92 00 02 02 57 00 02 1C 08 00 02 53 85  ..ö’...W......S…
00162910  00 02 91 5D 00 02 93 8F 00 02 93 A6 00 02 AB 93  ..‘]..“...“¦..«“
00162920  00 02 AB FB 00 02 BC 8C 00 02 CA 39 00 02 D2 17  ..«û..¼Œ..Ê9..Ò.
00162930  00 02 F1 35 00 03 16 06 00 03 4A 45 00 03 4C B6  ..ñ5......JE..L¶
00162940  00 03 68 26 00 03 6B 1D 00 03 92 B8 00 03 92 F2  ..h&..k...’¸..’ò
00162950  00 03 9B 5D 00 03 A7 76 00 03 BA 90 00 03 C5 1A  ..›]..§v..º...Å.
00162960  00 03 C5 41 00 03 C5 A3 00 03 FC F1 00 03 FD DA  ..ÅA..Å£..üñ..ýÚ
00162970  00 04 14 C2 00 04 1F 49 00 04 26 57 00 04 87 5F  ...Â...I..&W..‡_
00162980  00 04 8E 65 00 04 C0 DA 00 00 00 00              ..Že..ÀÚ....
000006A3
00000E21
00001779
000029CB
00002B21
00002E22
00003131
00003719 --- to decimal ---> 14105 (mentioned in the redump SBI file)
0000371E --- to decimal ---> 14110 (mentioned in the redump SBI file)
00003835
00003895 --- to decimal ---> 14485 (mentioned in the redump SBI file)
0000389A --- to decimal ---> 14490 (mentioned in the redump SBI file)
00003AD0 --- to decimal ---> 15056 (mentioned in the redump SBI file)
00003AD5 --- to decimal ---> 15061 (mentioned in the redump SBI file)
00003B1A --- to decimal ---> 15130 (mentioned in the redump SBI file)
00003B1F --- to decimal ---> 15135 (mentioned in the redump SBI file)
00003BD0 --- to decimal ---> 15312 (mentioned in the redump SBI file)
00003BD5 --- to decimal ---> 15317 (mentioned in the redump SBI file)
00003C12 --- to decimal ---> 15378 (mentioned in the redump SBI file)
00003C17 --- to decimal ---> 15383 (mentioned in the redump SBI file)
00003D0C --- to decimal ---> 15628 (mentioned in the redump SBI file)
00003D11 --- to decimal ---> 15633 (mentioned in the redump SBI file)
00003F27 --- to decimal ---> 16167 (mentioned in the redump SBI file)
00003F2C --- to decimal ---> 16172 (mentioned in the redump SBI file)
00004891
00005535
000057A1
00005838
00005938
00005B67
000062A9
000062C5
0000784F
000078CA
00007E94
00009030
00009AD5
00009E05
0000A43D --- to decimal ---> 42045 (mentioned in the redump SBI file)
0000A442 --- to decimal ---> 42050 (mentioned in the redump SBI file)
0000A5C0 --- to decimal ---> 42432 (mentioned in the redump SBI file)
0000A5C5 --- to decimal ---> 42437 (mentioned in the redump SBI file)
0000A804 --- to decimal ---> 43012 (mentioned in the redump SBI file)
0000A809 --- to decimal ---> 43017 (mentioned in the redump SBI file)
0000A8A9 --- to decimal ---> 43177 (mentioned in the redump SBI file)
0000A8AE --- to decimal ---> 43182 (mentioned in the redump SBI file)
0000A95A --- to decimal ---> 43354 (mentioned in the redump SBI file)
0000A95F --- to decimal ---> 43359 (mentioned in the redump SBI file)
0000A990 --- to decimal ---> 43408 (mentioned in the redump SBI file)
0000A995 --- to decimal ---> 43413 (mentioned in the redump SBI file)
0000AA72 --- to decimal ---> 43634 (mentioned in the redump SBI file)
0000AA77 --- to decimal ---> 43639 (mentioned in the redump SBI file)
0000AD18 --- to decimal ---> 44312 (mentioned in the redump SBI file)
0000AD1D --- to decimal ---> 44317 (mentioned in the redump SBI file)
0000C55C
0000EC56
0000FBCA
00010452
0001047C
000108F4
000122A3
00012679
00012F8B
00012FA6
00012FCE
000153A8
00017910
0001860D
0001C396
0001CD83
0001EA08
0001F692
00020257
00021C08
00025385
0002915D
0002938F
000293A6
0002AB93
0002ABFB
0002BC8C
0002CA39
0002D217
0002F135
00031606
00034A45
00034CB6
00036826
00036B1D
000392B8
000392F2
00039B5D
0003A776
0003BA90
0003C51A
0003C541
0003C5A3
0003FCF1
0003FDDA
000414C2
00041F49
00042657
0004875F
00048E65
0004C0DA
00000000
</pre></small>


<u>MediEvil SCES-00311 at absolute offset 0x16298C in ps1_netemu.self 4.88</u> http://redump.org/disc/592/
<u>MediEvil</u> [http://redump.org/disc/592/ SCES-00311] (at absolute offset 0x16298C in ps1_netemu.self 4.83-4.88)
<small><pre>
<small><pre style="height:275px">
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F


Line 555: Line 511:
</pre></small>
</pre></small>


<u>Vagrant Story SLES-02754 at absolute offset 0x162A8C in ps1_netemu.self 4.88</u> http://redump.org/disc/9978/
<u>Vagrant Story</u> [http://redump.org/disc/9978/ SLES-02754] (at absolute offset 0x162A8C in ps1_netemu.self 4.83-4.88)
<small><pre>
<small><pre style="height:350px">
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F


Line 671: Line 627:
0004CBC9
0004CBC9
0004D5C8
0004D5C8
00000000
</pre></small>
<u>Crash Team Racing SCES-02105 at absolute offset 0x1627E4 in ps1_netemu.self 4.88</u> http://redump.org/disc/798/
<small><pre>
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
001627E0              00 00 06 A3 00 00 0E 21 00 00 17 79      ...£...!...y
001627F0  00 00 29 CB 00 00 2B 21 00 00 2E 22 00 00 31 31  ..)Ë..+!..."..11
00162800  00 00 37 19 00 00 37 1E 00 00 38 35 00 00 38 95  ..7...7...85..8•
00162810  00 00 38 9A 00 00 3A D0 00 00 3A D5 00 00 3B 1A  ..8š..:Ð..:Õ..;.
00162820  00 00 3B 1F 00 00 3B D0 00 00 3B D5 00 00 3C 12  ..;...;Ð..;Õ..<.
00162830  00 00 3C 17 00 00 3D 0C 00 00 3D 11 00 00 3F 27  ..<...=...=...?'
00162840  00 00 3F 2C 00 00 48 91 00 00 55 35 00 00 57 A1  ..?,..H‘..U5..W¡
00162850  00 00 58 38 00 00 59 38 00 00 5B 67 00 00 62 A9  ..X8..Y8..[g..b©
00162860  00 00 62 C5 00 00 78 4F 00 00 78 CA 00 00 7E 94  ..bÅ..xO..xÊ..~”
00162870  00 00 90 30 00 00 9A D5 00 00 9E 05 00 00 A4 3D  ...0..šÕ..ž...¤=
00162880  00 00 A4 42 00 00 A5 C0 00 00 A5 C5 00 00 A8 04  ..¤B..¥À..¥Å..¨.
00162890  00 00 A8 09 00 00 A8 A9 00 00 A8 AE 00 00 A9 5A  ..¨...¨©..¨®..©Z
001628A0  00 00 A9 5F 00 00 A9 90 00 00 A9 95 00 00 AA 72  ..©_..©...©•..ªr
001628B0  00 00 AA 77 00 00 AD 18 00 00 AD 1D 00 00 C5 5C  ..ªw........Å\
001628C0  00 00 EC 56 00 00 FB CA 00 01 04 52 00 01 04 7C  ..ìV..ûÊ...R...|
001628D0  00 01 08 F4 00 01 22 A3 00 01 26 79 00 01 2F 8B  ...ô.."£..&y../‹
001628E0  00 01 2F A6 00 01 2F CE 00 01 53 A8 00 01 79 10  ../¦../Î..S¨..y.
001628F0  00 01 86 0D 00 01 C3 96 00 01 CD 83 00 01 EA 08  ..†...Ö..̓..ê.
00162900  00 01 F6 92 00 02 02 57 00 02 1C 08 00 02 53 85  ..ö’...W......S…
00162910  00 02 91 5D 00 02 93 8F 00 02 93 A6 00 02 AB 93  ..‘]..“...“¦..«“
00162920  00 02 AB FB 00 02 BC 8C 00 02 CA 39 00 02 D2 17  ..«û..¼Œ..Ê9..Ò.
00162930  00 02 F1 35 00 03 16 06 00 03 4A 45 00 03 4C B6  ..ñ5......JE..L¶
00162940  00 03 68 26 00 03 6B 1D 00 03 92 B8 00 03 92 F2  ..h&..k...’¸..’ò
00162950  00 03 9B 5D 00 03 A7 76 00 03 BA 90 00 03 C5 1A  ..›]..§v..º...Å.
00162960  00 03 C5 41 00 03 C5 A3 00 03 FC F1 00 03 FD DA  ..ÅA..Å£..üñ..ýÚ
00162970  00 04 14 C2 00 04 1F 49 00 04 26 57 00 04 87 5F  ...Â...I..&W..‡_
00162980  00 04 8E 65 00 04 C0 DA 00 00 00 00              ..Že..ÀÚ....
000006A3
00000E21
00001779
000029CB
00002B21
00002E22
00003131
00003719 --- to decimal ---> 14105 (mentioned in the redump SBI file)
0000371E --- to decimal ---> 14110 (mentioned in the redump SBI file)
00003835
00003895 --- to decimal ---> 14485 (mentioned in the redump SBI file)
0000389A --- to decimal ---> 14490 (mentioned in the redump SBI file)
00003AD0 --- to decimal ---> 15056 (mentioned in the redump SBI file)
00003AD5 --- to decimal ---> 15061 (mentioned in the redump SBI file)
00003B1A --- to decimal ---> 15130 (mentioned in the redump SBI file)
00003B1F --- to decimal ---> 15135 (mentioned in the redump SBI file)
00003BD0 --- to decimal ---> 15312 (mentioned in the redump SBI file)
00003BD5 --- to decimal ---> 15317 (mentioned in the redump SBI file)
00003C12 --- to decimal ---> 15378 (mentioned in the redump SBI file)
00003C17 --- to decimal ---> 15383 (mentioned in the redump SBI file)
00003D0C --- to decimal ---> 15628 (mentioned in the redump SBI file)
00003D11 --- to decimal ---> 15633 (mentioned in the redump SBI file)
00003F27 --- to decimal ---> 16167 (mentioned in the redump SBI file)
00003F2C --- to decimal ---> 16172 (mentioned in the redump SBI file)
00004891
00005535
000057A1
00005838
00005938
00005B67
000062A9
000062C5
0000784F
000078CA
00007E94
00009030
00009AD5
00009E05
0000A43D --- to decimal ---> 42045 (mentioned in the redump SBI file)
0000A442 --- to decimal ---> 42050 (mentioned in the redump SBI file)
0000A5C0 --- to decimal ---> 42432 (mentioned in the redump SBI file)
0000A5C5 --- to decimal ---> 42437 (mentioned in the redump SBI file)
0000A804 --- to decimal ---> 43012 (mentioned in the redump SBI file)
0000A809 --- to decimal ---> 43017 (mentioned in the redump SBI file)
0000A8A9 --- to decimal ---> 43177 (mentioned in the redump SBI file)
0000A8AE --- to decimal ---> 43182 (mentioned in the redump SBI file)
0000A95A --- to decimal ---> 43354 (mentioned in the redump SBI file)
0000A95F --- to decimal ---> 43359 (mentioned in the redump SBI file)
0000A990 --- to decimal ---> 43408 (mentioned in the redump SBI file)
0000A995 --- to decimal ---> 43413 (mentioned in the redump SBI file)
0000AA72 --- to decimal ---> 43634 (mentioned in the redump SBI file)
0000AA77 --- to decimal ---> 43639 (mentioned in the redump SBI file)
0000AD18 --- to decimal ---> 44312 (mentioned in the redump SBI file)
0000AD1D --- to decimal ---> 44317 (mentioned in the redump SBI file)
0000C55C
0000EC56
0000FBCA
00010452
0001047C
000108F4
000122A3
00012679
00012F8B
00012FA6
00012FCE
000153A8
00017910
0001860D
0001C396
0001CD83
0001EA08
0001F692
00020257
00021C08
00025385
0002915D
0002938F
000293A6
0002AB93
0002ABFB
0002BC8C
0002CA39
0002D217
0002F135
00031606
00034A45
00034CB6
00036826
00036B1D
000392B8
000392F2
00039B5D
0003A776
0003BA90
0003C51A
0003C541
0003C5A3
0003FCF1
0003FDDA
000414C2
00041F49
00042657
0004875F
00048E65
0004C0DA
00000000
00000000
</pre></small>
</pre></small>


=== Command 0x03 (netemu 3.40 up to 4.88) ===
=== Command 0x03 (netemu 3.40 up to 4.88) ===
Command ID 0x03 seems to match too in between netemu from firmware 3.40 and 4.88<br>
*Valid values found: 0x32 (50d), 0xC8 (200d), 0x12C (300d), 0x1F4 (500d), 0x258 (600d), 0x2BC (700d), 0x320 (800d), 0x384 (900d), 0x44C (1100d), 0x4B0 (1200d), 0x578 (1400d), 0x5DC (1500d), 0x708 (1800d)<br>
*Default value: 0x3E8
*_xcdrom_thread related.
Value is integer that is later converted to double float using fcfid, and truncated to single precision by frsp.<br>
Value is integer that is later converted to double float using fcfid, and truncated to single precision by frsp.<br>
I'm not familiar with CELL floating point unit quirks, but value could be just single precision float from the start, why complicate that so much?<br>
I'm not familiar with CELL floating point unit quirks, but value could be just single precision float from the start, why complicate that so much?<br>
Valid values found: 0x32, 0xC8, 0x12C, 0x1F4, 0x258, 0x2BC, 0x320, 0x384, 0x44C, 0x4B0, 0x578, 0x5DC, 0x708
*Possible disc read speed delay or adjustment. Larger value results in slower loading times. --[[User:Mrjaredbeta|Mrjaredbeta]] ([[User talk:Mrjaredbeta|talk]]) 03:21, 1 September 2023 (CEST)
'''Custom Usage:'''
*Param 0x384 (900d) fixes Vampire Hunter D (SLUS-01138) hanging issues.
*Param 0x1F4 (500d) fixes Medievil 2 audio and hanging issues.


=== Command 0x04 (netemu 3.40 up to 4.88) ===
=== Command 0x04 (netemu 3.40 up to 4.88) ===
Command ID 0x04 seems to match too in between netemu from firmware 3.40 and 4.88<br>
*Valid values found: 0x4, 0x7, 0x14 (20d), 0x46 (70d), 0x64 (100d), 0xC8 (200d), 0xFFFFFF38 (-200d)
Valid values found: 0x4, 0x7, 0x14, 0x46, 0x64, 0xC8, 0xFFFFFF38
*Default value: 0
*_xcdrom_thread related.
Possible seek delay/adjustment.<br>
'''Custom Usage:'''
*Param 0x64 and above fixes Transformers: Beast Wars Transmetals (SLUS-01160). 0x14 also gets past initial main menu screen, but hangs when loading into a stage. Param 0xC8 is probably safest.
 
=== Command 0x05 (netemu 3.40 up to 4.88) ===
<strike>The game configs inside ps1_netemu.self 3.40 doesnt seems to use this command, so is not posible to see if it matches in between 3.40 and 3.55/4.88</strike> but we can assume is the same ID through netemu 3.40 up to 4.88 because higher command IDs (such 0x08) maintained his ID since 3.40
*Default value: 0
*_xcdrom_thread related.
 
=== Command 0x06 (netemu 4.83 up to 4.88) ===
*Default value: 0
*_xcdrom_thread related.
'''Custom Usage:'''
*Param 0x01 fixes Shrek Treasure Hunt (SLUS-01463) minigame loading screen hangs.
*Param 0x01 fixes Fear Effect (SLUS-00920) hang when pressing START at menu screen.


=== Command 0x05 (netemu 3.55 up to 4.88) ===
=== Command 0x07 (netemu 4.83 up to 4.88) ===
Command ID 0x05 seems to match too in between netemu from firmware 3.55 and 4.88<br>
*Default value: 0
The game configs inside ps1_netemu.self 3.40 doesnt seems to use this command, so is not posible to see if it matches in between 3.40 and 3.55/4.88
*_xcdrom_thread related.
'''Custom Usage:'''
*Param 0x01 fixes Fear Effect (SLUS-00920) other issues in main menu, such as graphical corruption in options screens, and returning to options screen after viewing credits.


=== Command 0x08 (netemu 3.40 up to 4.88) ===
=== Command 0x08 (netemu 3.40 up to 4.88) ===
Valid values found: 0xC8, 0x12C, 0x1F4, 0x2BC, 0x320 (seems to be an small selection of the same values used by command 0x03)
*Valid values found: 0xC8 (200d), 0x12C (300d), 0x1F4 (500d), 0x2BC (700d), 0x320 (800d). It seems to be an small selection of the same values used by command 0x03
*Default value: 0x3E8
*_xcdrom_thread related.


=== Command 0x0B (netemu 4.83 up to 4.88) ===
=== Command 0x0B (netemu 4.83 up to 4.88) ===
*Or command 0x09 (netemu 3.40)
*Or command 0x09 (netemu 3.40)
The command data  seems to be a bit special, is a value higher than any other command, but is the same value along different ps1_netemu.self revisions, so is not an offset<br>
*Valid values found: 0x27104E95 (in netemu 3.40 and 4.88). It seems to be composed by 2 values of 2 bytes size: 0x2710(hex)=10000(dec). And 0x4E95(hex)=20117(dec)
There is only one game using this command: [https://psxdatacenter.com/games/J/L/SLPS-03012.html SLPS_030.12]<br>
The command data  seems to be a bit special, is a value higher than any other command, but is the same value along different ps1_netemu.self revisions, so is not an offset. There is only one game using this command: [https://psxdatacenter.com/games/J/L/SLPS-03012.html SLPS_030.12]
Valid values found: 0x27104E95 (in netemu 3.40 and 4.88)
 
=== Command 0x0E (netemu 4.83 up to 4.88) ===
*Or command 0x0C (netemu 3.40)
*Default value: 0x1F4
*_xcdrom_thread related.
 
=== Command 0x0F (netemu 4.83 up to 4.88) ===
*Or command 0x0D (netemu 3.40)
*Default value: 0xFA
*_xcdrom_thread related.
 
=== Command 0x10 (netemu 4.83 up to 4.88) ===
*Default value: 0xFA
*_xcdrom_thread related.
 
=== Command 0x11 (netemu 4.83 up to 4.88) ===
*Default value: 0x7D
*_xcdrom_thread related.
 
=== Command 0x12 (netemu 4.83 up to 4.88) ===
*Or command 0x10 (netemu 3.40)
Command value are flags/settings to alter cdrom behavior.
*0x800 = Different code path for MotorOn/Pause/SetSession cdrom commands. // Need more work, flag affect more than that.
 
=== Command 0x13 (netemu 4.83 up to 4.88) ===
*Default value: 0
*MDEC related?
'''Custom Usage:'''
*Param 0x01 fixes Roland Garros French Open 2001 (SLES-03449) hang when loading into a match.
*Param 0x01 fixes Fear Effect (SLUS-00920) hang when pressing START at menu screen (sometimes).
 
=== Command 0x14 (netemu 4.83 up to 4.88) ===
*Default value: 4
 
=== Command 0x15 (netemu 4.83 up to 4.88) ===
*Default value: 4
 
=== Command 0x16 (netemu 4.83 up to 4.88) ===
*Default value: 0
*DMA timing related.
'''Custom Usage:'''
*Param 0x32 is enough to fix International Superstar Soccer (SLES-02550) black screen after PlayStation logo.
*Param 0x08 is enough to fix Vampire Hunter D’s main menu flashing.


=== Command 0x17 (netemu 4.83 up to 4.88) ===
=== Command 0x17 (netemu 4.83 up to 4.88) ===
*Or command 0x0B (netemu 1.70)
*Or command 0x0A (netemu 2.10)
*Or command 0x15 (netemu 3.40 up to 3.55)
*Or command 0x15 (netemu 3.40 up to 3.55)
*Or command 0x0B (emu 3.40 up to 4.88)
*Or command 0x0B (emu 1.70 up to 4.88)
*Or command 0x07 (newemu 2.10)
*Or command 0x0A (newemu 3.40 up to 4.88)
*Or command 0x0A (newemu 3.40 up to 4.88)
This is the libcrypt magic word. This command is used only in 3 games (SCES_016.95, SLES_019.07, SLES_013.01). see: [[PS1 Custom Patches]]
This is the libcrypt magic word. This command is used only in 3 games (SCES_016.95, SLES_019.07, SLES_013.01). see: [[PS1 Custom Patches]]
In ps1_netemu there is possibility to setup that command from one of ps1 classic files (PSISOIMG0000 / PSTITLEIMG000000 related).
When value is not zero is returned by emulator when game try to read cop0r3 (BPC) register. When value is 0 (default), emulator return real BPC content.
* It seems there is a problem with LC games using the third scheme mentioned [https://problemkaputt.de/psx-spx.htm#cdromprotectionlibcrypt here]. After reading the data contents of subchannel Q, the CRC-16 value is not read at all, but calculated on its own by the driver instead. It does break LC games using this particular scheme (web-found confirmed issues with Ape Escape and Final Fantasy VIII). All three games that are meant to work with this command does use these LC sectors. I think this command was meant to resolve this issue, just a guess.--[[User:Agrippa|Agrippa]] ([[User talk:Agrippa|talk]]) 20:06, 12 June 2022 (UTC)
=== Command 0x18 (netemu 4.83 up to 4.88) ===
Substrat cycles from mdec_block_copy_out_callback delta. When mdec is decoding blocks, copy out happen on every completed 6th block. This is hardcoded to take 0xB00 (2816) cycles in ps1_netemu. By using this config we can make this value less than default, which in turn "overclock" mdec decoding as every 6xblock will be decoded faster. Duckstation by default use value 0xA80 (2688 (448 x 6 blocks)). So to make config that will replicate this behavior we need set config value to 0x80 (0xB00 - 0x80 = 0xA80).
*Default value: 0
*Valid values range: 0x000 - 0xB00
*Higher values are ignored and 0 is set (just like when you use 0xB00 value), making MDEC instant.
=== Command 0x19 (netemu 4.83 up to 4.88) ===
*Default value: 4
*Set in same place where bios image is loaded, and region check/patch is performed.
=== Command 0x1A (netemu 4.83 up to 4.88) ===
Set PS1 PS1 Scratchpad address 0x1F800000 - 0x1F8003FF to given 4 bytes value. Only one game use this, game seems to expect memory initialized to 0xFFFFFFFF, while never do this.
*Default value: 0
=== Command 0x1B (netemu 4.83 up to 4.88) ===
*Default value: 0x3E8
Multiplier for GTE commands cycles. Value from config is multiplied by 256, and then divided by 1000.
For example Battle Arena Toshinden use 0xC8 which result in 0x33(51) as value that is later used.
Default value 0x3E8 end as 0x100(256).
=== Command 0x1C (netemu 4.83 up to 4.88) ===
*Or command 0x18 (netemu 3.40)
*Or command 0x1A (netemu 3.55 ?)
*Or command 0x02 (netemu 1.70) - possibly different command
Param flags:
*1 = unk.
*2 = Set Vibration to Off (menu to set it to On is still accessible, but command seems to also skip initializing of vibration internal struct/settings).
=== Command 0x1D (netemu 4.83 up to 4.88) ===
*Default value: 0
*Correct values 0 / 1 / 2
Config seems to setup default gamepads layout for multitap.
*0 = <0, 2, 4, 6, 1, 3, 5, 7>
*1 = <0, 2, 3, 4, 1, 5, 6, 7>
*2 = <0, 1, 2, 3, 4, 5, 6, 7>
Sync order of controllers is always the same regardless of parameter set (1/1-A, 2/2-A, 1-B, 2-B, 1-C, 2-C, 1-D). Therefore, change is only reflected internally in emulated game. For example, Crash Bash needs parameter 2 for controllers to be set properly in game, but order in which controllers physically connect is not changed.
=== Command 0x1E (netemu 4.83 up to 4.88) ===
*Default value: 0x7D0
*xPadThread related.
=== Command 0x20 (netemu 4.83 up to 4.88) ===
GPU multi command (bifield)
*Default value: 0
*0x08 = Always set Vertical Interlace bit in GPUSTAT to 0 on GP1 (08h) command.
*0x40 = Is not exactly known what happen under the hood, but this command allow to play 50Hz titles in 60Hz with correct speed.
=== Command 0x21 (netemu 4.83 up to 4.88) ===
*Default value: 0x3E8
*PS1 GPU related.
=== Command 0x22 (netemu 4.83 up to 4.88) ===
*Default value: 0x3E8
*PS1 GPU related.
Seems to fix slowdown in Rapid Racer (SCPS-10060) with value 0x320.
=== Command 0x23 (netemu 4.83 up to 4.88) ===
*Default value: 0x3E8
*PS1 GPU related.
=== Command 0x24 (netemu 4.83 up to 4.88) ===
*Default value: 7
*PS1 GPU related.
=== Command 0x25 (netemu 4.83 up to 4.88) ===
*Default value: 0
*PS1 GPU related.
=== Command 0x2A (netemu 4.83 up to 4.88) ===
*Default value: 0
*PS1 GPU related.
=== Command 0x2B (netemu 4.83 up to 4.88) ===
*Default value: 0
*PS1 GPU related.
=== Command 0x2C (netemu 4.83 up to 4.88) ===
*Default value: 0
*PS1 GPU related.
=== Command 0x2D (netemu 4.83 up to 4.88) ===
*Default value: 0
*PS1 GPU related.
=== Command 0x31 (netemu 4.83 up to 4.88) ===
GPU multi command (bitfield)
*0x02 = Enable Vertical Interlace bit in GP1 (08h) command in SPE writes (in renderer only). Emulator by default use hack where VI bit is ALWAYS disabled in spe.
Note from nocash docs about Vertical Interlace: ''"'''Interlace must be enabled to see all lines in 480-lines mode''' (interlace is causing ugly flickering, so a non-interlaced low resolution image is typically having better quality than a high resolution interlaced image, a pretty bad example are the intro screens shown by the BIOS).''"<br>
This suggest that games which eventually need 0x31, 0x02 will be ones that send GP1 commands with active bit 2(Vertical Resolution 1=480) and 5(Vertical Interlace) at the same time. Otherwise image will be cropped, or badly interlaced. FF8 use this on "Published by..." screen, you can notice weird interlacing when subtitles fade-in without command.
=== Command 0x32 (netemu 4.83 up to 4.88) ===
Pad vibration related, seems to be big motor strength used in cellPadSetActDirect if value is less than one of function arguments. Default value set in xPadThread Init is 0x40(64).
=== Command 0x33 (netemu 4.83 up to 4.88) ===
Value is integer that is later converted to double float using fcfid, and truncated to single precision by frsp.<br>
Pad vibration related, seems to be used to calculate big motor strength used later in cellPadSetActDirect, if other conditions are met. Default value set in xPadThread Init is 0x4B0(1200).
=== Command 0x36 (netemu 4.83 up to 4.88) ===
*Maximum value 7
*PSX HW regs access related
*Valid values found:
**1 = ?
**2 = ?
**4 = ?
Multiple instances accepted, and not overwrite itself.


=== Command 0x37 (netemu 4.83 up to 4.88) ===
=== Command 0x37 (netemu 4.83 up to 4.88) ===
Something related to I_STAT (PSX Interrupt status register), known values 2,4.
*Default value: 1
*Valid values found:
**2 = ?
**4 = ?
Something related to I_STAT (PSX Interrupt status register).


=== Command 0x38 (netemu 4.83 up to 4.88) ===
=== Command 0x38 (netemu 4.83 up to 4.88) ===
When value is not 0 relaunch game with different emu, there seems to be selection between ps1_emu, and ps1_newemu based on config value.<br>
*Or command 0x2C in ps1_netemu.self 3.40
* 1 for ps1_emu.self
*Or command 0x2E in ps1_netemu.self 3.55 ?
* 2 for ps1_newemu.self
*Valid values found:
**0/1/2/3
 
if (cfg == 0)
    stay_netemu
if (boot_not_from_disc_drive)
    if (cfg & 2)
        boot_newemu
if (boot_from_disc_drive)
    if (cfg & 1)
        boot_ps1emu
    else
        stay_netemu
// Boot is considered to be from disc if argv with game path is empty. Which make 0x38 with param 0x01 inaccessible, because there is no way to start disc game with netemu in official way (excluding games that ps1_emu launch with 0x15 cmd to ps1_netemu).
 
=== Command 0x3B (netemu 4.83 up to 4.88) ===
PS1 SPU DMA related config. Seems to change some cycles calculation.
*Default value: 0
*Valid values: 0/1


== Commands table from 4.86 ps1_netemu ==  
== Ps1_emu Commands Info ==
{|class="mw-datatable sortable" style="font-family:monospace; font-weight:bold; font-size:1em"
 
|+<span style="font-family:sans-serif; font-size:0.9em">ps1_netemu.self [[4.83_CEX|4.83]]~[[{{latestPS3}}_CEX|{{latestPS3}}]] (349 discs. ASIA:256, EURO:18, USA:75) <!--{{ed right|TitleID settings hardcoded in ps1_netemu.self}}--></span>
=== Command 0x15 (ps1emu 4.83 up to 4.88) ===
|-style="font-family:sans-serif; font-weight:normal; font-size:0.9em"
*Valid values found:
! rowspan="2" | Title ID !! class="unsortable" rowspan="2" | Checksum !! rowspan="2" style="width:30%; min-width:300px" | Title !! class="unsortable" colspan="3" | Commands !! class="unsortable" rowspan="2" style="width:50%; min-width:300px" | Notes
**3 (launch game using ps1_netemu)
|-style="font-family:sans-serif; font-weight:normal; font-size:0.9em"
**Different values are ignored
! <abbr title="Commands Count">Count</abbr> !! <abbr title="Command ID">ID</abbr> !! <abbr title="Command Data">Data</abbr>
 
|-
== Ps1_newemu Commands Info ==
| SCPS_101.06 || 0x53226B9C || || 1 || 0x12 || 0x00000020 ||
 
|-
=== Command 0x18 (ps1newemu 4.83 up to 4.88) ===
| SCPS_101.07 || 0x90F76B40 || || 1 || 0x12 || 0x00000020 ||
Supposed to launch game using different emulator, but all paths do nothing.
|-
*Valid values found:
| SLPS_018.80 || 0xD8446E20 || || 1 || 0x31 || 0x00000002 ||
**3 (Do nothing, but with print! [https://imgflip.com/i/7x4j2p 1])
|-
**Different values do nothing
| SLPS_018.81 || 0xD4C76D1B || || 1 || 0x31 || 0x00000002 ||
 
|-
== Known bugs ==
| SLPS_018.82 || 0x18126E07 || || 1 || 0x31 || 0x00000002 ||
 
|-
=== ps1_netemu.elf ===
| SLPS_018.83 || 0x12376E34 || || 1 || 0x31 || 0x00000002 ||
==== Cdr int reads with nonstandard index ====
|-
Emulator ignore interrupt flag register and interrupt enable register reads if cdrom index is 2, or 3. Reads like that are undocummented behavior, but confirmed to be successful on real hardware. Also Nocash docs, and Duckstation source handle that correctly, and i remember there are games which used that.
| SLPS_023.64 || 0x40B572AA || || 4 || 0x2C || 0xFFFFFFF0 ||
 
|-
0xD81F0 read_0x1F801803:
|            ||            || ||  || 0x22 || 0x000001F4 ||
0xD81F0  lwz      r0, (.1F801800 - 0x2E8480)(r8)
|-
0xD81F4  clrlwi    r0, r0, 30        # cdrom.index & 3
|             ||           || ||   || 0x21 || 0x000001F4 ||
0xD81F8  cmpwi    cr7, r0, 0       # cdrom.index = 0
|-
0xD81FC  beq      cr7, read_interrupt_enable_register
|            ||            || ||  || 0x33 || 0x00000514 ||
0xD8200  cmpwi    cr7, r0, 1        # cdrom.index = 1
|-
0xD8204  beq      cr7, read_interrupt_flag_register
| SLPS_023.65 || 0x55E87206 || || 4 || 0x2C || 0xFFFFFFF0 ||
0xD8208  li        r3, 0            # return 0 if index was 2 or 3
|-
0xD820C  lwz      r7, off_1BC0D4
|            ||            || ||  || 0x22 || 0x000001F4 ||
0xD8210  clrldi    r3, r3, 32
|-
0xD8214  dcbt      0, r7
|             ||            || ||   || 0x21 || 0x000001F4 ||
0xD8218  blr
|-
 
|            ||            || ||   || 0x33 || 0x00000514 ||
This can be fixed by simple patch from
|-
0xD81F4  clrlwi    r0, r0, 30  #hex 54 00 07 BE
| SLPS_021.57 || 0xFF40721F || || 1 || 0x1C || 0x00000002 ||
0xD8264  clrlwi    r0, r0, 30  #hex 54 00 07 BE
|-
to
| SLPS_017.51 || 0xBCDF6FA3 || || 1 || 0x13 || 0x00000001 ||
0xD81F4  clrlwi    r0, r0, 31  #hex 54 00 07 FE
|-
0xD8264  clrlwi    r0, r0, 31  #hex 54 00 07 FE
| SLPS_911.80 || 0x08047091 || || 1 || 0x13 || 0x00000001 ||
This change cdrom.index & 3, into cdrom.index & 1. This way index 2, and 3 will be respected as 0, and 1. Sadly there is no easy hex pattern, so patch need to be done manually. Memory offsets for 4.86.
|-
 
| SLPM_866.02 || 0x5A746EC3 || || 1 || 0x19 || 0x00000032 ||
==== Bad encoding of malformed conditional branch 0 ====
|-
Emulator don't ignore few bits, and expect they are 0. While real hardware seems to don't care about them.
| SLPS_005.82 || 0xBA436ECC || || 3 || 0x20 || 0x00000001 ||
<pre>
|-
  31..26 |25..21|20..16|15..11|10..6 | 5..0  |
|            ||            || ||  || 0x13 || 0x00000001 ||
  6bit  | 5bit | 5bit | 5bit | 5bit | 6bit  |
|-
  -------+------+------+------+------+--------+------------
|            ||            || ||  || 0x19 || 0x0000005A ||
  000001 | rs   | 0XXX0| <--immediate16bit--> | bltz
|-
  000001 | rs  | 0XXX1| <--immediate16bit--> | bgez
| SCPS_101.15 || 0x56086C54 || || 1 || 0x14 || 0x00000006 ||
  000001 | rs   | 1XXX0| <--immediate16bit--> | bltzal
|-
  000001 | rs   | 1XXX1| <--immediate16bit--> | bgezal
| SLPM_860.72 || 0x4373729F || || 1 || 0x14 || 0x0000000D ||
</pre>
|-
 
| SCPS_180.12 || 0xDBB96C5C || || 3 || 0x12 || 0x00000120 ||
Problem start when bits 17,18,19 are not zero. Emulator don't clear those bits, and explicitly check only for 0x0,0x1,0x10,0x11.
|-
<pre>
|            ||            || ||  || 0x12 || 0x00004000 ||
r24 hold 20..16 bits extracted from opcode.
|-
 
|            ||            || ||  || 0x3C || 0xFFFFFF3D ||
0x107958 bcondz_107958:                          # CODE XREF: r3000_opcode_table+12C↑j
|-
0x107958                cmpwi    cr7, r24, 1   # jumptable 001067D4 case BcondZ
| SLPS_012.22 || 0xF5F773C5 || || 2 || 0x03 || 0x000005DC ||
0x10795C                beq      cr7, loc_107E98
|-
0x107960                cmplwi    cr7, r24, 1
|            ||            || ||  || 0x22 || 0x000004B0 ||
0x107964                blt      cr7, loc_107E78
|-
0x107968                cmpwi    cr7, r24, 0x10
| SLPS_012.22 || 0x7D8D73B7 || || 2 || 0x03 || 0x000005DC ||
0x10796C                beq      cr7, loc_1082A4
|-
0x107970                cmpwi    cr7, r24, 0x11
|            ||            || ||  || 0x22 || 0x000004B0 ||
0x107974                beq      cr7, loc_10821C
|-
</pre>
| SLPS_017.93 || 0x4FA46DA5 || || 1 || 0x18 || 0xFFFFFF80 ||
Correct solution here will be patch to AND r24 with 0x11 first, to clear meaningless bits before comparison.
|-
This is reason why emulator fail this "Branch Advance" CPU test: https://emulation.gametechwiki.com/index.php/PS1_Tests#CPU . Possibly standard "Branch" test is failed for the same reason.
| SLPM_864.59 || 0xC78A748B || || 1 || 0x12 || 0x00000080 ||
 
|-
== GTE commands ==
| SLPS_026.21 || 0xC3157410 || || 1 || 0x31 || 0x00000002 ||
 
|-
List of GTE commands is available at 0x001B345C in ps1_netemu 4.86. List include following data {CommandFunctionOPD, Cycles}.
| SCPS_100.03 || 0xED04760D || || 1 || 0x13 || 0x00000001 ||
Emulator handle only commands listed below (CMD, addr in emu).
|-
 
| SCPS_180.11 || 0x286070C5 || || 2 || 0x13 || 0x00000001 ||
<pre>
|-
.GTE_RTPS 0xC4500
|            ||            || ||  || 0x00 || 0x00000000 ||
.GTE_MVMVA 0xC4C00
|-
.GTE_SQR_sf 0xC5168
| SLPS_018.53 || 0x9D4473E4 || || 1 || 0x33 || 0x00000514 ||
.GTE_NCLIP 0xC527C
|-
.GTE_AVSZ3 0xC5338
| SCPS_101.03 || 0x6E516DAD || || 1 || 0x33 || 0x00000514 ||
.GTE_AVSZ4 0xC5420
|-
.GTE_OP_sf 0xC5518
| SCPS_100.47 || 0x56D97048 || || 1 || 0x33 || 0x00000514 ||
.GTE_GPF_sf 0xC5678
|-
.GTE_GPL_sf 0xC58C8
| SLPS_033.12 || 0xA0CE6CA9 || || 1 || 0x33 || 0x00000514 ||
.GTE_RTPT 0xC6288
|-
.GTE_NCT 0xC7710
| SLPM_861.85 || 0xEBAF6F5D || || 1 || 0x33 || 0x00000514 ||
.GTE_NCS 0xC8AD8
|-
.GTE_CC 0xC91E8
| SLPM_861.86 || 0x3E696C8A || || 1 || 0x33 || 0x00000514 ||
.GTE_NCCT 0xC9748
|-
.GTE_NCCS 0xCADF8
| SLPM_861.87 || 0x81D86E23 || || 1 || 0x33 || 0x00000514 ||
.GTE_DCPL 0xCB5F8
|-
.GTE_DPCS 0xCBAD8
| SCPS_100.91 || 0xC30F6E06 || || 2 || 0x12 || 0x00000004 ||
.GTE_CDP 0xCBF80
|-
.GTE_NCDT 0xCC760
|            ||            || ||  || 0x33 || 0x00000514 ||
.GTE_NCDS 0xCE5F8
|-
.GTE_INTPL 0xCF078
| SCPS_100.99 || 0x9502715F || || 2 || 0x33 || 0x00000514 ||
.GTE_DPCT 0xCF540
|-
</pre>
|            ||            || ||  || 0x32 || 0x00000054 ||
 
|-
== CD Drive Commands ==
| SCPS_100.73 || 0x73E06E8F || || 2 || 0x33 || 0x00000514 ||
 
|-
List of CD commands is available at 001B365C in ps1_netemu 4.86. List include following data {Respond INT count (minus INT3), CMD_nr, Function OPD}. Emulator handle only commands listed below (CMD, addr in emu).
|            ||            || ||  || 0x32 || 0x00000054 ||
 
|-
<pre>
| SLPS_026.33 || 0x1A696E28 || || 1 || 0x33 || 0x00000514 ||
.cdr_cmd_Sync 0xD8290
|-
.cdr_cmd_Reset 0xD8368
| SLPS_029.88 || 0x3FAD6F38 || || 1 || 0x33 || 0x00000514 ||
.cdr_cmd_Test 0xD8478
|-
.cdr_cmd_Getparam 0xD8798
| SLPM_866.40 || 0xF9DB6F2D || || 2 || 0x33 || 0x00000514 ||
.cdr_cmd_Setmode 0xD8918
|-
.cdr_cmd_Init 0xDBC48
|            ||            || ||  || 0x32 || 0x00000054 ||
.cdr_cmd_MotorOn 0xDD0C0
|-
.cdr_cmd_SeekP 0xDD3D0
| SLPS_026.61 || 0xC49B6F05 || || 1 || 0x33 || 0x00000514 ||
.cdr_cmd_Play 0xDD67C
|-
.cdr_cmd_ReadS 0xDD8E8
| SLPS_026.62 || 0x6D7D6F1B || || 1 || 0x33 || 0x00000514 ||
.cdr_cmd_Backward 0xDDBD0
|-
.cdr_cmd_Pause 0xDDF58
| SLPS_023.00 || 0x9B397352 || || 2 || 0x33 || 0x00000514 ||
.cdr_cmd_GetTD 0xDE1F8
|-
.cdr_cmd_Getstat 0xDE598
|            ||            || ||  || 0x32 || 0x00000054 ||
.cdr_cmd_GetlocP 0xDE728
|-
.cdr_cmd_ReadN 0xDEDD0
| SLPS_024.89 || 0x8F4676C6 || || 2 || 0x33 || 0x00000514 ||
.cdr_cmd_SetSession 0xDF130
|-
.cdr_cmd_Mute 0xDF970
|            ||            || ||  || 0x32 || 0x00000054 ||
.cdr_cmd_SeekL 0xDFBAC
|-
.cdr_cmd_Setloc 0xDFE58
| SLPS_030.87 || 0x30F078AC || || 2 || 0x33 || 0x00000514 ||
.cdr_cmd_Demute 0xE03E0
|-
.cdr_cmd_Setfilter 0xE0618
|            ||            || ||  || 0x32 || 0x00000054 ||
.cdr_cmd_Forward 0xE0878
|-
.cdr_cmd_GetlocL 0xE0B98
| SLPM_860.33 || 0x1B467259 || || 1 || 0x33 || 0x00000514 ||
.cdr_cmd_Stop 0xE0FF0
|-
.cdr_cmd_GetTN 0xE1298
| SLPS_007.17 || 0x9F01700A || || 1 || 0x22 || 0x000007D0 ||
.cdr_cmd_GetID 0xE1544
|-
.cdr_cmd_ReadTOC 0xE1C58
| SLPM_873.31 || 0xFDA96F69 || || 3 || 0x03 || 0x00000258 ||
 
|-
Commands 0x17, 0x18, 0x1D are handled as cmd_Sync. Commands above 0x1E seems to be not supported.
|            ||            || ||  || 0x22 || 0x000004E2 ||
</pre>
|-
|            ||            || ||  || 0x14 || 0x00000014 ||
|-
| SLPS_002.00 || 0xF2A57355 || || 1 || 0x20 || 0x00000001 ||
|-
| SLPS_016.26 || 0x70627260 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_016.27 || 0x0A5C7210 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_028.17 || 0x8C73710B || || 1 || 0x38 || 0x00000002 ||
|-
| SLPM_871.17 || 0x51E66F74 || || 1 || 0x38 || 0x00000002 ||
|-
| SCPS_100.89 || 0xE39F71B3 || || 1 || 0x0E || 0x00001388 ||
|-
| SCPS_100.90 || 0x68D771A3 || || 1 || 0x0E || 0x00001388 ||
|-
| SLPS_017.50 || 0x5D6C741F || || 3 || 0x36 || 0x00000001 ||
|-
|            ||            || ||  || 0x36 || 0x00000002 ||
|-
|            ||            || ||  || 0x36 || 0x00000004 ||
|-
| SLPM_870.68 || 0xA9F26FC8 || || 1 || 0x12 || 0x00000001 ||
|-
| SLPS_010.65 || 0x6C1F6C29 || || 1 || 0x12 || 0x00000002 ||
|-
| SLPS_019.90 || 0x9F817715 || || 1 || 0x13 || 0x00000001 ||
|-
| slps_002.49 || 0x17867187 || || 1 || 0x13 || 0x00000001 || Game ID use lowercase in emu, DON'T EDIT
|-
| SLPS_011.71 || 0x3C5E7167 || || 1 || 0x12 || 0x00000001 ||
|-
| SLPS_028.58 || 0xA8426B24 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_030.12 || 0x24857336 || || 2 || 0x03 || 0x00000032 ||
|-
|            ||            || ||  || 0x0B || 0x27104E95 ||
|-
| SLPM_872.84 || 0x6B607035 || || 2 || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x20 || 0x00000001 ||
|-
| SLPS_001.94 || 0xB01D7540 || || 1 || 0x12 || 0x00000002 ||
|-
| SLPS_014.21 || 0x5E466C72 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_013.83 || 0x2E3872B6 || || 1 || 0x03 || 0x000005DC ||
|-
| SLPS_022.99 || 0x7B146D4E || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_007.77 || 0xD5197559 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_031.35 || 0x19E96EFA || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_018.20 || 0xF0B06D6A || || 1 || 0x03 || 0x000000C8 ||
|-
| SLPS_012.42 || 0xC9497214 || || 1 || 0x14 || 0x00000014 ||
|-
| SLPM_860.95 || 0x39FE7168 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPM_863.45 || 0x20436C49 || || 1 || 0x22 || 0x000001F4 ||
|-
| SCPS_100.33 || 0x660971A5 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPM_866.13 || 0x2F647175 || || 5 || 0x14 || 0x0000000C ||
|-
|            ||            || ||  || 0x19 || 0x00000010 ||
|-
|            ||            || ||  || 0x36 || 0x00000001 ||
|-
|            ||            || ||  || 0x36 || 0x00000002 ||
|-
|            ||            || ||  || 0x36 || 0x00000004 ||
|-
| SLPS_002.15 || 0x34C16E53 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_002.16 || 0xB9796EA7 || || 1 || 0x13 || 0x00000001 ||
|-
| SCPS_100.71 || 0x16AB6E7B || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_000.10 || 0xB36372E0 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPM_872.30 || 0xC72770B2 || || 1 || 0x14 || 0x00000014 ||
|-
| SLPS_000.28 || 0x06087000 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_006.40 || 0x41C872D2 || || 1 || 0x12 || 0x00000002 ||
|-
| SCPS_100.21 || 0x9F9B6E69 || || 3 || 0x36 || 0x00000001 ||
|-
|            ||            || ||  || 0x36 || 0x00000002 ||
|-
|            ||            || ||  || 0x36 || 0x00000004 ||
|-
| SLPS_914.44 || 0xB9317410 || || 5 || 0x14 || 0x0000000C ||
|-
|            ||            || ||  || 0x19 || 0x00000008 ||
|-
|            ||            || ||  || 0x36 || 0x00000001 ||
|-
|            ||            || ||  || 0x36 || 0x00000002 ||
|-
|            ||            || ||  || 0x36 || 0x00000004 ||
|-
| SLPS_914.45 || 0xC1007411 || || 5 || 0x14 || 0x0000000C ||
|-
|            ||            || ||  || 0x19 || 0x00000008 ||
|-
|            ||            || ||  || 0x36 || 0x00000001 ||
|-
|            ||            || ||  || 0x36 || 0x00000002 ||
|-
|            ||            || ||  || 0x36 || 0x00000004 ||
|-
| SCPS_100.60 || 0x4BCA6FD6 || || 2 || 0x22 || 0x00000320 ||
|-
|            ||            || ||  || 0x31 || 0x00000002 ||
|-
| SLPS_006.24 || 0x6A767294 || || 1 || 0x38 || 0x00000002 ||
|-
| SLPS_018.18 || 0x2F686DE7 || || 1 || 0x00 || 0x00000000 ||
|-
| SLPS_018.19 || 0xBCF36F23 || || 3 || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x21 || 0x000007D0 ||
|-
|            ||            || ||  || 0x22 || 0x000007D0 ||
|-
| SLPM_860.28 || 0x770F6F03 || || 6 || 0x1F || 0x00000001 ||
|-
|            ||            || ||  || 0x21 || 0x000007D0 ||
|-
|            ||            || ||  || 0x22 || 0x000007D0 ||
|-
|            ||            || ||  || 0x2B || 0x00000010 ||
|-
|            ||            || ||  || 0x2D || 0x00000020 ||
|-
|            ||            || ||  || 0x37 || 0x00000002 ||
|-
| SLPS_001.80 || 0xA017720F || || 3 || 0x03 || 0x00000258 ||
|-
|            ||            || ||  || 0x22 || 0x000004E2 ||
|-
|            ||            || ||  || 0x14 || 0x00000014 ||
|-
| SLPS_007.23 || 0x2E5A6FC9 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_007.77 || 0x05837561 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_001.71 || 0x41CE713C || || 1 || 0x14 || 0x0000000E ||
|-
| SLPS_022.66 || 0xD73B735B || || 2 || 0x12 || 0x00000020 ||
|-
|            ||            || ||  || 0x12 || 0x00000400 ||
|-
| SLPS_022.67 || 0xB3347162 || || 2 || 0x12 || 0x00000020 ||
|-
|            ||            || ||  || 0x12 || 0x00000400 ||
|-
| SLPS_022.68 || 0x1F547343 || || 2 || 0x12 || 0x00000020 ||
|-
|            ||            || ||  || 0x12 || 0x00000400 ||
|-
| SLPS_022.69 || 0x5B797240 || || 2 || 0x12 || 0x00000020 ||
|-
|            ||            || ||  || 0x12 || 0x00000400 ||
|-
| SLPS_003.04 || 0x0B4570C7 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_003.05 || 0x2F7C6D6C || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_011.90 || 0x5F51743A || || 4 || 0x0E || 0x00000000 ||
|-
|            ||            || ||  || 0x0F || 0x00000000 ||
|-
|            ||            || ||  || 0x10 || 0x00000000 ||
|-
|            ||            || ||  || 0x11 || 0x00000000 ||
|-
| SLPS_011.91 || 0x8F317483 || || 4 || 0x0E || 0x00000000 ||
|-
|            ||            || ||  || 0x0F || 0x00000000 ||
|-
|            ||            || ||  || 0x10 || 0x00000000 ||
|-
|            ||            || ||  || 0x11 || 0x00000000 ||
|-
| SLPS_011.92 || 0xF13275BC || || 4 || 0x0E || 0x00000000 ||
|-
|            ||            || ||  || 0x0F || 0x00000000 ||
|-
|            ||            || ||  || 0x10 || 0x00000000 ||
|-
|            ||            || ||  || 0x11 || 0x00000000 ||
|-
| SLPS_011.93 || 0x5F51743A || || 4 || 0x0E || 0x00000000 ||
|-
|            ||            || ||  || 0x0F || 0x00000000 ||
|-
|            ||            || ||  || 0x10 || 0x00000000 ||
|-
|            ||            || ||  || 0x11 || 0x00000000 ||
|-
| SLPS_011.94 || 0x8F317483 || || 4 || 0x0E || 0x00000000 ||
|-
|            ||            || ||  || 0x0F || 0x00000000 ||
|-
|            ||            || ||  || 0x10 || 0x00000000 ||
|-
|            ||            || ||  || 0x11 || 0x00000000 ||
|-
| SLPS_011.95 || 0xF13275BC || || 4 || 0x0E || 0x00000000 ||
|-
|            ||            || ||  || 0x0F || 0x00000000 ||
|-
|            ||            || ||  || 0x10 || 0x00000000 ||
|-
|            ||            || ||  || 0x11 || 0x00000000 ||
|-
| SLPM_861.23 || 0x6480711B || || 2 || 0x21 || 0x000007D0 ||
|-
|            ||            || ||  || 0x22 || 0x000007D0 ||
|-
| SLPS_015.43 || 0x6A956F92 || || 1 || 0x31 || 0x00000002 ||
|-
| SLPS_015.44 || 0x28157073 || || 1 || 0x31 || 0x00000002 ||
|-
| SLPS_015.45 || 0xB0F86F7A || || 1 || 0x31 || 0x00000002 ||
|-
| SLPS_021.08 || 0xFEE172C6 || || 1 || 0x03 || 0x000001F4 ||
|-
| SLPS_019.26 || 0xC74271DC || || 5 || 0x03 || 0x00000384 ||
|-
|            ||            || ||  || 0x04 || 0x00000064 ||
|-
|            ||            || ||  || 0x08 || 0x00000320 ||
|-
|            ||            || ||  || 0x14 || 0x00000000 ||
|-
|            ||            || ||  || 0x16 || 0x00000004 ||
|-
| SLPM_862.24 || 0x43406D6F || || 3 || 0x03 || 0x0000012C ||
|-
|            ||            || ||  || 0x08 || 0x0000012C ||
|-
|            ||            || ||  || 0x13 || 0x00000001 ||
|-
| SLPM_862.25 || 0x8F686D14 || || 3 || 0x03 || 0x0000012C ||
|-
|            ||            || ||  || 0x08 || 0x0000012C ||
|-
|            ||            || ||  || 0x13 || 0x00000001 ||
|-
| SLPS_002.48 || 0xEB08766F || || 1 || 0x12 || 0x00000002 ||
|-
| SLPS_003.42 || 0xED3675B2 || || 1 || 0x12 || 0x00000002 ||
|-
| slps_002.67 || 0xDAA073DB || || 1 || 0x20 || 0x00000002 || Game ID use lowercase in emu, DON'T EDIT
|-
| SLPS_000.06 || 0x37A1705B || || 2 || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x22 || 0x00000640 ||
|-
| SLPS_000.31 || 0xFBDE704D || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_014.20 || 0xFC4671F3 || || 5 || 0x03 || 0x000001F4 ||
|-
|            ||            || ||  || 0x08 || 0x000001F4 ||
|-
|            ||            || ||  || 0x14 || 0x00000000 ||
|-
|            ||            || ||  || 0x21 || 0x000001F4 ||
|-
|            ||            || ||  || 0x22 || 0x000001F4 ||
|-
| SLPM_867.75 || 0xF0926FF3 || || 3 || 0x14 || 0x00000000 ||
|-
|            ||            || ||  || 0x16 || 0x00000020 ||
|-
|            ||            || ||  || 0x19 || 0x00000000 ||
|-
| SLPM_867.76 || 0x5BF1723F || || 3 || 0x14 || 0x00000000 ||
|-
|            ||            || ||  || 0x16 || 0x00000016 ||
|-
|            ||            || ||  || 0x16 || 0x00000010 ||
|-
| SLPM_865.49 || 0x6C3F7219 || || 2 || 0x01 || 0x00000002 ||
|-
|            ||            || ||  || 0x12 || 0x00000020 ||
|-
| SLPM_865.50 || 0x0F5873A1 || || 2 || 0x01 || 0x00000002 ||
|-
|            ||            || ||  || 0x12 || 0x00000020 ||
|-
| SLPM_868.81 || 0x4927738C || || 1 || 0x12 || 0x00000020 ||
|-
| SLPM_868.82 || 0x22927190 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_027.26 || 0xF3156ECC || || 1 || 0x04 || 0x000000C8 ||
|-
| SLPM_867.15 || 0x020A6E24 || || 1 || 0x04 || 0x000000C8 ||
|-
| SIPS_600.27 || 0x53B97685 || || 1 || 0x03 || 0x000001F4 ||
|-
| SLPS_004.77 || 0x7F0773CA || || 4 || 0x03 || 0x000004B0 ||
|-
|            ||            || ||  || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000008 ||
|-
|            ||            || ||  || 0x18 || 0xFFFFFC18 ||
|-
| SLPS_004.78 || 0x415873C2 || || 4 || 0x03 || 0x000004B0 ||
|-
|            ||            || ||  || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000008 ||
|-
|            ||            || ||  || 0x18 || 0xFFFFFC18 ||
|-
| SLPS_004.79 || 0x42607296 || || 4 || 0x03 || 0x000004B0 ||
|-
|            ||            || ||  || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000008 ||
|-
|            ||            || ||  || 0x18 || 0xFFFFFC18 ||
|-
| SLPS_004.80 || 0x423873A1 || || 4 || 0x03 || 0x000004B0 ||
|-
|            ||            || ||  || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000008 ||
|-
|            ||            || ||  || 0x18 || 0xFFFFFC18 ||
|-
| SLPS_029.23 || 0x87036E9E || || 3 || 0x03 || 0x000002BC ||
|-
|            ||            || ||  || 0x08 || 0x000002BC ||
|-
|            ||            || ||  || 0x14 || 0x00000000 ||
|-
| SLPS_000.83 || 0x427C7116 || || 7 || 0x14 || 0x00000008 ||
|-
|            ||            || ||  || 0x15 || 0x00000000 ||
|-
|            ||            || ||  || 0x19 || 0x00000008 ||
|-
|            ||            || ||  || 0x21 || 0x000000C8 ||
|-
|            ||            || ||  || 0x22 || 0x000000C8 ||
|-
|            ||            || ||  || 0x2C || 0xFFFFFFF0 ||
|-
|            ||            || ||  || 0x2D || 0xFFFFFFF0 ||
|-
| SLPM_870.70 || 0xF8A473BC || || 1 || 0x16 || 0x00000010 ||
|-
| SLPM_872.70 || 0xC76C716E || || 2 || 0x03 || 0x000001F4 ||
|-
|            ||            || ||  || 0x14 || 0x00000000 ||
|-
| SLPS_011.33 || 0xBBD96EBE || || 5 || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x14 || 0x00000000 ||
|-
|            ||            || ||  || 0x19 || 0x00000000 ||
|-
|            ||            || ||  || 0x21 || 0x00000C80 ||
|-
|            ||            || ||  || 0x22 || 0x000007D0 ||
|-
| SLPS_002.38 || 0x8FE37274 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_015.48 || 0x24377013 || || 5 || 0x14 || 0x0000000A ||
|-
|            ||            || ||  || 0x21 || 0x00000672 ||
|-
|            ||            || ||  || 0x36 || 0x00000001 ||
|-
|            ||            || ||  || 0x36 || 0x00000002 ||
|-
|            ||            || ||  || 0x36 || 0x00000004 ||
|-
| SLPM_867.12 || 0x49DE6ED5 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_019.02 || 0xA0926C45 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_013.11 || 0x11206DA7 || || 1 || 0x1C || 0x00000002 ||
|-
| SLPS_023.61 || 0xC1556EB3 || || 2 || 0x03 || 0x00000708 ||
|-
|            ||            || ||  || 0x21 || 0x00000000 ||
|-
| SLPS_017.80 || 0xF77873AA || || 3 || 0x03 || 0x00000578 ||
|-
|            ||            || ||  || 0x10 || 0x00000000 ||
|-
|            ||            || ||  || 0x11 || 0x00000000 ||
|-
| SLPS_017.81 || 0x06E073AC || || 3 || 0x03 || 0x00000578 ||
|-
|            ||            || ||  || 0x10 || 0x00000000 ||
|-
|            ||            || ||  || 0x11 || 0x00000000 ||
|-
| SLPS_019.21 || 0xF7E572C0 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_019.22 || 0x7D1D72B0 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_011.79 || 0x3E7B73C7 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_024.79 || 0x22E86BA3 || || 1 || 0x20 || 0x00000001 ||
|-
| SLPS_000.25 || 0x7E2873EB || || 2 || 0x16 || 0x00000004 ||
|-
|            ||            || ||  || 0x1B || 0x000000C8 ||
|-
| SLPS_017.16 || 0xFFE3710D || || 1 || 0x01 || 0x00000002 ||
|-
| SLPS_017.37 || 0x8EAE73B0 || || 1 || 0x18 || 0xFFFFF254 ||
|-
| SLPS_027.43 || 0x5B556E33 || || 1 || 0x1A || 0xFFFFFFFF ||
|-
| SLPS_010.45 || 0x4AAC6CEE || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_010.46 || 0x845F6C71 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_010.47 || 0x09FF6C64 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_011.57 || 0xDEE270E9 || || 1 || 0x04 || 0x000000C8 ||
|-
| SLPS_013.88 || 0x7E896DDD || || 1 || 0x04 || 0x000000C8 ||
|-
| SLPS_004.16 || 0xFE9A6E57 || || 1 || 0x01 || 0x00000001 ||
|-
| SLPS_021.22 || 0x5E5E6D7C || || 1 || 0x04 || 0x000000C8 ||
|-
| SLPS_001.96 || 0x2BF5715A || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_001.04 || 0x29906E05 || || 4 || 0x03 || 0x000000C8 ||
|-
|            ||            || ||  || 0x04 || 0xFFFFFF38 ||
|-
|            ||            || ||  || 0x08 || 0x000000C8 ||
|-
|            ||            || ||  || 0x13 || 0x00000001 ||
|-
| SLPS_001.44 || 0x4B637409 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_001.45 || 0x592E74B2 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_027.20 || 0xBD7E6B7A || || 2 || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x20 || 0x00000020 ||
|-
| SLPS_034.20 || 0x0E957167 || || 2 || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x20 || 0x00000020 ||
|-
| SLPS_010.35 || 0x57496D99 || || 1 || 0x20 || 0x00000020 ||
|-
| SLPS_023.50 || 0xC8496EB1 || || 2 || 0x04 || 0x00000064 ||
|-
|            ||            || ||  || 0x13 || 0x00000001 ||
|-
| SLPM_866.25 || 0xE9767148 || || 2 || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x06 || 0xFFFFFFF6 ||
|-
| SLPS_030.04 || 0x9C706D06 || || 1 || 0x06 || 0xFFFFFFEC ||
|-
| SLPS_012.67 || 0xC58A6E17 || || 3 || 0x03 || 0x000001F4 ||
|-
|            ||            || ||  || 0x21 || 0x00000640 ||
|-
|            ||            || ||  || 0x12 || 0x00000800 ||
|-
| SLPS_013.82 || 0xC6DD6E08 || || 3 || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x12 || 0x00000804 ||
|-
|            ||            || ||  || 0x3B || 0x00000001 ||
|-
| SLPS_031.51 || 0xB9FF72E2 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_016.37 || 0xFB3A7013 || || 1 || 0x21 || 0x000002BC ||
|-
| SLPS_027.28 || 0x76827129 || || 1 || 0x04 || 0x00000014 ||
|-
| SLPS_000.07 || 0xAA0A6EF2 || || 1 || 0x37 || 0x00000002 ||
|-
| SLPS_016.11 || 0x68ED73D3 || || 1 || 0x12 || 0x00000400 ||
|-
| SLPS_016.12 || 0x0B277320 || || 1 || 0x12 || 0x00000400 ||
|-
| SLPS_016.13 || 0x0D8D7363 || || 1 || 0x12 || 0x00000400 ||
|-
| SLPS_016.14 || 0xE2BB72D8 || || 1 || 0x12 || 0x00000400 ||
|-
| SLPS_017.38 || 0x6CC36CDF || || 3 || 0x27 || 0x00000004 ||
|-
|            ||            || ||  || 0x28 || 0xFFFFFFFF ||
|-
|            ||            || ||  || 0x29 || 0xFFFFFFFC ||
|-
| SLPS_026.36 || 0x56B274EF || || 1 || 0x03 || 0x000002BC ||
|-
| SLPS_031.48 || 0x26A076E0 || || 1 || 0x03 || 0x000001F4 ||
|-
| SLPS_012.40 || 0x943B71CC || || 11 || 0x14 || 0x00000000 ||
|-
|            ||            || ||  || 0x16 || 0x00000004 ||
|-
|            ||            || ||  || 0x1B || 0x000000C8 ||
|-
|            ||            || ||  || 0x21 || 0x000000C8 ||
|-
|            ||            || ||  || 0x22 || 0x000000C8 ||
|-
|            ||            || ||  || 0x2C || 0xFFFFFFF8 ||
|-
|            ||            || ||  || 0x2D || 0xFFFFFFF8 ||
|-
|            ||            || ||  || 0x36 || 0x00000001 ||
|-
|            ||            || ||  || 0x36 || 0x00000002 ||
|-
|            ||            || ||  || 0x36 || 0x00000004 ||
|-
|            ||            || ||  || 0x37 || 0x00000004 ||
|-
| SLPS_012.41 || 0x1A02721E || || 11 || 0x14 || 0x00000000 ||
|-
|            ||            || ||  || 0x16 || 0x00000004 ||
|-
|            ||            || ||  || 0x1B || 0x000000C8 ||
|-
|            ||            || ||  || 0x21 || 0x000000C8 ||
|-
|            ||            || ||  || 0x22 || 0x000000C8 ||
|-
|            ||            || ||  || 0x2C || 0xFFFFFFF8 ||
|-
|            ||            || ||  || 0x2D || 0xFFFFFFF8 ||
|-
|            ||            || ||  || 0x36 || 0x00000001 ||
|-
|            ||            || ||  || 0x36 || 0x00000002 ||
|-
|            ||            || ||  || 0x36 || 0x00000004 ||
|-
|            ||            || ||  || 0x37 || 0x00000004 ||
|-
| SLPM_861.92 || 0xB0C26E33 || || 2 || 0x03 || 0x000002BC ||
|-
|            ||            || ||  || 0x20 || 0x00000004 ||
|-
| SLPS_002.46 || 0xB1297055 || || 4 || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x14 || 0x00000008 ||
|-
|            ||            || ||  || 0x18 || 0x000003E8 ||
|-
|            ||            || ||  || 0x19 || 0x00000008 ||
|-
| SLPS_000.26 || 0x6E6D745E || || 1 || 0x05 || 0xFFFFFF38 ||
|-
| SLPS_000.05 || 0x453C74BA || || 2 || 0x22 || 0x000001F4 ||
|-
|            ||            || ||  || 0x37 || 0x00000004 ||
|-
| SLPS_019.41 || 0x797A6FEC || || 1 || 0x27 || 0x00000007 ||
|-
| SLPS_000.24 || 0x2720703B || || 1 || 0x20 || 0x00000001 ||
|-
| SLPS_017.03 || 0x213C72DB || || 2 || 0x15 || 0x00000000 ||
|-
|            ||            || ||  || 0x20 || 0x00000001 ||
|-
| SLPS_011.80 || 0x03B972F8 || || 2 || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000020 ||
|-
| SLPS_011.81 || 0xEEC774EA || || 2 || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000020 ||
|-
| SLPS_011.82 || 0x28ED757B || || 2 || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000020 ||
|-
| SLPS_011.83 || 0xC6F675CF || || 2 || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000020 ||
|-
| SLPS_011.84 || 0xA846760C || || 2 || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000020 ||
|-
| SCPS_100.11 || 0xC9216DED || || 1 || 0x22 || 0x00000708 ||
|-
| SLPS_007.31 || 0x28FC700F || || 4 || 0x1B || 0x000000C8 ||
|-
|            ||            || ||  || 0x36 || 0x00000001 ||
|-
|            ||            || ||  || 0x36 || 0x00000002 ||
|-
|            ||            || ||  || 0x36 || 0x00000004 ||
|-
| SLPS_034.46 || 0x26136FD7 || || 7 || 0x04 || 0x00000046 ||
|-
|            ||            || ||  || 0x14 || 0x00000008 ||
|-
|            ||            || ||  || 0x15 || 0x00000008 ||
|-
|            ||            || ||  || 0x36 || 0x00000001 ||
|-
|            ||            || ||  || 0x36 || 0x00000002 ||
|-
|            ||            || ||  || 0x36 || 0x00000004 ||
|-
|            ||            || ||  || 0x37 || 0x00000004 ||
|-
| SLPS_006.57 || 0x759B71B6 || || 3 || 0x14 || 0x00000008 ||
|-
|            ||            || ||  || 0x15 || 0x00000008 ||
|-
|            ||            || ||  || 0x22 || 0x00000320 ||
|-
| SLPS_008.39 || 0x33BC7674 || || 1 || 0x04 || 0x00000064 ||
|-
| SLPS_002.90 || 0x7B8A6EF8 || || 6 || 0x03 || 0x000001F4 ||
|-
|            ||            || ||  || 0x08 || 0x000001F4 ||
|-
|            ||            || ||  || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x14 || 0x00000010 ||
|-
|            ||            || ||  || 0x21 || 0x00000898 ||
|-
|            ||            || ||  || 0x22 || 0x000007D0 ||
|-
| SLPS_015.30 || 0x52657015 || || 1 || 0x12 || 0x00000002 ||
|-
| SLPS_017.70 || 0x944074A8 || || 1 || 0x38 || 0x00000002 ||
|-
| SLPS_000.01 || 0xA61B73A2 || || 1 || 0x38 || 0x00000002 ||
|-
| SLPS_006.00 || 0x69F771EA || || 12 || 0x12 || 0x00000002 ||
|-
|            ||            || ||  || 0x14 || 0x00000000 ||
|-
|            ||            || ||  || 0x15 || 0x00000002 ||
|-
|            ||            || ||  || 0x19 || 0x00000000 ||
|-
|            ||            || ||  || 0x1B || 0x00000000 ||
|-
|            ||            || ||  || 0x20 || 0x00000010 ||
|-
|            ||            || ||  || 0x20 || 0x00000020 ||
|-
|            ||            || ||  || 0x21 || 0x00000000 ||
|-
|            ||            || ||  || 0x22 || 0x00000000 ||
|-
|            ||            || ||  || 0x23 || 0x00000000 ||
|-
|            ||            || ||  || 0x2C || 0xFFFFFFE0 ||
|-
|            ||            || ||  || 0x2D || 0xFFFFFFE0 ||
|-
| SLPS_030.50 || 0xF5E87225 || || 1 || 0x03 || 0x000001F4 ||
|-
| SLPS_003.60 || 0xCA1273F7 || || 1 || 0x28 || 0xFFFFFFFA ||
|-
| SLPM_869.59 || 0x5DC771BA || || 1 || 0x04 || 0x00000007 ||
|-
| SLPS_007.65 || 0xEC497442 || || 5 || 0x14 || 0x00000010 ||
|-
|            ||            || ||  || 0x19 || 0x00000020 ||
|-
|            ||            || ||  || 0x36 || 0x00000001 ||
|-
|            ||            || ||  || 0x36 || 0x00000002 ||
|-
|            ||            || ||  || 0x36 || 0x00000004 ||
|-
| SIPS_600.20 || 0x50ED6E47 || || 1 || 0x1C || 0x00000002 ||
|-
| SLPM_861.68 || 0xBA886BF4 || || 7 || 0x04 || 0x00000004 ||
|-
|            ||            || ||  || 0x06 || 0x00000001 ||
|-
|            ||            || ||  || 0x07 || 0x00000001 ||
|-
|            ||            || ||  || 0x14 || 0x0000000C ||
|-
|            ||            || ||  || 0x19 || 0x0000000C ||
|-
|            ||            || ||  || 0x1C || 0x00000002 ||
|-
|            ||            || ||  || 0x27 || 0x00000007 ||
|-
| SLPM_861.68 || 0x3E596C24 || || 7 || 0x04 || 0x00000004 ||
|-
|            ||            || ||  || 0x06 || 0x00000001 ||
|-
|            ||            || ||  || 0x07 || 0x00000001 ||
|-
|            ||            || ||  || 0x14 || 0x0000000C ||
|-
|            ||            || ||  || 0x19 || 0x0000000C ||
|-
|            ||            || ||  || 0x1C || 0x00000002 ||
|-
|            ||            || ||  || 0x27 || 0x00000007 ||
|-
| SLPS_003.90 || 0x45627423 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_007.05 || 0xF93772F6 || || 1 || 0x38 || 0x00000002 ||
|-
| SLPS_021.20 || 0xBC5F7186 || || 11 || 0x14 || 0x00000000 ||
|-
|            ||            || ||  || 0x16 || 0x00000004 ||
|-
|            ||            || ||  || 0x1B || 0x000000C8 ||
|-
|            ||            || ||  || 0x21 || 0x000000C8 ||
|-
|            ||            || ||  || 0x22 || 0x000000C8 ||
|-
|            ||            || ||  || 0x2C || 0xFFFFFFF8 ||
|-
|            ||            || ||  || 0x2D || 0xFFFFFFF8 ||
|-
|            ||            || ||  || 0x36 || 0x00000001 ||
|-
|            ||            || ||  || 0x36 || 0x00000002 ||
|-
|            ||            || ||  || 0x36 || 0x00000004 ||
|-
|            ||            || ||  || 0x37 || 0x00000004 ||
|-
| SLPS_028.32 || 0x258C6C70 || || 3 || 0x0A || 0x0000001E ||
|-
|            ||            || ||  || 0x12 || 0x00002000 ||
|-
|            ||            || ||  || 0x09 || 0x0000000A ||
|-
| SLPS_008.12 || 0x6CC6704F || || 1 || 0x16 || 0x00000003 ||
|-
| SLPM_864.94 || 0x6C706D5C || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_004.20 || 0x31F46F73 || || 1 || 0x38 || 0x00000002 ||
|-
| SLPS_019.06 || 0x32866ECF || || 4 || 0x12 || 0x00000020 ||
|-
|            ||            || ||  || 0x12 || 0x00000100 ||
|-
|            ||            || ||  || 0x12 || 0x00004000 ||
|-
|            ||            || ||  || 0x12 || 0x00008000 ||
|-
| SLPS_034.33 || 0xAA127312 || || 2 || 0x14 || 0x00000010 ||
|-
|            ||            || ||  || 0x19 || 0x00000018 ||
|-
| SLPS_006.11 || 0x7B9776D2 || || 1 || 0x27 || 0x00000008 ||
|-
| SLPS_002.69 || 0x6A70722C || || 2 || 0x14 || 0x00000018 ||
|-
|            ||            || ||  || 0x19 || 0x00000020 ||
|-
| SLPS_001.17 || 0x27577155 || || 3 || 0x14 || 0x0000000C ||
|-
|            ||            || ||  || 0x19 || 0x0000000C ||
|-
|            ||            || ||  || 0x34 || 0x00000003 ||
|-
| SLPS_001.18 || 0x01707004 || || 3 || 0x14 || 0x0000000C ||
|-
|            ||            || ||  || 0x19 || 0x0000000C ||
|-
|            ||            || ||  || 0x34 || 0x00000003 ||
|-
| SLPS_001.19 || 0x5D717205 || || 3 || 0x14 || 0x0000000C ||
|-
|            ||            || ||  || 0x19 || 0x0000000C ||
|-
|            ||            || ||  || 0x34 || 0x00000003 ||
|-
| SLPM_870.50 || 0xC2BE6D65 || || 1 || 0x05 || 0xFFFFFFE2 ||
|-
| SLPS_007.73 || 0x5C7C6E85 || || 1 || 0x21 || 0x00000000 ||
|-
| SLPS_007.89 || 0x2EE27057 || || 1 || 0x21 || 0x00000000 ||
|-
| SLPS_026.53 || 0x3947703C || || 4 || 0x12 || 0x00000020 ||
|-
|            ||            || ||  || 0x12 || 0x00000100 ||
|-
|            ||            || ||  || 0x12 || 0x00004000 ||
|-
|            ||            || ||  || 0x12 || 0x00008000 ||
|-
| SLPS015.03  || 0x5E046C54 || || 3 || 0x12 || 0x00000020 || Game ID is missing underscore in emu, DON'T EDIT
|-
|            ||            || ||  || 0x12 || 0x00000100 ||
|-
|            ||            || ||  || 0x12 || 0x00004000 ||
|-
| SLPS_017.49 || 0xB29D7153 || || 3 || 0x12 || 0x00000020 ||
|-
|            ||            || ||  || 0x12 || 0x00000100 ||
|-
|            ||            || ||  || 0x12 || 0x00004000 ||
|-
| slps_026.37 || 0x01756F09 || || 3 || 0x12 || 0x00000020 || Game ID use lowercase in emu, DON'T EDIT
|-
|            ||            || ||  || 0x12 || 0x00000100 ||
|-
|            ||            || ||  || 0x12 || 0x00004000 ||
|-
| SLPS_016.76 || 0x1E216F81 || || 1 || 0x03 || 0x000005DC ||
|-
| SLPS_017.01 || 0x5BAD767C || || 1 || 0x12 || 0x00000400 ||
|-
| SCPS_100.43 || 0xAD1A6DC9 || || 1 || 0x14 || 0x00000010 ||
|-
| SLPM_866.38 || 0xD0066D6C || || 1 || 0x16 || 0x00000001 ||
|-
| SLPM_866.39 || 0x7FCE6B6E || || 1 || 0x16 || 0x00000001 ||
|-
| SLPS_035.62 || 0xF5E67262 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_024.12 || 0xAB3B70E7 || || 1 || 0x15 || 0x00000038 ||
|-
| SLPS_031.77 || 0x905E744B || || 1 || 0x27 || 0x00000002 ||
|-
| SLPS_021.43 || 0x287A7428 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_023.32 || 0xBFAF6D60 || || 1 || 0x04 || 0x00000007 ||
|-
| SLPS_004.45 || 0x1C977170 || || 1 || 0x13 || 0x00000001 ||
|-
| SLPS_032.92 || 0x7D6871E0 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_032.93 || 0xF58A7448 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPS_013.15 || 0x9FA56D27 || || 1 || 0x27 || 0x00000001 ||
|-
| SLPS_026.48 || 0x14846F93 || || 2 || 0x14 || 0x0000000A ||
|-
|            ||            || ||  || 0x19 || 0x0000001C ||
|-
| SLPS_012.05 || 0x2F1C6C7A || || 1 || 0x29 || 0xFFFFFFFE ||
|-
| SLPS_011.47 || 0xAB38741A || || 2 || 0x28 || 0x00000002 ||
|-
|            ||            || ||  || 0x30 || 0x00000001 ||
|-
| SLPS_011.48 || 0xEAF271CA || || 2 || 0x28 || 0x00000002 ||
|-
|            ||            || ||  || 0x30 || 0x00000001 ||
|-
| SLPM_869.34 || 0xB6386F2A || || 1 || 0x29 || 0xFFFFFFFE ||
|-
| SLPM_869.35 || 0x70D96F85 || || 1 || 0x29 || 0xFFFFFFFE ||
|-
| SLPM_869.36 || 0x16B87020 || || 1 || 0x29 || 0xFFFFFFFE ||
|-
| SLPM_871.08 || 0xE24D6E06 || || 1 || 0x12 || 0x00000020 ||
|-
| SLPM_871.09 || 0x35356EB5 || || 1 || 0x12 || 0x00000020 ||
|-
| SCES_016.95 || 0x1CD06FBD || || 1 || 0x17 || 0x000089EA ||
|-
| SLES_019.07 || 0x217F73B9 || || 1 || 0x17 || 0x0000C0EE ||
|-
| SLES_013.01 || 0xD3E2755E || || 1 || 0x17 || 0x0000B722 ||
|-
| SLES_005.56 || 0xB2376D4B || || 1 || 0x13 || 0x00000001 ||
|-
| SCES_000.08 || 0x20037398 || || 1 || 0x38 || 0x00000002 ||
|-
| SLES_007.55 || 0xAAD37657 || || 1 || 0x16 || 0x00000004 ||
|-
| SLES_013.43 || 0xC47D73B4 || || 1 || 0x38 || 0x00000002 ||
|-
| SLES_113.43 || 0xE4C373B5 || || 1 || 0x38 || 0x00000002 ||
|-
| SCES_000.61 || 0x7D876DC2 || || 1 || 0x1C || 0x00000002 ||
|-
| sles_027.90 || 0x5C1F6B0B || || 1 || 0x13 || 0x00000001 || Game ID use lowercase in emu, DON'T EDIT
|-
| SCES_022.85 || 0xE8466F95 || || 3 || 0x0F || 0x00000032 ||
|-
|            ||            || ||  || 0x10 || 0x00000032 ||
|-
|            ||            || ||  || 0x11 || 0x00000019 ||
|-
| SCES_122.85 || 0x85FE6E5C || || 3 || 0x0F || 0x00000032 ||
|-
|            ||            || ||  || 0x10 || 0x00000032 ||
|-
|            ||            || ||  || 0x11 || 0x00000019 ||
|-
| SLES_017.60 || 0xE8576C52 || || 1 || 0x13 || 0x00000001 ||
|-
| SCES_039.37 || 0xBB1E6E47 || || 1 || 0x13 || 0x00000001 ||
|-
| SLES_031.78 || 0x43D56CC9 || || 1 || 0x13 || 0x00000001 ||
|-
| SLES_029.43 || 0xC8DB752E || || 1 || 0x04 || 0x000000C8 ||
|-
| SLES_002.09 || 0x7A327397 || || 1 || 0x16 || 0x00000006 ||
|-
| SCES_028.73 || 0x5AAD6CAD || || 4 || 0x12 || 0x00000120 ||
|-
|            ||            || ||  || 0x12 || 0x00004000 ||
|-
|            ||            || ||  || 0x20 || 0x00000040 ||
|-
|            ||            || ||  || 0x3C || 0xFFFFFF3D ||
|-
| SCUS_945.08 || 0x18D56D2A || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_949.00 || 0x124F71AD || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_943.09 || 0xA9C66FE4 || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_941.03 || 0xDF4C6DBB || || 1 || 0x1C || 0x00000002 ||
|-
| SLUS_002.13 || 0x0CFF7372 || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_943.02 || 0x07E67394 || || 1 || 0x38 || 0x00000002 ||
|-
| SCUS_944.76 || 0xF7656D79 || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_943.01 || 0x24F17103 || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_943.56 || 0x776872C1 || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_944.26 || 0x24F37297 || || 4 || 0x14 || 0x00000010 ||
|-
|            ||            || ||  || 0x36 || 0x00000001 ||
|-
|            ||            || ||  || 0x36 || 0x00000002 ||
|-
|            ||            || ||  || 0x36 || 0x00000004 ||
|-
| SCUS_944.84 || 0x6BD87066 || || 2 || 0x0E || 0x00001388 ||
|-
|            ||            || ||  || 0x1C || 0x00000002 ||
|-
| SCUS_944.98 || 0x6F0C7218 || || 2 || 0x0E || 0x00001388 ||
|-
|            ||            || ||  || 0x1C || 0x00000002 ||
|-
| SCUS_941.08 || 0x4F066FFA || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_941.63 || 0x1D04759B || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_941.64 || 0x062C7665 || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_941.65 || 0x981F74C6 || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_942.21 || 0x5D9973B1 || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_943.55 || 0x60476E89 || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_944.51 || 0x916A6F8A || || 3 || 0x0F || 0x00000032 ||
|-
|            ||            || ||  || 0x10 || 0x00000032 ||
|-
|            ||            || ||  || 0x11 || 0x00000019 ||
|-
| SCUS_944.92 || 0x254F6E71 || || 3 || 0x0F || 0x00000032 ||
|-
|            ||            || ||  || 0x10 || 0x00000032 ||
|-
|            ||            || ||  || 0x11 || 0x00000019 ||
|-
| SLUS_009.58 || 0x70356CAF || || 3 || 0x14 || 0x0000000C ||
|-
|            ||            || ||  || 0x19 || 0x0000000C ||
|-
|            ||            || ||  || 0x1C || 0x00000002 ||
|-
| SLUS_003.79 || 0xA9A06E01 || || 1 || 0x1C || 0x00000002 ||
|-
| SLUS_004.10 || 0x96316D15 || || 1 || 0x1C || 0x00000002 ||
|-
| SLUS_004.31 || 0xF1636D84 || || 2 || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x1C || 0x00000002 ||
|-
| SLUS_004.85 || 0x45C86D54 || || 2 || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x1C || 0x00000002 ||
|-
| SLUS_006.65 || 0x30946C87 || || 2 || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x1C || 0x00000002 ||
|-
| SLUS_006.67 || 0xD3DC6C57 || || 2 || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x1C || 0x00000002 ||
|-
| SLUS_010.41 || 0xA69371A0 || || 4 || 0x2C || 0xFFFFFFF0 ||
|-
|            ||            || ||  || 0x22 || 0x000001F4 ||
|-
|            ||            || ||  || 0x21 || 0x000001F4 ||
|-
|            ||            || ||  || 0x33 || 0x00000514 ||
|-
| SLUS_010.80 || 0x868E72C8 || || 4 || 0x2C || 0xFFFFFFF0 ||
|-
|            ||            || ||  || 0x22 || 0x000001F4 ||
|-
|            ||            || ||  || 0x21 || 0x000001F4 ||
|-
|            ||            || ||  || 0x33 || 0x00000514 ||
|-
| SLUS_008.79 || 0x25E96D12 || || 1 || 0x20 || 0x00000002 ||
|-
| SLUS_002.38 || 0x4C1C7189 || || 1 || 0x1C || 0x00000002 ||
|-
| SLUS_001.13 || 0xF2BD6EE2 || || 1 || 0x1C || 0x00000002 ||
|-
| SLUS_002.36 || 0xC1117292 || || 2 || 0x16 || 0x00000007 ||
|-
|            ||            || ||  || 0x1C || 0x00000002 ||
|-
| SLUS_005.18 || 0xD212739F || || 1 || 0x1C || 0x00000002 ||
|-
| SLUS_004.40 || 0xE28F729A || || 1 || 0x1C || 0x00000002 ||
|-
| SLUS_000.61 || 0xE1B4752C || || 1 || 0x1C || 0x00000002 ||
|-
| SLUS_000.67 || 0xDC237170 || || 1 || 0x21 || 0x00000708 ||
|-
| SLUS_000.42 || 0x93C071A2 || || 3 || 0x03 || 0x0000044C ||
|-
|            ||            || ||  || 0x13 || 0x00000001 ||
|-
|            ||            || ||  || 0x1C || 0x00000002 ||
|-
| SLUS_000.27 || 0x3B037462 || || 1 || 0x1C || 0x00000002 ||
|-
| SLUS_001.52 || 0x59207131 || || 1 || 0x1C || 0x00000002 ||
|-
| SLUS_002.32 || 0x055E74C4 || || 1 || 0x1C || 0x00000002 ||
|-
| SLUS_004.37 || 0xCB24738B || || 1 || 0x1C || 0x00000002 ||
|-
| SCUS_943.04 || 0xC0546D88 || || 1 || 0x1C || 0x00000002 ||
|-
| SLUS_007.07 || 0x2C9D6E1E || || 1 || 0x03 || 0x0000044C ||
|-
| SCUS_944.24 || 0x6C8C7285 || || 1 || 0x20 || 0x00000008 ||
|-
| SLUS_000.19 || 0x32FE7217 || || 5 || 0x03 || 0x00000320 ||
|-
|            ||            || ||  || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000008 ||
|-
|            ||            || ||  || 0x18 || 0x000000C8 ||
|-
|            ||            || ||  || 0x30 || 0x00000001 ||
|-
| SLUS_001.34 || 0xF84A722C || || 4 || 0x03 || 0x00000320 ||
|-
|            ||            || ||  || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000008 ||
|-
|            ||            || ||  || 0x18 || 0x000000C8 ||
|-
| SLUS_001.35 || 0x993A71DF || || 4 || 0x03 || 0x00000320 ||
|-
|            ||            || ||  || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000008 ||
|-
|            ||            || ||  || 0x18 || 0x000000C8 ||
|-
| SLUS_001.36 || 0xF6F4718E || || 4 || 0x03 || 0x00000320 ||
|-
|            ||            || ||  || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000008 ||
|-
|            ||            || ||  || 0x18 || 0x000000C8 ||
|-
| SLUS_002.70 || 0xE562706A || || 4 || 0x03 || 0x00000320 ||
|-
|            ||            || ||  || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000008 ||
|-
|            ||            || ||  || 0x36 || 0x00000007 ||
|-
| SLUS_002.71 || 0x8C5B703D || || 4 || 0x03 || 0x00000320 ||
|-
|            ||            || ||  || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000008 ||
|-
|            ||            || ||  || 0x36 || 0x00000007 ||
|-
| SLUS_002.72 || 0xF4A37003 || || 4 || 0x03 || 0x00000320 ||
|-
|            ||            || ||  || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000008 ||
|-
|            ||            || ||  || 0x36 || 0x00000007 ||
|-
| SLUS_002.73 || 0x05877031 || || 4 || 0x03 || 0x00000320 ||
|-
|            ||            || ||  || 0x04 || 0x000000C8 ||
|-
|            ||            || ||  || 0x12 || 0x00000008 ||
|-
|            ||            || ||  || 0x36 || 0x00000007 ||
|-
| SLUS_000.76 || 0x7E91728C || || 1 || 0x14 || 0x00000006 ||
|-
| SLUS_000.28 || 0x64D8758D || || 1 || 0x14 || 0x00000006 ||
|-
| SLUS_001.37 || 0xCAE576E7 || || 1 || 0x14 || 0x00000006 ||
|-
| SCUS_944.48 || 0x68537091 || || 1 || 0x38 || 0x00000002 ||
|-
| SLUS_012.53 || 0x4A926D54 || || 1 || 0x12 || 0x00000020 ||
|-
| SLUS_012.54 || 0x5C3D6FD0 || || 1 || 0x12 || 0x00000020 ||
|-
| SLUS_004.33 || 0x34FA737C || || 1 || 0x01 || 0x00000001 ||
|-
| SCUS_944.54 || 0x49486D8E || || 2 || 0x04 || 0x00000064 ||
|-
|            ||            || ||  || 0x13 || 0x00000001 ||
|-
| SCUS_942.00 || 0x0E9575ED || || 1 || 0x1B || 0x000002BC ||
|-
| SLUS_013.95 || 0xCA8D7292 || || 1 || 0x04 || 0x00000007 ||
|-
| SLUS_011.61 || 0xD2647347 || || 1 || 0x05 || 0xFFFFFF9C ||
|-
| SLUS_002.08 || 0x99127457 || || 1 || 0x28 || 0xFFFFFFFA ||
|-
| Slus_005.98 || 0x90F1753A || || 1 || 0x1F || 0x00000001 || Game ID use mix of lowercase and uppercase in emu, DON'T EDIT
|-
| SLUS_009.80 || 0xEBB37080 || || 1 || 0x30 || 0x00000001 ||
|-
| SLUS_008.92 || 0x10D26D0B || || 1 || 0x31 || 0x00000002 ||
|-
| SLUS_009.08 || 0xC83E6DC6 || || 1 || 0x31 || 0x00000002 ||
|-
| SLUS_009.09 || 0xC88B6CC3 || || 1 || 0x31 || 0x00000002 ||
|-
| SLUS_009.10 || 0x25D66D0D || || 1 || 0x31 || 0x00000002 ||
|-
| SLUS_014.70 || 0x55257373 || || 1 || 0x16 || 0x00000018 ||
|-
| SCES_021.05 || 0x24066F28 || || 1 || 0x02 || 0x001727E4 ||
|-
| SCES_003.11 || 0xD0317129 || || 1 || 0x02 || 0x0017298C ||
|-
| SLES_027.54 || 0xCF2870BB || || 1 || 0x02 || 0x00172A8C ||
|-
|}

Latest revision as of 22:24, 4 June 2024

Memory Map[edit source]

For now here, i will move when finished. Based on ps1_netemu 4.86.

  • emu memory 0x770780 - 0x97077F = PS1 RAM (80000000 - 801FFFFF)
  • emu memory 0x970780 - 0x970B7F = PS1 Scratchpad (1F800000 - 1F8003FF)
  • emu memory 0x970B80 - 0xD70B80 = PS1 ROM (1FC00000 - 1FFFFFFF) (only 512kb used)

GPU related info[edit source]

Highly recommended to visit site below to understand this info:
http://problemkaputt.de/psx-spx.htm#gpustatusregister
http://problemkaputt.de/psx-spx.htm#gpudisplaycontrolcommandsgp1

Offset in emu memory (ps1_netemu 4.86) | name | info

001B39D0 GP0_commands_table {ParamsCount, OPD}
0x10C5E4 GP1_reset_gpu
0x10C88C GP1_reset_command_buffer
0x10C940 GP1_acknowledge_gpu_IRQ1
0x10C968 GP1_display_enable
0x10C9A4 GP1_dma_direction___data_request
0x10CA20 GP1_display_mode
0x10CAEC GP1_get_gpu_info
0x10CB00 GP1_horizontal_display_range
0x10CB30 GP1_vertical_display_range
0x10CB60 GP1_start_of_display_area_in_VRAM
0x10CBD8 dma_dir_GPUREADtoCPU
0x10CD34 dma_dir_Off

Emulated GPU important data addresses.
0xD70BE4 E2_REG (used for immediate response by GPUINFO request)\
0xD70BE8 E3_REG (used for immediate response by GPUINFO request) \ Set by GP0 Ex cmds.
0xD70BEC E4_REG (used for immediate response by GPUINFO request) /
0xD70BF0 E5_REG (used for immediate response by GPUINFO request)/
0xD70C1C GP1_get_gpu_info_request (data supplied in GP1 0x10-0x1F cmd)
0xD70C20 GPUSTAT_r (PS1 GPU status register 1F801814 in read mode)
0xD70C24 dma_dir__data_req (from GP1 0x04 cmd)
0xD70C28 - 0xD70DA0 UNCONFIRMED seems to be GP0 fifo on PPU side, but need some reversing to confirm. 
0xD70DA4 display_enable_request (based on GP1 0x03 cmd)
0xD70DA8 start_of_display_area_in_VRAM__X (from GP1 0x05 cmd)
0xD70DAC start_of_display_area_in_VRAM__Y (from GP1 0x05 cmd)
0xD70DB0 H_display_range_X1 (from GP1 0x06 cmd)
0xD70DB4 H_display_range_X2 (from GP1 0x06 cmd)
0xD70DB8 V_display_range_Y1 (from GP1 0x07 cmd)
0xD70DBC V_display_range_Y2 (from GP1 0x07 cmd)
0xD70DC0 H_resolution_1 (from GP1 0x08 cmd)
0xD70DC4 V_resolution (from GP1 0x08 cmd)
0xD70DC8 video_mode___is_pal (from GP1 0x08 cmd)
0xD70DCC display_area_color_depth (from GP1 0x08 cmd)
0xD70DD0 vertical_interlace (from GP1 0x08 cmd)
0xD70DD4 H_resolution_2 (from GP1 0x08 cmd)
0xD70DD8 reverse_flag (from GP1 0x08 cmd)
0xD70DEC display_enable (from GP1 0x03 cmd)
0xD70DF0 display_params_change_requested (1 when old display_mode != new from cmd 0x08)
0xD70DF4 display_mode (whole 8 bits of GP1 0x08)


Config GPU related commands.
Some values are not directly from cfg (are shifted before writing here, etc.).
0xD70E14 set_by_cmd_21
0xD70E18 set_by_cmd_22
0xD70E1C set_by_cmd_23
0xD70E20 set_by_cmd_24
0xD70E24 set_by_cmd_25
0xD70E28 set_by_cmd_26
0xD70E2C set_by_cmd_27
0xD70E30 set_by_cmd_28
0xD70E34 set_by_cmd_29
0xD70E38 set_by_cmd_2B
0xD70E3C set_by_cmd_2C
0xD70E40 set_by_cmd_2D
0xD70E44 set_by_cmd_2E
0xD70E48 set_by_cmd_2F
0xD70E4C set_by_cmd_20
0xD70E50 set_by_cmd_31
0xD70E54 set_by_cmd_30

ps1_emu vs ps1_netemu GPU emulation differences[edit source]

In some cracktros (Spyro 3, Sydney 2000, NFS Porsche 2000) the GP0 command E4h (E4080200) draws the image on the wrong coordinates, causing the frozen image of the zoomed PS1 licence screen. According to this info, that command does make use of the newer 2MB VRAM GPU coordinates. Restricting the drawing area to the lower coordinates does fix the image. It looks like a lot of emulators are affected by this, either the Sony ones (ps1_emu on PS3, PS1 on PS2 hardware emulator, POPS on PSP) or the homebrew pSX 1.13. The ps1_netemu is displaying the image correctly. Does it mean the ps1_netemu emulate a different, newer GPU or just increase the emulation accuracy in general (assuming these cracktros work fine even on the oldest PSX released EDIT: I have found reports they are picky even on the original PS1 hardware too.)?

  • Yes, this should fail also on old PS1 GPU. I can also confirm that PS1DRV (at least before deckard PS2 models) emulate old GPU model.

As for PS3. ps1_emu, and ps1_newemu emulate old GPU, ps1_netemu emulate new GPU at least partially. Also small tip, all emulators have pair of 2 embed SPE ELFs. One is SPU emulator, second is GPU emulator. All of them have debug symbols.

ps1_emu

.text:000014D0 E4_cmd:                              
.text:000014D0      il         r56, 0x3FF
.text:000014D4      hbrr       loc_1504, loc_403C
.text:000014D8      rotmi      r54, r12, -10       # r12 = whole 32 bit command
                                                   # r54 = is command shifted by 10 to skip 
                                                   # x-cord. So now first bits are y-cord.
.text:000014DC      lqr        r51, xmmword_E520
.text:000014E0      and        r55, r12, r56       # x-cord and with whole 10 bits. 
.text:000014E4      cwd        r53, 0xF0+var_F0(sp)
.text:000014E8      cwd        r49, 0xF0+var_F0+8(sp)
.text:000014EC      ai         r52, r55, 1
.text:000014F0      andi       r50, r54, 0x1FF     # y-cord and with 0x1FF, so only 9 bits.

ps1_netemu

.text:00003338 E4_cmd:                          
.text:00003338      rotmi      r18, r12, -10       # r12 = whole 32 bit command
                                                   # r18 = is command shifted by 10 to skip 
                                                   # x-cord. So now first bits are y-cord.
.text:0000333C      hbrr       loc_3384, loc_3328
.text:00003340      il         r19, 0x3FF
.text:00003344      lqr        r39, xmmword_150D0
.text:00003348      il         r8, 0x200
.text:0000334C      lqr        r33, xmmword_150E0
.text:00003350      and        r44, r12, r19       # x-cord and with whole 10 bits. 
.text:00003354      cwd        r42, arg_0+0xC(sp)
.text:00003358      and        r43, r18, r19       # y-cord and with 0x3FF, so whole 10 bits.

---kozarovv.

PS1 I/O handlers[edit source]

List of functions that are responsible for interpreting HW registers reads/writes. Based on 4.86 ps1_netemu.

timers_hwreg_write_handler  0xC2CC0
timers_hwreg_read_handler   0xC2F80
dma_hw_read_handler         0xD09C8
dma_hw_write_handler        0xD0E18
spu_hwreg_write_handler     0xD1E68
spu_hwreg_read_handler      0xD1FF8
joy_hwreg_write_handler     0xD44A8
joy_hwreg_read_handler      0xD49F8
sio_hwreg_write_handler     0xD758C
sio_hwreg_read_handler      0xD7620
cdr_hwreg_read_handler      0xD80A0
cdr_hwreg_write_handler     0xE8598
mdec_hwreg_write_handler    0xE9A18
mdec_hwreg_read_handler     0xEA2F0
i_ctrl_hwreg_read_handler   0x10577C
i_ctrl_hwreg_write_handler  0x1063AC
gpu_hwreg_read_handler      0x10BF40
gpu_hwreg_write_handler     0x10C48C

Experimental Patches[edit source]

This patches are intended to be applyed to the PS1 emulators

Disable Dithering[edit source]

Always set bit 9 in GP0 E1 command to 0. Patches apply to SPE PS1 GPU emulation program. Based on 4.86, but should be valid for all firmwares since 4.6x

For ps1_emu.elf

search for: 23 EC A4 04 23 E3 3B 85  33 7E 26 00 32 05 86 00 0F 3D C6 11
replace to: 23 EC A4 04 23 E3 3B 85  33 7E 26 00 32 05 86 00 40 80 00 11

For ps1_netemu.elf

search for: 7C 38 41 94 20 7F F4 94 0F 3D C6 3C 12 7F F3 8A
replace to: 7C 38 41 94 20 7F F4 94 40 80 00 3C 12 7F F3 8A

For ps1_newemu.elf

search for: 20 7F FD 4C 23 9D C5 85  32 05 B2 80 12 05 B2 0B 0F 3D C6 58
replace to: 20 7F FD 4C 23 9D C5 85  32 05 B2 80 12 05 B2 0B 40 80 00 58

Patch for rpcs3 (newemu only) for testing purpose.

Version: 1.2

SPU-f3d8be702bf4cb8545656e37c29fcc6201a57991:
  "Disable Dithering":
    Games:
      All:
        All: [ All ]
    Author: "kozarovv"
    Patch Version: 1.0
    Patch:
      - [ be32, 0xFB0, 0x40800058 ]

Allow non encrypted ISO.BIN.EDAT and skip signature check (RPCS3 only)[edit source]

For easier config testing. Patch allow to use unencrypted ISO.BIN.EDAT so we don't need to mess with klic. Also ECDSA signature at the end of file is no longer required. So we can ftp configs as is, for faster testing. Warning! This patch break official ps1_classics.

ps1_netemu.elf 4.86-4.90 offset in raw hex (for Hxd, etc.)

0xDDD6C replace 48 07 14 21 to 38 60 00 00
0xE13C4 replace 60 00 00 00 to 38 60 00 00

GTE Automatic Widescreen Hack[edit source]

Automatic widescreen without per game patches. Work only for 3D elements (like 95% of available widescreen patches).
Tested on both RPCS3 and real PS3 (CFW only, but can be added to hen).
ps1_netemu.elf 4.86 - 4.91 offsets in raw hex (for Hxd, etc.)

0x2BDA4 original code:
   7C 69 1B 78 3C 60 80 54 2F 89 00 00 60 63 00 10
   40 9E 00 14 3C 60 80 54 60 63 00 02 7C 63 07 B4
   4E 80 00 20 A0 09 00 02 2F 80 00 00 41 9E FF F0
   C0 02 A3 D8 FF 81 00 00 41 9D FF DC C0 02 A3 DC
   38 60 00 00 FF 81 00 00 41 9C FF CC D0 29 00 6C
   4B FF FF CC
replace to:
   78 C0 F8 42 78 C6 F0 82 7C C6 02 14 7D 08 32 14
   48 0C 47 7E 78 E9 F8 42 78 E7 F0 82 7C E9 3A 14
   7C C6 3A 14 48 0C 65 66 79 00 F8 42 79 08 F0 82
   7D 08 02 14 7C C6 42 14 48 0C 69 0A 79 00 F8 42
   79 08 F0 82 7D 08 02 14 7C C6 42 14 48 0C 6C 6A
   60 00 00 00

0xB4778  original code: 7D 08 32 14 replace to: 48 03 BD A6 
0xB6560  original code: 7C C6 3A 14 replace to: 48 03 BD BA 
0xB6904  original code: 7C C6 42 14 replace to: 48 03 BD CE 
0xB6C64  original code: 7C C6 42 14 replace to: 48 03 BD E2

Ps1_netemu Commands Info[edit source]

External Configs[edit source]

Loading external commands is be possible in ps1_netemu. From this we can also figure out that sony call those configs "ad hoc params" which can be little bit misleading. Emulator expect them inside ISO.BIN.EDAT file. Offset depend if "optional header" exist or not. Values are little endian. The offsets below are the offsets from the start of the PSISOIMG section. This data starts at absolute file offset 0x424 for single disk games that do not use a PSTITLEIMG section. For games that do have a PSTITLEIMG section, the absolute offset will be shifted by 0x400 bytes, i.e. to offset 0x824 and similar.

  • Offset 0x424 Config revision in bcd format, that need to be higher than DB from emu (11624 for 4.86). Safe to use 0x200000.
  • Offset 0x42C first config command
  • Offset 0x430 param for first command
  • This repeats 8 times as only 8 commands is supported.
  • Command 2 is unsupported.
  • Command 0 is unsupported because $ony made mistake in parser.
  • Command 0x17 is supported, but there is different official way to inject it, and it is libcrypt key so there is no point to do it this way.

This probably repeats for multidiscs, but for now let's figure out single discs first.
Function that search for configs look like this:

case 9:
  if ( *(&0x161FD80) ) 1570FA0(base) + AEDE0(offset in ISO.BIN.DAT or PSISOIMG? ) = 161FD80 in 4.86 ps1_netemu
  {
    cfg_rev = get_cfg_rev_from_PSIMG();
    db_rev = get_titledb_rev();
    decimal_16 = ret_32() >> 1;
    tty_print("ad hoc param: %x <%x>\n", cfg_rev, db_rev);
    if ( decimal_16 )
    {
      low_rev = cfg_rev < db_rev;           // Check is opposite to ps2_netemu, only config version higher than included db will pass. 
                                            // Which mean config need to be higher version than emu database. 
      for ( i = 0; i < decimal_16; i += 2 ) // up to 8 configs supported (8 commands + 8 values)
      {
        cfg_command = read_cfg_from_PSIMG(i);
        _cfg_value = read_cfg_from_PSIMG(i + 1);
        if ( cfg_command - 1 <= 0x3B )      // max cfg nr 0x3C
        {
          v245 = cfg_command >> 28;         // Most likely check for wrong endianess. Configs are LE and are byte reversed before we end up here. 
          if ( low_rev || v245 || cfg_command == 2 )// cfg 2 unsupported (replaced in later PSIMG rev with subchannel data), or old config rev, or v245.
          {
            tty_print("%x: %2d=0x%08x ***\n", v245 & 0xF, cfg_command, _cfg_value); // Ignore cfg
          }
          else
          {
            cfg_value = _cfg_value;
            tty_print("%x: %2d=0x%08x\n", 0LL, cfg_command, _cfg_value);
            WriteInternalConfigValue(cfg_command, cfg_value);
          }
        }
      }
    }
  }

Command IDs mapping[edit source]

The command IDs differs in between the PS1 emulator types and versions because are an indirect ID, it seems every command ID is mapped to a static ID in a separated table
The command ID's varies in between firmware versions, most probably because new functions was added every few versions, reorganized, etc... and this changes created a "displacement" of the old commands that causes them to increase his ID
At the time of writing this we dont know how to map that variable ID's to an static ID (that could be valid for all firmware versions), so by now in this list is needed to indicate the firmware version where the command ID was found
Coincidentially there are a few commands that preserves his ID in between emulator types and revisions, most probably is because are the first commands implemented and the variable ID given to them is a very low value, so always was kept at a low position in the commands list and was not disturbed by the modifications made to the other commands.

Command 0x00 (netemu 3.40 up to 4.88)[edit source]

  • Valid values found
    • 0 = ? (used by SCPS-18011 Um Jammer Lammy, and SLPS-01818 Langrisser IV & V Final Edition [Disc1of2])

In Um Jammer Lammy is used together with command 0x13, so it was a bit doubtful if it was a mistake. But Langrisser IV & V Final Edition [Disc1of2] uses it too and is the only command used by this disc, so it "should" do something. Um Jammer Lammy in netemu 3.40 was fixed only with command 0x0/0x0 (id/data)

  • Um Jammer Lammy (SCPS-18011) uses somewhat new external config revision (11580) in official classic's external config, but only uses command 0x13. Keep in mind the game was released Febuary 27, 2008, so package was possibly updated with new config at some point, and then in internal table, so maybe it once had a different config command in config table and 0x00 nullified it. Langrisser IV (SLPS-01818) has old config revision (5713) and uses command 0x03 set to 0x3E8, so just default. Maybe internal config for Langrisser IV is empty config just to also nullify external config? --Mrjaredbeta (talk) 03:32, 1 September 2023 (CEST)

Command 0x01 (netemu 3.40 up to 4.88)[edit source]

  • Valid values found
    • 1 = ? (used by SLPS_004.16, SLUS_004.33)
    • 2 = ? (used by SLPM_865.49, SLPM_865.50, SLPS_017.16)

Command 0x02 (netemu 3.40 up to 4.88)[edit source]

There are only 3 games using this command and are libcrypt protected games:, Crash Team Racing (SCES-02105), MediEvil (SCES-00311), and Vagrant Story (SLES-02754)
The command data contains an offset that points to an area where are stored a list of sectors (4 bytes each). When the emulator starts reading the list it doesnt knows how long is it so it reads groups of 4 bytes consecutivelly until it finds the value 00000000 that works as a terminator, the presence of this terminator at the end of the sector list is mandatory. Worth to note that list is more extensive than redump libcrypt one, but they match to some extend. Probably redump store only sectors really needed to run game correctly, while Sony decided to keep them all. Command is used only with LC1 games (Redump is wrong about medievil, is LC1).
The libcrypt protection is related with subchannel data stored by sectors, in redump.org this data is managed with the SBI files, displayed in a hexeditor view in each specific game page. If we convert the data from the official format to decimal and we compare it with the sector numbers in the redump.org SBI file it can be seen all the libcrypt protected sectors from the SBI file are included in the official format
The official format seems to include a lot more sectors which purpose is unknown
There seems to be way to supply that data/command from external file. Some research by "Fedor Wearing A Fedora" here and here

Crash Team Racing SCES-02105 (at absolute offset 0x1627E4 in ps1_netemu.self 4.83-4.88)

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

001627E0              00 00 06 A3 00 00 0E 21 00 00 17 79      ...£...!...y
001627F0  00 00 29 CB 00 00 2B 21 00 00 2E 22 00 00 31 31  ..)Ë..+!..."..11
00162800  00 00 37 19 00 00 37 1E 00 00 38 35 00 00 38 95  ..7...7...85..8•
00162810  00 00 38 9A 00 00 3A D0 00 00 3A D5 00 00 3B 1A  ..8š..:Ð..:Õ..;.
00162820  00 00 3B 1F 00 00 3B D0 00 00 3B D5 00 00 3C 12  ..;...;Ð..;Õ..<.
00162830  00 00 3C 17 00 00 3D 0C 00 00 3D 11 00 00 3F 27  ..<...=...=...?'
00162840  00 00 3F 2C 00 00 48 91 00 00 55 35 00 00 57 A1  ..?,..H‘..U5..W¡
00162850  00 00 58 38 00 00 59 38 00 00 5B 67 00 00 62 A9  ..X8..Y8..[g..b©
00162860  00 00 62 C5 00 00 78 4F 00 00 78 CA 00 00 7E 94  ..bÅ..xO..xÊ..~”
00162870  00 00 90 30 00 00 9A D5 00 00 9E 05 00 00 A4 3D  ...0..šÕ..ž...¤=
00162880  00 00 A4 42 00 00 A5 C0 00 00 A5 C5 00 00 A8 04  ..¤B..¥À..¥Å..¨.
00162890  00 00 A8 09 00 00 A8 A9 00 00 A8 AE 00 00 A9 5A  ..¨...¨©..¨®..©Z
001628A0  00 00 A9 5F 00 00 A9 90 00 00 A9 95 00 00 AA 72  ..©_..©...©•..ªr
001628B0  00 00 AA 77 00 00 AD 18 00 00 AD 1D 00 00 C5 5C  ..ªw........Å\
001628C0  00 00 EC 56 00 00 FB CA 00 01 04 52 00 01 04 7C  ..ìV..ûÊ...R...|
001628D0  00 01 08 F4 00 01 22 A3 00 01 26 79 00 01 2F 8B  ...ô.."£..&y../‹
001628E0  00 01 2F A6 00 01 2F CE 00 01 53 A8 00 01 79 10  ../¦../Î..S¨..y.
001628F0  00 01 86 0D 00 01 C3 96 00 01 CD 83 00 01 EA 08  ..†...Ö..̓..ê.
00162900  00 01 F6 92 00 02 02 57 00 02 1C 08 00 02 53 85  ..ö’...W......S…
00162910  00 02 91 5D 00 02 93 8F 00 02 93 A6 00 02 AB 93  ..‘]..“...“¦..«“
00162920  00 02 AB FB 00 02 BC 8C 00 02 CA 39 00 02 D2 17  ..«û..¼Œ..Ê9..Ò.
00162930  00 02 F1 35 00 03 16 06 00 03 4A 45 00 03 4C B6  ..ñ5......JE..L¶
00162940  00 03 68 26 00 03 6B 1D 00 03 92 B8 00 03 92 F2  ..h&..k...’¸..’ò
00162950  00 03 9B 5D 00 03 A7 76 00 03 BA 90 00 03 C5 1A  ..›]..§v..º...Å.
00162960  00 03 C5 41 00 03 C5 A3 00 03 FC F1 00 03 FD DA  ..ÅA..Å£..üñ..ýÚ
00162970  00 04 14 C2 00 04 1F 49 00 04 26 57 00 04 87 5F  ...Â...I..&W..‡_
00162980  00 04 8E 65 00 04 C0 DA 00 00 00 00              ..Že..ÀÚ....


000006A3
00000E21
00001779
000029CB
00002B21
00002E22
00003131
00003719 --- to decimal ---> 14105 (mentioned in the redump SBI file)
0000371E --- to decimal ---> 14110 (mentioned in the redump SBI file)
00003835
00003895 --- to decimal ---> 14485 (mentioned in the redump SBI file)
0000389A --- to decimal ---> 14490 (mentioned in the redump SBI file)
00003AD0 --- to decimal ---> 15056 (mentioned in the redump SBI file)
00003AD5 --- to decimal ---> 15061 (mentioned in the redump SBI file)
00003B1A --- to decimal ---> 15130 (mentioned in the redump SBI file)
00003B1F --- to decimal ---> 15135 (mentioned in the redump SBI file)
00003BD0 --- to decimal ---> 15312 (mentioned in the redump SBI file)
00003BD5 --- to decimal ---> 15317 (mentioned in the redump SBI file)
00003C12 --- to decimal ---> 15378 (mentioned in the redump SBI file)
00003C17 --- to decimal ---> 15383 (mentioned in the redump SBI file)
00003D0C --- to decimal ---> 15628 (mentioned in the redump SBI file)
00003D11 --- to decimal ---> 15633 (mentioned in the redump SBI file)
00003F27 --- to decimal ---> 16167 (mentioned in the redump SBI file)
00003F2C --- to decimal ---> 16172 (mentioned in the redump SBI file)
00004891
00005535
000057A1
00005838
00005938
00005B67
000062A9
000062C5
0000784F
000078CA
00007E94
00009030
00009AD5
00009E05
0000A43D --- to decimal ---> 42045 (mentioned in the redump SBI file)
0000A442 --- to decimal ---> 42050 (mentioned in the redump SBI file)
0000A5C0 --- to decimal ---> 42432 (mentioned in the redump SBI file)
0000A5C5 --- to decimal ---> 42437 (mentioned in the redump SBI file)
0000A804 --- to decimal ---> 43012 (mentioned in the redump SBI file)
0000A809 --- to decimal ---> 43017 (mentioned in the redump SBI file)
0000A8A9 --- to decimal ---> 43177 (mentioned in the redump SBI file)
0000A8AE --- to decimal ---> 43182 (mentioned in the redump SBI file)
0000A95A --- to decimal ---> 43354 (mentioned in the redump SBI file)
0000A95F --- to decimal ---> 43359 (mentioned in the redump SBI file)
0000A990 --- to decimal ---> 43408 (mentioned in the redump SBI file)
0000A995 --- to decimal ---> 43413 (mentioned in the redump SBI file)
0000AA72 --- to decimal ---> 43634 (mentioned in the redump SBI file)
0000AA77 --- to decimal ---> 43639 (mentioned in the redump SBI file)
0000AD18 --- to decimal ---> 44312 (mentioned in the redump SBI file)
0000AD1D --- to decimal ---> 44317 (mentioned in the redump SBI file)
0000C55C
0000EC56
0000FBCA
00010452
0001047C
000108F4
000122A3
00012679
00012F8B
00012FA6
00012FCE
000153A8
00017910
0001860D
0001C396
0001CD83
0001EA08
0001F692
00020257
00021C08
00025385
0002915D
0002938F
000293A6
0002AB93
0002ABFB
0002BC8C
0002CA39
0002D217
0002F135
00031606
00034A45
00034CB6
00036826
00036B1D
000392B8
000392F2
00039B5D
0003A776
0003BA90
0003C51A
0003C541
0003C5A3
0003FCF1
0003FDDA
000414C2
00041F49
00042657
0004875F
00048E65
0004C0DA
00000000

MediEvil SCES-00311 (at absolute offset 0x16298C in ps1_netemu.self 4.83-4.88)

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00162980                                      00 00 06 15              ....
00162990  00 00 2A 75 00 00 37 19 00 00 3A 33 00 00 3A D0  ..*u..7...:3..:Ð
001629A0  00 00 3B 1A 00 00 3B 8A 00 00 3C 12 00 00 3E 2F  ..;...;Š..<...>/
001629B0  00 00 3E E5 00 00 5D FC 00 00 71 8E 00 00 7C 17  ..>å..]ü..qŽ..|.
001629C0  00 00 80 35 00 00 A4 3D 00 00 A7 3D 00 00 A8 04  ..€5..¤=..§=..¨.
001629D0  00 00 A8 A9 00 00 A9 19 00 00 A9 90 00 00 AB BB  ..¨©..©...©...«»
001629E0  00 00 AC 7F 00 00 BA B2 00 00 BE E3 00 00 C0 AF  ..¬...º²..¾ã..À¯
001629F0  00 00 C1 93 00 00 C1 C4 00 00 C3 A1 00 00 DA DE  ..Á“..ÁÄ..á..ÚÞ
00162A00  00 00 E7 C1 00 00 FD 3A 00 01 1A 1C 00 01 1D 6A  ..çÁ..ý:.......j
00162A10  00 01 1D CF 00 01 29 EF 00 01 45 E2 00 01 6A 98  ...Ï..)ï..Eâ..j˜
00162A20  00 01 7F BB 00 01 B7 A0 00 01 BB 05 00 01 BF 12  ...»..· ..»...¿.
00162A30  00 01 EE 64 00 02 02 6E 00 02 0B CA 00 02 10 19  ..îd...n...Ê....
00162A40  00 02 37 24 00 02 45 EC 00 02 54 06 00 02 55 A1  ..7$..Eì..T...U¡
00162A50  00 02 5D 48 00 02 62 C8 00 02 81 12 00 02 9B 2D  ..]H..bÈ......›-
00162A60  00 02 BD 04 00 02 C2 AF 00 02 D9 2A 00 02 DC 90  ..½...¯..Ù*..Ü.
00162A70  00 02 E1 3A 00 02 F2 18 00 02 FC C8 00 03 51 CF  ..á:..ò...üÈ..QÏ
00162A80  00 03 52 AA 00 03 72 3F 00 00 00 00              ..Rª..r?....


00000615 --- to decimal ---> 1557
00002A75 --- to decimal ---> 10869
00003719 --- to decimal ---> 14105 (mentioned in the redump SBI file)
00003A33 --- to decimal ---> 14899 (mentioned in the redump SBI file)
00003AD0 --- to decimal ---> 15056 (mentioned in the redump SBI file)
00003B1A --- to decimal ---> 15130 (mentioned in the redump SBI file)
00003B8A --- to decimal ---> 15242 (mentioned in the redump SBI file)
00003C12 --- to decimal ---> 15378 (mentioned in the redump SBI file)
00003E2F --- to decimal ---> 15919 (mentioned in the redump SBI file)
00003EE5 --- to decimal ---> 16101 (mentioned in the redump SBI file)
00005DFC --- to decimal ---> 24060
0000718E --- to decimal ---> 29070
00007C17 --- to decimal ---> 31767
00008035 --- to decimal ---> 32821
0000A43D --- to decimal ---> 42045 (mentioned in the redump SBI file)
0000A73D --- to decimal ---> 42813 (mentioned in the redump SBI file)
0000A804 --- to decimal ---> 43012 (mentioned in the redump SBI file)
0000A8A9 --- to decimal ---> 43177 (mentioned in the redump SBI file)
0000A919 --- to decimal ---> 43289 (mentioned in the redump SBI file)
0000A990 --- to decimal ---> 43408 (mentioned in the redump SBI file)
0000ABBB --- to decimal ---> 43963 (mentioned in the redump SBI file)
0000AC7F --- to decimal ---> 44159 (mentioned in the redump SBI file)
0000BAB2 --- to decimal ---> 47794
0000BEE3 --- to decimal ---> 48867
0000C0AF --- to decimal ---> 49327
0000C193 --- to decimal ---> 49555
0000C1C4 --- to decimal ---> 49604
0000C3A1 --- to decimal ---> 50081
0000DADE --- to decimal ---> 56030
0000E7C1 --- to decimal ---> 59329
0000FD3A --- to decimal ---> 64826
00011A1C --- to decimal ---> 72220
00011D6A --- to decimal ---> 73066
00011DCF --- to decimal ---> 73167
000129EF --- to decimal ---> 76271
000145E2 --- to decimal ---> 83426
00016A98 --- to decimal ---> 92824
00017FBB --- to decimal ---> 98235
0001B7A0 --- to decimal ---> 112544
0001BB05 --- to decimal ---> 113413
0001BF12 --- to decimal ---> 114450
0001EE64 --- to decimal ---> 126564
0002026E --- to decimal ---> 131694
00020BCA --- to decimal ---> 134090
00021019 --- to decimal ---> 135193
00023724 --- to decimal ---> 145188
000245EC --- to decimal ---> 148972
00025406 --- to decimal ---> 152582
000255A1 --- to decimal ---> 152993
00025D48 --- to decimal ---> 154952
000262C8 --- to decimal ---> 156360
00028112 --- to decimal ---> 164114
00029B2D --- to decimal ---> 170797
0002BD04 --- to decimal ---> 179460
0002C2AF --- to decimal ---> 180911
0002D92A --- to decimal ---> 186666
0002DC90 --- to decimal ---> 187536
0002E13A --- to decimal ---> 188730
0002F218 --- to decimal ---> 193048
0002FCC8 --- to decimal ---> 195784
000351CF --- to decimal ---> 217551
000352AA --- to decimal ---> 217770
0003723F --- to decimal ---> 225855
00000000

Vagrant Story SLES-02754 (at absolute offset 0x162A8C in ps1_netemu.self 4.83-4.88)

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00162A80                                      00 00 14 B5              ...µ
00162A90  00 00 38 F3 00 00 38 F8 00 00 39 39 00 00 39 3E  ..8ó..8ø..99..9>
00162AA0  00 00 3A 33 00 00 3A 38 00 00 3A D0 00 00 3A D5  ..:3..:8..:Ð..:Õ
00162AB0  00 00 3B 1A 00 00 3B 1F 00 00 3B 8A 00 00 3B 8F  ..;...;...;Š..;.
00162AC0  00 00 3B D0 00 00 3B D5 00 00 3F 27 00 00 3F 2C  ..;Ð..;Õ..?'..?,
00162AD0  00 00 3F AA 00 00 90 84 00 00 A6 54 00 00 A6 59  ..?ª...„..¦T..¦Y
00162AE0  00 00 A6 AF 00 00 A6 B4 00 00 A7 3D 00 00 A7 42  ..¦¯..¦´..§=..§B
00162AF0  00 00 A8 04 00 00 A8 09 00 00 A8 A9 00 00 A8 AE  ..¨...¨...¨©..¨®
00162B00  00 00 A9 19 00 00 A9 1E 00 00 A9 5A 00 00 A9 5F  ..©...©...©Z..©_
00162B10  00 00 AD 18 00 00 AD 1D 00 00 BD D6 00 00 BE B1  ........½Ö..¾±
00162B20  00 00 BF AC 00 00 C9 BC 00 00 E5 11 00 01 07 06  ..¿¬..ɼ..å.....
00162B30  00 01 0C 80 00 01 18 E0 00 01 1E 36 00 01 41 46  ...€...à...6..AF
00162B40  00 01 55 E7 00 01 71 BF 00 01 D2 F5 00 01 D8 B5  ..Uç..q¿..Òõ..ص
00162B50  00 01 E4 5A 00 01 E6 29 00 01 F1 FD 00 01 FE B9  ..äZ..æ)..ñý..þ¹
00162B60  00 02 40 5D 00 02 59 9A 00 02 59 ED 00 02 5A 2F  ...]..Yš..Yí..Z/
00162B70  00 02 8B F6 00 02 8C A0 00 02 8C C2 00 02 A0 62  ..‹ö..Œ ..ŒÂ.. b
00162B80  00 02 DD 59 00 02 FD F1 00 03 0B FC 00 03 0C 26  ..ÝY..ýñ...ü...&
00162B90  00 03 9A B1 00 03 A9 E1 00 03 BC 7F 00 03 E1 B9  ..š±..©á..¼...á¹
00162BA0  00 03 E2 08 00 03 F8 8F 00 04 01 72 00 04 05 91  ..â...ø....r...‘
00162BB0  00 04 13 8F 00 04 3E D8 00 04 40 DC 00 04 48 94  ......>Ø...Ü..H”
00162BC0  00 04 67 FB 00 04 78 2C 00 04 8A CE 00 04 B4 A0  ..gû..x,..ŠÎ..´ 
00162BD0  00 04 B9 60 00 04 BE 93 00 04 C3 0C 00 04 CB 0E  ..¹`..¾“..Ã...Ë.
00162BE0  00 04 CB C9 00 04 D5 C8 00 00 00 00              ..ËÉ..ÕÈ....


000014B5
000038F3 --- to decimal ---> 14579 (mentioned in the redump SBI file)
000038F8 --- to decimal ---> 14584 (mentioned in the redump SBI file)
00003939 --- to decimal ---> 14649 (mentioned in the redump SBI file)
0000393E --- to decimal ---> 14654 (mentioned in the redump SBI file)
00003A33 --- to decimal ---> 14899 (mentioned in the redump SBI file)
00003A38 --- to decimal ---> 14904 (mentioned in the redump SBI file)
00003AD0 --- to decimal ---> 15056 (mentioned in the redump SBI file)
00003AD5 --- to decimal ---> 15061 (mentioned in the redump SBI file)
00003B1A --- to decimal ---> 15130 (mentioned in the redump SBI file)
00003B1F --- to decimal ---> 15135 (mentioned in the redump SBI file)
00003B8A --- to decimal ---> 15242 (mentioned in the redump SBI file)
00003B8F --- to decimal ---> 15247 (mentioned in the redump SBI file)
00003BD0 --- to decimal ---> 15312 (mentioned in the redump SBI file)
00003BD5 --- to decimal ---> 15317 (mentioned in the redump SBI file)
00003F27 --- to decimal ---> 16167 (mentioned in the redump SBI file)
00003F2C --- to decimal ---> 16172 (mentioned in the redump SBI file)
00003FAA
00009084
0000A654 --- to decimal ---> 42580 (mentioned in the redump SBI file)
0000A659 --- to decimal ---> 42585 (mentioned in the redump SBI file)
0000A6AF --- to decimal ---> 42671 (mentioned in the redump SBI file)
0000A6B4 --- to decimal ---> 42676 (mentioned in the redump SBI file)
0000A73D --- to decimal ---> 42813 (mentioned in the redump SBI file)
0000A742 --- to decimal ---> 42818 (mentioned in the redump SBI file)
0000A804 --- to decimal ---> 43012 (mentioned in the redump SBI file)
0000A809 --- to decimal ---> 43017 (mentioned in the redump SBI file)
0000A8A9 --- to decimal ---> 43177 (mentioned in the redump SBI file)
0000A8AE --- to decimal ---> 43182 (mentioned in the redump SBI file)
0000A919 --- to decimal ---> 43289 (mentioned in the redump SBI file)
0000A91E --- to decimal ---> 43294 (mentioned in the redump SBI file)
0000A95A --- to decimal ---> 43354 (mentioned in the redump SBI file)
0000A95F --- to decimal ---> 43359 (mentioned in the redump SBI file)
0000AD18 --- to decimal ---> 44312 (mentioned in the redump SBI file)
0000AD1D --- to decimal ---> 44317 (mentioned in the redump SBI file)
0000BDD6
0000BEB1
0000BFAC
0000C9BC
0000E511
00010706
00010C80
000118E0
00011E36
00014146
000155E7
000171BF
0001D2F5
0001D8B5
0001E45A
0001E629
0001F1FD
0001FEB9
0002405D
0002599A
000259ED
00025A2F
00028BF6
00028CA0
00028CC2
0002A062
0002DD59
0002FDF1
00030BFC
00030C26
00039AB1
0003A9E1
0003BC7F
0003E1B9
0003E208
0003F88F
00040172
00040591
0004138F
00043ED8
000440DC
00044894
000467FB
0004782C
00048ACE
0004B4A0
0004B960
0004BE93
0004C30C
0004CB0E
0004CBC9
0004D5C8
00000000

Command 0x03 (netemu 3.40 up to 4.88)[edit source]

  • Valid values found: 0x32 (50d), 0xC8 (200d), 0x12C (300d), 0x1F4 (500d), 0x258 (600d), 0x2BC (700d), 0x320 (800d), 0x384 (900d), 0x44C (1100d), 0x4B0 (1200d), 0x578 (1400d), 0x5DC (1500d), 0x708 (1800d)
  • Default value: 0x3E8
  • _xcdrom_thread related.

Value is integer that is later converted to double float using fcfid, and truncated to single precision by frsp.
I'm not familiar with CELL floating point unit quirks, but value could be just single precision float from the start, why complicate that so much?

  • Possible disc read speed delay or adjustment. Larger value results in slower loading times. --Mrjaredbeta (talk) 03:21, 1 September 2023 (CEST)

Custom Usage:

  • Param 0x384 (900d) fixes Vampire Hunter D (SLUS-01138) hanging issues.
  • Param 0x1F4 (500d) fixes Medievil 2 audio and hanging issues.

Command 0x04 (netemu 3.40 up to 4.88)[edit source]

  • Valid values found: 0x4, 0x7, 0x14 (20d), 0x46 (70d), 0x64 (100d), 0xC8 (200d), 0xFFFFFF38 (-200d)
  • Default value: 0
  • _xcdrom_thread related.

Possible seek delay/adjustment.
Custom Usage:

  • Param 0x64 and above fixes Transformers: Beast Wars Transmetals (SLUS-01160). 0x14 also gets past initial main menu screen, but hangs when loading into a stage. Param 0xC8 is probably safest.

Command 0x05 (netemu 3.40 up to 4.88)[edit source]

The game configs inside ps1_netemu.self 3.40 doesnt seems to use this command, so is not posible to see if it matches in between 3.40 and 3.55/4.88 but we can assume is the same ID through netemu 3.40 up to 4.88 because higher command IDs (such 0x08) maintained his ID since 3.40

  • Default value: 0
  • _xcdrom_thread related.

Command 0x06 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0
  • _xcdrom_thread related.

Custom Usage:

  • Param 0x01 fixes Shrek Treasure Hunt (SLUS-01463) minigame loading screen hangs.
  • Param 0x01 fixes Fear Effect (SLUS-00920) hang when pressing START at menu screen.

Command 0x07 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0
  • _xcdrom_thread related.

Custom Usage:

  • Param 0x01 fixes Fear Effect (SLUS-00920) other issues in main menu, such as graphical corruption in options screens, and returning to options screen after viewing credits.

Command 0x08 (netemu 3.40 up to 4.88)[edit source]

  • Valid values found: 0xC8 (200d), 0x12C (300d), 0x1F4 (500d), 0x2BC (700d), 0x320 (800d). It seems to be an small selection of the same values used by command 0x03
  • Default value: 0x3E8
  • _xcdrom_thread related.

Command 0x0B (netemu 4.83 up to 4.88)[edit source]

  • Or command 0x09 (netemu 3.40)
  • Valid values found: 0x27104E95 (in netemu 3.40 and 4.88). It seems to be composed by 2 values of 2 bytes size: 0x2710(hex)=10000(dec). And 0x4E95(hex)=20117(dec)

The command data seems to be a bit special, is a value higher than any other command, but is the same value along different ps1_netemu.self revisions, so is not an offset. There is only one game using this command: SLPS_030.12

Command 0x0E (netemu 4.83 up to 4.88)[edit source]

  • Or command 0x0C (netemu 3.40)
  • Default value: 0x1F4
  • _xcdrom_thread related.

Command 0x0F (netemu 4.83 up to 4.88)[edit source]

  • Or command 0x0D (netemu 3.40)
  • Default value: 0xFA
  • _xcdrom_thread related.

Command 0x10 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0xFA
  • _xcdrom_thread related.

Command 0x11 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0x7D
  • _xcdrom_thread related.

Command 0x12 (netemu 4.83 up to 4.88)[edit source]

  • Or command 0x10 (netemu 3.40)

Command value are flags/settings to alter cdrom behavior.

  • 0x800 = Different code path for MotorOn/Pause/SetSession cdrom commands. // Need more work, flag affect more than that.

Command 0x13 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0
  • MDEC related?

Custom Usage:

  • Param 0x01 fixes Roland Garros French Open 2001 (SLES-03449) hang when loading into a match.
  • Param 0x01 fixes Fear Effect (SLUS-00920) hang when pressing START at menu screen (sometimes).

Command 0x14 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 4

Command 0x15 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 4

Command 0x16 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0
  • DMA timing related.

Custom Usage:

  • Param 0x32 is enough to fix International Superstar Soccer (SLES-02550) black screen after PlayStation logo.
  • Param 0x08 is enough to fix Vampire Hunter D’s main menu flashing.

Command 0x17 (netemu 4.83 up to 4.88)[edit source]

  • Or command 0x0B (netemu 1.70)
  • Or command 0x0A (netemu 2.10)
  • Or command 0x15 (netemu 3.40 up to 3.55)
  • Or command 0x0B (emu 1.70 up to 4.88)
  • Or command 0x07 (newemu 2.10)
  • Or command 0x0A (newemu 3.40 up to 4.88)

This is the libcrypt magic word. This command is used only in 3 games (SCES_016.95, SLES_019.07, SLES_013.01). see: PS1 Custom Patches In ps1_netemu there is possibility to setup that command from one of ps1 classic files (PSISOIMG0000 / PSTITLEIMG000000 related).

When value is not zero is returned by emulator when game try to read cop0r3 (BPC) register. When value is 0 (default), emulator return real BPC content.

  • It seems there is a problem with LC games using the third scheme mentioned here. After reading the data contents of subchannel Q, the CRC-16 value is not read at all, but calculated on its own by the driver instead. It does break LC games using this particular scheme (web-found confirmed issues with Ape Escape and Final Fantasy VIII). All three games that are meant to work with this command does use these LC sectors. I think this command was meant to resolve this issue, just a guess.--Agrippa (talk) 20:06, 12 June 2022 (UTC)

Command 0x18 (netemu 4.83 up to 4.88)[edit source]

Substrat cycles from mdec_block_copy_out_callback delta. When mdec is decoding blocks, copy out happen on every completed 6th block. This is hardcoded to take 0xB00 (2816) cycles in ps1_netemu. By using this config we can make this value less than default, which in turn "overclock" mdec decoding as every 6xblock will be decoded faster. Duckstation by default use value 0xA80 (2688 (448 x 6 blocks)). So to make config that will replicate this behavior we need set config value to 0x80 (0xB00 - 0x80 = 0xA80).

  • Default value: 0
  • Valid values range: 0x000 - 0xB00
  • Higher values are ignored and 0 is set (just like when you use 0xB00 value), making MDEC instant.

Command 0x19 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 4
  • Set in same place where bios image is loaded, and region check/patch is performed.

Command 0x1A (netemu 4.83 up to 4.88)[edit source]

Set PS1 PS1 Scratchpad address 0x1F800000 - 0x1F8003FF to given 4 bytes value. Only one game use this, game seems to expect memory initialized to 0xFFFFFFFF, while never do this.

  • Default value: 0

Command 0x1B (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0x3E8
Multiplier for GTE commands cycles. Value from config is multiplied by 256, and then divided by 1000.
For example Battle Arena Toshinden use 0xC8 which result in 0x33(51) as value that is later used.
Default value 0x3E8 end as 0x100(256).

Command 0x1C (netemu 4.83 up to 4.88)[edit source]

  • Or command 0x18 (netemu 3.40)
  • Or command 0x1A (netemu 3.55 ?)
  • Or command 0x02 (netemu 1.70) - possibly different command

Param flags:

  • 1 = unk.
  • 2 = Set Vibration to Off (menu to set it to On is still accessible, but command seems to also skip initializing of vibration internal struct/settings).

Command 0x1D (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0
  • Correct values 0 / 1 / 2

Config seems to setup default gamepads layout for multitap.

  • 0 = <0, 2, 4, 6, 1, 3, 5, 7>
  • 1 = <0, 2, 3, 4, 1, 5, 6, 7>
  • 2 = <0, 1, 2, 3, 4, 5, 6, 7>

Sync order of controllers is always the same regardless of parameter set (1/1-A, 2/2-A, 1-B, 2-B, 1-C, 2-C, 1-D). Therefore, change is only reflected internally in emulated game. For example, Crash Bash needs parameter 2 for controllers to be set properly in game, but order in which controllers physically connect is not changed.

Command 0x1E (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0x7D0
  • xPadThread related.

Command 0x20 (netemu 4.83 up to 4.88)[edit source]

GPU multi command (bifield)

  • Default value: 0
  • 0x08 = Always set Vertical Interlace bit in GPUSTAT to 0 on GP1 (08h) command.
  • 0x40 = Is not exactly known what happen under the hood, but this command allow to play 50Hz titles in 60Hz with correct speed.

Command 0x21 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0x3E8
  • PS1 GPU related.

Command 0x22 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0x3E8
  • PS1 GPU related.

Seems to fix slowdown in Rapid Racer (SCPS-10060) with value 0x320.

Command 0x23 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0x3E8
  • PS1 GPU related.

Command 0x24 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 7
  • PS1 GPU related.

Command 0x25 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0
  • PS1 GPU related.

Command 0x2A (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0
  • PS1 GPU related.

Command 0x2B (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0
  • PS1 GPU related.

Command 0x2C (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0
  • PS1 GPU related.

Command 0x2D (netemu 4.83 up to 4.88)[edit source]

  • Default value: 0
  • PS1 GPU related.

Command 0x31 (netemu 4.83 up to 4.88)[edit source]

GPU multi command (bitfield)

  • 0x02 = Enable Vertical Interlace bit in GP1 (08h) command in SPE writes (in renderer only). Emulator by default use hack where VI bit is ALWAYS disabled in spe.

Note from nocash docs about Vertical Interlace: "Interlace must be enabled to see all lines in 480-lines mode (interlace is causing ugly flickering, so a non-interlaced low resolution image is typically having better quality than a high resolution interlaced image, a pretty bad example are the intro screens shown by the BIOS)."
This suggest that games which eventually need 0x31, 0x02 will be ones that send GP1 commands with active bit 2(Vertical Resolution 1=480) and 5(Vertical Interlace) at the same time. Otherwise image will be cropped, or badly interlaced. FF8 use this on "Published by..." screen, you can notice weird interlacing when subtitles fade-in without command.

Command 0x32 (netemu 4.83 up to 4.88)[edit source]

Pad vibration related, seems to be big motor strength used in cellPadSetActDirect if value is less than one of function arguments. Default value set in xPadThread Init is 0x40(64).

Command 0x33 (netemu 4.83 up to 4.88)[edit source]

Value is integer that is later converted to double float using fcfid, and truncated to single precision by frsp.
Pad vibration related, seems to be used to calculate big motor strength used later in cellPadSetActDirect, if other conditions are met. Default value set in xPadThread Init is 0x4B0(1200).

Command 0x36 (netemu 4.83 up to 4.88)[edit source]

  • Maximum value 7
  • PSX HW regs access related
  • Valid values found:
    • 1 = ?
    • 2 = ?
    • 4 = ?

Multiple instances accepted, and not overwrite itself.

Command 0x37 (netemu 4.83 up to 4.88)[edit source]

  • Default value: 1
  • Valid values found:
    • 2 = ?
    • 4 = ?

Something related to I_STAT (PSX Interrupt status register).

Command 0x38 (netemu 4.83 up to 4.88)[edit source]

  • Or command 0x2C in ps1_netemu.self 3.40
  • Or command 0x2E in ps1_netemu.self 3.55 ?
  • Valid values found:
    • 0/1/2/3
if (cfg == 0) 
    stay_netemu

if (boot_not_from_disc_drive)
    if (cfg & 2)
        boot_newemu

if (boot_from_disc_drive)
    if (cfg & 1)
        boot_ps1emu
    else
        stay_netemu

// Boot is considered to be from disc if argv with game path is empty. Which make 0x38 with param 0x01 inaccessible, because there is no way to start disc game with netemu in official way (excluding games that ps1_emu launch with 0x15 cmd to ps1_netemu).

Command 0x3B (netemu 4.83 up to 4.88)[edit source]

PS1 SPU DMA related config. Seems to change some cycles calculation.

  • Default value: 0
  • Valid values: 0/1

Ps1_emu Commands Info[edit source]

Command 0x15 (ps1emu 4.83 up to 4.88)[edit source]

  • Valid values found:
    • 3 (launch game using ps1_netemu)
    • Different values are ignored

Ps1_newemu Commands Info[edit source]

Command 0x18 (ps1newemu 4.83 up to 4.88)[edit source]

Supposed to launch game using different emulator, but all paths do nothing.

  • Valid values found:
    • 3 (Do nothing, but with print! 1)
    • Different values do nothing

Known bugs[edit source]

ps1_netemu.elf[edit source]

Cdr int reads with nonstandard index[edit source]

Emulator ignore interrupt flag register and interrupt enable register reads if cdrom index is 2, or 3. Reads like that are undocummented behavior, but confirmed to be successful on real hardware. Also Nocash docs, and Duckstation source handle that correctly, and i remember there are games which used that.

0xD81F0 read_0x1F801803:
0xD81F0   lwz       r0, (.1F801800 - 0x2E8480)(r8)
0xD81F4   clrlwi    r0, r0, 30        # cdrom.index & 3
0xD81F8   cmpwi     cr7, r0, 0        # cdrom.index = 0
0xD81FC   beq       cr7, read_interrupt_enable_register
0xD8200   cmpwi     cr7, r0, 1        # cdrom.index = 1
0xD8204   beq       cr7, read_interrupt_flag_register
0xD8208   li        r3, 0             # return 0 if index was 2 or 3
0xD820C   lwz       r7, off_1BC0D4
0xD8210   clrldi    r3, r3, 32
0xD8214   dcbt      0, r7
0xD8218   blr

This can be fixed by simple patch from

0xD81F4   clrlwi    r0, r0, 30  #hex 54 00 07 BE
0xD8264   clrlwi    r0, r0, 30  #hex 54 00 07 BE

to

0xD81F4   clrlwi    r0, r0, 31  #hex 54 00 07 FE
0xD8264   clrlwi    r0, r0, 31  #hex 54 00 07 FE

This change cdrom.index & 3, into cdrom.index & 1. This way index 2, and 3 will be respected as 0, and 1. Sadly there is no easy hex pattern, so patch need to be done manually. Memory offsets for 4.86.

Bad encoding of malformed conditional branch 0[edit source]

Emulator don't ignore few bits, and expect they are 0. While real hardware seems to don't care about them.

  31..26 |25..21|20..16|15..11|10..6 |  5..0  |
   6bit  | 5bit | 5bit | 5bit | 5bit |  6bit  |
  -------+------+------+------+------+--------+------------
  000001 | rs   | 0XXX0| <--immediate16bit--> | bltz
  000001 | rs   | 0XXX1| <--immediate16bit--> | bgez
  000001 | rs   | 1XXX0| <--immediate16bit--> | bltzal
  000001 | rs   | 1XXX1| <--immediate16bit--> | bgezal

Problem start when bits 17,18,19 are not zero. Emulator don't clear those bits, and explicitly check only for 0x0,0x1,0x10,0x11.

r24 hold 20..16 bits extracted from opcode.

0x107958 bcondz_107958:                          # CODE XREF: r3000_opcode_table+12C↑j
0x107958                 cmpwi     cr7, r24, 1   # jumptable 001067D4 case BcondZ
0x10795C                 beq       cr7, loc_107E98
0x107960                 cmplwi    cr7, r24, 1
0x107964                 blt       cr7, loc_107E78
0x107968                 cmpwi     cr7, r24, 0x10
0x10796C                 beq       cr7, loc_1082A4
0x107970                 cmpwi     cr7, r24, 0x11
0x107974                 beq       cr7, loc_10821C

Correct solution here will be patch to AND r24 with 0x11 first, to clear meaningless bits before comparison. This is reason why emulator fail this "Branch Advance" CPU test: https://emulation.gametechwiki.com/index.php/PS1_Tests#CPU . Possibly standard "Branch" test is failed for the same reason.

GTE commands[edit source]

List of GTE commands is available at 0x001B345C in ps1_netemu 4.86. List include following data {CommandFunctionOPD, Cycles}. Emulator handle only commands listed below (CMD, addr in emu).

.GTE_RTPS	0xC4500
.GTE_MVMVA	0xC4C00
.GTE_SQR_sf	0xC5168
.GTE_NCLIP	0xC527C
.GTE_AVSZ3	0xC5338
.GTE_AVSZ4	0xC5420
.GTE_OP_sf	0xC5518
.GTE_GPF_sf	0xC5678
.GTE_GPL_sf	0xC58C8
.GTE_RTPT	0xC6288
.GTE_NCT	0xC7710
.GTE_NCS	0xC8AD8
.GTE_CC		0xC91E8
.GTE_NCCT	0xC9748
.GTE_NCCS	0xCADF8
.GTE_DCPL	0xCB5F8
.GTE_DPCS	0xCBAD8
.GTE_CDP	0xCBF80
.GTE_NCDT	0xCC760
.GTE_NCDS	0xCE5F8
.GTE_INTPL	0xCF078
.GTE_DPCT	0xCF540

CD Drive Commands[edit source]

List of CD commands is available at 001B365C in ps1_netemu 4.86. List include following data {Respond INT count (minus INT3), CMD_nr, Function OPD}. Emulator handle only commands listed below (CMD, addr in emu).

.cdr_cmd_Sync		0xD8290
.cdr_cmd_Reset		0xD8368
.cdr_cmd_Test		0xD8478
.cdr_cmd_Getparam	0xD8798
.cdr_cmd_Setmode	0xD8918
.cdr_cmd_Init		0xDBC48
.cdr_cmd_MotorOn	0xDD0C0
.cdr_cmd_SeekP		0xDD3D0
.cdr_cmd_Play		0xDD67C
.cdr_cmd_ReadS		0xDD8E8
.cdr_cmd_Backward	0xDDBD0
.cdr_cmd_Pause		0xDDF58
.cdr_cmd_GetTD		0xDE1F8
.cdr_cmd_Getstat	0xDE598
.cdr_cmd_GetlocP	0xDE728
.cdr_cmd_ReadN		0xDEDD0
.cdr_cmd_SetSession	0xDF130
.cdr_cmd_Mute		0xDF970
.cdr_cmd_SeekL		0xDFBAC
.cdr_cmd_Setloc		0xDFE58
.cdr_cmd_Demute		0xE03E0
.cdr_cmd_Setfilter	0xE0618
.cdr_cmd_Forward	0xE0878
.cdr_cmd_GetlocL	0xE0B98
.cdr_cmd_Stop		0xE0FF0
.cdr_cmd_GetTN		0xE1298
.cdr_cmd_GetID		0xE1544
.cdr_cmd_ReadTOC	0xE1C58

Commands 0x17, 0x18, 0x1D are handled as cmd_Sync. Commands above 0x1E seems to be not supported.