Editing PS2 Emulation/PS2 Config Commands
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 73: | Line 73: | ||
|- | |- | ||
|0x0C|| Piglet's Big Game | |0x0C|| Piglet's Big Game | ||
|- | |- | ||
|0x0D|| | |0x0D|| usleep(100) | ||
|- | |- | ||
|0x0E|| Used 3 times in Need for Speed - Carbon [Collector's Edition] US. | |0x0E|| Used 3 times in Need for Speed - Carbon [Collector's Edition] US. | ||
Line 228: | Line 226: | ||
|0x34|| not filled | |0x34|| not filled | ||
|- | |- | ||
|0x35|| | |0x35|| Ninkyouden: Toseinin Ichidaiki | ||
|- | |- | ||
|0x36|| | |0x36|| | ||
Line 621: | Line 616: | ||
{{Boxcomm|id=0x20|name=Unknown|data=1x uint64_t}} | {{Boxcomm|id=0x20|name=Unknown|data=1x uint64_t}} | ||
Default 0x3C | Default 0x3C | ||
Config value is used as multiplier for value | Config value is used as multiplier for some value, and result is used in vsync related runtimes. | ||
Is worth to note that 0x3C is default multiplier even for PAL titles, so is not stricly related to framerate, | |||
but to vsync counters (where 0x3C is still wrong anyway..). Result of multiply is also compared at some point to vsync delay value. | |||
*Valid values found: 10d, 60d, 100d, 120d, 200d, 240d | *Valid values found: 10d, 60d, 100d, 120d, 200d, 240d | ||
Line 683: | Line 667: | ||
{{Boxcomm|id=0x28|name=Unknown|data=1x uint32_t}} | {{Boxcomm|id=0x28|name=Unknown|data=1x uint32_t}} | ||
<=3 | |||
*Valid values found: 0, 1, 2, 3 | |||
{{Boxcomm|id=0x29|name=Unknown|data=2x uint32_t}} | {{Boxcomm|id=0x29|name=Unknown|data=2x uint32_t}} | ||
Seek time modifier. | Seek time modifier. Exact values meaning is unknown for now, they are used as multiplier. First param affect fast seek time, second param affect full seek time. Default value is 0x1F40, 0xBB80 (8000, 48000). Config affect only CDVD N Command Seek, read command that "SeekToSector" is not affected. | ||
First param affect fast seek time, second param affect full seek time. | |||
Default value is 0x1F40, 0xBB80 (8000, 48000). Config affect only CDVD N Command Seek, read command that "SeekToSector" is not affected. | |||
{{Boxcomm|id=0x2A|name=Unknown|data=N/A}} | {{Boxcomm|id=0x2A|name=Unknown|data=N/A}} | ||
Line 712: | Line 691: | ||
{{Boxcomm|id=0x2E|name=Unknown|data=1x uint32_t}} | {{Boxcomm|id=0x2E|name=Unknown|data=1x uint32_t}} | ||
*Valid values found: 0x172 | *Valid values found: 0x172 | ||
Line 921: | Line 899: | ||
=PS2 Gxemu Commands= | =PS2 Gxemu Commands= | ||
PS2 GX Emu commands are Big Endian unless noted. Every command size is 0x18, and unused data need to be filled with zeros. Commands which point to emulator memory have additional data, but command itself is still 0x18 in size. Data fields are just example values and can be changed to different value when needed. | PS2 GX Emu commands are Big Endian unless noted. Every command size is 0x18, and unused data need to be filled with zeros. Commands which point to emulator memory have additional data, but command itself is still 0x18 in size. Data fields are just example values and can be changed to different value when needed. | ||
{{BoxcommGX|id=0x01|net_id=0x02|data=1x int32|}} | {{BoxcommGX|id=0x01|net_id=0x02|data=1x int32|}} | ||
Used in function that handle D6 CHCR writes (SIF1), seems to be some kind of timing command for EE --> IOP DMA. | Used in function that handle D6 CHCR writes (SIF1), seems to be some kind of timing command for EE --> IOP DMA. | ||
Line 1,364: | Line 1,279: | ||
{{BoxcommGX|id=0x24|net_id=0x28|data=1x int32|}} | {{BoxcommGX|id=0x24|net_id=0x28|data=1x int32|}} | ||
CDVD | Unknown, CDVD related. Only accept values 0/1/2/3 | ||
Format: | Format: | ||
32 bit ID | 32 bit align | 32 bit data | 32 bit align | 32 bit align | 32 bit align | 32 bit ID | 32 bit align | 32 bit data | 32 bit align | 32 bit align | 32 bit align | ||
Line 1,370: | Line 1,285: | ||
{{BoxcommGX|id=0x25|net_id=0x29|data=2x int32|}} | {{BoxcommGX|id=0x25|net_id=0x29|data=2x int32|}} | ||
Seek time modifier. | Seek time modifier. Exact values meaning is unknown for now, they are used as multiplier. First param affect fast seek time, second param affect full seek time. Default value is 0x1F40, 0xBB80 (8000, 48000). Config affect only CDVD N Command Seek, read command that "SeekToSector" is not affected. | ||
First param affect fast seek time, second param affect full seek time. | |||
Default value is 0x1F40, 0xBB80 (8000, 48000). Config affect only CDVD N Command Seek, read command that "SeekToSector" is not affected. | |||
Format: | Format: | ||
32 bit ID | 32 bit align | 32 bit data | 32 bit data | 32 bit align | 32 bit align | 32 bit ID | 32 bit align | 32 bit data | 32 bit data | 32 bit align | 32 bit align | ||
Line 1,385: | Line 1,295: | ||
32 bit ID | 32 bit align | 32 bit align | 32 bit align | 32 bit align | 32 bit align | 32 bit ID | 32 bit align | 32 bit align | 32 bit align | 32 bit align | 32 bit align | ||
0x00000026 | 0x00000000 | 0x00000000 | 0x00000000 | 0x00000000 | 0x00000000 | 0x00000026 | 0x00000000 | 0x00000000 | 0x00000000 | 0x00000000 | 0x00000000 | ||