Prepare Job Name on Job Wheel

From Final Fantasy Hacktics Wiki
(Redirected from 0x11a778)
Jump to navigation Jump to search
8011a778: 3c02801d lui r2,0x801d
8011a77c: 844283f0 lh r2,-0x7c10(r2)                #   numJobs (*0x801c83f0)
8011a780: 27bdffd8 addiu r29,r29,-0x0028
8011a784: afbf0020 sw r31,0x0020(r29)
8011a788: afb1001c sw r17,0x001c(r29)
8011a78c: 28420002 slti r2,r2,0x0002                
8011a790: 10400005 beq r2,r0,0x8011a7a8
8011a794: afb00018 sw r16,0x0018(r29)
                                                    #   if (numJobs < 2) {
8011a798: 3c11801d lui r17,0x801d
8011a79c: 8e31d910 lw r17,-0x26f0(r17)              #       value_s1 = *0x801cd910
8011a7a0: 080469f2 j 0x8011a7c8
8011a7a4: 3402001b ori r2,r0,0x001b                 #       value_v0 = 0x1b                             // Points to text: "Can't change"
                                                    #   } else {
8011a7a8: 3c02801d lui r2,0x801d
8011a7ac: 844283f4 lh r2,-0x7c0c(r2)                #       *0x801c83f4
8011a7b0: 3c11801d lui r17,0x801d
8011a7b4: 8e31d8bc lw r17,-0x2744(r17)              #       *0x801cd8bc
8011a7b8: 00021040 sll r2,r2,0x01                   #       *0x801c83f4 * 2
8011a7bc: 3c01801d lui r1,0x801d
8011a7c0: 00220821 addu r1,r1,r2
8011a7c4: 942283f8 lhu r2,-0x7c08(r1)               #       value_v0 = 0x801c83f8 + (*0x801c83f4 * 2)   // Points to text: name of job
                                                    #   }
8011a7c8: 3c018019 lui r1,0x8019
8011a7cc: a422c940 sh r2,-0x36c0(r1)                #   *0x8018c940 = value_v0
8011a7d0: 02202021 addu r4,r17,r0                   #   value_s1
8011a7d4: 3c108019 lui r16,0x8019
8011a7d8: 2610c940 addiu r16,r16,-0x36c0
8011a7dc: 02002821 addu r5,r16,r0
8011a7e0: 27a60010 addiu r6,r29,0x0010
8011a7e4: 3402024c ori r2,r0,0x024c
8011a7e8: a7a20010 sh r2,0x0010(r29)
8011a7ec: 34020130 ori r2,r0,0x0130
8011a7f0: a7a20012 sh r2,0x0012(r29)
8011a7f4: 34020014 ori r2,r0,0x0014
8011a7f8: a7a20014 sh r2,0x0014(r29)
8011a7fc: 34020010 ori r2,r0,0x0010
8011a800: 00003821 addu r7,r0,r0
8011a804: 0c04a970 jal 0x8012a5c0                   #   0012a5c0 - 0012a6d4 (value_s1, ...)
8011a808: a7a20016 sh r2,0x0016(r29)
8011a80c: 02202021 addu r4,r17,r0
8011a810: 96050000 lhu r5,0x0000(r16)
8011a814: 34060002 ori r6,r0,0x0002
8011a818: 0c04a823 jal 0x8012a08c
8011a81c: 30a503ff andi r5,r5,0x03ff
8011a820: 0c04aa75 jal 0x8012a9d4
8011a824: 00402021 addu r4,r2,r0
8011a828: 00021600 sll r2,r2,0x18
8011a82c: 00021603 sra r2,r2,0x18
8011a830: 34030050 ori r3,r0,0x0050
8011a834: 00621823 subu r3,r3,r2
8011a838: 00031843 sra r3,r3,0x01
8011a83c: 24630058 addiu r3,r3,0x0058
8011a840: 3c01801d lui r1,0x801d
8011a844: a4238450 sh r3,-0x7bb0(r1)
8011a848: 340300d7 ori r3,r0,0x00d7
8011a84c: 3c01801d lui r1,0x801d
8011a850: a4228454 sh r2,-0x7bac(r1)
8011a854: 3402000e ori r2,r0,0x000e
8011a858: 3c01801d lui r1,0x801d
8011a85c: a4238452 sh r3,-0x7bae(r1)
8011a860: 3c01801d lui r1,0x801d
8011a864: a4228456 sh r2,-0x7baa(r1)
8011a868: 8fbf0020 lw r31,0x0020(r29)
8011a86c: 8fb1001c lw r17,0x001c(r29)
8011a870: 8fb00018 lw r16,0x0018(r29)
8011a874: 27bd0028 addiu r29,r29,0x0028
8011a878: 03e00008 jr r31
8011a87c: 00000000 nop