Difference between revisions of "P41 SetDrawMode"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
  #  ROUTINE: ? 0x254cc
 
  #  ROUTINE: ? 0x254cc
  #      Called by screen color change many times, but also by windows coming up...
+
  #      Called by screen color change many times, but also by windows coming up... Load sprite
 
  #      Parameters:
 
  #      Parameters:
  #          r4 = Primative address
+
  #          r4 = Primative address? (+ offset?)
 
  #          r5 = ? (0 or 1?)
 
  #          r5 = ? (0 or 1?)
 
  #          r6 = ? (0 or 1?)
 
  #          r6 = ? (0 or 1?)
Line 17: Line 17:
 
  800254ec: 30e6ffff andi r6,r7,0xffff
 
  800254ec: 30e6ffff andi r6,r7,0xffff
 
  800254f0: afbf0018 sw r31,0x0018(r29)
 
  800254f0: afbf0018 sw r31,0x0018(r29)
  800254f4: 0c0095f2 jal 0x800257c8
+
  800254f4: 0c0095f2 jal 0x800257c8                 [[000257c8 - 00025820]]
  800254f8: a2020003 sb r2,0x0003(r16)
+
  800254f8: a2020003 sb r2,0x0003(r16)            
 
  800254fc: ae020004 sw r2,0x0004(r16)
 
  800254fc: ae020004 sw r2,0x0004(r16)
 
  80025500: 0c009681 jal 0x80025a04
 
  80025500: 0c009681 jal 0x80025a04

Revision as of 11:57, 17 June 2023

#   ROUTINE: ? 0x254cc
#       Called by screen color change many times, but also by windows coming up... Load sprite
#       Parameters:
#           r4 = Primative address? (+ offset?)
#           r5 = ? (0 or 1?)
#           r6 = ? (0 or 1?)
#           r7 = TPAGE ID

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