Difference between revisions of "000872ec - 000873b8"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 000872ec: 27bdfff8 addiu r29,r29,0xfff8 000872f0: 00a05021 addu r10,r5,r0 000872f4: 00003821 addu r7,r0,r0 000872f8: 240bffff addiu r11,r0,0xff...")
 
m (Need to find out what calls this routine.)
Line 6: Line 6:
 
  000872f8: 240bffff addiu r11,r0,0xffff
 
  000872f8: 240bffff addiu r11,r0,0xffff
 
  000872fc: 3c09800a lui r9,0x800a
 
  000872fc: 3c09800a lui r9,0x800a
  00087300: 8d291c58 lw r9,0x1c58(r9)
+
  00087300: 8d291c58 lw r9,0x1c58(r9) Load pointer to start of unit animations
 
  00087304: 00804021 addu r8,r4,r0
 
  00087304: 00804021 addu r8,r4,r0
  00087308: 24a60004 addiu r6,r5,0x0004
+
  00087308: 24a60004 addiu r6,r5,0x0004 Ptr.? + 4
  0008730c: 90c20001 lbu r2,0x0001(r6)
+
  0008730c: 90c20001 lbu r2,0x0001(r6) 2nd lowest byte of ptr. index
  00087310: 90c40000 lbu r4,0x0000(r6)
+
  00087310: 90c40000 lbu r4,0x0000(r6) lower byte of ptr. index
  00087314: 90c30002 lbu r3,0x0002(r6)
+
  00087314: 90c30002 lbu r3,0x0002(r6) upper halfword of ptr. index
  00087318: 00021200 sll r2,r2,0x08
+
  00087318: 00021200 sll r2,r2,0x08
 
  0008731c: 00822021 addu r4,r4,r2
 
  0008731c: 00822021 addu r4,r4,r2
  00087320: 00031c00 sll r3,r3,0x10
+
  00087320: 00031c00 sll r3,r3,0x10 make Upper halfword
  00087324: 90c20003 lbu r2,0x0003(r6)
+
  00087324: 90c20003 lbu r2,0x0003(r6) Upper byte of ptr. index
 
  00087328: 00832021 addu r4,r4,r3
 
  00087328: 00832021 addu r4,r4,r3
  0008732c: 00021600 sll r2,r2,0x18
+
  0008732c: 00021600 sll r2,r2,0x18 Upper byte?
  00087330: 00821021 addu r2,r4,r2
+
  00087330: 00821021 addu r2,r4,r2 Form pointer
  00087334: 144b0002 bne r2,r11,0x00087340
+
  00087334: 144b0002 bne r2,r11,0x00087340 branch if legal?
 
  00087338: 24c60004 addiu r6,r6,0x0004
 
  00087338: 24c60004 addiu r6,r6,0x0004
 
  0008733c: 00001021 addu r2,r0,r0
 
  0008733c: 00001021 addu r2,r0,r0
  00087340: 00491021 addu r2,r2,r9
+
  00087340: 00491021 addu r2,r2,r9 Add to animation ptr.
  00087344: ad020000 sw r2,0x0000(r8)
+
  00087344: ad020000 sw r2,0x0000(r8) Store animation pointer
 
  00087348: 24e70001 addiu r7,r7,0x0001
 
  00087348: 24e70001 addiu r7,r7,0x0001
 
  0008734c: 2ce20100 sltiu r2,r7,0x0100
 
  0008734c: 2ce20100 sltiu r2,r7,0x0100
  00087350: 1440ffee bne r2,r0,0x0008730c
+
  00087350: 1440ffee bne r2,r0,0x0008730c loop
  00087354: 25080004 addiu r8,r8,0x0004
+
  00087354: 25080004 addiu r8,r8,0x0004 move to next spritesheet type?
 
  00087358: 91420405 lbu r2,0x0405(r10)
 
  00087358: 91420405 lbu r2,0x0405(r10)
 
  0008735c: 91430404 lbu r3,0x0404(r10)
 
  0008735c: 91430404 lbu r3,0x0404(r10)

Revision as of 12:21, 2 April 2023

000872ec: 27bdfff8 addiu r29,r29,0xfff8
000872f0: 00a05021 addu r10,r5,r0
000872f4: 00003821 addu r7,r0,r0
000872f8: 240bffff addiu r11,r0,0xffff
000872fc: 3c09800a lui r9,0x800a
00087300: 8d291c58 lw r9,0x1c58(r9)		Load pointer to start of unit animations
00087304: 00804021 addu r8,r4,r0
00087308: 24a60004 addiu r6,r5,0x0004		Ptr.? + 4
0008730c: 90c20001 lbu r2,0x0001(r6)		2nd lowest byte of ptr. index
00087310: 90c40000 lbu r4,0x0000(r6)		lower byte of ptr. index
00087314: 90c30002 lbu r3,0x0002(r6)		upper halfword of ptr. index
00087318: 00021200 sll r2,r2,0x08		
0008731c: 00822021 addu r4,r4,r2
00087320: 00031c00 sll r3,r3,0x10		make Upper halfword
00087324: 90c20003 lbu r2,0x0003(r6)		Upper byte of ptr. index
00087328: 00832021 addu r4,r4,r3
0008732c: 00021600 sll r2,r2,0x18		Upper byte?		
00087330: 00821021 addu r2,r4,r2		Form pointer
00087334: 144b0002 bne r2,r11,0x00087340	branch if legal?
00087338: 24c60004 addiu r6,r6,0x0004
0008733c: 00001021 addu r2,r0,r0
00087340: 00491021 addu r2,r2,r9		Add to animation ptr. 
00087344: ad020000 sw r2,0x0000(r8)		Store animation pointer
00087348: 24e70001 addiu r7,r7,0x0001
0008734c: 2ce20100 sltiu r2,r7,0x0100
00087350: 1440ffee bne r2,r0,0x0008730c	loop
00087354: 25080004 addiu r8,r8,0x0004		move to next spritesheet type?
00087358: 91420405 lbu r2,0x0405(r10)
0008735c: 91430404 lbu r3,0x0404(r10)
00087360: 00021200 sll r2,r2,0x08
00087364: 00622021 addu r4,r3,r2
00087368: 1080000b beq r4,r0,0x00087398
0008736c: 00003821 addu r7,r0,r0
00087370: 24a50406 addiu r5,r5,0x0406
00087374: 3c02800a lui r2,0x800a
00087378: 8c421c58 lw r2,0x1c58(r2)
0008737c: 90a30000 lbu r3,0x0000(r5)
00087380: 00471021 addu r2,r2,r7
00087384: 24e70001 addiu r7,r7,0x0001
00087388: a0430000 sb r3,0x0000(r2)
0008738c: 00e4102b sltu r2,r7,r4
00087390: 1440fff8 bne r2,r0,0x00087374
00087394: 24a50001 addiu r5,r5,0x0001
00087398: 3c02800a lui r2,0x800a
0008739c: 8c421c58 lw r2,0x1c58(r2)
000873a0: 00000000 nop
000873a4: 00e21021 addu r2,r7,r2
000873a8: 3c01800a lui r1,0x800a
000873ac: ac221c58 sw r2,0x1c58(r1)
000873b0: 27bd0008 addiu r29,r29,0x0008
000873b4: 03e00008 jr r31
000873b8: 00000000 nop