Difference between revisions of "00143418 - 001439bc"
Jump to navigation
Jump to search
m |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
0014341c: afbf0028 sw r31,0x0028(r29) | 0014341c: afbf0028 sw r31,0x0028(r29) | ||
00143420: afb10024 sw r17,0x0024(r29) | 00143420: afb10024 sw r17,0x0024(r29) | ||
− | 00143424: 0c04fc83 jal 0x0013f20c | + | 00143424: 0c04fc83 jal 0x0013f20c # [[0013f20c - 0013f3f8]] |
00143428: afb00020 sw r16,0x0020(r29) | 00143428: afb00020 sw r16,0x0020(r29) | ||
0014342c: 3c048017 lui r4,0x8017 | 0014342c: 3c048017 lui r4,0x8017 | ||
− | 00143430: 84844054 lh r4,0x4054(r4) | + | 00143430: 84844054 lh r4,0x4054(r4) # check if "ChangeMapBeta" has been used |
00143434: 2410ffff addiu r16,r0,0xffff | 00143434: 2410ffff addiu r16,r0,0xffff | ||
− | 00143438: 10900003 beq r4,r16,0x00143448 | + | 00143438: 10900003 beq r4,r16,0x00143448 # branch if not |
0014343c: 00008821 addu r17,r0,r0 | 0014343c: 00008821 addu r17,r0,r0 | ||
− | 00143440: 0c0230b7 jal 0x0008c2dc | + | 00143440: 0c0230b7 jal 0x0008c2dc # [[0008c2dc - 0008c31c]] |
00143444: 34050010 ori r5,r0,0x0010 | 00143444: 34050010 ori r5,r0,0x0010 | ||
00143448: 3c048017 lui r4,0x8017 | 00143448: 3c048017 lui r4,0x8017 | ||
− | 0014344c: 8484405c lh r4,0x405c(r4) | + | 0014344c: 8484405c lh r4,0x405c(r4) # check if "ChangeMap" has been used |
00143450: 00000000 nop | 00143450: 00000000 nop | ||
00143454: 10900003 beq r4,r16,0x00143464 | 00143454: 10900003 beq r4,r16,0x00143464 | ||
00143458: 00000000 nop | 00143458: 00000000 nop | ||
− | 0014345c: 0c0230c8 jal 0x0008c320 | + | 0014345c: 0c0230c8 jal 0x0008c320 # [[0008c320 - 0008c360]] |
00143460: 34050010 ori r5,r0,0x0010 | 00143460: 34050010 ori r5,r0,0x0010 | ||
00143464: 3c048017 lui r4,0x8017 | 00143464: 3c048017 lui r4,0x8017 | ||
− | 00143468: 8484d9bc lh r4,-0x2644(r4) | + | 00143468: 8484d9bc lh r4,-0x2644(r4) # check if "Reveal" has been used |
0014346c: 00000000 nop | 0014346c: 00000000 nop | ||
00143470: 10800003 beq r4,r0,0x00143480 | 00143470: 10800003 beq r4,r0,0x00143480 | ||
00143474: 00000000 nop | 00143474: 00000000 nop | ||
− | 00143478: 0c0230d9 jal 0x0008c364 | + | 00143478: 0c0230d9 jal 0x0008c364 # [[0008c364 - 0008c39c]] |
0014347c: 00000000 nop | 0014347c: 00000000 nop | ||
00143480: 3c028016 lui r2,0x8016 | 00143480: 3c028016 lui r2,0x8016 | ||
Line 49: | Line 49: | ||
001434d4: 3c058017 lui r5,0x8017 | 001434d4: 3c058017 lui r5,0x8017 | ||
001434d8: 94a5405a lhu r5,0x405a(r5) | 001434d8: 94a5405a lhu r5,0x405a(r5) | ||
− | 001434dc: 0c023847 jal 0x0008e11c | + | 001434dc: 0c023847 jal 0x0008e11c # [[0008e11c - 0008e14c]] |
001434e0: 00000000 nop | 001434e0: 00000000 nop | ||
001434e4: 34020001 ori r2,r0,0x0001 | 001434e4: 34020001 ori r2,r0,0x0001 | ||
Line 72: | Line 72: | ||
00143530: 3c048017 lui r4,0x8017 | 00143530: 3c048017 lui r4,0x8017 | ||
00143534: 94844058 lhu r4,0x4058(r4) | 00143534: 94844058 lhu r4,0x4058(r4) | ||
− | 00143538: 0c023854 jal 0x0008e150 | + | 00143538: 0c023854 jal 0x0008e150 # [[0008e150 - 0008e178]] |
0014353c: 00000000 nop | 0014353c: 00000000 nop | ||
00143540: 3c018016 lui r1,0x8016 | 00143540: 3c018016 lui r1,0x8016 | ||
Line 81: | Line 81: | ||
00143554: 10400005 beq r2,r0,0x0014356c | 00143554: 10400005 beq r2,r0,0x0014356c | ||
00143558: 00000000 nop | 00143558: 00000000 nop | ||
− | 0014355c: 0c03d2b3 jal 0x000f4acc | + | 0014355c: 0c03d2b3 jal 0x000f4acc # [[000f4acc - 000f4dd0]] |
00143560: 34040003 ori r4,r0,0x0003 | 00143560: 34040003 ori r4,r0,0x0003 | ||
00143564: 3c018016 lui r1,0x8016 | 00143564: 3c018016 lui r1,0x8016 | ||
Line 90: | Line 90: | ||
00143578: 14620005 bne r3,r2,0x00143590 # branch if it has | 00143578: 14620005 bne r3,r2,0x00143590 # branch if it has | ||
0014357c: 34020002 ori r2,r0,0x0002 | 0014357c: 34020002 ori r2,r0,0x0002 | ||
− | 00143580: 0c02381a jal 0x0008e068 # | + | 00143580: 0c02381a jal 0x0008e068 # [[0008e068 - 0008e090]] <- load new map palette? (note on another page) |
00143584: 00000000 nop | 00143584: 00000000 nop | ||
00143588: 08050d68 j 0x001435a0 | 00143588: 08050d68 j 0x001435a0 | ||
0014358c: 00000000 nop | 0014358c: 00000000 nop | ||
+ | |||
00143590: 1462000b bne r3,r2,0x001435c0 # if it has 2? else branch | 00143590: 1462000b bne r3,r2,0x001435c0 # if it has 2? else branch | ||
00143594: 00000000 nop | 00143594: 00000000 nop | ||
− | 00143598: 0c023825 jal 0x0008e094 | + | 00143598: 0c023825 jal 0x0008e094 # [[0008e094 - 0008e0b8]] |
0014359c: 00000000 nop | 0014359c: 00000000 nop | ||
001435a0: 14400007 bne r2,r0,0x001435c0 # branch if return != 0 | 001435a0: 14400007 bne r2,r0,0x001435c0 # branch if return != 0 | ||
Line 116: | Line 117: | ||
001435e0: 14400008 bne r2,r0,0x00143604 | 001435e0: 14400008 bne r2,r0,0x00143604 | ||
001435e4: 34020002 ori r2,r0,0x0002 | 001435e4: 34020002 ori r2,r0,0x0002 | ||
− | 001435e8: 0c04ed64 jal 0x0013b590 | + | 001435e8: 0c04ed64 jal 0x0013b590 # [[Get Script Variable]] |
− | 001435ec: 34040033 ori r4,r0,0x0033 | + | 001435ec: 34040033 ori r4,r0,0x0033 # get variable "current map" |
001435f0: 00402021 addu r4,r2,r0 | 001435f0: 00402021 addu r4,r2,r0 | ||
− | 001435f4: 0c03cdc6 jal 0x000f3718 | + | 001435f4: 0c03cdc6 jal 0x000f3718 # [[Load Map Data]] |
− | 001435f8: 34050099 ori r5,r0,0x0099 | + | 001435f8: 34050099 ori r5,r0,0x0099 # instruction = skip (????) |
001435fc: 08050d8b j 0x0014362c | 001435fc: 08050d8b j 0x0014362c | ||
00143600: 00000000 nop | 00143600: 00000000 nop | ||
Line 126: | Line 127: | ||
00143604: 1462000f bne r3,r2,0x00143644 # branch if "AppendMapState" value isn't 2? | 00143604: 1462000f bne r3,r2,0x00143644 # branch if "AppendMapState" value isn't 2? | ||
00143608: 00000000 nop | 00143608: 00000000 nop | ||
− | 0014360c: 0c04ed64 jal 0x0013b590 | + | 0014360c: 0c04ed64 jal 0x0013b590 # [[Get Script Variable]] |
− | 00143610: 34040033 ori r4,r0,0x0033 | + | 00143610: 34040033 ori r4,r0,0x0033 # get variable "current map" |
00143614: 00402021 addu r4,r2,r0 | 00143614: 00402021 addu r4,r2,r0 | ||
− | 00143618: 0c03cdc6 jal 0x000f3718 | + | 00143618: 0c03cdc6 jal 0x000f3718 # [[Load Map Data]] |
− | 0014361c: 3405009c ori r5,r0,0x009c | + | 0014361c: 3405009c ori r5,r0,0x009c # instruction = ? |
00143620: 3403009b ori r3,r0,0x009b | 00143620: 3403009b ori r3,r0,0x009b | ||
00143624: 14430007 bne r2,r3,0x00143644 | 00143624: 14430007 bne r2,r3,0x00143644 | ||
Line 141: | Line 142: | ||
00143640: a4225fe0 sh r2,0x5fe0(r1) # increment "AppendMapState" value? | 00143640: a4225fe0 sh r2,0x5fe0(r1) # increment "AppendMapState" value? | ||
00143644: 3c048016 lui r4,0x8016 | 00143644: 3c048016 lui r4,0x8016 | ||
− | 00143648: 8484605c lh r4,0x605c(r4) | + | 00143648: 8484605c lh r4,0x605c(r4) # check if callfunction "Destroy Morund entrance" was used |
− | 0014364c: 34020002 ori r2,r0,0x0002 | + | 0014364c: 34020002 ori r2,r0,0x0002 # destroy morund entrance check |
00143650: 1482000b bne r4,r2,0x00143680 | 00143650: 1482000b bne r4,r2,0x00143680 | ||
00143654: 00801821 addu r3,r4,r0 | 00143654: 00801821 addu r3,r4,r0 | ||
Line 148: | Line 149: | ||
0014365c: 3c018016 lui r1,0x8016 | 0014365c: 3c018016 lui r1,0x8016 | ||
00143660: a422605c sh r2,0x605c(r1) | 00143660: a422605c sh r2,0x605c(r1) | ||
− | 00143664: 3404009a ori r4,r0,0x009a | + | 00143664: 3404009a ori r4,r0,0x009a # -> command 0x30 |
− | 00143668: 34050001 ori r5,r0,0x0001 | + | 00143668: 34050001 ori r5,r0,0x0001 # 1 |
− | 0014366c: 34060001 ori r6,r0,0x0001 | + | 0014366c: 34060001 ori r6,r0,0x0001 # 1 |
− | 00143670: 0c03c2f8 jal 0x000f0be0 | + | 00143670: 0c03c2f8 jal 0x000f0be0 # [[000f0be0 - 000f1200]] |
− | 00143674: 34070001 ori r7,r0,0x0001 | + | 00143674: 34070001 ori r7,r0,0x0001 # 1 |
00143678: 08050dac j 0x001436b0 | 00143678: 08050dac j 0x001436b0 | ||
0014367c: 00000000 nop | 0014367c: 00000000 nop | ||
− | 00143680: 34020003 ori r2,r0,0x0003 | + | |
+ | 00143680: 34020003 ori r2,r0,0x0003 # ? | ||
00143684: 1482000a bne r4,r2,0x001436b0 | 00143684: 1482000a bne r4,r2,0x001436b0 | ||
00143688: 00000000 nop | 00143688: 00000000 nop | ||
− | 0014368c: 0c04ed64 jal 0x0013b590 | + | 0014368c: 0c04ed64 jal 0x0013b590 # [[Get Script Variable]] |
− | 00143690: 34040033 ori r4,r0,0x0033 | + | 00143690: 34040033 ori r4,r0,0x0033 # current map |
00143694: 00402021 addu r4,r2,r0 | 00143694: 00402021 addu r4,r2,r0 | ||
− | 00143698: 0c03cdc6 jal 0x000f3718 | + | 00143698: 0c03cdc6 jal 0x000f3718 # [[Load Map Data]] |
− | 0014369c: 34050076 ori r5,r0,0x0076 | + | 0014369c: 34050076 ori r5,r0,0x0076 # instruction = skip? |
001436a0: 14400003 bne r2,r0,0x001436b0 | 001436a0: 14400003 bne r2,r0,0x001436b0 | ||
001436a4: 00000000 nop | 001436a4: 00000000 nop | ||
Line 168: | Line 170: | ||
001436ac: a420605c sh r0,0x605c(r1) | 001436ac: a420605c sh r0,0x605c(r1) | ||
001436b0: 3c038017 lui r3,0x8017 | 001436b0: 3c038017 lui r3,0x8017 | ||
− | 001436b4: 84633f68 lh r3,0x3f68(r3) | + | 001436b4: 84633f68 lh r3,0x3f68(r3) # check if "Weather" has been used |
001436b8: 2402ffff addiu r2,r0,0xffff | 001436b8: 2402ffff addiu r2,r0,0xffff | ||
001436bc: 1062001b beq r3,r2,0x0014372c | 001436bc: 1062001b beq r3,r2,0x0014372c | ||
001436c0: 00602021 addu r4,r3,r0 | 001436c0: 00602021 addu r4,r3,r0 | ||
− | 001436c4: 30820f00 andi r2,r4,0x0f00 | + | 001436c4: 30820f00 andi r2,r4,0x0f00 # get byte 2 |
− | 001436c8: 14400006 bne r2,r0,0x001436e4 | + | 001436c8: 14400006 bne r2,r0,0x001436e4 # branch if exists? |
001436cc: 3083000f andi r3,r4,0x000f | 001436cc: 3083000f andi r3,r4,0x000f | ||
001436d0: 2402ffff addiu r2,r0,0xffff | 001436d0: 2402ffff addiu r2,r0,0xffff | ||
001436d4: 3c018017 lui r1,0x8017 | 001436d4: 3c018017 lui r1,0x8017 | ||
− | 001436d8: a4223f68 sh r2,0x3f68(r1) | + | 001436d8: a4223f68 sh r2,0x3f68(r1) # store change of weather = -1? |
001436dc: 08050dcb j 0x0014372c | 001436dc: 08050dcb j 0x0014372c | ||
001436e0: 00000000 nop | 001436e0: 00000000 nop | ||
− | 001436e4: 3c02800b lui r2,0x800b | + | |
− | 001436e8: 8c426698 lw r2,0x6698(r2) | + | 001436e4: 3c02800b lui r2,0x800b # weather byte 2 exists? |
+ | 001436e8: 8c426698 lw r2,0x6698(r2) # ? (map value?) | ||
001436ec: 3c018017 lui r1,0x8017 | 001436ec: 3c018017 lui r1,0x8017 | ||
− | 001436f0: a4233f68 sh r3,0x3f68(r1) | + | 001436f0: a4233f68 sh r3,0x3f68(r1) # store change of weather |
001436f4: 30420001 andi r2,r2,0x0001 | 001436f4: 30420001 andi r2,r2,0x0001 | ||
− | 001436f8: 10400003 beq r2,r0,0x00143708 | + | 001436f8: 10400003 beq r2,r0,0x00143708 # branch if skip...? |
001436fc: 24620005 addiu r2,r3,0x0005 | 001436fc: 24620005 addiu r2,r3,0x0005 | ||
00143700: 3c018017 lui r1,0x8017 | 00143700: 3c018017 lui r1,0x8017 | ||
− | 00143704: a4223f68 sh r2,0x3f68(r1) | + | 00143704: a4223f68 sh r2,0x3f68(r1) # add 5, store to change of weather |
00143708: 3c028017 lui r2,0x8017 | 00143708: 3c028017 lui r2,0x8017 | ||
− | 0014370c: 84423f68 lh r2,0x3f68(r2) | + | 0014370c: 84423f68 lh r2,0x3f68(r2) # get change of weather |
00143710: 00000000 nop | 00143710: 00000000 nop | ||
00143714: 00021040 sll r2,r2,0x01 | 00143714: 00021040 sll r2,r2,0x01 | ||
00143718: 3c018017 lui r1,0x8017 | 00143718: 3c018017 lui r1,0x8017 | ||
0014371c: 00220821 addu r1,r1,r2 | 0014371c: 00220821 addu r1,r1,r2 | ||
− | 00143720: 902496e4 lbu r4,-0x691c(r1) | + | 00143720: 902496e4 lbu r4,-0x691c(r1) # load? |
− | 00143724: 0c03babe jal 0x000eeaf8 | + | 00143724: 0c03babe jal 0x000eeaf8 # [[Set weather texture overlay]] |
00143728: 00000000 nop | 00143728: 00000000 nop | ||
0014372c: 3c058017 lui r5,0x8017 | 0014372c: 3c058017 lui r5,0x8017 | ||
− | 00143730: 84a53f64 lh r5,0x3f64(r5) | + | 00143730: 84a53f64 lh r5,0x3f64(r5) # check if "SetDaytime" has been used |
00143734: 2410ffff addiu r16,r0,0xffff | 00143734: 2410ffff addiu r16,r0,0xffff | ||
00143738: 10b00005 beq r5,r16,0x00143750 | 00143738: 10b00005 beq r5,r16,0x00143750 | ||
0014373c: 00000000 nop | 0014373c: 00000000 nop | ||
− | 00143740: 0c04ed91 jal 0x0013b644 | + | 00143740: 0c04ed91 jal 0x0013b644 # [[Set Script Variable]] time of day = SetDaytime argument |
00143744: 34040024 ori r4,r0,0x0024 | 00143744: 34040024 ori r4,r0,0x0024 | ||
− | 00143748: 0c03babe jal 0x000eeaf8 | + | 00143748: 0c03babe jal 0x000eeaf8 # [[Set weather texture overlay]] |
0014374c: 3404008b ori r4,r0,0x008b | 0014374c: 3404008b ori r4,r0,0x008b | ||
00143750: 3c048017 lui r4,0x8017 | 00143750: 3c048017 lui r4,0x8017 | ||
− | 00143754: 84843cb4 lh r4,0x3cb4(r4) | + | 00143754: 84843cb4 lh r4,0x3cb4(r4) # Check if "Effect" has been used |
00143758: 00000000 nop | 00143758: 00000000 nop | ||
0014375c: 1090000e beq r4,r16,0x00143798 | 0014375c: 1090000e beq r4,r16,0x00143798 | ||
Line 215: | Line 218: | ||
00143768: 84636000 lh r3,0x6000(r3) | 00143768: 84636000 lh r3,0x6000(r3) | ||
0014376c: 00000000 nop | 0014376c: 00000000 nop | ||
− | 00143770: 14620005 bne r3,r2,0x00143788 | + | 00143770: 14620005 bne r3,r2,0x00143788 # branch if should give 0 instead of 2 |
00143774: 00002821 addu r5,r0,r0 | 00143774: 00002821 addu r5,r0,r0 | ||
00143778: 3c068016 lui r6,0x8016 | 00143778: 3c068016 lui r6,0x8016 | ||
Line 223: | Line 226: | ||
00143788: 3c068016 lui r6,0x8016 | 00143788: 3c068016 lui r6,0x8016 | ||
0014378c: 94c65ff8 lhu r6,0x5ff8(r6) | 0014378c: 94c65ff8 lhu r6,0x5ff8(r6) | ||
− | 00143790: 0c023744 jal 0x0008dd10 | + | 00143790: 0c023744 jal 0x0008dd10 # [[Start New Effect]] |
00143794: 00000000 nop | 00143794: 00000000 nop | ||
00143798: 3c028016 lui r2,0x8016 | 00143798: 3c028016 lui r2,0x8016 | ||
− | 0014379c: 9442604e lhu r2,0x604e(r2) | + | 0014379c: 9442604e lhu r2,0x604e(r2) # checkif "AddUnit" has been used |
001437a0: 00000000 nop | 001437a0: 00000000 nop | ||
001437a4: 10400005 beq r2,r0,0x001437bc | 001437a4: 10400005 beq r2,r0,0x001437bc | ||
001437a8: 00000000 nop | 001437a8: 00000000 nop | ||
− | 001437ac: 0c023441 jal 0x0008d104 | + | 001437ac: 0c023441 jal 0x0008d104 # [[0008d104 - 0008d134]] |
001437b0: 00000000 nop | 001437b0: 00000000 nop | ||
001437b4: 3c018016 lui r1,0x8016 | 001437b4: 3c018016 lui r1,0x8016 | ||
001437b8: a422604e sh r2,0x604e(r1) | 001437b8: a422604e sh r2,0x604e(r1) | ||
− | 001437bc: 1620007a bne r17,r0,0x001439a8 | + | 001437bc: 1620007a bne r17,r0,0x001439a8 # ... branch never? |
001437c0: 00000000 nop | 001437c0: 00000000 nop | ||
001437c4: 3c048017 lui r4,0x8017 | 001437c4: 3c048017 lui r4,0x8017 | ||
Line 243: | Line 246: | ||
001437d8: 3c058017 lui r5,0x8017 | 001437d8: 3c058017 lui r5,0x8017 | ||
001437dc: 8ca5400c lw r5,0x400c(r5) | 001437dc: 8ca5400c lw r5,0x400c(r5) | ||
− | 001437e0: 0c0234a8 jal 0x0008d2a0 | + | 001437e0: 0c0234a8 jal 0x0008d2a0 # [[0008d2a0 - 0008d5c4]] |
001437e4: 00000000 nop | 001437e4: 00000000 nop | ||
001437e8: 3c048017 lui r4,0x8017 | 001437e8: 3c048017 lui r4,0x8017 | ||
− | 001437ec: 8c843f4c lw r4,0x3f4c(r4) | + | 001437ec: 8c843f4c lw r4,0x3f4c(r4) # check if "SaveEVTCHR" has been used |
001437f0: 00000000 nop | 001437f0: 00000000 nop | ||
001437f4: 04800003 bltz r4,0x00143804 | 001437f4: 04800003 bltz r4,0x00143804 | ||
001437f8: 00000000 nop | 001437f8: 00000000 nop | ||
− | 001437fc: 0c023572 jal 0x0008d5c8 | + | 001437fc: 0c023572 jal 0x0008d5c8 # [[0008d5c8 - 0008d64c]] |
00143800: 00000000 nop | 00143800: 00000000 nop | ||
00143804: 3c048017 lui r4,0x8017 | 00143804: 3c048017 lui r4,0x8017 | ||
− | 00143808: 8c843f50 lw r4,0x3f50(r4) | + | 00143808: 8c843f50 lw r4,0x3f50(r4) # check if "SaveEVTCHRClear" has been used |
0014380c: 00000000 nop | 0014380c: 00000000 nop | ||
00143810: 04800003 bltz r4,0x00143820 | 00143810: 04800003 bltz r4,0x00143820 | ||
00143814: 00000000 nop | 00143814: 00000000 nop | ||
− | 00143818: 0c023594 jal 0x0008d650 | + | 00143818: 0c023594 jal 0x0008d650 # [[0008d650 - 0008d6a4]] |
0014381c: 00000000 nop | 0014381c: 00000000 nop | ||
00143820: 3c048017 lui r4,0x8017 | 00143820: 3c048017 lui r4,0x8017 | ||
− | 00143824: 8c843ca0 lw r4,0x3ca0(r4) | + | 00143824: 8c843ca0 lw r4,0x3ca0(r4) # check if "LoadEVTCHRClear" has been used |
00143828: 00000000 nop | 00143828: 00000000 nop | ||
− | 0014382c: 04800003 bltz r4,0x0014383c | + | 0014382c: 04800003 bltz r4,0x0014383c # branch if not? |
00143830: 00000000 nop | 00143830: 00000000 nop | ||
− | 00143834: 0c0235aa jal 0x0008d6a8 | + | 00143834: 0c0235aa jal 0x0008d6a8 # [[0008d6a8 - 0008d704]] |
00143838: 00000000 nop | 00143838: 00000000 nop | ||
0014383c: 3c058017 lui r5,0x8017 | 0014383c: 3c058017 lui r5,0x8017 | ||
− | 00143840: 8ca53cac lw r5,0x3cac(r5) | + | 00143840: 8ca53cac lw r5,0x3cac(r5) # check if "{5C} unknown" has been used |
00143844: 00000000 nop | 00143844: 00000000 nop | ||
− | 00143848: 04a00004 bltz r5,0x0014385c | + | 00143848: 04a00004 bltz r5,0x0014385c # branch if not? |
− | 0014384c: 30a4ff00 andi r4,r5,0xff00 | + | 0014384c: 30a4ff00 andi r4,r5,0xff00 |
− | 00143850: 00042202 srl r4,r4,0x08 | + | 00143850: 00042202 srl r4,r4,0x08 # unit Misc data |
− | 00143854: 0c0235c2 jal 0x0008d708 | + | 00143854: 0c0235c2 jal 0x0008d708 # [[0008d708 - 0008d8e0]] <- move attacking spritesheet & unit banner into correct position? |
00143858: 30a500ff andi r5,r5,0x00ff | 00143858: 30a500ff andi r5,r5,0x00ff | ||
0014385c: 3c048017 lui r4,0x8017 | 0014385c: 3c048017 lui r4,0x8017 | ||
− | 00143860: 8c843f48 lw r4,0x3f48(r4) | + | 00143860: 8c843f48 lw r4,0x3f48(r4) # check if "{5D} unknown" has been used |
00143864: 00000000 nop | 00143864: 00000000 nop | ||
− | 00143868: 04800003 bltz r4,0x00143878 | + | 00143868: 04800003 bltz r4,0x00143878 # branch if not? |
0014386c: 00000000 nop | 0014386c: 00000000 nop | ||
− | 00143870: 0c023639 jal 0x0008d8e4 | + | 00143870: 0c023639 jal 0x0008d8e4 # [[0008d8e4 - 0008d94c]] |
00143874: 00000000 nop | 00143874: 00000000 nop | ||
00143878: 3c048016 lui r4,0x8016 | 00143878: 3c048016 lui r4,0x8016 | ||
− | 0014387c: 8c845fb4 lw r4,0x5fb4(r4) | + | 0014387c: 8c845fb4 lw r4,0x5fb4(r4) # check if "SoundEffect" has a sound effect in it |
00143880: 2402ffff addiu r2,r0,0xffff | 00143880: 2402ffff addiu r2,r0,0xffff | ||
− | 00143884: 10820003 beq r4,r2,0x00143894 | + | 00143884: 10820003 beq r4,r2,0x00143894 # branch if no sound effect |
00143888: 00000000 nop | 00143888: 00000000 nop | ||
− | 0014388c: 0c010ffe jal 0x00043ff8 | + | 0014388c: 0c010ffe jal 0x00043ff8 # [[Play Sound Effect]] |
00143890: 00000000 nop | 00143890: 00000000 nop | ||
00143894: 3c028016 lui r2,0x8016 | 00143894: 3c028016 lui r2,0x8016 | ||
− | 00143898: 84425fc8 lh r2,0x5fc8(r2) | + | 00143898: 84425fc8 lh r2,0x5fc8(r2) # check if "SwitchTrack" has been used |
0014389c: 00000000 nop | 0014389c: 00000000 nop | ||
− | 001438a0: 04400023 bltz r2,0x00143930 | + | 001438a0: 04400023 bltz r2,0x00143930 # branch if no |
001438a4: 00000000 nop | 001438a4: 00000000 nop | ||
− | 001438a8: 0c010e8e jal 0x00043a38 | + | 001438a8: 0c010e8e jal 0x00043a38 # [[00043a38 - 00043a8c]] |
001438ac: 00000000 nop | 001438ac: 00000000 nop | ||
001438b0: 3c028016 lui r2,0x8016 | 001438b0: 3c028016 lui r2,0x8016 | ||
− | 001438b4: 94425fd8 lhu r2,0x5fd8(r2) | + | 001438b4: 94425fd8 lhu r2,0x5fd8(r2) # ? |
001438b8: 00000000 nop | 001438b8: 00000000 nop | ||
001438bc: 38420001 xori r2,r2,0x0001 | 001438bc: 38420001 xori r2,r2,0x0001 | ||
Line 311: | Line 314: | ||
001438e8: 00000000 nop | 001438e8: 00000000 nop | ||
001438ec: 3c028016 lui r2,0x8016 | 001438ec: 3c028016 lui r2,0x8016 | ||
− | 001438f0: 94425fd6 lhu r2,0x5fd6(r2) | + | 001438f0: 94425fd6 lhu r2,0x5fd6(r2) # ? |
001438f4: 00000000 nop | 001438f4: 00000000 nop | ||
001438f8: 1040000d beq r2,r0,0x00143930 | 001438f8: 1040000d beq r2,r0,0x00143930 | ||
001438fc: 00000000 nop | 001438fc: 00000000 nop | ||
00143900: 3c048017 lui r4,0x8017 | 00143900: 3c048017 lui r4,0x8017 | ||
− | 00143904: 94843f54 lhu r4,0x3f54(r4) | + | 00143904: 94843f54 lhu r4,0x3f54(r4) |
− | 00143908: 0c04b6e4 jal 0x0012db90 | + | 00143908: 0c04b6e4 jal 0x0012db90 # [[0012db90 - 0012dbd8]] |
0014390c: 00000000 nop | 0014390c: 00000000 nop | ||
00143910: 00402821 addu r5,r2,r0 | 00143910: 00402821 addu r5,r2,r0 | ||
Line 325: | Line 328: | ||
00143920: 94c63f56 lhu r6,0x3f56(r6) | 00143920: 94c63f56 lhu r6,0x3f56(r6) | ||
00143924: 24840001 addiu r4,r4,0x0001 | 00143924: 24840001 addiu r4,r4,0x0001 | ||
− | 00143928: 0c010ea4 jal 0x00043a90 | + | 00143928: 0c010ea4 jal 0x00043a90 # [[00043a90 - 00043b40]] |
0014392c: 00063080 sll r6,r6,0x02 | 0014392c: 00063080 sll r6,r6,0x02 | ||
00143930: 3c028016 lui r2,0x8016 | 00143930: 3c028016 lui r2,0x8016 | ||
− | 00143934: 84425fca lh r2,0x5fca(r2) | + | 00143934: 84425fca lh r2,0x5fca(r2) # check if "EndTrack" has been used |
00143938: 00000000 nop | 00143938: 00000000 nop | ||
0014393c: 04400007 bltz r2,0x0014395c | 0014393c: 04400007 bltz r2,0x0014395c | ||
00143940: 2410ffff addiu r16,r0,0xffff | 00143940: 2410ffff addiu r16,r0,0xffff | ||
− | 00143944: 0c010e8e jal 0x00043a38 | + | 00143944: 0c010e8e jal 0x00043a38 # [[00043a38 - 00043a8c]] |
00143948: 00000000 nop | 00143948: 00000000 nop | ||
0014394c: 3c048016 lui r4,0x8016 | 0014394c: 3c048016 lui r4,0x8016 | ||
− | 00143950: 84845fca lh r4,0x5fca(r4) | + | 00143950: 84845fca lh r4,0x5fca(r4) # end track argument? |
− | 00143954: 0c010e70 jal 0x000439c0 | + | 00143954: 0c010e70 jal 0x000439c0 # [[000439c0 - 00043a34]] |
00143958: 00000000 nop | 00143958: 00000000 nop | ||
0014395c: 3c028016 lui r2,0x8016 | 0014395c: 3c028016 lui r2,0x8016 | ||
− | 00143960: 84425fb8 lh r2,0x5fb8(r2) | + | 00143960: 84425fb8 lh r2,0x5fb8(r2) # |
00143964: 00000000 nop | 00143964: 00000000 nop | ||
00143968: 10500007 beq r2,r16,0x00143988 | 00143968: 10500007 beq r2,r16,0x00143988 | ||
0014396c: 00000000 nop | 0014396c: 00000000 nop | ||
− | 00143970: 0c010fd4 jal 0x00043f50 | + | 00143970: 0c010fd4 jal 0x00043f50 # [[00043f50 - 00043f84]] |
00143974: 00000000 nop | 00143974: 00000000 nop | ||
00143978: 3c048016 lui r4,0x8016 | 00143978: 3c048016 lui r4,0x8016 | ||
0014397c: 84845fb8 lh r4,0x5fb8(r4) | 0014397c: 84845fb8 lh r4,0x5fb8(r4) | ||
− | 00143980: 0c010fe2 jal 0x00043f88 | + | 00143980: 0c010fe2 jal 0x00043f88 # [[00043f88 - 00043ff4]] |
00143984: 00000000 nop | 00143984: 00000000 nop | ||
00143988: 3c058016 lui r5,0x8016 | 00143988: 3c058016 lui r5,0x8016 | ||
− | 0014398c: 8ca55fc0 lw r5,0x5fc0(r5) | + | 0014398c: 8ca55fc0 lw r5,0x5fc0(r5) # check if "FadeSound" has been used |
00143990: 00000000 nop | 00143990: 00000000 nop | ||
00143994: 10b00004 beq r5,r16,0x001439a8 | 00143994: 10b00004 beq r5,r16,0x001439a8 | ||
00143998: 30a4ffff andi r4,r5,0xffff | 00143998: 30a4ffff andi r4,r5,0xffff | ||
0014399c: 00052b82 srl r5,r5,0x0e | 0014399c: 00052b82 srl r5,r5,0x0e | ||
− | 001439a0: 0c010efa jal 0x00043be8 | + | 001439a0: 0c010efa jal 0x00043be8 # [[00043be8 - 00043c38]] |
001439a4: 30a53ffc andi r5,r5,0x3ffc | 001439a4: 30a53ffc andi r5,r5,0x3ffc | ||
001439a8: 8fbf0028 lw r31,0x0028(r29) | 001439a8: 8fbf0028 lw r31,0x0028(r29) |
Latest revision as of 05:54, 6 September 2025
00143418: 27bdffd0 addiu r29,r29,0xffd0 0014341c: afbf0028 sw r31,0x0028(r29) 00143420: afb10024 sw r17,0x0024(r29) 00143424: 0c04fc83 jal 0x0013f20c # 0013f20c - 0013f3f8 00143428: afb00020 sw r16,0x0020(r29) 0014342c: 3c048017 lui r4,0x8017 00143430: 84844054 lh r4,0x4054(r4) # check if "ChangeMapBeta" has been used 00143434: 2410ffff addiu r16,r0,0xffff 00143438: 10900003 beq r4,r16,0x00143448 # branch if not 0014343c: 00008821 addu r17,r0,r0 00143440: 0c0230b7 jal 0x0008c2dc # 0008c2dc - 0008c31c 00143444: 34050010 ori r5,r0,0x0010 00143448: 3c048017 lui r4,0x8017 0014344c: 8484405c lh r4,0x405c(r4) # check if "ChangeMap" has been used 00143450: 00000000 nop 00143454: 10900003 beq r4,r16,0x00143464 00143458: 00000000 nop 0014345c: 0c0230c8 jal 0x0008c320 # 0008c320 - 0008c360 00143460: 34050010 ori r5,r0,0x0010 00143464: 3c048017 lui r4,0x8017 00143468: 8484d9bc lh r4,-0x2644(r4) # check if "Reveal" has been used 0014346c: 00000000 nop 00143470: 10800003 beq r4,r0,0x00143480 00143474: 00000000 nop 00143478: 0c0230d9 jal 0x0008c364 # 0008c364 - 0008c39c 0014347c: 00000000 nop 00143480: 3c028016 lui r2,0x8016 00143484: 94425fe2 lhu r2,0x5fe2(r2) # check if "Use3dObject" has been used 00143488: 00000000 nop 0014348c: 1040000a beq r2,r0,0x001434b8 # branch if not. 00143490: 00000000 nop 00143494: 3c048017 lui r4,0x8017 00143498: 94843c94 lhu r4,0x3c94(r4) # load "Use3DObject" object ID 0014349c: 3c058017 lui r5,0x8017 001434a0: 94a53c96 lhu r5,0x3c96(r5) # load "Use3DObject" object state 001434a4: 0c02382f jal 0x0008e0bc # 0008e0bc - 0008e0ec returns 1 001434a8: 00000000 nop 001434ac: 34020001 ori r2,r0,0x0001 001434b0: 3c018016 lui r1,0x8016 001434b4: a422606e sh r2,0x606e(r1) # store "Wait3DObject" has been used 001434b8: 3c028016 lui r2,0x8016 001434bc: 94425fe4 lhu r2,0x5fe4(r2) # check if "UseFieldObject" has been used 001434c0: 00000000 nop 001434c4: 1040000a beq r2,r0,0x001434f0 # branch if not. 001434c8: 00000000 nop 001434cc: 3c048017 lui r4,0x8017 001434d0: 94844058 lhu r4,0x4058(r4) 001434d4: 3c058017 lui r5,0x8017 001434d8: 94a5405a lhu r5,0x405a(r5) 001434dc: 0c023847 jal 0x0008e11c # 0008e11c - 0008e14c 001434e0: 00000000 nop 001434e4: 34020001 ori r2,r0,0x0001 001434e8: 3c018016 lui r1,0x8016 001434ec: a4226070 sh r2,0x6070(r1) # 001434f0: 3c028016 lui r2,0x8016 001434f4: 9442606e lhu r2,0x606e(r2) # check if "Use3dObject" has been used & above code has been run, or if "Wait3DObject" has been used 001434f8: 00000000 nop 001434fc: 10400007 beq r2,r0,0x0014351c 00143500: 00000000 nop 00143504: 3c048017 lui r4,0x8017 00143508: 94843c94 lhu r4,0x3c94(r4) # load "Use3DObject" object ID 0014350c: 0c02383c jal 0x0008e0f0 # 0008e0f0 - 0008e118 returns state * 0x100 || flag? 00143510: 00000000 nop 00143514: 3c018016 lui r1,0x8016 00143518: a422606e sh r2,0x606e(r1) # store that here. 0014351c: 3c028016 lui r2,0x8016 00143520: 94426070 lhu r2,0x6070(r2) # check if "UseFieldObject" has been used & above code has been run, or if "WaitFieldObject" has been used 00143524: 00000000 nop 00143528: 10400007 beq r2,r0,0x00143548 0014352c: 00000000 nop 00143530: 3c048017 lui r4,0x8017 00143534: 94844058 lhu r4,0x4058(r4) 00143538: 0c023854 jal 0x0008e150 # 0008e150 - 0008e178 0014353c: 00000000 nop 00143540: 3c018016 lui r1,0x8016 00143544: a4226070 sh r2,0x6070(r1) # store return here. 00143548: 3c028016 lui r2,0x8016 0014354c: 9442606c lhu r2,0x606c(r2) # ? 00143550: 00000000 nop 00143554: 10400005 beq r2,r0,0x0014356c 00143558: 00000000 nop 0014355c: 0c03d2b3 jal 0x000f4acc # 000f4acc - 000f4dd0 00143560: 34040003 ori r4,r0,0x0003 00143564: 3c018016 lui r1,0x8016 00143568: a422606c sh r2,0x606c(r1) # store result. 0014356c: 3c038016 lui r3,0x8016 00143570: 94635fde lhu r3,0x5fde(r3) # check if "ReloadMapState" has been run 00143574: 34020001 ori r2,r0,0x0001 00143578: 14620005 bne r3,r2,0x00143590 # branch if it has 0014357c: 34020002 ori r2,r0,0x0002 00143580: 0c02381a jal 0x0008e068 # 0008e068 - 0008e090 <- load new map palette? (note on another page) 00143584: 00000000 nop 00143588: 08050d68 j 0x001435a0 0014358c: 00000000 nop
00143590: 1462000b bne r3,r2,0x001435c0 # if it has 2? else branch 00143594: 00000000 nop 00143598: 0c023825 jal 0x0008e094 # 0008e094 - 0008e0b8 0014359c: 00000000 nop 001435a0: 14400007 bne r2,r0,0x001435c0 # branch if return != 0 001435a4: 00000000 nop 001435a8: 3c028016 lui r2,0x8016 001435ac: 94425fde lhu r2,0x5fde(r2) 001435b0: 00000000 nop 001435b4: 24420001 addiu r2,r2,0x0001 # increment "ReloadMapState" value 001435b8: 3c018016 lui r1,0x8016 001435bc: a4225fde sh r2,0x5fde(r1) 001435c0: 3c038016 lui r3,0x8016 001435c4: 94635fe0 lhu r3,0x5fe0(r3) 001435c8: 34020001 ori r2,r0,0x0001 001435cc: 1462000d bne r3,r2,0x00143604 # branch if "AppendMapState" value isn't 1? 001435d0: 34020002 ori r2,r0,0x0002 001435d4: 3c028016 lui r2,0x8016 001435d8: 8442605c lh r2,0x605c(r2) 001435dc: 00000000 nop 001435e0: 14400008 bne r2,r0,0x00143604 001435e4: 34020002 ori r2,r0,0x0002 001435e8: 0c04ed64 jal 0x0013b590 # Get Script Variable 001435ec: 34040033 ori r4,r0,0x0033 # get variable "current map" 001435f0: 00402021 addu r4,r2,r0 001435f4: 0c03cdc6 jal 0x000f3718 # Load Map Data 001435f8: 34050099 ori r5,r0,0x0099 # instruction = skip (????) 001435fc: 08050d8b j 0x0014362c 00143600: 00000000 nop
00143604: 1462000f bne r3,r2,0x00143644 # branch if "AppendMapState" value isn't 2? 00143608: 00000000 nop 0014360c: 0c04ed64 jal 0x0013b590 # Get Script Variable 00143610: 34040033 ori r4,r0,0x0033 # get variable "current map" 00143614: 00402021 addu r4,r2,r0 00143618: 0c03cdc6 jal 0x000f3718 # Load Map Data 0014361c: 3405009c ori r5,r0,0x009c # instruction = ? 00143620: 3403009b ori r3,r0,0x009b 00143624: 14430007 bne r2,r3,0x00143644 00143628: 00000000 nop 0014362c: 3c028016 lui r2,0x8016 00143630: 94425fe0 lhu r2,0x5fe0(r2) 00143634: 00000000 nop 00143638: 24420001 addiu r2,r2,0x0001 0014363c: 3c018016 lui r1,0x8016 00143640: a4225fe0 sh r2,0x5fe0(r1) # increment "AppendMapState" value? 00143644: 3c048016 lui r4,0x8016 00143648: 8484605c lh r4,0x605c(r4) # check if callfunction "Destroy Morund entrance" was used 0014364c: 34020002 ori r2,r0,0x0002 # destroy morund entrance check 00143650: 1482000b bne r4,r2,0x00143680 00143654: 00801821 addu r3,r4,r0 00143658: 24620001 addiu r2,r3,0x0001 0014365c: 3c018016 lui r1,0x8016 00143660: a422605c sh r2,0x605c(r1) 00143664: 3404009a ori r4,r0,0x009a # -> command 0x30 00143668: 34050001 ori r5,r0,0x0001 # 1 0014366c: 34060001 ori r6,r0,0x0001 # 1 00143670: 0c03c2f8 jal 0x000f0be0 # 000f0be0 - 000f1200 00143674: 34070001 ori r7,r0,0x0001 # 1 00143678: 08050dac j 0x001436b0 0014367c: 00000000 nop
00143680: 34020003 ori r2,r0,0x0003 # ? 00143684: 1482000a bne r4,r2,0x001436b0 00143688: 00000000 nop 0014368c: 0c04ed64 jal 0x0013b590 # Get Script Variable 00143690: 34040033 ori r4,r0,0x0033 # current map 00143694: 00402021 addu r4,r2,r0 00143698: 0c03cdc6 jal 0x000f3718 # Load Map Data 0014369c: 34050076 ori r5,r0,0x0076 # instruction = skip? 001436a0: 14400003 bne r2,r0,0x001436b0 001436a4: 00000000 nop 001436a8: 3c018016 lui r1,0x8016 001436ac: a420605c sh r0,0x605c(r1) 001436b0: 3c038017 lui r3,0x8017 001436b4: 84633f68 lh r3,0x3f68(r3) # check if "Weather" has been used 001436b8: 2402ffff addiu r2,r0,0xffff 001436bc: 1062001b beq r3,r2,0x0014372c 001436c0: 00602021 addu r4,r3,r0 001436c4: 30820f00 andi r2,r4,0x0f00 # get byte 2 001436c8: 14400006 bne r2,r0,0x001436e4 # branch if exists? 001436cc: 3083000f andi r3,r4,0x000f 001436d0: 2402ffff addiu r2,r0,0xffff 001436d4: 3c018017 lui r1,0x8017 001436d8: a4223f68 sh r2,0x3f68(r1) # store change of weather = -1? 001436dc: 08050dcb j 0x0014372c 001436e0: 00000000 nop
001436e4: 3c02800b lui r2,0x800b # weather byte 2 exists? 001436e8: 8c426698 lw r2,0x6698(r2) # ? (map value?) 001436ec: 3c018017 lui r1,0x8017 001436f0: a4233f68 sh r3,0x3f68(r1) # store change of weather 001436f4: 30420001 andi r2,r2,0x0001 001436f8: 10400003 beq r2,r0,0x00143708 # branch if skip...? 001436fc: 24620005 addiu r2,r3,0x0005 00143700: 3c018017 lui r1,0x8017 00143704: a4223f68 sh r2,0x3f68(r1) # add 5, store to change of weather 00143708: 3c028017 lui r2,0x8017 0014370c: 84423f68 lh r2,0x3f68(r2) # get change of weather 00143710: 00000000 nop 00143714: 00021040 sll r2,r2,0x01 00143718: 3c018017 lui r1,0x8017 0014371c: 00220821 addu r1,r1,r2 00143720: 902496e4 lbu r4,-0x691c(r1) # load? 00143724: 0c03babe jal 0x000eeaf8 # Set weather texture overlay 00143728: 00000000 nop 0014372c: 3c058017 lui r5,0x8017 00143730: 84a53f64 lh r5,0x3f64(r5) # check if "SetDaytime" has been used 00143734: 2410ffff addiu r16,r0,0xffff 00143738: 10b00005 beq r5,r16,0x00143750 0014373c: 00000000 nop 00143740: 0c04ed91 jal 0x0013b644 # Set Script Variable time of day = SetDaytime argument 00143744: 34040024 ori r4,r0,0x0024 00143748: 0c03babe jal 0x000eeaf8 # Set weather texture overlay 0014374c: 3404008b ori r4,r0,0x008b 00143750: 3c048017 lui r4,0x8017 00143754: 84843cb4 lh r4,0x3cb4(r4) # Check if "Effect" has been used 00143758: 00000000 nop 0014375c: 1090000e beq r4,r16,0x00143798 00143760: 34020002 ori r2,r0,0x0002 00143764: 3c038016 lui r3,0x8016 00143768: 84636000 lh r3,0x6000(r3) 0014376c: 00000000 nop 00143770: 14620005 bne r3,r2,0x00143788 # branch if should give 0 instead of 2 00143774: 00002821 addu r5,r0,r0 00143778: 3c068016 lui r6,0x8016 0014377c: 94c65ff8 lhu r6,0x5ff8(r6) 00143780: 08050de4 j 0x00143790 00143784: 34050002 ori r5,r0,0x0002 00143788: 3c068016 lui r6,0x8016 0014378c: 94c65ff8 lhu r6,0x5ff8(r6) 00143790: 0c023744 jal 0x0008dd10 # Start New Effect 00143794: 00000000 nop 00143798: 3c028016 lui r2,0x8016 0014379c: 9442604e lhu r2,0x604e(r2) # checkif "AddUnit" has been used 001437a0: 00000000 nop 001437a4: 10400005 beq r2,r0,0x001437bc 001437a8: 00000000 nop 001437ac: 0c023441 jal 0x0008d104 # 0008d104 - 0008d134 001437b0: 00000000 nop 001437b4: 3c018016 lui r1,0x8016 001437b8: a422604e sh r2,0x604e(r1) 001437bc: 1620007a bne r17,r0,0x001439a8 # ... branch never? 001437c0: 00000000 nop 001437c4: 3c048017 lui r4,0x8017 001437c8: 8c843c9c lw r4,0x3c9c(r4) 001437cc: 00000000 nop 001437d0: 04800005 bltz r4,0x001437e8 001437d4: 00000000 nop 001437d8: 3c058017 lui r5,0x8017 001437dc: 8ca5400c lw r5,0x400c(r5) 001437e0: 0c0234a8 jal 0x0008d2a0 # 0008d2a0 - 0008d5c4 001437e4: 00000000 nop 001437e8: 3c048017 lui r4,0x8017 001437ec: 8c843f4c lw r4,0x3f4c(r4) # check if "SaveEVTCHR" has been used 001437f0: 00000000 nop 001437f4: 04800003 bltz r4,0x00143804 001437f8: 00000000 nop 001437fc: 0c023572 jal 0x0008d5c8 # 0008d5c8 - 0008d64c 00143800: 00000000 nop 00143804: 3c048017 lui r4,0x8017 00143808: 8c843f50 lw r4,0x3f50(r4) # check if "SaveEVTCHRClear" has been used 0014380c: 00000000 nop 00143810: 04800003 bltz r4,0x00143820 00143814: 00000000 nop 00143818: 0c023594 jal 0x0008d650 # 0008d650 - 0008d6a4 0014381c: 00000000 nop 00143820: 3c048017 lui r4,0x8017 00143824: 8c843ca0 lw r4,0x3ca0(r4) # check if "LoadEVTCHRClear" has been used 00143828: 00000000 nop 0014382c: 04800003 bltz r4,0x0014383c # branch if not? 00143830: 00000000 nop 00143834: 0c0235aa jal 0x0008d6a8 # 0008d6a8 - 0008d704 00143838: 00000000 nop 0014383c: 3c058017 lui r5,0x8017 00143840: 8ca53cac lw r5,0x3cac(r5) # check if "{5C} unknown" has been used 00143844: 00000000 nop 00143848: 04a00004 bltz r5,0x0014385c # branch if not? 0014384c: 30a4ff00 andi r4,r5,0xff00 00143850: 00042202 srl r4,r4,0x08 # unit Misc data 00143854: 0c0235c2 jal 0x0008d708 # 0008d708 - 0008d8e0 <- move attacking spritesheet & unit banner into correct position? 00143858: 30a500ff andi r5,r5,0x00ff 0014385c: 3c048017 lui r4,0x8017 00143860: 8c843f48 lw r4,0x3f48(r4) # check if "{5D} unknown" has been used 00143864: 00000000 nop 00143868: 04800003 bltz r4,0x00143878 # branch if not? 0014386c: 00000000 nop 00143870: 0c023639 jal 0x0008d8e4 # 0008d8e4 - 0008d94c 00143874: 00000000 nop 00143878: 3c048016 lui r4,0x8016 0014387c: 8c845fb4 lw r4,0x5fb4(r4) # check if "SoundEffect" has a sound effect in it 00143880: 2402ffff addiu r2,r0,0xffff 00143884: 10820003 beq r4,r2,0x00143894 # branch if no sound effect 00143888: 00000000 nop 0014388c: 0c010ffe jal 0x00043ff8 # Play Sound Effect 00143890: 00000000 nop 00143894: 3c028016 lui r2,0x8016 00143898: 84425fc8 lh r2,0x5fc8(r2) # check if "SwitchTrack" has been used 0014389c: 00000000 nop 001438a0: 04400023 bltz r2,0x00143930 # branch if no 001438a4: 00000000 nop 001438a8: 0c010e8e jal 0x00043a38 # 00043a38 - 00043a8c 001438ac: 00000000 nop 001438b0: 3c028016 lui r2,0x8016 001438b4: 94425fd8 lhu r2,0x5fd8(r2) # ? 001438b8: 00000000 nop 001438bc: 38420001 xori r2,r2,0x0001 001438c0: 3c018016 lui r1,0x8016 001438c4: a4225fd8 sh r2,0x5fd8(r1) 001438c8: 3c028016 lui r2,0x8016 001438cc: 94425fd8 lhu r2,0x5fd8(r2) 001438d0: 00000000 nop 001438d4: 14400005 bne r2,r0,0x001438ec 001438d8: 00000000 nop 001438dc: 3c028016 lui r2,0x8016 001438e0: 94425fd4 lhu r2,0x5fd4(r2) 001438e4: 08050e3d j 0x001438f4 001438e8: 00000000 nop 001438ec: 3c028016 lui r2,0x8016 001438f0: 94425fd6 lhu r2,0x5fd6(r2) # ? 001438f4: 00000000 nop 001438f8: 1040000d beq r2,r0,0x00143930 001438fc: 00000000 nop 00143900: 3c048017 lui r4,0x8017 00143904: 94843f54 lhu r4,0x3f54(r4) 00143908: 0c04b6e4 jal 0x0012db90 # 0012db90 - 0012dbd8 0014390c: 00000000 nop 00143910: 00402821 addu r5,r2,r0 00143914: 3c048016 lui r4,0x8016 00143918: 94845fd8 lhu r4,0x5fd8(r4) 0014391c: 3c068017 lui r6,0x8017 00143920: 94c63f56 lhu r6,0x3f56(r6) 00143924: 24840001 addiu r4,r4,0x0001 00143928: 0c010ea4 jal 0x00043a90 # 00043a90 - 00043b40 0014392c: 00063080 sll r6,r6,0x02 00143930: 3c028016 lui r2,0x8016 00143934: 84425fca lh r2,0x5fca(r2) # check if "EndTrack" has been used 00143938: 00000000 nop 0014393c: 04400007 bltz r2,0x0014395c 00143940: 2410ffff addiu r16,r0,0xffff 00143944: 0c010e8e jal 0x00043a38 # 00043a38 - 00043a8c 00143948: 00000000 nop 0014394c: 3c048016 lui r4,0x8016 00143950: 84845fca lh r4,0x5fca(r4) # end track argument? 00143954: 0c010e70 jal 0x000439c0 # 000439c0 - 00043a34 00143958: 00000000 nop 0014395c: 3c028016 lui r2,0x8016 00143960: 84425fb8 lh r2,0x5fb8(r2) # 00143964: 00000000 nop 00143968: 10500007 beq r2,r16,0x00143988 0014396c: 00000000 nop 00143970: 0c010fd4 jal 0x00043f50 # 00043f50 - 00043f84 00143974: 00000000 nop 00143978: 3c048016 lui r4,0x8016 0014397c: 84845fb8 lh r4,0x5fb8(r4) 00143980: 0c010fe2 jal 0x00043f88 # 00043f88 - 00043ff4 00143984: 00000000 nop 00143988: 3c058016 lui r5,0x8016 0014398c: 8ca55fc0 lw r5,0x5fc0(r5) # check if "FadeSound" has been used 00143990: 00000000 nop 00143994: 10b00004 beq r5,r16,0x001439a8 00143998: 30a4ffff andi r4,r5,0xffff 0014399c: 00052b82 srl r5,r5,0x0e 001439a0: 0c010efa jal 0x00043be8 # 00043be8 - 00043c38 001439a4: 30a53ffc andi r5,r5,0x3ffc 001439a8: 8fbf0028 lw r31,0x0028(r29) 001439ac: 8fb10024 lw r17,0x0024(r29) 001439b0: 8fb00020 lw r16,0x0020(r29) 001439b4: 27bd0030 addiu r29,r29,0x0030 001439b8: 03e00008 jr r31 001439bc: 00000000 nop