Difference between revisions of "000f2618 - 000f26b8"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 000f2618: 308400ff andi r4,r4,0x00ff 000f261c: 34020002 ori r2,r0,0x0002 000f2620: 10820014 beq r4,r2,0x000f2674 000f2624: 00003821 addu r7,r0,...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<font face='Courier New'>
 
<font face='Courier New'>
 
   
 
   
  000f2618: 308400ff andi r4,r4,0x00ff
+
  000f2618: 308400ff andi r4,r4,0x00ff #-
 
  000f261c: 34020002 ori r2,r0,0x0002
 
  000f261c: 34020002 ori r2,r0,0x0002
  000f2620: 10820014 beq r4,r2,0x000f2674
+
  000f2620: 10820014 beq r4,r2,0x000f2674 #branch if weather is rain
  000f2624: 00003821 addu r7,r0,r0
+
  000f2624: 00003821 addu r7,r0,r0 #0
  000f2628: 28820003 slti r2,r4,0x0003
+
  000f2628: 28820003 slti r2,r4,0x0003 #
  000f262c: 10400005 beq r2,r0,0x000f2644
+
  000f262c: 10400005 beq r2,r0,0x000f2644 #branch if weather !< thunderstorm
 
  000f2630: 34020001 ori r2,r0,0x0001
 
  000f2630: 34020001 ori r2,r0,0x0001
  000f2634: 10820008 beq r4,r2,0x000f2658
+
  000f2634: 10820008 beq r4,r2,0x000f2658 #branch if weather is clear (alternate)
  000f2638: 00061c00 sll r3,r6,0x10
+
  000f2638: 00061c00 sll r3,r6,0x10 #map crystal No. + room arrangement + dialogue option?
  000f263c: 0803c9ad j 0x000f26b4
+
  000f263c: 0803c9ad j 0x000f26b4 #finish if weather is clear
 
  000f2640: 00000000 nop
 
  000f2640: 00000000 nop
  000f2644: 34020003 ori r2,r0,0x0003
+
  000f2644: 34020003 ori r2,r0,0x0003 #if weather !< thunderstorm
  000f2648: 10820013 beq r4,r2,0x000f2698
+
  000f2648: 10820013 beq r4,r2,0x000f2698 #branch if weather = thunderstorm
  000f264c: 00061c00 sll r3,r6,0x10
+
  000f264c: 00061c00 sll r3,r6,0x10 #upper half word map state
  000f2650: 0803c9ad j 0x000f26b4
+
  000f2650: 0803c9ad j 0x000f26b4 #finish if weather is => strong thunderstorm
 
  000f2654: 00000000 nop
 
  000f2654: 00000000 nop
  000f2658: 00031c03 sra r3,r3,0x10
+
 
 +
Clear weather:
 +
  000f2658: 00031c03 sra r3,r3,0x10 #move map state to lower halfword
 
  000f265c: 00051400 sll r2,r5,0x10
 
  000f265c: 00051400 sll r2,r5,0x10
  000f2660: 00021403 sra r2,r2,0x10
+
  000f2660: 00021403 sra r2,r2,0x10 #r2 = map's room arrangement
  000f2664: 14620013 bne r3,r2,0x000f26b4
+
  000f2664: 14620013 bne r3,r2,0x000f26b4 #branch if map state's room arrangement != map state
 
  000f2668: 00000000 nop
 
  000f2668: 00000000 nop
 
  000f266c: 0803c9ad j 0x000f26b4
 
  000f266c: 0803c9ad j 0x000f26b4
  000f2670: 34070001 ori r7,r0,0x0001
+
  000f2670: 34070001 ori r7,r0,0x0001 #1
  000f2674: 00061c00 sll r3,r6,0x10
+
 
  000f2678: 00031c03 sra r3,r3,0x10
+
Rain weather:
 +
  000f2674: 00061c00 sll r3,r6,0x10
 +
  000f2678: 00031c03 sra r3,r3,0x10 #map state ENTD
 
  000f267c: 00051400 sll r2,r5,0x10
 
  000f267c: 00051400 sll r2,r5,0x10
  000f2680: 00021403 sra r2,r2,0x10
+
  000f2680: 00021403 sra r2,r2,0x10 #map state GNS
  000f2684: 0062182a slt r3,r3,r2
+
  000f2684: 0062182a slt r3,r3,r2 #r3 = true if map state < room arrangement
  000f2688: 1060000a beq r3,r0,0x000f26b4
+
  000f2688: 1060000a beq r3,r0,0x000f26b4 #branch if map state => room arrangement
 
  000f268c: 00000000 nop
 
  000f268c: 00000000 nop
  000f2690: 0803c9ad j 0x000f26b4
