Difference between revisions of "0013b280 - 0013b4f8"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 0013b280: 27bdfec0 addiu r29,r29,0xfec0 0013b284: afbf0138 sw r31,0x0138(r29) 0013b288: afb50134 sw r21,0x0134(r29) 0013b28c: afb40130 sw r20,0...")
 
m
 
Line 8: Line 8:
 
  0013b294: afb20128 sw r18,0x0128(r29)
 
  0013b294: afb20128 sw r18,0x0128(r29)
 
  0013b298: afb10124 sw r17,0x0124(r29)
 
  0013b298: afb10124 sw r17,0x0124(r29)
  0013b29c: 0c0532f0 jal 0x0014cbc0
+
  0013b29c: 0c0532f0 jal 0x0014cbc0                       [[Get First Thread Parameter]] get p1 (menu data pointer)
 
  0013b2a0: afb00120 sw r16,0x0120(r29)
 
  0013b2a0: afb00120 sw r16,0x0120(r29)
 
  0013b2a4: 00409021 addu r18,r2,r0
 
  0013b2a4: 00409021 addu r18,r2,r0
Line 15: Line 15:
 
  0013b2b0: 27a6011a addiu r6,r29,0x011a
 
  0013b2b0: 27a6011a addiu r6,r29,0x011a
 
  0013b2b4: 27a7011c addiu r7,r29,0x011c
 
  0013b2b4: 27a7011c addiu r7,r29,0x011c
  0013b2b8: 0c04ebbb jal 0x0013aeec
+
  0013b2b8: 0c04ebbb jal 0x0013aeec                       [[0013aeec - 0013b008]] accepts menu data pointer
 
  0013b2bc: afa00010 sw r0,0x0010(r29)
 
  0013b2bc: afa00010 sw r0,0x0010(r29)
 
  0013b2c0: 27a40018 addiu r4,r29,0x0018
 
  0013b2c0: 27a40018 addiu r4,r29,0x0018
 
  0013b2c4: 02402821 addu r5,r18,r0
 
  0013b2c4: 02402821 addu r5,r18,r0
 
  0013b2c8: 27b30020 addiu r19,r29,0x0020
 
  0013b2c8: 27b30020 addiu r19,r29,0x0020
  0013b2cc: 0c04e05d jal 0x00138174
+
  0013b2cc: 0c04e05d jal 0x00138174                       [[00138174 - 001383c4]] accepts menu data pointer
 
  0013b2d0: 02603021 addu r6,r19,r0
 
  0013b2d0: 02603021 addu r6,r19,r0
 
  0013b2d4: 27a4009c addiu r4,r29,0x009c
 
  0013b2d4: 27a4009c addiu r4,r29,0x009c
Line 26: Line 26:
 
  0013b2dc: 0c052fd5 jal 0x0014bf54
 
  0013b2dc: 0c052fd5 jal 0x0014bf54
 
  0013b2e0: 3406007c ori r6,r0,0x007c
 
  0013b2e0: 3406007c ori r6,r0,0x007c
  0013b2e4: 8e420024 lw r2,0x0024(r18)
+
  0013b2e4: 8e420024 lw r2,0x0024(r18)                   pointer to menu/action ID array for this menu
 
  0013b2e8: 00000000 nop
 
  0013b2e8: 00000000 nop
  0013b2ec: 84550000 lh r21,0x0000(r2)
+
  0013b2ec: 84550000 lh r21,0x0000(r2)                   load first option
 
  0013b2f0: 00000000 nop
 
  0013b2f0: 00000000 nop
  0013b2f4: 06a0001f bltz r21,0x0013b374
+
  0013b2f4: 06a0001f bltz r21,0x0013b374                 branch if negative
 
  0013b2f8: 00158100 sll r16,r21,0x04
 
  0013b2f8: 00158100 sll r16,r21,0x04
  0013b2fc: 02158023 subu r16,r16,r21
