This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
super_mario_64:fast3d_display_list_commands [2019/05/14 20:58] shygoo [03: G_MOVEMEM] fix |
super_mario_64:fast3d_display_list_commands [2022/05/31 02:34] (current) David [B2: G_RDPHALF_CONT] |
||
---|---|---|---|
Line 64: | Line 64: | ||
Note 2: The 4th and 8th bytes are just padding; they don't represent the alpha value. | Note 2: The 4th and 8th bytes are just padding; they don't represent the alpha value. | ||
- | The diffuse light is loaded using G_MV_L1 (0x86), and the segment address points to 16 bytes defining the color RGB value and normalized direction that the light is coming from. | + | The diffuse light is loaded using G_MV_L0 (0x86), and the segment address points to 16 bytes defining the color RGB value and normalized direction that the light is coming from. |
03 86 00 10 0E 00 00 08 // This loads the diffuse light from segment address 0x0E000008. | 03 86 00 10 0E 00 00 08 // This loads the diffuse light from segment address 0x0E000008. | ||
Line 111: | Line 111: | ||
==== B2: G_RDPHALF_CONT ==== | ==== B2: G_RDPHALF_CONT ==== | ||
Acts as an indicator that the command continues with the given lower word. This is used only when operators longer than 64bits are in use. | Acts as an indicator that the command continues with the given lower word. This is used only when operators longer than 64bits are in use. | ||
+ | |||
+ | Note: When this command gets executed, it will immediately send all the previous data (from RDPHALF_1 and/or RDPHALF_2) to the RDP. | ||
''B2 00 00 00 [<color #ff7f27>CC CC CC CC</color>]'' | ''B2 00 00 00 [<color #ff7f27>CC CC CC CC</color>]'' | ||
Line 285: | Line 287: | ||
==== BD: G_POPMTX ==== | ==== BD: G_POPMTX ==== | ||
- | Pops num matrices from the stack specified by modelview matrix stack. | + | Pops a matrix from the stack. |
- | ''D8380002 <color #00a2e8>aaaaaaaa</color>'' | + | ''BD000000 00 00 00 00'' |
- | + | ||
- | | <color #00a2e8>a</color> | The number of matrices to pop | | + | |
+ | Removes the top matrix from the matrix stack in dmem | ||
---- | ---- | ||
Line 538: | Line 539: | ||
Sets the texture coordinates and size | Sets the texture coordinates and size | ||
- | ''F2 00 00 00 00 [<color darkred>WW W</color>][<color darkgreen>H HH</color>]'' | + | ''F2 [<color darkred>SS S</color>][<color darkgreen>T TT</color>] 0[<color #00a2e8>I</color>] [<color purple>WW W</color>][<color darkcyan>H HH</color>]'' |
+ | | <color darkred>SSS</color> | Upper-left corner of texture to load, S-axis | | ||
+ | | <color darkgreen>TTT</color> | Upper-left corner of texture to load, T-axis | | ||
+ | | <color #00a2e8>I</color> | Tile descriptor to load into | | ||
| <color darkred>W</color> | (width - 1) << 2 | | | <color darkred>W</color> | (width - 1) << 2 | | ||
| <color darkgreen>H</color> | (height - 1) << 2 | | | <color darkgreen>H</color> | (height - 1) << 2 | | ||
Line 872: | Line 876: | ||
|in_bufp |$22|| | |in_bufp |$22|| | ||
|zero |$0 || | |zero |$0 || | ||
+ | |||
---- | ---- | ||
===== References ===== | ===== References ===== |