Show Gameover Image

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
#   ROUTINE: SHOW GAMEOVER IMAGE
#       Parameters:
#           r4 = graphicID

801c03ac: 27bdffc0 addiu r29,r29,-0x0040
801c03b0: afb40030 sw r20,0x0030(r29)
801c03b4: 3c028004 lui r2,0x8004
801c03b8: 24423f00 addiu r2,r2,0x3f00
801c03bc: afbf0038 sw r31,0x0038(r29)
801c03c0: afb50034 sw r21,0x0034(r29)
801c03c4: afb3002c sw r19,0x002c(r29)
801c03c8: afb20028 sw r18,0x0028(r29)
801c03cc: afb10024 sw r17,0x0024(r29)
801c03d0: afb00020 sw r16,0x0020(r29)
801c03d4: 3c018017 lui r1,0x8017
801c03d8: ac223ca8 sw r2,0x3ca8(r1)
801c03dc: 0c0533ad jal 0x8014ceb4
801c03e0: 0080a021 addu r20,r4,r0
801c03e4: 3c028004 lui r2,0x8004
801c03e8: 244237d8 addiu r2,r2,0x37d8
801c03ec: 3c018017 lui r1,0x8017
801c03f0: ac223ca8 sw r2,0x3ca8(r1)
801c03f4: 0c0533ad jal 0x8014ceb4
801c03f8: 34040032 ori r4,r0,0x0032
801c03fc: 3c108004 lui r16,0x8004
801c0400: 261038d0 addiu r16,r16,0x38d0

801c0404: 0c0532a0 jal 0x8014ca80
801c0408: 00000000 nop
801c040c: 3c018017 lui r1,0x8017
801c0410: ac303ca8 sw r16,0x3ca8(r1)
801c0414: 0c0533ad jal 0x8014ceb4
801c0418: 00000000 nop
801c041c: 1440fff9 bne r2,r0,0x801c0404
801c0420: 34040001 ori r4,r0,0x0001

801c0424: 3405007f ori r5,r0,0x007f
801c0428: 3c028004 lui r2,0x8004
801c042c: 24423a90 addiu r2,r2,0x3a90
801c0430: 3c018017 lui r1,0x8017
801c0434: ac223ca8 sw r2,0x3ca8(r1)
801c0438: 0c0533ad jal 0x8014ceb4
801c043c: 00003021 addu r6,r0,r0
801c0440: 00141140 sll r2,r20,0x05
801c0444: 3c01801c lui r1,0x801c
801c0448: 00220821 addu r1,r1,r2
801c044c: 8c3308ac lw r19,0x08ac(r1)
801c0450: 00008821 addu r17,r0,r0
801c0454: 8662001e lh r2,0x001e(r19)
801c0458: 00000000 nop
801c045c: 1840001b blez r2,0x801c04cc
801c0460: 00008021 addu r16,r0,r0
801c0464: 3c12801c lui r18,0x801c
801c0468: 26520a3c addiu r18,r18,0x0a3c
801c046c: 02802021 addu r4,r20,r0

#   Loop for fade-in
801c0470: 02002821 addu r5,r16,r0
801c0474: 34060002 ori r6,r0,0x0002
801c0478: 00003821 addu r7,r0,r0
801c047c: 32230001 andi r3,r17,0x0001
801c0480: 00031040 sll r2,r3,0x01
801c0484: 00431021 addu r2,r2,r3
801c0488: 00021080 sll r2,r2,0x02
801c048c: 00431021 addu r2,r2,r3
801c0490: 00021100 sll r2,r2,0x04
801c0494: 00521021 addu r2,r2,r18
801c0498: afa20010 sw r2,0x0010(r29)
801c049c: 34020080 ori r2,r0,0x0080
801c04a0: 0c06ff16 jal 0x801bfc58
801c04a4: afa20014 sw r2,0x0014(r29)
801c04a8: 0c0532a0 jal 0x8014ca80
801c04ac: 26310001 addiu r17,r17,0x0001
801c04b0: 3c038016 lui r3,0x8016
801c04b4: 8c635f88 lw r3,0x5f88(r3)
801c04b8: 8662001e lh r2,0x001e(r19)
801c04bc: 02038021 addu r16,r16,r3
801c04c0: 0202102a slt r2,r16,r2
801c04c4: 1440ffea bne r2,r0,0x801c0470
801c04c8: 02802021 addu r4,r20,r0

