Dividend * 4 / Divisor

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
Dividend * 4 / Divisor
0019a2cc: 10800005 beq r4,r0,0x 0019a2e4		Branch if Divisor = 0
0019a2d0: 00051080 sll r2,r5,0x02		Dividend * 4
0019a2d4: 0044001a div r2,r4			Dividend * 4 / Divisor
0019a2d8: 00001012 mflo r2			r2 = "
0019a2dc: 080668ba j 0x 0019a2e8
0019a2e0: 00000000 nop
0019a2e4: 00001021 addu r2,r0,r0		r2 = 0
0019a2e8: 03e00008 jr r31
0019a2ec: 00000000 nop