Editing PSP Emulation

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

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

Latest revision Your text
Line 280: Line 280:
| || VERSION = 0x%x || VERSION = 0xFFFFFFFF ||  
| || VERSION = 0x%x || VERSION = 0xFFFFFFFF ||  
|-
|-
| || BOOT_MODE = %llx ||
| || BOOT_MODE = %llx || ||
  100010000 = Default for Minis  
  100010000 = Minis  
  200010000 = Default for Remaster  
  200010000 = Remaster  
|| 64 bit bitfield (Big Endian)
 
bit 30 = is remaster
bit 31 = unk
bit 47 = unk
bit 63 = A lot of settings changes when this bit is active.
          Disable ICache Invalidation syscalls,
          Enable "LINCOLN" configs,
          Disable sceFont, scePsmfP, and sceHeap loading
                            (there are other conditions too).
          Many more...
|-
|-
| || REMASTER_VERSION = 0x%x || ||
| || REMASTER_VERSION = 0x%x || ||
Line 308: Line 297:
|-
|-
| || TRANS_CACHE_SIZE = %llx || TRANS_CACHE_SIZE = 1000000 ||
| || TRANS_CACHE_SIZE = %llx || TRANS_CACHE_SIZE = 1000000 ||
  2000000 = (Default for Minis)
  2000000 = (Default)
  1000000 = (Default for Remaster)
  1000000 =  
|-
|-
| || HOSTFS_PATH = %lld || ||  
| || HOSTFS_PATH = %lld || ||  
Line 337: Line 326:
  0 =  
  0 =  
  1 = small picture
  1 = small picture
  2 = (Default for Minis)
  2 = (Default)
  3 =
  3 =
  4 = (Default for Remaster)
  4 =
  ...
  ...
