Difference between revisions of "P41 SetDrawMode"
Jump to navigation
Jump to search
m (Talcall moved page ? 0x254cc to P41 SetDrawMode) |
|||
Line 1: | Line 1: | ||
− | # ROUTINE: | + | # ROUTINE: P41 SetDrawMode |
# Called by screen color change many times, but also by windows coming up... Load sprite | # Called by screen color change many times, but also by windows coming up... Load sprite | ||
# Parameters: | # Parameters: | ||
− | # r4 = Primative address | + | # r4 = Primative address |
− | # r5 = | + | # r5 = DrawMode Privaleges: |
− | # r6 = | + | # 0: Drawing not allowed in display area |
− | # r7 = TPAGE ID | + | # 1: Drawing allowed in display area |
+ | # r6 = Dithering | ||
+ | # 0: off | ||
+ | # 1: on | ||
+ | # r7 = TPAGE ID | ||
+ | # SP1 = pointer to texture window (format RECT) | ||
800254cc: 27bdffe0 addiu r29,r29,-0x0020 | 800254cc: 27bdffe0 addiu r29,r29,-0x0020 |
Revision as of 03:20, 18 June 2023
# ROUTINE: P41 SetDrawMode # Called by screen color change many times, but also by windows coming up... Load sprite # Parameters: # r4 = Primative address # r5 = DrawMode Privaleges: # 0: Drawing not allowed in display area # 1: Drawing allowed in display area # r6 = Dithering # 0: off # 1: on # r7 = TPAGE ID # SP1 = pointer to texture window (format RECT) 800254cc: 27bdffe0 addiu r29,r29,-0x0020 800254d0: afb00010 sw r16,0x0010(r29) 800254d4: 00808021 addu r16,r4,r0 800254d8: 00a02021 addu r4,r5,r0 800254dc: 34020002 ori r2,r0,0x0002 800254e0: 00c02821 addu r5,r6,r0 800254e4: afb10014 sw r17,0x0014(r29) 800254e8: 8fb10030 lw r17,0x0030(r29) 800254ec: 30e6ffff andi r6,r7,0xffff 800254f0: afbf0018 sw r31,0x0018(r29) 800254f4: 0c0095f2 jal 0x800257c8 000257c8 - 00025820 800254f8: a2020003 sb r2,0x0003(r16) 800254fc: ae020004 sw r2,0x0004(r16) 80025500: 0c009681 jal 0x80025a04 80025504: 02202021 addu r4,r17,r0 80025508: ae020008 sw r2,0x0008(r16) 8002550c: 8fbf0018 lw r31,0x0018(r29) 80025510: 8fb10014 lw r17,0x0014(r29) 80025514: 8fb00010 lw r16,0x0010(r29) 80025518: 27bd0020 addiu r29,r29,0x0020 8002551c: 03e00008 jr r31 80025520: 00000000 nop