+
  0013b2fc: 02158023 subu r16,r16,r21                    
  0013b300: 00108080 sll r16,r16,0x02
+
  0013b300: 00108080 sll r16,r16,0x02                     action ID x 0x3c
 
  0013b304: 3c048017 lui r4,0x8017
 
  0013b304: 3c048017 lui r4,0x8017
 
  0013b308: 8c844038 lw r4,0x4038(r4)
 
  0013b308: 8c844038 lw r4,0x4038(r4)
Line 40: Line 40:
 
  0013b314: 97a20118 lhu r2,0x0118(r29)
 
  0013b314: 97a20118 lhu r2,0x0118(r29)
 
  0013b318: 2484ffff addiu r4,r4,0xffff
 
  0013b318: 2484ffff addiu r4,r4,0xffff
  0013b31c: 02063021 addu r6,r16,r6
+
  0013b31c: 02063021 addu r6,r16,r6                       next menu to open
 
  0013b320: 00021400 sll r2,r2,0x10
 
  0013b320: 00021400 sll r2,r2,0x10
  0013b324: 94c30004 lhu r3,0x0004(r6)
+
  0013b324: 94c30004 lhu r3,0x0004(r6)                   load the inner width of that window
 
  0013b328: 00021443 sra r2,r2,0x11
 
  0013b328: 00021443 sra r2,r2,0x11
 
  0013b32c: 2463fefe addiu r3,r3,0xfefe
 
  0013b32c: 2463fefe addiu r3,r3,0xfefe
Line 62: Line 62:
 
  0013b36c: 0c05328e jal 0x0014ca38
 
  0013b36c: 0c05328e jal 0x0014ca38
 
  0013b370: 02052821 addu r5,r16,r5
 
  0013b370: 02052821 addu r5,r16,r5
 +
 
  0013b374: 27a60018 addiu r6,r29,0x0018
 
  0013b374: 27a60018 addiu r6,r29,0x0018
 
  0013b378: 34070001 ori r7,r0,0x0001
 
  0013b378: 34070001 ori r7,r0,0x0001

Latest revision as of 08:27, 24 May 2024

