Difference between revisions of "SYS LoadImage"
Jump to navigation
Jump to search
m (Talcall moved page ? 0x248fc to SYS LoadImage) |
|
(No difference)
|
Revision as of 06:36, 11 July 2023
# ROUTINE: ? 0x248fc # Loads data into VRAM? # Parameters: # r4 = (p1) Struct data for image metadata? { 0x00 = Color depth bitmask? (sometimes 0x0180), 0x02 = (Sometimes 0?), 0x04 = (Row bytes / 2)?, 0x06 = Height? } # r5 = (p2) Image data? 800248fc: 27bdffe0 addiu r29,r29,-0x0020 80024900: afb00010 sw r16,0x0010(r29) 80024904: 00808021 addu r16,r4,r0 # p1 80024908: afb10014 sw r17,0x0014(r29) 8002490c: 00a08821 addu r17,r5,r0 # p2 80024910: 3c048001 lui r4,0x8001 80024914: 248407f8 addiu r4,r4,0x07f8 # 0x800107f8 80024918: afbf0018 sw r31,0x0018(r29) 8002491c: 0c0091d0 jal 0x80024740 # ROUTINE: ? 0x24740 (0x800107f8, p1) 80024920: 02002821 addu r5,r16,r0 # p1 80024924: 02002821 addu r5,r16,r0 # p1 80024928: 3c028003 lui r2,0x8003 8002492c: 8c42288c lw r2,0x288c(r2) # *0x8003288c 80024930: 34060008 ori r6,r0,0x0008 # 8 80024934: 8c440020 lw r4,0x0020(r2) # *0x8003288c.0x20 80024938: 8c420008 lw r2,0x0008(r2) # *0x8003288c.0x08 8002493c: 00000000 nop 80024940: 0040f809 jalr r2,r31 # ROUTINE: *0x8003288c.0x08 (*0x8003288c.0x20, p1, 8, p2) 80024944: 02203821 addu r7,r17,r0 # p2 80024948: 8fbf0018 lw r31,0x0018(r29) 8002494c: 8fb10014 lw r17,0x0014(r29) 80024950: 8fb00010 lw r16,0x0010(r29) 80024954: 27bd0020 addiu r29,r29,0x0020 80024958: 03e00008 jr r31 8002495c: 00000000 nop