|-
|-
| AW. {||  || || indicates LINEAR_ADRS to CLOAD_MODE optional setting following
| AW. {||  || || indicates LINEAR_ADRS to CLOAD_MODE optional setting following
|-
|-
| || LINEAR_ADRS = %llx || AW.LINEAR_ADRS = 1 || Bool
| || LINEAR_ADRS = %llx || AW.LINEAR_ADRS = 40 ||
0 = (Default)
  0 = (Default)
  1 =  
  40 =  
Internal configs use value 40, this value have the same effect as 1 in text config.
|-
|-
| || SINGLE_BUF = %llx || AW.SINGLE_BUF = 1 ||
| || SINGLE_BUF = %llx || AW.SINGLE_BUF = 880 ||
0 = (Default)
  0 = (Default)
1 =  
  80 =  
  2 =
  880 =
3 =
Internal configs use values like 80 or 880.
Those are invalid for text config.
To get similar result as internal 80 use value 1.
To get similar result as internal 880 use value 3.
|-
|-
| || DISABLE_FB_TEX = %llx || AW.DISABLE_FB_TEX = 1 || Bool
| || DISABLE_FB_TEX = %llx || AW.DISABLE_FB_TEX = 100 ||  
0 = "FB_TEX" Enabled (Default)
  0 = (Default)
  1 = "FB_TEX" Disabled
  100 =  
Internal configs use value 100, this value have the same effect as 1 in text config.
|-
|-
| || REUSE_ADRS = %llx || AW.REUSE_ADRS = 110000 ||
| || REUSE_ADRS = %llx || AW.REUSE_ADRS = 110000 ||
Line 371: Line 350:
  110000 =
  110000 =
|-
|-
| || SINGLE_BUF2 = %llx || SINGLE_BUF2 = 1 || Bool
| || SINGLE_BUF2 = %llx || ||
0 = Disabled (Default)
1 = Enabled
|-
|-
| || DECODE_WAIT = %llx || AW.DECODE_WAIT = 1 || Delay GE Commands decoding
| || DECODE_WAIT = %llx || AW.DECODE_WAIT = 10000 || in order to slowdown ?
Wait loops * translated_value
    0 = (Default)
0 = 0x10000 (Default)
  10000 =  
1 = 0x20000
2 = 0x40000
3 = 0x80000
4 = 0x100000
5 = 0x200000
6 = 0x400000
7 = 0x800000
  10000 = Value used by 2 internal configs.
        This value is invalid for manual configs.
        It works for internal because internal configs aren't
        going thru the same handler as minis2 text configs.
|-
|-
| || DISCARD_EDGE = %llx || AW.DISCARD_EDGE = 1 || Bool
| || DISCARD_EDGE = %llx || AW.DISCARD_EDGE = 20000 ||
0 = Disabled (Default)
    0 = (Default)
  1 = Enabled
  20000 =
Internal configs use value 20000, it works the same way as 1 in text config.
|-
|-
| || RECYCLE_RD_TEX = %llx || || Bool
| || RECYCLE_RD_TEX = %llx || ||
0 = Disabled (Default)
1 = Enabled
|-
|-
| || EXT_MODE = %llx || AW.EXT_MODE = 3 ||
| || EXT_MODE = %llx || AW.EXT_MODE = 3 ||
  0 = (Default for Minis)
  0 = (Default)
  Uses different SPU ELF for Renderer and Graphics Engine emulator.
  Uses different SPU ELF for transparency/textures behavior
  1 =  
  1 =  
  2 =  
  2 =  
  3 = (Default for Remaster)
  3 =  
|-
|-
| || THR_PIXEL_OFST = %llx || AW.THR_PIXEL_OFST = 0 ||  
| || THR_PIXEL_OFST = %llx || AW.THR_PIXEL_OFST = 0 ||  
Line 411: Line 373:
  3EFFFFFF = (default)
  3EFFFFFF = (default)
|-
|-
| || EXT_CMD = %llx || AW.EXT_CMD = 2 || Ignored when EXT_MODE is default. Some kind of hack for GE NOP handler.
| || EXT_CMD = %llx || AW.EXT_CMD = 2 ||  
  0 = (Default)
  0 = (Default)
  1 =  
  1 =  
  2 =  
  2 =  
  3 =  
  3 =  
Probably game specific, as content (lower 24 bits) of NOP command is analyzed and compared to predefined values.
Chances that games send GE NOP with example value of 0xA6CEA0 value are rather slim.
|-
|-
| || VRAM_MODE = %llx || AW.VRAM_MODE = 1 ||
| || VRAM_MODE = %llx || AW.VRAM_MODE = 1 ||
  0 = Disabled (default)  
  0 = Disabled (default)  
  1 = Enabled
  1 = Enabled
Work in conjunction with values set with DRAWN_IMAGE_SCALE. When enabled, emulated VRAM amount is lower.
Resulting VRAM size:
VRAM_MODE 1 and DRAWN_IMAGE_SCALE <= 1  = VRAM size 2MB
VRAM_MODE 0 and DRAWN_IMAGE_SCALE <= 1  = VRAM size 4MB
VRAM_MODE 1 and DRAWN_IMAGE_SCALE 2 or 3 = VRAM size 8MB
VRAM_MODE 0 and DRAWN_IMAGE_SCALE 2 or 3 = VRAM size 16MB
VRAM_MODE 1 and DRAWN_IMAGE_SCALE == 4  = VRAM size 32MB
VRAM_MODE 0 and DRAWN_IMAGE_SCALE == 4  = VRAM size 64MB
Real PSP Have access to 2MB VRAM.
|-
|-
| || CLOAD_MODE = %llx || AW.CLOAD_MODE = 1 || (Note: Only available since 4.30?)
| || CLOAD_MODE = %llx || AW.CLOAD_MODE = 1 || (Note: Only available since 4.30?)
  0 = Disabled (default)  
  0 = Disabled (default)  
  1 = Enabled
  1 = Enabled
  Different setting for GE CLOAD (CLUT Load) handler.
  Displays Selection Menu: Remaster/Adhoc ?
|-
|-
| } || || ||
| } || || ||
Line 445: Line 393:
|-
|-
| || SRC_NOIZ = %llx || ||
| || SRC_NOIZ = %llx || ||
0 = Disabled (Default)
1 = Enabled
|-
|-
| || SLEEP = %llx || AUDIO.SLEEP = 421 || Value is u16. sys_timer_usleep(value) used in sceAudio related functions.
| || SLEEP = %llx || AUDIO.SLEEP = 421 ||
   0 = (Default)
   0 = (Default)
  421 = Delay by 0x420 ms for one of 2 possible places.
  421 =
