If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working soon.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
Final Fantasy IX/ROM map/CD4
< Final Fantasy IX | ROM map
Jump to navigation
Jump to search
The following article is a ROM map for Final Fantasy IX/ROM map.
Encounter check
00038d3c: 3c028008 lui r2,0x8008 00038d40: 8c44aecc lw r4,-0x5134(r2) 00038d44: 27bdffe0 addiu r29,r29,0xffe0 00038d48: afbf001c sw r31,0x001c(r29) 00038d4c: afb20018 sw r18,0x0018(r29) 00038d50: afb10014 sw r17,0x0014(r29) 00038d54: afb00010 sw r16,0x0010(r29) 00038d58: 908216ec lbu r2,0x16ec(r4) 00038d5c: 00000000 nop 00038d60: 10400096 beq r2,r0,0x00038fbc 00038d64: 00008021 addu r16,r0,r0 00038d68: 3c038008 lui r3,0x8008 00038d6c: 8c62ae4c lw r2,-0x51b4(r3) 00038d70: 00000000 nop 00038d74: 284203c1 slti r2,r2,0x03c1 00038d78: 14400091 bne r2,r0,0x00038fc0 00038d7c: 0010102b sltu r2,r0,r16 00038d80: 3c128008 lui r18,0x8008 00038d84: ac60ae4c sw r0,-0x51b4(r3) 00038d88: 908316ef lbu r3,0x16ef(r4) ;r3 = encounter rate 00038d8c: 8e42ae50 lw r2,-0x51b0(r18) 00038d90: 3c118008 lui r17,0x8008 00038d94: 00431021 addu r2,r2,r3 ;r2 = cumulative encounter rate 00038d98: ae42ae50 sw r2,-0x51b0(r18) ;store cumulative encounter rate in 0x8007ae50 00038d9c: 3c028008 lui r2,0x8008 00038da0: 8e23b720 lw r3,-0x48e0(r17) 00038da4: 2442b92d addiu r2,r2,0xb92d 00038da8: 0062182b sltu r3,r3,r2 00038dac: 14600003 bne r3,r0,0x00038dbc 00038db0: 00000000 nop 00038db4: 0c012fc8 jal 0x0004bf20 00038db8: 00000000 nop 00038dbc: 8e22b720 lw r2,-0x48e0(r17) 00038dc0: 8e43ae50 lw r3,-0x51b0(r18) 00038dc4: 90440000 lbu r4,0x0000(r2) 00038dc8: 24420001 addiu r2,r2,0x0001 00038dcc: 000318c3 sra r3,r3,0x03 00038dd0: 0083202a slt r4,r4,r3 00038dd4: 10800079 beq r4,r0,0x00038fbc 00038dd8: ae22b720 sw r2,-0x48e0(r17) 00038ddc: 3c028008 lui r2,0x8008 00038de0: 8c43b708 lw r3,-0x48f8(r2) 00038de4: 24020001 addiu r2,r0,0x0001 00038de8: 10620005 beq r3,r2,0x00038e00 00038dec: ae40ae50 sw r0,-0x51b0(r18) 00038df0: 0c02eeea jal 0x000bbba8 00038df4: 3c108008 lui r16,0x8008 00038df8: 0800e383 j 0x00038e0c 00038dfc: 00408821 addu r17,r2,r0