Difference between revisions of "00197b2c - 00197c64"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 00197b2c: 27bdffc8 addiu r29,r29,0xffc8 00197b30: afb3002c sw r19,0x002c(r29) 00197b34: 00809821 addu r19,r4,r0 00197b38: afb10024 sw r17,0x002...")
 
 
Line 32: Line 32:
 
  00197ba0: 08065f12 j 0x00197c48
 
  00197ba0: 08065f12 j 0x00197c48
 
  00197ba4: a4a40000 sh r4,0x0000(r5)
 
  00197ba4: a4a40000 sh r4,0x0000(r5)
  00197ba8: 0c0088c3 jal 0x0002230c
+
 
 +
  00197ba8: 0c0088c3 jal 0x0002230c                   Random
 
  00197bac: 00000000 nop
 
  00197bac: 00000000 nop
 
  00197bb0: 00004821 addu r9,r0,r0
 
  00197bb0: 00004821 addu r9,r0,r0
 
  00197bb4: 3c0c801a lui r12,0x801a
 
  00197bb4: 3c0c801a lui r12,0x801a
  00197bb8: 918c01ff lbu r12,0x01ff(r12)
+
  00197bb8: 918c01ff lbu r12,0x01ff(r12)             load map max Y
 
  00197bbc: 02605021 addu r10,r19,r0
 
  00197bbc: 02605021 addu r10,r19,r0
  00197bc0: 0050001a div r2,r16
+
  00197bc0: 0050001a div r2,r16                       Random % r6 input
 
  00197bc4: 00003010 mfhi r6
 
  00197bc4: 00003010 mfhi r6
  00197bc8: 1180001a beq r12,r0,0x00197c34
+
  00197bc8: 1180001a beq r12,r0,0x00197c34           branch if map max Y = 0
 
  00197bcc: 00002821 addu r5,r0,r0
 
  00197bcc: 00002821 addu r5,r0,r0
 
  00197bd0: 924b0e3b lbu r11,0x0e3b(r18)
 
  00197bd0: 924b0e3b lbu r11,0x0e3b(r18)

Latest revision as of 17:00, 22 February 2015

00197b2c: 27bdffc8 addiu r29,r29,0xffc8
00197b30: afb3002c sw r19,0x002c(r29)
00197b34: 00809821 addu r19,r4,r0
00197b38: afb10024 sw r17,0x0024(r29)
00197b3c: 00a08821 addu r17,r5,r0
00197b40: afb00020 sw r16,0x0020(r29)
00197b44: 00c08021 addu r16,r6,r0
00197b48: afb20028 sw r18,0x0028(r29)
00197b4c: 3c12801a lui r18,0x801a
00197b50: 2652f3c4 addiu r18,r18,0xf3c4
00197b54: 16000014 bne r16,r0,0x00197ba8
00197b58: afbf0030 sw r31,0x0030(r29)
00197b5c: 08065f12 j 0x00197c48
00197b60: 00001021 addu r2,r0,r0
00197b64: 34020001 ori r2,r0,0x0001
00197b68: a2250002 sb r5,0x0002(r17)
00197b6c: 00052840 sll r5,r5,0x01
00197b70: 000918c0 sll r3,r9,0x03
00197b74: 00691821 addu r3,r3,r9
00197b78: 00031880 sll r3,r3,0x02
00197b7c: 00731821 addu r3,r3,r19
00197b80: 00a32821 addu r5,r5,r3
00197b84: 34038000 ori r3,r0,0x8000
00197b88: a2270000 sb r7,0x0000(r17)
00197b8c: a2290001 sb r9,0x0001(r17)
00197b90: a2200003 sb r0,0x0003(r17)
00197b94: 94a40000 lhu r4,0x0000(r5)
00197b98: 00e31807 srav r3,r3,r7
00197b9c: 00832026 xor r4,r4,r3
00197ba0: 08065f12 j 0x00197c48
00197ba4: a4a40000 sh r4,0x0000(r5)
00197ba8: 0c0088c3 jal 0x0002230c                   Random
00197bac: 00000000 nop
00197bb0: 00004821 addu r9,r0,r0
00197bb4: 3c0c801a lui r12,0x801a
00197bb8: 918c01ff lbu r12,0x01ff(r12)              load map max Y
00197bbc: 02605021 addu r10,r19,r0
00197bc0: 0050001a div r2,r16                       Random % r6 input
00197bc4: 00003010 mfhi r6
00197bc8: 1180001a beq r12,r0,0x00197c34            branch if map max Y = 0
00197bcc: 00002821 addu r5,r0,r0
00197bd0: 924b0e3b lbu r11,0x0e3b(r18)
00197bd4: 01402021 addu r4,r10,r0
00197bd8: 94820000 lhu r2,0x0000(r4)
00197bdc: 00000000 nop
00197be0: 10400010 beq r2,r0,0x00197c24
00197be4: 00000000 nop
00197be8: 92430e3a lbu r3,0x0e3a(r18)
00197bec: 00000000 nop
00197bf0: 1860000c blez r3,0x00197c24
00197bf4: 00003821 addu r7,r0,r0
00197bf8: 00404021 addu r8,r2,r0
00197bfc: 00e81004 sllv r2,r8,r7
00197c00: 30428000 andi r2,r2,0x8000
00197c04: 10400003 beq r2,r0,0x00197c14
00197c08: 00000000 nop
00197c0c: 10c0ffd5 beq r6,r0,0x00197b64
00197c10: 24c6ffff addiu r6,r6,0xffff
00197c14: 24e70001 addiu r7,r7,0x0001
00197c18: 00e3102a slt r2,r7,r3
00197c1c: 1440fff8 bne r2,r0,0x00197c00
00197c20: 00e81004 sllv r2,r8,r7
00197c24: 24a50001 addiu r5,r5,0x0001
00197c28: 00ab102a slt r2,r5,r11
00197c2c: 1440ffea bne r2,r0,0x00197bd8
00197c30: 24840002 addiu r4,r4,0x0002
00197c34: 25290001 addiu r9,r9,0x0001
00197c38: 29220002 slti r2,r9,0x0002
00197c3c: 1440ffe2 bne r2,r0,0x00197bc8
00197c40: 254a0024 addiu r10,r10,0x0024
00197c44: 00001021 addu r2,r0,r0
00197c48: 8fbf0030 lw r31,0x0030(r29)
00197c4c: 8fb3002c lw r19,0x002c(r29)
00197c50: 8fb20028 lw r18,0x0028(r29)
00197c54: 8fb10024 lw r17,0x0024(r29)
00197c58: 8fb00020 lw r16,0x0020(r29)
00197c5c: 27bd0038 addiu r29,r29,0x0038
00197c60: 03e00008 jr r31
00197c64: 00000000 nop