Difference between revisions of "001b0a90 - 001b0c84"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " 001b0a90: 27bdffc8 addiu r29,r29,-0x0038 001b0a94: afb20028 sw r18,0x0028(r29) 001b0a98: 00809021 addu r18,r4,r0 001b0a9c: afb10024 sw r17,0x0024(r29) 001b0aa0: 00a08821...")
 
m (jals)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
Calling routine not found(...)
 +
----------------------------------------
 
  001b0a90: 27bdffc8 addiu r29,r29,-0x0038
 
  001b0a90: 27bdffc8 addiu r29,r29,-0x0038
 
  001b0a94: afb20028 sw r18,0x0028(r29)
 
  001b0a94: afb20028 sw r18,0x0028(r29)
Line 18: Line 20:
 
  001b0ad4: 00629823 subu r19,r3,r2
 
  001b0ad4: 00629823 subu r19,r3,r2
 
  001b0ad8: 2402ffff addiu r2,r0,-0x0001
 
  001b0ad8: 2402ffff addiu r2,r0,-0x0001
  001b0adc: 12020009 beq r16,r2,0x00149b04
+
  001b0adc: 12020009 beq r16,r2,0x001b0b04
 
  001b0ae0: 00000000 nop
 
  001b0ae0: 00000000 nop
  001b0ae4: 0c023727 jal 0x0008dc9c
