001356b0 - 00135cb4
Jump to navigation
Jump to search
001356b0: 3c028019 lui r2,0x8019 001356b4: 80425671 lb r2,0x5671(r2) 001356b8: 27bdffc0 addiu r29,r29,0xffc0 001356bc: afbf003c sw r31,0x003c(r29) 001356c0: afb20038 sw r18,0x0038(r29) 001356c4: afb10034 sw r17,0x0034(r29) 001356c8: 1440000b bne r2,r0,0x001356f8 001356cc: afb00030 sw r16,0x0030(r29) 001356d0: 34020001 ori r2,r0,0x0001 001356d4: 3c018019 lui r1,0x8019 001356d8: a0225671 sb r2,0x5671(r1) 001356dc: 2402ffff addiu r2,r0,0xffff 001356e0: 3c01801d lui r1,0x801d 001356e4: a422d090 sh r2,-0x2f70(r1) 001356e8: 3c01801d lui r1,0x801d 001356ec: a020d088 sb r0,-0x2f78(r1) 001356f0: 3c01801d lui r1,0x801d 001356f4: a420d20c sh r0,-0x2df4(r1) 001356f8: 3c06801d lui r6,0x801d 001356fc: 8cc6d52c lw r6,-0x2ad4(r6) 00135700: 00000000 nop 00135704: 30c20040 andi r2,r6,0x0040 00135708: 10400012 beq r2,r0,0x00135754 0013570c: 34020002 ori r2,r0,0x0002 00135710: 3c03801d lui r3,0x801d 00135714: 8063d088 lb r3,-0x2f78(r3) 00135718: 3c018019 lui r1,0x8019 0013571c: a022bacc sb r2,-0x4534(r1) 00135720: 10600005 beq r3,r0,0x00135738 00135724: 34020001 ori r2,r0,0x0001 00135728: 3c018019 lui r1,0x8019 0013572c: a0225673 sb r2,0x5673(r1) 00135730: 0804d6e3 j 0x00135b8c 00135734: 00000000 nop 00135738: 34020006 ori r2,r0,0x0006 0013573c: 3c018019 lui r1,0x8019 00135740: a0205671 sb r0,0x5671(r1) 00135744: 3c01801d lui r1,0x801d 00135748: a422d784 sh r2,-0x287c(r1) 0013574c: 0804d6e3 j 0x00135b8c 00135750: 00000000 nop 00135754: 3c02801d lui r2,0x801d 00135758: 8042d088 lb r2,-0x2f78(r2) 0013575c: 00000000 nop 00135760: 1440006a bne r2,r0,0x0013590c 00135764: 30c30020 andi r3,r6,0x0020 00135768: 34040005 ori r4,r0,0x0005 0013576c: 34050002 ori r5,r0,0x0002 00135770: 3c108019 lui r16,0x8019 00135774: 82105672 lb r16,0x5672(r16) 00135778: 0c04ae85 jal 0x0012ba14 0013577c: 34070006 ori r7,r0,0x0006 00135780: 3c018019 lui r1,0x8019 00135784: a0225672 sb r2,0x5672(r1) 00135788: 00021600 sll r2,r2,0x18 0013578c: 00022603 sra r4,r2,0x18 00135790: 12040003 beq r16,r4,0x001357a0 00135794: 00000000 nop 00135798: 3c01801d lui r1,0x801d 0013579c: a420d20c sh r0,-0x2df4(r1) 001357a0: 3c028019 lui r2,0x8019 001357a4: 8442ba20 lh r2,-0x45e0(r2) 001357a8: 00000000 nop 001357ac: 00021080 sll r2,r2,0x02 001357b0: 3c01801d lui r1,0x801d 001357b4: 00220821 addu r1,r1,r2 001357b8: 8c23d5ec lw r3,-0x2a14(r1) 001357bc: 00041040 sll r2,r4,0x01 001357c0: 00431821 addu r3,r2,r3 001357c4: 94620054 lhu r2,0x0054(r3) 001357c8: 00000000 nop 001357cc: 10400006 beq r2,r0,0x001357e8 001357d0: 00000000 nop 001357d4: 94620054 lhu r2,0x0054(r3) 001357d8: 00000000 nop 001357dc: 304203ff andi r2,r2,0x03ff 001357e0: 0804d5fb j 0x001357ec 001357e4: 24436800 addiu r3,r2,0x6800 001357e8: 2403ffff addiu r3,r0,0xffff 001357ec: 3c02801d lui r2,0x801d 001357f0: 8c42d52c lw r2,-0x2ad4(r2) 001357f4: 3c01801d lui r1,0x801d 001357f8: ac23d754 sw r3,-0x28ac(r1) 001357fc: 30420020 andi r2,r2,0x0020 00135800: 104000e2 beq r2,r0,0x00135b8c 00135804: 34020001 ori r2,r0,0x0001 00135808: 3c10801d lui r16,0x801d 0013580c: 2610d230 addiu r16,r16,0xd230 00135810: 02003821 addu r7,r16,r0 00135814: 3c048019 lui r4,0x8019 00135818: 8484ba20 lh r4,-0x45e0(r4) 0013581c: 3c05801d lui r5,0x801d 00135820: 84a5d218 lh r5,-0x2de8(r5) 00135824: 3c068019 lui r6,0x8019 00135828: 80c65672 lb r6,0x5672(r6) 0013582c: 3c018019 lui r1,0x8019 00135830: a022bacc sb r2,-0x4534(r1) 00135834: 3c018019 lui r1,0x8019 00135838: a022ba24 sb r2,-0x45dc(r1) 0013583c: 3c01801d lui r1,0x801d 00135840: a022d088 sb r2,-0x2f78(r1) 00135844: 2402ffff addiu r2,r0,0xffff 00135848: 3c01801d lui r1,0x801d 0013584c: a422d090 sh r2,-0x2f70(r1) 00135850: 34020001 ori r2,r0,0x0001 00135854: 3c01801d lui r1,0x801d 00135858: a020d71c sb r0,-0x28e4(r1) 0013585c: 3c018019 lui r1,0x8019 00135860: ac22ba64 sw r2,-0x459c(r1) 00135864: 0c04940b jal 0x0012502c 00135868: afa20010 sw r2,0x0010(r29) 0013586c: 3c028019 lui r2,0x8019 00135870: 80425672 lb r2,0x5672(r2) 00135874: 00000000 nop 00135878: 10400002 beq r2,r0,0x00135884 0013587c: 00002021 addu r4,r0,r0 00135880: 2444ffff addiu r4,r2,0xffff 00135884: 27a50018 addiu r5,r29,0x0018 00135888: 27a6001a addiu r6,r29,0x001a 0013588c: 0c0462fc jal 0x00118bf0 00135890: 02003821 addu r7,r16,r0 00135894: 87a50018 lh r5,0x0018(r29) 00135898: 87a6001a lh r6,0x001a(r29) 0013589c: 3c07801d lui r7,0x801d 001358a0: 8ce7d8c0 lw r7,-0x2740(r7) 001358a4: 0c04992a jal 0x001264a8 001358a8: 02002021 addu r4,r16,r0 001358ac: 3c028012 lui r2,0x8012 001358b0: 2442a9d8 addiu r2,r2,0xa9d8 001358b4: 3c01801d lui r1,0x801d 001358b8: ac22d794 sw r2,-0x286c(r1) 001358bc: 3c028012 lui r2,0x8012 001358c0: 2442a97c addiu r2,r2,0xa97c 001358c4: 3c01801d lui r1,0x801d 001358c8: ac22d798 sw r2,-0x2868(r1) 001358cc: 3c028012 lui r2,0x8012 001358d0: 2442aa34 addiu r2,r2,0xaa34 001358d4: 3c01801d lui r1,0x801d 001358d8: ac22d79c sw r2,-0x2864(r1) 001358dc: 3c028012 lui r2,0x8012 001358e0: 2442aaa4 addiu r2,r2,0xaaa4 001358e4: 3c01801d lui r1,0x801d 001358e8: ac22d7a0 sw r2,-0x2860(r1) 001358ec: 3c028013 lui r2,0x8013 001358f0: 24423f1c addiu r2,r2,0x3f1c 001358f4: 3c01801d lui r1,0x801d 001358f8: ac22d7a4 sw r2,-0x285c(r1) 001358fc: 0c0498dd jal 0x00126374 00135900: 34040002 ori r4,r0,0x0002 00135904: 0804d6e3 j 0x00135b8c 00135908: 00000000 nop 0013590c: 3c02801d lui r2,0x801d 00135910: 8442d20c lh r2,-0x2df4(r2) 00135914: 00000000 nop 00135918: 00021040 sll r2,r2,0x01 0013591c: 3c01801d lui r1,0x801d 00135920: 00220821 addu r1,r1,r2 00135924: 9432d230 lhu r18,-0x2dd0(r1) 00135928: 1060003f beq r3,r0,0x00135a28 0013592c: 00000000 nop 00135930: 3c02801d lui r2,0x801d 00135934: 8442d824 lh r2,-0x27dc(r2) removing equip flag? 00135938: 00000000 nop 0013593c: 1040000e beq r2,r0,0x00135978 00135940: 32424000 andi r2,r18,0x4000 00135944: 1440000d bne r2,r0,0x0013597c 00135948: 34020005 ori r2,r0,0x0005 0013594c: 00121400 sll r2,r18,0x10 00135950: 00028c03 sra r17,r2,0x10 00135954: 3c048019 lui r4,0x8019 00135958: 8484ba20 lh r4,-0x45e0(r4) load unit ID 0013595c: 3c058019 lui r5,0x8019 00135960: 80a55672 lb r5,0x5672(r5) load equip slot 00135964: 0c049185 jal 0x00124614 WORLD: 2 H/S Check on Equip 00135968: 02203021 addu r6,r17,r0 weapon to equip 0013596c: 00408021 addu r16,r2,r0 00135970: 06010006 bgez r16,0x0013598c branch if invalid equip* 00135974: 00000000 nop 00135978: 34020005 ori r2,r0,0x0005 0013597c: 3c018019 lui r1,0x8019 00135980: a022bacc sb r2,-0x4534(r1) if invalid, store 0x5 here? 00135984: 0804d68a j 0x00135a28 00135988: 00000000 nop 0013598c: 3c048019 lui r4,0x8019 00135990: 8484ba20 lh r4,-0x45e0(r4) load unit ID 00135994: 3c058019 lui r5,0x8019 00135998: 80a55672 lb r5,0x5672(r5) load equip slot 0013599c: 0c04db7d jal 0x00136df4 00136df4 - 00136eac - store item in fitting room array/deduct cost if unequipping fitting room item 001359a0: 00000000 nop 001359a4: 02202021 addu r4,r17,r0 item to equip 001359a8: 3c038019 lui r3,0x8019 001359ac: 8463ba20 lh r3,-0x45e0(r3) load unit ID 001359b0: 3c028019 lui r2,0x8019 001359b4: 80425672 lb r2,0x5672(r2) load equip slot 001359b8: 00031880 sll r3,r3,0x02 001359bc: 3c01801d lui r1,0x801d 001359c0: 00230821 addu r1,r1,r3 001359c4: 8c23d5ec lw r3,-0x2a14(r1) load formation pointer 001359c8: 00021040 sll r2,r2,0x01 001359cc: 00431021 addu r2,r2,r3 001359d0: 36438000 ori r3,r18,0x8000 add 0x8000 flag to item? (fitting room item?) 001359d4: 0c048dc2 jal 0x00123708 find price of item 001359d8: a4430054 sh r3,0x0054(r2) store item in unit's equip 001359dc: 0c04d4d8 jal 0x00135360 add price of item to current fitting room cost 001359e0: 00402021 addu r4,r2,r0 001359e4: 34020001 ori r2,r0,0x0001 001359e8: 12020008 beq r16,r2,0x00135a0c branch if not 2 handing item 001359ec: 34020001 ori r2,r0,0x0001 001359f0: 3c058019 lui r5,0x8019 001359f4: 80a55672 lb r5,0x5672(r5) load equip slot 001359f8: 3c048019 lui r4,0x8019 001359fc: 8484ba20 lh r4,-0x45e0(r4) load unit ID 00135a00: 0c04db7d jal 0x00136df4 00136df4 - 00136eac - store item in fitting room array/deduct cost if unequipping fitting room item 00135a04: 2ca50001 sltiu r5,r5,0x0001 reverse hand polarity 00135a08: 34020001 ori r2,r0,0x0001 00135a0c: 3c018019 lui r1,0x8019 00135a10: a0225673 sb r2,0x5673(r1) set 0x80195673 = 1? 00135a14: 3402000a ori r2,r0,0x000a 00135a18: 3c018019 lui r1,0x8019 00135a1c: a022bacc sb r2,-0x4534(r1) store 0x8019bacc = 0xa 00135a20: 0c045466 jal 0x00115198 00115198 - 0011545c - reset and initialise unit stats/data 00135a24: 00000000 nop 00135a28: 3c02801d lui r2,0x801d 00135a2c: 8442d824 lh r2,-0x27dc(r2) removing equip flag? 00135a30: 00000000 nop 00135a34: 1040003a beq r2,r0,0x00135b20 00135a38: 00000000 nop 00135a3c: 3c03801d lui r3,0x801d 00135a40: 8463d20c lh r3,-0x2df4(r3) equip slot 00135a44: 3c02801d lui r2,0x801d 00135a48: 8442d090 lh r2,-0x2f70(r2) load equip slot? 00135a4c: 00000000 nop 00135a50: 10430033 beq r2,r3,0x00135b20 branch if equip slots are identical? 00135a54: 00603821 addu r7,r3,r0 00135a58: 34040014 ori r4,r0,0x0014 current formation ID = preview unit 00135a5c: 00123400 sll r6,r18,0x10 00135a60: 3c058019 lui r5,0x8019 00135a64: 80a55672 lb r5,0x5672(r5) load equip slot 00135a68: 3c01801d lui r1,0x801d 00135a6c: a427d090 sh r7,-0x2f70(r1) store new equip slot 00135a70: 0c04910a jal 0x00124428 Finalise Unit's Equips from Formation 00135a74: 00063403 sra r6,r6,0x10 Item ID 00135a78: 00408021 addu r16,r2,r0 00135a7c: 34020001 ori r2,r0,0x0001 00135a80: 16020022 bne r16,r2,0x00135b0c branch if not 2 handing equipment 00135a84: 00000000 nop 00135a88: 0c0455ad jal 0x001156b4 001156b4 - 0011574c 00135a8c: 34040001 ori r4,r0,0x0001 show preview window? 00135a90: 3c048019 lui r4,0x8019 00135a94: 2484ab40 addiu r4,r4,0xab40 00135a98: 3c028019 lui r2,0x8019 00135a9c: 8442ba20 lh r2,-0x45e0(r2) load unit ID 00135aa0: 3c07801d lui r7,0x801d 00135aa4: 8ce7d63c lw r7,-0x29c4(r7) preview unit formation pointer? 00135aa8: 3c058019 lui r5,0x8019 00135aac: 24a5aa98 addiu r5,r5,0xaa98 00135ab0: 3c018019 lui r1,0x8019 00135ab4: ac30bac4 sw r16,-0x453c(r1) store 2 hands check in 8018bac4 00135ab8: 00021080 sll r2,r2,0x02 00135abc: 3c01801d lui r1,0x801d 00135ac0: 00220821 addu r1,r1,r2 00135ac4: 8c26d5ec lw r6,-0x2a14(r1) load formation pointer 00135ac8: 24e70054 addiu r7,r7,0x0054 00135acc: 0c048d0c jal 0x00123430 00123430 - 00123504 - calculate preview bonuses for equipment 00135ad0: 24c60054 addiu r6,r6,0x0054 formation pointer + 0x54 (equips) 00135ad4: 3406000a ori r6,r0,0x000a 0xa 00135ad8: 3c028019 lui r2,0x8019 00135adc: 8442ba20 lh r2,-0x45e0(r2) load unit ID 00135ae0: 3c05801d lui r5,0x801d 00135ae4: 8ca5d63c lw r5,-0x29c4(r5) preview unit formation pointer? 00135ae8: 00021080 sll r2,r2,0x02 00135aec: 3c01801d lui r1,0x801d 00135af0: 00220821 addu r1,r1,r2 00135af4: 8c24d5ec lw r4,-0x2a14(r1) load unit's formation pointer 00135af8: 24a50054 addiu r5,r5,0x0054 00135afc: 0c0088b7 jal 0x000222dc 00135b00: 24840054 addiu r4,r4,0x0054 copy 0xa bytes from r4 to r5? 00135b04: 0804d6c6 j 0x00135b18 00135b08: 34020001 ori r2,r0,0x0001 00135b0c: 0c0455ad jal 0x001156b4 001156b4 - 0011574c 00135b10: 00002021 addu r4,r0,r0 do not preview bonus stats window? 00135b14: 34020001 ori r2,r0,0x0001 00135b18: 3c018019 lui r1,0x8019 00135b1c: ac22ba38 sw r2,-0x45c8(r1) store 0x1 here? 00135b20: 0c044d1e jal 0x00113478 00113478 - 001134e4 - check threads 0xf and 0x1? if running both, return 1. if 1, stores something later in 801c9e8c 00135b24: 00000000 nop 00135b28: 3c048019 lui r4,0x8019 00135b2c: 2484559c addiu r4,r4,0x559c 00135b30: 3c05801d lui r5,0x801d 00135b34: 8ca5d52c lw r5,-0x2ad4(r5) if running threads 0xf & 0x1, store 0x801cd52c in 0x801c9e8c 00135b38: 0c04995c jal 0x00126570 00126570 - 001265bc 00135b3c: 00403021 addu r6,r2,r0 00135b40: 3c02801d lui r2,0x801d 00135b44: 8442d824 lh r2,-0x27dc(r2) removing equip flag? 00135b48: 00000000 nop 00135b4c: 1040000c beq r2,r0,0x00135b80 00135b50: 00000000 nop 00135b54: 3c02801d lui r2,0x801d 00135b58: 8442d20c lh r2,-0x2df4(r2) load equip slot 00135b5c: 00000000 nop 00135b60: 00021040 sll r2,r2,0x01 00135b64: 3c01801d lui r1,0x801d 00135b68: 00220821 addu r1,r1,r2 00135b6c: 9422d230 lhu r2,-0x2dd0(r1) load equip slots? equip? (preview??) 00135b70: 00000000 nop 00135b74: 304203ff andi r2,r2,0x03ff 00135b78: 0804d6e1 j 0x00135b84 00135b7c: 24426800 addiu r2,r2,0x6800 set item flags to 0x4000, 0x2000, and 0x0800? 00135b80: 2402ffff addiu r2,r0,0xffff ? item = -1 00135b84: 3c01801d lui r1,0x801d 00135b88: ac22d754 sw r2,-0x28ac(r1) Store Item ID in ? 00135b8c: 3c028019 lui r2,0x8019 00135b90: 80425673 lb r2,0x5673(r2) 00135b94: 00000000 nop 00135b98: 10400020 beq r2,r0,0x00135c1c 00135b9c: 34020001 ori r2,r0,0x0001 00135ba0: 3c01801d lui r1,0x801d 00135ba4: a022d71c sb r2,-0x28e4(r1) Store 1 00135ba8: 34020002 ori r2,r0,0x0002 00135bac: 3c018019 lui r1,0x8019 00135bb0: a0205673 sb r0,0x5673(r1) set? as 0? 00135bb4: 3c018019 lui r1,0x8019 00135bb8: ac20ba64 sw r0,-0x459c(r1) 00135bbc: 3c01801d lui r1,0x801d 00135bc0: a020d088 sb r0,-0x2f78(r1) 00135bc4: 3c018019 lui r1,0x8019 00135bc8: a022ba24 sb r2,-0x45dc(r1) 00135bcc: 0c0498dd jal 0x00126374 00126374 - 001263a4 00135bd0: 00002021 addu r4,r0,r0 00135bd4: 0c0455ad jal 0x001156b4 001156b4 - 0011574c]] 00135bd8: 00002021 addu r4,r0,r0 Do not show preview stats window? 00135bdc: 3c038019 lui r3,0x8019 00135be0: 80635672 lb r3,0x5672(r3) Load equip slot 00135be4: 34020001 ori r2,r0,0x0001 00135be8: 3c018019 lui r1,0x8019 00135bec: ac22ba38 sw r2,-0x45c8(r1) store 1 here? 00135bf0: 10600002 beq r3,r0,0x00135bfc branch if right hand? 00135bf4: 00002021 addu r4,r0,r0 00135bf8: 2464ffff addiu r4,r3,0xffff if left hand, right hand 00135bfc: 3c05801d lui r5,0x801d 00135c00: 84a5d20c lh r5,-0x2df4(r5) load equip slot 00135c04: 3c06801d lui r6,0x801d 00135c08: 84c6d54c lh r6,-0x2ab4(r6) stored beside equip slot? 00135c0c: 3c07801d lui r7,0x801d 00135c10: 24e7d230 addiu r7,r7,0xd230 ? 00135c14: 0c0462e9 jal 0x00118ba4 00118ba4 - 00118bec 00135c18: 00000000 nop 00135c1c: 3404003d ori r4,r0,0x003d 00135c20: 3c028019 lui r2,0x8019 00135c24: 80425672 lb r2,0x5672(r2) load equip slot 00135c28: 3c108019 lui r16,0x8019 00135c2c: 2610567a addiu r16,r16,0x567a 00135c30: 00021100 sll r2,r2,0x04 00135c34: 24420090 addiu r2,r2,0x0090 equip slot * 0x10 + 0x90 00135c38: 0c04a62c jal 0x001298b0 store 0x3d in 0x801c9e88 00135c3c: a6020000 sh r2,0x0000(r16) store cursor position 00135c40: 00003021 addu r6,r0,r0 00135c44: 3c02801d lui r2,0x801d 00135c48: 8042d088 lb r2,-0x2f78(r2) 00135c4c: 00000000 nop 00135c50: 14400006 bne r2,r0,0x00135c6c 00135c54: 2604fffe addiu r4,r16,0xfffe 00135c58: 3c028015 lui r2,0x8015 00135c5c: 8c42330c lw r2,0x330c(r2) 00135c60: 00000000 nop 00135c64: 10400002 beq r2,r0,0x00135c70 00135c68: 00000000 nop 00135c6c: 34060001 ori r6,r0,0x0001 00135c70: 3c058019 lui r5,0x8019 00135c74: 24a55674 addiu r5,r5,0x5674 00135c78: 0c04a0b7 jal 0x001282dc 001282dc - 00128598 00135c7c: 00000000 nop 00135c80: 3c02801d lui r2,0x801d 00135c84: 9042d71c lbu r2,-0x28e4(r2) 00135c88: 00000000 nop 00135c8c: 10400003 beq r2,r0,0x00135c9c 00135c90: 00000000 nop 00135c94: 0c04d74e jal 0x00135d38 00135c98: 00000000 nop 00135c9c: 8fbf003c lw r31,0x003c(r29) 00135ca0: 8fb20038 lw r18,0x0038(r29) 00135ca4: 8fb10034 lw r17,0x0034(r29) 00135ca8: 8fb00030 lw r16,0x0030(r29) 00135cac: 27bd0040 addiu r29,r29,0x0040 00135cb0: 03e00008 jr r31 00135cb4: 00000000 nop