The GTE instructions that C can't say, as the SDK's inline_c.h has them but with the real encodings in place of the ones DMPSX patches.
More...
|
| #define | gte_lddp(r0) |
| | the interpolation factor (IR0)
|
| |
| #define | gte_ldsv(r0) |
| | an SVECTOR into IR1-IR3
|
| |
| #define | gte_gpf12() |
| | IR1-IR3 = IR0 * IR1-IR3 >> 12.
|
| |
| #define | gte_stsv(r0) |
| | IR1-IR3 into an SVECTOR.
|
| |
| #define | gte_SetRotMatrix(r0) |
| | a MATRIX's rotation into the GTE (RT)
|
| |
| #define | gte_ldv0(r0) |
| | an SVECTOR into V0
|
| |
| #define | gte_ldv0_unaligned(r0) |
| | an SVECTOR that may not be word aligned into V0
|
| |
| #define | gte_rtps() |
| | V0 through RT and TR, then the perspective (SXY2, SZ3)
|
| |
| #define | gte_rtv0() |
| | MAC1-MAC3 = RT * V0 >> 12.
|
| |
| #define | gte_stsxy(r0) |
| | SXY2 into a word.
|
| |
| #define | gte_stflg(r0) |
| | the flags into a word
|
| |
| #define | gte_stlvnl(r0) |
| | MAC1-MAC3 into a VECTOR.
|
| |
| #define | gte_stszotz(r0) |
| | SZ3 / 4 into a word, the depth in the ordering table.
|
| |
| #define | gte_SetTransMatrix(r0) |
| | a MATRIX's translation into the GTE (TR)
|
| |
| #define | gte_ldlv0(r0) |
| | a VECTOR's low halves into V0
|
| |
| #define | gte_ldclmv(r0) |
| | a MATRIX's column into IR1-IR3
|
| |
| #define | gte_rt() |
| | MAC1-MAC3 = RT * V0 + TR.
|
| |
| #define | gte_rtir() |
| | MAC1-MAC3 = RT * IR1-IR3 >> 12.
|
| |
| #define | gte_stclmv(r0) |
| | IR1-IR3 into a MATRIX's column.
|
| |
| #define | gte_SetLightMatrix(r0) |
| | a MATRIX's rotation into the GTE's light matrix (L)
|
| |
| #define | gte_ncs() |
| | the color of V0 as a normal under the lights (RGB2)
|
| |
| #define | gte_strgb(r0) |
| | RGB2 into a word.
|
| |
| #define | gte_ldsxy3(r0, r1, r2) |
| | three screen points (SXY0-SXY2)
|
| |
| #define | gte_nclip() |
| | MAC0 = the winding of SXY0-SXY2, which side of a polygon faces us.
|
| |
| #define | gte_stopz(r0) |
| | MAC0 into a word.
|
| |
| #define | gte_ldsz3(r0, r1, r2) |
| | three depths (SZ1-SZ3)
|
| |
| #define | gte_ldsz4(r0, r1, r2, r3) |
| | four depths (SZ0-SZ3)
|
| |
| #define | gte_avsz3() |
| | OTZ = the average of SZ1-SZ3.
|
| |
| #define | gte_avsz4() |
| | OTZ = the average of SZ0-SZ3.
|
| |
| #define | gte_stotz(r0) |
| | OTZ into a word.
|
| |
The GTE instructions that C can't say, as the SDK's inline_c.h has them but with the real encodings in place of the ones DMPSX patches.
The SDK's gtemac.h builds its larger macros (gte_MulMatrix0, gte_CompMatrix...) from these.
Definition in file gte.h.