+
  001b0ae4: 0c023727 jal 0x0008dc9c [[Find Unit's Misc Data Pointer and Load Spritesheet Value]]
 
  001b0ae8: 02002021 addu r4,r16,r0
 
  001b0ae8: 02002021 addu r4,r16,r0
 
  001b0aec: 00021840 sll r3,r2,0x01
 
  001b0aec: 00021840 sll r3,r2,0x01
 
  001b0af0: 00621821 addu r3,r3,r2
 
  001b0af0: 00621821 addu r3,r3,r2
  001b0af4: 04610003 bgez r3,0x00149b04
+
  001b0af4: 04610003 bgez r3,0x001b0b04
 
  001b0af8: 0003a083 sra r20,r3,0x02
 
  001b0af8: 0003a083 sra r20,r3,0x02
 
  001b0afc: 24630003 addiu r3,r3,0x0003
 
  001b0afc: 24630003 addiu r3,r3,0x0003
Line 30: Line 32:
 
  001b0b04: 3c05801c lui r5,0x801c
 
  001b0b04: 3c05801c lui r5,0x801c
 
  001b0b08: 24a5925c addiu r5,r5,-0x6da4
 
  001b0b08: 24a5925c addiu r5,r5,-0x6da4
  001b0b0c: 0c02311a jal 0x0008c468
+
  001b0b0c: 0c02311a jal 0x0008c468 [[Set Unit Xmod, Y Mod and Height data from unit ID]]
 
  001b0b10: 02402021 addu r4,r18,r0
 
  001b0b10: 02402021 addu r4,r18,r0
 
  001b0b14: 3c02801c lui r2,0x801c
 
  001b0b14: 3c02801c lui r2,0x801c
Line 39: Line 41:
 
  001b0b28: a422925e sh r2,-0x6da2(r1)
 
  001b0b28: a422925e sh r2,-0x6da2(r1)
 
  001b0b2c: 2402ffff addiu r2,r0,-0x0001
 
  001b0b2c: 2402ffff addiu r2,r0,-0x0001
  001b0b30: 1602001d bne r16,r2,0x00149ba8
+
  001b0b30: 1602001d bne r16,r2,0x001b0ba8
 
  001b0b34: 00000000 nop
 
  001b0b34: 00000000 nop
 
  001b0b38: 86240000 lh r4,0x0000(r17)
 
  001b0b38: 86240000 lh r4,0x0000(r17)
 
  001b0b3c: 86250004 lh r5,0x0004(r17)
 
  001b0b3c: 86250004 lh r5,0x0004(r17)
 
  001b0b40: 86260002 lh r6,0x0002(r17)
 
  001b0b40: 86260002 lh r6,0x0002(r17)
  001b0b44: 0c060fed jal 0x00183fb4
+
  001b0b44: 0c060fed jal 0x00183fb4 [[Get Tile Data Pointer]] | [[Deals with map coordinates 1]]
 
  001b0b48: 00000000 nop
 
  001b0b48: 00000000 nop
 
  001b0b4c: 86240000 lh r4,0x0000(r17)
 
  001b0b4c: 86240000 lh r4,0x0000(r17)
Line 71: Line 73:
 
  001b0ba8: 3c05801c lui r5,0x801c
 
  001b0ba8: 3c05801c lui r5,0x801c
 
  001b0bac: 24a59264 addiu r5,r5,-0x6d9c
 
  001b0bac: 24a59264 addiu r5,r5,-0x6d9c
  001b0bb0: 0c02311a jal 0x0008c468
+
  001b0bb0: 0c02311a jal 0x0008c468 [[Set Unit Xmod, Y Mod and Height data from unit ID]]
 
  001b0bb4: 02002021 addu r4,r16,r0
 
  001b0bb4: 02002021 addu r4,r16,r0
 
  001b0bb8: 3c02801c lui r2,0x801c
 
  001b0bb8: 3c02801c lui r2,0x801c
Line 108: Line 110:
 
  001b0c3c: 00001012 mflo r2
 
  001b0c3c: 00001012 mflo r2
 
  001b0c40: 00822021 addu r4,r4,r2
 
  001b0c40: 00822021 addu r4,r4,r2
  001b0c44: 0c00709a jal 0x0001c268
+
  001b0c44: 0c00709a jal 0x0001c268               [[Get_Square_root_of_r4_dealing_with_4096]]
 
  001b0c48: 00042300 sll r4,r4,0x0c
 
  001b0c48: 00042300 sll r4,r4,0x0c
  001b0c4c: 04410002 bgez r2,0x00149c58
+
  001b0c4c: 04410002 bgez r2,0x001b0c58
 
  001b0c50: 00000000 nop
 
  001b0c50: 00000000 nop
 
  001b0c54: 24420007 addiu r2,r2,0x0007
 
  001b0c54: 24420007 addiu r2,r2,0x0007
Line 125: Line 127:
 
  001b0c80: 03e00008 jr r31
 
  001b0c80: 03e00008 jr r31
 
  001b0c84: 00000000 nop
 
  001b0c84: 00000000 nop
=== Return location ==
+
 
 +
=== Return location ===
 
  '''Battle.bin'''
 
  '''Battle.bin'''
 
  Not found ... via a jalr command ?
 
  Not found ... via a jalr command ?

Latest revision as of 14:32, 30 May 2022

Calling routine not found(...)
----------------------------------------
001b0a90: 27bdffc8 addiu r29,r29,-0x0038
001b0a94: afb20028 sw r18,0x0028(r29)
001b0a98: 00809021 addu r18,r4,r0
001b0a9c: afb10024 sw r17,0x0024(r29)
001b0aa0: 00a08821 addu r17,r5,r0
001b0aa4: afb00020 sw r16,0x0020(r29)
001b0aa8: 00c08021 addu r16,r6,r0
001b0aac: afbf0034 sw r31,0x0034(r29)
001b0ab0: afb40030 sw r20,0x0030(r29)
001b0ab4: 0c023727 jal 0x0008dc9c
001b0ab8: afb3002c sw r19,0x002c(r29)
001b0abc: 3c035555 lui r3,0x5555
001b0ac0: 34635556 ori r3,r3,0x5556
001b0ac4: 00021040 sll r2,r2,0x01
001b0ac8: 00430018 mult r2,r3
001b0acc: 000217c3 sra r2,r2,0x1f
001b0ad0: 00001810 mfhi r3
001b0ad4: 00629823 subu r19,r3,r2
001b0ad8: 2402ffff addiu r2,r0,-0x0001
001b0adc: 12020009 beq r16,r2,0x001b0b04
001b0ae0: 00000000 nop
001b0ae4: 0c023727 jal 0x0008dc9c		Find Unit's Misc Data Pointer and Load Spritesheet Value
001b0ae8: 02002021 addu r4,r16,r0
001b0aec: 00021840 sll r3,r2,0x01
001b0af0: 00621821 addu r3,r3,r2
001b0af4: 04610003 bgez r3,0x001b0b04
001b0af8: 0003a083 sra r20,r3,0x02
001b0afc: 24630003 addiu r3,r3,0x0003
001b0b00: 0003a083 sra r20,r3,0x02
001b0b04: 3c05801c lui r5,0x801c
001b0b08: 24a5925c addiu r5,r5,-0x6da4
001b0b0c: 0c02311a jal 0x0008c468		Set Unit Xmod, Y Mod and Height data from unit ID
001b0b10: 02402021 addu r4,r18,r0
001b0b14: 3c02801c lui r2,0x801c
001b0b18: 9442925e lhu r2,-0x6da2(r2)
001b0b1c: 00000000 nop
001b0b20: 00531023 subu r2,r2,r19
001b0b24: 3c01801c lui r1,0x801c
001b0b28: a422925e sh r2,-0x6da2(r1)
001b0b2c: 2402ffff addiu r2,r0,-0x0001
001b0b30: 1602001d bne r16,r2,0x001b0ba8
001b0b34: 00000000 nop
001b0b38: 86240000 lh r4,0x0000(r17)
001b0b3c: 86250004 lh r5,0x0004(r17)
001b0b40: 86260002 lh r6,0x0002(r17)
001b0b44: 0c060fed jal 0x00183fb4		Get Tile Data Pointer | Deals with map coordinates 1
001b0b48: 00000000 nop
001b0b4c: 86240000 lh r4,0x0000(r17)
001b0b50: 00000000 nop
001b0b54: 000418c0 sll r3,r4,0x03
001b0b58: 00641823 subu r3,r3,r4
001b0b5c: 00031880 sll r3,r3,0x02
001b0b60: 2463000e addiu r3,r3,0x000e
001b0b64: 3c01801c lui r1,0x801c
001b0b68: a4239264 sh r3,-0x6d9c(r1)
001b0b6c: 86240004 lh r4,0x0004(r17)
001b0b70: 00000000 nop
001b0b74: 000418c0 sll r3,r4,0x03
001b0b78: 00641823 subu r3,r3,r4
001b0b7c: 00031880 sll r3,r3,0x02
001b0b80: 2463000e addiu r3,r3,0x000e
001b0b84: 3c01801c lui r1,0x801c
001b0b88: a4239268 sh r3,-0x6d98(r1)
001b0b8c: 90430002 lbu r3,0x0002(r2)
001b0b90: 00000000 nop
001b0b94: 00031040 sll r2,r3,0x01
001b0b98: 00431021 addu r2,r2,r3
001b0b9c: 00021080 sll r2,r2,0x02
001b0ba0: 0806c2f2 j 0x001b0bc8
001b0ba4: 00021023 subu r2,r0,r2
001b0ba8: 3c05801c lui r5,0x801c
001b0bac: 24a59264 addiu r5,r5,-0x6d9c
001b0bb0: 0c02311a jal 0x0008c468		Set Unit Xmod, Y Mod and Height data from unit ID
001b0bb4: 02002021 addu r4,r16,r0
001b0bb8: 3c02801c lui r2,0x801c
001b0bbc: 94429266 lhu r2,-0x6d9a(r2)
001b0bc0: 00000000 nop
001b0bc4: 00541023 subu r2,r2,r20
001b0bc8: 3c01801c lui r1,0x801c
001b0bcc: a4229266 sh r2,-0x6d9a(r1)
001b0bd0: 3c06801c lui r6,0x801c
001b0bd4: 84c69264 lh r6,-0x6d9c(r6)
001b0bd8: 3c02801c lui r2,0x801c
001b0bdc: 8442925c lh r2,-0x6da4(r2)
001b0be0: 00000000 nop
001b0be4: 00c23023 subu r6,r6,r2
001b0be8: 00c60018 mult r6,r6
001b0bec: 3c03801c lui r3,0x801c
001b0bf0: 84639266 lh r3,-0x6d9a(r3)
001b0bf4: 3c02801c lui r2,0x801c
001b0bf8: 8442925e lh r2,-0x6da2(r2)
001b0bfc: 00002012 mflo r4
001b0c00: 00621823 subu r3,r3,r2
001b0c04: 00000000 nop
001b0c08: 00630018 mult r3,r3
001b0c0c: 3c05801c lui r5,0x801c
001b0c10: 84a59260 lh r5,-0x6da0(r5)
001b0c14: 3c02801c lui r2,0x801c
001b0c18: 84429268 lh r2,-0x6d98(r2)
001b0c1c: 00003812 mflo r7
001b0c20: 00451023 subu r2,r2,r5
001b0c24: 00000000 nop
001b0c28: 00420018 mult r2,r2
001b0c2c: afa60010 sw r6,0x0010(r29)
001b0c30: afa30014 sw r3,0x0014(r29)
001b0c34: afa20018 sw r2,0x0018(r29)
001b0c38: 00872021 addu r4,r4,r7
001b0c3c: 00001012 mflo r2
001b0c40: 00822021 addu r4,r4,r2
001b0c44: 0c00709a jal 0x0001c268               Get_Square_root_of_r4_dealing_with_4096
001b0c48: 00042300 sll r4,r4,0x0c
001b0c4c: 04410002 bgez r2,0x001b0c58
001b0c50: 00000000 nop
001b0c54: 24420007 addiu r2,r2,0x0007
001b0c58: 000213c3 sra r2,r2,0x0f
001b0c5c: 3c01801c lui r1,0x801c
001b0c60: ac22bf3c sw r2,-0x40c4(r1)
001b0c64: 8fbf0034 lw r31,0x0034(r29)
001b0c68: 8fb40030 lw r20,0x0030(r29)
001b0c6c: 8fb3002c lw r19,0x002c(r29)
001b0c70: 8fb20028 lw r18,0x0028(r29)
001b0c74: 8fb10024 lw r17,0x0024(r29)
001b0c78: 8fb00020 lw r16,0x0020(r29)
001b0c7c: 27bd0038 addiu r29,r29,0x0038
001b0c80: 03e00008 jr r31
001b0c84: 00000000 nop

Return location

Battle.bin
Not found ... via a jalr command ?