Editing Talk:Hypervisor Reverse Engineering
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: | ||
=emer init.self= | |||
===Program 1=== | |||
Crossreference: [http://portal.gitbrew.org/wikibrew/PS3:HvReverseEngineering:emer_init.self:Program_1 gitbrew.org::emer_init.self:Program_1] <br /> | |||
=== Program 1 === | |||
Crossreference: [ | |||
<pre> | <pre> | ||
Line 835: | Line 223: | ||
</pre> | </pre> | ||
=== Program 2 === | ===Program 2=== | ||
Crossreference: [http://portal.gitbrew.org/wikibrew/PS3:HvReverseEngineering:emer_init.self:Program_2 gitbrew.org::emer_init.self:Program_2] <br /> | |||
Crossreference: [ | |||
<pre> | <pre> | ||
0x80308 | 0x80308 | ||
Line 1,152: | Line 539: | ||
0x66604200 | 0x66604200 | ||
</pre> | </pre> | ||
---- | ---- | ||
== | =RSXFIFOCommands= | ||
Crossreference: [http://portal.gitbrew.org/wikibrew/PS3:HvReverseEngineering:RSXFIFOCommands gitbrew.org::RSXFIFOCommands] <br /> | |||
[[Category:PS3]] | |||
Crossreference: [http://www.ps3devwiki.com/index.php?title==Talk:Hypervisor_Reverse_Engineering#RSXFIFOCommands ps3devwiki::RSXFIFOCommands] <br /> | |||
==Commands== | |||
===NOP (0x00000100)=== | |||
* Nop | |||
<pre> | |||
0x00000100 | |||
</pre> | |||
===CALL (0x00000002)=== | |||
* Calls a function at the specified offset. | |||
* Command size is '''0'''. | |||
* The parameter is offset in FIFO buffer. | |||
<pre> | |||
<offset> | 0x00000002 | |||
</pre> | |||
===RET (0x00020000)=== | |||
* Returns from a function. | |||
* Command size is '''0'''. | |||
<pre> | |||
0x00020000 | |||
</pre> | |||
===JMP (0x20000000)=== | |||
* Jumps to the specified offset. | |||
* Command size is '''0'''. | |||
* The parameter is offset in FIFO buffer. | |||
<pre> | |||
0x20000000 | <offset> | |||
</pre> | |||
===COLOR MASK (0x00040324)=== | |||
* Sets color mask. | |||
* Command size is '''1'''. | |||
* The parameter is color mask. | |||
<pre> | |||
0x00040324 | |||
<color mask> | |||
</pre> | |||
===COLOR MASK MRT (0x00040370)=== | |||
<pre> | |||
0x00040370 | |||
<color mask> | |||
</pre> | |||
===CLEAR COLOR (0x00041D90)=== | |||
<pre> | |||
0x00041D90 | |||
<value> | |||
</pre> | |||
===FRONT POLYGON MODE (0x00041828)=== | |||
* Sets front polygon mode. | |||
* Command size is '''1'''. | |||
* The parameter is front polygon mode. | |||
<pre> | |||
0x00041828 | |||
<front polygon mode> | |||
</pre> | |||
===SET REF (0x00040050)=== | |||
* Sets value of REF control register | |||
<pre> | |||
0x00040050 | |||
<value> | |||
</pre> | |||
==libgcm Commands== | |||
===SetNopCommand=== | |||
<pre> | <pre> | ||
0x00000000 | |||
</pre> | |||
===SetReferenceCommand=== | |||
<pre> | |||
0x00040050 | |||
<param> | |||
</pre> | |||
===SetJumpCommand=== | |||
<pre> | |||
0x20000000 | <param> | |||
</pre> | |||
===SetCallCommand=== | |||
<pre> | |||
0x00000002 | <param> | |||
</pre> | |||
===SetReturnCommand=== | |||
<pre> | |||
0x00002000 | |||
</pre> | |||
===SetLogicOp=== | |||
* Sets pixel logical operation | |||
<pre> | |||
0x00040378 | |||
<param> | |||
</pre> | |||
===SetLogicOpEnable=== | |||
* Enables/Disables pixel logical operation | |||
<pre> | |||
0x00040374 | |||
<param> | |||
</pre> | |||
===SetColorMask=== | |||
<pre> | |||
0x00040324 | |||
<param> | |||
</pre> | |||
===SetColorMaskMrt=== | |||
<pre> | |||
0x00040370 | |||
<param> | |||
</pre> | |||
===SetClearColor=== | |||
<pre> | |||
0x00041D90 | |||
<param> | |||
</pre> | |||
===SetClearDepthStencil=== | |||
<pre> | |||
0x00041D8C | |||
<param> | |||
</pre> | |||
===SetClearSurface=== | |||
<pre> | |||
0x00041D94 | |||
<param> | |||
0x00040100 | |||
<param> | |||
</pre> | |||
===SetFrontPolygonMode=== | |||
<pre> | |||
0x00041828 | |||
<param> | |||
</pre> | |||
===SetFrontFace=== | |||
<pre> | |||
0x00041834 | |||
<param> | |||
</pre> | |||
===SetAlphaTestEnable=== | |||
<pre> | |||
0x00040304 | |||
<param> | |||
</pre> | |||
===SetAlphaFunc=== | |||
<pre> | |||
0x00080308 | |||
<param1> | |||
<param2> | |||
</pre> | |||
===SetDepthTestEnable=== | |||
<pre> | |||
0x00040A74 | |||
<param> | |||
</pre> | |||
===SetDepthFunc=== | |||
<pre> | |||
0x00040A6C | |||
<param> | |||
</pre> | |||
===SetDepthBounds=== | |||
<pre> | |||
0x00080384 | |||
<param1> | |||
<param2> | |||
</pre> | |||
===SetBlendEnable=== | |||
<pre> | |||
0x00040310 | |||
<param> | |||
</pre> | |||
===SetBlendFunc=== | |||
<pre> | |||
0x00080314 | |||
<param1> | |||
<param2> | |||
</pre> | |||
===SetBlendColor=== | |||
<pre> | |||
0x0004031C | |||
<param> | |||
0x0004037C | |||
<param> | |||
</pre> | |||
===SetBlendEquation=== | |||
<pre> | |||
0x00040320 | |||
<param> | |||
</pre> | |||
===SetClipMinMax=== | |||
* Sets Z clipping values | |||
<pre> | |||
0x00080394 | |||
<param1> | |||
<param2> | |||
</pre> | |||
===SetZcullEnable=== | |||
* Enables/Disables Zcull/Scull | |||
<pre> | |||
0x00041D84 | |||
<param> | |||
</pre> | |||
===SetPointSize=== | |||
<pre> | |||
0x00041EE0 | |||
<param> | |||
</pre> | |||
===SetWriteCommandLabel=== | |||
<pre> | |||
0x00040064 | |||
<param> | |||
0x0004006C | |||
<param> | |||
</pre> | |||
===SetWaitLabel=== | |||
<pre> | |||
0x00040064 | |||
<param> | |||
0x00040068 | |||
<param> | |||
</pre> | |||
===SetWaitForIdle=== | |||
<pre> | |||
0x00040110 | |||
0x00000000 | |||
</pre> | |||
===SetReportLocation=== | |||
<pre> | |||
0x000401A8 | |||
<param> | |||
</pre> | |||
===SetReport=== | |||
<pre> | |||
0x00041800 | |||
<param> | |||
</pre> | |||
===SetTimeStamp=== | |||
<pre> | |||
0x00041800 | |||
<param> | |||
</pre> | |||
===SetClearReport=== | |||
<pre> | |||
0x000417c8 | |||
<param> | |||
</pre> | |||
===SetCullFace=== | |||
* Specifies culling face (front or back) | |||
<pre> | |||
0x00041830 | |||
<param> | |||
</pre> | |||
===SetCullFaceEnable=== | |||
* Enables/Disables face culling | |||
<pre> | |||
0x0004183C | |||
<param> | |||
</pre> | |||
===SetViewport=== | |||
<pre> | |||
0x00080A00 | |||
<param1> | |||
<param2> | |||
0x00080394 | |||
<param1> | |||
<param2> | |||
0x200A20 | |||
<param1> | |||
<param2> | |||
<param3> | |||
<param4> | |||
<param5> | |||
<param6> | |||
<param7> | |||
<param8> | |||
0x200A20 | |||
<param1> | |||
<param2> | |||
<param3> | |||
<param4> | |||
<param5> | |||
<param6> | |||
<param7> | |||
<param8> | |||
</pre> | |||
===SetLineWidth=== | |||
<pre> | |||
0x000403B8 | |||
<param> | |||
</pre> | |||
===SetLineSmoothEnable=== | |||
<pre> | |||
0x000403BC | |||
<param> | |||
</pre> | |||
===SetTextureAddress=== | |||
<pre> | |||
0x00041A08 + (param1 << 5) | |||
<param2> | |||
</pre> | |||
===SetTextureControl=== | |||
<pre> | |||
0x00041A0C + (param1 << 5) | |||
<param2> | |||
</pre> | |||
===SetTextureFilter=== | |||
<pre> | |||
0x00041A14 + (param1 << 5) | |||
<param2> | |||
</pre> | |||
===SetFogMode=== | |||
<pre> | |||
0x000408CC | |||
<param> | |||
</pre> | |||
===SetNotifyIndex=== | |||
<pre> | |||
0x00040180 | |||
0x6660420F - <param> | |||
</pre> | |||
===SetNotify=== | |||
<pre> | |||
0x00040104 | |||
0x00000000 | |||
0x00040100 | |||
0x00000000 | |||
</pre> | |||
===SetTransferData=== | |||
<pre> | |||
0x00082184 | |||
<source> # 0xFEED0000 - local memory, 0xFEED0001 - system memory | |||
<destination> # 0xFEED0000 - local memory, 0xFEED0001 - system memory | |||
0x0020230C | |||
TODO | |||
</pre> | |||
===SetSurfaceWindow=== | |||
<pre> | |||
0x00040194 | |||
<param> | |||
0x0004018C | |||
<param> | |||
0x000801B4 | |||
<param1> | |||
<param2> | |||
0x00040198 | |||
<param> | |||
TODO | |||
</pre> | </pre> |