801c04cc: 00008021 addu r16,r0,r0
801c04d0: 3c12801c lui r18,0x801c
801c04d4: 26520a3c addiu r18,r18,0x0a3c
801c04d8: 02802021 addu r4,r20,r0

#   Loop for solid image
801c04dc: 34060002 ori r6,r0,0x0002
801c04e0: 00003821 addu r7,r0,r0
801c04e4: 32230001 andi r3,r17,0x0001
801c04e8: 00031040 sll r2,r3,0x01
801c04ec: 00431021 addu r2,r2,r3
801c04f0: 00021080 sll r2,r2,0x02
801c04f4: 00431021 addu r2,r2,r3
801c04f8: 00021100 sll r2,r2,0x04
801c04fc: 8665001e lh r5,0x001e(r19)
801c0500: 00521021 addu r2,r2,r18
801c0504: afa20010 sw r2,0x0010(r29)
801c0508: 34020080 ori r2,r0,0x0080
801c050c: 0c06ff16 jal 0x801bfc58
801c0510: afa20014 sw r2,0x0014(r29)
801c0514: 0c0532a0 jal 0x8014ca80
801c0518: 26310001 addiu r17,r17,0x0001
801c051c: 3c028016 lui r2,0x8016
801c0520: 8c425f88 lw r2,0x5f88(r2)
801c0524: 00000000 nop
801c0528: 02028021 addu r16,r16,r2
801c052c: 2a020258 slti r2,r16,0x0258
801c0530: 1440ffea bne r2,r0,0x801c04dc
801c0534: 02802021 addu r4,r20,r0

801c0538: 34120080 ori r18,r0,0x0080
801c053c: 00008021 addu r16,r0,r0
801c0540: 3c15801c lui r21,0x801c
801c0544: 26b50a3c addiu r21,r21,0x0a3c

#   Loop for fade-out
801c0548: 02802021 addu r4,r20,r0
801c054c: 34060002 ori r6,r0,0x0002
801c0550: 00003821 addu r7,r0,r0
801c0554: 32230001 andi r3,r17,0x0001
801c0558: 00031040 sll r2,r3,0x01
801c055c: 00431021 addu r2,r2,r3
801c0560: 00021080 sll r2,r2,0x02
801c0564: 00431021 addu r2,r2,r3
801c0568: 00021100 sll r2,r2,0x04
801c056c: 8665001e lh r5,0x001e(r19)
801c0570: 00551021 addu r2,r2,r21
801c0574: afa20010 sw r2,0x0010(r29)
801c0578: 0c06ff16 jal 0x801bfc58
801c057c: afb20014 sw r18,0x0014(r29)
801c0580: 3c028016 lui r2,0x8016
801c0584: 8c425f88 lw r2,0x5f88(r2)
801c0588: 0c0532a0 jal 0x8014ca80
801c058c: 02429023 subu r18,r18,r2
801c0590: 3c028016 lui r2,0x8016
801c0594: 8c425f88 lw r2,0x5f88(r2)
801c0598: 00000000 nop
801c059c: 02028021 addu r16,r16,r2
801c05a0: 2a020080 slti r2,r16,0x0080
801c05a4: 1440ffe8 bne r2,r0,0x801c0548
801c05a8: 26310001 addiu r17,r17,0x0001

801c05ac: 8fbf0038 lw r31,0x0038(r29)
801c05b0: 8fb50034 lw r21,0x0034(r29)
801c05b4: 8fb40030 lw r20,0x0030(r29)
801c05b8: 8fb3002c lw r19,0x002c(r29)
801c05bc: 8fb20028 lw r18,0x0028(r29)
801c05c0: 8fb10024 lw r17,0x0024(r29)
801c05c4: 8fb00020 lw r16,0x0020(r29)
801c05c8: 27bd0040 addiu r29,r29,0x0040
801c05cc: 03e00008 jr r31
801c05d0: 00000000 nop