Difference between revisions of "Display Triangle Selection Menu"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " # ROUTINE: DISPLAY TRIANGLE SELECTION MENU # This routine gets called when hitting the Triangle button on the map, bringing up the selection menu. # This entire routi...")
 
 
Line 6: Line 6:
 
  8013bfbc: 27bdffe8 addiu r29,r29,-0x0018
 
  8013bfbc: 27bdffe8 addiu r29,r29,-0x0018
 
  8013bfc0: afbf0010 sw r31,0x0010(r29)
 
  8013bfc0: afbf0010 sw r31,0x0010(r29)
  8013bfc4: 0c052752 jal 0x80149d48              #  ROUTINE: [[? 0x149d48]] (0x42 = 66)            // No discernable effect if removed
+
  8013bfc4: 0c052752 jal 0x80149d48              #  [[Set Thread Task ID]] (0x42 = 66);             // No discernable effect if removed
 
  8013bfc8: 34040042 ori r4,r0,0x0042
 
  8013bfc8: 34040042 ori r4,r0,0x0042
 
                                                 #  while (
 
                                                 #  while (
Line 18: Line 18:
 
  8013bfe8: 10400005 beq r2,r0,0x8013c000        #      or (*0x8016604a != 0)) {
 
  8013bfe8: 10400005 beq r2,r0,0x8013c000        #      or (*0x8016604a != 0)) {
 
  8013bfec: 00000000 nop
 
  8013bfec: 00000000 nop
  8013bff0: 0c0532a0 jal 0x8014ca80              #          ROUTINE: [[? 0x14ca80]]
+
  8013bff0: 0c0532a0 jal 0x8014ca80              #          [[Switch To Next Thread]] ();
 
  8013bff4: 00000000 nop
 
  8013bff4: 00000000 nop
 
  8013bff8: 0804eff3 j 0x8013bfcc
 
  8013bff8: 0804eff3 j 0x8013bfcc
 
  8013bffc: 00000000 nop                          #  }
 
  8013bffc: 00000000 nop                          #  }
  8013c000: 0c050af4 jal 0x80142bd0              #  ROUTINE: [[? 0x142bd0]] (0xfe)                 // No discernable effect if removed
+
  8013c000: 0c050af4 jal 0x80142bd0              #  [[? 0x142bd0]] (0xfe);                          // No discernable effect if removed
 
  8013c004: 340400fe ori r4,r0,0x00fe            #  0xfe
 
  8013c004: 340400fe ori r4,r0,0x00fe            #  0xfe
 
  8013c008: 3c018016 lui r1,0x8016
 
  8013c008: 3c018016 lui r1,0x8016
 
  8013c00c: ac206044 sw r0,0x6044(r1)            #  *0x80166044 = 0
 
  8013c00c: ac206044 sw r0,0x6044(r1)            #  *0x80166044 = 0
  8013c010: 0c04e3b6 jal 0x80138ed8              #  ROUTINE: [[Display Simple Selection Menu]]
+
  8013c010: 0c04e3b6 jal 0x80138ed8              #  [[Display Simple Selection Menu]] ();
 
  8013c014: 00000000 nop
 
  8013c014: 00000000 nop
 
  8013c018: 8fbf0010 lw r31,0x0010(r29)
 
  8013c018: 8fbf0010 lw r31,0x0010(r29)

Latest revision as of 01:32, 8 January 2017

#   ROUTINE: DISPLAY TRIANGLE SELECTION MENU
#   This routine gets called when hitting the Triangle button on the map, bringing up the selection menu.
#   This entire routine has no discernable effect in the pSX emulator except for the call (at 0x8013c010) to the routine at 0x80138ed8, which brings up the menu.
#   Nothing set here affects the menu that displays.

8013bfbc: 27bdffe8 addiu r29,r29,-0x0018
8013bfc0: afbf0010 sw r31,0x0010(r29)
8013bfc4: 0c052752 jal 0x80149d48               #   Set Thread Task ID (0x42 = 66);             // No discernable effect if removed
8013bfc8: 34040042 ori r4,r0,0x0042
                                                #   while (
8013bfcc: 0c02385f jal 0x8008e17c               #       ROUTINE: result = ? 0x8e17c
8013bfd0: 00000000 nop
8013bfd4: 14400006 bne r2,r0,0x8013bff0         #       (result != 0)
8013bfd8: 00000000 nop
8013bfdc: 3c028016 lui r2,0x8016
8013bfe0: 9442604a lhu r2,0x604a(r2)            #       *0x8016604a
8013bfe4: 00000000 nop
8013bfe8: 10400005 beq r2,r0,0x8013c000         #       or (*0x8016604a != 0)) {
8013bfec: 00000000 nop
8013bff0: 0c0532a0 jal 0x8014ca80               #           Switch To Next Thread ();
8013bff4: 00000000 nop
8013bff8: 0804eff3 j 0x8013bfcc
8013bffc: 00000000 nop                          #   }
8013c000: 0c050af4 jal 0x80142bd0               #   ? 0x142bd0 (0xfe);                          // No discernable effect if removed
8013c004: 340400fe ori r4,r0,0x00fe             #   0xfe
8013c008: 3c018016 lui r1,0x8016
8013c00c: ac206044 sw r0,0x6044(r1)             #   *0x80166044 = 0
8013c010: 0c04e3b6 jal 0x80138ed8               #   Display Simple Selection Menu ();
8013c014: 00000000 nop
8013c018: 8fbf0010 lw r31,0x0010(r29)
8013c01c: 27bd0018 addiu r29,r29,0x0018
8013c020: 03e00008 jr r31
8013c024: 00000000 nop