Editing PSCode
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 1: | Line 1: | ||
[[Category:Software]]<noinclude>[[Category:Main]]</noinclude> | [[Category:Software]]<noinclude>[[Category:Main]]</noinclude> | ||
The PSCode is a 8 bytes code that contains console specific information. It is derived from the [[ConsoleId]]. | The PSCode is a 8 bytes code that contains console specific information like Region or Model Type. | ||
It is derived from the [[ConsoleId]]. | |||
Knowing PSCode we are able to deduce the 9 first Bytes of [[ConsoleId]]. | |||
What information this stores is almost completely known (see [[ConsoleId#Structure]]). | |||
For global info (not PSVita dependant), see [[https://github.com/CelesteBlue-dev/PS-ConsoleId-wiki PSConsoleId-wiki]]. | |||
= Structure = | |||
Chassis Revision | Chassis Revision | ||
⇓ ⇓ | ⇓ ⇓ | ||
Line 15: | Line 18: | ||
(Internal: Product Code) (Internal: Product Sub Code) | (Internal: Product Code) (Internal: Product Sub Code) | ||
1st and 2nd bytes | 1st and 2nd bytes is the PSCode magic | ||
3th and 4th bytes represent the [[Target ID]] TODO:list PSVita target id | |||
5th and 6th bytes represent the [[SKU_Models|Vita SKU Model]] | |||
7th and 8th bytes represent the [[Chassis Revision]] | |||
= Where is it used ? = | |||
It is get | It is get by GetPsCode or GetPsCode2. | ||
It is used by non-secure kernel | It is only used by non-secure kernel to determine the model of the device: | ||
- IsCEX, IsDEX, IsTool, IsTest | - IsCEX, IsDEX, IsTool, IsTest | ||
- IsVita, IsDolce, IsGenuineVita, IsGenuineDolce | - IsVita, IsDolce, IsGenuineVita, IsGenuineDolce | ||
but also | but also the region by the [[TargetId]] it embeds. |