0013b280: 27bdfec0 addiu r29,r29,0xfec0
0013b284: afbf0138 sw r31,0x0138(r29)
0013b288: afb50134 sw r21,0x0134(r29)
0013b28c: afb40130 sw r20,0x0130(r29)
0013b290: afb3012c sw r19,0x012c(r29)
0013b294: afb20128 sw r18,0x0128(r29)
0013b298: afb10124 sw r17,0x0124(r29)
0013b29c: 0c0532f0 jal 0x0014cbc0                       Get First Thread Parameter get p1 (menu data pointer)
0013b2a0: afb00120 sw r16,0x0120(r29)
0013b2a4: 00409021 addu r18,r2,r0
0013b2a8: 02402021 addu r4,r18,r0
0013b2ac: 27a50118 addiu r5,r29,0x0118
0013b2b0: 27a6011a addiu r6,r29,0x011a
0013b2b4: 27a7011c addiu r7,r29,0x011c
0013b2b8: 0c04ebbb jal 0x0013aeec                       0013aeec - 0013b008 accepts menu data pointer
0013b2bc: afa00010 sw r0,0x0010(r29)
0013b2c0: 27a40018 addiu r4,r29,0x0018
0013b2c4: 02402821 addu r5,r18,r0
0013b2c8: 27b30020 addiu r19,r29,0x0020
0013b2cc: 0c04e05d jal 0x00138174                       00138174 - 001383c4 accepts menu data pointer
0013b2d0: 02603021 addu r6,r19,r0
0013b2d4: 27a4009c addiu r4,r29,0x009c
0013b2d8: 02602821 addu r5,r19,r0
0013b2dc: 0c052fd5 jal 0x0014bf54
0013b2e0: 3406007c ori r6,r0,0x007c
0013b2e4: 8e420024 lw r2,0x0024(r18)                    pointer to menu/action ID array for this menu
0013b2e8: 00000000 nop
0013b2ec: 84550000 lh r21,0x0000(r2)                    load first option
0013b2f0: 00000000 nop
0013b2f4: 06a0001f bltz r21,0x0013b374                  branch if negative
0013b2f8: 00158100 sll r16,r21,0x04
0013b2fc: 02158023 subu r16,r16,r21                     
0013b300: 00108080 sll r16,r16,0x02                     action ID x 0x3c
0013b304: 3c048017 lui r4,0x8017
0013b308: 8c844038 lw r4,0x4038(r4)
0013b30c: 3c068017 lui r6,0x8017
0013b310: 8cc63cb8 lw r6,0x3cb8(r6)
0013b314: 97a20118 lhu r2,0x0118(r29)
0013b318: 2484ffff addiu r4,r4,0xffff
0013b31c: 02063021 addu r6,r16,r6                       next menu to open 
0013b320: 00021400 sll r2,r2,0x10
0013b324: 94c30004 lhu r3,0x0004(r6)                    load the inner width of that window
0013b328: 00021443 sra r2,r2,0x11
0013b32c: 2463fefe addiu r3,r3,0xfefe
0013b330: 00431023 subu r2,r2,r3
0013b334: a4c20008 sh r2,0x0008(r6)
0013b338: 9642000a lhu r2,0x000a(r18)
0013b33c: 9643000e lhu r3,0x000e(r18)
0013b340: 8cc50028 lw r5,0x0028(r6)
0013b344: 00431021 addu r2,r2,r3
0013b348: 0c053228 jal 0x0014c8a0
0013b34c: a4c2000a sh r2,0x000a(r6)
0013b350: 00003021 addu r6,r0,r0
0013b354: 00003821 addu r7,r0,r0
0013b358: 3c048017 lui r4,0x8017
0013b35c: 8c844038 lw r4,0x4038(r4)
0013b360: 3c058017 lui r5,0x8017
0013b364: 8ca53cb8 lw r5,0x3cb8(r5)
0013b368: 2484ffff addiu r4,r4,0xffff
0013b36c: 0c05328e jal 0x0014ca38
0013b370: 02052821 addu r5,r16,r5
0013b374: 27a60018 addiu r6,r29,0x0018
0013b378: 34070001 ori r7,r0,0x0001
0013b37c: 87a40118 lh r4,0x0118(r29)
0013b380: 87a5011a lh r5,0x011a(r29)
0013b384: 0c05312a jal 0x0014c4a8
0013b388: 00008821 addu r17,r0,r0
0013b38c: 34040008 ori r4,r0,0x0008
0013b390: 34050009 ori r5,r0,0x0009
0013b394: 3c108016 lui r16,0x8016
0013b398: 26105fa8 addiu r16,r16,0x5fa8
0013b39c: 87a30118 lh r3,0x0118(r29)
0013b3a0: 0040a021 addu r20,r2,r0
0013b3a4: 0c0529b3 jal 0x0014a6cc
0013b3a8: ae030000 sw r3,0x0000(r16)
0013b3ac: 02802821 addu r5,r20,r0
0013b3b0: 8644001c lh r4,0x001c(r18)
0013b3b4: 0c052cbc jal 0x0014b2f0
0013b3b8: 2606fff8 addiu r6,r16,0xfff8
0013b3bc: 27a40018 addiu r4,r29,0x0018
0013b3c0: 0c00923f jal 0x000248fc
0013b3c4: 02802821 addu r5,r20,r0
0013b3c8: 0c0532a0 jal 0x0014ca80
0013b3cc: 00000000 nop
0013b3d0: 16200003 bne r17,r0,0x0013b3e0
0013b3d4: 00000000 nop
0013b3d8: 0c04bc13 jal 0x0012f04c
0013b3dc: 02802021 addu r4,r20,r0
0013b3e0: 3c048017 lui r4,0x8017
0013b3e4: 248497d0 addiu r4,r4,0x97d0
0013b3e8: 0c04e025 jal 0x00138094
0013b3ec: 00000000 nop
0013b3f0: 1440002e bne r2,r0,0x0013b4ac
0013b3f4: 00000000 nop
0013b3f8: 06a00014 bltz r21,0x0013b44c
0013b3fc: 32220001 andi r2,r17,0x0001
0013b400: 00022140 sll r4,r2,0x05
0013b404: 00822023 subu r4,r4,r2
0013b408: 00042080 sll r4,r4,0x02
0013b40c: 3c028017 lui r2,0x8017
0013b410: 8c424038 lw r2,0x4038(r2)
0013b414: 00000000 nop
0013b418: 2442ffff addiu r2,r2,0xffff
0013b41c: 3c018017 lui r1,0x8017
0013b420: ac224038 sw r2,0x4038(r1)
0013b424: 0c04e118 jal 0x00138460
0013b428: 02642021 addu r4,r19,r4
0013b42c: 3c028017 lui r2,0x8017
0013b430: 8c424038 lw r2,0x4038(r2)
0013b434: 00000000 nop
0013b438: 24420001 addiu r2,r2,0x0001
0013b43c: 3c018017 lui r1,0x8017
0013b440: ac224038 sw r2,0x4038(r1)
0013b444: 0804ed19 j 0x0013b464
0013b448: 02402021 addu r4,r18,r0
0013b44c: 00022140 sll r4,r2,0x05
0013b450: 00822023 subu r4,r4,r2
0013b454: 00042080 sll r4,r4,0x02
0013b458: 0c04e118 jal 0x00138460
0013b45c: 02642021 addu r4,r19,r4
0013b460: 02402021 addu r4,r18,r0
0013b464: 32220001 andi r2,r17,0x0001
0013b468: 00028140 sll r16,r2,0x05
0013b46c: 02028023 subu r16,r16,r2
0013b470: 00108080 sll r16,r16,0x02
0013b474: 02708021 addu r16,r19,r16
0013b478: 02002821 addu r5,r16,r0
0013b47c: 02203021 addu r6,r17,r0
0013b480: 0c04e15c jal 0x00138570
0013b484: 2407ffff addiu r7,r0,0xffff
0013b488: 02402021 addu r4,r18,r0
0013b48c: 0c04df04 jal 0x00137c10
0013b490: 00002821 addu r5,r0,r0
0013b494: 0c04dfe1 jal 0x00137f84
0013b498: 02402021 addu r4,r18,r0
0013b49c: 0c04e2c4 jal 0x00138b10
0013b4a0: 02002021 addu r4,r16,r0
0013b4a4: 0804ecf2 j 0x0013b3c8
0013b4a8: 26310001 addiu r17,r17,0x0001
0013b4ac: 3c018016 lui r1,0x8016
0013b4b0: ac205fbc sw r0,0x5fbc(r1)
0013b4b4: 0c0532a0 jal 0x0014ca80
0013b4b8: 00000000 nop
0013b4bc: 0c0532fd jal 0x0014cbf4
0013b4c0: 00000000 nop
0013b4c4: 14400003 bne r2,r0,0x0013b4d4
0013b4c8: 00000000 nop
0013b4cc: 0c053256 jal 0x0014c958
0013b4d0: 00000000 nop
0013b4d4: 8fbf0138 lw r31,0x0138(r29)
0013b4d8: 8fb50134 lw r21,0x0134(r29)
0013b4dc: 8fb40130 lw r20,0x0130(r29)
0013b4e0: 8fb3012c lw r19,0x012c(r29)
0013b4e4: 8fb20128 lw r18,0x0128(r29)
0013b4e8: 8fb10124 lw r17,0x0124(r29)
0013b4ec: 8fb00120 lw r16,0x0120(r29)
0013b4f0: 27bd0140 addiu r29,r29,0x0140
0013b4f4: 03e00008 jr r31
0013b4f8: 00000000 nop