Template:Ps2configrev: Difference between revisions
(I guess the problem is the missing https://www.psdevwiki.com/ps3/Module:BaseConvert) |
(Custom hex2dec brainstorming) |
||
Line 66: | Line 66: | ||
We already have a template named https://www.psdevwiki.com/ps3/Template:Hex2dec in this wiki but is not working. And we already have the module BaseConvert installed https://www.psdevwiki.com/ps3/Special:Version but doesnt seems to work, it looks we cant "#invoke" it. Im wondering if is because we need to copy also the script into https://www.psdevwiki.com/ps3/Module:BaseConvert (the page doesnt exists)<br> | We already have a template named https://www.psdevwiki.com/ps3/Template:Hex2dec in this wiki but is not working. And we already have the module BaseConvert installed https://www.psdevwiki.com/ps3/Special:Version but doesnt seems to work, it looks we cant "#invoke" it. Im wondering if is because we need to copy also the script into https://www.psdevwiki.com/ps3/Module:BaseConvert (the page doesnt exists)<br> | ||
So... by now i dont know how to do '''steps 1 and 2''' of the conversion process, and the math expressions (required for '''step 3''') only works with decimals... so the only solution by now is to pass the decimal value to this template | So... by now i dont know how to do '''steps 1 and 2''' of the conversion process, and the math expressions (required for '''step 3''') only works with decimals... so the only solution by now is to pass the decimal value to this template | ||
== hex2dec conversion way around 16 bits == | |||
This trick would allow to pass the value in hex format to this template | |||
* #expr: W*16^3 + X*16^2 + Y*16^1 + Z*16^0 | |||
*Example 0x5555 (21845 dec) | |||
** <nowiki>{{#expr: 5*16^3 + 5*16^2 + 5*16^1 + 5*16^0}}</nowiki> = {{#expr: 5*16^3 + 5*16^2 + 5*16^1 + 5*16^0}} | |||
** 5*16^3 + 5*16^2 + 5*16^1 + 5*16^0 | |||
** 5*4096 + 5*256 + 5*16 + 5*1 | |||
** 20480 + 1280 + 80 + 5 | |||
** 21845 | |||
[[Category:Games]]</noinclude> | [[Category:Games]]</noinclude> |
Revision as of 22:03, 26 October 2022
(rev. 0). Requires PS2 Emulator from firmware 3.70 or newer
Examples
{{ps2configrev|01337}} = (rev. 01337). Requires PS2 Emulator from firmware 3.70 or newer
{{ps2configrev|15700}} = (rev. 15700). Requires PS2 Emulator from firmware 3.72 or newer
{{ps2configrev|15900}} = (rev. 15900). Requires PS2 Emulator from firmware 3.73 or newer
{{ps2configrev|16000}} = (rev. 16000). Requires PS2 Emulator from firmware 4.00 or newer
{{ps2configrev|16200}} = (rev. 16200). Requires PS2 Emulator from firmware 4.10 or newer
{{ps2configrev|16500}} = (rev. 16500). Requires PS2 Emulator from firmware 4.20 or newer
{{ps2configrev|16700}} = (rev. 16700). Requires PS2 Emulator from firmware 4.25 or newer
{{ps2configrev|16800}} = (rev. 16800). Requires PS2 Emulator from firmware 4.30 or newer
{{ps2configrev|16900}} = (rev. 16900). Requires PS2 Emulator from firmware 4.40 or newer
{{ps2configrev|17000}} = (rev. 17000). Requires PS2 Emulator from firmware 4.45 or newer
{{ps2configrev|17100}} = (rev. 17100). Requires PS2 Emulator from firmware 4.50 or newer
{{ps2configrev|17200}} = (rev. 17200). Requires PS2 Emulator from firmware 4.55 or newer
{{ps2configrev|17300}} = (rev. 17300). Requires PS2 Emulator from firmware 4.60 or newer
{{ps2configrev|17400}} = (rev. 17400). Requires PS2 Emulator from firmware 4.78 or newer
{{ps2configrev|18000}} = (rev. 18000). Requires PS2 Emulator from firmware 9.99 or newer
Notes
It could be handy to do the conversion in this sequence: 1) hexLE to hexBE, 2) hexBE to dec, 3) Math expression to compare the value in ranges
I was experimenting in wikipedia to do step 2 using the template https://en.wikipedia.org/wiki/Template:Hex2dec and it works, is dependant of the module https://en.wikipedia.org/wiki/Module:BaseConvert but actually we dont need the template because we can call the module BaseConvert directly in a single line this way: {{#invoke:BaseConvert|16to10|FFFF}}
We already have a template named https://www.psdevwiki.com/ps3/Template:Hex2dec in this wiki but is not working. And we already have the module BaseConvert installed https://www.psdevwiki.com/ps3/Special:Version but doesnt seems to work, it looks we cant "#invoke" it. Im wondering if is because we need to copy also the script into https://www.psdevwiki.com/ps3/Module:BaseConvert (the page doesnt exists)
So... by now i dont know how to do steps 1 and 2 of the conversion process, and the math expressions (required for step 3) only works with decimals... so the only solution by now is to pass the decimal value to this template
hex2dec conversion way around 16 bits
This trick would allow to pass the value in hex format to this template
- #expr: W*16^3 + X*16^2 + Y*16^1 + Z*16^0
- Example 0x5555 (21845 dec)
- {{#expr: 5*16^3 + 5*16^2 + 5*16^1 + 5*16^0}} = 21845
- 5*16^3 + 5*16^2 + 5*16^1 + 5*16^0
- 5*4096 + 5*256 + 5*16 + 5*1
- 20480 + 1280 + 80 + 5
- 21845