This setting actually has hidden bitfield too (Big Endian). There are 2 separate usleep values that can be set by this config.
First is set when bit 15 is active. By default, value here is 0x320
Second can be set if bit 14 is active. By default, value is 0x100
Bits 12-15 are masked from use as a ms.
|-
|-
| || DECODE_LIMIT = %llx || || Used in sceAudiocodec functions.
| || DECODE_LIMIT = %llx || ||
0 = No limit for DECODE_WAIT? (default).
1 = When higher, clamp DECODE_WAIT? to 2048 value.
|-
|-
| } || || ||
| } || || ||
Line 498: Line 437:
| || LINCOLN_START_SIZE = %llx || || ELF Size?
| || LINCOLN_START_SIZE = %llx || || ELF Size?
|-
|-
| || TRANSLATOR_PATCH[%lld] = { ||
| || TRANSLATOR_PATCH[%lld] = { %08x } || ||  
TRANSLATOR_PATCH[1] = {
%lld = Number of patches to allocate<br>
08872844
Format goes like this - all values being 32Bit hexdecimal:<br>
08872844
= { start_address? end_address? patch1 patch2 .... (optional: count_for_buff2 buff2_value1 buff2_value2..) }
0E2112D6
00000001
60000000
}
||
Format goes like this - all values being 32Bit hexdecimal, new lines required:<br>
TRANSLATOR_PATCH[count] = { // 1 for one set, size doesn't matter.
start_address               // to check and replace original opcodes.
end_address                 // to check and replace original opcodes.
original_opcodes            // Mips big endian (byte reversed) if more than one, separated with new lines.
replacement_opcodes_count  // single op = 1, two opcodes = 2, etc.
replacement_opcodes        // PowerPC opcodes, yes PPC. Big Endian. Injected directly into recompiled code.
}                           //
                            // New line is REQUIRED here after closing bracket
|-
|-
| || OSK_ENGLISH = %lld || || On Screen Keyboard
| || OSK_ENGLISH = %lld || || On Screen Keyboard
Line 614: Line 539:
|-
|-
| || ADDITIONAL_KEY_ASSIGN = %llx || ADDITIONAL_KEY_ASSIGN = 0000000047C6C544 ||
| || ADDITIONAL_KEY_ASSIGN = %llx || ADDITIONAL_KEY_ASSIGN = 0000000047C6C544 ||
  0000000047C6C544 : Maps right analog stick, usefull for 3rd person camera viewing
  0000000047C6C544 : maps right analog stick, usefull for 3rd person camera viewing
  0000000048C0C940 : Maps L + R to right analog stick left and right.
  0000000048C0C940 : maps L + R to right analog stick left and right
0000000000C90048 : Maps L + R to right analog stick up and down.
  8000000000000000 : unknown. Note: Possibly switches X/O buttons, to be confirmed.
  8000000000000000 : unknown. Note: Possibly switches X/O buttons, to be confirmed.
|-
|-
Line 648: Line 572:
|-
|-
| || VSYNC_OFFSET_US = %lld || VSYNC_OFFSET_US = 8341 ||
| || VSYNC_OFFSET_US = %lld || VSYNC_OFFSET_US = 8341 ||
  8341 = 0x2095 (Default for Minis)
  8341 = 0x2095 (Default)
16000 = 0x3E80 (Default for Remaster)
  2000 = 0x07D0 (Legend of Heroes/Eiyū Densetsu HD Remasters)
  2000 = 0x07D0 (Legend of Heroes/Eiyū Densetsu HD Remasters)
|-
|-
| || ADHOC_PARTY = %llx || ADHOC_PARTY = 1 ||
| || ADHOC_PARTY = %llx || ADHOC_PARTY = 1 ||
  0 = Disabled (Default for Minis)
  0 = Disabled (Default)
  1 = Enable Ad hoc Multiplayer (Default for Remaster)
  1 = Enable Ad hoc Multiplayer
|-
|-
| || GPI = 0x%llx || ||
| || GPI = 0x%llx || ||
Line 3,272: Line 3,195:
**Stick directions could be maped to axis: {{padlx}} {{padly}} {{padrx}} {{padry}}
**Stick directions could be maped to axis: {{padlx}} {{padly}} {{padrx}} {{padry}}
**There are more button icons if needed in [[TemplateTest#Buttons]] page <!-- delete this line when the tables are completed -->
**There are more button icons if needed in [[TemplateTest#Buttons]] page <!-- delete this line when the tables are completed -->
==== VFPU opcodes without recompiler implementation ====
While whole emu uses recompiler, most vfpu opcodes still fallback to interpreter. Only load/stores, branches, compares, and conversions have rec implementation. Here is the list of interpreted opcodes:
vabs      vi2c      vrnds
vadd      vi2f      vrot
vasin      vi2s      vrsq
vavg      vi2uc      vs2i
vbfy1      vi2us      vsat
vbfy2      vidt      vsat1
vc2i      viim      vsbn
vcmovf    vlgb      vsbz
vcmovt    vlog2      vscl
vcmp      vmax      vscmp
vcos      vmidt      vsge
vcrs      vmin      vsgn
vcrsp      vmmov      vsin
vcst      vmmul      vslt
vdet      vmone      vsocp
vdiv      vmov      vsqrt
vdot      vmscl      vsrt1
vexp2      vmul      vsrt2
vf2h      vmzero    vsrt3
vf2id      vneg      vsrt4
vf2in      vnone      vsub
vf2iu      vnrcp      vt4444
vf2iz      vnsin      vt5551
vfad      vocp      vt5650
vfim      vqmul      vtfm2
vh2f      vrcp      vtfm3
vhdp      vrexp2    vtfm4
vhtfm2    vrndf1    vus2i
vhtfm3    vrndf2    vwbn
vhtfm4    vrndi      vzero


{{Reverse engineering}}<noinclude>[[Category:Main]]</noinclude>
{{Reverse engineering}}<noinclude>[[Category:Main]]</noinclude>
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

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

Cancel Editing help (opens in new window)