Difference between revisions of "Get Positive Priority (00196908)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Uploaded the correct routine)
m
Line 1: Line 1:
  Get Positive Priority
+
  Get Positive (Target) Priority
  
 
  00196908: 27bdffe8 addiu r29,r29,0xffe8
 
  00196908: 27bdffe8 addiu r29,r29,0xffe8

Revision as of 00:49, 9 March 2017

Get Positive (Target) Priority
00196908: 27bdffe8 addiu r29,r29,0xffe8
0019690c: afbf0010 sw r31,0x0010(r29)
00196910: 0c065a4f jal 0x0019693c				Find Closest Highest Priority
00196914: 00002821 addu r5,r0,r0				Prioritize Distance over Priority
00196918: 14400004 bne r2,r0,0x0019692c			Exit if Priority was positive
0019691c: 3c047fff lui r4,0x7fff
00196920: 3484ffff ori r4,r4,0xffff
00196924: 0c065a4f jal 0x0019693c				Find Closest Highest Priority
00196928: 34050001 ori r5,r0,0x0001				Prioritize Priority over Distance
0019692c: 8fbf0010 lw r31,0x0010(r29)
00196930: 27bd0018 addiu r29,r29,0x0018
00196934: 03e00008 jr r31
00196938: 00000000 nop