+
  000f2690: 0803c9ad j 0x000f26b4 #finish
  000f2694: 34070001 ori r7,r0,0x0001
+
  000f2694: 34070001 ori r7,r0,0x0001 #1
  000f2698: 00031c03 sra r3,r3,0x10
+
 
 +
Thunder weather:
 +
  000f2698: 00031c03 sra r3,r3,0x10 #lower halfword mapstate
 
  000f269c: 00051400 sll r2,r5,0x10
 
  000f269c: 00051400 sll r2,r5,0x10
 
  000f26a0: 00021403 sra r2,r2,0x10
 
  000f26a0: 00021403 sra r2,r2,0x10
  000f26a4: 0043102a slt r2,r2,r3
+
  000f26a4: 0043102a slt r2,r2,r3 #set true if room arrangement < map state
  000f26a8: 10400002 beq r2,r0,0x000f26b4
+
  000f26a8: 10400002 beq r2,r0,0x000f26b4 #branch if room arrangement => map state
 
  000f26ac: 00000000 nop
 
  000f26ac: 00000000 nop
  000f26b0: 34070001 ori r7,r0,0x0001
+
  000f26b0: 34070001 ori r7,r0,0x0001 #1
 
  000f26b4: 03e00008 jr r31
 
  000f26b4: 03e00008 jr r31
  000f26b8: 00e01021 addu r2,r7,r0
+
  000f26b8: 00e01021 addu r2,r7,r0 #either 1 or 0
 
</font>
 
</font>

Latest revision as of 01:36, 6 January 2024

000f2618: 308400ff andi r4,r4,0x00ff			#-
000f261c: 34020002 ori r2,r0,0x0002
000f2620: 10820014 beq r4,r2,0x000f2674		#branch if weather is rain
000f2624: 00003821 addu r7,r0,r0			#0
000f2628: 28820003 slti r2,r4,0x0003			#
000f262c: 10400005 beq r2,r0,0x000f2644		#branch if weather !< thunderstorm
000f2630: 34020001 ori r2,r0,0x0001
000f2634: 10820008 beq r4,r2,0x000f2658		#branch if weather is clear (alternate)
000f2638: 00061c00 sll r3,r6,0x10			#map crystal No. + room arrangement + dialogue option?
000f263c: 0803c9ad j 0x000f26b4			#finish if weather is clear
000f2640: 00000000 nop
000f2644: 34020003 ori r2,r0,0x0003			#if weather !< thunderstorm
000f2648: 10820013 beq r4,r2,0x000f2698		#branch if weather = thunderstorm
000f264c: 00061c00 sll r3,r6,0x10			#upper half word map state
000f2650: 0803c9ad j 0x000f26b4			#finish if weather is => strong thunderstorm
000f2654: 00000000 nop

Clear weather:

000f2658: 00031c03 sra r3,r3,0x10			#move map state to lower halfword
000f265c: 00051400 sll r2,r5,0x10
000f2660: 00021403 sra r2,r2,0x10			#r2 = map's room arrangement
000f2664: 14620013 bne r3,r2,0x000f26b4		#branch if map state's room arrangement != map state
000f2668: 00000000 nop
000f266c: 0803c9ad j 0x000f26b4
000f2670: 34070001 ori r7,r0,0x0001			#1

Rain weather:

000f2674: 00061c00 sll r3,r6,0x10			
000f2678: 00031c03 sra r3,r3,0x10			#map state ENTD
000f267c: 00051400 sll r2,r5,0x10
000f2680: 00021403 sra r2,r2,0x10			#map state GNS
000f2684: 0062182a slt r3,r3,r2			#r3 = true if map state < room arrangement
000f2688: 1060000a beq r3,r0,0x000f26b4		#branch if map state => room arrangement
000f268c: 00000000 nop
000f2690: 0803c9ad j 0x000f26b4			#finish
000f2694: 34070001 ori r7,r0,0x0001			#1

Thunder weather:

000f2698: 00031c03 sra r3,r3,0x10			#lower halfword mapstate
000f269c: 00051400 sll r2,r5,0x10
000f26a0: 00021403 sra r2,r2,0x10
000f26a4: 0043102a slt r2,r2,r3			#set true if room arrangement < map state
000f26a8: 10400002 beq r2,r0,0x000f26b4		#branch if room arrangement => map state
000f26ac: 00000000 nop
000f26b0: 34070001 ori r7,r0,0x0001			#1
000f26b4: 03e00008 jr r31
000f26b8: 00e01021 addu r2,r7,r0			#either 1 or 0