diff --git a/generated/SCPH1001_full.c b/generated/SCPH1001_full.c index e717de7b..4a5578c3 100644 --- a/generated/SCPH1001_full.c +++ b/generated/SCPH1001_full.c @@ -1346,6 +1346,9 @@ label_BFC00150: void func_1FC00180(CPUState* cpu) { debug_server_log_call_entry(0x1FC00180u); + int psx_taken_BFC00270 = 0; + int psx_taken_BFC00320 = 0; + int psx_taken_BFC003C4 = 0; label_BFC00180: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(52u); @@ -1478,7 +1481,7 @@ label_BFC00250: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[10] + (112)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0026Cu); return; } g_debug_last_store_pc = 0xBFC0026Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC00270: 154BFFF7 bne $t2, $t3, 0xBFC00250 */ uint32_t psx_brA_BFC00270 = cpu->gpr[10]; uint32_t psx_brB_BFC00270 = cpu->gpr[11]; - int psx_taken_BFC00270 = (psx_brA_BFC00270 != psx_brB_BFC00270); + psx_taken_BFC00270 = (psx_brA_BFC00270 != psx_brB_BFC00270); /* 0xBFC00274: 214A0080 addi $t2, $t2, 128 */ { int32_t psx_a = (int32_t)cpu->gpr[10]; int32_t psx_b = (128); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[10] = (uint32_t)(int32_t)psx_r; } if (psx_taken_BFC00270) goto label_BFC00250; @@ -1578,7 +1581,7 @@ label_BFC002A0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[10] + (124)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0031Cu); return; } g_debug_last_store_pc = 0xBFC0031Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC00320: 154BFFDF bne $t2, $t3, 0xBFC002A0 */ uint32_t psx_brA_BFC00320 = cpu->gpr[10]; uint32_t psx_brB_BFC00320 = cpu->gpr[11]; - int psx_taken_BFC00320 = (psx_brA_BFC00320 != psx_brB_BFC00320); + psx_taken_BFC00320 = (psx_brA_BFC00320 != psx_brB_BFC00320); /* 0xBFC00324: 214A0080 addi $t2, $t2, 128 */ { int32_t psx_a = (int32_t)cpu->gpr[10]; int32_t psx_b = (128); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[10] = (uint32_t)(int32_t)psx_r; } if (psx_taken_BFC00320) goto label_BFC002A0; @@ -1672,7 +1675,7 @@ label_BFC003B8: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[3] ? 1 : 0); /* 0xBFC003C4: 1420FFFC bne $at, $zero, 0xBFC003B8 */ uint32_t psx_brA_BFC003C4 = cpu->gpr[1]; uint32_t psx_brB_BFC003C4 = cpu->gpr[0]; - int psx_taken_BFC003C4 = (psx_brA_BFC003C4 != psx_brB_BFC003C4); + psx_taken_BFC003C4 = (psx_brA_BFC003C4 != psx_brB_BFC003C4); /* 0xBFC003C8: 00000000 nop */ /* nop */ if (psx_taken_BFC003C4) goto label_BFC003B8; @@ -1727,6 +1730,7 @@ label_BFC003CC: void func_1FC00420(CPUState* cpu) { debug_server_log_call_entry(0x1FC00420u); + int psx_taken_BFC00444 = 0; label_BFC00420: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -1757,7 +1761,7 @@ label_BFC00434: { int32_t psx_a = (int32_t)cpu->gpr[5]; int32_t psx_b = (4); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[5] = (uint32_t)(int32_t)psx_r; } /* 0xBFC00444: 14C0FFFB bne $a2, $zero, 0xBFC00434 */ uint32_t psx_brA_BFC00444 = cpu->gpr[6]; uint32_t psx_brB_BFC00444 = cpu->gpr[0]; - int psx_taken_BFC00444 = (psx_brA_BFC00444 != psx_brB_BFC00444); + psx_taken_BFC00444 = (psx_brA_BFC00444 != psx_brB_BFC00444); /* 0xBFC00448: ACA7FFFC sw $a3, -4($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00448u); return; } g_debug_last_store_pc = 0xBFC00448u; cpu->write_word(psx_addr, cpu->gpr[7]); } if (psx_taken_BFC00444) goto label_BFC00434; @@ -2271,6 +2275,7 @@ void func_1FC008A0(CPUState* cpu) { default: break; } } + int psx_taken_BFC008C4 = 0; label_BFC008A0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -2301,7 +2306,7 @@ label_BFC008BC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC008C0u); return; } g_debug_last_store_pc = 0xBFC008C0u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC008C4: 1444FFFD bne $v0, $a0, 0xBFC008BC */ uint32_t psx_brA_BFC008C4 = cpu->gpr[2]; uint32_t psx_brB_BFC008C4 = cpu->gpr[4]; - int psx_taken_BFC008C4 = (psx_brA_BFC008C4 != psx_brB_BFC008C4); + psx_taken_BFC008C4 = (psx_brA_BFC008C4 != psx_brB_BFC008C4); /* 0xBFC008C8: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC008C4) goto label_BFC008BC; @@ -2412,6 +2417,30 @@ void func_1FC00944(CPUState* cpu) { default: break; } } + int psx_taken_BFC00968 = 0; + int psx_taken_BFC00970 = 0; + int psx_taken_BFC00990 = 0; + int psx_taken_BFC00998 = 0; + int psx_taken_BFC009AC = 0; + int psx_taken_BFC009B4 = 0; + int psx_taken_BFC009C4 = 0; + int psx_taken_BFC009D4 = 0; + int psx_taken_BFC009F4 = 0; + int psx_taken_BFC00A28 = 0; + int psx_taken_BFC00A30 = 0; + int psx_taken_BFC00A38 = 0; + int psx_taken_BFC00A5C = 0; + int psx_taken_BFC00A64 = 0; + int psx_taken_BFC00A6C = 0; + int psx_taken_BFC00A74 = 0; + int psx_taken_BFC00A9C = 0; + int psx_taken_BFC00AA4 = 0; + int psx_taken_BFC00AAC = 0; + int psx_taken_BFC00AD4 = 0; + int psx_taken_BFC00AE0 = 0; + int psx_taken_BFC00AEC = 0; + int psx_taken_BFC00AFC = 0; + int psx_taken_BFC00B40 = 0; label_BFC00944: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -2437,7 +2466,7 @@ label_BFC00944: cpu->gpr[18] = cpu->gpr[6] + cpu->gpr[0]; /* 0xBFC00968: 15C00003 bne $t6, $zero, 0xBFC00978 */ uint32_t psx_brA_BFC00968 = cpu->gpr[14]; uint32_t psx_brB_BFC00968 = cpu->gpr[0]; - int psx_taken_BFC00968 = (psx_brA_BFC00968 != psx_brB_BFC00968); + psx_taken_BFC00968 = (psx_brA_BFC00968 != psx_brB_BFC00968); /* 0xBFC0096C: 02208021 addu $s0, $s1, $zero */ cpu->gpr[16] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC00968) goto label_BFC00978; @@ -2448,7 +2477,7 @@ label_BFC00970: psx_check_interrupts(cpu); /* 0xBFC00970: 10000022 beq $zero, $zero, 0xBFC009FC */ uint32_t psx_brA_BFC00970 = cpu->gpr[0]; uint32_t psx_brB_BFC00970 = cpu->gpr[0]; - int psx_taken_BFC00970 = (psx_brA_BFC00970 == psx_brB_BFC00970); + psx_taken_BFC00970 = (psx_brA_BFC00970 == psx_brB_BFC00970); /* 0xBFC00974: 2411000A addiu $s1, $zero, 10 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); if (psx_taken_BFC00970) goto label_BFC009FC; @@ -2483,7 +2512,7 @@ label_BFC00990: psx_check_interrupts(cpu); /* 0xBFC00990: 14400004 bne $v0, $zero, 0xBFC009A4 */ uint32_t psx_brA_BFC00990 = cpu->gpr[2]; uint32_t psx_brB_BFC00990 = cpu->gpr[0]; - int psx_taken_BFC00990 = (psx_brA_BFC00990 != psx_brB_BFC00990); + psx_taken_BFC00990 = (psx_brA_BFC00990 != psx_brB_BFC00990); /* 0xBFC00994: 2411000A addiu $s1, $zero, 10 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); if (psx_taken_BFC00990) goto label_BFC009A4; @@ -2494,7 +2523,7 @@ label_BFC00998: psx_check_interrupts(cpu); /* 0xBFC00998: 10000018 beq $zero, $zero, 0xBFC009FC */ uint32_t psx_brA_BFC00998 = cpu->gpr[0]; uint32_t psx_brB_BFC00998 = cpu->gpr[0]; - int psx_taken_BFC00998 = (psx_brA_BFC00998 == psx_brB_BFC00998); + psx_taken_BFC00998 = (psx_brA_BFC00998 == psx_brB_BFC00998); /* 0xBFC0099C: 2411000A addiu $s1, $zero, 10 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); if (psx_taken_BFC00998) goto label_BFC009FC; @@ -2516,7 +2545,7 @@ label_BFC009A4: /* nop */ /* 0xBFC009AC: 12240007 beq $s1, $a0, 0xBFC009CC */ uint32_t psx_brA_BFC009AC = cpu->gpr[17]; uint32_t psx_brB_BFC009AC = cpu->gpr[4]; - int psx_taken_BFC009AC = (psx_brA_BFC009AC == psx_brB_BFC009AC); + psx_taken_BFC009AC = (psx_brA_BFC009AC == psx_brB_BFC009AC); /* 0xBFC009B0: 00000000 nop */ /* nop */ if (psx_taken_BFC009AC) goto label_BFC009CC; @@ -2527,7 +2556,7 @@ label_BFC009B4: psx_check_interrupts(cpu); /* 0xBFC009B4: 1080006C beq $a0, $zero, 0xBFC00B68 */ uint32_t psx_brA_BFC009B4 = cpu->gpr[4]; uint32_t psx_brB_BFC009B4 = cpu->gpr[0]; - int psx_taken_BFC009B4 = (psx_brA_BFC009B4 == psx_brB_BFC009B4); + psx_taken_BFC009B4 = (psx_brA_BFC009B4 == psx_brB_BFC009B4); /* 0xBFC009B8: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC009B8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC009B4) goto label_BFC00B68; @@ -2542,7 +2571,7 @@ label_BFC009BC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC009C4: 1624FFFB bne $s1, $a0, 0xBFC009B4 */ uint32_t psx_brA_BFC009C4 = cpu->gpr[17]; uint32_t psx_brB_BFC009C4 = cpu->gpr[4]; - int psx_taken_BFC009C4 = (psx_brA_BFC009C4 != psx_brB_BFC009C4); + psx_taken_BFC009C4 = (psx_brA_BFC009C4 != psx_brB_BFC009C4); /* 0xBFC009C8: 00000000 nop */ /* nop */ if (psx_taken_BFC009C4) goto label_BFC009B4; @@ -2557,7 +2586,7 @@ label_BFC009CC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC009D4: 11E00009 beq $t7, $zero, 0xBFC009FC */ uint32_t psx_brA_BFC009D4 = cpu->gpr[15]; uint32_t psx_brB_BFC009D4 = cpu->gpr[0]; - int psx_taken_BFC009D4 = (psx_brA_BFC009D4 == psx_brB_BFC009D4); + psx_taken_BFC009D4 = (psx_brA_BFC009D4 == psx_brB_BFC009D4); /* 0xBFC009D8: 00000000 nop */ /* nop */ if (psx_taken_BFC009D4) goto label_BFC009FC; @@ -2592,7 +2621,7 @@ label_BFC009F4: psx_check_interrupts(cpu); /* 0xBFC009F4: 1440FFEB bne $v0, $zero, 0xBFC009A4 */ uint32_t psx_brA_BFC009F4 = cpu->gpr[2]; uint32_t psx_brB_BFC009F4 = cpu->gpr[0]; - int psx_taken_BFC009F4 = (psx_brA_BFC009F4 != psx_brB_BFC009F4); + psx_taken_BFC009F4 = (psx_brA_BFC009F4 != psx_brB_BFC009F4); /* 0xBFC009F8: 00000000 nop */ /* nop */ if (psx_taken_BFC009F4) goto label_BFC009A4; @@ -2631,7 +2660,7 @@ label_BFC00A04: cpu->gpr[9] = cpu->gpr[8] & 0x8u; /* 0xBFC00A28: 1120000E beq $t1, $zero, 0xBFC00A64 */ uint32_t psx_brA_BFC00A28 = cpu->gpr[9]; uint32_t psx_brB_BFC00A28 = cpu->gpr[0]; - int psx_taken_BFC00A28 = (psx_brA_BFC00A28 == psx_brB_BFC00A28); + psx_taken_BFC00A28 = (psx_brA_BFC00A28 == psx_brB_BFC00A28); /* 0xBFC00A2C: 2401003D addiu $at, $zero, 61 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (61)); if (psx_taken_BFC00A28) goto label_BFC00A64; @@ -2642,7 +2671,7 @@ label_BFC00A30: psx_check_interrupts(cpu); /* 0xBFC00A30: 1224004D beq $s1, $a0, 0xBFC00B68 */ uint32_t psx_brA_BFC00A30 = cpu->gpr[17]; uint32_t psx_brB_BFC00A30 = cpu->gpr[4]; - int psx_taken_BFC00A30 = (psx_brA_BFC00A30 == psx_brB_BFC00A30); + psx_taken_BFC00A30 = (psx_brA_BFC00A30 == psx_brB_BFC00A30); /* 0xBFC00A34: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00A34u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00A30) goto label_BFC00B68; @@ -2653,7 +2682,7 @@ label_BFC00A38: psx_check_interrupts(cpu); /* 0xBFC00A38: 1080004B beq $a0, $zero, 0xBFC00B68 */ uint32_t psx_brA_BFC00A38 = cpu->gpr[4]; uint32_t psx_brB_BFC00A38 = cpu->gpr[0]; - int psx_taken_BFC00A38 = (psx_brA_BFC00A38 == psx_brB_BFC00A38); + psx_taken_BFC00A38 = (psx_brA_BFC00A38 == psx_brB_BFC00A38); /* 0xBFC00A3C: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00A3Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00A38) goto label_BFC00B68; @@ -2678,7 +2707,7 @@ label_BFC00A40: cpu->gpr[13] = cpu->gpr[12] & 0x8u; /* 0xBFC00A5C: 15A0FFF4 bne $t5, $zero, 0xBFC00A30 */ uint32_t psx_brA_BFC00A5C = cpu->gpr[13]; uint32_t psx_brB_BFC00A5C = cpu->gpr[0]; - int psx_taken_BFC00A5C = (psx_brA_BFC00A5C != psx_brB_BFC00A5C); + psx_taken_BFC00A5C = (psx_brA_BFC00A5C != psx_brB_BFC00A5C); /* 0xBFC00A60: 2401003D addiu $at, $zero, 61 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (61)); if (psx_taken_BFC00A5C) goto label_BFC00A30; @@ -2689,7 +2718,7 @@ label_BFC00A64: psx_check_interrupts(cpu); /* 0xBFC00A64: 14810040 bne $a0, $at, 0xBFC00B68 */ uint32_t psx_brA_BFC00A64 = cpu->gpr[4]; uint32_t psx_brB_BFC00A64 = cpu->gpr[1]; - int psx_taken_BFC00A64 = (psx_brA_BFC00A64 != psx_brB_BFC00A64); + psx_taken_BFC00A64 = (psx_brA_BFC00A64 != psx_brB_BFC00A64); /* 0xBFC00A68: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00A68u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00A64) goto label_BFC00B68; @@ -2700,7 +2729,7 @@ label_BFC00A6C: psx_check_interrupts(cpu); /* 0xBFC00A6C: 1224003E beq $s1, $a0, 0xBFC00B68 */ uint32_t psx_brA_BFC00A6C = cpu->gpr[17]; uint32_t psx_brB_BFC00A6C = cpu->gpr[4]; - int psx_taken_BFC00A6C = (psx_brA_BFC00A6C == psx_brB_BFC00A6C); + psx_taken_BFC00A6C = (psx_brA_BFC00A6C == psx_brB_BFC00A6C); /* 0xBFC00A70: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00A70u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00A6C) goto label_BFC00B68; @@ -2711,7 +2740,7 @@ label_BFC00A74: psx_check_interrupts(cpu); /* 0xBFC00A74: 1080003C beq $a0, $zero, 0xBFC00B68 */ uint32_t psx_brA_BFC00A74 = cpu->gpr[4]; uint32_t psx_brB_BFC00A74 = cpu->gpr[0]; - int psx_taken_BFC00A74 = (psx_brA_BFC00A74 == psx_brB_BFC00A74); + psx_taken_BFC00A74 = (psx_brA_BFC00A74 == psx_brB_BFC00A74); /* 0xBFC00A78: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00A78u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00A74) goto label_BFC00B68; @@ -2738,7 +2767,7 @@ label_BFC00A7C: cpu->gpr[24] = cpu->gpr[2] & 0x8u; /* 0xBFC00A9C: 13000010 beq $t8, $zero, 0xBFC00AE0 */ uint32_t psx_brA_BFC00A9C = cpu->gpr[24]; uint32_t psx_brB_BFC00A9C = cpu->gpr[0]; - int psx_taken_BFC00A9C = (psx_brA_BFC00A9C == psx_brB_BFC00A9C); + psx_taken_BFC00A9C = (psx_brA_BFC00A9C == psx_brB_BFC00A9C); /* 0xBFC00AA0: 304A0044 andi $t2, $v0, 0x44 */ cpu->gpr[10] = cpu->gpr[2] & 0x44u; if (psx_taken_BFC00A9C) goto label_BFC00AE0; @@ -2749,7 +2778,7 @@ label_BFC00AA4: psx_check_interrupts(cpu); /* 0xBFC00AA4: 12240030 beq $s1, $a0, 0xBFC00B68 */ uint32_t psx_brA_BFC00AA4 = cpu->gpr[17]; uint32_t psx_brB_BFC00AA4 = cpu->gpr[4]; - int psx_taken_BFC00AA4 = (psx_brA_BFC00AA4 == psx_brB_BFC00AA4); + psx_taken_BFC00AA4 = (psx_brA_BFC00AA4 == psx_brB_BFC00AA4); /* 0xBFC00AA8: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00AA8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00AA4) goto label_BFC00B68; @@ -2760,7 +2789,7 @@ label_BFC00AAC: psx_check_interrupts(cpu); /* 0xBFC00AAC: 1080002E beq $a0, $zero, 0xBFC00B68 */ uint32_t psx_brA_BFC00AAC = cpu->gpr[4]; uint32_t psx_brB_BFC00AAC = cpu->gpr[0]; - int psx_taken_BFC00AAC = (psx_brA_BFC00AAC == psx_brB_BFC00AAC); + psx_taken_BFC00AAC = (psx_brA_BFC00AAC == psx_brB_BFC00AAC); /* 0xBFC00AB0: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00AB0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00AAC) goto label_BFC00B68; @@ -2787,7 +2816,7 @@ label_BFC00AB4: cpu->gpr[9] = cpu->gpr[2] & 0x8u; /* 0xBFC00AD4: 1520FFF3 bne $t1, $zero, 0xBFC00AA4 */ uint32_t psx_brA_BFC00AD4 = cpu->gpr[9]; uint32_t psx_brB_BFC00AD4 = cpu->gpr[0]; - int psx_taken_BFC00AD4 = (psx_brA_BFC00AD4 != psx_brB_BFC00AD4); + psx_taken_BFC00AD4 = (psx_brA_BFC00AD4 != psx_brB_BFC00AD4); /* 0xBFC00AD8: 00000000 nop */ /* nop */ if (psx_taken_BFC00AD4) goto label_BFC00AA4; @@ -2805,7 +2834,7 @@ label_BFC00AE0: psx_check_interrupts(cpu); /* 0xBFC00AE0: 11400019 beq $t2, $zero, 0xBFC00B48 */ uint32_t psx_brA_BFC00AE0 = cpu->gpr[10]; uint32_t psx_brB_BFC00AE0 = cpu->gpr[0]; - int psx_taken_BFC00AE0 = (psx_brA_BFC00AE0 == psx_brB_BFC00AE0); + psx_taken_BFC00AE0 = (psx_brA_BFC00AE0 == psx_brB_BFC00AE0); /* 0xBFC00AE4: 00008821 addu $s1, $zero, $zero */ cpu->gpr[17] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC00AE0) goto label_BFC00B48; @@ -2823,7 +2852,7 @@ label_BFC00AEC: psx_check_interrupts(cpu); /* 0xBFC00AEC: 11600005 beq $t3, $zero, 0xBFC00B04 */ uint32_t psx_brA_BFC00AEC = cpu->gpr[11]; uint32_t psx_brB_BFC00AEC = cpu->gpr[0]; - int psx_taken_BFC00AEC = (psx_brA_BFC00AEC == psx_brB_BFC00AEC); + psx_taken_BFC00AEC = (psx_brA_BFC00AEC == psx_brB_BFC00AEC); /* 0xBFC00AF0: 00000000 nop */ /* nop */ if (psx_taken_BFC00AEC) goto label_BFC00B04; @@ -2838,7 +2867,7 @@ label_BFC00AF4: cpu->gpr[17] = cpu->gpr[12] + cpu->gpr[3]; /* 0xBFC00AFC: 10000008 beq $zero, $zero, 0xBFC00B20 */ uint32_t psx_brA_BFC00AFC = cpu->gpr[0]; uint32_t psx_brB_BFC00AFC = cpu->gpr[0]; - int psx_taken_BFC00AFC = (psx_brA_BFC00AFC == psx_brB_BFC00AFC); + psx_taken_BFC00AFC = (psx_brA_BFC00AFC == psx_brB_BFC00AFC); /* 0xBFC00B00: 2631FFD0 addiu $s1, $s1, -48 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (-48)); if (psx_taken_BFC00AFC) goto label_BFC00B20; @@ -2890,7 +2919,7 @@ label_BFC00B20: cpu->gpr[24] = cpu->gpr[2] & 0x44u; /* 0xBFC00B40: 1700FFEA bne $t8, $zero, 0xBFC00AEC */ uint32_t psx_brA_BFC00B40 = cpu->gpr[24]; uint32_t psx_brB_BFC00B40 = cpu->gpr[0]; - int psx_taken_BFC00B40 = (psx_brA_BFC00B40 != psx_brB_BFC00B40); + psx_taken_BFC00B40 = (psx_brA_BFC00B40 != psx_brB_BFC00B40); /* 0xBFC00B44: 304B0004 andi $t3, $v0, 0x4 */ cpu->gpr[11] = cpu->gpr[2] & 0x4u; if (psx_taken_BFC00B40) goto label_BFC00AEC; @@ -2953,6 +2982,28 @@ void func_1FC00B7C(CPUState* cpu) { default: break; } } + int psx_taken_BFC00BB4 = 0; + int psx_taken_BFC00BD0 = 0; + int psx_taken_BFC00BFC = 0; + int psx_taken_BFC00C04 = 0; + int psx_taken_BFC00C0C = 0; + int psx_taken_BFC00C30 = 0; + int psx_taken_BFC00C38 = 0; + int psx_taken_BFC00C40 = 0; + int psx_taken_BFC00C48 = 0; + int psx_taken_BFC00C6C = 0; + int psx_taken_BFC00C74 = 0; + int psx_taken_BFC00C7C = 0; + int psx_taken_BFC00CA0 = 0; + int psx_taken_BFC00CA8 = 0; + int psx_taken_BFC00CB8 = 0; + int psx_taken_BFC00CDC = 0; + int psx_taken_BFC00CFC = 0; + int psx_taken_BFC00D48 = 0; + int psx_taken_BFC00D58 = 0; + int psx_taken_BFC00D60 = 0; + int psx_taken_BFC00D70 = 0; + int psx_taken_BFC00D80 = 0; label_BFC00B7C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -2994,7 +3045,7 @@ label_BFC00BAC: cpu->gpr[18] = cpu->gpr[2] + cpu->gpr[0]; /* 0xBFC00BB4: 11C00075 beq $t6, $zero, 0xBFC00D8C */ uint32_t psx_brA_BFC00BB4 = cpu->gpr[14]; uint32_t psx_brB_BFC00BB4 = cpu->gpr[0]; - int psx_taken_BFC00BB4 = (psx_brA_BFC00BB4 == psx_brB_BFC00BB4); + psx_taken_BFC00BB4 = (psx_brA_BFC00BB4 == psx_brB_BFC00BB4); /* 0xBFC00BB8: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00BB8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00BB4) goto label_BFC00D8C; @@ -3026,7 +3077,7 @@ label_BFC00BD0: psx_check_interrupts(cpu); /* 0xBFC00BD0: 1440005F bne $v0, $zero, 0xBFC00D50 */ uint32_t psx_brA_BFC00BD0 = cpu->gpr[2]; uint32_t psx_brB_BFC00BD0 = cpu->gpr[0]; - int psx_taken_BFC00BD0 = (psx_brA_BFC00BD0 != psx_brB_BFC00BD0); + psx_taken_BFC00BD0 = (psx_brA_BFC00BD0 != psx_brB_BFC00BD0); /* 0xBFC00BD4: 00000000 nop */ /* nop */ if (psx_taken_BFC00BD0) goto label_BFC00D50; @@ -3055,7 +3106,7 @@ label_BFC00BD8: cpu->gpr[8] = cpu->gpr[25] & 0x8u; /* 0xBFC00BFC: 1100000E beq $t0, $zero, 0xBFC00C38 */ uint32_t psx_brA_BFC00BFC = cpu->gpr[8]; uint32_t psx_brB_BFC00BFC = cpu->gpr[0]; - int psx_taken_BFC00BFC = (psx_brA_BFC00BFC == psx_brB_BFC00BFC); + psx_taken_BFC00BFC = (psx_brA_BFC00BFC == psx_brB_BFC00BFC); /* 0xBFC00C00: 2401003D addiu $at, $zero, 61 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (61)); if (psx_taken_BFC00BFC) goto label_BFC00C38; @@ -3066,7 +3117,7 @@ label_BFC00C04: psx_check_interrupts(cpu); /* 0xBFC00C04: 12220061 beq $s1, $v0, 0xBFC00D8C */ uint32_t psx_brA_BFC00C04 = cpu->gpr[17]; uint32_t psx_brB_BFC00C04 = cpu->gpr[2]; - int psx_taken_BFC00C04 = (psx_brA_BFC00C04 == psx_brB_BFC00C04); + psx_taken_BFC00C04 = (psx_brA_BFC00C04 == psx_brB_BFC00C04); /* 0xBFC00C08: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00C08u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00C04) goto label_BFC00D8C; @@ -3077,7 +3128,7 @@ label_BFC00C0C: psx_check_interrupts(cpu); /* 0xBFC00C0C: 1040005F beq $v0, $zero, 0xBFC00D8C */ uint32_t psx_brA_BFC00C0C = cpu->gpr[2]; uint32_t psx_brB_BFC00C0C = cpu->gpr[0]; - int psx_taken_BFC00C0C = (psx_brA_BFC00C0C == psx_brB_BFC00C0C); + psx_taken_BFC00C0C = (psx_brA_BFC00C0C == psx_brB_BFC00C0C); /* 0xBFC00C10: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00C10u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00C0C) goto label_BFC00D8C; @@ -3102,7 +3153,7 @@ label_BFC00C14: cpu->gpr[12] = cpu->gpr[11] & 0x8u; /* 0xBFC00C30: 1580FFF4 bne $t4, $zero, 0xBFC00C04 */ uint32_t psx_brA_BFC00C30 = cpu->gpr[12]; uint32_t psx_brB_BFC00C30 = cpu->gpr[0]; - int psx_taken_BFC00C30 = (psx_brA_BFC00C30 != psx_brB_BFC00C30); + psx_taken_BFC00C30 = (psx_brA_BFC00C30 != psx_brB_BFC00C30); /* 0xBFC00C34: 2401003D addiu $at, $zero, 61 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (61)); if (psx_taken_BFC00C30) goto label_BFC00C04; @@ -3113,7 +3164,7 @@ label_BFC00C38: psx_check_interrupts(cpu); /* 0xBFC00C38: 14410054 bne $v0, $at, 0xBFC00D8C */ uint32_t psx_brA_BFC00C38 = cpu->gpr[2]; uint32_t psx_brB_BFC00C38 = cpu->gpr[1]; - int psx_taken_BFC00C38 = (psx_brA_BFC00C38 != psx_brB_BFC00C38); + psx_taken_BFC00C38 = (psx_brA_BFC00C38 != psx_brB_BFC00C38); /* 0xBFC00C3C: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00C3Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00C38) goto label_BFC00D8C; @@ -3124,7 +3175,7 @@ label_BFC00C40: psx_check_interrupts(cpu); /* 0xBFC00C40: 12220052 beq $s1, $v0, 0xBFC00D8C */ uint32_t psx_brA_BFC00C40 = cpu->gpr[17]; uint32_t psx_brB_BFC00C40 = cpu->gpr[2]; - int psx_taken_BFC00C40 = (psx_brA_BFC00C40 == psx_brB_BFC00C40); + psx_taken_BFC00C40 = (psx_brA_BFC00C40 == psx_brB_BFC00C40); /* 0xBFC00C44: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00C44u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00C40) goto label_BFC00D8C; @@ -3135,7 +3186,7 @@ label_BFC00C48: psx_check_interrupts(cpu); /* 0xBFC00C48: 10400050 beq $v0, $zero, 0xBFC00D8C */ uint32_t psx_brA_BFC00C48 = cpu->gpr[2]; uint32_t psx_brB_BFC00C48 = cpu->gpr[0]; - int psx_taken_BFC00C48 = (psx_brA_BFC00C48 == psx_brB_BFC00C48); + psx_taken_BFC00C48 = (psx_brA_BFC00C48 == psx_brB_BFC00C48); /* 0xBFC00C4C: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00C4Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00C48) goto label_BFC00D8C; @@ -3160,7 +3211,7 @@ label_BFC00C50: cpu->gpr[24] = cpu->gpr[15] & 0x8u; /* 0xBFC00C6C: 1300000E beq $t8, $zero, 0xBFC00CA8 */ uint32_t psx_brA_BFC00C6C = cpu->gpr[24]; uint32_t psx_brB_BFC00C6C = cpu->gpr[0]; - int psx_taken_BFC00C6C = (psx_brA_BFC00C6C == psx_brB_BFC00C6C); + psx_taken_BFC00C6C = (psx_brA_BFC00C6C == psx_brB_BFC00C6C); /* 0xBFC00C70: 00000000 nop */ /* nop */ if (psx_taken_BFC00C6C) goto label_BFC00CA8; @@ -3171,7 +3222,7 @@ label_BFC00C74: psx_check_interrupts(cpu); /* 0xBFC00C74: 12220045 beq $s1, $v0, 0xBFC00D8C */ uint32_t psx_brA_BFC00C74 = cpu->gpr[17]; uint32_t psx_brB_BFC00C74 = cpu->gpr[2]; - int psx_taken_BFC00C74 = (psx_brA_BFC00C74 == psx_brB_BFC00C74); + psx_taken_BFC00C74 = (psx_brA_BFC00C74 == psx_brB_BFC00C74); /* 0xBFC00C78: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00C78u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00C74) goto label_BFC00D8C; @@ -3182,7 +3233,7 @@ label_BFC00C7C: psx_check_interrupts(cpu); /* 0xBFC00C7C: 10400043 beq $v0, $zero, 0xBFC00D8C */ uint32_t psx_brA_BFC00C7C = cpu->gpr[2]; uint32_t psx_brB_BFC00C7C = cpu->gpr[0]; - int psx_taken_BFC00C7C = (psx_brA_BFC00C7C == psx_brB_BFC00C7C); + psx_taken_BFC00C7C = (psx_brA_BFC00C7C == psx_brB_BFC00C7C); /* 0xBFC00C80: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00C80u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00C7C) goto label_BFC00D8C; @@ -3207,7 +3258,7 @@ label_BFC00C84: cpu->gpr[10] = cpu->gpr[9] & 0x8u; /* 0xBFC00CA0: 1540FFF4 bne $t2, $zero, 0xBFC00C74 */ uint32_t psx_brA_BFC00CA0 = cpu->gpr[10]; uint32_t psx_brB_BFC00CA0 = cpu->gpr[0]; - int psx_taken_BFC00CA0 = (psx_brA_BFC00CA0 != psx_brB_BFC00CA0); + psx_taken_BFC00CA0 = (psx_brA_BFC00CA0 != psx_brB_BFC00CA0); /* 0xBFC00CA4: 00000000 nop */ /* nop */ if (psx_taken_BFC00CA0) goto label_BFC00C74; @@ -3218,7 +3269,7 @@ label_BFC00CA8: psx_check_interrupts(cpu); /* 0xBFC00CA8: 12220005 beq $s1, $v0, 0xBFC00CC0 */ uint32_t psx_brA_BFC00CA8 = cpu->gpr[17]; uint32_t psx_brB_BFC00CA8 = cpu->gpr[2]; - int psx_taken_BFC00CA8 = (psx_brA_BFC00CA8 == psx_brB_BFC00CA8); + psx_taken_BFC00CA8 = (psx_brA_BFC00CA8 == psx_brB_BFC00CA8); /* 0xBFC00CAC: 02002821 addu $a1, $s0, $zero */ cpu->gpr[5] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC00CA8) goto label_BFC00CC0; @@ -3233,7 +3284,7 @@ label_BFC00CB0: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC00CB8: 162BFFFD bne $s1, $t3, 0xBFC00CB0 */ uint32_t psx_brA_BFC00CB8 = cpu->gpr[17]; uint32_t psx_brB_BFC00CB8 = cpu->gpr[11]; - int psx_taken_BFC00CB8 = (psx_brA_BFC00CB8 != psx_brB_BFC00CB8); + psx_taken_BFC00CB8 = (psx_brA_BFC00CB8 != psx_brB_BFC00CB8); /* 0xBFC00CBC: 00000000 nop */ /* nop */ if (psx_taken_BFC00CB8) goto label_BFC00CB0; @@ -3258,7 +3309,7 @@ label_BFC00CC0: cpu->gpr[15] = cpu->gpr[14] & 0x8u; /* 0xBFC00CDC: 15E00009 bne $t7, $zero, 0xBFC00D04 */ uint32_t psx_brA_BFC00CDC = cpu->gpr[15]; uint32_t psx_brB_BFC00CDC = cpu->gpr[0]; - int psx_taken_BFC00CDC = (psx_brA_BFC00CDC != psx_brB_BFC00CDC); + psx_taken_BFC00CDC = (psx_brA_BFC00CDC != psx_brB_BFC00CDC); /* 0xBFC00CE0: 00000000 nop */ /* nop */ if (psx_taken_BFC00CDC) goto label_BFC00D04; @@ -3281,7 +3332,7 @@ label_BFC00CE4: cpu->gpr[9] = cpu->gpr[8] & 0x8u; /* 0xBFC00CFC: 1120FFF9 beq $t1, $zero, 0xBFC00CE4 */ uint32_t psx_brA_BFC00CFC = cpu->gpr[9]; uint32_t psx_brB_BFC00CFC = cpu->gpr[0]; - int psx_taken_BFC00CFC = (psx_brA_BFC00CFC == psx_brB_BFC00CFC); + psx_taken_BFC00CFC = (psx_brA_BFC00CFC == psx_brB_BFC00CFC); /* 0xBFC00D00: 00000000 nop */ /* nop */ if (psx_taken_BFC00CFC) goto label_BFC00CE4; @@ -3350,7 +3401,7 @@ label_BFC00D48: psx_check_interrupts(cpu); /* 0xBFC00D48: 10000010 beq $zero, $zero, 0xBFC00D8C */ uint32_t psx_brA_BFC00D48 = cpu->gpr[0]; uint32_t psx_brB_BFC00D48 = cpu->gpr[0]; - int psx_taken_BFC00D48 = (psx_brA_BFC00D48 == psx_brB_BFC00D48); + psx_taken_BFC00D48 = (psx_brA_BFC00D48 == psx_brB_BFC00D48); /* 0xBFC00D4C: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00D4Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00D48) goto label_BFC00D8C; @@ -3365,7 +3416,7 @@ label_BFC00D50: /* nop */ /* 0xBFC00D58: 12220007 beq $s1, $v0, 0xBFC00D78 */ uint32_t psx_brA_BFC00D58 = cpu->gpr[17]; uint32_t psx_brB_BFC00D58 = cpu->gpr[2]; - int psx_taken_BFC00D58 = (psx_brA_BFC00D58 == psx_brB_BFC00D58); + psx_taken_BFC00D58 = (psx_brA_BFC00D58 == psx_brB_BFC00D58); /* 0xBFC00D5C: 00000000 nop */ /* nop */ if (psx_taken_BFC00D58) goto label_BFC00D78; @@ -3376,7 +3427,7 @@ label_BFC00D60: psx_check_interrupts(cpu); /* 0xBFC00D60: 1040000A beq $v0, $zero, 0xBFC00D8C */ uint32_t psx_brA_BFC00D60 = cpu->gpr[2]; uint32_t psx_brB_BFC00D60 = cpu->gpr[0]; - int psx_taken_BFC00D60 = (psx_brA_BFC00D60 == psx_brB_BFC00D60); + psx_taken_BFC00D60 = (psx_brA_BFC00D60 == psx_brB_BFC00D60); /* 0xBFC00D64: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00D64u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00D60) goto label_BFC00D8C; @@ -3391,7 +3442,7 @@ label_BFC00D68: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC00D70: 1622FFFB bne $s1, $v0, 0xBFC00D60 */ uint32_t psx_brA_BFC00D70 = cpu->gpr[17]; uint32_t psx_brB_BFC00D70 = cpu->gpr[2]; - int psx_taken_BFC00D70 = (psx_brA_BFC00D70 != psx_brB_BFC00D70); + psx_taken_BFC00D70 = (psx_brA_BFC00D70 != psx_brB_BFC00D70); /* 0xBFC00D74: 00000000 nop */ /* nop */ if (psx_taken_BFC00D70) goto label_BFC00D60; @@ -3406,7 +3457,7 @@ label_BFC00D78: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC00D80: 1540FF90 bne $t2, $zero, 0xBFC00BC4 */ uint32_t psx_brA_BFC00D80 = cpu->gpr[10]; uint32_t psx_brB_BFC00D80 = cpu->gpr[0]; - int psx_taken_BFC00D80 = (psx_brA_BFC00D80 != psx_brB_BFC00D80); + psx_taken_BFC00D80 = (psx_brA_BFC00D80 != psx_brB_BFC00D80); /* 0xBFC00D84: 8FA50054 lw $a1, 84($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (84)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00D84u); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } if (psx_taken_BFC00D80) goto label_BFC00BC4; @@ -3456,6 +3507,172 @@ void func_1FC00DA0(CPUState* cpu) { default: break; } } + int psx_taken_BFC00DB0 = 0; + int psx_taken_BFC00DB8 = 0; + int psx_taken_BFC00E24 = 0; + int psx_taken_BFC00E50 = 0; + int psx_taken_BFC00E5C = 0; + int psx_taken_BFC00E88 = 0; + int psx_taken_BFC00EB0 = 0; + int psx_taken_BFC00EB8 = 0; + int psx_taken_BFC00EC0 = 0; + int psx_taken_BFC00EC8 = 0; + int psx_taken_BFC00ED8 = 0; + int psx_taken_BFC00EE4 = 0; + int psx_taken_BFC00EEC = 0; + int psx_taken_BFC00EFC = 0; + int psx_taken_BFC00F08 = 0; + int psx_taken_BFC00F14 = 0; + int psx_taken_BFC00F2C = 0; + int psx_taken_BFC00F50 = 0; + int psx_taken_BFC00F68 = 0; + int psx_taken_BFC00F74 = 0; + int psx_taken_BFC00F7C = 0; + int psx_taken_BFC00F84 = 0; + int psx_taken_BFC00F8C = 0; + int psx_taken_BFC00FB4 = 0; + int psx_taken_BFC00FCC = 0; + int psx_taken_BFC00FD8 = 0; + int psx_taken_BFC00FE0 = 0; + int psx_taken_BFC00FE8 = 0; + int psx_taken_BFC00FF0 = 0; + int psx_taken_BFC0100C = 0; + int psx_taken_BFC01020 = 0; + int psx_taken_BFC0102C = 0; + int psx_taken_BFC01038 = 0; + int psx_taken_BFC01044 = 0; + int psx_taken_BFC01058 = 0; + int psx_taken_BFC01064 = 0; + int psx_taken_BFC01070 = 0; + int psx_taken_BFC01084 = 0; + int psx_taken_BFC01090 = 0; + int psx_taken_BFC010A4 = 0; + int psx_taken_BFC010B8 = 0; + int psx_taken_BFC010D0 = 0; + int psx_taken_BFC010DC = 0; + int psx_taken_BFC010E8 = 0; + int psx_taken_BFC010F4 = 0; + int psx_taken_BFC01104 = 0; + int psx_taken_BFC0111C = 0; + int psx_taken_BFC0112C = 0; + int psx_taken_BFC0113C = 0; + int psx_taken_BFC01174 = 0; + int psx_taken_BFC01184 = 0; + int psx_taken_BFC0118C = 0; + int psx_taken_BFC01194 = 0; + int psx_taken_BFC011C4 = 0; + int psx_taken_BFC011DC = 0; + int psx_taken_BFC011E8 = 0; + int psx_taken_BFC011F4 = 0; + int psx_taken_BFC01200 = 0; + int psx_taken_BFC01210 = 0; + int psx_taken_BFC01230 = 0; + int psx_taken_BFC0123C = 0; + int psx_taken_BFC01248 = 0; + int psx_taken_BFC01254 = 0; + int psx_taken_BFC0126C = 0; + int psx_taken_BFC01274 = 0; + int psx_taken_BFC01280 = 0; + int psx_taken_BFC01290 = 0; + int psx_taken_BFC01298 = 0; + int psx_taken_BFC012C4 = 0; + int psx_taken_BFC012D0 = 0; + int psx_taken_BFC012E0 = 0; + int psx_taken_BFC012EC = 0; + int psx_taken_BFC012FC = 0; + int psx_taken_BFC01320 = 0; + int psx_taken_BFC0133C = 0; + int psx_taken_BFC01364 = 0; + int psx_taken_BFC0136C = 0; + int psx_taken_BFC01384 = 0; + int psx_taken_BFC0138C = 0; + int psx_taken_BFC013A0 = 0; + int psx_taken_BFC013D4 = 0; + int psx_taken_BFC013DC = 0; + int psx_taken_BFC01414 = 0; + int psx_taken_BFC01474 = 0; + int psx_taken_BFC01488 = 0; + int psx_taken_BFC014BC = 0; + int psx_taken_BFC014D4 = 0; + int psx_taken_BFC0150C = 0; + int psx_taken_BFC0151C = 0; + int psx_taken_BFC01550 = 0; + int psx_taken_BFC0155C = 0; + int psx_taken_BFC0158C = 0; + int psx_taken_BFC01598 = 0; + int psx_taken_BFC015AC = 0; + int psx_taken_BFC015E0 = 0; + int psx_taken_BFC015F4 = 0; + int psx_taken_BFC015FC = 0; + int psx_taken_BFC01618 = 0; + int psx_taken_BFC01644 = 0; + int psx_taken_BFC0164C = 0; + int psx_taken_BFC01654 = 0; + int psx_taken_BFC0165C = 0; + int psx_taken_BFC01664 = 0; + int psx_taken_BFC0166C = 0; + int psx_taken_BFC01674 = 0; + int psx_taken_BFC0167C = 0; + int psx_taken_BFC01684 = 0; + int psx_taken_BFC0168C = 0; + int psx_taken_BFC01694 = 0; + int psx_taken_BFC0169C = 0; + int psx_taken_BFC016A4 = 0; + int psx_taken_BFC016AC = 0; + int psx_taken_BFC016E8 = 0; + int psx_taken_BFC016F0 = 0; + int psx_taken_BFC016F8 = 0; + int psx_taken_BFC01700 = 0; + int psx_taken_BFC01708 = 0; + int psx_taken_BFC01710 = 0; + int psx_taken_BFC01718 = 0; + int psx_taken_BFC01724 = 0; + int psx_taken_BFC0172C = 0; + int psx_taken_BFC01738 = 0; + int psx_taken_BFC01740 = 0; + int psx_taken_BFC01748 = 0; + int psx_taken_BFC01750 = 0; + int psx_taken_BFC01758 = 0; + int psx_taken_BFC01760 = 0; + int psx_taken_BFC0176C = 0; + int psx_taken_BFC01774 = 0; + int psx_taken_BFC01780 = 0; + int psx_taken_BFC01788 = 0; + int psx_taken_BFC01790 = 0; + int psx_taken_BFC01798 = 0; + int psx_taken_BFC017A4 = 0; + int psx_taken_BFC017AC = 0; + int psx_taken_BFC017B8 = 0; + int psx_taken_BFC017C0 = 0; + int psx_taken_BFC017C8 = 0; + int psx_taken_BFC017D0 = 0; + int psx_taken_BFC017D8 = 0; + int psx_taken_BFC017E0 = 0; + int psx_taken_BFC017E8 = 0; + int psx_taken_BFC017F0 = 0; + int psx_taken_BFC017FC = 0; + int psx_taken_BFC01804 = 0; + int psx_taken_BFC01810 = 0; + int psx_taken_BFC01818 = 0; + int psx_taken_BFC01820 = 0; + int psx_taken_BFC01828 = 0; + int psx_taken_BFC01834 = 0; + int psx_taken_BFC0183C = 0; + int psx_taken_BFC01848 = 0; + int psx_taken_BFC01850 = 0; + int psx_taken_BFC01858 = 0; + int psx_taken_BFC01860 = 0; + int psx_taken_BFC01868 = 0; + int psx_taken_BFC01870 = 0; + int psx_taken_BFC0187C = 0; + int psx_taken_BFC01884 = 0; + int psx_taken_BFC01890 = 0; + int psx_taken_BFC01898 = 0; + int psx_taken_BFC018A0 = 0; + int psx_taken_BFC018A8 = 0; + int psx_taken_BFC018B4 = 0; + int psx_taken_BFC018BC = 0; + int psx_taken_BFC018C4 = 0; label_BFC00DA0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -3471,7 +3688,7 @@ label_BFC00DA0: cpu->gpr[19] = cpu->gpr[6] + cpu->gpr[0]; /* 0xBFC00DB0: 14A00003 bne $a1, $zero, 0xBFC00DC0 */ uint32_t psx_brA_BFC00DB0 = cpu->gpr[5]; uint32_t psx_brB_BFC00DB0 = cpu->gpr[0]; - int psx_taken_BFC00DB0 = (psx_brA_BFC00DB0 != psx_brB_BFC00DB0); + psx_taken_BFC00DB0 = (psx_brA_BFC00DB0 != psx_brB_BFC00DB0); /* 0xBFC00DB4: AFA40230 sw $a0, 560($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (560)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00DB4u); return; } g_debug_last_store_pc = 0xBFC00DB4u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC00DB0) goto label_BFC00DC0; @@ -3482,7 +3699,7 @@ label_BFC00DB8: psx_check_interrupts(cpu); /* 0xBFC00DB8: 100002C4 beq $zero, $zero, 0xBFC018CC */ uint32_t psx_brA_BFC00DB8 = cpu->gpr[0]; uint32_t psx_brB_BFC00DB8 = cpu->gpr[0]; - int psx_taken_BFC00DB8 = (psx_brA_BFC00DB8 == psx_brB_BFC00DB8); + psx_taken_BFC00DB8 = (psx_brA_BFC00DB8 == psx_brB_BFC00DB8); /* 0xBFC00DBC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC00DB8) goto label_BFC018CC; @@ -3548,7 +3765,7 @@ label_BFC00E1C: /* nop */ /* 0xBFC00E24: 1480000D bne $a0, $zero, 0xBFC00E5C */ uint32_t psx_brA_BFC00E24 = cpu->gpr[4]; uint32_t psx_brB_BFC00E24 = cpu->gpr[0]; - int psx_taken_BFC00E24 = (psx_brA_BFC00E24 != psx_brB_BFC00E24); + psx_taken_BFC00E24 = (psx_brA_BFC00E24 != psx_brB_BFC00E24); /* 0xBFC00E28: 24010025 addiu $at, $zero, 37 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (37)); if (psx_taken_BFC00E24) goto label_BFC00E5C; @@ -3577,7 +3794,7 @@ label_BFC00E2C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00E4Cu); return; } cpu->gpr[30] = cpu->read_word(psx_addr); } /* 0xBFC00E50: 1000029F beq $zero, $zero, 0xBFC018D0 */ uint32_t psx_brA_BFC00E50 = cpu->gpr[0]; uint32_t psx_brB_BFC00E50 = cpu->gpr[0]; - int psx_taken_BFC00E50 = (psx_brA_BFC00E50 == psx_brB_BFC00E50); + psx_taken_BFC00E50 = (psx_brA_BFC00E50 == psx_brB_BFC00E50); /* 0xBFC00E54: 8FBF003C lw $ra, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00E54u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC00E50) goto label_BFC018D0; @@ -3595,7 +3812,7 @@ label_BFC00E5C: psx_check_interrupts(cpu); /* 0xBFC00E5C: 1081000D beq $a0, $at, 0xBFC00E94 */ uint32_t psx_brA_BFC00E5C = cpu->gpr[4]; uint32_t psx_brB_BFC00E5C = cpu->gpr[1]; - int psx_taken_BFC00E5C = (psx_brA_BFC00E5C == psx_brB_BFC00E5C); + psx_taken_BFC00E5C = (psx_brA_BFC00E5C == psx_brB_BFC00E5C); /* 0xBFC00E60: 00008821 addu $s1, $zero, $zero */ cpu->gpr[17] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC00E5C) goto label_BFC00E94; @@ -3630,7 +3847,7 @@ label_BFC00E6C: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (43)); /* 0xBFC00E88: 1000028E beq $zero, $zero, 0xBFC018C4 */ uint32_t psx_brA_BFC00E88 = cpu->gpr[0]; uint32_t psx_brB_BFC00E88 = cpu->gpr[0]; - int psx_taken_BFC00E88 = (psx_brA_BFC00E88 == psx_brB_BFC00E88); + psx_taken_BFC00E88 = (psx_brA_BFC00E88 == psx_brB_BFC00E88); /* 0xBFC00E8C: 241F0030 addiu $ra, $zero, 48 */ cpu->gpr[31] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); if (psx_taken_BFC00E88) goto label_BFC018C4; @@ -3667,7 +3884,7 @@ label_BFC00EA8: cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (1)); /* 0xBFC00EB0: 100001E6 beq $zero, $zero, 0xBFC0164C */ uint32_t psx_brA_BFC00EB0 = cpu->gpr[0]; uint32_t psx_brB_BFC00EB0 = cpu->gpr[0]; - int psx_taken_BFC00EB0 = (psx_brA_BFC00EB0 == psx_brB_BFC00EB0); + psx_taken_BFC00EB0 = (psx_brA_BFC00EB0 == psx_brB_BFC00EB0); /* 0xBFC00EB4: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC00EB0) goto label_BFC0164C; @@ -3678,7 +3895,7 @@ label_BFC00EB8: psx_check_interrupts(cpu); /* 0xBFC00EB8: 1680FFFB bne $s4, $zero, 0xBFC00EA8 */ uint32_t psx_brA_BFC00EB8 = cpu->gpr[20]; uint32_t psx_brB_BFC00EB8 = cpu->gpr[0]; - int psx_taken_BFC00EB8 = (psx_brA_BFC00EB8 != psx_brB_BFC00EB8); + psx_taken_BFC00EB8 = (psx_brA_BFC00EB8 != psx_brB_BFC00EB8); /* 0xBFC00EBC: 00000000 nop */ /* nop */ if (psx_taken_BFC00EB8) goto label_BFC00EA8; @@ -3689,7 +3906,7 @@ label_BFC00EC0: psx_check_interrupts(cpu); /* 0xBFC00EC0: 1000FFF9 beq $zero, $zero, 0xBFC00EA8 */ uint32_t psx_brA_BFC00EC0 = cpu->gpr[0]; uint32_t psx_brB_BFC00EC0 = cpu->gpr[0]; - int psx_taken_BFC00EC0 = (psx_brA_BFC00EC0 == psx_brB_BFC00EC0); + psx_taken_BFC00EC0 = (psx_brA_BFC00EC0 == psx_brB_BFC00EC0); /* 0xBFC00EC4: 24140020 addiu $s4, $zero, 32 */ cpu->gpr[20] = (uint32_t)((int32_t)cpu->gpr[0] + (32)); if (psx_taken_BFC00EC0) goto label_BFC00EA8; @@ -3700,7 +3917,7 @@ label_BFC00EC8: psx_check_interrupts(cpu); /* 0xBFC00EC8: 1000FFF7 beq $zero, $zero, 0xBFC00EA8 */ uint32_t psx_brA_BFC00EC8 = cpu->gpr[0]; uint32_t psx_brB_BFC00EC8 = cpu->gpr[0]; - int psx_taken_BFC00EC8 = (psx_brA_BFC00EC8 == psx_brB_BFC00EC8); + psx_taken_BFC00EC8 = (psx_brA_BFC00EC8 == psx_brB_BFC00EC8); /* 0xBFC00ECC: 36310008 ori $s1, $s1, 0x8 */ cpu->gpr[17] = cpu->gpr[17] | 0x8u; if (psx_taken_BFC00EC8) goto label_BFC00EA8; @@ -3715,7 +3932,7 @@ label_BFC00ED0: cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); /* 0xBFC00ED8: 06A1FFF3 bgez $s5, 0xBFC00EA8 */ uint32_t psx_brA_BFC00ED8 = cpu->gpr[21]; - int psx_taken_BFC00ED8 = ((int32_t)psx_brA_BFC00ED8 >= 0); + psx_taken_BFC00ED8 = ((int32_t)psx_brA_BFC00ED8 >= 0); /* 0xBFC00EDC: 00000000 nop */ /* nop */ if (psx_taken_BFC00ED8) goto label_BFC00EA8; @@ -3733,7 +3950,7 @@ label_BFC00EE4: psx_check_interrupts(cpu); /* 0xBFC00EE4: 1000FFF0 beq $zero, $zero, 0xBFC00EA8 */ uint32_t psx_brA_BFC00EE4 = cpu->gpr[0]; uint32_t psx_brB_BFC00EE4 = cpu->gpr[0]; - int psx_taken_BFC00EE4 = (psx_brA_BFC00EE4 == psx_brB_BFC00EE4); + psx_taken_BFC00EE4 = (psx_brA_BFC00EE4 == psx_brB_BFC00EE4); /* 0xBFC00EE8: 36310010 ori $s1, $s1, 0x10 */ cpu->gpr[17] = cpu->gpr[17] | 0x10u; if (psx_taken_BFC00EE4) goto label_BFC00EA8; @@ -3744,7 +3961,7 @@ label_BFC00EEC: psx_check_interrupts(cpu); /* 0xBFC00EEC: 1000FFEE beq $zero, $zero, 0xBFC00EA8 */ uint32_t psx_brA_BFC00EEC = cpu->gpr[0]; uint32_t psx_brB_BFC00EEC = cpu->gpr[0]; - int psx_taken_BFC00EEC = (psx_brA_BFC00EEC == psx_brB_BFC00EEC); + psx_taken_BFC00EEC = (psx_brA_BFC00EEC == psx_brB_BFC00EEC); /* 0xBFC00EF0: 2414002B addiu $s4, $zero, 43 */ cpu->gpr[20] = (uint32_t)((int32_t)cpu->gpr[0] + (43)); if (psx_taken_BFC00EEC) goto label_BFC00EA8; @@ -3759,7 +3976,7 @@ label_BFC00EF4: cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (1)); /* 0xBFC00EFC: 14E30005 bne $a3, $v1, 0xBFC00F14 */ uint32_t psx_brA_BFC00EFC = cpu->gpr[7]; uint32_t psx_brB_BFC00EFC = cpu->gpr[3]; - int psx_taken_BFC00EFC = (psx_brA_BFC00EFC != psx_brB_BFC00EFC); + psx_taken_BFC00EFC = (psx_brA_BFC00EFC != psx_brB_BFC00EFC); /* 0xBFC00F00: 2C610080 sltiu $at, $v1, 128 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < 0x00000080u ? 1 : 0); if (psx_taken_BFC00EFC) goto label_BFC00F14; @@ -3772,7 +3989,7 @@ label_BFC00F04: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[19] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC00F04u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC00F08: 1000001A beq $zero, $zero, 0xBFC00F74 */ uint32_t psx_brA_BFC00F08 = cpu->gpr[0]; uint32_t psx_brB_BFC00F08 = cpu->gpr[0]; - int psx_taken_BFC00F08 = (psx_brA_BFC00F08 == psx_brB_BFC00F08); + psx_taken_BFC00F08 = (psx_brA_BFC00F08 == psx_brB_BFC00F08); /* 0xBFC00F0C: 26730004 addiu $s3, $s3, 4 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); if (psx_taken_BFC00F08) goto label_BFC00F74; @@ -3790,7 +4007,7 @@ label_BFC00F14: psx_check_interrupts(cpu); /* 0xBFC00F14: 10200016 beq $at, $zero, 0xBFC00F70 */ uint32_t psx_brA_BFC00F14 = cpu->gpr[1]; uint32_t psx_brB_BFC00F14 = cpu->gpr[0]; - int psx_taken_BFC00F14 = (psx_brA_BFC00F14 == psx_brB_BFC00F14); + psx_taken_BFC00F14 = (psx_brA_BFC00F14 == psx_brB_BFC00F14); /* 0xBFC00F18: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC00F14) goto label_BFC00F70; @@ -3809,7 +4026,7 @@ label_BFC00F1C: cpu->gpr[25] = cpu->gpr[24] & 0x4u; /* 0xBFC00F2C: 13200010 beq $t9, $zero, 0xBFC00F70 */ uint32_t psx_brA_BFC00F2C = cpu->gpr[25]; uint32_t psx_brB_BFC00F2C = cpu->gpr[0]; - int psx_taken_BFC00F2C = (psx_brA_BFC00F2C == psx_brB_BFC00F2C); + psx_taken_BFC00F2C = (psx_brA_BFC00F2C == psx_brB_BFC00F2C); /* 0xBFC00F30: 00000000 nop */ /* nop */ if (psx_taken_BFC00F2C) goto label_BFC00F70; @@ -3839,7 +4056,7 @@ label_BFC00F38: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < 0x00000080u ? 1 : 0); /* 0xBFC00F50: 10200007 beq $at, $zero, 0xBFC00F70 */ uint32_t psx_brA_BFC00F50 = cpu->gpr[1]; uint32_t psx_brB_BFC00F50 = cpu->gpr[0]; - int psx_taken_BFC00F50 = (psx_brA_BFC00F50 == psx_brB_BFC00F50); + psx_taken_BFC00F50 = (psx_brA_BFC00F50 == psx_brB_BFC00F50); /* 0xBFC00F54: 26520001 addiu $s2, $s2, 1 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (1)); if (psx_taken_BFC00F50) goto label_BFC00F70; @@ -3858,7 +4075,7 @@ label_BFC00F58: cpu->gpr[25] = cpu->gpr[24] & 0x4u; /* 0xBFC00F68: 1720FFF3 bne $t9, $zero, 0xBFC00F38 */ uint32_t psx_brA_BFC00F68 = cpu->gpr[25]; uint32_t psx_brB_BFC00F68 = cpu->gpr[0]; - int psx_taken_BFC00F68 = (psx_brA_BFC00F68 != psx_brB_BFC00F68); + psx_taken_BFC00F68 = (psx_brA_BFC00F68 != psx_brB_BFC00F68); /* 0xBFC00F6C: 00107080 sll $t6, $s0, 2 */ cpu->gpr[14] = cpu->gpr[16] << 2u; if (psx_taken_BFC00F68) goto label_BFC00F38; @@ -3876,7 +4093,7 @@ label_BFC00F74: psx_check_interrupts(cpu); /* 0xBFC00F74: 06010003 bgez $s0, 0xBFC00F84 */ uint32_t psx_brA_BFC00F74 = cpu->gpr[16]; - int psx_taken_BFC00F74 = ((int32_t)psx_brA_BFC00F74 >= 0); + psx_taken_BFC00F74 = ((int32_t)psx_brA_BFC00F74 >= 0); /* 0xBFC00F78: 00000000 nop */ /* nop */ if (psx_taken_BFC00F74) goto label_BFC00F84; @@ -3887,7 +4104,7 @@ label_BFC00F7C: psx_check_interrupts(cpu); /* 0xBFC00F7C: 1000FFCA beq $zero, $zero, 0xBFC00EA8 */ uint32_t psx_brA_BFC00F7C = cpu->gpr[0]; uint32_t psx_brB_BFC00F7C = cpu->gpr[0]; - int psx_taken_BFC00F7C = (psx_brA_BFC00F7C == psx_brB_BFC00F7C); + psx_taken_BFC00F7C = (psx_brA_BFC00F7C == psx_brB_BFC00F7C); /* 0xBFC00F80: 2406FFFF addiu $a2, $zero, -1 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC00F7C) goto label_BFC00EA8; @@ -3898,7 +4115,7 @@ label_BFC00F84: psx_check_interrupts(cpu); /* 0xBFC00F84: 1000FFC8 beq $zero, $zero, 0xBFC00EA8 */ uint32_t psx_brA_BFC00F84 = cpu->gpr[0]; uint32_t psx_brB_BFC00F84 = cpu->gpr[0]; - int psx_taken_BFC00F84 = (psx_brA_BFC00F84 == psx_brB_BFC00F84); + psx_taken_BFC00F84 = (psx_brA_BFC00F84 == psx_brB_BFC00F84); /* 0xBFC00F88: 02003021 addu $a2, $s0, $zero */ cpu->gpr[6] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC00F84) goto label_BFC00EA8; @@ -3909,7 +4126,7 @@ label_BFC00F8C: psx_check_interrupts(cpu); /* 0xBFC00F8C: 1000FFC6 beq $zero, $zero, 0xBFC00EA8 */ uint32_t psx_brA_BFC00F8C = cpu->gpr[0]; uint32_t psx_brB_BFC00F8C = cpu->gpr[0]; - int psx_taken_BFC00F8C = (psx_brA_BFC00F8C == psx_brB_BFC00F8C); + psx_taken_BFC00F8C = (psx_brA_BFC00F8C == psx_brB_BFC00F8C); /* 0xBFC00F90: 36310020 ori $s1, $s1, 0x20 */ cpu->gpr[17] = cpu->gpr[17] | 0x20u; if (psx_taken_BFC00F8C) goto label_BFC00EA8; @@ -3946,7 +4163,7 @@ label_BFC00F9C: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < 0x00000080u ? 1 : 0); /* 0xBFC00FB4: 10200007 beq $at, $zero, 0xBFC00FD4 */ uint32_t psx_brA_BFC00FB4 = cpu->gpr[1]; uint32_t psx_brB_BFC00FB4 = cpu->gpr[0]; - int psx_taken_BFC00FB4 = (psx_brA_BFC00FB4 == psx_brB_BFC00FB4); + psx_taken_BFC00FB4 = (psx_brA_BFC00FB4 == psx_brB_BFC00FB4); /* 0xBFC00FB8: 26520001 addiu $s2, $s2, 1 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (1)); if (psx_taken_BFC00FB4) goto label_BFC00FD4; @@ -3965,7 +4182,7 @@ label_BFC00FBC: cpu->gpr[25] = cpu->gpr[24] & 0x4u; /* 0xBFC00FCC: 1720FFF3 bne $t9, $zero, 0xBFC00F9C */ uint32_t psx_brA_BFC00FCC = cpu->gpr[25]; uint32_t psx_brB_BFC00FCC = cpu->gpr[0]; - int psx_taken_BFC00FCC = (psx_brA_BFC00FCC != psx_brB_BFC00FCC); + psx_taken_BFC00FCC = (psx_brA_BFC00FCC != psx_brB_BFC00FCC); /* 0xBFC00FD0: 00107080 sll $t6, $s0, 2 */ cpu->gpr[14] = cpu->gpr[16] << 2u; if (psx_taken_BFC00FCC) goto label_BFC00F9C; @@ -3978,7 +4195,7 @@ label_BFC00FD4: cpu->gpr[21] = cpu->gpr[16] + cpu->gpr[0]; /* 0xBFC00FD8: 1000FFB3 beq $zero, $zero, 0xBFC00EA8 */ uint32_t psx_brA_BFC00FD8 = cpu->gpr[0]; uint32_t psx_brB_BFC00FD8 = cpu->gpr[0]; - int psx_taken_BFC00FD8 = (psx_brA_BFC00FD8 == psx_brB_BFC00FD8); + psx_taken_BFC00FD8 = (psx_brA_BFC00FD8 == psx_brB_BFC00FD8); /* 0xBFC00FDC: 2652FFFF addiu $s2, $s2, -1 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (-1)); if (psx_taken_BFC00FD8) goto label_BFC00EA8; @@ -3989,7 +4206,7 @@ label_BFC00FE0: psx_check_interrupts(cpu); /* 0xBFC00FE0: 1000FFB1 beq $zero, $zero, 0xBFC00EA8 */ uint32_t psx_brA_BFC00FE0 = cpu->gpr[0]; uint32_t psx_brB_BFC00FE0 = cpu->gpr[0]; - int psx_taken_BFC00FE0 = (psx_brA_BFC00FE0 == psx_brB_BFC00FE0); + psx_taken_BFC00FE0 = (psx_brA_BFC00FE0 == psx_brB_BFC00FE0); /* 0xBFC00FE4: 36310002 ori $s1, $s1, 0x2 */ cpu->gpr[17] = cpu->gpr[17] | 0x2u; if (psx_taken_BFC00FE0) goto label_BFC00EA8; @@ -4000,7 +4217,7 @@ label_BFC00FE8: psx_check_interrupts(cpu); /* 0xBFC00FE8: 1000FFAF beq $zero, $zero, 0xBFC00EA8 */ uint32_t psx_brA_BFC00FE8 = cpu->gpr[0]; uint32_t psx_brB_BFC00FE8 = cpu->gpr[0]; - int psx_taken_BFC00FE8 = (psx_brA_BFC00FE8 == psx_brB_BFC00FE8); + psx_taken_BFC00FE8 = (psx_brA_BFC00FE8 == psx_brB_BFC00FE8); /* 0xBFC00FEC: 36310004 ori $s1, $s1, 0x4 */ cpu->gpr[17] = cpu->gpr[17] | 0x4u; if (psx_taken_BFC00FE8) goto label_BFC00EA8; @@ -4011,7 +4228,7 @@ label_BFC00FF0: psx_check_interrupts(cpu); /* 0xBFC00FF0: 1000FFAD beq $zero, $zero, 0xBFC00EA8 */ uint32_t psx_brA_BFC00FF0 = cpu->gpr[0]; uint32_t psx_brB_BFC00FF0 = cpu->gpr[0]; - int psx_taken_BFC00FF0 = (psx_brA_BFC00FF0 == psx_brB_BFC00FF0); + psx_taken_BFC00FF0 = (psx_brA_BFC00FF0 == psx_brB_BFC00FF0); /* 0xBFC00FF4: 36310001 ori $s1, $s1, 0x1 */ cpu->gpr[17] = cpu->gpr[17] | 0x1u; if (psx_taken_BFC00FF0) goto label_BFC00EA8; @@ -4032,7 +4249,7 @@ label_BFC00FF8: cpu->gpr[20] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC0100C: 100000C2 beq $zero, $zero, 0xBFC01318 */ uint32_t psx_brA_BFC0100C = cpu->gpr[0]; uint32_t psx_brB_BFC0100C = cpu->gpr[0]; - int psx_taken_BFC0100C = (psx_brA_BFC0100C == psx_brB_BFC0100C); + psx_taken_BFC0100C = (psx_brA_BFC0100C == psx_brB_BFC0100C); /* 0xBFC01010: A3AE0080 sb $t6, 128($sp) */ g_debug_last_store_pc = 0xBFC01010u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[29] + (128)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC0100C) goto label_BFC01318; @@ -4054,7 +4271,7 @@ label_BFC01018: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); /* 0xBFC01020: 11E00004 beq $t7, $zero, 0xBFC01034 */ uint32_t psx_brA_BFC01020 = cpu->gpr[15]; uint32_t psx_brB_BFC01020 = cpu->gpr[0]; - int psx_taken_BFC01020 = (psx_brA_BFC01020 == psx_brB_BFC01020); + psx_taken_BFC01020 = (psx_brA_BFC01020 == psx_brB_BFC01020); /* 0xBFC01024: 27B601DC addiu $s6, $sp, 476 */ cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[29] + (476)); if (psx_taken_BFC01020) goto label_BFC01034; @@ -4067,7 +4284,7 @@ label_BFC01028: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[19] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01028u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC0102C: 1000000A beq $zero, $zero, 0xBFC01058 */ uint32_t psx_brA_BFC0102C = cpu->gpr[0]; uint32_t psx_brB_BFC0102C = cpu->gpr[0]; - int psx_taken_BFC0102C = (psx_brA_BFC0102C == psx_brB_BFC0102C); + psx_taken_BFC0102C = (psx_brA_BFC0102C == psx_brB_BFC0102C); /* 0xBFC01030: 26730004 addiu $s3, $s3, 4 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); if (psx_taken_BFC0102C) goto label_BFC01058; @@ -4080,7 +4297,7 @@ label_BFC01034: cpu->gpr[24] = cpu->gpr[17] & 0x4u; /* 0xBFC01038: 13000004 beq $t8, $zero, 0xBFC0104C */ uint32_t psx_brA_BFC01038 = cpu->gpr[24]; uint32_t psx_brB_BFC01038 = cpu->gpr[0]; - int psx_taken_BFC01038 = (psx_brA_BFC01038 == psx_brB_BFC01038); + psx_taken_BFC01038 = (psx_brA_BFC01038 == psx_brB_BFC01038); /* 0xBFC0103C: 00000000 nop */ /* nop */ if (psx_taken_BFC01038) goto label_BFC0104C; @@ -4093,7 +4310,7 @@ label_BFC01040: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[19] + (0)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01040u); return; } cpu->gpr[2] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC01044: 10000003 beq $zero, $zero, 0xBFC01054 */ uint32_t psx_brA_BFC01044 = cpu->gpr[0]; uint32_t psx_brB_BFC01044 = cpu->gpr[0]; - int psx_taken_BFC01044 = (psx_brA_BFC01044 == psx_brB_BFC01044); + psx_taken_BFC01044 = (psx_brA_BFC01044 == psx_brB_BFC01044); /* 0xBFC01048: 26730004 addiu $s3, $s3, 4 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); if (psx_taken_BFC01044) goto label_BFC01054; @@ -4120,7 +4337,7 @@ label_BFC01058: psx_check_interrupts(cpu); /* 0xBFC01058: 04610089 bgez $v1, 0xBFC01280 */ uint32_t psx_brA_BFC01058 = cpu->gpr[3]; - int psx_taken_BFC01058 = ((int32_t)psx_brA_BFC01058 >= 0); + psx_taken_BFC01058 = ((int32_t)psx_brA_BFC01058 >= 0); /* 0xBFC0105C: 00000000 nop */ /* nop */ if (psx_taken_BFC01058) goto label_BFC01280; @@ -4133,7 +4350,7 @@ label_BFC01060: cpu->gpr[3] = cpu->gpr[0] - cpu->gpr[3]; /* 0xBFC01064: 10000086 beq $zero, $zero, 0xBFC01280 */ uint32_t psx_brA_BFC01064 = cpu->gpr[0]; uint32_t psx_brB_BFC01064 = cpu->gpr[0]; - int psx_taken_BFC01064 = (psx_brA_BFC01064 == psx_brB_BFC01064); + psx_taken_BFC01064 = (psx_brA_BFC01064 == psx_brB_BFC01064); /* 0xBFC01068: 2414002D addiu $s4, $zero, 45 */ cpu->gpr[20] = (uint32_t)((int32_t)cpu->gpr[0] + (45)); if (psx_taken_BFC01064) goto label_BFC01280; @@ -4146,7 +4363,7 @@ label_BFC0106C: cpu->gpr[25] = cpu->gpr[17] & 0x1u; /* 0xBFC01070: 13200007 beq $t9, $zero, 0xBFC01090 */ uint32_t psx_brA_BFC01070 = cpu->gpr[25]; uint32_t psx_brB_BFC01070 = cpu->gpr[0]; - int psx_taken_BFC01070 = (psx_brA_BFC01070 == psx_brB_BFC01070); + psx_taken_BFC01070 = (psx_brA_BFC01070 == psx_brB_BFC01070); /* 0xBFC01074: 32380004 andi $t8, $s1, 0x4 */ cpu->gpr[24] = cpu->gpr[17] & 0x4u; if (psx_taken_BFC01070) goto label_BFC01090; @@ -4163,7 +4380,7 @@ label_BFC01078: cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); /* 0xBFC01084: 1000020F beq $zero, $zero, 0xBFC018C4 */ uint32_t psx_brA_BFC01084 = cpu->gpr[0]; uint32_t psx_brB_BFC01084 = cpu->gpr[0]; - int psx_taken_BFC01084 = (psx_brA_BFC01084 == psx_brB_BFC01084); + psx_taken_BFC01084 = (psx_brA_BFC01084 == psx_brB_BFC01084); /* 0xBFC01088: ADEE0000 sw $t6, 0($t7) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[15] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01088u); return; } g_debug_last_store_pc = 0xBFC01088u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC01084) goto label_BFC018C4; @@ -4181,7 +4398,7 @@ label_BFC01090: psx_check_interrupts(cpu); /* 0xBFC01090: 13000007 beq $t8, $zero, 0xBFC010B0 */ uint32_t psx_brA_BFC01090 = cpu->gpr[24]; uint32_t psx_brB_BFC01090 = cpu->gpr[0]; - int psx_taken_BFC01090 = (psx_brA_BFC01090 == psx_brB_BFC01090); + psx_taken_BFC01090 = (psx_brA_BFC01090 == psx_brB_BFC01090); /* 0xBFC01094: 8FAF0224 lw $t7, 548($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (548)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01094u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC01090) goto label_BFC010B0; @@ -4198,7 +4415,7 @@ label_BFC01098: cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); /* 0xBFC010A4: 10000207 beq $zero, $zero, 0xBFC018C4 */ uint32_t psx_brA_BFC010A4 = cpu->gpr[0]; uint32_t psx_brB_BFC010A4 = cpu->gpr[0]; - int psx_taken_BFC010A4 = (psx_brA_BFC010A4 == psx_brB_BFC010A4); + psx_taken_BFC010A4 = (psx_brA_BFC010A4 == psx_brB_BFC010A4); /* 0xBFC010A8: A5D90000 sh $t9, 0($t6) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[14] + (0)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC010A8u); return; } g_debug_last_store_pc = 0xBFC010A8u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[25] & 0xFFFFu)); } if (psx_taken_BFC010A4) goto label_BFC018C4; @@ -4220,7 +4437,7 @@ label_BFC010B0: cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); /* 0xBFC010B8: 10000202 beq $zero, $zero, 0xBFC018C4 */ uint32_t psx_brA_BFC010B8 = cpu->gpr[0]; uint32_t psx_brB_BFC010B8 = cpu->gpr[0]; - int psx_taken_BFC010B8 = (psx_brA_BFC010B8 == psx_brB_BFC010B8); + psx_taken_BFC010B8 = (psx_brA_BFC010B8 == psx_brB_BFC010B8); /* 0xBFC010BC: AF0F0000 sw $t7, 0($t8) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC010BCu); return; } g_debug_last_store_pc = 0xBFC010BCu; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC010B8) goto label_BFC018C4; @@ -4244,7 +4461,7 @@ label_BFC010C8: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); /* 0xBFC010D0: 13200004 beq $t9, $zero, 0xBFC010E4 */ uint32_t psx_brA_BFC010D0 = cpu->gpr[25]; uint32_t psx_brB_BFC010D0 = cpu->gpr[0]; - int psx_taken_BFC010D0 = (psx_brA_BFC010D0 == psx_brB_BFC010D0); + psx_taken_BFC010D0 = (psx_brA_BFC010D0 == psx_brB_BFC010D0); /* 0xBFC010D4: 27B601DC addiu $s6, $sp, 476 */ cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[29] + (476)); if (psx_taken_BFC010D0) goto label_BFC010E4; @@ -4257,7 +4474,7 @@ label_BFC010D8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[19] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC010D8u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC010DC: 10000068 beq $zero, $zero, 0xBFC01280 */ uint32_t psx_brA_BFC010DC = cpu->gpr[0]; uint32_t psx_brB_BFC010DC = cpu->gpr[0]; - int psx_taken_BFC010DC = (psx_brA_BFC010DC == psx_brB_BFC010DC); + psx_taken_BFC010DC = (psx_brA_BFC010DC == psx_brB_BFC010DC); /* 0xBFC010E0: 26730004 addiu $s3, $s3, 4 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); if (psx_taken_BFC010DC) goto label_BFC01280; @@ -4270,7 +4487,7 @@ label_BFC010E4: cpu->gpr[14] = cpu->gpr[17] & 0x4u; /* 0xBFC010E8: 11C00004 beq $t6, $zero, 0xBFC010FC */ uint32_t psx_brA_BFC010E8 = cpu->gpr[14]; uint32_t psx_brB_BFC010E8 = cpu->gpr[0]; - int psx_taken_BFC010E8 = (psx_brA_BFC010E8 == psx_brB_BFC010E8); + psx_taken_BFC010E8 = (psx_brA_BFC010E8 == psx_brB_BFC010E8); /* 0xBFC010EC: 00000000 nop */ /* nop */ if (psx_taken_BFC010E8) goto label_BFC010FC; @@ -4283,7 +4500,7 @@ label_BFC010F0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[19] + (0)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC010F0u); return; } cpu->gpr[2] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC010F4: 10000003 beq $zero, $zero, 0xBFC01104 */ uint32_t psx_brA_BFC010F4 = cpu->gpr[0]; uint32_t psx_brB_BFC010F4 = cpu->gpr[0]; - int psx_taken_BFC010F4 = (psx_brA_BFC010F4 == psx_brB_BFC010F4); + psx_taken_BFC010F4 = (psx_brA_BFC010F4 == psx_brB_BFC010F4); /* 0xBFC010F8: 26730004 addiu $s3, $s3, 4 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); if (psx_taken_BFC010F4) goto label_BFC01104; @@ -4303,7 +4520,7 @@ label_BFC01104: psx_check_interrupts(cpu); /* 0xBFC01104: 1000005E beq $zero, $zero, 0xBFC01280 */ uint32_t psx_brA_BFC01104 = cpu->gpr[0]; uint32_t psx_brB_BFC01104 = cpu->gpr[0]; - int psx_taken_BFC01104 = (psx_brA_BFC01104 == psx_brB_BFC01104); + psx_taken_BFC01104 = (psx_brA_BFC01104 == psx_brB_BFC01104); /* 0xBFC01108: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC01104) goto label_BFC01280; @@ -4322,7 +4539,7 @@ label_BFC0110C: cpu->gpr[20] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC0111C: 10000058 beq $zero, $zero, 0xBFC01280 */ uint32_t psx_brA_BFC0111C = cpu->gpr[0]; uint32_t psx_brB_BFC0111C = cpu->gpr[0]; - int psx_taken_BFC0111C = (psx_brA_BFC0111C == psx_brB_BFC0111C); + psx_taken_BFC0111C = (psx_brA_BFC0111C == psx_brB_BFC0111C); /* 0xBFC01120: 27B601DC addiu $s6, $sp, 476 */ cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[29] + (476)); if (psx_taken_BFC0111C) goto label_BFC01280; @@ -4337,7 +4554,7 @@ label_BFC01124: cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); /* 0xBFC0112C: 16C00003 bne $s6, $zero, 0xBFC0113C */ uint32_t psx_brA_BFC0112C = cpu->gpr[22]; uint32_t psx_brB_BFC0112C = cpu->gpr[0]; - int psx_taken_BFC0112C = (psx_brA_BFC0112C != psx_brB_BFC0112C); + psx_taken_BFC0112C = (psx_brA_BFC0112C != psx_brB_BFC0112C); /* 0xBFC01130: 0000A021 addu $s4, $zero, $zero */ cpu->gpr[20] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0112C) goto label_BFC0113C; @@ -4357,7 +4574,7 @@ label_BFC0113C: psx_check_interrupts(cpu); /* 0xBFC0113C: 04C00017 bltz $a2, 0xBFC0119C */ uint32_t psx_brA_BFC0113C = cpu->gpr[6]; - int psx_taken_BFC0113C = ((int32_t)psx_brA_BFC0113C < 0); + psx_taken_BFC0113C = ((int32_t)psx_brA_BFC0113C < 0); /* 0xBFC01140: 00000000 nop */ /* nop */ if (psx_taken_BFC0113C) goto label_BFC0119C; @@ -4398,7 +4615,7 @@ label_BFC01154: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (43)); /* 0xBFC01174: 10400007 beq $v0, $zero, 0xBFC01194 */ uint32_t psx_brA_BFC01174 = cpu->gpr[2]; uint32_t psx_brB_BFC01174 = cpu->gpr[0]; - int psx_taken_BFC01174 = (psx_brA_BFC01174 == psx_brB_BFC01174); + psx_taken_BFC01174 = (psx_brA_BFC01174 == psx_brB_BFC01174); /* 0xBFC01178: 241F0030 addiu $ra, $zero, 48 */ cpu->gpr[31] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); if (psx_taken_BFC01174) goto label_BFC01194; @@ -4413,7 +4630,7 @@ label_BFC0117C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[6] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC01184: 10200064 beq $at, $zero, 0xBFC01318 */ uint32_t psx_brA_BFC01184 = cpu->gpr[1]; uint32_t psx_brB_BFC01184 = cpu->gpr[0]; - int psx_taken_BFC01184 = (psx_brA_BFC01184 == psx_brB_BFC01184); + psx_taken_BFC01184 = (psx_brA_BFC01184 == psx_brB_BFC01184); /* 0xBFC01188: 0060B821 addu $s7, $v1, $zero */ cpu->gpr[23] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC01184) goto label_BFC01318; @@ -4424,7 +4641,7 @@ label_BFC0118C: psx_check_interrupts(cpu); /* 0xBFC0118C: 10000062 beq $zero, $zero, 0xBFC01318 */ uint32_t psx_brA_BFC0118C = cpu->gpr[0]; uint32_t psx_brB_BFC0118C = cpu->gpr[0]; - int psx_taken_BFC0118C = (psx_brA_BFC0118C == psx_brB_BFC0118C); + psx_taken_BFC0118C = (psx_brA_BFC0118C == psx_brB_BFC0118C); /* 0xBFC01190: 00C0B821 addu $s7, $a2, $zero */ cpu->gpr[23] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC0118C) goto label_BFC01318; @@ -4435,7 +4652,7 @@ label_BFC01194: psx_check_interrupts(cpu); /* 0xBFC01194: 10000060 beq $zero, $zero, 0xBFC01318 */ uint32_t psx_brA_BFC01194 = cpu->gpr[0]; uint32_t psx_brB_BFC01194 = cpu->gpr[0]; - int psx_taken_BFC01194 = (psx_brA_BFC01194 == psx_brB_BFC01194); + psx_taken_BFC01194 = (psx_brA_BFC01194 == psx_brB_BFC01194); /* 0xBFC01198: 00C0B821 addu $s7, $a2, $zero */ cpu->gpr[23] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC01194) goto label_BFC01318; @@ -4472,7 +4689,7 @@ label_BFC011A4: cpu->gpr[31] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); /* 0xBFC011C4: 10000054 beq $zero, $zero, 0xBFC01318 */ uint32_t psx_brA_BFC011C4 = cpu->gpr[0]; uint32_t psx_brB_BFC011C4 = cpu->gpr[0]; - int psx_taken_BFC011C4 = (psx_brA_BFC011C4 == psx_brB_BFC011C4); + psx_taken_BFC011C4 = (psx_brA_BFC011C4 == psx_brB_BFC011C4); /* 0xBFC011C8: 0040B821 addu $s7, $v0, $zero */ cpu->gpr[23] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC011C4) goto label_BFC01318; @@ -4496,7 +4713,7 @@ label_BFC011D0: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); /* 0xBFC011DC: 11E00004 beq $t7, $zero, 0xBFC011F0 */ uint32_t psx_brA_BFC011DC = cpu->gpr[15]; uint32_t psx_brB_BFC011DC = cpu->gpr[0]; - int psx_taken_BFC011DC = (psx_brA_BFC011DC == psx_brB_BFC011DC); + psx_taken_BFC011DC = (psx_brA_BFC011DC == psx_brB_BFC011DC); /* 0xBFC011E0: 27B601DC addiu $s6, $sp, 476 */ cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[29] + (476)); if (psx_taken_BFC011DC) goto label_BFC011F0; @@ -4509,7 +4726,7 @@ label_BFC011E4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[19] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC011E4u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC011E8: 10000025 beq $zero, $zero, 0xBFC01280 */ uint32_t psx_brA_BFC011E8 = cpu->gpr[0]; uint32_t psx_brB_BFC011E8 = cpu->gpr[0]; - int psx_taken_BFC011E8 = (psx_brA_BFC011E8 == psx_brB_BFC011E8); + psx_taken_BFC011E8 = (psx_brA_BFC011E8 == psx_brB_BFC011E8); /* 0xBFC011EC: 26730004 addiu $s3, $s3, 4 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); if (psx_taken_BFC011E8) goto label_BFC01280; @@ -4522,7 +4739,7 @@ label_BFC011F0: cpu->gpr[24] = cpu->gpr[17] & 0x4u; /* 0xBFC011F4: 13000004 beq $t8, $zero, 0xBFC01208 */ uint32_t psx_brA_BFC011F4 = cpu->gpr[24]; uint32_t psx_brB_BFC011F4 = cpu->gpr[0]; - int psx_taken_BFC011F4 = (psx_brA_BFC011F4 == psx_brB_BFC011F4); + psx_taken_BFC011F4 = (psx_brA_BFC011F4 == psx_brB_BFC011F4); /* 0xBFC011F8: 00000000 nop */ /* nop */ if (psx_taken_BFC011F4) goto label_BFC01208; @@ -4535,7 +4752,7 @@ label_BFC011FC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[19] + (0)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC011FCu); return; } cpu->gpr[2] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC01200: 10000003 beq $zero, $zero, 0xBFC01210 */ uint32_t psx_brA_BFC01200 = cpu->gpr[0]; uint32_t psx_brB_BFC01200 = cpu->gpr[0]; - int psx_taken_BFC01200 = (psx_brA_BFC01200 == psx_brB_BFC01200); + psx_taken_BFC01200 = (psx_brA_BFC01200 == psx_brB_BFC01200); /* 0xBFC01204: 26730004 addiu $s3, $s3, 4 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); if (psx_taken_BFC01200) goto label_BFC01210; @@ -4555,7 +4772,7 @@ label_BFC01210: psx_check_interrupts(cpu); /* 0xBFC01210: 1000001B beq $zero, $zero, 0xBFC01280 */ uint32_t psx_brA_BFC01210 = cpu->gpr[0]; uint32_t psx_brB_BFC01210 = cpu->gpr[0]; - int psx_taken_BFC01210 = (psx_brA_BFC01210 == psx_brB_BFC01210); + psx_taken_BFC01210 = (psx_brA_BFC01210 == psx_brB_BFC01210); /* 0xBFC01214: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC01210) goto label_BFC01280; @@ -4583,7 +4800,7 @@ label_BFC01228: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); /* 0xBFC01230: 11C00004 beq $t6, $zero, 0xBFC01244 */ uint32_t psx_brA_BFC01230 = cpu->gpr[14]; uint32_t psx_brB_BFC01230 = cpu->gpr[0]; - int psx_taken_BFC01230 = (psx_brA_BFC01230 == psx_brB_BFC01230); + psx_taken_BFC01230 = (psx_brA_BFC01230 == psx_brB_BFC01230); /* 0xBFC01234: 27B601DC addiu $s6, $sp, 476 */ cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[29] + (476)); if (psx_taken_BFC01230) goto label_BFC01244; @@ -4596,7 +4813,7 @@ label_BFC01238: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[19] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01238u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC0123C: 1000000A beq $zero, $zero, 0xBFC01268 */ uint32_t psx_brA_BFC0123C = cpu->gpr[0]; uint32_t psx_brB_BFC0123C = cpu->gpr[0]; - int psx_taken_BFC0123C = (psx_brA_BFC0123C == psx_brB_BFC0123C); + psx_taken_BFC0123C = (psx_brA_BFC0123C == psx_brB_BFC0123C); /* 0xBFC01240: 26730004 addiu $s3, $s3, 4 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); if (psx_taken_BFC0123C) goto label_BFC01268; @@ -4609,7 +4826,7 @@ label_BFC01244: cpu->gpr[15] = cpu->gpr[17] & 0x4u; /* 0xBFC01248: 11E00004 beq $t7, $zero, 0xBFC0125C */ uint32_t psx_brA_BFC01248 = cpu->gpr[15]; uint32_t psx_brB_BFC01248 = cpu->gpr[0]; - int psx_taken_BFC01248 = (psx_brA_BFC01248 == psx_brB_BFC01248); + psx_taken_BFC01248 = (psx_brA_BFC01248 == psx_brB_BFC01248); /* 0xBFC0124C: 00000000 nop */ /* nop */ if (psx_taken_BFC01248) goto label_BFC0125C; @@ -4622,7 +4839,7 @@ label_BFC01250: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[19] + (0)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01250u); return; } cpu->gpr[2] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC01254: 10000003 beq $zero, $zero, 0xBFC01264 */ uint32_t psx_brA_BFC01254 = cpu->gpr[0]; uint32_t psx_brB_BFC01254 = cpu->gpr[0]; - int psx_taken_BFC01254 = (psx_brA_BFC01254 == psx_brB_BFC01254); + psx_taken_BFC01254 = (psx_brA_BFC01254 == psx_brB_BFC01254); /* 0xBFC01258: 26730004 addiu $s3, $s3, 4 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); if (psx_taken_BFC01254) goto label_BFC01264; @@ -4651,7 +4868,7 @@ label_BFC01268: cpu->gpr[24] = cpu->gpr[17] & 0x8u; /* 0xBFC0126C: 13000004 beq $t8, $zero, 0xBFC01280 */ uint32_t psx_brA_BFC0126C = cpu->gpr[24]; uint32_t psx_brB_BFC0126C = cpu->gpr[0]; - int psx_taken_BFC0126C = (psx_brA_BFC0126C == psx_brB_BFC0126C); + psx_taken_BFC0126C = (psx_brA_BFC0126C == psx_brB_BFC0126C); /* 0xBFC01270: 00000000 nop */ /* nop */ if (psx_taken_BFC0126C) goto label_BFC01280; @@ -4662,7 +4879,7 @@ label_BFC01274: psx_check_interrupts(cpu); /* 0xBFC01274: 10600002 beq $v1, $zero, 0xBFC01280 */ uint32_t psx_brA_BFC01274 = cpu->gpr[3]; uint32_t psx_brB_BFC01274 = cpu->gpr[0]; - int psx_taken_BFC01274 = (psx_brA_BFC01274 == psx_brB_BFC01274); + psx_taken_BFC01274 = (psx_brA_BFC01274 == psx_brB_BFC01274); /* 0xBFC01278: 00000000 nop */ /* nop */ if (psx_taken_BFC01274) goto label_BFC01280; @@ -4680,7 +4897,7 @@ label_BFC01280: psx_check_interrupts(cpu); /* 0xBFC01280: 04C00003 bltz $a2, 0xBFC01290 */ uint32_t psx_brA_BFC01280 = cpu->gpr[6]; - int psx_taken_BFC01280 = ((int32_t)psx_brA_BFC01280 < 0); + psx_taken_BFC01280 = ((int32_t)psx_brA_BFC01280 < 0); /* 0xBFC01284: AFA60204 sw $a2, 516($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (516)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01284u); return; } g_debug_last_store_pc = 0xBFC01284u; cpu->write_word(psx_addr, cpu->gpr[6]); } if (psx_taken_BFC01280) goto label_BFC01290; @@ -4700,7 +4917,7 @@ label_BFC01290: psx_check_interrupts(cpu); /* 0xBFC01290: 14600003 bne $v1, $zero, 0xBFC012A0 */ uint32_t psx_brA_BFC01290 = cpu->gpr[3]; uint32_t psx_brB_BFC01290 = cpu->gpr[0]; - int psx_taken_BFC01290 = (psx_brA_BFC01290 != psx_brB_BFC01290); + psx_taken_BFC01290 = (psx_brA_BFC01290 != psx_brB_BFC01290); /* 0xBFC01294: 00000000 nop */ /* nop */ if (psx_taken_BFC01290) goto label_BFC012A0; @@ -4711,7 +4928,7 @@ label_BFC01298: psx_check_interrupts(cpu); /* 0xBFC01298: 10C0001E beq $a2, $zero, 0xBFC01314 */ uint32_t psx_brA_BFC01298 = cpu->gpr[6]; uint32_t psx_brB_BFC01298 = cpu->gpr[0]; - int psx_taken_BFC01298 = (psx_brA_BFC01298 == psx_brB_BFC01298); + psx_taken_BFC01298 = (psx_brA_BFC01298 == psx_brB_BFC01298); /* 0xBFC0129C: 27AF01DC addiu $t7, $sp, 476 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[29] + (476)); if (psx_taken_BFC01298) goto label_BFC01314; @@ -4745,7 +4962,7 @@ label_BFC012A8: g_debug_last_store_pc = 0xBFC012C0u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[22] + (0)), (uint8_t)(cpu->gpr[15] & 0xFFu)); /* 0xBFC012C4: 14800002 bne $a0, $zero, 0xBFC012D0 */ uint32_t psx_brA_BFC012C4 = cpu->gpr[4]; uint32_t psx_brB_BFC012C4 = cpu->gpr[0]; - int psx_taken_BFC012C4 = (psx_brA_BFC012C4 != psx_brB_BFC012C4); + psx_taken_BFC012C4 = (psx_brA_BFC012C4 != psx_brB_BFC012C4); /* 0xBFC012C8: 00000000 nop */ /* nop */ if (psx_taken_BFC012C4) goto label_BFC012D0; @@ -4763,7 +4980,7 @@ label_BFC012D0: psx_check_interrupts(cpu); /* 0xBFC012D0: 1460FFF5 bne $v1, $zero, 0xBFC012A8 */ uint32_t psx_brA_BFC012D0 = cpu->gpr[3]; uint32_t psx_brB_BFC012D0 = cpu->gpr[0]; - int psx_taken_BFC012D0 = (psx_brA_BFC012D0 != psx_brB_BFC012D0); + psx_taken_BFC012D0 = (psx_brA_BFC012D0 != psx_brB_BFC012D0); /* 0xBFC012D4: 00000000 nop */ /* nop */ if (psx_taken_BFC012D0) goto label_BFC012A8; @@ -4778,7 +4995,7 @@ label_BFC012D8: cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[24] + (-8816)); /* 0xBFC012E0: 1040000B beq $v0, $zero, 0xBFC01310 */ uint32_t psx_brA_BFC012E0 = cpu->gpr[2]; uint32_t psx_brB_BFC012E0 = cpu->gpr[0]; - int psx_taken_BFC012E0 = (psx_brA_BFC012E0 == psx_brB_BFC012E0); + psx_taken_BFC012E0 = (psx_brA_BFC012E0 == psx_brB_BFC012E0); /* 0xBFC012E4: AFB801DC sw $t8, 476($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (476)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC012E4u); return; } g_debug_last_store_pc = 0xBFC012E4u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC012E0) goto label_BFC01310; @@ -4791,7 +5008,7 @@ label_BFC012E8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); /* 0xBFC012EC: 14810009 bne $a0, $at, 0xBFC01314 */ uint32_t psx_brA_BFC012EC = cpu->gpr[4]; uint32_t psx_brB_BFC012EC = cpu->gpr[1]; - int psx_taken_BFC012EC = (psx_brA_BFC012EC != psx_brB_BFC012EC); + psx_taken_BFC012EC = (psx_brA_BFC012EC != psx_brB_BFC012EC); /* 0xBFC012F0: 27AF01DC addiu $t7, $sp, 476 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[29] + (476)); if (psx_taken_BFC012EC) goto label_BFC01314; @@ -4806,7 +5023,7 @@ label_BFC012F4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); /* 0xBFC012FC: 13210005 beq $t9, $at, 0xBFC01314 */ uint32_t psx_brA_BFC012FC = cpu->gpr[25]; uint32_t psx_brB_BFC012FC = cpu->gpr[1]; - int psx_taken_BFC012FC = (psx_brA_BFC012FC == psx_brB_BFC012FC); + psx_taken_BFC012FC = (psx_brA_BFC012FC == psx_brB_BFC012FC); /* 0xBFC01300: 27AF01DC addiu $t7, $sp, 476 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[29] + (476)); if (psx_taken_BFC012FC) goto label_BFC01314; @@ -4846,7 +5063,7 @@ label_BFC01318: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (512)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0131Cu); return; } g_debug_last_store_pc = 0xBFC0131Cu; cpu->write_word(psx_addr, cpu->gpr[2]); } /* 0xBFC01320: 12800005 beq $s4, $zero, 0xBFC01338 */ uint32_t psx_brA_BFC01320 = cpu->gpr[20]; uint32_t psx_brB_BFC01320 = cpu->gpr[0]; - int psx_taken_BFC01320 = (psx_brA_BFC01320 == psx_brB_BFC01320); + psx_taken_BFC01320 = (psx_brA_BFC01320 == psx_brB_BFC01320); /* 0xBFC01324: AFA20064 sw $v0, 100($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (100)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01324u); return; } g_debug_last_store_pc = 0xBFC01324u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC01320) goto label_BFC01338; @@ -4872,7 +5089,7 @@ label_BFC01338: cpu->gpr[2] = cpu->gpr[17] & 0x40u; /* 0xBFC0133C: 10400005 beq $v0, $zero, 0xBFC01354 */ uint32_t psx_brA_BFC0133C = cpu->gpr[2]; uint32_t psx_brB_BFC0133C = cpu->gpr[0]; - int psx_taken_BFC0133C = (psx_brA_BFC0133C == psx_brB_BFC0133C); + psx_taken_BFC0133C = (psx_brA_BFC0133C == psx_brB_BFC0133C); /* 0xBFC01340: AFA2006C sw $v0, 108($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (108)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01340u); return; } g_debug_last_store_pc = 0xBFC01340u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC0133C) goto label_BFC01354; @@ -4904,7 +5121,7 @@ label_BFC01354: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[25] < (int32_t)cpu->gpr[24] ? 1 : 0); /* 0xBFC01364: 10200004 beq $at, $zero, 0xBFC01378 */ uint32_t psx_brA_BFC01364 = cpu->gpr[1]; uint32_t psx_brB_BFC01364 = cpu->gpr[0]; - int psx_taken_BFC01364 = (psx_brA_BFC01364 == psx_brB_BFC01364); + psx_taken_BFC01364 = (psx_brA_BFC01364 == psx_brB_BFC01364); /* 0xBFC01368: 8FAE0200 lw $t6, 512($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (512)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01368u); return; } cpu->gpr[14] = cpu->read_word(psx_addr); } if (psx_taken_BFC01364) goto label_BFC01378; @@ -4915,7 +5132,7 @@ label_BFC0136C: psx_check_interrupts(cpu); /* 0xBFC0136C: 10000004 beq $zero, $zero, 0xBFC01380 */ uint32_t psx_brA_BFC0136C = cpu->gpr[0]; uint32_t psx_brB_BFC0136C = cpu->gpr[0]; - int psx_taken_BFC0136C = (psx_brA_BFC0136C == psx_brB_BFC0136C); + psx_taken_BFC0136C = (psx_brA_BFC0136C == psx_brB_BFC0136C); /* 0xBFC01370: AFB801F0 sw $t8, 496($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (496)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01370u); return; } g_debug_last_store_pc = 0xBFC01370u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC0136C) goto label_BFC01380; @@ -4944,7 +5161,7 @@ label_BFC01380: cpu->gpr[2] = cpu->gpr[17] & 0x30u; /* 0xBFC01384: 14400015 bne $v0, $zero, 0xBFC013DC */ uint32_t psx_brA_BFC01384 = cpu->gpr[2]; uint32_t psx_brB_BFC01384 = cpu->gpr[0]; - int psx_taken_BFC01384 = (psx_brA_BFC01384 != psx_brB_BFC01384); + psx_taken_BFC01384 = (psx_brA_BFC01384 != psx_brB_BFC01384); /* 0xBFC01388: AFA20068 sw $v0, 104($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (104)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01388u); return; } g_debug_last_store_pc = 0xBFC01388u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC01384) goto label_BFC013DC; @@ -4955,7 +5172,7 @@ label_BFC0138C: psx_check_interrupts(cpu); /* 0xBFC0138C: 12A00013 beq $s5, $zero, 0xBFC013DC */ uint32_t psx_brA_BFC0138C = cpu->gpr[21]; uint32_t psx_brB_BFC0138C = cpu->gpr[0]; - int psx_taken_BFC0138C = (psx_brA_BFC0138C == psx_brB_BFC0138C); + psx_taken_BFC0138C = (psx_brA_BFC0138C == psx_brB_BFC0138C); /* 0xBFC01390: 00000000 nop */ /* nop */ if (psx_taken_BFC0138C) goto label_BFC013DC; @@ -4972,7 +5189,7 @@ label_BFC01394: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[21] ? 1 : 0); /* 0xBFC013A0: 1020000E beq $at, $zero, 0xBFC013DC */ uint32_t psx_brA_BFC013A0 = cpu->gpr[1]; uint32_t psx_brB_BFC013A0 = cpu->gpr[0]; - int psx_taken_BFC013A0 = (psx_brA_BFC013A0 == psx_brB_BFC013A0); + psx_taken_BFC013A0 = (psx_brA_BFC013A0 == psx_brB_BFC013A0); /* 0xBFC013A4: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC013A0) goto label_BFC013DC; @@ -5011,7 +5228,7 @@ label_BFC013B0: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (43)); /* 0xBFC013D4: 1420FFF4 bne $at, $zero, 0xBFC013A8 */ uint32_t psx_brA_BFC013D4 = cpu->gpr[1]; uint32_t psx_brB_BFC013D4 = cpu->gpr[0]; - int psx_taken_BFC013D4 = (psx_brA_BFC013D4 != psx_brB_BFC013D4); + psx_taken_BFC013D4 = (psx_brA_BFC013D4 != psx_brB_BFC013D4); /* 0xBFC013D8: 241F0030 addiu $ra, $zero, 48 */ cpu->gpr[31] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); if (psx_taken_BFC013D4) goto label_BFC013A8; @@ -5022,7 +5239,7 @@ label_BFC013DC: psx_check_interrupts(cpu); /* 0xBFC013DC: 1280000C beq $s4, $zero, 0xBFC01410 */ uint32_t psx_brA_BFC013DC = cpu->gpr[20]; uint32_t psx_brB_BFC013DC = cpu->gpr[0]; - int psx_taken_BFC013DC = (psx_brA_BFC013DC == psx_brB_BFC013DC); + psx_taken_BFC013DC = (psx_brA_BFC013DC == psx_brB_BFC013DC); /* 0xBFC013E0: 8FAF006C lw $t7, 108($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (108)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC013E0u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC013DC) goto label_BFC01410; @@ -5068,7 +5285,7 @@ label_BFC01410: /* nop */ /* 0xBFC01414: 11E00016 beq $t7, $zero, 0xBFC01470 */ uint32_t psx_brA_BFC01414 = cpu->gpr[15]; uint32_t psx_brB_BFC01414 = cpu->gpr[0]; - int psx_taken_BFC01414 = (psx_brA_BFC01414 == psx_brB_BFC01414); + psx_taken_BFC01414 = (psx_brA_BFC01414 == psx_brB_BFC01414); /* 0xBFC01418: 8FB90068 lw $t9, 104($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (104)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01418u); return; } cpu->gpr[25] = cpu->read_word(psx_addr); } if (psx_taken_BFC01414) goto label_BFC01470; @@ -5140,7 +5357,7 @@ label_BFC01470: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (32)); /* 0xBFC01474: 17210014 bne $t9, $at, 0xBFC014C8 */ uint32_t psx_brA_BFC01474 = cpu->gpr[25]; uint32_t psx_brB_BFC01474 = cpu->gpr[1]; - int psx_taken_BFC01474 = (psx_brA_BFC01474 != psx_brB_BFC01474); + psx_taken_BFC01474 = (psx_brA_BFC01474 != psx_brB_BFC01474); /* 0xBFC01478: 8FB80200 lw $t8, 512($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (512)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01478u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC01474) goto label_BFC014C8; @@ -5157,7 +5374,7 @@ label_BFC0147C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[21] ? 1 : 0); /* 0xBFC01488: 1020000E beq $at, $zero, 0xBFC014C4 */ uint32_t psx_brA_BFC01488 = cpu->gpr[1]; uint32_t psx_brB_BFC01488 = cpu->gpr[0]; - int psx_taken_BFC01488 = (psx_brA_BFC01488 == psx_brB_BFC01488); + psx_taken_BFC01488 = (psx_brA_BFC01488 == psx_brB_BFC01488); /* 0xBFC0148C: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC01488) goto label_BFC014C4; @@ -5196,7 +5413,7 @@ label_BFC01498: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (43)); /* 0xBFC014BC: 1420FFF4 bne $at, $zero, 0xBFC01490 */ uint32_t psx_brA_BFC014BC = cpu->gpr[1]; uint32_t psx_brB_BFC014BC = cpu->gpr[0]; - int psx_taken_BFC014BC = (psx_brA_BFC014BC != psx_brB_BFC014BC); + psx_taken_BFC014BC = (psx_brA_BFC014BC != psx_brB_BFC014BC); /* 0xBFC014C0: 241F0030 addiu $ra, $zero, 48 */ cpu->gpr[31] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); if (psx_taken_BFC014BC) goto label_BFC01490; @@ -5220,7 +5437,7 @@ label_BFC014C8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[24] < (int32_t)cpu->gpr[14] ? 1 : 0); /* 0xBFC014D4: 10200010 beq $at, $zero, 0xBFC01518 */ uint32_t psx_brA_BFC014D4 = cpu->gpr[1]; uint32_t psx_brB_BFC014D4 = cpu->gpr[0]; - int psx_taken_BFC014D4 = (psx_brA_BFC014D4 == psx_brB_BFC014D4); + psx_taken_BFC014D4 = (psx_brA_BFC014D4 == psx_brB_BFC014D4); /* 0xBFC014D8: 8FB90064 lw $t9, 100($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (100)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC014D8u); return; } cpu->gpr[25] = cpu->read_word(psx_addr); } if (psx_taken_BFC014D4) goto label_BFC01518; @@ -5261,7 +5478,7 @@ label_BFC014E4: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (43)); /* 0xBFC0150C: 1420FFF3 bne $at, $zero, 0xBFC014DC */ uint32_t psx_brA_BFC0150C = cpu->gpr[1]; uint32_t psx_brB_BFC0150C = cpu->gpr[0]; - int psx_taken_BFC0150C = (psx_brA_BFC0150C != psx_brB_BFC0150C); + psx_taken_BFC0150C = (psx_brA_BFC0150C != psx_brB_BFC0150C); /* 0xBFC01510: 241F0030 addiu $ra, $zero, 48 */ cpu->gpr[31] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); if (psx_taken_BFC0150C) goto label_BFC014DC; @@ -5281,7 +5498,7 @@ label_BFC01518: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[23] + (-1)); /* 0xBFC0151C: 1B20000E blez $t9, 0xBFC01558 */ uint32_t psx_brA_BFC0151C = cpu->gpr[25]; - int psx_taken_BFC0151C = ((int32_t)psx_brA_BFC0151C <= 0); + psx_taken_BFC0151C = ((int32_t)psx_brA_BFC0151C <= 0); /* 0xBFC01520: 00000000 nop */ /* nop */ if (psx_taken_BFC0151C) goto label_BFC01558; @@ -5320,7 +5537,7 @@ label_BFC01530: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (43)); /* 0xBFC01550: 0601FFF4 bgez $s0, 0xBFC01524 */ uint32_t psx_brA_BFC01550 = cpu->gpr[16]; - int psx_taken_BFC01550 = ((int32_t)psx_brA_BFC01550 >= 0); + psx_taken_BFC01550 = ((int32_t)psx_brA_BFC01550 >= 0); /* 0xBFC01554: 241F0030 addiu $ra, $zero, 48 */ cpu->gpr[31] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); if (psx_taken_BFC01550) goto label_BFC01524; @@ -5333,7 +5550,7 @@ label_BFC01558: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC0155C: 0600000E bltz $s0, 0xBFC01598 */ uint32_t psx_brA_BFC0155C = cpu->gpr[16]; - int psx_taken_BFC0155C = ((int32_t)psx_brA_BFC0155C < 0); + psx_taken_BFC0155C = ((int32_t)psx_brA_BFC0155C < 0); /* 0xBFC01560: 32380010 andi $t8, $s1, 0x10 */ cpu->gpr[24] = cpu->gpr[17] & 0x10u; if (psx_taken_BFC0155C) goto label_BFC01598; @@ -5370,7 +5587,7 @@ label_BFC0156C: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (43)); /* 0xBFC0158C: 0601FFF5 bgez $s0, 0xBFC01564 */ uint32_t psx_brA_BFC0158C = cpu->gpr[16]; - int psx_taken_BFC0158C = ((int32_t)psx_brA_BFC0158C >= 0); + psx_taken_BFC0158C = ((int32_t)psx_brA_BFC0158C >= 0); /* 0xBFC01590: 241F0030 addiu $ra, $zero, 48 */ cpu->gpr[31] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); if (psx_taken_BFC0158C) goto label_BFC01564; @@ -5388,7 +5605,7 @@ label_BFC01598: psx_check_interrupts(cpu); /* 0xBFC01598: 13000014 beq $t8, $zero, 0xBFC015EC */ uint32_t psx_brA_BFC01598 = cpu->gpr[24]; uint32_t psx_brB_BFC01598 = cpu->gpr[0]; - int psx_taken_BFC01598 = (psx_brA_BFC01598 == psx_brB_BFC01598); + psx_taken_BFC01598 = (psx_brA_BFC01598 == psx_brB_BFC01598); /* 0xBFC0159C: 8FAF01F0 lw $t7, 496($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (496)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0159Cu); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC01598) goto label_BFC015EC; @@ -5405,7 +5622,7 @@ label_BFC015A0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (int32_t)cpu->gpr[21] ? 1 : 0); /* 0xBFC015AC: 1020000E beq $at, $zero, 0xBFC015E8 */ uint32_t psx_brA_BFC015AC = cpu->gpr[1]; uint32_t psx_brB_BFC015AC = cpu->gpr[0]; - int psx_taken_BFC015AC = (psx_brA_BFC015AC == psx_brB_BFC015AC); + psx_taken_BFC015AC = (psx_brA_BFC015AC == psx_brB_BFC015AC); /* 0xBFC015B0: 01C08021 addu $s0, $t6, $zero */ cpu->gpr[16] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC015AC) goto label_BFC015E8; @@ -5444,7 +5661,7 @@ label_BFC015BC: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (43)); /* 0xBFC015E0: 1420FFF4 bne $at, $zero, 0xBFC015B4 */ uint32_t psx_brA_BFC015E0 = cpu->gpr[1]; uint32_t psx_brB_BFC015E0 = cpu->gpr[0]; - int psx_taken_BFC015E0 = (psx_brA_BFC015E0 != psx_brB_BFC015E0); + psx_taken_BFC015E0 = (psx_brA_BFC015E0 != psx_brB_BFC015E0); /* 0xBFC015E4: 241F0030 addiu $ra, $zero, 48 */ cpu->gpr[31] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); if (psx_taken_BFC015E0) goto label_BFC015B4; @@ -5466,7 +5683,7 @@ label_BFC015EC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[15] < (int32_t)cpu->gpr[21] ? 1 : 0); /* 0xBFC015F4: 10200004 beq $at, $zero, 0xBFC01608 */ uint32_t psx_brA_BFC015F4 = cpu->gpr[1]; uint32_t psx_brB_BFC015F4 = cpu->gpr[0]; - int psx_taken_BFC015F4 = (psx_brA_BFC015F4 == psx_brB_BFC015F4); + psx_taken_BFC015F4 = (psx_brA_BFC015F4 == psx_brB_BFC015F4); /* 0xBFC015F8: 8FA201F0 lw $v0, 496($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (496)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC015F8u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC015F4) goto label_BFC01608; @@ -5477,7 +5694,7 @@ label_BFC015FC: psx_check_interrupts(cpu); /* 0xBFC015FC: 10000003 beq $zero, $zero, 0xBFC0160C */ uint32_t psx_brA_BFC015FC = cpu->gpr[0]; uint32_t psx_brB_BFC015FC = cpu->gpr[0]; - int psx_taken_BFC015FC = (psx_brA_BFC015FC == psx_brB_BFC015FC); + psx_taken_BFC015FC = (psx_brA_BFC015FC == psx_brB_BFC015FC); /* 0xBFC01600: 02A01021 addu $v0, $s5, $zero */ cpu->gpr[2] = cpu->gpr[21] + cpu->gpr[0]; if (psx_taken_BFC015FC) goto label_BFC0160C; @@ -5508,7 +5725,7 @@ label_BFC0160C: cpu->gpr[24] = cpu->gpr[25] + cpu->gpr[2]; /* 0xBFC01618: 100000AA beq $zero, $zero, 0xBFC018C4 */ uint32_t psx_brA_BFC01618 = cpu->gpr[0]; uint32_t psx_brB_BFC01618 = cpu->gpr[0]; - int psx_taken_BFC01618 = (psx_brA_BFC01618 == psx_brB_BFC01618); + psx_taken_BFC01618 = (psx_brA_BFC01618 == psx_brB_BFC01618); /* 0xBFC0161C: AFB80224 sw $t8, 548($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (548)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0161Cu); return; } g_debug_last_store_pc = 0xBFC0161Cu; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC01618) goto label_BFC018C4; @@ -5542,7 +5759,7 @@ label_BFC01624: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01640u); return; } cpu->gpr[30] = cpu->read_word(psx_addr); } /* 0xBFC01644: 100000A2 beq $zero, $zero, 0xBFC018D0 */ uint32_t psx_brA_BFC01644 = cpu->gpr[0]; uint32_t psx_brB_BFC01644 = cpu->gpr[0]; - int psx_taken_BFC01644 = (psx_brA_BFC01644 == psx_brB_BFC01644); + psx_taken_BFC01644 = (psx_brA_BFC01644 == psx_brB_BFC01644); /* 0xBFC01648: 8FBF003C lw $ra, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01648u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC01644) goto label_BFC018D0; @@ -5553,7 +5770,7 @@ label_BFC0164C: psx_check_interrupts(cpu); /* 0xBFC0164C: 1048FE71 beq $v0, $t0, 0xBFC01014 */ uint32_t psx_brA_BFC0164C = cpu->gpr[2]; uint32_t psx_brB_BFC0164C = cpu->gpr[8]; - int psx_taken_BFC0164C = (psx_brA_BFC0164C == psx_brB_BFC0164C); + psx_taken_BFC0164C = (psx_brA_BFC0164C == psx_brB_BFC0164C); /* 0xBFC01650: 2C410045 sltiu $at, $v0, 69 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000045u ? 1 : 0); if (psx_taken_BFC0164C) goto label_BFC01014; @@ -5564,7 +5781,7 @@ label_BFC01654: psx_check_interrupts(cpu); /* 0xBFC01654: 10200058 beq $at, $zero, 0xBFC017B8 */ uint32_t psx_brA_BFC01654 = cpu->gpr[1]; uint32_t psx_brB_BFC01654 = cpu->gpr[0]; - int psx_taken_BFC01654 = (psx_brA_BFC01654 == psx_brB_BFC01654); + psx_taken_BFC01654 = (psx_brA_BFC01654 == psx_brB_BFC01654); /* 0xBFC01658: 24010069 addiu $at, $zero, 105 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (105)); if (psx_taken_BFC01654) goto label_BFC017B8; @@ -5575,7 +5792,7 @@ label_BFC0165C: psx_check_interrupts(cpu); /* 0xBFC0165C: 1049FE4D beq $v0, $t1, 0xBFC00F94 */ uint32_t psx_brA_BFC0165C = cpu->gpr[2]; uint32_t psx_brB_BFC0165C = cpu->gpr[9]; - int psx_taken_BFC0165C = (psx_brA_BFC0165C == psx_brB_BFC0165C); + psx_taken_BFC0165C = (psx_brA_BFC0165C == psx_brB_BFC0165C); /* 0xBFC01660: 2C410033 sltiu $at, $v0, 51 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000033u ? 1 : 0); if (psx_taken_BFC0165C) goto label_BFC00F94; @@ -5586,7 +5803,7 @@ label_BFC01664: psx_check_interrupts(cpu); /* 0xBFC01664: 10200034 beq $at, $zero, 0xBFC01738 */ uint32_t psx_brA_BFC01664 = cpu->gpr[1]; uint32_t psx_brB_BFC01664 = cpu->gpr[0]; - int psx_taken_BFC01664 = (psx_brA_BFC01664 == psx_brB_BFC01664); + psx_taken_BFC01664 = (psx_brA_BFC01664 == psx_brB_BFC01664); /* 0xBFC01668: 24010036 addiu $at, $zero, 54 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (54)); if (psx_taken_BFC01664) goto label_BFC01738; @@ -5597,7 +5814,7 @@ label_BFC0166C: psx_check_interrupts(cpu); /* 0xBFC0166C: 104AFE1D beq $v0, $t2, 0xBFC00EE4 */ uint32_t psx_brA_BFC0166C = cpu->gpr[2]; uint32_t psx_brB_BFC0166C = cpu->gpr[10]; - int psx_taken_BFC0166C = (psx_brA_BFC0166C == psx_brB_BFC0166C); + psx_taken_BFC0166C = (psx_brA_BFC0166C == psx_brB_BFC0166C); /* 0xBFC01670: 2C41002E sltiu $at, $v0, 46 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000002Eu ? 1 : 0); if (psx_taken_BFC0166C) goto label_BFC00EE4; @@ -5608,7 +5825,7 @@ label_BFC01674: psx_check_interrupts(cpu); /* 0xBFC01674: 10200022 beq $at, $zero, 0xBFC01700 */ uint32_t psx_brA_BFC01674 = cpu->gpr[1]; uint32_t psx_brB_BFC01674 = cpu->gpr[0]; - int psx_taken_BFC01674 = (psx_brA_BFC01674 == psx_brB_BFC01674); + psx_taken_BFC01674 = (psx_brA_BFC01674 == psx_brB_BFC01674); /* 0xBFC01678: 00000000 nop */ /* nop */ if (psx_taken_BFC01674) goto label_BFC01700; @@ -5619,7 +5836,7 @@ label_BFC0167C: psx_check_interrupts(cpu); /* 0xBFC0167C: 1047FE14 beq $v0, $a3, 0xBFC00ED0 */ uint32_t psx_brA_BFC0167C = cpu->gpr[2]; uint32_t psx_brB_BFC0167C = cpu->gpr[7]; - int psx_taken_BFC0167C = (psx_brA_BFC0167C == psx_brB_BFC0167C); + psx_taken_BFC0167C = (psx_brA_BFC0167C == psx_brB_BFC0167C); /* 0xBFC01680: 2C41002B sltiu $at, $v0, 43 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000002Bu ? 1 : 0); if (psx_taken_BFC0167C) goto label_BFC00ED0; @@ -5630,7 +5847,7 @@ label_BFC01684: psx_check_interrupts(cpu); /* 0xBFC01684: 1020001A beq $at, $zero, 0xBFC016F0 */ uint32_t psx_brA_BFC01684 = cpu->gpr[1]; uint32_t psx_brB_BFC01684 = cpu->gpr[0]; - int psx_taken_BFC01684 = (psx_brA_BFC01684 == psx_brB_BFC01684); + psx_taken_BFC01684 = (psx_brA_BFC01684 == psx_brB_BFC01684); /* 0xBFC01688: 00000000 nop */ /* nop */ if (psx_taken_BFC01684) goto label_BFC016F0; @@ -5641,7 +5858,7 @@ label_BFC0168C: psx_check_interrupts(cpu); /* 0xBFC0168C: 104BFE0A beq $v0, $t3, 0xBFC00EB8 */ uint32_t psx_brA_BFC0168C = cpu->gpr[2]; uint32_t psx_brB_BFC0168C = cpu->gpr[11]; - int psx_taken_BFC0168C = (psx_brA_BFC0168C == psx_brB_BFC0168C); + psx_taken_BFC0168C = (psx_brA_BFC0168C == psx_brB_BFC0168C); /* 0xBFC01690: 2C410021 sltiu $at, $v0, 33 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000021u ? 1 : 0); if (psx_taken_BFC0168C) goto label_BFC00EB8; @@ -5652,7 +5869,7 @@ label_BFC01694: psx_check_interrupts(cpu); /* 0xBFC01694: 10200005 beq $at, $zero, 0xBFC016AC */ uint32_t psx_brA_BFC01694 = cpu->gpr[1]; uint32_t psx_brB_BFC01694 = cpu->gpr[0]; - int psx_taken_BFC01694 = (psx_brA_BFC01694 == psx_brB_BFC01694); + psx_taken_BFC01694 = (psx_brA_BFC01694 == psx_brB_BFC01694); /* 0xBFC01698: 00000000 nop */ /* nop */ if (psx_taken_BFC01694) goto label_BFC016AC; @@ -5663,7 +5880,7 @@ label_BFC0169C: psx_check_interrupts(cpu); /* 0xBFC0169C: 1040FFE1 beq $v0, $zero, 0xBFC01624 */ uint32_t psx_brA_BFC0169C = cpu->gpr[2]; uint32_t psx_brB_BFC0169C = cpu->gpr[0]; - int psx_taken_BFC0169C = (psx_brA_BFC0169C == psx_brB_BFC0169C); + psx_taken_BFC0169C = (psx_brA_BFC0169C == psx_brB_BFC0169C); /* 0xBFC016A0: 8FA20224 lw $v0, 548($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (548)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC016A0u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC0169C) goto label_BFC01624; @@ -5674,7 +5891,7 @@ label_BFC016A4: psx_check_interrupts(cpu); /* 0xBFC016A4: 10000004 beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC016A4 = cpu->gpr[0]; uint32_t psx_brB_BFC016A4 = cpu->gpr[0]; - int psx_taken_BFC016A4 = (psx_brA_BFC016A4 == psx_brB_BFC016A4); + psx_taken_BFC016A4 = (psx_brA_BFC016A4 == psx_brB_BFC016A4); /* 0xBFC016A8: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC016A4) goto label_BFC016B8; @@ -5685,7 +5902,7 @@ label_BFC016AC: psx_check_interrupts(cpu); /* 0xBFC016AC: 104CFE06 beq $v0, $t4, 0xBFC00EC8 */ uint32_t psx_brA_BFC016AC = cpu->gpr[2]; uint32_t psx_brB_BFC016AC = cpu->gpr[12]; - int psx_taken_BFC016AC = (psx_brA_BFC016AC == psx_brB_BFC016AC); + psx_taken_BFC016AC = (psx_brA_BFC016AC == psx_brB_BFC016AC); /* 0xBFC016B0: 00000000 nop */ /* nop */ if (psx_taken_BFC016AC) goto label_BFC00EC8; @@ -5733,7 +5950,7 @@ label_BFC016C0: cpu->gpr[31] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); /* 0xBFC016E8: 10000076 beq $zero, $zero, 0xBFC018C4 */ uint32_t psx_brA_BFC016E8 = cpu->gpr[0]; uint32_t psx_brB_BFC016E8 = cpu->gpr[0]; - int psx_taken_BFC016E8 = (psx_brA_BFC016E8 == psx_brB_BFC016E8); + psx_taken_BFC016E8 = (psx_brA_BFC016E8 == psx_brB_BFC016E8); /* 0xBFC016EC: AFAF0224 sw $t7, 548($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (548)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC016ECu); return; } g_debug_last_store_pc = 0xBFC016ECu; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC016E8) goto label_BFC018C4; @@ -5744,7 +5961,7 @@ label_BFC016F0: psx_check_interrupts(cpu); /* 0xBFC016F0: 104DFDFE beq $v0, $t5, 0xBFC00EEC */ uint32_t psx_brA_BFC016F0 = cpu->gpr[2]; uint32_t psx_brB_BFC016F0 = cpu->gpr[13]; - int psx_taken_BFC016F0 = (psx_brA_BFC016F0 == psx_brB_BFC016F0); + psx_taken_BFC016F0 = (psx_brA_BFC016F0 == psx_brB_BFC016F0); /* 0xBFC016F4: 00000000 nop */ /* nop */ if (psx_taken_BFC016F0) goto label_BFC00EEC; @@ -5755,7 +5972,7 @@ label_BFC016F8: psx_check_interrupts(cpu); /* 0xBFC016F8: 1000FFEF beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC016F8 = cpu->gpr[0]; uint32_t psx_brB_BFC016F8 = cpu->gpr[0]; - int psx_taken_BFC016F8 = (psx_brA_BFC016F8 == psx_brB_BFC016F8); + psx_taken_BFC016F8 = (psx_brA_BFC016F8 == psx_brB_BFC016F8); /* 0xBFC016FC: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC016F8) goto label_BFC016B8; @@ -5766,7 +5983,7 @@ label_BFC01700: psx_check_interrupts(cpu); /* 0xBFC01700: 105FFE22 beq $v0, $ra, 0xBFC00F8C */ uint32_t psx_brA_BFC01700 = cpu->gpr[2]; uint32_t psx_brB_BFC01700 = cpu->gpr[31]; - int psx_taken_BFC01700 = (psx_brA_BFC01700 == psx_brB_BFC01700); + psx_taken_BFC01700 = (psx_brA_BFC01700 == psx_brB_BFC01700); /* 0xBFC01704: 2C410031 sltiu $at, $v0, 49 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000031u ? 1 : 0); if (psx_taken_BFC01700) goto label_BFC00F8C; @@ -5777,7 +5994,7 @@ label_BFC01708: psx_check_interrupts(cpu); /* 0xBFC01708: 10200005 beq $at, $zero, 0xBFC01720 */ uint32_t psx_brA_BFC01708 = cpu->gpr[1]; uint32_t psx_brB_BFC01708 = cpu->gpr[0]; - int psx_taken_BFC01708 = (psx_brA_BFC01708 == psx_brB_BFC01708); + psx_taken_BFC01708 = (psx_brA_BFC01708 == psx_brB_BFC01708); /* 0xBFC0170C: 2401002E addiu $at, $zero, 46 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (46)); if (psx_taken_BFC01708) goto label_BFC01720; @@ -5788,7 +6005,7 @@ label_BFC01710: psx_check_interrupts(cpu); /* 0xBFC01710: 1041FDF8 beq $v0, $at, 0xBFC00EF4 */ uint32_t psx_brA_BFC01710 = cpu->gpr[2]; uint32_t psx_brB_BFC01710 = cpu->gpr[1]; - int psx_taken_BFC01710 = (psx_brA_BFC01710 == psx_brB_BFC01710); + psx_taken_BFC01710 = (psx_brA_BFC01710 == psx_brB_BFC01710); /* 0xBFC01714: 00000000 nop */ /* nop */ if (psx_taken_BFC01710) goto label_BFC00EF4; @@ -5799,7 +6016,7 @@ label_BFC01718: psx_check_interrupts(cpu); /* 0xBFC01718: 1000FFE7 beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC01718 = cpu->gpr[0]; uint32_t psx_brB_BFC01718 = cpu->gpr[0]; - int psx_taken_BFC01718 = (psx_brA_BFC01718 == psx_brB_BFC01718); + psx_taken_BFC01718 = (psx_brA_BFC01718 == psx_brB_BFC01718); /* 0xBFC0171C: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC01718) goto label_BFC016B8; @@ -5812,7 +6029,7 @@ label_BFC01720: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (49)); /* 0xBFC01724: 1041FE1C beq $v0, $at, 0xBFC00F98 */ uint32_t psx_brA_BFC01724 = cpu->gpr[2]; uint32_t psx_brB_BFC01724 = cpu->gpr[1]; - int psx_taken_BFC01724 = (psx_brA_BFC01724 == psx_brB_BFC01724); + psx_taken_BFC01724 = (psx_brA_BFC01724 == psx_brB_BFC01724); /* 0xBFC01728: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC01724) goto label_BFC00F98; @@ -5823,7 +6040,7 @@ label_BFC0172C: psx_check_interrupts(cpu); /* 0xBFC0172C: 1000FFE2 beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC0172C = cpu->gpr[0]; uint32_t psx_brB_BFC0172C = cpu->gpr[0]; - int psx_taken_BFC0172C = (psx_brA_BFC0172C == psx_brB_BFC0172C); + psx_taken_BFC0172C = (psx_brA_BFC0172C == psx_brB_BFC0172C); /* 0xBFC01730: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC0172C) goto label_BFC016B8; @@ -5841,7 +6058,7 @@ label_BFC01738: psx_check_interrupts(cpu); /* 0xBFC01738: 1041FE16 beq $v0, $at, 0xBFC00F94 */ uint32_t psx_brA_BFC01738 = cpu->gpr[2]; uint32_t psx_brB_BFC01738 = cpu->gpr[1]; - int psx_taken_BFC01738 = (psx_brA_BFC01738 == psx_brB_BFC01738); + psx_taken_BFC01738 = (psx_brA_BFC01738 == psx_brB_BFC01738); /* 0xBFC0173C: 2C410037 sltiu $at, $v0, 55 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000037u ? 1 : 0); if (psx_taken_BFC01738) goto label_BFC00F94; @@ -5852,7 +6069,7 @@ label_BFC01740: psx_check_interrupts(cpu); /* 0xBFC01740: 1020000E beq $at, $zero, 0xBFC0177C */ uint32_t psx_brA_BFC01740 = cpu->gpr[1]; uint32_t psx_brB_BFC01740 = cpu->gpr[0]; - int psx_taken_BFC01740 = (psx_brA_BFC01740 == psx_brB_BFC01740); + psx_taken_BFC01740 = (psx_brA_BFC01740 == psx_brB_BFC01740); /* 0xBFC01744: 24010034 addiu $at, $zero, 52 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC01740) goto label_BFC0177C; @@ -5863,7 +6080,7 @@ label_BFC01748: psx_check_interrupts(cpu); /* 0xBFC01748: 1041FE12 beq $v0, $at, 0xBFC00F94 */ uint32_t psx_brA_BFC01748 = cpu->gpr[2]; uint32_t psx_brB_BFC01748 = cpu->gpr[1]; - int psx_taken_BFC01748 = (psx_brA_BFC01748 == psx_brB_BFC01748); + psx_taken_BFC01748 = (psx_brA_BFC01748 == psx_brB_BFC01748); /* 0xBFC0174C: 2C410035 sltiu $at, $v0, 53 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000035u ? 1 : 0); if (psx_taken_BFC01748) goto label_BFC00F94; @@ -5874,7 +6091,7 @@ label_BFC01750: psx_check_interrupts(cpu); /* 0xBFC01750: 10200005 beq $at, $zero, 0xBFC01768 */ uint32_t psx_brA_BFC01750 = cpu->gpr[1]; uint32_t psx_brB_BFC01750 = cpu->gpr[0]; - int psx_taken_BFC01750 = (psx_brA_BFC01750 == psx_brB_BFC01750); + psx_taken_BFC01750 = (psx_brA_BFC01750 == psx_brB_BFC01750); /* 0xBFC01754: 24010033 addiu $at, $zero, 51 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); if (psx_taken_BFC01750) goto label_BFC01768; @@ -5885,7 +6102,7 @@ label_BFC01758: psx_check_interrupts(cpu); /* 0xBFC01758: 1041FE0F beq $v0, $at, 0xBFC00F98 */ uint32_t psx_brA_BFC01758 = cpu->gpr[2]; uint32_t psx_brB_BFC01758 = cpu->gpr[1]; - int psx_taken_BFC01758 = (psx_brA_BFC01758 == psx_brB_BFC01758); + psx_taken_BFC01758 = (psx_brA_BFC01758 == psx_brB_BFC01758); /* 0xBFC0175C: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC01758) goto label_BFC00F98; @@ -5896,7 +6113,7 @@ label_BFC01760: psx_check_interrupts(cpu); /* 0xBFC01760: 1000FFD5 beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC01760 = cpu->gpr[0]; uint32_t psx_brB_BFC01760 = cpu->gpr[0]; - int psx_taken_BFC01760 = (psx_brA_BFC01760 == psx_brB_BFC01760); + psx_taken_BFC01760 = (psx_brA_BFC01760 == psx_brB_BFC01760); /* 0xBFC01764: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC01760) goto label_BFC016B8; @@ -5909,7 +6126,7 @@ label_BFC01768: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (53)); /* 0xBFC0176C: 1041FE0A beq $v0, $at, 0xBFC00F98 */ uint32_t psx_brA_BFC0176C = cpu->gpr[2]; uint32_t psx_brB_BFC0176C = cpu->gpr[1]; - int psx_taken_BFC0176C = (psx_brA_BFC0176C == psx_brB_BFC0176C); + psx_taken_BFC0176C = (psx_brA_BFC0176C == psx_brB_BFC0176C); /* 0xBFC01770: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0176C) goto label_BFC00F98; @@ -5920,7 +6137,7 @@ label_BFC01774: psx_check_interrupts(cpu); /* 0xBFC01774: 1000FFD0 beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC01774 = cpu->gpr[0]; uint32_t psx_brB_BFC01774 = cpu->gpr[0]; - int psx_taken_BFC01774 = (psx_brA_BFC01774 == psx_brB_BFC01774); + psx_taken_BFC01774 = (psx_brA_BFC01774 == psx_brB_BFC01774); /* 0xBFC01778: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC01774) goto label_BFC016B8; @@ -5933,7 +6150,7 @@ label_BFC0177C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (56)); /* 0xBFC01780: 1041FE04 beq $v0, $at, 0xBFC00F94 */ uint32_t psx_brA_BFC01780 = cpu->gpr[2]; uint32_t psx_brB_BFC01780 = cpu->gpr[1]; - int psx_taken_BFC01780 = (psx_brA_BFC01780 == psx_brB_BFC01780); + psx_taken_BFC01780 = (psx_brA_BFC01780 == psx_brB_BFC01780); /* 0xBFC01784: 2C410039 sltiu $at, $v0, 57 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000039u ? 1 : 0); if (psx_taken_BFC01780) goto label_BFC00F94; @@ -5944,7 +6161,7 @@ label_BFC01788: psx_check_interrupts(cpu); /* 0xBFC01788: 10200005 beq $at, $zero, 0xBFC017A0 */ uint32_t psx_brA_BFC01788 = cpu->gpr[1]; uint32_t psx_brB_BFC01788 = cpu->gpr[0]; - int psx_taken_BFC01788 = (psx_brA_BFC01788 == psx_brB_BFC01788); + psx_taken_BFC01788 = (psx_brA_BFC01788 == psx_brB_BFC01788); /* 0xBFC0178C: 24010037 addiu $at, $zero, 55 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (55)); if (psx_taken_BFC01788) goto label_BFC017A0; @@ -5955,7 +6172,7 @@ label_BFC01790: psx_check_interrupts(cpu); /* 0xBFC01790: 1041FE01 beq $v0, $at, 0xBFC00F98 */ uint32_t psx_brA_BFC01790 = cpu->gpr[2]; uint32_t psx_brB_BFC01790 = cpu->gpr[1]; - int psx_taken_BFC01790 = (psx_brA_BFC01790 == psx_brB_BFC01790); + psx_taken_BFC01790 = (psx_brA_BFC01790 == psx_brB_BFC01790); /* 0xBFC01794: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC01790) goto label_BFC00F98; @@ -5966,7 +6183,7 @@ label_BFC01798: psx_check_interrupts(cpu); /* 0xBFC01798: 1000FFC7 beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC01798 = cpu->gpr[0]; uint32_t psx_brB_BFC01798 = cpu->gpr[0]; - int psx_taken_BFC01798 = (psx_brA_BFC01798 == psx_brB_BFC01798); + psx_taken_BFC01798 = (psx_brA_BFC01798 == psx_brB_BFC01798); /* 0xBFC0179C: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC01798) goto label_BFC016B8; @@ -5979,7 +6196,7 @@ label_BFC017A0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (57)); /* 0xBFC017A4: 1041FDFC beq $v0, $at, 0xBFC00F98 */ uint32_t psx_brA_BFC017A4 = cpu->gpr[2]; uint32_t psx_brB_BFC017A4 = cpu->gpr[1]; - int psx_taken_BFC017A4 = (psx_brA_BFC017A4 == psx_brB_BFC017A4); + psx_taken_BFC017A4 = (psx_brA_BFC017A4 == psx_brB_BFC017A4); /* 0xBFC017A8: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC017A4) goto label_BFC00F98; @@ -5990,7 +6207,7 @@ label_BFC017AC: psx_check_interrupts(cpu); /* 0xBFC017AC: 1000FFC2 beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC017AC = cpu->gpr[0]; uint32_t psx_brB_BFC017AC = cpu->gpr[0]; - int psx_taken_BFC017AC = (psx_brA_BFC017AC == psx_brB_BFC017AC); + psx_taken_BFC017AC = (psx_brA_BFC017AC == psx_brB_BFC017AC); /* 0xBFC017B0: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC017AC) goto label_BFC016B8; @@ -6008,7 +6225,7 @@ label_BFC017B8: psx_check_interrupts(cpu); /* 0xBFC017B8: 1041FE17 beq $v0, $at, 0xBFC01018 */ uint32_t psx_brA_BFC017B8 = cpu->gpr[2]; uint32_t psx_brB_BFC017B8 = cpu->gpr[1]; - int psx_taken_BFC017B8 = (psx_brA_BFC017B8 == psx_brB_BFC017B8); + psx_taken_BFC017B8 = (psx_brA_BFC017B8 == psx_brB_BFC017B8); /* 0xBFC017BC: 2C41006A sltiu $at, $v0, 106 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000006Au ? 1 : 0); if (psx_taken_BFC017B8) goto label_BFC01018; @@ -6019,7 +6236,7 @@ label_BFC017C0: psx_check_interrupts(cpu); /* 0xBFC017C0: 10200020 beq $at, $zero, 0xBFC01844 */ uint32_t psx_brA_BFC017C0 = cpu->gpr[1]; uint32_t psx_brB_BFC017C0 = cpu->gpr[0]; - int psx_taken_BFC017C0 = (psx_brA_BFC017C0 == psx_brB_BFC017C0); + psx_taken_BFC017C0 = (psx_brA_BFC017C0 == psx_brB_BFC017C0); /* 0xBFC017C4: 24010058 addiu $at, $zero, 88 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (88)); if (psx_taken_BFC017C0) goto label_BFC01844; @@ -6030,7 +6247,7 @@ label_BFC017C8: psx_check_interrupts(cpu); /* 0xBFC017C8: 1041FE93 beq $v0, $at, 0xBFC01218 */ uint32_t psx_brA_BFC017C8 = cpu->gpr[2]; uint32_t psx_brB_BFC017C8 = cpu->gpr[1]; - int psx_taken_BFC017C8 = (psx_brA_BFC017C8 == psx_brB_BFC017C8); + psx_taken_BFC017C8 = (psx_brA_BFC017C8 == psx_brB_BFC017C8); /* 0xBFC017CC: 2C410059 sltiu $at, $v0, 89 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000059u ? 1 : 0); if (psx_taken_BFC017C8) goto label_BFC01218; @@ -6041,7 +6258,7 @@ label_BFC017D0: psx_check_interrupts(cpu); /* 0xBFC017D0: 1020000E beq $at, $zero, 0xBFC0180C */ uint32_t psx_brA_BFC017D0 = cpu->gpr[1]; uint32_t psx_brB_BFC017D0 = cpu->gpr[0]; - int psx_taken_BFC017D0 = (psx_brA_BFC017D0 == psx_brB_BFC017D0); + psx_taken_BFC017D0 = (psx_brA_BFC017D0 == psx_brB_BFC017D0); /* 0xBFC017D4: 2401004F addiu $at, $zero, 79 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (79)); if (psx_taken_BFC017D0) goto label_BFC0180C; @@ -6052,7 +6269,7 @@ label_BFC017D8: psx_check_interrupts(cpu); /* 0xBFC017D8: 1041FE39 beq $v0, $at, 0xBFC010C0 */ uint32_t psx_brA_BFC017D8 = cpu->gpr[2]; uint32_t psx_brB_BFC017D8 = cpu->gpr[1]; - int psx_taken_BFC017D8 = (psx_brA_BFC017D8 == psx_brB_BFC017D8); + psx_taken_BFC017D8 = (psx_brA_BFC017D8 == psx_brB_BFC017D8); /* 0xBFC017DC: 2C410050 sltiu $at, $v0, 80 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000050u ? 1 : 0); if (psx_taken_BFC017D8) goto label_BFC010C0; @@ -6063,7 +6280,7 @@ label_BFC017E0: psx_check_interrupts(cpu); /* 0xBFC017E0: 10200005 beq $at, $zero, 0xBFC017F8 */ uint32_t psx_brA_BFC017E0 = cpu->gpr[1]; uint32_t psx_brB_BFC017E0 = cpu->gpr[0]; - int psx_taken_BFC017E0 = (psx_brA_BFC017E0 == psx_brB_BFC017E0); + psx_taken_BFC017E0 = (psx_brA_BFC017E0 == psx_brB_BFC017E0); /* 0xBFC017E4: 2401004C addiu $at, $zero, 76 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (76)); if (psx_taken_BFC017E0) goto label_BFC017F8; @@ -6074,7 +6291,7 @@ label_BFC017E8: psx_check_interrupts(cpu); /* 0xBFC017E8: 1041FDFD beq $v0, $at, 0xBFC00FE0 */ uint32_t psx_brA_BFC017E8 = cpu->gpr[2]; uint32_t psx_brB_BFC017E8 = cpu->gpr[1]; - int psx_taken_BFC017E8 = (psx_brA_BFC017E8 == psx_brB_BFC017E8); + psx_taken_BFC017E8 = (psx_brA_BFC017E8 == psx_brB_BFC017E8); /* 0xBFC017EC: 00000000 nop */ /* nop */ if (psx_taken_BFC017E8) goto label_BFC00FE0; @@ -6085,7 +6302,7 @@ label_BFC017F0: psx_check_interrupts(cpu); /* 0xBFC017F0: 1000FFB1 beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC017F0 = cpu->gpr[0]; uint32_t psx_brB_BFC017F0 = cpu->gpr[0]; - int psx_taken_BFC017F0 = (psx_brA_BFC017F0 == psx_brB_BFC017F0); + psx_taken_BFC017F0 = (psx_brA_BFC017F0 == psx_brB_BFC017F0); /* 0xBFC017F4: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC017F0) goto label_BFC016B8; @@ -6098,7 +6315,7 @@ label_BFC017F8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (85)); /* 0xBFC017FC: 1041FE74 beq $v0, $at, 0xBFC011D0 */ uint32_t psx_brA_BFC017FC = cpu->gpr[2]; uint32_t psx_brB_BFC017FC = cpu->gpr[1]; - int psx_taken_BFC017FC = (psx_brA_BFC017FC == psx_brB_BFC017FC); + psx_taken_BFC017FC = (psx_brA_BFC017FC == psx_brB_BFC017FC); /* 0xBFC01800: 36310001 ori $s1, $s1, 0x1 */ cpu->gpr[17] = cpu->gpr[17] | 0x1u; if (psx_taken_BFC017FC) goto label_BFC011D0; @@ -6109,7 +6326,7 @@ label_BFC01804: psx_check_interrupts(cpu); /* 0xBFC01804: 1000FFAC beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC01804 = cpu->gpr[0]; uint32_t psx_brB_BFC01804 = cpu->gpr[0]; - int psx_taken_BFC01804 = (psx_brA_BFC01804 == psx_brB_BFC01804); + psx_taken_BFC01804 = (psx_brA_BFC01804 == psx_brB_BFC01804); /* 0xBFC01808: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC01804) goto label_BFC016B8; @@ -6122,7 +6339,7 @@ label_BFC0180C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (100)); /* 0xBFC01810: 1041FE01 beq $v0, $at, 0xBFC01018 */ uint32_t psx_brA_BFC01810 = cpu->gpr[2]; uint32_t psx_brB_BFC01810 = cpu->gpr[1]; - int psx_taken_BFC01810 = (psx_brA_BFC01810 == psx_brB_BFC01810); + psx_taken_BFC01810 = (psx_brA_BFC01810 == psx_brB_BFC01810); /* 0xBFC01814: 2C410065 sltiu $at, $v0, 101 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000065u ? 1 : 0); if (psx_taken_BFC01810) goto label_BFC01018; @@ -6133,7 +6350,7 @@ label_BFC01818: psx_check_interrupts(cpu); /* 0xBFC01818: 10200005 beq $at, $zero, 0xBFC01830 */ uint32_t psx_brA_BFC01818 = cpu->gpr[1]; uint32_t psx_brB_BFC01818 = cpu->gpr[0]; - int psx_taken_BFC01818 = (psx_brA_BFC01818 == psx_brB_BFC01818); + psx_taken_BFC01818 = (psx_brA_BFC01818 == psx_brB_BFC01818); /* 0xBFC0181C: 24010063 addiu $at, $zero, 99 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (99)); if (psx_taken_BFC01818) goto label_BFC01830; @@ -6144,7 +6361,7 @@ label_BFC01820: psx_check_interrupts(cpu); /* 0xBFC01820: 1041FDF5 beq $v0, $at, 0xBFC00FF8 */ uint32_t psx_brA_BFC01820 = cpu->gpr[2]; uint32_t psx_brB_BFC01820 = cpu->gpr[1]; - int psx_taken_BFC01820 = (psx_brA_BFC01820 == psx_brB_BFC01820); + psx_taken_BFC01820 = (psx_brA_BFC01820 == psx_brB_BFC01820); /* 0xBFC01824: 00000000 nop */ /* nop */ if (psx_taken_BFC01820) goto label_BFC00FF8; @@ -6155,7 +6372,7 @@ label_BFC01828: psx_check_interrupts(cpu); /* 0xBFC01828: 1000FFA3 beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC01828 = cpu->gpr[0]; uint32_t psx_brB_BFC01828 = cpu->gpr[0]; - int psx_taken_BFC01828 = (psx_brA_BFC01828 == psx_brB_BFC01828); + psx_taken_BFC01828 = (psx_brA_BFC01828 == psx_brB_BFC01828); /* 0xBFC0182C: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC01828) goto label_BFC016B8; @@ -6168,7 +6385,7 @@ label_BFC01830: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (104)); /* 0xBFC01834: 1041FDEC beq $v0, $at, 0xBFC00FE8 */ uint32_t psx_brA_BFC01834 = cpu->gpr[2]; uint32_t psx_brB_BFC01834 = cpu->gpr[1]; - int psx_taken_BFC01834 = (psx_brA_BFC01834 == psx_brB_BFC01834); + psx_taken_BFC01834 = (psx_brA_BFC01834 == psx_brB_BFC01834); /* 0xBFC01838: 00000000 nop */ /* nop */ if (psx_taken_BFC01834) goto label_BFC00FE8; @@ -6179,7 +6396,7 @@ label_BFC0183C: psx_check_interrupts(cpu); /* 0xBFC0183C: 1000FF9E beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC0183C = cpu->gpr[0]; uint32_t psx_brB_BFC0183C = cpu->gpr[0]; - int psx_taken_BFC0183C = (psx_brA_BFC0183C == psx_brB_BFC0183C); + psx_taken_BFC0183C = (psx_brA_BFC0183C == psx_brB_BFC0183C); /* 0xBFC01840: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC0183C) goto label_BFC016B8; @@ -6192,7 +6409,7 @@ label_BFC01844: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (112)); /* 0xBFC01848: 1041FE30 beq $v0, $at, 0xBFC0110C */ uint32_t psx_brA_BFC01848 = cpu->gpr[2]; uint32_t psx_brB_BFC01848 = cpu->gpr[1]; - int psx_taken_BFC01848 = (psx_brA_BFC01848 == psx_brB_BFC01848); + psx_taken_BFC01848 = (psx_brA_BFC01848 == psx_brB_BFC01848); /* 0xBFC0184C: 2C410071 sltiu $at, $v0, 113 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000071u ? 1 : 0); if (psx_taken_BFC01848) goto label_BFC0110C; @@ -6203,7 +6420,7 @@ label_BFC01850: psx_check_interrupts(cpu); /* 0xBFC01850: 1020000E beq $at, $zero, 0xBFC0188C */ uint32_t psx_brA_BFC01850 = cpu->gpr[1]; uint32_t psx_brB_BFC01850 = cpu->gpr[0]; - int psx_taken_BFC01850 = (psx_brA_BFC01850 == psx_brB_BFC01850); + psx_taken_BFC01850 = (psx_brA_BFC01850 == psx_brB_BFC01850); /* 0xBFC01854: 2401006E addiu $at, $zero, 110 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (110)); if (psx_taken_BFC01850) goto label_BFC0188C; @@ -6214,7 +6431,7 @@ label_BFC01858: psx_check_interrupts(cpu); /* 0xBFC01858: 1041FE04 beq $v0, $at, 0xBFC0106C */ uint32_t psx_brA_BFC01858 = cpu->gpr[2]; uint32_t psx_brB_BFC01858 = cpu->gpr[1]; - int psx_taken_BFC01858 = (psx_brA_BFC01858 == psx_brB_BFC01858); + psx_taken_BFC01858 = (psx_brA_BFC01858 == psx_brB_BFC01858); /* 0xBFC0185C: 2C41006F sltiu $at, $v0, 111 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000006Fu ? 1 : 0); if (psx_taken_BFC01858) goto label_BFC0106C; @@ -6225,7 +6442,7 @@ label_BFC01860: psx_check_interrupts(cpu); /* 0xBFC01860: 10200005 beq $at, $zero, 0xBFC01878 */ uint32_t psx_brA_BFC01860 = cpu->gpr[1]; uint32_t psx_brB_BFC01860 = cpu->gpr[0]; - int psx_taken_BFC01860 = (psx_brA_BFC01860 == psx_brB_BFC01860); + psx_taken_BFC01860 = (psx_brA_BFC01860 == psx_brB_BFC01860); /* 0xBFC01864: 2401006C addiu $at, $zero, 108 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (108)); if (psx_taken_BFC01860) goto label_BFC01878; @@ -6236,7 +6453,7 @@ label_BFC01868: psx_check_interrupts(cpu); /* 0xBFC01868: 1041FDE1 beq $v0, $at, 0xBFC00FF0 */ uint32_t psx_brA_BFC01868 = cpu->gpr[2]; uint32_t psx_brB_BFC01868 = cpu->gpr[1]; - int psx_taken_BFC01868 = (psx_brA_BFC01868 == psx_brB_BFC01868); + psx_taken_BFC01868 = (psx_brA_BFC01868 == psx_brB_BFC01868); /* 0xBFC0186C: 00000000 nop */ /* nop */ if (psx_taken_BFC01868) goto label_BFC00FF0; @@ -6247,7 +6464,7 @@ label_BFC01870: psx_check_interrupts(cpu); /* 0xBFC01870: 1000FF91 beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC01870 = cpu->gpr[0]; uint32_t psx_brB_BFC01870 = cpu->gpr[0]; - int psx_taken_BFC01870 = (psx_brA_BFC01870 == psx_brB_BFC01870); + psx_taken_BFC01870 = (psx_brA_BFC01870 == psx_brB_BFC01870); /* 0xBFC01874: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC01870) goto label_BFC016B8; @@ -6260,7 +6477,7 @@ label_BFC01878: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (111)); /* 0xBFC0187C: 1041FE12 beq $v0, $at, 0xBFC010C8 */ uint32_t psx_brA_BFC0187C = cpu->gpr[2]; uint32_t psx_brB_BFC0187C = cpu->gpr[1]; - int psx_taken_BFC0187C = (psx_brA_BFC0187C == psx_brB_BFC0187C); + psx_taken_BFC0187C = (psx_brA_BFC0187C == psx_brB_BFC0187C); /* 0xBFC01880: 32390001 andi $t9, $s1, 0x1 */ cpu->gpr[25] = cpu->gpr[17] & 0x1u; if (psx_taken_BFC0187C) goto label_BFC010C8; @@ -6271,7 +6488,7 @@ label_BFC01884: psx_check_interrupts(cpu); /* 0xBFC01884: 1000FF8C beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC01884 = cpu->gpr[0]; uint32_t psx_brB_BFC01884 = cpu->gpr[0]; - int psx_taken_BFC01884 = (psx_brA_BFC01884 == psx_brB_BFC01884); + psx_taken_BFC01884 = (psx_brA_BFC01884 == psx_brB_BFC01884); /* 0xBFC01888: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC01884) goto label_BFC016B8; @@ -6284,7 +6501,7 @@ label_BFC0188C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (117)); /* 0xBFC01890: 1041FE4F beq $v0, $at, 0xBFC011D0 */ uint32_t psx_brA_BFC01890 = cpu->gpr[2]; uint32_t psx_brB_BFC01890 = cpu->gpr[1]; - int psx_taken_BFC01890 = (psx_brA_BFC01890 == psx_brB_BFC01890); + psx_taken_BFC01890 = (psx_brA_BFC01890 == psx_brB_BFC01890); /* 0xBFC01894: 2C410076 sltiu $at, $v0, 118 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000076u ? 1 : 0); if (psx_taken_BFC01890) goto label_BFC011D0; @@ -6295,7 +6512,7 @@ label_BFC01898: psx_check_interrupts(cpu); /* 0xBFC01898: 10200005 beq $at, $zero, 0xBFC018B0 */ uint32_t psx_brA_BFC01898 = cpu->gpr[1]; uint32_t psx_brB_BFC01898 = cpu->gpr[0]; - int psx_taken_BFC01898 = (psx_brA_BFC01898 == psx_brB_BFC01898); + psx_taken_BFC01898 = (psx_brA_BFC01898 == psx_brB_BFC01898); /* 0xBFC0189C: 24010073 addiu $at, $zero, 115 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (115)); if (psx_taken_BFC01898) goto label_BFC018B0; @@ -6306,7 +6523,7 @@ label_BFC018A0: psx_check_interrupts(cpu); /* 0xBFC018A0: 1041FE20 beq $v0, $at, 0xBFC01124 */ uint32_t psx_brA_BFC018A0 = cpu->gpr[2]; uint32_t psx_brB_BFC018A0 = cpu->gpr[1]; - int psx_taken_BFC018A0 = (psx_brA_BFC018A0 == psx_brB_BFC018A0); + psx_taken_BFC018A0 = (psx_brA_BFC018A0 == psx_brB_BFC018A0); /* 0xBFC018A4: 00000000 nop */ /* nop */ if (psx_taken_BFC018A0) goto label_BFC01124; @@ -6317,7 +6534,7 @@ label_BFC018A8: psx_check_interrupts(cpu); /* 0xBFC018A8: 1000FF83 beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC018A8 = cpu->gpr[0]; uint32_t psx_brB_BFC018A8 = cpu->gpr[0]; - int psx_taken_BFC018A8 = (psx_brA_BFC018A8 == psx_brB_BFC018A8); + psx_taken_BFC018A8 = (psx_brA_BFC018A8 == psx_brB_BFC018A8); /* 0xBFC018AC: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC018A8) goto label_BFC016B8; @@ -6330,7 +6547,7 @@ label_BFC018B0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (120)); /* 0xBFC018B4: 1041FE5C beq $v0, $at, 0xBFC01228 */ uint32_t psx_brA_BFC018B4 = cpu->gpr[2]; uint32_t psx_brB_BFC018B4 = cpu->gpr[1]; - int psx_taken_BFC018B4 = (psx_brA_BFC018B4 == psx_brB_BFC018B4); + psx_taken_BFC018B4 = (psx_brA_BFC018B4 == psx_brB_BFC018B4); /* 0xBFC018B8: 322E0001 andi $t6, $s1, 0x1 */ cpu->gpr[14] = cpu->gpr[17] & 0x1u; if (psx_taken_BFC018B4) goto label_BFC01228; @@ -6341,7 +6558,7 @@ label_BFC018BC: psx_check_interrupts(cpu); /* 0xBFC018BC: 1000FF7E beq $zero, $zero, 0xBFC016B8 */ uint32_t psx_brA_BFC018BC = cpu->gpr[0]; uint32_t psx_brB_BFC018BC = cpu->gpr[0]; - int psx_taken_BFC018BC = (psx_brA_BFC018BC == psx_brB_BFC018BC); + psx_taken_BFC018BC = (psx_brA_BFC018BC == psx_brB_BFC018BC); /* 0xBFC018C0: 00032600 sll $a0, $v1, 24 */ cpu->gpr[4] = cpu->gpr[3] << 24u; if (psx_taken_BFC018BC) goto label_BFC016B8; @@ -6352,7 +6569,7 @@ label_BFC018C4: psx_check_interrupts(cpu); /* 0xBFC018C4: 1000FD55 beq $zero, $zero, 0xBFC00E1C */ uint32_t psx_brA_BFC018C4 = cpu->gpr[0]; uint32_t psx_brB_BFC018C4 = cpu->gpr[0]; - int psx_taken_BFC018C4 = (psx_brA_BFC018C4 == psx_brB_BFC018C4); + psx_taken_BFC018C4 = (psx_brA_BFC018C4 == psx_brB_BFC018C4); /* 0xBFC018C8: 26520001 addiu $s2, $s2, 1 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (1)); if (psx_taken_BFC018C4) goto label_BFC00E1C; @@ -6456,6 +6673,8 @@ label_BFC01920: void func_1FC0193C(CPUState* cpu) { debug_server_log_call_entry(0x1FC0193Cu); + int psx_taken_BFC01980 = 0; + int psx_taken_BFC01A30 = 0; label_BFC0193C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -6502,7 +6721,7 @@ label_BFC01960: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[10] + (112)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0197Cu); return; } g_debug_last_store_pc = 0xBFC0197Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC01980: 154BFFF7 bne $t2, $t3, 0xBFC01960 */ uint32_t psx_brA_BFC01980 = cpu->gpr[10]; uint32_t psx_brB_BFC01980 = cpu->gpr[11]; - int psx_taken_BFC01980 = (psx_brA_BFC01980 != psx_brB_BFC01980); + psx_taken_BFC01980 = (psx_brA_BFC01980 != psx_brB_BFC01980); /* 0xBFC01984: 214A0080 addi $t2, $t2, 128 */ { int32_t psx_a = (int32_t)cpu->gpr[10]; int32_t psx_b = (128); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[10] = (uint32_t)(int32_t)psx_r; } if (psx_taken_BFC01980) goto label_BFC01960; @@ -6602,7 +6821,7 @@ label_BFC019B0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[10] + (124)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01A2Cu); return; } g_debug_last_store_pc = 0xBFC01A2Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC01A30: 154BFFDF bne $t2, $t3, 0xBFC019B0 */ uint32_t psx_brA_BFC01A30 = cpu->gpr[10]; uint32_t psx_brB_BFC01A30 = cpu->gpr[11]; - int psx_taken_BFC01A30 = (psx_brA_BFC01A30 != psx_brB_BFC01A30); + psx_taken_BFC01A30 = (psx_brA_BFC01A30 != psx_brB_BFC01A30); /* 0xBFC01A34: 214A0080 addi $t2, $t2, 128 */ { int32_t psx_a = (int32_t)cpu->gpr[10]; int32_t psx_b = (128); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[10] = (uint32_t)(int32_t)psx_r; } if (psx_taken_BFC01A30) goto label_BFC019B0; @@ -6678,6 +6897,9 @@ label_BFC01A78: void func_1FC01A90(CPUState* cpu) { debug_server_log_call_entry(0x1FC01A90u); + int psx_taken_BFC01A90 = 0; + int psx_taken_BFC01AA0 = 0; + int psx_taken_BFC01AB8 = 0; label_BFC01A90: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -6685,7 +6907,7 @@ label_BFC01A90: psx_check_interrupts(cpu); /* 0xBFC01A90: 14800003 bne $a0, $zero, 0xBFC01AA0 */ uint32_t psx_brA_BFC01A90 = cpu->gpr[4]; uint32_t psx_brB_BFC01A90 = cpu->gpr[0]; - int psx_taken_BFC01A90 = (psx_brA_BFC01A90 != psx_brB_BFC01A90); + psx_taken_BFC01A90 = (psx_brA_BFC01A90 != psx_brB_BFC01A90); /* 0xBFC01A94: 00000000 nop */ /* nop */ if (psx_taken_BFC01A90) goto label_BFC01AA0; @@ -6705,7 +6927,7 @@ label_BFC01AA0: psx_check_interrupts(cpu); /* 0xBFC01AA0: 18C00007 blez $a2, 0xBFC01AC0 */ uint32_t psx_brA_BFC01AA0 = cpu->gpr[6]; - int psx_taken_BFC01AA0 = ((int32_t)psx_brA_BFC01AA0 <= 0); + psx_taken_BFC01AA0 = ((int32_t)psx_brA_BFC01AA0 <= 0); /* 0xBFC01AA4: 00801821 addu $v1, $a0, $zero */ cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC01AA0) goto label_BFC01AC0; @@ -6724,7 +6946,7 @@ label_BFC01AA8: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC01AB8: 1CC0FFFB bgtz $a2, 0xBFC01AA8 */ uint32_t psx_brA_BFC01AB8 = cpu->gpr[6]; - int psx_taken_BFC01AB8 = ((int32_t)psx_brA_BFC01AB8 > 0); + psx_taken_BFC01AB8 = ((int32_t)psx_brA_BFC01AB8 > 0); /* 0xBFC01ABC: A0AEFFFF sb $t6, -1($a1) */ g_debug_last_store_pc = 0xBFC01ABCu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[5] + (-1)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC01AB8) goto label_BFC01AA8; @@ -6743,6 +6965,10 @@ label_BFC01AC0: void func_1FC01ACC(CPUState* cpu) { debug_server_log_call_entry(0x1FC01ACCu); + int psx_taken_BFC01ACC = 0; + int psx_taken_BFC01AD4 = 0; + int psx_taken_BFC01AE4 = 0; + int psx_taken_BFC01AF4 = 0; label_BFC01ACC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -6750,7 +6976,7 @@ label_BFC01ACC: psx_check_interrupts(cpu); /* 0xBFC01ACC: 10800003 beq $a0, $zero, 0xBFC01ADC */ uint32_t psx_brA_BFC01ACC = cpu->gpr[4]; uint32_t psx_brB_BFC01ACC = cpu->gpr[0]; - int psx_taken_BFC01ACC = (psx_brA_BFC01ACC == psx_brB_BFC01ACC); + psx_taken_BFC01ACC = (psx_brA_BFC01ACC == psx_brB_BFC01ACC); /* 0xBFC01AD0: 00000000 nop */ /* nop */ if (psx_taken_BFC01ACC) goto label_BFC01ADC; @@ -6761,7 +6987,7 @@ label_BFC01AD4: psx_check_interrupts(cpu); /* 0xBFC01AD4: 1CA00003 bgtz $a1, 0xBFC01AE4 */ uint32_t psx_brA_BFC01AD4 = cpu->gpr[5]; - int psx_taken_BFC01AD4 = ((int32_t)psx_brA_BFC01AD4 > 0); + psx_taken_BFC01AD4 = ((int32_t)psx_brA_BFC01AD4 > 0); /* 0xBFC01AD8: 00000000 nop */ /* nop */ if (psx_taken_BFC01AD4) goto label_BFC01AE4; @@ -6781,7 +7007,7 @@ label_BFC01AE4: psx_check_interrupts(cpu); /* 0xBFC01AE4: 18A00005 blez $a1, 0xBFC01AFC */ uint32_t psx_brA_BFC01AE4 = cpu->gpr[5]; - int psx_taken_BFC01AE4 = ((int32_t)psx_brA_BFC01AE4 <= 0); + psx_taken_BFC01AE4 = ((int32_t)psx_brA_BFC01AE4 <= 0); /* 0xBFC01AE8: 00801821 addu $v1, $a0, $zero */ cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC01AE4) goto label_BFC01AFC; @@ -6796,7 +7022,7 @@ label_BFC01AEC: g_debug_last_store_pc = 0xBFC01AF0u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[4] + (0)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC01AF4: 1CA0FFFD bgtz $a1, 0xBFC01AEC */ uint32_t psx_brA_BFC01AF4 = cpu->gpr[5]; - int psx_taken_BFC01AF4 = ((int32_t)psx_brA_BFC01AF4 > 0); + psx_taken_BFC01AF4 = ((int32_t)psx_brA_BFC01AF4 > 0); /* 0xBFC01AF8: 24840001 addiu $a0, $a0, 1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); if (psx_taken_BFC01AF4) goto label_BFC01AEC; @@ -6815,6 +7041,16 @@ label_BFC01AFC: void func_1FC01B80(CPUState* cpu) { debug_server_log_call_entry(0x1FC01B80u); + int psx_taken_BFC01B80 = 0; + int psx_taken_BFC01B98 = 0; + int psx_taken_BFC01BA4 = 0; + int psx_taken_BFC01BDC = 0; + int psx_taken_BFC01BE4 = 0; + int psx_taken_BFC01BF0 = 0; + int psx_taken_BFC01BF8 = 0; + int psx_taken_BFC01C20 = 0; + int psx_taken_BFC01C44 = 0; + int psx_taken_BFC01C64 = 0; label_BFC01B80: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -6822,7 +7058,7 @@ label_BFC01B80: psx_check_interrupts(cpu); /* 0xBFC01B80: 10800021 beq $a0, $zero, 0xBFC01C08 */ uint32_t psx_brA_BFC01B80 = cpu->gpr[4]; uint32_t psx_brB_BFC01B80 = cpu->gpr[0]; - int psx_taken_BFC01B80 = (psx_brA_BFC01B80 == psx_brB_BFC01B80); + psx_taken_BFC01B80 = (psx_brA_BFC01B80 == psx_brB_BFC01B80); /* 0xBFC01B84: 00000000 nop */ /* nop */ if (psx_taken_BFC01B80) goto label_BFC01C08; @@ -6841,7 +7077,7 @@ label_BFC01B88: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[4] ? 1 : 0); /* 0xBFC01B98: 14200005 bne $at, $zero, 0xBFC01BB0 */ uint32_t psx_brA_BFC01B98 = cpu->gpr[1]; uint32_t psx_brB_BFC01B98 = cpu->gpr[0]; - int psx_taken_BFC01B98 = (psx_brA_BFC01B98 != psx_brB_BFC01B98); + psx_taken_BFC01B98 = (psx_brA_BFC01B98 != psx_brB_BFC01B98); /* 0xBFC01B9C: 00801821 addu $v1, $a0, $zero */ cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC01B98) goto label_BFC01BB0; @@ -6854,7 +7090,7 @@ label_BFC01BA0: cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; /* 0xBFC01BA4: 10000003 beq $zero, $zero, 0xBFC01BB4 */ uint32_t psx_brA_BFC01BA4 = cpu->gpr[0]; uint32_t psx_brB_BFC01BA4 = cpu->gpr[0]; - int psx_taken_BFC01BA4 = (psx_brA_BFC01BA4 == psx_brB_BFC01BA4); + psx_taken_BFC01BA4 = (psx_brA_BFC01BA4 == psx_brB_BFC01BA4); /* 0xBFC01BA8: 00802821 addu $a1, $a0, $zero */ cpu->gpr[5] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC01BA4) goto label_BFC01BB4; @@ -6899,7 +7135,7 @@ label_BFC01BB4: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[3] ? 1 : 0); /* 0xBFC01BDC: 14200004 bne $at, $zero, 0xBFC01BF0 */ uint32_t psx_brA_BFC01BDC = cpu->gpr[1]; uint32_t psx_brB_BFC01BDC = cpu->gpr[0]; - int psx_taken_BFC01BDC = (psx_brA_BFC01BDC != psx_brB_BFC01BDC); + psx_taken_BFC01BDC = (psx_brA_BFC01BDC != psx_brB_BFC01BDC); /* 0xBFC01BE0: 0045082B sltu $at, $v0, $a1 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[5] ? 1 : 0); if (psx_taken_BFC01BDC) goto label_BFC01BF0; @@ -6910,7 +7146,7 @@ label_BFC01BE4: psx_check_interrupts(cpu); /* 0xBFC01BE4: 10000013 beq $zero, $zero, 0xBFC01C34 */ uint32_t psx_brA_BFC01BE4 = cpu->gpr[0]; uint32_t psx_brB_BFC01BE4 = cpu->gpr[0]; - int psx_taken_BFC01BE4 = (psx_brA_BFC01BE4 == psx_brB_BFC01BE4); + psx_taken_BFC01BE4 = (psx_brA_BFC01BE4 == psx_brB_BFC01BE4); /* 0xBFC01BE8: 00603021 addu $a2, $v1, $zero */ cpu->gpr[6] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC01BE4) goto label_BFC01C34; @@ -6928,7 +7164,7 @@ label_BFC01BF0: psx_check_interrupts(cpu); /* 0xBFC01BF0: 14200003 bne $at, $zero, 0xBFC01C00 */ uint32_t psx_brA_BFC01BF0 = cpu->gpr[1]; uint32_t psx_brB_BFC01BF0 = cpu->gpr[0]; - int psx_taken_BFC01BF0 = (psx_brA_BFC01BF0 != psx_brB_BFC01BF0); + psx_taken_BFC01BF0 = (psx_brA_BFC01BF0 != psx_brB_BFC01BF0); /* 0xBFC01BF4: 00000000 nop */ /* nop */ if (psx_taken_BFC01BF0) goto label_BFC01C00; @@ -6939,7 +7175,7 @@ label_BFC01BF8: psx_check_interrupts(cpu); /* 0xBFC01BF8: 1000000E beq $zero, $zero, 0xBFC01C34 */ uint32_t psx_brA_BFC01BF8 = cpu->gpr[0]; uint32_t psx_brB_BFC01BF8 = cpu->gpr[0]; - int psx_taken_BFC01BF8 = (psx_brA_BFC01BF8 == psx_brB_BFC01BF8); + psx_taken_BFC01BF8 = (psx_brA_BFC01BF8 == psx_brB_BFC01BF8); /* 0xBFC01BFC: 00A03021 addu $a2, $a1, $zero */ cpu->gpr[6] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC01BF8) goto label_BFC01C34; @@ -6971,7 +7207,7 @@ label_BFC01C08: cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < cpu->gpr[15] ? 1 : 0); /* 0xBFC01C20: 14200004 bne $at, $zero, 0xBFC01C34 */ uint32_t psx_brA_BFC01C20 = cpu->gpr[1]; uint32_t psx_brB_BFC01C20 = cpu->gpr[0]; - int psx_taken_BFC01C20 = (psx_brA_BFC01C20 != psx_brB_BFC01C20); + psx_taken_BFC01C20 = (psx_brA_BFC01C20 != psx_brB_BFC01C20); /* 0xBFC01C24: 00003021 addu $a2, $zero, $zero */ cpu->gpr[6] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC01C20) goto label_BFC01C34; @@ -6999,7 +7235,7 @@ label_BFC01C34: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC01C44: 04C10002 bgez $a2, 0xBFC01C50 */ uint32_t psx_brA_BFC01C44 = cpu->gpr[6]; - int psx_taken_BFC01C44 = ((int32_t)psx_brA_BFC01C44 >= 0); + psx_taken_BFC01C44 = ((int32_t)psx_brA_BFC01C44 >= 0); /* 0xBFC01C48: 00C00821 addu $at, $a2, $zero */ cpu->gpr[1] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC01C44) goto label_BFC01C50; @@ -7027,7 +7263,7 @@ label_BFC01C50: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01C60u); return; } g_debug_last_store_pc = 0xBFC01C60u; cpu->write_word(psx_addr, cpu->gpr[10]); } /* 0xBFC01C64: 05610002 bgez $t3, 0xBFC01C70 */ uint32_t psx_brA_BFC01C64 = cpu->gpr[11]; - int psx_taken_BFC01C64 = ((int32_t)psx_brA_BFC01C64 >= 0); + psx_taken_BFC01C64 = ((int32_t)psx_brA_BFC01C64 >= 0); /* 0xBFC01C68: 01600821 addu $at, $t3, $zero */ cpu->gpr[1] = cpu->gpr[11] + cpu->gpr[0]; if (psx_taken_BFC01C64) goto label_BFC01C70; @@ -7061,6 +7297,19 @@ label_BFC01C70: void func_1FC01C8C(CPUState* cpu) { debug_server_log_call_entry(0x1FC01C8Cu); + int psx_taken_BFC01CA4 = 0; + int psx_taken_BFC01CC8 = 0; + int psx_taken_BFC01CF8 = 0; + int psx_taken_BFC01D04 = 0; + int psx_taken_BFC01D14 = 0; + int psx_taken_BFC01D1C = 0; + int psx_taken_BFC01D38 = 0; + int psx_taken_BFC01D48 = 0; + int psx_taken_BFC01D94 = 0; + int psx_taken_BFC01DB4 = 0; + int psx_taken_BFC01DBC = 0; + int psx_taken_BFC01E00 = 0; + int psx_taken_BFC01E0C = 0; label_BFC01C8C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -7080,7 +7329,7 @@ label_BFC01C8C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-4)); /* 0xBFC01CA4: 154E0003 bne $t2, $t6, 0xBFC01CB4 */ uint32_t psx_brA_BFC01CA4 = cpu->gpr[10]; uint32_t psx_brB_BFC01CA4 = cpu->gpr[14]; - int psx_taken_BFC01CA4 = (psx_brA_BFC01CA4 != psx_brB_BFC01CA4); + psx_taken_BFC01CA4 = (psx_brA_BFC01CA4 != psx_brB_BFC01CA4); /* 0xBFC01CA8: 00A12824 and $a1, $a1, $at */ cpu->gpr[5] = cpu->gpr[5] & cpu->gpr[1]; if (psx_taken_BFC01CA4) goto label_BFC01CB4; @@ -7110,7 +7359,7 @@ label_BFC01CB4: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < cpu->gpr[5] ? 1 : 0); /* 0xBFC01CC8: 10200038 beq $at, $zero, 0xBFC01DAC */ uint32_t psx_brA_BFC01CC8 = cpu->gpr[1]; uint32_t psx_brB_BFC01CC8 = cpu->gpr[0]; - int psx_taken_BFC01CC8 = (psx_brA_BFC01CC8 == psx_brB_BFC01CC8); + psx_taken_BFC01CC8 = (psx_brA_BFC01CC8 == psx_brB_BFC01CC8); /* 0xBFC01CCC: 2401FFFC addiu $at, $zero, -4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-4)); if (psx_taken_BFC01CC8) goto label_BFC01DAC; @@ -7146,7 +7395,7 @@ label_BFC01CE8: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (4)); /* 0xBFC01CF8: 11470008 beq $t2, $a3, 0xBFC01D1C */ uint32_t psx_brA_BFC01CF8 = cpu->gpr[10]; uint32_t psx_brB_BFC01CF8 = cpu->gpr[7]; - int psx_taken_BFC01CF8 = (psx_brA_BFC01CF8 == psx_brB_BFC01CF8); + psx_taken_BFC01CF8 = (psx_brA_BFC01CF8 == psx_brB_BFC01CF8); /* 0xBFC01CFC: 00000000 nop */ /* nop */ if (psx_taken_BFC01CF8) goto label_BFC01D1C; @@ -7159,7 +7408,7 @@ label_BFC01D00: cpu->gpr[25] = cpu->gpr[7] & 0x1u; /* 0xBFC01D04: 17200005 bne $t9, $zero, 0xBFC01D1C */ uint32_t psx_brA_BFC01D04 = cpu->gpr[25]; uint32_t psx_brB_BFC01D04 = cpu->gpr[0]; - int psx_taken_BFC01D04 = (psx_brA_BFC01D04 != psx_brB_BFC01D04); + psx_taken_BFC01D04 = (psx_brA_BFC01D04 != psx_brB_BFC01D04); /* 0xBFC01D08: 00000000 nop */ /* nop */ if (psx_taken_BFC01D04) goto label_BFC01D1C; @@ -7174,7 +7423,7 @@ label_BFC01D0C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); /* 0xBFC01D14: 10000024 beq $zero, $zero, 0xBFC01DA8 */ uint32_t psx_brA_BFC01D14 = cpu->gpr[0]; uint32_t psx_brB_BFC01D14 = cpu->gpr[0]; - int psx_taken_BFC01D14 = (psx_brA_BFC01D14 == psx_brB_BFC01D14); + psx_taken_BFC01D14 = (psx_brA_BFC01D14 == psx_brB_BFC01D14); /* 0xBFC01D18: 00C14024 and $t0, $a2, $at */ cpu->gpr[8] = cpu->gpr[6] & cpu->gpr[1]; if (psx_taken_BFC01D14) goto label_BFC01DA8; @@ -7185,7 +7434,7 @@ label_BFC01D1C: psx_check_interrupts(cpu); /* 0xBFC01D1C: 15470014 bne $t2, $a3, 0xBFC01D70 */ uint32_t psx_brA_BFC01D1C = cpu->gpr[10]; uint32_t psx_brB_BFC01D1C = cpu->gpr[7]; - int psx_taken_BFC01D1C = (psx_brA_BFC01D1C != psx_brB_BFC01D1C); + psx_taken_BFC01D1C = (psx_brA_BFC01D1C != psx_brB_BFC01D1C); /* 0xBFC01D20: 00000000 nop */ /* nop */ if (psx_taken_BFC01D1C) goto label_BFC01D70; @@ -7206,7 +7455,7 @@ label_BFC01D24: cpu->gpr[1] = (uint32_t)(cpu->gpr[13] < cpu->gpr[8] ? 1 : 0); /* 0xBFC01D38: 10200006 beq $at, $zero, 0xBFC01D54 */ uint32_t psx_brA_BFC01D38 = cpu->gpr[1]; uint32_t psx_brB_BFC01D38 = cpu->gpr[0]; - int psx_taken_BFC01D38 = (psx_brA_BFC01D38 == psx_brB_BFC01D38); + psx_taken_BFC01D38 = (psx_brA_BFC01D38 == psx_brB_BFC01D38); /* 0xBFC01D3C: 00087082 srl $t6, $t0, 2 */ cpu->gpr[14] = cpu->gpr[8] >> 2u; if (psx_taken_BFC01D38) goto label_BFC01D54; @@ -7221,7 +7470,7 @@ label_BFC01D40: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); /* 0xBFC01D48: 10000017 beq $zero, $zero, 0xBFC01DA8 */ uint32_t psx_brA_BFC01D48 = cpu->gpr[0]; uint32_t psx_brB_BFC01D48 = cpu->gpr[0]; - int psx_taken_BFC01D48 = (psx_brA_BFC01D48 == psx_brB_BFC01D48); + psx_taken_BFC01D48 = (psx_brA_BFC01D48 == psx_brB_BFC01D48); /* 0xBFC01D4C: 00C14024 and $t0, $a2, $at */ cpu->gpr[8] = cpu->gpr[6] & cpu->gpr[1]; if (psx_taken_BFC01D48) goto label_BFC01DA8; @@ -7276,7 +7525,7 @@ label_BFC01D70: cpu->gpr[1] = (uint32_t)(cpu->gpr[6] < cpu->gpr[5] ? 1 : 0); /* 0xBFC01D94: 1420FFD4 bne $at, $zero, 0xBFC01CE8 */ uint32_t psx_brA_BFC01D94 = cpu->gpr[1]; uint32_t psx_brB_BFC01D94 = cpu->gpr[0]; - int psx_taken_BFC01D94 = (psx_brA_BFC01D94 != psx_brB_BFC01D94); + psx_taken_BFC01D94 = (psx_brA_BFC01D94 != psx_brB_BFC01D94); /* 0xBFC01D98: 00077882 srl $t7, $a3, 2 */ cpu->gpr[15] = cpu->gpr[7] >> 2u; if (psx_taken_BFC01D94) goto label_BFC01CE8; @@ -7309,7 +7558,7 @@ label_BFC01DAC: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[15] ? 1 : 0); /* 0xBFC01DB4: 10200015 beq $at, $zero, 0xBFC01E0C */ uint32_t psx_brA_BFC01DB4 = cpu->gpr[1]; uint32_t psx_brB_BFC01DB4 = cpu->gpr[0]; - int psx_taken_BFC01DB4 = (psx_brA_BFC01DB4 == psx_brB_BFC01DB4); + psx_taken_BFC01DB4 = (psx_brA_BFC01DB4 == psx_brB_BFC01DB4); /* 0xBFC01DB8: 0105082B sltu $at, $t0, $a1 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < cpu->gpr[5] ? 1 : 0); if (psx_taken_BFC01DB4) goto label_BFC01E0C; @@ -7320,7 +7569,7 @@ label_BFC01DBC: psx_check_interrupts(cpu); /* 0xBFC01DBC: 04A10002 bgez $a1, 0xBFC01DC8 */ uint32_t psx_brA_BFC01DBC = cpu->gpr[5]; - int psx_taken_BFC01DBC = ((int32_t)psx_brA_BFC01DBC >= 0); + psx_taken_BFC01DBC = ((int32_t)psx_brA_BFC01DBC >= 0); /* 0xBFC01DC0: 00A00821 addu $at, $a1, $zero */ cpu->gpr[1] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC01DBC) goto label_BFC01DC8; @@ -7366,7 +7615,7 @@ label_BFC01DC8: cpu->gpr[25] = cpu->gpr[5] | cpu->gpr[24]; /* 0xBFC01E00: 10000005 beq $zero, $zero, 0xBFC01E18 */ uint32_t psx_brA_BFC01E00 = cpu->gpr[0]; uint32_t psx_brB_BFC01E00 = cpu->gpr[0]; - int psx_taken_BFC01E00 = (psx_brA_BFC01E00 == psx_brB_BFC01E00); + psx_taken_BFC01E00 = (psx_brA_BFC01E00 == psx_brB_BFC01E00); /* 0xBFC01E04: AC590000 sw $t9, 0($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01E04u); return; } g_debug_last_store_pc = 0xBFC01E04u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC01E00) goto label_BFC01E18; @@ -7384,7 +7633,7 @@ label_BFC01E0C: psx_check_interrupts(cpu); /* 0xBFC01E0C: 10200003 beq $at, $zero, 0xBFC01E1C */ uint32_t psx_brA_BFC01E0C = cpu->gpr[1]; uint32_t psx_brB_BFC01E0C = cpu->gpr[0]; - int psx_taken_BFC01E0C = (psx_brA_BFC01E0C == psx_brB_BFC01E0C); + psx_taken_BFC01E0C = (psx_brA_BFC01E0C == psx_brB_BFC01E0C); /* 0xBFC01E10: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC01E0C) goto label_BFC01E1C; @@ -7462,6 +7711,33 @@ void func_1FC01E5C(CPUState* cpu) { default: break; } } + int psx_taken_BFC01E90 = 0; + int psx_taken_BFC01E98 = 0; + int psx_taken_BFC01EB8 = 0; + int psx_taken_BFC01EC0 = 0; + int psx_taken_BFC01EEC = 0; + int psx_taken_BFC01EF4 = 0; + int psx_taken_BFC01F30 = 0; + int psx_taken_BFC01F3C = 0; + int psx_taken_BFC01F50 = 0; + int psx_taken_BFC01F5C = 0; + int psx_taken_BFC01F78 = 0; + int psx_taken_BFC01F98 = 0; + int psx_taken_BFC01FA4 = 0; + int psx_taken_BFC01FC8 = 0; + int psx_taken_BFC01FD4 = 0; + int psx_taken_BFC01FE4 = 0; + int psx_taken_BFC01FEC = 0; + int psx_taken_BFC02000 = 0; + int psx_taken_BFC0200C = 0; + int psx_taken_BFC02028 = 0; + int psx_taken_BFC02048 = 0; + int psx_taken_BFC02050 = 0; + int psx_taken_BFC02074 = 0; + int psx_taken_BFC02080 = 0; + int psx_taken_BFC02090 = 0; + int psx_taken_BFC02098 = 0; + int psx_taken_BFC020C0 = 0; label_BFC01E5C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -7495,7 +7771,7 @@ label_BFC01E5C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC01E90: 11C00003 beq $t6, $zero, 0xBFC01EA0 */ uint32_t psx_brA_BFC01E90 = cpu->gpr[14]; uint32_t psx_brB_BFC01E90 = cpu->gpr[0]; - int psx_taken_BFC01E90 = (psx_brA_BFC01E90 == psx_brB_BFC01E90); + psx_taken_BFC01E90 = (psx_brA_BFC01E90 == psx_brB_BFC01E90); /* 0xBFC01E94: 02218824 and $s1, $s1, $at */ cpu->gpr[17] = cpu->gpr[17] & cpu->gpr[1]; if (psx_taken_BFC01E90) goto label_BFC01EA0; @@ -7506,7 +7782,7 @@ label_BFC01E98: psx_check_interrupts(cpu); /* 0xBFC01E98: 1000001F beq $zero, $zero, 0xBFC01F18 */ uint32_t psx_brA_BFC01E98 = cpu->gpr[0]; uint32_t psx_brB_BFC01E98 = cpu->gpr[0]; - int psx_taken_BFC01E98 = (psx_brA_BFC01E98 == psx_brB_BFC01E98); + psx_taken_BFC01E98 = (psx_brA_BFC01E98 == psx_brB_BFC01E98); /* 0xBFC01E9C: 2412FFFE addiu $s2, $zero, -2 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); if (psx_taken_BFC01E98) goto label_BFC01F18; @@ -7529,7 +7805,7 @@ label_BFC01EA0: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[15] ? 1 : 0); /* 0xBFC01EB8: 14200004 bne $at, $zero, 0xBFC01ECC */ uint32_t psx_brA_BFC01EB8 = cpu->gpr[1]; uint32_t psx_brB_BFC01EB8 = cpu->gpr[0]; - int psx_taken_BFC01EB8 = (psx_brA_BFC01EB8 != psx_brB_BFC01EB8); + psx_taken_BFC01EB8 = (psx_brA_BFC01EB8 != psx_brB_BFC01EB8); /* 0xBFC01EBC: 2412FFFE addiu $s2, $zero, -2 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); if (psx_taken_BFC01EB8) goto label_BFC01ECC; @@ -7540,7 +7816,7 @@ label_BFC01EC0: psx_check_interrupts(cpu); /* 0xBFC01EC0: 10000085 beq $zero, $zero, 0xBFC020D8 */ uint32_t psx_brA_BFC01EC0 = cpu->gpr[0]; uint32_t psx_brB_BFC01EC0 = cpu->gpr[0]; - int psx_taken_BFC01EC0 = (psx_brA_BFC01EC0 == psx_brB_BFC01EC0); + psx_taken_BFC01EC0 = (psx_brA_BFC01EC0 == psx_brB_BFC01EC0); /* 0xBFC01EC4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC01EC0) goto label_BFC020D8; @@ -7580,7 +7856,7 @@ label_BFC01EEC: psx_check_interrupts(cpu); /* 0xBFC01EEC: 10400003 beq $v0, $zero, 0xBFC01EFC */ uint32_t psx_brA_BFC01EEC = cpu->gpr[2]; uint32_t psx_brB_BFC01EEC = cpu->gpr[0]; - int psx_taken_BFC01EEC = (psx_brA_BFC01EEC == psx_brB_BFC01EEC); + psx_taken_BFC01EEC = (psx_brA_BFC01EEC == psx_brB_BFC01EEC); /* 0xBFC01EF0: 00000000 nop */ /* nop */ if (psx_taken_BFC01EEC) goto label_BFC01EFC; @@ -7591,7 +7867,7 @@ label_BFC01EF4: psx_check_interrupts(cpu); /* 0xBFC01EF4: 10000078 beq $zero, $zero, 0xBFC020D8 */ uint32_t psx_brA_BFC01EF4 = cpu->gpr[0]; uint32_t psx_brB_BFC01EF4 = cpu->gpr[0]; - int psx_taken_BFC01EF4 = (psx_brA_BFC01EF4 == psx_brB_BFC01EF4); + psx_taken_BFC01EF4 = (psx_brA_BFC01EF4 == psx_brB_BFC01EF4); /* 0xBFC01EF8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC01EF4) goto label_BFC020D8; @@ -7638,7 +7914,7 @@ label_BFC01F30: psx_check_interrupts(cpu); /* 0xBFC01F30: 10600047 beq $v1, $zero, 0xBFC02050 */ uint32_t psx_brA_BFC01F30 = cpu->gpr[3]; uint32_t psx_brB_BFC01F30 = cpu->gpr[0]; - int psx_taken_BFC01F30 = (psx_brA_BFC01F30 == psx_brB_BFC01F30); + psx_taken_BFC01F30 = (psx_brA_BFC01F30 == psx_brB_BFC01F30); /* 0xBFC01F34: 00000000 nop */ /* nop */ if (psx_taken_BFC01F30) goto label_BFC02050; @@ -7651,7 +7927,7 @@ label_BFC01F38: cpu->gpr[2] = cpu->gpr[17] | 0x1u; /* 0xBFC01F3C: 14440007 bne $v0, $a0, 0xBFC01F5C */ uint32_t psx_brA_BFC01F3C = cpu->gpr[2]; uint32_t psx_brB_BFC01F3C = cpu->gpr[4]; - int psx_taken_BFC01F3C = (psx_brA_BFC01F3C != psx_brB_BFC01F3C); + psx_taken_BFC01F3C = (psx_brA_BFC01F3C != psx_brB_BFC01F3C); /* 0xBFC01F40: 0044082B sltu $at, $v0, $a0 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[4] ? 1 : 0); if (psx_taken_BFC01F3C) goto label_BFC01F5C; @@ -7668,7 +7944,7 @@ label_BFC01F44: cpu->gpr[9] = cpu->gpr[4] & cpu->gpr[18]; /* 0xBFC01F50: 1000005D beq $zero, $zero, 0xBFC020C8 */ uint32_t psx_brA_BFC01F50 = cpu->gpr[0]; uint32_t psx_brB_BFC01F50 = cpu->gpr[0]; - int psx_taken_BFC01F50 = (psx_brA_BFC01F50 == psx_brB_BFC01F50); + psx_taken_BFC01F50 = (psx_brA_BFC01F50 == psx_brB_BFC01F50); /* 0xBFC01F54: AD490000 sw $t1, 0($t2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[10] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01F54u); return; } g_debug_last_store_pc = 0xBFC01F54u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC01F50) goto label_BFC020C8; @@ -7686,7 +7962,7 @@ label_BFC01F5C: psx_check_interrupts(cpu); /* 0xBFC01F5C: 10200011 beq $at, $zero, 0xBFC01FA4 */ uint32_t psx_brA_BFC01F5C = cpu->gpr[1]; uint32_t psx_brB_BFC01F5C = cpu->gpr[0]; - int psx_taken_BFC01F5C = (psx_brA_BFC01F5C == psx_brB_BFC01F5C); + psx_taken_BFC01F5C = (psx_brA_BFC01F5C == psx_brB_BFC01F5C); /* 0xBFC01F60: 0091082B sltu $at, $a0, $s1 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < cpu->gpr[17] ? 1 : 0); if (psx_taken_BFC01F5C) goto label_BFC01FA4; @@ -7707,7 +7983,7 @@ label_BFC01F64: cpu->gpr[25] = 0xA0010000u; /* 0xBFC01F78: 06210002 bgez $s1, 0xBFC01F84 */ uint32_t psx_brA_BFC01F78 = cpu->gpr[17]; - int psx_taken_BFC01F78 = ((int32_t)psx_brA_BFC01F78 >= 0); + psx_taken_BFC01F78 = ((int32_t)psx_brA_BFC01F78 >= 0); /* 0xBFC01F7C: 02200821 addu $at, $s1, $zero */ cpu->gpr[1] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC01F78) goto label_BFC01F84; @@ -7735,7 +8011,7 @@ label_BFC01F84: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[25] + (-20380)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01F94u); return; } cpu->gpr[25] = cpu->read_word(psx_addr); } /* 0xBFC01F98: 1000004B beq $zero, $zero, 0xBFC020C8 */ uint32_t psx_brA_BFC01F98 = cpu->gpr[0]; uint32_t psx_brB_BFC01F98 = cpu->gpr[0]; - int psx_taken_BFC01F98 = (psx_brA_BFC01F98 == psx_brB_BFC01F98); + psx_taken_BFC01F98 = (psx_brA_BFC01F98 == psx_brB_BFC01F98); /* 0xBFC01F9C: AF310000 sw $s1, 0($t9) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[25] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC01F9Cu); return; } g_debug_last_store_pc = 0xBFC01F9Cu; cpu->write_word(psx_addr, cpu->gpr[17]); } if (psx_taken_BFC01F98) goto label_BFC020C8; @@ -7753,7 +8029,7 @@ label_BFC01FA4: psx_check_interrupts(cpu); /* 0xBFC01FA4: 1020FFE2 beq $at, $zero, 0xBFC01F30 */ uint32_t psx_brA_BFC01FA4 = cpu->gpr[1]; uint32_t psx_brB_BFC01FA4 = cpu->gpr[0]; - int psx_taken_BFC01FA4 = (psx_brA_BFC01FA4 == psx_brB_BFC01FA4); + psx_taken_BFC01FA4 = (psx_brA_BFC01FA4 == psx_brB_BFC01FA4); /* 0xBFC01FA8: 00000000 nop */ /* nop */ if (psx_taken_BFC01FA4) goto label_BFC01F30; @@ -7778,7 +8054,7 @@ label_BFC01FAC: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); /* 0xBFC01FC8: 16420010 bne $s2, $v0, 0xBFC0200C */ uint32_t psx_brA_BFC01FC8 = cpu->gpr[18]; uint32_t psx_brB_BFC01FC8 = cpu->gpr[2]; - int psx_taken_BFC01FC8 = (psx_brA_BFC01FC8 != psx_brB_BFC01FC8); + psx_taken_BFC01FC8 = (psx_brA_BFC01FC8 != psx_brB_BFC01FC8); /* 0xBFC01FCC: 304E0001 andi $t6, $v0, 0x1 */ cpu->gpr[14] = cpu->gpr[2] & 0x1u; if (psx_taken_BFC01FC8) goto label_BFC0200C; @@ -7791,7 +8067,7 @@ label_BFC01FD0: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); /* 0xBFC01FD4: 1E000007 bgtz $s0, 0xBFC01FF4 */ uint32_t psx_brA_BFC01FD4 = cpu->gpr[16]; - int psx_taken_BFC01FD4 = ((int32_t)psx_brA_BFC01FD4 > 0); + psx_taken_BFC01FD4 = ((int32_t)psx_brA_BFC01FD4 > 0); /* 0xBFC01FD8: 00000000 nop */ /* nop */ if (psx_taken_BFC01FD4) goto label_BFC01FF4; @@ -7812,7 +8088,7 @@ label_BFC01FE4: psx_check_interrupts(cpu); /* 0xBFC01FE4: 10400014 beq $v0, $zero, 0xBFC02038 */ uint32_t psx_brA_BFC01FE4 = cpu->gpr[2]; uint32_t psx_brB_BFC01FE4 = cpu->gpr[0]; - int psx_taken_BFC01FE4 = (psx_brA_BFC01FE4 == psx_brB_BFC01FE4); + psx_taken_BFC01FE4 = (psx_brA_BFC01FE4 == psx_brB_BFC01FE4); /* 0xBFC01FE8: 00000000 nop */ /* nop */ if (psx_taken_BFC01FE4) goto label_BFC02038; @@ -7823,7 +8099,7 @@ label_BFC01FEC: psx_check_interrupts(cpu); /* 0xBFC01FEC: 1000003A beq $zero, $zero, 0xBFC020D8 */ uint32_t psx_brA_BFC01FEC = cpu->gpr[0]; uint32_t psx_brB_BFC01FEC = cpu->gpr[0]; - int psx_taken_BFC01FEC = (psx_brA_BFC01FEC == psx_brB_BFC01FEC); + psx_taken_BFC01FEC = (psx_brA_BFC01FEC == psx_brB_BFC01FEC); /* 0xBFC01FF0: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC01FEC) goto label_BFC020D8; @@ -7840,7 +8116,7 @@ label_BFC01FF4: cpu->gpr[1] = 0xA0010000u; /* 0xBFC02000: 1000000D beq $zero, $zero, 0xBFC02038 */ uint32_t psx_brA_BFC02000 = cpu->gpr[0]; uint32_t psx_brB_BFC02000 = cpu->gpr[0]; - int psx_taken_BFC02000 = (psx_brA_BFC02000 == psx_brB_BFC02000); + psx_taken_BFC02000 = (psx_brA_BFC02000 == psx_brB_BFC02000); /* 0xBFC02004: AC2BB064 sw $t3, -20380($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-20380)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC02004u); return; } g_debug_last_store_pc = 0xBFC02004u; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC02000) goto label_BFC02038; @@ -7858,7 +8134,7 @@ label_BFC0200C: psx_check_interrupts(cpu); /* 0xBFC0200C: 11C00008 beq $t6, $zero, 0xBFC02030 */ uint32_t psx_brA_BFC0200C = cpu->gpr[14]; uint32_t psx_brB_BFC0200C = cpu->gpr[0]; - int psx_taken_BFC0200C = (psx_brA_BFC0200C == psx_brB_BFC0200C); + psx_taken_BFC0200C = (psx_brA_BFC0200C == psx_brB_BFC0200C); /* 0xBFC02010: 00000000 nop */ /* nop */ if (psx_taken_BFC0200C) goto label_BFC02030; @@ -7879,7 +8155,7 @@ label_BFC02014: cpu->gpr[12] = (uint32_t)((int32_t)cpu->gpr[15] + (4)); /* 0xBFC02028: 10000003 beq $zero, $zero, 0xBFC02038 */ uint32_t psx_brA_BFC02028 = cpu->gpr[0]; uint32_t psx_brB_BFC02028 = cpu->gpr[0]; - int psx_taken_BFC02028 = (psx_brA_BFC02028 == psx_brB_BFC02028); + psx_taken_BFC02028 = (psx_brA_BFC02028 == psx_brB_BFC02028); /* 0xBFC0202C: AF0C0000 sw $t4, 0($t8) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0202Cu); return; } g_debug_last_store_pc = 0xBFC0202Cu; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC02028) goto label_BFC02038; @@ -7907,7 +8183,7 @@ label_BFC02038: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[25] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC02044u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC02048: 1000FFB9 beq $zero, $zero, 0xBFC01F30 */ uint32_t psx_brA_BFC02048 = cpu->gpr[0]; uint32_t psx_brB_BFC02048 = cpu->gpr[0]; - int psx_taken_BFC02048 = (psx_brA_BFC02048 == psx_brB_BFC02048); + psx_taken_BFC02048 = (psx_brA_BFC02048 == psx_brB_BFC02048); /* 0xBFC0204C: 30830001 andi $v1, $a0, 0x1 */ cpu->gpr[3] = cpu->gpr[4] & 0x1u; if (psx_taken_BFC02048) goto label_BFC01F30; @@ -7918,7 +8194,7 @@ label_BFC02050: psx_check_interrupts(cpu); /* 0xBFC02050: 1244000A beq $s2, $a0, 0xBFC0207C */ uint32_t psx_brA_BFC02050 = cpu->gpr[18]; uint32_t psx_brB_BFC02050 = cpu->gpr[4]; - int psx_taken_BFC02050 = (psx_brA_BFC02050 == psx_brB_BFC02050); + psx_taken_BFC02050 = (psx_brA_BFC02050 == psx_brB_BFC02050); /* 0xBFC02054: 00000000 nop */ /* nop */ if (psx_taken_BFC02050) goto label_BFC0207C; @@ -7943,7 +8219,7 @@ label_BFC02058: cpu->gpr[1] = 0xA0010000u; /* 0xBFC02074: 1000000E beq $zero, $zero, 0xBFC020B0 */ uint32_t psx_brA_BFC02074 = cpu->gpr[0]; uint32_t psx_brB_BFC02074 = cpu->gpr[0]; - int psx_taken_BFC02074 = (psx_brA_BFC02074 == psx_brB_BFC02074); + psx_taken_BFC02074 = (psx_brA_BFC02074 == psx_brB_BFC02074); /* 0xBFC02078: AC2EB064 sw $t6, -20380($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-20380)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC02078u); return; } g_debug_last_store_pc = 0xBFC02078u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC02074) goto label_BFC020B0; @@ -7956,7 +8232,7 @@ label_BFC0207C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); /* 0xBFC02080: 1E000007 bgtz $s0, 0xBFC020A0 */ uint32_t psx_brA_BFC02080 = cpu->gpr[16]; - int psx_taken_BFC02080 = ((int32_t)psx_brA_BFC02080 > 0); + psx_taken_BFC02080 = ((int32_t)psx_brA_BFC02080 > 0); /* 0xBFC02084: 00000000 nop */ /* nop */ if (psx_taken_BFC02080) goto label_BFC020A0; @@ -7977,7 +8253,7 @@ label_BFC02090: psx_check_interrupts(cpu); /* 0xBFC02090: 10400007 beq $v0, $zero, 0xBFC020B0 */ uint32_t psx_brA_BFC02090 = cpu->gpr[2]; uint32_t psx_brB_BFC02090 = cpu->gpr[0]; - int psx_taken_BFC02090 = (psx_brA_BFC02090 == psx_brB_BFC02090); + psx_taken_BFC02090 = (psx_brA_BFC02090 == psx_brB_BFC02090); /* 0xBFC02094: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC02090) goto label_BFC020B0; @@ -7988,7 +8264,7 @@ label_BFC02098: psx_check_interrupts(cpu); /* 0xBFC02098: 1000000F beq $zero, $zero, 0xBFC020D8 */ uint32_t psx_brA_BFC02098 = cpu->gpr[0]; uint32_t psx_brB_BFC02098 = cpu->gpr[0]; - int psx_taken_BFC02098 = (psx_brA_BFC02098 == psx_brB_BFC02098); + psx_taken_BFC02098 = (psx_brA_BFC02098 == psx_brB_BFC02098); /* 0xBFC0209C: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC02098) goto label_BFC020D8; @@ -8020,7 +8296,7 @@ label_BFC020B0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[15] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC020BCu); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC020C0: 1000FF9B beq $zero, $zero, 0xBFC01F30 */ uint32_t psx_brA_BFC020C0 = cpu->gpr[0]; uint32_t psx_brB_BFC020C0 = cpu->gpr[0]; - int psx_taken_BFC020C0 = (psx_brA_BFC020C0 == psx_brB_BFC020C0); + psx_taken_BFC020C0 = (psx_brA_BFC020C0 == psx_brB_BFC020C0); /* 0xBFC020C4: 30830001 andi $v1, $a0, 0x1 */ cpu->gpr[3] = cpu->gpr[4] & 0x1u; if (psx_taken_BFC020C0) goto label_BFC01F30; @@ -8090,6 +8366,12 @@ void func_1FC02104(CPUState* cpu) { default: break; } } + int psx_taken_BFC02114 = 0; + int psx_taken_BFC02124 = 0; + int psx_taken_BFC0212C = 0; + int psx_taken_BFC0213C = 0; + int psx_taken_BFC02158 = 0; + int psx_taken_BFC02170 = 0; label_BFC02104: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -8105,7 +8387,7 @@ label_BFC02104: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC02110u); return; } g_debug_last_store_pc = 0xBFC02110u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC02114: 16000005 bne $s0, $zero, 0xBFC0212C */ uint32_t psx_brA_BFC02114 = cpu->gpr[16]; uint32_t psx_brB_BFC02114 = cpu->gpr[0]; - int psx_taken_BFC02114 = (psx_brA_BFC02114 != psx_brB_BFC02114); + psx_taken_BFC02114 = (psx_brA_BFC02114 != psx_brB_BFC02114); /* 0xBFC02118: 00A03021 addu $a2, $a1, $zero */ cpu->gpr[6] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC02114) goto label_BFC0212C; @@ -8126,7 +8408,7 @@ label_BFC02124: psx_check_interrupts(cpu); /* 0xBFC02124: 10000019 beq $zero, $zero, 0xBFC0218C */ uint32_t psx_brA_BFC02124 = cpu->gpr[0]; uint32_t psx_brB_BFC02124 = cpu->gpr[0]; - int psx_taken_BFC02124 = (psx_brA_BFC02124 == psx_brB_BFC02124); + psx_taken_BFC02124 = (psx_brA_BFC02124 == psx_brB_BFC02124); /* 0xBFC02128: AFA20024 sw $v0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC02128u); return; } g_debug_last_store_pc = 0xBFC02128u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC02124) goto label_BFC0218C; @@ -8137,7 +8419,7 @@ label_BFC0212C: psx_check_interrupts(cpu); /* 0xBFC0212C: 14C00006 bne $a2, $zero, 0xBFC02148 */ uint32_t psx_brA_BFC0212C = cpu->gpr[6]; uint32_t psx_brB_BFC0212C = cpu->gpr[0]; - int psx_taken_BFC0212C = (psx_brA_BFC0212C != psx_brB_BFC0212C); + psx_taken_BFC0212C = (psx_brA_BFC0212C != psx_brB_BFC0212C); /* 0xBFC02130: 02002021 addu $a0, $s0, $zero */ cpu->gpr[4] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC0212C) goto label_BFC02148; @@ -8158,7 +8440,7 @@ label_BFC0213C: psx_check_interrupts(cpu); /* 0xBFC0213C: 10000014 beq $zero, $zero, 0xBFC02190 */ uint32_t psx_brA_BFC0213C = cpu->gpr[0]; uint32_t psx_brB_BFC0213C = cpu->gpr[0]; - int psx_taken_BFC0213C = (psx_brA_BFC0213C == psx_brB_BFC0213C); + psx_taken_BFC0213C = (psx_brA_BFC0213C == psx_brB_BFC0213C); /* 0xBFC02140: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC02140u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0213C) goto label_BFC02190; @@ -8190,7 +8472,7 @@ label_BFC02154: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC02154u); return; } cpu->gpr[6] = cpu->read_word(psx_addr); } /* 0xBFC02158: 1440000C bne $v0, $zero, 0xBFC0218C */ uint32_t psx_brA_BFC02158 = cpu->gpr[2]; uint32_t psx_brB_BFC02158 = cpu->gpr[0]; - int psx_taken_BFC02158 = (psx_brA_BFC02158 != psx_brB_BFC02158); + psx_taken_BFC02158 = (psx_brA_BFC02158 != psx_brB_BFC02158); /* 0xBFC0215C: AFA20024 sw $v0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0215Cu); return; } g_debug_last_store_pc = 0xBFC0215Cu; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC02158) goto label_BFC0218C; @@ -8215,7 +8497,7 @@ label_BFC0216C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0216Cu); return; } cpu->gpr[6] = cpu->read_word(psx_addr); } /* 0xBFC02170: 10400006 beq $v0, $zero, 0xBFC0218C */ uint32_t psx_brA_BFC02170 = cpu->gpr[2]; uint32_t psx_brB_BFC02170 = cpu->gpr[0]; - int psx_taken_BFC02170 = (psx_brA_BFC02170 == psx_brB_BFC02170); + psx_taken_BFC02170 = (psx_brA_BFC02170 == psx_brB_BFC02170); /* 0xBFC02174: AFA20024 sw $v0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC02174u); return; } g_debug_last_store_pc = 0xBFC02174u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC02170) goto label_BFC0218C; @@ -8384,6 +8666,10 @@ void func_1FC022C0(CPUState* cpu) { default: break; } } + int psx_taken_BFC022E0 = 0; + int psx_taken_BFC022E8 = 0; + int psx_taken_BFC022F4 = 0; + int psx_taken_BFC02304 = 0; label_BFC022C0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -8407,7 +8693,7 @@ label_BFC022C0: cpu->gpr[15] = cpu->gpr[2] & 0x4u; /* 0xBFC022E0: 11E00003 beq $t7, $zero, 0xBFC022F0 */ uint32_t psx_brA_BFC022E0 = cpu->gpr[15]; uint32_t psx_brB_BFC022E0 = cpu->gpr[0]; - int psx_taken_BFC022E0 = (psx_brA_BFC022E0 == psx_brB_BFC022E0); + psx_taken_BFC022E0 = (psx_brA_BFC022E0 == psx_brB_BFC022E0); /* 0xBFC022E4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC022E4u); return; } g_debug_last_store_pc = 0xBFC022E4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC022E0) goto label_BFC022F0; @@ -8418,7 +8704,7 @@ label_BFC022E8: psx_check_interrupts(cpu); /* 0xBFC022E8: 1000000A beq $zero, $zero, 0xBFC02314 */ uint32_t psx_brA_BFC022E8 = cpu->gpr[0]; uint32_t psx_brB_BFC022E8 = cpu->gpr[0]; - int psx_taken_BFC022E8 = (psx_brA_BFC022E8 == psx_brB_BFC022E8); + psx_taken_BFC022E8 = (psx_brA_BFC022E8 == psx_brB_BFC022E8); /* 0xBFC022EC: 2483FFD0 addiu $v1, $a0, -48 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[4] + (-48)); if (psx_taken_BFC022E8) goto label_BFC02314; @@ -8431,7 +8717,7 @@ label_BFC022F0: cpu->gpr[24] = cpu->gpr[2] & 0x3u; /* 0xBFC022F4: 13000006 beq $t8, $zero, 0xBFC02310 */ uint32_t psx_brA_BFC022F4 = cpu->gpr[24]; uint32_t psx_brB_BFC022F4 = cpu->gpr[0]; - int psx_taken_BFC022F4 = (psx_brA_BFC022F4 == psx_brB_BFC022F4); + psx_taken_BFC022F4 = (psx_brA_BFC022F4 == psx_brB_BFC022F4); /* 0xBFC022F8: 3C030098 lui $v1, 0x98 */ cpu->gpr[3] = 0x00980000u; if (psx_taken_BFC022F4) goto label_BFC02310; @@ -8452,7 +8738,7 @@ label_BFC02304: psx_check_interrupts(cpu); /* 0xBFC02304: 10000003 beq $zero, $zero, 0xBFC02314 */ uint32_t psx_brA_BFC02304 = cpu->gpr[0]; uint32_t psx_brB_BFC02304 = cpu->gpr[0]; - int psx_taken_BFC02304 = (psx_brA_BFC02304 == psx_brB_BFC02304); + psx_taken_BFC02304 = (psx_brA_BFC02304 == psx_brB_BFC02304); /* 0xBFC02308: 2443FFA9 addiu $v1, $v0, -87 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[2] + (-87)); if (psx_taken_BFC02304) goto label_BFC02314; @@ -8536,6 +8822,23 @@ void func_1FC025B0(CPUState* cpu) { default: break; } } + int psx_taken_BFC025D0 = 0; + int psx_taken_BFC025D8 = 0; + int psx_taken_BFC02604 = 0; + int psx_taken_BFC02628 = 0; + int psx_taken_BFC02630 = 0; + int psx_taken_BFC02638 = 0; + int psx_taken_BFC02644 = 0; + int psx_taken_BFC02654 = 0; + int psx_taken_BFC02668 = 0; + int psx_taken_BFC02674 = 0; + int psx_taken_BFC0267C = 0; + int psx_taken_BFC02684 = 0; + int psx_taken_BFC02694 = 0; + int psx_taken_BFC026A4 = 0; + int psx_taken_BFC026B8 = 0; + int psx_taken_BFC026DC = 0; + int psx_taken_BFC02704 = 0; label_BFC025B0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -8559,7 +8862,7 @@ label_BFC025B0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC025CCu); return; } g_debug_last_store_pc = 0xBFC025CCu; cpu->write_word(psx_addr, cpu->gpr[5]); } /* 0xBFC025D0: 16200003 bne $s1, $zero, 0xBFC025E0 */ uint32_t psx_brA_BFC025D0 = cpu->gpr[17]; uint32_t psx_brB_BFC025D0 = cpu->gpr[0]; - int psx_taken_BFC025D0 = (psx_brA_BFC025D0 != psx_brB_BFC025D0); + psx_taken_BFC025D0 = (psx_brA_BFC025D0 != psx_brB_BFC025D0); /* 0xBFC025D4: 00009021 addu $s2, $zero, $zero */ cpu->gpr[18] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC025D0) goto label_BFC025E0; @@ -8570,7 +8873,7 @@ label_BFC025D8: psx_check_interrupts(cpu); /* 0xBFC025D8: 10000051 beq $zero, $zero, 0xBFC02720 */ uint32_t psx_brA_BFC025D8 = cpu->gpr[0]; uint32_t psx_brB_BFC025D8 = cpu->gpr[0]; - int psx_taken_BFC025D8 = (psx_brA_BFC025D8 == psx_brB_BFC025D8); + psx_taken_BFC025D8 = (psx_brA_BFC025D8 == psx_brB_BFC025D8); /* 0xBFC025DC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC025D8) goto label_BFC02720; @@ -8599,7 +8902,7 @@ label_BFC025E0: cpu->gpr[25] = cpu->gpr[24] & 0x8u; /* 0xBFC02604: 1320000A beq $t9, $zero, 0xBFC02630 */ uint32_t psx_brA_BFC02604 = cpu->gpr[25]; uint32_t psx_brB_BFC02604 = cpu->gpr[0]; - int psx_taken_BFC02604 = (psx_brA_BFC02604 == psx_brB_BFC02604); + psx_taken_BFC02604 = (psx_brA_BFC02604 == psx_brB_BFC02604); /* 0xBFC02608: 2A610002 slti $at, $s3, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (2) ? 1 : 0); if (psx_taken_BFC02604) goto label_BFC02630; @@ -8624,7 +8927,7 @@ label_BFC0260C: cpu->gpr[11] = cpu->gpr[10] & 0x8u; /* 0xBFC02628: 1560FFF8 bne $t3, $zero, 0xBFC0260C */ uint32_t psx_brA_BFC02628 = cpu->gpr[11]; uint32_t psx_brB_BFC02628 = cpu->gpr[0]; - int psx_taken_BFC02628 = (psx_brA_BFC02628 != psx_brB_BFC02628); + psx_taken_BFC02628 = (psx_brA_BFC02628 != psx_brB_BFC02628); /* 0xBFC0262C: 2A610002 slti $at, $s3, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (2) ? 1 : 0); if (psx_taken_BFC02628) goto label_BFC0260C; @@ -8635,7 +8938,7 @@ label_BFC02630: psx_check_interrupts(cpu); /* 0xBFC02630: 14200003 bne $at, $zero, 0xBFC02640 */ uint32_t psx_brA_BFC02630 = cpu->gpr[1]; uint32_t psx_brB_BFC02630 = cpu->gpr[0]; - int psx_taken_BFC02630 = (psx_brA_BFC02630 != psx_brB_BFC02630); + psx_taken_BFC02630 = (psx_brA_BFC02630 != psx_brB_BFC02630); /* 0xBFC02634: 2A610025 slti $at, $s3, 37 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (37) ? 1 : 0); if (psx_taken_BFC02630) goto label_BFC02640; @@ -8646,7 +8949,7 @@ label_BFC02638: psx_check_interrupts(cpu); /* 0xBFC02638: 14200002 bne $at, $zero, 0xBFC02644 */ uint32_t psx_brA_BFC02638 = cpu->gpr[1]; uint32_t psx_brB_BFC02638 = cpu->gpr[0]; - int psx_taken_BFC02638 = (psx_brA_BFC02638 != psx_brB_BFC02638); + psx_taken_BFC02638 = (psx_brA_BFC02638 != psx_brB_BFC02638); /* 0xBFC0263C: 00000000 nop */ /* nop */ if (psx_taken_BFC02638) goto label_BFC02644; @@ -8664,7 +8967,7 @@ label_BFC02644: psx_check_interrupts(cpu); /* 0xBFC02644: 16600003 bne $s3, $zero, 0xBFC02654 */ uint32_t psx_brA_BFC02644 = cpu->gpr[19]; uint32_t psx_brB_BFC02644 = cpu->gpr[0]; - int psx_taken_BFC02644 = (psx_brA_BFC02644 != psx_brB_BFC02644); + psx_taken_BFC02644 = (psx_brA_BFC02644 != psx_brB_BFC02644); /* 0xBFC02648: 24010030 addiu $at, $zero, 48 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); if (psx_taken_BFC02644) goto label_BFC02654; @@ -8684,7 +8987,7 @@ label_BFC02654: psx_check_interrupts(cpu); /* 0xBFC02654: 14810015 bne $a0, $at, 0xBFC026AC */ uint32_t psx_brA_BFC02654 = cpu->gpr[4]; uint32_t psx_brB_BFC02654 = cpu->gpr[1]; - int psx_taken_BFC02654 = (psx_brA_BFC02654 != psx_brB_BFC02654); + psx_taken_BFC02654 = (psx_brA_BFC02654 != psx_brB_BFC02654); /* 0xBFC02658: 00000000 nop */ /* nop */ if (psx_taken_BFC02654) goto label_BFC026AC; @@ -8701,7 +9004,7 @@ label_BFC0265C: cpu->gpr[2] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC02668: 1041000C beq $v0, $at, 0xBFC0269C */ uint32_t psx_brA_BFC02668 = cpu->gpr[2]; uint32_t psx_brB_BFC02668 = cpu->gpr[1]; - int psx_taken_BFC02668 = (psx_brA_BFC02668 == psx_brB_BFC02668); + psx_taken_BFC02668 = (psx_brA_BFC02668 == psx_brB_BFC02668); /* 0xBFC0266C: 26310001 addiu $s1, $s1, 1 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); if (psx_taken_BFC02668) goto label_BFC0269C; @@ -8714,7 +9017,7 @@ label_BFC02670: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (88)); /* 0xBFC02674: 10410005 beq $v0, $at, 0xBFC0268C */ uint32_t psx_brA_BFC02674 = cpu->gpr[2]; uint32_t psx_brB_BFC02674 = cpu->gpr[1]; - int psx_taken_BFC02674 = (psx_brA_BFC02674 == psx_brB_BFC02674); + psx_taken_BFC02674 = (psx_brA_BFC02674 == psx_brB_BFC02674); /* 0xBFC02678: 24010062 addiu $at, $zero, 98 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (98)); if (psx_taken_BFC02674) goto label_BFC0268C; @@ -8725,7 +9028,7 @@ label_BFC0267C: psx_check_interrupts(cpu); /* 0xBFC0267C: 10410007 beq $v0, $at, 0xBFC0269C */ uint32_t psx_brA_BFC0267C = cpu->gpr[2]; uint32_t psx_brB_BFC0267C = cpu->gpr[1]; - int psx_taken_BFC0267C = (psx_brA_BFC0267C == psx_brB_BFC0267C); + psx_taken_BFC0267C = (psx_brA_BFC0267C == psx_brB_BFC0267C); /* 0xBFC02680: 24010078 addiu $at, $zero, 120 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (120)); if (psx_taken_BFC0267C) goto label_BFC0269C; @@ -8736,7 +9039,7 @@ label_BFC02684: psx_check_interrupts(cpu); /* 0xBFC02684: 14410012 bne $v0, $at, 0xBFC026D0 */ uint32_t psx_brA_BFC02684 = cpu->gpr[2]; uint32_t psx_brB_BFC02684 = cpu->gpr[1]; - int psx_taken_BFC02684 = (psx_brA_BFC02684 != psx_brB_BFC02684); + psx_taken_BFC02684 = (psx_brA_BFC02684 != psx_brB_BFC02684); /* 0xBFC02688: 00000000 nop */ /* nop */ if (psx_taken_BFC02684) goto label_BFC026D0; @@ -8751,7 +9054,7 @@ label_BFC0268C: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC02694: 1000000E beq $zero, $zero, 0xBFC026D0 */ uint32_t psx_brA_BFC02694 = cpu->gpr[0]; uint32_t psx_brB_BFC02694 = cpu->gpr[0]; - int psx_taken_BFC02694 = (psx_brA_BFC02694 == psx_brB_BFC02694); + psx_taken_BFC02694 = (psx_brA_BFC02694 == psx_brB_BFC02694); /* 0xBFC02698: 24130010 addiu $s3, $zero, 16 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); if (psx_taken_BFC02694) goto label_BFC026D0; @@ -8766,7 +9069,7 @@ label_BFC0269C: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC026A4: 1000000A beq $zero, $zero, 0xBFC026D0 */ uint32_t psx_brA_BFC026A4 = cpu->gpr[0]; uint32_t psx_brB_BFC026A4 = cpu->gpr[0]; - int psx_taken_BFC026A4 = (psx_brA_BFC026A4 == psx_brB_BFC026A4); + psx_taken_BFC026A4 = (psx_brA_BFC026A4 == psx_brB_BFC026A4); /* 0xBFC026A8: 24130002 addiu $s3, $zero, 2 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC026A4) goto label_BFC026D0; @@ -8789,7 +9092,7 @@ label_BFC026B4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (79)); /* 0xBFC026B8: 14410003 bne $v0, $at, 0xBFC026C8 */ uint32_t psx_brA_BFC026B8 = cpu->gpr[2]; uint32_t psx_brB_BFC026B8 = cpu->gpr[1]; - int psx_taken_BFC026B8 = (psx_brA_BFC026B8 != psx_brB_BFC026B8); + psx_taken_BFC026B8 = (psx_brA_BFC026B8 != psx_brB_BFC026B8); /* 0xBFC026BC: 00000000 nop */ /* nop */ if (psx_taken_BFC026B8) goto label_BFC026C8; @@ -8830,7 +9133,7 @@ label_BFC026D8: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[19] ? 1 : 0); /* 0xBFC026DC: 1020000B beq $at, $zero, 0xBFC0270C */ uint32_t psx_brA_BFC026DC = cpu->gpr[1]; uint32_t psx_brB_BFC026DC = cpu->gpr[0]; - int psx_taken_BFC026DC = (psx_brA_BFC026DC == psx_brB_BFC026DC); + psx_taken_BFC026DC = (psx_brA_BFC026DC == psx_brB_BFC026DC); /* 0xBFC026E0: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC026DC) goto label_BFC0270C; @@ -8863,7 +9166,7 @@ label_BFC02700: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[19] ? 1 : 0); /* 0xBFC02704: 1420FFF7 bne $at, $zero, 0xBFC026E4 */ uint32_t psx_brA_BFC02704 = cpu->gpr[1]; uint32_t psx_brB_BFC02704 = cpu->gpr[0]; - int psx_taken_BFC02704 = (psx_brA_BFC02704 != psx_brB_BFC02704); + psx_taken_BFC02704 = (psx_brA_BFC02704 != psx_brB_BFC02704); /* 0xBFC02708: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC02704) goto label_BFC026E4; @@ -8913,6 +9216,26 @@ void func_1FC02738(CPUState* cpu) { default: break; } } + int psx_taken_BFC02760 = 0; + int psx_taken_BFC02768 = 0; + int psx_taken_BFC02794 = 0; + int psx_taken_BFC027B8 = 0; + int psx_taken_BFC027C4 = 0; + int psx_taken_BFC027D4 = 0; + int psx_taken_BFC027E0 = 0; + int psx_taken_BFC027E8 = 0; + int psx_taken_BFC027F4 = 0; + int psx_taken_BFC02804 = 0; + int psx_taken_BFC02818 = 0; + int psx_taken_BFC02824 = 0; + int psx_taken_BFC0282C = 0; + int psx_taken_BFC02834 = 0; + int psx_taken_BFC02844 = 0; + int psx_taken_BFC02854 = 0; + int psx_taken_BFC02868 = 0; + int psx_taken_BFC0288C = 0; + int psx_taken_BFC028A0 = 0; + int psx_taken_BFC028D4 = 0; label_BFC02738: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -8940,7 +9263,7 @@ label_BFC02738: cpu->gpr[20] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC02760: 16000003 bne $s0, $zero, 0xBFC02770 */ uint32_t psx_brA_BFC02760 = cpu->gpr[16]; uint32_t psx_brB_BFC02760 = cpu->gpr[0]; - int psx_taken_BFC02760 = (psx_brA_BFC02760 != psx_brB_BFC02760); + psx_taken_BFC02760 = (psx_brA_BFC02760 != psx_brB_BFC02760); /* 0xBFC02764: 00009021 addu $s2, $zero, $zero */ cpu->gpr[18] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC02760) goto label_BFC02770; @@ -8951,7 +9274,7 @@ label_BFC02768: psx_check_interrupts(cpu); /* 0xBFC02768: 10000064 beq $zero, $zero, 0xBFC028FC */ uint32_t psx_brA_BFC02768 = cpu->gpr[0]; uint32_t psx_brB_BFC02768 = cpu->gpr[0]; - int psx_taken_BFC02768 = (psx_brA_BFC02768 == psx_brB_BFC02768); + psx_taken_BFC02768 = (psx_brA_BFC02768 == psx_brB_BFC02768); /* 0xBFC0276C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC02768) goto label_BFC028FC; @@ -8980,7 +9303,7 @@ label_BFC02770: cpu->gpr[25] = cpu->gpr[24] & 0x8u; /* 0xBFC02794: 1320000A beq $t9, $zero, 0xBFC027C0 */ uint32_t psx_brA_BFC02794 = cpu->gpr[25]; uint32_t psx_brB_BFC02794 = cpu->gpr[0]; - int psx_taken_BFC02794 = (psx_brA_BFC02794 == psx_brB_BFC02794); + psx_taken_BFC02794 = (psx_brA_BFC02794 == psx_brB_BFC02794); /* 0xBFC02798: 00000000 nop */ /* nop */ if (psx_taken_BFC02794) goto label_BFC027C0; @@ -9005,7 +9328,7 @@ label_BFC0279C: cpu->gpr[11] = cpu->gpr[10] & 0x8u; /* 0xBFC027B8: 1560FFF8 bne $t3, $zero, 0xBFC0279C */ uint32_t psx_brA_BFC027B8 = cpu->gpr[11]; uint32_t psx_brB_BFC027B8 = cpu->gpr[0]; - int psx_taken_BFC027B8 = (psx_brA_BFC027B8 != psx_brB_BFC027B8); + psx_taken_BFC027B8 = (psx_brA_BFC027B8 != psx_brB_BFC027B8); /* 0xBFC027BC: 00000000 nop */ /* nop */ if (psx_taken_BFC027B8) goto label_BFC0279C; @@ -9018,7 +9341,7 @@ label_BFC027C0: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (45)); /* 0xBFC027C4: 14440006 bne $v0, $a0, 0xBFC027E0 */ uint32_t psx_brA_BFC027C4 = cpu->gpr[2]; uint32_t psx_brB_BFC027C4 = cpu->gpr[4]; - int psx_taken_BFC027C4 = (psx_brA_BFC027C4 != psx_brB_BFC027C4); + psx_taken_BFC027C4 = (psx_brA_BFC027C4 != psx_brB_BFC027C4); /* 0xBFC027C8: 2E610002 sltiu $at, $s3, 2 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[19] < 0x00000002u ? 1 : 0); if (psx_taken_BFC027C4) goto label_BFC027E0; @@ -9033,7 +9356,7 @@ label_BFC027CC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC027D4: 1044FFFD beq $v0, $a0, 0xBFC027CC */ uint32_t psx_brA_BFC027D4 = cpu->gpr[2]; uint32_t psx_brB_BFC027D4 = cpu->gpr[4]; - int psx_taken_BFC027D4 = (psx_brA_BFC027D4 == psx_brB_BFC027D4); + psx_taken_BFC027D4 = (psx_brA_BFC027D4 == psx_brB_BFC027D4); /* 0xBFC027D8: 0014A023 subu $s4, $zero, $s4 */ cpu->gpr[20] = cpu->gpr[0] - cpu->gpr[20]; if (psx_taken_BFC027D4) goto label_BFC027CC; @@ -9051,7 +9374,7 @@ label_BFC027E0: psx_check_interrupts(cpu); /* 0xBFC027E0: 14200003 bne $at, $zero, 0xBFC027F0 */ uint32_t psx_brA_BFC027E0 = cpu->gpr[1]; uint32_t psx_brB_BFC027E0 = cpu->gpr[0]; - int psx_taken_BFC027E0 = (psx_brA_BFC027E0 != psx_brB_BFC027E0); + psx_taken_BFC027E0 = (psx_brA_BFC027E0 != psx_brB_BFC027E0); /* 0xBFC027E4: 2E610025 sltiu $at, $s3, 37 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[19] < 0x00000025u ? 1 : 0); if (psx_taken_BFC027E0) goto label_BFC027F0; @@ -9062,7 +9385,7 @@ label_BFC027E8: psx_check_interrupts(cpu); /* 0xBFC027E8: 14200002 bne $at, $zero, 0xBFC027F4 */ uint32_t psx_brA_BFC027E8 = cpu->gpr[1]; uint32_t psx_brB_BFC027E8 = cpu->gpr[0]; - int psx_taken_BFC027E8 = (psx_brA_BFC027E8 != psx_brB_BFC027E8); + psx_taken_BFC027E8 = (psx_brA_BFC027E8 != psx_brB_BFC027E8); /* 0xBFC027EC: 00000000 nop */ /* nop */ if (psx_taken_BFC027E8) goto label_BFC027F4; @@ -9080,7 +9403,7 @@ label_BFC027F4: psx_check_interrupts(cpu); /* 0xBFC027F4: 16600003 bne $s3, $zero, 0xBFC02804 */ uint32_t psx_brA_BFC027F4 = cpu->gpr[19]; uint32_t psx_brB_BFC027F4 = cpu->gpr[0]; - int psx_taken_BFC027F4 = (psx_brA_BFC027F4 != psx_brB_BFC027F4); + psx_taken_BFC027F4 = (psx_brA_BFC027F4 != psx_brB_BFC027F4); /* 0xBFC027F8: 24010030 addiu $at, $zero, 48 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); if (psx_taken_BFC027F4) goto label_BFC02804; @@ -9100,7 +9423,7 @@ label_BFC02804: psx_check_interrupts(cpu); /* 0xBFC02804: 14810015 bne $a0, $at, 0xBFC0285C */ uint32_t psx_brA_BFC02804 = cpu->gpr[4]; uint32_t psx_brB_BFC02804 = cpu->gpr[1]; - int psx_taken_BFC02804 = (psx_brA_BFC02804 != psx_brB_BFC02804); + psx_taken_BFC02804 = (psx_brA_BFC02804 != psx_brB_BFC02804); /* 0xBFC02808: 00000000 nop */ /* nop */ if (psx_taken_BFC02804) goto label_BFC0285C; @@ -9117,7 +9440,7 @@ label_BFC0280C: cpu->gpr[2] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC02818: 1041000C beq $v0, $at, 0xBFC0284C */ uint32_t psx_brA_BFC02818 = cpu->gpr[2]; uint32_t psx_brB_BFC02818 = cpu->gpr[1]; - int psx_taken_BFC02818 = (psx_brA_BFC02818 == psx_brB_BFC02818); + psx_taken_BFC02818 = (psx_brA_BFC02818 == psx_brB_BFC02818); /* 0xBFC0281C: 26100001 addiu $s0, $s0, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); if (psx_taken_BFC02818) goto label_BFC0284C; @@ -9130,7 +9453,7 @@ label_BFC02820: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (88)); /* 0xBFC02824: 10410005 beq $v0, $at, 0xBFC0283C */ uint32_t psx_brA_BFC02824 = cpu->gpr[2]; uint32_t psx_brB_BFC02824 = cpu->gpr[1]; - int psx_taken_BFC02824 = (psx_brA_BFC02824 == psx_brB_BFC02824); + psx_taken_BFC02824 = (psx_brA_BFC02824 == psx_brB_BFC02824); /* 0xBFC02828: 24010062 addiu $at, $zero, 98 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (98)); if (psx_taken_BFC02824) goto label_BFC0283C; @@ -9141,7 +9464,7 @@ label_BFC0282C: psx_check_interrupts(cpu); /* 0xBFC0282C: 10410007 beq $v0, $at, 0xBFC0284C */ uint32_t psx_brA_BFC0282C = cpu->gpr[2]; uint32_t psx_brB_BFC0282C = cpu->gpr[1]; - int psx_taken_BFC0282C = (psx_brA_BFC0282C == psx_brB_BFC0282C); + psx_taken_BFC0282C = (psx_brA_BFC0282C == psx_brB_BFC0282C); /* 0xBFC02830: 24010078 addiu $at, $zero, 120 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (120)); if (psx_taken_BFC0282C) goto label_BFC0284C; @@ -9152,7 +9475,7 @@ label_BFC02834: psx_check_interrupts(cpu); /* 0xBFC02834: 14410012 bne $v0, $at, 0xBFC02880 */ uint32_t psx_brA_BFC02834 = cpu->gpr[2]; uint32_t psx_brB_BFC02834 = cpu->gpr[1]; - int psx_taken_BFC02834 = (psx_brA_BFC02834 != psx_brB_BFC02834); + psx_taken_BFC02834 = (psx_brA_BFC02834 != psx_brB_BFC02834); /* 0xBFC02838: 00000000 nop */ /* nop */ if (psx_taken_BFC02834) goto label_BFC02880; @@ -9167,7 +9490,7 @@ label_BFC0283C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC02844: 1000000E beq $zero, $zero, 0xBFC02880 */ uint32_t psx_brA_BFC02844 = cpu->gpr[0]; uint32_t psx_brB_BFC02844 = cpu->gpr[0]; - int psx_taken_BFC02844 = (psx_brA_BFC02844 == psx_brB_BFC02844); + psx_taken_BFC02844 = (psx_brA_BFC02844 == psx_brB_BFC02844); /* 0xBFC02848: 24130010 addiu $s3, $zero, 16 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); if (psx_taken_BFC02844) goto label_BFC02880; @@ -9182,7 +9505,7 @@ label_BFC0284C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC02854: 1000000A beq $zero, $zero, 0xBFC02880 */ uint32_t psx_brA_BFC02854 = cpu->gpr[0]; uint32_t psx_brB_BFC02854 = cpu->gpr[0]; - int psx_taken_BFC02854 = (psx_brA_BFC02854 == psx_brB_BFC02854); + psx_taken_BFC02854 = (psx_brA_BFC02854 == psx_brB_BFC02854); /* 0xBFC02858: 24130002 addiu $s3, $zero, 2 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC02854) goto label_BFC02880; @@ -9205,7 +9528,7 @@ label_BFC02864: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (79)); /* 0xBFC02868: 14410003 bne $v0, $at, 0xBFC02878 */ uint32_t psx_brA_BFC02868 = cpu->gpr[2]; uint32_t psx_brB_BFC02868 = cpu->gpr[1]; - int psx_taken_BFC02868 = (psx_brA_BFC02868 != psx_brB_BFC02868); + psx_taken_BFC02868 = (psx_brA_BFC02868 != psx_brB_BFC02868); /* 0xBFC0286C: 00000000 nop */ /* nop */ if (psx_taken_BFC02868) goto label_BFC02878; @@ -9246,7 +9569,7 @@ label_BFC02888: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[19] ? 1 : 0); /* 0xBFC0288C: 10200013 beq $at, $zero, 0xBFC028DC */ uint32_t psx_brA_BFC0288C = cpu->gpr[1]; uint32_t psx_brB_BFC0288C = cpu->gpr[0]; - int psx_taken_BFC0288C = (psx_brA_BFC0288C == psx_brB_BFC0288C); + psx_taken_BFC0288C = (psx_brA_BFC0288C == psx_brB_BFC0288C); /* 0xBFC02890: 00408821 addu $s1, $v0, $zero */ cpu->gpr[17] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0288C) goto label_BFC028DC; @@ -9263,7 +9586,7 @@ label_BFC02894: cpu->gpr[3] = cpu->lo; /* 0xBFC028A0: 16600002 bne $s3, $zero, 0xBFC028AC */ uint32_t psx_brA_BFC028A0 = cpu->gpr[19]; uint32_t psx_brB_BFC028A0 = cpu->gpr[0]; - int psx_taken_BFC028A0 = (psx_brA_BFC028A0 != psx_brB_BFC028A0); + psx_taken_BFC028A0 = (psx_brA_BFC028A0 != psx_brB_BFC028A0); /* 0xBFC028A4: 00000000 nop */ /* nop */ if (psx_taken_BFC028A0) goto label_BFC028AC; @@ -9307,7 +9630,7 @@ label_BFC028CC: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[19] ? 1 : 0); /* 0xBFC028D4: 1420FFF5 bne $at, $zero, 0xBFC028AC */ uint32_t psx_brA_BFC028D4 = cpu->gpr[1]; uint32_t psx_brB_BFC028D4 = cpu->gpr[0]; - int psx_taken_BFC028D4 = (psx_brA_BFC028D4 != psx_brB_BFC028D4); + psx_taken_BFC028D4 = (psx_brA_BFC028D4 != psx_brB_BFC028D4); /* 0xBFC028D8: 00408821 addu $s1, $v0, $zero */ cpu->gpr[17] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC028D4) goto label_BFC028AC; @@ -9364,6 +9687,23 @@ void func_1FC02950(CPUState* cpu) { default: break; } } + int psx_taken_BFC02974 = 0; + int psx_taken_BFC0297C = 0; + int psx_taken_BFC029A8 = 0; + int psx_taken_BFC029CC = 0; + int psx_taken_BFC029D8 = 0; + int psx_taken_BFC029E8 = 0; + int psx_taken_BFC029F4 = 0; + int psx_taken_BFC02A04 = 0; + int psx_taken_BFC02A14 = 0; + int psx_taken_BFC02A24 = 0; + int psx_taken_BFC02A30 = 0; + int psx_taken_BFC02A38 = 0; + int psx_taken_BFC02A40 = 0; + int psx_taken_BFC02A48 = 0; + int psx_taken_BFC02A60 = 0; + int psx_taken_BFC02A80 = 0; + int psx_taken_BFC02AAC = 0; label_BFC02950: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -9389,7 +9729,7 @@ label_BFC02950: cpu->gpr[21] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); /* 0xBFC02974: 16000003 bne $s0, $zero, 0xBFC02984 */ uint32_t psx_brA_BFC02974 = cpu->gpr[16]; uint32_t psx_brB_BFC02974 = cpu->gpr[0]; - int psx_taken_BFC02974 = (psx_brA_BFC02974 != psx_brB_BFC02974); + psx_taken_BFC02974 = (psx_brA_BFC02974 != psx_brB_BFC02974); /* 0xBFC02978: 00009021 addu $s2, $zero, $zero */ cpu->gpr[18] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC02974) goto label_BFC02984; @@ -9400,7 +9740,7 @@ label_BFC0297C: psx_check_interrupts(cpu); /* 0xBFC0297C: 10000055 beq $zero, $zero, 0xBFC02AD4 */ uint32_t psx_brA_BFC0297C = cpu->gpr[0]; uint32_t psx_brB_BFC0297C = cpu->gpr[0]; - int psx_taken_BFC0297C = (psx_brA_BFC0297C == psx_brB_BFC0297C); + psx_taken_BFC0297C = (psx_brA_BFC0297C == psx_brB_BFC0297C); /* 0xBFC02980: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0297C) goto label_BFC02AD4; @@ -9429,7 +9769,7 @@ label_BFC02984: cpu->gpr[25] = cpu->gpr[24] & 0x8u; /* 0xBFC029A8: 1320000A beq $t9, $zero, 0xBFC029D4 */ uint32_t psx_brA_BFC029A8 = cpu->gpr[25]; uint32_t psx_brB_BFC029A8 = cpu->gpr[0]; - int psx_taken_BFC029A8 = (psx_brA_BFC029A8 == psx_brB_BFC029A8); + psx_taken_BFC029A8 = (psx_brA_BFC029A8 == psx_brB_BFC029A8); /* 0xBFC029AC: 00000000 nop */ /* nop */ if (psx_taken_BFC029A8) goto label_BFC029D4; @@ -9454,7 +9794,7 @@ label_BFC029B0: cpu->gpr[11] = cpu->gpr[10] & 0x8u; /* 0xBFC029CC: 1560FFF8 bne $t3, $zero, 0xBFC029B0 */ uint32_t psx_brA_BFC029CC = cpu->gpr[11]; uint32_t psx_brB_BFC029CC = cpu->gpr[0]; - int psx_taken_BFC029CC = (psx_brA_BFC029CC != psx_brB_BFC029CC); + psx_taken_BFC029CC = (psx_brA_BFC029CC != psx_brB_BFC029CC); /* 0xBFC029D0: 00000000 nop */ /* nop */ if (psx_taken_BFC029CC) goto label_BFC029B0; @@ -9467,7 +9807,7 @@ label_BFC029D4: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (45)); /* 0xBFC029D8: 14440006 bne $v0, $a0, 0xBFC029F4 */ uint32_t psx_brA_BFC029D8 = cpu->gpr[2]; uint32_t psx_brB_BFC029D8 = cpu->gpr[4]; - int psx_taken_BFC029D8 = (psx_brA_BFC029D8 != psx_brB_BFC029D8); + psx_taken_BFC029D8 = (psx_brA_BFC029D8 != psx_brB_BFC029D8); /* 0xBFC029DC: 24010030 addiu $at, $zero, 48 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); if (psx_taken_BFC029D8) goto label_BFC029F4; @@ -9482,7 +9822,7 @@ label_BFC029E0: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC029E8: 1044FFFD beq $v0, $a0, 0xBFC029E0 */ uint32_t psx_brA_BFC029E8 = cpu->gpr[2]; uint32_t psx_brB_BFC029E8 = cpu->gpr[4]; - int psx_taken_BFC029E8 = (psx_brA_BFC029E8 == psx_brB_BFC029E8); + psx_taken_BFC029E8 = (psx_brA_BFC029E8 == psx_brB_BFC029E8); /* 0xBFC029EC: 0016B023 subu $s6, $zero, $s6 */ cpu->gpr[22] = cpu->gpr[0] - cpu->gpr[22]; if (psx_taken_BFC029E8) goto label_BFC029E0; @@ -9500,7 +9840,7 @@ label_BFC029F4: psx_check_interrupts(cpu); /* 0xBFC029F4: 14810017 bne $a0, $at, 0xBFC02A54 */ uint32_t psx_brA_BFC029F4 = cpu->gpr[4]; uint32_t psx_brB_BFC029F4 = cpu->gpr[1]; - int psx_taken_BFC029F4 = (psx_brA_BFC029F4 != psx_brB_BFC029F4); + psx_taken_BFC029F4 = (psx_brA_BFC029F4 != psx_brB_BFC029F4); /* 0xBFC029F8: 00000000 nop */ /* nop */ if (psx_taken_BFC029F4) goto label_BFC02A54; @@ -9515,7 +9855,7 @@ label_BFC029FC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC02A04: 10000009 beq $zero, $zero, 0xBFC02A2C */ uint32_t psx_brA_BFC02A04 = cpu->gpr[0]; uint32_t psx_brB_BFC02A04 = cpu->gpr[0]; - int psx_taken_BFC02A04 = (psx_brA_BFC02A04 == psx_brB_BFC02A04); + psx_taken_BFC02A04 = (psx_brA_BFC02A04 == psx_brB_BFC02A04); /* 0xBFC02A08: 00801021 addu $v0, $a0, $zero */ cpu->gpr[2] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC02A04) goto label_BFC02A2C; @@ -9530,7 +9870,7 @@ label_BFC02A0C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC02A14: 1000000F beq $zero, $zero, 0xBFC02A54 */ uint32_t psx_brA_BFC02A14 = cpu->gpr[0]; uint32_t psx_brB_BFC02A14 = cpu->gpr[0]; - int psx_taken_BFC02A14 = (psx_brA_BFC02A14 == psx_brB_BFC02A14); + psx_taken_BFC02A14 = (psx_brA_BFC02A14 == psx_brB_BFC02A14); /* 0xBFC02A18: 24150010 addiu $s5, $zero, 16 */ cpu->gpr[21] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); if (psx_taken_BFC02A14) goto label_BFC02A54; @@ -9545,7 +9885,7 @@ label_BFC02A1C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC02A24: 1000000B beq $zero, $zero, 0xBFC02A54 */ uint32_t psx_brA_BFC02A24 = cpu->gpr[0]; uint32_t psx_brB_BFC02A24 = cpu->gpr[0]; - int psx_taken_BFC02A24 = (psx_brA_BFC02A24 == psx_brB_BFC02A24); + psx_taken_BFC02A24 = (psx_brA_BFC02A24 == psx_brB_BFC02A24); /* 0xBFC02A28: 24150002 addiu $s5, $zero, 2 */ cpu->gpr[21] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC02A24) goto label_BFC02A54; @@ -9558,7 +9898,7 @@ label_BFC02A2C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (66)); /* 0xBFC02A30: 1041FFFA beq $v0, $at, 0xBFC02A1C */ uint32_t psx_brA_BFC02A30 = cpu->gpr[2]; uint32_t psx_brB_BFC02A30 = cpu->gpr[1]; - int psx_taken_BFC02A30 = (psx_brA_BFC02A30 == psx_brB_BFC02A30); + psx_taken_BFC02A30 = (psx_brA_BFC02A30 == psx_brB_BFC02A30); /* 0xBFC02A34: 24010058 addiu $at, $zero, 88 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (88)); if (psx_taken_BFC02A30) goto label_BFC02A1C; @@ -9569,7 +9909,7 @@ label_BFC02A38: psx_check_interrupts(cpu); /* 0xBFC02A38: 1041FFF4 beq $v0, $at, 0xBFC02A0C */ uint32_t psx_brA_BFC02A38 = cpu->gpr[2]; uint32_t psx_brB_BFC02A38 = cpu->gpr[1]; - int psx_taken_BFC02A38 = (psx_brA_BFC02A38 == psx_brB_BFC02A38); + psx_taken_BFC02A38 = (psx_brA_BFC02A38 == psx_brB_BFC02A38); /* 0xBFC02A3C: 24010062 addiu $at, $zero, 98 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (98)); if (psx_taken_BFC02A38) goto label_BFC02A0C; @@ -9580,7 +9920,7 @@ label_BFC02A40: psx_check_interrupts(cpu); /* 0xBFC02A40: 1041FFF6 beq $v0, $at, 0xBFC02A1C */ uint32_t psx_brA_BFC02A40 = cpu->gpr[2]; uint32_t psx_brB_BFC02A40 = cpu->gpr[1]; - int psx_taken_BFC02A40 = (psx_brA_BFC02A40 == psx_brB_BFC02A40); + psx_taken_BFC02A40 = (psx_brA_BFC02A40 == psx_brB_BFC02A40); /* 0xBFC02A44: 24010078 addiu $at, $zero, 120 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (120)); if (psx_taken_BFC02A40) goto label_BFC02A1C; @@ -9591,7 +9931,7 @@ label_BFC02A48: psx_check_interrupts(cpu); /* 0xBFC02A48: 1041FFF0 beq $v0, $at, 0xBFC02A0C */ uint32_t psx_brA_BFC02A48 = cpu->gpr[2]; uint32_t psx_brB_BFC02A48 = cpu->gpr[1]; - int psx_taken_BFC02A48 = (psx_brA_BFC02A48 == psx_brB_BFC02A48); + psx_taken_BFC02A48 = (psx_brA_BFC02A48 == psx_brB_BFC02A48); /* 0xBFC02A4C: 00000000 nop */ /* nop */ if (psx_taken_BFC02A48) goto label_BFC02A0C; @@ -9621,7 +9961,7 @@ label_BFC02A5C: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[21] ? 1 : 0); /* 0xBFC02A60: 10200017 beq $at, $zero, 0xBFC02AC0 */ uint32_t psx_brA_BFC02A60 = cpu->gpr[1]; uint32_t psx_brB_BFC02A60 = cpu->gpr[0]; - int psx_taken_BFC02A60 = (psx_brA_BFC02A60 == psx_brB_BFC02A60); + psx_taken_BFC02A60 = (psx_brA_BFC02A60 == psx_brB_BFC02A60); /* 0xBFC02A64: 00408821 addu $s1, $v0, $zero */ cpu->gpr[17] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC02A60) goto label_BFC02AC0; @@ -9644,7 +9984,7 @@ label_BFC02A68: cpu->gpr[20] = cpu->lo; /* 0xBFC02A80: 16A00002 bne $s5, $zero, 0xBFC02A8C */ uint32_t psx_brA_BFC02A80 = cpu->gpr[21]; uint32_t psx_brB_BFC02A80 = cpu->gpr[0]; - int psx_taken_BFC02A80 = (psx_brA_BFC02A80 != psx_brB_BFC02A80); + psx_taken_BFC02A80 = (psx_brA_BFC02A80 != psx_brB_BFC02A80); /* 0xBFC02A84: 00000000 nop */ /* nop */ if (psx_taken_BFC02A80) goto label_BFC02A8C; @@ -9684,7 +10024,7 @@ label_BFC02AA8: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[21] ? 1 : 0); /* 0xBFC02AAC: 1420FFF7 bne $at, $zero, 0xBFC02A8C */ uint32_t psx_brA_BFC02AAC = cpu->gpr[1]; uint32_t psx_brB_BFC02AAC = cpu->gpr[0]; - int psx_taken_BFC02AAC = (psx_brA_BFC02AAC != psx_brB_BFC02AAC); + psx_taken_BFC02AAC = (psx_brA_BFC02AAC != psx_brB_BFC02AAC); /* 0xBFC02AB0: 00408821 addu $s1, $v0, $zero */ cpu->gpr[17] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC02AAC) goto label_BFC02A8C; @@ -9825,6 +10165,9 @@ label_BFC02B28: void func_1FC02B50(CPUState* cpu) { debug_server_log_call_entry(0x1FC02B50u); + int psx_taken_BFC02B50 = 0; + int psx_taken_BFC02B60 = 0; + int psx_taken_BFC02B78 = 0; label_BFC02B50: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -9832,7 +10175,7 @@ label_BFC02B50: psx_check_interrupts(cpu); /* 0xBFC02B50: 14800003 bne $a0, $zero, 0xBFC02B60 */ uint32_t psx_brA_BFC02B50 = cpu->gpr[4]; uint32_t psx_brB_BFC02B50 = cpu->gpr[0]; - int psx_taken_BFC02B50 = (psx_brA_BFC02B50 != psx_brB_BFC02B50); + psx_taken_BFC02B50 = (psx_brA_BFC02B50 != psx_brB_BFC02B50); /* 0xBFC02B54: 00000000 nop */ /* nop */ if (psx_taken_BFC02B50) goto label_BFC02B60; @@ -9852,7 +10195,7 @@ label_BFC02B60: psx_check_interrupts(cpu); /* 0xBFC02B60: 18C00007 blez $a2, 0xBFC02B80 */ uint32_t psx_brA_BFC02B60 = cpu->gpr[6]; - int psx_taken_BFC02B60 = ((int32_t)psx_brA_BFC02B60 <= 0); + psx_taken_BFC02B60 = ((int32_t)psx_brA_BFC02B60 <= 0); /* 0xBFC02B64: 00801821 addu $v1, $a0, $zero */ cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC02B60) goto label_BFC02B80; @@ -9871,7 +10214,7 @@ label_BFC02B68: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); /* 0xBFC02B78: 1CC0FFFB bgtz $a2, 0xBFC02B68 */ uint32_t psx_brA_BFC02B78 = cpu->gpr[6]; - int psx_taken_BFC02B78 = ((int32_t)psx_brA_BFC02B78 > 0); + psx_taken_BFC02B78 = ((int32_t)psx_brA_BFC02B78 > 0); /* 0xBFC02B7C: A08EFFFF sb $t6, -1($a0) */ g_debug_last_store_pc = 0xBFC02B7Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[4] + (-1)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC02B78) goto label_BFC02B68; @@ -9890,6 +10233,11 @@ label_BFC02B80: void func_1FC02CC0(CPUState* cpu) { debug_server_log_call_entry(0x1FC02CC0u); + int psx_taken_BFC02CC0 = 0; + int psx_taken_BFC02CC8 = 0; + int psx_taken_BFC02CDC = 0; + int psx_taken_BFC02CEC = 0; + int psx_taken_BFC02D00 = 0; label_BFC02CC0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -9897,7 +10245,7 @@ label_BFC02CC0: psx_check_interrupts(cpu); /* 0xBFC02CC0: 10800003 beq $a0, $zero, 0xBFC02CD0 */ uint32_t psx_brA_BFC02CC0 = cpu->gpr[4]; uint32_t psx_brB_BFC02CC0 = cpu->gpr[0]; - int psx_taken_BFC02CC0 = (psx_brA_BFC02CC0 == psx_brB_BFC02CC0); + psx_taken_BFC02CC0 = (psx_brA_BFC02CC0 == psx_brB_BFC02CC0); /* 0xBFC02CC4: 30A500FF andi $a1, $a1, 0xFF */ cpu->gpr[5] = cpu->gpr[5] & 0xFFu; if (psx_taken_BFC02CC0) goto label_BFC02CD0; @@ -9908,7 +10256,7 @@ label_BFC02CC8: psx_check_interrupts(cpu); /* 0xBFC02CC8: 1CC00004 bgtz $a2, 0xBFC02CDC */ uint32_t psx_brA_BFC02CC8 = cpu->gpr[6]; - int psx_taken_BFC02CC8 = ((int32_t)psx_brA_BFC02CC8 > 0); + psx_taken_BFC02CC8 = ((int32_t)psx_brA_BFC02CC8 > 0); /* 0xBFC02CCC: 24C6FFFF addiu $a2, $a2, -1 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); if (psx_taken_BFC02CC8) goto label_BFC02CDC; @@ -9928,7 +10276,7 @@ label_BFC02CDC: psx_check_interrupts(cpu); /* 0xBFC02CDC: 04C0000B bltz $a2, 0xBFC02D0C */ uint32_t psx_brA_BFC02CDC = cpu->gpr[6]; - int psx_taken_BFC02CDC = ((int32_t)psx_brA_BFC02CDC < 0); + psx_taken_BFC02CDC = ((int32_t)psx_brA_BFC02CDC < 0); /* 0xBFC02CE0: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC02CDC) goto label_BFC02D0C; @@ -9943,7 +10291,7 @@ label_BFC02CE4: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); /* 0xBFC02CEC: 14450004 bne $v0, $a1, 0xBFC02D00 */ uint32_t psx_brA_BFC02CEC = cpu->gpr[2]; uint32_t psx_brB_BFC02CEC = cpu->gpr[5]; - int psx_taken_BFC02CEC = (psx_brA_BFC02CEC != psx_brB_BFC02CEC); + psx_taken_BFC02CEC = (psx_brA_BFC02CEC != psx_brB_BFC02CEC); /* 0xBFC02CF0: 24C6FFFF addiu $a2, $a2, -1 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); if (psx_taken_BFC02CEC) goto label_BFC02D00; @@ -9963,7 +10311,7 @@ label_BFC02D00: psx_check_interrupts(cpu); /* 0xBFC02D00: 04C1FFF8 bgez $a2, 0xBFC02CE4 */ uint32_t psx_brA_BFC02D00 = cpu->gpr[6]; - int psx_taken_BFC02D00 = ((int32_t)psx_brA_BFC02D00 >= 0); + psx_taken_BFC02D00 = ((int32_t)psx_brA_BFC02D00 >= 0); /* 0xBFC02D04: 00000000 nop */ /* nop */ if (psx_taken_BFC02D00) goto label_BFC02CE4; @@ -9995,6 +10343,10 @@ void func_1FC02D20(CPUState* cpu) { default: break; } } + int psx_taken_BFC02D44 = 0; + int psx_taken_BFC02D64 = 0; + int psx_taken_BFC02D70 = 0; + int psx_taken_BFC02D7C = 0; label_BFC02D20: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -10020,7 +10372,7 @@ label_BFC02D20: cpu->gpr[20] = cpu->gpr[7] + cpu->gpr[0]; /* 0xBFC02D44: 06000011 bltz $s0, 0xBFC02D8C */ uint32_t psx_brA_BFC02D44 = cpu->gpr[16]; - int psx_taken_BFC02D44 = ((int32_t)psx_brA_BFC02D44 < 0); + psx_taken_BFC02D44 = ((int32_t)psx_brA_BFC02D44 < 0); /* 0xBFC02D48: AFBF0024 sw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC02D48u); return; } g_debug_last_store_pc = 0xBFC02D48u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC02D44) goto label_BFC02D8C; @@ -10054,7 +10406,7 @@ label_BFC02D64: psx_check_interrupts(cpu); /* 0xBFC02D64: 14400005 bne $v0, $zero, 0xBFC02D7C */ uint32_t psx_brA_BFC02D64 = cpu->gpr[2]; uint32_t psx_brB_BFC02D64 = cpu->gpr[0]; - int psx_taken_BFC02D64 = (psx_brA_BFC02D64 != psx_brB_BFC02D64); + psx_taken_BFC02D64 = (psx_brA_BFC02D64 != psx_brB_BFC02D64); /* 0xBFC02D68: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC02D64) goto label_BFC02D7C; @@ -10067,7 +10419,7 @@ label_BFC02D6C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC02D6Cu); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC02D70: 10000007 beq $zero, $zero, 0xBFC02D90 */ uint32_t psx_brA_BFC02D70 = cpu->gpr[0]; uint32_t psx_brB_BFC02D70 = cpu->gpr[0]; - int psx_taken_BFC02D70 = (psx_brA_BFC02D70 == psx_brB_BFC02D70); + psx_taken_BFC02D70 = (psx_brA_BFC02D70 == psx_brB_BFC02D70); /* 0xBFC02D74: 02201021 addu $v0, $s1, $zero */ cpu->gpr[2] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC02D70) goto label_BFC02D90; @@ -10085,7 +10437,7 @@ label_BFC02D7C: psx_check_interrupts(cpu); /* 0xBFC02D7C: 0601FFF6 bgez $s0, 0xBFC02D58 */ uint32_t psx_brA_BFC02D7C = cpu->gpr[16]; - int psx_taken_BFC02D7C = ((int32_t)psx_brA_BFC02D7C >= 0); + psx_taken_BFC02D7C = ((int32_t)psx_brA_BFC02D7C >= 0); /* 0xBFC02D80: 02348821 addu $s1, $s1, $s4 */ cpu->gpr[17] = cpu->gpr[17] + cpu->gpr[20]; if (psx_taken_BFC02D7C) goto label_BFC02D58; @@ -10137,6 +10489,14 @@ void func_1FC02DAC(CPUState* cpu) { default: break; } } + int psx_taken_BFC02DE0 = 0; + int psx_taken_BFC02DEC = 0; + int psx_taken_BFC02E04 = 0; + int psx_taken_BFC02E28 = 0; + int psx_taken_BFC02E30 = 0; + int psx_taken_BFC02E40 = 0; + int psx_taken_BFC02E60 = 0; + int psx_taken_BFC02E68 = 0; label_BFC02DAC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -10170,7 +10530,7 @@ label_BFC02DAC: cpu->gpr[17] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC02DE0: 1CC00004 bgtz $a2, 0xBFC02DF4 */ uint32_t psx_brA_BFC02DE0 = cpu->gpr[6]; - int psx_taken_BFC02DE0 = ((int32_t)psx_brA_BFC02DE0 > 0); + psx_taken_BFC02DE0 = ((int32_t)psx_brA_BFC02DE0 > 0); /* 0xBFC02DE4: 00C09021 addu $s2, $a2, $zero */ cpu->gpr[18] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC02DE0) goto label_BFC02DF4; @@ -10183,7 +10543,7 @@ label_BFC02DE8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC02DE8u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC02DEC: 10000016 beq $zero, $zero, 0xBFC02E48 */ uint32_t psx_brA_BFC02DEC = cpu->gpr[0]; uint32_t psx_brB_BFC02DEC = cpu->gpr[0]; - int psx_taken_BFC02DEC = (psx_brA_BFC02DEC == psx_brB_BFC02DEC); + psx_taken_BFC02DEC = (psx_brA_BFC02DEC == psx_brB_BFC02DEC); /* 0xBFC02DF0: 00000000 nop */ /* nop */ if (psx_taken_BFC02DEC) goto label_BFC02E48; @@ -10207,7 +10567,7 @@ label_BFC02DFC: cpu->gpr[16] = cpu->gpr[17] + cpu->gpr[18]; /* 0xBFC02E04: 06010002 bgez $s0, 0xBFC02E10 */ uint32_t psx_brA_BFC02E04 = cpu->gpr[16]; - int psx_taken_BFC02E04 = ((int32_t)psx_brA_BFC02E04 >= 0); + psx_taken_BFC02E04 = ((int32_t)psx_brA_BFC02E04 >= 0); /* 0xBFC02E08: 02000821 addu $at, $s0, $zero */ cpu->gpr[1] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC02E04) goto label_BFC02E10; @@ -10243,7 +10603,7 @@ label_BFC02E28: psx_check_interrupts(cpu); /* 0xBFC02E28: 04410003 bgez $v0, 0xBFC02E38 */ uint32_t psx_brA_BFC02E28 = cpu->gpr[2]; - int psx_taken_BFC02E28 = ((int32_t)psx_brA_BFC02E28 >= 0); + psx_taken_BFC02E28 = ((int32_t)psx_brA_BFC02E28 >= 0); /* 0xBFC02E2C: 00000000 nop */ /* nop */ if (psx_taken_BFC02E28) goto label_BFC02E38; @@ -10254,7 +10614,7 @@ label_BFC02E30: psx_check_interrupts(cpu); /* 0xBFC02E30: 10000002 beq $zero, $zero, 0xBFC02E3C */ uint32_t psx_brA_BFC02E30 = cpu->gpr[0]; uint32_t psx_brB_BFC02E30 = cpu->gpr[0]; - int psx_taken_BFC02E30 = (psx_brA_BFC02E30 == psx_brB_BFC02E30); + psx_taken_BFC02E30 = (psx_brA_BFC02E30 == psx_brB_BFC02E30); /* 0xBFC02E34: 26110001 addiu $s1, $s0, 1 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); if (psx_taken_BFC02E30) goto label_BFC02E3C; @@ -10274,7 +10634,7 @@ label_BFC02E3C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[18] ? 1 : 0); /* 0xBFC02E40: 1420FFEE bne $at, $zero, 0xBFC02DFC */ uint32_t psx_brA_BFC02E40 = cpu->gpr[1]; uint32_t psx_brB_BFC02E40 = cpu->gpr[0]; - int psx_taken_BFC02E40 = (psx_brA_BFC02E40 != psx_brB_BFC02E40); + psx_taken_BFC02E40 = (psx_brA_BFC02E40 != psx_brB_BFC02E40); /* 0xBFC02E44: 00000000 nop */ /* nop */ if (psx_taken_BFC02E40) goto label_BFC02DFC; @@ -10303,7 +10663,7 @@ label_BFC02E60: psx_check_interrupts(cpu); /* 0xBFC02E60: 14400004 bne $v0, $zero, 0xBFC02E74 */ uint32_t psx_brA_BFC02E60 = cpu->gpr[2]; uint32_t psx_brB_BFC02E60 = cpu->gpr[0]; - int psx_taken_BFC02E60 = (psx_brA_BFC02E60 != psx_brB_BFC02E60); + psx_taken_BFC02E60 = (psx_brA_BFC02E60 != psx_brB_BFC02E60); /* 0xBFC02E64: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC02E60) goto label_BFC02E74; @@ -10314,7 +10674,7 @@ label_BFC02E68: psx_check_interrupts(cpu); /* 0xBFC02E68: 10000002 beq $zero, $zero, 0xBFC02E74 */ uint32_t psx_brA_BFC02E68 = cpu->gpr[0]; uint32_t psx_brB_BFC02E68 = cpu->gpr[0]; - int psx_taken_BFC02E68 = (psx_brA_BFC02E68 == psx_brB_BFC02E68); + psx_taken_BFC02E68 = (psx_brA_BFC02E68 == psx_brB_BFC02E68); /* 0xBFC02E6C: 02001021 addu $v0, $s0, $zero */ cpu->gpr[2] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC02E68) goto label_BFC02E74; @@ -10354,6 +10714,7 @@ label_BFC02E74: void func_1FC02EA0(CPUState* cpu) { debug_server_log_call_entry(0x1FC02EA0u); + int psx_taken_BFC02EC0 = 0; label_BFC02EA0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -10377,7 +10738,7 @@ label_BFC02EA0: cpu->gpr[15] = cpu->gpr[14] & 0x2u; /* 0xBFC02EC0: 11E00004 beq $t7, $zero, 0xBFC02ED4 */ uint32_t psx_brA_BFC02EC0 = cpu->gpr[15]; uint32_t psx_brB_BFC02EC0 = cpu->gpr[0]; - int psx_taken_BFC02EC0 = (psx_brA_BFC02EC0 == psx_brB_BFC02EC0); + psx_taken_BFC02EC0 = (psx_brA_BFC02EC0 == psx_brB_BFC02EC0); /* 0xBFC02EC4: 00000000 nop */ /* nop */ if (psx_taken_BFC02EC0) goto label_BFC02ED4; @@ -10405,6 +10766,7 @@ label_BFC02ED4: void func_1FC02EDC(CPUState* cpu) { debug_server_log_call_entry(0x1FC02EDCu); + int psx_taken_BFC02EFC = 0; label_BFC02EDC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -10428,7 +10790,7 @@ label_BFC02EDC: cpu->gpr[15] = cpu->gpr[14] & 0x1u; /* 0xBFC02EFC: 11E00004 beq $t7, $zero, 0xBFC02F10 */ uint32_t psx_brA_BFC02EFC = cpu->gpr[15]; uint32_t psx_brB_BFC02EFC = cpu->gpr[0]; - int psx_taken_BFC02EFC = (psx_brA_BFC02EFC == psx_brB_BFC02EFC); + psx_taken_BFC02EFC = (psx_brA_BFC02EFC == psx_brB_BFC02EFC); /* 0xBFC02F00: 00000000 nop */ /* nop */ if (psx_taken_BFC02EFC) goto label_BFC02F10; @@ -10469,6 +10831,16 @@ void func_1FC02F20(CPUState* cpu) { default: break; } } + int psx_taken_BFC02F5C = 0; + int psx_taken_BFC02F68 = 0; + int psx_taken_BFC02F8C = 0; + int psx_taken_BFC02FD0 = 0; + int psx_taken_BFC02FD8 = 0; + int psx_taken_BFC02FE8 = 0; + int psx_taken_BFC03014 = 0; + int psx_taken_BFC0301C = 0; + int psx_taken_BFC03038 = 0; + int psx_taken_BFC03064 = 0; label_BFC02F20: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -10511,7 +10883,7 @@ label_BFC02F58: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[23] < (int32_t)cpu->gpr[21] ? 1 : 0); /* 0xBFC02F5C: 10200044 beq $at, $zero, 0xBFC03070 */ uint32_t psx_brA_BFC02F5C = cpu->gpr[1]; uint32_t psx_brB_BFC02F5C = cpu->gpr[0]; - int psx_taken_BFC02F5C = (psx_brA_BFC02F5C == psx_brB_BFC02F5C); + psx_taken_BFC02F5C = (psx_brA_BFC02F5C == psx_brB_BFC02F5C); /* 0xBFC02F60: 8FBF0034 lw $ra, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC02F60u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC02F5C) goto label_BFC03070; @@ -10524,7 +10896,7 @@ label_BFC02F64: cpu->gpr[4] = cpu->gpr[23] + cpu->gpr[21]; /* 0xBFC02F68: 04810002 bgez $a0, 0xBFC02F74 */ uint32_t psx_brA_BFC02F68 = cpu->gpr[4]; - int psx_taken_BFC02F68 = ((int32_t)psx_brA_BFC02F68 >= 0); + psx_taken_BFC02F68 = ((int32_t)psx_brA_BFC02F68 >= 0); /* 0xBFC02F6C: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC02F68) goto label_BFC02F74; @@ -10560,7 +10932,7 @@ label_BFC02F84: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[23] + (-1)); /* 0xBFC02F8C: 1420002C bne $at, $zero, 0xBFC03040 */ uint32_t psx_brA_BFC02F8C = cpu->gpr[1]; uint32_t psx_brB_BFC02F8C = cpu->gpr[0]; - int psx_taken_BFC02F8C = (psx_brA_BFC02F8C != psx_brB_BFC02F8C); + psx_taken_BFC02F8C = (psx_brA_BFC02F8C != psx_brB_BFC02F8C); /* 0xBFC02F90: 02A08021 addu $s0, $s5, $zero */ cpu->gpr[16] = cpu->gpr[21] + cpu->gpr[0]; if (psx_taken_BFC02F8C) goto label_BFC03040; @@ -10612,7 +10984,7 @@ label_BFC02FD0: psx_check_interrupts(cpu); /* 0xBFC02FD0: 04410003 bgez $v0, 0xBFC02FE0 */ uint32_t psx_brA_BFC02FD0 = cpu->gpr[2]; - int psx_taken_BFC02FD0 = ((int32_t)psx_brA_BFC02FD0 >= 0); + psx_taken_BFC02FD0 = ((int32_t)psx_brA_BFC02FD0 >= 0); /* 0xBFC02FD4: 0230082A slt $at, $s1, $s0 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[16] ? 1 : 0); if (psx_taken_BFC02FD0) goto label_BFC02FE0; @@ -10623,7 +10995,7 @@ label_BFC02FD8: psx_check_interrupts(cpu); /* 0xBFC02FD8: 1420FFF6 bne $at, $zero, 0xBFC02FB4 */ uint32_t psx_brA_BFC02FD8 = cpu->gpr[1]; uint32_t psx_brB_BFC02FD8 = cpu->gpr[0]; - int psx_taken_BFC02FD8 = (psx_brA_BFC02FD8 != psx_brB_BFC02FD8); + psx_taken_BFC02FD8 = (psx_brA_BFC02FD8 != psx_brB_BFC02FD8); /* 0xBFC02FDC: 00000000 nop */ /* nop */ if (psx_taken_BFC02FD8) goto label_BFC02FB4; @@ -10638,7 +11010,7 @@ label_BFC02FE0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[16] ? 1 : 0); /* 0xBFC02FE8: 1020000C beq $at, $zero, 0xBFC0301C */ uint32_t psx_brA_BFC02FE8 = cpu->gpr[1]; uint32_t psx_brB_BFC02FE8 = cpu->gpr[0]; - int psx_taken_BFC02FE8 = (psx_brA_BFC02FE8 == psx_brB_BFC02FE8); + psx_taken_BFC02FE8 = (psx_brA_BFC02FE8 == psx_brB_BFC02FE8); /* 0xBFC02FEC: 0230082A slt $at, $s1, $s0 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[16] ? 1 : 0); if (psx_taken_BFC02FE8) goto label_BFC0301C; @@ -10673,7 +11045,7 @@ label_BFC03014: psx_check_interrupts(cpu); /* 0xBFC03014: 1C40FFF2 bgtz $v0, 0xBFC02FE0 */ uint32_t psx_brA_BFC03014 = cpu->gpr[2]; - int psx_taken_BFC03014 = ((int32_t)psx_brA_BFC03014 > 0); + psx_taken_BFC03014 = ((int32_t)psx_brA_BFC03014 > 0); /* 0xBFC03018: 0230082A slt $at, $s1, $s0 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[16] ? 1 : 0); if (psx_taken_BFC03014) goto label_BFC02FE0; @@ -10684,7 +11056,7 @@ label_BFC0301C: psx_check_interrupts(cpu); /* 0xBFC0301C: 10200006 beq $at, $zero, 0xBFC03038 */ uint32_t psx_brA_BFC0301C = cpu->gpr[1]; uint32_t psx_brB_BFC0301C = cpu->gpr[0]; - int psx_taken_BFC0301C = (psx_brA_BFC0301C == psx_brB_BFC0301C); + psx_taken_BFC0301C = (psx_brA_BFC0301C == psx_brB_BFC0301C); /* 0xBFC03020: 0230082A slt $at, $s1, $s0 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[16] ? 1 : 0); if (psx_taken_BFC0301C) goto label_BFC03038; @@ -10716,7 +11088,7 @@ label_BFC03038: psx_check_interrupts(cpu); /* 0xBFC03038: 1420FFDE bne $at, $zero, 0xBFC02FB4 */ uint32_t psx_brA_BFC03038 = cpu->gpr[1]; uint32_t psx_brB_BFC03038 = cpu->gpr[0]; - int psx_taken_BFC03038 = (psx_brA_BFC03038 != psx_brB_BFC03038); + psx_taken_BFC03038 = (psx_brA_BFC03038 != psx_brB_BFC03038); /* 0xBFC0303C: 00000000 nop */ /* nop */ if (psx_taken_BFC03038) goto label_BFC02FB4; @@ -10757,7 +11129,7 @@ label_BFC03064: psx_check_interrupts(cpu); /* 0xBFC03064: 1000FFBC beq $zero, $zero, 0xBFC02F58 */ uint32_t psx_brA_BFC03064 = cpu->gpr[0]; uint32_t psx_brB_BFC03064 = cpu->gpr[0]; - int psx_taken_BFC03064 = (psx_brA_BFC03064 == psx_brB_BFC03064); + psx_taken_BFC03064 = (psx_brA_BFC03064 == psx_brB_BFC03064); /* 0xBFC03068: 26370001 addiu $s7, $s1, 1 */ cpu->gpr[23] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); if (psx_taken_BFC03064) goto label_BFC02F58; @@ -10807,6 +11179,7 @@ void func_1FC03098(CPUState* cpu) { default: break; } } + int psx_taken_BFC030C4 = 0; label_BFC03098: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -10842,7 +11215,7 @@ label_BFC030C0: cpu->gpr[1] = 0xA0010000u; /* 0xBFC030C4: 1040000B beq $v0, $zero, 0xBFC030F4 */ uint32_t psx_brA_BFC030C4 = cpu->gpr[2]; uint32_t psx_brB_BFC030C4 = cpu->gpr[0]; - int psx_taken_BFC030C4 = (psx_brA_BFC030C4 == psx_brB_BFC030C4); + psx_taken_BFC030C4 = (psx_brA_BFC030C4 == psx_brB_BFC030C4); /* 0xBFC030C8: AC229024 sw $v0, -28636($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28636)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC030C8u); return; } g_debug_last_store_pc = 0xBFC030C8u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC030C4) goto label_BFC030F4; @@ -10998,6 +11371,12 @@ label_BFC03178: void func_1FC03190(CPUState* cpu) { debug_server_log_call_entry(0x1FC03190u); + int psx_taken_BFC03190 = 0; + int psx_taken_BFC03198 = 0; + int psx_taken_BFC031B0 = 0; + int psx_taken_BFC031C0 = 0; + int psx_taken_BFC031D8 = 0; + int psx_taken_BFC031EC = 0; label_BFC03190: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -11005,7 +11384,7 @@ label_BFC03190: psx_check_interrupts(cpu); /* 0xBFC03190: 10800003 beq $a0, $zero, 0xBFC031A0 */ uint32_t psx_brA_BFC03190 = cpu->gpr[4]; uint32_t psx_brB_BFC03190 = cpu->gpr[0]; - int psx_taken_BFC03190 = (psx_brA_BFC03190 == psx_brB_BFC03190); + psx_taken_BFC03190 = (psx_brA_BFC03190 == psx_brB_BFC03190); /* 0xBFC03194: 00000000 nop */ /* nop */ if (psx_taken_BFC03190) goto label_BFC031A0; @@ -11016,7 +11395,7 @@ label_BFC03198: psx_check_interrupts(cpu); /* 0xBFC03198: 14A00003 bne $a1, $zero, 0xBFC031A8 */ uint32_t psx_brA_BFC03198 = cpu->gpr[5]; uint32_t psx_brB_BFC03198 = cpu->gpr[0]; - int psx_taken_BFC03198 = (psx_brA_BFC03198 != psx_brB_BFC03198); + psx_taken_BFC03198 = (psx_brA_BFC03198 != psx_brB_BFC03198); /* 0xBFC0319C: 00000000 nop */ /* nop */ if (psx_taken_BFC03198) goto label_BFC031A8; @@ -11040,7 +11419,7 @@ label_BFC031A8: cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC031B0: 10400005 beq $v0, $zero, 0xBFC031C8 */ uint32_t psx_brA_BFC031B0 = cpu->gpr[2]; uint32_t psx_brB_BFC031B0 = cpu->gpr[0]; - int psx_taken_BFC031B0 = (psx_brA_BFC031B0 == psx_brB_BFC031B0); + psx_taken_BFC031B0 = (psx_brA_BFC031B0 == psx_brB_BFC031B0); /* 0xBFC031B4: 24840001 addiu $a0, $a0, 1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); if (psx_taken_BFC031B0) goto label_BFC031C8; @@ -11055,7 +11434,7 @@ label_BFC031B8: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); /* 0xBFC031C0: 1440FFFD bne $v0, $zero, 0xBFC031B8 */ uint32_t psx_brA_BFC031C0 = cpu->gpr[2]; uint32_t psx_brB_BFC031C0 = cpu->gpr[0]; - int psx_taken_BFC031C0 = (psx_brA_BFC031C0 != psx_brB_BFC031C0); + psx_taken_BFC031C0 = (psx_brA_BFC031C0 != psx_brB_BFC031C0); /* 0xBFC031C4: 00000000 nop */ /* nop */ if (psx_taken_BFC031C0) goto label_BFC031B8; @@ -11074,7 +11453,7 @@ label_BFC031C8: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC031D8: 10400006 beq $v0, $zero, 0xBFC031F4 */ uint32_t psx_brA_BFC031D8 = cpu->gpr[2]; uint32_t psx_brB_BFC031D8 = cpu->gpr[0]; - int psx_taken_BFC031D8 = (psx_brA_BFC031D8 == psx_brB_BFC031D8); + psx_taken_BFC031D8 = (psx_brA_BFC031D8 == psx_brB_BFC031D8); /* 0xBFC031DC: A082FFFF sb $v0, -1($a0) */ g_debug_last_store_pc = 0xBFC031DCu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[4] + (-1)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC031D8) goto label_BFC031F4; @@ -11091,7 +11470,7 @@ label_BFC031E0: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC031EC: 1440FFFC bne $v0, $zero, 0xBFC031E0 */ uint32_t psx_brA_BFC031EC = cpu->gpr[2]; uint32_t psx_brB_BFC031EC = cpu->gpr[0]; - int psx_taken_BFC031EC = (psx_brA_BFC031EC != psx_brB_BFC031EC); + psx_taken_BFC031EC = (psx_brA_BFC031EC != psx_brB_BFC031EC); /* 0xBFC031F0: A082FFFF sb $v0, -1($a0) */ g_debug_last_store_pc = 0xBFC031F0u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[4] + (-1)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC031EC) goto label_BFC031E0; @@ -11110,6 +11489,13 @@ label_BFC031F4: void func_1FC03288(CPUState* cpu) { debug_server_log_call_entry(0x1FC03288u); + int psx_taken_BFC03288 = 0; + int psx_taken_BFC03290 = 0; + int psx_taken_BFC03298 = 0; + int psx_taken_BFC032A8 = 0; + int psx_taken_BFC032CC = 0; + int psx_taken_BFC032D8 = 0; + int psx_taken_BFC032F4 = 0; label_BFC03288: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -11117,7 +11503,7 @@ label_BFC03288: psx_check_interrupts(cpu); /* 0xBFC03288: 10800003 beq $a0, $zero, 0xBFC03298 */ uint32_t psx_brA_BFC03288 = cpu->gpr[4]; uint32_t psx_brB_BFC03288 = cpu->gpr[0]; - int psx_taken_BFC03288 = (psx_brA_BFC03288 == psx_brB_BFC03288); + psx_taken_BFC03288 = (psx_brA_BFC03288 == psx_brB_BFC03288); /* 0xBFC0328C: 00000000 nop */ /* nop */ if (psx_taken_BFC03288) goto label_BFC03298; @@ -11128,7 +11514,7 @@ label_BFC03290: psx_check_interrupts(cpu); /* 0xBFC03290: 14A0000B bne $a1, $zero, 0xBFC032C0 */ uint32_t psx_brA_BFC03290 = cpu->gpr[5]; uint32_t psx_brB_BFC03290 = cpu->gpr[0]; - int psx_taken_BFC03290 = (psx_brA_BFC03290 != psx_brB_BFC03290); + psx_taken_BFC03290 = (psx_brA_BFC03290 != psx_brB_BFC03290); /* 0xBFC03294: 00000000 nop */ /* nop */ if (psx_taken_BFC03290) goto label_BFC032C0; @@ -11139,7 +11525,7 @@ label_BFC03298: psx_check_interrupts(cpu); /* 0xBFC03298: 14850003 bne $a0, $a1, 0xBFC032A8 */ uint32_t psx_brA_BFC03298 = cpu->gpr[4]; uint32_t psx_brB_BFC03298 = cpu->gpr[5]; - int psx_taken_BFC03298 = (psx_brA_BFC03298 != psx_brB_BFC03298); + psx_taken_BFC03298 = (psx_brA_BFC03298 != psx_brB_BFC03298); /* 0xBFC0329C: 00000000 nop */ /* nop */ if (psx_taken_BFC03298) goto label_BFC032A8; @@ -11159,7 +11545,7 @@ label_BFC032A8: psx_check_interrupts(cpu); /* 0xBFC032A8: 14800003 bne $a0, $zero, 0xBFC032B8 */ uint32_t psx_brA_BFC032A8 = cpu->gpr[4]; uint32_t psx_brB_BFC032A8 = cpu->gpr[0]; - int psx_taken_BFC032A8 = (psx_brA_BFC032A8 != psx_brB_BFC032A8); + psx_taken_BFC032A8 = (psx_brA_BFC032A8 != psx_brB_BFC032A8); /* 0xBFC032AC: 00000000 nop */ /* nop */ if (psx_taken_BFC032A8) goto label_BFC032B8; @@ -11194,7 +11580,7 @@ label_BFC032C0: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC032CC: 1443000B bne $v0, $v1, 0xBFC032FC */ uint32_t psx_brA_BFC032CC = cpu->gpr[2]; uint32_t psx_brB_BFC032CC = cpu->gpr[3]; - int psx_taken_BFC032CC = (psx_brA_BFC032CC != psx_brB_BFC032CC); + psx_taken_BFC032CC = (psx_brA_BFC032CC != psx_brB_BFC032CC); /* 0xBFC032D0: 00000000 nop */ /* nop */ if (psx_taken_BFC032CC) goto label_BFC032FC; @@ -11212,7 +11598,7 @@ label_BFC032D8: psx_check_interrupts(cpu); /* 0xBFC032D8: 14400003 bne $v0, $zero, 0xBFC032E8 */ uint32_t psx_brA_BFC032D8 = cpu->gpr[2]; uint32_t psx_brB_BFC032D8 = cpu->gpr[0]; - int psx_taken_BFC032D8 = (psx_brA_BFC032D8 != psx_brB_BFC032D8); + psx_taken_BFC032D8 = (psx_brA_BFC032D8 != psx_brB_BFC032D8); /* 0xBFC032DC: 24840001 addiu $a0, $a0, 1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); if (psx_taken_BFC032D8) goto label_BFC032E8; @@ -11238,7 +11624,7 @@ label_BFC032E8: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC032F4: 1043FFF8 beq $v0, $v1, 0xBFC032D8 */ uint32_t psx_brA_BFC032F4 = cpu->gpr[2]; uint32_t psx_brB_BFC032F4 = cpu->gpr[3]; - int psx_taken_BFC032F4 = (psx_brA_BFC032F4 == psx_brB_BFC032F4); + psx_taken_BFC032F4 = (psx_brA_BFC032F4 == psx_brB_BFC032F4); /* 0xBFC032F8: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC032F4) goto label_BFC032D8; @@ -11261,6 +11647,17 @@ label_BFC032FC: void func_1FC03310(CPUState* cpu) { debug_server_log_call_entry(0x1FC03310u); + int psx_taken_BFC03310 = 0; + int psx_taken_BFC03318 = 0; + int psx_taken_BFC03320 = 0; + int psx_taken_BFC03330 = 0; + int psx_taken_BFC0334C = 0; + int psx_taken_BFC03360 = 0; + int psx_taken_BFC0336C = 0; + int psx_taken_BFC03380 = 0; + int psx_taken_BFC03394 = 0; + int psx_taken_BFC0339C = 0; + int psx_taken_BFC033A4 = 0; label_BFC03310: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -11268,7 +11665,7 @@ label_BFC03310: psx_check_interrupts(cpu); /* 0xBFC03310: 10800003 beq $a0, $zero, 0xBFC03320 */ uint32_t psx_brA_BFC03310 = cpu->gpr[4]; uint32_t psx_brB_BFC03310 = cpu->gpr[0]; - int psx_taken_BFC03310 = (psx_brA_BFC03310 == psx_brB_BFC03310); + psx_taken_BFC03310 = (psx_brA_BFC03310 == psx_brB_BFC03310); /* 0xBFC03314: 00000000 nop */ /* nop */ if (psx_taken_BFC03310) goto label_BFC03320; @@ -11279,7 +11676,7 @@ label_BFC03318: psx_check_interrupts(cpu); /* 0xBFC03318: 14A0000C bne $a1, $zero, 0xBFC0334C */ uint32_t psx_brA_BFC03318 = cpu->gpr[5]; uint32_t psx_brB_BFC03318 = cpu->gpr[0]; - int psx_taken_BFC03318 = (psx_brA_BFC03318 != psx_brB_BFC03318); + psx_taken_BFC03318 = (psx_brA_BFC03318 != psx_brB_BFC03318); /* 0xBFC0331C: 24C6FFFF addiu $a2, $a2, -1 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); if (psx_taken_BFC03318) goto label_BFC0334C; @@ -11290,7 +11687,7 @@ label_BFC03320: psx_check_interrupts(cpu); /* 0xBFC03320: 14850003 bne $a0, $a1, 0xBFC03330 */ uint32_t psx_brA_BFC03320 = cpu->gpr[4]; uint32_t psx_brB_BFC03320 = cpu->gpr[5]; - int psx_taken_BFC03320 = (psx_brA_BFC03320 != psx_brB_BFC03320); + psx_taken_BFC03320 = (psx_brA_BFC03320 != psx_brB_BFC03320); /* 0xBFC03324: 00000000 nop */ /* nop */ if (psx_taken_BFC03320) goto label_BFC03330; @@ -11310,7 +11707,7 @@ label_BFC03330: psx_check_interrupts(cpu); /* 0xBFC03330: 14800003 bne $a0, $zero, 0xBFC03340 */ uint32_t psx_brA_BFC03330 = cpu->gpr[4]; uint32_t psx_brB_BFC03330 = cpu->gpr[0]; - int psx_taken_BFC03330 = (psx_brA_BFC03330 != psx_brB_BFC03330); + psx_taken_BFC03330 = (psx_brA_BFC03330 != psx_brB_BFC03330); /* 0xBFC03334: 00000000 nop */ /* nop */ if (psx_taken_BFC03330) goto label_BFC03340; @@ -11339,7 +11736,7 @@ label_BFC0334C: psx_check_interrupts(cpu); /* 0xBFC0334C: 04C00013 bltz $a2, 0xBFC0339C */ uint32_t psx_brA_BFC0334C = cpu->gpr[6]; - int psx_taken_BFC0334C = ((int32_t)psx_brA_BFC0334C < 0); + psx_taken_BFC0334C = ((int32_t)psx_brA_BFC0334C < 0); /* 0xBFC03350: 00000000 nop */ /* nop */ if (psx_taken_BFC0334C) goto label_BFC0339C; @@ -11356,7 +11753,7 @@ label_BFC03354: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC03360: 1462000E bne $v1, $v0, 0xBFC0339C */ uint32_t psx_brA_BFC03360 = cpu->gpr[3]; uint32_t psx_brB_BFC03360 = cpu->gpr[2]; - int psx_taken_BFC03360 = (psx_brA_BFC03360 != psx_brB_BFC03360); + psx_taken_BFC03360 = (psx_brA_BFC03360 != psx_brB_BFC03360); /* 0xBFC03364: 00000000 nop */ /* nop */ if (psx_taken_BFC03360) goto label_BFC0339C; @@ -11374,7 +11771,7 @@ label_BFC0336C: psx_check_interrupts(cpu); /* 0xBFC0336C: 14600003 bne $v1, $zero, 0xBFC0337C */ uint32_t psx_brA_BFC0336C = cpu->gpr[3]; uint32_t psx_brB_BFC0336C = cpu->gpr[0]; - int psx_taken_BFC0336C = (psx_brA_BFC0336C != psx_brB_BFC0336C); + psx_taken_BFC0336C = (psx_brA_BFC0336C != psx_brB_BFC0336C); /* 0xBFC03370: 24840001 addiu $a0, $a0, 1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); if (psx_taken_BFC0336C) goto label_BFC0337C; @@ -11396,7 +11793,7 @@ label_BFC0337C: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); /* 0xBFC03380: 04C00006 bltz $a2, 0xBFC0339C */ uint32_t psx_brA_BFC03380 = cpu->gpr[6]; - int psx_taken_BFC03380 = ((int32_t)psx_brA_BFC03380 < 0); + psx_taken_BFC03380 = ((int32_t)psx_brA_BFC03380 < 0); /* 0xBFC03384: 00000000 nop */ /* nop */ if (psx_taken_BFC03380) goto label_BFC0339C; @@ -11413,7 +11810,7 @@ label_BFC03388: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC03394: 1062FFF5 beq $v1, $v0, 0xBFC0336C */ uint32_t psx_brA_BFC03394 = cpu->gpr[3]; uint32_t psx_brB_BFC03394 = cpu->gpr[2]; - int psx_taken_BFC03394 = (psx_brA_BFC03394 == psx_brB_BFC03394); + psx_taken_BFC03394 = (psx_brA_BFC03394 == psx_brB_BFC03394); /* 0xBFC03398: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC03394) goto label_BFC0336C; @@ -11424,7 +11821,7 @@ label_BFC0339C: psx_check_interrupts(cpu); /* 0xBFC0339C: 04C10003 bgez $a2, 0xBFC033AC */ uint32_t psx_brA_BFC0339C = cpu->gpr[6]; - int psx_taken_BFC0339C = ((int32_t)psx_brA_BFC0339C >= 0); + psx_taken_BFC0339C = ((int32_t)psx_brA_BFC0339C >= 0); /* 0xBFC033A0: 00000000 nop */ /* nop */ if (psx_taken_BFC0339C) goto label_BFC033AC; @@ -11435,7 +11832,7 @@ label_BFC033A4: psx_check_interrupts(cpu); /* 0xBFC033A4: 10000005 beq $zero, $zero, 0xBFC033BC */ uint32_t psx_brA_BFC033A4 = cpu->gpr[0]; uint32_t psx_brB_BFC033A4 = cpu->gpr[0]; - int psx_taken_BFC033A4 = (psx_brA_BFC033A4 == psx_brB_BFC033A4); + psx_taken_BFC033A4 = (psx_brA_BFC033A4 == psx_brB_BFC033A4); /* 0xBFC033A8: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC033A4) goto label_BFC033BC; @@ -11467,6 +11864,10 @@ label_BFC033BC: void func_1FC033C8(CPUState* cpu) { debug_server_log_call_entry(0x1FC033C8u); + int psx_taken_BFC033C8 = 0; + int psx_taken_BFC033D0 = 0; + int psx_taken_BFC033F0 = 0; + int psx_taken_BFC03404 = 0; label_BFC033C8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -11474,7 +11875,7 @@ label_BFC033C8: psx_check_interrupts(cpu); /* 0xBFC033C8: 10800003 beq $a0, $zero, 0xBFC033D8 */ uint32_t psx_brA_BFC033C8 = cpu->gpr[4]; uint32_t psx_brB_BFC033C8 = cpu->gpr[0]; - int psx_taken_BFC033C8 = (psx_brA_BFC033C8 == psx_brB_BFC033C8); + psx_taken_BFC033C8 = (psx_brA_BFC033C8 == psx_brB_BFC033C8); /* 0xBFC033CC: 00000000 nop */ /* nop */ if (psx_taken_BFC033C8) goto label_BFC033D8; @@ -11485,7 +11886,7 @@ label_BFC033D0: psx_check_interrupts(cpu); /* 0xBFC033D0: 14A00003 bne $a1, $zero, 0xBFC033E0 */ uint32_t psx_brA_BFC033D0 = cpu->gpr[5]; uint32_t psx_brB_BFC033D0 = cpu->gpr[0]; - int psx_taken_BFC033D0 = (psx_brA_BFC033D0 != psx_brB_BFC033D0); + psx_taken_BFC033D0 = (psx_brA_BFC033D0 != psx_brB_BFC033D0); /* 0xBFC033D4: 00000000 nop */ /* nop */ if (psx_taken_BFC033D0) goto label_BFC033E0; @@ -11513,7 +11914,7 @@ label_BFC033E0: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC033F0: 10400006 beq $v0, $zero, 0xBFC0340C */ uint32_t psx_brA_BFC033F0 = cpu->gpr[2]; uint32_t psx_brB_BFC033F0 = cpu->gpr[0]; - int psx_taken_BFC033F0 = (psx_brA_BFC033F0 == psx_brB_BFC033F0); + psx_taken_BFC033F0 = (psx_brA_BFC033F0 == psx_brB_BFC033F0); /* 0xBFC033F4: A082FFFF sb $v0, -1($a0) */ g_debug_last_store_pc = 0xBFC033F4u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[4] + (-1)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC033F0) goto label_BFC0340C; @@ -11530,7 +11931,7 @@ label_BFC033F8: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC03404: 1440FFFC bne $v0, $zero, 0xBFC033F8 */ uint32_t psx_brA_BFC03404 = cpu->gpr[2]; uint32_t psx_brB_BFC03404 = cpu->gpr[0]; - int psx_taken_BFC03404 = (psx_brA_BFC03404 != psx_brB_BFC03404); + psx_taken_BFC03404 = (psx_brA_BFC03404 != psx_brB_BFC03404); /* 0xBFC03408: A082FFFF sb $v0, -1($a0) */ g_debug_last_store_pc = 0xBFC03408u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[4] + (-1)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC03404) goto label_BFC033F8; @@ -11549,6 +11950,13 @@ label_BFC0340C: void func_1FC03418(CPUState* cpu) { debug_server_log_call_entry(0x1FC03418u); + int psx_taken_BFC03418 = 0; + int psx_taken_BFC03420 = 0; + int psx_taken_BFC03434 = 0; + int psx_taken_BFC03448 = 0; + int psx_taken_BFC03458 = 0; + int psx_taken_BFC0346C = 0; + int psx_taken_BFC03480 = 0; label_BFC03418: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -11556,7 +11964,7 @@ label_BFC03418: psx_check_interrupts(cpu); /* 0xBFC03418: 10800003 beq $a0, $zero, 0xBFC03428 */ uint32_t psx_brA_BFC03418 = cpu->gpr[4]; uint32_t psx_brB_BFC03418 = cpu->gpr[0]; - int psx_taken_BFC03418 = (psx_brA_BFC03418 == psx_brB_BFC03418); + psx_taken_BFC03418 = (psx_brA_BFC03418 == psx_brB_BFC03418); /* 0xBFC0341C: 00000000 nop */ /* nop */ if (psx_taken_BFC03418) goto label_BFC03428; @@ -11567,7 +11975,7 @@ label_BFC03420: psx_check_interrupts(cpu); /* 0xBFC03420: 14A00003 bne $a1, $zero, 0xBFC03430 */ uint32_t psx_brA_BFC03420 = cpu->gpr[5]; uint32_t psx_brB_BFC03420 = cpu->gpr[0]; - int psx_taken_BFC03420 = (psx_brA_BFC03420 != psx_brB_BFC03420); + psx_taken_BFC03420 = (psx_brA_BFC03420 != psx_brB_BFC03420); /* 0xBFC03424: 00000000 nop */ /* nop */ if (psx_taken_BFC03420) goto label_BFC03430; @@ -11589,7 +11997,7 @@ label_BFC03430: cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC03434: 18C00014 blez $a2, 0xBFC03488 */ uint32_t psx_brA_BFC03434 = cpu->gpr[6]; - int psx_taken_BFC03434 = ((int32_t)psx_brA_BFC03434 <= 0); + psx_taken_BFC03434 = ((int32_t)psx_brA_BFC03434 <= 0); /* 0xBFC03438: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC03434) goto label_BFC03488; @@ -11606,7 +12014,7 @@ label_BFC0343C: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC03448: 14E0000C bne $a3, $zero, 0xBFC0347C */ uint32_t psx_brA_BFC03448 = cpu->gpr[7]; uint32_t psx_brB_BFC03448 = cpu->gpr[0]; - int psx_taken_BFC03448 = (psx_brA_BFC03448 != psx_brB_BFC03448); + psx_taken_BFC03448 = (psx_brA_BFC03448 != psx_brB_BFC03448); /* 0xBFC0344C: A087FFFF sb $a3, -1($a0) */ g_debug_last_store_pc = 0xBFC0344Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[4] + (-1)), (uint8_t)(cpu->gpr[7] & 0xFFu)); if (psx_taken_BFC03448) goto label_BFC0347C; @@ -11621,7 +12029,7 @@ label_BFC03450: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[6] ? 1 : 0); /* 0xBFC03458: 10200006 beq $at, $zero, 0xBFC03474 */ uint32_t psx_brA_BFC03458 = cpu->gpr[1]; uint32_t psx_brB_BFC03458 = cpu->gpr[0]; - int psx_taken_BFC03458 = (psx_brA_BFC03458 == psx_brB_BFC03458); + psx_taken_BFC03458 = (psx_brA_BFC03458 == psx_brB_BFC03458); /* 0xBFC0345C: 00000000 nop */ /* nop */ if (psx_taken_BFC03458) goto label_BFC03474; @@ -11638,7 +12046,7 @@ label_BFC03460: g_debug_last_store_pc = 0xBFC03468u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[4] + (0)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC0346C: 1420FFFC bne $at, $zero, 0xBFC03460 */ uint32_t psx_brA_BFC0346C = cpu->gpr[1]; uint32_t psx_brB_BFC0346C = cpu->gpr[0]; - int psx_taken_BFC0346C = (psx_brA_BFC0346C != psx_brB_BFC0346C); + psx_taken_BFC0346C = (psx_brA_BFC0346C != psx_brB_BFC0346C); /* 0xBFC03470: 24840001 addiu $a0, $a0, 1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); if (psx_taken_BFC0346C) goto label_BFC03460; @@ -11660,7 +12068,7 @@ label_BFC0347C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC03480: 1446FFEE bne $v0, $a2, 0xBFC0343C */ uint32_t psx_brA_BFC03480 = cpu->gpr[2]; uint32_t psx_brB_BFC03480 = cpu->gpr[6]; - int psx_taken_BFC03480 = (psx_brA_BFC03480 != psx_brB_BFC03480); + psx_taken_BFC03480 = (psx_brA_BFC03480 != psx_brB_BFC03480); /* 0xBFC03484: 00000000 nop */ /* nop */ if (psx_taken_BFC03480) goto label_BFC0343C; @@ -11679,6 +12087,9 @@ label_BFC03488: void func_1FC03494(CPUState* cpu) { debug_server_log_call_entry(0x1FC03494u); + int psx_taken_BFC03494 = 0; + int psx_taken_BFC034AC = 0; + int psx_taken_BFC034BC = 0; label_BFC03494: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -11686,7 +12097,7 @@ label_BFC03494: psx_check_interrupts(cpu); /* 0xBFC03494: 14800003 bne $a0, $zero, 0xBFC034A4 */ uint32_t psx_brA_BFC03494 = cpu->gpr[4]; uint32_t psx_brB_BFC03494 = cpu->gpr[0]; - int psx_taken_BFC03494 = (psx_brA_BFC03494 != psx_brB_BFC03494); + psx_taken_BFC03494 = (psx_brA_BFC03494 != psx_brB_BFC03494); /* 0xBFC03498: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC03494) goto label_BFC034A4; @@ -11710,7 +12121,7 @@ label_BFC034A4: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); /* 0xBFC034AC: 10400006 beq $v0, $zero, 0xBFC034C8 */ uint32_t psx_brA_BFC034AC = cpu->gpr[2]; uint32_t psx_brB_BFC034AC = cpu->gpr[0]; - int psx_taken_BFC034AC = (psx_brA_BFC034AC == psx_brB_BFC034AC); + psx_taken_BFC034AC = (psx_brA_BFC034AC == psx_brB_BFC034AC); /* 0xBFC034B0: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC034AC) goto label_BFC034C8; @@ -11725,7 +12136,7 @@ label_BFC034B4: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC034BC: 1440FFFD bne $v0, $zero, 0xBFC034B4 */ uint32_t psx_brA_BFC034BC = cpu->gpr[2]; uint32_t psx_brB_BFC034BC = cpu->gpr[0]; - int psx_taken_BFC034BC = (psx_brA_BFC034BC != psx_brB_BFC034BC); + psx_taken_BFC034BC = (psx_brA_BFC034BC != psx_brB_BFC034BC); /* 0xBFC034C0: 24840001 addiu $a0, $a0, 1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); if (psx_taken_BFC034BC) goto label_BFC034B4; @@ -11757,6 +12168,23 @@ void func_1FC03764(CPUState* cpu) { default: break; } } + int psx_taken_BFC03770 = 0; + int psx_taken_BFC03780 = 0; + int psx_taken_BFC037B0 = 0; + int psx_taken_BFC037C0 = 0; + int psx_taken_BFC037D0 = 0; + int psx_taken_BFC037E0 = 0; + int psx_taken_BFC037F0 = 0; + int psx_taken_BFC037F8 = 0; + int psx_taken_BFC03804 = 0; + int psx_taken_BFC0380C = 0; + int psx_taken_BFC0381C = 0; + int psx_taken_BFC0382C = 0; + int psx_taken_BFC0383C = 0; + int psx_taken_BFC0384C = 0; + int psx_taken_BFC03854 = 0; + int psx_taken_BFC0385C = 0; + int psx_taken_BFC03868 = 0; label_BFC03764: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -11770,7 +12198,7 @@ label_BFC03764: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0376Cu); return; } g_debug_last_store_pc = 0xBFC0376Cu; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC03770: 14600005 bne $v1, $zero, 0xBFC03788 */ uint32_t psx_brA_BFC03770 = cpu->gpr[3]; uint32_t psx_brB_BFC03770 = cpu->gpr[0]; - int psx_taken_BFC03770 = (psx_brA_BFC03770 != psx_brB_BFC03770); + psx_taken_BFC03770 = (psx_brA_BFC03770 != psx_brB_BFC03770); /* 0xBFC03774: 00A03821 addu $a3, $a1, $zero */ cpu->gpr[7] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC03770) goto label_BFC03788; @@ -11785,7 +12213,7 @@ label_BFC03778: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (-28368)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0377Cu); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC03780: 1000000A beq $zero, $zero, 0xBFC037AC */ uint32_t psx_brA_BFC03780 = cpu->gpr[0]; uint32_t psx_brB_BFC03780 = cpu->gpr[0]; - int psx_taken_BFC03780 = (psx_brA_BFC03780 == psx_brB_BFC03780); + psx_taken_BFC03780 = (psx_brA_BFC03780 == psx_brB_BFC03780); /* 0xBFC03784: 80A40000 lb $a0, 0($a1) */ cpu->gpr[4] = (uint32_t)(int32_t)(int8_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[5] + (0))); if (psx_taken_BFC03780) goto label_BFC037AC; @@ -11827,7 +12255,7 @@ label_BFC037AC: cpu->gpr[8] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC037B0: 10800011 beq $a0, $zero, 0xBFC037F8 */ uint32_t psx_brA_BFC037B0 = cpu->gpr[4]; uint32_t psx_brB_BFC037B0 = cpu->gpr[0]; - int psx_taken_BFC037B0 = (psx_brA_BFC037B0 == psx_brB_BFC037B0); + psx_taken_BFC037B0 = (psx_brA_BFC037B0 == psx_brB_BFC037B0); /* 0xBFC037B4: 00000000 nop */ /* nop */ if (psx_taken_BFC037B0) goto label_BFC037F8; @@ -11847,7 +12275,7 @@ label_BFC037C0: psx_check_interrupts(cpu); /* 0xBFC037C0: 10C00009 beq $a2, $zero, 0xBFC037E8 */ uint32_t psx_brA_BFC037C0 = cpu->gpr[6]; uint32_t psx_brB_BFC037C0 = cpu->gpr[0]; - int psx_taken_BFC037C0 = (psx_brA_BFC037C0 == psx_brB_BFC037C0); + psx_taken_BFC037C0 = (psx_brA_BFC037C0 == psx_brB_BFC037C0); /* 0xBFC037C4: 00E01821 addu $v1, $a3, $zero */ cpu->gpr[3] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC037C0) goto label_BFC037E8; @@ -11867,7 +12295,7 @@ label_BFC037D0: psx_check_interrupts(cpu); /* 0xBFC037D0: 1082000E beq $a0, $v0, 0xBFC0380C */ uint32_t psx_brA_BFC037D0 = cpu->gpr[4]; uint32_t psx_brB_BFC037D0 = cpu->gpr[2]; - int psx_taken_BFC037D0 = (psx_brA_BFC037D0 == psx_brB_BFC037D0); + psx_taken_BFC037D0 = (psx_brA_BFC037D0 == psx_brB_BFC037D0); /* 0xBFC037D4: 00000000 nop */ /* nop */ if (psx_taken_BFC037D0) goto label_BFC0380C; @@ -11882,7 +12310,7 @@ label_BFC037D8: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC037E0: 1440FFFB bne $v0, $zero, 0xBFC037D0 */ uint32_t psx_brA_BFC037E0 = cpu->gpr[2]; uint32_t psx_brB_BFC037E0 = cpu->gpr[0]; - int psx_taken_BFC037E0 = (psx_brA_BFC037E0 != psx_brB_BFC037E0); + psx_taken_BFC037E0 = (psx_brA_BFC037E0 != psx_brB_BFC037E0); /* 0xBFC037E4: 00000000 nop */ /* nop */ if (psx_taken_BFC037E0) goto label_BFC037D0; @@ -11897,7 +12325,7 @@ label_BFC037E8: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC037F0: 1480FFF3 bne $a0, $zero, 0xBFC037C0 */ uint32_t psx_brA_BFC037F0 = cpu->gpr[4]; uint32_t psx_brB_BFC037F0 = cpu->gpr[0]; - int psx_taken_BFC037F0 = (psx_brA_BFC037F0 != psx_brB_BFC037F0); + psx_taken_BFC037F0 = (psx_brA_BFC037F0 != psx_brB_BFC037F0); /* 0xBFC037F4: 00000000 nop */ /* nop */ if (psx_taken_BFC037F0) goto label_BFC037C0; @@ -11908,7 +12336,7 @@ label_BFC037F8: psx_check_interrupts(cpu); /* 0xBFC037F8: 15050004 bne $t0, $a1, 0xBFC0380C */ uint32_t psx_brA_BFC037F8 = cpu->gpr[8]; uint32_t psx_brB_BFC037F8 = cpu->gpr[5]; - int psx_taken_BFC037F8 = (psx_brA_BFC037F8 != psx_brB_BFC037F8); + psx_taken_BFC037F8 = (psx_brA_BFC037F8 != psx_brB_BFC037F8); /* 0xBFC037FC: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC037F8) goto label_BFC0380C; @@ -11921,7 +12349,7 @@ label_BFC03800: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28368)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC03800u); return; } g_debug_last_store_pc = 0xBFC03800u; cpu->write_word(psx_addr, cpu->gpr[5]); } /* 0xBFC03804: 1000001F beq $zero, $zero, 0xBFC03884 */ uint32_t psx_brA_BFC03804 = cpu->gpr[0]; uint32_t psx_brB_BFC03804 = cpu->gpr[0]; - int psx_taken_BFC03804 = (psx_brA_BFC03804 == psx_brB_BFC03804); + psx_taken_BFC03804 = (psx_brA_BFC03804 == psx_brB_BFC03804); /* 0xBFC03808: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC03804) goto label_BFC03884; @@ -11932,7 +12360,7 @@ label_BFC0380C: psx_check_interrupts(cpu); /* 0xBFC0380C: 10800011 beq $a0, $zero, 0xBFC03854 */ uint32_t psx_brA_BFC0380C = cpu->gpr[4]; uint32_t psx_brB_BFC0380C = cpu->gpr[0]; - int psx_taken_BFC0380C = (psx_brA_BFC0380C == psx_brB_BFC0380C); + psx_taken_BFC0380C = (psx_brA_BFC0380C == psx_brB_BFC0380C); /* 0xBFC03810: 00000000 nop */ /* nop */ if (psx_taken_BFC0380C) goto label_BFC03854; @@ -11947,7 +12375,7 @@ label_BFC03814: cpu->gpr[3] = cpu->gpr[7] + cpu->gpr[0]; /* 0xBFC0381C: 11C00009 beq $t6, $zero, 0xBFC03844 */ uint32_t psx_brA_BFC0381C = cpu->gpr[14]; uint32_t psx_brB_BFC0381C = cpu->gpr[0]; - int psx_taken_BFC0381C = (psx_brA_BFC0381C == psx_brB_BFC0381C); + psx_taken_BFC0381C = (psx_brA_BFC0381C == psx_brB_BFC0381C); /* 0xBFC03820: 00000000 nop */ /* nop */ if (psx_taken_BFC0381C) goto label_BFC03844; @@ -11967,7 +12395,7 @@ label_BFC0382C: psx_check_interrupts(cpu); /* 0xBFC0382C: 14820010 bne $a0, $v0, 0xBFC03870 */ uint32_t psx_brA_BFC0382C = cpu->gpr[4]; uint32_t psx_brB_BFC0382C = cpu->gpr[2]; - int psx_taken_BFC0382C = (psx_brA_BFC0382C != psx_brB_BFC0382C); + psx_taken_BFC0382C = (psx_brA_BFC0382C != psx_brB_BFC0382C); /* 0xBFC03830: 00000000 nop */ /* nop */ if (psx_taken_BFC0382C) goto label_BFC03870; @@ -11982,7 +12410,7 @@ label_BFC03834: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC0383C: 1440FFFB bne $v0, $zero, 0xBFC0382C */ uint32_t psx_brA_BFC0383C = cpu->gpr[2]; uint32_t psx_brB_BFC0383C = cpu->gpr[0]; - int psx_taken_BFC0383C = (psx_brA_BFC0383C != psx_brB_BFC0383C); + psx_taken_BFC0383C = (psx_brA_BFC0383C != psx_brB_BFC0383C); /* 0xBFC03840: 00000000 nop */ /* nop */ if (psx_taken_BFC0383C) goto label_BFC0382C; @@ -11997,7 +12425,7 @@ label_BFC03844: g_debug_last_store_pc = 0xBFC03848u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[5] + (0)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC0384C: 1480FFF1 bne $a0, $zero, 0xBFC03814 */ uint32_t psx_brA_BFC0384C = cpu->gpr[4]; uint32_t psx_brB_BFC0384C = cpu->gpr[0]; - int psx_taken_BFC0384C = (psx_brA_BFC0384C != psx_brB_BFC0384C); + psx_taken_BFC0384C = (psx_brA_BFC0384C != psx_brB_BFC0384C); /* 0xBFC03850: 24A50001 addiu $a1, $a1, 1 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); if (psx_taken_BFC0384C) goto label_BFC03814; @@ -12008,7 +12436,7 @@ label_BFC03854: psx_check_interrupts(cpu); /* 0xBFC03854: 14800006 bne $a0, $zero, 0xBFC03870 */ uint32_t psx_brA_BFC03854 = cpu->gpr[4]; uint32_t psx_brB_BFC03854 = cpu->gpr[0]; - int psx_taken_BFC03854 = (psx_brA_BFC03854 != psx_brB_BFC03854); + psx_taken_BFC03854 = (psx_brA_BFC03854 != psx_brB_BFC03854); /* 0xBFC03858: 00000000 nop */ /* nop */ if (psx_taken_BFC03854) goto label_BFC03870; @@ -12019,7 +12447,7 @@ label_BFC0385C: psx_check_interrupts(cpu); /* 0xBFC0385C: 15050004 bne $t0, $a1, 0xBFC03870 */ uint32_t psx_brA_BFC0385C = cpu->gpr[8]; uint32_t psx_brB_BFC0385C = cpu->gpr[5]; - int psx_taken_BFC0385C = (psx_brA_BFC0385C != psx_brB_BFC0385C); + psx_taken_BFC0385C = (psx_brA_BFC0385C != psx_brB_BFC0385C); /* 0xBFC03860: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC0385C) goto label_BFC03870; @@ -12032,7 +12460,7 @@ label_BFC03864: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28368)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC03864u); return; } g_debug_last_store_pc = 0xBFC03864u; cpu->write_word(psx_addr, cpu->gpr[5]); } /* 0xBFC03868: 10000006 beq $zero, $zero, 0xBFC03884 */ uint32_t psx_brA_BFC03868 = cpu->gpr[0]; uint32_t psx_brB_BFC03868 = cpu->gpr[0]; - int psx_taken_BFC03868 = (psx_brA_BFC03868 == psx_brB_BFC03868); + psx_taken_BFC03868 = (psx_brA_BFC03868 == psx_brB_BFC03868); /* 0xBFC0386C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC03868) goto label_BFC03884; @@ -12068,6 +12496,8 @@ label_BFC03884: void func_1FC03910(CPUState* cpu) { debug_server_log_call_entry(0x1FC03910u); + int psx_taken_BFC03928 = 0; + int psx_taken_BFC0393C = 0; label_BFC03910: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -12087,7 +12517,7 @@ label_BFC03910: cpu->gpr[15] = cpu->gpr[14] & 0x1u; /* 0xBFC03928: 15E00007 bne $t7, $zero, 0xBFC03948 */ uint32_t psx_brA_BFC03928 = cpu->gpr[15]; uint32_t psx_brB_BFC03928 = cpu->gpr[0]; - int psx_taken_BFC03928 = (psx_brA_BFC03928 != psx_brB_BFC03928); + psx_taken_BFC03928 = (psx_brA_BFC03928 != psx_brB_BFC03928); /* 0xBFC0392C: 2408FFFE addiu $t0, $zero, -2 */ cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); if (psx_taken_BFC03928) goto label_BFC03948; @@ -12104,7 +12534,7 @@ label_BFC03930: cpu->gpr[25] = cpu->gpr[24] & 0x1u; /* 0xBFC0393C: 1320FFFC beq $t9, $zero, 0xBFC03930 */ uint32_t psx_brA_BFC0393C = cpu->gpr[25]; uint32_t psx_brB_BFC0393C = cpu->gpr[0]; - int psx_taken_BFC0393C = (psx_brA_BFC0393C == psx_brB_BFC0393C); + psx_taken_BFC0393C = (psx_brA_BFC0393C == psx_brB_BFC0393C); /* 0xBFC03940: 00000000 nop */ /* nop */ if (psx_taken_BFC0393C) goto label_BFC03930; @@ -12196,6 +12626,10 @@ void func_1FC039B0(CPUState* cpu) { default: break; } } + int psx_taken_BFC039C4 = 0; + int psx_taken_BFC039CC = 0; + int psx_taken_BFC039E4 = 0; + int psx_taken_BFC039F4 = 0; label_BFC039B0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -12219,7 +12653,7 @@ label_BFC039C4: psx_check_interrupts(cpu); /* 0xBFC039C4: 04410003 bgez $v0, 0xBFC039D4 */ uint32_t psx_brA_BFC039C4 = cpu->gpr[2]; - int psx_taken_BFC039C4 = ((int32_t)psx_brA_BFC039C4 >= 0); + psx_taken_BFC039C4 = ((int32_t)psx_brA_BFC039C4 >= 0); /* 0xBFC039C8: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC039C4) goto label_BFC039D4; @@ -12230,7 +12664,7 @@ label_BFC039CC: psx_check_interrupts(cpu); /* 0xBFC039CC: 1000000E beq $zero, $zero, 0xBFC03A08 */ uint32_t psx_brA_BFC039CC = cpu->gpr[0]; uint32_t psx_brB_BFC039CC = cpu->gpr[0]; - int psx_taken_BFC039CC = (psx_brA_BFC039CC == psx_brB_BFC039CC); + psx_taken_BFC039CC = (psx_brA_BFC039CC == psx_brB_BFC039CC); /* 0xBFC039D0: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC039CC) goto label_BFC03A08; @@ -12255,7 +12689,7 @@ label_BFC039E0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC039E0u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC039E4: 14400005 bne $v0, $zero, 0xBFC039FC */ uint32_t psx_brA_BFC039E4 = cpu->gpr[2]; uint32_t psx_brB_BFC039E4 = cpu->gpr[0]; - int psx_taken_BFC039E4 = (psx_brA_BFC039E4 != psx_brB_BFC039E4); + psx_taken_BFC039E4 = (psx_brA_BFC039E4 != psx_brB_BFC039E4); /* 0xBFC039E8: 00000000 nop */ /* nop */ if (psx_taken_BFC039E4) goto label_BFC039FC; @@ -12276,7 +12710,7 @@ label_BFC039F4: psx_check_interrupts(cpu); /* 0xBFC039F4: 10000004 beq $zero, $zero, 0xBFC03A08 */ uint32_t psx_brA_BFC039F4 = cpu->gpr[0]; uint32_t psx_brB_BFC039F4 = cpu->gpr[0]; - int psx_taken_BFC039F4 = (psx_brA_BFC039F4 == psx_brB_BFC039F4); + psx_taken_BFC039F4 = (psx_brA_BFC039F4 == psx_brB_BFC039F4); /* 0xBFC039F8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC039F4) goto label_BFC03A08; @@ -12327,6 +12761,10 @@ void func_1FC03A18(CPUState* cpu) { default: break; } } + int psx_taken_BFC03A2C = 0; + int psx_taken_BFC03A34 = 0; + int psx_taken_BFC03A4C = 0; + int psx_taken_BFC03A5C = 0; label_BFC03A18: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -12350,7 +12788,7 @@ label_BFC03A2C: psx_check_interrupts(cpu); /* 0xBFC03A2C: 04410003 bgez $v0, 0xBFC03A3C */ uint32_t psx_brA_BFC03A2C = cpu->gpr[2]; - int psx_taken_BFC03A2C = ((int32_t)psx_brA_BFC03A2C >= 0); + psx_taken_BFC03A2C = ((int32_t)psx_brA_BFC03A2C >= 0); /* 0xBFC03A30: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC03A2C) goto label_BFC03A3C; @@ -12361,7 +12799,7 @@ label_BFC03A34: psx_check_interrupts(cpu); /* 0xBFC03A34: 10000017 beq $zero, $zero, 0xBFC03A94 */ uint32_t psx_brA_BFC03A34 = cpu->gpr[0]; uint32_t psx_brB_BFC03A34 = cpu->gpr[0]; - int psx_taken_BFC03A34 = (psx_brA_BFC03A34 == psx_brB_BFC03A34); + psx_taken_BFC03A34 = (psx_brA_BFC03A34 == psx_brB_BFC03A34); /* 0xBFC03A38: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC03A34) goto label_BFC03A94; @@ -12386,7 +12824,7 @@ label_BFC03A48: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC03A48u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC03A4C: 14400006 bne $v0, $zero, 0xBFC03A68 */ uint32_t psx_brA_BFC03A4C = cpu->gpr[2]; uint32_t psx_brB_BFC03A4C = cpu->gpr[0]; - int psx_taken_BFC03A4C = (psx_brA_BFC03A4C != psx_brB_BFC03A4C); + psx_taken_BFC03A4C = (psx_brA_BFC03A4C != psx_brB_BFC03A4C); /* 0xBFC03A50: 8FAE0034 lw $t6, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC03A50u); return; } cpu->gpr[14] = cpu->read_word(psx_addr); } if (psx_taken_BFC03A4C) goto label_BFC03A68; @@ -12407,7 +12845,7 @@ label_BFC03A5C: psx_check_interrupts(cpu); /* 0xBFC03A5C: 1000000D beq $zero, $zero, 0xBFC03A94 */ uint32_t psx_brA_BFC03A5C = cpu->gpr[0]; uint32_t psx_brB_BFC03A5C = cpu->gpr[0]; - int psx_taken_BFC03A5C = (psx_brA_BFC03A5C == psx_brB_BFC03A5C); + psx_taken_BFC03A5C = (psx_brA_BFC03A5C == psx_brB_BFC03A5C); /* 0xBFC03A60: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC03A5C) goto label_BFC03A94; @@ -12499,6 +12937,20 @@ void func_1FC03AA4(CPUState* cpu) { default: break; } } + int psx_taken_BFC03AC4 = 0; + int psx_taken_BFC03AD0 = 0; + int psx_taken_BFC03AEC = 0; + int psx_taken_BFC03AF4 = 0; + int psx_taken_BFC03B08 = 0; + int psx_taken_BFC03B20 = 0; + int psx_taken_BFC03B30 = 0; + int psx_taken_BFC03B40 = 0; + int psx_taken_BFC03B50 = 0; + int psx_taken_BFC03B60 = 0; + int psx_taken_BFC03BB4 = 0; + int psx_taken_BFC03BE4 = 0; + int psx_taken_BFC03C24 = 0; + int psx_taken_BFC03C74 = 0; label_BFC03AA4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -12522,7 +12974,7 @@ label_BFC03AA4: cpu->gpr[17] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC03AC4: 1040000D beq $v0, $zero, 0xBFC03AFC */ uint32_t psx_brA_BFC03AC4 = cpu->gpr[2]; uint32_t psx_brB_BFC03AC4 = cpu->gpr[0]; - int psx_taken_BFC03AC4 = (psx_brA_BFC03AC4 == psx_brB_BFC03AC4); + psx_taken_BFC03AC4 = (psx_brA_BFC03AC4 == psx_brB_BFC03AC4); /* 0xBFC03AC8: 27B00034 addiu $s0, $sp, 52 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_taken_BFC03AC4) goto label_BFC03AFC; @@ -12535,7 +12987,7 @@ label_BFC03ACC: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (58)); /* 0xBFC03AD0: 1062000A beq $v1, $v0, 0xBFC03AFC */ uint32_t psx_brA_BFC03AD0 = cpu->gpr[3]; uint32_t psx_brB_BFC03AD0 = cpu->gpr[2]; - int psx_taken_BFC03AD0 = (psx_brA_BFC03AD0 == psx_brB_BFC03AD0); + psx_taken_BFC03AD0 = (psx_brA_BFC03AD0 == psx_brB_BFC03AD0); /* 0xBFC03AD4: 00000000 nop */ /* nop */ if (psx_taken_BFC03AD0) goto label_BFC03AFC; @@ -12561,7 +13013,7 @@ label_BFC03AE0: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC03AEC: 10400003 beq $v0, $zero, 0xBFC03AFC */ uint32_t psx_brA_BFC03AEC = cpu->gpr[2]; uint32_t psx_brB_BFC03AEC = cpu->gpr[0]; - int psx_taken_BFC03AEC = (psx_brA_BFC03AEC == psx_brB_BFC03AEC); + psx_taken_BFC03AEC = (psx_brA_BFC03AEC == psx_brB_BFC03AEC); /* 0xBFC03AF0: 26100001 addiu $s0, $s0, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); if (psx_taken_BFC03AEC) goto label_BFC03AFC; @@ -12572,7 +13024,7 @@ label_BFC03AF4: psx_check_interrupts(cpu); /* 0xBFC03AF4: 1462FFFA bne $v1, $v0, 0xBFC03AE0 */ uint32_t psx_brA_BFC03AF4 = cpu->gpr[3]; uint32_t psx_brB_BFC03AF4 = cpu->gpr[2]; - int psx_taken_BFC03AF4 = (psx_brA_BFC03AF4 != psx_brB_BFC03AF4); + psx_taken_BFC03AF4 = (psx_brA_BFC03AF4 != psx_brB_BFC03AF4); /* 0xBFC03AF8: 00000000 nop */ /* nop */ if (psx_taken_BFC03AF4) goto label_BFC03AE0; @@ -12595,7 +13047,7 @@ label_BFC03B08: psx_check_interrupts(cpu); /* 0xBFC03B08: 10400007 beq $v0, $zero, 0xBFC03B28 */ uint32_t psx_brA_BFC03B08 = cpu->gpr[2]; uint32_t psx_brB_BFC03B08 = cpu->gpr[0]; - int psx_taken_BFC03B08 = (psx_brA_BFC03B08 == psx_brB_BFC03B08); + psx_taken_BFC03B08 = (psx_brA_BFC03B08 == psx_brB_BFC03B08); /* 0xBFC03B0C: A2020000 sb $v0, 0($s0) */ g_debug_last_store_pc = 0xBFC03B0Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[16] + (0)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC03B08) goto label_BFC03B28; @@ -12620,7 +13072,7 @@ label_BFC03B20: psx_check_interrupts(cpu); /* 0xBFC03B20: 1440FFFB bne $v0, $zero, 0xBFC03B10 */ uint32_t psx_brA_BFC03B20 = cpu->gpr[2]; uint32_t psx_brB_BFC03B20 = cpu->gpr[0]; - int psx_taken_BFC03B20 = (psx_brA_BFC03B20 != psx_brB_BFC03B20); + psx_taken_BFC03B20 = (psx_brA_BFC03B20 != psx_brB_BFC03B20); /* 0xBFC03B24: A2020000 sb $v0, 0($s0) */ g_debug_last_store_pc = 0xBFC03B24u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[16] + (0)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC03B20) goto label_BFC03B10; @@ -12635,7 +13087,7 @@ label_BFC03B28: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[29] + (52)); /* 0xBFC03B30: 11E00009 beq $t7, $zero, 0xBFC03B58 */ uint32_t psx_brA_BFC03B30 = cpu->gpr[15]; uint32_t psx_brB_BFC03B30 = cpu->gpr[0]; - int psx_taken_BFC03B30 = (psx_brA_BFC03B30 == psx_brB_BFC03B30); + psx_taken_BFC03B30 = (psx_brA_BFC03B30 == psx_brB_BFC03B30); /* 0xBFC03B34: 01C08821 addu $s1, $t6, $zero */ cpu->gpr[17] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC03B30) goto label_BFC03B58; @@ -12655,7 +13107,7 @@ label_BFC03B40: psx_check_interrupts(cpu); /* 0xBFC03B40: 10620005 beq $v1, $v0, 0xBFC03B58 */ uint32_t psx_brA_BFC03B40 = cpu->gpr[3]; uint32_t psx_brB_BFC03B40 = cpu->gpr[2]; - int psx_taken_BFC03B40 = (psx_brA_BFC03B40 == psx_brB_BFC03B40); + psx_taken_BFC03B40 = (psx_brA_BFC03B40 == psx_brB_BFC03B40); /* 0xBFC03B44: 00000000 nop */ /* nop */ if (psx_taken_BFC03B40) goto label_BFC03B58; @@ -12670,7 +13122,7 @@ label_BFC03B48: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC03B50: 1440FFFB bne $v0, $zero, 0xBFC03B40 */ uint32_t psx_brA_BFC03B50 = cpu->gpr[2]; uint32_t psx_brB_BFC03B50 = cpu->gpr[0]; - int psx_taken_BFC03B50 = (psx_brA_BFC03B50 != psx_brB_BFC03B50); + psx_taken_BFC03B50 = (psx_brA_BFC03B50 != psx_brB_BFC03B50); /* 0xBFC03B54: 00000000 nop */ /* nop */ if (psx_taken_BFC03B50) goto label_BFC03B40; @@ -12685,7 +13137,7 @@ label_BFC03B58: /* nop */ /* 0xBFC03B60: 17000005 bne $t8, $zero, 0xBFC03B78 */ uint32_t psx_brA_BFC03B60 = cpu->gpr[24]; uint32_t psx_brB_BFC03B60 = cpu->gpr[0]; - int psx_taken_BFC03B60 = (psx_brA_BFC03B60 != psx_brB_BFC03B60); + psx_taken_BFC03B60 = (psx_brA_BFC03B60 != psx_brB_BFC03B60); /* 0xBFC03B64: 00000000 nop */ /* nop */ if (psx_taken_BFC03B60) goto label_BFC03B78; @@ -12752,7 +13204,7 @@ label_BFC03BB0: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC03BB4: 1451000D bne $v0, $s1, 0xBFC03BEC */ uint32_t psx_brA_BFC03BB4 = cpu->gpr[2]; uint32_t psx_brB_BFC03BB4 = cpu->gpr[17]; - int psx_taken_BFC03BB4 = (psx_brA_BFC03BB4 != psx_brB_BFC03BB4); + psx_taken_BFC03BB4 = (psx_brA_BFC03BB4 != psx_brB_BFC03BB4); /* 0xBFC03BB8: 00000000 nop */ /* nop */ if (psx_taken_BFC03BB4) goto label_BFC03BEC; @@ -12789,7 +13241,7 @@ label_BFC03BE4: psx_check_interrupts(cpu); /* 0xBFC03BE4: 10000004 beq $zero, $zero, 0xBFC03BF8 */ uint32_t psx_brA_BFC03BE4 = cpu->gpr[0]; uint32_t psx_brB_BFC03BE4 = cpu->gpr[0]; - int psx_taken_BFC03BE4 = (psx_brA_BFC03BE4 == psx_brB_BFC03BE4); + psx_taken_BFC03BE4 = (psx_brA_BFC03BE4 == psx_brB_BFC03BE4); /* 0xBFC03BE8: 00000000 nop */ /* nop */ if (psx_taken_BFC03BE4) goto label_BFC03BF8; @@ -12852,7 +13304,7 @@ label_BFC03C24: psx_check_interrupts(cpu); /* 0xBFC03C24: 1451000D bne $v0, $s1, 0xBFC03C5C */ uint32_t psx_brA_BFC03C24 = cpu->gpr[2]; uint32_t psx_brB_BFC03C24 = cpu->gpr[17]; - int psx_taken_BFC03C24 = (psx_brA_BFC03C24 != psx_brB_BFC03C24); + psx_taken_BFC03C24 = (psx_brA_BFC03C24 != psx_brB_BFC03C24); /* 0xBFC03C28: 00000000 nop */ /* nop */ if (psx_taken_BFC03C24) goto label_BFC03C5C; @@ -12911,7 +13363,7 @@ label_BFC03C74: psx_check_interrupts(cpu); /* 0xBFC03C74: 1000FFFF beq $zero, $zero, 0xBFC03C74 */ uint32_t psx_brA_BFC03C74 = cpu->gpr[0]; uint32_t psx_brB_BFC03C74 = cpu->gpr[0]; - int psx_taken_BFC03C74 = (psx_brA_BFC03C74 == psx_brB_BFC03C74); + psx_taken_BFC03C74 = (psx_brA_BFC03C74 == psx_brB_BFC03C74); /* 0xBFC03C78: 00000000 nop */ /* nop */ if (psx_taken_BFC03C74) goto label_BFC03C74; @@ -12943,6 +13395,8 @@ void func_1FC03C90(CPUState* cpu) { default: break; } } + int psx_taken_BFC03CB0 = 0; + int psx_taken_BFC03CB8 = 0; label_BFC03C90: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -12972,7 +13426,7 @@ label_BFC03CAC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (2048) ? 1 : 0); /* 0xBFC03CB0: 10200004 beq $at, $zero, 0xBFC03CC4 */ uint32_t psx_brA_BFC03CB0 = cpu->gpr[1]; uint32_t psx_brB_BFC03CB0 = cpu->gpr[0]; - int psx_taken_BFC03CB0 = (psx_brA_BFC03CB0 == psx_brB_BFC03CB0); + psx_taken_BFC03CB0 = (psx_brA_BFC03CB0 == psx_brB_BFC03CB0); /* 0xBFC03CB4: 8FA40024 lw $a0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC03CB4u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC03CB0) goto label_BFC03CC4; @@ -12983,7 +13437,7 @@ label_BFC03CB8: psx_check_interrupts(cpu); /* 0xBFC03CB8: 10000007 beq $zero, $zero, 0xBFC03CD8 */ uint32_t psx_brA_BFC03CB8 = cpu->gpr[0]; uint32_t psx_brB_BFC03CB8 = cpu->gpr[0]; - int psx_taken_BFC03CB8 = (psx_brA_BFC03CB8 == psx_brB_BFC03CB8); + psx_taken_BFC03CB8 = (psx_brA_BFC03CB8 == psx_brB_BFC03CB8); /* 0xBFC03CBC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC03CB8) goto label_BFC03CD8; @@ -13040,6 +13494,9 @@ void func_1FC03CF0(CPUState* cpu) { default: break; } } + int psx_taken_BFC03D08 = 0; + int psx_taken_BFC03D20 = 0; + int psx_taken_BFC03D30 = 0; label_BFC03CF0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -13059,7 +13516,7 @@ label_BFC03CF0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (48)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC03D04u); return; } g_debug_last_store_pc = 0xBFC03D04u; cpu->write_word(psx_addr, cpu->gpr[28]); } /* 0xBFC03D08: 11000007 beq $t0, $zero, 0xBFC03D28 */ uint32_t psx_brA_BFC03D08 = cpu->gpr[8]; uint32_t psx_brB_BFC03D08 = cpu->gpr[0]; - int psx_taken_BFC03D08 = (psx_brA_BFC03D08 == psx_brB_BFC03D08); + psx_taken_BFC03D08 = (psx_brA_BFC03D08 == psx_brB_BFC03D08); /* 0xBFC03D0C: 00808021 addu $s0, $a0, $zero */ cpu->gpr[16] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC03D08) goto label_BFC03D28; @@ -13083,7 +13540,7 @@ label_BFC03D18: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC03D1Cu); return; } g_debug_last_store_pc = 0xBFC03D1Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC03D20: 1D00FFFD bgtz $t0, 0xBFC03D18 */ uint32_t psx_brA_BFC03D20 = cpu->gpr[8]; - int psx_taken_BFC03D20 = ((int32_t)psx_brA_BFC03D20 > 0); + psx_taken_BFC03D20 = ((int32_t)psx_brA_BFC03D20 > 0); /* 0xBFC03D24: 21290004 addi $t1, $t1, 4 */ { int32_t psx_a = (int32_t)cpu->gpr[9]; int32_t psx_b = (4); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[9] = (uint32_t)(int32_t)psx_r; } if (psx_taken_BFC03D20) goto label_BFC03D18; @@ -13098,7 +13555,7 @@ label_BFC03D28: /* nop */ /* 0xBFC03D30: 11000006 beq $t0, $zero, 0xBFC03D4C */ uint32_t psx_brA_BFC03D30 = cpu->gpr[8]; uint32_t psx_brB_BFC03D30 = cpu->gpr[0]; - int psx_taken_BFC03D30 = (psx_brA_BFC03D30 == psx_brB_BFC03D30); + psx_taken_BFC03D30 = (psx_brA_BFC03D30 == psx_brB_BFC03D30); /* 0xBFC03D34: 00000000 nop */ /* nop */ if (psx_taken_BFC03D30) goto label_BFC03D4C; @@ -13164,6 +13621,11 @@ void func_1FC03D80(CPUState* cpu) { default: break; } } + int psx_taken_BFC03DB4 = 0; + int psx_taken_BFC03DCC = 0; + int psx_taken_BFC03DF4 = 0; + int psx_taken_BFC03E60 = 0; + int psx_taken_BFC03E80 = 0; label_BFC03D80: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -13197,7 +13659,7 @@ label_BFC03D80: cpu->gpr[24] = cpu->gpr[15] & cpu->gpr[18]; /* 0xBFC03DB4: 17000013 bne $t8, $zero, 0xBFC03E04 */ uint32_t psx_brA_BFC03DB4 = cpu->gpr[24]; uint32_t psx_brB_BFC03DB4 = cpu->gpr[0]; - int psx_taken_BFC03DB4 = (psx_brA_BFC03DB4 != psx_brB_BFC03DB4); + psx_taken_BFC03DB4 = (psx_brA_BFC03DB4 != psx_brB_BFC03DB4); /* 0xBFC03DB8: 3C100010 lui $s0, 0x10 */ cpu->gpr[16] = 0x00100000u; if (psx_taken_BFC03DB4) goto label_BFC03E04; @@ -13221,7 +13683,7 @@ label_BFC03DCC: psx_check_interrupts(cpu); /* 0xBFC03DCC: 14600003 bne $v1, $zero, 0xBFC03DDC */ uint32_t psx_brA_BFC03DCC = cpu->gpr[3]; uint32_t psx_brB_BFC03DCC = cpu->gpr[0]; - int psx_taken_BFC03DCC = (psx_brA_BFC03DCC != psx_brB_BFC03DCC); + psx_taken_BFC03DCC = (psx_brA_BFC03DCC != psx_brB_BFC03DCC); /* 0xBFC03DD0: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC03DCC) goto label_BFC03DDC; @@ -13254,7 +13716,7 @@ label_BFC03DDC: cpu->gpr[9] = cpu->gpr[8] & cpu->gpr[18]; /* 0xBFC03DF4: 1120FFF5 beq $t1, $zero, 0xBFC03DCC */ uint32_t psx_brA_BFC03DF4 = cpu->gpr[9]; uint32_t psx_brB_BFC03DF4 = cpu->gpr[0]; - int psx_taken_BFC03DF4 = (psx_brA_BFC03DF4 == psx_brB_BFC03DF4); + psx_taken_BFC03DF4 = (psx_brA_BFC03DF4 == psx_brB_BFC03DF4); /* 0xBFC03DF8: 02001821 addu $v1, $s0, $zero */ cpu->gpr[3] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC03DF4) goto label_BFC03DCC; @@ -13320,7 +13782,7 @@ label_BFC03E04: cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; /* 0xBFC03E60: 1060000A beq $v1, $zero, 0xBFC03E8C */ uint32_t psx_brA_BFC03E60 = cpu->gpr[3]; uint32_t psx_brB_BFC03E60 = cpu->gpr[0]; - int psx_taken_BFC03E60 = (psx_brA_BFC03E60 == psx_brB_BFC03E60); + psx_taken_BFC03E60 = (psx_brA_BFC03E60 == psx_brB_BFC03E60); /* 0xBFC03E64: 2444FFFF addiu $a0, $v0, -1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[2] + (-1)); if (psx_taken_BFC03E60) goto label_BFC03E8C; @@ -13348,7 +13810,7 @@ label_BFC03E70: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); /* 0xBFC03E80: 1460FFFB bne $v1, $zero, 0xBFC03E70 */ uint32_t psx_brA_BFC03E80 = cpu->gpr[3]; uint32_t psx_brB_BFC03E80 = cpu->gpr[0]; - int psx_taken_BFC03E80 = (psx_brA_BFC03E80 != psx_brB_BFC03E80); + psx_taken_BFC03E80 = (psx_brA_BFC03E80 != psx_brB_BFC03E80); /* 0xBFC03E84: ACAC0000 sw $t4, 0($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC03E84u); return; } g_debug_last_store_pc = 0xBFC03E84u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC03E80) goto label_BFC03E70; @@ -13386,6 +13848,7 @@ void func_1FC03EA0(CPUState* cpu) { default: break; } } + int psx_taken_BFC03F54 = 0; label_BFC03EA0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -13489,7 +13952,7 @@ label_BFC03EBC: cpu->gpr[15] = cpu->gpr[15] | 0x201u; /* 0xBFC03F54: 05410002 bgez $t2, 0xBFC03F60 */ uint32_t psx_brA_BFC03F54 = cpu->gpr[10]; - int psx_taken_BFC03F54 = ((int32_t)psx_brA_BFC03F54 >= 0); + psx_taken_BFC03F54 = ((int32_t)psx_brA_BFC03F54 >= 0); /* 0xBFC03F58: 01400821 addu $at, $t2, $zero */ cpu->gpr[1] = cpu->gpr[10] + cpu->gpr[0]; if (psx_taken_BFC03F54) goto label_BFC03F60; @@ -13615,6 +14078,8 @@ void func_1FC03FE0(CPUState* cpu) { default: break; } } + int psx_taken_BFC04000 = 0; + int psx_taken_BFC04024 = 0; label_BFC03FE0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -13644,7 +14109,7 @@ label_BFC03FF4: cpu->gpr[2] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC04000: 1040000A beq $v0, $zero, 0xBFC0402C */ uint32_t psx_brA_BFC04000 = cpu->gpr[2]; uint32_t psx_brB_BFC04000 = cpu->gpr[0]; - int psx_taken_BFC04000 = (psx_brA_BFC04000 == psx_brB_BFC04000); + psx_taken_BFC04000 = (psx_brA_BFC04000 == psx_brB_BFC04000); /* 0xBFC04004: 24A5FFFF addiu $a1, $a1, -1 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-1)); if (psx_taken_BFC04000) goto label_BFC0402C; @@ -13674,7 +14139,7 @@ label_BFC04014: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-1)); /* 0xBFC04024: 1440FFFB bne $v0, $zero, 0xBFC04014 */ uint32_t psx_brA_BFC04024 = cpu->gpr[2]; uint32_t psx_brB_BFC04024 = cpu->gpr[0]; - int psx_taken_BFC04024 = (psx_brA_BFC04024 != psx_brB_BFC04024); + psx_taken_BFC04024 = (psx_brA_BFC04024 != psx_brB_BFC04024); /* 0xBFC04028: AC6E0000 sw $t6, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04028u); return; } g_debug_last_store_pc = 0xBFC04028u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC04024) goto label_BFC04014; @@ -13872,6 +14337,20 @@ void func_1FC04138(CPUState* cpu) { default: break; } } + int psx_taken_BFC04154 = 0; + int psx_taken_BFC04168 = 0; + int psx_taken_BFC04174 = 0; + int psx_taken_BFC04188 = 0; + int psx_taken_BFC0419C = 0; + int psx_taken_BFC041A4 = 0; + int psx_taken_BFC041C4 = 0; + int psx_taken_BFC041D0 = 0; + int psx_taken_BFC041E4 = 0; + int psx_taken_BFC041F8 = 0; + int psx_taken_BFC0420C = 0; + int psx_taken_BFC04220 = 0; + int psx_taken_BFC0422C = 0; + int psx_taken_BFC04240 = 0; label_BFC04138: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -13893,7 +14372,7 @@ label_BFC04138: cpu->gpr[15] = cpu->gpr[14] & cpu->gpr[1]; /* 0xBFC04154: 15E00015 bne $t7, $zero, 0xBFC041AC */ uint32_t psx_brA_BFC04154 = cpu->gpr[15]; uint32_t psx_brB_BFC04154 = cpu->gpr[0]; - int psx_taken_BFC04154 = (psx_brA_BFC04154 != psx_brB_BFC04154); + psx_taken_BFC04154 = (psx_brA_BFC04154 != psx_brB_BFC04154); /* 0xBFC04158: 3C031000 lui $v1, 0x1000 */ cpu->gpr[3] = 0x10000000u; if (psx_taken_BFC04154) goto label_BFC041AC; @@ -13910,7 +14389,7 @@ label_BFC0415C: cpu->gpr[25] = cpu->gpr[24] & cpu->gpr[4]; /* 0xBFC04168: 1720000E bne $t9, $zero, 0xBFC041A4 */ uint32_t psx_brA_BFC04168 = cpu->gpr[25]; uint32_t psx_brB_BFC04168 = cpu->gpr[0]; - int psx_taken_BFC04168 = (psx_brA_BFC04168 != psx_brB_BFC04168); + psx_taken_BFC04168 = (psx_brA_BFC04168 != psx_brB_BFC04168); /* 0xBFC0416C: 00000000 nop */ /* nop */ if (psx_taken_BFC04168) goto label_BFC041A4; @@ -13928,7 +14407,7 @@ label_BFC04174: psx_check_interrupts(cpu); /* 0xBFC04174: 14400006 bne $v0, $zero, 0xBFC04190 */ uint32_t psx_brA_BFC04174 = cpu->gpr[2]; uint32_t psx_brB_BFC04174 = cpu->gpr[0]; - int psx_taken_BFC04174 = (psx_brA_BFC04174 != psx_brB_BFC04174); + psx_taken_BFC04174 = (psx_brA_BFC04174 != psx_brB_BFC04174); /* 0xBFC04178: 2463FFFF addiu $v1, $v1, -1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (-1)); if (psx_taken_BFC04174) goto label_BFC04190; @@ -13951,7 +14430,7 @@ label_BFC04188: psx_check_interrupts(cpu); /* 0xBFC04188: 10000031 beq $zero, $zero, 0xBFC04250 */ uint32_t psx_brA_BFC04188 = cpu->gpr[0]; uint32_t psx_brB_BFC04188 = cpu->gpr[0]; - int psx_taken_BFC04188 = (psx_brA_BFC04188 == psx_brB_BFC04188); + psx_taken_BFC04188 = (psx_brA_BFC04188 == psx_brB_BFC04188); /* 0xBFC0418C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC04188) goto label_BFC04250; @@ -13968,7 +14447,7 @@ label_BFC04190: cpu->gpr[9] = cpu->gpr[8] & cpu->gpr[4]; /* 0xBFC0419C: 1120FFF5 beq $t1, $zero, 0xBFC04174 */ uint32_t psx_brA_BFC0419C = cpu->gpr[9]; uint32_t psx_brB_BFC0419C = cpu->gpr[0]; - int psx_taken_BFC0419C = (psx_brA_BFC0419C == psx_brB_BFC0419C); + psx_taken_BFC0419C = (psx_brA_BFC0419C == psx_brB_BFC0419C); /* 0xBFC041A0: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC0419C) goto label_BFC04174; @@ -13979,7 +14458,7 @@ label_BFC041A4: psx_check_interrupts(cpu); /* 0xBFC041A4: 1000002A beq $zero, $zero, 0xBFC04250 */ uint32_t psx_brA_BFC041A4 = cpu->gpr[0]; uint32_t psx_brB_BFC041A4 = cpu->gpr[0]; - int psx_taken_BFC041A4 = (psx_brA_BFC041A4 == psx_brB_BFC041A4); + psx_taken_BFC041A4 = (psx_brA_BFC041A4 == psx_brB_BFC041A4); /* 0xBFC041A8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC041A4) goto label_BFC04250; @@ -14002,7 +14481,7 @@ label_BFC041AC: cpu->gpr[11] = cpu->gpr[10] & cpu->gpr[5]; /* 0xBFC041C4: 1160000E beq $t3, $zero, 0xBFC04200 */ uint32_t psx_brA_BFC041C4 = cpu->gpr[11]; uint32_t psx_brB_BFC041C4 = cpu->gpr[0]; - int psx_taken_BFC041C4 = (psx_brA_BFC041C4 == psx_brB_BFC041C4); + psx_taken_BFC041C4 = (psx_brA_BFC041C4 == psx_brB_BFC041C4); /* 0xBFC041C8: 00000000 nop */ /* nop */ if (psx_taken_BFC041C4) goto label_BFC04200; @@ -14020,7 +14499,7 @@ label_BFC041D0: psx_check_interrupts(cpu); /* 0xBFC041D0: 14400006 bne $v0, $zero, 0xBFC041EC */ uint32_t psx_brA_BFC041D0 = cpu->gpr[2]; uint32_t psx_brB_BFC041D0 = cpu->gpr[0]; - int psx_taken_BFC041D0 = (psx_brA_BFC041D0 != psx_brB_BFC041D0); + psx_taken_BFC041D0 = (psx_brA_BFC041D0 != psx_brB_BFC041D0); /* 0xBFC041D4: 2463FFFF addiu $v1, $v1, -1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (-1)); if (psx_taken_BFC041D0) goto label_BFC041EC; @@ -14043,7 +14522,7 @@ label_BFC041E4: psx_check_interrupts(cpu); /* 0xBFC041E4: 1000001A beq $zero, $zero, 0xBFC04250 */ uint32_t psx_brA_BFC041E4 = cpu->gpr[0]; uint32_t psx_brB_BFC041E4 = cpu->gpr[0]; - int psx_taken_BFC041E4 = (psx_brA_BFC041E4 == psx_brB_BFC041E4); + psx_taken_BFC041E4 = (psx_brA_BFC041E4 == psx_brB_BFC041E4); /* 0xBFC041E8: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC041E4) goto label_BFC04250; @@ -14060,7 +14539,7 @@ label_BFC041EC: cpu->gpr[13] = cpu->gpr[12] & cpu->gpr[5]; /* 0xBFC041F8: 15A0FFF5 bne $t5, $zero, 0xBFC041D0 */ uint32_t psx_brA_BFC041F8 = cpu->gpr[13]; uint32_t psx_brB_BFC041F8 = cpu->gpr[0]; - int psx_taken_BFC041F8 = (psx_brA_BFC041F8 != psx_brB_BFC041F8); + psx_taken_BFC041F8 = (psx_brA_BFC041F8 != psx_brB_BFC041F8); /* 0xBFC041FC: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC041F8) goto label_BFC041D0; @@ -14077,7 +14556,7 @@ label_BFC04200: cpu->gpr[15] = cpu->gpr[14] & cpu->gpr[3]; /* 0xBFC0420C: 15E00007 bne $t7, $zero, 0xBFC0422C */ uint32_t psx_brA_BFC0420C = cpu->gpr[15]; uint32_t psx_brB_BFC0420C = cpu->gpr[0]; - int psx_taken_BFC0420C = (psx_brA_BFC0420C != psx_brB_BFC0420C); + psx_taken_BFC0420C = (psx_brA_BFC0420C != psx_brB_BFC0420C); /* 0xBFC04210: 3C020010 lui $v0, 0x10 */ cpu->gpr[2] = 0x00100000u; if (psx_taken_BFC0420C) goto label_BFC0422C; @@ -14094,7 +14573,7 @@ label_BFC04214: cpu->gpr[25] = cpu->gpr[24] & cpu->gpr[3]; /* 0xBFC04220: 1320FFFC beq $t9, $zero, 0xBFC04214 */ uint32_t psx_brA_BFC04220 = cpu->gpr[25]; uint32_t psx_brB_BFC04220 = cpu->gpr[0]; - int psx_taken_BFC04220 = (psx_brA_BFC04220 == psx_brB_BFC04220); + psx_taken_BFC04220 = (psx_brA_BFC04220 == psx_brB_BFC04220); /* 0xBFC04224: 00000000 nop */ /* nop */ if (psx_taken_BFC04220) goto label_BFC04214; @@ -14112,7 +14591,7 @@ label_BFC0422C: psx_check_interrupts(cpu); /* 0xBFC0422C: 14400006 bne $v0, $zero, 0xBFC04248 */ uint32_t psx_brA_BFC0422C = cpu->gpr[2]; uint32_t psx_brB_BFC0422C = cpu->gpr[0]; - int psx_taken_BFC0422C = (psx_brA_BFC0422C != psx_brB_BFC0422C); + psx_taken_BFC0422C = (psx_brA_BFC0422C != psx_brB_BFC0422C); /* 0xBFC04230: 00000000 nop */ /* nop */ if (psx_taken_BFC0422C) goto label_BFC04248; @@ -14135,7 +14614,7 @@ label_BFC04240: psx_check_interrupts(cpu); /* 0xBFC04240: 10000003 beq $zero, $zero, 0xBFC04250 */ uint32_t psx_brA_BFC04240 = cpu->gpr[0]; uint32_t psx_brB_BFC04240 = cpu->gpr[0]; - int psx_taken_BFC04240 = (psx_brA_BFC04240 == psx_brB_BFC04240); + psx_taken_BFC04240 = (psx_brA_BFC04240 == psx_brB_BFC04240); /* 0xBFC04244: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC04240) goto label_BFC04250; @@ -14225,6 +14704,7 @@ label_BFC0428C: void func_1FC042A0(CPUState* cpu) { debug_server_log_call_entry(0x1FC042A0u); + int psx_taken_BFC042C0 = 0; label_BFC042A0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -14253,7 +14733,7 @@ label_BFC042B4: { int32_t psx_a = (int32_t)cpu->gpr[6]; int32_t psx_b = (4); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[6] = (uint32_t)(int32_t)psx_r; } /* 0xBFC042C0: 1485FFFC bne $a0, $a1, 0xBFC042B4 */ uint32_t psx_brA_BFC042C0 = cpu->gpr[4]; uint32_t psx_brB_BFC042C0 = cpu->gpr[5]; - int psx_taken_BFC042C0 = (psx_brA_BFC042C0 != psx_brB_BFC042C0); + psx_taken_BFC042C0 = (psx_brA_BFC042C0 != psx_brB_BFC042C0); /* 0xBFC042C4: ACC7FFFC sw $a3, -4($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC042C4u); return; } g_debug_last_store_pc = 0xBFC042C4u; cpu->write_word(psx_addr, cpu->gpr[7]); } if (psx_taken_BFC042C0) goto label_BFC042B4; @@ -14270,6 +14750,7 @@ label_BFC042C8: void func_1FC042D0(CPUState* cpu) { debug_server_log_call_entry(0x1FC042D0u); + int psx_taken_BFC042F0 = 0; label_BFC042D0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -14298,7 +14779,7 @@ label_BFC042E4: { int32_t psx_a = (int32_t)cpu->gpr[6]; int32_t psx_b = (4); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[6] = (uint32_t)(int32_t)psx_r; } /* 0xBFC042F0: 1485FFFC bne $a0, $a1, 0xBFC042E4 */ uint32_t psx_brA_BFC042F0 = cpu->gpr[4]; uint32_t psx_brB_BFC042F0 = cpu->gpr[5]; - int psx_taken_BFC042F0 = (psx_brA_BFC042F0 != psx_brB_BFC042F0); + psx_taken_BFC042F0 = (psx_brA_BFC042F0 != psx_brB_BFC042F0); /* 0xBFC042F4: ACC7FFFC sw $a3, -4($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC042F4u); return; } g_debug_last_store_pc = 0xBFC042F4u; cpu->write_word(psx_addr, cpu->gpr[7]); } if (psx_taken_BFC042F0) goto label_BFC042E4; @@ -14324,6 +14805,8 @@ void func_1FC04610(CPUState* cpu) { default: break; } } + int psx_taken_BFC04630 = 0; + int psx_taken_BFC04638 = 0; label_BFC04610: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -14353,7 +14836,7 @@ label_BFC0462C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0462Cu); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC04630: 14400003 bne $v0, $zero, 0xBFC04640 */ uint32_t psx_brA_BFC04630 = cpu->gpr[2]; uint32_t psx_brB_BFC04630 = cpu->gpr[0]; - int psx_taken_BFC04630 = (psx_brA_BFC04630 != psx_brB_BFC04630); + psx_taken_BFC04630 = (psx_brA_BFC04630 != psx_brB_BFC04630); /* 0xBFC04634: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC04630) goto label_BFC04640; @@ -14364,7 +14847,7 @@ label_BFC04638: psx_check_interrupts(cpu); /* 0xBFC04638: 1000000B beq $zero, $zero, 0xBFC04668 */ uint32_t psx_brA_BFC04638 = cpu->gpr[0]; uint32_t psx_brB_BFC04638 = cpu->gpr[0]; - int psx_taken_BFC04638 = (psx_brA_BFC04638 == psx_brB_BFC04638); + psx_taken_BFC04638 = (psx_brA_BFC04638 == psx_brB_BFC04638); /* 0xBFC0463C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04638) goto label_BFC04668; @@ -14425,6 +14908,10 @@ void func_1FC04678(CPUState* cpu) { default: break; } } + int psx_taken_BFC046C4 = 0; + int psx_taken_BFC046CC = 0; + int psx_taken_BFC04700 = 0; + int psx_taken_BFC04710 = 0; label_BFC04678: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -14482,7 +14969,7 @@ label_BFC046C0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC046C0u); return; } cpu->gpr[6] = cpu->read_word(psx_addr); } /* 0xBFC046C4: 14400004 bne $v0, $zero, 0xBFC046D8 */ uint32_t psx_brA_BFC046C4 = cpu->gpr[2]; uint32_t psx_brB_BFC046C4 = cpu->gpr[0]; - int psx_taken_BFC046C4 = (psx_brA_BFC046C4 != psx_brB_BFC046C4); + psx_taken_BFC046C4 = (psx_brA_BFC046C4 != psx_brB_BFC046C4); /* 0xBFC046C8: 8FAE0024 lw $t6, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC046C8u); return; } cpu->gpr[14] = cpu->read_word(psx_addr); } if (psx_taken_BFC046C4) goto label_BFC046D8; @@ -14493,7 +14980,7 @@ label_BFC046CC: psx_check_interrupts(cpu); /* 0xBFC046CC: 10000013 beq $zero, $zero, 0xBFC0471C */ uint32_t psx_brA_BFC046CC = cpu->gpr[0]; uint32_t psx_brB_BFC046CC = cpu->gpr[0]; - int psx_taken_BFC046CC = (psx_brA_BFC046CC == psx_brB_BFC046CC); + psx_taken_BFC046CC = (psx_brA_BFC046CC == psx_brB_BFC046CC); /* 0xBFC046D0: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC046CC) goto label_BFC0471C; @@ -14531,7 +15018,7 @@ label_BFC046D8: cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC04700: 10200005 beq $at, $zero, 0xBFC04718 */ uint32_t psx_brA_BFC04700 = cpu->gpr[1]; uint32_t psx_brB_BFC04700 = cpu->gpr[0]; - int psx_taken_BFC04700 = (psx_brA_BFC04700 == psx_brB_BFC04700); + psx_taken_BFC04700 = (psx_brA_BFC04700 == psx_brB_BFC04700); /* 0xBFC04704: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC04700) goto label_BFC04718; @@ -14546,7 +15033,7 @@ label_BFC04708: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[4] ? 1 : 0); /* 0xBFC04710: 1420FFFD bne $at, $zero, 0xBFC04708 */ uint32_t psx_brA_BFC04710 = cpu->gpr[1]; uint32_t psx_brB_BFC04710 = cpu->gpr[0]; - int psx_taken_BFC04710 = (psx_brA_BFC04710 != psx_brB_BFC04710); + psx_taken_BFC04710 = (psx_brA_BFC04710 != psx_brB_BFC04710); /* 0xBFC04714: AC60FFE8 sw $zero, -24($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04714u); return; } g_debug_last_store_pc = 0xBFC04714u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC04710) goto label_BFC04708; @@ -14584,6 +15071,14 @@ void func_1FC0472C(CPUState* cpu) { default: break; } } + int psx_taken_BFC04788 = 0; + int psx_taken_BFC04790 = 0; + int psx_taken_BFC047A8 = 0; + int psx_taken_BFC047B0 = 0; + int psx_taken_BFC047CC = 0; + int psx_taken_BFC047DC = 0; + int psx_taken_BFC04800 = 0; + int psx_taken_BFC04814 = 0; label_BFC0472C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -14649,7 +15144,7 @@ label_BFC04788: psx_check_interrupts(cpu); /* 0xBFC04788: 14400003 bne $v0, $zero, 0xBFC04798 */ uint32_t psx_brA_BFC04788 = cpu->gpr[2]; uint32_t psx_brB_BFC04788 = cpu->gpr[0]; - int psx_taken_BFC04788 = (psx_brA_BFC04788 != psx_brB_BFC04788); + psx_taken_BFC04788 = (psx_brA_BFC04788 != psx_brB_BFC04788); /* 0xBFC0478C: 00403021 addu $a2, $v0, $zero */ cpu->gpr[6] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC04788) goto label_BFC04798; @@ -14660,7 +15155,7 @@ label_BFC04790: psx_check_interrupts(cpu); /* 0xBFC04790: 1000002A beq $zero, $zero, 0xBFC0483C */ uint32_t psx_brA_BFC04790 = cpu->gpr[0]; uint32_t psx_brB_BFC04790 = cpu->gpr[0]; - int psx_taken_BFC04790 = (psx_brA_BFC04790 == psx_brB_BFC04790); + psx_taken_BFC04790 = (psx_brA_BFC04790 == psx_brB_BFC04790); /* 0xBFC04794: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04790) goto label_BFC0483C; @@ -14685,7 +15180,7 @@ label_BFC047A4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC047A4u); return; } cpu->gpr[6] = cpu->read_word(psx_addr); } /* 0xBFC047A8: 14400003 bne $v0, $zero, 0xBFC047B8 */ uint32_t psx_brA_BFC047A8 = cpu->gpr[2]; uint32_t psx_brB_BFC047A8 = cpu->gpr[0]; - int psx_taken_BFC047A8 = (psx_brA_BFC047A8 != psx_brB_BFC047A8); + psx_taken_BFC047A8 = (psx_brA_BFC047A8 != psx_brB_BFC047A8); /* 0xBFC047AC: 00403821 addu $a3, $v0, $zero */ cpu->gpr[7] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC047A8) goto label_BFC047B8; @@ -14696,7 +15191,7 @@ label_BFC047B0: psx_check_interrupts(cpu); /* 0xBFC047B0: 10000022 beq $zero, $zero, 0xBFC0483C */ uint32_t psx_brA_BFC047B0 = cpu->gpr[0]; uint32_t psx_brB_BFC047B0 = cpu->gpr[0]; - int psx_taken_BFC047B0 = (psx_brA_BFC047B0 == psx_brB_BFC047B0); + psx_taken_BFC047B0 = (psx_brA_BFC047B0 == psx_brB_BFC047B0); /* 0xBFC047B4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC047B0) goto label_BFC0483C; @@ -14717,7 +15212,7 @@ label_BFC047B8: cpu->gpr[1] = (uint32_t)(cpu->gpr[6] < cpu->gpr[4] ? 1 : 0); /* 0xBFC047CC: 10200006 beq $at, $zero, 0xBFC047E8 */ uint32_t psx_brA_BFC047CC = cpu->gpr[1]; uint32_t psx_brB_BFC047CC = cpu->gpr[0]; - int psx_taken_BFC047CC = (psx_brA_BFC047CC == psx_brB_BFC047CC); + psx_taken_BFC047CC = (psx_brA_BFC047CC == psx_brB_BFC047CC); /* 0xBFC047D0: 8FB80030 lw $t8, 48($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (48)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC047D0u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC047CC) goto label_BFC047E8; @@ -14732,7 +15227,7 @@ label_BFC047D4: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[4] ? 1 : 0); /* 0xBFC047DC: 1420FFFD bne $at, $zero, 0xBFC047D4 */ uint32_t psx_brA_BFC047DC = cpu->gpr[1]; uint32_t psx_brB_BFC047DC = cpu->gpr[0]; - int psx_taken_BFC047DC = (psx_brA_BFC047DC != psx_brB_BFC047DC); + psx_taken_BFC047DC = (psx_brA_BFC047DC != psx_brB_BFC047DC); /* 0xBFC047E0: AC60FFFC sw $zero, -4($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC047E0u); return; } g_debug_last_store_pc = 0xBFC047E0u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC047DC) goto label_BFC047D4; @@ -14762,7 +15257,7 @@ label_BFC047E8: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[5] ? 1 : 0); /* 0xBFC04800: 10200006 beq $at, $zero, 0xBFC0481C */ uint32_t psx_brA_BFC04800 = cpu->gpr[1]; uint32_t psx_brB_BFC04800 = cpu->gpr[0]; - int psx_taken_BFC04800 = (psx_brA_BFC04800 == psx_brB_BFC04800); + psx_taken_BFC04800 = (psx_brA_BFC04800 == psx_brB_BFC04800); /* 0xBFC04804: 00A02021 addu $a0, $a1, $zero */ cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC04800) goto label_BFC0481C; @@ -14784,7 +15279,7 @@ label_BFC0480C: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[4] ? 1 : 0); /* 0xBFC04814: 1420FFFD bne $at, $zero, 0xBFC0480C */ uint32_t psx_brA_BFC04814 = cpu->gpr[1]; uint32_t psx_brB_BFC04814 = cpu->gpr[0]; - int psx_taken_BFC04814 = (psx_brA_BFC04814 != psx_brB_BFC04814); + psx_taken_BFC04814 = (psx_brA_BFC04814 != psx_brB_BFC04814); /* 0xBFC04818: AC62FF40 sw $v0, -192($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-192)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04818u); return; } g_debug_last_store_pc = 0xBFC04818u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC04814) goto label_BFC0480C; @@ -14898,6 +15393,17 @@ void func_1FC04ABC(CPUState* cpu) { default: break; } } + int psx_taken_BFC04AC4 = 0; + int psx_taken_BFC04AD8 = 0; + int psx_taken_BFC04AE0 = 0; + int psx_taken_BFC04AE8 = 0; + int psx_taken_BFC04AFC = 0; + int psx_taken_BFC04B04 = 0; + int psx_taken_BFC04B0C = 0; + int psx_taken_BFC04B2C = 0; + int psx_taken_BFC04B34 = 0; + int psx_taken_BFC04B54 = 0; + int psx_taken_BFC04B5C = 0; label_BFC04ABC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -14909,7 +15415,7 @@ label_BFC04ABC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04AC0u); return; } g_debug_last_store_pc = 0xBFC04AC0u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC04AC4: 1000000A beq $zero, $zero, 0xBFC04AF0 */ uint32_t psx_brA_BFC04AC4 = cpu->gpr[0]; uint32_t psx_brB_BFC04AC4 = cpu->gpr[0]; - int psx_taken_BFC04AC4 = (psx_brA_BFC04AC4 == psx_brB_BFC04AC4); + psx_taken_BFC04AC4 = (psx_brA_BFC04AC4 == psx_brB_BFC04AC4); /* 0xBFC04AC8: 00802821 addu $a1, $a0, $zero */ cpu->gpr[5] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC04AC4) goto label_BFC04AF0; @@ -14926,7 +15432,7 @@ label_BFC04ACC: /* nop */ /* 0xBFC04AD8: 15C0000E bne $t6, $zero, 0xBFC04B14 */ uint32_t psx_brA_BFC04AD8 = cpu->gpr[14]; uint32_t psx_brB_BFC04AD8 = cpu->gpr[0]; - int psx_taken_BFC04AD8 = (psx_brA_BFC04AD8 != psx_brB_BFC04AD8); + psx_taken_BFC04AD8 = (psx_brA_BFC04AD8 != psx_brB_BFC04AD8); /* 0xBFC04ADC: 00000000 nop */ /* nop */ if (psx_taken_BFC04AD8) goto label_BFC04B14; @@ -14937,7 +15443,7 @@ label_BFC04AE0: psx_check_interrupts(cpu); /* 0xBFC04AE0: 10000034 beq $zero, $zero, 0xBFC04BB4 */ uint32_t psx_brA_BFC04AE0 = cpu->gpr[0]; uint32_t psx_brB_BFC04AE0 = cpu->gpr[0]; - int psx_taken_BFC04AE0 = (psx_brA_BFC04AE0 == psx_brB_BFC04AE0); + psx_taken_BFC04AE0 = (psx_brA_BFC04AE0 == psx_brB_BFC04AE0); /* 0xBFC04AE4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04AE0) goto label_BFC04BB4; @@ -14948,7 +15454,7 @@ label_BFC04AE8: psx_check_interrupts(cpu); /* 0xBFC04AE8: 10000032 beq $zero, $zero, 0xBFC04BB4 */ uint32_t psx_brA_BFC04AE8 = cpu->gpr[0]; uint32_t psx_brB_BFC04AE8 = cpu->gpr[0]; - int psx_taken_BFC04AE8 = (psx_brA_BFC04AE8 == psx_brB_BFC04AE8); + psx_taken_BFC04AE8 = (psx_brA_BFC04AE8 == psx_brB_BFC04AE8); /* 0xBFC04AEC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04AE8) goto label_BFC04BB4; @@ -14965,7 +15471,7 @@ label_BFC04AF0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC04AFC: 1081FFF3 beq $a0, $at, 0xBFC04ACC */ uint32_t psx_brA_BFC04AFC = cpu->gpr[4]; uint32_t psx_brB_BFC04AFC = cpu->gpr[1]; - int psx_taken_BFC04AFC = (psx_brA_BFC04AFC == psx_brB_BFC04AFC); + psx_taken_BFC04AFC = (psx_brA_BFC04AFC == psx_brB_BFC04AFC); /* 0xBFC04B00: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC04AFC) goto label_BFC04ACC; @@ -14976,7 +15482,7 @@ label_BFC04B04: psx_check_interrupts(cpu); /* 0xBFC04B04: 1081FFF1 beq $a0, $at, 0xBFC04ACC */ uint32_t psx_brA_BFC04B04 = cpu->gpr[4]; uint32_t psx_brB_BFC04B04 = cpu->gpr[1]; - int psx_taken_BFC04B04 = (psx_brA_BFC04B04 == psx_brB_BFC04B04); + psx_taken_BFC04B04 = (psx_brA_BFC04B04 == psx_brB_BFC04B04); /* 0xBFC04B08: 3401FFFF ori $at, $zero, 0xFFFF */ cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC04B04) goto label_BFC04ACC; @@ -14987,7 +15493,7 @@ label_BFC04B0C: psx_check_interrupts(cpu); /* 0xBFC04B0C: 1481FFF6 bne $a0, $at, 0xBFC04AE8 */ uint32_t psx_brA_BFC04B0C = cpu->gpr[4]; uint32_t psx_brB_BFC04B0C = cpu->gpr[1]; - int psx_taken_BFC04B0C = (psx_brA_BFC04B0C != psx_brB_BFC04B0C); + psx_taken_BFC04B0C = (psx_brA_BFC04B0C != psx_brB_BFC04B0C); /* 0xBFC04B10: 00000000 nop */ /* nop */ if (psx_taken_BFC04B0C) goto label_BFC04AE8; @@ -15010,7 +15516,7 @@ label_BFC04B14: cpu->gpr[24] = cpu->gpr[2] & 0x10u; /* 0xBFC04B2C: 13010003 beq $t8, $at, 0xBFC04B3C */ uint32_t psx_brA_BFC04B2C = cpu->gpr[24]; uint32_t psx_brB_BFC04B2C = cpu->gpr[1]; - int psx_taken_BFC04B2C = (psx_brA_BFC04B2C == psx_brB_BFC04B2C); + psx_taken_BFC04B2C = (psx_brA_BFC04B2C == psx_brB_BFC04B2C); /* 0xBFC04B30: 00000000 nop */ /* nop */ if (psx_taken_BFC04B2C) goto label_BFC04B3C; @@ -15021,7 +15527,7 @@ label_BFC04B34: psx_check_interrupts(cpu); /* 0xBFC04B34: 1000001F beq $zero, $zero, 0xBFC04BB4 */ uint32_t psx_brA_BFC04B34 = cpu->gpr[0]; uint32_t psx_brB_BFC04B34 = cpu->gpr[0]; - int psx_taken_BFC04B34 = (psx_brA_BFC04B34 == psx_brB_BFC04B34); + psx_taken_BFC04B34 = (psx_brA_BFC04B34 == psx_brB_BFC04B34); /* 0xBFC04B38: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04B34) goto label_BFC04BB4; @@ -15050,7 +15556,7 @@ label_BFC04B44: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC04B54: 10810002 beq $a0, $at, 0xBFC04B60 */ uint32_t psx_brA_BFC04B54 = cpu->gpr[4]; uint32_t psx_brB_BFC04B54 = cpu->gpr[1]; - int psx_taken_BFC04B54 = (psx_brA_BFC04B54 == psx_brB_BFC04B54); + psx_taken_BFC04B54 = (psx_brA_BFC04B54 == psx_brB_BFC04B54); /* 0xBFC04B58: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC04B54) goto label_BFC04B60; @@ -15061,7 +15567,7 @@ label_BFC04B5C: psx_check_interrupts(cpu); /* 0xBFC04B5C: 14810002 bne $a0, $at, 0xBFC04B68 */ uint32_t psx_brA_BFC04B5C = cpu->gpr[4]; uint32_t psx_brB_BFC04B5C = cpu->gpr[1]; - int psx_taken_BFC04B5C = (psx_brA_BFC04B5C != psx_brB_BFC04B5C); + psx_taken_BFC04B5C = (psx_brA_BFC04B5C != psx_brB_BFC04B5C); label_BFC04B60: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -15145,6 +15651,8 @@ void func_1FC04BC4(CPUState* cpu) { default: break; } } + int psx_taken_BFC04BD8 = 0; + int psx_taken_BFC04BE0 = 0; label_BFC04BC4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -15162,7 +15670,7 @@ label_BFC04BC4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04BD4u); return; } g_debug_last_store_pc = 0xBFC04BD4u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC04BD8: 11C10003 beq $t6, $at, 0xBFC04BE8 */ uint32_t psx_brA_BFC04BD8 = cpu->gpr[14]; uint32_t psx_brB_BFC04BD8 = cpu->gpr[1]; - int psx_taken_BFC04BD8 = (psx_brA_BFC04BD8 == psx_brB_BFC04BD8); + psx_taken_BFC04BD8 = (psx_brA_BFC04BD8 == psx_brB_BFC04BD8); /* 0xBFC04BDC: AFA40020 sw $a0, 32($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04BDCu); return; } g_debug_last_store_pc = 0xBFC04BDCu; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC04BD8) goto label_BFC04BE8; @@ -15173,7 +15681,7 @@ label_BFC04BE0: psx_check_interrupts(cpu); /* 0xBFC04BE0: 10000011 beq $zero, $zero, 0xBFC04C28 */ uint32_t psx_brA_BFC04BE0 = cpu->gpr[0]; uint32_t psx_brB_BFC04BE0 = cpu->gpr[0]; - int psx_taken_BFC04BE0 = (psx_brA_BFC04BE0 == psx_brB_BFC04BE0); + psx_taken_BFC04BE0 = (psx_brA_BFC04BE0 == psx_brB_BFC04BE0); /* 0xBFC04BE4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04BE0) goto label_BFC04C28; @@ -15245,6 +15753,15 @@ void func_1FC04C38(CPUState* cpu) { default: break; } } + int psx_taken_BFC04C4C = 0; + int psx_taken_BFC04C54 = 0; + int psx_taken_BFC04C5C = 0; + int psx_taken_BFC04CA4 = 0; + int psx_taken_BFC04CB4 = 0; + int psx_taken_BFC04CC0 = 0; + int psx_taken_BFC04CD0 = 0; + int psx_taken_BFC04CFC = 0; + int psx_taken_BFC04D04 = 0; label_BFC04C38: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -15262,7 +15779,7 @@ label_BFC04C38: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04C48u); return; } g_debug_last_store_pc = 0xBFC04C48u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC04C4C: 15C10003 bne $t6, $at, 0xBFC04C5C */ uint32_t psx_brA_BFC04C4C = cpu->gpr[14]; uint32_t psx_brB_BFC04C4C = cpu->gpr[1]; - int psx_taken_BFC04C4C = (psx_brA_BFC04C4C != psx_brB_BFC04C4C); + psx_taken_BFC04C4C = (psx_brA_BFC04C4C != psx_brB_BFC04C4C); /* 0xBFC04C50: AFA50024 sw $a1, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04C50u); return; } g_debug_last_store_pc = 0xBFC04C50u; cpu->write_word(psx_addr, cpu->gpr[5]); } if (psx_taken_BFC04C4C) goto label_BFC04C5C; @@ -15273,7 +15790,7 @@ label_BFC04C54: psx_check_interrupts(cpu); /* 0xBFC04C54: 1C800003 bgtz $a0, 0xBFC04C64 */ uint32_t psx_brA_BFC04C54 = cpu->gpr[4]; - int psx_taken_BFC04C54 = ((int32_t)psx_brA_BFC04C54 > 0); + psx_taken_BFC04C54 = ((int32_t)psx_brA_BFC04C54 > 0); /* 0xBFC04C58: 00000000 nop */ /* nop */ if (psx_taken_BFC04C54) goto label_BFC04C64; @@ -15284,7 +15801,7 @@ label_BFC04C5C: psx_check_interrupts(cpu); /* 0xBFC04C5C: 10000038 beq $zero, $zero, 0xBFC04D40 */ uint32_t psx_brA_BFC04C5C = cpu->gpr[0]; uint32_t psx_brB_BFC04C5C = cpu->gpr[0]; - int psx_taken_BFC04C5C = (psx_brA_BFC04C5C == psx_brB_BFC04C5C); + psx_taken_BFC04C5C = (psx_brA_BFC04C5C == psx_brB_BFC04C5C); /* 0xBFC04C60: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04C5C) goto label_BFC04D40; @@ -15333,7 +15850,7 @@ label_BFC04C70: cpu->gpr[24] = cpu->gpr[6] & 0x10u; /* 0xBFC04CA4: 13000005 beq $t8, $zero, 0xBFC04CBC */ uint32_t psx_brA_BFC04CA4 = cpu->gpr[24]; uint32_t psx_brB_BFC04CA4 = cpu->gpr[0]; - int psx_taken_BFC04CA4 = (psx_brA_BFC04CA4 == psx_brB_BFC04CA4); + psx_taken_BFC04CA4 = (psx_brA_BFC04CA4 == psx_brB_BFC04CA4); /* 0xBFC04CA8: AC20915C sw $zero, -28324($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28324)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04CA8u); return; } g_debug_last_store_pc = 0xBFC04CA8u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC04CA4) goto label_BFC04CBC; @@ -15348,7 +15865,7 @@ label_BFC04CAC: cpu->gpr[1] = 0xA0010000u; /* 0xBFC04CB4: 1000000B beq $zero, $zero, 0xBFC04CE4 */ uint32_t psx_brA_BFC04CB4 = cpu->gpr[0]; uint32_t psx_brB_BFC04CB4 = cpu->gpr[0]; - int psx_taken_BFC04CB4 = (psx_brA_BFC04CB4 == psx_brB_BFC04CB4); + psx_taken_BFC04CB4 = (psx_brA_BFC04CB4 == psx_brB_BFC04CB4); /* 0xBFC04CB8: AC399198 sw $t9, -28264($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28264)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04CB8u); return; } g_debug_last_store_pc = 0xBFC04CB8u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC04CB4) goto label_BFC04CE4; @@ -15361,7 +15878,7 @@ label_BFC04CBC: cpu->gpr[8] = cpu->gpr[6] & 0x20u; /* 0xBFC04CC0: 11000006 beq $t0, $zero, 0xBFC04CDC */ uint32_t psx_brA_BFC04CC0 = cpu->gpr[8]; uint32_t psx_brB_BFC04CC0 = cpu->gpr[0]; - int psx_taken_BFC04CC0 = (psx_brA_BFC04CC0 == psx_brB_BFC04CC0); + psx_taken_BFC04CC0 = (psx_brA_BFC04CC0 == psx_brB_BFC04CC0); /* 0xBFC04CC4: 240A0200 addiu $t2, $zero, 512 */ cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[0] + (512)); if (psx_taken_BFC04CC0) goto label_BFC04CDC; @@ -15376,7 +15893,7 @@ label_BFC04CC8: cpu->gpr[1] = 0xA0010000u; /* 0xBFC04CD0: 10000004 beq $zero, $zero, 0xBFC04CE4 */ uint32_t psx_brA_BFC04CD0 = cpu->gpr[0]; uint32_t psx_brB_BFC04CD0 = cpu->gpr[0]; - int psx_taken_BFC04CD0 = (psx_brA_BFC04CD0 == psx_brB_BFC04CD0); + psx_taken_BFC04CD0 = (psx_brA_BFC04CD0 == psx_brB_BFC04CD0); /* 0xBFC04CD4: AC299198 sw $t1, -28264($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28264)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04CD4u); return; } g_debug_last_store_pc = 0xBFC04CD4u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC04CD0) goto label_BFC04CE4; @@ -15415,7 +15932,7 @@ label_BFC04CE4: cpu->gpr[11] = cpu->gpr[2] & 0x10u; /* 0xBFC04CFC: 11610003 beq $t3, $at, 0xBFC04D0C */ uint32_t psx_brA_BFC04CFC = cpu->gpr[11]; uint32_t psx_brB_BFC04CFC = cpu->gpr[1]; - int psx_taken_BFC04CFC = (psx_brA_BFC04CFC == psx_brB_BFC04CFC); + psx_taken_BFC04CFC = (psx_brA_BFC04CFC == psx_brB_BFC04CFC); /* 0xBFC04D00: 00000000 nop */ /* nop */ if (psx_taken_BFC04CFC) goto label_BFC04D0C; @@ -15426,7 +15943,7 @@ label_BFC04D04: psx_check_interrupts(cpu); /* 0xBFC04D04: 1000000E beq $zero, $zero, 0xBFC04D40 */ uint32_t psx_brA_BFC04D04 = cpu->gpr[0]; uint32_t psx_brB_BFC04D04 = cpu->gpr[0]; - int psx_taken_BFC04D04 = (psx_brA_BFC04D04 == psx_brB_BFC04D04); + psx_taken_BFC04D04 = (psx_brA_BFC04D04 == psx_brB_BFC04D04); /* 0xBFC04D08: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04D04) goto label_BFC04D40; @@ -15486,6 +16003,10 @@ void func_1FC04D50(CPUState* cpu) { default: break; } } + int psx_taken_BFC04D60 = 0; + int psx_taken_BFC04D68 = 0; + int psx_taken_BFC04D98 = 0; + int psx_taken_BFC04DA0 = 0; label_BFC04D50: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -15501,7 +16022,7 @@ label_BFC04D50: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC04D60: 11C10003 beq $t6, $at, 0xBFC04D70 */ uint32_t psx_brA_BFC04D60 = cpu->gpr[14]; uint32_t psx_brB_BFC04D60 = cpu->gpr[1]; - int psx_taken_BFC04D60 = (psx_brA_BFC04D60 == psx_brB_BFC04D60); + psx_taken_BFC04D60 = (psx_brA_BFC04D60 == psx_brB_BFC04D60); /* 0xBFC04D64: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04D64u); return; } g_debug_last_store_pc = 0xBFC04D64u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC04D60) goto label_BFC04D70; @@ -15512,7 +16033,7 @@ label_BFC04D68: psx_check_interrupts(cpu); /* 0xBFC04D68: 1000001C beq $zero, $zero, 0xBFC04DDC */ uint32_t psx_brA_BFC04D68 = cpu->gpr[0]; uint32_t psx_brB_BFC04D68 = cpu->gpr[0]; - int psx_taken_BFC04D68 = (psx_brA_BFC04D68 == psx_brB_BFC04D68); + psx_taken_BFC04D68 = (psx_brA_BFC04D68 == psx_brB_BFC04D68); /* 0xBFC04D6C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04D68) goto label_BFC04DDC; @@ -15549,7 +16070,7 @@ label_BFC04D78: cpu->gpr[15] = cpu->gpr[2] & 0x10u; /* 0xBFC04D98: 11E10003 beq $t7, $at, 0xBFC04DA8 */ uint32_t psx_brA_BFC04D98 = cpu->gpr[15]; uint32_t psx_brB_BFC04D98 = cpu->gpr[1]; - int psx_taken_BFC04D98 = (psx_brA_BFC04D98 == psx_brB_BFC04D98); + psx_taken_BFC04D98 = (psx_brA_BFC04D98 == psx_brB_BFC04D98); /* 0xBFC04D9C: 00000000 nop */ /* nop */ if (psx_taken_BFC04D98) goto label_BFC04DA8; @@ -15560,7 +16081,7 @@ label_BFC04DA0: psx_check_interrupts(cpu); /* 0xBFC04DA0: 1000000E beq $zero, $zero, 0xBFC04DDC */ uint32_t psx_brA_BFC04DA0 = cpu->gpr[0]; uint32_t psx_brB_BFC04DA0 = cpu->gpr[0]; - int psx_taken_BFC04DA0 = (psx_brA_BFC04DA0 == psx_brB_BFC04DA0); + psx_taken_BFC04DA0 = (psx_brA_BFC04DA0 == psx_brB_BFC04DA0); /* 0xBFC04DA4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04DA0) goto label_BFC04DDC; @@ -15624,6 +16145,24 @@ void func_1FC04DEC(CPUState* cpu) { default: break; } } + int psx_taken_BFC04E08 = 0; + int psx_taken_BFC04E10 = 0; + int psx_taken_BFC04E24 = 0; + int psx_taken_BFC04E2C = 0; + int psx_taken_BFC04E5C = 0; + int psx_taken_BFC04E80 = 0; + int psx_taken_BFC04EB0 = 0; + int psx_taken_BFC04EC0 = 0; + int psx_taken_BFC04EE0 = 0; + int psx_taken_BFC04F10 = 0; + int psx_taken_BFC04F24 = 0; + int psx_taken_BFC04F50 = 0; + int psx_taken_BFC04F60 = 0; + int psx_taken_BFC04F70 = 0; + int psx_taken_BFC04F80 = 0; + int psx_taken_BFC04F90 = 0; + int psx_taken_BFC04F98 = 0; + int psx_taken_BFC04FA0 = 0; label_BFC04DEC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -15645,7 +16184,7 @@ label_BFC04DEC: cpu->gpr[15] = cpu->gpr[14] & 0x4u; /* 0xBFC04E08: 15E00003 bne $t7, $zero, 0xBFC04E18 */ uint32_t psx_brA_BFC04E08 = cpu->gpr[15]; uint32_t psx_brB_BFC04E08 = cpu->gpr[0]; - int psx_taken_BFC04E08 = (psx_brA_BFC04E08 != psx_brB_BFC04E08); + psx_taken_BFC04E08 = (psx_brA_BFC04E08 != psx_brB_BFC04E08); /* 0xBFC04E0C: 00000000 nop */ /* nop */ if (psx_taken_BFC04E08) goto label_BFC04E18; @@ -15656,7 +16195,7 @@ label_BFC04E10: psx_check_interrupts(cpu); /* 0xBFC04E10: 10000066 beq $zero, $zero, 0xBFC04FAC */ uint32_t psx_brA_BFC04E10 = cpu->gpr[0]; uint32_t psx_brB_BFC04E10 = cpu->gpr[0]; - int psx_taken_BFC04E10 = (psx_brA_BFC04E10 == psx_brB_BFC04E10); + psx_taken_BFC04E10 = (psx_brA_BFC04E10 == psx_brB_BFC04E10); /* 0xBFC04E14: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04E10) goto label_BFC04FAC; @@ -15673,7 +16212,7 @@ label_BFC04E18: cpu->gpr[24] = cpu->gpr[2] & 0x4u; /* 0xBFC04E24: 17000003 bne $t8, $zero, 0xBFC04E34 */ uint32_t psx_brA_BFC04E24 = cpu->gpr[24]; uint32_t psx_brB_BFC04E24 = cpu->gpr[0]; - int psx_taken_BFC04E24 = (psx_brA_BFC04E24 != psx_brB_BFC04E24); + psx_taken_BFC04E24 = (psx_brA_BFC04E24 != psx_brB_BFC04E24); /* 0xBFC04E28: AC229150 sw $v0, -28336($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28336)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04E28u); return; } g_debug_last_store_pc = 0xBFC04E28u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC04E24) goto label_BFC04E34; @@ -15684,7 +16223,7 @@ label_BFC04E2C: psx_check_interrupts(cpu); /* 0xBFC04E2C: 1000005F beq $zero, $zero, 0xBFC04FAC */ uint32_t psx_brA_BFC04E2C = cpu->gpr[0]; uint32_t psx_brB_BFC04E2C = cpu->gpr[0]; - int psx_taken_BFC04E2C = (psx_brA_BFC04E2C == psx_brB_BFC04E2C); + psx_taken_BFC04E2C = (psx_brA_BFC04E2C == psx_brB_BFC04E2C); /* 0xBFC04E30: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04E2C) goto label_BFC04FAC; @@ -15715,7 +16254,7 @@ label_BFC04E34: cpu->gpr[7] = cpu->gpr[7] & 0xFFu; /* 0xBFC04E5C: 10E00017 beq $a3, $zero, 0xBFC04EBC */ uint32_t psx_brA_BFC04E5C = cpu->gpr[7]; uint32_t psx_brB_BFC04E5C = cpu->gpr[0]; - int psx_taken_BFC04E5C = (psx_brA_BFC04E5C == psx_brB_BFC04E5C); + psx_taken_BFC04E5C = (psx_brA_BFC04E5C == psx_brB_BFC04E5C); /* 0xBFC04E60: 30430018 andi $v1, $v0, 0x18 */ cpu->gpr[3] = cpu->gpr[2] & 0x18u; if (psx_taken_BFC04E5C) goto label_BFC04EBC; @@ -15740,7 +16279,7 @@ label_BFC04E64: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (4) ? 1 : 0); /* 0xBFC04E80: 1020000E beq $at, $zero, 0xBFC04EBC */ uint32_t psx_brA_BFC04E80 = cpu->gpr[1]; uint32_t psx_brB_BFC04E80 = cpu->gpr[0]; - int psx_taken_BFC04E80 = (psx_brA_BFC04E80 == psx_brB_BFC04E80); + psx_taken_BFC04E80 = (psx_brA_BFC04E80 == psx_brB_BFC04E80); /* 0xBFC04E84: 30430018 andi $v1, $v0, 0x18 */ cpu->gpr[3] = cpu->gpr[2] & 0x18u; if (psx_taken_BFC04E80) goto label_BFC04EBC; @@ -15771,7 +16310,7 @@ label_BFC04E88: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[12] < (4) ? 1 : 0); /* 0xBFC04EB0: 1420FFF5 bne $at, $zero, 0xBFC04E88 */ uint32_t psx_brA_BFC04EB0 = cpu->gpr[1]; uint32_t psx_brB_BFC04EB0 = cpu->gpr[0]; - int psx_taken_BFC04EB0 = (psx_brA_BFC04EB0 != psx_brB_BFC04EB0); + psx_taken_BFC04EB0 = (psx_brA_BFC04EB0 != psx_brB_BFC04EB0); /* 0xBFC04EB4: 00000000 nop */ /* nop */ if (psx_taken_BFC04EB0) goto label_BFC04E88; @@ -15791,7 +16330,7 @@ label_BFC04EBC: cpu->gpr[3] = cpu->gpr[3] & 0xFFu; /* 0xBFC04EC0: 10600016 beq $v1, $zero, 0xBFC04F1C */ uint32_t psx_brA_BFC04EC0 = cpu->gpr[3]; uint32_t psx_brB_BFC04EC0 = cpu->gpr[0]; - int psx_taken_BFC04EC0 = (psx_brA_BFC04EC0 == psx_brB_BFC04EC0); + psx_taken_BFC04EC0 = (psx_brA_BFC04EC0 == psx_brB_BFC04EC0); /* 0xBFC04EC4: 00E01021 addu $v0, $a3, $zero */ cpu->gpr[2] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC04EC0) goto label_BFC04F1C; @@ -15814,7 +16353,7 @@ label_BFC04EC8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[13] < (4) ? 1 : 0); /* 0xBFC04EE0: 1020000E beq $at, $zero, 0xBFC04F1C */ uint32_t psx_brA_BFC04EE0 = cpu->gpr[1]; uint32_t psx_brB_BFC04EE0 = cpu->gpr[0]; - int psx_taken_BFC04EE0 = (psx_brA_BFC04EE0 == psx_brB_BFC04EE0); + psx_taken_BFC04EE0 = (psx_brA_BFC04EE0 == psx_brB_BFC04EE0); /* 0xBFC04EE4: 00E01021 addu $v0, $a3, $zero */ cpu->gpr[2] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC04EE0) goto label_BFC04F1C; @@ -15845,7 +16384,7 @@ label_BFC04EE8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[25] < (4) ? 1 : 0); /* 0xBFC04F10: 1420FFF5 bne $at, $zero, 0xBFC04EE8 */ uint32_t psx_brA_BFC04F10 = cpu->gpr[1]; uint32_t psx_brB_BFC04F10 = cpu->gpr[0]; - int psx_taken_BFC04F10 = (psx_brA_BFC04F10 != psx_brB_BFC04F10); + psx_taken_BFC04F10 = (psx_brA_BFC04F10 != psx_brB_BFC04F10); /* 0xBFC04F14: 00000000 nop */ /* nop */ if (psx_taken_BFC04F10) goto label_BFC04EE8; @@ -15867,7 +16406,7 @@ label_BFC04F1C: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < 0x00000005u ? 1 : 0); /* 0xBFC04F24: 1020001C beq $at, $zero, 0xBFC04F98 */ uint32_t psx_brA_BFC04F24 = cpu->gpr[1]; uint32_t psx_brB_BFC04F24 = cpu->gpr[0]; - int psx_taken_BFC04F24 = (psx_brA_BFC04F24 == psx_brB_BFC04F24); + psx_taken_BFC04F24 = (psx_brA_BFC04F24 == psx_brB_BFC04F24); /* 0xBFC04F28: 00000000 nop */ /* nop */ if (psx_taken_BFC04F24) goto label_BFC04F98; @@ -15915,7 +16454,7 @@ label_BFC04F50: psx_check_interrupts(cpu); /* 0xBFC04F50: 10000016 beq $zero, $zero, 0xBFC04FAC */ uint32_t psx_brA_BFC04F50 = cpu->gpr[0]; uint32_t psx_brB_BFC04F50 = cpu->gpr[0]; - int psx_taken_BFC04F50 = (psx_brA_BFC04F50 == psx_brB_BFC04F50); + psx_taken_BFC04F50 = (psx_brA_BFC04F50 == psx_brB_BFC04F50); /* 0xBFC04F54: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC04F50) goto label_BFC04FAC; @@ -15936,7 +16475,7 @@ label_BFC04F60: psx_check_interrupts(cpu); /* 0xBFC04F60: 10000012 beq $zero, $zero, 0xBFC04FAC */ uint32_t psx_brA_BFC04F60 = cpu->gpr[0]; uint32_t psx_brB_BFC04F60 = cpu->gpr[0]; - int psx_taken_BFC04F60 = (psx_brA_BFC04F60 == psx_brB_BFC04F60); + psx_taken_BFC04F60 = (psx_brA_BFC04F60 == psx_brB_BFC04F60); /* 0xBFC04F64: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC04F60) goto label_BFC04FAC; @@ -15957,7 +16496,7 @@ label_BFC04F70: psx_check_interrupts(cpu); /* 0xBFC04F70: 1000000E beq $zero, $zero, 0xBFC04FAC */ uint32_t psx_brA_BFC04F70 = cpu->gpr[0]; uint32_t psx_brB_BFC04F70 = cpu->gpr[0]; - int psx_taken_BFC04F70 = (psx_brA_BFC04F70 == psx_brB_BFC04F70); + psx_taken_BFC04F70 = (psx_brA_BFC04F70 == psx_brB_BFC04F70); /* 0xBFC04F74: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC04F70) goto label_BFC04FAC; @@ -15978,7 +16517,7 @@ label_BFC04F80: psx_check_interrupts(cpu); /* 0xBFC04F80: 1000000A beq $zero, $zero, 0xBFC04FAC */ uint32_t psx_brA_BFC04F80 = cpu->gpr[0]; uint32_t psx_brB_BFC04F80 = cpu->gpr[0]; - int psx_taken_BFC04F80 = (psx_brA_BFC04F80 == psx_brB_BFC04F80); + psx_taken_BFC04F80 = (psx_brA_BFC04F80 == psx_brB_BFC04F80); /* 0xBFC04F84: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC04F80) goto label_BFC04FAC; @@ -15999,7 +16538,7 @@ label_BFC04F90: psx_check_interrupts(cpu); /* 0xBFC04F90: 10000006 beq $zero, $zero, 0xBFC04FAC */ uint32_t psx_brA_BFC04F90 = cpu->gpr[0]; uint32_t psx_brB_BFC04F90 = cpu->gpr[0]; - int psx_taken_BFC04F90 = (psx_brA_BFC04F90 == psx_brB_BFC04F90); + psx_taken_BFC04F90 = (psx_brA_BFC04F90 == psx_brB_BFC04F90); /* 0xBFC04F94: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC04F90) goto label_BFC04FAC; @@ -16010,7 +16549,7 @@ label_BFC04F98: psx_check_interrupts(cpu); /* 0xBFC04F98: 14600004 bne $v1, $zero, 0xBFC04FAC */ uint32_t psx_brA_BFC04F98 = cpu->gpr[3]; uint32_t psx_brB_BFC04F98 = cpu->gpr[0]; - int psx_taken_BFC04F98 = (psx_brA_BFC04F98 != psx_brB_BFC04F98); + psx_taken_BFC04F98 = (psx_brA_BFC04F98 != psx_brB_BFC04F98); /* 0xBFC04F9C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC04F98) goto label_BFC04FAC; @@ -16021,7 +16560,7 @@ label_BFC04FA0: psx_check_interrupts(cpu); /* 0xBFC04FA0: 10000002 beq $zero, $zero, 0xBFC04FAC */ uint32_t psx_brA_BFC04FA0 = cpu->gpr[0]; uint32_t psx_brB_BFC04FA0 = cpu->gpr[0]; - int psx_taken_BFC04FA0 = (psx_brA_BFC04FA0 == psx_brB_BFC04FA0); + psx_taken_BFC04FA0 = (psx_brA_BFC04FA0 == psx_brB_BFC04FA0); /* 0xBFC04FA4: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC04FA0) goto label_BFC04FAC; @@ -16057,6 +16596,11 @@ void func_1FC04FBC(CPUState* cpu) { default: break; } } + int psx_taken_BFC04FD8 = 0; + int psx_taken_BFC04FE0 = 0; + int psx_taken_BFC04FF4 = 0; + int psx_taken_BFC04FFC = 0; + int psx_taken_BFC05038 = 0; label_BFC04FBC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -16078,7 +16622,7 @@ label_BFC04FBC: cpu->gpr[15] = cpu->gpr[14] & 0x8u; /* 0xBFC04FD8: 15E00003 bne $t7, $zero, 0xBFC04FE8 */ uint32_t psx_brA_BFC04FD8 = cpu->gpr[15]; uint32_t psx_brB_BFC04FD8 = cpu->gpr[0]; - int psx_taken_BFC04FD8 = (psx_brA_BFC04FD8 != psx_brB_BFC04FD8); + psx_taken_BFC04FD8 = (psx_brA_BFC04FD8 != psx_brB_BFC04FD8); /* 0xBFC04FDC: 00000000 nop */ /* nop */ if (psx_taken_BFC04FD8) goto label_BFC04FE8; @@ -16089,7 +16633,7 @@ label_BFC04FE0: psx_check_interrupts(cpu); /* 0xBFC04FE0: 1000001E beq $zero, $zero, 0xBFC0505C */ uint32_t psx_brA_BFC04FE0 = cpu->gpr[0]; uint32_t psx_brB_BFC04FE0 = cpu->gpr[0]; - int psx_taken_BFC04FE0 = (psx_brA_BFC04FE0 == psx_brB_BFC04FE0); + psx_taken_BFC04FE0 = (psx_brA_BFC04FE0 == psx_brB_BFC04FE0); /* 0xBFC04FE4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04FE0) goto label_BFC0505C; @@ -16106,7 +16650,7 @@ label_BFC04FE8: cpu->gpr[24] = cpu->gpr[2] & 0x8u; /* 0xBFC04FF4: 17000003 bne $t8, $zero, 0xBFC05004 */ uint32_t psx_brA_BFC04FF4 = cpu->gpr[24]; uint32_t psx_brB_BFC04FF4 = cpu->gpr[0]; - int psx_taken_BFC04FF4 = (psx_brA_BFC04FF4 != psx_brB_BFC04FF4); + psx_taken_BFC04FF4 = (psx_brA_BFC04FF4 != psx_brB_BFC04FF4); /* 0xBFC04FF8: AC229150 sw $v0, -28336($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28336)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC04FF8u); return; } g_debug_last_store_pc = 0xBFC04FF8u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC04FF4) goto label_BFC05004; @@ -16117,7 +16661,7 @@ label_BFC04FFC: psx_check_interrupts(cpu); /* 0xBFC04FFC: 10000017 beq $zero, $zero, 0xBFC0505C */ uint32_t psx_brA_BFC04FFC = cpu->gpr[0]; uint32_t psx_brB_BFC04FFC = cpu->gpr[0]; - int psx_taken_BFC04FFC = (psx_brA_BFC04FFC == psx_brB_BFC04FFC); + psx_taken_BFC04FFC = (psx_brA_BFC04FFC == psx_brB_BFC04FFC); /* 0xBFC05000: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC04FFC) goto label_BFC0505C; @@ -16154,7 +16698,7 @@ label_BFC05004: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (-1)); /* 0xBFC05038: 14800005 bne $a0, $zero, 0xBFC05050 */ uint32_t psx_brA_BFC05038 = cpu->gpr[4]; uint32_t psx_brB_BFC05038 = cpu->gpr[0]; - int psx_taken_BFC05038 = (psx_brA_BFC05038 != psx_brB_BFC05038); + psx_taken_BFC05038 = (psx_brA_BFC05038 != psx_brB_BFC05038); /* 0xBFC0503C: AC249180 sw $a0, -28288($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28288)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0503Cu); return; } g_debug_last_store_pc = 0xBFC0503Cu; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC05038) goto label_BFC05050; @@ -16208,6 +16752,7 @@ void func_1FC0506C(CPUState* cpu) { default: break; } } + int psx_taken_BFC05078 = 0; label_BFC0506C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -16221,7 +16766,7 @@ label_BFC0506C: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC05078: 11C00006 beq $t6, $zero, 0xBFC05094 */ uint32_t psx_brA_BFC05078 = cpu->gpr[14]; uint32_t psx_brB_BFC05078 = cpu->gpr[0]; - int psx_taken_BFC05078 = (psx_brA_BFC05078 == psx_brB_BFC05078); + psx_taken_BFC05078 = (psx_brA_BFC05078 == psx_brB_BFC05078); /* 0xBFC0507C: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0507Cu); return; } g_debug_last_store_pc = 0xBFC0507Cu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC05078) goto label_BFC05094; @@ -16266,6 +16811,7 @@ void func_1FC050A4(CPUState* cpu) { default: break; } } + int psx_taken_BFC050B0 = 0; label_BFC050A4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -16279,7 +16825,7 @@ label_BFC050A4: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC050B0: 11C00006 beq $t6, $zero, 0xBFC050CC */ uint32_t psx_brA_BFC050B0 = cpu->gpr[14]; uint32_t psx_brB_BFC050B0 = cpu->gpr[0]; - int psx_taken_BFC050B0 = (psx_brA_BFC050B0 == psx_brB_BFC050B0); + psx_taken_BFC050B0 = (psx_brA_BFC050B0 == psx_brB_BFC050B0); /* 0xBFC050B4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC050B4u); return; } g_debug_last_store_pc = 0xBFC050B4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC050B0) goto label_BFC050CC; @@ -16343,6 +16889,8 @@ label_BFC050FC: void func_1FC05120(CPUState* cpu) { debug_server_log_call_entry(0x1FC05120u); + int psx_taken_BFC05154 = 0; + int psx_taken_BFC05184 = 0; label_BFC05120: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -16376,7 +16924,7 @@ label_BFC05120: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (4) ? 1 : 0); /* 0xBFC05154: 1020000D beq $at, $zero, 0xBFC0518C */ uint32_t psx_brA_BFC05154 = cpu->gpr[1]; uint32_t psx_brB_BFC05154 = cpu->gpr[0]; - int psx_taken_BFC05154 = (psx_brA_BFC05154 == psx_brB_BFC05154); + psx_taken_BFC05154 = (psx_brA_BFC05154 == psx_brB_BFC05154); /* 0xBFC05158: 00000000 nop */ /* nop */ if (psx_taken_BFC05154) goto label_BFC0518C; @@ -16412,7 +16960,7 @@ label_BFC05160: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[12] < (4) ? 1 : 0); /* 0xBFC05184: 1420FFF6 bne $at, $zero, 0xBFC05160 */ uint32_t psx_brA_BFC05184 = cpu->gpr[1]; uint32_t psx_brB_BFC05184 = cpu->gpr[0]; - int psx_taken_BFC05184 = (psx_brA_BFC05184 != psx_brB_BFC05184); + psx_taken_BFC05184 = (psx_brA_BFC05184 != psx_brB_BFC05184); /* 0xBFC05188: 8FA90000 lw $t1, 0($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05188u); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } if (psx_taken_BFC05184) goto label_BFC05160; @@ -16452,6 +17000,91 @@ void func_1FC05194(CPUState* cpu) { default: break; } } + int psx_taken_BFC051A4 = 0; + int psx_taken_BFC051B4 = 0; + int psx_taken_BFC051C0 = 0; + int psx_taken_BFC051D0 = 0; + int psx_taken_BFC051E8 = 0; + int psx_taken_BFC051F8 = 0; + int psx_taken_BFC05208 = 0; + int psx_taken_BFC05218 = 0; + int psx_taken_BFC0523C = 0; + int psx_taken_BFC0524C = 0; + int psx_taken_BFC0525C = 0; + int psx_taken_BFC0526C = 0; + int psx_taken_BFC0527C = 0; + int psx_taken_BFC0528C = 0; + int psx_taken_BFC0529C = 0; + int psx_taken_BFC052AC = 0; + int psx_taken_BFC052BC = 0; + int psx_taken_BFC052CC = 0; + int psx_taken_BFC052DC = 0; + int psx_taken_BFC052F4 = 0; + int psx_taken_BFC05300 = 0; + int psx_taken_BFC05308 = 0; + int psx_taken_BFC05310 = 0; + int psx_taken_BFC05318 = 0; + int psx_taken_BFC05320 = 0; + int psx_taken_BFC05328 = 0; + int psx_taken_BFC05330 = 0; + int psx_taken_BFC05338 = 0; + int psx_taken_BFC05340 = 0; + int psx_taken_BFC05348 = 0; + int psx_taken_BFC05350 = 0; + int psx_taken_BFC05358 = 0; + int psx_taken_BFC05364 = 0; + int psx_taken_BFC0536C = 0; + int psx_taken_BFC05378 = 0; + int psx_taken_BFC05380 = 0; + int psx_taken_BFC0538C = 0; + int psx_taken_BFC05394 = 0; + int psx_taken_BFC0539C = 0; + int psx_taken_BFC053A4 = 0; + int psx_taken_BFC053B0 = 0; + int psx_taken_BFC053B8 = 0; + int psx_taken_BFC053C4 = 0; + int psx_taken_BFC053CC = 0; + int psx_taken_BFC053D4 = 0; + int psx_taken_BFC053DC = 0; + int psx_taken_BFC053E4 = 0; + int psx_taken_BFC053EC = 0; + int psx_taken_BFC053F8 = 0; + int psx_taken_BFC05400 = 0; + int psx_taken_BFC0540C = 0; + int psx_taken_BFC05414 = 0; + int psx_taken_BFC0541C = 0; + int psx_taken_BFC05424 = 0; + int psx_taken_BFC05430 = 0; + int psx_taken_BFC05438 = 0; + int psx_taken_BFC05444 = 0; + int psx_taken_BFC0544C = 0; + int psx_taken_BFC05454 = 0; + int psx_taken_BFC0545C = 0; + int psx_taken_BFC05464 = 0; + int psx_taken_BFC0546C = 0; + int psx_taken_BFC05474 = 0; + int psx_taken_BFC0547C = 0; + int psx_taken_BFC05488 = 0; + int psx_taken_BFC05490 = 0; + int psx_taken_BFC0549C = 0; + int psx_taken_BFC054A4 = 0; + int psx_taken_BFC054AC = 0; + int psx_taken_BFC054B4 = 0; + int psx_taken_BFC054C0 = 0; + int psx_taken_BFC054C8 = 0; + int psx_taken_BFC054D4 = 0; + int psx_taken_BFC054DC = 0; + int psx_taken_BFC054E4 = 0; + int psx_taken_BFC054EC = 0; + int psx_taken_BFC054F4 = 0; + int psx_taken_BFC054FC = 0; + int psx_taken_BFC05508 = 0; + int psx_taken_BFC05510 = 0; + int psx_taken_BFC0551C = 0; + int psx_taken_BFC05524 = 0; + int psx_taken_BFC0552C = 0; + int psx_taken_BFC05534 = 0; + int psx_taken_BFC05540 = 0; label_BFC05194: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -16467,7 +17100,7 @@ label_BFC05194: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); /* 0xBFC051A4: 14410005 bne $v0, $at, 0xBFC051BC */ uint32_t psx_brA_BFC051A4 = cpu->gpr[2]; uint32_t psx_brB_BFC051A4 = cpu->gpr[1]; - int psx_taken_BFC051A4 = (psx_brA_BFC051A4 != psx_brB_BFC051A4); + psx_taken_BFC051A4 = (psx_brA_BFC051A4 != psx_brB_BFC051A4); /* 0xBFC051A8: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC051A8u); return; } g_debug_last_store_pc = 0xBFC051A8u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC051A4) goto label_BFC051BC; @@ -16488,7 +17121,7 @@ label_BFC051B4: psx_check_interrupts(cpu); /* 0xBFC051B4: 100000E5 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC051B4 = cpu->gpr[0]; uint32_t psx_brB_BFC051B4 = cpu->gpr[0]; - int psx_taken_BFC051B4 = (psx_brA_BFC051B4 == psx_brB_BFC051B4); + psx_taken_BFC051B4 = (psx_brA_BFC051B4 == psx_brB_BFC051B4); /* 0xBFC051B8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC051B8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC051B4) goto label_BFC0554C; @@ -16501,7 +17134,7 @@ label_BFC051BC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (17)); /* 0xBFC051C0: 14410005 bne $v0, $at, 0xBFC051D8 */ uint32_t psx_brA_BFC051C0 = cpu->gpr[2]; uint32_t psx_brB_BFC051C0 = cpu->gpr[1]; - int psx_taken_BFC051C0 = (psx_brA_BFC051C0 != psx_brB_BFC051C0); + psx_taken_BFC051C0 = (psx_brA_BFC051C0 != psx_brB_BFC051C0); /* 0xBFC051C4: 00000000 nop */ /* nop */ if (psx_taken_BFC051C0) goto label_BFC051D8; @@ -16522,7 +17155,7 @@ label_BFC051D0: psx_check_interrupts(cpu); /* 0xBFC051D0: 100000DE beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC051D0 = cpu->gpr[0]; uint32_t psx_brB_BFC051D0 = cpu->gpr[0]; - int psx_taken_BFC051D0 = (psx_brA_BFC051D0 == psx_brB_BFC051D0); + psx_taken_BFC051D0 = (psx_brA_BFC051D0 == psx_brB_BFC051D0); /* 0xBFC051D4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC051D4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC051D0) goto label_BFC0554C; @@ -16541,7 +17174,7 @@ label_BFC051D8: cpu->gpr[4] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[14] + (0))); /* 0xBFC051E8: 10000045 beq $zero, $zero, 0xBFC05300 */ uint32_t psx_brA_BFC051E8 = cpu->gpr[0]; uint32_t psx_brB_BFC051E8 = cpu->gpr[0]; - int psx_taken_BFC051E8 = (psx_brA_BFC051E8 == psx_brB_BFC051E8); + psx_taken_BFC051E8 = (psx_brA_BFC051E8 == psx_brB_BFC051E8); /* 0xBFC051EC: 24010019 addiu $at, $zero, 25 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (25)); if (psx_taken_BFC051E8) goto label_BFC05300; @@ -16562,7 +17195,7 @@ label_BFC051F8: psx_check_interrupts(cpu); /* 0xBFC051F8: 100000D4 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC051F8 = cpu->gpr[0]; uint32_t psx_brB_BFC051F8 = cpu->gpr[0]; - int psx_taken_BFC051F8 = (psx_brA_BFC051F8 == psx_brB_BFC051F8); + psx_taken_BFC051F8 = (psx_brA_BFC051F8 == psx_brB_BFC051F8); /* 0xBFC051FC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC051FCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC051F8) goto label_BFC0554C; @@ -16583,7 +17216,7 @@ label_BFC05208: psx_check_interrupts(cpu); /* 0xBFC05208: 100000D0 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC05208 = cpu->gpr[0]; uint32_t psx_brB_BFC05208 = cpu->gpr[0]; - int psx_taken_BFC05208 = (psx_brA_BFC05208 == psx_brB_BFC05208); + psx_taken_BFC05208 = (psx_brA_BFC05208 == psx_brB_BFC05208); /* 0xBFC0520C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0520Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05208) goto label_BFC0554C; @@ -16603,7 +17236,7 @@ label_BFC05214: cpu->gpr[1] = 0xA0010000u; /* 0xBFC05218: 100000CB beq $zero, $zero, 0xBFC05548 */ uint32_t psx_brA_BFC05218 = cpu->gpr[0]; uint32_t psx_brB_BFC05218 = cpu->gpr[0]; - int psx_taken_BFC05218 = (psx_brA_BFC05218 == psx_brB_BFC05218); + psx_taken_BFC05218 = (psx_brA_BFC05218 == psx_brB_BFC05218); /* 0xBFC0521C: AC2F915C sw $t7, -28324($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28324)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0521Cu); return; } g_debug_last_store_pc = 0xBFC0521Cu; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC05218) goto label_BFC05548; @@ -16639,7 +17272,7 @@ label_BFC0523C: psx_check_interrupts(cpu); /* 0xBFC0523C: 100000C3 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC0523C = cpu->gpr[0]; uint32_t psx_brB_BFC0523C = cpu->gpr[0]; - int psx_taken_BFC0523C = (psx_brA_BFC0523C == psx_brB_BFC0523C); + psx_taken_BFC0523C = (psx_brA_BFC0523C == psx_brB_BFC0523C); /* 0xBFC05240: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05240u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0523C) goto label_BFC0554C; @@ -16660,7 +17293,7 @@ label_BFC0524C: psx_check_interrupts(cpu); /* 0xBFC0524C: 100000BF beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC0524C = cpu->gpr[0]; uint32_t psx_brB_BFC0524C = cpu->gpr[0]; - int psx_taken_BFC0524C = (psx_brA_BFC0524C == psx_brB_BFC0524C); + psx_taken_BFC0524C = (psx_brA_BFC0524C == psx_brB_BFC0524C); /* 0xBFC05250: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05250u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0524C) goto label_BFC0554C; @@ -16681,7 +17314,7 @@ label_BFC0525C: psx_check_interrupts(cpu); /* 0xBFC0525C: 100000BB beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC0525C = cpu->gpr[0]; uint32_t psx_brB_BFC0525C = cpu->gpr[0]; - int psx_taken_BFC0525C = (psx_brA_BFC0525C == psx_brB_BFC0525C); + psx_taken_BFC0525C = (psx_brA_BFC0525C == psx_brB_BFC0525C); /* 0xBFC05260: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05260u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0525C) goto label_BFC0554C; @@ -16702,7 +17335,7 @@ label_BFC0526C: psx_check_interrupts(cpu); /* 0xBFC0526C: 100000B7 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC0526C = cpu->gpr[0]; uint32_t psx_brB_BFC0526C = cpu->gpr[0]; - int psx_taken_BFC0526C = (psx_brA_BFC0526C == psx_brB_BFC0526C); + psx_taken_BFC0526C = (psx_brA_BFC0526C == psx_brB_BFC0526C); /* 0xBFC05270: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05270u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0526C) goto label_BFC0554C; @@ -16723,7 +17356,7 @@ label_BFC0527C: psx_check_interrupts(cpu); /* 0xBFC0527C: 100000B3 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC0527C = cpu->gpr[0]; uint32_t psx_brB_BFC0527C = cpu->gpr[0]; - int psx_taken_BFC0527C = (psx_brA_BFC0527C == psx_brB_BFC0527C); + psx_taken_BFC0527C = (psx_brA_BFC0527C == psx_brB_BFC0527C); /* 0xBFC05280: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05280u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0527C) goto label_BFC0554C; @@ -16744,7 +17377,7 @@ label_BFC0528C: psx_check_interrupts(cpu); /* 0xBFC0528C: 100000AF beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC0528C = cpu->gpr[0]; uint32_t psx_brB_BFC0528C = cpu->gpr[0]; - int psx_taken_BFC0528C = (psx_brA_BFC0528C == psx_brB_BFC0528C); + psx_taken_BFC0528C = (psx_brA_BFC0528C == psx_brB_BFC0528C); /* 0xBFC05290: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05290u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0528C) goto label_BFC0554C; @@ -16765,7 +17398,7 @@ label_BFC0529C: psx_check_interrupts(cpu); /* 0xBFC0529C: 100000AB beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC0529C = cpu->gpr[0]; uint32_t psx_brB_BFC0529C = cpu->gpr[0]; - int psx_taken_BFC0529C = (psx_brA_BFC0529C == psx_brB_BFC0529C); + psx_taken_BFC0529C = (psx_brA_BFC0529C == psx_brB_BFC0529C); /* 0xBFC052A0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC052A0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0529C) goto label_BFC0554C; @@ -16786,7 +17419,7 @@ label_BFC052AC: psx_check_interrupts(cpu); /* 0xBFC052AC: 100000A7 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC052AC = cpu->gpr[0]; uint32_t psx_brB_BFC052AC = cpu->gpr[0]; - int psx_taken_BFC052AC = (psx_brA_BFC052AC == psx_brB_BFC052AC); + psx_taken_BFC052AC = (psx_brA_BFC052AC == psx_brB_BFC052AC); /* 0xBFC052B0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC052B0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC052AC) goto label_BFC0554C; @@ -16807,7 +17440,7 @@ label_BFC052BC: psx_check_interrupts(cpu); /* 0xBFC052BC: 100000A3 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC052BC = cpu->gpr[0]; uint32_t psx_brB_BFC052BC = cpu->gpr[0]; - int psx_taken_BFC052BC = (psx_brA_BFC052BC == psx_brB_BFC052BC); + psx_taken_BFC052BC = (psx_brA_BFC052BC == psx_brB_BFC052BC); /* 0xBFC052C0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC052C0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC052BC) goto label_BFC0554C; @@ -16828,7 +17461,7 @@ label_BFC052CC: psx_check_interrupts(cpu); /* 0xBFC052CC: 1000009F beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC052CC = cpu->gpr[0]; uint32_t psx_brB_BFC052CC = cpu->gpr[0]; - int psx_taken_BFC052CC = (psx_brA_BFC052CC == psx_brB_BFC052CC); + psx_taken_BFC052CC = (psx_brA_BFC052CC == psx_brB_BFC052CC); /* 0xBFC052D0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC052D0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC052CC) goto label_BFC0554C; @@ -16849,7 +17482,7 @@ label_BFC052DC: psx_check_interrupts(cpu); /* 0xBFC052DC: 1000009B beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC052DC = cpu->gpr[0]; uint32_t psx_brB_BFC052DC = cpu->gpr[0]; - int psx_taken_BFC052DC = (psx_brA_BFC052DC == psx_brB_BFC052DC); + psx_taken_BFC052DC = (psx_brA_BFC052DC == psx_brB_BFC052DC); /* 0xBFC052E0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC052E0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC052DC) goto label_BFC0554C; @@ -16879,7 +17512,7 @@ label_BFC052F4: psx_check_interrupts(cpu); /* 0xBFC052F4: 10000095 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC052F4 = cpu->gpr[0]; uint32_t psx_brB_BFC052F4 = cpu->gpr[0]; - int psx_taken_BFC052F4 = (psx_brA_BFC052F4 == psx_brB_BFC052F4); + psx_taken_BFC052F4 = (psx_brA_BFC052F4 == psx_brB_BFC052F4); /* 0xBFC052F8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC052F8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC052F4) goto label_BFC0554C; @@ -16897,7 +17530,7 @@ label_BFC05300: psx_check_interrupts(cpu); /* 0xBFC05300: 1041FFF4 beq $v0, $at, 0xBFC052D4 */ uint32_t psx_brA_BFC05300 = cpu->gpr[2]; uint32_t psx_brB_BFC05300 = cpu->gpr[1]; - int psx_taken_BFC05300 = (psx_brA_BFC05300 == psx_brB_BFC05300); + psx_taken_BFC05300 = (psx_brA_BFC05300 == psx_brB_BFC05300); /* 0xBFC05304: 2841001A slti $at, $v0, 26 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (26) ? 1 : 0); if (psx_taken_BFC05300) goto label_BFC052D4; @@ -16908,7 +17541,7 @@ label_BFC05308: psx_check_interrupts(cpu); /* 0xBFC05308: 1020004D beq $at, $zero, 0xBFC05440 */ uint32_t psx_brA_BFC05308 = cpu->gpr[1]; uint32_t psx_brB_BFC05308 = cpu->gpr[0]; - int psx_taken_BFC05308 = (psx_brA_BFC05308 == psx_brB_BFC05308); + psx_taken_BFC05308 = (psx_brA_BFC05308 == psx_brB_BFC05308); /* 0xBFC0530C: 2401000E addiu $at, $zero, 14 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (14)); if (psx_taken_BFC05308) goto label_BFC05440; @@ -16919,7 +17552,7 @@ label_BFC05310: psx_check_interrupts(cpu); /* 0xBFC05310: 1041FFE8 beq $v0, $at, 0xBFC052B4 */ uint32_t psx_brA_BFC05310 = cpu->gpr[2]; uint32_t psx_brB_BFC05310 = cpu->gpr[1]; - int psx_taken_BFC05310 = (psx_brA_BFC05310 == psx_brB_BFC05310); + psx_taken_BFC05310 = (psx_brA_BFC05310 == psx_brB_BFC05310); /* 0xBFC05314: 2841000F slti $at, $v0, 15 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (15) ? 1 : 0); if (psx_taken_BFC05310) goto label_BFC052B4; @@ -16930,7 +17563,7 @@ label_BFC05318: psx_check_interrupts(cpu); /* 0xBFC05318: 10200029 beq $at, $zero, 0xBFC053C0 */ uint32_t psx_brA_BFC05318 = cpu->gpr[1]; uint32_t psx_brB_BFC05318 = cpu->gpr[0]; - int psx_taken_BFC05318 = (psx_brA_BFC05318 == psx_brB_BFC05318); + psx_taken_BFC05318 = (psx_brA_BFC05318 == psx_brB_BFC05318); /* 0xBFC0531C: 24010008 addiu $at, $zero, 8 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); if (psx_taken_BFC05318) goto label_BFC053C0; @@ -16941,7 +17574,7 @@ label_BFC05320: psx_check_interrupts(cpu); /* 0xBFC05320: 10410089 beq $v0, $at, 0xBFC05548 */ uint32_t psx_brA_BFC05320 = cpu->gpr[2]; uint32_t psx_brB_BFC05320 = cpu->gpr[1]; - int psx_taken_BFC05320 = (psx_brA_BFC05320 == psx_brB_BFC05320); + psx_taken_BFC05320 = (psx_brA_BFC05320 == psx_brB_BFC05320); /* 0xBFC05324: 28410009 slti $at, $v0, 9 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (9) ? 1 : 0); if (psx_taken_BFC05320) goto label_BFC05548; @@ -16952,7 +17585,7 @@ label_BFC05328: psx_check_interrupts(cpu); /* 0xBFC05328: 10200017 beq $at, $zero, 0xBFC05388 */ uint32_t psx_brA_BFC05328 = cpu->gpr[1]; uint32_t psx_brB_BFC05328 = cpu->gpr[0]; - int psx_taken_BFC05328 = (psx_brA_BFC05328 == psx_brB_BFC05328); + psx_taken_BFC05328 = (psx_brA_BFC05328 == psx_brB_BFC05328); /* 0xBFC0532C: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC05328) goto label_BFC05388; @@ -16963,7 +17596,7 @@ label_BFC05330: psx_check_interrupts(cpu); /* 0xBFC05330: 1041FFBB beq $v0, $at, 0xBFC05220 */ uint32_t psx_brA_BFC05330 = cpu->gpr[2]; uint32_t psx_brB_BFC05330 = cpu->gpr[1]; - int psx_taken_BFC05330 = (psx_brA_BFC05330 == psx_brB_BFC05330); + psx_taken_BFC05330 = (psx_brA_BFC05330 == psx_brB_BFC05330); /* 0xBFC05334: 28410006 slti $at, $v0, 6 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (6) ? 1 : 0); if (psx_taken_BFC05330) goto label_BFC05220; @@ -16974,7 +17607,7 @@ label_BFC05338: psx_check_interrupts(cpu); /* 0xBFC05338: 1020000E beq $at, $zero, 0xBFC05374 */ uint32_t psx_brA_BFC05338 = cpu->gpr[1]; uint32_t psx_brB_BFC05338 = cpu->gpr[0]; - int psx_taken_BFC05338 = (psx_brA_BFC05338 == psx_brB_BFC05338); + psx_taken_BFC05338 = (psx_brA_BFC05338 == psx_brB_BFC05338); /* 0xBFC0533C: 24010003 addiu $at, $zero, 3 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); if (psx_taken_BFC05338) goto label_BFC05374; @@ -16985,7 +17618,7 @@ label_BFC05340: psx_check_interrupts(cpu); /* 0xBFC05340: 1041FFB7 beq $v0, $at, 0xBFC05220 */ uint32_t psx_brA_BFC05340 = cpu->gpr[2]; uint32_t psx_brB_BFC05340 = cpu->gpr[1]; - int psx_taken_BFC05340 = (psx_brA_BFC05340 == psx_brB_BFC05340); + psx_taken_BFC05340 = (psx_brA_BFC05340 == psx_brB_BFC05340); /* 0xBFC05344: 28410004 slti $at, $v0, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (4) ? 1 : 0); if (psx_taken_BFC05340) goto label_BFC05220; @@ -16996,7 +17629,7 @@ label_BFC05348: psx_check_interrupts(cpu); /* 0xBFC05348: 10200005 beq $at, $zero, 0xBFC05360 */ uint32_t psx_brA_BFC05348 = cpu->gpr[1]; uint32_t psx_brB_BFC05348 = cpu->gpr[0]; - int psx_taken_BFC05348 = (psx_brA_BFC05348 == psx_brB_BFC05348); + psx_taken_BFC05348 = (psx_brA_BFC05348 == psx_brB_BFC05348); /* 0xBFC0534C: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC05348) goto label_BFC05360; @@ -17007,7 +17640,7 @@ label_BFC05350: psx_check_interrupts(cpu); /* 0xBFC05350: 1041FFBC beq $v0, $at, 0xBFC05244 */ uint32_t psx_brA_BFC05350 = cpu->gpr[2]; uint32_t psx_brB_BFC05350 = cpu->gpr[1]; - int psx_taken_BFC05350 = (psx_brA_BFC05350 == psx_brB_BFC05350); + psx_taken_BFC05350 = (psx_brA_BFC05350 == psx_brB_BFC05350); /* 0xBFC05354: 00000000 nop */ /* nop */ if (psx_taken_BFC05350) goto label_BFC05244; @@ -17018,7 +17651,7 @@ label_BFC05358: psx_check_interrupts(cpu); /* 0xBFC05358: 1000007C beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC05358 = cpu->gpr[0]; uint32_t psx_brB_BFC05358 = cpu->gpr[0]; - int psx_taken_BFC05358 = (psx_brA_BFC05358 == psx_brB_BFC05358); + psx_taken_BFC05358 = (psx_brA_BFC05358 == psx_brB_BFC05358); /* 0xBFC0535C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0535Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05358) goto label_BFC0554C; @@ -17031,7 +17664,7 @@ label_BFC05360: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC05364: 1041FFAF beq $v0, $at, 0xBFC05224 */ uint32_t psx_brA_BFC05364 = cpu->gpr[2]; uint32_t psx_brB_BFC05364 = cpu->gpr[1]; - int psx_taken_BFC05364 = (psx_brA_BFC05364 == psx_brB_BFC05364); + psx_taken_BFC05364 = (psx_brA_BFC05364 == psx_brB_BFC05364); /* 0xBFC05368: 24180001 addiu $t8, $zero, 1 */ cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC05364) goto label_BFC05224; @@ -17042,7 +17675,7 @@ label_BFC0536C: psx_check_interrupts(cpu); /* 0xBFC0536C: 10000077 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC0536C = cpu->gpr[0]; uint32_t psx_brB_BFC0536C = cpu->gpr[0]; - int psx_taken_BFC0536C = (psx_brA_BFC0536C == psx_brB_BFC0536C); + psx_taken_BFC0536C = (psx_brA_BFC0536C == psx_brB_BFC0536C); /* 0xBFC05370: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05370u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0536C) goto label_BFC0554C; @@ -17055,7 +17688,7 @@ label_BFC05374: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (7)); /* 0xBFC05378: 10410074 beq $v0, $at, 0xBFC0554C */ uint32_t psx_brA_BFC05378 = cpu->gpr[2]; uint32_t psx_brB_BFC05378 = cpu->gpr[1]; - int psx_taken_BFC05378 = (psx_brA_BFC05378 == psx_brB_BFC05378); + psx_taken_BFC05378 = (psx_brA_BFC05378 == psx_brB_BFC05378); /* 0xBFC0537C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0537Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05378) goto label_BFC0554C; @@ -17066,7 +17699,7 @@ label_BFC05380: psx_check_interrupts(cpu); /* 0xBFC05380: 10000072 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC05380 = cpu->gpr[0]; uint32_t psx_brB_BFC05380 = cpu->gpr[0]; - int psx_taken_BFC05380 = (psx_brA_BFC05380 == psx_brB_BFC05380); + psx_taken_BFC05380 = (psx_brA_BFC05380 == psx_brB_BFC05380); /* 0xBFC05384: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05384u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05380) goto label_BFC0554C; @@ -17079,7 +17712,7 @@ label_BFC05388: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (11)); /* 0xBFC0538C: 1041FFBD beq $v0, $at, 0xBFC05284 */ uint32_t psx_brA_BFC0538C = cpu->gpr[2]; uint32_t psx_brB_BFC0538C = cpu->gpr[1]; - int psx_taken_BFC0538C = (psx_brA_BFC0538C == psx_brB_BFC0538C); + psx_taken_BFC0538C = (psx_brA_BFC0538C == psx_brB_BFC0538C); /* 0xBFC05390: 2841000C slti $at, $v0, 12 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (12) ? 1 : 0); if (psx_taken_BFC0538C) goto label_BFC05284; @@ -17090,7 +17723,7 @@ label_BFC05394: psx_check_interrupts(cpu); /* 0xBFC05394: 10200005 beq $at, $zero, 0xBFC053AC */ uint32_t psx_brA_BFC05394 = cpu->gpr[1]; uint32_t psx_brB_BFC05394 = cpu->gpr[0]; - int psx_taken_BFC05394 = (psx_brA_BFC05394 == psx_brB_BFC05394); + psx_taken_BFC05394 = (psx_brA_BFC05394 == psx_brB_BFC05394); /* 0xBFC05398: 24010009 addiu $at, $zero, 9 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); if (psx_taken_BFC05394) goto label_BFC053AC; @@ -17101,7 +17734,7 @@ label_BFC0539C: psx_check_interrupts(cpu); /* 0xBFC0539C: 1041006B beq $v0, $at, 0xBFC0554C */ uint32_t psx_brA_BFC0539C = cpu->gpr[2]; uint32_t psx_brB_BFC0539C = cpu->gpr[1]; - int psx_taken_BFC0539C = (psx_brA_BFC0539C == psx_brB_BFC0539C); + psx_taken_BFC0539C = (psx_brA_BFC0539C == psx_brB_BFC0539C); /* 0xBFC053A0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC053A0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0539C) goto label_BFC0554C; @@ -17112,7 +17745,7 @@ label_BFC053A4: psx_check_interrupts(cpu); /* 0xBFC053A4: 10000069 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC053A4 = cpu->gpr[0]; uint32_t psx_brB_BFC053A4 = cpu->gpr[0]; - int psx_taken_BFC053A4 = (psx_brA_BFC053A4 == psx_brB_BFC053A4); + psx_taken_BFC053A4 = (psx_brA_BFC053A4 == psx_brB_BFC053A4); /* 0xBFC053A8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC053A8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC053A4) goto label_BFC0554C; @@ -17125,7 +17758,7 @@ label_BFC053AC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (12)); /* 0xBFC053B0: 1041FFB4 beq $v0, $at, 0xBFC05284 */ uint32_t psx_brA_BFC053B0 = cpu->gpr[2]; uint32_t psx_brB_BFC053B0 = cpu->gpr[1]; - int psx_taken_BFC053B0 = (psx_brA_BFC053B0 == psx_brB_BFC053B0); + psx_taken_BFC053B0 = (psx_brA_BFC053B0 == psx_brB_BFC053B0); /* 0xBFC053B4: 00000000 nop */ /* nop */ if (psx_taken_BFC053B0) goto label_BFC05284; @@ -17136,7 +17769,7 @@ label_BFC053B8: psx_check_interrupts(cpu); /* 0xBFC053B8: 10000064 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC053B8 = cpu->gpr[0]; uint32_t psx_brB_BFC053B8 = cpu->gpr[0]; - int psx_taken_BFC053B8 = (psx_brA_BFC053B8 == psx_brB_BFC053B8); + psx_taken_BFC053B8 = (psx_brA_BFC053B8 == psx_brB_BFC053B8); /* 0xBFC053BC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC053BCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC053B8) goto label_BFC0554C; @@ -17149,7 +17782,7 @@ label_BFC053C0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (20)); /* 0xBFC053C4: 1041FFB7 beq $v0, $at, 0xBFC052A4 */ uint32_t psx_brA_BFC053C4 = cpu->gpr[2]; uint32_t psx_brB_BFC053C4 = cpu->gpr[1]; - int psx_taken_BFC053C4 = (psx_brA_BFC053C4 == psx_brB_BFC053C4); + psx_taken_BFC053C4 = (psx_brA_BFC053C4 == psx_brB_BFC053C4); /* 0xBFC053C8: 28410015 slti $at, $v0, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (21) ? 1 : 0); if (psx_taken_BFC053C4) goto label_BFC052A4; @@ -17160,7 +17793,7 @@ label_BFC053CC: psx_check_interrupts(cpu); /* 0xBFC053CC: 1020000E beq $at, $zero, 0xBFC05408 */ uint32_t psx_brA_BFC053CC = cpu->gpr[1]; uint32_t psx_brB_BFC053CC = cpu->gpr[0]; - int psx_taken_BFC053CC = (psx_brA_BFC053CC == psx_brB_BFC053CC); + psx_taken_BFC053CC = (psx_brA_BFC053CC == psx_brB_BFC053CC); /* 0xBFC053D0: 24010012 addiu $at, $zero, 18 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (18)); if (psx_taken_BFC053CC) goto label_BFC05408; @@ -17171,7 +17804,7 @@ label_BFC053D4: psx_check_interrupts(cpu); /* 0xBFC053D4: 1041005C beq $v0, $at, 0xBFC05548 */ uint32_t psx_brA_BFC053D4 = cpu->gpr[2]; uint32_t psx_brB_BFC053D4 = cpu->gpr[1]; - int psx_taken_BFC053D4 = (psx_brA_BFC053D4 == psx_brB_BFC053D4); + psx_taken_BFC053D4 = (psx_brA_BFC053D4 == psx_brB_BFC053D4); /* 0xBFC053D8: 28410013 slti $at, $v0, 19 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (19) ? 1 : 0); if (psx_taken_BFC053D4) goto label_BFC05548; @@ -17182,7 +17815,7 @@ label_BFC053DC: psx_check_interrupts(cpu); /* 0xBFC053DC: 10200005 beq $at, $zero, 0xBFC053F4 */ uint32_t psx_brA_BFC053DC = cpu->gpr[1]; uint32_t psx_brB_BFC053DC = cpu->gpr[0]; - int psx_taken_BFC053DC = (psx_brA_BFC053DC == psx_brB_BFC053DC); + psx_taken_BFC053DC = (psx_brA_BFC053DC == psx_brB_BFC053DC); /* 0xBFC053E0: 2401000F addiu $at, $zero, 15 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (15)); if (psx_taken_BFC053DC) goto label_BFC053F4; @@ -17193,7 +17826,7 @@ label_BFC053E4: psx_check_interrupts(cpu); /* 0xBFC053E4: 1041FF9B beq $v0, $at, 0xBFC05254 */ uint32_t psx_brA_BFC053E4 = cpu->gpr[2]; uint32_t psx_brB_BFC053E4 = cpu->gpr[1]; - int psx_taken_BFC053E4 = (psx_brA_BFC053E4 == psx_brB_BFC053E4); + psx_taken_BFC053E4 = (psx_brA_BFC053E4 == psx_brB_BFC053E4); /* 0xBFC053E8: 00000000 nop */ /* nop */ if (psx_taken_BFC053E4) goto label_BFC05254; @@ -17204,7 +17837,7 @@ label_BFC053EC: psx_check_interrupts(cpu); /* 0xBFC053EC: 10000057 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC053EC = cpu->gpr[0]; uint32_t psx_brB_BFC053EC = cpu->gpr[0]; - int psx_taken_BFC053EC = (psx_brA_BFC053EC == psx_brB_BFC053EC); + psx_taken_BFC053EC = (psx_brA_BFC053EC == psx_brB_BFC053EC); /* 0xBFC053F0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC053F0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC053EC) goto label_BFC0554C; @@ -17217,7 +17850,7 @@ label_BFC053F4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (19)); /* 0xBFC053F8: 1041FFB2 beq $v0, $at, 0xBFC052C4 */ uint32_t psx_brA_BFC053F8 = cpu->gpr[2]; uint32_t psx_brB_BFC053F8 = cpu->gpr[1]; - int psx_taken_BFC053F8 = (psx_brA_BFC053F8 == psx_brB_BFC053F8); + psx_taken_BFC053F8 = (psx_brA_BFC053F8 == psx_brB_BFC053F8); /* 0xBFC053FC: 00000000 nop */ /* nop */ if (psx_taken_BFC053F8) goto label_BFC052C4; @@ -17228,7 +17861,7 @@ label_BFC05400: psx_check_interrupts(cpu); /* 0xBFC05400: 10000052 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC05400 = cpu->gpr[0]; uint32_t psx_brB_BFC05400 = cpu->gpr[0]; - int psx_taken_BFC05400 = (psx_brA_BFC05400 == psx_brB_BFC05400); + psx_taken_BFC05400 = (psx_brA_BFC05400 == psx_brB_BFC05400); /* 0xBFC05404: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05404u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05400) goto label_BFC0554C; @@ -17241,7 +17874,7 @@ label_BFC05408: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (22)); /* 0xBFC0540C: 1041004E beq $v0, $at, 0xBFC05548 */ uint32_t psx_brA_BFC0540C = cpu->gpr[2]; uint32_t psx_brB_BFC0540C = cpu->gpr[1]; - int psx_taken_BFC0540C = (psx_brA_BFC0540C == psx_brB_BFC0540C); + psx_taken_BFC0540C = (psx_brA_BFC0540C == psx_brB_BFC0540C); /* 0xBFC05410: 28410017 slti $at, $v0, 23 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (23) ? 1 : 0); if (psx_taken_BFC0540C) goto label_BFC05548; @@ -17252,7 +17885,7 @@ label_BFC05414: psx_check_interrupts(cpu); /* 0xBFC05414: 10200005 beq $at, $zero, 0xBFC0542C */ uint32_t psx_brA_BFC05414 = cpu->gpr[1]; uint32_t psx_brB_BFC05414 = cpu->gpr[0]; - int psx_taken_BFC05414 = (psx_brA_BFC05414 == psx_brB_BFC05414); + psx_taken_BFC05414 = (psx_brA_BFC05414 == psx_brB_BFC05414); /* 0xBFC05418: 24010015 addiu $at, $zero, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (21)); if (psx_taken_BFC05414) goto label_BFC0542C; @@ -17263,7 +17896,7 @@ label_BFC0541C: psx_check_interrupts(cpu); /* 0xBFC0541C: 1041004B beq $v0, $at, 0xBFC0554C */ uint32_t psx_brA_BFC0541C = cpu->gpr[2]; uint32_t psx_brB_BFC0541C = cpu->gpr[1]; - int psx_taken_BFC0541C = (psx_brA_BFC0541C == psx_brB_BFC0541C); + psx_taken_BFC0541C = (psx_brA_BFC0541C == psx_brB_BFC0541C); /* 0xBFC05420: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05420u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0541C) goto label_BFC0554C; @@ -17274,7 +17907,7 @@ label_BFC05424: psx_check_interrupts(cpu); /* 0xBFC05424: 10000049 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC05424 = cpu->gpr[0]; uint32_t psx_brB_BFC05424 = cpu->gpr[0]; - int psx_taken_BFC05424 = (psx_brA_BFC05424 == psx_brB_BFC05424); + psx_taken_BFC05424 = (psx_brA_BFC05424 == psx_brB_BFC05424); /* 0xBFC05428: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05428u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05424) goto label_BFC0554C; @@ -17287,7 +17920,7 @@ label_BFC0542C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (23)); /* 0xBFC05430: 1041FFA0 beq $v0, $at, 0xBFC052B4 */ uint32_t psx_brA_BFC05430 = cpu->gpr[2]; uint32_t psx_brB_BFC05430 = cpu->gpr[1]; - int psx_taken_BFC05430 = (psx_brA_BFC05430 == psx_brB_BFC05430); + psx_taken_BFC05430 = (psx_brA_BFC05430 == psx_brB_BFC05430); /* 0xBFC05434: 00000000 nop */ /* nop */ if (psx_taken_BFC05430) goto label_BFC052B4; @@ -17298,7 +17931,7 @@ label_BFC05438: psx_check_interrupts(cpu); /* 0xBFC05438: 10000044 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC05438 = cpu->gpr[0]; uint32_t psx_brB_BFC05438 = cpu->gpr[0]; - int psx_taken_BFC05438 = (psx_brA_BFC05438 == psx_brB_BFC05438); + psx_taken_BFC05438 = (psx_brA_BFC05438 == psx_brB_BFC05438); /* 0xBFC0543C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0543Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05438) goto label_BFC0554C; @@ -17311,7 +17944,7 @@ label_BFC05440: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (246)); /* 0xBFC05444: 1041FF72 beq $v0, $at, 0xBFC05210 */ uint32_t psx_brA_BFC05444 = cpu->gpr[2]; uint32_t psx_brB_BFC05444 = cpu->gpr[1]; - int psx_taken_BFC05444 = (psx_brA_BFC05444 == psx_brB_BFC05444); + psx_taken_BFC05444 = (psx_brA_BFC05444 == psx_brB_BFC05444); /* 0xBFC05448: 284100F7 slti $at, $v0, 247 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (247) ? 1 : 0); if (psx_taken_BFC05444) goto label_BFC05210; @@ -17322,7 +17955,7 @@ label_BFC0544C: psx_check_interrupts(cpu); /* 0xBFC0544C: 10200020 beq $at, $zero, 0xBFC054D0 */ uint32_t psx_brA_BFC0544C = cpu->gpr[1]; uint32_t psx_brB_BFC0544C = cpu->gpr[0]; - int psx_taken_BFC0544C = (psx_brA_BFC0544C == psx_brB_BFC0544C); + psx_taken_BFC0544C = (psx_brA_BFC0544C == psx_brB_BFC0544C); /* 0xBFC05450: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC0544C) goto label_BFC054D0; @@ -17333,7 +17966,7 @@ label_BFC05454: psx_check_interrupts(cpu); /* 0xBFC05454: 1041FF6E beq $v0, $at, 0xBFC05210 */ uint32_t psx_brA_BFC05454 = cpu->gpr[2]; uint32_t psx_brB_BFC05454 = cpu->gpr[1]; - int psx_taken_BFC05454 = (psx_brA_BFC05454 == psx_brB_BFC05454); + psx_taken_BFC05454 = (psx_brA_BFC05454 == psx_brB_BFC05454); /* 0xBFC05458: 284100E7 slti $at, $v0, 231 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (231) ? 1 : 0); if (psx_taken_BFC05454) goto label_BFC05210; @@ -17344,7 +17977,7 @@ label_BFC0545C: psx_check_interrupts(cpu); /* 0xBFC0545C: 1020000E beq $at, $zero, 0xBFC05498 */ uint32_t psx_brA_BFC0545C = cpu->gpr[1]; uint32_t psx_brB_BFC0545C = cpu->gpr[0]; - int psx_taken_BFC0545C = (psx_brA_BFC0545C == psx_brB_BFC0545C); + psx_taken_BFC0545C = (psx_brA_BFC0545C == psx_brB_BFC0545C); /* 0xBFC05460: 24010050 addiu $at, $zero, 80 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (80)); if (psx_taken_BFC0545C) goto label_BFC05498; @@ -17355,7 +17988,7 @@ label_BFC05464: psx_check_interrupts(cpu); /* 0xBFC05464: 1041FF83 beq $v0, $at, 0xBFC05274 */ uint32_t psx_brA_BFC05464 = cpu->gpr[2]; uint32_t psx_brB_BFC05464 = cpu->gpr[1]; - int psx_taken_BFC05464 = (psx_brA_BFC05464 == psx_brB_BFC05464); + psx_taken_BFC05464 = (psx_brA_BFC05464 == psx_brB_BFC05464); /* 0xBFC05468: 28410051 slti $at, $v0, 81 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (81) ? 1 : 0); if (psx_taken_BFC05464) goto label_BFC05274; @@ -17366,7 +17999,7 @@ label_BFC0546C: psx_check_interrupts(cpu); /* 0xBFC0546C: 10200005 beq $at, $zero, 0xBFC05484 */ uint32_t psx_brA_BFC0546C = cpu->gpr[1]; uint32_t psx_brB_BFC0546C = cpu->gpr[0]; - int psx_taken_BFC0546C = (psx_brA_BFC0546C == psx_brB_BFC0546C); + psx_taken_BFC0546C = (psx_brA_BFC0546C == psx_brB_BFC0546C); /* 0xBFC05470: 2401001A addiu $at, $zero, 26 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (26)); if (psx_taken_BFC0546C) goto label_BFC05484; @@ -17377,7 +18010,7 @@ label_BFC05474: psx_check_interrupts(cpu); /* 0xBFC05474: 10410035 beq $v0, $at, 0xBFC0554C */ uint32_t psx_brA_BFC05474 = cpu->gpr[2]; uint32_t psx_brB_BFC05474 = cpu->gpr[1]; - int psx_taken_BFC05474 = (psx_brA_BFC05474 == psx_brB_BFC05474); + psx_taken_BFC05474 = (psx_brA_BFC05474 == psx_brB_BFC05474); /* 0xBFC05478: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05478u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05474) goto label_BFC0554C; @@ -17388,7 +18021,7 @@ label_BFC0547C: psx_check_interrupts(cpu); /* 0xBFC0547C: 10000033 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC0547C = cpu->gpr[0]; uint32_t psx_brB_BFC0547C = cpu->gpr[0]; - int psx_taken_BFC0547C = (psx_brA_BFC0547C == psx_brB_BFC0547C); + psx_taken_BFC0547C = (psx_brA_BFC0547C == psx_brB_BFC0547C); /* 0xBFC05480: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05480u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0547C) goto label_BFC0554C; @@ -17401,7 +18034,7 @@ label_BFC05484: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (226)); /* 0xBFC05488: 1041FF5D beq $v0, $at, 0xBFC05200 */ uint32_t psx_brA_BFC05488 = cpu->gpr[2]; uint32_t psx_brB_BFC05488 = cpu->gpr[1]; - int psx_taken_BFC05488 = (psx_brA_BFC05488 == psx_brB_BFC05488); + psx_taken_BFC05488 = (psx_brA_BFC05488 == psx_brB_BFC05488); /* 0xBFC0548C: 00000000 nop */ /* nop */ if (psx_taken_BFC05488) goto label_BFC05200; @@ -17412,7 +18045,7 @@ label_BFC05490: psx_check_interrupts(cpu); /* 0xBFC05490: 1000002E beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC05490 = cpu->gpr[0]; uint32_t psx_brB_BFC05490 = cpu->gpr[0]; - int psx_taken_BFC05490 = (psx_brA_BFC05490 == psx_brB_BFC05490); + psx_taken_BFC05490 = (psx_brA_BFC05490 == psx_brB_BFC05490); /* 0xBFC05494: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05494u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05490) goto label_BFC0554C; @@ -17425,7 +18058,7 @@ label_BFC05498: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (238)); /* 0xBFC0549C: 1041FF71 beq $v0, $at, 0xBFC05264 */ uint32_t psx_brA_BFC0549C = cpu->gpr[2]; uint32_t psx_brB_BFC0549C = cpu->gpr[1]; - int psx_taken_BFC0549C = (psx_brA_BFC0549C == psx_brB_BFC0549C); + psx_taken_BFC0549C = (psx_brA_BFC0549C == psx_brB_BFC0549C); /* 0xBFC054A0: 284100EF slti $at, $v0, 239 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (239) ? 1 : 0); if (psx_taken_BFC0549C) goto label_BFC05264; @@ -17436,7 +18069,7 @@ label_BFC054A4: psx_check_interrupts(cpu); /* 0xBFC054A4: 10200005 beq $at, $zero, 0xBFC054BC */ uint32_t psx_brA_BFC054A4 = cpu->gpr[1]; uint32_t psx_brB_BFC054A4 = cpu->gpr[0]; - int psx_taken_BFC054A4 = (psx_brA_BFC054A4 == psx_brB_BFC054A4); + psx_taken_BFC054A4 = (psx_brA_BFC054A4 == psx_brB_BFC054A4); /* 0xBFC054A8: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC054A4) goto label_BFC054BC; @@ -17447,7 +18080,7 @@ label_BFC054AC: psx_check_interrupts(cpu); /* 0xBFC054AC: 1041FF59 beq $v0, $at, 0xBFC05214 */ uint32_t psx_brA_BFC054AC = cpu->gpr[2]; uint32_t psx_brB_BFC054AC = cpu->gpr[1]; - int psx_taken_BFC054AC = (psx_brA_BFC054AC == psx_brB_BFC054AC); + psx_taken_BFC054AC = (psx_brA_BFC054AC == psx_brB_BFC054AC); /* 0xBFC054B0: 240F0001 addiu $t7, $zero, 1 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC054AC) goto label_BFC05214; @@ -17458,7 +18091,7 @@ label_BFC054B4: psx_check_interrupts(cpu); /* 0xBFC054B4: 10000025 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC054B4 = cpu->gpr[0]; uint32_t psx_brB_BFC054B4 = cpu->gpr[0]; - int psx_taken_BFC054B4 = (psx_brA_BFC054B4 == psx_brB_BFC054B4); + psx_taken_BFC054B4 = (psx_brA_BFC054B4 == psx_brB_BFC054B4); /* 0xBFC054B8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC054B8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC054B4) goto label_BFC0554C; @@ -17471,7 +18104,7 @@ label_BFC054BC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (242)); /* 0xBFC054C0: 1041FF4B beq $v0, $at, 0xBFC051F0 */ uint32_t psx_brA_BFC054C0 = cpu->gpr[2]; uint32_t psx_brB_BFC054C0 = cpu->gpr[1]; - int psx_taken_BFC054C0 = (psx_brA_BFC054C0 == psx_brB_BFC054C0); + psx_taken_BFC054C0 = (psx_brA_BFC054C0 == psx_brB_BFC054C0); /* 0xBFC054C4: 00000000 nop */ /* nop */ if (psx_taken_BFC054C0) goto label_BFC051F0; @@ -17482,7 +18115,7 @@ label_BFC054C8: psx_check_interrupts(cpu); /* 0xBFC054C8: 10000020 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC054C8 = cpu->gpr[0]; uint32_t psx_brB_BFC054C8 = cpu->gpr[0]; - int psx_taken_BFC054C8 = (psx_brA_BFC054C8 == psx_brB_BFC054C8); + psx_taken_BFC054C8 = (psx_brA_BFC054C8 == psx_brB_BFC054C8); /* 0xBFC054CC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC054CCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC054C8) goto label_BFC0554C; @@ -17495,7 +18128,7 @@ label_BFC054D0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3549)); /* 0xBFC054D4: 1041001C beq $v0, $at, 0xBFC05548 */ uint32_t psx_brA_BFC054D4 = cpu->gpr[2]; uint32_t psx_brB_BFC054D4 = cpu->gpr[1]; - int psx_taken_BFC054D4 = (psx_brA_BFC054D4 == psx_brB_BFC054D4); + psx_taken_BFC054D4 = (psx_brA_BFC054D4 == psx_brB_BFC054D4); /* 0xBFC054D8: 28410DDE slti $at, $v0, 3550 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (3550) ? 1 : 0); if (psx_taken_BFC054D4) goto label_BFC05548; @@ -17506,7 +18139,7 @@ label_BFC054DC: psx_check_interrupts(cpu); /* 0xBFC054DC: 1020000E beq $at, $zero, 0xBFC05518 */ uint32_t psx_brA_BFC054DC = cpu->gpr[1]; uint32_t psx_brB_BFC054DC = cpu->gpr[0]; - int psx_taken_BFC054DC = (psx_brA_BFC054DC == psx_brB_BFC054DC); + psx_taken_BFC054DC = (psx_brA_BFC054DC == psx_brB_BFC054DC); /* 0xBFC054E0: 240100FE addiu $at, $zero, 254 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (254)); if (psx_taken_BFC054DC) goto label_BFC05518; @@ -17517,7 +18150,7 @@ label_BFC054E4: psx_check_interrupts(cpu); /* 0xBFC054E4: 1041FF5F beq $v0, $at, 0xBFC05264 */ uint32_t psx_brA_BFC054E4 = cpu->gpr[2]; uint32_t psx_brB_BFC054E4 = cpu->gpr[1]; - int psx_taken_BFC054E4 = (psx_brA_BFC054E4 == psx_brB_BFC054E4); + psx_taken_BFC054E4 = (psx_brA_BFC054E4 == psx_brB_BFC054E4); /* 0xBFC054E8: 284100FF slti $at, $v0, 255 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (255) ? 1 : 0); if (psx_taken_BFC054E4) goto label_BFC05264; @@ -17528,7 +18161,7 @@ label_BFC054EC: psx_check_interrupts(cpu); /* 0xBFC054EC: 10200005 beq $at, $zero, 0xBFC05504 */ uint32_t psx_brA_BFC054EC = cpu->gpr[1]; uint32_t psx_brB_BFC054EC = cpu->gpr[0]; - int psx_taken_BFC054EC = (psx_brA_BFC054EC == psx_brB_BFC054EC); + psx_taken_BFC054EC = (psx_brA_BFC054EC == psx_brB_BFC054EC); /* 0xBFC054F0: 240100FB addiu $at, $zero, 251 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (251)); if (psx_taken_BFC054EC) goto label_BFC05504; @@ -17539,7 +18172,7 @@ label_BFC054F4: psx_check_interrupts(cpu); /* 0xBFC054F4: 1041FF47 beq $v0, $at, 0xBFC05214 */ uint32_t psx_brA_BFC054F4 = cpu->gpr[2]; uint32_t psx_brB_BFC054F4 = cpu->gpr[1]; - int psx_taken_BFC054F4 = (psx_brA_BFC054F4 == psx_brB_BFC054F4); + psx_taken_BFC054F4 = (psx_brA_BFC054F4 == psx_brB_BFC054F4); /* 0xBFC054F8: 240F0001 addiu $t7, $zero, 1 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC054F4) goto label_BFC05214; @@ -17550,7 +18183,7 @@ label_BFC054FC: psx_check_interrupts(cpu); /* 0xBFC054FC: 10000013 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC054FC = cpu->gpr[0]; uint32_t psx_brB_BFC054FC = cpu->gpr[0]; - int psx_taken_BFC054FC = (psx_brA_BFC054FC == psx_brB_BFC054FC); + psx_taken_BFC054FC = (psx_brA_BFC054FC == psx_brB_BFC054FC); /* 0xBFC05500: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05500u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC054FC) goto label_BFC0554C; @@ -17563,7 +18196,7 @@ label_BFC05504: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3276)); /* 0xBFC05508: 10410010 beq $v0, $at, 0xBFC0554C */ uint32_t psx_brA_BFC05508 = cpu->gpr[2]; uint32_t psx_brB_BFC05508 = cpu->gpr[1]; - int psx_taken_BFC05508 = (psx_brA_BFC05508 == psx_brB_BFC05508); + psx_taken_BFC05508 = (psx_brA_BFC05508 == psx_brB_BFC05508); /* 0xBFC0550C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0550Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05508) goto label_BFC0554C; @@ -17574,7 +18207,7 @@ label_BFC05510: psx_check_interrupts(cpu); /* 0xBFC05510: 1000000E beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC05510 = cpu->gpr[0]; uint32_t psx_brB_BFC05510 = cpu->gpr[0]; - int psx_taken_BFC05510 = (psx_brA_BFC05510 == psx_brB_BFC05510); + psx_taken_BFC05510 = (psx_brA_BFC05510 == psx_brB_BFC05510); /* 0xBFC05514: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05514u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05510) goto label_BFC0554C; @@ -17587,7 +18220,7 @@ label_BFC05518: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4095)); /* 0xBFC0551C: 1041000A beq $v0, $at, 0xBFC05548 */ uint32_t psx_brA_BFC0551C = cpu->gpr[2]; uint32_t psx_brB_BFC0551C = cpu->gpr[1]; - int psx_taken_BFC0551C = (psx_brA_BFC0551C == psx_brB_BFC0551C); + psx_taken_BFC0551C = (psx_brA_BFC0551C == psx_brB_BFC0551C); /* 0xBFC05520: 28411000 slti $at, $v0, 4096 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (4096) ? 1 : 0); if (psx_taken_BFC0551C) goto label_BFC05548; @@ -17598,7 +18231,7 @@ label_BFC05524: psx_check_interrupts(cpu); /* 0xBFC05524: 10200005 beq $at, $zero, 0xBFC0553C */ uint32_t psx_brA_BFC05524 = cpu->gpr[1]; uint32_t psx_brB_BFC05524 = cpu->gpr[0]; - int psx_taken_BFC05524 = (psx_brA_BFC05524 == psx_brB_BFC05524); + psx_taken_BFC05524 = (psx_brA_BFC05524 == psx_brB_BFC05524); /* 0xBFC05528: 24010F14 addiu $at, $zero, 3860 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3860)); if (psx_taken_BFC05524) goto label_BFC0553C; @@ -17609,7 +18242,7 @@ label_BFC0552C: psx_check_interrupts(cpu); /* 0xBFC0552C: 1041FF59 beq $v0, $at, 0xBFC05294 */ uint32_t psx_brA_BFC0552C = cpu->gpr[2]; uint32_t psx_brB_BFC0552C = cpu->gpr[1]; - int psx_taken_BFC0552C = (psx_brA_BFC0552C == psx_brB_BFC0552C); + psx_taken_BFC0552C = (psx_brA_BFC0552C == psx_brB_BFC0552C); /* 0xBFC05530: 00000000 nop */ /* nop */ if (psx_taken_BFC0552C) goto label_BFC05294; @@ -17620,7 +18253,7 @@ label_BFC05534: psx_check_interrupts(cpu); /* 0xBFC05534: 10000005 beq $zero, $zero, 0xBFC0554C */ uint32_t psx_brA_BFC05534 = cpu->gpr[0]; uint32_t psx_brB_BFC05534 = cpu->gpr[0]; - int psx_taken_BFC05534 = (psx_brA_BFC05534 == psx_brB_BFC05534); + psx_taken_BFC05534 = (psx_brA_BFC05534 == psx_brB_BFC05534); /* 0xBFC05538: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05538u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05534) goto label_BFC0554C; @@ -17633,7 +18266,7 @@ label_BFC0553C: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC05540: 1041FF69 beq $v0, $at, 0xBFC052E8 */ uint32_t psx_brA_BFC05540 = cpu->gpr[2]; uint32_t psx_brB_BFC05540 = cpu->gpr[1]; - int psx_taken_BFC05540 = (psx_brA_BFC05540 == psx_brB_BFC05540); + psx_taken_BFC05540 = (psx_brA_BFC05540 == psx_brB_BFC05540); /* 0xBFC05544: 3C04F000 lui $a0, 0xF000 */ cpu->gpr[4] = 0xF0000000u; if (psx_taken_BFC05540) goto label_BFC052E8; @@ -17673,6 +18306,38 @@ void func_1FC05558(CPUState* cpu) { default: break; } } + int psx_taken_BFC05578 = 0; + int psx_taken_BFC05588 = 0; + int psx_taken_BFC0559C = 0; + int psx_taken_BFC055A4 = 0; + int psx_taken_BFC055AC = 0; + int psx_taken_BFC055B8 = 0; + int psx_taken_BFC055C0 = 0; + int psx_taken_BFC055F0 = 0; + int psx_taken_BFC05614 = 0; + int psx_taken_BFC05640 = 0; + int psx_taken_BFC0565C = 0; + int psx_taken_BFC0569C = 0; + int psx_taken_BFC056C0 = 0; + int psx_taken_BFC056D8 = 0; + int psx_taken_BFC056E4 = 0; + int psx_taken_BFC056EC = 0; + int psx_taken_BFC056F4 = 0; + int psx_taken_BFC056FC = 0; + int psx_taken_BFC05704 = 0; + int psx_taken_BFC0570C = 0; + int psx_taken_BFC05714 = 0; + int psx_taken_BFC0571C = 0; + int psx_taken_BFC05728 = 0; + int psx_taken_BFC0574C = 0; + int psx_taken_BFC05758 = 0; + int psx_taken_BFC05760 = 0; + int psx_taken_BFC0576C = 0; + int psx_taken_BFC05774 = 0; + int psx_taken_BFC0577C = 0; + int psx_taken_BFC05784 = 0; + int psx_taken_BFC05790 = 0; + int psx_taken_BFC05798 = 0; label_BFC05558: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -17696,7 +18361,7 @@ label_BFC05558: (void)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[5] + (0))); /* 0xBFC05578: 1441005A bne $v0, $at, 0xBFC056E4 */ uint32_t psx_brA_BFC05578 = cpu->gpr[2]; uint32_t psx_brB_BFC05578 = cpu->gpr[1]; - int psx_taken_BFC05578 = (psx_brA_BFC05578 != psx_brB_BFC05578); + psx_taken_BFC05578 = (psx_brA_BFC05578 != psx_brB_BFC05578); /* 0xBFC0557C: 24010CCC addiu $at, $zero, 3276 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3276)); if (psx_taken_BFC05578) goto label_BFC056E4; @@ -17717,7 +18382,7 @@ label_BFC05588: psx_check_interrupts(cpu); /* 0xBFC05588: 10000086 beq $zero, $zero, 0xBFC057A4 */ uint32_t psx_brA_BFC05588 = cpu->gpr[0]; uint32_t psx_brB_BFC05588 = cpu->gpr[0]; - int psx_taken_BFC05588 = (psx_brA_BFC05588 == psx_brB_BFC05588); + psx_taken_BFC05588 = (psx_brA_BFC05588 == psx_brB_BFC05588); /* 0xBFC0558C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0558Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05588) goto label_BFC057A4; @@ -17734,7 +18399,7 @@ label_BFC05590: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC0559C: 1041000A beq $v0, $at, 0xBFC055C8 */ uint32_t psx_brA_BFC0559C = cpu->gpr[2]; uint32_t psx_brB_BFC0559C = cpu->gpr[1]; - int psx_taken_BFC0559C = (psx_brA_BFC0559C == psx_brB_BFC0559C); + psx_taken_BFC0559C = (psx_brA_BFC0559C == psx_brB_BFC0559C); /* 0xBFC055A0: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC0559C) goto label_BFC055C8; @@ -17745,7 +18410,7 @@ label_BFC055A4: psx_check_interrupts(cpu); /* 0xBFC055A4: 10410008 beq $v0, $at, 0xBFC055C8 */ uint32_t psx_brA_BFC055A4 = cpu->gpr[2]; uint32_t psx_brB_BFC055A4 = cpu->gpr[1]; - int psx_taken_BFC055A4 = (psx_brA_BFC055A4 == psx_brB_BFC055A4); + psx_taken_BFC055A4 = (psx_brA_BFC055A4 == psx_brB_BFC055A4); /* 0xBFC055A8: 24010003 addiu $at, $zero, 3 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); if (psx_taken_BFC055A4) goto label_BFC055C8; @@ -17756,7 +18421,7 @@ label_BFC055AC: psx_check_interrupts(cpu); /* 0xBFC055AC: 10410006 beq $v0, $at, 0xBFC055C8 */ uint32_t psx_brA_BFC055AC = cpu->gpr[2]; uint32_t psx_brB_BFC055AC = cpu->gpr[1]; - int psx_taken_BFC055AC = (psx_brA_BFC055AC == psx_brB_BFC055AC); + psx_taken_BFC055AC = (psx_brA_BFC055AC == psx_brB_BFC055AC); /* 0xBFC055B0: 00000000 nop */ /* nop */ if (psx_taken_BFC055AC) goto label_BFC055C8; @@ -17769,7 +18434,7 @@ label_BFC055B4: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC055B8: 10440003 beq $v0, $a0, 0xBFC055C8 */ uint32_t psx_brA_BFC055B8 = cpu->gpr[2]; uint32_t psx_brB_BFC055B8 = cpu->gpr[4]; - int psx_taken_BFC055B8 = (psx_brA_BFC055B8 == psx_brB_BFC055B8); + psx_taken_BFC055B8 = (psx_brA_BFC055B8 == psx_brB_BFC055B8); /* 0xBFC055BC: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC055B8) goto label_BFC055C8; @@ -17780,7 +18445,7 @@ label_BFC055C0: psx_check_interrupts(cpu); /* 0xBFC055C0: 14410005 bne $v0, $at, 0xBFC055D8 */ uint32_t psx_brA_BFC055C0 = cpu->gpr[2]; uint32_t psx_brB_BFC055C0 = cpu->gpr[1]; - int psx_taken_BFC055C0 = (psx_brA_BFC055C0 != psx_brB_BFC055C0); + psx_taken_BFC055C0 = (psx_brA_BFC055C0 != psx_brB_BFC055C0); /* 0xBFC055C4: 3402FFFF ori $v0, $zero, 0xFFFF */ cpu->gpr[2] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC055C0) goto label_BFC055D8; @@ -17822,7 +18487,7 @@ label_BFC055F0: psx_check_interrupts(cpu); /* 0xBFC055F0: 1000006C beq $zero, $zero, 0xBFC057A4 */ uint32_t psx_brA_BFC055F0 = cpu->gpr[0]; uint32_t psx_brB_BFC055F0 = cpu->gpr[0]; - int psx_taken_BFC055F0 = (psx_brA_BFC055F0 == psx_brB_BFC055F0); + psx_taken_BFC055F0 = (psx_brA_BFC055F0 == psx_brB_BFC055F0); /* 0xBFC055F4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC055F4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC055F0) goto label_BFC057A4; @@ -17853,7 +18518,7 @@ label_BFC05614: psx_check_interrupts(cpu); /* 0xBFC05614: 10000063 beq $zero, $zero, 0xBFC057A4 */ uint32_t psx_brA_BFC05614 = cpu->gpr[0]; uint32_t psx_brB_BFC05614 = cpu->gpr[0]; - int psx_taken_BFC05614 = (psx_brA_BFC05614 == psx_brB_BFC05614); + psx_taken_BFC05614 = (psx_brA_BFC05614 == psx_brB_BFC05614); /* 0xBFC05618: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05618u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05614) goto label_BFC057A4; @@ -17888,7 +18553,7 @@ label_BFC05640: psx_check_interrupts(cpu); /* 0xBFC05640: 10000058 beq $zero, $zero, 0xBFC057A4 */ uint32_t psx_brA_BFC05640 = cpu->gpr[0]; uint32_t psx_brB_BFC05640 = cpu->gpr[0]; - int psx_taken_BFC05640 = (psx_brA_BFC05640 == psx_brB_BFC05640); + psx_taken_BFC05640 = (psx_brA_BFC05640 == psx_brB_BFC05640); /* 0xBFC05644: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05644u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05640) goto label_BFC057A4; @@ -17909,7 +18574,7 @@ label_BFC05648: cpu->gpr[1] = 0xA0010000u; /* 0xBFC0565C: 10000050 beq $zero, $zero, 0xBFC057A0 */ uint32_t psx_brA_BFC0565C = cpu->gpr[0]; uint32_t psx_brB_BFC0565C = cpu->gpr[0]; - int psx_taken_BFC0565C = (psx_brA_BFC0565C == psx_brB_BFC0565C); + psx_taken_BFC0565C = (psx_brA_BFC0565C == psx_brB_BFC0565C); /* 0xBFC05660: AC229154 sw $v0, -28332($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28332)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05660u); return; } g_debug_last_store_pc = 0xBFC05660u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC0565C) goto label_BFC057A0; @@ -17953,7 +18618,7 @@ label_BFC05674: cpu->gpr[8] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[5] + (0))); /* 0xBFC0569C: 1464FFF5 bne $v1, $a0, 0xBFC05674 */ uint32_t psx_brA_BFC0569C = cpu->gpr[3]; uint32_t psx_brB_BFC0569C = cpu->gpr[4]; - int psx_taken_BFC0569C = (psx_brA_BFC0569C != psx_brB_BFC0569C); + psx_taken_BFC0569C = (psx_brA_BFC0569C != psx_brB_BFC0569C); /* 0xBFC056A0: A048FFFF sb $t0, -1($v0) */ g_debug_last_store_pc = 0xBFC056A0u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-1)), (uint8_t)(cpu->gpr[8] & 0xFFu)); if (psx_taken_BFC0569C) goto label_BFC05674; @@ -17984,7 +18649,7 @@ label_BFC056C0: psx_check_interrupts(cpu); /* 0xBFC056C0: 10000038 beq $zero, $zero, 0xBFC057A4 */ uint32_t psx_brA_BFC056C0 = cpu->gpr[0]; uint32_t psx_brB_BFC056C0 = cpu->gpr[0]; - int psx_taken_BFC056C0 = (psx_brA_BFC056C0 == psx_brB_BFC056C0); + psx_taken_BFC056C0 = (psx_brA_BFC056C0 == psx_brB_BFC056C0); /* 0xBFC056C4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC056C4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC056C0) goto label_BFC057A4; @@ -18014,7 +18679,7 @@ label_BFC056D8: psx_check_interrupts(cpu); /* 0xBFC056D8: 10000032 beq $zero, $zero, 0xBFC057A4 */ uint32_t psx_brA_BFC056D8 = cpu->gpr[0]; uint32_t psx_brB_BFC056D8 = cpu->gpr[0]; - int psx_taken_BFC056D8 = (psx_brA_BFC056D8 == psx_brB_BFC056D8); + psx_taken_BFC056D8 = (psx_brA_BFC056D8 == psx_brB_BFC056D8); /* 0xBFC056DC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC056DCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC056D8) goto label_BFC057A4; @@ -18032,7 +18697,7 @@ label_BFC056E4: psx_check_interrupts(cpu); /* 0xBFC056E4: 1041FFD8 beq $v0, $at, 0xBFC05648 */ uint32_t psx_brA_BFC056E4 = cpu->gpr[2]; uint32_t psx_brB_BFC056E4 = cpu->gpr[1]; - int psx_taken_BFC056E4 = (psx_brA_BFC056E4 == psx_brB_BFC056E4); + psx_taken_BFC056E4 = (psx_brA_BFC056E4 == psx_brB_BFC056E4); /* 0xBFC056E8: 28410CCD slti $at, $v0, 3277 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (3277) ? 1 : 0); if (psx_taken_BFC056E4) goto label_BFC05648; @@ -18043,7 +18708,7 @@ label_BFC056EC: psx_check_interrupts(cpu); /* 0xBFC056EC: 1020001E beq $at, $zero, 0xBFC05768 */ uint32_t psx_brA_BFC056EC = cpu->gpr[1]; uint32_t psx_brB_BFC056EC = cpu->gpr[0]; - int psx_taken_BFC056EC = (psx_brA_BFC056EC == psx_brB_BFC056EC); + psx_taken_BFC056EC = (psx_brA_BFC056EC == psx_brB_BFC056EC); /* 0xBFC056F0: 24010016 addiu $at, $zero, 22 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (22)); if (psx_taken_BFC056EC) goto label_BFC05768; @@ -18054,7 +18719,7 @@ label_BFC056F4: psx_check_interrupts(cpu); /* 0xBFC056F4: 1041FFA6 beq $v0, $at, 0xBFC05590 */ uint32_t psx_brA_BFC056F4 = cpu->gpr[2]; uint32_t psx_brB_BFC056F4 = cpu->gpr[1]; - int psx_taken_BFC056F4 = (psx_brA_BFC056F4 == psx_brB_BFC056F4); + psx_taken_BFC056F4 = (psx_brA_BFC056F4 == psx_brB_BFC056F4); /* 0xBFC056F8: 28410017 slti $at, $v0, 23 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (23) ? 1 : 0); if (psx_taken_BFC056F4) goto label_BFC05590; @@ -18065,7 +18730,7 @@ label_BFC056FC: psx_check_interrupts(cpu); /* 0xBFC056FC: 10200015 beq $at, $zero, 0xBFC05754 */ uint32_t psx_brA_BFC056FC = cpu->gpr[1]; uint32_t psx_brB_BFC056FC = cpu->gpr[0]; - int psx_taken_BFC056FC = (psx_brA_BFC056FC == psx_brB_BFC056FC); + psx_taken_BFC056FC = (psx_brA_BFC056FC == psx_brB_BFC056FC); /* 0xBFC05700: 24010009 addiu $at, $zero, 9 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); if (psx_taken_BFC056FC) goto label_BFC05754; @@ -18076,7 +18741,7 @@ label_BFC05704: psx_check_interrupts(cpu); /* 0xBFC05704: 1041FFA2 beq $v0, $at, 0xBFC05590 */ uint32_t psx_brA_BFC05704 = cpu->gpr[2]; uint32_t psx_brB_BFC05704 = cpu->gpr[1]; - int psx_taken_BFC05704 = (psx_brA_BFC05704 == psx_brB_BFC05704); + psx_taken_BFC05704 = (psx_brA_BFC05704 == psx_brB_BFC05704); /* 0xBFC05708: 2841000A slti $at, $v0, 10 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (10) ? 1 : 0); if (psx_taken_BFC05704) goto label_BFC05590; @@ -18087,7 +18752,7 @@ label_BFC0570C: psx_check_interrupts(cpu); /* 0xBFC0570C: 10200005 beq $at, $zero, 0xBFC05724 */ uint32_t psx_brA_BFC0570C = cpu->gpr[1]; uint32_t psx_brB_BFC0570C = cpu->gpr[0]; - int psx_taken_BFC0570C = (psx_brA_BFC0570C == psx_brB_BFC0570C); + psx_taken_BFC0570C = (psx_brA_BFC0570C == psx_brB_BFC0570C); /* 0xBFC05710: 24010008 addiu $at, $zero, 8 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); if (psx_taken_BFC0570C) goto label_BFC05724; @@ -18098,7 +18763,7 @@ label_BFC05714: psx_check_interrupts(cpu); /* 0xBFC05714: 1041FF9E beq $v0, $at, 0xBFC05590 */ uint32_t psx_brA_BFC05714 = cpu->gpr[2]; uint32_t psx_brB_BFC05714 = cpu->gpr[1]; - int psx_taken_BFC05714 = (psx_brA_BFC05714 == psx_brB_BFC05714); + psx_taken_BFC05714 = (psx_brA_BFC05714 == psx_brB_BFC05714); /* 0xBFC05718: 00000000 nop */ /* nop */ if (psx_taken_BFC05714) goto label_BFC05590; @@ -18109,7 +18774,7 @@ label_BFC0571C: psx_check_interrupts(cpu); /* 0xBFC0571C: 10000005 beq $zero, $zero, 0xBFC05734 */ uint32_t psx_brA_BFC0571C = cpu->gpr[0]; uint32_t psx_brB_BFC0571C = cpu->gpr[0]; - int psx_taken_BFC0571C = (psx_brA_BFC0571C == psx_brB_BFC0571C); + psx_taken_BFC0571C = (psx_brA_BFC0571C == psx_brB_BFC0571C); /* 0xBFC05720: 3402FFFF ori $v0, $zero, 0xFFFF */ cpu->gpr[2] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC0571C) goto label_BFC05734; @@ -18122,7 +18787,7 @@ label_BFC05724: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (21)); /* 0xBFC05728: 1041FF99 beq $v0, $at, 0xBFC05590 */ uint32_t psx_brA_BFC05728 = cpu->gpr[2]; uint32_t psx_brB_BFC05728 = cpu->gpr[1]; - int psx_taken_BFC05728 = (psx_brA_BFC05728 == psx_brB_BFC05728); + psx_taken_BFC05728 = (psx_brA_BFC05728 == psx_brB_BFC05728); /* 0xBFC0572C: 00000000 nop */ /* nop */ if (psx_taken_BFC05728) goto label_BFC05590; @@ -18158,7 +18823,7 @@ label_BFC0574C: psx_check_interrupts(cpu); /* 0xBFC0574C: 10000015 beq $zero, $zero, 0xBFC057A4 */ uint32_t psx_brA_BFC0574C = cpu->gpr[0]; uint32_t psx_brB_BFC0574C = cpu->gpr[0]; - int psx_taken_BFC0574C = (psx_brA_BFC0574C == psx_brB_BFC0574C); + psx_taken_BFC0574C = (psx_brA_BFC0574C == psx_brB_BFC0574C); /* 0xBFC05750: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05750u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0574C) goto label_BFC057A4; @@ -18171,7 +18836,7 @@ label_BFC05754: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (26)); /* 0xBFC05758: 1041FFC2 beq $v0, $at, 0xBFC05664 */ uint32_t psx_brA_BFC05758 = cpu->gpr[2]; uint32_t psx_brB_BFC05758 = cpu->gpr[1]; - int psx_taken_BFC05758 = (psx_brA_BFC05758 == psx_brB_BFC05758); + psx_taken_BFC05758 = (psx_brA_BFC05758 == psx_brB_BFC05758); /* 0xBFC0575C: 00000000 nop */ /* nop */ if (psx_taken_BFC05758) goto label_BFC05664; @@ -18182,7 +18847,7 @@ label_BFC05760: psx_check_interrupts(cpu); /* 0xBFC05760: 1000FFF4 beq $zero, $zero, 0xBFC05734 */ uint32_t psx_brA_BFC05760 = cpu->gpr[0]; uint32_t psx_brB_BFC05760 = cpu->gpr[0]; - int psx_taken_BFC05760 = (psx_brA_BFC05760 == psx_brB_BFC05760); + psx_taken_BFC05760 = (psx_brA_BFC05760 == psx_brB_BFC05760); /* 0xBFC05764: 3402FFFF ori $v0, $zero, 0xFFFF */ cpu->gpr[2] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC05760) goto label_BFC05734; @@ -18195,7 +18860,7 @@ label_BFC05768: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4095)); /* 0xBFC0576C: 1041FFA2 beq $v0, $at, 0xBFC055F8 */ uint32_t psx_brA_BFC0576C = cpu->gpr[2]; uint32_t psx_brB_BFC0576C = cpu->gpr[1]; - int psx_taken_BFC0576C = (psx_brA_BFC0576C == psx_brB_BFC0576C); + psx_taken_BFC0576C = (psx_brA_BFC0576C == psx_brB_BFC0576C); /* 0xBFC05770: 28411000 slti $at, $v0, 4096 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (4096) ? 1 : 0); if (psx_taken_BFC0576C) goto label_BFC055F8; @@ -18206,7 +18871,7 @@ label_BFC05774: psx_check_interrupts(cpu); /* 0xBFC05774: 10200005 beq $at, $zero, 0xBFC0578C */ uint32_t psx_brA_BFC05774 = cpu->gpr[1]; uint32_t psx_brB_BFC05774 = cpu->gpr[0]; - int psx_taken_BFC05774 = (psx_brA_BFC05774 == psx_brB_BFC05774); + psx_taken_BFC05774 = (psx_brA_BFC05774 == psx_brB_BFC05774); /* 0xBFC05778: 24010DDD addiu $at, $zero, 3549 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3549)); if (psx_taken_BFC05774) goto label_BFC0578C; @@ -18217,7 +18882,7 @@ label_BFC0577C: psx_check_interrupts(cpu); /* 0xBFC0577C: 1041FFA7 beq $v0, $at, 0xBFC0561C */ uint32_t psx_brA_BFC0577C = cpu->gpr[2]; uint32_t psx_brB_BFC0577C = cpu->gpr[1]; - int psx_taken_BFC0577C = (psx_brA_BFC0577C == psx_brB_BFC0577C); + psx_taken_BFC0577C = (psx_brA_BFC0577C == psx_brB_BFC0577C); /* 0xBFC05780: 00000000 nop */ /* nop */ if (psx_taken_BFC0577C) goto label_BFC0561C; @@ -18228,7 +18893,7 @@ label_BFC05784: psx_check_interrupts(cpu); /* 0xBFC05784: 1000FFEB beq $zero, $zero, 0xBFC05734 */ uint32_t psx_brA_BFC05784 = cpu->gpr[0]; uint32_t psx_brB_BFC05784 = cpu->gpr[0]; - int psx_taken_BFC05784 = (psx_brA_BFC05784 == psx_brB_BFC05784); + psx_taken_BFC05784 = (psx_brA_BFC05784 == psx_brB_BFC05784); /* 0xBFC05788: 3402FFFF ori $v0, $zero, 0xFFFF */ cpu->gpr[2] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC05784) goto label_BFC05734; @@ -18241,7 +18906,7 @@ label_BFC0578C: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC05790: 1041FFCE beq $v0, $at, 0xBFC056CC */ uint32_t psx_brA_BFC05790 = cpu->gpr[2]; uint32_t psx_brB_BFC05790 = cpu->gpr[1]; - int psx_taken_BFC05790 = (psx_brA_BFC05790 == psx_brB_BFC05790); + psx_taken_BFC05790 = (psx_brA_BFC05790 == psx_brB_BFC05790); /* 0xBFC05794: 3C04F000 lui $a0, 0xF000 */ cpu->gpr[4] = 0xF0000000u; if (psx_taken_BFC05790) goto label_BFC056CC; @@ -18252,7 +18917,7 @@ label_BFC05798: psx_check_interrupts(cpu); /* 0xBFC05798: 1000FFE6 beq $zero, $zero, 0xBFC05734 */ uint32_t psx_brA_BFC05798 = cpu->gpr[0]; uint32_t psx_brB_BFC05798 = cpu->gpr[0]; - int psx_taken_BFC05798 = (psx_brA_BFC05798 == psx_brB_BFC05798); + psx_taken_BFC05798 = (psx_brA_BFC05798 == psx_brB_BFC05798); /* 0xBFC0579C: 3402FFFF ori $v0, $zero, 0xFFFF */ cpu->gpr[2] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC05798) goto label_BFC05734; @@ -18287,6 +18952,14 @@ void func_1FC057B0(CPUState* cpu) { default: break; } } + int psx_taken_BFC057E4 = 0; + int psx_taken_BFC05820 = 0; + int psx_taken_BFC05858 = 0; + int psx_taken_BFC05888 = 0; + int psx_taken_BFC05894 = 0; + int psx_taken_BFC058A4 = 0; + int psx_taken_BFC058B8 = 0; + int psx_taken_BFC058EC = 0; label_BFC057B0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -18320,7 +18993,7 @@ label_BFC057B0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (26)); /* 0xBFC057E4: 1441002B bne $v0, $at, 0xBFC05894 */ uint32_t psx_brA_BFC057E4 = cpu->gpr[2]; uint32_t psx_brB_BFC057E4 = cpu->gpr[1]; - int psx_taken_BFC057E4 = (psx_brA_BFC057E4 != psx_brB_BFC057E4); + psx_taken_BFC057E4 = (psx_brA_BFC057E4 != psx_brB_BFC057E4); /* 0xBFC057E8: 24010CCC addiu $at, $zero, 3276 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3276)); if (psx_taken_BFC057E4) goto label_BFC05894; @@ -18357,7 +19030,7 @@ label_BFC057EC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (4) ? 1 : 0); /* 0xBFC05820: 10200010 beq $at, $zero, 0xBFC05864 */ uint32_t psx_brA_BFC05820 = cpu->gpr[1]; uint32_t psx_brB_BFC05820 = cpu->gpr[0]; - int psx_taken_BFC05820 = (psx_brA_BFC05820 == psx_brB_BFC05820); + psx_taken_BFC05820 = (psx_brA_BFC05820 == psx_brB_BFC05820); /* 0xBFC05824: 3418FFFF ori $t8, $zero, 0xFFFF */ cpu->gpr[24] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC05820) goto label_BFC05864; @@ -18392,7 +19065,7 @@ label_BFC05828: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[15] < (4) ? 1 : 0); /* 0xBFC05858: 1420FFF3 bne $at, $zero, 0xBFC05828 */ uint32_t psx_brA_BFC05858 = cpu->gpr[1]; uint32_t psx_brB_BFC05858 = cpu->gpr[0]; - int psx_taken_BFC05858 = (psx_brA_BFC05858 != psx_brB_BFC05858); + psx_taken_BFC05858 = (psx_brA_BFC05858 != psx_brB_BFC05858); /* 0xBFC0585C: 00000000 nop */ /* nop */ if (psx_taken_BFC05858) goto label_BFC05828; @@ -18434,7 +19107,7 @@ label_BFC05888: psx_check_interrupts(cpu); /* 0xBFC05888: 10000029 beq $zero, $zero, 0xBFC05930 */ uint32_t psx_brA_BFC05888 = cpu->gpr[0]; uint32_t psx_brB_BFC05888 = cpu->gpr[0]; - int psx_taken_BFC05888 = (psx_brA_BFC05888 == psx_brB_BFC05888); + psx_taken_BFC05888 = (psx_brA_BFC05888 == psx_brB_BFC05888); /* 0xBFC0588C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0588Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05888) goto label_BFC05930; @@ -18452,7 +19125,7 @@ label_BFC05894: psx_check_interrupts(cpu); /* 0xBFC05894: 14410005 bne $v0, $at, 0xBFC058AC */ uint32_t psx_brA_BFC05894 = cpu->gpr[2]; uint32_t psx_brB_BFC05894 = cpu->gpr[1]; - int psx_taken_BFC05894 = (psx_brA_BFC05894 != psx_brB_BFC05894); + psx_taken_BFC05894 = (psx_brA_BFC05894 != psx_brB_BFC05894); /* 0xBFC05898: 00000000 nop */ /* nop */ if (psx_taken_BFC05894) goto label_BFC058AC; @@ -18467,7 +19140,7 @@ label_BFC0589C: cpu->gpr[1] = 0xA0010000u; /* 0xBFC058A4: 10000021 beq $zero, $zero, 0xBFC0592C */ uint32_t psx_brA_BFC058A4 = cpu->gpr[0]; uint32_t psx_brB_BFC058A4 = cpu->gpr[0]; - int psx_taken_BFC058A4 = (psx_brA_BFC058A4 == psx_brB_BFC058A4); + psx_taken_BFC058A4 = (psx_brA_BFC058A4 == psx_brB_BFC058A4); /* 0xBFC058A8: AC3991C4 sw $t9, -28220($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28220)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC058A8u); return; } g_debug_last_store_pc = 0xBFC058A8u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC058A4) goto label_BFC0592C; @@ -18484,7 +19157,7 @@ label_BFC058AC: /* nop */ /* 0xBFC058B8: 1100000E beq $t0, $zero, 0xBFC058F4 */ uint32_t psx_brA_BFC058B8 = cpu->gpr[8]; uint32_t psx_brB_BFC058B8 = cpu->gpr[0]; - int psx_taken_BFC058B8 = (psx_brA_BFC058B8 == psx_brB_BFC058B8); + psx_taken_BFC058B8 = (psx_brA_BFC058B8 == psx_brB_BFC058B8); /* 0xBFC058BC: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC058B8) goto label_BFC058F4; @@ -18523,7 +19196,7 @@ label_BFC058EC: psx_check_interrupts(cpu); /* 0xBFC058EC: 10000010 beq $zero, $zero, 0xBFC05930 */ uint32_t psx_brA_BFC058EC = cpu->gpr[0]; uint32_t psx_brB_BFC058EC = cpu->gpr[0]; - int psx_taken_BFC058EC = (psx_brA_BFC058EC == psx_brB_BFC058EC); + psx_taken_BFC058EC = (psx_brA_BFC058EC == psx_brB_BFC058EC); /* 0xBFC058F0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC058F0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC058EC) goto label_BFC05930; @@ -18594,6 +19267,22 @@ void func_1FC0593C(CPUState* cpu) { default: break; } } + int psx_taken_BFC0595C = 0; + int psx_taken_BFC05968 = 0; + int psx_taken_BFC0597C = 0; + int psx_taken_BFC05984 = 0; + int psx_taken_BFC05994 = 0; + int psx_taken_BFC059A0 = 0; + int psx_taken_BFC059AC = 0; + int psx_taken_BFC059B4 = 0; + int psx_taken_BFC059BC = 0; + int psx_taken_BFC059CC = 0; + int psx_taken_BFC059D8 = 0; + int psx_taken_BFC059E0 = 0; + int psx_taken_BFC059E8 = 0; + int psx_taken_BFC059F8 = 0; + int psx_taken_BFC05A04 = 0; + int psx_taken_BFC05A1C = 0; label_BFC0593C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -18617,7 +19306,7 @@ label_BFC0593C: cpu->gpr[6] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[14] + (0))); /* 0xBFC0595C: 1044000B beq $v0, $a0, 0xBFC0598C */ uint32_t psx_brA_BFC0595C = cpu->gpr[2]; uint32_t psx_brB_BFC0595C = cpu->gpr[4]; - int psx_taken_BFC0595C = (psx_brA_BFC0595C == psx_brB_BFC0595C); + psx_taken_BFC0595C = (psx_brA_BFC0595C == psx_brB_BFC0595C); /* 0xBFC05960: 00000000 nop */ /* nop */ if (psx_taken_BFC0595C) goto label_BFC0598C; @@ -18630,7 +19319,7 @@ label_BFC05964: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (251)); /* 0xBFC05968: 10450008 beq $v0, $a1, 0xBFC0598C */ uint32_t psx_brA_BFC05968 = cpu->gpr[2]; uint32_t psx_brB_BFC05968 = cpu->gpr[5]; - int psx_taken_BFC05968 = (psx_brA_BFC05968 == psx_brB_BFC05968); + psx_taken_BFC05968 = (psx_brA_BFC05968 == psx_brB_BFC05968); /* 0xBFC0596C: 00000000 nop */ /* nop */ if (psx_taken_BFC05968) goto label_BFC0598C; @@ -18647,7 +19336,7 @@ label_BFC05970: /* nop */ /* 0xBFC0597C: 10640003 beq $v1, $a0, 0xBFC0598C */ uint32_t psx_brA_BFC0597C = cpu->gpr[3]; uint32_t psx_brB_BFC0597C = cpu->gpr[4]; - int psx_taken_BFC0597C = (psx_brA_BFC0597C == psx_brB_BFC0597C); + psx_taken_BFC0597C = (psx_brA_BFC0597C == psx_brB_BFC0597C); /* 0xBFC05980: 00000000 nop */ /* nop */ if (psx_taken_BFC0597C) goto label_BFC0598C; @@ -18658,7 +19347,7 @@ label_BFC05984: psx_check_interrupts(cpu); /* 0xBFC05984: 14650005 bne $v1, $a1, 0xBFC0599C */ uint32_t psx_brA_BFC05984 = cpu->gpr[3]; uint32_t psx_brB_BFC05984 = cpu->gpr[5]; - int psx_taken_BFC05984 = (psx_brA_BFC05984 != psx_brB_BFC05984); + psx_taken_BFC05984 = (psx_brA_BFC05984 != psx_brB_BFC05984); /* 0xBFC05988: 00000000 nop */ /* nop */ if (psx_taken_BFC05984) goto label_BFC0599C; @@ -18679,7 +19368,7 @@ label_BFC05994: psx_check_interrupts(cpu); /* 0xBFC05994: 10000028 beq $zero, $zero, 0xBFC05A38 */ uint32_t psx_brA_BFC05994 = cpu->gpr[0]; uint32_t psx_brB_BFC05994 = cpu->gpr[0]; - int psx_taken_BFC05994 = (psx_brA_BFC05994 == psx_brB_BFC05994); + psx_taken_BFC05994 = (psx_brA_BFC05994 == psx_brB_BFC05994); /* 0xBFC05998: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05998u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05994) goto label_BFC05A38; @@ -18692,7 +19381,7 @@ label_BFC0599C: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC059A0: 10440008 beq $v0, $a0, 0xBFC059C4 */ uint32_t psx_brA_BFC059A0 = cpu->gpr[2]; uint32_t psx_brB_BFC059A0 = cpu->gpr[4]; - int psx_taken_BFC059A0 = (psx_brA_BFC059A0 == psx_brB_BFC059A0); + psx_taken_BFC059A0 = (psx_brA_BFC059A0 == psx_brB_BFC059A0); /* 0xBFC059A4: 00000000 nop */ /* nop */ if (psx_taken_BFC059A0) goto label_BFC059C4; @@ -18705,7 +19394,7 @@ label_BFC059A8: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); /* 0xBFC059AC: 10450005 beq $v0, $a1, 0xBFC059C4 */ uint32_t psx_brA_BFC059AC = cpu->gpr[2]; uint32_t psx_brB_BFC059AC = cpu->gpr[5]; - int psx_taken_BFC059AC = (psx_brA_BFC059AC == psx_brB_BFC059AC); + psx_taken_BFC059AC = (psx_brA_BFC059AC == psx_brB_BFC059AC); /* 0xBFC059B0: 00000000 nop */ /* nop */ if (psx_taken_BFC059AC) goto label_BFC059C4; @@ -18716,7 +19405,7 @@ label_BFC059B4: psx_check_interrupts(cpu); /* 0xBFC059B4: 10640003 beq $v1, $a0, 0xBFC059C4 */ uint32_t psx_brA_BFC059B4 = cpu->gpr[3]; uint32_t psx_brB_BFC059B4 = cpu->gpr[4]; - int psx_taken_BFC059B4 = (psx_brA_BFC059B4 == psx_brB_BFC059B4); + psx_taken_BFC059B4 = (psx_brA_BFC059B4 == psx_brB_BFC059B4); /* 0xBFC059B8: 00000000 nop */ /* nop */ if (psx_taken_BFC059B4) goto label_BFC059C4; @@ -18727,7 +19416,7 @@ label_BFC059BC: psx_check_interrupts(cpu); /* 0xBFC059BC: 14650006 bne $v1, $a1, 0xBFC059D8 */ uint32_t psx_brA_BFC059BC = cpu->gpr[3]; uint32_t psx_brB_BFC059BC = cpu->gpr[5]; - int psx_taken_BFC059BC = (psx_brA_BFC059BC != psx_brB_BFC059BC); + psx_taken_BFC059BC = (psx_brA_BFC059BC != psx_brB_BFC059BC); /* 0xBFC059C0: 24010003 addiu $at, $zero, 3 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); if (psx_taken_BFC059BC) goto label_BFC059D8; @@ -18748,7 +19437,7 @@ label_BFC059CC: psx_check_interrupts(cpu); /* 0xBFC059CC: 1000001A beq $zero, $zero, 0xBFC05A38 */ uint32_t psx_brA_BFC059CC = cpu->gpr[0]; uint32_t psx_brB_BFC059CC = cpu->gpr[0]; - int psx_taken_BFC059CC = (psx_brA_BFC059CC == psx_brB_BFC059CC); + psx_taken_BFC059CC = (psx_brA_BFC059CC == psx_brB_BFC059CC); /* 0xBFC059D0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC059D0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC059CC) goto label_BFC05A38; @@ -18766,7 +19455,7 @@ label_BFC059D8: psx_check_interrupts(cpu); /* 0xBFC059D8: 10410005 beq $v0, $at, 0xBFC059F0 */ uint32_t psx_brA_BFC059D8 = cpu->gpr[2]; uint32_t psx_brB_BFC059D8 = cpu->gpr[1]; - int psx_taken_BFC059D8 = (psx_brA_BFC059D8 == psx_brB_BFC059D8); + psx_taken_BFC059D8 = (psx_brA_BFC059D8 == psx_brB_BFC059D8); /* 0xBFC059DC: 24010004 addiu $at, $zero, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC059D8) goto label_BFC059F0; @@ -18777,7 +19466,7 @@ label_BFC059E0: psx_check_interrupts(cpu); /* 0xBFC059E0: 10410003 beq $v0, $at, 0xBFC059F0 */ uint32_t psx_brA_BFC059E0 = cpu->gpr[2]; uint32_t psx_brB_BFC059E0 = cpu->gpr[1]; - int psx_taken_BFC059E0 = (psx_brA_BFC059E0 == psx_brB_BFC059E0); + psx_taken_BFC059E0 = (psx_brA_BFC059E0 == psx_brB_BFC059E0); /* 0xBFC059E4: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC059E0) goto label_BFC059F0; @@ -18788,7 +19477,7 @@ label_BFC059E8: psx_check_interrupts(cpu); /* 0xBFC059E8: 14410006 bne $v0, $at, 0xBFC05A04 */ uint32_t psx_brA_BFC059E8 = cpu->gpr[2]; uint32_t psx_brB_BFC059E8 = cpu->gpr[1]; - int psx_taken_BFC059E8 = (psx_brA_BFC059E8 != psx_brB_BFC059E8); + psx_taken_BFC059E8 = (psx_brA_BFC059E8 != psx_brB_BFC059E8); /* 0xBFC059EC: 3401FFFF ori $at, $zero, 0xFFFF */ cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC059E8) goto label_BFC05A04; @@ -18809,7 +19498,7 @@ label_BFC059F8: psx_check_interrupts(cpu); /* 0xBFC059F8: 1000000F beq $zero, $zero, 0xBFC05A38 */ uint32_t psx_brA_BFC059F8 = cpu->gpr[0]; uint32_t psx_brB_BFC059F8 = cpu->gpr[0]; - int psx_taken_BFC059F8 = (psx_brA_BFC059F8 == psx_brB_BFC059F8); + psx_taken_BFC059F8 = (psx_brA_BFC059F8 == psx_brB_BFC059F8); /* 0xBFC059FC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC059FCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC059F8) goto label_BFC05A38; @@ -18827,7 +19516,7 @@ label_BFC05A04: psx_check_interrupts(cpu); /* 0xBFC05A04: 14410008 bne $v0, $at, 0xBFC05A28 */ uint32_t psx_brA_BFC05A04 = cpu->gpr[2]; uint32_t psx_brB_BFC05A04 = cpu->gpr[1]; - int psx_taken_BFC05A04 = (psx_brA_BFC05A04 != psx_brB_BFC05A04); + psx_taken_BFC05A04 = (psx_brA_BFC05A04 != psx_brB_BFC05A04); /* 0xBFC05A08: 3C04F000 lui $a0, 0xF000 */ cpu->gpr[4] = 0xF0000000u; if (psx_taken_BFC05A04) goto label_BFC05A28; @@ -18852,7 +19541,7 @@ label_BFC05A1C: psx_check_interrupts(cpu); /* 0xBFC05A1C: 10000006 beq $zero, $zero, 0xBFC05A38 */ uint32_t psx_brA_BFC05A1C = cpu->gpr[0]; uint32_t psx_brB_BFC05A1C = cpu->gpr[0]; - int psx_taken_BFC05A1C = (psx_brA_BFC05A1C == psx_brB_BFC05A1C); + psx_taken_BFC05A1C = (psx_brA_BFC05A1C == psx_brB_BFC05A1C); /* 0xBFC05A20: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05A20u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05A1C) goto label_BFC05A38; @@ -18909,6 +19598,32 @@ void func_1FC05A44(CPUState* cpu) { default: break; } } + int psx_taken_BFC05A54 = 0; + int psx_taken_BFC05A60 = 0; + int psx_taken_BFC05A74 = 0; + int psx_taken_BFC05A7C = 0; + int psx_taken_BFC05A90 = 0; + int psx_taken_BFC05AB4 = 0; + int psx_taken_BFC05ABC = 0; + int psx_taken_BFC05AC4 = 0; + int psx_taken_BFC05ADC = 0; + int psx_taken_BFC05AE4 = 0; + int psx_taken_BFC05AF0 = 0; + int psx_taken_BFC05AF8 = 0; + int psx_taken_BFC05B0C = 0; + int psx_taken_BFC05B14 = 0; + int psx_taken_BFC05B28 = 0; + int psx_taken_BFC05B50 = 0; + int psx_taken_BFC05B58 = 0; + int psx_taken_BFC05B60 = 0; + int psx_taken_BFC05B78 = 0; + int psx_taken_BFC05B80 = 0; + int psx_taken_BFC05B8C = 0; + int psx_taken_BFC05B94 = 0; + int psx_taken_BFC05BA0 = 0; + int psx_taken_BFC05BC4 = 0; + int psx_taken_BFC05BD8 = 0; + int psx_taken_BFC05BF0 = 0; label_BFC05A44: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -18924,7 +19639,7 @@ label_BFC05A44: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (246)); /* 0xBFC05A54: 1062000B beq $v1, $v0, 0xBFC05A84 */ uint32_t psx_brA_BFC05A54 = cpu->gpr[3]; uint32_t psx_brB_BFC05A54 = cpu->gpr[2]; - int psx_taken_BFC05A54 = (psx_brA_BFC05A54 == psx_brB_BFC05A54); + psx_taken_BFC05A54 = (psx_brA_BFC05A54 == psx_brB_BFC05A54); /* 0xBFC05A58: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05A58u); return; } g_debug_last_store_pc = 0xBFC05A58u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC05A54) goto label_BFC05A84; @@ -18937,7 +19652,7 @@ label_BFC05A5C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (251)); /* 0xBFC05A60: 10610008 beq $v1, $at, 0xBFC05A84 */ uint32_t psx_brA_BFC05A60 = cpu->gpr[3]; uint32_t psx_brB_BFC05A60 = cpu->gpr[1]; - int psx_taken_BFC05A60 = (psx_brA_BFC05A60 == psx_brB_BFC05A60); + psx_taken_BFC05A60 = (psx_brA_BFC05A60 == psx_brB_BFC05A60); /* 0xBFC05A64: 00000000 nop */ /* nop */ if (psx_taken_BFC05A60) goto label_BFC05A84; @@ -18954,7 +19669,7 @@ label_BFC05A68: /* nop */ /* 0xBFC05A74: 11C20003 beq $t6, $v0, 0xBFC05A84 */ uint32_t psx_brA_BFC05A74 = cpu->gpr[14]; uint32_t psx_brB_BFC05A74 = cpu->gpr[2]; - int psx_taken_BFC05A74 = (psx_brA_BFC05A74 == psx_brB_BFC05A74); + psx_taken_BFC05A74 = (psx_brA_BFC05A74 == psx_brB_BFC05A74); /* 0xBFC05A78: 240100FB addiu $at, $zero, 251 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (251)); if (psx_taken_BFC05A74) goto label_BFC05A84; @@ -18965,7 +19680,7 @@ label_BFC05A7C: psx_check_interrupts(cpu); /* 0xBFC05A7C: 15C10016 bne $t6, $at, 0xBFC05AD8 */ uint32_t psx_brA_BFC05A7C = cpu->gpr[14]; uint32_t psx_brB_BFC05A7C = cpu->gpr[1]; - int psx_taken_BFC05A7C = (psx_brA_BFC05A7C != psx_brB_BFC05A7C); + psx_taken_BFC05A7C = (psx_brA_BFC05A7C != psx_brB_BFC05A7C); /* 0xBFC05A80: 00000000 nop */ /* nop */ if (psx_taken_BFC05A7C) goto label_BFC05AD8; @@ -18982,7 +19697,7 @@ label_BFC05A84: /* nop */ /* 0xBFC05A90: 19E00008 blez $t7, 0xBFC05AB4 */ uint32_t psx_brA_BFC05A90 = cpu->gpr[15]; - int psx_taken_BFC05A90 = ((int32_t)psx_brA_BFC05A90 <= 0); + psx_taken_BFC05A90 = ((int32_t)psx_brA_BFC05A90 <= 0); /* 0xBFC05A94: 00000000 nop */ /* nop */ if (psx_taken_BFC05A90) goto label_BFC05AB4; @@ -19018,7 +19733,7 @@ label_BFC05AB4: psx_check_interrupts(cpu); /* 0xBFC05AB4: 10620003 beq $v1, $v0, 0xBFC05AC4 */ uint32_t psx_brA_BFC05AB4 = cpu->gpr[3]; uint32_t psx_brB_BFC05AB4 = cpu->gpr[2]; - int psx_taken_BFC05AB4 = (psx_brA_BFC05AB4 == psx_brB_BFC05AB4); + psx_taken_BFC05AB4 = (psx_brA_BFC05AB4 == psx_brB_BFC05AB4); /* 0xBFC05AB8: 240100FB addiu $at, $zero, 251 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (251)); if (psx_taken_BFC05AB4) goto label_BFC05AC4; @@ -19029,7 +19744,7 @@ label_BFC05ABC: psx_check_interrupts(cpu); /* 0xBFC05ABC: 14610004 bne $v1, $at, 0xBFC05AD0 */ uint32_t psx_brA_BFC05ABC = cpu->gpr[3]; uint32_t psx_brB_BFC05ABC = cpu->gpr[1]; - int psx_taken_BFC05ABC = (psx_brA_BFC05ABC != psx_brB_BFC05ABC); + psx_taken_BFC05ABC = (psx_brA_BFC05ABC != psx_brB_BFC05ABC); /* 0xBFC05AC0: 3418FFFF ori $t8, $zero, 0xFFFF */ cpu->gpr[24] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC05ABC) goto label_BFC05AD0; @@ -19040,7 +19755,7 @@ label_BFC05AC4: psx_check_interrupts(cpu); /* 0xBFC05AC4: 10000004 beq $zero, $zero, 0xBFC05AD8 */ uint32_t psx_brA_BFC05AC4 = cpu->gpr[0]; uint32_t psx_brB_BFC05AC4 = cpu->gpr[0]; - int psx_taken_BFC05AC4 = (psx_brA_BFC05AC4 == psx_brB_BFC05AC4); + psx_taken_BFC05AC4 = (psx_brA_BFC05AC4 == psx_brB_BFC05AC4); /* 0xBFC05AC8: 3403FFFF ori $v1, $zero, 0xFFFF */ cpu->gpr[3] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC05AC4) goto label_BFC05AD8; @@ -19069,7 +19784,7 @@ label_BFC05AD8: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC05ADC: 14620003 bne $v1, $v0, 0xBFC05AEC */ uint32_t psx_brA_BFC05ADC = cpu->gpr[3]; uint32_t psx_brB_BFC05ADC = cpu->gpr[2]; - int psx_taken_BFC05ADC = (psx_brA_BFC05ADC != psx_brB_BFC05ADC); + psx_taken_BFC05ADC = (psx_brA_BFC05ADC != psx_brB_BFC05ADC); /* 0xBFC05AE0: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC05ADC) goto label_BFC05AEC; @@ -19080,7 +19795,7 @@ label_BFC05AE4: psx_check_interrupts(cpu); /* 0xBFC05AE4: 10000013 beq $zero, $zero, 0xBFC05B34 */ uint32_t psx_brA_BFC05AE4 = cpu->gpr[0]; uint32_t psx_brB_BFC05AE4 = cpu->gpr[0]; - int psx_taken_BFC05AE4 = (psx_brA_BFC05AE4 == psx_brB_BFC05AE4); + psx_taken_BFC05AE4 = (psx_brA_BFC05AE4 == psx_brB_BFC05AE4); /* 0xBFC05AE8: AC239154 sw $v1, -28332($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28332)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05AE8u); return; } g_debug_last_store_pc = 0xBFC05AE8u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC05AE4) goto label_BFC05B34; @@ -19093,7 +19808,7 @@ label_BFC05AEC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); /* 0xBFC05AF0: 14610003 bne $v1, $at, 0xBFC05B00 */ uint32_t psx_brA_BFC05AF0 = cpu->gpr[3]; uint32_t psx_brB_BFC05AF0 = cpu->gpr[1]; - int psx_taken_BFC05AF0 = (psx_brA_BFC05AF0 != psx_brB_BFC05AF0); + psx_taken_BFC05AF0 = (psx_brA_BFC05AF0 != psx_brB_BFC05AF0); /* 0xBFC05AF4: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC05AF0) goto label_BFC05B00; @@ -19104,7 +19819,7 @@ label_BFC05AF8: psx_check_interrupts(cpu); /* 0xBFC05AF8: 1000000E beq $zero, $zero, 0xBFC05B34 */ uint32_t psx_brA_BFC05AF8 = cpu->gpr[0]; uint32_t psx_brB_BFC05AF8 = cpu->gpr[0]; - int psx_taken_BFC05AF8 = (psx_brA_BFC05AF8 == psx_brB_BFC05AF8); + psx_taken_BFC05AF8 = (psx_brA_BFC05AF8 == psx_brB_BFC05AF8); /* 0xBFC05AFC: AC239154 sw $v1, -28332($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28332)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05AFCu); return; } g_debug_last_store_pc = 0xBFC05AFCu; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC05AF8) goto label_BFC05B34; @@ -19121,7 +19836,7 @@ label_BFC05B00: /* nop */ /* 0xBFC05B0C: 17220003 bne $t9, $v0, 0xBFC05B1C */ uint32_t psx_brA_BFC05B0C = cpu->gpr[25]; uint32_t psx_brB_BFC05B0C = cpu->gpr[2]; - int psx_taken_BFC05B0C = (psx_brA_BFC05B0C != psx_brB_BFC05B0C); + psx_taken_BFC05B0C = (psx_brA_BFC05B0C != psx_brB_BFC05B0C); /* 0xBFC05B10: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC05B0C) goto label_BFC05B1C; @@ -19132,7 +19847,7 @@ label_BFC05B14: psx_check_interrupts(cpu); /* 0xBFC05B14: 10000007 beq $zero, $zero, 0xBFC05B34 */ uint32_t psx_brA_BFC05B14 = cpu->gpr[0]; uint32_t psx_brB_BFC05B14 = cpu->gpr[0]; - int psx_taken_BFC05B14 = (psx_brA_BFC05B14 == psx_brB_BFC05B14); + psx_taken_BFC05B14 = (psx_brA_BFC05B14 == psx_brB_BFC05B14); /* 0xBFC05B18: AC239154 sw $v1, -28332($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28332)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05B18u); return; } g_debug_last_store_pc = 0xBFC05B18u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC05B14) goto label_BFC05B34; @@ -19149,7 +19864,7 @@ label_BFC05B1C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); /* 0xBFC05B28: 15010012 bne $t0, $at, 0xBFC05B74 */ uint32_t psx_brA_BFC05B28 = cpu->gpr[8]; uint32_t psx_brB_BFC05B28 = cpu->gpr[1]; - int psx_taken_BFC05B28 = (psx_brA_BFC05B28 != psx_brB_BFC05B28); + psx_taken_BFC05B28 = (psx_brA_BFC05B28 != psx_brB_BFC05B28); /* 0xBFC05B2C: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC05B28) goto label_BFC05B74; @@ -19187,7 +19902,7 @@ label_BFC05B44: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC05B50: 10620003 beq $v1, $v0, 0xBFC05B60 */ uint32_t psx_brA_BFC05B50 = cpu->gpr[3]; uint32_t psx_brB_BFC05B50 = cpu->gpr[2]; - int psx_taken_BFC05B50 = (psx_brA_BFC05B50 == psx_brB_BFC05B50); + psx_taken_BFC05B50 = (psx_brA_BFC05B50 == psx_brB_BFC05B50); /* 0xBFC05B54: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC05B50) goto label_BFC05B60; @@ -19198,7 +19913,7 @@ label_BFC05B58: psx_check_interrupts(cpu); /* 0xBFC05B58: 14610004 bne $v1, $at, 0xBFC05B6C */ uint32_t psx_brA_BFC05B58 = cpu->gpr[3]; uint32_t psx_brB_BFC05B58 = cpu->gpr[1]; - int psx_taken_BFC05B58 = (psx_brA_BFC05B58 != psx_brB_BFC05B58); + psx_taken_BFC05B58 = (psx_brA_BFC05B58 != psx_brB_BFC05B58); /* 0xBFC05B5C: 3409FFFF ori $t1, $zero, 0xFFFF */ cpu->gpr[9] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC05B58) goto label_BFC05B6C; @@ -19209,7 +19924,7 @@ label_BFC05B60: psx_check_interrupts(cpu); /* 0xBFC05B60: 10000004 beq $zero, $zero, 0xBFC05B74 */ uint32_t psx_brA_BFC05B60 = cpu->gpr[0]; uint32_t psx_brB_BFC05B60 = cpu->gpr[0]; - int psx_taken_BFC05B60 = (psx_brA_BFC05B60 == psx_brB_BFC05B60); + psx_taken_BFC05B60 = (psx_brA_BFC05B60 == psx_brB_BFC05B60); /* 0xBFC05B64: 3403FFFF ori $v1, $zero, 0xFFFF */ cpu->gpr[3] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC05B60) goto label_BFC05B74; @@ -19238,7 +19953,7 @@ label_BFC05B74: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC05B78: 14610003 bne $v1, $at, 0xBFC05B88 */ uint32_t psx_brA_BFC05B78 = cpu->gpr[3]; uint32_t psx_brB_BFC05B78 = cpu->gpr[1]; - int psx_taken_BFC05B78 = (psx_brA_BFC05B78 != psx_brB_BFC05B78); + psx_taken_BFC05B78 = (psx_brA_BFC05B78 != psx_brB_BFC05B78); /* 0xBFC05B7C: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC05B78) goto label_BFC05B88; @@ -19249,7 +19964,7 @@ label_BFC05B80: psx_check_interrupts(cpu); /* 0xBFC05B80: 1000000A beq $zero, $zero, 0xBFC05BAC */ uint32_t psx_brA_BFC05B80 = cpu->gpr[0]; uint32_t psx_brB_BFC05B80 = cpu->gpr[0]; - int psx_taken_BFC05B80 = (psx_brA_BFC05B80 == psx_brB_BFC05B80); + psx_taken_BFC05B80 = (psx_brA_BFC05B80 == psx_brB_BFC05B80); /* 0xBFC05B84: AC239154 sw $v1, -28332($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28332)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05B84u); return; } g_debug_last_store_pc = 0xBFC05B84u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC05B80) goto label_BFC05BAC; @@ -19262,7 +19977,7 @@ label_BFC05B88: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC05B8C: 14610003 bne $v1, $at, 0xBFC05B9C */ uint32_t psx_brA_BFC05B8C = cpu->gpr[3]; uint32_t psx_brB_BFC05B8C = cpu->gpr[1]; - int psx_taken_BFC05B8C = (psx_brA_BFC05B8C != psx_brB_BFC05B8C); + psx_taken_BFC05B8C = (psx_brA_BFC05B8C != psx_brB_BFC05B8C); /* 0xBFC05B90: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC05B8C) goto label_BFC05B9C; @@ -19273,7 +19988,7 @@ label_BFC05B94: psx_check_interrupts(cpu); /* 0xBFC05B94: 10000005 beq $zero, $zero, 0xBFC05BAC */ uint32_t psx_brA_BFC05B94 = cpu->gpr[0]; uint32_t psx_brB_BFC05B94 = cpu->gpr[0]; - int psx_taken_BFC05B94 = (psx_brA_BFC05B94 == psx_brB_BFC05B94); + psx_taken_BFC05B94 = (psx_brA_BFC05B94 == psx_brB_BFC05B94); /* 0xBFC05B98: AC239154 sw $v1, -28332($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28332)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05B98u); return; } g_debug_last_store_pc = 0xBFC05B98u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC05B94) goto label_BFC05BAC; @@ -19286,7 +20001,7 @@ label_BFC05B9C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); /* 0xBFC05BA0: 1461000A bne $v1, $at, 0xBFC05BCC */ uint32_t psx_brA_BFC05BA0 = cpu->gpr[3]; uint32_t psx_brB_BFC05BA0 = cpu->gpr[1]; - int psx_taken_BFC05BA0 = (psx_brA_BFC05BA0 != psx_brB_BFC05BA0); + psx_taken_BFC05BA0 = (psx_brA_BFC05BA0 != psx_brB_BFC05BA0); /* 0xBFC05BA4: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC05BA0) goto label_BFC05BCC; @@ -19322,7 +20037,7 @@ label_BFC05BBC: cpu->gpr[1] = 0xA0010000u; /* 0xBFC05BC4: 10000010 beq $zero, $zero, 0xBFC05C08 */ uint32_t psx_brA_BFC05BC4 = cpu->gpr[0]; uint32_t psx_brB_BFC05BC4 = cpu->gpr[0]; - int psx_taken_BFC05BC4 = (psx_brA_BFC05BC4 == psx_brB_BFC05BC4); + psx_taken_BFC05BC4 = (psx_brA_BFC05BC4 == psx_brB_BFC05BC4); /* 0xBFC05BC8: AC239154 sw $v1, -28332($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28332)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05BC8u); return; } g_debug_last_store_pc = 0xBFC05BC8u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC05BC4) goto label_BFC05C08; @@ -19339,7 +20054,7 @@ label_BFC05BCC: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC05BD8: 14610008 bne $v1, $at, 0xBFC05BFC */ uint32_t psx_brA_BFC05BD8 = cpu->gpr[3]; uint32_t psx_brB_BFC05BD8 = cpu->gpr[1]; - int psx_taken_BFC05BD8 = (psx_brA_BFC05BD8 != psx_brB_BFC05BD8); + psx_taken_BFC05BD8 = (psx_brA_BFC05BD8 != psx_brB_BFC05BD8); /* 0xBFC05BDC: 3C04F000 lui $a0, 0xF000 */ cpu->gpr[4] = 0xF0000000u; if (psx_taken_BFC05BD8) goto label_BFC05BFC; @@ -19364,7 +20079,7 @@ label_BFC05BF0: psx_check_interrupts(cpu); /* 0xBFC05BF0: 10000006 beq $zero, $zero, 0xBFC05C0C */ uint32_t psx_brA_BFC05BF0 = cpu->gpr[0]; uint32_t psx_brB_BFC05BF0 = cpu->gpr[0]; - int psx_taken_BFC05BF0 = (psx_brA_BFC05BF0 == psx_brB_BFC05BF0); + psx_taken_BFC05BF0 = (psx_brA_BFC05BF0 == psx_brB_BFC05BF0); /* 0xBFC05BF4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05BF4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05BF0) goto label_BFC05C0C; @@ -19409,6 +20124,8 @@ label_BFC05C0C: void func_1FC05C18(CPUState* cpu) { debug_server_log_call_entry(0x1FC05C18u); + int psx_taken_BFC05C18 = 0; + int psx_taken_BFC05C20 = 0; label_BFC05C18: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -19416,7 +20133,7 @@ label_BFC05C18: psx_check_interrupts(cpu); /* 0xBFC05C18: 14800004 bne $a0, $zero, 0xBFC05C2C */ uint32_t psx_brA_BFC05C18 = cpu->gpr[4]; uint32_t psx_brB_BFC05C18 = cpu->gpr[0]; - int psx_taken_BFC05C18 = (psx_brA_BFC05C18 != psx_brB_BFC05C18); + psx_taken_BFC05C18 = (psx_brA_BFC05C18 != psx_brB_BFC05C18); /* 0xBFC05C1C: 24020016 addiu $v0, $zero, 22 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (22)); if (psx_taken_BFC05C18) goto label_BFC05C2C; @@ -19427,7 +20144,7 @@ label_BFC05C20: psx_check_interrupts(cpu); /* 0xBFC05C20: 10000002 beq $zero, $zero, 0xBFC05C2C */ uint32_t psx_brA_BFC05C20 = cpu->gpr[0]; uint32_t psx_brB_BFC05C20 = cpu->gpr[0]; - int psx_taken_BFC05C20 = (psx_brA_BFC05C20 == psx_brB_BFC05C20); + psx_taken_BFC05C20 = (psx_brA_BFC05C20 == psx_brB_BFC05C20); /* 0xBFC05C24: 24020015 addiu $v0, $zero, 21 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (21)); if (psx_taken_BFC05C20) goto label_BFC05C2C; @@ -19473,6 +20190,9 @@ void func_1FC05C50(CPUState* cpu) { default: break; } } + int psx_taken_BFC05CA8 = 0; + int psx_taken_BFC05CBC = 0; + int psx_taken_BFC05CD0 = 0; label_BFC05C50: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(17u); @@ -19529,7 +20249,7 @@ label_BFC05C94: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); /* 0xBFC05CA8: 1444FFFA bne $v0, $a0, 0xBFC05C94 */ uint32_t psx_brA_BFC05CA8 = cpu->gpr[2]; uint32_t psx_brB_BFC05CA8 = cpu->gpr[4]; - int psx_taken_BFC05CA8 = (psx_brA_BFC05CA8 != psx_brB_BFC05CA8); + psx_taken_BFC05CA8 = (psx_brA_BFC05CA8 != psx_brB_BFC05CA8); /* 0xBFC05CAC: 00000000 nop */ /* nop */ if (psx_taken_BFC05CA8) goto label_BFC05C94; @@ -19546,7 +20266,7 @@ label_BFC05CB0: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC05CBC: 10410006 beq $v0, $at, 0xBFC05CD8 */ uint32_t psx_brA_BFC05CBC = cpu->gpr[2]; uint32_t psx_brB_BFC05CBC = cpu->gpr[1]; - int psx_taken_BFC05CBC = (psx_brA_BFC05CBC == psx_brB_BFC05CBC); + psx_taken_BFC05CBC = (psx_brA_BFC05CBC == psx_brB_BFC05CBC); /* 0xBFC05CC0: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC05CBC) goto label_BFC05CD8; @@ -19563,7 +20283,7 @@ label_BFC05CC4: cpu->gpr[1] = 0xA0010000u; /* 0xBFC05CD0: 10000004 beq $zero, $zero, 0xBFC05CE4 */ uint32_t psx_brA_BFC05CD0 = cpu->gpr[0]; uint32_t psx_brB_BFC05CD0 = cpu->gpr[0]; - int psx_taken_BFC05CD0 = (psx_brA_BFC05CD0 == psx_brB_BFC05CD0); + psx_taken_BFC05CD0 = (psx_brA_BFC05CD0 == psx_brB_BFC05CD0); /* 0xBFC05CD4: AC229158 sw $v0, -28328($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28328)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05CD4u); return; } g_debug_last_store_pc = 0xBFC05CD4u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC05CD0) goto label_BFC05CE4; @@ -19617,6 +20337,9 @@ void func_1FC05D04(CPUState* cpu) { default: break; } } + int psx_taken_BFC05D34 = 0; + int psx_taken_BFC05D64 = 0; + int psx_taken_BFC05D7C = 0; label_BFC05D04: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -19653,7 +20376,7 @@ label_BFC05D20: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); /* 0xBFC05D34: 1444FFFA bne $v0, $a0, 0xBFC05D20 */ uint32_t psx_brA_BFC05D34 = cpu->gpr[2]; uint32_t psx_brB_BFC05D34 = cpu->gpr[4]; - int psx_taken_BFC05D34 = (psx_brA_BFC05D34 != psx_brB_BFC05D34); + psx_taken_BFC05D34 = (psx_brA_BFC05D34 != psx_brB_BFC05D34); /* 0xBFC05D38: 00000000 nop */ /* nop */ if (psx_taken_BFC05D34) goto label_BFC05D20; @@ -19684,7 +20407,7 @@ label_BFC05D3C: cpu->gpr[24] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[3] + (0))); /* 0xBFC05D64: 10810007 beq $a0, $at, 0xBFC05D84 */ uint32_t psx_brA_BFC05D64 = cpu->gpr[4]; uint32_t psx_brB_BFC05D64 = cpu->gpr[1]; - int psx_taken_BFC05D64 = (psx_brA_BFC05D64 == psx_brB_BFC05D64); + psx_taken_BFC05D64 = (psx_brA_BFC05D64 == psx_brB_BFC05D64); /* 0xBFC05D68: A0580002 sb $t8, 2($v0) */ g_debug_last_store_pc = 0xBFC05D68u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (2)), (uint8_t)(cpu->gpr[24] & 0xFFu)); if (psx_taken_BFC05D64) goto label_BFC05D84; @@ -19703,7 +20426,7 @@ label_BFC05D6C: cpu->gpr[1] = 0xA0010000u; /* 0xBFC05D7C: 10000004 beq $zero, $zero, 0xBFC05D90 */ uint32_t psx_brA_BFC05D7C = cpu->gpr[0]; uint32_t psx_brB_BFC05D7C = cpu->gpr[0]; - int psx_taken_BFC05D7C = (psx_brA_BFC05D7C == psx_brB_BFC05D7C); + psx_taken_BFC05D7C = (psx_brA_BFC05D7C == psx_brB_BFC05D7C); /* 0xBFC05D80: AC249158 sw $a0, -28328($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28328)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05D80u); return; } g_debug_last_store_pc = 0xBFC05D80u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC05D7C) goto label_BFC05D90; @@ -19814,6 +20537,7 @@ void func_1FC05DF4(CPUState* cpu) { default: break; } } + int psx_taken_BFC05E24 = 0; label_BFC05DF4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -19850,7 +20574,7 @@ label_BFC05E1C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC05E24: 1443FFFD bne $v0, $v1, 0xBFC05E1C */ uint32_t psx_brA_BFC05E24 = cpu->gpr[2]; uint32_t psx_brB_BFC05E24 = cpu->gpr[3]; - int psx_taken_BFC05E24 = (psx_brA_BFC05E24 != psx_brB_BFC05E24); + psx_taken_BFC05E24 = (psx_brA_BFC05E24 != psx_brB_BFC05E24); /* 0xBFC05E28: 00000000 nop */ /* nop */ if (psx_taken_BFC05E24) goto label_BFC05E1C; @@ -19891,6 +20615,11 @@ label_BFC05E48: void func_1FC05E58(CPUState* cpu) { debug_server_log_call_entry(0x1FC05E58u); + int psx_taken_BFC05E74 = 0; + int psx_taken_BFC05E88 = 0; + int psx_taken_BFC05E98 = 0; + int psx_taken_BFC05ECC = 0; + int psx_taken_BFC05EDC = 0; label_BFC05E58: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -19912,7 +20641,7 @@ label_BFC05E58: cpu->gpr[24] = cpu->gpr[15] & 0x100u; /* 0xBFC05E74: 17000012 bne $t8, $zero, 0xBFC05EC0 */ uint32_t psx_brA_BFC05E74 = cpu->gpr[24]; uint32_t psx_brB_BFC05E74 = cpu->gpr[0]; - int psx_taken_BFC05E74 = (psx_brA_BFC05E74 != psx_brB_BFC05E74); + psx_taken_BFC05E74 = (psx_brA_BFC05E74 != psx_brB_BFC05E74); /* 0xBFC05E78: 00000000 nop */ /* nop */ if (psx_taken_BFC05E74) goto label_BFC05EC0; @@ -19929,7 +20658,7 @@ label_BFC05E7C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (254)); /* 0xBFC05E88: 17210006 bne $t9, $at, 0xBFC05EA4 */ uint32_t psx_brA_BFC05E88 = cpu->gpr[25]; uint32_t psx_brB_BFC05E88 = cpu->gpr[1]; - int psx_taken_BFC05E88 = (psx_brA_BFC05E88 != psx_brB_BFC05E88); + psx_taken_BFC05E88 = (psx_brA_BFC05E88 != psx_brB_BFC05E88); /* 0xBFC05E8C: 240900E6 addiu $t1, $zero, 230 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC05E88) goto label_BFC05EA4; @@ -19944,7 +20673,7 @@ label_BFC05E90: cpu->gpr[1] = 0xA0010000u; /* 0xBFC05E98: 10000004 beq $zero, $zero, 0xBFC05EAC */ uint32_t psx_brA_BFC05E98 = cpu->gpr[0]; uint32_t psx_brB_BFC05E98 = cpu->gpr[0]; - int psx_taken_BFC05E98 = (psx_brA_BFC05E98 == psx_brB_BFC05E98); + psx_taken_BFC05E98 = (psx_brA_BFC05E98 == psx_brB_BFC05E98); /* 0xBFC05E9C: AC289154 sw $t0, -28332($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28332)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05E9Cu); return; } g_debug_last_store_pc = 0xBFC05E9Cu; cpu->write_word(psx_addr, cpu->gpr[8]); } if (psx_taken_BFC05E98) goto label_BFC05EAC; @@ -19992,7 +20721,7 @@ label_BFC05EC0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (254)); /* 0xBFC05ECC: 15810006 bne $t4, $at, 0xBFC05EE8 */ uint32_t psx_brA_BFC05ECC = cpu->gpr[12]; uint32_t psx_brB_BFC05ECC = cpu->gpr[1]; - int psx_taken_BFC05ECC = (psx_brA_BFC05ECC != psx_brB_BFC05ECC); + psx_taken_BFC05ECC = (psx_brA_BFC05ECC != psx_brB_BFC05ECC); /* 0xBFC05ED0: 240E00EB addiu $t6, $zero, 235 */ cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC05ECC) goto label_BFC05EE8; @@ -20007,7 +20736,7 @@ label_BFC05ED4: cpu->gpr[1] = 0xA0010000u; /* 0xBFC05EDC: 10000004 beq $zero, $zero, 0xBFC05EF0 */ uint32_t psx_brA_BFC05EDC = cpu->gpr[0]; uint32_t psx_brB_BFC05EDC = cpu->gpr[0]; - int psx_taken_BFC05EDC = (psx_brA_BFC05EDC == psx_brB_BFC05EDC); + psx_taken_BFC05EDC = (psx_brA_BFC05EDC == psx_brB_BFC05EDC); /* 0xBFC05EE0: AC2D9154 sw $t5, -28332($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28332)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05EE0u); return; } g_debug_last_store_pc = 0xBFC05EE0u; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC05EDC) goto label_BFC05EF0; @@ -20056,6 +20785,10 @@ void func_1FC05F08(CPUState* cpu) { default: break; } } + int psx_taken_BFC05F14 = 0; + int psx_taken_BFC05FC0 = 0; + int psx_taken_BFC05FE4 = 0; + int psx_taken_BFC05FEC = 0; label_BFC05F08: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -20069,7 +20802,7 @@ label_BFC05F08: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC05F14: 18C00035 blez $a2, 0xBFC05FEC */ uint32_t psx_brA_BFC05F14 = cpu->gpr[6]; - int psx_taken_BFC05F14 = ((int32_t)psx_brA_BFC05F14 <= 0); + psx_taken_BFC05F14 = ((int32_t)psx_brA_BFC05F14 <= 0); /* 0xBFC05F18: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05F18u); return; } g_debug_last_store_pc = 0xBFC05F18u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC05F14) goto label_BFC05FEC; @@ -20168,7 +20901,7 @@ label_BFC05F94: cpu->gpr[12] = cpu->gpr[9] + cpu->gpr[11]; /* 0xBFC05FC0: 14C0000F bne $a2, $zero, 0xBFC06000 */ uint32_t psx_brA_BFC05FC0 = cpu->gpr[6]; uint32_t psx_brB_BFC05FC0 = cpu->gpr[0]; - int psx_taken_BFC05FC0 = (psx_brA_BFC05FC0 != psx_brB_BFC05FC0); + psx_taken_BFC05FC0 = (psx_brA_BFC05FC0 != psx_brB_BFC05FC0); /* 0xBFC05FC4: AC2C9188 sw $t4, -28280($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28280)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05FC4u); return; } g_debug_last_store_pc = 0xBFC05FC4u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC05FC0) goto label_BFC06000; @@ -20193,7 +20926,7 @@ label_BFC05FC8: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC05FE4: 10000006 beq $zero, $zero, 0xBFC06000 */ uint32_t psx_brA_BFC05FE4 = cpu->gpr[0]; uint32_t psx_brB_BFC05FE4 = cpu->gpr[0]; - int psx_taken_BFC05FE4 = (psx_brA_BFC05FE4 == psx_brB_BFC05FE4); + psx_taken_BFC05FE4 = (psx_brA_BFC05FE4 == psx_brB_BFC05FE4); /* 0xBFC05FE8: A1EE0000 sb $t6, 0($t7) */ g_debug_last_store_pc = 0xBFC05FE8u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[15] + (0)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC05FE4) goto label_BFC06000; @@ -20204,7 +20937,7 @@ label_BFC05FEC: psx_check_interrupts(cpu); /* 0xBFC05FEC: 14C00005 bne $a2, $zero, 0xBFC06004 */ uint32_t psx_brA_BFC05FEC = cpu->gpr[6]; uint32_t psx_brB_BFC05FEC = cpu->gpr[0]; - int psx_taken_BFC05FEC = (psx_brA_BFC05FEC != psx_brB_BFC05FEC); + psx_taken_BFC05FEC = (psx_brA_BFC05FEC != psx_brB_BFC05FEC); /* 0xBFC05FF0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC05FF0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC05FEC) goto label_BFC06004; @@ -20292,6 +21025,7 @@ void func_1FC06038(CPUState* cpu) { default: break; } } + int psx_taken_BFC060B4 = 0; label_BFC06038: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(21u); @@ -20366,7 +21100,7 @@ label_BFC0608C: cpu->gpr[10] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[3] + (0))); /* 0xBFC060B4: 1444FFF5 bne $v0, $a0, 0xBFC0608C */ uint32_t psx_brA_BFC060B4 = cpu->gpr[2]; uint32_t psx_brB_BFC060B4 = cpu->gpr[4]; - int psx_taken_BFC060B4 = (psx_brA_BFC060B4 != psx_brB_BFC060B4); + psx_taken_BFC060B4 = (psx_brA_BFC060B4 != psx_brB_BFC060B4); /* 0xBFC060B8: A04AFFFF sb $t2, -1($v0) */ g_debug_last_store_pc = 0xBFC060B8u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-1)), (uint8_t)(cpu->gpr[10] & 0xFFu)); if (psx_taken_BFC060B4) goto label_BFC0608C; @@ -20409,6 +21143,8 @@ void func_1FC060DC(CPUState* cpu) { default: break; } } + int psx_taken_BFC0610C = 0; + int psx_taken_BFC06128 = 0; label_BFC060DC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -20445,7 +21181,7 @@ label_BFC0610C: psx_check_interrupts(cpu); /* 0xBFC0610C: 10400009 beq $v0, $zero, 0xBFC06134 */ uint32_t psx_brA_BFC0610C = cpu->gpr[2]; uint32_t psx_brB_BFC0610C = cpu->gpr[0]; - int psx_taken_BFC0610C = (psx_brA_BFC0610C == psx_brB_BFC0610C); + psx_taken_BFC0610C = (psx_brA_BFC0610C == psx_brB_BFC0610C); /* 0xBFC06110: 3418FFFF ori $t8, $zero, 0xFFFF */ cpu->gpr[24] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC0610C) goto label_BFC06134; @@ -20466,7 +21202,7 @@ label_BFC06114: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC06128: 1000FFF8 beq $zero, $zero, 0xBFC0610C */ uint32_t psx_brA_BFC06128 = cpu->gpr[0]; uint32_t psx_brB_BFC06128 = cpu->gpr[0]; - int psx_taken_BFC06128 = (psx_brA_BFC06128 == psx_brB_BFC06128); + psx_taken_BFC06128 = (psx_brA_BFC06128 == psx_brB_BFC06128); /* 0xBFC0612C: A1EE0002 sb $t6, 2($t7) */ g_debug_last_store_pc = 0xBFC0612Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[15] + (2)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC06128) goto label_BFC0610C; @@ -20683,6 +21419,8 @@ void func_1FC06218(CPUState* cpu) { default: break; } } + int psx_taken_BFC06234 = 0; + int psx_taken_BFC06244 = 0; label_BFC06218: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -20704,7 +21442,7 @@ label_BFC06218: cpu->gpr[14] = cpu->gpr[2] & 0x10u; /* 0xBFC06234: 11C10006 beq $t6, $at, 0xBFC06250 */ uint32_t psx_brA_BFC06234 = cpu->gpr[14]; uint32_t psx_brB_BFC06234 = cpu->gpr[1]; - int psx_taken_BFC06234 = (psx_brA_BFC06234 == psx_brB_BFC06234); + psx_taken_BFC06234 = (psx_brA_BFC06234 == psx_brB_BFC06234); /* 0xBFC06238: 240F0F14 addiu $t7, $zero, 3860 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (3860)); if (psx_taken_BFC06234) goto label_BFC06250; @@ -20725,7 +21463,7 @@ label_BFC06244: psx_check_interrupts(cpu); /* 0xBFC06244: 1000000D beq $zero, $zero, 0xBFC0627C */ uint32_t psx_brA_BFC06244 = cpu->gpr[0]; uint32_t psx_brB_BFC06244 = cpu->gpr[0]; - int psx_taken_BFC06244 = (psx_brA_BFC06244 == psx_brB_BFC06244); + psx_taken_BFC06244 = (psx_brA_BFC06244 == psx_brB_BFC06244); /* 0xBFC06248: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC06248u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC06244) goto label_BFC0627C; @@ -20829,6 +21567,8 @@ void func_1FC062CC(CPUState* cpu) { default: break; } } + int psx_taken_BFC06350 = 0; + int psx_taken_BFC06364 = 0; label_BFC062CC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(35u); @@ -20902,7 +21642,7 @@ label_BFC062CC: cpu->gpr[24] = cpu->gpr[6] & 0x10u; /* 0xBFC06350: 13010006 beq $t8, $at, 0xBFC0636C */ uint32_t psx_brA_BFC06350 = cpu->gpr[24]; uint32_t psx_brB_BFC06350 = cpu->gpr[1]; - int psx_taken_BFC06350 = (psx_brA_BFC06350 == psx_brB_BFC06350); + psx_taken_BFC06350 = (psx_brA_BFC06350 == psx_brB_BFC06350); /* 0xBFC06354: 308700FF andi $a3, $a0, 0xFF */ cpu->gpr[7] = cpu->gpr[4] & 0xFFu; if (psx_taken_BFC06350) goto label_BFC0636C; @@ -20925,7 +21665,7 @@ label_BFC06364: psx_check_interrupts(cpu); /* 0xBFC06364: 10000016 beq $zero, $zero, 0xBFC063C0 */ uint32_t psx_brA_BFC06364 = cpu->gpr[0]; uint32_t psx_brB_BFC06364 = cpu->gpr[0]; - int psx_taken_BFC06364 = (psx_brA_BFC06364 == psx_brB_BFC06364); + psx_taken_BFC06364 = (psx_brA_BFC06364 == psx_brB_BFC06364); /* 0xBFC06368: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC06368u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC06364) goto label_BFC063C0; @@ -21000,6 +21740,10 @@ void func_1FC063CC(CPUState* cpu) { default: break; } } + int psx_taken_BFC06418 = 0; + int psx_taken_BFC0643C = 0; + int psx_taken_BFC0645C = 0; + int psx_taken_BFC0646C = 0; label_BFC063CC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(21u); @@ -21045,7 +21789,7 @@ label_BFC063CC: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < cpu->gpr[3] ? 1 : 0); /* 0xBFC06418: 1020000A beq $at, $zero, 0xBFC06444 */ uint32_t psx_brA_BFC06418 = cpu->gpr[1]; uint32_t psx_brB_BFC06418 = cpu->gpr[0]; - int psx_taken_BFC06418 = (psx_brA_BFC06418 == psx_brB_BFC06418); + psx_taken_BFC06418 = (psx_brA_BFC06418 == psx_brB_BFC06418); /* 0xBFC0641C: 00000000 nop */ /* nop */ if (psx_taken_BFC06418) goto label_BFC06444; @@ -21076,7 +21820,7 @@ label_BFC0643C: psx_check_interrupts(cpu); /* 0xBFC0643C: 10000023 beq $zero, $zero, 0xBFC064CC */ uint32_t psx_brA_BFC0643C = cpu->gpr[0]; uint32_t psx_brB_BFC0643C = cpu->gpr[0]; - int psx_taken_BFC0643C = (psx_brA_BFC0643C == psx_brB_BFC0643C); + psx_taken_BFC0643C = (psx_brA_BFC0643C == psx_brB_BFC0643C); /* 0xBFC06440: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC06440u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0643C) goto label_BFC064CC; @@ -21099,7 +21843,7 @@ label_BFC06444: cpu->gpr[10] = cpu->gpr[2] & 0x10u; /* 0xBFC0645C: 11410006 beq $t2, $at, 0xBFC06478 */ uint32_t psx_brA_BFC0645C = cpu->gpr[10]; uint32_t psx_brB_BFC0645C = cpu->gpr[1]; - int psx_taken_BFC0645C = (psx_brA_BFC0645C == psx_brB_BFC0645C); + psx_taken_BFC0645C = (psx_brA_BFC0645C == psx_brB_BFC0645C); /* 0xBFC06460: 2401000A addiu $at, $zero, 10 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); if (psx_taken_BFC0645C) goto label_BFC06478; @@ -21120,7 +21864,7 @@ label_BFC0646C: psx_check_interrupts(cpu); /* 0xBFC0646C: 10000017 beq $zero, $zero, 0xBFC064CC */ uint32_t psx_brA_BFC0646C = cpu->gpr[0]; uint32_t psx_brB_BFC0646C = cpu->gpr[0]; - int psx_taken_BFC0646C = (psx_brA_BFC0646C == psx_brB_BFC0646C); + psx_taken_BFC0646C = (psx_brA_BFC0646C == psx_brB_BFC0646C); /* 0xBFC06470: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC06470u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0646C) goto label_BFC064CC; @@ -21540,6 +22284,11 @@ void func_1FC06680(CPUState* cpu) { default: break; } } + int psx_taken_BFC066A4 = 0; + int psx_taken_BFC066AC = 0; + int psx_taken_BFC066B4 = 0; + int psx_taken_BFC066BC = 0; + int psx_taken_BFC066DC = 0; label_BFC06680: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -21565,7 +22314,7 @@ label_BFC06680: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC066A4: 10A10005 beq $a1, $at, 0xBFC066BC */ uint32_t psx_brA_BFC066A4 = cpu->gpr[5]; uint32_t psx_brB_BFC066A4 = cpu->gpr[1]; - int psx_taken_BFC066A4 = (psx_brA_BFC066A4 == psx_brB_BFC066A4); + psx_taken_BFC066A4 = (psx_brA_BFC066A4 == psx_brB_BFC066A4); /* 0xBFC066A8: 24010008 addiu $at, $zero, 8 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); if (psx_taken_BFC066A4) goto label_BFC066BC; @@ -21576,7 +22325,7 @@ label_BFC066AC: psx_check_interrupts(cpu); /* 0xBFC066AC: 10A10006 beq $a1, $at, 0xBFC066C8 */ uint32_t psx_brA_BFC066AC = cpu->gpr[5]; uint32_t psx_brB_BFC066AC = cpu->gpr[1]; - int psx_taken_BFC066AC = (psx_brA_BFC066AC == psx_brB_BFC066AC); + psx_taken_BFC066AC = (psx_brA_BFC066AC == psx_brB_BFC066AC); /* 0xBFC066B0: 344E0300 ori $t6, $v0, 0x300 */ cpu->gpr[14] = cpu->gpr[2] | 0x300u; if (psx_taken_BFC066AC) goto label_BFC066C8; @@ -21587,7 +22336,7 @@ label_BFC066B4: psx_check_interrupts(cpu); /* 0xBFC066B4: 1000000B beq $zero, $zero, 0xBFC066E4 */ uint32_t psx_brA_BFC066B4 = cpu->gpr[0]; uint32_t psx_brB_BFC066B4 = cpu->gpr[0]; - int psx_taken_BFC066B4 = (psx_brA_BFC066B4 == psx_brB_BFC066B4); + psx_taken_BFC066B4 = (psx_brA_BFC066B4 == psx_brB_BFC066B4); /* 0xBFC066B8: 00000000 nop */ /* nop */ if (psx_taken_BFC066B4) goto label_BFC066E4; @@ -21598,7 +22347,7 @@ label_BFC066BC: psx_check_interrupts(cpu); /* 0xBFC066BC: 10000003 beq $zero, $zero, 0xBFC066CC */ uint32_t psx_brA_BFC066BC = cpu->gpr[0]; uint32_t psx_brB_BFC066BC = cpu->gpr[0]; - int psx_taken_BFC066BC = (psx_brA_BFC066BC == psx_brB_BFC066BC); + psx_taken_BFC066BC = (psx_brA_BFC066BC == psx_brB_BFC066BC); /* 0xBFC066C0: AC620000 sw $v0, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC066C0u); return; } g_debug_last_store_pc = 0xBFC066C0u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC066BC) goto label_BFC066CC; @@ -21637,7 +22386,7 @@ label_BFC066DC: psx_check_interrupts(cpu); /* 0xBFC066DC: 10000005 beq $zero, $zero, 0xBFC066F4 */ uint32_t psx_brA_BFC066DC = cpu->gpr[0]; uint32_t psx_brB_BFC066DC = cpu->gpr[0]; - int psx_taken_BFC066DC = (psx_brA_BFC066DC == psx_brB_BFC066DC); + psx_taken_BFC066DC = (psx_brA_BFC066DC == psx_brB_BFC066DC); /* 0xBFC066E0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC066E0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC066DC) goto label_BFC066F4; @@ -21900,6 +22649,22 @@ void func_1FC067E8(CPUState* cpu) { default: break; } } + int psx_taken_BFC06978 = 0; + int psx_taken_BFC069C0 = 0; + int psx_taken_BFC069DC = 0; + int psx_taken_BFC06A04 = 0; + int psx_taken_BFC06A28 = 0; + int psx_taken_BFC06A44 = 0; + int psx_taken_BFC06A68 = 0; + int psx_taken_BFC06A8C = 0; + int psx_taken_BFC06ABC = 0; + int psx_taken_BFC06AE4 = 0; + int psx_taken_BFC06B10 = 0; + int psx_taken_BFC06B24 = 0; + int psx_taken_BFC06B6C = 0; + int psx_taken_BFC06BA4 = 0; + int psx_taken_BFC06BD0 = 0; + int psx_taken_BFC06C5C = 0; label_BFC067E8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -22263,7 +23028,7 @@ label_BFC06978: psx_check_interrupts(cpu); /* 0xBFC06978: 10400003 beq $v0, $zero, 0xBFC06988 */ uint32_t psx_brA_BFC06978 = cpu->gpr[2]; uint32_t psx_brB_BFC06978 = cpu->gpr[0]; - int psx_taken_BFC06978 = (psx_brA_BFC06978 == psx_brB_BFC06978); + psx_taken_BFC06978 = (psx_brA_BFC06978 == psx_brB_BFC06978); /* 0xBFC0697C: 00000000 nop */ /* nop */ if (psx_taken_BFC06978) goto label_BFC06988; @@ -22342,7 +23107,7 @@ label_BFC069C0: psx_check_interrupts(cpu); /* 0xBFC069C0: 10400003 beq $v0, $zero, 0xBFC069D0 */ uint32_t psx_brA_BFC069C0 = cpu->gpr[2]; uint32_t psx_brB_BFC069C0 = cpu->gpr[0]; - int psx_taken_BFC069C0 = (psx_brA_BFC069C0 == psx_brB_BFC069C0); + psx_taken_BFC069C0 = (psx_brA_BFC069C0 == psx_brB_BFC069C0); /* 0xBFC069C4: 00000000 nop */ /* nop */ if (psx_taken_BFC069C0) goto label_BFC069D0; @@ -22375,7 +23140,7 @@ label_BFC069D8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC069DC: 14410003 bne $v0, $at, 0xBFC069EC */ uint32_t psx_brA_BFC069DC = cpu->gpr[2]; uint32_t psx_brB_BFC069DC = cpu->gpr[1]; - int psx_taken_BFC069DC = (psx_brA_BFC069DC != psx_brB_BFC069DC); + psx_taken_BFC069DC = (psx_brA_BFC069DC != psx_brB_BFC069DC); /* 0xBFC069E0: 00000000 nop */ /* nop */ if (psx_taken_BFC069DC) goto label_BFC069EC; @@ -22420,7 +23185,7 @@ label_BFC06A04: psx_check_interrupts(cpu); /* 0xBFC06A04: 10400003 beq $v0, $zero, 0xBFC06A14 */ uint32_t psx_brA_BFC06A04 = cpu->gpr[2]; uint32_t psx_brB_BFC06A04 = cpu->gpr[0]; - int psx_taken_BFC06A04 = (psx_brA_BFC06A04 == psx_brB_BFC06A04); + psx_taken_BFC06A04 = (psx_brA_BFC06A04 == psx_brB_BFC06A04); /* 0xBFC06A08: 00000000 nop */ /* nop */ if (psx_taken_BFC06A04) goto label_BFC06A14; @@ -22463,7 +23228,7 @@ label_BFC06A28: psx_check_interrupts(cpu); /* 0xBFC06A28: 10400004 beq $v0, $zero, 0xBFC06A3C */ uint32_t psx_brA_BFC06A28 = cpu->gpr[2]; uint32_t psx_brB_BFC06A28 = cpu->gpr[0]; - int psx_taken_BFC06A28 = (psx_brA_BFC06A28 == psx_brB_BFC06A28); + psx_taken_BFC06A28 = (psx_brA_BFC06A28 == psx_brB_BFC06A28); /* 0xBFC06A2C: 8FA40030 lw $a0, 48($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (48)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC06A2Cu); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC06A28) goto label_BFC06A3C; @@ -22501,7 +23266,7 @@ label_BFC06A44: psx_check_interrupts(cpu); /* 0xBFC06A44: 04400034 bltz $v0, 0xBFC06B18 */ uint32_t psx_brA_BFC06A44 = cpu->gpr[2]; - int psx_taken_BFC06A44 = ((int32_t)psx_brA_BFC06A44 < 0); + psx_taken_BFC06A44 = ((int32_t)psx_brA_BFC06A44 < 0); /* 0xBFC06A48: AFA2002C sw $v0, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC06A48u); return; } g_debug_last_store_pc = 0xBFC06A48u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC06A44) goto label_BFC06B18; @@ -22538,7 +23303,7 @@ label_BFC06A68: psx_check_interrupts(cpu); /* 0xBFC06A68: 10400004 beq $v0, $zero, 0xBFC06A7C */ uint32_t psx_brA_BFC06A68 = cpu->gpr[2]; uint32_t psx_brB_BFC06A68 = cpu->gpr[0]; - int psx_taken_BFC06A68 = (psx_brA_BFC06A68 == psx_brB_BFC06A68); + psx_taken_BFC06A68 = (psx_brA_BFC06A68 == psx_brB_BFC06A68); /* 0xBFC06A6C: 8FA4002C lw $a0, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC06A6Cu); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC06A68) goto label_BFC06A7C; @@ -22580,7 +23345,7 @@ label_BFC06A8C: psx_check_interrupts(cpu); /* 0xBFC06A8C: 1440000D bne $v0, $zero, 0xBFC06AC4 */ uint32_t psx_brA_BFC06A8C = cpu->gpr[2]; uint32_t psx_brB_BFC06A8C = cpu->gpr[0]; - int psx_taken_BFC06A8C = (psx_brA_BFC06A8C != psx_brB_BFC06A8C); + psx_taken_BFC06A8C = (psx_brA_BFC06A8C != psx_brB_BFC06A8C); /* 0xBFC06A90: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC06A8C) goto label_BFC06AC4; @@ -22623,7 +23388,7 @@ label_BFC06ABC: psx_check_interrupts(cpu); /* 0xBFC06ABC: 10000028 beq $zero, $zero, 0xBFC06B60 */ uint32_t psx_brA_BFC06ABC = cpu->gpr[0]; uint32_t psx_brB_BFC06ABC = cpu->gpr[0]; - int psx_taken_BFC06ABC = (psx_brA_BFC06ABC == psx_brB_BFC06ABC); + psx_taken_BFC06ABC = (psx_brA_BFC06ABC == psx_brB_BFC06ABC); /* 0xBFC06AC0: 00000000 nop */ /* nop */ if (psx_taken_BFC06ABC) goto label_BFC06B60; @@ -22662,7 +23427,7 @@ label_BFC06AE4: psx_check_interrupts(cpu); /* 0xBFC06AE4: 10400003 beq $v0, $zero, 0xBFC06AF4 */ uint32_t psx_brA_BFC06AE4 = cpu->gpr[2]; uint32_t psx_brB_BFC06AE4 = cpu->gpr[0]; - int psx_taken_BFC06AE4 = (psx_brA_BFC06AE4 == psx_brB_BFC06AE4); + psx_taken_BFC06AE4 = (psx_brA_BFC06AE4 == psx_brB_BFC06AE4); /* 0xBFC06AE8: 00000000 nop */ /* nop */ if (psx_taken_BFC06AE4) goto label_BFC06AF4; @@ -22703,7 +23468,7 @@ label_BFC06B10: psx_check_interrupts(cpu); /* 0xBFC06B10: 10000013 beq $zero, $zero, 0xBFC06B60 */ uint32_t psx_brA_BFC06B10 = cpu->gpr[0]; uint32_t psx_brB_BFC06B10 = cpu->gpr[0]; - int psx_taken_BFC06B10 = (psx_brA_BFC06B10 == psx_brB_BFC06B10); + psx_taken_BFC06B10 = (psx_brA_BFC06B10 == psx_brB_BFC06B10); /* 0xBFC06B14: 00000000 nop */ /* nop */ if (psx_taken_BFC06B10) goto label_BFC06B60; @@ -22726,7 +23491,7 @@ label_BFC06B24: psx_check_interrupts(cpu); /* 0xBFC06B24: 10400003 beq $v0, $zero, 0xBFC06B34 */ uint32_t psx_brA_BFC06B24 = cpu->gpr[2]; uint32_t psx_brB_BFC06B24 = cpu->gpr[0]; - int psx_taken_BFC06B24 = (psx_brA_BFC06B24 == psx_brB_BFC06B24); + psx_taken_BFC06B24 = (psx_brA_BFC06B24 == psx_brB_BFC06B24); /* 0xBFC06B28: 00000000 nop */ /* nop */ if (psx_taken_BFC06B24) goto label_BFC06B34; @@ -22793,7 +23558,7 @@ label_BFC06B6C: psx_check_interrupts(cpu); /* 0xBFC06B6C: 10400003 beq $v0, $zero, 0xBFC06B7C */ uint32_t psx_brA_BFC06B6C = cpu->gpr[2]; uint32_t psx_brB_BFC06B6C = cpu->gpr[0]; - int psx_taken_BFC06B6C = (psx_brA_BFC06B6C == psx_brB_BFC06B6C); + psx_taken_BFC06B6C = (psx_brA_BFC06B6C == psx_brB_BFC06B6C); /* 0xBFC06B70: 00000000 nop */ /* nop */ if (psx_taken_BFC06B6C) goto label_BFC06B7C; @@ -22852,7 +23617,7 @@ label_BFC06BA4: psx_check_interrupts(cpu); /* 0xBFC06BA4: 10400003 beq $v0, $zero, 0xBFC06BB4 */ uint32_t psx_brA_BFC06BA4 = cpu->gpr[2]; uint32_t psx_brB_BFC06BA4 = cpu->gpr[0]; - int psx_taken_BFC06BA4 = (psx_brA_BFC06BA4 == psx_brB_BFC06BA4); + psx_taken_BFC06BA4 = (psx_brA_BFC06BA4 == psx_brB_BFC06BA4); /* 0xBFC06BA8: 00000000 nop */ /* nop */ if (psx_taken_BFC06BA4) goto label_BFC06BB4; @@ -22899,7 +23664,7 @@ label_BFC06BD0: psx_check_interrupts(cpu); /* 0xBFC06BD0: 14400003 bne $v0, $zero, 0xBFC06BE0 */ uint32_t psx_brA_BFC06BD0 = cpu->gpr[2]; uint32_t psx_brB_BFC06BD0 = cpu->gpr[0]; - int psx_taken_BFC06BD0 = (psx_brA_BFC06BD0 != psx_brB_BFC06BD0); + psx_taken_BFC06BD0 = (psx_brA_BFC06BD0 != psx_brB_BFC06BD0); /* 0xBFC06BD4: 00000000 nop */ /* nop */ if (psx_taken_BFC06BD0) goto label_BFC06BE0; @@ -23012,7 +23777,7 @@ label_BFC06C5C: psx_check_interrupts(cpu); /* 0xBFC06C5C: 10400003 beq $v0, $zero, 0xBFC06C6C */ uint32_t psx_brA_BFC06C5C = cpu->gpr[2]; uint32_t psx_brB_BFC06C5C = cpu->gpr[0]; - int psx_taken_BFC06C5C = (psx_brA_BFC06C5C == psx_brB_BFC06C5C); + psx_taken_BFC06C5C = (psx_brA_BFC06C5C == psx_brB_BFC06C5C); /* 0xBFC06C60: 00000000 nop */ /* nop */ if (psx_taken_BFC06C5C) goto label_BFC06C6C; @@ -23123,6 +23888,10 @@ void func_1FC06CA4(CPUState* cpu) { default: break; } } + int psx_taken_BFC06DA0 = 0; + int psx_taken_BFC06DC4 = 0; + int psx_taken_BFC06DF0 = 0; + int psx_taken_BFC06E7C = 0; label_BFC06CA4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -23370,7 +24139,7 @@ label_BFC06DA0: psx_check_interrupts(cpu); /* 0xBFC06DA0: 10400003 beq $v0, $zero, 0xBFC06DB0 */ uint32_t psx_brA_BFC06DA0 = cpu->gpr[2]; uint32_t psx_brB_BFC06DA0 = cpu->gpr[0]; - int psx_taken_BFC06DA0 = (psx_brA_BFC06DA0 == psx_brB_BFC06DA0); + psx_taken_BFC06DA0 = (psx_brA_BFC06DA0 == psx_brB_BFC06DA0); /* 0xBFC06DA4: 00000000 nop */ /* nop */ if (psx_taken_BFC06DA0) goto label_BFC06DB0; @@ -23413,7 +24182,7 @@ label_BFC06DC4: psx_check_interrupts(cpu); /* 0xBFC06DC4: 10400003 beq $v0, $zero, 0xBFC06DD4 */ uint32_t psx_brA_BFC06DC4 = cpu->gpr[2]; uint32_t psx_brB_BFC06DC4 = cpu->gpr[0]; - int psx_taken_BFC06DC4 = (psx_brA_BFC06DC4 == psx_brB_BFC06DC4); + psx_taken_BFC06DC4 = (psx_brA_BFC06DC4 == psx_brB_BFC06DC4); /* 0xBFC06DC8: 00000000 nop */ /* nop */ if (psx_taken_BFC06DC4) goto label_BFC06DD4; @@ -23460,7 +24229,7 @@ label_BFC06DF0: psx_check_interrupts(cpu); /* 0xBFC06DF0: 14400003 bne $v0, $zero, 0xBFC06E00 */ uint32_t psx_brA_BFC06DF0 = cpu->gpr[2]; uint32_t psx_brB_BFC06DF0 = cpu->gpr[0]; - int psx_taken_BFC06DF0 = (psx_brA_BFC06DF0 != psx_brB_BFC06DF0); + psx_taken_BFC06DF0 = (psx_brA_BFC06DF0 != psx_brB_BFC06DF0); /* 0xBFC06DF4: 00000000 nop */ /* nop */ if (psx_taken_BFC06DF0) goto label_BFC06E00; @@ -23573,7 +24342,7 @@ label_BFC06E7C: psx_check_interrupts(cpu); /* 0xBFC06E7C: 10400003 beq $v0, $zero, 0xBFC06E8C */ uint32_t psx_brA_BFC06E7C = cpu->gpr[2]; uint32_t psx_brB_BFC06E7C = cpu->gpr[0]; - int psx_taken_BFC06E7C = (psx_brA_BFC06E7C == psx_brB_BFC06E7C); + psx_taken_BFC06E7C = (psx_brA_BFC06E7C == psx_brB_BFC06E7C); /* 0xBFC06E80: 00000000 nop */ /* nop */ if (psx_taken_BFC06E7C) goto label_BFC06E8C; @@ -23654,6 +24423,7 @@ void func_1FC06EC4(CPUState* cpu) { default: break; } } + int psx_taken_BFC06EF4 = 0; label_BFC06EC4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -23697,7 +24467,7 @@ label_BFC06EF0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC06EF4: 14410003 bne $v0, $at, 0xBFC06F04 */ uint32_t psx_brA_BFC06EF4 = cpu->gpr[2]; uint32_t psx_brB_BFC06EF4 = cpu->gpr[1]; - int psx_taken_BFC06EF4 = (psx_brA_BFC06EF4 != psx_brB_BFC06EF4); + psx_taken_BFC06EF4 = (psx_brA_BFC06EF4 != psx_brB_BFC06EF4); /* 0xBFC06EF8: 00000000 nop */ /* nop */ if (psx_taken_BFC06EF4) goto label_BFC06F04; @@ -24033,6 +24803,10 @@ label_BFC0702C: void func_1FC0703C(CPUState* cpu) { debug_server_log_call_entry(0x1FC0703Cu); + int psx_taken_BFC07054 = 0; + int psx_taken_BFC07070 = 0; + int psx_taken_BFC07080 = 0; + int psx_taken_BFC07090 = 0; label_BFC0703C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -24052,7 +24826,7 @@ label_BFC0703C: cpu->gpr[2] = cpu->gpr[2] | 0x84u; /* 0xBFC07054: 11E0000C beq $t7, $zero, 0xBFC07088 */ uint32_t psx_brA_BFC07054 = cpu->gpr[15]; uint32_t psx_brB_BFC07054 = cpu->gpr[0]; - int psx_taken_BFC07054 = (psx_brA_BFC07054 == psx_brB_BFC07054); + psx_taken_BFC07054 = (psx_brA_BFC07054 == psx_brB_BFC07054); /* 0xBFC07058: 01C01821 addu $v1, $t6, $zero */ cpu->gpr[3] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC07054) goto label_BFC07088; @@ -24078,7 +24852,7 @@ label_BFC07064: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC07070: 14A40005 bne $a1, $a0, 0xBFC07088 */ uint32_t psx_brA_BFC07070 = cpu->gpr[5]; uint32_t psx_brB_BFC07070 = cpu->gpr[4]; - int psx_taken_BFC07070 = (psx_brA_BFC07070 != psx_brB_BFC07070); + psx_taken_BFC07070 = (psx_brA_BFC07070 != psx_brB_BFC07070); /* 0xBFC07074: 24630001 addiu $v1, $v1, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); if (psx_taken_BFC07070) goto label_BFC07088; @@ -24093,7 +24867,7 @@ label_BFC07078: /* nop */ /* 0xBFC07080: 14C0FFF8 bne $a2, $zero, 0xBFC07064 */ uint32_t psx_brA_BFC07080 = cpu->gpr[6]; uint32_t psx_brB_BFC07080 = cpu->gpr[0]; - int psx_taken_BFC07080 = (psx_brA_BFC07080 != psx_brB_BFC07080); + psx_taken_BFC07080 = (psx_brA_BFC07080 != psx_brB_BFC07080); /* 0xBFC07084: 00000000 nop */ /* nop */ if (psx_taken_BFC07080) goto label_BFC07064; @@ -24108,7 +24882,7 @@ label_BFC07088: /* nop */ /* 0xBFC07090: 17000004 bne $t8, $zero, 0xBFC070A4 */ uint32_t psx_brA_BFC07090 = cpu->gpr[24]; uint32_t psx_brB_BFC07090 = cpu->gpr[0]; - int psx_taken_BFC07090 = (psx_brA_BFC07090 != psx_brB_BFC07090); + psx_taken_BFC07090 = (psx_brA_BFC07090 != psx_brB_BFC07090); /* 0xBFC07094: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC07090) goto label_BFC070A4; @@ -24134,6 +24908,10 @@ label_BFC070A4: void func_1FC070AC(CPUState* cpu) { debug_server_log_call_entry(0x1FC070ACu); + int psx_taken_BFC070C4 = 0; + int psx_taken_BFC070E0 = 0; + int psx_taken_BFC070F0 = 0; + int psx_taken_BFC07100 = 0; label_BFC070AC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -24153,7 +24931,7 @@ label_BFC070AC: cpu->gpr[2] = cpu->gpr[2] | 0x4u; /* 0xBFC070C4: 11E0000C beq $t7, $zero, 0xBFC070F8 */ uint32_t psx_brA_BFC070C4 = cpu->gpr[15]; uint32_t psx_brB_BFC070C4 = cpu->gpr[0]; - int psx_taken_BFC070C4 = (psx_brA_BFC070C4 == psx_brB_BFC070C4); + psx_taken_BFC070C4 = (psx_brA_BFC070C4 == psx_brB_BFC070C4); /* 0xBFC070C8: 01C01821 addu $v1, $t6, $zero */ cpu->gpr[3] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC070C4) goto label_BFC070F8; @@ -24179,7 +24957,7 @@ label_BFC070D4: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC070E0: 14A40005 bne $a1, $a0, 0xBFC070F8 */ uint32_t psx_brA_BFC070E0 = cpu->gpr[5]; uint32_t psx_brB_BFC070E0 = cpu->gpr[4]; - int psx_taken_BFC070E0 = (psx_brA_BFC070E0 != psx_brB_BFC070E0); + psx_taken_BFC070E0 = (psx_brA_BFC070E0 != psx_brB_BFC070E0); /* 0xBFC070E4: 24630001 addiu $v1, $v1, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); if (psx_taken_BFC070E0) goto label_BFC070F8; @@ -24194,7 +24972,7 @@ label_BFC070E8: /* nop */ /* 0xBFC070F0: 14C0FFF8 bne $a2, $zero, 0xBFC070D4 */ uint32_t psx_brA_BFC070F0 = cpu->gpr[6]; uint32_t psx_brB_BFC070F0 = cpu->gpr[0]; - int psx_taken_BFC070F0 = (psx_brA_BFC070F0 != psx_brB_BFC070F0); + psx_taken_BFC070F0 = (psx_brA_BFC070F0 != psx_brB_BFC070F0); /* 0xBFC070F4: 00000000 nop */ /* nop */ if (psx_taken_BFC070F0) goto label_BFC070D4; @@ -24209,7 +24987,7 @@ label_BFC070F8: /* nop */ /* 0xBFC07100: 17000004 bne $t8, $zero, 0xBFC07114 */ uint32_t psx_brA_BFC07100 = cpu->gpr[24]; uint32_t psx_brB_BFC07100 = cpu->gpr[0]; - int psx_taken_BFC07100 = (psx_brA_BFC07100 != psx_brB_BFC07100); + psx_taken_BFC07100 = (psx_brA_BFC07100 != psx_brB_BFC07100); /* 0xBFC07104: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC07100) goto label_BFC07114; @@ -24730,6 +25508,8 @@ void func_1FC07330(CPUState* cpu) { default: break; } } + int psx_taken_BFC07348 = 0; + int psx_taken_BFC07358 = 0; label_BFC07330: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -24761,7 +25541,7 @@ label_BFC07348: psx_check_interrupts(cpu); /* 0xBFC07348: 14400006 bne $v0, $zero, 0xBFC07364 */ uint32_t psx_brA_BFC07348 = cpu->gpr[2]; uint32_t psx_brB_BFC07348 = cpu->gpr[0]; - int psx_taken_BFC07348 = (psx_brA_BFC07348 != psx_brB_BFC07348); + psx_taken_BFC07348 = (psx_brA_BFC07348 != psx_brB_BFC07348); /* 0xBFC0734C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0734Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC07348) goto label_BFC07364; @@ -24782,7 +25562,7 @@ label_BFC07358: psx_check_interrupts(cpu); /* 0xBFC07358: 1040FFFD beq $v0, $zero, 0xBFC07350 */ uint32_t psx_brA_BFC07358 = cpu->gpr[2]; uint32_t psx_brB_BFC07358 = cpu->gpr[0]; - int psx_taken_BFC07358 = (psx_brA_BFC07358 == psx_brB_BFC07358); + psx_taken_BFC07358 = (psx_brA_BFC07358 == psx_brB_BFC07358); /* 0xBFC0735C: 00000000 nop */ /* nop */ if (psx_taken_BFC07358) goto label_BFC07350; @@ -24871,6 +25651,8 @@ void func_1FC073A0(CPUState* cpu) { default: break; } } + int psx_taken_BFC073C0 = 0; + int psx_taken_BFC073F0 = 0; label_BFC073A0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -24900,7 +25682,7 @@ label_BFC073B0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC073C0: 1020000D beq $at, $zero, 0xBFC073F8 */ uint32_t psx_brA_BFC073C0 = cpu->gpr[1]; uint32_t psx_brB_BFC073C0 = cpu->gpr[0]; - int psx_taken_BFC073C0 = (psx_brA_BFC073C0 == psx_brB_BFC073C0); + psx_taken_BFC073C0 = (psx_brA_BFC073C0 == psx_brB_BFC073C0); /* 0xBFC073C4: 00000000 nop */ /* nop */ if (psx_taken_BFC073C0) goto label_BFC073F8; @@ -24936,7 +25718,7 @@ label_BFC073CC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC073F0: 1420FFF6 bne $at, $zero, 0xBFC073CC */ uint32_t psx_brA_BFC073F0 = cpu->gpr[1]; uint32_t psx_brB_BFC073F0 = cpu->gpr[0]; - int psx_taken_BFC073F0 = (psx_brA_BFC073F0 != psx_brB_BFC073F0); + psx_taken_BFC073F0 = (psx_brA_BFC073F0 != psx_brB_BFC073F0); /* 0xBFC073F4: 8FAF001C lw $t7, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC073F4u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC073F0) goto label_BFC073CC; @@ -24978,6 +25760,19 @@ void func_1FC07410(CPUState* cpu) { default: break; } } + int psx_taken_BFC0743C = 0; + int psx_taken_BFC07444 = 0; + int psx_taken_BFC07464 = 0; + int psx_taken_BFC0746C = 0; + int psx_taken_BFC074F0 = 0; + int psx_taken_BFC074F8 = 0; + int psx_taken_BFC07538 = 0; + int psx_taken_BFC07568 = 0; + int psx_taken_BFC07578 = 0; + int psx_taken_BFC075F0 = 0; + int psx_taken_BFC075FC = 0; + int psx_taken_BFC07610 = 0; + int psx_taken_BFC07618 = 0; label_BFC07410: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -25013,7 +25808,7 @@ label_BFC07438: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0743C: 10500003 beq $v0, $s0, 0xBFC0744C */ uint32_t psx_brA_BFC0743C = cpu->gpr[2]; uint32_t psx_brB_BFC0743C = cpu->gpr[16]; - int psx_taken_BFC0743C = (psx_brA_BFC0743C == psx_brB_BFC0743C); + psx_taken_BFC0743C = (psx_brA_BFC0743C == psx_brB_BFC0743C); /* 0xBFC07440: 00000000 nop */ /* nop */ if (psx_taken_BFC0743C) goto label_BFC0744C; @@ -25024,7 +25819,7 @@ label_BFC07444: psx_check_interrupts(cpu); /* 0xBFC07444: 10000082 beq $zero, $zero, 0xBFC07650 */ uint32_t psx_brA_BFC07444 = cpu->gpr[0]; uint32_t psx_brB_BFC07444 = cpu->gpr[0]; - int psx_taken_BFC07444 = (psx_brA_BFC07444 == psx_brB_BFC07444); + psx_taken_BFC07444 = (psx_brA_BFC07444 == psx_brB_BFC07444); /* 0xBFC07448: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC07444) goto label_BFC07650; @@ -25053,7 +25848,7 @@ label_BFC07464: psx_check_interrupts(cpu); /* 0xBFC07464: 10400003 beq $v0, $zero, 0xBFC07474 */ uint32_t psx_brA_BFC07464 = cpu->gpr[2]; uint32_t psx_brB_BFC07464 = cpu->gpr[0]; - int psx_taken_BFC07464 = (psx_brA_BFC07464 == psx_brB_BFC07464); + psx_taken_BFC07464 = (psx_brA_BFC07464 == psx_brB_BFC07464); /* 0xBFC07468: 00000000 nop */ /* nop */ if (psx_taken_BFC07464) goto label_BFC07474; @@ -25064,7 +25859,7 @@ label_BFC0746C: psx_check_interrupts(cpu); /* 0xBFC0746C: 10000078 beq $zero, $zero, 0xBFC07650 */ uint32_t psx_brA_BFC0746C = cpu->gpr[0]; uint32_t psx_brB_BFC0746C = cpu->gpr[0]; - int psx_taken_BFC0746C = (psx_brA_BFC0746C == psx_brB_BFC0746C); + psx_taken_BFC0746C = (psx_brA_BFC0746C == psx_brB_BFC0746C); /* 0xBFC07470: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0746C) goto label_BFC07650; @@ -25143,7 +25938,7 @@ label_BFC074F0: psx_check_interrupts(cpu); /* 0xBFC074F0: 10500003 beq $v0, $s0, 0xBFC07500 */ uint32_t psx_brA_BFC074F0 = cpu->gpr[2]; uint32_t psx_brB_BFC074F0 = cpu->gpr[16]; - int psx_taken_BFC074F0 = (psx_brA_BFC074F0 == psx_brB_BFC074F0); + psx_taken_BFC074F0 = (psx_brA_BFC074F0 == psx_brB_BFC074F0); /* 0xBFC074F4: 00000000 nop */ /* nop */ if (psx_taken_BFC074F0) goto label_BFC07500; @@ -25154,7 +25949,7 @@ label_BFC074F8: psx_check_interrupts(cpu); /* 0xBFC074F8: 10000055 beq $zero, $zero, 0xBFC07650 */ uint32_t psx_brA_BFC074F8 = cpu->gpr[0]; uint32_t psx_brB_BFC074F8 = cpu->gpr[0]; - int psx_taken_BFC074F8 = (psx_brA_BFC074F8 == psx_brB_BFC074F8); + psx_taken_BFC074F8 = (psx_brA_BFC074F8 == psx_brB_BFC074F8); /* 0xBFC074FC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC074F8) goto label_BFC07650; @@ -25198,7 +25993,7 @@ label_BFC07518: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[20] ? 1 : 0); /* 0xBFC07538: 1420FFF7 bne $at, $zero, 0xBFC07518 */ uint32_t psx_brA_BFC07538 = cpu->gpr[1]; uint32_t psx_brB_BFC07538 = cpu->gpr[0]; - int psx_taken_BFC07538 = (psx_brA_BFC07538 != psx_brB_BFC07538); + psx_taken_BFC07538 = (psx_brA_BFC07538 != psx_brB_BFC07538); /* 0xBFC0753C: 00000000 nop */ /* nop */ if (psx_taken_BFC07538) goto label_BFC07518; @@ -25234,7 +26029,7 @@ label_BFC07560: /* nop */ /* 0xBFC07568: 15800005 bne $t4, $zero, 0xBFC07580 */ uint32_t psx_brA_BFC07568 = cpu->gpr[12]; uint32_t psx_brB_BFC07568 = cpu->gpr[0]; - int psx_taken_BFC07568 = (psx_brA_BFC07568 != psx_brB_BFC07568); + psx_taken_BFC07568 = (psx_brA_BFC07568 != psx_brB_BFC07568); /* 0xBFC0756C: 00000000 nop */ /* nop */ if (psx_taken_BFC07568) goto label_BFC07580; @@ -25249,7 +26044,7 @@ label_BFC07570: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07574u); return; } cpu->gpr[22] = cpu->read_word(psx_addr); } /* 0xBFC07578: 1000002D beq $zero, $zero, 0xBFC07630 */ uint32_t psx_brA_BFC07578 = cpu->gpr[0]; uint32_t psx_brB_BFC07578 = cpu->gpr[0]; - int psx_taken_BFC07578 = (psx_brA_BFC07578 == psx_brB_BFC07578); + psx_taken_BFC07578 = (psx_brA_BFC07578 == psx_brB_BFC07578); /* 0xBFC0757C: 2669FFFF addiu $t1, $s3, -1 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[19] + (-1)); if (psx_taken_BFC07578) goto label_BFC07630; @@ -25322,7 +26117,7 @@ label_BFC075DC: cpu->gpr[8] = cpu->gpr[2] & 0x1u; /* 0xBFC075F0: 16A80004 bne $s5, $t0, 0xBFC07604 */ uint32_t psx_brA_BFC075F0 = cpu->gpr[21]; uint32_t psx_brB_BFC075F0 = cpu->gpr[8]; - int psx_taken_BFC075F0 = (psx_brA_BFC075F0 != psx_brB_BFC075F0); + psx_taken_BFC075F0 = (psx_brA_BFC075F0 != psx_brB_BFC075F0); /* 0xBFC075F4: 00000000 nop */ /* nop */ if (psx_taken_BFC075F0) goto label_BFC07604; @@ -25335,7 +26130,7 @@ label_BFC075F8: cpu->gpr[16] = cpu->gpr[16] + cpu->gpr[2]; /* 0xBFC075FC: 10000003 beq $zero, $zero, 0xBFC0760C */ uint32_t psx_brA_BFC075FC = cpu->gpr[0]; uint32_t psx_brB_BFC075FC = cpu->gpr[0]; - int psx_taken_BFC075FC = (psx_brA_BFC075FC == psx_brB_BFC075FC); + psx_taken_BFC075FC = (psx_brA_BFC075FC == psx_brB_BFC075FC); /* 0xBFC07600: 26100009 addiu $s0, $s0, 9 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (9)); if (psx_taken_BFC075FC) goto label_BFC0760C; @@ -25357,7 +26152,7 @@ label_BFC0760C: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[20] ? 1 : 0); /* 0xBFC07610: 10200003 beq $at, $zero, 0xBFC07620 */ uint32_t psx_brA_BFC07610 = cpu->gpr[1]; uint32_t psx_brB_BFC07610 = cpu->gpr[0]; - int psx_taken_BFC07610 = (psx_brA_BFC07610 == psx_brB_BFC07610); + psx_taken_BFC07610 = (psx_brA_BFC07610 == psx_brB_BFC07610); /* 0xBFC07614: 2652002C addiu $s2, $s2, 44 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (44)); if (psx_taken_BFC07610) goto label_BFC07620; @@ -25368,7 +26163,7 @@ label_BFC07618: psx_check_interrupts(cpu); /* 0xBFC07618: 1676FFD1 bne $s3, $s6, 0xBFC07560 */ uint32_t psx_brA_BFC07618 = cpu->gpr[19]; uint32_t psx_brB_BFC07618 = cpu->gpr[22]; - int psx_taken_BFC07618 = (psx_brA_BFC07618 != psx_brB_BFC07618); + psx_taken_BFC07618 = (psx_brA_BFC07618 != psx_brB_BFC07618); /* 0xBFC0761C: 00000000 nop */ /* nop */ if (psx_taken_BFC07618) goto label_BFC07560; @@ -25433,6 +26228,11 @@ void func_1FC07664(CPUState* cpu) { default: break; } } + int psx_taken_BFC07694 = 0; + int psx_taken_BFC076A4 = 0; + int psx_taken_BFC076B8 = 0; + int psx_taken_BFC076C0 = 0; + int psx_taken_BFC076D8 = 0; label_BFC07664: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -25464,7 +26264,7 @@ label_BFC07664: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-27216)); /* 0xBFC07694: 19C00012 blez $t6, 0xBFC076E0 */ uint32_t psx_brA_BFC07694 = cpu->gpr[14]; - int psx_taken_BFC07694 = ((int32_t)psx_brA_BFC07694 <= 0); + psx_taken_BFC07694 = ((int32_t)psx_brA_BFC07694 <= 0); /* 0xBFC07698: 00008821 addu $s1, $zero, $zero */ cpu->gpr[17] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC07694) goto label_BFC076E0; @@ -25479,7 +26279,7 @@ label_BFC0769C: /* nop */ /* 0xBFC076A4: 164F0008 bne $s2, $t7, 0xBFC076C8 */ uint32_t psx_brA_BFC076A4 = cpu->gpr[18]; uint32_t psx_brB_BFC076A4 = cpu->gpr[15]; - int psx_taken_BFC076A4 = (psx_brA_BFC076A4 != psx_brB_BFC076A4); + psx_taken_BFC076A4 = (psx_brA_BFC076A4 != psx_brB_BFC076A4); /* 0xBFC076A8: 00000000 nop */ /* nop */ if (psx_taken_BFC076A4) goto label_BFC076C8; @@ -25502,7 +26302,7 @@ label_BFC076B8: psx_check_interrupts(cpu); /* 0xBFC076B8: 14400003 bne $v0, $zero, 0xBFC076C8 */ uint32_t psx_brA_BFC076B8 = cpu->gpr[2]; uint32_t psx_brB_BFC076B8 = cpu->gpr[0]; - int psx_taken_BFC076B8 = (psx_brA_BFC076B8 != psx_brB_BFC076B8); + psx_taken_BFC076B8 = (psx_brA_BFC076B8 != psx_brB_BFC076B8); /* 0xBFC076BC: 00000000 nop */ /* nop */ if (psx_taken_BFC076B8) goto label_BFC076C8; @@ -25513,7 +26313,7 @@ label_BFC076C0: psx_check_interrupts(cpu); /* 0xBFC076C0: 10000008 beq $zero, $zero, 0xBFC076E4 */ uint32_t psx_brA_BFC076C0 = cpu->gpr[0]; uint32_t psx_brB_BFC076C0 = cpu->gpr[0]; - int psx_taken_BFC076C0 = (psx_brA_BFC076C0 == psx_brB_BFC076C0); + psx_taken_BFC076C0 = (psx_brA_BFC076C0 == psx_brB_BFC076C0); /* 0xBFC076C4: 26220001 addiu $v0, $s1, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); if (psx_taken_BFC076C0) goto label_BFC076E4; @@ -25532,7 +26332,7 @@ label_BFC076C8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[24] ? 1 : 0); /* 0xBFC076D8: 1420FFF0 bne $at, $zero, 0xBFC0769C */ uint32_t psx_brA_BFC076D8 = cpu->gpr[1]; uint32_t psx_brB_BFC076D8 = cpu->gpr[0]; - int psx_taken_BFC076D8 = (psx_brA_BFC076D8 != psx_brB_BFC076D8); + psx_taken_BFC076D8 = (psx_brA_BFC076D8 != psx_brB_BFC076D8); /* 0xBFC076DC: 2610002C addiu $s0, $s0, 44 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (44)); if (psx_taken_BFC076D8) goto label_BFC0769C; @@ -25575,6 +26375,14 @@ void func_1FC07700(CPUState* cpu) { default: break; } } + int psx_taken_BFC07710 = 0; + int psx_taken_BFC07718 = 0; + int psx_taken_BFC07760 = 0; + int psx_taken_BFC0776C = 0; + int psx_taken_BFC077B0 = 0; + int psx_taken_BFC077C0 = 0; + int psx_taken_BFC0784C = 0; + int psx_taken_BFC07858 = 0; label_BFC07700: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -25590,7 +26398,7 @@ label_BFC07700: cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC07710: 146E0003 bne $v1, $t6, 0xBFC07720 */ uint32_t psx_brA_BFC07710 = cpu->gpr[3]; uint32_t psx_brB_BFC07710 = cpu->gpr[14]; - int psx_taken_BFC07710 = (psx_brA_BFC07710 != psx_brB_BFC07710); + psx_taken_BFC07710 = (psx_brA_BFC07710 != psx_brB_BFC07710); /* 0xBFC07714: AFBF001C sw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07714u); return; } g_debug_last_store_pc = 0xBFC07714u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC07710) goto label_BFC07720; @@ -25601,7 +26409,7 @@ label_BFC07718: psx_check_interrupts(cpu); /* 0xBFC07718: 1000005E beq $zero, $zero, 0xBFC07894 */ uint32_t psx_brA_BFC07718 = cpu->gpr[0]; uint32_t psx_brB_BFC07718 = cpu->gpr[0]; - int psx_taken_BFC07718 = (psx_brA_BFC07718 == psx_brB_BFC07718); + psx_taken_BFC07718 = (psx_brA_BFC07718 == psx_brB_BFC07718); /* 0xBFC0771C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC07718) goto label_BFC07894; @@ -25650,7 +26458,7 @@ label_BFC0775C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC07760: 10410004 beq $v0, $at, 0xBFC07774 */ uint32_t psx_brA_BFC07760 = cpu->gpr[2]; uint32_t psx_brB_BFC07760 = cpu->gpr[1]; - int psx_taken_BFC07760 = (psx_brA_BFC07760 == psx_brB_BFC07760); + psx_taken_BFC07760 = (psx_brA_BFC07760 == psx_brB_BFC07760); /* 0xBFC07764: 00000000 nop */ /* nop */ if (psx_taken_BFC07760) goto label_BFC07774; @@ -25663,7 +26471,7 @@ label_BFC07768: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07768u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC0776C: 10000049 beq $zero, $zero, 0xBFC07894 */ uint32_t psx_brA_BFC0776C = cpu->gpr[0]; uint32_t psx_brB_BFC0776C = cpu->gpr[0]; - int psx_taken_BFC0776C = (psx_brA_BFC0776C == psx_brB_BFC0776C); + psx_taken_BFC0776C = (psx_brA_BFC0776C == psx_brB_BFC0776C); /* 0xBFC07770: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0776C) goto label_BFC07894; @@ -25709,7 +26517,7 @@ label_BFC077A8: /* nop */ /* 0xBFC077B0: 17000005 bne $t8, $zero, 0xBFC077C8 */ uint32_t psx_brA_BFC077B0 = cpu->gpr[24]; uint32_t psx_brB_BFC077B0 = cpu->gpr[0]; - int psx_taken_BFC077B0 = (psx_brA_BFC077B0 != psx_brB_BFC077B0); + psx_taken_BFC077B0 = (psx_brA_BFC077B0 != psx_brB_BFC077B0); /* 0xBFC077B4: 00000000 nop */ /* nop */ if (psx_taken_BFC077B0) goto label_BFC077C8; @@ -25724,7 +26532,7 @@ label_BFC077B8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC077BCu); return; } cpu->gpr[20] = cpu->read_word(psx_addr); } /* 0xBFC077C0: 1000002B beq $zero, $zero, 0xBFC07870 */ uint32_t psx_brA_BFC077C0 = cpu->gpr[0]; uint32_t psx_brB_BFC077C0 = cpu->gpr[0]; - int psx_taken_BFC077C0 = (psx_brA_BFC077C0 == psx_brB_BFC077C0); + psx_taken_BFC077C0 = (psx_brA_BFC077C0 == psx_brB_BFC077C0); /* 0xBFC077C4: 8FAF0058 lw $t7, 88($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (88)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC077C4u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC077C0) goto label_BFC07870; @@ -25807,7 +26615,7 @@ label_BFC07834: cpu->gpr[1] = (uint32_t)(cpu->gpr[17] < cpu->gpr[19] ? 1 : 0); /* 0xBFC0784C: 10200004 beq $at, $zero, 0xBFC07860 */ uint32_t psx_brA_BFC0784C = cpu->gpr[1]; uint32_t psx_brB_BFC0784C = cpu->gpr[0]; - int psx_taken_BFC0784C = (psx_brA_BFC0784C == psx_brB_BFC0784C); + psx_taken_BFC0784C = (psx_brA_BFC0784C == psx_brB_BFC0784C); /* 0xBFC07850: 26B50001 addiu $s5, $s5, 1 */ cpu->gpr[21] = (uint32_t)((int32_t)cpu->gpr[21] + (1)); if (psx_taken_BFC0784C) goto label_BFC07860; @@ -25820,7 +26628,7 @@ label_BFC07854: cpu->gpr[1] = (uint32_t)(cpu->gpr[18] < cpu->gpr[20] ? 1 : 0); /* 0xBFC07858: 1420FFD3 bne $at, $zero, 0xBFC077A8 */ uint32_t psx_brA_BFC07858 = cpu->gpr[1]; uint32_t psx_brB_BFC07858 = cpu->gpr[0]; - int psx_taken_BFC07858 = (psx_brA_BFC07858 != psx_brB_BFC07858); + psx_taken_BFC07858 = (psx_brA_BFC07858 != psx_brB_BFC07858); /* 0xBFC0785C: 00000000 nop */ /* nop */ if (psx_taken_BFC07858) goto label_BFC077A8; @@ -25890,6 +26698,17 @@ void func_1FC078A4(CPUState* cpu) { default: break; } } + int psx_taken_BFC078CC = 0; + int psx_taken_BFC078DC = 0; + int psx_taken_BFC078EC = 0; + int psx_taken_BFC07908 = 0; + int psx_taken_BFC07920 = 0; + int psx_taken_BFC07930 = 0; + int psx_taken_BFC07940 = 0; + int psx_taken_BFC07950 = 0; + int psx_taken_BFC07960 = 0; + int psx_taken_BFC07988 = 0; + int psx_taken_BFC07998 = 0; label_BFC078A4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -25923,7 +26742,7 @@ label_BFC078C8: cpu->gpr[14] = cpu->gpr[2] & 0x10u; /* 0xBFC078CC: 11C0000A beq $t6, $zero, 0xBFC078F8 */ uint32_t psx_brA_BFC078CC = cpu->gpr[14]; uint32_t psx_brB_BFC078CC = cpu->gpr[0]; - int psx_taken_BFC078CC = (psx_brA_BFC078CC == psx_brB_BFC078CC); + psx_taken_BFC078CC = (psx_brA_BFC078CC == psx_brB_BFC078CC); /* 0xBFC078D0: 8FA2005C lw $v0, 92($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (92)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC078D0u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC078CC) goto label_BFC078F8; @@ -25944,7 +26763,7 @@ label_BFC078DC: psx_check_interrupts(cpu); /* 0xBFC078DC: 14400006 bne $v0, $zero, 0xBFC078F8 */ uint32_t psx_brA_BFC078DC = cpu->gpr[2]; uint32_t psx_brB_BFC078DC = cpu->gpr[0]; - int psx_taken_BFC078DC = (psx_brA_BFC078DC != psx_brB_BFC078DC); + psx_taken_BFC078DC = (psx_brA_BFC078DC != psx_brB_BFC078DC); /* 0xBFC078E0: 8FA2005C lw $v0, 92($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (92)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC078E0u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC078DC) goto label_BFC078F8; @@ -25959,7 +26778,7 @@ label_BFC078E4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[18] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC078E8u); return; } g_debug_last_store_pc = 0xBFC078E8u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC078EC: 1000003C beq $zero, $zero, 0xBFC079E0 */ uint32_t psx_brA_BFC078EC = cpu->gpr[0]; uint32_t psx_brB_BFC078EC = cpu->gpr[0]; - int psx_taken_BFC078EC = (psx_brA_BFC078EC == psx_brB_BFC078EC); + psx_taken_BFC078EC = (psx_brA_BFC078EC == psx_brB_BFC078EC); /* 0xBFC078F0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC078EC) goto label_BFC079E0; @@ -25991,7 +26810,7 @@ label_BFC07908: psx_check_interrupts(cpu); /* 0xBFC07908: 10400007 beq $v0, $zero, 0xBFC07928 */ uint32_t psx_brA_BFC07908 = cpu->gpr[2]; uint32_t psx_brB_BFC07908 = cpu->gpr[0]; - int psx_taken_BFC07908 = (psx_brA_BFC07908 == psx_brB_BFC07908); + psx_taken_BFC07908 = (psx_brA_BFC07908 == psx_brB_BFC07908); /* 0xBFC0790C: A3A20038 sb $v0, 56($sp) */ g_debug_last_store_pc = 0xBFC0790Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[29] + (56)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC07908) goto label_BFC07928; @@ -26016,7 +26835,7 @@ label_BFC07920: psx_check_interrupts(cpu); /* 0xBFC07920: 1440FFFB bne $v0, $zero, 0xBFC07910 */ uint32_t psx_brA_BFC07920 = cpu->gpr[2]; uint32_t psx_brB_BFC07920 = cpu->gpr[0]; - int psx_taken_BFC07920 = (psx_brA_BFC07920 != psx_brB_BFC07920); + psx_taken_BFC07920 = (psx_brA_BFC07920 != psx_brB_BFC07920); /* 0xBFC07924: A2020000 sb $v0, 0($s0) */ g_debug_last_store_pc = 0xBFC07924u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[16] + (0)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC07920) goto label_BFC07910; @@ -26031,7 +26850,7 @@ label_BFC07928: cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[29] + (56)); /* 0xBFC07930: 13200009 beq $t9, $zero, 0xBFC07958 */ uint32_t psx_brA_BFC07930 = cpu->gpr[25]; uint32_t psx_brB_BFC07930 = cpu->gpr[0]; - int psx_taken_BFC07930 = (psx_brA_BFC07930 == psx_brB_BFC07930); + psx_taken_BFC07930 = (psx_brA_BFC07930 == psx_brB_BFC07930); /* 0xBFC07934: 03008821 addu $s1, $t8, $zero */ cpu->gpr[17] = cpu->gpr[24] + cpu->gpr[0]; if (psx_taken_BFC07930) goto label_BFC07958; @@ -26051,7 +26870,7 @@ label_BFC07940: psx_check_interrupts(cpu); /* 0xBFC07940: 10620005 beq $v1, $v0, 0xBFC07958 */ uint32_t psx_brA_BFC07940 = cpu->gpr[3]; uint32_t psx_brB_BFC07940 = cpu->gpr[2]; - int psx_taken_BFC07940 = (psx_brA_BFC07940 == psx_brB_BFC07940); + psx_taken_BFC07940 = (psx_brA_BFC07940 == psx_brB_BFC07940); /* 0xBFC07944: 00000000 nop */ /* nop */ if (psx_taken_BFC07940) goto label_BFC07958; @@ -26066,7 +26885,7 @@ label_BFC07948: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC07950: 1440FFFB bne $v0, $zero, 0xBFC07940 */ uint32_t psx_brA_BFC07950 = cpu->gpr[2]; uint32_t psx_brB_BFC07950 = cpu->gpr[0]; - int psx_taken_BFC07950 = (psx_brA_BFC07950 != psx_brB_BFC07950); + psx_taken_BFC07950 = (psx_brA_BFC07950 != psx_brB_BFC07950); /* 0xBFC07954: 00000000 nop */ /* nop */ if (psx_taken_BFC07950) goto label_BFC07940; @@ -26081,7 +26900,7 @@ label_BFC07958: /* nop */ /* 0xBFC07960: 15000006 bne $t0, $zero, 0xBFC0797C */ uint32_t psx_brA_BFC07960 = cpu->gpr[8]; uint32_t psx_brB_BFC07960 = cpu->gpr[0]; - int psx_taken_BFC07960 = (psx_brA_BFC07960 != psx_brB_BFC07960); + psx_taken_BFC07960 = (psx_brA_BFC07960 != psx_brB_BFC07960); /* 0xBFC07964: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC07960) goto label_BFC0797C; @@ -26125,7 +26944,7 @@ label_BFC07984: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC07988: 14410005 bne $v0, $at, 0xBFC079A0 */ uint32_t psx_brA_BFC07988 = cpu->gpr[2]; uint32_t psx_brB_BFC07988 = cpu->gpr[1]; - int psx_taken_BFC07988 = (psx_brA_BFC07988 != psx_brB_BFC07988); + psx_taken_BFC07988 = (psx_brA_BFC07988 != psx_brB_BFC07988); /* 0xBFC0798C: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC07988) goto label_BFC079A0; @@ -26140,7 +26959,7 @@ label_BFC07990: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[18] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07994u); return; } g_debug_last_store_pc = 0xBFC07994u; cpu->write_word(psx_addr, cpu->gpr[9]); } /* 0xBFC07998: 10000011 beq $zero, $zero, 0xBFC079E0 */ uint32_t psx_brA_BFC07998 = cpu->gpr[0]; uint32_t psx_brB_BFC07998 = cpu->gpr[0]; - int psx_taken_BFC07998 = (psx_brA_BFC07998 == psx_brB_BFC07998); + psx_taken_BFC07998 = (psx_brA_BFC07998 == psx_brB_BFC07998); /* 0xBFC0799C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07998) goto label_BFC079E0; @@ -26212,6 +27031,23 @@ void func_1FC07A04(CPUState* cpu) { default: break; } } + int psx_taken_BFC07A20 = 0; + int psx_taken_BFC07A28 = 0; + int psx_taken_BFC07A34 = 0; + int psx_taken_BFC07A48 = 0; + int psx_taken_BFC07A58 = 0; + int psx_taken_BFC07A6C = 0; + int psx_taken_BFC07A7C = 0; + int psx_taken_BFC07A94 = 0; + int psx_taken_BFC07AA8 = 0; + int psx_taken_BFC07AB8 = 0; + int psx_taken_BFC07AD0 = 0; + int psx_taken_BFC07AE0 = 0; + int psx_taken_BFC07AFC = 0; + int psx_taken_BFC07B28 = 0; + int psx_taken_BFC07B38 = 0; + int psx_taken_BFC07B54 = 0; + int psx_taken_BFC07B5C = 0; label_BFC07A04: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -26233,7 +27069,7 @@ label_BFC07A04: /* nop */ /* 0xBFC07A20: 05C10004 bgez $t6, 0xBFC07A34 */ uint32_t psx_brA_BFC07A20 = cpu->gpr[14]; - int psx_taken_BFC07A20 = ((int32_t)psx_brA_BFC07A20 >= 0); + psx_taken_BFC07A20 = ((int32_t)psx_brA_BFC07A20 >= 0); /* 0xBFC07A24: 31CF07FF andi $t7, $t6, 0x7FF */ cpu->gpr[15] = cpu->gpr[14] & 0x7FFu; if (psx_taken_BFC07A20) goto label_BFC07A34; @@ -26244,7 +27080,7 @@ label_BFC07A28: psx_check_interrupts(cpu); /* 0xBFC07A28: 11E00002 beq $t7, $zero, 0xBFC07A34 */ uint32_t psx_brA_BFC07A28 = cpu->gpr[15]; uint32_t psx_brB_BFC07A28 = cpu->gpr[0]; - int psx_taken_BFC07A28 = (psx_brA_BFC07A28 == psx_brB_BFC07A28); + psx_taken_BFC07A28 = (psx_brA_BFC07A28 == psx_brB_BFC07A28); /* 0xBFC07A2C: 00000000 nop */ /* nop */ if (psx_taken_BFC07A28) goto label_BFC07A34; @@ -26262,7 +27098,7 @@ label_BFC07A34: psx_check_interrupts(cpu); /* 0xBFC07A34: 15E00007 bne $t7, $zero, 0xBFC07A54 */ uint32_t psx_brA_BFC07A34 = cpu->gpr[15]; uint32_t psx_brB_BFC07A34 = cpu->gpr[0]; - int psx_taken_BFC07A34 = (psx_brA_BFC07A34 != psx_brB_BFC07A34); + psx_taken_BFC07A34 = (psx_brA_BFC07A34 != psx_brB_BFC07A34); /* 0xBFC07A38: 24190016 addiu $t9, $zero, 22 */ cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[0] + (22)); if (psx_taken_BFC07A34) goto label_BFC07A54; @@ -26279,7 +27115,7 @@ label_BFC07A3C: cpu->gpr[24] = cpu->gpr[4] & 0x7FFu; /* 0xBFC07A48: 13000005 beq $t8, $zero, 0xBFC07A60 */ uint32_t psx_brA_BFC07A48 = cpu->gpr[24]; uint32_t psx_brB_BFC07A48 = cpu->gpr[0]; - int psx_taken_BFC07A48 = (psx_brA_BFC07A48 == psx_brB_BFC07A48); + psx_taken_BFC07A48 = (psx_brA_BFC07A48 == psx_brB_BFC07A48); /* 0xBFC07A4C: 00000000 nop */ /* nop */ if (psx_taken_BFC07A48) goto label_BFC07A60; @@ -26299,7 +27135,7 @@ label_BFC07A54: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[7] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07A54u); return; } g_debug_last_store_pc = 0xBFC07A54u; cpu->write_word(psx_addr, cpu->gpr[25]); } /* 0xBFC07A58: 10000047 beq $zero, $zero, 0xBFC07B78 */ uint32_t psx_brA_BFC07A58 = cpu->gpr[0]; uint32_t psx_brB_BFC07A58 = cpu->gpr[0]; - int psx_taken_BFC07A58 = (psx_brA_BFC07A58 == psx_brB_BFC07A58); + psx_taken_BFC07A58 = (psx_brA_BFC07A58 == psx_brB_BFC07A58); /* 0xBFC07A5C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07A58) goto label_BFC07B78; @@ -26316,7 +27152,7 @@ label_BFC07A60: cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < cpu->gpr[8] ? 1 : 0); /* 0xBFC07A6C: 14200005 bne $at, $zero, 0xBFC07A84 */ uint32_t psx_brA_BFC07A6C = cpu->gpr[1]; uint32_t psx_brB_BFC07A6C = cpu->gpr[0]; - int psx_taken_BFC07A6C = (psx_brA_BFC07A6C != psx_brB_BFC07A6C); + psx_taken_BFC07A6C = (psx_brA_BFC07A6C != psx_brB_BFC07A6C); /* 0xBFC07A70: 00000000 nop */ /* nop */ if (psx_taken_BFC07A6C) goto label_BFC07A84; @@ -26331,7 +27167,7 @@ label_BFC07A74: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[7] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07A78u); return; } g_debug_last_store_pc = 0xBFC07A78u; cpu->write_word(psx_addr, cpu->gpr[9]); } /* 0xBFC07A7C: 1000003E beq $zero, $zero, 0xBFC07B78 */ uint32_t psx_brA_BFC07A7C = cpu->gpr[0]; uint32_t psx_brB_BFC07A7C = cpu->gpr[0]; - int psx_taken_BFC07A7C = (psx_brA_BFC07A7C == psx_brB_BFC07A7C); + psx_taken_BFC07A7C = (psx_brA_BFC07A7C == psx_brB_BFC07A7C); /* 0xBFC07A80: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07A7C) goto label_BFC07B78; @@ -26356,7 +27192,7 @@ label_BFC07A8C: cpu->gpr[10] = cpu->gpr[2] & 0x10u; /* 0xBFC07A94: 1140000A beq $t2, $zero, 0xBFC07AC0 */ uint32_t psx_brA_BFC07A94 = cpu->gpr[10]; uint32_t psx_brB_BFC07A94 = cpu->gpr[0]; - int psx_taken_BFC07A94 = (psx_brA_BFC07A94 == psx_brB_BFC07A94); + psx_taken_BFC07A94 = (psx_brA_BFC07A94 == psx_brB_BFC07A94); /* 0xBFC07A98: 00000000 nop */ /* nop */ if (psx_taken_BFC07A94) goto label_BFC07AC0; @@ -26379,7 +27215,7 @@ label_BFC07AA4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07AA4u); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } /* 0xBFC07AA8: 14400005 bne $v0, $zero, 0xBFC07AC0 */ uint32_t psx_brA_BFC07AA8 = cpu->gpr[2]; uint32_t psx_brB_BFC07AA8 = cpu->gpr[0]; - int psx_taken_BFC07AA8 = (psx_brA_BFC07AA8 != psx_brB_BFC07AA8); + psx_taken_BFC07AA8 = (psx_brA_BFC07AA8 != psx_brB_BFC07AA8); /* 0xBFC07AAC: 00000000 nop */ /* nop */ if (psx_taken_BFC07AA8) goto label_BFC07AC0; @@ -26394,7 +27230,7 @@ label_BFC07AB0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[7] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07AB4u); return; } g_debug_last_store_pc = 0xBFC07AB4u; cpu->write_word(psx_addr, cpu->gpr[11]); } /* 0xBFC07AB8: 1000002F beq $zero, $zero, 0xBFC07B78 */ uint32_t psx_brA_BFC07AB8 = cpu->gpr[0]; uint32_t psx_brB_BFC07AB8 = cpu->gpr[0]; - int psx_taken_BFC07AB8 = (psx_brA_BFC07AB8 == psx_brB_BFC07AB8); + psx_taken_BFC07AB8 = (psx_brA_BFC07AB8 == psx_brB_BFC07AB8); /* 0xBFC07ABC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07AB8) goto label_BFC07B78; @@ -26413,7 +27249,7 @@ label_BFC07AC0: /* nop */ /* 0xBFC07AD0: 118D0006 beq $t4, $t5, 0xBFC07AEC */ uint32_t psx_brA_BFC07AD0 = cpu->gpr[12]; uint32_t psx_brB_BFC07AD0 = cpu->gpr[13]; - int psx_taken_BFC07AD0 = (psx_brA_BFC07AD0 == psx_brB_BFC07AD0); + psx_taken_BFC07AD0 = (psx_brA_BFC07AD0 == psx_brB_BFC07AD0); /* 0xBFC07AD4: 8FA40040 lw $a0, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07AD4u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC07AD0) goto label_BFC07AEC; @@ -26428,7 +27264,7 @@ label_BFC07AD8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[7] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07ADCu); return; } g_debug_last_store_pc = 0xBFC07ADCu; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC07AE0: 10000025 beq $zero, $zero, 0xBFC07B78 */ uint32_t psx_brA_BFC07AE0 = cpu->gpr[0]; uint32_t psx_brB_BFC07AE0 = cpu->gpr[0]; - int psx_taken_BFC07AE0 = (psx_brA_BFC07AE0 == psx_brB_BFC07AE0); + psx_taken_BFC07AE0 = (psx_brA_BFC07AE0 == psx_brB_BFC07AE0); /* 0xBFC07AE4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07AE0) goto label_BFC07B78; @@ -26454,7 +27290,7 @@ label_BFC07AEC: /* nop */ /* 0xBFC07AFC: 04810002 bgez $a0, 0xBFC07B08 */ uint32_t psx_brA_BFC07AFC = cpu->gpr[4]; - int psx_taken_BFC07AFC = ((int32_t)psx_brA_BFC07AFC >= 0); + psx_taken_BFC07AFC = ((int32_t)psx_brA_BFC07AFC >= 0); /* 0xBFC07B00: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC07AFC) goto label_BFC07B08; @@ -26494,7 +27330,7 @@ label_BFC07B20: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07B24u); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } /* 0xBFC07B28: 10440005 beq $v0, $a0, 0xBFC07B40 */ uint32_t psx_brA_BFC07B28 = cpu->gpr[2]; uint32_t psx_brB_BFC07B28 = cpu->gpr[4]; - int psx_taken_BFC07B28 = (psx_brA_BFC07B28 == psx_brB_BFC07B28); + psx_taken_BFC07B28 = (psx_brA_BFC07B28 == psx_brB_BFC07B28); /* 0xBFC07B2C: 00000000 nop */ /* nop */ if (psx_taken_BFC07B28) goto label_BFC07B40; @@ -26509,7 +27345,7 @@ label_BFC07B30: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[7] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07B34u); return; } g_debug_last_store_pc = 0xBFC07B34u; cpu->write_word(psx_addr, cpu->gpr[8]); } /* 0xBFC07B38: 1000000F beq $zero, $zero, 0xBFC07B78 */ uint32_t psx_brA_BFC07B38 = cpu->gpr[0]; uint32_t psx_brB_BFC07B38 = cpu->gpr[0]; - int psx_taken_BFC07B38 = (psx_brA_BFC07B38 == psx_brB_BFC07B38); + psx_taken_BFC07B38 = (psx_brA_BFC07B38 == psx_brB_BFC07B38); /* 0xBFC07B3C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07B38) goto label_BFC07B78; @@ -26530,7 +27366,7 @@ label_BFC07B40: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[10] ? 1 : 0); /* 0xBFC07B54: 10200004 beq $at, $zero, 0xBFC07B68 */ uint32_t psx_brA_BFC07B54 = cpu->gpr[1]; uint32_t psx_brB_BFC07B54 = cpu->gpr[0]; - int psx_taken_BFC07B54 = (psx_brA_BFC07B54 == psx_brB_BFC07B54); + psx_taken_BFC07B54 = (psx_brA_BFC07B54 == psx_brB_BFC07B54); /* 0xBFC07B58: 8FA30040 lw $v1, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07B58u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } if (psx_taken_BFC07B54) goto label_BFC07B68; @@ -26541,7 +27377,7 @@ label_BFC07B5C: psx_check_interrupts(cpu); /* 0xBFC07B5C: 10000003 beq $zero, $zero, 0xBFC07B6C */ uint32_t psx_brA_BFC07B5C = cpu->gpr[0]; uint32_t psx_brB_BFC07B5C = cpu->gpr[0]; - int psx_taken_BFC07B5C = (psx_brA_BFC07B5C == psx_brB_BFC07B5C); + psx_taken_BFC07B5C = (psx_brA_BFC07B5C == psx_brB_BFC07B5C); /* 0xBFC07B60: 00441823 subu $v1, $v0, $a0 */ cpu->gpr[3] = cpu->gpr[2] - cpu->gpr[4]; if (psx_taken_BFC07B5C) goto label_BFC07B6C; @@ -26597,6 +27433,11 @@ void func_1FC07B88(CPUState* cpu) { default: break; } } + int psx_taken_BFC07B9C = 0; + int psx_taken_BFC07BAC = 0; + int psx_taken_BFC07BC0 = 0; + int psx_taken_BFC07BD4 = 0; + int psx_taken_BFC07BE8 = 0; label_BFC07B88: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -26620,7 +27461,7 @@ label_BFC07B98: cpu->gpr[14] = cpu->gpr[2] & 0x10u; /* 0xBFC07B9C: 11C0000A beq $t6, $zero, 0xBFC07BC8 */ uint32_t psx_brA_BFC07B9C = cpu->gpr[14]; uint32_t psx_brB_BFC07B9C = cpu->gpr[0]; - int psx_taken_BFC07B9C = (psx_brA_BFC07B9C == psx_brB_BFC07B9C); + psx_taken_BFC07B9C = (psx_brA_BFC07B9C == psx_brB_BFC07B9C); /* 0xBFC07BA0: 00000000 nop */ /* nop */ if (psx_taken_BFC07B9C) goto label_BFC07BC8; @@ -26641,7 +27482,7 @@ label_BFC07BAC: psx_check_interrupts(cpu); /* 0xBFC07BAC: 14400007 bne $v0, $zero, 0xBFC07BCC */ uint32_t psx_brA_BFC07BAC = cpu->gpr[2]; uint32_t psx_brB_BFC07BAC = cpu->gpr[0]; - int psx_taken_BFC07BAC = (psx_brA_BFC07BAC != psx_brB_BFC07BAC); + psx_taken_BFC07BAC = (psx_brA_BFC07BAC != psx_brB_BFC07BAC); /* 0xBFC07BB0: 8FA50020 lw $a1, 32($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07BB0u); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } if (psx_taken_BFC07BAC) goto label_BFC07BCC; @@ -26658,7 +27499,7 @@ label_BFC07BB4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-17996)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07BBCu); return; } g_debug_last_store_pc = 0xBFC07BBCu; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC07BC0: 10000012 beq $zero, $zero, 0xBFC07C0C */ uint32_t psx_brA_BFC07BC0 = cpu->gpr[0]; uint32_t psx_brB_BFC07BC0 = cpu->gpr[0]; - int psx_taken_BFC07BC0 = (psx_brA_BFC07BC0 == psx_brB_BFC07BC0); + psx_taken_BFC07BC0 = (psx_brA_BFC07BC0 == psx_brB_BFC07BC0); /* 0xBFC07BC4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07BC0) goto label_BFC07C0C; @@ -26686,7 +27527,7 @@ label_BFC07BD4: psx_check_interrupts(cpu); /* 0xBFC07BD4: 14400006 bne $v0, $zero, 0xBFC07BF0 */ uint32_t psx_brA_BFC07BD4 = cpu->gpr[2]; uint32_t psx_brB_BFC07BD4 = cpu->gpr[0]; - int psx_taken_BFC07BD4 = (psx_brA_BFC07BD4 != psx_brB_BFC07BD4); + psx_taken_BFC07BD4 = (psx_brA_BFC07BD4 != psx_brB_BFC07BD4); /* 0xBFC07BD8: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC07BD4) goto label_BFC07BF0; @@ -26703,7 +27544,7 @@ label_BFC07BDC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-17996)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07BE4u); return; } g_debug_last_store_pc = 0xBFC07BE4u; cpu->write_word(psx_addr, cpu->gpr[24]); } /* 0xBFC07BE8: 10000008 beq $zero, $zero, 0xBFC07C0C */ uint32_t psx_brA_BFC07BE8 = cpu->gpr[0]; uint32_t psx_brB_BFC07BE8 = cpu->gpr[0]; - int psx_taken_BFC07BE8 = (psx_brA_BFC07BE8 == psx_brB_BFC07BE8); + psx_taken_BFC07BE8 = (psx_brA_BFC07BE8 == psx_brB_BFC07BE8); /* 0xBFC07BEC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07BE8) goto label_BFC07C0C; @@ -26765,6 +27606,30 @@ void func_1FC07C1C(CPUState* cpu) { default: break; } } + int psx_taken_BFC07C5C = 0; + int psx_taken_BFC07C70 = 0; + int psx_taken_BFC07D8C = 0; + int psx_taken_BFC07D98 = 0; + int psx_taken_BFC07DA8 = 0; + int psx_taken_BFC07DB0 = 0; + int psx_taken_BFC07DC4 = 0; + int psx_taken_BFC07DDC = 0; + int psx_taken_BFC07DE8 = 0; + int psx_taken_BFC07E00 = 0; + int psx_taken_BFC07E14 = 0; + int psx_taken_BFC07E2C = 0; + int psx_taken_BFC07E38 = 0; + int psx_taken_BFC07E50 = 0; + int psx_taken_BFC07E58 = 0; + int psx_taken_BFC07E6C = 0; + int psx_taken_BFC07E74 = 0; + int psx_taken_BFC07E8C = 0; + int psx_taken_BFC07E94 = 0; + int psx_taken_BFC07EAC = 0; + int psx_taken_BFC07EC0 = 0; + int psx_taken_BFC07ED8 = 0; + int psx_taken_BFC07EEC = 0; + int psx_taken_BFC07EF4 = 0; label_BFC07C1C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -26809,7 +27674,7 @@ label_BFC07C5C: psx_check_interrupts(cpu); /* 0xBFC07C5C: 14400006 bne $v0, $zero, 0xBFC07C78 */ uint32_t psx_brA_BFC07C5C = cpu->gpr[2]; uint32_t psx_brB_BFC07C5C = cpu->gpr[0]; - int psx_taken_BFC07C5C = (psx_brA_BFC07C5C != psx_brB_BFC07C5C); + psx_taken_BFC07C5C = (psx_brA_BFC07C5C != psx_brB_BFC07C5C); /* 0xBFC07C60: 26D60001 addiu $s6, $s6, 1 */ cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[22] + (1)); if (psx_taken_BFC07C5C) goto label_BFC07C78; @@ -26832,7 +27697,7 @@ label_BFC07C70: psx_check_interrupts(cpu); /* 0xBFC07C70: 100000A3 beq $zero, $zero, 0xBFC07F00 */ uint32_t psx_brA_BFC07C70 = cpu->gpr[0]; uint32_t psx_brB_BFC07C70 = cpu->gpr[0]; - int psx_taken_BFC07C70 = (psx_brA_BFC07C70 == psx_brB_BFC07C70); + psx_taken_BFC07C70 = (psx_brA_BFC07C70 == psx_brB_BFC07C70); /* 0xBFC07C74: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07C70) goto label_BFC07F00; @@ -26987,7 +27852,7 @@ label_BFC07D8C: psx_check_interrupts(cpu); /* 0xBFC07D8C: 14400008 bne $v0, $zero, 0xBFC07DB0 */ uint32_t psx_brA_BFC07D8C = cpu->gpr[2]; uint32_t psx_brB_BFC07D8C = cpu->gpr[0]; - int psx_taken_BFC07D8C = (psx_brA_BFC07D8C != psx_brB_BFC07D8C); + psx_taken_BFC07D8C = (psx_brA_BFC07D8C != psx_brB_BFC07D8C); /* 0xBFC07D90: 00000000 nop */ /* nop */ if (psx_taken_BFC07D8C) goto label_BFC07DB0; @@ -27000,7 +27865,7 @@ label_BFC07D94: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); /* 0xBFC07D98: 1A000005 blez $s0, 0xBFC07DB0 */ uint32_t psx_brA_BFC07D98 = cpu->gpr[16]; - int psx_taken_BFC07D98 = ((int32_t)psx_brA_BFC07D98 <= 0); + psx_taken_BFC07D98 = ((int32_t)psx_brA_BFC07D98 <= 0); /* 0xBFC07D9C: 00000000 nop */ /* nop */ if (psx_taken_BFC07D98) goto label_BFC07DB0; @@ -27021,7 +27886,7 @@ label_BFC07DA8: psx_check_interrupts(cpu); /* 0xBFC07DA8: 1040FFFA beq $v0, $zero, 0xBFC07D94 */ uint32_t psx_brA_BFC07DA8 = cpu->gpr[2]; uint32_t psx_brB_BFC07DA8 = cpu->gpr[0]; - int psx_taken_BFC07DA8 = (psx_brA_BFC07DA8 == psx_brB_BFC07DA8); + psx_taken_BFC07DA8 = (psx_brA_BFC07DA8 == psx_brB_BFC07DA8); /* 0xBFC07DAC: 00000000 nop */ /* nop */ if (psx_taken_BFC07DA8) goto label_BFC07D94; @@ -27032,7 +27897,7 @@ label_BFC07DB0: psx_check_interrupts(cpu); /* 0xBFC07DB0: 1E000006 bgtz $s0, 0xBFC07DCC */ uint32_t psx_brA_BFC07DB0 = cpu->gpr[16]; - int psx_taken_BFC07DB0 = ((int32_t)psx_brA_BFC07DB0 > 0); + psx_taken_BFC07DB0 = ((int32_t)psx_brA_BFC07DB0 > 0); /* 0xBFC07DB4: 00000000 nop */ /* nop */ if (psx_taken_BFC07DB0) goto label_BFC07DCC; @@ -27055,7 +27920,7 @@ label_BFC07DC4: psx_check_interrupts(cpu); /* 0xBFC07DC4: 1000004E beq $zero, $zero, 0xBFC07F00 */ uint32_t psx_brA_BFC07DC4 = cpu->gpr[0]; uint32_t psx_brB_BFC07DC4 = cpu->gpr[0]; - int psx_taken_BFC07DC4 = (psx_brA_BFC07DC4 == psx_brB_BFC07DC4); + psx_taken_BFC07DC4 = (psx_brA_BFC07DC4 == psx_brB_BFC07DC4); /* 0xBFC07DC8: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07DC4) goto label_BFC07F00; @@ -27080,7 +27945,7 @@ label_BFC07DDC: psx_check_interrupts(cpu); /* 0xBFC07DDC: 14510004 bne $v0, $s1, 0xBFC07DF0 */ uint32_t psx_brA_BFC07DDC = cpu->gpr[2]; uint32_t psx_brB_BFC07DDC = cpu->gpr[17]; - int psx_taken_BFC07DDC = (psx_brA_BFC07DDC != psx_brB_BFC07DDC); + psx_taken_BFC07DDC = (psx_brA_BFC07DDC != psx_brB_BFC07DDC); /* 0xBFC07DE0: 00000000 nop */ /* nop */ if (psx_taken_BFC07DDC) goto label_BFC07DF0; @@ -27093,7 +27958,7 @@ label_BFC07DE4: cpu->gpr[16] = 0x00010000u; /* 0xBFC07DE8: 1000000C beq $zero, $zero, 0xBFC07E1C */ uint32_t psx_brA_BFC07DE8 = cpu->gpr[0]; uint32_t psx_brB_BFC07DE8 = cpu->gpr[0]; - int psx_taken_BFC07DE8 = (psx_brA_BFC07DE8 == psx_brB_BFC07DE8); + psx_taken_BFC07DE8 = (psx_brA_BFC07DE8 == psx_brB_BFC07DE8); /* 0xBFC07DEC: 3610869F ori $s0, $s0, 0x869F */ cpu->gpr[16] = cpu->gpr[16] | 0x869Fu; if (psx_taken_BFC07DE8) goto label_BFC07E1C; @@ -27118,7 +27983,7 @@ label_BFC07E00: psx_check_interrupts(cpu); /* 0xBFC07E00: 1451FFF2 bne $v0, $s1, 0xBFC07DCC */ uint32_t psx_brA_BFC07E00 = cpu->gpr[2]; uint32_t psx_brB_BFC07E00 = cpu->gpr[17]; - int psx_taken_BFC07E00 = (psx_brA_BFC07E00 != psx_brB_BFC07E00); + psx_taken_BFC07E00 = (psx_brA_BFC07E00 != psx_brB_BFC07E00); /* 0xBFC07E04: 00000000 nop */ /* nop */ if (psx_taken_BFC07E00) goto label_BFC07DCC; @@ -27141,7 +28006,7 @@ label_BFC07E14: psx_check_interrupts(cpu); /* 0xBFC07E14: 1000FF91 beq $zero, $zero, 0xBFC07C5C */ uint32_t psx_brA_BFC07E14 = cpu->gpr[0]; uint32_t psx_brB_BFC07E14 = cpu->gpr[0]; - int psx_taken_BFC07E14 = (psx_brA_BFC07E14 == psx_brB_BFC07E14); + psx_taken_BFC07E14 = (psx_brA_BFC07E14 == psx_brB_BFC07E14); /* 0xBFC07E18: 2AC2000A slti $v0, $s6, 10 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[22] < (10) ? 1 : 0); if (psx_taken_BFC07E14) goto label_BFC07C5C; @@ -27166,7 +28031,7 @@ label_BFC07E2C: psx_check_interrupts(cpu); /* 0xBFC07E2C: 1440000A bne $v0, $zero, 0xBFC07E58 */ uint32_t psx_brA_BFC07E2C = cpu->gpr[2]; uint32_t psx_brB_BFC07E2C = cpu->gpr[0]; - int psx_taken_BFC07E2C = (psx_brA_BFC07E2C != psx_brB_BFC07E2C); + psx_taken_BFC07E2C = (psx_brA_BFC07E2C != psx_brB_BFC07E2C); /* 0xBFC07E30: 00409021 addu $s2, $v0, $zero */ cpu->gpr[18] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC07E2C) goto label_BFC07E58; @@ -27179,7 +28044,7 @@ label_BFC07E34: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); /* 0xBFC07E38: 1A000007 blez $s0, 0xBFC07E58 */ uint32_t psx_brA_BFC07E38 = cpu->gpr[16]; - int psx_taken_BFC07E38 = ((int32_t)psx_brA_BFC07E38 <= 0); + psx_taken_BFC07E38 = ((int32_t)psx_brA_BFC07E38 <= 0); /* 0xBFC07E3C: 00000000 nop */ /* nop */ if (psx_taken_BFC07E38) goto label_BFC07E58; @@ -27204,7 +28069,7 @@ label_BFC07E50: psx_check_interrupts(cpu); /* 0xBFC07E50: 1040FFF8 beq $v0, $zero, 0xBFC07E34 */ uint32_t psx_brA_BFC07E50 = cpu->gpr[2]; uint32_t psx_brB_BFC07E50 = cpu->gpr[0]; - int psx_taken_BFC07E50 = (psx_brA_BFC07E50 == psx_brB_BFC07E50); + psx_taken_BFC07E50 = (psx_brA_BFC07E50 == psx_brB_BFC07E50); /* 0xBFC07E54: 00409021 addu $s2, $v0, $zero */ cpu->gpr[18] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC07E50) goto label_BFC07E34; @@ -27215,7 +28080,7 @@ label_BFC07E58: psx_check_interrupts(cpu); /* 0xBFC07E58: 1E000006 bgtz $s0, 0xBFC07E74 */ uint32_t psx_brA_BFC07E58 = cpu->gpr[16]; - int psx_taken_BFC07E58 = ((int32_t)psx_brA_BFC07E58 > 0); + psx_taken_BFC07E58 = ((int32_t)psx_brA_BFC07E58 > 0); /* 0xBFC07E5C: 00000000 nop */ /* nop */ if (psx_taken_BFC07E58) goto label_BFC07E74; @@ -27238,7 +28103,7 @@ label_BFC07E6C: psx_check_interrupts(cpu); /* 0xBFC07E6C: 10000024 beq $zero, $zero, 0xBFC07F00 */ uint32_t psx_brA_BFC07E6C = cpu->gpr[0]; uint32_t psx_brB_BFC07E6C = cpu->gpr[0]; - int psx_taken_BFC07E6C = (psx_brA_BFC07E6C == psx_brB_BFC07E6C); + psx_taken_BFC07E6C = (psx_brA_BFC07E6C == psx_brB_BFC07E6C); /* 0xBFC07E70: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07E6C) goto label_BFC07F00; @@ -27249,7 +28114,7 @@ label_BFC07E74: psx_check_interrupts(cpu); /* 0xBFC07E74: 1A000022 blez $s0, 0xBFC07F00 */ uint32_t psx_brA_BFC07E74 = cpu->gpr[16]; - int psx_taken_BFC07E74 = ((int32_t)psx_brA_BFC07E74 <= 0); + psx_taken_BFC07E74 = ((int32_t)psx_brA_BFC07E74 <= 0); /* 0xBFC07E78: 02401021 addu $v0, $s2, $zero */ cpu->gpr[2] = cpu->gpr[18] + cpu->gpr[0]; if (psx_taken_BFC07E74) goto label_BFC07F00; @@ -27274,7 +28139,7 @@ label_BFC07E8C: psx_check_interrupts(cpu); /* 0xBFC07E8C: 14510003 bne $v0, $s1, 0xBFC07E9C */ uint32_t psx_brA_BFC07E8C = cpu->gpr[2]; uint32_t psx_brB_BFC07E8C = cpu->gpr[17]; - int psx_taken_BFC07E8C = (psx_brA_BFC07E8C != psx_brB_BFC07E8C); + psx_taken_BFC07E8C = (psx_brA_BFC07E8C != psx_brB_BFC07E8C); /* 0xBFC07E90: 00000000 nop */ /* nop */ if (psx_taken_BFC07E8C) goto label_BFC07E9C; @@ -27285,7 +28150,7 @@ label_BFC07E94: psx_check_interrupts(cpu); /* 0xBFC07E94: 10000019 beq $zero, $zero, 0xBFC07EFC */ uint32_t psx_brA_BFC07E94 = cpu->gpr[0]; uint32_t psx_brB_BFC07E94 = cpu->gpr[0]; - int psx_taken_BFC07E94 = (psx_brA_BFC07E94 == psx_brB_BFC07E94); + psx_taken_BFC07E94 = (psx_brA_BFC07E94 == psx_brB_BFC07E94); /* 0xBFC07E98: 02609021 addu $s2, $s3, $zero */ cpu->gpr[18] = cpu->gpr[19] + cpu->gpr[0]; if (psx_taken_BFC07E94) goto label_BFC07EFC; @@ -27310,7 +28175,7 @@ label_BFC07EAC: psx_check_interrupts(cpu); /* 0xBFC07EAC: 14510006 bne $v0, $s1, 0xBFC07EC8 */ uint32_t psx_brA_BFC07EAC = cpu->gpr[2]; uint32_t psx_brB_BFC07EAC = cpu->gpr[17]; - int psx_taken_BFC07EAC = (psx_brA_BFC07EAC != psx_brB_BFC07EAC); + psx_taken_BFC07EAC = (psx_brA_BFC07EAC != psx_brB_BFC07EAC); /* 0xBFC07EB0: 00000000 nop */ /* nop */ if (psx_taken_BFC07EAC) goto label_BFC07EC8; @@ -27333,7 +28198,7 @@ label_BFC07EC0: psx_check_interrupts(cpu); /* 0xBFC07EC0: 1000FF66 beq $zero, $zero, 0xBFC07C5C */ uint32_t psx_brA_BFC07EC0 = cpu->gpr[0]; uint32_t psx_brB_BFC07EC0 = cpu->gpr[0]; - int psx_taken_BFC07EC0 = (psx_brA_BFC07EC0 == psx_brB_BFC07EC0); + psx_taken_BFC07EC0 = (psx_brA_BFC07EC0 == psx_brB_BFC07EC0); /* 0xBFC07EC4: 2AC2000A slti $v0, $s6, 10 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[22] < (10) ? 1 : 0); if (psx_taken_BFC07EC0) goto label_BFC07C5C; @@ -27358,7 +28223,7 @@ label_BFC07ED8: psx_check_interrupts(cpu); /* 0xBFC07ED8: 14510006 bne $v0, $s1, 0xBFC07EF4 */ uint32_t psx_brA_BFC07ED8 = cpu->gpr[2]; uint32_t psx_brB_BFC07ED8 = cpu->gpr[17]; - int psx_taken_BFC07ED8 = (psx_brA_BFC07ED8 != psx_brB_BFC07ED8); + psx_taken_BFC07ED8 = (psx_brA_BFC07ED8 != psx_brB_BFC07ED8); /* 0xBFC07EDC: 00000000 nop */ /* nop */ if (psx_taken_BFC07ED8) goto label_BFC07EF4; @@ -27381,7 +28246,7 @@ label_BFC07EEC: psx_check_interrupts(cpu); /* 0xBFC07EEC: 10000004 beq $zero, $zero, 0xBFC07F00 */ uint32_t psx_brA_BFC07EEC = cpu->gpr[0]; uint32_t psx_brB_BFC07EEC = cpu->gpr[0]; - int psx_taken_BFC07EEC = (psx_brA_BFC07EEC == psx_brB_BFC07EEC); + psx_taken_BFC07EEC = (psx_brA_BFC07EEC == psx_brB_BFC07EEC); /* 0xBFC07EF0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07EEC) goto label_BFC07F00; @@ -27392,7 +28257,7 @@ label_BFC07EF4: psx_check_interrupts(cpu); /* 0xBFC07EF4: 1E00FFE1 bgtz $s0, 0xBFC07E7C */ uint32_t psx_brA_BFC07EF4 = cpu->gpr[16]; - int psx_taken_BFC07EF4 = ((int32_t)psx_brA_BFC07EF4 > 0); + psx_taken_BFC07EF4 = ((int32_t)psx_brA_BFC07EF4 > 0); /* 0xBFC07EF8: 00000000 nop */ /* nop */ if (psx_taken_BFC07EF4) goto label_BFC07E7C; @@ -27445,6 +28310,17 @@ void func_1FC07F28(CPUState* cpu) { default: break; } } + int psx_taken_BFC07F48 = 0; + int psx_taken_BFC07F54 = 0; + int psx_taken_BFC07F68 = 0; + int psx_taken_BFC07F70 = 0; + int psx_taken_BFC07F84 = 0; + int psx_taken_BFC07F8C = 0; + int psx_taken_BFC07FB0 = 0; + int psx_taken_BFC07FBC = 0; + int psx_taken_BFC07FD8 = 0; + int psx_taken_BFC07FF0 = 0; + int psx_taken_BFC07FF8 = 0; label_BFC07F28: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -27474,7 +28350,7 @@ label_BFC07F44: cpu->gpr[14] = cpu->gpr[2] & 0xFFu; /* 0xBFC07F48: 15C00009 bne $t6, $zero, 0xBFC07F70 */ uint32_t psx_brA_BFC07F48 = cpu->gpr[14]; uint32_t psx_brB_BFC07F48 = cpu->gpr[0]; - int psx_taken_BFC07F48 = (psx_brA_BFC07F48 != psx_brB_BFC07F48); + psx_taken_BFC07F48 = (psx_brA_BFC07F48 != psx_brB_BFC07F48); /* 0xBFC07F4C: 00000000 nop */ /* nop */ if (psx_taken_BFC07F48) goto label_BFC07F70; @@ -27487,7 +28363,7 @@ label_BFC07F50: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (-1)); /* 0xBFC07F54: 1A200006 blez $s1, 0xBFC07F70 */ uint32_t psx_brA_BFC07F54 = cpu->gpr[17]; - int psx_taken_BFC07F54 = ((int32_t)psx_brA_BFC07F54 <= 0); + psx_taken_BFC07F54 = ((int32_t)psx_brA_BFC07F54 <= 0); /* 0xBFC07F58: 00000000 nop */ /* nop */ if (psx_taken_BFC07F54) goto label_BFC07F70; @@ -27510,7 +28386,7 @@ label_BFC07F64: cpu->gpr[15] = cpu->gpr[2] & 0xFFu; /* 0xBFC07F68: 11E0FFF9 beq $t7, $zero, 0xBFC07F50 */ uint32_t psx_brA_BFC07F68 = cpu->gpr[15]; uint32_t psx_brB_BFC07F68 = cpu->gpr[0]; - int psx_taken_BFC07F68 = (psx_brA_BFC07F68 == psx_brB_BFC07F68); + psx_taken_BFC07F68 = (psx_brA_BFC07F68 == psx_brB_BFC07F68); /* 0xBFC07F6C: 00000000 nop */ /* nop */ if (psx_taken_BFC07F68) goto label_BFC07F50; @@ -27521,7 +28397,7 @@ label_BFC07F70: psx_check_interrupts(cpu); /* 0xBFC07F70: 1E200006 bgtz $s1, 0xBFC07F8C */ uint32_t psx_brA_BFC07F70 = cpu->gpr[17]; - int psx_taken_BFC07F70 = ((int32_t)psx_brA_BFC07F70 > 0); + psx_taken_BFC07F70 = ((int32_t)psx_brA_BFC07F70 > 0); /* 0xBFC07F74: 00000000 nop */ /* nop */ if (psx_taken_BFC07F70) goto label_BFC07F8C; @@ -27544,7 +28420,7 @@ label_BFC07F84: psx_check_interrupts(cpu); /* 0xBFC07F84: 10000022 beq $zero, $zero, 0xBFC08010 */ uint32_t psx_brA_BFC07F84 = cpu->gpr[0]; uint32_t psx_brB_BFC07F84 = cpu->gpr[0]; - int psx_taken_BFC07F84 = (psx_brA_BFC07F84 == psx_brB_BFC07F84); + psx_taken_BFC07F84 = (psx_brA_BFC07F84 == psx_brB_BFC07F84); /* 0xBFC07F88: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07F84) goto label_BFC08010; @@ -27555,7 +28431,7 @@ label_BFC07F8C: psx_check_interrupts(cpu); /* 0xBFC07F8C: 1A20001F blez $s1, 0xBFC0800C */ uint32_t psx_brA_BFC07F8C = cpu->gpr[17]; - int psx_taken_BFC07F8C = ((int32_t)psx_brA_BFC07F8C <= 0); + psx_taken_BFC07F8C = ((int32_t)psx_brA_BFC07F8C <= 0); /* 0xBFC07F90: 93A20034 lbu $v0, 52($sp) */ cpu->gpr[2] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (52))); if (psx_taken_BFC07F8C) goto label_BFC0800C; @@ -27591,7 +28467,7 @@ label_BFC07FAC: cpu->gpr[24] = cpu->gpr[2] & 0xFFu; /* 0xBFC07FB0: 16180004 bne $s0, $t8, 0xBFC07FC4 */ uint32_t psx_brA_BFC07FB0 = cpu->gpr[16]; uint32_t psx_brB_BFC07FB0 = cpu->gpr[24]; - int psx_taken_BFC07FB0 = (psx_brA_BFC07FB0 != psx_brB_BFC07FB0); + psx_taken_BFC07FB0 = (psx_brA_BFC07FB0 != psx_brB_BFC07FB0); /* 0xBFC07FB4: 00000000 nop */ /* nop */ if (psx_taken_BFC07FB0) goto label_BFC07FC4; @@ -27604,7 +28480,7 @@ label_BFC07FB8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07FB8u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC07FBC: 10000013 beq $zero, $zero, 0xBFC0800C */ uint32_t psx_brA_BFC07FBC = cpu->gpr[0]; uint32_t psx_brB_BFC07FBC = cpu->gpr[0]; - int psx_taken_BFC07FBC = (psx_brA_BFC07FBC == psx_brB_BFC07FBC); + psx_taken_BFC07FBC = (psx_brA_BFC07FBC == psx_brB_BFC07FBC); /* 0xBFC07FC0: 93A20034 lbu $v0, 52($sp) */ cpu->gpr[2] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (52))); if (psx_taken_BFC07FBC) goto label_BFC0800C; @@ -27631,7 +28507,7 @@ label_BFC07FD4: cpu->gpr[25] = cpu->gpr[2] & 0xFFu; /* 0xBFC07FD8: 16190007 bne $s0, $t9, 0xBFC07FF8 */ uint32_t psx_brA_BFC07FD8 = cpu->gpr[16]; uint32_t psx_brB_BFC07FD8 = cpu->gpr[25]; - int psx_taken_BFC07FD8 = (psx_brA_BFC07FD8 != psx_brB_BFC07FD8); + psx_taken_BFC07FD8 = (psx_brA_BFC07FD8 != psx_brB_BFC07FD8); /* 0xBFC07FDC: 00000000 nop */ /* nop */ if (psx_taken_BFC07FD8) goto label_BFC07FF8; @@ -27656,7 +28532,7 @@ label_BFC07FEC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC07FECu); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC07FF0: 10000007 beq $zero, $zero, 0xBFC08010 */ uint32_t psx_brA_BFC07FF0 = cpu->gpr[0]; uint32_t psx_brB_BFC07FF0 = cpu->gpr[0]; - int psx_taken_BFC07FF0 = (psx_brA_BFC07FF0 == psx_brB_BFC07FF0); + psx_taken_BFC07FF0 = (psx_brA_BFC07FF0 == psx_brB_BFC07FF0); /* 0xBFC07FF4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC07FF0) goto label_BFC08010; @@ -27667,7 +28543,7 @@ label_BFC07FF8: psx_check_interrupts(cpu); /* 0xBFC07FF8: 1E20FFE8 bgtz $s1, 0xBFC07F9C */ uint32_t psx_brA_BFC07FF8 = cpu->gpr[17]; - int psx_taken_BFC07FF8 = ((int32_t)psx_brA_BFC07FF8 > 0); + psx_taken_BFC07FF8 = ((int32_t)psx_brA_BFC07FF8 > 0); /* 0xBFC07FFC: 00000000 nop */ /* nop */ if (psx_taken_BFC07FF8) goto label_BFC07F9C; @@ -27706,6 +28582,13 @@ label_BFC08010: void func_1FC08020(CPUState* cpu) { debug_server_log_call_entry(0x1FC08020u); + int psx_taken_BFC08028 = 0; + int psx_taken_BFC08030 = 0; + int psx_taken_BFC08044 = 0; + int psx_taken_BFC0804C = 0; + int psx_taken_BFC08064 = 0; + int psx_taken_BFC08074 = 0; + int psx_taken_BFC0807C = 0; label_BFC08020: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -27717,7 +28600,7 @@ label_BFC08020: /* nop */ /* 0xBFC08028: 14400004 bne $v0, $zero, 0xBFC0803C */ uint32_t psx_brA_BFC08028 = cpu->gpr[2]; uint32_t psx_brB_BFC08028 = cpu->gpr[0]; - int psx_taken_BFC08028 = (psx_brA_BFC08028 != psx_brB_BFC08028); + psx_taken_BFC08028 = (psx_brA_BFC08028 != psx_brB_BFC08028); /* 0xBFC0802C: 2406003F addiu $a2, $zero, 63 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[0] + (63)); if (psx_taken_BFC08028) goto label_BFC0803C; @@ -27728,7 +28611,7 @@ label_BFC08030: psx_check_interrupts(cpu); /* 0xBFC08030: 1000000E beq $zero, $zero, 0xBFC0806C */ uint32_t psx_brA_BFC08030 = cpu->gpr[0]; uint32_t psx_brB_BFC08030 = cpu->gpr[0]; - int psx_taken_BFC08030 = (psx_brA_BFC08030 == psx_brB_BFC08030); + psx_taken_BFC08030 = (psx_brA_BFC08030 == psx_brB_BFC08030); /* 0xBFC08034: 2406003F addiu $a2, $zero, 63 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[0] + (63)); if (psx_taken_BFC08030) goto label_BFC0806C; @@ -27750,7 +28633,7 @@ label_BFC0803C: /* nop */ /* 0xBFC08044: 10C30005 beq $a2, $v1, 0xBFC0805C */ uint32_t psx_brA_BFC08044 = cpu->gpr[6]; uint32_t psx_brB_BFC08044 = cpu->gpr[3]; - int psx_taken_BFC08044 = (psx_brA_BFC08044 == psx_brB_BFC08044); + psx_taken_BFC08044 = (psx_brA_BFC08044 == psx_brB_BFC08044); /* 0xBFC08048: 00000000 nop */ /* nop */ if (psx_taken_BFC08044) goto label_BFC0805C; @@ -27761,7 +28644,7 @@ label_BFC0804C: psx_check_interrupts(cpu); /* 0xBFC0804C: 10620003 beq $v1, $v0, 0xBFC0805C */ uint32_t psx_brA_BFC0804C = cpu->gpr[3]; uint32_t psx_brB_BFC0804C = cpu->gpr[2]; - int psx_taken_BFC0804C = (psx_brA_BFC0804C == psx_brB_BFC0804C); + psx_taken_BFC0804C = (psx_brA_BFC0804C == psx_brB_BFC0804C); /* 0xBFC08050: 00000000 nop */ /* nop */ if (psx_taken_BFC0804C) goto label_BFC0805C; @@ -27785,7 +28668,7 @@ label_BFC0805C: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC08064: 1440FFF5 bne $v0, $zero, 0xBFC0803C */ uint32_t psx_brA_BFC08064 = cpu->gpr[2]; uint32_t psx_brB_BFC08064 = cpu->gpr[0]; - int psx_taken_BFC08064 = (psx_brA_BFC08064 != psx_brB_BFC08064); + psx_taken_BFC08064 = (psx_brA_BFC08064 != psx_brB_BFC08064); /* 0xBFC08068: 24840001 addiu $a0, $a0, 1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); if (psx_taken_BFC08064) goto label_BFC0803C; @@ -27800,7 +28683,7 @@ label_BFC0806C: /* nop */ /* 0xBFC08074: 10620003 beq $v1, $v0, 0xBFC08084 */ uint32_t psx_brA_BFC08074 = cpu->gpr[3]; uint32_t psx_brB_BFC08074 = cpu->gpr[2]; - int psx_taken_BFC08074 = (psx_brA_BFC08074 == psx_brB_BFC08074); + psx_taken_BFC08074 = (psx_brA_BFC08074 == psx_brB_BFC08074); /* 0xBFC08078: 00000000 nop */ /* nop */ if (psx_taken_BFC08074) goto label_BFC08084; @@ -27811,7 +28694,7 @@ label_BFC0807C: psx_check_interrupts(cpu); /* 0xBFC0807C: 14C30004 bne $a2, $v1, 0xBFC08090 */ uint32_t psx_brA_BFC0807C = cpu->gpr[6]; uint32_t psx_brB_BFC0807C = cpu->gpr[3]; - int psx_taken_BFC0807C = (psx_brA_BFC0807C != psx_brB_BFC0807C); + psx_taken_BFC0807C = (psx_brA_BFC0807C != psx_brB_BFC0807C); /* 0xBFC08080: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0807C) goto label_BFC08090; @@ -27848,6 +28731,16 @@ void func_1FC08098(CPUState* cpu) { default: break; } } + int psx_taken_BFC080B4 = 0; + int psx_taken_BFC080D0 = 0; + int psx_taken_BFC080E4 = 0; + int psx_taken_BFC080F8 = 0; + int psx_taken_BFC08114 = 0; + int psx_taken_BFC08128 = 0; + int psx_taken_BFC08144 = 0; + int psx_taken_BFC0814C = 0; + int psx_taken_BFC08178 = 0; + int psx_taken_BFC0818C = 0; label_BFC08098: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -27875,7 +28768,7 @@ label_BFC080B0: cpu->gpr[14] = cpu->gpr[2] & 0x10u; /* 0xBFC080B4: 11C00019 beq $t6, $zero, 0xBFC0811C */ uint32_t psx_brA_BFC080B4 = cpu->gpr[14]; uint32_t psx_brB_BFC080B4 = cpu->gpr[0]; - int psx_taken_BFC080B4 = (psx_brA_BFC080B4 == psx_brB_BFC080B4); + psx_taken_BFC080B4 = (psx_brA_BFC080B4 == psx_brB_BFC080B4); /* 0xBFC080B8: 00000000 nop */ /* nop */ if (psx_taken_BFC080B4) goto label_BFC0811C; @@ -27902,7 +28795,7 @@ label_BFC080CC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC080CCu); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC080D0: 14400006 bne $v0, $zero, 0xBFC080EC */ uint32_t psx_brA_BFC080D0 = cpu->gpr[2]; uint32_t psx_brB_BFC080D0 = cpu->gpr[0]; - int psx_taken_BFC080D0 = (psx_brA_BFC080D0 != psx_brB_BFC080D0); + psx_taken_BFC080D0 = (psx_brA_BFC080D0 != psx_brB_BFC080D0); /* 0xBFC080D4: 00000000 nop */ /* nop */ if (psx_taken_BFC080D0) goto label_BFC080EC; @@ -27919,7 +28812,7 @@ label_BFC080D8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-17996)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC080E0u); return; } g_debug_last_store_pc = 0xBFC080E0u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC080E4: 10000041 beq $zero, $zero, 0xBFC081EC */ uint32_t psx_brA_BFC080E4 = cpu->gpr[0]; uint32_t psx_brB_BFC080E4 = cpu->gpr[0]; - int psx_taken_BFC080E4 = (psx_brA_BFC080E4 == psx_brB_BFC080E4); + psx_taken_BFC080E4 = (psx_brA_BFC080E4 == psx_brB_BFC080E4); /* 0xBFC080E8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC080E4) goto label_BFC081EC; @@ -27936,7 +28829,7 @@ label_BFC080EC: /* nop */ /* 0xBFC080F8: 10780008 beq $v1, $t8, 0xBFC0811C */ uint32_t psx_brA_BFC080F8 = cpu->gpr[3]; uint32_t psx_brB_BFC080F8 = cpu->gpr[24]; - int psx_taken_BFC080F8 = (psx_brA_BFC080F8 == psx_brB_BFC080F8); + psx_taken_BFC080F8 = (psx_brA_BFC080F8 == psx_brB_BFC080F8); /* 0xBFC080FC: 00000000 nop */ /* nop */ if (psx_taken_BFC080F8) goto label_BFC0811C; @@ -27957,7 +28850,7 @@ label_BFC08100: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25220)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08110u); return; } g_debug_last_store_pc = 0xBFC08110u; cpu->write_word(psx_addr, cpu->gpr[3]); } /* 0xBFC08114: 10000035 beq $zero, $zero, 0xBFC081EC */ uint32_t psx_brA_BFC08114 = cpu->gpr[0]; uint32_t psx_brB_BFC08114 = cpu->gpr[0]; - int psx_taken_BFC08114 = (psx_brA_BFC08114 == psx_brB_BFC08114); + psx_taken_BFC08114 = (psx_brA_BFC08114 == psx_brB_BFC08114); /* 0xBFC08118: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC08114) goto label_BFC081EC; @@ -27974,7 +28867,7 @@ label_BFC0811C: /* nop */ /* 0xBFC08128: 1500000A bne $t0, $zero, 0xBFC08154 */ uint32_t psx_brA_BFC08128 = cpu->gpr[8]; uint32_t psx_brB_BFC08128 = cpu->gpr[0]; - int psx_taken_BFC08128 = (psx_brA_BFC08128 != psx_brB_BFC08128); + psx_taken_BFC08128 = (psx_brA_BFC08128 != psx_brB_BFC08128); /* 0xBFC0812C: 00000000 nop */ /* nop */ if (psx_taken_BFC08128) goto label_BFC08154; @@ -27995,7 +28888,7 @@ label_BFC08130: /* nop */ /* 0xBFC08144: 112A0003 beq $t1, $t2, 0xBFC08154 */ uint32_t psx_brA_BFC08144 = cpu->gpr[9]; uint32_t psx_brB_BFC08144 = cpu->gpr[10]; - int psx_taken_BFC08144 = (psx_brA_BFC08144 == psx_brB_BFC08144); + psx_taken_BFC08144 = (psx_brA_BFC08144 == psx_brB_BFC08144); /* 0xBFC08148: 00000000 nop */ /* nop */ if (psx_taken_BFC08144) goto label_BFC08154; @@ -28006,7 +28899,7 @@ label_BFC0814C: psx_check_interrupts(cpu); /* 0xBFC0814C: 10000027 beq $zero, $zero, 0xBFC081EC */ uint32_t psx_brA_BFC0814C = cpu->gpr[0]; uint32_t psx_brB_BFC0814C = cpu->gpr[0]; - int psx_taken_BFC0814C = (psx_brA_BFC0814C == psx_brB_BFC0814C); + psx_taken_BFC0814C = (psx_brA_BFC0814C == psx_brB_BFC0814C); /* 0xBFC08150: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0814C) goto label_BFC081EC; @@ -28041,7 +28934,7 @@ label_BFC08174: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC08178: 14410006 bne $v0, $at, 0xBFC08194 */ uint32_t psx_brA_BFC08178 = cpu->gpr[2]; uint32_t psx_brB_BFC08178 = cpu->gpr[1]; - int psx_taken_BFC08178 = (psx_brA_BFC08178 != psx_brB_BFC08178); + psx_taken_BFC08178 = (psx_brA_BFC08178 != psx_brB_BFC08178); /* 0xBFC0817C: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC08178) goto label_BFC08194; @@ -28058,7 +28951,7 @@ label_BFC08180: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-17996)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08188u); return; } g_debug_last_store_pc = 0xBFC08188u; cpu->write_word(psx_addr, cpu->gpr[11]); } /* 0xBFC0818C: 10000017 beq $zero, $zero, 0xBFC081EC */ uint32_t psx_brA_BFC0818C = cpu->gpr[0]; uint32_t psx_brB_BFC0818C = cpu->gpr[0]; - int psx_taken_BFC0818C = (psx_brA_BFC0818C == psx_brB_BFC0818C); + psx_taken_BFC0818C = (psx_brA_BFC0818C == psx_brB_BFC0818C); /* 0xBFC08190: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0818C) goto label_BFC081EC; @@ -28145,6 +29038,18 @@ void func_1FC081FC(CPUState* cpu) { default: break; } } + int psx_taken_BFC08218 = 0; + int psx_taken_BFC0822C = 0; + int psx_taken_BFC08250 = 0; + int psx_taken_BFC0826C = 0; + int psx_taken_BFC08274 = 0; + int psx_taken_BFC08288 = 0; + int psx_taken_BFC08290 = 0; + int psx_taken_BFC082A0 = 0; + int psx_taken_BFC082C0 = 0; + int psx_taken_BFC082D0 = 0; + int psx_taken_BFC082E4 = 0; + int psx_taken_BFC082F8 = 0; label_BFC081FC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -28172,7 +29077,7 @@ label_BFC08218: psx_check_interrupts(cpu); /* 0xBFC08218: 14400006 bne $v0, $zero, 0xBFC08234 */ uint32_t psx_brA_BFC08218 = cpu->gpr[2]; uint32_t psx_brB_BFC08218 = cpu->gpr[0]; - int psx_taken_BFC08218 = (psx_brA_BFC08218 != psx_brB_BFC08218); + psx_taken_BFC08218 = (psx_brA_BFC08218 != psx_brB_BFC08218); /* 0xBFC0821C: 00000000 nop */ /* nop */ if (psx_taken_BFC08218) goto label_BFC08234; @@ -28189,7 +29094,7 @@ label_BFC08220: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-17996)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08228u); return; } g_debug_last_store_pc = 0xBFC08228u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC0822C: 10000045 beq $zero, $zero, 0xBFC08344 */ uint32_t psx_brA_BFC0822C = cpu->gpr[0]; uint32_t psx_brB_BFC0822C = cpu->gpr[0]; - int psx_taken_BFC0822C = (psx_brA_BFC0822C == psx_brB_BFC0822C); + psx_taken_BFC0822C = (psx_brA_BFC0822C == psx_brB_BFC0822C); /* 0xBFC08230: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0822C) goto label_BFC08344; @@ -28220,7 +29125,7 @@ label_BFC08250: psx_check_interrupts(cpu); /* 0xBFC08250: 1440000A bne $v0, $zero, 0xBFC0827C */ uint32_t psx_brA_BFC08250 = cpu->gpr[2]; uint32_t psx_brB_BFC08250 = cpu->gpr[0]; - int psx_taken_BFC08250 = (psx_brA_BFC08250 != psx_brB_BFC08250); + psx_taken_BFC08250 = (psx_brA_BFC08250 != psx_brB_BFC08250); /* 0xBFC08254: 00000000 nop */ /* nop */ if (psx_taken_BFC08250) goto label_BFC0827C; @@ -28246,7 +29151,7 @@ label_BFC08264: cpu->gpr[1] = (uint32_t)(cpu->gpr[17] < cpu->gpr[3] ? 1 : 0); /* 0xBFC0826C: 1420FFFD bne $at, $zero, 0xBFC08264 */ uint32_t psx_brA_BFC0826C = cpu->gpr[1]; uint32_t psx_brB_BFC0826C = cpu->gpr[0]; - int psx_taken_BFC0826C = (psx_brA_BFC0826C != psx_brB_BFC0826C); + psx_taken_BFC0826C = (psx_brA_BFC0826C != psx_brB_BFC0826C); /* 0xBFC08270: A222FFFF sb $v0, -1($s1) */ g_debug_last_store_pc = 0xBFC08270u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[17] + (-1)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC0826C) goto label_BFC08264; @@ -28257,7 +29162,7 @@ label_BFC08274: psx_check_interrupts(cpu); /* 0xBFC08274: 10000025 beq $zero, $zero, 0xBFC0830C */ uint32_t psx_brA_BFC08274 = cpu->gpr[0]; uint32_t psx_brB_BFC08274 = cpu->gpr[0]; - int psx_taken_BFC08274 = (psx_brA_BFC08274 == psx_brB_BFC08274); + psx_taken_BFC08274 = (psx_brA_BFC08274 == psx_brB_BFC08274); /* 0xBFC08278: A2200000 sb $zero, 0($s1) */ g_debug_last_store_pc = 0xBFC08278u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[17] + (0)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC08274) goto label_BFC0830C; @@ -28274,7 +29179,7 @@ label_BFC0827C: /* nop */ /* 0xBFC08288: 15E00003 bne $t7, $zero, 0xBFC08298 */ uint32_t psx_brA_BFC08288 = cpu->gpr[15]; uint32_t psx_brB_BFC08288 = cpu->gpr[0]; - int psx_taken_BFC08288 = (psx_brA_BFC08288 != psx_brB_BFC08288); + psx_taken_BFC08288 = (psx_brA_BFC08288 != psx_brB_BFC08288); /* 0xBFC0828C: 00000000 nop */ /* nop */ if (psx_taken_BFC08288) goto label_BFC08298; @@ -28285,7 +29190,7 @@ label_BFC08290: psx_check_interrupts(cpu); /* 0xBFC08290: 1000000D beq $zero, $zero, 0xBFC082C8 */ uint32_t psx_brA_BFC08290 = cpu->gpr[0]; uint32_t psx_brB_BFC08290 = cpu->gpr[0]; - int psx_taken_BFC08290 = (psx_brA_BFC08290 == psx_brB_BFC08290); + psx_taken_BFC08290 = (psx_brA_BFC08290 == psx_brB_BFC08290); /* 0xBFC08294: 2413002A addiu $s3, $zero, 42 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[0] + (42)); if (psx_taken_BFC08290) goto label_BFC082C8; @@ -28305,7 +29210,7 @@ label_BFC082A0: psx_check_interrupts(cpu); /* 0xBFC082A0: 12700009 beq $s3, $s0, 0xBFC082C8 */ uint32_t psx_brA_BFC082A0 = cpu->gpr[19]; uint32_t psx_brB_BFC082A0 = cpu->gpr[16]; - int psx_taken_BFC082A0 = (psx_brA_BFC082A0 == psx_brB_BFC082A0); + psx_taken_BFC082A0 = (psx_brA_BFC082A0 == psx_brB_BFC082A0); /* 0xBFC082A4: 00000000 nop */ /* nop */ if (psx_taken_BFC082A0) goto label_BFC082C8; @@ -28334,7 +29239,7 @@ label_BFC082B4: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC082C0: 1600FFF7 bne $s0, $zero, 0xBFC082A0 */ uint32_t psx_brA_BFC082C0 = cpu->gpr[16]; uint32_t psx_brB_BFC082C0 = cpu->gpr[0]; - int psx_taken_BFC082C0 = (psx_brA_BFC082C0 != psx_brB_BFC082C0); + psx_taken_BFC082C0 = (psx_brA_BFC082C0 != psx_brB_BFC082C0); /* 0xBFC082C4: 00000000 nop */ /* nop */ if (psx_taken_BFC082C0) goto label_BFC082A0; @@ -28349,7 +29254,7 @@ label_BFC082C8: /* nop */ /* 0xBFC082D0: 1678000C bne $s3, $t8, 0xBFC08304 */ uint32_t psx_brA_BFC082D0 = cpu->gpr[19]; uint32_t psx_brB_BFC082D0 = cpu->gpr[24]; - int psx_taken_BFC082D0 = (psx_brA_BFC082D0 != psx_brB_BFC082D0); + psx_taken_BFC082D0 = (psx_brA_BFC082D0 != psx_brB_BFC082D0); /* 0xBFC082D4: 8FB3002C lw $s3, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC082D4u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } if (psx_taken_BFC082D0) goto label_BFC08304; @@ -28366,7 +29271,7 @@ label_BFC082D8: cpu->gpr[1] = (uint32_t)(cpu->gpr[17] < cpu->gpr[3] ? 1 : 0); /* 0xBFC082E4: 10200007 beq $at, $zero, 0xBFC08304 */ uint32_t psx_brA_BFC082E4 = cpu->gpr[1]; uint32_t psx_brB_BFC082E4 = cpu->gpr[0]; - int psx_taken_BFC082E4 = (psx_brA_BFC082E4 == psx_brB_BFC082E4); + psx_taken_BFC082E4 = (psx_brA_BFC082E4 == psx_brB_BFC082E4); /* 0xBFC082E8: 8FB3002C lw $s3, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC082E8u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } if (psx_taken_BFC082E4) goto label_BFC08304; @@ -28388,7 +29293,7 @@ label_BFC082F0: cpu->gpr[1] = (uint32_t)(cpu->gpr[17] < cpu->gpr[3] ? 1 : 0); /* 0xBFC082F8: 1420FFFD bne $at, $zero, 0xBFC082F0 */ uint32_t psx_brA_BFC082F8 = cpu->gpr[1]; uint32_t psx_brB_BFC082F8 = cpu->gpr[0]; - int psx_taken_BFC082F8 = (psx_brA_BFC082F8 != psx_brB_BFC082F8); + psx_taken_BFC082F8 = (psx_brA_BFC082F8 != psx_brB_BFC082F8); /* 0xBFC082FC: A222FFFF sb $v0, -1($s1) */ g_debug_last_store_pc = 0xBFC082FCu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[17] + (-1)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC082F8) goto label_BFC082F0; @@ -28473,6 +29378,8 @@ void func_1FC08354(CPUState* cpu) { default: break; } } + int psx_taken_BFC08374 = 0; + int psx_taken_BFC083A0 = 0; label_BFC08354: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -28496,7 +29403,7 @@ label_BFC08354: cpu->gpr[17] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC08374: 11C0000E beq $t6, $zero, 0xBFC083B0 */ uint32_t psx_brA_BFC08374 = cpu->gpr[14]; uint32_t psx_brB_BFC08374 = cpu->gpr[0]; - int psx_taken_BFC08374 = (psx_brA_BFC08374 == psx_brB_BFC08374); + psx_taken_BFC08374 = (psx_brA_BFC08374 == psx_brB_BFC08374); /* 0xBFC08378: 26529D80 addiu $s2, $s2, -25216 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (-25216)); if (psx_taken_BFC08374) goto label_BFC083B0; @@ -28536,7 +29443,7 @@ label_BFC08394: cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (1)); /* 0xBFC083A0: 1600FFF9 bne $s0, $zero, 0xBFC08388 */ uint32_t psx_brA_BFC083A0 = cpu->gpr[16]; uint32_t psx_brB_BFC083A0 = cpu->gpr[0]; - int psx_taken_BFC083A0 = (psx_brA_BFC083A0 != psx_brB_BFC083A0); + psx_taken_BFC083A0 = (psx_brA_BFC083A0 != psx_brB_BFC083A0); /* 0xBFC083A4: 00000000 nop */ /* nop */ if (psx_taken_BFC083A0) goto label_BFC08388; @@ -28592,6 +29499,26 @@ void func_1FC083CC(CPUState* cpu) { default: break; } } + int psx_taken_BFC083FC = 0; + int psx_taken_BFC08438 = 0; + int psx_taken_BFC08474 = 0; + int psx_taken_BFC0847C = 0; + int psx_taken_BFC08490 = 0; + int psx_taken_BFC08498 = 0; + int psx_taken_BFC084A0 = 0; + int psx_taken_BFC084BC = 0; + int psx_taken_BFC084C4 = 0; + int psx_taken_BFC084D4 = 0; + int psx_taken_BFC084DC = 0; + int psx_taken_BFC084E4 = 0; + int psx_taken_BFC084F4 = 0; + int psx_taken_BFC084FC = 0; + int psx_taken_BFC08510 = 0; + int psx_taken_BFC08518 = 0; + int psx_taken_BFC08530 = 0; + int psx_taken_BFC08560 = 0; + int psx_taken_BFC0856C = 0; + int psx_taken_BFC0857C = 0; label_BFC083CC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -28623,7 +29550,7 @@ label_BFC083CC: cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[0] + (92)); /* 0xBFC083FC: 124E0010 beq $s2, $t6, 0xBFC08440 */ uint32_t psx_brA_BFC083FC = cpu->gpr[18]; uint32_t psx_brB_BFC083FC = cpu->gpr[14]; - int psx_taken_BFC083FC = (psx_brA_BFC083FC == psx_brB_BFC083FC); + psx_taken_BFC083FC = (psx_brA_BFC083FC == psx_brB_BFC083FC); /* 0xBFC08400: 0080B021 addu $s6, $a0, $zero */ cpu->gpr[22] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC083FC) goto label_BFC08440; @@ -28678,7 +29605,7 @@ label_BFC08438: psx_check_interrupts(cpu); /* 0xBFC08438: 10000006 beq $zero, $zero, 0xBFC08454 */ uint32_t psx_brA_BFC08438 = cpu->gpr[0]; uint32_t psx_brB_BFC08438 = cpu->gpr[0]; - int psx_taken_BFC08438 = (psx_brA_BFC08438 == psx_brB_BFC08438); + psx_taken_BFC08438 = (psx_brA_BFC08438 == psx_brB_BFC08438); /* 0xBFC0843C: 00000000 nop */ /* nop */ if (psx_taken_BFC08438) goto label_BFC08454; @@ -28726,7 +29653,7 @@ label_BFC0846C: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[29] + (76)); /* 0xBFC08474: 1242000A beq $s2, $v0, 0xBFC084A0 */ uint32_t psx_brA_BFC08474 = cpu->gpr[18]; uint32_t psx_brB_BFC08474 = cpu->gpr[2]; - int psx_taken_BFC08474 = (psx_brA_BFC08474 == psx_brB_BFC08474); + psx_taken_BFC08474 = (psx_brA_BFC08474 == psx_brB_BFC08474); /* 0xBFC08478: 00000000 nop */ /* nop */ if (psx_taken_BFC08474) goto label_BFC084A0; @@ -28737,7 +29664,7 @@ label_BFC0847C: psx_check_interrupts(cpu); /* 0xBFC0847C: 10400008 beq $v0, $zero, 0xBFC084A0 */ uint32_t psx_brA_BFC0847C = cpu->gpr[2]; uint32_t psx_brB_BFC0847C = cpu->gpr[0]; - int psx_taken_BFC0847C = (psx_brA_BFC0847C == psx_brB_BFC0847C); + psx_taken_BFC0847C = (psx_brA_BFC0847C == psx_brB_BFC0847C); /* 0xBFC08480: 00000000 nop */ /* nop */ if (psx_taken_BFC0847C) goto label_BFC084A0; @@ -28754,7 +29681,7 @@ label_BFC08484: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC08490: 12420003 beq $s2, $v0, 0xBFC084A0 */ uint32_t psx_brA_BFC08490 = cpu->gpr[18]; uint32_t psx_brB_BFC08490 = cpu->gpr[2]; - int psx_taken_BFC08490 = (psx_brA_BFC08490 == psx_brB_BFC08490); + psx_taken_BFC08490 = (psx_brA_BFC08490 == psx_brB_BFC08490); /* 0xBFC08494: 26310001 addiu $s1, $s1, 1 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); if (psx_taken_BFC08490) goto label_BFC084A0; @@ -28765,7 +29692,7 @@ label_BFC08498: psx_check_interrupts(cpu); /* 0xBFC08498: 1440FFFA bne $v0, $zero, 0xBFC08484 */ uint32_t psx_brA_BFC08498 = cpu->gpr[2]; uint32_t psx_brB_BFC08498 = cpu->gpr[0]; - int psx_taken_BFC08498 = (psx_brA_BFC08498 != psx_brB_BFC08498); + psx_taken_BFC08498 = (psx_brA_BFC08498 != psx_brB_BFC08498); /* 0xBFC0849C: 00000000 nop */ /* nop */ if (psx_taken_BFC08498) goto label_BFC08484; @@ -28776,7 +29703,7 @@ label_BFC084A0: psx_check_interrupts(cpu); /* 0xBFC084A0: 1040000E beq $v0, $zero, 0xBFC084DC */ uint32_t psx_brA_BFC084A0 = cpu->gpr[2]; uint32_t psx_brB_BFC084A0 = cpu->gpr[0]; - int psx_taken_BFC084A0 = (psx_brA_BFC084A0 == psx_brB_BFC084A0); + psx_taken_BFC084A0 = (psx_brA_BFC084A0 == psx_brB_BFC084A0); /* 0xBFC084A4: 2A610008 slti $at, $s3, 8 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (8) ? 1 : 0); if (psx_taken_BFC084A0) goto label_BFC084DC; @@ -28803,7 +29730,7 @@ label_BFC084BC: psx_check_interrupts(cpu); /* 0xBFC084BC: 14550003 bne $v0, $s5, 0xBFC084CC */ uint32_t psx_brA_BFC084BC = cpu->gpr[2]; uint32_t psx_brB_BFC084BC = cpu->gpr[21]; - int psx_taken_BFC084BC = (psx_brA_BFC084BC != psx_brB_BFC084BC); + psx_taken_BFC084BC = (psx_brA_BFC084BC != psx_brB_BFC084BC); /* 0xBFC084C0: 0040A021 addu $s4, $v0, $zero */ cpu->gpr[20] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC084BC) goto label_BFC084CC; @@ -28814,7 +29741,7 @@ label_BFC084C4: psx_check_interrupts(cpu); /* 0xBFC084C4: 10000004 beq $zero, $zero, 0xBFC084D8 */ uint32_t psx_brA_BFC084C4 = cpu->gpr[0]; uint32_t psx_brB_BFC084C4 = cpu->gpr[0]; - int psx_taken_BFC084C4 = (psx_brA_BFC084C4 == psx_brB_BFC084C4); + psx_taken_BFC084C4 = (psx_brA_BFC084C4 == psx_brB_BFC084C4); /* 0xBFC084C8: A3A0004C sb $zero, 76($sp) */ g_debug_last_store_pc = 0xBFC084C8u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[29] + (76)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC084C4) goto label_BFC084D8; @@ -28829,7 +29756,7 @@ label_BFC084CC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (8) ? 1 : 0); /* 0xBFC084D4: 1420FFE5 bne $at, $zero, 0xBFC0846C */ uint32_t psx_brA_BFC084D4 = cpu->gpr[1]; uint32_t psx_brB_BFC084D4 = cpu->gpr[0]; - int psx_taken_BFC084D4 = (psx_brA_BFC084D4 != psx_brB_BFC084D4); + psx_taken_BFC084D4 = (psx_brA_BFC084D4 != psx_brB_BFC084D4); label_BFC084D8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -28845,7 +29772,7 @@ label_BFC084DC: psx_check_interrupts(cpu); /* 0xBFC084DC: 14200004 bne $at, $zero, 0xBFC084F0 */ uint32_t psx_brA_BFC084DC = cpu->gpr[1]; uint32_t psx_brB_BFC084DC = cpu->gpr[0]; - int psx_taken_BFC084DC = (psx_brA_BFC084DC != psx_brB_BFC084DC); + psx_taken_BFC084DC = (psx_brA_BFC084DC != psx_brB_BFC084DC); /* 0xBFC084E0: 83AF004C lb $t7, 76($sp) */ cpu->gpr[15] = (uint32_t)(int32_t)(int8_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (76))); if (psx_taken_BFC084DC) goto label_BFC084F0; @@ -28856,7 +29783,7 @@ label_BFC084E4: psx_check_interrupts(cpu); /* 0xBFC084E4: 10000028 beq $zero, $zero, 0xBFC08588 */ uint32_t psx_brA_BFC084E4 = cpu->gpr[0]; uint32_t psx_brB_BFC084E4 = cpu->gpr[0]; - int psx_taken_BFC084E4 = (psx_brA_BFC084E4 == psx_brB_BFC084E4); + psx_taken_BFC084E4 = (psx_brA_BFC084E4 == psx_brB_BFC084E4); /* 0xBFC084E8: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC084E4) goto label_BFC08588; @@ -28876,7 +29803,7 @@ label_BFC084F0: /* nop */ /* 0xBFC084F4: 15E00003 bne $t7, $zero, 0xBFC08504 */ uint32_t psx_brA_BFC084F4 = cpu->gpr[15]; uint32_t psx_brB_BFC084F4 = cpu->gpr[0]; - int psx_taken_BFC084F4 = (psx_brA_BFC084F4 != psx_brB_BFC084F4); + psx_taken_BFC084F4 = (psx_brA_BFC084F4 != psx_brB_BFC084F4); /* 0xBFC084F8: 00000000 nop */ /* nop */ if (psx_taken_BFC084F4) goto label_BFC08504; @@ -28887,7 +29814,7 @@ label_BFC084FC: psx_check_interrupts(cpu); /* 0xBFC084FC: 10000022 beq $zero, $zero, 0xBFC08588 */ uint32_t psx_brA_BFC084FC = cpu->gpr[0]; uint32_t psx_brB_BFC084FC = cpu->gpr[0]; - int psx_taken_BFC084FC = (psx_brA_BFC084FC == psx_brB_BFC084FC); + psx_taken_BFC084FC = (psx_brA_BFC084FC == psx_brB_BFC084FC); /* 0xBFC08500: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC084FC) goto label_BFC08588; @@ -28910,7 +29837,7 @@ label_BFC08510: psx_check_interrupts(cpu); /* 0xBFC08510: 14400003 bne $v0, $zero, 0xBFC08520 */ uint32_t psx_brA_BFC08510 = cpu->gpr[2]; uint32_t psx_brB_BFC08510 = cpu->gpr[0]; - int psx_taken_BFC08510 = (psx_brA_BFC08510 != psx_brB_BFC08510); + psx_taken_BFC08510 = (psx_brA_BFC08510 != psx_brB_BFC08510); /* 0xBFC08514: 00000000 nop */ /* nop */ if (psx_taken_BFC08510) goto label_BFC08520; @@ -28921,7 +29848,7 @@ label_BFC08518: psx_check_interrupts(cpu); /* 0xBFC08518: 1000001B beq $zero, $zero, 0xBFC08588 */ uint32_t psx_brA_BFC08518 = cpu->gpr[0]; uint32_t psx_brB_BFC08518 = cpu->gpr[0]; - int psx_taken_BFC08518 = (psx_brA_BFC08518 == psx_brB_BFC08518); + psx_taken_BFC08518 = (psx_brA_BFC08518 == psx_brB_BFC08518); /* 0xBFC0851C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC08518) goto label_BFC08588; @@ -28940,7 +29867,7 @@ label_BFC08520: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[22] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC08530: 10200015 beq $at, $zero, 0xBFC08588 */ uint32_t psx_brA_BFC08530 = cpu->gpr[1]; uint32_t psx_brB_BFC08530 = cpu->gpr[0]; - int psx_taken_BFC08530 = (psx_brA_BFC08530 == psx_brB_BFC08530); + psx_taken_BFC08530 = (psx_brA_BFC08530 == psx_brB_BFC08530); /* 0xBFC08534: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC08530) goto label_BFC08588; @@ -28982,7 +29909,7 @@ label_BFC08560: psx_check_interrupts(cpu); /* 0xBFC08560: 10400004 beq $v0, $zero, 0xBFC08574 */ uint32_t psx_brA_BFC08560 = cpu->gpr[2]; uint32_t psx_brB_BFC08560 = cpu->gpr[0]; - int psx_taken_BFC08560 = (psx_brA_BFC08560 == psx_brB_BFC08560); + psx_taken_BFC08560 = (psx_brA_BFC08560 == psx_brB_BFC08560); /* 0xBFC08564: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC08560) goto label_BFC08574; @@ -28995,7 +29922,7 @@ label_BFC08568: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25072)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08568u); return; } g_debug_last_store_pc = 0xBFC08568u; cpu->write_word(psx_addr, cpu->gpr[19]); } /* 0xBFC0856C: 10000006 beq $zero, $zero, 0xBFC08588 */ uint32_t psx_brA_BFC0856C = cpu->gpr[0]; uint32_t psx_brB_BFC0856C = cpu->gpr[0]; - int psx_taken_BFC0856C = (psx_brA_BFC0856C == psx_brB_BFC0856C); + psx_taken_BFC0856C = (psx_brA_BFC0856C == psx_brB_BFC0856C); /* 0xBFC08570: 02601021 addu $v0, $s3, $zero */ cpu->gpr[2] = cpu->gpr[19] + cpu->gpr[0]; if (psx_taken_BFC0856C) goto label_BFC08588; @@ -29010,7 +29937,7 @@ label_BFC08574: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC0857C: 1420FFF5 bne $at, $zero, 0xBFC08554 */ uint32_t psx_brA_BFC0857C = cpu->gpr[1]; uint32_t psx_brB_BFC0857C = cpu->gpr[0]; - int psx_taken_BFC0857C = (psx_brA_BFC0857C != psx_brB_BFC0857C); + psx_taken_BFC0857C = (psx_brA_BFC0857C != psx_brB_BFC0857C); /* 0xBFC08580: 26100018 addiu $s0, $s0, 24 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (24)); if (psx_taken_BFC0857C) goto label_BFC08554; @@ -29105,6 +30032,17 @@ void func_1FC085D4(CPUState* cpu) { default: break; } } + int psx_taken_BFC085EC = 0; + int psx_taken_BFC085F8 = 0; + int psx_taken_BFC08608 = 0; + int psx_taken_BFC08610 = 0; + int psx_taken_BFC08624 = 0; + int psx_taken_BFC0862C = 0; + int psx_taken_BFC0864C = 0; + int psx_taken_BFC08658 = 0; + int psx_taken_BFC08670 = 0; + int psx_taken_BFC08688 = 0; + int psx_taken_BFC08690 = 0; label_BFC085D4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -29136,7 +30074,7 @@ label_BFC085EC: psx_check_interrupts(cpu); /* 0xBFC085EC: 14400008 bne $v0, $zero, 0xBFC08610 */ uint32_t psx_brA_BFC085EC = cpu->gpr[2]; uint32_t psx_brB_BFC085EC = cpu->gpr[0]; - int psx_taken_BFC085EC = (psx_brA_BFC085EC != psx_brB_BFC085EC); + psx_taken_BFC085EC = (psx_brA_BFC085EC != psx_brB_BFC085EC); /* 0xBFC085F0: 00000000 nop */ /* nop */ if (psx_taken_BFC085EC) goto label_BFC08610; @@ -29149,7 +30087,7 @@ label_BFC085F4: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (-1)); /* 0xBFC085F8: 1A200005 blez $s1, 0xBFC08610 */ uint32_t psx_brA_BFC085F8 = cpu->gpr[17]; - int psx_taken_BFC085F8 = ((int32_t)psx_brA_BFC085F8 <= 0); + psx_taken_BFC085F8 = ((int32_t)psx_brA_BFC085F8 <= 0); /* 0xBFC085FC: 00000000 nop */ /* nop */ if (psx_taken_BFC085F8) goto label_BFC08610; @@ -29170,7 +30108,7 @@ label_BFC08608: psx_check_interrupts(cpu); /* 0xBFC08608: 1040FFFA beq $v0, $zero, 0xBFC085F4 */ uint32_t psx_brA_BFC08608 = cpu->gpr[2]; uint32_t psx_brB_BFC08608 = cpu->gpr[0]; - int psx_taken_BFC08608 = (psx_brA_BFC08608 == psx_brB_BFC08608); + psx_taken_BFC08608 = (psx_brA_BFC08608 == psx_brB_BFC08608); /* 0xBFC0860C: 00000000 nop */ /* nop */ if (psx_taken_BFC08608) goto label_BFC085F4; @@ -29181,7 +30119,7 @@ label_BFC08610: psx_check_interrupts(cpu); /* 0xBFC08610: 1E200006 bgtz $s1, 0xBFC0862C */ uint32_t psx_brA_BFC08610 = cpu->gpr[17]; - int psx_taken_BFC08610 = ((int32_t)psx_brA_BFC08610 > 0); + psx_taken_BFC08610 = ((int32_t)psx_brA_BFC08610 > 0); /* 0xBFC08614: 00000000 nop */ /* nop */ if (psx_taken_BFC08610) goto label_BFC0862C; @@ -29204,7 +30142,7 @@ label_BFC08624: psx_check_interrupts(cpu); /* 0xBFC08624: 1000001E beq $zero, $zero, 0xBFC086A0 */ uint32_t psx_brA_BFC08624 = cpu->gpr[0]; uint32_t psx_brB_BFC08624 = cpu->gpr[0]; - int psx_taken_BFC08624 = (psx_brA_BFC08624 == psx_brB_BFC08624); + psx_taken_BFC08624 = (psx_brA_BFC08624 == psx_brB_BFC08624); /* 0xBFC08628: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC08624) goto label_BFC086A0; @@ -29215,7 +30153,7 @@ label_BFC0862C: psx_check_interrupts(cpu); /* 0xBFC0862C: 1A20001D blez $s1, 0xBFC086A4 */ uint32_t psx_brA_BFC0862C = cpu->gpr[17]; - int psx_taken_BFC0862C = ((int32_t)psx_brA_BFC0862C <= 0); + psx_taken_BFC0862C = ((int32_t)psx_brA_BFC0862C <= 0); /* 0xBFC08630: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08630u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0862C) goto label_BFC086A4; @@ -29249,7 +30187,7 @@ label_BFC0864C: psx_check_interrupts(cpu); /* 0xBFC0864C: 14500004 bne $v0, $s0, 0xBFC08660 */ uint32_t psx_brA_BFC0864C = cpu->gpr[2]; uint32_t psx_brB_BFC0864C = cpu->gpr[16]; - int psx_taken_BFC0864C = (psx_brA_BFC0864C != psx_brB_BFC0864C); + psx_taken_BFC0864C = (psx_brA_BFC0864C != psx_brB_BFC0864C); /* 0xBFC08650: 00000000 nop */ /* nop */ if (psx_taken_BFC0864C) goto label_BFC08660; @@ -29262,7 +30200,7 @@ label_BFC08654: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08654u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC08658: 10000012 beq $zero, $zero, 0xBFC086A4 */ uint32_t psx_brA_BFC08658 = cpu->gpr[0]; uint32_t psx_brB_BFC08658 = cpu->gpr[0]; - int psx_taken_BFC08658 = (psx_brA_BFC08658 == psx_brB_BFC08658); + psx_taken_BFC08658 = (psx_brA_BFC08658 == psx_brB_BFC08658); /* 0xBFC0865C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0865Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC08658) goto label_BFC086A4; @@ -29287,7 +30225,7 @@ label_BFC08670: psx_check_interrupts(cpu); /* 0xBFC08670: 14500007 bne $v0, $s0, 0xBFC08690 */ uint32_t psx_brA_BFC08670 = cpu->gpr[2]; uint32_t psx_brB_BFC08670 = cpu->gpr[16]; - int psx_taken_BFC08670 = (psx_brA_BFC08670 != psx_brB_BFC08670); + psx_taken_BFC08670 = (psx_brA_BFC08670 != psx_brB_BFC08670); /* 0xBFC08674: 00000000 nop */ /* nop */ if (psx_taken_BFC08670) goto label_BFC08690; @@ -29312,7 +30250,7 @@ label_BFC08684: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08684u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC08688: 10000006 beq $zero, $zero, 0xBFC086A4 */ uint32_t psx_brA_BFC08688 = cpu->gpr[0]; uint32_t psx_brB_BFC08688 = cpu->gpr[0]; - int psx_taken_BFC08688 = (psx_brA_BFC08688 == psx_brB_BFC08688); + psx_taken_BFC08688 = (psx_brA_BFC08688 == psx_brB_BFC08688); /* 0xBFC0868C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0868Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC08688) goto label_BFC086A4; @@ -29323,7 +30261,7 @@ label_BFC08690: psx_check_interrupts(cpu); /* 0xBFC08690: 1E20FFEA bgtz $s1, 0xBFC0863C */ uint32_t psx_brA_BFC08690 = cpu->gpr[17]; - int psx_taken_BFC08690 = ((int32_t)psx_brA_BFC08690 > 0); + psx_taken_BFC08690 = ((int32_t)psx_brA_BFC08690 > 0); /* 0xBFC08694: 00000000 nop */ /* nop */ if (psx_taken_BFC08690) goto label_BFC0863C; @@ -29444,6 +30382,8 @@ label_BFC08708: void func_1FC08720(CPUState* cpu) { debug_server_log_call_entry(0x1FC08720u); + int psx_taken_BFC08798 = 0; + int psx_taken_BFC087A8 = 0; label_BFC08720: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -29516,7 +30456,7 @@ label_BFC08758: cpu->gpr[2] = cpu->gpr[2] & 0xFFu; /* 0xBFC08798: 1465FFEF bne $v1, $a1, 0xBFC08758 */ uint32_t psx_brA_BFC08798 = cpu->gpr[3]; uint32_t psx_brB_BFC08798 = cpu->gpr[5]; - int psx_taken_BFC08798 = (psx_brA_BFC08798 != psx_brB_BFC08798); + psx_taken_BFC08798 = (psx_brA_BFC08798 != psx_brB_BFC08798); /* 0xBFC0879C: 24840001 addiu $a0, $a0, 1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); if (psx_taken_BFC08798) goto label_BFC08758; @@ -29531,7 +30471,7 @@ label_BFC087A0: /* nop */ /* 0xBFC087A8: 144A0004 bne $v0, $t2, 0xBFC087BC */ uint32_t psx_brA_BFC087A8 = cpu->gpr[2]; uint32_t psx_brB_BFC087A8 = cpu->gpr[10]; - int psx_taken_BFC087A8 = (psx_brA_BFC087A8 != psx_brB_BFC087A8); + psx_taken_BFC087A8 = (psx_brA_BFC087A8 != psx_brB_BFC087A8); /* 0xBFC087AC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC087A8) goto label_BFC087BC; @@ -29557,6 +30497,7 @@ label_BFC087BC: void func_1FC087C4(CPUState* cpu) { debug_server_log_call_entry(0x1FC087C4u); + int psx_taken_BFC0883C = 0; label_BFC087C4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -29629,7 +30570,7 @@ label_BFC087FC: cpu->gpr[2] = cpu->gpr[2] & 0xFFu; /* 0xBFC0883C: 1465FFEF bne $v1, $a1, 0xBFC087FC */ uint32_t psx_brA_BFC0883C = cpu->gpr[3]; uint32_t psx_brB_BFC0883C = cpu->gpr[5]; - int psx_taken_BFC0883C = (psx_brA_BFC0883C != psx_brB_BFC0883C); + psx_taken_BFC0883C = (psx_brA_BFC0883C != psx_brB_BFC0883C); /* 0xBFC08840: 24840001 addiu $a0, $a0, 1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); if (psx_taken_BFC0883C) goto label_BFC087FC; @@ -29654,6 +30595,7 @@ void func_1FC0884C(CPUState* cpu) { default: break; } } + int psx_taken_BFC08880 = 0; label_BFC0884C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -29692,7 +30634,7 @@ label_BFC08870: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (16)); /* 0xBFC08880: 1443FFFB bne $v0, $v1, 0xBFC08870 */ uint32_t psx_brA_BFC08880 = cpu->gpr[2]; uint32_t psx_brB_BFC08880 = cpu->gpr[3]; - int psx_taken_BFC08880 = (psx_brA_BFC08880 != psx_brB_BFC08880); + psx_taken_BFC08880 = (psx_brA_BFC08880 != psx_brB_BFC08880); /* 0xBFC08884: AC40FFFC sw $zero, -4($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08884u); return; } g_debug_last_store_pc = 0xBFC08884u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC08880) goto label_BFC08870; @@ -29733,6 +30675,7 @@ void func_1FC088A0(CPUState* cpu) { default: break; } } + int psx_taken_BFC0892C = 0; label_BFC088A0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -29833,7 +30776,7 @@ label_BFC08910: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (484)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08928u); return; } g_debug_last_store_pc = 0xBFC08928u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC0892C: 1634FFF2 bne $s1, $s4, 0xBFC088F8 */ uint32_t psx_brA_BFC0892C = cpu->gpr[17]; uint32_t psx_brB_BFC0892C = cpu->gpr[20]; - int psx_taken_BFC0892C = (psx_brA_BFC0892C != psx_brB_BFC0892C); + psx_taken_BFC0892C = (psx_brA_BFC0892C != psx_brB_BFC0892C); /* 0xBFC08930: 26100020 addiu $s0, $s0, 32 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (32)); if (psx_taken_BFC0892C) goto label_BFC088F8; @@ -29870,6 +30813,10 @@ void func_1FC0895C(CPUState* cpu) { default: break; } } + int psx_taken_BFC08980 = 0; + int psx_taken_BFC08994 = 0; + int psx_taken_BFC089A0 = 0; + int psx_taken_BFC089A8 = 0; label_BFC0895C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -29905,7 +30852,7 @@ label_BFC08978: /* nop */ /* 0xBFC08980: 148E0006 bne $a0, $t6, 0xBFC0899C */ uint32_t psx_brA_BFC08980 = cpu->gpr[4]; uint32_t psx_brB_BFC08980 = cpu->gpr[14]; - int psx_taken_BFC08980 = (psx_brA_BFC08980 != psx_brB_BFC08980); + psx_taken_BFC08980 = (psx_brA_BFC08980 != psx_brB_BFC08980); /* 0xBFC08984: 00000000 nop */ /* nop */ if (psx_taken_BFC08980) goto label_BFC0899C; @@ -29928,7 +30875,7 @@ label_BFC08990: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08990u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC08994: 10000006 beq $zero, $zero, 0xBFC089B0 */ uint32_t psx_brA_BFC08994 = cpu->gpr[0]; uint32_t psx_brB_BFC08994 = cpu->gpr[0]; - int psx_taken_BFC08994 = (psx_brA_BFC08994 == psx_brB_BFC08994); + psx_taken_BFC08994 = (psx_brA_BFC08994 == psx_brB_BFC08994); /* 0xBFC08998: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC08994) goto label_BFC089B0; @@ -29941,7 +30888,7 @@ label_BFC0899C: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC089A0: 1465FFF5 bne $v1, $a1, 0xBFC08978 */ uint32_t psx_brA_BFC089A0 = cpu->gpr[3]; uint32_t psx_brB_BFC089A0 = cpu->gpr[5]; - int psx_taken_BFC089A0 = (psx_brA_BFC089A0 != psx_brB_BFC089A0); + psx_taken_BFC089A0 = (psx_brA_BFC089A0 != psx_brB_BFC089A0); /* 0xBFC089A4: 24420004 addiu $v0, $v0, 4 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); if (psx_taken_BFC089A0) goto label_BFC08978; @@ -29952,7 +30899,7 @@ label_BFC089A8: psx_check_interrupts(cpu); /* 0xBFC089A8: 1000FFF0 beq $zero, $zero, 0xBFC0896C */ uint32_t psx_brA_BFC089A8 = cpu->gpr[0]; uint32_t psx_brB_BFC089A8 = cpu->gpr[0]; - int psx_taken_BFC089A8 = (psx_brA_BFC089A8 == psx_brB_BFC089A8); + psx_taken_BFC089A8 = (psx_brA_BFC089A8 == psx_brB_BFC089A8); /* 0xBFC089AC: 00000000 nop */ /* nop */ if (psx_taken_BFC089A8) goto label_BFC0896C; @@ -29985,6 +30932,19 @@ void func_1FC089C0(CPUState* cpu) { default: break; } } + int psx_taken_BFC089E8 = 0; + int psx_taken_BFC08A10 = 0; + int psx_taken_BFC08A20 = 0; + int psx_taken_BFC08A30 = 0; + int psx_taken_BFC08A40 = 0; + int psx_taken_BFC08A54 = 0; + int psx_taken_BFC08A64 = 0; + int psx_taken_BFC08A6C = 0; + int psx_taken_BFC08A78 = 0; + int psx_taken_BFC08A80 = 0; + int psx_taken_BFC08A90 = 0; + int psx_taken_BFC08AD0 = 0; + int psx_taken_BFC08B18 = 0; label_BFC089C0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -30012,7 +30972,7 @@ label_BFC089C0: cpu->gpr[5] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC089E8: 06210002 bgez $s1, 0xBFC089F4 */ uint32_t psx_brA_BFC089E8 = cpu->gpr[17]; - int psx_taken_BFC089E8 = ((int32_t)psx_brA_BFC089E8 >= 0); + psx_taken_BFC089E8 = ((int32_t)psx_brA_BFC089E8 >= 0); /* 0xBFC089EC: 02200821 addu $at, $s1, $zero */ cpu->gpr[1] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC089E8) goto label_BFC089F4; @@ -30050,7 +31010,7 @@ label_BFC08A0C: cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC08A10: 14520022 bne $v0, $s2, 0xBFC08A9C */ uint32_t psx_brA_BFC08A10 = cpu->gpr[2]; uint32_t psx_brB_BFC08A10 = cpu->gpr[18]; - int psx_taken_BFC08A10 = (psx_brA_BFC08A10 != psx_brB_BFC08A10); + psx_taken_BFC08A10 = (psx_brA_BFC08A10 != psx_brB_BFC08A10); /* 0xBFC08A14: 8FA9002C lw $t1, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08A14u); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } if (psx_taken_BFC08A10) goto label_BFC08A9C; @@ -30071,7 +31031,7 @@ label_BFC08A20: psx_check_interrupts(cpu); /* 0xBFC08A20: 14400015 bne $v0, $zero, 0xBFC08A78 */ uint32_t psx_brA_BFC08A20 = cpu->gpr[2]; uint32_t psx_brB_BFC08A20 = cpu->gpr[0]; - int psx_taken_BFC08A20 = (psx_brA_BFC08A20 != psx_brB_BFC08A20); + psx_taken_BFC08A20 = (psx_brA_BFC08A20 != psx_brB_BFC08A20); /* 0xBFC08A24: 24010003 addiu $at, $zero, 3 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); if (psx_taken_BFC08A20) goto label_BFC08A78; @@ -30086,7 +31046,7 @@ label_BFC08A28: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (77)); /* 0xBFC08A30: 17010005 bne $t8, $at, 0xBFC08A48 */ uint32_t psx_brA_BFC08A30 = cpu->gpr[24]; uint32_t psx_brB_BFC08A30 = cpu->gpr[1]; - int psx_taken_BFC08A30 = (psx_brA_BFC08A30 != psx_brB_BFC08A30); + psx_taken_BFC08A30 = (psx_brA_BFC08A30 != psx_brB_BFC08A30); /* 0xBFC08A34: 00000000 nop */ /* nop */ if (psx_taken_BFC08A30) goto label_BFC08A48; @@ -30101,7 +31061,7 @@ label_BFC08A38: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (67)); /* 0xBFC08A40: 1321000A beq $t9, $at, 0xBFC08A6C */ uint32_t psx_brA_BFC08A40 = cpu->gpr[25]; uint32_t psx_brB_BFC08A40 = cpu->gpr[1]; - int psx_taken_BFC08A40 = (psx_brA_BFC08A40 == psx_brB_BFC08A40); + psx_taken_BFC08A40 = (psx_brA_BFC08A40 == psx_brB_BFC08A40); /* 0xBFC08A44: 00000000 nop */ /* nop */ if (psx_taken_BFC08A40) goto label_BFC08A6C; @@ -30118,7 +31078,7 @@ label_BFC08A48: /* nop */ /* 0xBFC08A54: 15120011 bne $t0, $s2, 0xBFC08A9C */ uint32_t psx_brA_BFC08A54 = cpu->gpr[8]; uint32_t psx_brB_BFC08A54 = cpu->gpr[18]; - int psx_taken_BFC08A54 = (psx_brA_BFC08A54 != psx_brB_BFC08A54); + psx_taken_BFC08A54 = (psx_brA_BFC08A54 != psx_brB_BFC08A54); /* 0xBFC08A58: 8FA9002C lw $t1, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08A58u); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } if (psx_taken_BFC08A54) goto label_BFC08A9C; @@ -30139,7 +31099,7 @@ label_BFC08A64: psx_check_interrupts(cpu); /* 0xBFC08A64: 10000030 beq $zero, $zero, 0xBFC08B28 */ uint32_t psx_brA_BFC08A64 = cpu->gpr[0]; uint32_t psx_brB_BFC08A64 = cpu->gpr[0]; - int psx_taken_BFC08A64 = (psx_brA_BFC08A64 == psx_brB_BFC08A64); + psx_taken_BFC08A64 = (psx_brA_BFC08A64 == psx_brB_BFC08A64); /* 0xBFC08A68: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08A68u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC08A64) goto label_BFC08B28; @@ -30150,7 +31110,7 @@ label_BFC08A6C: psx_check_interrupts(cpu); /* 0xBFC08A6C: 1000002D beq $zero, $zero, 0xBFC08B24 */ uint32_t psx_brA_BFC08A6C = cpu->gpr[0]; uint32_t psx_brB_BFC08A6C = cpu->gpr[0]; - int psx_taken_BFC08A6C = (psx_brA_BFC08A6C == psx_brB_BFC08A6C); + psx_taken_BFC08A6C = (psx_brA_BFC08A6C == psx_brB_BFC08A6C); /* 0xBFC08A70: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC08A6C) goto label_BFC08B24; @@ -30168,7 +31128,7 @@ label_BFC08A78: psx_check_interrupts(cpu); /* 0xBFC08A78: 10410003 beq $v0, $at, 0xBFC08A88 */ uint32_t psx_brA_BFC08A78 = cpu->gpr[2]; uint32_t psx_brB_BFC08A78 = cpu->gpr[1]; - int psx_taken_BFC08A78 = (psx_brA_BFC08A78 == psx_brB_BFC08A78); + psx_taken_BFC08A78 = (psx_brA_BFC08A78 == psx_brB_BFC08A78); /* 0xBFC08A7C: 00000000 nop */ /* nop */ if (psx_taken_BFC08A78) goto label_BFC08A88; @@ -30179,7 +31139,7 @@ label_BFC08A80: psx_check_interrupts(cpu); /* 0xBFC08A80: 10000028 beq $zero, $zero, 0xBFC08B24 */ uint32_t psx_brA_BFC08A80 = cpu->gpr[0]; uint32_t psx_brB_BFC08A80 = cpu->gpr[0]; - int psx_taken_BFC08A80 = (psx_brA_BFC08A80 == psx_brB_BFC08A80); + psx_taken_BFC08A80 = (psx_brA_BFC08A80 == psx_brB_BFC08A80); /* 0xBFC08A84: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC08A80) goto label_BFC08B24; @@ -30200,7 +31160,7 @@ label_BFC08A90: psx_check_interrupts(cpu); /* 0xBFC08A90: 10000025 beq $zero, $zero, 0xBFC08B28 */ uint32_t psx_brA_BFC08A90 = cpu->gpr[0]; uint32_t psx_brB_BFC08A90 = cpu->gpr[0]; - int psx_taken_BFC08A90 = (psx_brA_BFC08A90 == psx_brB_BFC08A90); + psx_taken_BFC08A90 = (psx_brA_BFC08A90 == psx_brB_BFC08A90); /* 0xBFC08A94: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08A94u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC08A90) goto label_BFC08B28; @@ -30255,7 +31215,7 @@ label_BFC08ACC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC08AD0: 1611FFFB bne $s0, $s1, 0xBFC08AC0 */ uint32_t psx_brA_BFC08AD0 = cpu->gpr[16]; uint32_t psx_brB_BFC08AD0 = cpu->gpr[17]; - int psx_taken_BFC08AD0 = (psx_brA_BFC08AD0 != psx_brB_BFC08AD0); + psx_taken_BFC08AD0 = (psx_brA_BFC08AD0 != psx_brB_BFC08AD0); /* 0xBFC08AD4: 00106140 sll $t4, $s0, 5 */ cpu->gpr[12] = cpu->gpr[16] << 5u; if (psx_taken_BFC08AD0) goto label_BFC08AC0; @@ -30303,7 +31263,7 @@ label_BFC08B00: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (8)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08B14u); return; } g_debug_last_store_pc = 0xBFC08B14u; cpu->write_word(psx_addr, cpu->gpr[3]); } /* 0xBFC08B18: 1604FFF9 bne $s0, $a0, 0xBFC08B00 */ uint32_t psx_brA_BFC08B18 = cpu->gpr[16]; uint32_t psx_brB_BFC08B18 = cpu->gpr[4]; - int psx_taken_BFC08B18 = (psx_brA_BFC08B18 != psx_brB_BFC08B18); + psx_taken_BFC08B18 = (psx_brA_BFC08B18 != psx_brB_BFC08B18); /* 0xBFC08B1C: AC43000C sw $v1, 12($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (12)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08B1Cu); return; } g_debug_last_store_pc = 0xBFC08B1Cu; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC08B18) goto label_BFC08B00; @@ -30365,6 +31325,44 @@ void func_1FC08B3C(CPUState* cpu) { default: break; } } + int psx_taken_BFC08B74 = 0; + int psx_taken_BFC08B9C = 0; + int psx_taken_BFC08BAC = 0; + int psx_taken_BFC08BEC = 0; + int psx_taken_BFC08BFC = 0; + int psx_taken_BFC08C0C = 0; + int psx_taken_BFC08C20 = 0; + int psx_taken_BFC08C34 = 0; + int psx_taken_BFC08C74 = 0; + int psx_taken_BFC08CE8 = 0; + int psx_taken_BFC08D08 = 0; + int psx_taken_BFC08D18 = 0; + int psx_taken_BFC08D3C = 0; + int psx_taken_BFC08D4C = 0; + int psx_taken_BFC08D70 = 0; + int psx_taken_BFC08D90 = 0; + int psx_taken_BFC08DBC = 0; + int psx_taken_BFC08DCC = 0; + int psx_taken_BFC08DFC = 0; + int psx_taken_BFC08E24 = 0; + int psx_taken_BFC08E2C = 0; + int psx_taken_BFC08E4C = 0; + int psx_taken_BFC08E60 = 0; + int psx_taken_BFC08E68 = 0; + int psx_taken_BFC08E98 = 0; + int psx_taken_BFC08EA0 = 0; + int psx_taken_BFC08EB0 = 0; + int psx_taken_BFC08ECC = 0; + int psx_taken_BFC08EF0 = 0; + int psx_taken_BFC08F28 = 0; + int psx_taken_BFC08F38 = 0; + int psx_taken_BFC08F40 = 0; + int psx_taken_BFC08F50 = 0; + int psx_taken_BFC08F58 = 0; + int psx_taken_BFC08F7C = 0; + int psx_taken_BFC08F84 = 0; + int psx_taken_BFC08FA0 = 0; + int psx_taken_BFC08FCC = 0; label_BFC08B3C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -30406,7 +31404,7 @@ label_BFC08B64: cpu->gpr[5] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC08B74: 04810002 bgez $a0, 0xBFC08B80 */ uint32_t psx_brA_BFC08B74 = cpu->gpr[4]; - int psx_taken_BFC08B74 = ((int32_t)psx_brA_BFC08B74 >= 0); + psx_taken_BFC08B74 = ((int32_t)psx_brA_BFC08B74 >= 0); /* 0xBFC08B78: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC08B74) goto label_BFC08B80; @@ -30444,7 +31442,7 @@ label_BFC08B98: cpu->gpr[21] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC08B9C: 14550006 bne $v0, $s5, 0xBFC08BB8 */ uint32_t psx_brA_BFC08B9C = cpu->gpr[2]; uint32_t psx_brB_BFC08B9C = cpu->gpr[21]; - int psx_taken_BFC08B9C = (psx_brA_BFC08B9C != psx_brB_BFC08B9C); + psx_taken_BFC08B9C = (psx_brA_BFC08B9C != psx_brB_BFC08B9C); /* 0xBFC08BA0: 8FA2004C lw $v0, 76($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08BA0u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC08B9C) goto label_BFC08BB8; @@ -30465,7 +31463,7 @@ label_BFC08BAC: psx_check_interrupts(cpu); /* 0xBFC08BAC: 14400011 bne $v0, $zero, 0xBFC08BF4 */ uint32_t psx_brA_BFC08BAC = cpu->gpr[2]; uint32_t psx_brB_BFC08BAC = cpu->gpr[0]; - int psx_taken_BFC08BAC = (psx_brA_BFC08BAC != psx_brB_BFC08BAC); + psx_taken_BFC08BAC = (psx_brA_BFC08BAC != psx_brB_BFC08BAC); /* 0xBFC08BB0: 00000000 nop */ /* nop */ if (psx_taken_BFC08BAC) goto label_BFC08BF4; @@ -30509,7 +31507,7 @@ label_BFC08BB8: cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC08BEC: 100000E7 beq $zero, $zero, 0xBFC08F8C */ uint32_t psx_brA_BFC08BEC = cpu->gpr[0]; uint32_t psx_brB_BFC08BEC = cpu->gpr[0]; - int psx_taken_BFC08BEC = (psx_brA_BFC08BEC == psx_brB_BFC08BEC); + psx_taken_BFC08BEC = (psx_brA_BFC08BEC == psx_brB_BFC08BEC); /* 0xBFC08BF0: 2414000F addiu $s4, $zero, 15 */ cpu->gpr[20] = (uint32_t)((int32_t)cpu->gpr[0] + (15)); if (psx_taken_BFC08BEC) goto label_BFC08F8C; @@ -30524,7 +31522,7 @@ label_BFC08BF4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (77)); /* 0xBFC08BFC: 15610005 bne $t3, $at, 0xBFC08C14 */ uint32_t psx_brA_BFC08BFC = cpu->gpr[11]; uint32_t psx_brB_BFC08BFC = cpu->gpr[1]; - int psx_taken_BFC08BFC = (psx_brA_BFC08BFC != psx_brB_BFC08BFC); + psx_taken_BFC08BFC = (psx_brA_BFC08BFC != psx_brB_BFC08BFC); /* 0xBFC08C00: 00000000 nop */ /* nop */ if (psx_taken_BFC08BFC) goto label_BFC08C14; @@ -30539,7 +31537,7 @@ label_BFC08C04: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (67)); /* 0xBFC08C0C: 1181001B beq $t4, $at, 0xBFC08C7C */ uint32_t psx_brA_BFC08C0C = cpu->gpr[12]; uint32_t psx_brB_BFC08C0C = cpu->gpr[1]; - int psx_taken_BFC08C0C = (psx_brA_BFC08C0C == psx_brB_BFC08C0C); + psx_taken_BFC08C0C = (psx_brA_BFC08C0C == psx_brB_BFC08C0C); /* 0xBFC08C10: 00000000 nop */ /* nop */ if (psx_taken_BFC08C0C) goto label_BFC08C7C; @@ -30556,7 +31554,7 @@ label_BFC08C14: /* nop */ /* 0xBFC08C20: 15B50007 bne $t5, $s5, 0xBFC08C40 */ uint32_t psx_brA_BFC08C20 = cpu->gpr[13]; uint32_t psx_brB_BFC08C20 = cpu->gpr[21]; - int psx_taken_BFC08C20 = (psx_brA_BFC08C20 != psx_brB_BFC08C20); + psx_taken_BFC08C20 = (psx_brA_BFC08C20 != psx_brB_BFC08C20); /* 0xBFC08C24: 8FA2004C lw $v0, 76($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08C24u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC08C20) goto label_BFC08C40; @@ -30579,7 +31577,7 @@ label_BFC08C34: psx_check_interrupts(cpu); /* 0xBFC08C34: 100000E9 beq $zero, $zero, 0xBFC08FDC */ uint32_t psx_brA_BFC08C34 = cpu->gpr[0]; uint32_t psx_brB_BFC08C34 = cpu->gpr[0]; - int psx_taken_BFC08C34 = (psx_brA_BFC08C34 == psx_brB_BFC08C34); + psx_taken_BFC08C34 = (psx_brA_BFC08C34 == psx_brB_BFC08C34); /* 0xBFC08C38: 8FBF0034 lw $ra, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08C38u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC08C34) goto label_BFC08FDC; @@ -30623,7 +31621,7 @@ label_BFC08C40: cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC08C74: 100000C5 beq $zero, $zero, 0xBFC08F8C */ uint32_t psx_brA_BFC08C74 = cpu->gpr[0]; uint32_t psx_brB_BFC08C74 = cpu->gpr[0]; - int psx_taken_BFC08C74 = (psx_brA_BFC08C74 == psx_brB_BFC08C74); + psx_taken_BFC08C74 = (psx_brA_BFC08C74 == psx_brB_BFC08C74); /* 0xBFC08C78: 2414000F addiu $s4, $zero, 15 */ cpu->gpr[20] = (uint32_t)((int32_t)cpu->gpr[0] + (15)); if (psx_taken_BFC08C74) goto label_BFC08F8C; @@ -30717,7 +31715,7 @@ label_BFC08CD8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08CE4u); return; } g_debug_last_store_pc = 0xBFC08CE4u; cpu->write_word(psx_addr, cpu->gpr[13]); } /* 0xBFC08CE8: 1614FFF5 bne $s0, $s4, 0xBFC08CC0 */ uint32_t psx_brA_BFC08CE8 = cpu->gpr[16]; uint32_t psx_brB_BFC08CE8 = cpu->gpr[20]; - int psx_taken_BFC08CE8 = (psx_brA_BFC08CE8 != psx_brB_BFC08CE8); + psx_taken_BFC08CE8 = (psx_brA_BFC08CE8 != psx_brB_BFC08CE8); /* 0xBFC08CEC: ACC00004 sw $zero, 4($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08CECu); return; } g_debug_last_store_pc = 0xBFC08CECu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC08CE8) goto label_BFC08CC0; @@ -30751,7 +31749,7 @@ label_BFC08D08: psx_check_interrupts(cpu); /* 0xBFC08D08: 14550006 bne $v0, $s5, 0xBFC08D24 */ uint32_t psx_brA_BFC08D08 = cpu->gpr[2]; uint32_t psx_brB_BFC08D08 = cpu->gpr[21]; - int psx_taken_BFC08D08 = (psx_brA_BFC08D08 != psx_brB_BFC08D08); + psx_taken_BFC08D08 = (psx_brA_BFC08D08 != psx_brB_BFC08D08); /* 0xBFC08D0C: 8FAE004C lw $t6, 76($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08D0Cu); return; } cpu->gpr[14] = cpu->read_word(psx_addr); } if (psx_taken_BFC08D08) goto label_BFC08D24; @@ -30772,7 +31770,7 @@ label_BFC08D18: psx_check_interrupts(cpu); /* 0xBFC08D18: 1440000A bne $v0, $zero, 0xBFC08D44 */ uint32_t psx_brA_BFC08D18 = cpu->gpr[2]; uint32_t psx_brB_BFC08D18 = cpu->gpr[0]; - int psx_taken_BFC08D18 = (psx_brA_BFC08D18 != psx_brB_BFC08D18); + psx_taken_BFC08D18 = (psx_brA_BFC08D18 != psx_brB_BFC08D18); /* 0xBFC08D1C: 00000000 nop */ /* nop */ if (psx_taken_BFC08D18) goto label_BFC08D44; @@ -30802,7 +31800,7 @@ label_BFC08D24: cpu->gpr[17] = cpu->gpr[15] + cpu->gpr[24]; /* 0xBFC08D3C: 10000093 beq $zero, $zero, 0xBFC08F8C */ uint32_t psx_brA_BFC08D3C = cpu->gpr[0]; uint32_t psx_brB_BFC08D3C = cpu->gpr[0]; - int psx_taken_BFC08D3C = (psx_brA_BFC08D3C == psx_brB_BFC08D3C); + psx_taken_BFC08D3C = (psx_brA_BFC08D3C == psx_brB_BFC08D3C); /* 0xBFC08D40: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC08D3C) goto label_BFC08F8C; @@ -30823,7 +31821,7 @@ label_BFC08D4C: psx_check_interrupts(cpu); /* 0xBFC08D4C: 1440000B bne $v0, $zero, 0xBFC08D7C */ uint32_t psx_brA_BFC08D4C = cpu->gpr[2]; uint32_t psx_brB_BFC08D4C = cpu->gpr[0]; - int psx_taken_BFC08D4C = (psx_brA_BFC08D4C != psx_brB_BFC08D4C); + psx_taken_BFC08D4C = (psx_brA_BFC08D4C != psx_brB_BFC08D4C); /* 0xBFC08D50: 00105940 sll $t3, $s0, 5 */ cpu->gpr[11] = cpu->gpr[16] << 5u; if (psx_taken_BFC08D4C) goto label_BFC08D7C; @@ -30848,7 +31846,7 @@ label_BFC08D54: cpu->gpr[17] = cpu->gpr[9] + cpu->gpr[10]; /* 0xBFC08D70: 10000086 beq $zero, $zero, 0xBFC08F8C */ uint32_t psx_brA_BFC08D70 = cpu->gpr[0]; uint32_t psx_brB_BFC08D70 = cpu->gpr[0]; - int psx_taken_BFC08D70 = (psx_brA_BFC08D70 == psx_brB_BFC08D70); + psx_taken_BFC08D70 = (psx_brA_BFC08D70 == psx_brB_BFC08D70); /* 0xBFC08D74: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC08D70) goto label_BFC08F8C; @@ -30882,7 +31880,7 @@ label_BFC08D8C: cpu->gpr[16] = cpu->gpr[17] + cpu->gpr[0]; /* 0xBFC08D90: 1614FFD9 bne $s0, $s4, 0xBFC08CF8 */ uint32_t psx_brA_BFC08D90 = cpu->gpr[16]; uint32_t psx_brB_BFC08D90 = cpu->gpr[20]; - int psx_taken_BFC08D90 = (psx_brA_BFC08D90 != psx_brB_BFC08D90); + psx_taken_BFC08D90 = (psx_brA_BFC08D90 != psx_brB_BFC08D90); /* 0xBFC08D94: 8FA400A8 lw $a0, 168($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08D94u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC08D90) goto label_BFC08CF8; @@ -30922,7 +31920,7 @@ label_BFC08DB8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08DB8u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC08DBC: 14550002 bne $v0, $s5, 0xBFC08DC8 */ uint32_t psx_brA_BFC08DBC = cpu->gpr[2]; uint32_t psx_brB_BFC08DBC = cpu->gpr[21]; - int psx_taken_BFC08DBC = (psx_brA_BFC08DBC != psx_brB_BFC08DBC); + psx_taken_BFC08DBC = (psx_brA_BFC08DBC != psx_brB_BFC08DBC); /* 0xBFC08DC0: 00000000 nop */ /* nop */ if (psx_taken_BFC08DBC) goto label_BFC08DC8; @@ -30942,7 +31940,7 @@ label_BFC08DC8: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC08DCC: 1614FFF5 bne $s0, $s4, 0xBFC08DA4 */ uint32_t psx_brA_BFC08DCC = cpu->gpr[16]; uint32_t psx_brB_BFC08DCC = cpu->gpr[20]; - int psx_taken_BFC08DCC = (psx_brA_BFC08DCC != psx_brB_BFC08DCC); + psx_taken_BFC08DCC = (psx_brA_BFC08DCC != psx_brB_BFC08DCC); /* 0xBFC08DD0: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC08DCC) goto label_BFC08DA4; @@ -30978,7 +31976,7 @@ label_BFC08DEC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-88)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08DF8u); return; } g_debug_last_store_pc = 0xBFC08DF8u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC08DFC: 1462FFFB bne $v1, $v0, 0xBFC08DEC */ uint32_t psx_brA_BFC08DFC = cpu->gpr[3]; uint32_t psx_brB_BFC08DFC = cpu->gpr[2]; - int psx_taken_BFC08DFC = (psx_brA_BFC08DFC != psx_brB_BFC08DFC); + psx_taken_BFC08DFC = (psx_brA_BFC08DFC != psx_brB_BFC08DFC); /* 0xBFC08E00: AC60FFAC sw $zero, -84($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-84)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08E00u); return; } g_debug_last_store_pc = 0xBFC08E00u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC08DFC) goto label_BFC08DEC; @@ -31010,7 +32008,7 @@ label_BFC08E18: /* nop */ /* 0xBFC08E24: 10E20004 beq $a3, $v0, 0xBFC08E38 */ uint32_t psx_brA_BFC08E24 = cpu->gpr[7]; uint32_t psx_brB_BFC08E24 = cpu->gpr[2]; - int psx_taken_BFC08E24 = (psx_brA_BFC08E24 == psx_brB_BFC08E24); + psx_taken_BFC08E24 = (psx_brA_BFC08E24 == psx_brB_BFC08E24); /* 0xBFC08E28: 00106880 sll $t5, $s0, 2 */ cpu->gpr[13] = cpu->gpr[16] << 2u; if (psx_taken_BFC08E24) goto label_BFC08E38; @@ -31021,7 +32019,7 @@ label_BFC08E2C: psx_check_interrupts(cpu); /* 0xBFC08E2C: 1502001E bne $t0, $v0, 0xBFC08EA8 */ uint32_t psx_brA_BFC08E2C = cpu->gpr[8]; uint32_t psx_brB_BFC08E2C = cpu->gpr[2]; - int psx_taken_BFC08E2C = (psx_brA_BFC08E2C != psx_brB_BFC08E2C); + psx_taken_BFC08E2C = (psx_brA_BFC08E2C != psx_brB_BFC08E2C); /* 0xBFC08E30: 00000000 nop */ /* nop */ if (psx_taken_BFC08E2C) goto label_BFC08EA8; @@ -31049,7 +32047,7 @@ label_BFC08E38: /* nop */ /* 0xBFC08E4C: 04810002 bgez $a0, 0xBFC08E58 */ uint32_t psx_brA_BFC08E4C = cpu->gpr[4]; - int psx_taken_BFC08E4C = ((int32_t)psx_brA_BFC08E4C >= 0); + psx_taken_BFC08E4C = ((int32_t)psx_brA_BFC08E4C >= 0); /* 0xBFC08E50: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC08E4C) goto label_BFC08E58; @@ -31071,7 +32069,7 @@ label_BFC08E58: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (-1)); /* 0xBFC08E60: 18800011 blez $a0, 0xBFC08EA8 */ uint32_t psx_brA_BFC08E60 = cpu->gpr[4]; - int psx_taken_BFC08E60 = ((int32_t)psx_brA_BFC08E60 <= 0); + psx_taken_BFC08E60 = ((int32_t)psx_brA_BFC08E60 <= 0); /* 0xBFC08E64: 00000000 nop */ /* nop */ if (psx_taken_BFC08E60) goto label_BFC08EA8; @@ -31082,7 +32080,7 @@ label_BFC08E68: psx_check_interrupts(cpu); /* 0xBFC08E68: 1065000F beq $v1, $a1, 0xBFC08EA8 */ uint32_t psx_brA_BFC08E68 = cpu->gpr[3]; uint32_t psx_brB_BFC08E68 = cpu->gpr[5]; - int psx_taken_BFC08E68 = (psx_brA_BFC08E68 == psx_brB_BFC08E68); + psx_taken_BFC08E68 = (psx_brA_BFC08E68 == psx_brB_BFC08E68); /* 0xBFC08E6C: 00000000 nop */ /* nop */ if (psx_taken_BFC08E68) goto label_BFC08EA8; @@ -31118,7 +32116,7 @@ label_BFC08E74: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (-1)); /* 0xBFC08E98: 18800003 blez $a0, 0xBFC08EA8 */ uint32_t psx_brA_BFC08E98 = cpu->gpr[4]; - int psx_taken_BFC08E98 = ((int32_t)psx_brA_BFC08E98 <= 0); + psx_taken_BFC08E98 = ((int32_t)psx_brA_BFC08E98 <= 0); /* 0xBFC08E9C: 00000000 nop */ /* nop */ if (psx_taken_BFC08E98) goto label_BFC08EA8; @@ -31129,7 +32127,7 @@ label_BFC08EA0: psx_check_interrupts(cpu); /* 0xBFC08EA0: 1465FFF4 bne $v1, $a1, 0xBFC08E74 */ uint32_t psx_brA_BFC08EA0 = cpu->gpr[3]; uint32_t psx_brB_BFC08EA0 = cpu->gpr[5]; - int psx_taken_BFC08EA0 = (psx_brA_BFC08EA0 != psx_brB_BFC08EA0); + psx_taken_BFC08EA0 = (psx_brA_BFC08EA0 != psx_brB_BFC08EA0); /* 0xBFC08EA4: 00037880 sll $t7, $v1, 2 */ cpu->gpr[15] = cpu->gpr[3] << 2u; if (psx_taken_BFC08EA0) goto label_BFC08E74; @@ -31144,7 +32142,7 @@ label_BFC08EA8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (15) ? 1 : 0); /* 0xBFC08EB0: 1420FFD9 bne $at, $zero, 0xBFC08E18 */ uint32_t psx_brA_BFC08EB0 = cpu->gpr[1]; uint32_t psx_brB_BFC08EB0 = cpu->gpr[0]; - int psx_taken_BFC08EB0 = (psx_brA_BFC08EB0 != psx_brB_BFC08EB0); + psx_taken_BFC08EB0 = (psx_brA_BFC08EB0 != psx_brB_BFC08EB0); /* 0xBFC08EB4: 00106140 sll $t4, $s0, 5 */ cpu->gpr[12] = cpu->gpr[16] << 5u; if (psx_taken_BFC08EB0) goto label_BFC08E18; @@ -31170,7 +32168,7 @@ label_BFC08EC4: /* nop */ /* 0xBFC08ECC: 15800007 bne $t4, $zero, 0xBFC08EEC */ uint32_t psx_brA_BFC08ECC = cpu->gpr[12]; uint32_t psx_brB_BFC08ECC = cpu->gpr[0]; - int psx_taken_BFC08ECC = (psx_brA_BFC08ECC != psx_brB_BFC08ECC); + psx_taken_BFC08ECC = (psx_brA_BFC08ECC != psx_brB_BFC08ECC); /* 0xBFC08ED0: 00000000 nop */ /* nop */ if (psx_taken_BFC08ECC) goto label_BFC08EEC; @@ -31200,7 +32198,7 @@ label_BFC08EEC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC08EF0: 1614FFF4 bne $s0, $s4, 0xBFC08EC4 */ uint32_t psx_brA_BFC08EF0 = cpu->gpr[16]; uint32_t psx_brB_BFC08EF0 = cpu->gpr[20]; - int psx_taken_BFC08EF0 = (psx_brA_BFC08EF0 != psx_brB_BFC08EF0); + psx_taken_BFC08EF0 = (psx_brA_BFC08EF0 != psx_brB_BFC08EF0); /* 0xBFC08EF4: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC08EF0) goto label_BFC08EC4; @@ -31246,7 +32244,7 @@ label_BFC08F28: psx_check_interrupts(cpu); /* 0xBFC08F28: 14550005 bne $v0, $s5, 0xBFC08F40 */ uint32_t psx_brA_BFC08F28 = cpu->gpr[2]; uint32_t psx_brB_BFC08F28 = cpu->gpr[21]; - int psx_taken_BFC08F28 = (psx_brA_BFC08F28 != psx_brB_BFC08F28); + psx_taken_BFC08F28 = (psx_brA_BFC08F28 != psx_brB_BFC08F28); /* 0xBFC08F2C: 00000000 nop */ /* nop */ if (psx_taken_BFC08F28) goto label_BFC08F40; @@ -31267,7 +32265,7 @@ label_BFC08F38: psx_check_interrupts(cpu); /* 0xBFC08F38: 14400003 bne $v0, $zero, 0xBFC08F48 */ uint32_t psx_brA_BFC08F38 = cpu->gpr[2]; uint32_t psx_brB_BFC08F38 = cpu->gpr[0]; - int psx_taken_BFC08F38 = (psx_brA_BFC08F38 != psx_brB_BFC08F38); + psx_taken_BFC08F38 = (psx_brA_BFC08F38 != psx_brB_BFC08F38); /* 0xBFC08F3C: 00000000 nop */ /* nop */ if (psx_taken_BFC08F38) goto label_BFC08F48; @@ -31278,7 +32276,7 @@ label_BFC08F40: psx_check_interrupts(cpu); /* 0xBFC08F40: 10000012 beq $zero, $zero, 0xBFC08F8C */ uint32_t psx_brA_BFC08F40 = cpu->gpr[0]; uint32_t psx_brB_BFC08F40 = cpu->gpr[0]; - int psx_taken_BFC08F40 = (psx_brA_BFC08F40 == psx_brB_BFC08F40); + psx_taken_BFC08F40 = (psx_brA_BFC08F40 == psx_brB_BFC08F40); /* 0xBFC08F44: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC08F40) goto label_BFC08F8C; @@ -31299,7 +32297,7 @@ label_BFC08F50: psx_check_interrupts(cpu); /* 0xBFC08F50: 14400004 bne $v0, $zero, 0xBFC08F64 */ uint32_t psx_brA_BFC08F50 = cpu->gpr[2]; uint32_t psx_brB_BFC08F50 = cpu->gpr[0]; - int psx_taken_BFC08F50 = (psx_brA_BFC08F50 != psx_brB_BFC08F50); + psx_taken_BFC08F50 = (psx_brA_BFC08F50 != psx_brB_BFC08F50); /* 0xBFC08F54: 00104880 sll $t1, $s0, 2 */ cpu->gpr[9] = cpu->gpr[16] << 2u; if (psx_taken_BFC08F50) goto label_BFC08F64; @@ -31310,7 +32308,7 @@ label_BFC08F58: psx_check_interrupts(cpu); /* 0xBFC08F58: 1000000C beq $zero, $zero, 0xBFC08F8C */ uint32_t psx_brA_BFC08F58 = cpu->gpr[0]; uint32_t psx_brB_BFC08F58 = cpu->gpr[0]; - int psx_taken_BFC08F58 = (psx_brA_BFC08F58 == psx_brB_BFC08F58); + psx_taken_BFC08F58 = (psx_brA_BFC08F58 == psx_brB_BFC08F58); /* 0xBFC08F5C: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC08F58) goto label_BFC08F8C; @@ -31346,7 +32344,7 @@ label_BFC08F74: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (20)); /* 0xBFC08F7C: 1601FFE7 bne $s0, $at, 0xBFC08F1C */ uint32_t psx_brA_BFC08F7C = cpu->gpr[16]; uint32_t psx_brB_BFC08F7C = cpu->gpr[1]; - int psx_taken_BFC08F7C = (psx_brA_BFC08F7C != psx_brB_BFC08F7C); + psx_taken_BFC08F7C = (psx_brA_BFC08F7C != psx_brB_BFC08F7C); /* 0xBFC08F80: 8FA400A8 lw $a0, 168($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08F80u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC08F7C) goto label_BFC08F1C; @@ -31357,7 +32355,7 @@ label_BFC08F84: psx_check_interrupts(cpu); /* 0xBFC08F84: 10000014 beq $zero, $zero, 0xBFC08FD8 */ uint32_t psx_brA_BFC08F84 = cpu->gpr[0]; uint32_t psx_brB_BFC08F84 = cpu->gpr[0]; - int psx_taken_BFC08F84 = (psx_brA_BFC08F84 == psx_brB_BFC08F84); + psx_taken_BFC08F84 = (psx_brA_BFC08F84 == psx_brB_BFC08F84); /* 0xBFC08F88: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC08F84) goto label_BFC08FD8; @@ -31389,7 +32387,7 @@ label_BFC08F9C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC08FA0: 1614FFFB bne $s0, $s4, 0xBFC08F90 */ uint32_t psx_brA_BFC08FA0 = cpu->gpr[16]; uint32_t psx_brB_BFC08FA0 = cpu->gpr[20]; - int psx_taken_BFC08FA0 = (psx_brA_BFC08FA0 != psx_brB_BFC08FA0); + psx_taken_BFC08FA0 = (psx_brA_BFC08FA0 != psx_brB_BFC08FA0); /* 0xBFC08FA4: 00105140 sll $t2, $s0, 5 */ cpu->gpr[10] = cpu->gpr[16] << 5u; if (psx_taken_BFC08FA0) goto label_BFC08F90; @@ -31423,7 +32421,7 @@ label_BFC08FB4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (8)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08FC8u); return; } g_debug_last_store_pc = 0xBFC08FC8u; cpu->write_word(psx_addr, cpu->gpr[3]); } /* 0xBFC08FCC: 1604FFF9 bne $s0, $a0, 0xBFC08FB4 */ uint32_t psx_brA_BFC08FCC = cpu->gpr[16]; uint32_t psx_brB_BFC08FCC = cpu->gpr[4]; - int psx_taken_BFC08FCC = (psx_brA_BFC08FCC != psx_brB_BFC08FCC); + psx_taken_BFC08FCC = (psx_brA_BFC08FCC != psx_brB_BFC08FCC); /* 0xBFC08FD0: AC43000C sw $v1, 12($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (12)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC08FD0u); return; } g_debug_last_store_pc = 0xBFC08FD0u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC08FCC) goto label_BFC08FB4; @@ -31466,6 +32464,23 @@ label_BFC08FDC: void func_1FC08FFC(CPUState* cpu) { debug_server_log_call_entry(0x1FC08FFCu); + int psx_taken_BFC09024 = 0; + int psx_taken_BFC0902C = 0; + int psx_taken_BFC09038 = 0; + int psx_taken_BFC09040 = 0; + int psx_taken_BFC09060 = 0; + int psx_taken_BFC09078 = 0; + int psx_taken_BFC09080 = 0; + int psx_taken_BFC0908C = 0; + int psx_taken_BFC090A8 = 0; + int psx_taken_BFC090B0 = 0; + int psx_taken_BFC090C0 = 0; + int psx_taken_BFC090C8 = 0; + int psx_taken_BFC090D0 = 0; + int psx_taken_BFC090F4 = 0; + int psx_taken_BFC090FC = 0; + int psx_taken_BFC09120 = 0; + int psx_taken_BFC09128 = 0; label_BFC08FFC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -31493,7 +32508,7 @@ label_BFC08FFC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (81)); /* 0xBFC09024: 14410004 bne $v0, $at, 0xBFC09038 */ uint32_t psx_brA_BFC09024 = cpu->gpr[2]; uint32_t psx_brB_BFC09024 = cpu->gpr[1]; - int psx_taken_BFC09024 = (psx_brA_BFC09024 != psx_brB_BFC09024); + psx_taken_BFC09024 = (psx_brA_BFC09024 != psx_brB_BFC09024); /* 0xBFC09028: 240100A1 addiu $at, $zero, 161 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (161)); if (psx_taken_BFC09024) goto label_BFC09038; @@ -31504,7 +32519,7 @@ label_BFC0902C: psx_check_interrupts(cpu); /* 0xBFC0902C: 10000008 beq $zero, $zero, 0xBFC09050 */ uint32_t psx_brA_BFC0902C = cpu->gpr[0]; uint32_t psx_brB_BFC0902C = cpu->gpr[0]; - int psx_taken_BFC0902C = (psx_brA_BFC0902C == psx_brB_BFC0902C); + psx_taken_BFC0902C = (psx_brA_BFC0902C == psx_brB_BFC0902C); /* 0xBFC09030: 240200A0 addiu $v0, $zero, 160 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (160)); if (psx_taken_BFC0902C) goto label_BFC09050; @@ -31522,7 +32537,7 @@ label_BFC09038: psx_check_interrupts(cpu); /* 0xBFC09038: 14410003 bne $v0, $at, 0xBFC09048 */ uint32_t psx_brA_BFC09038 = cpu->gpr[2]; uint32_t psx_brB_BFC09038 = cpu->gpr[1]; - int psx_taken_BFC09038 = (psx_brA_BFC09038 != psx_brB_BFC09038); + psx_taken_BFC09038 = (psx_brA_BFC09038 != psx_brB_BFC09038); /* 0xBFC0903C: 00000000 nop */ /* nop */ if (psx_taken_BFC09038) goto label_BFC09048; @@ -31533,7 +32548,7 @@ label_BFC09040: psx_check_interrupts(cpu); /* 0xBFC09040: 10000003 beq $zero, $zero, 0xBFC09050 */ uint32_t psx_brA_BFC09040 = cpu->gpr[0]; uint32_t psx_brB_BFC09040 = cpu->gpr[0]; - int psx_taken_BFC09040 = (psx_brA_BFC09040 == psx_brB_BFC09040); + psx_taken_BFC09040 = (psx_brA_BFC09040 == psx_brB_BFC09040); /* 0xBFC09044: 24020050 addiu $v0, $zero, 80 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (80)); if (psx_taken_BFC09040) goto label_BFC09050; @@ -31561,7 +32576,7 @@ label_BFC09050: /* nop */ /* 0xBFC09060: 04E10002 bgez $a3, 0xBFC0906C */ uint32_t psx_brA_BFC09060 = cpu->gpr[7]; - int psx_taken_BFC09060 = ((int32_t)psx_brA_BFC09060 >= 0); + psx_taken_BFC09060 = ((int32_t)psx_brA_BFC09060 >= 0); /* 0xBFC09064: 00E00821 addu $at, $a3, $zero */ cpu->gpr[1] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC09060) goto label_BFC0906C; @@ -31585,7 +32600,7 @@ label_BFC0906C: cpu->gpr[5] = cpu->gpr[7] + cpu->gpr[0]; /* 0xBFC09078: 1CA00003 bgtz $a1, 0xBFC09088 */ uint32_t psx_brA_BFC09078 = cpu->gpr[5]; - int psx_taken_BFC09078 = ((int32_t)psx_brA_BFC09078 > 0); + psx_taken_BFC09078 = ((int32_t)psx_brA_BFC09078 > 0); /* 0xBFC0907C: 01204021 addu $t0, $t1, $zero */ cpu->gpr[8] = cpu->gpr[9] + cpu->gpr[0]; if (psx_taken_BFC09078) goto label_BFC09088; @@ -31596,7 +32611,7 @@ label_BFC09080: psx_check_interrupts(cpu); /* 0xBFC09080: 10000013 beq $zero, $zero, 0xBFC090D0 */ uint32_t psx_brA_BFC09080 = cpu->gpr[0]; uint32_t psx_brB_BFC09080 = cpu->gpr[0]; - int psx_taken_BFC09080 = (psx_brA_BFC09080 == psx_brB_BFC09080); + psx_taken_BFC09080 = (psx_brA_BFC09080 == psx_brB_BFC09080); /* 0xBFC09084: 340BFFFF ori $t3, $zero, 0xFFFF */ cpu->gpr[11] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC09080) goto label_BFC090D0; @@ -31609,7 +32624,7 @@ label_BFC09088: cpu->gpr[11] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC0908C: 110B0010 beq $t0, $t3, 0xBFC090D0 */ uint32_t psx_brA_BFC0908C = cpu->gpr[8]; uint32_t psx_brB_BFC0908C = cpu->gpr[11]; - int psx_taken_BFC0908C = (psx_brA_BFC0908C == psx_brB_BFC0908C); + psx_taken_BFC0908C = (psx_brA_BFC0908C == psx_brB_BFC0908C); /* 0xBFC09090: 00000000 nop */ /* nop */ if (psx_taken_BFC0908C) goto label_BFC090D0; @@ -31635,7 +32650,7 @@ label_BFC09098: cpu->gpr[14] = cpu->gpr[13] & 0xF0u; /* 0xBFC090A8: 144E0003 bne $v0, $t6, 0xBFC090B8 */ uint32_t psx_brA_BFC090A8 = cpu->gpr[2]; uint32_t psx_brB_BFC090A8 = cpu->gpr[14]; - int psx_taken_BFC090A8 = (psx_brA_BFC090A8 != psx_brB_BFC090A8); + psx_taken_BFC090A8 = (psx_brA_BFC090A8 != psx_brB_BFC090A8); /* 0xBFC090AC: 00000000 nop */ /* nop */ if (psx_taken_BFC090A8) goto label_BFC090B8; @@ -31646,7 +32661,7 @@ label_BFC090B0: psx_check_interrupts(cpu); /* 0xBFC090B0: 10000007 beq $zero, $zero, 0xBFC090D0 */ uint32_t psx_brA_BFC090B0 = cpu->gpr[0]; uint32_t psx_brB_BFC090B0 = cpu->gpr[0]; - int psx_taken_BFC090B0 = (psx_brA_BFC090B0 == psx_brB_BFC090B0); + psx_taken_BFC090B0 = (psx_brA_BFC090B0 == psx_brB_BFC090B0); /* 0xBFC090B4: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC090B0) goto label_BFC090D0; @@ -31661,7 +32676,7 @@ label_BFC090B8: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-1)); /* 0xBFC090C0: 18A00003 blez $a1, 0xBFC090D0 */ uint32_t psx_brA_BFC090C0 = cpu->gpr[5]; - int psx_taken_BFC090C0 = ((int32_t)psx_brA_BFC090C0 <= 0); + psx_taken_BFC090C0 = ((int32_t)psx_brA_BFC090C0 <= 0); /* 0xBFC090C4: 00000000 nop */ /* nop */ if (psx_taken_BFC090C0) goto label_BFC090D0; @@ -31672,7 +32687,7 @@ label_BFC090C8: psx_check_interrupts(cpu); /* 0xBFC090C8: 150BFFF3 bne $t0, $t3, 0xBFC09098 */ uint32_t psx_brA_BFC090C8 = cpu->gpr[8]; uint32_t psx_brB_BFC090C8 = cpu->gpr[11]; - int psx_taken_BFC090C8 = (psx_brA_BFC090C8 != psx_brB_BFC090C8); + psx_taken_BFC090C8 = (psx_brA_BFC090C8 != psx_brB_BFC090C8); /* 0xBFC090CC: 0008C940 sll $t9, $t0, 5 */ cpu->gpr[25] = cpu->gpr[8] << 5u; if (psx_taken_BFC090C8) goto label_BFC09098; @@ -31683,7 +32698,7 @@ label_BFC090D0: psx_check_interrupts(cpu); /* 0xBFC090D0: 1480001A bne $a0, $zero, 0xBFC0913C */ uint32_t psx_brA_BFC090D0 = cpu->gpr[4]; uint32_t psx_brB_BFC090D0 = cpu->gpr[0]; - int psx_taken_BFC090D0 = (psx_brA_BFC090D0 != psx_brB_BFC090D0); + psx_taken_BFC090D0 = (psx_brA_BFC090D0 != psx_brB_BFC090D0); /* 0xBFC090D4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC090D0) goto label_BFC0913C; @@ -31708,7 +32723,7 @@ label_BFC090D8: cpu->gpr[8] = cpu->gpr[9] + cpu->gpr[0]; /* 0xBFC090F4: 18A0000E blez $a1, 0xBFC09130 */ uint32_t psx_brA_BFC090F4 = cpu->gpr[5]; - int psx_taken_BFC090F4 = ((int32_t)psx_brA_BFC090F4 <= 0); + psx_taken_BFC090F4 = ((int32_t)psx_brA_BFC090F4 <= 0); /* 0xBFC090F8: A4CC0008 sh $t4, 8($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (8)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC090F8u); return; } g_debug_last_store_pc = 0xBFC090F8u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[12] & 0xFFFFu)); } if (psx_taken_BFC090F4) goto label_BFC09130; @@ -31719,7 +32734,7 @@ label_BFC090FC: psx_check_interrupts(cpu); /* 0xBFC090FC: 110B000C beq $t0, $t3, 0xBFC09130 */ uint32_t psx_brA_BFC090FC = cpu->gpr[8]; uint32_t psx_brB_BFC090FC = cpu->gpr[11]; - int psx_taken_BFC090FC = (psx_brA_BFC090FC == psx_brB_BFC090FC); + psx_taken_BFC090FC = (psx_brA_BFC090FC == psx_brB_BFC090FC); /* 0xBFC09100: 00000000 nop */ /* nop */ if (psx_taken_BFC090FC) goto label_BFC09130; @@ -31749,7 +32764,7 @@ label_BFC09108: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[10] + (8)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0911Cu); return; } g_debug_last_store_pc = 0xBFC0911Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[12] & 0xFFFFu)); } /* 0xBFC09120: 18A00003 blez $a1, 0xBFC09130 */ uint32_t psx_brA_BFC09120 = cpu->gpr[5]; - int psx_taken_BFC09120 = ((int32_t)psx_brA_BFC09120 <= 0); + psx_taken_BFC09120 = ((int32_t)psx_brA_BFC09120 <= 0); /* 0xBFC09124: 00804021 addu $t0, $a0, $zero */ cpu->gpr[8] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC09120) goto label_BFC09130; @@ -31760,7 +32775,7 @@ label_BFC09128: psx_check_interrupts(cpu); /* 0xBFC09128: 148BFFF7 bne $a0, $t3, 0xBFC09108 */ uint32_t psx_brA_BFC09128 = cpu->gpr[4]; uint32_t psx_brB_BFC09128 = cpu->gpr[11]; - int psx_taken_BFC09128 = (psx_brA_BFC09128 != psx_brB_BFC09128); + psx_taken_BFC09128 = (psx_brA_BFC09128 != psx_brB_BFC09128); /* 0xBFC0912C: 00087940 sll $t7, $t0, 5 */ cpu->gpr[15] = cpu->gpr[8] << 5u; if (psx_taken_BFC09128) goto label_BFC09108; @@ -31795,6 +32810,12 @@ void func_1FC09144(CPUState* cpu) { default: break; } } + int psx_taken_BFC09164 = 0; + int psx_taken_BFC09174 = 0; + int psx_taken_BFC09190 = 0; + int psx_taken_BFC091A0 = 0; + int psx_taken_BFC091AC = 0; + int psx_taken_BFC091B4 = 0; label_BFC09144: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -31823,7 +32844,7 @@ label_BFC09158: /* nop */ /* 0xBFC09164: 15C30005 bne $t6, $v1, 0xBFC0917C */ uint32_t psx_brA_BFC09164 = cpu->gpr[14]; uint32_t psx_brB_BFC09164 = cpu->gpr[3]; - int psx_taken_BFC09164 = (psx_brA_BFC09164 != psx_brB_BFC09164); + psx_taken_BFC09164 = (psx_brA_BFC09164 != psx_brB_BFC09164); /* 0xBFC09168: 00000000 nop */ /* nop */ if (psx_taken_BFC09164) goto label_BFC0917C; @@ -31844,7 +32865,7 @@ label_BFC09174: psx_check_interrupts(cpu); /* 0xBFC09174: 10000011 beq $zero, $zero, 0xBFC091BC */ uint32_t psx_brA_BFC09174 = cpu->gpr[0]; uint32_t psx_brB_BFC09174 = cpu->gpr[0]; - int psx_taken_BFC09174 = (psx_brA_BFC09174 == psx_brB_BFC09174); + psx_taken_BFC09174 = (psx_brA_BFC09174 == psx_brB_BFC09174); /* 0xBFC09178: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC09174) goto label_BFC091BC; @@ -31870,7 +32891,7 @@ label_BFC09188: /* nop */ /* 0xBFC09190: 146F0006 bne $v1, $t7, 0xBFC091AC */ uint32_t psx_brA_BFC09190 = cpu->gpr[3]; uint32_t psx_brB_BFC09190 = cpu->gpr[15]; - int psx_taken_BFC09190 = (psx_brA_BFC09190 != psx_brB_BFC09190); + psx_taken_BFC09190 = (psx_brA_BFC09190 != psx_brB_BFC09190); /* 0xBFC09194: 24420004 addiu $v0, $v0, 4 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); if (psx_taken_BFC09190) goto label_BFC091AC; @@ -31891,7 +32912,7 @@ label_BFC091A0: psx_check_interrupts(cpu); /* 0xBFC091A0: 10000006 beq $zero, $zero, 0xBFC091BC */ uint32_t psx_brA_BFC091A0 = cpu->gpr[0]; uint32_t psx_brB_BFC091A0 = cpu->gpr[0]; - int psx_taken_BFC091A0 = (psx_brA_BFC091A0 == psx_brB_BFC091A0); + psx_taken_BFC091A0 = (psx_brA_BFC091A0 == psx_brB_BFC091A0); /* 0xBFC091A4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC091A0) goto label_BFC091BC; @@ -31909,7 +32930,7 @@ label_BFC091AC: psx_check_interrupts(cpu); /* 0xBFC091AC: 1444FFF6 bne $v0, $a0, 0xBFC09188 */ uint32_t psx_brA_BFC091AC = cpu->gpr[2]; uint32_t psx_brB_BFC091AC = cpu->gpr[4]; - int psx_taken_BFC091AC = (psx_brA_BFC091AC != psx_brB_BFC091AC); + psx_taken_BFC091AC = (psx_brA_BFC091AC != psx_brB_BFC091AC); /* 0xBFC091B0: 00000000 nop */ /* nop */ if (psx_taken_BFC091AC) goto label_BFC09188; @@ -31920,7 +32941,7 @@ label_BFC091B4: psx_check_interrupts(cpu); /* 0xBFC091B4: 1000FFE8 beq $zero, $zero, 0xBFC09158 */ uint32_t psx_brA_BFC091B4 = cpu->gpr[0]; uint32_t psx_brB_BFC091B4 = cpu->gpr[0]; - int psx_taken_BFC091B4 = (psx_brA_BFC091B4 == psx_brB_BFC091B4); + psx_taken_BFC091B4 = (psx_brA_BFC091B4 == psx_brB_BFC091B4); /* 0xBFC091B8: 00000000 nop */ /* nop */ if (psx_taken_BFC091B4) goto label_BFC09158; @@ -31951,6 +32972,14 @@ void func_1FC091CC(CPUState* cpu) { default: break; } } + int psx_taken_BFC09200 = 0; + int psx_taken_BFC0921C = 0; + int psx_taken_BFC09238 = 0; + int psx_taken_BFC09250 = 0; + int psx_taken_BFC09264 = 0; + int psx_taken_BFC09274 = 0; + int psx_taken_BFC09298 = 0; + int psx_taken_BFC092AC = 0; label_BFC091CC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -31984,7 +33013,7 @@ label_BFC091CC: cpu->gpr[17] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC09200: 1BC00030 blez $fp, 0xBFC092C4 */ uint32_t psx_brA_BFC09200 = cpu->gpr[30]; - int psx_taken_BFC09200 = ((int32_t)psx_brA_BFC09200 <= 0); + psx_taken_BFC09200 = ((int32_t)psx_brA_BFC09200 <= 0); /* 0xBFC09204: 00009821 addu $s3, $zero, $zero */ cpu->gpr[19] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC09200) goto label_BFC092C4; @@ -32005,7 +33034,7 @@ label_BFC09208: cpu->gpr[20] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC0921C: 06E10002 bgez $s7, 0xBFC09228 */ uint32_t psx_brA_BFC0921C = cpu->gpr[23]; - int psx_taken_BFC0921C = ((int32_t)psx_brA_BFC0921C >= 0); + psx_taken_BFC0921C = ((int32_t)psx_brA_BFC0921C >= 0); /* 0xBFC09220: 02E00821 addu $at, $s7, $zero */ cpu->gpr[1] = cpu->gpr[23] + cpu->gpr[0]; if (psx_taken_BFC0921C) goto label_BFC09228; @@ -32042,7 +33071,7 @@ label_BFC09238: psx_check_interrupts(cpu); /* 0xBFC09238: 14540002 bne $v0, $s4, 0xBFC09244 */ uint32_t psx_brA_BFC09238 = cpu->gpr[2]; uint32_t psx_brB_BFC09238 = cpu->gpr[20]; - int psx_taken_BFC09238 = (psx_brA_BFC09238 != psx_brB_BFC09238); + psx_taken_BFC09238 = (psx_brA_BFC09238 != psx_brB_BFC09238); /* 0xBFC0923C: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC09238) goto label_BFC09244; @@ -32072,7 +33101,7 @@ label_BFC09250: psx_check_interrupts(cpu); /* 0xBFC09250: 10550006 beq $v0, $s5, 0xBFC0926C */ uint32_t psx_brA_BFC09250 = cpu->gpr[2]; uint32_t psx_brB_BFC09250 = cpu->gpr[21]; - int psx_taken_BFC09250 = (psx_brA_BFC09250 == psx_brB_BFC09250); + psx_taken_BFC09250 = (psx_brA_BFC09250 == psx_brB_BFC09250); /* 0xBFC09254: 00000000 nop */ /* nop */ if (psx_taken_BFC09250) goto label_BFC0926C; @@ -32089,7 +33118,7 @@ label_BFC09258: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09260u); return; } cpu->gpr[22] = cpu->read_word(psx_addr); } /* 0xBFC09264: 10000018 beq $zero, $zero, 0xBFC092C8 */ uint32_t psx_brA_BFC09264 = cpu->gpr[0]; uint32_t psx_brB_BFC09264 = cpu->gpr[0]; - int psx_taken_BFC09264 = (psx_brA_BFC09264 == psx_brB_BFC09264); + psx_taken_BFC09264 = (psx_brA_BFC09264 == psx_brB_BFC09264); /* 0xBFC09268: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC09264) goto label_BFC092C8; @@ -32110,7 +33139,7 @@ label_BFC09274: psx_check_interrupts(cpu); /* 0xBFC09274: 1040000A beq $v0, $zero, 0xBFC092A0 */ uint32_t psx_brA_BFC09274 = cpu->gpr[2]; uint32_t psx_brB_BFC09274 = cpu->gpr[0]; - int psx_taken_BFC09274 = (psx_brA_BFC09274 == psx_brB_BFC09274); + psx_taken_BFC09274 = (psx_brA_BFC09274 == psx_brB_BFC09274); /* 0xBFC09278: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC09274) goto label_BFC092A0; @@ -32135,7 +33164,7 @@ label_BFC0927C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24704)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09294u); return; } g_debug_last_store_pc = 0xBFC09294u; cpu->write_word(psx_addr, cpu->gpr[5]); } /* 0xBFC09298: 1000000B beq $zero, $zero, 0xBFC092C8 */ uint32_t psx_brA_BFC09298 = cpu->gpr[0]; uint32_t psx_brB_BFC09298 = cpu->gpr[0]; - int psx_taken_BFC09298 = (psx_brA_BFC09298 == psx_brB_BFC09298); + psx_taken_BFC09298 = (psx_brA_BFC09298 == psx_brB_BFC09298); /* 0xBFC0929C: 02601021 addu $v0, $s3, $zero */ cpu->gpr[2] = cpu->gpr[19] + cpu->gpr[0]; if (psx_taken_BFC09298) goto label_BFC092C8; @@ -32152,7 +33181,7 @@ label_BFC092A0: cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (128)); /* 0xBFC092AC: 163EFFDF bne $s1, $fp, 0xBFC0922C */ uint32_t psx_brA_BFC092AC = cpu->gpr[17]; uint32_t psx_brB_BFC092AC = cpu->gpr[30]; - int psx_taken_BFC092AC = (psx_brA_BFC092AC != psx_brB_BFC092AC); + psx_taken_BFC092AC = (psx_brA_BFC092AC != psx_brB_BFC092AC); /* 0xBFC092B0: 26100001 addiu $s0, $s0, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); if (psx_taken_BFC092AC) goto label_BFC0922C; @@ -32219,6 +33248,29 @@ void func_1FC092EC(CPUState* cpu) { default: break; } } + int psx_taken_BFC09324 = 0; + int psx_taken_BFC0932C = 0; + int psx_taken_BFC09340 = 0; + int psx_taken_BFC0935C = 0; + int psx_taken_BFC09378 = 0; + int psx_taken_BFC09388 = 0; + int psx_taken_BFC0939C = 0; + int psx_taken_BFC093B4 = 0; + int psx_taken_BFC093CC = 0; + int psx_taken_BFC093F0 = 0; + int psx_taken_BFC093F8 = 0; + int psx_taken_BFC09418 = 0; + int psx_taken_BFC0942C = 0; + int psx_taken_BFC0944C = 0; + int psx_taken_BFC09454 = 0; + int psx_taken_BFC09468 = 0; + int psx_taken_BFC09474 = 0; + int psx_taken_BFC09490 = 0; + int psx_taken_BFC094A8 = 0; + int psx_taken_BFC094CC = 0; + int psx_taken_BFC094DC = 0; + int psx_taken_BFC094E4 = 0; + int psx_taken_BFC09508 = 0; label_BFC092EC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -32254,7 +33306,7 @@ label_BFC092EC: cpu->gpr[18] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC09324: 1FC00003 bgtz $fp, 0xBFC09334 */ uint32_t psx_brA_BFC09324 = cpu->gpr[30]; - int psx_taken_BFC09324 = ((int32_t)psx_brA_BFC09324 > 0); + psx_taken_BFC09324 = ((int32_t)psx_brA_BFC09324 > 0); /* 0xBFC09328: 0000B821 addu $s7, $zero, $zero */ cpu->gpr[23] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC09324) goto label_BFC09334; @@ -32265,7 +33317,7 @@ label_BFC0932C: psx_check_interrupts(cpu); /* 0xBFC0932C: 10000044 beq $zero, $zero, 0xBFC09440 */ uint32_t psx_brA_BFC0932C = cpu->gpr[0]; uint32_t psx_brB_BFC0932C = cpu->gpr[0]; - int psx_taken_BFC0932C = (psx_brA_BFC0932C == psx_brB_BFC0932C); + psx_taken_BFC0932C = (psx_brA_BFC0932C == psx_brB_BFC0932C); /* 0xBFC09330: 2415FFFF addiu $s5, $zero, -1 */ cpu->gpr[21] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0932C) goto label_BFC09440; @@ -32282,7 +33334,7 @@ label_BFC09334: cpu->gpr[21] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC09340: 06C10002 bgez $s6, 0xBFC0934C */ uint32_t psx_brA_BFC09340 = cpu->gpr[22]; - int psx_taken_BFC09340 = ((int32_t)psx_brA_BFC09340 >= 0); + psx_taken_BFC09340 = ((int32_t)psx_brA_BFC09340 >= 0); /* 0xBFC09344: 02C00821 addu $at, $s6, $zero */ cpu->gpr[1] = cpu->gpr[22] + cpu->gpr[0]; if (psx_taken_BFC09340) goto label_BFC0934C; @@ -32319,7 +33371,7 @@ label_BFC0935C: psx_check_interrupts(cpu); /* 0xBFC0935C: 14550002 bne $v0, $s5, 0xBFC09368 */ uint32_t psx_brA_BFC0935C = cpu->gpr[2]; uint32_t psx_brB_BFC0935C = cpu->gpr[21]; - int psx_taken_BFC0935C = (psx_brA_BFC0935C != psx_brB_BFC0935C); + psx_taken_BFC0935C = (psx_brA_BFC0935C != psx_brB_BFC0935C); /* 0xBFC09360: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0935C) goto label_BFC09368; @@ -32351,7 +33403,7 @@ label_BFC09374: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC09378: 10410005 beq $v0, $at, 0xBFC09390 */ uint32_t psx_brA_BFC09378 = cpu->gpr[2]; uint32_t psx_brB_BFC09378 = cpu->gpr[1]; - int psx_taken_BFC09378 = (psx_brA_BFC09378 == psx_brB_BFC09378); + psx_taken_BFC09378 = (psx_brA_BFC09378 == psx_brB_BFC09378); /* 0xBFC0937C: 00000000 nop */ /* nop */ if (psx_taken_BFC09378) goto label_BFC09390; @@ -32366,7 +33418,7 @@ label_BFC09380: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09384u); return; } cpu->gpr[20] = cpu->read_word(psx_addr); } /* 0xBFC09388: 10000063 beq $zero, $zero, 0xBFC09518 */ uint32_t psx_brA_BFC09388 = cpu->gpr[0]; uint32_t psx_brB_BFC09388 = cpu->gpr[0]; - int psx_taken_BFC09388 = (psx_brA_BFC09388 == psx_brB_BFC09388); + psx_taken_BFC09388 = (psx_brA_BFC09388 == psx_brB_BFC09388); /* 0xBFC0938C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC09388) goto label_BFC09518; @@ -32389,7 +33441,7 @@ label_BFC09398: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC0939C: 14410016 bne $v0, $at, 0xBFC093F8 */ uint32_t psx_brA_BFC0939C = cpu->gpr[2]; uint32_t psx_brB_BFC0939C = cpu->gpr[1]; - int psx_taken_BFC0939C = (psx_brA_BFC0939C != psx_brB_BFC0939C); + psx_taken_BFC0939C = (psx_brA_BFC0939C != psx_brB_BFC0939C); /* 0xBFC093A0: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0939C) goto label_BFC093F8; @@ -32414,7 +33466,7 @@ label_BFC093B4: psx_check_interrupts(cpu); /* 0xBFC093B4: 14550002 bne $v0, $s5, 0xBFC093C0 */ uint32_t psx_brA_BFC093B4 = cpu->gpr[2]; uint32_t psx_brB_BFC093B4 = cpu->gpr[21]; - int psx_taken_BFC093B4 = (psx_brA_BFC093B4 != psx_brB_BFC093B4); + psx_taken_BFC093B4 = (psx_brA_BFC093B4 != psx_brB_BFC093B4); /* 0xBFC093B8: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC093B4) goto label_BFC093C0; @@ -32444,7 +33496,7 @@ label_BFC093CC: psx_check_interrupts(cpu); /* 0xBFC093CC: 14400015 bne $v0, $zero, 0xBFC09424 */ uint32_t psx_brA_BFC093CC = cpu->gpr[2]; uint32_t psx_brB_BFC093CC = cpu->gpr[0]; - int psx_taken_BFC093CC = (psx_brA_BFC093CC != psx_brB_BFC093CC); + psx_taken_BFC093CC = (psx_brA_BFC093CC != psx_brB_BFC093CC); /* 0xBFC093D0: 26520001 addiu $s2, $s2, 1 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (1)); if (psx_taken_BFC093CC) goto label_BFC09424; @@ -32469,7 +33521,7 @@ label_BFC093D4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24704)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC093ECu); return; } g_debug_last_store_pc = 0xBFC093ECu; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC093F0: 10000049 beq $zero, $zero, 0xBFC09518 */ uint32_t psx_brA_BFC093F0 = cpu->gpr[0]; uint32_t psx_brB_BFC093F0 = cpu->gpr[0]; - int psx_taken_BFC093F0 = (psx_brA_BFC093F0 == psx_brB_BFC093F0); + psx_taken_BFC093F0 = (psx_brA_BFC093F0 == psx_brB_BFC093F0); /* 0xBFC093F4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC093F0) goto label_BFC09518; @@ -32480,7 +33532,7 @@ label_BFC093F8: psx_check_interrupts(cpu); /* 0xBFC093F8: 1840000A blez $v0, 0xBFC09424 */ uint32_t psx_brA_BFC093F8 = cpu->gpr[2]; - int psx_taken_BFC093F8 = ((int32_t)psx_brA_BFC093F8 <= 0); + psx_taken_BFC093F8 = ((int32_t)psx_brA_BFC093F8 <= 0); /* 0xBFC093FC: 26520001 addiu $s2, $s2, 1 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (1)); if (psx_taken_BFC093F8) goto label_BFC09424; @@ -32503,7 +33555,7 @@ label_BFC09400: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09414u); return; } cpu->gpr[20] = cpu->read_word(psx_addr); } /* 0xBFC09418: 1000003F beq $zero, $zero, 0xBFC09518 */ uint32_t psx_brA_BFC09418 = cpu->gpr[0]; uint32_t psx_brB_BFC09418 = cpu->gpr[0]; - int psx_taken_BFC09418 = (psx_brA_BFC09418 == psx_brB_BFC09418); + psx_taken_BFC09418 = (psx_brA_BFC09418 == psx_brB_BFC09418); /* 0xBFC0941C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC09418) goto label_BFC09518; @@ -32525,7 +33577,7 @@ label_BFC09424: cpu->gpr[23] = (uint32_t)((int32_t)cpu->gpr[23] + (128)); /* 0xBFC0942C: 165EFFC8 bne $s2, $fp, 0xBFC09350 */ uint32_t psx_brA_BFC0942C = cpu->gpr[18]; uint32_t psx_brB_BFC0942C = cpu->gpr[30]; - int psx_taken_BFC0942C = (psx_brA_BFC0942C != psx_brB_BFC0942C); + psx_taken_BFC0942C = (psx_brA_BFC0942C != psx_brB_BFC0942C); /* 0xBFC09430: 26310001 addiu $s1, $s1, 1 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); if (psx_taken_BFC0942C) goto label_BFC09350; @@ -32559,7 +33611,7 @@ label_BFC09448: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0944C: 10410003 beq $v0, $at, 0xBFC0945C */ uint32_t psx_brA_BFC0944C = cpu->gpr[2]; uint32_t psx_brB_BFC0944C = cpu->gpr[1]; - int psx_taken_BFC0944C = (psx_brA_BFC0944C == psx_brB_BFC0944C); + psx_taken_BFC0944C = (psx_brA_BFC0944C == psx_brB_BFC0944C); /* 0xBFC09450: 00000000 nop */ /* nop */ if (psx_taken_BFC0944C) goto label_BFC0945C; @@ -32570,7 +33622,7 @@ label_BFC09454: psx_check_interrupts(cpu); /* 0xBFC09454: 10000030 beq $zero, $zero, 0xBFC09518 */ uint32_t psx_brA_BFC09454 = cpu->gpr[0]; uint32_t psx_brB_BFC09454 = cpu->gpr[0]; - int psx_taken_BFC09454 = (psx_brA_BFC09454 == psx_brB_BFC09454); + psx_taken_BFC09454 = (psx_brA_BFC09454 == psx_brB_BFC09454); /* 0xBFC09458: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC09454) goto label_BFC09518; @@ -32593,7 +33645,7 @@ label_BFC09464: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC09468: 1441001C bne $v0, $at, 0xBFC094DC */ uint32_t psx_brA_BFC09468 = cpu->gpr[2]; uint32_t psx_brB_BFC09468 = cpu->gpr[1]; - int psx_taken_BFC09468 = (psx_brA_BFC09468 != psx_brB_BFC09468); + psx_taken_BFC09468 = (psx_brA_BFC09468 != psx_brB_BFC09468); /* 0xBFC0946C: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC09468) goto label_BFC094DC; @@ -32606,7 +33658,7 @@ label_BFC09470: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09470u); return; } g_debug_last_store_pc = 0xBFC09470u; cpu->write_word(psx_addr, cpu->gpr[20]); } /* 0xBFC09474: 06C10002 bgez $s6, 0xBFC09480 */ uint32_t psx_brA_BFC09474 = cpu->gpr[22]; - int psx_taken_BFC09474 = ((int32_t)psx_brA_BFC09474 >= 0); + psx_taken_BFC09474 = ((int32_t)psx_brA_BFC09474 >= 0); /* 0xBFC09478: 02C00821 addu $at, $s6, $zero */ cpu->gpr[1] = cpu->gpr[22] + cpu->gpr[0]; if (psx_taken_BFC09474) goto label_BFC09480; @@ -32638,7 +33690,7 @@ label_BFC09490: psx_check_interrupts(cpu); /* 0xBFC09490: 14550002 bne $v0, $s5, 0xBFC0949C */ uint32_t psx_brA_BFC09490 = cpu->gpr[2]; uint32_t psx_brB_BFC09490 = cpu->gpr[21]; - int psx_taken_BFC09490 = (psx_brA_BFC09490 != psx_brB_BFC09490); + psx_taken_BFC09490 = (psx_brA_BFC09490 != psx_brB_BFC09490); /* 0xBFC09494: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC09490) goto label_BFC0949C; @@ -32668,7 +33720,7 @@ label_BFC094A8: psx_check_interrupts(cpu); /* 0xBFC094A8: 1440000A bne $v0, $zero, 0xBFC094D4 */ uint32_t psx_brA_BFC094A8 = cpu->gpr[2]; uint32_t psx_brB_BFC094A8 = cpu->gpr[0]; - int psx_taken_BFC094A8 = (psx_brA_BFC094A8 != psx_brB_BFC094A8); + psx_taken_BFC094A8 = (psx_brA_BFC094A8 != psx_brB_BFC094A8); /* 0xBFC094AC: 00000000 nop */ /* nop */ if (psx_taken_BFC094A8) goto label_BFC094D4; @@ -32693,7 +33745,7 @@ label_BFC094B0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24704)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC094C8u); return; } g_debug_last_store_pc = 0xBFC094C8u; cpu->write_word(psx_addr, cpu->gpr[25]); } /* 0xBFC094CC: 10000012 beq $zero, $zero, 0xBFC09518 */ uint32_t psx_brA_BFC094CC = cpu->gpr[0]; uint32_t psx_brB_BFC094CC = cpu->gpr[0]; - int psx_taken_BFC094CC = (psx_brA_BFC094CC == psx_brB_BFC094CC); + psx_taken_BFC094CC = (psx_brA_BFC094CC == psx_brB_BFC094CC); /* 0xBFC094D0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC094CC) goto label_BFC09518; @@ -32713,7 +33765,7 @@ label_BFC094DC: psx_check_interrupts(cpu); /* 0xBFC094DC: 1A00000C blez $s0, 0xBFC09510 */ uint32_t psx_brA_BFC094DC = cpu->gpr[16]; - int psx_taken_BFC094DC = ((int32_t)psx_brA_BFC094DC <= 0); + psx_taken_BFC094DC = ((int32_t)psx_brA_BFC094DC <= 0); /* 0xBFC094E0: 00000000 nop */ /* nop */ if (psx_taken_BFC094DC) goto label_BFC09510; @@ -32724,7 +33776,7 @@ label_BFC094E4: psx_check_interrupts(cpu); /* 0xBFC094E4: 06C10002 bgez $s6, 0xBFC094F0 */ uint32_t psx_brA_BFC094E4 = cpu->gpr[22]; - int psx_taken_BFC094E4 = ((int32_t)psx_brA_BFC094E4 >= 0); + psx_taken_BFC094E4 = ((int32_t)psx_brA_BFC094E4 >= 0); /* 0xBFC094E8: 02C00821 addu $at, $s6, $zero */ cpu->gpr[1] = cpu->gpr[22] + cpu->gpr[0]; if (psx_taken_BFC094E4) goto label_BFC094F0; @@ -32754,7 +33806,7 @@ label_BFC094F0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09504u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC09508: 10000003 beq $zero, $zero, 0xBFC09518 */ uint32_t psx_brA_BFC09508 = cpu->gpr[0]; uint32_t psx_brB_BFC09508 = cpu->gpr[0]; - int psx_taken_BFC09508 = (psx_brA_BFC09508 == psx_brB_BFC09508); + psx_taken_BFC09508 = (psx_brA_BFC09508 == psx_brB_BFC09508); /* 0xBFC0950C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC09508) goto label_BFC09518; @@ -32796,6 +33848,8 @@ label_BFC09518: void func_1FC09540(CPUState* cpu) { debug_server_log_call_entry(0x1FC09540u); + int psx_taken_BFC09570 = 0; + int psx_taken_BFC09584 = 0; label_BFC09540: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -32832,7 +33886,7 @@ label_BFC09568: /* nop */ /* 0xBFC09570: 14B80003 bne $a1, $t8, 0xBFC09580 */ uint32_t psx_brA_BFC09570 = cpu->gpr[5]; uint32_t psx_brB_BFC09570 = cpu->gpr[24]; - int psx_taken_BFC09570 = (psx_brA_BFC09570 != psx_brB_BFC09570); + psx_taken_BFC09570 = (psx_brA_BFC09570 != psx_brB_BFC09570); /* 0xBFC09574: 00000000 nop */ /* nop */ if (psx_taken_BFC09570) goto label_BFC09580; @@ -32854,7 +33908,7 @@ label_BFC09580: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC09584: 1464FFF8 bne $v1, $a0, 0xBFC09568 */ uint32_t psx_brA_BFC09584 = cpu->gpr[3]; uint32_t psx_brB_BFC09584 = cpu->gpr[4]; - int psx_taken_BFC09584 = (psx_brA_BFC09584 != psx_brB_BFC09584); + psx_taken_BFC09584 = (psx_brA_BFC09584 != psx_brB_BFC09584); /* 0xBFC09588: 24420004 addiu $v0, $v0, 4 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); if (psx_taken_BFC09584) goto label_BFC09568; @@ -32887,6 +33941,16 @@ void func_1FC09598(CPUState* cpu) { default: break; } } + int psx_taken_BFC095EC = 0; + int psx_taken_BFC09628 = 0; + int psx_taken_BFC09634 = 0; + int psx_taken_BFC0963C = 0; + int psx_taken_BFC09644 = 0; + int psx_taken_BFC09668 = 0; + int psx_taken_BFC09678 = 0; + int psx_taken_BFC09680 = 0; + int psx_taken_BFC096D8 = 0; + int psx_taken_BFC096E0 = 0; label_BFC09598: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(23u); @@ -32936,7 +34000,7 @@ label_BFC09598: cpu->gpr[30] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC095EC: 06E10002 bgez $s7, 0xBFC095F8 */ uint32_t psx_brA_BFC095EC = cpu->gpr[23]; - int psx_taken_BFC095EC = ((int32_t)psx_brA_BFC095EC >= 0); + psx_taken_BFC095EC = ((int32_t)psx_brA_BFC095EC >= 0); /* 0xBFC095F0: 02E00821 addu $at, $s7, $zero */ cpu->gpr[1] = cpu->gpr[23] + cpu->gpr[0]; if (psx_taken_BFC095EC) goto label_BFC095F8; @@ -32983,7 +34047,7 @@ label_BFC09618: /* nop */ /* 0xBFC09628: 124A0004 beq $s2, $t2, 0xBFC0963C */ uint32_t psx_brA_BFC09628 = cpu->gpr[18]; uint32_t psx_brB_BFC09628 = cpu->gpr[10]; - int psx_taken_BFC09628 = (psx_brA_BFC09628 == psx_brB_BFC09628); + psx_taken_BFC09628 = (psx_brA_BFC09628 == psx_brB_BFC09628); /* 0xBFC0962C: 2A010014 slti $at, $s0, 20 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (20) ? 1 : 0); if (psx_taken_BFC09628) goto label_BFC0963C; @@ -32996,7 +34060,7 @@ label_BFC09630: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC09634: 1613FFF8 bne $s0, $s3, 0xBFC09618 */ uint32_t psx_brA_BFC09634 = cpu->gpr[16]; uint32_t psx_brB_BFC09634 = cpu->gpr[19]; - int psx_taken_BFC09634 = (psx_brA_BFC09634 != psx_brB_BFC09634); + psx_taken_BFC09634 = (psx_brA_BFC09634 != psx_brB_BFC09634); /* 0xBFC09638: 2A010014 slti $at, $s0, 20 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (20) ? 1 : 0); if (psx_taken_BFC09634) goto label_BFC09618; @@ -33007,7 +34071,7 @@ label_BFC0963C: psx_check_interrupts(cpu); /* 0xBFC0963C: 14200004 bne $at, $zero, 0xBFC09650 */ uint32_t psx_brA_BFC0963C = cpu->gpr[1]; uint32_t psx_brB_BFC0963C = cpu->gpr[0]; - int psx_taken_BFC0963C = (psx_brA_BFC0963C != psx_brB_BFC0963C); + psx_taken_BFC0963C = (psx_brA_BFC0963C != psx_brB_BFC0963C); /* 0xBFC09640: 00105880 sll $t3, $s0, 2 */ cpu->gpr[11] = cpu->gpr[16] << 2u; if (psx_taken_BFC0963C) goto label_BFC09650; @@ -33018,7 +34082,7 @@ label_BFC09644: psx_check_interrupts(cpu); /* 0xBFC09644: 1000002A beq $zero, $zero, 0xBFC096F0 */ uint32_t psx_brA_BFC09644 = cpu->gpr[0]; uint32_t psx_brB_BFC09644 = cpu->gpr[0]; - int psx_taken_BFC09644 = (psx_brA_BFC09644 == psx_brB_BFC09644); + psx_taken_BFC09644 = (psx_brA_BFC09644 == psx_brB_BFC09644); /* 0xBFC09648: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC09644) goto label_BFC096F0; @@ -33054,7 +34118,7 @@ label_BFC09668: psx_check_interrupts(cpu); /* 0xBFC09668: 145E0005 bne $v0, $fp, 0xBFC09680 */ uint32_t psx_brA_BFC09668 = cpu->gpr[2]; uint32_t psx_brB_BFC09668 = cpu->gpr[30]; - int psx_taken_BFC09668 = (psx_brA_BFC09668 != psx_brB_BFC09668); + psx_taken_BFC09668 = (psx_brA_BFC09668 != psx_brB_BFC09668); /* 0xBFC0966C: 00000000 nop */ /* nop */ if (psx_taken_BFC09668) goto label_BFC09680; @@ -33075,7 +34139,7 @@ label_BFC09678: psx_check_interrupts(cpu); /* 0xBFC09678: 14400004 bne $v0, $zero, 0xBFC0968C */ uint32_t psx_brA_BFC09678 = cpu->gpr[2]; uint32_t psx_brB_BFC09678 = cpu->gpr[0]; - int psx_taken_BFC09678 = (psx_brA_BFC09678 != psx_brB_BFC09678); + psx_taken_BFC09678 = (psx_brA_BFC09678 != psx_brB_BFC09678); /* 0xBFC0967C: 8FAC0064 lw $t4, 100($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (100)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0967Cu); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } if (psx_taken_BFC09678) goto label_BFC0968C; @@ -33086,7 +34150,7 @@ label_BFC09680: psx_check_interrupts(cpu); /* 0xBFC09680: 1000FFE5 beq $zero, $zero, 0xBFC09618 */ uint32_t psx_brA_BFC09680 = cpu->gpr[0]; uint32_t psx_brB_BFC09680 = cpu->gpr[0]; - int psx_taken_BFC09680 = (psx_brA_BFC09680 == psx_brB_BFC09680); + psx_taken_BFC09680 = (psx_brA_BFC09680 == psx_brB_BFC09680); /* 0xBFC09684: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC09680) goto label_BFC09618; @@ -33166,7 +34230,7 @@ label_BFC096D8: psx_check_interrupts(cpu); /* 0xBFC096D8: 105E0003 beq $v0, $fp, 0xBFC096E8 */ uint32_t psx_brA_BFC096D8 = cpu->gpr[2]; uint32_t psx_brB_BFC096D8 = cpu->gpr[30]; - int psx_taken_BFC096D8 = (psx_brA_BFC096D8 == psx_brB_BFC096D8); + psx_taken_BFC096D8 = (psx_brA_BFC096D8 == psx_brB_BFC096D8); /* 0xBFC096DC: 00000000 nop */ /* nop */ if (psx_taken_BFC096D8) goto label_BFC096E8; @@ -33177,7 +34241,7 @@ label_BFC096E0: psx_check_interrupts(cpu); /* 0xBFC096E0: 10000003 beq $zero, $zero, 0xBFC096F0 */ uint32_t psx_brA_BFC096E0 = cpu->gpr[0]; uint32_t psx_brB_BFC096E0 = cpu->gpr[0]; - int psx_taken_BFC096E0 = (psx_brA_BFC096E0 == psx_brB_BFC096E0); + psx_taken_BFC096E0 = (psx_brA_BFC096E0 == psx_brB_BFC096E0); /* 0xBFC096E4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC096E0) goto label_BFC096F0; @@ -33240,6 +34304,15 @@ void func_1FC09720(CPUState* cpu) { default: break; } } + int psx_taken_BFC09774 = 0; + int psx_taken_BFC09790 = 0; + int psx_taken_BFC09798 = 0; + int psx_taken_BFC097A0 = 0; + int psx_taken_BFC097FC = 0; + int psx_taken_BFC0980C = 0; + int psx_taken_BFC09824 = 0; + int psx_taken_BFC09838 = 0; + int psx_taken_BFC09848 = 0; label_BFC09720: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(21u); @@ -33294,7 +34367,7 @@ label_BFC09774: psx_check_interrupts(cpu); /* 0xBFC09774: 1260000A beq $s3, $zero, 0xBFC097A0 */ uint32_t psx_brA_BFC09774 = cpu->gpr[19]; uint32_t psx_brB_BFC09774 = cpu->gpr[0]; - int psx_taken_BFC09774 = (psx_brA_BFC09774 == psx_brB_BFC09774); + psx_taken_BFC09774 = (psx_brA_BFC09774 == psx_brB_BFC09774); /* 0xBFC09778: 00000000 nop */ /* nop */ if (psx_taken_BFC09774) goto label_BFC097A0; @@ -33321,7 +34394,7 @@ label_BFC09790: psx_check_interrupts(cpu); /* 0xBFC09790: 10400003 beq $v0, $zero, 0xBFC097A0 */ uint32_t psx_brA_BFC09790 = cpu->gpr[2]; uint32_t psx_brB_BFC09790 = cpu->gpr[0]; - int psx_taken_BFC09790 = (psx_brA_BFC09790 == psx_brB_BFC09790); + psx_taken_BFC09790 = (psx_brA_BFC09790 == psx_brB_BFC09790); /* 0xBFC09794: 00000000 nop */ /* nop */ if (psx_taken_BFC09790) goto label_BFC097A0; @@ -33332,7 +34405,7 @@ label_BFC09798: psx_check_interrupts(cpu); /* 0xBFC09798: 10000021 beq $zero, $zero, 0xBFC09820 */ uint32_t psx_brA_BFC09798 = cpu->gpr[0]; uint32_t psx_brB_BFC09798 = cpu->gpr[0]; - int psx_taken_BFC09798 = (psx_brA_BFC09798 == psx_brB_BFC09798); + psx_taken_BFC09798 = (psx_brA_BFC09798 == psx_brB_BFC09798); /* 0xBFC0979C: 26320001 addiu $s2, $s1, 1 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); if (psx_taken_BFC09798) goto label_BFC09820; @@ -33343,7 +34416,7 @@ label_BFC097A0: psx_check_interrupts(cpu); /* 0xBFC097A0: 06810002 bgez $s4, 0xBFC097AC */ uint32_t psx_brA_BFC097A0 = cpu->gpr[20]; - int psx_taken_BFC097A0 = ((int32_t)psx_brA_BFC097A0 >= 0); + psx_taken_BFC097A0 = ((int32_t)psx_brA_BFC097A0 >= 0); /* 0xBFC097A4: 02800821 addu $at, $s4, $zero */ cpu->gpr[1] = cpu->gpr[20] + cpu->gpr[0]; if (psx_taken_BFC097A0) goto label_BFC097AC; @@ -33419,7 +34492,7 @@ label_BFC097F8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC097FC: 14410005 bne $v0, $at, 0xBFC09814 */ uint32_t psx_brA_BFC097FC = cpu->gpr[2]; uint32_t psx_brB_BFC097FC = cpu->gpr[1]; - int psx_taken_BFC097FC = (psx_brA_BFC097FC != psx_brB_BFC097FC); + psx_taken_BFC097FC = (psx_brA_BFC097FC != psx_brB_BFC097FC); /* 0xBFC09800: 00000000 nop */ /* nop */ if (psx_taken_BFC097FC) goto label_BFC09814; @@ -33440,7 +34513,7 @@ label_BFC0980C: psx_check_interrupts(cpu); /* 0xBFC0980C: 14400005 bne $v0, $zero, 0xBFC09824 */ uint32_t psx_brA_BFC0980C = cpu->gpr[2]; uint32_t psx_brB_BFC0980C = cpu->gpr[0]; - int psx_taken_BFC0980C = (psx_brA_BFC0980C != psx_brB_BFC0980C); + psx_taken_BFC0980C = (psx_brA_BFC0980C != psx_brB_BFC0980C); /* 0xBFC09810: 02408821 addu $s1, $s2, $zero */ cpu->gpr[17] = cpu->gpr[18] + cpu->gpr[0]; if (psx_taken_BFC0980C) goto label_BFC09824; @@ -33470,7 +34543,7 @@ label_BFC09824: psx_check_interrupts(cpu); /* 0xBFC09824: 1635FFD3 bne $s1, $s5, 0xBFC09774 */ uint32_t psx_brA_BFC09824 = cpu->gpr[17]; uint32_t psx_brB_BFC09824 = cpu->gpr[21]; - int psx_taken_BFC09824 = (psx_brA_BFC09824 != psx_brB_BFC09824); + psx_taken_BFC09824 = (psx_brA_BFC09824 != psx_brB_BFC09824); /* 0xBFC09828: 00000000 nop */ /* nop */ if (psx_taken_BFC09824) goto label_BFC09774; @@ -33493,7 +34566,7 @@ label_BFC09834: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC09838: 14410005 bne $v0, $at, 0xBFC09850 */ uint32_t psx_brA_BFC09838 = cpu->gpr[2]; uint32_t psx_brB_BFC09838 = cpu->gpr[1]; - int psx_taken_BFC09838 = (psx_brA_BFC09838 != psx_brB_BFC09838); + psx_taken_BFC09838 = (psx_brA_BFC09838 != psx_brB_BFC09838); /* 0xBFC0983C: 00000000 nop */ /* nop */ if (psx_taken_BFC09838) goto label_BFC09850; @@ -33514,7 +34587,7 @@ label_BFC09848: psx_check_interrupts(cpu); /* 0xBFC09848: 14400005 bne $v0, $zero, 0xBFC09860 */ uint32_t psx_brA_BFC09848 = cpu->gpr[2]; uint32_t psx_brB_BFC09848 = cpu->gpr[0]; - int psx_taken_BFC09848 = (psx_brA_BFC09848 != psx_brB_BFC09848); + psx_taken_BFC09848 = (psx_brA_BFC09848 != psx_brB_BFC09848); /* 0xBFC0984C: 8FBF003C lw $ra, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0984Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC09848) goto label_BFC09860; @@ -33580,6 +34653,8 @@ void func_1FC098A8(CPUState* cpu) { default: break; } } + int psx_taken_BFC098C0 = 0; + int psx_taken_BFC098F8 = 0; label_BFC098A8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -33605,7 +34680,7 @@ label_BFC098C0: psx_check_interrupts(cpu); /* 0xBFC098C0: 14400010 bne $v0, $zero, 0xBFC09904 */ uint32_t psx_brA_BFC098C0 = cpu->gpr[2]; uint32_t psx_brB_BFC098C0 = cpu->gpr[0]; - int psx_taken_BFC098C0 = (psx_brA_BFC098C0 != psx_brB_BFC098C0); + psx_taken_BFC098C0 = (psx_brA_BFC098C0 != psx_brB_BFC098C0); /* 0xBFC098C4: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC098C0) goto label_BFC09904; @@ -33652,7 +34727,7 @@ label_BFC098F8: psx_check_interrupts(cpu); /* 0xBFC098F8: 10000002 beq $zero, $zero, 0xBFC09904 */ uint32_t psx_brA_BFC098F8 = cpu->gpr[0]; uint32_t psx_brB_BFC098F8 = cpu->gpr[0]; - int psx_taken_BFC098F8 = (psx_brA_BFC098F8 == psx_brB_BFC098F8); + psx_taken_BFC098F8 = (psx_brA_BFC098F8 == psx_brB_BFC098F8); /* 0xBFC098FC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC098F8) goto label_BFC09904; @@ -33799,6 +34874,33 @@ void func_1FC0996C(CPUState* cpu) { default: break; } } + int psx_taken_BFC099A0 = 0; + int psx_taken_BFC099C0 = 0; + int psx_taken_BFC099C8 = 0; + int psx_taken_BFC099E0 = 0; + int psx_taken_BFC099F4 = 0; + int psx_taken_BFC099FC = 0; + int psx_taken_BFC09A0C = 0; + int psx_taken_BFC09A30 = 0; + int psx_taken_BFC09A40 = 0; + int psx_taken_BFC09A8C = 0; + int psx_taken_BFC09A9C = 0; + int psx_taken_BFC09AB8 = 0; + int psx_taken_BFC09ACC = 0; + int psx_taken_BFC09AFC = 0; + int psx_taken_BFC09B0C = 0; + int psx_taken_BFC09B68 = 0; + int psx_taken_BFC09B88 = 0; + int psx_taken_BFC09BA0 = 0; + int psx_taken_BFC09BB0 = 0; + int psx_taken_BFC09BDC = 0; + int psx_taken_BFC09BF8 = 0; + int psx_taken_BFC09C10 = 0; + int psx_taken_BFC09C20 = 0; + int psx_taken_BFC09C38 = 0; + int psx_taken_BFC09C50 = 0; + int psx_taken_BFC09C74 = 0; + int psx_taken_BFC09C84 = 0; label_BFC0996C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -33832,7 +34934,7 @@ label_BFC0996C: /* nop */ /* 0xBFC099A0: 06410002 bgez $s2, 0xBFC099AC */ uint32_t psx_brA_BFC099A0 = cpu->gpr[18]; - int psx_taken_BFC099A0 = ((int32_t)psx_brA_BFC099A0 >= 0); + psx_taken_BFC099A0 = ((int32_t)psx_brA_BFC099A0 >= 0); /* 0xBFC099A4: 02400821 addu $at, $s2, $zero */ cpu->gpr[1] = cpu->gpr[18] + cpu->gpr[0]; if (psx_taken_BFC099A0) goto label_BFC099AC; @@ -33860,7 +34962,7 @@ label_BFC099AC: /* nop */ /* 0xBFC099C0: 13000003 beq $t8, $zero, 0xBFC099D0 */ uint32_t psx_brA_BFC099C0 = cpu->gpr[24]; uint32_t psx_brB_BFC099C0 = cpu->gpr[0]; - int psx_taken_BFC099C0 = (psx_brA_BFC099C0 == psx_brB_BFC099C0); + psx_taken_BFC099C0 = (psx_brA_BFC099C0 == psx_brB_BFC099C0); /* 0xBFC099C4: 00000000 nop */ /* nop */ if (psx_taken_BFC099C0) goto label_BFC099D0; @@ -33871,7 +34973,7 @@ label_BFC099C8: psx_check_interrupts(cpu); /* 0xBFC099C8: 100000BE beq $zero, $zero, 0xBFC09CC4 */ uint32_t psx_brA_BFC099C8 = cpu->gpr[0]; uint32_t psx_brB_BFC099C8 = cpu->gpr[0]; - int psx_taken_BFC099C8 = (psx_brA_BFC099C8 == psx_brB_BFC099C8); + psx_taken_BFC099C8 = (psx_brA_BFC099C8 == psx_brB_BFC099C8); /* 0xBFC099CC: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC099C8) goto label_BFC09CC4; @@ -33896,7 +34998,7 @@ label_BFC099D8: cpu->gpr[1] = cpu->gpr[0] | 0x8000u; /* 0xBFC099E0: 13210009 beq $t9, $at, 0xBFC09A08 */ uint32_t psx_brA_BFC099E0 = cpu->gpr[25]; uint32_t psx_brB_BFC099E0 = cpu->gpr[1]; - int psx_taken_BFC099E0 = (psx_brA_BFC099E0 == psx_brB_BFC099E0); + psx_taken_BFC099E0 = (psx_brA_BFC099E0 == psx_brB_BFC099E0); /* 0xBFC099E4: 326B0200 andi $t3, $s3, 0x200 */ cpu->gpr[11] = cpu->gpr[19] & 0x200u; if (psx_taken_BFC099E0) goto label_BFC09A08; @@ -33919,7 +35021,7 @@ label_BFC099F4: psx_check_interrupts(cpu); /* 0xBFC099F4: 14400004 bne $v0, $zero, 0xBFC09A08 */ uint32_t psx_brA_BFC099F4 = cpu->gpr[2]; uint32_t psx_brB_BFC099F4 = cpu->gpr[0]; - int psx_taken_BFC099F4 = (psx_brA_BFC099F4 != psx_brB_BFC099F4); + psx_taken_BFC099F4 = (psx_brA_BFC099F4 != psx_brB_BFC099F4); /* 0xBFC099F8: 326B0200 andi $t3, $s3, 0x200 */ cpu->gpr[11] = cpu->gpr[19] & 0x200u; if (psx_taken_BFC099F4) goto label_BFC09A08; @@ -33930,7 +35032,7 @@ label_BFC099FC: psx_check_interrupts(cpu); /* 0xBFC099FC: 100000B1 beq $zero, $zero, 0xBFC09CC4 */ uint32_t psx_brA_BFC099FC = cpu->gpr[0]; uint32_t psx_brB_BFC099FC = cpu->gpr[0]; - int psx_taken_BFC099FC = (psx_brA_BFC099FC == psx_brB_BFC099FC); + psx_taken_BFC099FC = (psx_brA_BFC099FC == psx_brB_BFC099FC); /* 0xBFC09A00: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC099FC) goto label_BFC09CC4; @@ -33950,7 +35052,7 @@ label_BFC09A08: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (512)); /* 0xBFC09A0C: 15610092 bne $t3, $at, 0xBFC09C58 */ uint32_t psx_brA_BFC09A0C = cpu->gpr[11]; uint32_t psx_brB_BFC09A0C = cpu->gpr[1]; - int psx_taken_BFC09A0C = (psx_brA_BFC09A0C != psx_brB_BFC09A0C); + psx_taken_BFC09A0C = (psx_brA_BFC09A0C != psx_brB_BFC09A0C); /* 0xBFC09A10: 00000000 nop */ /* nop */ if (psx_taken_BFC09A0C) goto label_BFC09C58; @@ -33987,7 +35089,7 @@ label_BFC09A2C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC09A30: 10410005 beq $v0, $at, 0xBFC09A48 */ uint32_t psx_brA_BFC09A30 = cpu->gpr[2]; uint32_t psx_brB_BFC09A30 = cpu->gpr[1]; - int psx_taken_BFC09A30 = (psx_brA_BFC09A30 == psx_brB_BFC09A30); + psx_taken_BFC09A30 = (psx_brA_BFC09A30 == psx_brB_BFC09A30); /* 0xBFC09A34: 00403021 addu $a2, $v0, $zero */ cpu->gpr[6] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC09A30) goto label_BFC09A48; @@ -34002,7 +35104,7 @@ label_BFC09A38: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[20] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09A3Cu); return; } g_debug_last_store_pc = 0xBFC09A3Cu; cpu->write_word(psx_addr, cpu->gpr[12]); } /* 0xBFC09A40: 100000A0 beq $zero, $zero, 0xBFC09CC4 */ uint32_t psx_brA_BFC09A40 = cpu->gpr[0]; uint32_t psx_brB_BFC09A40 = cpu->gpr[0]; - int psx_taken_BFC09A40 = (psx_brA_BFC09A40 == psx_brB_BFC09A40); + psx_taken_BFC09A40 = (psx_brA_BFC09A40 == psx_brB_BFC09A40); /* 0xBFC09A44: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC09A40) goto label_BFC09CC4; @@ -34052,7 +35154,7 @@ label_BFC09A80: cpu->gpr[24] = cpu->gpr[15] & 0xF0u; /* 0xBFC09A8C: 15380002 bne $t1, $t8, 0xBFC09A98 */ uint32_t psx_brA_BFC09A8C = cpu->gpr[9]; uint32_t psx_brB_BFC09A8C = cpu->gpr[24]; - int psx_taken_BFC09A8C = (psx_brA_BFC09A8C != psx_brB_BFC09A8C); + psx_taken_BFC09A8C = (psx_brA_BFC09A8C != psx_brB_BFC09A8C); /* 0xBFC09A90: 00000000 nop */ /* nop */ if (psx_taken_BFC09A8C) goto label_BFC09A98; @@ -34072,7 +35174,7 @@ label_BFC09A98: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); /* 0xBFC09A9C: 1443FFF8 bne $v0, $v1, 0xBFC09A80 */ uint32_t psx_brA_BFC09A9C = cpu->gpr[2]; uint32_t psx_brB_BFC09A9C = cpu->gpr[3]; - int psx_taken_BFC09A9C = (psx_brA_BFC09A9C != psx_brB_BFC09A9C); + psx_taken_BFC09A9C = (psx_brA_BFC09A9C != psx_brB_BFC09A9C); /* 0xBFC09AA0: 26310020 addiu $s1, $s1, 32 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (32)); if (psx_taken_BFC09A9C) goto label_BFC09A80; @@ -34093,7 +35195,7 @@ label_BFC09AA4: cpu->gpr[1] = (uint32_t)(cpu->gpr[25] < cpu->gpr[2] ? 1 : 0); /* 0xBFC09AB8: 14200061 bne $at, $zero, 0xBFC09C40 */ uint32_t psx_brA_BFC09AB8 = cpu->gpr[1]; uint32_t psx_brB_BFC09AB8 = cpu->gpr[0]; - int psx_taken_BFC09AB8 = (psx_brA_BFC09AB8 != psx_brB_BFC09AB8); + psx_taken_BFC09AB8 = (psx_brA_BFC09AB8 != psx_brB_BFC09AB8); /* 0xBFC09ABC: AE820020 sw $v0, 32($s4) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[20] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09ABCu); return; } g_debug_last_store_pc = 0xBFC09ABCu; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC09AB8) goto label_BFC09C40; @@ -34110,7 +35212,7 @@ label_BFC09AC0: cpu->gpr[11] = cpu->gpr[2] & 0x1FFFu; /* 0xBFC09ACC: 11600002 beq $t3, $zero, 0xBFC09AD8 */ uint32_t psx_brA_BFC09ACC = cpu->gpr[11]; uint32_t psx_brB_BFC09ACC = cpu->gpr[0]; - int psx_taken_BFC09ACC = (psx_brA_BFC09ACC == psx_brB_BFC09ACC); + psx_taken_BFC09ACC = (psx_brA_BFC09ACC == psx_brB_BFC09ACC); /* 0xBFC09AD0: 00024342 srl $t0, $v0, 13 */ cpu->gpr[8] = cpu->gpr[2] >> 13u; if (psx_taken_BFC09ACC) goto label_BFC09AD8; @@ -34151,7 +35253,7 @@ label_BFC09AF0: cpu->gpr[13] = cpu->gpr[12] & 0xF0u; /* 0xBFC09AFC: 152D0046 bne $t1, $t5, 0xBFC09C18 */ uint32_t psx_brA_BFC09AFC = cpu->gpr[9]; uint32_t psx_brB_BFC09AFC = cpu->gpr[13]; - int psx_taken_BFC09AFC = (psx_brA_BFC09AFC != psx_brB_BFC09AFC); + psx_taken_BFC09AFC = (psx_brA_BFC09AFC != psx_brB_BFC09AFC); /* 0xBFC09B00: 00000000 nop */ /* nop */ if (psx_taken_BFC09AFC) goto label_BFC09C18; @@ -34166,7 +35268,7 @@ label_BFC09B04: cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[29] + (160)); /* 0xBFC09B0C: 14600018 bne $v1, $zero, 0xBFC09B70 */ uint32_t psx_brA_BFC09B0C = cpu->gpr[3]; uint32_t psx_brB_BFC09B0C = cpu->gpr[0]; - int psx_taken_BFC09B0C = (psx_brA_BFC09B0C != psx_brB_BFC09B0C); + psx_taken_BFC09B0C = (psx_brA_BFC09B0C != psx_brB_BFC09B0C); /* 0xBFC09B10: 01CF1021 addu $v0, $t6, $t7 */ cpu->gpr[2] = cpu->gpr[14] + cpu->gpr[15]; if (psx_taken_BFC09B0C) goto label_BFC09B70; @@ -34225,7 +35327,7 @@ label_BFC09B4C: cpu->gpr[6] = cpu->gpr[16] + cpu->gpr[0]; /* 0xBFC09B68: 1000000B beq $zero, $zero, 0xBFC09B98 */ uint32_t psx_brA_BFC09B68 = cpu->gpr[0]; uint32_t psx_brB_BFC09B68 = cpu->gpr[0]; - int psx_taken_BFC09B68 = (psx_brA_BFC09B68 == psx_brB_BFC09B68); + psx_taken_BFC09B68 = (psx_brA_BFC09B68 == psx_brB_BFC09B68); /* 0xBFC09B6C: AC47FFAC sw $a3, -84($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-84)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09B6Cu); return; } g_debug_last_store_pc = 0xBFC09B6Cu; cpu->write_word(psx_addr, cpu->gpr[7]); } if (psx_taken_BFC09B68) goto label_BFC09B98; @@ -34248,7 +35350,7 @@ label_BFC09B70: cpu->gpr[18] = cpu->gpr[16] + cpu->gpr[0]; /* 0xBFC09B88: 10EE0003 beq $a3, $t6, 0xBFC09B98 */ uint32_t psx_brA_BFC09B88 = cpu->gpr[7]; uint32_t psx_brB_BFC09B88 = cpu->gpr[14]; - int psx_taken_BFC09B88 = (psx_brA_BFC09B88 == psx_brB_BFC09B88); + psx_taken_BFC09B88 = (psx_brA_BFC09B88 == psx_brB_BFC09B88); /* 0xBFC09B8C: AE2D0000 sw $t5, 0($s1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09B8Cu); return; } g_debug_last_store_pc = 0xBFC09B8Cu; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC09B88) goto label_BFC09B98; @@ -34272,7 +35374,7 @@ label_BFC09B98: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (int32_t)cpu->gpr[8] ? 1 : 0); /* 0xBFC09BA0: 1420001E bne $at, $zero, 0xBFC09C1C */ uint32_t psx_brA_BFC09BA0 = cpu->gpr[1]; uint32_t psx_brB_BFC09BA0 = cpu->gpr[0]; - int psx_taken_BFC09BA0 = (psx_brA_BFC09BA0 != psx_brB_BFC09BA0); + psx_taken_BFC09BA0 = (psx_brA_BFC09BA0 != psx_brB_BFC09BA0); /* 0xBFC09BA4: 26100001 addiu $s0, $s0, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); if (psx_taken_BFC09BA0) goto label_BFC09C1C; @@ -34287,7 +35389,7 @@ label_BFC09BA8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (2) ? 1 : 0); /* 0xBFC09BB0: 14200003 bne $at, $zero, 0xBFC09BC0 */ uint32_t psx_brA_BFC09BB0 = cpu->gpr[1]; uint32_t psx_brB_BFC09BB0 = cpu->gpr[0]; - int psx_taken_BFC09BB0 = (psx_brA_BFC09BB0 != psx_brB_BFC09BB0); + psx_taken_BFC09BB0 = (psx_brA_BFC09BB0 != psx_brB_BFC09BB0); /* 0xBFC09BB4: A6300008 sh $s0, 8($s1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (8)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09BB4u); return; } g_debug_last_store_pc = 0xBFC09BB4u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[16] & 0xFFFFu)); } if (psx_taken_BFC09BB0) goto label_BFC09BC0; @@ -34327,7 +35429,7 @@ label_BFC09BD4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09BD8u); return; } cpu->gpr[10] = cpu->read_word(psx_addr); } /* 0xBFC09BDC: 10400014 beq $v0, $zero, 0xBFC09C30 */ uint32_t psx_brA_BFC09BDC = cpu->gpr[2]; uint32_t psx_brB_BFC09BDC = cpu->gpr[0]; - int psx_taken_BFC09BDC = (psx_brA_BFC09BDC == psx_brB_BFC09BDC); + psx_taken_BFC09BDC = (psx_brA_BFC09BDC == psx_brB_BFC09BDC); /* 0xBFC09BE0: 240900A0 addiu $t1, $zero, 160 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (160)); if (psx_taken_BFC09BDC) goto label_BFC09C30; @@ -34348,7 +35450,7 @@ label_BFC09BE4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09BF4u); return; } g_debug_last_store_pc = 0xBFC09BF4u; cpu->write_word(psx_addr, cpu->gpr[9]); } /* 0xBFC09BF8: 1660FFFA bne $s3, $zero, 0xBFC09BE4 */ uint32_t psx_brA_BFC09BF8 = cpu->gpr[19]; uint32_t psx_brB_BFC09BF8 = cpu->gpr[0]; - int psx_taken_BFC09BF8 = (psx_brA_BFC09BF8 != psx_brB_BFC09BF8); + psx_taken_BFC09BF8 = (psx_brA_BFC09BF8 != psx_brB_BFC09BF8); /* 0xBFC09BFC: AC400004 sw $zero, 4($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09BFCu); return; } g_debug_last_store_pc = 0xBFC09BFCu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC09BF8) goto label_BFC09BE4; @@ -34367,7 +35469,7 @@ label_BFC09C00: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09C0Cu); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC09C10: 1000002C beq $zero, $zero, 0xBFC09CC4 */ uint32_t psx_brA_BFC09C10 = cpu->gpr[0]; uint32_t psx_brB_BFC09C10 = cpu->gpr[0]; - int psx_taken_BFC09C10 = (psx_brA_BFC09C10 == psx_brB_BFC09C10); + psx_taken_BFC09C10 = (psx_brA_BFC09C10 == psx_brB_BFC09C10); /* 0xBFC09C14: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC09C10) goto label_BFC09CC4; @@ -34387,7 +35489,7 @@ label_BFC09C1C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (15)); /* 0xBFC09C20: 1601FFB3 bne $s0, $at, 0xBFC09AF0 */ uint32_t psx_brA_BFC09C20 = cpu->gpr[16]; uint32_t psx_brB_BFC09C20 = cpu->gpr[1]; - int psx_taken_BFC09C20 = (psx_brA_BFC09C20 != psx_brB_BFC09C20); + psx_taken_BFC09C20 = (psx_brA_BFC09C20 != psx_brB_BFC09C20); /* 0xBFC09C24: 26310020 addiu $s1, $s1, 32 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (32)); if (psx_taken_BFC09C20) goto label_BFC09AF0; @@ -34411,7 +35513,7 @@ label_BFC09C30: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09C34u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } /* 0xBFC09C38: 1000001B beq $zero, $zero, 0xBFC09CA8 */ uint32_t psx_brA_BFC09C38 = cpu->gpr[0]; uint32_t psx_brB_BFC09C38 = cpu->gpr[0]; - int psx_taken_BFC09C38 = (psx_brA_BFC09C38 == psx_brB_BFC09C38); + psx_taken_BFC09C38 = (psx_brA_BFC09C38 == psx_brB_BFC09C38); /* 0xBFC09C3C: 0006C140 sll $t8, $a2, 5 */ cpu->gpr[24] = cpu->gpr[6] << 5u; if (psx_taken_BFC09C38) goto label_BFC09CA8; @@ -34430,7 +35532,7 @@ label_BFC09C40: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09C4Cu); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC09C50: 1000001C beq $zero, $zero, 0xBFC09CC4 */ uint32_t psx_brA_BFC09C50 = cpu->gpr[0]; uint32_t psx_brB_BFC09C50 = cpu->gpr[0]; - int psx_taken_BFC09C50 = (psx_brA_BFC09C50 == psx_brB_BFC09C50); + psx_taken_BFC09C50 = (psx_brA_BFC09C50 == psx_brB_BFC09C50); /* 0xBFC09C54: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC09C50) goto label_BFC09CC4; @@ -34467,7 +35569,7 @@ label_BFC09C70: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC09C74: 14410005 bne $v0, $at, 0xBFC09C8C */ uint32_t psx_brA_BFC09C74 = cpu->gpr[2]; uint32_t psx_brB_BFC09C74 = cpu->gpr[1]; - int psx_taken_BFC09C74 = (psx_brA_BFC09C74 != psx_brB_BFC09C74); + psx_taken_BFC09C74 = (psx_brA_BFC09C74 != psx_brB_BFC09C74); /* 0xBFC09C78: 00403021 addu $a2, $v0, $zero */ cpu->gpr[6] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC09C74) goto label_BFC09C8C; @@ -34482,7 +35584,7 @@ label_BFC09C7C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[20] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09C80u); return; } g_debug_last_store_pc = 0xBFC09C80u; cpu->write_word(psx_addr, cpu->gpr[13]); } /* 0xBFC09C84: 1000000F beq $zero, $zero, 0xBFC09CC4 */ uint32_t psx_brA_BFC09C84 = cpu->gpr[0]; uint32_t psx_brB_BFC09C84 = cpu->gpr[0]; - int psx_taken_BFC09C84 = (psx_brA_BFC09C84 == psx_brB_BFC09C84); + psx_taken_BFC09C84 = (psx_brA_BFC09C84 == psx_brB_BFC09C84); /* 0xBFC09C88: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC09C84) goto label_BFC09CC4; @@ -34553,6 +35655,9 @@ void func_1FC09CDC(CPUState* cpu) { default: break; } } + int psx_taken_BFC09CF0 = 0; + int psx_taken_BFC09D10 = 0; + int psx_taken_BFC09D18 = 0; label_BFC09CDC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -34570,7 +35675,7 @@ label_BFC09CDC: /* nop */ /* 0xBFC09CF0: 05C10002 bgez $t6, 0xBFC09CFC */ uint32_t psx_brA_BFC09CF0 = cpu->gpr[14]; - int psx_taken_BFC09CF0 = ((int32_t)psx_brA_BFC09CF0 >= 0); + psx_taken_BFC09CF0 = ((int32_t)psx_brA_BFC09CF0 >= 0); /* 0xBFC09CF4: 01C00821 addu $at, $t6, $zero */ cpu->gpr[1] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC09CF0) goto label_BFC09CFC; @@ -34598,7 +35703,7 @@ label_BFC09CFC: /* nop */ /* 0xBFC09D10: 13200003 beq $t9, $zero, 0xBFC09D20 */ uint32_t psx_brA_BFC09D10 = cpu->gpr[25]; uint32_t psx_brB_BFC09D10 = cpu->gpr[0]; - int psx_taken_BFC09D10 = (psx_brA_BFC09D10 == psx_brB_BFC09D10); + psx_taken_BFC09D10 = (psx_brA_BFC09D10 == psx_brB_BFC09D10); /* 0xBFC09D14: 00000000 nop */ /* nop */ if (psx_taken_BFC09D10) goto label_BFC09D20; @@ -34609,7 +35714,7 @@ label_BFC09D18: psx_check_interrupts(cpu); /* 0xBFC09D18: 10000004 beq $zero, $zero, 0xBFC09D2C */ uint32_t psx_brA_BFC09D18 = cpu->gpr[0]; uint32_t psx_brB_BFC09D18 = cpu->gpr[0]; - int psx_taken_BFC09D18 = (psx_brA_BFC09D18 == psx_brB_BFC09D18); + psx_taken_BFC09D18 = (psx_brA_BFC09D18 == psx_brB_BFC09D18); /* 0xBFC09D1C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC09D18) goto label_BFC09D2C; @@ -34662,6 +35767,33 @@ void func_1FC09D3C(CPUState* cpu) { default: break; } } + int psx_taken_BFC09D7C = 0; + int psx_taken_BFC09D9C = 0; + int psx_taken_BFC09DA4 = 0; + int psx_taken_BFC09DC0 = 0; + int psx_taken_BFC09DD0 = 0; + int psx_taken_BFC09DE4 = 0; + int psx_taken_BFC09DF4 = 0; + int psx_taken_BFC09E18 = 0; + int psx_taken_BFC09E2C = 0; + int psx_taken_BFC09E44 = 0; + int psx_taken_BFC09E54 = 0; + int psx_taken_BFC09EB4 = 0; + int psx_taken_BFC09EE4 = 0; + int psx_taken_BFC09F14 = 0; + int psx_taken_BFC09F34 = 0; + int psx_taken_BFC09F48 = 0; + int psx_taken_BFC09F60 = 0; + int psx_taken_BFC09F68 = 0; + int psx_taken_BFC09F78 = 0; + int psx_taken_BFC09F80 = 0; + int psx_taken_BFC09F94 = 0; + int psx_taken_BFC09F9C = 0; + int psx_taken_BFC09FD0 = 0; + int psx_taken_BFC09FE0 = 0; + int psx_taken_BFC09FF4 = 0; + int psx_taken_BFC0A02C = 0; + int psx_taken_BFC0A03C = 0; label_BFC09D3C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(18u); @@ -34701,7 +35833,7 @@ label_BFC09D3C: /* nop */ /* 0xBFC09D7C: 06E10002 bgez $s7, 0xBFC09D88 */ uint32_t psx_brA_BFC09D7C = cpu->gpr[23]; - int psx_taken_BFC09D7C = ((int32_t)psx_brA_BFC09D7C >= 0); + psx_taken_BFC09D7C = ((int32_t)psx_brA_BFC09D7C >= 0); /* 0xBFC09D80: 02E00821 addu $at, $s7, $zero */ cpu->gpr[1] = cpu->gpr[23] + cpu->gpr[0]; if (psx_taken_BFC09D7C) goto label_BFC09D88; @@ -34729,7 +35861,7 @@ label_BFC09D88: /* nop */ /* 0xBFC09D9C: 13000003 beq $t8, $zero, 0xBFC09DAC */ uint32_t psx_brA_BFC09D9C = cpu->gpr[24]; uint32_t psx_brB_BFC09D9C = cpu->gpr[0]; - int psx_taken_BFC09D9C = (psx_brA_BFC09D9C == psx_brB_BFC09D9C); + psx_taken_BFC09D9C = (psx_brA_BFC09D9C == psx_brB_BFC09D9C); /* 0xBFC09DA0: 00000000 nop */ /* nop */ if (psx_taken_BFC09D9C) goto label_BFC09DAC; @@ -34740,7 +35872,7 @@ label_BFC09DA4: psx_check_interrupts(cpu); /* 0xBFC09DA4: 100000AE beq $zero, $zero, 0xBFC0A060 */ uint32_t psx_brA_BFC09DA4 = cpu->gpr[0]; uint32_t psx_brB_BFC09DA4 = cpu->gpr[0]; - int psx_taken_BFC09DA4 = (psx_brA_BFC09DA4 == psx_brB_BFC09DA4); + psx_taken_BFC09DA4 = (psx_brA_BFC09DA4 == psx_brB_BFC09DA4); /* 0xBFC09DA8: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC09DA4) goto label_BFC0A060; @@ -34767,7 +35899,7 @@ label_BFC09DB4: cpu->gpr[25] = cpu->gpr[3] & 0x7Fu; /* 0xBFC09DC0: 13200005 beq $t9, $zero, 0xBFC09DD8 */ uint32_t psx_brA_BFC09DC0 = cpu->gpr[25]; uint32_t psx_brB_BFC09DC0 = cpu->gpr[0]; - int psx_taken_BFC09DC0 = (psx_brA_BFC09DC0 == psx_brB_BFC09DC0); + psx_taken_BFC09DC0 = (psx_brA_BFC09DC0 == psx_brB_BFC09DC0); /* 0xBFC09DC4: 00000000 nop */ /* nop */ if (psx_taken_BFC09DC0) goto label_BFC09DD8; @@ -34782,7 +35914,7 @@ label_BFC09DC8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[22] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09DCCu); return; } g_debug_last_store_pc = 0xBFC09DCCu; cpu->write_word(psx_addr, cpu->gpr[8]); } /* 0xBFC09DD0: 100000A3 beq $zero, $zero, 0xBFC0A060 */ uint32_t psx_brA_BFC09DD0 = cpu->gpr[0]; uint32_t psx_brB_BFC09DD0 = cpu->gpr[0]; - int psx_taken_BFC09DD0 = (psx_brA_BFC09DD0 == psx_brB_BFC09DD0); + psx_taken_BFC09DD0 = (psx_brA_BFC09DD0 == psx_brB_BFC09DD0); /* 0xBFC09DD4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC09DD0) goto label_BFC0A060; @@ -34799,7 +35931,7 @@ label_BFC09DD8: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[9] ? 1 : 0); /* 0xBFC09DE4: 14200005 bne $at, $zero, 0xBFC09DFC */ uint32_t psx_brA_BFC09DE4 = cpu->gpr[1]; uint32_t psx_brB_BFC09DE4 = cpu->gpr[0]; - int psx_taken_BFC09DE4 = (psx_brA_BFC09DE4 != psx_brB_BFC09DE4); + psx_taken_BFC09DE4 = (psx_brA_BFC09DE4 != psx_brB_BFC09DE4); /* 0xBFC09DE8: 00000000 nop */ /* nop */ if (psx_taken_BFC09DE4) goto label_BFC09DFC; @@ -34814,7 +35946,7 @@ label_BFC09DEC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[22] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09DF0u); return; } g_debug_last_store_pc = 0xBFC09DF0u; cpu->write_word(psx_addr, cpu->gpr[10]); } /* 0xBFC09DF4: 1000009A beq $zero, $zero, 0xBFC0A060 */ uint32_t psx_brA_BFC09DF4 = cpu->gpr[0]; uint32_t psx_brB_BFC09DF4 = cpu->gpr[0]; - int psx_taken_BFC09DF4 = (psx_brA_BFC09DF4 == psx_brB_BFC09DF4); + psx_taken_BFC09DF4 = (psx_brA_BFC09DF4 == psx_brB_BFC09DF4); /* 0xBFC09DF8: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC09DF4) goto label_BFC0A060; @@ -34839,7 +35971,7 @@ label_BFC09DFC: cpu->gpr[17] = cpu->gpr[3] >> 7u; /* 0xBFC09E18: 06410002 bgez $s2, 0xBFC09E24 */ uint32_t psx_brA_BFC09E18 = cpu->gpr[18]; - int psx_taken_BFC09E18 = ((int32_t)psx_brA_BFC09E18 >= 0); + psx_taken_BFC09E18 = ((int32_t)psx_brA_BFC09E18 >= 0); /* 0xBFC09E1C: 02400821 addu $at, $s2, $zero */ cpu->gpr[1] = cpu->gpr[18] + cpu->gpr[0]; if (psx_taken_BFC09E18) goto label_BFC09E24; @@ -34861,7 +35993,7 @@ label_BFC09E24: cpu->gpr[1] = cpu->gpr[0] | 0x8000u; /* 0xBFC09E2C: 1581004E bne $t4, $at, 0xBFC09F68 */ uint32_t psx_brA_BFC09E2C = cpu->gpr[12]; uint32_t psx_brB_BFC09E2C = cpu->gpr[1]; - int psx_taken_BFC09E2C = (psx_brA_BFC09E2C != psx_brB_BFC09E2C); + psx_taken_BFC09E2C = (psx_brA_BFC09E2C != psx_brB_BFC09E2C); /* 0xBFC09E30: 00000000 nop */ /* nop */ if (psx_taken_BFC09E2C) goto label_BFC09F68; @@ -34880,7 +36012,7 @@ label_BFC09E34: /* nop */ /* 0xBFC09E44: 11A00005 beq $t5, $zero, 0xBFC09E5C */ uint32_t psx_brA_BFC09E44 = cpu->gpr[13]; uint32_t psx_brB_BFC09E44 = cpu->gpr[0]; - int psx_taken_BFC09E44 = (psx_brA_BFC09E44 == psx_brB_BFC09E44); + psx_taken_BFC09E44 = (psx_brA_BFC09E44 == psx_brB_BFC09E44); /* 0xBFC09E48: 00000000 nop */ /* nop */ if (psx_taken_BFC09E44) goto label_BFC09E5C; @@ -34895,7 +36027,7 @@ label_BFC09E4C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09E50u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC09E54: 10000082 beq $zero, $zero, 0xBFC0A060 */ uint32_t psx_brA_BFC09E54 = cpu->gpr[0]; uint32_t psx_brB_BFC09E54 = cpu->gpr[0]; - int psx_taken_BFC09E54 = (psx_brA_BFC09E54 == psx_brB_BFC09E54); + psx_taken_BFC09E54 = (psx_brA_BFC09E54 == psx_brB_BFC09E54); /* 0xBFC09E58: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC09E54) goto label_BFC0A060; @@ -34956,7 +36088,7 @@ label_BFC09EB4: psx_check_interrupts(cpu); /* 0xBFC09EB4: 1640000D bne $s2, $zero, 0xBFC09EEC */ uint32_t psx_brA_BFC09EB4 = cpu->gpr[18]; uint32_t psx_brB_BFC09EB4 = cpu->gpr[0]; - int psx_taken_BFC09EB4 = (psx_brA_BFC09EB4 != psx_brB_BFC09EB4); + psx_taken_BFC09EB4 = (psx_brA_BFC09EB4 != psx_brB_BFC09EB4); /* 0xBFC09EB8: 00000000 nop */ /* nop */ if (psx_taken_BFC09EB4) goto label_BFC09EEC; @@ -34993,7 +36125,7 @@ label_BFC09ED8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09EE0u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC09EE4: 1000005E beq $zero, $zero, 0xBFC0A060 */ uint32_t psx_brA_BFC09EE4 = cpu->gpr[0]; uint32_t psx_brB_BFC09EE4 = cpu->gpr[0]; - int psx_taken_BFC09EE4 = (psx_brA_BFC09EE4 == psx_brB_BFC09EE4); + psx_taken_BFC09EE4 = (psx_brA_BFC09EE4 == psx_brB_BFC09EE4); /* 0xBFC09EE8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC09EE4) goto label_BFC0A060; @@ -35036,7 +36168,7 @@ label_BFC09F10: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC09F14: 14410002 bne $v0, $at, 0xBFC09F20 */ uint32_t psx_brA_BFC09F14 = cpu->gpr[2]; uint32_t psx_brB_BFC09F14 = cpu->gpr[1]; - int psx_taken_BFC09F14 = (psx_brA_BFC09F14 != psx_brB_BFC09F14); + psx_taken_BFC09F14 = (psx_brA_BFC09F14 != psx_brB_BFC09F14); /* 0xBFC09F18: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC09F14) goto label_BFC09F20; @@ -35070,7 +36202,7 @@ label_BFC09F30: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC09F34: 10410006 beq $v0, $at, 0xBFC09F50 */ uint32_t psx_brA_BFC09F34 = cpu->gpr[2]; uint32_t psx_brB_BFC09F34 = cpu->gpr[1]; - int psx_taken_BFC09F34 = (psx_brA_BFC09F34 == psx_brB_BFC09F34); + psx_taken_BFC09F34 = (psx_brA_BFC09F34 == psx_brB_BFC09F34); /* 0xBFC09F38: 00000000 nop */ /* nop */ if (psx_taken_BFC09F34) goto label_BFC09F50; @@ -35087,7 +36219,7 @@ label_BFC09F3C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09F44u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC09F48: 10000045 beq $zero, $zero, 0xBFC0A060 */ uint32_t psx_brA_BFC09F48 = cpu->gpr[0]; uint32_t psx_brB_BFC09F48 = cpu->gpr[0]; - int psx_taken_BFC09F48 = (psx_brA_BFC09F48 == psx_brB_BFC09F48); + psx_taken_BFC09F48 = (psx_brA_BFC09F48 == psx_brB_BFC09F48); /* 0xBFC09F4C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC09F48) goto label_BFC0A060; @@ -35106,7 +36238,7 @@ label_BFC09F50: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09F5Cu); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC09F60: 1000003F beq $zero, $zero, 0xBFC0A060 */ uint32_t psx_brA_BFC09F60 = cpu->gpr[0]; uint32_t psx_brB_BFC09F60 = cpu->gpr[0]; - int psx_taken_BFC09F60 = (psx_brA_BFC09F60 == psx_brB_BFC09F60); + psx_taken_BFC09F60 = (psx_brA_BFC09F60 == psx_brB_BFC09F60); /* 0xBFC09F64: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC09F60) goto label_BFC0A060; @@ -35117,7 +36249,7 @@ label_BFC09F68: psx_check_interrupts(cpu); /* 0xBFC09F68: 1A400028 blez $s2, 0xBFC0A00C */ uint32_t psx_brA_BFC09F68 = cpu->gpr[18]; - int psx_taken_BFC09F68 = ((int32_t)psx_brA_BFC09F68 <= 0); + psx_taken_BFC09F68 = ((int32_t)psx_brA_BFC09F68 <= 0); /* 0xBFC09F6C: 001311C0 sll $v0, $s3, 7 */ cpu->gpr[2] = cpu->gpr[19] << 7u; if (psx_taken_BFC09F68) goto label_BFC0A00C; @@ -35137,7 +36269,7 @@ label_BFC09F78: psx_check_interrupts(cpu); /* 0xBFC09F78: 06210004 bgez $s1, 0xBFC09F8C */ uint32_t psx_brA_BFC09F78 = cpu->gpr[17]; - int psx_taken_BFC09F78 = ((int32_t)psx_brA_BFC09F78 >= 0); + psx_taken_BFC09F78 = ((int32_t)psx_brA_BFC09F78 >= 0); /* 0xBFC09F7C: 322D003F andi $t5, $s1, 0x3F */ cpu->gpr[13] = cpu->gpr[17] & 0x3Fu; if (psx_taken_BFC09F78) goto label_BFC09F8C; @@ -35148,7 +36280,7 @@ label_BFC09F80: psx_check_interrupts(cpu); /* 0xBFC09F80: 11A00002 beq $t5, $zero, 0xBFC09F8C */ uint32_t psx_brA_BFC09F80 = cpu->gpr[13]; uint32_t psx_brB_BFC09F80 = cpu->gpr[0]; - int psx_taken_BFC09F80 = (psx_brA_BFC09F80 == psx_brB_BFC09F80); + psx_taken_BFC09F80 = (psx_brA_BFC09F80 == psx_brB_BFC09F80); /* 0xBFC09F84: 00000000 nop */ /* nop */ if (psx_taken_BFC09F80) goto label_BFC09F8C; @@ -35170,7 +36302,7 @@ label_BFC09F8C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[18] ? 1 : 0); /* 0xBFC09F94: 10200004 beq $at, $zero, 0xBFC09FA8 */ uint32_t psx_brA_BFC09F94 = cpu->gpr[1]; uint32_t psx_brB_BFC09F94 = cpu->gpr[0]; - int psx_taken_BFC09F94 = (psx_brA_BFC09F94 == psx_brB_BFC09F94); + psx_taken_BFC09F94 = (psx_brA_BFC09F94 == psx_brB_BFC09F94); /* 0xBFC09F98: 02408021 addu $s0, $s2, $zero */ cpu->gpr[16] = cpu->gpr[18] + cpu->gpr[0]; if (psx_taken_BFC09F94) goto label_BFC09FA8; @@ -35181,7 +36313,7 @@ label_BFC09F9C: psx_check_interrupts(cpu); /* 0xBFC09F9C: 10000002 beq $zero, $zero, 0xBFC09FA8 */ uint32_t psx_brA_BFC09F9C = cpu->gpr[0]; uint32_t psx_brB_BFC09F9C = cpu->gpr[0]; - int psx_taken_BFC09F9C = (psx_brA_BFC09F9C == psx_brB_BFC09F9C); + psx_taken_BFC09F9C = (psx_brA_BFC09F9C == psx_brB_BFC09F9C); /* 0xBFC09FA0: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC09F9C) goto label_BFC09FA8; @@ -35231,7 +36363,7 @@ label_BFC09FCC: cpu->gpr[3] = cpu->gpr[16] << 7u; /* 0xBFC09FD0: 10430006 beq $v0, $v1, 0xBFC09FEC */ uint32_t psx_brA_BFC09FD0 = cpu->gpr[2]; uint32_t psx_brB_BFC09FD0 = cpu->gpr[3]; - int psx_taken_BFC09FD0 = (psx_brA_BFC09FD0 == psx_brB_BFC09FD0); + psx_taken_BFC09FD0 = (psx_brA_BFC09FD0 == psx_brB_BFC09FD0); /* 0xBFC09FD4: 02509023 subu $s2, $s2, $s0 */ cpu->gpr[18] = cpu->gpr[18] - cpu->gpr[16]; if (psx_taken_BFC09FD0) goto label_BFC09FEC; @@ -35246,7 +36378,7 @@ label_BFC09FD8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC09FDCu); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC09FE0: 1000000A beq $zero, $zero, 0xBFC0A00C */ uint32_t psx_brA_BFC09FE0 = cpu->gpr[0]; uint32_t psx_brB_BFC09FE0 = cpu->gpr[0]; - int psx_taken_BFC09FE0 = (psx_brA_BFC09FE0 == psx_brB_BFC09FE0); + psx_taken_BFC09FE0 = (psx_brA_BFC09FE0 == psx_brB_BFC09FE0); /* 0xBFC09FE4: 001311C0 sll $v0, $s3, 7 */ cpu->gpr[2] = cpu->gpr[19] << 7u; if (psx_taken_BFC09FE0) goto label_BFC0A00C; @@ -35268,7 +36400,7 @@ label_BFC09FEC: cpu->gpr[20] = cpu->gpr[20] + cpu->gpr[3]; /* 0xBFC09FF4: 1E40FFE0 bgtz $s2, 0xBFC09F78 */ uint32_t psx_brA_BFC09FF4 = cpu->gpr[18]; - int psx_taken_BFC09FF4 = ((int32_t)psx_brA_BFC09FF4 > 0); + psx_taken_BFC09FF4 = ((int32_t)psx_brA_BFC09FF4 > 0); /* 0xBFC09FF8: 02709821 addu $s3, $s3, $s0 */ cpu->gpr[19] = cpu->gpr[19] + cpu->gpr[16]; if (psx_taken_BFC09FF4) goto label_BFC09F78; @@ -35308,7 +36440,7 @@ label_BFC0A00C: /* nop */ /* 0xBFC0A02C: 17020006 bne $t8, $v0, 0xBFC0A048 */ uint32_t psx_brA_BFC0A02C = cpu->gpr[24]; uint32_t psx_brB_BFC0A02C = cpu->gpr[2]; - int psx_taken_BFC0A02C = (psx_brA_BFC0A02C != psx_brB_BFC0A02C); + psx_taken_BFC0A02C = (psx_brA_BFC0A02C != psx_brB_BFC0A02C); /* 0xBFC0A030: 0017C880 sll $t9, $s7, 2 */ cpu->gpr[25] = cpu->gpr[23] << 2u; if (psx_taken_BFC0A02C) goto label_BFC0A048; @@ -35323,7 +36455,7 @@ label_BFC0A034: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A038u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC0A03C: 10000008 beq $zero, $zero, 0xBFC0A060 */ uint32_t psx_brA_BFC0A03C = cpu->gpr[0]; uint32_t psx_brB_BFC0A03C = cpu->gpr[0]; - int psx_taken_BFC0A03C = (psx_brA_BFC0A03C == psx_brB_BFC0A03C); + psx_taken_BFC0A03C = (psx_brA_BFC0A03C == psx_brB_BFC0A03C); /* 0xBFC0A040: 03001021 addu $v0, $t8, $zero */ cpu->gpr[2] = cpu->gpr[24] + cpu->gpr[0]; if (psx_taken_BFC0A03C) goto label_BFC0A060; @@ -35391,6 +36523,33 @@ void func_1FC0A080(CPUState* cpu) { default: break; } } + int psx_taken_BFC0A0C0 = 0; + int psx_taken_BFC0A0E0 = 0; + int psx_taken_BFC0A0E8 = 0; + int psx_taken_BFC0A104 = 0; + int psx_taken_BFC0A114 = 0; + int psx_taken_BFC0A128 = 0; + int psx_taken_BFC0A138 = 0; + int psx_taken_BFC0A15C = 0; + int psx_taken_BFC0A170 = 0; + int psx_taken_BFC0A188 = 0; + int psx_taken_BFC0A198 = 0; + int psx_taken_BFC0A1F8 = 0; + int psx_taken_BFC0A228 = 0; + int psx_taken_BFC0A258 = 0; + int psx_taken_BFC0A288 = 0; + int psx_taken_BFC0A29C = 0; + int psx_taken_BFC0A2B4 = 0; + int psx_taken_BFC0A2BC = 0; + int psx_taken_BFC0A2CC = 0; + int psx_taken_BFC0A2D4 = 0; + int psx_taken_BFC0A2E8 = 0; + int psx_taken_BFC0A2F0 = 0; + int psx_taken_BFC0A324 = 0; + int psx_taken_BFC0A334 = 0; + int psx_taken_BFC0A348 = 0; + int psx_taken_BFC0A380 = 0; + int psx_taken_BFC0A390 = 0; label_BFC0A080: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(18u); @@ -35430,7 +36589,7 @@ label_BFC0A080: /* nop */ /* 0xBFC0A0C0: 06E10002 bgez $s7, 0xBFC0A0CC */ uint32_t psx_brA_BFC0A0C0 = cpu->gpr[23]; - int psx_taken_BFC0A0C0 = ((int32_t)psx_brA_BFC0A0C0 >= 0); + psx_taken_BFC0A0C0 = ((int32_t)psx_brA_BFC0A0C0 >= 0); /* 0xBFC0A0C4: 02E00821 addu $at, $s7, $zero */ cpu->gpr[1] = cpu->gpr[23] + cpu->gpr[0]; if (psx_taken_BFC0A0C0) goto label_BFC0A0CC; @@ -35458,7 +36617,7 @@ label_BFC0A0CC: /* nop */ /* 0xBFC0A0E0: 13000003 beq $t8, $zero, 0xBFC0A0F0 */ uint32_t psx_brA_BFC0A0E0 = cpu->gpr[24]; uint32_t psx_brB_BFC0A0E0 = cpu->gpr[0]; - int psx_taken_BFC0A0E0 = (psx_brA_BFC0A0E0 == psx_brB_BFC0A0E0); + psx_taken_BFC0A0E0 = (psx_brA_BFC0A0E0 == psx_brB_BFC0A0E0); /* 0xBFC0A0E4: 00000000 nop */ /* nop */ if (psx_taken_BFC0A0E0) goto label_BFC0A0F0; @@ -35469,7 +36628,7 @@ label_BFC0A0E8: psx_check_interrupts(cpu); /* 0xBFC0A0E8: 100000B2 beq $zero, $zero, 0xBFC0A3B4 */ uint32_t psx_brA_BFC0A0E8 = cpu->gpr[0]; uint32_t psx_brB_BFC0A0E8 = cpu->gpr[0]; - int psx_taken_BFC0A0E8 = (psx_brA_BFC0A0E8 == psx_brB_BFC0A0E8); + psx_taken_BFC0A0E8 = (psx_brA_BFC0A0E8 == psx_brB_BFC0A0E8); /* 0xBFC0A0EC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0A0E8) goto label_BFC0A3B4; @@ -35496,7 +36655,7 @@ label_BFC0A0F8: cpu->gpr[25] = cpu->gpr[3] & 0x7Fu; /* 0xBFC0A104: 13200005 beq $t9, $zero, 0xBFC0A11C */ uint32_t psx_brA_BFC0A104 = cpu->gpr[25]; uint32_t psx_brB_BFC0A104 = cpu->gpr[0]; - int psx_taken_BFC0A104 = (psx_brA_BFC0A104 == psx_brB_BFC0A104); + psx_taken_BFC0A104 = (psx_brA_BFC0A104 == psx_brB_BFC0A104); /* 0xBFC0A108: 00000000 nop */ /* nop */ if (psx_taken_BFC0A104) goto label_BFC0A11C; @@ -35511,7 +36670,7 @@ label_BFC0A10C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[22] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A110u); return; } g_debug_last_store_pc = 0xBFC0A110u; cpu->write_word(psx_addr, cpu->gpr[8]); } /* 0xBFC0A114: 100000A7 beq $zero, $zero, 0xBFC0A3B4 */ uint32_t psx_brA_BFC0A114 = cpu->gpr[0]; uint32_t psx_brB_BFC0A114 = cpu->gpr[0]; - int psx_taken_BFC0A114 = (psx_brA_BFC0A114 == psx_brB_BFC0A114); + psx_taken_BFC0A114 = (psx_brA_BFC0A114 == psx_brB_BFC0A114); /* 0xBFC0A118: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0A114) goto label_BFC0A3B4; @@ -35528,7 +36687,7 @@ label_BFC0A11C: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[9] ? 1 : 0); /* 0xBFC0A128: 14200005 bne $at, $zero, 0xBFC0A140 */ uint32_t psx_brA_BFC0A128 = cpu->gpr[1]; uint32_t psx_brB_BFC0A128 = cpu->gpr[0]; - int psx_taken_BFC0A128 = (psx_brA_BFC0A128 != psx_brB_BFC0A128); + psx_taken_BFC0A128 = (psx_brA_BFC0A128 != psx_brB_BFC0A128); /* 0xBFC0A12C: 00000000 nop */ /* nop */ if (psx_taken_BFC0A128) goto label_BFC0A140; @@ -35543,7 +36702,7 @@ label_BFC0A130: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[22] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A134u); return; } g_debug_last_store_pc = 0xBFC0A134u; cpu->write_word(psx_addr, cpu->gpr[10]); } /* 0xBFC0A138: 1000009E beq $zero, $zero, 0xBFC0A3B4 */ uint32_t psx_brA_BFC0A138 = cpu->gpr[0]; uint32_t psx_brB_BFC0A138 = cpu->gpr[0]; - int psx_taken_BFC0A138 = (psx_brA_BFC0A138 == psx_brB_BFC0A138); + psx_taken_BFC0A138 = (psx_brA_BFC0A138 == psx_brB_BFC0A138); /* 0xBFC0A13C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0A138) goto label_BFC0A3B4; @@ -35568,7 +36727,7 @@ label_BFC0A140: cpu->gpr[17] = cpu->gpr[3] >> 7u; /* 0xBFC0A15C: 06410002 bgez $s2, 0xBFC0A168 */ uint32_t psx_brA_BFC0A15C = cpu->gpr[18]; - int psx_taken_BFC0A15C = ((int32_t)psx_brA_BFC0A15C >= 0); + psx_taken_BFC0A15C = ((int32_t)psx_brA_BFC0A15C >= 0); /* 0xBFC0A160: 02400821 addu $at, $s2, $zero */ cpu->gpr[1] = cpu->gpr[18] + cpu->gpr[0]; if (psx_taken_BFC0A15C) goto label_BFC0A168; @@ -35590,7 +36749,7 @@ label_BFC0A168: cpu->gpr[1] = cpu->gpr[0] | 0x8000u; /* 0xBFC0A170: 15810052 bne $t4, $at, 0xBFC0A2BC */ uint32_t psx_brA_BFC0A170 = cpu->gpr[12]; uint32_t psx_brB_BFC0A170 = cpu->gpr[1]; - int psx_taken_BFC0A170 = (psx_brA_BFC0A170 != psx_brB_BFC0A170); + psx_taken_BFC0A170 = (psx_brA_BFC0A170 != psx_brB_BFC0A170); /* 0xBFC0A174: 00000000 nop */ /* nop */ if (psx_taken_BFC0A170) goto label_BFC0A2BC; @@ -35609,7 +36768,7 @@ label_BFC0A178: /* nop */ /* 0xBFC0A188: 11A00005 beq $t5, $zero, 0xBFC0A1A0 */ uint32_t psx_brA_BFC0A188 = cpu->gpr[13]; uint32_t psx_brB_BFC0A188 = cpu->gpr[0]; - int psx_taken_BFC0A188 = (psx_brA_BFC0A188 == psx_brB_BFC0A188); + psx_taken_BFC0A188 = (psx_brA_BFC0A188 == psx_brB_BFC0A188); /* 0xBFC0A18C: 00000000 nop */ /* nop */ if (psx_taken_BFC0A188) goto label_BFC0A1A0; @@ -35624,7 +36783,7 @@ label_BFC0A190: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A194u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC0A198: 10000086 beq $zero, $zero, 0xBFC0A3B4 */ uint32_t psx_brA_BFC0A198 = cpu->gpr[0]; uint32_t psx_brB_BFC0A198 = cpu->gpr[0]; - int psx_taken_BFC0A198 = (psx_brA_BFC0A198 == psx_brB_BFC0A198); + psx_taken_BFC0A198 = (psx_brA_BFC0A198 == psx_brB_BFC0A198); /* 0xBFC0A19C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0A198) goto label_BFC0A3B4; @@ -35685,7 +36844,7 @@ label_BFC0A1F8: psx_check_interrupts(cpu); /* 0xBFC0A1F8: 1640000D bne $s2, $zero, 0xBFC0A230 */ uint32_t psx_brA_BFC0A1F8 = cpu->gpr[18]; uint32_t psx_brB_BFC0A1F8 = cpu->gpr[0]; - int psx_taken_BFC0A1F8 = (psx_brA_BFC0A1F8 != psx_brB_BFC0A1F8); + psx_taken_BFC0A1F8 = (psx_brA_BFC0A1F8 != psx_brB_BFC0A1F8); /* 0xBFC0A1FC: 00000000 nop */ /* nop */ if (psx_taken_BFC0A1F8) goto label_BFC0A230; @@ -35722,7 +36881,7 @@ label_BFC0A21C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A224u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC0A228: 10000062 beq $zero, $zero, 0xBFC0A3B4 */ uint32_t psx_brA_BFC0A228 = cpu->gpr[0]; uint32_t psx_brB_BFC0A228 = cpu->gpr[0]; - int psx_taken_BFC0A228 = (psx_brA_BFC0A228 == psx_brB_BFC0A228); + psx_taken_BFC0A228 = (psx_brA_BFC0A228 == psx_brB_BFC0A228); /* 0xBFC0A22C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0A228) goto label_BFC0A3B4; @@ -35765,7 +36924,7 @@ label_BFC0A254: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC0A258: 14410002 bne $v0, $at, 0xBFC0A264 */ uint32_t psx_brA_BFC0A258 = cpu->gpr[2]; uint32_t psx_brB_BFC0A258 = cpu->gpr[1]; - int psx_taken_BFC0A258 = (psx_brA_BFC0A258 != psx_brB_BFC0A258); + psx_taken_BFC0A258 = (psx_brA_BFC0A258 != psx_brB_BFC0A258); /* 0xBFC0A25C: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0A258) goto label_BFC0A264; @@ -35807,7 +36966,7 @@ label_BFC0A284: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0A288: 10410006 beq $v0, $at, 0xBFC0A2A4 */ uint32_t psx_brA_BFC0A288 = cpu->gpr[2]; uint32_t psx_brB_BFC0A288 = cpu->gpr[1]; - int psx_taken_BFC0A288 = (psx_brA_BFC0A288 == psx_brB_BFC0A288); + psx_taken_BFC0A288 = (psx_brA_BFC0A288 == psx_brB_BFC0A288); /* 0xBFC0A28C: 00000000 nop */ /* nop */ if (psx_taken_BFC0A288) goto label_BFC0A2A4; @@ -35824,7 +36983,7 @@ label_BFC0A290: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A298u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC0A29C: 10000045 beq $zero, $zero, 0xBFC0A3B4 */ uint32_t psx_brA_BFC0A29C = cpu->gpr[0]; uint32_t psx_brB_BFC0A29C = cpu->gpr[0]; - int psx_taken_BFC0A29C = (psx_brA_BFC0A29C == psx_brB_BFC0A29C); + psx_taken_BFC0A29C = (psx_brA_BFC0A29C == psx_brB_BFC0A29C); /* 0xBFC0A2A0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0A29C) goto label_BFC0A3B4; @@ -35843,7 +37002,7 @@ label_BFC0A2A4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A2B0u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC0A2B4: 1000003F beq $zero, $zero, 0xBFC0A3B4 */ uint32_t psx_brA_BFC0A2B4 = cpu->gpr[0]; uint32_t psx_brB_BFC0A2B4 = cpu->gpr[0]; - int psx_taken_BFC0A2B4 = (psx_brA_BFC0A2B4 == psx_brB_BFC0A2B4); + psx_taken_BFC0A2B4 = (psx_brA_BFC0A2B4 == psx_brB_BFC0A2B4); /* 0xBFC0A2B8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0A2B4) goto label_BFC0A3B4; @@ -35854,7 +37013,7 @@ label_BFC0A2BC: psx_check_interrupts(cpu); /* 0xBFC0A2BC: 1A400028 blez $s2, 0xBFC0A360 */ uint32_t psx_brA_BFC0A2BC = cpu->gpr[18]; - int psx_taken_BFC0A2BC = ((int32_t)psx_brA_BFC0A2BC <= 0); + psx_taken_BFC0A2BC = ((int32_t)psx_brA_BFC0A2BC <= 0); /* 0xBFC0A2C0: 001311C0 sll $v0, $s3, 7 */ cpu->gpr[2] = cpu->gpr[19] << 7u; if (psx_taken_BFC0A2BC) goto label_BFC0A360; @@ -35874,7 +37033,7 @@ label_BFC0A2CC: psx_check_interrupts(cpu); /* 0xBFC0A2CC: 06210004 bgez $s1, 0xBFC0A2E0 */ uint32_t psx_brA_BFC0A2CC = cpu->gpr[17]; - int psx_taken_BFC0A2CC = ((int32_t)psx_brA_BFC0A2CC >= 0); + psx_taken_BFC0A2CC = ((int32_t)psx_brA_BFC0A2CC >= 0); /* 0xBFC0A2D0: 322E003F andi $t6, $s1, 0x3F */ cpu->gpr[14] = cpu->gpr[17] & 0x3Fu; if (psx_taken_BFC0A2CC) goto label_BFC0A2E0; @@ -35885,7 +37044,7 @@ label_BFC0A2D4: psx_check_interrupts(cpu); /* 0xBFC0A2D4: 11C00002 beq $t6, $zero, 0xBFC0A2E0 */ uint32_t psx_brA_BFC0A2D4 = cpu->gpr[14]; uint32_t psx_brB_BFC0A2D4 = cpu->gpr[0]; - int psx_taken_BFC0A2D4 = (psx_brA_BFC0A2D4 == psx_brB_BFC0A2D4); + psx_taken_BFC0A2D4 = (psx_brA_BFC0A2D4 == psx_brB_BFC0A2D4); /* 0xBFC0A2D8: 00000000 nop */ /* nop */ if (psx_taken_BFC0A2D4) goto label_BFC0A2E0; @@ -35907,7 +37066,7 @@ label_BFC0A2E0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[18] ? 1 : 0); /* 0xBFC0A2E8: 10200004 beq $at, $zero, 0xBFC0A2FC */ uint32_t psx_brA_BFC0A2E8 = cpu->gpr[1]; uint32_t psx_brB_BFC0A2E8 = cpu->gpr[0]; - int psx_taken_BFC0A2E8 = (psx_brA_BFC0A2E8 == psx_brB_BFC0A2E8); + psx_taken_BFC0A2E8 = (psx_brA_BFC0A2E8 == psx_brB_BFC0A2E8); /* 0xBFC0A2EC: 02408021 addu $s0, $s2, $zero */ cpu->gpr[16] = cpu->gpr[18] + cpu->gpr[0]; if (psx_taken_BFC0A2E8) goto label_BFC0A2FC; @@ -35918,7 +37077,7 @@ label_BFC0A2F0: psx_check_interrupts(cpu); /* 0xBFC0A2F0: 10000002 beq $zero, $zero, 0xBFC0A2FC */ uint32_t psx_brA_BFC0A2F0 = cpu->gpr[0]; uint32_t psx_brB_BFC0A2F0 = cpu->gpr[0]; - int psx_taken_BFC0A2F0 = (psx_brA_BFC0A2F0 == psx_brB_BFC0A2F0); + psx_taken_BFC0A2F0 = (psx_brA_BFC0A2F0 == psx_brB_BFC0A2F0); /* 0xBFC0A2F4: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0A2F0) goto label_BFC0A2FC; @@ -35968,7 +37127,7 @@ label_BFC0A320: cpu->gpr[3] = cpu->gpr[16] << 7u; /* 0xBFC0A324: 10430006 beq $v0, $v1, 0xBFC0A340 */ uint32_t psx_brA_BFC0A324 = cpu->gpr[2]; uint32_t psx_brB_BFC0A324 = cpu->gpr[3]; - int psx_taken_BFC0A324 = (psx_brA_BFC0A324 == psx_brB_BFC0A324); + psx_taken_BFC0A324 = (psx_brA_BFC0A324 == psx_brB_BFC0A324); /* 0xBFC0A328: 02509023 subu $s2, $s2, $s0 */ cpu->gpr[18] = cpu->gpr[18] - cpu->gpr[16]; if (psx_taken_BFC0A324) goto label_BFC0A340; @@ -35983,7 +37142,7 @@ label_BFC0A32C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A330u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC0A334: 1000000A beq $zero, $zero, 0xBFC0A360 */ uint32_t psx_brA_BFC0A334 = cpu->gpr[0]; uint32_t psx_brB_BFC0A334 = cpu->gpr[0]; - int psx_taken_BFC0A334 = (psx_brA_BFC0A334 == psx_brB_BFC0A334); + psx_taken_BFC0A334 = (psx_brA_BFC0A334 == psx_brB_BFC0A334); /* 0xBFC0A338: 001311C0 sll $v0, $s3, 7 */ cpu->gpr[2] = cpu->gpr[19] << 7u; if (psx_taken_BFC0A334) goto label_BFC0A360; @@ -36005,7 +37164,7 @@ label_BFC0A340: cpu->gpr[20] = cpu->gpr[20] + cpu->gpr[3]; /* 0xBFC0A348: 1E40FFE0 bgtz $s2, 0xBFC0A2CC */ uint32_t psx_brA_BFC0A348 = cpu->gpr[18]; - int psx_taken_BFC0A348 = ((int32_t)psx_brA_BFC0A348 > 0); + psx_taken_BFC0A348 = ((int32_t)psx_brA_BFC0A348 > 0); /* 0xBFC0A34C: 02709821 addu $s3, $s3, $s0 */ cpu->gpr[19] = cpu->gpr[19] + cpu->gpr[16]; if (psx_taken_BFC0A348) goto label_BFC0A2CC; @@ -36045,7 +37204,7 @@ label_BFC0A360: /* nop */ /* 0xBFC0A380: 17220006 bne $t9, $v0, 0xBFC0A39C */ uint32_t psx_brA_BFC0A380 = cpu->gpr[25]; uint32_t psx_brB_BFC0A380 = cpu->gpr[2]; - int psx_taken_BFC0A380 = (psx_brA_BFC0A380 != psx_brB_BFC0A380); + psx_taken_BFC0A380 = (psx_brA_BFC0A380 != psx_brB_BFC0A380); /* 0xBFC0A384: 00174080 sll $t0, $s7, 2 */ cpu->gpr[8] = cpu->gpr[23] << 2u; if (psx_taken_BFC0A380) goto label_BFC0A39C; @@ -36060,7 +37219,7 @@ label_BFC0A388: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A38Cu); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC0A390: 10000008 beq $zero, $zero, 0xBFC0A3B4 */ uint32_t psx_brA_BFC0A390 = cpu->gpr[0]; uint32_t psx_brB_BFC0A390 = cpu->gpr[0]; - int psx_taken_BFC0A390 = (psx_brA_BFC0A390 == psx_brB_BFC0A390); + psx_taken_BFC0A390 = (psx_brA_BFC0A390 == psx_brB_BFC0A390); /* 0xBFC0A394: 03201021 addu $v0, $t9, $zero */ cpu->gpr[2] = cpu->gpr[25] + cpu->gpr[0]; if (psx_taken_BFC0A390) goto label_BFC0A3B4; @@ -36113,6 +37272,9 @@ label_BFC0A3B4: void func_1FC0A3D4(CPUState* cpu) { debug_server_log_call_entry(0x1FC0A3D4u); + int psx_taken_BFC0A3D8 = 0; + int psx_taken_BFC0A40C = 0; + int psx_taken_BFC0A420 = 0; label_BFC0A3D4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -36122,7 +37284,7 @@ label_BFC0A3D4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[6] < (64) ? 1 : 0); /* 0xBFC0A3D8: 14200014 bne $at, $zero, 0xBFC0A42C */ uint32_t psx_brA_BFC0A3D8 = cpu->gpr[1]; uint32_t psx_brB_BFC0A3D8 = cpu->gpr[0]; - int psx_taken_BFC0A3D8 = (psx_brA_BFC0A3D8 != psx_brB_BFC0A3D8); + psx_taken_BFC0A3D8 = (psx_brA_BFC0A3D8 != psx_brB_BFC0A3D8); /* 0xBFC0A3DC: 00054180 sll $t0, $a1, 6 */ cpu->gpr[8] = cpu->gpr[5] << 6u; if (psx_taken_BFC0A3D8) goto label_BFC0A42C; @@ -36160,7 +37322,7 @@ label_BFC0A400: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-64)); /* 0xBFC0A40C: 14A30004 bne $a1, $v1, 0xBFC0A420 */ uint32_t psx_brA_BFC0A40C = cpu->gpr[5]; uint32_t psx_brB_BFC0A40C = cpu->gpr[3]; - int psx_taken_BFC0A40C = (psx_brA_BFC0A40C != psx_brB_BFC0A40C); + psx_taken_BFC0A40C = (psx_brA_BFC0A40C != psx_brB_BFC0A40C); /* 0xBFC0A410: 28C10040 slti $at, $a2, 64 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[6] < (64) ? 1 : 0); if (psx_taken_BFC0A40C) goto label_BFC0A420; @@ -36180,7 +37342,7 @@ label_BFC0A420: psx_check_interrupts(cpu); /* 0xBFC0A420: 1020FFF7 beq $at, $zero, 0xBFC0A400 */ uint32_t psx_brA_BFC0A420 = cpu->gpr[1]; uint32_t psx_brB_BFC0A420 = cpu->gpr[0]; - int psx_taken_BFC0A420 = (psx_brA_BFC0A420 == psx_brB_BFC0A420); + psx_taken_BFC0A420 = (psx_brA_BFC0A420 == psx_brB_BFC0A420); /* 0xBFC0A424: 0005C140 sll $t8, $a1, 5 */ cpu->gpr[24] = cpu->gpr[5] << 5u; if (psx_taken_BFC0A420) goto label_BFC0A400; @@ -36208,6 +37370,13 @@ label_BFC0A42C: void func_1FC0A43C(CPUState* cpu) { debug_server_log_call_entry(0x1FC0A43Cu); + int psx_taken_BFC0A444 = 0; + int psx_taken_BFC0A44C = 0; + int psx_taken_BFC0A460 = 0; + int psx_taken_BFC0A468 = 0; + int psx_taken_BFC0A480 = 0; + int psx_taken_BFC0A490 = 0; + int psx_taken_BFC0A498 = 0; label_BFC0A43C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -36219,7 +37388,7 @@ label_BFC0A43C: /* nop */ /* 0xBFC0A444: 14400004 bne $v0, $zero, 0xBFC0A458 */ uint32_t psx_brA_BFC0A444 = cpu->gpr[2]; uint32_t psx_brB_BFC0A444 = cpu->gpr[0]; - int psx_taken_BFC0A444 = (psx_brA_BFC0A444 != psx_brB_BFC0A444); + psx_taken_BFC0A444 = (psx_brA_BFC0A444 != psx_brB_BFC0A444); /* 0xBFC0A448: 2406003F addiu $a2, $zero, 63 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[0] + (63)); if (psx_taken_BFC0A444) goto label_BFC0A458; @@ -36230,7 +37399,7 @@ label_BFC0A44C: psx_check_interrupts(cpu); /* 0xBFC0A44C: 1000000E beq $zero, $zero, 0xBFC0A488 */ uint32_t psx_brA_BFC0A44C = cpu->gpr[0]; uint32_t psx_brB_BFC0A44C = cpu->gpr[0]; - int psx_taken_BFC0A44C = (psx_brA_BFC0A44C == psx_brB_BFC0A44C); + psx_taken_BFC0A44C = (psx_brA_BFC0A44C == psx_brB_BFC0A44C); /* 0xBFC0A450: 2406003F addiu $a2, $zero, 63 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[0] + (63)); if (psx_taken_BFC0A44C) goto label_BFC0A488; @@ -36252,7 +37421,7 @@ label_BFC0A458: /* nop */ /* 0xBFC0A460: 10C30005 beq $a2, $v1, 0xBFC0A478 */ uint32_t psx_brA_BFC0A460 = cpu->gpr[6]; uint32_t psx_brB_BFC0A460 = cpu->gpr[3]; - int psx_taken_BFC0A460 = (psx_brA_BFC0A460 == psx_brB_BFC0A460); + psx_taken_BFC0A460 = (psx_brA_BFC0A460 == psx_brB_BFC0A460); /* 0xBFC0A464: 00000000 nop */ /* nop */ if (psx_taken_BFC0A460) goto label_BFC0A478; @@ -36263,7 +37432,7 @@ label_BFC0A468: psx_check_interrupts(cpu); /* 0xBFC0A468: 10620003 beq $v1, $v0, 0xBFC0A478 */ uint32_t psx_brA_BFC0A468 = cpu->gpr[3]; uint32_t psx_brB_BFC0A468 = cpu->gpr[2]; - int psx_taken_BFC0A468 = (psx_brA_BFC0A468 == psx_brB_BFC0A468); + psx_taken_BFC0A468 = (psx_brA_BFC0A468 == psx_brB_BFC0A468); /* 0xBFC0A46C: 00000000 nop */ /* nop */ if (psx_taken_BFC0A468) goto label_BFC0A478; @@ -36287,7 +37456,7 @@ label_BFC0A478: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC0A480: 1440FFF5 bne $v0, $zero, 0xBFC0A458 */ uint32_t psx_brA_BFC0A480 = cpu->gpr[2]; uint32_t psx_brB_BFC0A480 = cpu->gpr[0]; - int psx_taken_BFC0A480 = (psx_brA_BFC0A480 != psx_brB_BFC0A480); + psx_taken_BFC0A480 = (psx_brA_BFC0A480 != psx_brB_BFC0A480); /* 0xBFC0A484: 24840001 addiu $a0, $a0, 1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); if (psx_taken_BFC0A480) goto label_BFC0A458; @@ -36302,7 +37471,7 @@ label_BFC0A488: /* nop */ /* 0xBFC0A490: 10620003 beq $v1, $v0, 0xBFC0A4A0 */ uint32_t psx_brA_BFC0A490 = cpu->gpr[3]; uint32_t psx_brB_BFC0A490 = cpu->gpr[2]; - int psx_taken_BFC0A490 = (psx_brA_BFC0A490 == psx_brB_BFC0A490); + psx_taken_BFC0A490 = (psx_brA_BFC0A490 == psx_brB_BFC0A490); /* 0xBFC0A494: 00000000 nop */ /* nop */ if (psx_taken_BFC0A490) goto label_BFC0A4A0; @@ -36313,7 +37482,7 @@ label_BFC0A498: psx_check_interrupts(cpu); /* 0xBFC0A498: 14C30004 bne $a2, $v1, 0xBFC0A4AC */ uint32_t psx_brA_BFC0A498 = cpu->gpr[6]; uint32_t psx_brB_BFC0A498 = cpu->gpr[3]; - int psx_taken_BFC0A498 = (psx_brA_BFC0A498 != psx_brB_BFC0A498); + psx_taken_BFC0A498 = (psx_brA_BFC0A498 != psx_brB_BFC0A498); /* 0xBFC0A49C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0A498) goto label_BFC0A4AC; @@ -36349,6 +37518,11 @@ void func_1FC0A4B4(CPUState* cpu) { default: break; } } + int psx_taken_BFC0A4D0 = 0; + int psx_taken_BFC0A4F0 = 0; + int psx_taken_BFC0A500 = 0; + int psx_taken_BFC0A558 = 0; + int psx_taken_BFC0A568 = 0; label_BFC0A4B4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -36370,7 +37544,7 @@ label_BFC0A4B4: /* nop */ /* 0xBFC0A4D0: 04610002 bgez $v1, 0xBFC0A4DC */ uint32_t psx_brA_BFC0A4D0 = cpu->gpr[3]; - int psx_taken_BFC0A4D0 = ((int32_t)psx_brA_BFC0A4D0 >= 0); + psx_taken_BFC0A4D0 = ((int32_t)psx_brA_BFC0A4D0 >= 0); /* 0xBFC0A4D4: 00600821 addu $at, $v1, $zero */ cpu->gpr[1] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC0A4D0) goto label_BFC0A4DC; @@ -36398,7 +37572,7 @@ label_BFC0A4DC: /* nop */ /* 0xBFC0A4F0: 11E00005 beq $t7, $zero, 0xBFC0A508 */ uint32_t psx_brA_BFC0A4F0 = cpu->gpr[15]; uint32_t psx_brB_BFC0A4F0 = cpu->gpr[0]; - int psx_taken_BFC0A4F0 = (psx_brA_BFC0A4F0 == psx_brB_BFC0A4F0); + psx_taken_BFC0A4F0 = (psx_brA_BFC0A4F0 == psx_brB_BFC0A4F0); /* 0xBFC0A4F4: 00000000 nop */ /* nop */ if (psx_taken_BFC0A4F0) goto label_BFC0A508; @@ -36413,7 +37587,7 @@ label_BFC0A4F8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A4FCu); return; } g_debug_last_store_pc = 0xBFC0A4FCu; cpu->write_word(psx_addr, cpu->gpr[24]); } /* 0xBFC0A500: 10000034 beq $zero, $zero, 0xBFC0A5D4 */ uint32_t psx_brA_BFC0A500 = cpu->gpr[0]; uint32_t psx_brB_BFC0A500 = cpu->gpr[0]; - int psx_taken_BFC0A500 = (psx_brA_BFC0A500 == psx_brB_BFC0A500); + psx_taken_BFC0A500 = (psx_brA_BFC0A500 == psx_brB_BFC0A500); /* 0xBFC0A504: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0A500) goto label_BFC0A5D4; @@ -36476,7 +37650,7 @@ label_BFC0A548: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC0A558: 14410005 bne $v0, $at, 0xBFC0A570 */ uint32_t psx_brA_BFC0A558 = cpu->gpr[2]; uint32_t psx_brB_BFC0A558 = cpu->gpr[1]; - int psx_taken_BFC0A558 = (psx_brA_BFC0A558 != psx_brB_BFC0A558); + psx_taken_BFC0A558 = (psx_brA_BFC0A558 != psx_brB_BFC0A558); /* 0xBFC0A55C: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0A558) goto label_BFC0A570; @@ -36491,7 +37665,7 @@ label_BFC0A560: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A564u); return; } g_debug_last_store_pc = 0xBFC0A564u; cpu->write_word(psx_addr, cpu->gpr[25]); } /* 0xBFC0A568: 1000001A beq $zero, $zero, 0xBFC0A5D4 */ uint32_t psx_brA_BFC0A568 = cpu->gpr[0]; uint32_t psx_brB_BFC0A568 = cpu->gpr[0]; - int psx_taken_BFC0A568 = (psx_brA_BFC0A568 == psx_brB_BFC0A568); + psx_taken_BFC0A568 = (psx_brA_BFC0A568 == psx_brB_BFC0A568); /* 0xBFC0A56C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0A568) goto label_BFC0A5D4; @@ -36584,6 +37758,21 @@ void func_1FC0A5E4(CPUState* cpu) { default: break; } } + int psx_taken_BFC0A604 = 0; + int psx_taken_BFC0A624 = 0; + int psx_taken_BFC0A62C = 0; + int psx_taken_BFC0A64C = 0; + int psx_taken_BFC0A654 = 0; + int psx_taken_BFC0A680 = 0; + int psx_taken_BFC0A69C = 0; + int psx_taken_BFC0A6A4 = 0; + int psx_taken_BFC0A6BC = 0; + int psx_taken_BFC0A6C4 = 0; + int psx_taken_BFC0A6D4 = 0; + int psx_taken_BFC0A6E8 = 0; + int psx_taken_BFC0A6F8 = 0; + int psx_taken_BFC0A70C = 0; + int psx_taken_BFC0A720 = 0; label_BFC0A5E4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -36607,7 +37796,7 @@ label_BFC0A5E4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A600u); return; } g_debug_last_store_pc = 0xBFC0A600u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC0A604: 04610002 bgez $v1, 0xBFC0A610 */ uint32_t psx_brA_BFC0A604 = cpu->gpr[3]; - int psx_taken_BFC0A604 = ((int32_t)psx_brA_BFC0A604 >= 0); + psx_taken_BFC0A604 = ((int32_t)psx_brA_BFC0A604 >= 0); /* 0xBFC0A608: 00600821 addu $at, $v1, $zero */ cpu->gpr[1] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC0A604) goto label_BFC0A610; @@ -36635,7 +37824,7 @@ label_BFC0A610: /* nop */ /* 0xBFC0A624: 13200003 beq $t9, $zero, 0xBFC0A634 */ uint32_t psx_brA_BFC0A624 = cpu->gpr[25]; uint32_t psx_brB_BFC0A624 = cpu->gpr[0]; - int psx_taken_BFC0A624 = (psx_brA_BFC0A624 == psx_brB_BFC0A624); + psx_taken_BFC0A624 = (psx_brA_BFC0A624 == psx_brB_BFC0A624); /* 0xBFC0A628: 00000000 nop */ /* nop */ if (psx_taken_BFC0A624) goto label_BFC0A634; @@ -36646,7 +37835,7 @@ label_BFC0A62C: psx_check_interrupts(cpu); /* 0xBFC0A62C: 10000045 beq $zero, $zero, 0xBFC0A744 */ uint32_t psx_brA_BFC0A62C = cpu->gpr[0]; uint32_t psx_brB_BFC0A62C = cpu->gpr[0]; - int psx_taken_BFC0A62C = (psx_brA_BFC0A62C == psx_brB_BFC0A62C); + psx_taken_BFC0A62C = (psx_brA_BFC0A62C == psx_brB_BFC0A62C); /* 0xBFC0A630: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0A62C) goto label_BFC0A744; @@ -36681,7 +37870,7 @@ label_BFC0A64C: psx_check_interrupts(cpu); /* 0xBFC0A64C: 14400004 bne $v0, $zero, 0xBFC0A660 */ uint32_t psx_brA_BFC0A64C = cpu->gpr[2]; uint32_t psx_brB_BFC0A64C = cpu->gpr[0]; - int psx_taken_BFC0A64C = (psx_brA_BFC0A64C != psx_brB_BFC0A64C); + psx_taken_BFC0A64C = (psx_brA_BFC0A64C != psx_brB_BFC0A64C); /* 0xBFC0A650: 8FA4003C lw $a0, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A650u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC0A64C) goto label_BFC0A660; @@ -36692,7 +37881,7 @@ label_BFC0A654: psx_check_interrupts(cpu); /* 0xBFC0A654: 1000003B beq $zero, $zero, 0xBFC0A744 */ uint32_t psx_brA_BFC0A654 = cpu->gpr[0]; uint32_t psx_brB_BFC0A654 = cpu->gpr[0]; - int psx_taken_BFC0A654 = (psx_brA_BFC0A654 == psx_brB_BFC0A654); + psx_taken_BFC0A654 = (psx_brA_BFC0A654 == psx_brB_BFC0A654); /* 0xBFC0A658: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0A654) goto label_BFC0A744; @@ -36732,7 +37921,7 @@ label_BFC0A678: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (48)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A67Cu); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC0A680: 1440000B bne $v0, $zero, 0xBFC0A6B0 */ uint32_t psx_brA_BFC0A680 = cpu->gpr[2]; uint32_t psx_brB_BFC0A680 = cpu->gpr[0]; - int psx_taken_BFC0A680 = (psx_brA_BFC0A680 != psx_brB_BFC0A680); + psx_taken_BFC0A680 = (psx_brA_BFC0A680 != psx_brB_BFC0A680); /* 0xBFC0A684: 8FA8003C lw $t0, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A684u); return; } cpu->gpr[8] = cpu->read_word(psx_addr); } if (psx_taken_BFC0A680) goto label_BFC0A6B0; @@ -36758,7 +37947,7 @@ label_BFC0A694: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[4] ? 1 : 0); /* 0xBFC0A69C: 1420FFFD bne $at, $zero, 0xBFC0A694 */ uint32_t psx_brA_BFC0A69C = cpu->gpr[1]; uint32_t psx_brB_BFC0A69C = cpu->gpr[0]; - int psx_taken_BFC0A69C = (psx_brA_BFC0A69C != psx_brB_BFC0A69C); + psx_taken_BFC0A69C = (psx_brA_BFC0A69C != psx_brB_BFC0A69C); /* 0xBFC0A6A0: A062FFFF sb $v0, -1($v1) */ g_debug_last_store_pc = 0xBFC0A6A0u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[3] + (-1)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC0A69C) goto label_BFC0A694; @@ -36769,7 +37958,7 @@ label_BFC0A6A4: psx_check_interrupts(cpu); /* 0xBFC0A6A4: 10000021 beq $zero, $zero, 0xBFC0A72C */ uint32_t psx_brA_BFC0A6A4 = cpu->gpr[0]; uint32_t psx_brB_BFC0A6A4 = cpu->gpr[0]; - int psx_taken_BFC0A6A4 = (psx_brA_BFC0A6A4 == psx_brB_BFC0A6A4); + psx_taken_BFC0A6A4 = (psx_brA_BFC0A6A4 == psx_brB_BFC0A6A4); /* 0xBFC0A6A8: A0600000 sb $zero, 0($v1) */ g_debug_last_store_pc = 0xBFC0A6A8u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[3] + (0)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC0A6A4) goto label_BFC0A72C; @@ -36793,7 +37982,7 @@ label_BFC0A6B0: /* nop */ /* 0xBFC0A6BC: 15200003 bne $t1, $zero, 0xBFC0A6CC */ uint32_t psx_brA_BFC0A6BC = cpu->gpr[9]; uint32_t psx_brB_BFC0A6BC = cpu->gpr[0]; - int psx_taken_BFC0A6BC = (psx_brA_BFC0A6BC != psx_brB_BFC0A6BC); + psx_taken_BFC0A6BC = (psx_brA_BFC0A6BC != psx_brB_BFC0A6BC); /* 0xBFC0A6C0: 00000000 nop */ /* nop */ if (psx_taken_BFC0A6BC) goto label_BFC0A6CC; @@ -36804,7 +37993,7 @@ label_BFC0A6C4: psx_check_interrupts(cpu); /* 0xBFC0A6C4: 1000000A beq $zero, $zero, 0xBFC0A6F0 */ uint32_t psx_brA_BFC0A6C4 = cpu->gpr[0]; uint32_t psx_brB_BFC0A6C4 = cpu->gpr[0]; - int psx_taken_BFC0A6C4 = (psx_brA_BFC0A6C4 == psx_brB_BFC0A6C4); + psx_taken_BFC0A6C4 = (psx_brA_BFC0A6C4 == psx_brB_BFC0A6C4); /* 0xBFC0A6C8: 2404002A addiu $a0, $zero, 42 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (42)); if (psx_taken_BFC0A6C4) goto label_BFC0A6F0; @@ -36824,7 +38013,7 @@ label_BFC0A6D4: psx_check_interrupts(cpu); /* 0xBFC0A6D4: 10820006 beq $a0, $v0, 0xBFC0A6F0 */ uint32_t psx_brA_BFC0A6D4 = cpu->gpr[4]; uint32_t psx_brB_BFC0A6D4 = cpu->gpr[2]; - int psx_taken_BFC0A6D4 = (psx_brA_BFC0A6D4 == psx_brB_BFC0A6D4); + psx_taken_BFC0A6D4 = (psx_brA_BFC0A6D4 == psx_brB_BFC0A6D4); /* 0xBFC0A6D8: 00000000 nop */ /* nop */ if (psx_taken_BFC0A6D4) goto label_BFC0A6F0; @@ -36841,7 +38030,7 @@ label_BFC0A6DC: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC0A6E8: 1440FFFA bne $v0, $zero, 0xBFC0A6D4 */ uint32_t psx_brA_BFC0A6E8 = cpu->gpr[2]; uint32_t psx_brB_BFC0A6E8 = cpu->gpr[0]; - int psx_taken_BFC0A6E8 = (psx_brA_BFC0A6E8 != psx_brB_BFC0A6E8); + psx_taken_BFC0A6E8 = (psx_brA_BFC0A6E8 != psx_brB_BFC0A6E8); /* 0xBFC0A6EC: 24630001 addiu $v1, $v1, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); if (psx_taken_BFC0A6E8) goto label_BFC0A6D4; @@ -36856,7 +38045,7 @@ label_BFC0A6F0: /* nop */ /* 0xBFC0A6F8: 148A000B bne $a0, $t2, 0xBFC0A728 */ uint32_t psx_brA_BFC0A6F8 = cpu->gpr[4]; uint32_t psx_brB_BFC0A6F8 = cpu->gpr[10]; - int psx_taken_BFC0A6F8 = (psx_brA_BFC0A6F8 != psx_brB_BFC0A6F8); + psx_taken_BFC0A6F8 = (psx_brA_BFC0A6F8 != psx_brB_BFC0A6F8); /* 0xBFC0A6FC: 00000000 nop */ /* nop */ if (psx_taken_BFC0A6F8) goto label_BFC0A728; @@ -36873,7 +38062,7 @@ label_BFC0A700: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[4] ? 1 : 0); /* 0xBFC0A70C: 10200006 beq $at, $zero, 0xBFC0A728 */ uint32_t psx_brA_BFC0A70C = cpu->gpr[1]; uint32_t psx_brB_BFC0A70C = cpu->gpr[0]; - int psx_taken_BFC0A70C = (psx_brA_BFC0A70C == psx_brB_BFC0A70C); + psx_taken_BFC0A70C = (psx_brA_BFC0A70C == psx_brB_BFC0A70C); /* 0xBFC0A710: 00000000 nop */ /* nop */ if (psx_taken_BFC0A70C) goto label_BFC0A728; @@ -36895,7 +38084,7 @@ label_BFC0A718: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[4] ? 1 : 0); /* 0xBFC0A720: 1420FFFD bne $at, $zero, 0xBFC0A718 */ uint32_t psx_brA_BFC0A720 = cpu->gpr[1]; uint32_t psx_brB_BFC0A720 = cpu->gpr[0]; - int psx_taken_BFC0A720 = (psx_brA_BFC0A720 != psx_brB_BFC0A720); + psx_taken_BFC0A720 = (psx_brA_BFC0A720 != psx_brB_BFC0A720); /* 0xBFC0A724: A062FFFF sb $v0, -1($v1) */ g_debug_last_store_pc = 0xBFC0A724u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[3] + (-1)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC0A720) goto label_BFC0A718; @@ -36953,6 +38142,18 @@ void func_1FC0A754(CPUState* cpu) { default: break; } } + int psx_taken_BFC0A76C = 0; + int psx_taken_BFC0A798 = 0; + int psx_taken_BFC0A7C4 = 0; + int psx_taken_BFC0A7D4 = 0; + int psx_taken_BFC0A7E8 = 0; + int psx_taken_BFC0A7FC = 0; + int psx_taken_BFC0A81C = 0; + int psx_taken_BFC0A82C = 0; + int psx_taken_BFC0A840 = 0; + int psx_taken_BFC0A854 = 0; + int psx_taken_BFC0A874 = 0; + int psx_taken_BFC0A884 = 0; label_BFC0A754: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -36972,7 +38173,7 @@ label_BFC0A754: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A768u); return; } g_debug_last_store_pc = 0xBFC0A768u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC0A76C: 1020004D beq $at, $zero, 0xBFC0A8A4 */ uint32_t psx_brA_BFC0A76C = cpu->gpr[1]; uint32_t psx_brB_BFC0A76C = cpu->gpr[0]; - int psx_taken_BFC0A76C = (psx_brA_BFC0A76C == psx_brB_BFC0A76C); + psx_taken_BFC0A76C = (psx_brA_BFC0A76C == psx_brB_BFC0A76C); /* 0xBFC0A770: 00A09021 addu $s2, $a1, $zero */ cpu->gpr[18] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC0A76C) goto label_BFC0A8A4; @@ -37001,7 +38202,7 @@ label_BFC0A774: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (48)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A794u); return; } g_debug_last_store_pc = 0xBFC0A794u; cpu->write_word(psx_addr, cpu->gpr[17]); } /* 0xBFC0A798: 04810002 bgez $a0, 0xBFC0A7A4 */ uint32_t psx_brA_BFC0A798 = cpu->gpr[4]; - int psx_taken_BFC0A798 = ((int32_t)psx_brA_BFC0A798 >= 0); + psx_taken_BFC0A798 = ((int32_t)psx_brA_BFC0A798 >= 0); /* 0xBFC0A79C: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC0A798) goto label_BFC0A7A4; @@ -37046,7 +38247,7 @@ label_BFC0A7C4: psx_check_interrupts(cpu); /* 0xBFC0A7C4: 14400017 bne $v0, $zero, 0xBFC0A824 */ uint32_t psx_brA_BFC0A7C4 = cpu->gpr[2]; uint32_t psx_brB_BFC0A7C4 = cpu->gpr[0]; - int psx_taken_BFC0A7C4 = (psx_brA_BFC0A7C4 != psx_brB_BFC0A7C4); + psx_taken_BFC0A7C4 = (psx_brA_BFC0A7C4 != psx_brB_BFC0A7C4); /* 0xBFC0A7C8: 00000000 nop */ /* nop */ if (psx_taken_BFC0A7C4) goto label_BFC0A824; @@ -37061,7 +38262,7 @@ label_BFC0A7CC: /* nop */ /* 0xBFC0A7D4: 16A80029 bne $s5, $t0, 0xBFC0A87C */ uint32_t psx_brA_BFC0A7D4 = cpu->gpr[21]; uint32_t psx_brB_BFC0A7D4 = cpu->gpr[8]; - int psx_taken_BFC0A7D4 = (psx_brA_BFC0A7D4 != psx_brB_BFC0A7D4); + psx_taken_BFC0A7D4 = (psx_brA_BFC0A7D4 != psx_brB_BFC0A7D4); /* 0xBFC0A7D8: 00000000 nop */ /* nop */ if (psx_taken_BFC0A7D4) goto label_BFC0A87C; @@ -37084,7 +38285,7 @@ label_BFC0A7E8: psx_check_interrupts(cpu); /* 0xBFC0A7E8: 10400024 beq $v0, $zero, 0xBFC0A87C */ uint32_t psx_brA_BFC0A7E8 = cpu->gpr[2]; uint32_t psx_brB_BFC0A7E8 = cpu->gpr[0]; - int psx_taken_BFC0A7E8 = (psx_brA_BFC0A7E8 == psx_brB_BFC0A7E8); + psx_taken_BFC0A7E8 = (psx_brA_BFC0A7E8 == psx_brB_BFC0A7E8); /* 0xBFC0A7EC: 00000000 nop */ /* nop */ if (psx_taken_BFC0A7E8) goto label_BFC0A87C; @@ -37107,7 +38308,7 @@ label_BFC0A7FC: psx_check_interrupts(cpu); /* 0xBFC0A7FC: 1040001F beq $v0, $zero, 0xBFC0A87C */ uint32_t psx_brA_BFC0A7FC = cpu->gpr[2]; uint32_t psx_brB_BFC0A7FC = cpu->gpr[0]; - int psx_taken_BFC0A7FC = (psx_brA_BFC0A7FC == psx_brB_BFC0A7FC); + psx_taken_BFC0A7FC = (psx_brA_BFC0A7FC == psx_brB_BFC0A7FC); /* 0xBFC0A800: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC0A7FC) goto label_BFC0A87C; @@ -37130,7 +38331,7 @@ label_BFC0A804: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24692)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A818u); return; } g_debug_last_store_pc = 0xBFC0A818u; cpu->write_word(psx_addr, cpu->gpr[18]); } /* 0xBFC0A81C: 10000022 beq $zero, $zero, 0xBFC0A8A8 */ uint32_t psx_brA_BFC0A81C = cpu->gpr[0]; uint32_t psx_brB_BFC0A81C = cpu->gpr[0]; - int psx_taken_BFC0A81C = (psx_brA_BFC0A81C == psx_brB_BFC0A81C); + psx_taken_BFC0A81C = (psx_brA_BFC0A81C == psx_brB_BFC0A81C); /* 0xBFC0A820: 02401021 addu $v0, $s2, $zero */ cpu->gpr[2] = cpu->gpr[18] + cpu->gpr[0]; if (psx_taken_BFC0A81C) goto label_BFC0A8A8; @@ -37145,7 +38346,7 @@ label_BFC0A824: /* nop */ /* 0xBFC0A82C: 16C90013 bne $s6, $t1, 0xBFC0A87C */ uint32_t psx_brA_BFC0A82C = cpu->gpr[22]; uint32_t psx_brB_BFC0A82C = cpu->gpr[9]; - int psx_taken_BFC0A82C = (psx_brA_BFC0A82C != psx_brB_BFC0A82C); + psx_taken_BFC0A82C = (psx_brA_BFC0A82C != psx_brB_BFC0A82C); /* 0xBFC0A830: 00000000 nop */ /* nop */ if (psx_taken_BFC0A82C) goto label_BFC0A87C; @@ -37168,7 +38369,7 @@ label_BFC0A840: psx_check_interrupts(cpu); /* 0xBFC0A840: 1040000E beq $v0, $zero, 0xBFC0A87C */ uint32_t psx_brA_BFC0A840 = cpu->gpr[2]; uint32_t psx_brB_BFC0A840 = cpu->gpr[0]; - int psx_taken_BFC0A840 = (psx_brA_BFC0A840 == psx_brB_BFC0A840); + psx_taken_BFC0A840 = (psx_brA_BFC0A840 == psx_brB_BFC0A840); /* 0xBFC0A844: 00000000 nop */ /* nop */ if (psx_taken_BFC0A840) goto label_BFC0A87C; @@ -37191,7 +38392,7 @@ label_BFC0A854: psx_check_interrupts(cpu); /* 0xBFC0A854: 10400009 beq $v0, $zero, 0xBFC0A87C */ uint32_t psx_brA_BFC0A854 = cpu->gpr[2]; uint32_t psx_brB_BFC0A854 = cpu->gpr[0]; - int psx_taken_BFC0A854 = (psx_brA_BFC0A854 == psx_brB_BFC0A854); + psx_taken_BFC0A854 = (psx_brA_BFC0A854 == psx_brB_BFC0A854); /* 0xBFC0A858: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC0A854) goto label_BFC0A87C; @@ -37214,7 +38415,7 @@ label_BFC0A85C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24692)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A870u); return; } g_debug_last_store_pc = 0xBFC0A870u; cpu->write_word(psx_addr, cpu->gpr[18]); } /* 0xBFC0A874: 1000000C beq $zero, $zero, 0xBFC0A8A8 */ uint32_t psx_brA_BFC0A874 = cpu->gpr[0]; uint32_t psx_brB_BFC0A874 = cpu->gpr[0]; - int psx_taken_BFC0A874 = (psx_brA_BFC0A874 == psx_brB_BFC0A874); + psx_taken_BFC0A874 = (psx_brA_BFC0A874 == psx_brB_BFC0A874); /* 0xBFC0A878: 02401021 addu $v0, $s2, $zero */ cpu->gpr[2] = cpu->gpr[18] + cpu->gpr[0]; if (psx_taken_BFC0A874) goto label_BFC0A8A8; @@ -37229,7 +38430,7 @@ label_BFC0A87C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (15) ? 1 : 0); /* 0xBFC0A884: 1420FFCD bne $at, $zero, 0xBFC0A7BC */ uint32_t psx_brA_BFC0A884 = cpu->gpr[1]; uint32_t psx_brB_BFC0A884 = cpu->gpr[0]; - int psx_taken_BFC0A884 = (psx_brA_BFC0A884 != psx_brB_BFC0A884); + psx_taken_BFC0A884 = (psx_brA_BFC0A884 != psx_brB_BFC0A884); /* 0xBFC0A888: 0012C940 sll $t9, $s2, 5 */ cpu->gpr[25] = cpu->gpr[18] << 5u; if (psx_taken_BFC0A884) goto label_BFC0A7BC; @@ -37288,6 +38489,31 @@ void func_1FC0A8BC(CPUState* cpu) { default: break; } } + int psx_taken_BFC0A8D8 = 0; + int psx_taken_BFC0A8F8 = 0; + int psx_taken_BFC0A900 = 0; + int psx_taken_BFC0A924 = 0; + int psx_taken_BFC0A92C = 0; + int psx_taken_BFC0A950 = 0; + int psx_taken_BFC0A964 = 0; + int psx_taken_BFC0A994 = 0; + int psx_taken_BFC0A9E4 = 0; + int psx_taken_BFC0A9F8 = 0; + int psx_taken_BFC0AA04 = 0; + int psx_taken_BFC0AA1C = 0; + int psx_taken_BFC0AA24 = 0; + int psx_taken_BFC0AA34 = 0; + int psx_taken_BFC0AA3C = 0; + int psx_taken_BFC0AA60 = 0; + int psx_taken_BFC0AA78 = 0; + int psx_taken_BFC0AA88 = 0; + int psx_taken_BFC0AA90 = 0; + int psx_taken_BFC0AAA8 = 0; + int psx_taken_BFC0AAB8 = 0; + int psx_taken_BFC0AAE8 = 0; + int psx_taken_BFC0AB08 = 0; + int psx_taken_BFC0AB28 = 0; + int psx_taken_BFC0AB3C = 0; label_BFC0A8BC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -37309,7 +38535,7 @@ label_BFC0A8BC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A8D4u); return; } g_debug_last_store_pc = 0xBFC0A8D4u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC0A8D8: 04610002 bgez $v1, 0xBFC0A8E4 */ uint32_t psx_brA_BFC0A8D8 = cpu->gpr[3]; - int psx_taken_BFC0A8D8 = ((int32_t)psx_brA_BFC0A8D8 >= 0); + psx_taken_BFC0A8D8 = ((int32_t)psx_brA_BFC0A8D8 >= 0); /* 0xBFC0A8DC: 00600821 addu $at, $v1, $zero */ cpu->gpr[1] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC0A8D8) goto label_BFC0A8E4; @@ -37337,7 +38563,7 @@ label_BFC0A8E4: /* nop */ /* 0xBFC0A8F8: 13000003 beq $t8, $zero, 0xBFC0A908 */ uint32_t psx_brA_BFC0A8F8 = cpu->gpr[24]; uint32_t psx_brB_BFC0A8F8 = cpu->gpr[0]; - int psx_taken_BFC0A8F8 = (psx_brA_BFC0A8F8 == psx_brB_BFC0A8F8); + psx_taken_BFC0A8F8 = (psx_brA_BFC0A8F8 == psx_brB_BFC0A8F8); /* 0xBFC0A8FC: 00000000 nop */ /* nop */ if (psx_taken_BFC0A8F8) goto label_BFC0A908; @@ -37348,7 +38574,7 @@ label_BFC0A900: psx_check_interrupts(cpu); /* 0xBFC0A900: 10000093 beq $zero, $zero, 0xBFC0AB50 */ uint32_t psx_brA_BFC0A900 = cpu->gpr[0]; uint32_t psx_brB_BFC0A900 = cpu->gpr[0]; - int psx_taken_BFC0A900 = (psx_brA_BFC0A900 == psx_brB_BFC0A900); + psx_taken_BFC0A900 = (psx_brA_BFC0A900 == psx_brB_BFC0A900); /* 0xBFC0A904: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0A900) goto label_BFC0AB50; @@ -37385,7 +38611,7 @@ label_BFC0A924: psx_check_interrupts(cpu); /* 0xBFC0A924: 14400003 bne $v0, $zero, 0xBFC0A934 */ uint32_t psx_brA_BFC0A924 = cpu->gpr[2]; uint32_t psx_brB_BFC0A924 = cpu->gpr[0]; - int psx_taken_BFC0A924 = (psx_brA_BFC0A924 != psx_brB_BFC0A924); + psx_taken_BFC0A924 = (psx_brA_BFC0A924 != psx_brB_BFC0A924); /* 0xBFC0A928: 00000000 nop */ /* nop */ if (psx_taken_BFC0A924) goto label_BFC0A934; @@ -37396,7 +38622,7 @@ label_BFC0A92C: psx_check_interrupts(cpu); /* 0xBFC0A92C: 10000088 beq $zero, $zero, 0xBFC0AB50 */ uint32_t psx_brA_BFC0A92C = cpu->gpr[0]; uint32_t psx_brB_BFC0A92C = cpu->gpr[0]; - int psx_taken_BFC0A92C = (psx_brA_BFC0A92C == psx_brB_BFC0A92C); + psx_taken_BFC0A92C = (psx_brA_BFC0A92C == psx_brB_BFC0A92C); /* 0xBFC0A930: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0A92C) goto label_BFC0AB50; @@ -37433,7 +38659,7 @@ label_BFC0A94C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC0A950: 14410006 bne $v0, $at, 0xBFC0A96C */ uint32_t psx_brA_BFC0A950 = cpu->gpr[2]; uint32_t psx_brB_BFC0A950 = cpu->gpr[1]; - int psx_taken_BFC0A950 = (psx_brA_BFC0A950 != psx_brB_BFC0A950); + psx_taken_BFC0A950 = (psx_brA_BFC0A950 != psx_brB_BFC0A950); /* 0xBFC0A954: 00000000 nop */ /* nop */ if (psx_taken_BFC0A950) goto label_BFC0A96C; @@ -37450,7 +38676,7 @@ label_BFC0A958: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0A964: 1000007A beq $zero, $zero, 0xBFC0AB50 */ uint32_t psx_brA_BFC0A964 = cpu->gpr[0]; uint32_t psx_brB_BFC0A964 = cpu->gpr[0]; - int psx_taken_BFC0A964 = (psx_brA_BFC0A964 == psx_brB_BFC0A964); + psx_taken_BFC0A964 = (psx_brA_BFC0A964 == psx_brB_BFC0A964); /* 0xBFC0A968: AD790018 sw $t9, 24($t3) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[11] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A968u); return; } g_debug_last_store_pc = 0xBFC0A968u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC0A964) goto label_BFC0AB50; @@ -37486,7 +38712,7 @@ label_BFC0A984: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A990u); return; } g_debug_last_store_pc = 0xBFC0A990u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC0A994: 1464FFFB bne $v1, $a0, 0xBFC0A984 */ uint32_t psx_brA_BFC0A994 = cpu->gpr[3]; uint32_t psx_brB_BFC0A994 = cpu->gpr[4]; - int psx_taken_BFC0A994 = (psx_brA_BFC0A994 != psx_brB_BFC0A994); + psx_taken_BFC0A994 = (psx_brA_BFC0A994 != psx_brB_BFC0A994); /* 0xBFC0A998: AC60FFB8 sw $zero, -72($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0A998u); return; } g_debug_last_store_pc = 0xBFC0A998u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC0A994) goto label_BFC0A984; @@ -37533,7 +38759,7 @@ label_BFC0A99C: /* nop */ /* 0xBFC0A9E4: 04A10002 bgez $a1, 0xBFC0A9F0 */ uint32_t psx_brA_BFC0A9E4 = cpu->gpr[5]; - int psx_taken_BFC0A9E4 = ((int32_t)psx_brA_BFC0A9E4 >= 0); + psx_taken_BFC0A9E4 = ((int32_t)psx_brA_BFC0A9E4 >= 0); /* 0xBFC0A9E8: 00A00821 addu $at, $a1, $zero */ cpu->gpr[1] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC0A9E4) goto label_BFC0A9F0; @@ -37555,7 +38781,7 @@ label_BFC0A9F0: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-1)); /* 0xBFC0A9F8: 1CA00005 bgtz $a1, 0xBFC0AA10 */ uint32_t psx_brA_BFC0A9F8 = cpu->gpr[5]; - int psx_taken_BFC0A9F8 = ((int32_t)psx_brA_BFC0A9F8 > 0); + psx_taken_BFC0A9F8 = ((int32_t)psx_brA_BFC0A9F8 > 0); /* 0xBFC0A9FC: 00066940 sll $t5, $a2, 5 */ cpu->gpr[13] = cpu->gpr[6] << 5u; if (psx_taken_BFC0A9F8) goto label_BFC0AA10; @@ -37568,7 +38794,7 @@ label_BFC0AA00: cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[0] + (82)); /* 0xBFC0AA04: 10000022 beq $zero, $zero, 0xBFC0AA90 */ uint32_t psx_brA_BFC0AA04 = cpu->gpr[0]; uint32_t psx_brB_BFC0AA04 = cpu->gpr[0]; - int psx_taken_BFC0AA04 = (psx_brA_BFC0AA04 == psx_brB_BFC0AA04); + psx_taken_BFC0AA04 = (psx_brA_BFC0AA04 == psx_brB_BFC0AA04); /* 0xBFC0AA08: 3409FFFF ori $t1, $zero, 0xFFFF */ cpu->gpr[9] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC0AA04) goto label_BFC0AA90; @@ -37592,7 +38818,7 @@ label_BFC0AA10: cpu->gpr[9] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC0AA1C: 15220003 bne $t1, $v0, 0xBFC0AA2C */ uint32_t psx_brA_BFC0AA1C = cpu->gpr[9]; uint32_t psx_brB_BFC0AA1C = cpu->gpr[2]; - int psx_taken_BFC0AA1C = (psx_brA_BFC0AA1C != psx_brB_BFC0AA1C); + psx_taken_BFC0AA1C = (psx_brA_BFC0AA1C != psx_brB_BFC0AA1C); /* 0xBFC0AA20: 00000000 nop */ /* nop */ if (psx_taken_BFC0AA1C) goto label_BFC0AA2C; @@ -37603,7 +38829,7 @@ label_BFC0AA24: psx_check_interrupts(cpu); /* 0xBFC0AA24: 1000001A beq $zero, $zero, 0xBFC0AA90 */ uint32_t psx_brA_BFC0AA24 = cpu->gpr[0]; uint32_t psx_brB_BFC0AA24 = cpu->gpr[0]; - int psx_taken_BFC0AA24 = (psx_brA_BFC0AA24 == psx_brB_BFC0AA24); + psx_taken_BFC0AA24 = (psx_brA_BFC0AA24 == psx_brB_BFC0AA24); /* 0xBFC0AA28: 240A0052 addiu $t2, $zero, 82 */ cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[0] + (82)); if (psx_taken_BFC0AA24) goto label_BFC0AA90; @@ -37618,7 +38844,7 @@ label_BFC0AA2C: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (82)); /* 0xBFC0AA34: 10EE0004 beq $a3, $t6, 0xBFC0AA48 */ uint32_t psx_brA_BFC0AA34 = cpu->gpr[7]; uint32_t psx_brB_BFC0AA34 = cpu->gpr[14]; - int psx_taken_BFC0AA34 = (psx_brA_BFC0AA34 == psx_brB_BFC0AA34); + psx_taken_BFC0AA34 = (psx_brA_BFC0AA34 == psx_brB_BFC0AA34); /* 0xBFC0AA38: 240400A2 addiu $a0, $zero, 162 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (162)); if (psx_taken_BFC0AA34) goto label_BFC0AA48; @@ -37629,7 +38855,7 @@ label_BFC0AA3C: psx_check_interrupts(cpu); /* 0xBFC0AA3C: 10000014 beq $zero, $zero, 0xBFC0AA90 */ uint32_t psx_brA_BFC0AA3C = cpu->gpr[0]; uint32_t psx_brB_BFC0AA3C = cpu->gpr[0]; - int psx_taken_BFC0AA3C = (psx_brA_BFC0AA3C == psx_brB_BFC0AA3C); + psx_taken_BFC0AA3C = (psx_brA_BFC0AA3C == psx_brB_BFC0AA3C); /* 0xBFC0AA40: 240A0052 addiu $t2, $zero, 82 */ cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[0] + (82)); if (psx_taken_BFC0AA3C) goto label_BFC0AA90; @@ -37664,7 +38890,7 @@ label_BFC0AA50: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AA5Cu); return; } g_debug_last_store_pc = 0xBFC0AA5Cu; cpu->write_word(psx_addr, cpu->gpr[10]); } /* 0xBFC0AA60: 18A0000B blez $a1, 0xBFC0AA90 */ uint32_t psx_brA_BFC0AA60 = cpu->gpr[5]; - int psx_taken_BFC0AA60 = ((int32_t)psx_brA_BFC0AA60 <= 0); + psx_taken_BFC0AA60 = ((int32_t)psx_brA_BFC0AA60 <= 0); /* 0xBFC0AA64: 00403021 addu $a2, $v0, $zero */ cpu->gpr[6] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0AA60) goto label_BFC0AA90; @@ -37683,7 +38909,7 @@ label_BFC0AA68: /* nop */ /* 0xBFC0AA78: 11220005 beq $t1, $v0, 0xBFC0AA90 */ uint32_t psx_brA_BFC0AA78 = cpu->gpr[9]; uint32_t psx_brB_BFC0AA78 = cpu->gpr[2]; - int psx_taken_BFC0AA78 = (psx_brA_BFC0AA78 == psx_brB_BFC0AA78); + psx_taken_BFC0AA78 = (psx_brA_BFC0AA78 == psx_brB_BFC0AA78); /* 0xBFC0AA7C: 00000000 nop */ /* nop */ if (psx_taken_BFC0AA78) goto label_BFC0AA90; @@ -37698,7 +38924,7 @@ label_BFC0AA80: /* nop */ /* 0xBFC0AA88: 10EBFFF1 beq $a3, $t3, 0xBFC0AA50 */ uint32_t psx_brA_BFC0AA88 = cpu->gpr[7]; uint32_t psx_brB_BFC0AA88 = cpu->gpr[11]; - int psx_taken_BFC0AA88 = (psx_brA_BFC0AA88 == psx_brB_BFC0AA88); + psx_taken_BFC0AA88 = (psx_brA_BFC0AA88 == psx_brB_BFC0AA88); /* 0xBFC0AA8C: 00067880 sll $t7, $a2, 2 */ cpu->gpr[15] = cpu->gpr[6] << 2u; if (psx_taken_BFC0AA88) goto label_BFC0AA50; @@ -37709,7 +38935,7 @@ label_BFC0AA90: psx_check_interrupts(cpu); /* 0xBFC0AA90: 18A00011 blez $a1, 0xBFC0AAD8 */ uint32_t psx_brA_BFC0AA90 = cpu->gpr[5]; - int psx_taken_BFC0AA90 = ((int32_t)psx_brA_BFC0AA90 <= 0); + psx_taken_BFC0AA90 = ((int32_t)psx_brA_BFC0AA90 <= 0); /* 0xBFC0AA94: 8FA4003C lw $a0, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AA94u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC0AA90) goto label_BFC0AAD8; @@ -37728,7 +38954,7 @@ label_BFC0AA98: /* nop */ /* 0xBFC0AAA8: 152D000B bne $t1, $t5, 0xBFC0AAD8 */ uint32_t psx_brA_BFC0AAA8 = cpu->gpr[9]; uint32_t psx_brB_BFC0AAA8 = cpu->gpr[13]; - int psx_taken_BFC0AAA8 = (psx_brA_BFC0AAA8 != psx_brB_BFC0AAA8); + psx_taken_BFC0AAA8 = (psx_brA_BFC0AAA8 != psx_brB_BFC0AAA8); /* 0xBFC0AAAC: 8FA4003C lw $a0, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AAACu); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC0AAA8) goto label_BFC0AAD8; @@ -37743,7 +38969,7 @@ label_BFC0AAB0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (83)); /* 0xBFC0AAB8: 15C10007 bne $t6, $at, 0xBFC0AAD8 */ uint32_t psx_brA_BFC0AAB8 = cpu->gpr[14]; uint32_t psx_brB_BFC0AAB8 = cpu->gpr[1]; - int psx_taken_BFC0AAB8 = (psx_brA_BFC0AAB8 != psx_brB_BFC0AAB8); + psx_taken_BFC0AAB8 = (psx_brA_BFC0AAB8 != psx_brB_BFC0AAB8); /* 0xBFC0AABC: 8FA4003C lw $a0, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AABCu); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC0AAB8) goto label_BFC0AAD8; @@ -37785,7 +39011,7 @@ label_BFC0AAE4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AAE4u); return; } cpu->gpr[8] = cpu->read_word(psx_addr); } /* 0xBFC0AAE8: 10400016 beq $v0, $zero, 0xBFC0AB44 */ uint32_t psx_brA_BFC0AAE8 = cpu->gpr[2]; uint32_t psx_brB_BFC0AAE8 = cpu->gpr[0]; - int psx_taken_BFC0AAE8 = (psx_brA_BFC0AAE8 == psx_brB_BFC0AAE8); + psx_taken_BFC0AAE8 = (psx_brA_BFC0AAE8 == psx_brB_BFC0AAE8); /* 0xBFC0AAEC: 3409FFFF ori $t1, $zero, 0xFFFF */ cpu->gpr[9] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC0AAE8) goto label_BFC0AB44; @@ -37813,7 +39039,7 @@ label_BFC0AB00: /* nop */ /* 0xBFC0AB08: 11600006 beq $t3, $zero, 0xBFC0AB24 */ uint32_t psx_brA_BFC0AB08 = cpu->gpr[11]; uint32_t psx_brB_BFC0AB08 = cpu->gpr[0]; - int psx_taken_BFC0AB08 = (psx_brA_BFC0AB08 == psx_brB_BFC0AB08); + psx_taken_BFC0AB08 = (psx_brA_BFC0AB08 == psx_brB_BFC0AB08); /* 0xBFC0AB0C: 00000000 nop */ /* nop */ if (psx_taken_BFC0AB08) goto label_BFC0AB24; @@ -37841,7 +39067,7 @@ label_BFC0AB24: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); /* 0xBFC0AB28: 1486FFF5 bne $a0, $a2, 0xBFC0AB00 */ uint32_t psx_brA_BFC0AB28 = cpu->gpr[4]; uint32_t psx_brB_BFC0AB28 = cpu->gpr[6]; - int psx_taken_BFC0AB28 = (psx_brA_BFC0AB28 != psx_brB_BFC0AB28); + psx_taken_BFC0AB28 = (psx_brA_BFC0AB28 != psx_brB_BFC0AB28); /* 0xBFC0AB2C: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC0AB28) goto label_BFC0AB00; @@ -37858,7 +39084,7 @@ label_BFC0AB30: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0AB3C: 10000004 beq $zero, $zero, 0xBFC0AB50 */ uint32_t psx_brA_BFC0AB3C = cpu->gpr[0]; uint32_t psx_brB_BFC0AB3C = cpu->gpr[0]; - int psx_taken_BFC0AB3C = (psx_brA_BFC0AB3C == psx_brB_BFC0AB3C); + psx_taken_BFC0AB3C = (psx_brA_BFC0AB3C == psx_brB_BFC0AB3C); /* 0xBFC0AB40: ADCD0018 sw $t5, 24($t6) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[14] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AB40u); return; } g_debug_last_store_pc = 0xBFC0AB40u; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC0AB3C) goto label_BFC0AB50; @@ -37905,6 +39131,18 @@ void func_1FC0AB60(CPUState* cpu) { default: break; } } + int psx_taken_BFC0AB8C = 0; + int psx_taken_BFC0ABAC = 0; + int psx_taken_BFC0ABB4 = 0; + int psx_taken_BFC0ABD4 = 0; + int psx_taken_BFC0ABDC = 0; + int psx_taken_BFC0AC00 = 0; + int psx_taken_BFC0AC10 = 0; + int psx_taken_BFC0AC2C = 0; + int psx_taken_BFC0AC3C = 0; + int psx_taken_BFC0AC6C = 0; + int psx_taken_BFC0ACC8 = 0; + int psx_taken_BFC0ACE8 = 0; label_BFC0AB60: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -37934,7 +39172,7 @@ label_BFC0AB60: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AB88u); return; } g_debug_last_store_pc = 0xBFC0AB88u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC0AB8C: 04410002 bgez $v0, 0xBFC0AB98 */ uint32_t psx_brA_BFC0AB8C = cpu->gpr[2]; - int psx_taken_BFC0AB8C = ((int32_t)psx_brA_BFC0AB8C >= 0); + psx_taken_BFC0AB8C = ((int32_t)psx_brA_BFC0AB8C >= 0); /* 0xBFC0AB90: 00400821 addu $at, $v0, $zero */ cpu->gpr[1] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0AB8C) goto label_BFC0AB98; @@ -37962,7 +39200,7 @@ label_BFC0AB98: /* nop */ /* 0xBFC0ABAC: 13000003 beq $t8, $zero, 0xBFC0ABBC */ uint32_t psx_brA_BFC0ABAC = cpu->gpr[24]; uint32_t psx_brB_BFC0ABAC = cpu->gpr[0]; - int psx_taken_BFC0ABAC = (psx_brA_BFC0ABAC == psx_brB_BFC0ABAC); + psx_taken_BFC0ABAC = (psx_brA_BFC0ABAC == psx_brB_BFC0ABAC); /* 0xBFC0ABB0: 00000000 nop */ /* nop */ if (psx_taken_BFC0ABAC) goto label_BFC0ABBC; @@ -37973,7 +39211,7 @@ label_BFC0ABB4: psx_check_interrupts(cpu); /* 0xBFC0ABB4: 10000050 beq $zero, $zero, 0xBFC0ACF8 */ uint32_t psx_brA_BFC0ABB4 = cpu->gpr[0]; uint32_t psx_brB_BFC0ABB4 = cpu->gpr[0]; - int psx_taken_BFC0ABB4 = (psx_brA_BFC0ABB4 == psx_brB_BFC0ABB4); + psx_taken_BFC0ABB4 = (psx_brA_BFC0ABB4 == psx_brB_BFC0ABB4); /* 0xBFC0ABB8: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0ABB4) goto label_BFC0ACF8; @@ -38008,7 +39246,7 @@ label_BFC0ABD4: psx_check_interrupts(cpu); /* 0xBFC0ABD4: 14400003 bne $v0, $zero, 0xBFC0ABE4 */ uint32_t psx_brA_BFC0ABD4 = cpu->gpr[2]; uint32_t psx_brB_BFC0ABD4 = cpu->gpr[0]; - int psx_taken_BFC0ABD4 = (psx_brA_BFC0ABD4 != psx_brB_BFC0ABD4); + psx_taken_BFC0ABD4 = (psx_brA_BFC0ABD4 != psx_brB_BFC0ABD4); /* 0xBFC0ABD8: 00000000 nop */ /* nop */ if (psx_taken_BFC0ABD4) goto label_BFC0ABE4; @@ -38019,7 +39257,7 @@ label_BFC0ABDC: psx_check_interrupts(cpu); /* 0xBFC0ABDC: 10000046 beq $zero, $zero, 0xBFC0ACF8 */ uint32_t psx_brA_BFC0ABDC = cpu->gpr[0]; uint32_t psx_brB_BFC0ABDC = cpu->gpr[0]; - int psx_taken_BFC0ABDC = (psx_brA_BFC0ABDC == psx_brB_BFC0ABDC); + psx_taken_BFC0ABDC = (psx_brA_BFC0ABDC == psx_brB_BFC0ABDC); /* 0xBFC0ABE0: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0ABDC) goto label_BFC0ACF8; @@ -38056,7 +39294,7 @@ label_BFC0ABFC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC0AC00: 10410006 beq $v0, $at, 0xBFC0AC1C */ uint32_t psx_brA_BFC0AC00 = cpu->gpr[2]; uint32_t psx_brB_BFC0AC00 = cpu->gpr[1]; - int psx_taken_BFC0AC00 = (psx_brA_BFC0AC00 == psx_brB_BFC0AC00); + psx_taken_BFC0AC00 = (psx_brA_BFC0AC00 == psx_brB_BFC0AC00); /* 0xBFC0AC04: 8FA40040 lw $a0, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AC04u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC0AC00) goto label_BFC0AC1C; @@ -38071,7 +39309,7 @@ label_BFC0AC08: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AC0Cu); return; } g_debug_last_store_pc = 0xBFC0AC0Cu; cpu->write_word(psx_addr, cpu->gpr[25]); } /* 0xBFC0AC10: 10000039 beq $zero, $zero, 0xBFC0ACF8 */ uint32_t psx_brA_BFC0AC10 = cpu->gpr[0]; uint32_t psx_brB_BFC0AC10 = cpu->gpr[0]; - int psx_taken_BFC0AC10 = (psx_brA_BFC0AC10 == psx_brB_BFC0AC10); + psx_taken_BFC0AC10 = (psx_brA_BFC0AC10 == psx_brB_BFC0AC10); /* 0xBFC0AC14: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0AC10) goto label_BFC0ACF8; @@ -38103,7 +39341,7 @@ label_BFC0AC28: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC0AC2C: 14410005 bne $v0, $at, 0xBFC0AC44 */ uint32_t psx_brA_BFC0AC2C = cpu->gpr[2]; uint32_t psx_brB_BFC0AC2C = cpu->gpr[1]; - int psx_taken_BFC0AC2C = (psx_brA_BFC0AC2C != psx_brB_BFC0AC2C); + psx_taken_BFC0AC2C = (psx_brA_BFC0AC2C != psx_brB_BFC0AC2C); /* 0xBFC0AC30: 00403021 addu $a2, $v0, $zero */ cpu->gpr[6] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0AC2C) goto label_BFC0AC44; @@ -38118,7 +39356,7 @@ label_BFC0AC34: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AC38u); return; } g_debug_last_store_pc = 0xBFC0AC38u; cpu->write_word(psx_addr, cpu->gpr[8]); } /* 0xBFC0AC3C: 1000002E beq $zero, $zero, 0xBFC0ACF8 */ uint32_t psx_brA_BFC0AC3C = cpu->gpr[0]; uint32_t psx_brB_BFC0AC3C = cpu->gpr[0]; - int psx_taken_BFC0AC3C = (psx_brA_BFC0AC3C == psx_brB_BFC0AC3C); + psx_taken_BFC0AC3C = (psx_brA_BFC0AC3C == psx_brB_BFC0AC3C); /* 0xBFC0AC40: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0AC3C) goto label_BFC0ACF8; @@ -38154,7 +39392,7 @@ label_BFC0AC5C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AC68u); return; } g_debug_last_store_pc = 0xBFC0AC68u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC0AC6C: 1443FFFB bne $v0, $v1, 0xBFC0AC5C */ uint32_t psx_brA_BFC0AC6C = cpu->gpr[2]; uint32_t psx_brB_BFC0AC6C = cpu->gpr[3]; - int psx_taken_BFC0AC6C = (psx_brA_BFC0AC6C != psx_brB_BFC0AC6C); + psx_taken_BFC0AC6C = (psx_brA_BFC0AC6C != psx_brB_BFC0AC6C); /* 0xBFC0AC70: AC40FFB8 sw $zero, -72($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AC70u); return; } g_debug_last_store_pc = 0xBFC0AC70u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC0AC6C) goto label_BFC0AC5C; @@ -38219,7 +39457,7 @@ label_BFC0ACC8: psx_check_interrupts(cpu); /* 0xBFC0ACC8: 10400009 beq $v0, $zero, 0xBFC0ACF0 */ uint32_t psx_brA_BFC0ACC8 = cpu->gpr[2]; uint32_t psx_brB_BFC0ACC8 = cpu->gpr[0]; - int psx_taken_BFC0ACC8 = (psx_brA_BFC0ACC8 == psx_brB_BFC0ACC8); + psx_taken_BFC0ACC8 = (psx_brA_BFC0ACC8 == psx_brB_BFC0ACC8); /* 0xBFC0ACCC: 00000000 nop */ /* nop */ if (psx_taken_BFC0ACC8) goto label_BFC0ACF0; @@ -38248,7 +39486,7 @@ label_BFC0ACE0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0ACE4u); return; } g_debug_last_store_pc = 0xBFC0ACE4u; cpu->write_word(psx_addr, cpu->gpr[25]); } /* 0xBFC0ACE8: 10000003 beq $zero, $zero, 0xBFC0ACF8 */ uint32_t psx_brA_BFC0ACE8 = cpu->gpr[0]; uint32_t psx_brB_BFC0ACE8 = cpu->gpr[0]; - int psx_taken_BFC0ACE8 = (psx_brA_BFC0ACE8 == psx_brB_BFC0ACE8); + psx_taken_BFC0ACE8 = (psx_brA_BFC0ACE8 == psx_brB_BFC0ACE8); /* 0xBFC0ACEC: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0ACE8) goto label_BFC0ACF8; @@ -38293,6 +39531,47 @@ void func_1FC0AD08(CPUState* cpu) { default: break; } } + int psx_taken_BFC0AD24 = 0; + int psx_taken_BFC0AD44 = 0; + int psx_taken_BFC0AD4C = 0; + int psx_taken_BFC0AD70 = 0; + int psx_taken_BFC0AD78 = 0; + int psx_taken_BFC0AD9C = 0; + int psx_taken_BFC0ADB0 = 0; + int psx_taken_BFC0ADE8 = 0; + int psx_taken_BFC0AE1C = 0; + int psx_taken_BFC0AE2C = 0; + int psx_taken_BFC0AE34 = 0; + int psx_taken_BFC0AE48 = 0; + int psx_taken_BFC0AE5C = 0; + int psx_taken_BFC0AE64 = 0; + int psx_taken_BFC0AE7C = 0; + int psx_taken_BFC0AE84 = 0; + int psx_taken_BFC0AE94 = 0; + int psx_taken_BFC0AEA0 = 0; + int psx_taken_BFC0AEB8 = 0; + int psx_taken_BFC0AEC8 = 0; + int psx_taken_BFC0AEE0 = 0; + int psx_taken_BFC0AEE8 = 0; + int psx_taken_BFC0AEFC = 0; + int psx_taken_BFC0AF38 = 0; + int psx_taken_BFC0AF58 = 0; + int psx_taken_BFC0AF64 = 0; + int psx_taken_BFC0AF70 = 0; + int psx_taken_BFC0AF78 = 0; + int psx_taken_BFC0AF90 = 0; + int psx_taken_BFC0AF98 = 0; + int psx_taken_BFC0AFC0 = 0; + int psx_taken_BFC0AFC8 = 0; + int psx_taken_BFC0AFE0 = 0; + int psx_taken_BFC0AFE8 = 0; + int psx_taken_BFC0AFF0 = 0; + int psx_taken_BFC0B008 = 0; + int psx_taken_BFC0B038 = 0; + int psx_taken_BFC0B058 = 0; + int psx_taken_BFC0B078 = 0; + int psx_taken_BFC0B08C = 0; + int psx_taken_BFC0B09C = 0; label_BFC0AD08: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -38314,7 +39593,7 @@ label_BFC0AD08: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AD20u); return; } g_debug_last_store_pc = 0xBFC0AD20u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC0AD24: 04610002 bgez $v1, 0xBFC0AD30 */ uint32_t psx_brA_BFC0AD24 = cpu->gpr[3]; - int psx_taken_BFC0AD24 = ((int32_t)psx_brA_BFC0AD24 >= 0); + psx_taken_BFC0AD24 = ((int32_t)psx_brA_BFC0AD24 >= 0); /* 0xBFC0AD28: 00600821 addu $at, $v1, $zero */ cpu->gpr[1] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC0AD24) goto label_BFC0AD30; @@ -38342,7 +39621,7 @@ label_BFC0AD30: /* nop */ /* 0xBFC0AD44: 13000003 beq $t8, $zero, 0xBFC0AD54 */ uint32_t psx_brA_BFC0AD44 = cpu->gpr[24]; uint32_t psx_brB_BFC0AD44 = cpu->gpr[0]; - int psx_taken_BFC0AD44 = (psx_brA_BFC0AD44 == psx_brB_BFC0AD44); + psx_taken_BFC0AD44 = (psx_brA_BFC0AD44 == psx_brB_BFC0AD44); /* 0xBFC0AD48: 00000000 nop */ /* nop */ if (psx_taken_BFC0AD44) goto label_BFC0AD54; @@ -38353,7 +39632,7 @@ label_BFC0AD4C: psx_check_interrupts(cpu); /* 0xBFC0AD4C: 100000D9 beq $zero, $zero, 0xBFC0B0B4 */ uint32_t psx_brA_BFC0AD4C = cpu->gpr[0]; uint32_t psx_brB_BFC0AD4C = cpu->gpr[0]; - int psx_taken_BFC0AD4C = (psx_brA_BFC0AD4C == psx_brB_BFC0AD4C); + psx_taken_BFC0AD4C = (psx_brA_BFC0AD4C == psx_brB_BFC0AD4C); /* 0xBFC0AD50: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0AD4C) goto label_BFC0B0B4; @@ -38390,7 +39669,7 @@ label_BFC0AD70: psx_check_interrupts(cpu); /* 0xBFC0AD70: 14400003 bne $v0, $zero, 0xBFC0AD80 */ uint32_t psx_brA_BFC0AD70 = cpu->gpr[2]; uint32_t psx_brB_BFC0AD70 = cpu->gpr[0]; - int psx_taken_BFC0AD70 = (psx_brA_BFC0AD70 != psx_brB_BFC0AD70); + psx_taken_BFC0AD70 = (psx_brA_BFC0AD70 != psx_brB_BFC0AD70); /* 0xBFC0AD74: 00000000 nop */ /* nop */ if (psx_taken_BFC0AD70) goto label_BFC0AD80; @@ -38401,7 +39680,7 @@ label_BFC0AD78: psx_check_interrupts(cpu); /* 0xBFC0AD78: 100000CE beq $zero, $zero, 0xBFC0B0B4 */ uint32_t psx_brA_BFC0AD78 = cpu->gpr[0]; uint32_t psx_brB_BFC0AD78 = cpu->gpr[0]; - int psx_taken_BFC0AD78 = (psx_brA_BFC0AD78 == psx_brB_BFC0AD78); + psx_taken_BFC0AD78 = (psx_brA_BFC0AD78 == psx_brB_BFC0AD78); /* 0xBFC0AD7C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0AD78) goto label_BFC0B0B4; @@ -38438,7 +39717,7 @@ label_BFC0AD98: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC0AD9C: 10410006 beq $v0, $at, 0xBFC0ADB8 */ uint32_t psx_brA_BFC0AD9C = cpu->gpr[2]; uint32_t psx_brB_BFC0AD9C = cpu->gpr[1]; - int psx_taken_BFC0AD9C = (psx_brA_BFC0AD9C == psx_brB_BFC0AD9C); + psx_taken_BFC0AD9C = (psx_brA_BFC0AD9C == psx_brB_BFC0AD9C); /* 0xBFC0ADA0: 00000000 nop */ /* nop */ if (psx_taken_BFC0AD9C) goto label_BFC0ADB8; @@ -38455,7 +39734,7 @@ label_BFC0ADA4: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0ADB0: 100000C0 beq $zero, $zero, 0xBFC0B0B4 */ uint32_t psx_brA_BFC0ADB0 = cpu->gpr[0]; uint32_t psx_brB_BFC0ADB0 = cpu->gpr[0]; - int psx_taken_BFC0ADB0 = (psx_brA_BFC0ADB0 == psx_brB_BFC0ADB0); + psx_taken_BFC0ADB0 = (psx_brA_BFC0ADB0 == psx_brB_BFC0ADB0); /* 0xBFC0ADB4: ADB90018 sw $t9, 24($t5) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[13] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0ADB4u); return; } g_debug_last_store_pc = 0xBFC0ADB4u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC0ADB0) goto label_BFC0B0B4; @@ -38508,7 +39787,7 @@ label_BFC0ADE0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC0ADE8: 10E100AF beq $a3, $at, 0xBFC0B0A8 */ uint32_t psx_brA_BFC0ADE8 = cpu->gpr[7]; uint32_t psx_brB_BFC0ADE8 = cpu->gpr[1]; - int psx_taken_BFC0ADE8 = (psx_brA_BFC0ADE8 == psx_brB_BFC0ADE8); + psx_taken_BFC0ADE8 = (psx_brA_BFC0ADE8 == psx_brB_BFC0ADE8); /* 0xBFC0ADEC: 8FB80090 lw $t8, 144($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (144)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0ADECu); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC0ADE8) goto label_BFC0B0A8; @@ -38541,7 +39820,7 @@ label_BFC0ADF0: cpu->gpr[11] = (uint32_t)((int32_t)cpu->gpr[0] + (161)); /* 0xBFC0AE1C: 156D00A2 bne $t3, $t5, 0xBFC0B0A8 */ uint32_t psx_brA_BFC0AE1C = cpu->gpr[11]; uint32_t psx_brB_BFC0AE1C = cpu->gpr[13]; - int psx_taken_BFC0AE1C = (psx_brA_BFC0AE1C != psx_brB_BFC0AE1C); + psx_taken_BFC0AE1C = (psx_brA_BFC0AE1C != psx_brB_BFC0AE1C); /* 0xBFC0AE20: 8FB80090 lw $t8, 144($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (144)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AE20u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC0AE1C) goto label_BFC0B0A8; @@ -38556,7 +39835,7 @@ label_BFC0AE24: cpu->gpr[10] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC0AE2C: 154C0003 bne $t2, $t4, 0xBFC0AE3C */ uint32_t psx_brA_BFC0AE2C = cpu->gpr[10]; uint32_t psx_brB_BFC0AE2C = cpu->gpr[12]; - int psx_taken_BFC0AE2C = (psx_brA_BFC0AE2C != psx_brB_BFC0AE2C); + psx_taken_BFC0AE2C = (psx_brA_BFC0AE2C != psx_brB_BFC0AE2C); /* 0xBFC0AE30: 00E02021 addu $a0, $a3, $zero */ cpu->gpr[4] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC0AE2C) goto label_BFC0AE3C; @@ -38567,7 +39846,7 @@ label_BFC0AE34: psx_check_interrupts(cpu); /* 0xBFC0AE34: 10000026 beq $zero, $zero, 0xBFC0AED0 */ uint32_t psx_brA_BFC0AE34 = cpu->gpr[0]; uint32_t psx_brB_BFC0AE34 = cpu->gpr[0]; - int psx_taken_BFC0AE34 = (psx_brA_BFC0AE34 == psx_brB_BFC0AE34); + psx_taken_BFC0AE34 = (psx_brA_BFC0AE34 == psx_brB_BFC0AE34); /* 0xBFC0AE38: 240900A2 addiu $t1, $zero, 162 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (162)); if (psx_taken_BFC0AE34) goto label_BFC0AED0; @@ -38584,7 +39863,7 @@ label_BFC0AE3C: /* nop */ /* 0xBFC0AE48: 04A10002 bgez $a1, 0xBFC0AE54 */ uint32_t psx_brA_BFC0AE48 = cpu->gpr[5]; - int psx_taken_BFC0AE48 = ((int32_t)psx_brA_BFC0AE48 >= 0); + psx_taken_BFC0AE48 = ((int32_t)psx_brA_BFC0AE48 >= 0); /* 0xBFC0AE4C: 00A00821 addu $at, $a1, $zero */ cpu->gpr[1] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC0AE48) goto label_BFC0AE54; @@ -38606,7 +39885,7 @@ label_BFC0AE54: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-1)); /* 0xBFC0AE5C: 1CA00004 bgtz $a1, 0xBFC0AE70 */ uint32_t psx_brA_BFC0AE5C = cpu->gpr[5]; - int psx_taken_BFC0AE5C = ((int32_t)psx_brA_BFC0AE5C > 0); + psx_taken_BFC0AE5C = ((int32_t)psx_brA_BFC0AE5C > 0); /* 0xBFC0AE60: 00047140 sll $t6, $a0, 5 */ cpu->gpr[14] = cpu->gpr[4] << 5u; if (psx_taken_BFC0AE5C) goto label_BFC0AE70; @@ -38617,7 +39896,7 @@ label_BFC0AE64: psx_check_interrupts(cpu); /* 0xBFC0AE64: 1000001A beq $zero, $zero, 0xBFC0AED0 */ uint32_t psx_brA_BFC0AE64 = cpu->gpr[0]; uint32_t psx_brB_BFC0AE64 = cpu->gpr[0]; - int psx_taken_BFC0AE64 = (psx_brA_BFC0AE64 == psx_brB_BFC0AE64); + psx_taken_BFC0AE64 = (psx_brA_BFC0AE64 == psx_brB_BFC0AE64); /* 0xBFC0AE68: 240900A2 addiu $t1, $zero, 162 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (162)); if (psx_taken_BFC0AE64) goto label_BFC0AED0; @@ -38641,7 +39920,7 @@ label_BFC0AE70: /* nop */ /* 0xBFC0AE7C: 15420003 bne $t2, $v0, 0xBFC0AE8C */ uint32_t psx_brA_BFC0AE7C = cpu->gpr[10]; uint32_t psx_brB_BFC0AE7C = cpu->gpr[2]; - int psx_taken_BFC0AE7C = (psx_brA_BFC0AE7C != psx_brB_BFC0AE7C); + psx_taken_BFC0AE7C = (psx_brA_BFC0AE7C != psx_brB_BFC0AE7C); /* 0xBFC0AE80: 00000000 nop */ /* nop */ if (psx_taken_BFC0AE7C) goto label_BFC0AE8C; @@ -38652,7 +39931,7 @@ label_BFC0AE84: psx_check_interrupts(cpu); /* 0xBFC0AE84: 10000012 beq $zero, $zero, 0xBFC0AED0 */ uint32_t psx_brA_BFC0AE84 = cpu->gpr[0]; uint32_t psx_brB_BFC0AE84 = cpu->gpr[0]; - int psx_taken_BFC0AE84 = (psx_brA_BFC0AE84 == psx_brB_BFC0AE84); + psx_taken_BFC0AE84 = (psx_brA_BFC0AE84 == psx_brB_BFC0AE84); /* 0xBFC0AE88: 240900A2 addiu $t1, $zero, 162 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (162)); if (psx_taken_BFC0AE84) goto label_BFC0AED0; @@ -38667,7 +39946,7 @@ label_BFC0AE8C: cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (162)); /* 0xBFC0AE94: 152F000F bne $t1, $t7, 0xBFC0AED4 */ uint32_t psx_brA_BFC0AE94 = cpu->gpr[9]; uint32_t psx_brB_BFC0AE94 = cpu->gpr[15]; - int psx_taken_BFC0AE94 = (psx_brA_BFC0AE94 != psx_brB_BFC0AE94); + psx_taken_BFC0AE94 = (psx_brA_BFC0AE94 != psx_brB_BFC0AE94); /* 0xBFC0AE98: 00046940 sll $t5, $a0, 5 */ cpu->gpr[13] = cpu->gpr[4] << 5u; if (psx_taken_BFC0AE94) goto label_BFC0AED4; @@ -38685,7 +39964,7 @@ label_BFC0AEA0: psx_check_interrupts(cpu); /* 0xBFC0AEA0: 18A0000B blez $a1, 0xBFC0AED0 */ uint32_t psx_brA_BFC0AEA0 = cpu->gpr[5]; - int psx_taken_BFC0AEA0 = ((int32_t)psx_brA_BFC0AEA0 <= 0); + psx_taken_BFC0AEA0 = ((int32_t)psx_brA_BFC0AEA0 <= 0); /* 0xBFC0AEA4: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0AEA0) goto label_BFC0AED0; @@ -38704,7 +39983,7 @@ label_BFC0AEA8: /* nop */ /* 0xBFC0AEB8: 11420006 beq $t2, $v0, 0xBFC0AED4 */ uint32_t psx_brA_BFC0AEB8 = cpu->gpr[10]; uint32_t psx_brB_BFC0AEB8 = cpu->gpr[2]; - int psx_taken_BFC0AEB8 = (psx_brA_BFC0AEB8 == psx_brB_BFC0AEB8); + psx_taken_BFC0AEB8 = (psx_brA_BFC0AEB8 == psx_brB_BFC0AEB8); /* 0xBFC0AEBC: 00046940 sll $t5, $a0, 5 */ cpu->gpr[13] = cpu->gpr[4] << 5u; if (psx_taken_BFC0AEB8) goto label_BFC0AED4; @@ -38719,7 +39998,7 @@ label_BFC0AEC0: /* nop */ /* 0xBFC0AEC8: 1139FFF5 beq $t1, $t9, 0xBFC0AEA0 */ uint32_t psx_brA_BFC0AEC8 = cpu->gpr[9]; uint32_t psx_brB_BFC0AEC8 = cpu->gpr[25]; - int psx_taken_BFC0AEC8 = (psx_brA_BFC0AEC8 == psx_brB_BFC0AEC8); + psx_taken_BFC0AEC8 = (psx_brA_BFC0AEC8 == psx_brB_BFC0AEC8); /* 0xBFC0AECC: 24A5FFFF addiu $a1, $a1, -1 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-1)); if (psx_taken_BFC0AEC8) goto label_BFC0AEA0; @@ -38743,7 +40022,7 @@ label_BFC0AED4: /* nop */ /* 0xBFC0AEE0: 11620003 beq $t3, $v0, 0xBFC0AEF0 */ uint32_t psx_brA_BFC0AEE0 = cpu->gpr[11]; uint32_t psx_brB_BFC0AEE0 = cpu->gpr[2]; - int psx_taken_BFC0AEE0 = (psx_brA_BFC0AEE0 == psx_brB_BFC0AEE0); + psx_taken_BFC0AEE0 = (psx_brA_BFC0AEE0 == psx_brB_BFC0AEE0); /* 0xBFC0AEE4: 240100A3 addiu $at, $zero, 163 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (163)); if (psx_taken_BFC0AEE0) goto label_BFC0AEF0; @@ -38754,7 +40033,7 @@ label_BFC0AEE8: psx_check_interrupts(cpu); /* 0xBFC0AEE8: 1441006F bne $v0, $at, 0xBFC0B0A8 */ uint32_t psx_brA_BFC0AEE8 = cpu->gpr[2]; uint32_t psx_brB_BFC0AEE8 = cpu->gpr[1]; - int psx_taken_BFC0AEE8 = (psx_brA_BFC0AEE8 != psx_brB_BFC0AEE8); + psx_taken_BFC0AEE8 = (psx_brA_BFC0AEE8 != psx_brB_BFC0AEE8); /* 0xBFC0AEEC: 8FB80090 lw $t8, 144($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (144)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AEECu); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC0AEE8) goto label_BFC0B0A8; @@ -38771,7 +40050,7 @@ label_BFC0AEF0: /* nop */ /* 0xBFC0AEFC: 04A10002 bgez $a1, 0xBFC0AF08 */ uint32_t psx_brA_BFC0AEFC = cpu->gpr[5]; - int psx_taken_BFC0AEFC = ((int32_t)psx_brA_BFC0AEFC >= 0); + psx_taken_BFC0AEFC = ((int32_t)psx_brA_BFC0AEFC >= 0); /* 0xBFC0AF00: 00A00821 addu $at, $a1, $zero */ cpu->gpr[1] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC0AEFC) goto label_BFC0AF08; @@ -38818,7 +40097,7 @@ label_BFC0AF28: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AF34u); return; } g_debug_last_store_pc = 0xBFC0AF34u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC0AF38: 1443FFFB bne $v0, $v1, 0xBFC0AF28 */ uint32_t psx_brA_BFC0AF38 = cpu->gpr[2]; uint32_t psx_brB_BFC0AF38 = cpu->gpr[3]; - int psx_taken_BFC0AF38 = (psx_brA_BFC0AF38 != psx_brB_BFC0AF38); + psx_taken_BFC0AF38 = (psx_brA_BFC0AF38 != psx_brB_BFC0AF38); /* 0xBFC0AF3C: AC40FFB8 sw $zero, -72($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AF3Cu); return; } g_debug_last_store_pc = 0xBFC0AF3Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC0AF38) goto label_BFC0AF28; @@ -38841,7 +40120,7 @@ label_BFC0AF40: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[13] + (76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AF54u); return; } g_debug_last_store_pc = 0xBFC0AF54u; cpu->write_word(psx_addr, cpu->gpr[24]); } /* 0xBFC0AF58: 1CA00004 bgtz $a1, 0xBFC0AF6C */ uint32_t psx_brA_BFC0AF58 = cpu->gpr[5]; - int psx_taken_BFC0AF58 = ((int32_t)psx_brA_BFC0AF58 > 0); + psx_taken_BFC0AF58 = ((int32_t)psx_brA_BFC0AF58 > 0); /* 0xBFC0AF5C: 01603821 addu $a3, $t3, $zero */ cpu->gpr[7] = cpu->gpr[11] + cpu->gpr[0]; if (psx_taken_BFC0AF58) goto label_BFC0AF6C; @@ -38854,7 +40133,7 @@ label_BFC0AF60: cpu->gpr[4] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC0AF64: 10000020 beq $zero, $zero, 0xBFC0AFE8 */ uint32_t psx_brA_BFC0AF64 = cpu->gpr[0]; uint32_t psx_brB_BFC0AF64 = cpu->gpr[0]; - int psx_taken_BFC0AF64 = (psx_brA_BFC0AF64 == psx_brB_BFC0AF64); + psx_taken_BFC0AF64 = (psx_brA_BFC0AF64 == psx_brB_BFC0AF64); /* 0xBFC0AF68: 24030052 addiu $v1, $zero, 82 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (82)); if (psx_taken_BFC0AF64) goto label_BFC0AFE8; @@ -38867,7 +40146,7 @@ label_BFC0AF6C: cpu->gpr[4] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC0AF70: 14E40004 bne $a3, $a0, 0xBFC0AF84 */ uint32_t psx_brA_BFC0AF70 = cpu->gpr[7]; uint32_t psx_brB_BFC0AF70 = cpu->gpr[4]; - int psx_taken_BFC0AF70 = (psx_brA_BFC0AF70 != psx_brB_BFC0AF70); + psx_taken_BFC0AF70 = (psx_brA_BFC0AF70 != psx_brB_BFC0AF70); /* 0xBFC0AF74: 00077140 sll $t6, $a3, 5 */ cpu->gpr[14] = cpu->gpr[7] << 5u; if (psx_taken_BFC0AF70) goto label_BFC0AF84; @@ -38878,7 +40157,7 @@ label_BFC0AF78: psx_check_interrupts(cpu); /* 0xBFC0AF78: 1000001B beq $zero, $zero, 0xBFC0AFE8 */ uint32_t psx_brA_BFC0AF78 = cpu->gpr[0]; uint32_t psx_brB_BFC0AF78 = cpu->gpr[0]; - int psx_taken_BFC0AF78 = (psx_brA_BFC0AF78 == psx_brB_BFC0AF78); + psx_taken_BFC0AF78 = (psx_brA_BFC0AF78 == psx_brB_BFC0AF78); /* 0xBFC0AF7C: 24030052 addiu $v1, $zero, 82 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (82)); if (psx_taken_BFC0AF78) goto label_BFC0AFE8; @@ -38902,7 +40181,7 @@ label_BFC0AF84: /* nop */ /* 0xBFC0AF90: 112F0004 beq $t1, $t7, 0xBFC0AFA4 */ uint32_t psx_brA_BFC0AF90 = cpu->gpr[9]; uint32_t psx_brB_BFC0AF90 = cpu->gpr[15]; - int psx_taken_BFC0AF90 = (psx_brA_BFC0AF90 == psx_brB_BFC0AF90); + psx_taken_BFC0AF90 = (psx_brA_BFC0AF90 == psx_brB_BFC0AF90); /* 0xBFC0AF94: 24020052 addiu $v0, $zero, 82 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (82)); if (psx_taken_BFC0AF90) goto label_BFC0AFA4; @@ -38913,7 +40192,7 @@ label_BFC0AF98: psx_check_interrupts(cpu); /* 0xBFC0AF98: 10000013 beq $zero, $zero, 0xBFC0AFE8 */ uint32_t psx_brA_BFC0AF98 = cpu->gpr[0]; uint32_t psx_brB_BFC0AF98 = cpu->gpr[0]; - int psx_taken_BFC0AF98 = (psx_brA_BFC0AF98 == psx_brB_BFC0AF98); + psx_taken_BFC0AF98 = (psx_brA_BFC0AF98 == psx_brB_BFC0AF98); /* 0xBFC0AF9C: 24030052 addiu $v1, $zero, 82 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (82)); if (psx_taken_BFC0AF98) goto label_BFC0AFE8; @@ -38950,7 +40229,7 @@ label_BFC0AFAC: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-1)); /* 0xBFC0AFC0: 18A00009 blez $a1, 0xBFC0AFE8 */ uint32_t psx_brA_BFC0AFC0 = cpu->gpr[5]; - int psx_taken_BFC0AFC0 = ((int32_t)psx_brA_BFC0AFC0 <= 0); + psx_taken_BFC0AFC0 = ((int32_t)psx_brA_BFC0AFC0 <= 0); /* 0xBFC0AFC4: 00000000 nop */ /* nop */ if (psx_taken_BFC0AFC0) goto label_BFC0AFE8; @@ -38961,7 +40240,7 @@ label_BFC0AFC8: psx_check_interrupts(cpu); /* 0xBFC0AFC8: 10E40007 beq $a3, $a0, 0xBFC0AFE8 */ uint32_t psx_brA_BFC0AFC8 = cpu->gpr[7]; uint32_t psx_brB_BFC0AFC8 = cpu->gpr[4]; - int psx_taken_BFC0AFC8 = (psx_brA_BFC0AFC8 == psx_brB_BFC0AFC8); + psx_taken_BFC0AFC8 = (psx_brA_BFC0AFC8 == psx_brB_BFC0AFC8); /* 0xBFC0AFCC: 00000000 nop */ /* nop */ if (psx_taken_BFC0AFC8) goto label_BFC0AFE8; @@ -38980,7 +40259,7 @@ label_BFC0AFD0: /* nop */ /* 0xBFC0AFE0: 112EFFF2 beq $t1, $t6, 0xBFC0AFAC */ uint32_t psx_brA_BFC0AFE0 = cpu->gpr[9]; uint32_t psx_brB_BFC0AFE0 = cpu->gpr[14]; - int psx_taken_BFC0AFE0 = (psx_brA_BFC0AFE0 == psx_brB_BFC0AFE0); + psx_taken_BFC0AFE0 = (psx_brA_BFC0AFE0 == psx_brB_BFC0AFE0); /* 0xBFC0AFE4: 0007C080 sll $t8, $a3, 2 */ cpu->gpr[24] = cpu->gpr[7] << 2u; if (psx_taken_BFC0AFE0) goto label_BFC0AFAC; @@ -38991,7 +40270,7 @@ label_BFC0AFE8: psx_check_interrupts(cpu); /* 0xBFC0AFE8: 18A0000E blez $a1, 0xBFC0B024 */ uint32_t psx_brA_BFC0AFE8 = cpu->gpr[5]; - int psx_taken_BFC0AFE8 = ((int32_t)psx_brA_BFC0AFE8 <= 0); + psx_taken_BFC0AFE8 = ((int32_t)psx_brA_BFC0AFE8 <= 0); /* 0xBFC0AFEC: 00000000 nop */ /* nop */ if (psx_taken_BFC0AFE8) goto label_BFC0B024; @@ -39002,7 +40281,7 @@ label_BFC0AFF0: psx_check_interrupts(cpu); /* 0xBFC0AFF0: 10E4000D beq $a3, $a0, 0xBFC0B028 */ uint32_t psx_brA_BFC0AFF0 = cpu->gpr[7]; uint32_t psx_brB_BFC0AFF0 = cpu->gpr[4]; - int psx_taken_BFC0AFF0 = (psx_brA_BFC0AFF0 == psx_brB_BFC0AFF0); + psx_taken_BFC0AFF0 = (psx_brA_BFC0AFF0 == psx_brB_BFC0AFF0); /* 0xBFC0AFF4: 8FA40044 lw $a0, 68($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0AFF4u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC0AFF0) goto label_BFC0B028; @@ -39021,7 +40300,7 @@ label_BFC0AFF8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (163)); /* 0xBFC0B008: 17010007 bne $t8, $at, 0xBFC0B028 */ uint32_t psx_brA_BFC0B008 = cpu->gpr[24]; uint32_t psx_brB_BFC0B008 = cpu->gpr[1]; - int psx_taken_BFC0B008 = (psx_brA_BFC0B008 != psx_brB_BFC0B008); + psx_taken_BFC0B008 = (psx_brA_BFC0B008 != psx_brB_BFC0B008); /* 0xBFC0B00C: 8FA40044 lw $a0, 68($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B00Cu); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC0B008) goto label_BFC0B028; @@ -39068,7 +40347,7 @@ label_BFC0B034: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B034u); return; } cpu->gpr[8] = cpu->read_word(psx_addr); } /* 0xBFC0B038: 10400016 beq $v0, $zero, 0xBFC0B094 */ uint32_t psx_brA_BFC0B038 = cpu->gpr[2]; uint32_t psx_brB_BFC0B038 = cpu->gpr[0]; - int psx_taken_BFC0B038 = (psx_brA_BFC0B038 == psx_brB_BFC0B038); + psx_taken_BFC0B038 = (psx_brA_BFC0B038 == psx_brB_BFC0B038); /* 0xBFC0B03C: 340AFFFF ori $t2, $zero, 0xFFFF */ cpu->gpr[10] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC0B038) goto label_BFC0B094; @@ -39096,7 +40375,7 @@ label_BFC0B050: /* nop */ /* 0xBFC0B058: 11E00006 beq $t7, $zero, 0xBFC0B074 */ uint32_t psx_brA_BFC0B058 = cpu->gpr[15]; uint32_t psx_brB_BFC0B058 = cpu->gpr[0]; - int psx_taken_BFC0B058 = (psx_brA_BFC0B058 == psx_brB_BFC0B058); + psx_taken_BFC0B058 = (psx_brA_BFC0B058 == psx_brB_BFC0B058); /* 0xBFC0B05C: 00000000 nop */ /* nop */ if (psx_taken_BFC0B058) goto label_BFC0B074; @@ -39124,7 +40403,7 @@ label_BFC0B074: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); /* 0xBFC0B078: 1486FFF5 bne $a0, $a2, 0xBFC0B050 */ uint32_t psx_brA_BFC0B078 = cpu->gpr[4]; uint32_t psx_brB_BFC0B078 = cpu->gpr[6]; - int psx_taken_BFC0B078 = (psx_brA_BFC0B078 != psx_brB_BFC0B078); + psx_taken_BFC0B078 = (psx_brA_BFC0B078 != psx_brB_BFC0B078); /* 0xBFC0B07C: 24420004 addiu $v0, $v0, 4 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); if (psx_taken_BFC0B078) goto label_BFC0B050; @@ -39141,7 +40420,7 @@ label_BFC0B080: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0B08C: 10000009 beq $zero, $zero, 0xBFC0B0B4 */ uint32_t psx_brA_BFC0B08C = cpu->gpr[0]; uint32_t psx_brB_BFC0B08C = cpu->gpr[0]; - int psx_taken_BFC0B08C = (psx_brA_BFC0B08C == psx_brB_BFC0B08C); + psx_taken_BFC0B08C = (psx_brA_BFC0B08C == psx_brB_BFC0B08C); /* 0xBFC0B090: ADB90018 sw $t9, 24($t5) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[13] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B090u); return; } g_debug_last_store_pc = 0xBFC0B090u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC0B08C) goto label_BFC0B0B4; @@ -39156,7 +40435,7 @@ label_BFC0B094: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC0B09C: 10000005 beq $zero, $zero, 0xBFC0B0B4 */ uint32_t psx_brA_BFC0B09C = cpu->gpr[0]; uint32_t psx_brB_BFC0B09C = cpu->gpr[0]; - int psx_taken_BFC0B09C = (psx_brA_BFC0B09C == psx_brB_BFC0B09C); + psx_taken_BFC0B09C = (psx_brA_BFC0B09C == psx_brB_BFC0B09C); /* 0xBFC0B0A0: ADC00018 sw $zero, 24($t6) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[14] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B0A0u); return; } g_debug_last_store_pc = 0xBFC0B0A0u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC0B09C) goto label_BFC0B0B4; @@ -39204,6 +40483,11 @@ void func_1FC0B0D0(CPUState* cpu) { default: break; } } + int psx_taken_BFC0B0E8 = 0; + int psx_taken_BFC0B108 = 0; + int psx_taken_BFC0B118 = 0; + int psx_taken_BFC0B140 = 0; + int psx_taken_BFC0B150 = 0; label_BFC0B0D0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -39223,7 +40507,7 @@ label_BFC0B0D0: /* nop */ /* 0xBFC0B0E8: 05C10002 bgez $t6, 0xBFC0B0F4 */ uint32_t psx_brA_BFC0B0E8 = cpu->gpr[14]; - int psx_taken_BFC0B0E8 = ((int32_t)psx_brA_BFC0B0E8 >= 0); + psx_taken_BFC0B0E8 = ((int32_t)psx_brA_BFC0B0E8 >= 0); /* 0xBFC0B0EC: 01C00821 addu $at, $t6, $zero */ cpu->gpr[1] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC0B0E8) goto label_BFC0B0F4; @@ -39251,7 +40535,7 @@ label_BFC0B0F4: /* nop */ /* 0xBFC0B108: 13200005 beq $t9, $zero, 0xBFC0B120 */ uint32_t psx_brA_BFC0B108 = cpu->gpr[25]; uint32_t psx_brB_BFC0B108 = cpu->gpr[0]; - int psx_taken_BFC0B108 = (psx_brA_BFC0B108 == psx_brB_BFC0B108); + psx_taken_BFC0B108 = (psx_brA_BFC0B108 == psx_brB_BFC0B108); /* 0xBFC0B10C: 00000000 nop */ /* nop */ if (psx_taken_BFC0B108) goto label_BFC0B120; @@ -39266,7 +40550,7 @@ label_BFC0B110: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B114u); return; } g_debug_last_store_pc = 0xBFC0B114u; cpu->write_word(psx_addr, cpu->gpr[8]); } /* 0xBFC0B118: 10000011 beq $zero, $zero, 0xBFC0B160 */ uint32_t psx_brA_BFC0B118 = cpu->gpr[0]; uint32_t psx_brB_BFC0B118 = cpu->gpr[0]; - int psx_taken_BFC0B118 = (psx_brA_BFC0B118 == psx_brB_BFC0B118); + psx_taken_BFC0B118 = (psx_brA_BFC0B118 == psx_brB_BFC0B118); /* 0xBFC0B11C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0B118) goto label_BFC0B160; @@ -39305,7 +40589,7 @@ label_BFC0B13C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B13Cu); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC0B140: 14400005 bne $v0, $zero, 0xBFC0B158 */ uint32_t psx_brA_BFC0B140 = cpu->gpr[2]; uint32_t psx_brB_BFC0B140 = cpu->gpr[0]; - int psx_taken_BFC0B140 = (psx_brA_BFC0B140 != psx_brB_BFC0B140); + psx_taken_BFC0B140 = (psx_brA_BFC0B140 != psx_brB_BFC0B140); /* 0xBFC0B144: 00000000 nop */ /* nop */ if (psx_taken_BFC0B140) goto label_BFC0B158; @@ -39320,7 +40604,7 @@ label_BFC0B148: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B14Cu); return; } g_debug_last_store_pc = 0xBFC0B14Cu; cpu->write_word(psx_addr, cpu->gpr[9]); } /* 0xBFC0B150: 10000003 beq $zero, $zero, 0xBFC0B160 */ uint32_t psx_brA_BFC0B150 = cpu->gpr[0]; uint32_t psx_brB_BFC0B150 = cpu->gpr[0]; - int psx_taken_BFC0B150 = (psx_brA_BFC0B150 == psx_brB_BFC0B150); + psx_taken_BFC0B150 = (psx_brA_BFC0B150 == psx_brB_BFC0B150); /* 0xBFC0B154: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0B150) goto label_BFC0B160; @@ -39371,6 +40655,15 @@ void func_1FC0B170(CPUState* cpu) { default: break; } } + int psx_taken_BFC0B194 = 0; + int psx_taken_BFC0B1EC = 0; + int psx_taken_BFC0B1F4 = 0; + int psx_taken_BFC0B290 = 0; + int psx_taken_BFC0B2B0 = 0; + int psx_taken_BFC0B2C4 = 0; + int psx_taken_BFC0B324 = 0; + int psx_taken_BFC0B344 = 0; + int psx_taken_BFC0B358 = 0; label_BFC0B170: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -39396,7 +40689,7 @@ label_BFC0B170: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (128)); /* 0xBFC0B194: 07C10002 bgez $fp, 0xBFC0B1A0 */ uint32_t psx_brA_BFC0B194 = cpu->gpr[30]; - int psx_taken_BFC0B194 = ((int32_t)psx_brA_BFC0B194 >= 0); + psx_taken_BFC0B194 = ((int32_t)psx_brA_BFC0B194 >= 0); /* 0xBFC0B198: 03C00821 addu $at, $fp, $zero */ cpu->gpr[1] = cpu->gpr[30] + cpu->gpr[0]; if (psx_taken_BFC0B194) goto label_BFC0B1A0; @@ -39476,7 +40769,7 @@ label_BFC0B1E8: cpu->gpr[23] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0B1EC: 10570003 beq $v0, $s7, 0xBFC0B1FC */ uint32_t psx_brA_BFC0B1EC = cpu->gpr[2]; uint32_t psx_brB_BFC0B1EC = cpu->gpr[23]; - int psx_taken_BFC0B1EC = (psx_brA_BFC0B1EC == psx_brB_BFC0B1EC); + psx_taken_BFC0B1EC = (psx_brA_BFC0B1EC == psx_brB_BFC0B1EC); /* 0xBFC0B1F0: 00000000 nop */ /* nop */ if (psx_taken_BFC0B1EC) goto label_BFC0B1FC; @@ -39487,7 +40780,7 @@ label_BFC0B1F4: psx_check_interrupts(cpu); /* 0xBFC0B1F4: 10000061 beq $zero, $zero, 0xBFC0B37C */ uint32_t psx_brA_BFC0B1F4 = cpu->gpr[0]; uint32_t psx_brB_BFC0B1F4 = cpu->gpr[0]; - int psx_taken_BFC0B1F4 = (psx_brA_BFC0B1F4 == psx_brB_BFC0B1F4); + psx_taken_BFC0B1F4 = (psx_brA_BFC0B1F4 == psx_brB_BFC0B1F4); /* 0xBFC0B1F8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0B1F4) goto label_BFC0B37C; @@ -39607,7 +40900,7 @@ label_BFC0B290: psx_check_interrupts(cpu); /* 0xBFC0B290: 10570009 beq $v0, $s7, 0xBFC0B2B8 */ uint32_t psx_brA_BFC0B290 = cpu->gpr[2]; uint32_t psx_brB_BFC0B290 = cpu->gpr[23]; - int psx_taken_BFC0B290 = (psx_brA_BFC0B290 == psx_brB_BFC0B290); + psx_taken_BFC0B290 = (psx_brA_BFC0B290 == psx_brB_BFC0B290); /* 0xBFC0B294: 00000000 nop */ /* nop */ if (psx_taken_BFC0B290) goto label_BFC0B2B8; @@ -39630,7 +40923,7 @@ label_BFC0B298: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B2ACu); return; } cpu->gpr[22] = cpu->read_word(psx_addr); } /* 0xBFC0B2B0: 10000032 beq $zero, $zero, 0xBFC0B37C */ uint32_t psx_brA_BFC0B2B0 = cpu->gpr[0]; uint32_t psx_brB_BFC0B2B0 = cpu->gpr[0]; - int psx_taken_BFC0B2B0 = (psx_brA_BFC0B2B0 == psx_brB_BFC0B2B0); + psx_taken_BFC0B2B0 = (psx_brA_BFC0B2B0 == psx_brB_BFC0B2B0); /* 0xBFC0B2B4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0B2B0) goto label_BFC0B37C; @@ -39653,7 +40946,7 @@ label_BFC0B2C0: cpu->gpr[17] = cpu->gpr[16] + cpu->gpr[0]; /* 0xBFC0B2C4: 1635FFE0 bne $s1, $s5, 0xBFC0B248 */ uint32_t psx_brA_BFC0B2C4 = cpu->gpr[17]; uint32_t psx_brB_BFC0B2C4 = cpu->gpr[21]; - int psx_taken_BFC0B2C4 = (psx_brA_BFC0B2C4 != psx_brB_BFC0B2C4); + psx_taken_BFC0B2C4 = (psx_brA_BFC0B2C4 != psx_brB_BFC0B2C4); /* 0xBFC0B2C8: 00115940 sll $t3, $s1, 5 */ cpu->gpr[11] = cpu->gpr[17] << 5u; if (psx_taken_BFC0B2C4) goto label_BFC0B248; @@ -39731,7 +41024,7 @@ label_BFC0B324: psx_check_interrupts(cpu); /* 0xBFC0B324: 10570009 beq $v0, $s7, 0xBFC0B34C */ uint32_t psx_brA_BFC0B324 = cpu->gpr[2]; uint32_t psx_brB_BFC0B324 = cpu->gpr[23]; - int psx_taken_BFC0B324 = (psx_brA_BFC0B324 == psx_brB_BFC0B324); + psx_taken_BFC0B324 = (psx_brA_BFC0B324 == psx_brB_BFC0B324); /* 0xBFC0B328: 00000000 nop */ /* nop */ if (psx_taken_BFC0B324) goto label_BFC0B34C; @@ -39754,7 +41047,7 @@ label_BFC0B32C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B340u); return; } cpu->gpr[22] = cpu->read_word(psx_addr); } /* 0xBFC0B344: 1000000D beq $zero, $zero, 0xBFC0B37C */ uint32_t psx_brA_BFC0B344 = cpu->gpr[0]; uint32_t psx_brB_BFC0B344 = cpu->gpr[0]; - int psx_taken_BFC0B344 = (psx_brA_BFC0B344 == psx_brB_BFC0B344); + psx_taken_BFC0B344 = (psx_brA_BFC0B344 == psx_brB_BFC0B344); /* 0xBFC0B348: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0B344) goto label_BFC0B37C; @@ -39777,7 +41070,7 @@ label_BFC0B354: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC0B358: 1633FFE7 bne $s1, $s3, 0xBFC0B2F8 */ uint32_t psx_brA_BFC0B358 = cpu->gpr[17]; uint32_t psx_brB_BFC0B358 = cpu->gpr[19]; - int psx_taken_BFC0B358 = (psx_brA_BFC0B358 != psx_brB_BFC0B358); + psx_taken_BFC0B358 = (psx_brA_BFC0B358 != psx_brB_BFC0B358); /* 0xBFC0B35C: 00117880 sll $t7, $s1, 2 */ cpu->gpr[15] = cpu->gpr[17] << 2u; if (psx_taken_BFC0B358) goto label_BFC0B2F8; @@ -39833,6 +41126,17 @@ void func_1FC0B394(CPUState* cpu) { default: break; } } + int psx_taken_BFC0B3B0 = 0; + int psx_taken_BFC0B3D0 = 0; + int psx_taken_BFC0B3DC = 0; + int psx_taken_BFC0B3E4 = 0; + int psx_taken_BFC0B3EC = 0; + int psx_taken_BFC0B45C = 0; + int psx_taken_BFC0B490 = 0; + int psx_taken_BFC0B49C = 0; + int psx_taken_BFC0B4A8 = 0; + int psx_taken_BFC0B4F4 = 0; + int psx_taken_BFC0B528 = 0; label_BFC0B394: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -39860,7 +41164,7 @@ label_BFC0B3A4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B3ACu); return; } g_debug_last_store_pc = 0xBFC0B3ACu; cpu->write_word(psx_addr, cpu->gpr[2]); } /* 0xBFC0B3B0: 04410002 bgez $v0, 0xBFC0B3BC */ uint32_t psx_brA_BFC0B3B0 = cpu->gpr[2]; - int psx_taken_BFC0B3B0 = ((int32_t)psx_brA_BFC0B3B0 >= 0); + psx_taken_BFC0B3B0 = ((int32_t)psx_brA_BFC0B3B0 >= 0); /* 0xBFC0B3B4: 00400821 addu $at, $v0, $zero */ cpu->gpr[1] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0B3B0) goto label_BFC0B3BC; @@ -39888,7 +41192,7 @@ label_BFC0B3BC: /* nop */ /* 0xBFC0B3D0: 1080005A beq $a0, $zero, 0xBFC0B53C */ uint32_t psx_brA_BFC0B3D0 = cpu->gpr[4]; uint32_t psx_brB_BFC0B3D0 = cpu->gpr[0]; - int psx_taken_BFC0B3D0 = (psx_brA_BFC0B3D0 == psx_brB_BFC0B3D0); + psx_taken_BFC0B3D0 = (psx_brA_BFC0B3D0 == psx_brB_BFC0B3D0); /* 0xBFC0B3D4: 00604021 addu $t0, $v1, $zero */ cpu->gpr[8] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC0B3D0) goto label_BFC0B53C; @@ -39901,7 +41205,7 @@ label_BFC0B3D8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC0B3DC: 10810005 beq $a0, $at, 0xBFC0B3F4 */ uint32_t psx_brA_BFC0B3DC = cpu->gpr[4]; uint32_t psx_brB_BFC0B3DC = cpu->gpr[1]; - int psx_taken_BFC0B3DC = (psx_brA_BFC0B3DC == psx_brB_BFC0B3DC); + psx_taken_BFC0B3DC = (psx_brA_BFC0B3DC == psx_brB_BFC0B3DC); /* 0xBFC0B3E0: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC0B3DC) goto label_BFC0B3F4; @@ -39912,7 +41216,7 @@ label_BFC0B3E4: psx_check_interrupts(cpu); /* 0xBFC0B3E4: 10810003 beq $a0, $at, 0xBFC0B3F4 */ uint32_t psx_brA_BFC0B3E4 = cpu->gpr[4]; uint32_t psx_brB_BFC0B3E4 = cpu->gpr[1]; - int psx_taken_BFC0B3E4 = (psx_brA_BFC0B3E4 == psx_brB_BFC0B3E4); + psx_taken_BFC0B3E4 = (psx_brA_BFC0B3E4 == psx_brB_BFC0B3E4); /* 0xBFC0B3E8: 24010006 addiu $at, $zero, 6 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (6)); if (psx_taken_BFC0B3E4) goto label_BFC0B3F4; @@ -39923,7 +41227,7 @@ label_BFC0B3EC: psx_check_interrupts(cpu); /* 0xBFC0B3EC: 14810051 bne $a0, $at, 0xBFC0B534 */ uint32_t psx_brA_BFC0B3EC = cpu->gpr[4]; uint32_t psx_brB_BFC0B3EC = cpu->gpr[1]; - int psx_taken_BFC0B3EC = (psx_brA_BFC0B3EC != psx_brB_BFC0B3EC); + psx_taken_BFC0B3EC = (psx_brA_BFC0B3EC != psx_brB_BFC0B3EC); /* 0xBFC0B3F0: 01002021 addu $a0, $t0, $zero */ cpu->gpr[4] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC0B3EC) goto label_BFC0B534; @@ -39998,7 +41302,7 @@ label_BFC0B450: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (48)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B458u); return; } cpu->gpr[8] = cpu->read_word(psx_addr); } /* 0xBFC0B45C: 14440002 bne $v0, $a0, 0xBFC0B468 */ uint32_t psx_brA_BFC0B45C = cpu->gpr[2]; uint32_t psx_brB_BFC0B45C = cpu->gpr[4]; - int psx_taken_BFC0B45C = (psx_brA_BFC0B45C != psx_brB_BFC0B45C); + psx_taken_BFC0B45C = (psx_brA_BFC0B45C != psx_brB_BFC0B45C); /* 0xBFC0B460: 00404821 addu $t1, $v0, $zero */ cpu->gpr[9] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0B45C) goto label_BFC0B468; @@ -40041,7 +41345,7 @@ label_BFC0B488: /* nop */ /* 0xBFC0B490: 10990005 beq $a0, $t9, 0xBFC0B4A8 */ uint32_t psx_brA_BFC0B490 = cpu->gpr[4]; uint32_t psx_brB_BFC0B490 = cpu->gpr[25]; - int psx_taken_BFC0B490 = (psx_brA_BFC0B490 == psx_brB_BFC0B490); + psx_taken_BFC0B490 = (psx_brA_BFC0B490 == psx_brB_BFC0B490); /* 0xBFC0B494: 28E10014 slti $at, $a3, 20 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[7] < (20) ? 1 : 0); if (psx_taken_BFC0B490) goto label_BFC0B4A8; @@ -40054,7 +41358,7 @@ label_BFC0B498: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[7] + (1)); /* 0xBFC0B49C: 14E2FFFA bne $a3, $v0, 0xBFC0B488 */ uint32_t psx_brA_BFC0B49C = cpu->gpr[7]; uint32_t psx_brB_BFC0B49C = cpu->gpr[2]; - int psx_taken_BFC0B49C = (psx_brA_BFC0B49C != psx_brB_BFC0B49C); + psx_taken_BFC0B49C = (psx_brA_BFC0B49C != psx_brB_BFC0B49C); /* 0xBFC0B4A0: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC0B49C) goto label_BFC0B488; @@ -40072,7 +41376,7 @@ label_BFC0B4A8: psx_check_interrupts(cpu); /* 0xBFC0B4A8: 10200022 beq $at, $zero, 0xBFC0B534 */ uint32_t psx_brA_BFC0B4A8 = cpu->gpr[1]; uint32_t psx_brB_BFC0B4A8 = cpu->gpr[0]; - int psx_taken_BFC0B4A8 = (psx_brA_BFC0B4A8 == psx_brB_BFC0B4A8); + psx_taken_BFC0B4A8 = (psx_brA_BFC0B4A8 == psx_brB_BFC0B4A8); /* 0xBFC0B4AC: 01002021 addu $a0, $t0, $zero */ cpu->gpr[4] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC0B4A8) goto label_BFC0B534; @@ -40123,7 +41427,7 @@ label_BFC0B4E0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0B4F4: 1441000F bne $v0, $at, 0xBFC0B534 */ uint32_t psx_brA_BFC0B4F4 = cpu->gpr[2]; uint32_t psx_brB_BFC0B4F4 = cpu->gpr[1]; - int psx_taken_BFC0B4F4 = (psx_brA_BFC0B4F4 != psx_brB_BFC0B4F4); + psx_taken_BFC0B4F4 = (psx_brA_BFC0B4F4 != psx_brB_BFC0B4F4); /* 0xBFC0B4F8: 01002021 addu $a0, $t0, $zero */ cpu->gpr[4] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC0B4F4) goto label_BFC0B534; @@ -40156,7 +41460,7 @@ label_BFC0B4FC: cpu->gpr[1] = 0xA0010000u; /* 0xBFC0B528: 10000004 beq $zero, $zero, 0xBFC0B53C */ uint32_t psx_brA_BFC0B528 = cpu->gpr[0]; uint32_t psx_brB_BFC0B528 = cpu->gpr[0]; - int psx_taken_BFC0B528 = (psx_brA_BFC0B528 == psx_brB_BFC0B528); + psx_taken_BFC0B528 = (psx_brA_BFC0B528 == psx_brB_BFC0B528); /* 0xBFC0B52C: AC20B9E0 sw $zero, -17952($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-17952)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B52Cu); return; } g_debug_last_store_pc = 0xBFC0B52Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC0B528) goto label_BFC0B53C; @@ -40203,6 +41507,8 @@ void func_1FC0B54C(CPUState* cpu) { default: break; } } + int psx_taken_BFC0B55C = 0; + int psx_taken_BFC0B580 = 0; label_BFC0B54C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -40224,7 +41530,7 @@ label_BFC0B55C: psx_check_interrupts(cpu); /* 0xBFC0B55C: 04410002 bgez $v0, 0xBFC0B568 */ uint32_t psx_brA_BFC0B55C = cpu->gpr[2]; - int psx_taken_BFC0B55C = ((int32_t)psx_brA_BFC0B55C >= 0); + psx_taken_BFC0B55C = ((int32_t)psx_brA_BFC0B55C >= 0); /* 0xBFC0B560: 00400821 addu $at, $v0, $zero */ cpu->gpr[1] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0B55C) goto label_BFC0B568; @@ -40254,7 +41560,7 @@ label_BFC0B568: cpu->gpr[4] = cpu->gpr[3] + cpu->gpr[0]; /* 0xBFC0B580: 11E00004 beq $t7, $zero, 0xBFC0B594 */ uint32_t psx_brA_BFC0B580 = cpu->gpr[15]; uint32_t psx_brB_BFC0B580 = cpu->gpr[0]; - int psx_taken_BFC0B580 = (psx_brA_BFC0B580 == psx_brB_BFC0B580); + psx_taken_BFC0B580 = (psx_brA_BFC0B580 == psx_brB_BFC0B580); /* 0xBFC0B584: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B584u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0B580) goto label_BFC0B594; @@ -40299,6 +41605,8 @@ void func_1FC0B5A0(CPUState* cpu) { default: break; } } + int psx_taken_BFC0B5B0 = 0; + int psx_taken_BFC0B5D4 = 0; label_BFC0B5A0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -40320,7 +41628,7 @@ label_BFC0B5B0: psx_check_interrupts(cpu); /* 0xBFC0B5B0: 04410002 bgez $v0, 0xBFC0B5BC */ uint32_t psx_brA_BFC0B5B0 = cpu->gpr[2]; - int psx_taken_BFC0B5B0 = ((int32_t)psx_brA_BFC0B5B0 >= 0); + psx_taken_BFC0B5B0 = ((int32_t)psx_brA_BFC0B5B0 >= 0); /* 0xBFC0B5B4: 00400821 addu $at, $v0, $zero */ cpu->gpr[1] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0B5B0) goto label_BFC0B5BC; @@ -40350,7 +41658,7 @@ label_BFC0B5BC: cpu->gpr[4] = cpu->gpr[3] + cpu->gpr[0]; /* 0xBFC0B5D4: 11E00004 beq $t7, $zero, 0xBFC0B5E8 */ uint32_t psx_brA_BFC0B5D4 = cpu->gpr[15]; uint32_t psx_brB_BFC0B5D4 = cpu->gpr[0]; - int psx_taken_BFC0B5D4 = (psx_brA_BFC0B5D4 == psx_brB_BFC0B5D4); + psx_taken_BFC0B5D4 = (psx_brA_BFC0B5D4 == psx_brB_BFC0B5D4); /* 0xBFC0B5D8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B5D8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0B5D4) goto label_BFC0B5E8; @@ -40395,6 +41703,8 @@ void func_1FC0B5F4(CPUState* cpu) { default: break; } } + int psx_taken_BFC0B604 = 0; + int psx_taken_BFC0B628 = 0; label_BFC0B5F4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -40416,7 +41726,7 @@ label_BFC0B604: psx_check_interrupts(cpu); /* 0xBFC0B604: 04410002 bgez $v0, 0xBFC0B610 */ uint32_t psx_brA_BFC0B604 = cpu->gpr[2]; - int psx_taken_BFC0B604 = ((int32_t)psx_brA_BFC0B604 >= 0); + psx_taken_BFC0B604 = ((int32_t)psx_brA_BFC0B604 >= 0); /* 0xBFC0B608: 00400821 addu $at, $v0, $zero */ cpu->gpr[1] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0B604) goto label_BFC0B610; @@ -40446,7 +41756,7 @@ label_BFC0B610: cpu->gpr[4] = cpu->gpr[3] + cpu->gpr[0]; /* 0xBFC0B628: 11E00004 beq $t7, $zero, 0xBFC0B63C */ uint32_t psx_brA_BFC0B628 = cpu->gpr[15]; uint32_t psx_brB_BFC0B628 = cpu->gpr[0]; - int psx_taken_BFC0B628 = (psx_brA_BFC0B628 == psx_brB_BFC0B628); + psx_taken_BFC0B628 = (psx_brA_BFC0B628 == psx_brB_BFC0B628); /* 0xBFC0B62C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B62Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0B628) goto label_BFC0B63C; @@ -40508,6 +41818,23 @@ void func_1FC0B648(CPUState* cpu) { default: break; } } + int psx_taken_BFC0B664 = 0; + int psx_taken_BFC0B684 = 0; + int psx_taken_BFC0B698 = 0; + int psx_taken_BFC0B6D8 = 0; + int psx_taken_BFC0B70C = 0; + int psx_taken_BFC0B7A4 = 0; + int psx_taken_BFC0B7C4 = 0; + int psx_taken_BFC0B7EC = 0; + int psx_taken_BFC0B810 = 0; + int psx_taken_BFC0B82C = 0; + int psx_taken_BFC0B85C = 0; + int psx_taken_BFC0B8F4 = 0; + int psx_taken_BFC0B924 = 0; + int psx_taken_BFC0B94C = 0; + int psx_taken_BFC0BA08 = 0; + int psx_taken_BFC0BA30 = 0; + int psx_taken_BFC0BA3C = 0; label_BFC0B648: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -40535,7 +41862,7 @@ label_BFC0B658: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (164)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B660u); return; } g_debug_last_store_pc = 0xBFC0B660u; cpu->write_word(psx_addr, cpu->gpr[2]); } /* 0xBFC0B664: 04410002 bgez $v0, 0xBFC0B670 */ uint32_t psx_brA_BFC0B664 = cpu->gpr[2]; - int psx_taken_BFC0B664 = ((int32_t)psx_brA_BFC0B664 >= 0); + psx_taken_BFC0B664 = ((int32_t)psx_brA_BFC0B664 >= 0); /* 0xBFC0B668: 00400821 addu $at, $v0, $zero */ cpu->gpr[1] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0B664) goto label_BFC0B670; @@ -40563,7 +41890,7 @@ label_BFC0B670: /* nop */ /* 0xBFC0B684: 10800256 beq $a0, $zero, 0xBFC0BFE0 */ uint32_t psx_brA_BFC0B684 = cpu->gpr[4]; uint32_t psx_brB_BFC0B684 = cpu->gpr[0]; - int psx_taken_BFC0B684 = (psx_brA_BFC0B684 == psx_brB_BFC0B684); + psx_taken_BFC0B684 = (psx_brA_BFC0B684 == psx_brB_BFC0B684); /* 0xBFC0B688: 00C08821 addu $s1, $a2, $zero */ cpu->gpr[17] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC0B684) { cpu->pc = 0xBFC0BFE0u; return; } @@ -40580,7 +41907,7 @@ label_BFC0B68C: cpu->gpr[1] = (uint32_t)(cpu->gpr[15] < 0x00000008u ? 1 : 0); /* 0xBFC0B698: 10200247 beq $at, $zero, 0xBFC0BFB8 */ uint32_t psx_brA_BFC0B698 = cpu->gpr[1]; uint32_t psx_brB_BFC0B698 = cpu->gpr[0]; - int psx_taken_BFC0B698 = (psx_brA_BFC0B698 == psx_brB_BFC0B698); + psx_taken_BFC0B698 = (psx_brA_BFC0B698 == psx_brB_BFC0B698); /* 0xBFC0B69C: 00000000 nop */ /* nop */ if (psx_taken_BFC0B698) { cpu->pc = 0xBFC0BFB8u; return; } @@ -40632,7 +41959,7 @@ label_BFC0B6BC: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (-1)); /* 0xBFC0B6D8: 1460000E bne $v1, $zero, 0xBFC0B714 */ uint32_t psx_brA_BFC0B6D8 = cpu->gpr[3]; uint32_t psx_brB_BFC0B6D8 = cpu->gpr[0]; - int psx_taken_BFC0B6D8 = (psx_brA_BFC0B6D8 != psx_brB_BFC0B6D8); + psx_taken_BFC0B6D8 = (psx_brA_BFC0B6D8 != psx_brB_BFC0B6D8); /* 0xBFC0B6DC: AC430000 sw $v1, 0($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B6DCu); return; } g_debug_last_store_pc = 0xBFC0B6DCu; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC0B6D8) goto label_BFC0B714; @@ -40677,7 +42004,7 @@ label_BFC0B70C: psx_check_interrupts(cpu); /* 0xBFC0B70C: 10000235 beq $zero, $zero, 0xBFC0BFE4 */ uint32_t psx_brA_BFC0B70C = cpu->gpr[0]; uint32_t psx_brB_BFC0B70C = cpu->gpr[0]; - int psx_taken_BFC0B70C = (psx_brA_BFC0B70C == psx_brB_BFC0B70C); + psx_taken_BFC0B70C = (psx_brA_BFC0B70C == psx_brB_BFC0B70C); /* 0xBFC0B710: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B710u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0B70C) { cpu->pc = 0xBFC0BFE4u; return; } @@ -40772,7 +42099,7 @@ label_BFC0B79C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B7A0u); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } /* 0xBFC0B7A4: 14430002 bne $v0, $v1, 0xBFC0B7B0 */ uint32_t psx_brA_BFC0B7A4 = cpu->gpr[2]; uint32_t psx_brB_BFC0B7A4 = cpu->gpr[3]; - int psx_taken_BFC0B7A4 = (psx_brA_BFC0B7A4 != psx_brB_BFC0B7A4); + psx_taken_BFC0B7A4 = (psx_brA_BFC0B7A4 != psx_brB_BFC0B7A4); /* 0xBFC0B7A8: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0B7A4) goto label_BFC0B7B0; @@ -40806,7 +42133,7 @@ label_BFC0B7C0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0B7C4: 10410008 beq $v0, $at, 0xBFC0B7E8 */ uint32_t psx_brA_BFC0B7C4 = cpu->gpr[2]; uint32_t psx_brB_BFC0B7C4 = cpu->gpr[1]; - int psx_taken_BFC0B7C4 = (psx_brA_BFC0B7C4 == psx_brB_BFC0B7C4); + psx_taken_BFC0B7C4 = (psx_brA_BFC0B7C4 == psx_brB_BFC0B7C4); /* 0xBFC0B7C8: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC0B7C4) goto label_BFC0B7E8; @@ -40839,7 +42166,7 @@ label_BFC0B7E8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B7E8u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC0B7EC: 100001FD beq $zero, $zero, 0xBFC0BFE4 */ uint32_t psx_brA_BFC0B7EC = cpu->gpr[0]; uint32_t psx_brB_BFC0B7EC = cpu->gpr[0]; - int psx_taken_BFC0B7EC = (psx_brA_BFC0B7EC == psx_brB_BFC0B7EC); + psx_taken_BFC0B7EC = (psx_brA_BFC0B7EC == psx_brB_BFC0B7EC); /* 0xBFC0B7F0: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B7F0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0B7EC) { cpu->pc = 0xBFC0BFE4u; return; } @@ -40864,7 +42191,7 @@ label_BFC0B7F4: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (-1)); /* 0xBFC0B810: 14600014 bne $v1, $zero, 0xBFC0B864 */ uint32_t psx_brA_BFC0B810 = cpu->gpr[3]; uint32_t psx_brB_BFC0B810 = cpu->gpr[0]; - int psx_taken_BFC0B810 = (psx_brA_BFC0B810 != psx_brB_BFC0B810); + psx_taken_BFC0B810 = (psx_brA_BFC0B810 != psx_brB_BFC0B810); /* 0xBFC0B814: AC430000 sw $v1, 0($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B814u); return; } g_debug_last_store_pc = 0xBFC0B814u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC0B810) goto label_BFC0B864; @@ -40891,7 +42218,7 @@ label_BFC0B828: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0B82C: 10410008 beq $v0, $at, 0xBFC0B850 */ uint32_t psx_brA_BFC0B82C = cpu->gpr[2]; uint32_t psx_brB_BFC0B82C = cpu->gpr[1]; - int psx_taken_BFC0B82C = (psx_brA_BFC0B82C == psx_brB_BFC0B82C); + psx_taken_BFC0B82C = (psx_brA_BFC0B82C == psx_brB_BFC0B82C); /* 0xBFC0B830: 00117080 sll $t6, $s1, 2 */ cpu->gpr[14] = cpu->gpr[17] << 2u; if (psx_taken_BFC0B82C) goto label_BFC0B850; @@ -40933,7 +42260,7 @@ label_BFC0B850: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (7)); /* 0xBFC0B85C: 100001E0 beq $zero, $zero, 0xBFC0BFE0 */ uint32_t psx_brA_BFC0B85C = cpu->gpr[0]; uint32_t psx_brB_BFC0B85C = cpu->gpr[0]; - int psx_taken_BFC0B85C = (psx_brA_BFC0B85C == psx_brB_BFC0B85C); + psx_taken_BFC0B85C = (psx_brA_BFC0B85C == psx_brB_BFC0B85C); /* 0xBFC0B860: AC2D9F20 sw $t5, -24800($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24800)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B860u); return; } g_debug_last_store_pc = 0xBFC0B860u; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC0B85C) { cpu->pc = 0xBFC0BFE0u; return; } @@ -41028,7 +42355,7 @@ label_BFC0B8EC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B8F0u); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } /* 0xBFC0B8F4: 14430002 bne $v0, $v1, 0xBFC0B900 */ uint32_t psx_brA_BFC0B8F4 = cpu->gpr[2]; uint32_t psx_brB_BFC0B8F4 = cpu->gpr[3]; - int psx_taken_BFC0B8F4 = (psx_brA_BFC0B8F4 != psx_brB_BFC0B8F4); + psx_taken_BFC0B8F4 = (psx_brA_BFC0B8F4 != psx_brB_BFC0B8F4); /* 0xBFC0B8F8: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0B8F4) goto label_BFC0B900; @@ -41070,7 +42397,7 @@ label_BFC0B920: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0B924: 10410008 beq $v0, $at, 0xBFC0B948 */ uint32_t psx_brA_BFC0B924 = cpu->gpr[2]; uint32_t psx_brB_BFC0B924 = cpu->gpr[1]; - int psx_taken_BFC0B924 = (psx_brA_BFC0B924 == psx_brB_BFC0B924); + psx_taken_BFC0B924 = (psx_brA_BFC0B924 == psx_brB_BFC0B924); /* 0xBFC0B928: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC0B924) goto label_BFC0B948; @@ -41103,7 +42430,7 @@ label_BFC0B948: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B948u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC0B94C: 100001A5 beq $zero, $zero, 0xBFC0BFE4 */ uint32_t psx_brA_BFC0B94C = cpu->gpr[0]; uint32_t psx_brB_BFC0B94C = cpu->gpr[0]; - int psx_taken_BFC0B94C = (psx_brA_BFC0B94C == psx_brB_BFC0B94C); + psx_taken_BFC0B94C = (psx_brA_BFC0B94C == psx_brB_BFC0B94C); /* 0xBFC0B950: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0B950u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0B94C) { cpu->pc = 0xBFC0BFE4u; return; } @@ -41228,7 +42555,7 @@ label_BFC0BA04: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0BA08: 10410008 beq $v0, $at, 0xBFC0BA2C */ uint32_t psx_brA_BFC0BA08 = cpu->gpr[2]; uint32_t psx_brB_BFC0BA08 = cpu->gpr[1]; - int psx_taken_BFC0BA08 = (psx_brA_BFC0BA08 == psx_brB_BFC0BA08); + psx_taken_BFC0BA08 = (psx_brA_BFC0BA08 == psx_brB_BFC0BA08); /* 0xBFC0BA0C: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC0BA08) goto label_BFC0BA2C; @@ -41261,7 +42588,7 @@ label_BFC0BA2C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BA2Cu); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC0BA30: 1000016C beq $zero, $zero, 0xBFC0BFE4 */ uint32_t psx_brA_BFC0BA30 = cpu->gpr[0]; uint32_t psx_brB_BFC0BA30 = cpu->gpr[0]; - int psx_taken_BFC0BA30 = (psx_brA_BFC0BA30 == psx_brB_BFC0BA30); + psx_taken_BFC0BA30 = (psx_brA_BFC0BA30 == psx_brB_BFC0BA30); /* 0xBFC0BA34: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BA34u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0BA30) { cpu->pc = 0xBFC0BFE4u; return; } @@ -41274,7 +42601,7 @@ label_BFC0BA38: cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC0BA3C: 1000FF6D beq $zero, $zero, 0xBFC0B7F4 */ uint32_t psx_brA_BFC0BA3C = cpu->gpr[0]; uint32_t psx_brB_BFC0BA3C = cpu->gpr[0]; - int psx_taken_BFC0BA3C = (psx_brA_BFC0BA3C == psx_brB_BFC0BA3C); + psx_taken_BFC0BA3C = (psx_brA_BFC0BA3C == psx_brB_BFC0BA3C); /* 0xBFC0BA40: ACAF0000 sw $t7, 0($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BA40u); return; } g_debug_last_store_pc = 0xBFC0BA40u; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC0BA3C) goto label_BFC0B7F4; @@ -41358,6 +42685,43 @@ void func_1FC0BA8C(CPUState* cpu) { default: break; } } + int psx_taken_BFC0BA98 = 0; + int psx_taken_BFC0BAB4 = 0; + int psx_taken_BFC0BABC = 0; + int psx_taken_BFC0BAC4 = 0; + int psx_taken_BFC0BACC = 0; + int psx_taken_BFC0BAEC = 0; + int psx_taken_BFC0BAFC = 0; + int psx_taken_BFC0BB20 = 0; + int psx_taken_BFC0BB78 = 0; + int psx_taken_BFC0BBA0 = 0; + int psx_taken_BFC0BBC4 = 0; + int psx_taken_BFC0BBF4 = 0; + int psx_taken_BFC0BC14 = 0; + int psx_taken_BFC0BC84 = 0; + int psx_taken_BFC0BCA4 = 0; + int psx_taken_BFC0BCC8 = 0; + int psx_taken_BFC0BD24 = 0; + int psx_taken_BFC0BD3C = 0; + int psx_taken_BFC0BD6C = 0; + int psx_taken_BFC0BD8C = 0; + int psx_taken_BFC0BDB0 = 0; + int psx_taken_BFC0BDC4 = 0; + int psx_taken_BFC0BDCC = 0; + int psx_taken_BFC0BDFC = 0; + int psx_taken_BFC0BE04 = 0; + int psx_taken_BFC0BE14 = 0; + int psx_taken_BFC0BE30 = 0; + int psx_taken_BFC0BE48 = 0; + int psx_taken_BFC0BE88 = 0; + int psx_taken_BFC0BEA4 = 0; + int psx_taken_BFC0BED4 = 0; + int psx_taken_BFC0BEF4 = 0; + int psx_taken_BFC0BF58 = 0; + int psx_taken_BFC0BF78 = 0; + int psx_taken_BFC0BF9C = 0; + int psx_taken_BFC0BFB0 = 0; + int psx_taken_BFC0BFD8 = 0; label_BFC0BA8C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -41377,7 +42741,7 @@ label_BFC0BA98: psx_check_interrupts(cpu); /* 0xBFC0BA98: 10000152 beq $zero, $zero, 0xBFC0BFE4 */ uint32_t psx_brA_BFC0BA98 = cpu->gpr[0]; uint32_t psx_brB_BFC0BA98 = cpu->gpr[0]; - int psx_taken_BFC0BA98 = (psx_brA_BFC0BA98 == psx_brB_BFC0BA98); + psx_taken_BFC0BA98 = (psx_brA_BFC0BA98 == psx_brB_BFC0BA98); /* 0xBFC0BA9C: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BA9Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0BA98) goto label_BFC0BFE4; @@ -41398,7 +42762,7 @@ label_BFC0BAA0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0BAB4: 10610007 beq $v1, $at, 0xBFC0BAD4 */ uint32_t psx_brA_BFC0BAB4 = cpu->gpr[3]; uint32_t psx_brB_BFC0BAB4 = cpu->gpr[1]; - int psx_taken_BFC0BAB4 = (psx_brA_BFC0BAB4 == psx_brB_BFC0BAB4); + psx_taken_BFC0BAB4 = (psx_brA_BFC0BAB4 == psx_brB_BFC0BAB4); /* 0xBFC0BAB8: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC0BAB4) goto label_BFC0BAD4; @@ -41409,7 +42773,7 @@ label_BFC0BABC: psx_check_interrupts(cpu); /* 0xBFC0BABC: 1061004F beq $v1, $at, 0xBFC0BBFC */ uint32_t psx_brA_BFC0BABC = cpu->gpr[3]; uint32_t psx_brB_BFC0BABC = cpu->gpr[1]; - int psx_taken_BFC0BABC = (psx_brA_BFC0BABC == psx_brB_BFC0BABC); + psx_taken_BFC0BABC = (psx_brA_BFC0BABC == psx_brB_BFC0BABC); /* 0xBFC0BAC0: 24010003 addiu $at, $zero, 3 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); if (psx_taken_BFC0BABC) goto label_BFC0BBFC; @@ -41420,7 +42784,7 @@ label_BFC0BAC4: psx_check_interrupts(cpu); /* 0xBFC0BAC4: 10610105 beq $v1, $at, 0xBFC0BEDC */ uint32_t psx_brA_BFC0BAC4 = cpu->gpr[3]; uint32_t psx_brB_BFC0BAC4 = cpu->gpr[1]; - int psx_taken_BFC0BAC4 = (psx_brA_BFC0BAC4 == psx_brB_BFC0BAC4); + psx_taken_BFC0BAC4 = (psx_brA_BFC0BAC4 == psx_brB_BFC0BAC4); /* 0xBFC0BAC8: 00000000 nop */ /* nop */ if (psx_taken_BFC0BAC4) goto label_BFC0BEDC; @@ -41431,7 +42795,7 @@ label_BFC0BACC: psx_check_interrupts(cpu); /* 0xBFC0BACC: 1000013A beq $zero, $zero, 0xBFC0BFB8 */ uint32_t psx_brA_BFC0BACC = cpu->gpr[0]; uint32_t psx_brB_BFC0BACC = cpu->gpr[0]; - int psx_taken_BFC0BACC = (psx_brA_BFC0BACC == psx_brB_BFC0BACC); + psx_taken_BFC0BACC = (psx_brA_BFC0BACC == psx_brB_BFC0BACC); /* 0xBFC0BAD0: 00000000 nop */ /* nop */ if (psx_taken_BFC0BACC) goto label_BFC0BFB8; @@ -41454,7 +42818,7 @@ label_BFC0BAD4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (77)); /* 0xBFC0BAEC: 17010004 bne $t8, $at, 0xBFC0BB00 */ uint32_t psx_brA_BFC0BAEC = cpu->gpr[24]; uint32_t psx_brB_BFC0BAEC = cpu->gpr[1]; - int psx_taken_BFC0BAEC = (psx_brA_BFC0BAEC != psx_brB_BFC0BAEC); + psx_taken_BFC0BAEC = (psx_brA_BFC0BAEC != psx_brB_BFC0BAEC); /* 0xBFC0BAF0: 00000000 nop */ /* nop */ if (psx_taken_BFC0BAEC) goto label_BFC0BB00; @@ -41469,7 +42833,7 @@ label_BFC0BAF4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (67)); /* 0xBFC0BAFC: 11A1000A beq $t5, $at, 0xBFC0BB28 */ uint32_t psx_brA_BFC0BAFC = cpu->gpr[13]; uint32_t psx_brB_BFC0BAFC = cpu->gpr[1]; - int psx_taken_BFC0BAFC = (psx_brA_BFC0BAFC == psx_brB_BFC0BAFC); + psx_taken_BFC0BAFC = (psx_brA_BFC0BAFC == psx_brB_BFC0BAFC); label_BFC0BB00: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -41505,7 +42869,7 @@ label_BFC0BB20: psx_check_interrupts(cpu); /* 0xBFC0BB20: 10000130 beq $zero, $zero, 0xBFC0BFE4 */ uint32_t psx_brA_BFC0BB20 = cpu->gpr[0]; uint32_t psx_brB_BFC0BB20 = cpu->gpr[0]; - int psx_taken_BFC0BB20 = (psx_brA_BFC0BB20 == psx_brB_BFC0BB20); + psx_taken_BFC0BB20 = (psx_brA_BFC0BB20 == psx_brB_BFC0BB20); /* 0xBFC0BB24: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BB24u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0BB20) goto label_BFC0BFE4; @@ -41567,7 +42931,7 @@ label_BFC0BB58: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BB74u); return; } g_debug_last_store_pc = 0xBFC0BB74u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC0BB78: 1601FFF3 bne $s0, $at, 0xBFC0BB48 */ uint32_t psx_brA_BFC0BB78 = cpu->gpr[16]; uint32_t psx_brB_BFC0BB78 = cpu->gpr[1]; - int psx_taken_BFC0BB78 = (psx_brA_BFC0BB78 != psx_brB_BFC0BB78); + psx_taken_BFC0BB78 = (psx_brA_BFC0BB78 != psx_brB_BFC0BB78); /* 0xBFC0BB7C: 24C60020 addiu $a2, $a2, 32 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (32)); if (psx_taken_BFC0BB78) goto label_BFC0BB48; @@ -41600,7 +42964,7 @@ label_BFC0BB9C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0BBA0: 1041000A beq $v0, $at, 0xBFC0BBCC */ uint32_t psx_brA_BFC0BBA0 = cpu->gpr[2]; uint32_t psx_brB_BFC0BBA0 = cpu->gpr[1]; - int psx_taken_BFC0BBA0 = (psx_brA_BFC0BBA0 == psx_brB_BFC0BBA0); + psx_taken_BFC0BBA0 = (psx_brA_BFC0BBA0 == psx_brB_BFC0BBA0); /* 0xBFC0BBA4: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC0BBA0) goto label_BFC0BBCC; @@ -41631,7 +42995,7 @@ label_BFC0BBC4: psx_check_interrupts(cpu); /* 0xBFC0BBC4: 1000000B beq $zero, $zero, 0xBFC0BBF4 */ uint32_t psx_brA_BFC0BBC4 = cpu->gpr[0]; uint32_t psx_brB_BFC0BBC4 = cpu->gpr[0]; - int psx_taken_BFC0BBC4 = (psx_brA_BFC0BBC4 == psx_brB_BFC0BBC4); + psx_taken_BFC0BBC4 = (psx_brA_BFC0BBC4 == psx_brB_BFC0BBC4); /* 0xBFC0BBC8: 8FB00038 lw $s0, 56($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BBC8u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC0BBC4) goto label_BFC0BBF4; @@ -41667,7 +43031,7 @@ label_BFC0BBF4: psx_check_interrupts(cpu); /* 0xBFC0BBF4: 100000FB beq $zero, $zero, 0xBFC0BFE4 */ uint32_t psx_brA_BFC0BBF4 = cpu->gpr[0]; uint32_t psx_brB_BFC0BBF4 = cpu->gpr[0]; - int psx_taken_BFC0BBF4 = (psx_brA_BFC0BBF4 == psx_brB_BFC0BBF4); + psx_taken_BFC0BBF4 = (psx_brA_BFC0BBF4 == psx_brB_BFC0BBF4); /* 0xBFC0BBF8: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BBF8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0BBF4) goto label_BFC0BFE4; @@ -41696,7 +43060,7 @@ label_BFC0BC14: psx_check_interrupts(cpu); /* 0xBFC0BC14: 10400013 beq $v0, $zero, 0xBFC0BC64 */ uint32_t psx_brA_BFC0BC14 = cpu->gpr[2]; uint32_t psx_brB_BFC0BC14 = cpu->gpr[0]; - int psx_taken_BFC0BC14 = (psx_brA_BFC0BC14 == psx_brB_BFC0BC14); + psx_taken_BFC0BC14 = (psx_brA_BFC0BC14 == psx_brB_BFC0BC14); /* 0xBFC0BC18: 00000000 nop */ /* nop */ if (psx_taken_BFC0BC14) goto label_BFC0BC64; @@ -41770,7 +43134,7 @@ label_BFC0BC64: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (15) ? 1 : 0); /* 0xBFC0BC84: 10200012 beq $at, $zero, 0xBFC0BCD0 */ uint32_t psx_brA_BFC0BC84 = cpu->gpr[1]; uint32_t psx_brB_BFC0BC84 = cpu->gpr[0]; - int psx_taken_BFC0BC84 = (psx_brA_BFC0BC84 == psx_brB_BFC0BC84); + psx_taken_BFC0BC84 = (psx_brA_BFC0BC84 == psx_brB_BFC0BC84); /* 0xBFC0BC88: AC430000 sw $v1, 0($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BC88u); return; } g_debug_last_store_pc = 0xBFC0BC88u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC0BC84) goto label_BFC0BCD0; @@ -41799,7 +43163,7 @@ label_BFC0BCA0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0BCA4: 104100CE beq $v0, $at, 0xBFC0BFE0 */ uint32_t psx_brA_BFC0BCA4 = cpu->gpr[2]; uint32_t psx_brB_BFC0BCA4 = cpu->gpr[1]; - int psx_taken_BFC0BCA4 = (psx_brA_BFC0BCA4 == psx_brB_BFC0BCA4); + psx_taken_BFC0BCA4 = (psx_brA_BFC0BCA4 == psx_brB_BFC0BCA4); /* 0xBFC0BCA8: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC0BCA4) goto label_BFC0BFE0; @@ -41830,7 +43194,7 @@ label_BFC0BCC8: psx_check_interrupts(cpu); /* 0xBFC0BCC8: 100000C6 beq $zero, $zero, 0xBFC0BFE4 */ uint32_t psx_brA_BFC0BCC8 = cpu->gpr[0]; uint32_t psx_brB_BFC0BCC8 = cpu->gpr[0]; - int psx_taken_BFC0BCC8 = (psx_brA_BFC0BCC8 == psx_brB_BFC0BCC8); + psx_taken_BFC0BCC8 = (psx_brA_BFC0BCC8 == psx_brB_BFC0BCC8); /* 0xBFC0BCCC: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BCCCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0BCC8) goto label_BFC0BFE4; @@ -41894,7 +43258,7 @@ label_BFC0BD18: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0BD24: 14410004 bne $v0, $at, 0xBFC0BD38 */ uint32_t psx_brA_BFC0BD24 = cpu->gpr[2]; uint32_t psx_brB_BFC0BD24 = cpu->gpr[1]; - int psx_taken_BFC0BD24 = (psx_brA_BFC0BD24 != psx_brB_BFC0BD24); + psx_taken_BFC0BD24 = (psx_brA_BFC0BD24 != psx_brB_BFC0BD24); /* 0xBFC0BD28: 2409000F addiu $t1, $zero, 15 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (15)); if (psx_taken_BFC0BD24) goto label_BFC0BD38; @@ -41918,7 +43282,7 @@ label_BFC0BD38: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC0BD3C: 1609FFEF bne $s0, $t1, 0xBFC0BCFC */ uint32_t psx_brA_BFC0BD3C = cpu->gpr[16]; uint32_t psx_brB_BFC0BD3C = cpu->gpr[9]; - int psx_taken_BFC0BD3C = (psx_brA_BFC0BD3C != psx_brB_BFC0BD3C); + psx_taken_BFC0BD3C = (psx_brA_BFC0BD3C != psx_brB_BFC0BD3C); /* 0xBFC0BD40: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC0BD3C) goto label_BFC0BCFC; @@ -41954,7 +43318,7 @@ label_BFC0BD5C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-92)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BD68u); return; } g_debug_last_store_pc = 0xBFC0BD68u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC0BD6C: 1462FFFB bne $v1, $v0, 0xBFC0BD5C */ uint32_t psx_brA_BFC0BD6C = cpu->gpr[3]; uint32_t psx_brB_BFC0BD6C = cpu->gpr[2]; - int psx_taken_BFC0BD6C = (psx_brA_BFC0BD6C != psx_brB_BFC0BD6C); + psx_taken_BFC0BD6C = (psx_brA_BFC0BD6C != psx_brB_BFC0BD6C); /* 0xBFC0BD70: AC60FFA8 sw $zero, -88($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-88)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BD70u); return; } g_debug_last_store_pc = 0xBFC0BD70u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC0BD6C) goto label_BFC0BD5C; @@ -41982,7 +43346,7 @@ label_BFC0BD84: /* nop */ /* 0xBFC0BD8C: 1519001F bne $t0, $t9, 0xBFC0BE0C */ uint32_t psx_brA_BFC0BD8C = cpu->gpr[8]; uint32_t psx_brB_BFC0BD8C = cpu->gpr[25]; - int psx_taken_BFC0BD8C = (psx_brA_BFC0BD8C != psx_brB_BFC0BD8C); + psx_taken_BFC0BD8C = (psx_brA_BFC0BD8C != psx_brB_BFC0BD8C); /* 0xBFC0BD90: 00000000 nop */ /* nop */ if (psx_taken_BFC0BD8C) goto label_BFC0BE0C; @@ -42007,7 +43371,7 @@ label_BFC0BD94: /* nop */ /* 0xBFC0BDB0: 04810002 bgez $a0, 0xBFC0BDBC */ uint32_t psx_brA_BFC0BDB0 = cpu->gpr[4]; - int psx_taken_BFC0BDB0 = ((int32_t)psx_brA_BFC0BDB0 >= 0); + psx_taken_BFC0BDB0 = ((int32_t)psx_brA_BFC0BDB0 >= 0); /* 0xBFC0BDB4: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC0BDB0) goto label_BFC0BDBC; @@ -42029,7 +43393,7 @@ label_BFC0BDBC: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (-1)); /* 0xBFC0BDC4: 18800011 blez $a0, 0xBFC0BE0C */ uint32_t psx_brA_BFC0BDC4 = cpu->gpr[4]; - int psx_taken_BFC0BDC4 = ((int32_t)psx_brA_BFC0BDC4 <= 0); + psx_taken_BFC0BDC4 = ((int32_t)psx_brA_BFC0BDC4 <= 0); /* 0xBFC0BDC8: 00000000 nop */ /* nop */ if (psx_taken_BFC0BDC4) goto label_BFC0BE0C; @@ -42040,7 +43404,7 @@ label_BFC0BDCC: psx_check_interrupts(cpu); /* 0xBFC0BDCC: 1065000F beq $v1, $a1, 0xBFC0BE0C */ uint32_t psx_brA_BFC0BDCC = cpu->gpr[3]; uint32_t psx_brB_BFC0BDCC = cpu->gpr[5]; - int psx_taken_BFC0BDCC = (psx_brA_BFC0BDCC == psx_brB_BFC0BDCC); + psx_taken_BFC0BDCC = (psx_brA_BFC0BDCC == psx_brB_BFC0BDCC); /* 0xBFC0BDD0: 00000000 nop */ /* nop */ if (psx_taken_BFC0BDCC) goto label_BFC0BE0C; @@ -42076,7 +43440,7 @@ label_BFC0BDD8: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (-1)); /* 0xBFC0BDFC: 18800003 blez $a0, 0xBFC0BE0C */ uint32_t psx_brA_BFC0BDFC = cpu->gpr[4]; - int psx_taken_BFC0BDFC = ((int32_t)psx_brA_BFC0BDFC <= 0); + psx_taken_BFC0BDFC = ((int32_t)psx_brA_BFC0BDFC <= 0); /* 0xBFC0BE00: 00000000 nop */ /* nop */ if (psx_taken_BFC0BDFC) goto label_BFC0BE0C; @@ -42087,7 +43451,7 @@ label_BFC0BE04: psx_check_interrupts(cpu); /* 0xBFC0BE04: 1465FFF4 bne $v1, $a1, 0xBFC0BDD8 */ uint32_t psx_brA_BFC0BE04 = cpu->gpr[3]; uint32_t psx_brB_BFC0BE04 = cpu->gpr[5]; - int psx_taken_BFC0BE04 = (psx_brA_BFC0BE04 != psx_brB_BFC0BE04); + psx_taken_BFC0BE04 = (psx_brA_BFC0BE04 != psx_brB_BFC0BE04); /* 0xBFC0BE08: 00037080 sll $t6, $v1, 2 */ cpu->gpr[14] = cpu->gpr[3] << 2u; if (psx_taken_BFC0BE04) goto label_BFC0BDD8; @@ -42102,7 +43466,7 @@ label_BFC0BE0C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (15) ? 1 : 0); /* 0xBFC0BE14: 1420FFDB bne $at, $zero, 0xBFC0BD84 */ uint32_t psx_brA_BFC0BE14 = cpu->gpr[1]; uint32_t psx_brB_BFC0BE14 = cpu->gpr[0]; - int psx_taken_BFC0BE14 = (psx_brA_BFC0BE14 != psx_brB_BFC0BE14); + psx_taken_BFC0BE14 = (psx_brA_BFC0BE14 != psx_brB_BFC0BE14); /* 0xBFC0BE18: 24C60020 addiu $a2, $a2, 32 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (32)); if (psx_taken_BFC0BE14) goto label_BFC0BD84; @@ -42128,7 +43492,7 @@ label_BFC0BE28: /* nop */ /* 0xBFC0BE30: 15600004 bne $t3, $zero, 0xBFC0BE44 */ uint32_t psx_brA_BFC0BE30 = cpu->gpr[11]; uint32_t psx_brB_BFC0BE30 = cpu->gpr[0]; - int psx_taken_BFC0BE30 = (psx_brA_BFC0BE30 != psx_brB_BFC0BE30); + psx_taken_BFC0BE30 = (psx_brA_BFC0BE30 != psx_brB_BFC0BE30); /* 0xBFC0BE34: 00000000 nop */ /* nop */ if (psx_taken_BFC0BE30) goto label_BFC0BE44; @@ -42152,7 +43516,7 @@ label_BFC0BE44: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC0BE48: 1609FFF7 bne $s0, $t1, 0xBFC0BE28 */ uint32_t psx_brA_BFC0BE48 = cpu->gpr[16]; uint32_t psx_brB_BFC0BE48 = cpu->gpr[9]; - int psx_taken_BFC0BE48 = (psx_brA_BFC0BE48 != psx_brB_BFC0BE48); + psx_taken_BFC0BE48 = (psx_brA_BFC0BE48 != psx_brB_BFC0BE48); /* 0xBFC0BE4C: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC0BE48) goto label_BFC0BE28; @@ -42196,7 +43560,7 @@ label_BFC0BE74: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (12)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BE84u); return; } g_debug_last_store_pc = 0xBFC0BE84u; cpu->write_word(psx_addr, cpu->gpr[3]); } /* 0xBFC0BE88: 1604FFFA bne $s0, $a0, 0xBFC0BE74 */ uint32_t psx_brA_BFC0BE88 = cpu->gpr[16]; uint32_t psx_brB_BFC0BE88 = cpu->gpr[4]; - int psx_taken_BFC0BE88 = (psx_brA_BFC0BE88 != psx_brB_BFC0BE88); + psx_taken_BFC0BE88 = (psx_brA_BFC0BE88 != psx_brB_BFC0BE88); /* 0xBFC0BE8C: 24420010 addiu $v0, $v0, 16 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (16)); if (psx_taken_BFC0BE88) goto label_BFC0BE74; @@ -42223,7 +43587,7 @@ label_BFC0BEA0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0BEA4: 10410005 beq $v0, $at, 0xBFC0BEBC */ uint32_t psx_brA_BFC0BEA4 = cpu->gpr[2]; uint32_t psx_brB_BFC0BEA4 = cpu->gpr[1]; - int psx_taken_BFC0BEA4 = (psx_brA_BFC0BEA4 == psx_brB_BFC0BEA4); + psx_taken_BFC0BEA4 = (psx_brA_BFC0BEA4 == psx_brB_BFC0BEA4); /* 0xBFC0BEA8: 8FAD003C lw $t5, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BEA8u); return; } cpu->gpr[13] = cpu->read_word(psx_addr); } if (psx_taken_BFC0BEA4) goto label_BFC0BEBC; @@ -42265,7 +43629,7 @@ label_BFC0BEBC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BED0u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC0BED4: 10000042 beq $zero, $zero, 0xBFC0BFE0 */ uint32_t psx_brA_BFC0BED4 = cpu->gpr[0]; uint32_t psx_brB_BFC0BED4 = cpu->gpr[0]; - int psx_taken_BFC0BED4 = (psx_brA_BFC0BED4 == psx_brB_BFC0BED4); + psx_taken_BFC0BED4 = (psx_brA_BFC0BED4 == psx_brB_BFC0BED4); /* 0xBFC0BED8: AC399F28 sw $t9, -24792($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24792)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BED8u); return; } g_debug_last_store_pc = 0xBFC0BED8u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC0BED4) goto label_BFC0BFE0; @@ -42294,7 +43658,7 @@ label_BFC0BEF4: psx_check_interrupts(cpu); /* 0xBFC0BEF4: 10400010 beq $v0, $zero, 0xBFC0BF38 */ uint32_t psx_brA_BFC0BEF4 = cpu->gpr[2]; uint32_t psx_brB_BFC0BEF4 = cpu->gpr[0]; - int psx_taken_BFC0BEF4 = (psx_brA_BFC0BEF4 == psx_brB_BFC0BEF4); + psx_taken_BFC0BEF4 = (psx_brA_BFC0BEF4 == psx_brB_BFC0BEF4); /* 0xBFC0BEF8: 00000000 nop */ /* nop */ if (psx_taken_BFC0BEF4) goto label_BFC0BF38; @@ -42357,7 +43721,7 @@ label_BFC0BF38: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (20) ? 1 : 0); /* 0xBFC0BF58: 10200012 beq $at, $zero, 0xBFC0BFA4 */ uint32_t psx_brA_BFC0BF58 = cpu->gpr[1]; uint32_t psx_brB_BFC0BF58 = cpu->gpr[0]; - int psx_taken_BFC0BF58 = (psx_brA_BFC0BF58 == psx_brB_BFC0BF58); + psx_taken_BFC0BF58 = (psx_brA_BFC0BF58 == psx_brB_BFC0BF58); /* 0xBFC0BF5C: AC430000 sw $v1, 0($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BF5Cu); return; } g_debug_last_store_pc = 0xBFC0BF5Cu; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC0BF58) goto label_BFC0BFA4; @@ -42386,7 +43750,7 @@ label_BFC0BF74: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0BF78: 10410019 beq $v0, $at, 0xBFC0BFE0 */ uint32_t psx_brA_BFC0BF78 = cpu->gpr[2]; uint32_t psx_brB_BFC0BF78 = cpu->gpr[1]; - int psx_taken_BFC0BF78 = (psx_brA_BFC0BF78 == psx_brB_BFC0BF78); + psx_taken_BFC0BF78 = (psx_brA_BFC0BF78 == psx_brB_BFC0BF78); /* 0xBFC0BF7C: 3C01A001 lui $at, 0xA001 */ cpu->gpr[1] = 0xA0010000u; if (psx_taken_BFC0BF78) goto label_BFC0BFE0; @@ -42417,7 +43781,7 @@ label_BFC0BF9C: psx_check_interrupts(cpu); /* 0xBFC0BF9C: 10000011 beq $zero, $zero, 0xBFC0BFE4 */ uint32_t psx_brA_BFC0BF9C = cpu->gpr[0]; uint32_t psx_brB_BFC0BF9C = cpu->gpr[0]; - int psx_taken_BFC0BF9C = (psx_brA_BFC0BF9C == psx_brB_BFC0BF9C); + psx_taken_BFC0BF9C = (psx_brA_BFC0BF9C == psx_brB_BFC0BF9C); /* 0xBFC0BFA0: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BFA0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0BF9C) goto label_BFC0BFE4; @@ -42440,7 +43804,7 @@ label_BFC0BFB0: psx_check_interrupts(cpu); /* 0xBFC0BFB0: 1000000C beq $zero, $zero, 0xBFC0BFE4 */ uint32_t psx_brA_BFC0BFB0 = cpu->gpr[0]; uint32_t psx_brB_BFC0BFB0 = cpu->gpr[0]; - int psx_taken_BFC0BFB0 = (psx_brA_BFC0BFB0 == psx_brB_BFC0BFB0); + psx_taken_BFC0BFB0 = (psx_brA_BFC0BFB0 == psx_brB_BFC0BFB0); /* 0xBFC0BFB4: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BFB4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0BFB0) goto label_BFC0BFE4; @@ -42473,7 +43837,7 @@ label_BFC0BFD8: psx_check_interrupts(cpu); /* 0xBFC0BFD8: 10000002 beq $zero, $zero, 0xBFC0BFE4 */ uint32_t psx_brA_BFC0BFD8 = cpu->gpr[0]; uint32_t psx_brB_BFC0BFD8 = cpu->gpr[0]; - int psx_taken_BFC0BFD8 = (psx_brA_BFC0BFD8 == psx_brB_BFC0BFD8); + psx_taken_BFC0BFD8 = (psx_brA_BFC0BFD8 == psx_brB_BFC0BFD8); /* 0xBFC0BFDC: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0BFDCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0BFD8) goto label_BFC0BFE4; @@ -42575,6 +43939,9 @@ void func_1FC0C048(CPUState* cpu) { default: break; } } + int psx_taken_BFC0C068 = 0; + int psx_taken_BFC0C0B0 = 0; + int psx_taken_BFC0C0C0 = 0; label_BFC0C048: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -42598,7 +43965,7 @@ label_BFC0C048: /* nop */ /* 0xBFC0C068: 04410002 bgez $v0, 0xBFC0C074 */ uint32_t psx_brA_BFC0C068 = cpu->gpr[2]; - int psx_taken_BFC0C068 = ((int32_t)psx_brA_BFC0C068 >= 0); + psx_taken_BFC0C068 = ((int32_t)psx_brA_BFC0C068 >= 0); /* 0xBFC0C06C: 00400821 addu $at, $v0, $zero */ cpu->gpr[1] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0C068) goto label_BFC0C074; @@ -42658,7 +44025,7 @@ label_BFC0C0B0: psx_check_interrupts(cpu); /* 0xBFC0C0B0: 14400006 bne $v0, $zero, 0xBFC0C0CC */ uint32_t psx_brA_BFC0C0B0 = cpu->gpr[2]; uint32_t psx_brB_BFC0C0B0 = cpu->gpr[0]; - int psx_taken_BFC0C0B0 = (psx_brA_BFC0C0B0 != psx_brB_BFC0C0B0); + psx_taken_BFC0C0B0 = (psx_brA_BFC0C0B0 != psx_brB_BFC0C0B0); /* 0xBFC0C0B4: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0C0B0) goto label_BFC0C0CC; @@ -42673,7 +44040,7 @@ label_BFC0C0B8: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC0C0C0: 10000002 beq $zero, $zero, 0xBFC0C0CC */ uint32_t psx_brA_BFC0C0C0 = cpu->gpr[0]; uint32_t psx_brB_BFC0C0C0 = cpu->gpr[0]; - int psx_taken_BFC0C0C0 = (psx_brA_BFC0C0C0 == psx_brB_BFC0C0C0); + psx_taken_BFC0C0C0 = (psx_brA_BFC0C0C0 == psx_brB_BFC0C0C0); /* 0xBFC0C0C4: AD200000 sw $zero, 0($t1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0C0C4u); return; } g_debug_last_store_pc = 0xBFC0C0C4u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC0C0C0) goto label_BFC0C0CC; @@ -42709,6 +44076,9 @@ void func_1FC0C0DC(CPUState* cpu) { default: break; } } + int psx_taken_BFC0C0F0 = 0; + int psx_taken_BFC0C118 = 0; + int psx_taken_BFC0C124 = 0; label_BFC0C0DC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -42726,7 +44096,7 @@ label_BFC0C0DC: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0C0F0: 04810002 bgez $a0, 0xBFC0C0FC */ uint32_t psx_brA_BFC0C0F0 = cpu->gpr[4]; - int psx_taken_BFC0C0F0 = ((int32_t)psx_brA_BFC0C0F0 >= 0); + psx_taken_BFC0C0F0 = ((int32_t)psx_brA_BFC0C0F0 >= 0); /* 0xBFC0C0F4: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC0C0F0) goto label_BFC0C0FC; @@ -42764,7 +44134,7 @@ label_BFC0C114: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0C114u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC0C118: 14400005 bne $v0, $zero, 0xBFC0C130 */ uint32_t psx_brA_BFC0C118 = cpu->gpr[2]; uint32_t psx_brB_BFC0C118 = cpu->gpr[0]; - int psx_taken_BFC0C118 = (psx_brA_BFC0C118 != psx_brB_BFC0C118); + psx_taken_BFC0C118 = (psx_brA_BFC0C118 != psx_brB_BFC0C118); /* 0xBFC0C11C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0C118) goto label_BFC0C130; @@ -42777,7 +44147,7 @@ label_BFC0C120: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0C120u); return; } g_debug_last_store_pc = 0xBFC0C120u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC0C124: 10000002 beq $zero, $zero, 0xBFC0C130 */ uint32_t psx_brA_BFC0C124 = cpu->gpr[0]; uint32_t psx_brB_BFC0C124 = cpu->gpr[0]; - int psx_taken_BFC0C124 = (psx_brA_BFC0C124 == psx_brB_BFC0C124); + psx_taken_BFC0C124 = (psx_brA_BFC0C124 == psx_brB_BFC0C124); /* 0xBFC0C128: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0C124) goto label_BFC0C130; @@ -42813,6 +44183,9 @@ void func_1FC0C140(CPUState* cpu) { default: break; } } + int psx_taken_BFC0C160 = 0; + int psx_taken_BFC0C198 = 0; + int psx_taken_BFC0C1A4 = 0; label_BFC0C140: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -42836,7 +44209,7 @@ label_BFC0C140: cpu->gpr[5] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC0C160: 04810002 bgez $a0, 0xBFC0C16C */ uint32_t psx_brA_BFC0C160 = cpu->gpr[4]; - int psx_taken_BFC0C160 = ((int32_t)psx_brA_BFC0C160 >= 0); + psx_taken_BFC0C160 = ((int32_t)psx_brA_BFC0C160 >= 0); /* 0xBFC0C164: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC0C160) goto label_BFC0C16C; @@ -42882,7 +44255,7 @@ label_BFC0C190: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0C194u); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } /* 0xBFC0C198: 14400005 bne $v0, $zero, 0xBFC0C1B0 */ uint32_t psx_brA_BFC0C198 = cpu->gpr[2]; uint32_t psx_brB_BFC0C198 = cpu->gpr[0]; - int psx_taken_BFC0C198 = (psx_brA_BFC0C198 != psx_brB_BFC0C198); + psx_taken_BFC0C198 = (psx_brA_BFC0C198 != psx_brB_BFC0C198); /* 0xBFC0C19C: 24090004 addiu $t1, $zero, 4 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC0C198) goto label_BFC0C1B0; @@ -42895,7 +44268,7 @@ label_BFC0C1A0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[7] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0C1A0u); return; } g_debug_last_store_pc = 0xBFC0C1A0u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC0C1A4: 10000009 beq $zero, $zero, 0xBFC0C1CC */ uint32_t psx_brA_BFC0C1A4 = cpu->gpr[0]; uint32_t psx_brB_BFC0C1A4 = cpu->gpr[0]; - int psx_taken_BFC0C1A4 = (psx_brA_BFC0C1A4 == psx_brB_BFC0C1A4); + psx_taken_BFC0C1A4 = (psx_brA_BFC0C1A4 == psx_brB_BFC0C1A4); /* 0xBFC0C1A8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0C1A4) goto label_BFC0C1CC; @@ -43452,6 +44825,13 @@ void func_1FC0C580(CPUState* cpu) { default: break; } } + int psx_taken_BFC0C600 = 0; + int psx_taken_BFC0C630 = 0; + int psx_taken_BFC0C658 = 0; + int psx_taken_BFC0C694 = 0; + int psx_taken_BFC0C6B4 = 0; + int psx_taken_BFC0C6F0 = 0; + int psx_taken_BFC0C708 = 0; label_BFC0C580: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -43546,7 +44926,7 @@ label_BFC0C5F4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (10000) ? 1 : 0); /* 0xBFC0C600: 1020000D beq $at, $zero, 0xBFC0C638 */ uint32_t psx_brA_BFC0C600 = cpu->gpr[1]; uint32_t psx_brB_BFC0C600 = cpu->gpr[0]; - int psx_taken_BFC0C600 = (psx_brA_BFC0C600 == psx_brB_BFC0C600); + psx_taken_BFC0C600 = (psx_brA_BFC0C600 == psx_brB_BFC0C600); /* 0xBFC0C604: 00000000 nop */ /* nop */ if (psx_taken_BFC0C600) goto label_BFC0C638; @@ -43582,7 +44962,7 @@ label_BFC0C60C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (10000) ? 1 : 0); /* 0xBFC0C630: 1420FFF6 bne $at, $zero, 0xBFC0C60C */ uint32_t psx_brA_BFC0C630 = cpu->gpr[1]; uint32_t psx_brB_BFC0C630 = cpu->gpr[0]; - int psx_taken_BFC0C630 = (psx_brA_BFC0C630 != psx_brB_BFC0C630); + psx_taken_BFC0C630 = (psx_brA_BFC0C630 != psx_brB_BFC0C630); /* 0xBFC0C634: 8FAF0044 lw $t7, 68($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0C634u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC0C630) goto label_BFC0C60C; @@ -43621,7 +45001,7 @@ label_BFC0C648: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (10) ? 1 : 0); /* 0xBFC0C658: 10200010 beq $at, $zero, 0xBFC0C69C */ uint32_t psx_brA_BFC0C658 = cpu->gpr[1]; uint32_t psx_brB_BFC0C658 = cpu->gpr[0]; - int psx_taken_BFC0C658 = (psx_brA_BFC0C658 == psx_brB_BFC0C658); + psx_taken_BFC0C658 = (psx_brA_BFC0C658 == psx_brB_BFC0C658); /* 0xBFC0C65C: 00000000 nop */ /* nop */ if (psx_taken_BFC0C658) goto label_BFC0C69C; @@ -43669,7 +45049,7 @@ label_BFC0C678: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[13] < (10) ? 1 : 0); /* 0xBFC0C694: 1420FFF3 bne $at, $zero, 0xBFC0C664 */ uint32_t psx_brA_BFC0C694 = cpu->gpr[1]; uint32_t psx_brB_BFC0C694 = cpu->gpr[0]; - int psx_taken_BFC0C694 = (psx_brA_BFC0C694 != psx_brB_BFC0C694); + psx_taken_BFC0C694 = (psx_brA_BFC0C694 != psx_brB_BFC0C694); /* 0xBFC0C698: 8FAA0044 lw $t2, 68($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0C698u); return; } cpu->gpr[10] = cpu->read_word(psx_addr); } if (psx_taken_BFC0C694) goto label_BFC0C664; @@ -43698,7 +45078,7 @@ label_BFC0C6A4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (10) ? 1 : 0); /* 0xBFC0C6B4: 10200010 beq $at, $zero, 0xBFC0C6F8 */ uint32_t psx_brA_BFC0C6B4 = cpu->gpr[1]; uint32_t psx_brB_BFC0C6B4 = cpu->gpr[0]; - int psx_taken_BFC0C6B4 = (psx_brA_BFC0C6B4 == psx_brB_BFC0C6B4); + psx_taken_BFC0C6B4 = (psx_brA_BFC0C6B4 == psx_brB_BFC0C6B4); /* 0xBFC0C6B8: 00000000 nop */ /* nop */ if (psx_taken_BFC0C6B4) goto label_BFC0C6F8; @@ -43746,7 +45126,7 @@ label_BFC0C6D4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (10) ? 1 : 0); /* 0xBFC0C6F0: 1420FFF3 bne $at, $zero, 0xBFC0C6C0 */ uint32_t psx_brA_BFC0C6F0 = cpu->gpr[1]; uint32_t psx_brB_BFC0C6F0 = cpu->gpr[0]; - int psx_taken_BFC0C6F0 = (psx_brA_BFC0C6F0 != psx_brB_BFC0C6F0); + psx_taken_BFC0C6F0 = (psx_brA_BFC0C6F0 != psx_brB_BFC0C6F0); /* 0xBFC0C6F4: 8FAF0044 lw $t7, 68($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0C6F4u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC0C6F0) goto label_BFC0C6C0; @@ -43777,7 +45157,7 @@ label_BFC0C708: psx_check_interrupts(cpu); /* 0xBFC0C708: 1000FFBA beq $zero, $zero, 0xBFC0C5F4 */ uint32_t psx_brA_BFC0C708 = cpu->gpr[0]; uint32_t psx_brB_BFC0C708 = cpu->gpr[0]; - int psx_taken_BFC0C708 = (psx_brA_BFC0C708 == psx_brB_BFC0C708); + psx_taken_BFC0C708 = (psx_brA_BFC0C708 == psx_brB_BFC0C708); /* 0xBFC0C70C: AFA00044 sw $zero, 68($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0C70Cu); return; } g_debug_last_store_pc = 0xBFC0C70Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC0C708) goto label_BFC0C5F4; @@ -43813,6 +45193,10 @@ void func_1FC0C720(CPUState* cpu) { default: break; } } + int psx_taken_BFC0C750 = 0; + int psx_taken_BFC0C79C = 0; + int psx_taken_BFC0C7CC = 0; + int psx_taken_BFC0C80C = 0; label_BFC0C720: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -43856,7 +45240,7 @@ label_BFC0C750: psx_check_interrupts(cpu); /* 0xBFC0C750: 10400031 beq $v0, $zero, 0xBFC0C818 */ uint32_t psx_brA_BFC0C750 = cpu->gpr[2]; uint32_t psx_brB_BFC0C750 = cpu->gpr[0]; - int psx_taken_BFC0C750 = (psx_brA_BFC0C750 == psx_brB_BFC0C750); + psx_taken_BFC0C750 = (psx_brA_BFC0C750 == psx_brB_BFC0C750); /* 0xBFC0C754: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0C754u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0C750) goto label_BFC0C818; @@ -43906,7 +45290,7 @@ label_BFC0C790: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[15] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC0C79C: 1020000D beq $at, $zero, 0xBFC0C7D4 */ uint32_t psx_brA_BFC0C79C = cpu->gpr[1]; uint32_t psx_brB_BFC0C79C = cpu->gpr[0]; - int psx_taken_BFC0C79C = (psx_brA_BFC0C79C == psx_brB_BFC0C79C); + psx_taken_BFC0C79C = (psx_brA_BFC0C79C == psx_brB_BFC0C79C); /* 0xBFC0C7A0: 00000000 nop */ /* nop */ if (psx_taken_BFC0C79C) goto label_BFC0C7D4; @@ -43942,7 +45326,7 @@ label_BFC0C7A8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC0C7CC: 1420FFF6 bne $at, $zero, 0xBFC0C7A8 */ uint32_t psx_brA_BFC0C7CC = cpu->gpr[1]; uint32_t psx_brB_BFC0C7CC = cpu->gpr[0]; - int psx_taken_BFC0C7CC = (psx_brA_BFC0C7CC != psx_brB_BFC0C7CC); + psx_taken_BFC0C7CC = (psx_brA_BFC0C7CC != psx_brB_BFC0C7CC); /* 0xBFC0C7D0: 8FB80034 lw $t8, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0C7D0u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC0C7CC) goto label_BFC0C7A8; @@ -44017,7 +45401,7 @@ label_BFC0C80C: psx_check_interrupts(cpu); /* 0xBFC0C80C: 1000FFE0 beq $zero, $zero, 0xBFC0C790 */ uint32_t psx_brA_BFC0C80C = cpu->gpr[0]; uint32_t psx_brB_BFC0C80C = cpu->gpr[0]; - int psx_taken_BFC0C80C = (psx_brA_BFC0C80C == psx_brB_BFC0C80C); + psx_taken_BFC0C80C = (psx_brA_BFC0C80C == psx_brB_BFC0C80C); /* 0xBFC0C810: AFA00034 sw $zero, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0C810u); return; } g_debug_last_store_pc = 0xBFC0C810u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC0C80C) goto label_BFC0C790; @@ -44053,6 +45437,7 @@ void func_1FC0C830(CPUState* cpu) { default: break; } } + int psx_taken_BFC0C858 = 0; label_BFC0C830: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -44091,7 +45476,7 @@ label_BFC0C854: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC0C858: 1611FFFC bne $s0, $s1, 0xBFC0C84C */ uint32_t psx_brA_BFC0C858 = cpu->gpr[16]; uint32_t psx_brB_BFC0C858 = cpu->gpr[17]; - int psx_taken_BFC0C858 = (psx_brA_BFC0C858 != psx_brB_BFC0C858); + psx_taken_BFC0C858 = (psx_brA_BFC0C858 != psx_brB_BFC0C858); /* 0xBFC0C85C: 00000000 nop */ /* nop */ if (psx_taken_BFC0C858) goto label_BFC0C84C; @@ -44430,6 +45815,8 @@ void func_1FC0C9CC(CPUState* cpu) { default: break; } } + int psx_taken_BFC0C9F4 = 0; + int psx_taken_BFC0CA04 = 0; label_BFC0C9CC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -44463,7 +45850,7 @@ label_BFC0C9EC: cpu->gpr[1] = (uint32_t)(cpu->gpr[17] < 0x00000002u ? 1 : 0); /* 0xBFC0C9F4: 14200005 bne $at, $zero, 0xBFC0CA0C */ uint32_t psx_brA_BFC0C9F4 = cpu->gpr[1]; uint32_t psx_brB_BFC0C9F4 = cpu->gpr[0]; - int psx_taken_BFC0C9F4 = (psx_brA_BFC0C9F4 != psx_brB_BFC0C9F4); + psx_taken_BFC0C9F4 = (psx_brA_BFC0C9F4 != psx_brB_BFC0C9F4); /* 0xBFC0C9F8: 00000000 nop */ /* nop */ if (psx_taken_BFC0C9F4) goto label_BFC0CA0C; @@ -44478,7 +45865,7 @@ label_BFC0C9FC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CA00u); return; } g_debug_last_store_pc = 0xBFC0CA00u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC0CA04: 10000027 beq $zero, $zero, 0xBFC0CAA4 */ uint32_t psx_brA_BFC0CA04 = cpu->gpr[0]; uint32_t psx_brB_BFC0CA04 = cpu->gpr[0]; - int psx_taken_BFC0CA04 = (psx_brA_BFC0CA04 == psx_brB_BFC0CA04); + psx_taken_BFC0CA04 = (psx_brA_BFC0CA04 == psx_brB_BFC0CA04); /* 0xBFC0CA08: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0CA04) goto label_BFC0CAA4; @@ -44636,6 +46023,22 @@ void func_1FC0CAB4(CPUState* cpu) { default: break; } } + int psx_taken_BFC0CACC = 0; + int psx_taken_BFC0CAF8 = 0; + int psx_taken_BFC0CB0C = 0; + int psx_taken_BFC0CB28 = 0; + int psx_taken_BFC0CB3C = 0; + int psx_taken_BFC0CB50 = 0; + int psx_taken_BFC0CB6C = 0; + int psx_taken_BFC0CB80 = 0; + int psx_taken_BFC0CB94 = 0; + int psx_taken_BFC0CBC8 = 0; + int psx_taken_BFC0CBD8 = 0; + int psx_taken_BFC0CBE4 = 0; + int psx_taken_BFC0CBF8 = 0; + int psx_taken_BFC0CC08 = 0; + int psx_taken_BFC0CC38 = 0; + int psx_taken_BFC0CC44 = 0; label_BFC0CAB4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -44655,7 +46058,7 @@ label_BFC0CAB4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC0CACC: 14A10044 bne $a1, $at, 0xBFC0CBE0 */ uint32_t psx_brA_BFC0CACC = cpu->gpr[5]; uint32_t psx_brB_BFC0CACC = cpu->gpr[1]; - int psx_taken_BFC0CACC = (psx_brA_BFC0CACC != psx_brB_BFC0CACC); + psx_taken_BFC0CACC = (psx_brA_BFC0CACC != psx_brB_BFC0CACC); /* 0xBFC0CAD0: AFA3002C sw $v1, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CAD0u); return; } g_debug_last_store_pc = 0xBFC0CAD0u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC0CACC) goto label_BFC0CBE0; @@ -44684,7 +46087,7 @@ label_BFC0CAD4: cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[24] + (-16568)); /* 0xBFC0CAF8: 10600035 beq $v1, $zero, 0xBFC0CBD0 */ uint32_t psx_brA_BFC0CAF8 = cpu->gpr[3]; uint32_t psx_brB_BFC0CAF8 = cpu->gpr[0]; - int psx_taken_BFC0CAF8 = (psx_brA_BFC0CAF8 == psx_brB_BFC0CAF8); + psx_taken_BFC0CAF8 = (psx_brA_BFC0CAF8 == psx_brB_BFC0CAF8); /* 0xBFC0CAFC: 01F88021 addu $s0, $t7, $t8 */ cpu->gpr[16] = cpu->gpr[15] + cpu->gpr[24]; if (psx_taken_BFC0CAF8) goto label_BFC0CBD0; @@ -44707,7 +46110,7 @@ label_BFC0CB0C: psx_check_interrupts(cpu); /* 0xBFC0CB0C: 10400008 beq $v0, $zero, 0xBFC0CB30 */ uint32_t psx_brA_BFC0CB0C = cpu->gpr[2]; uint32_t psx_brB_BFC0CB0C = cpu->gpr[0]; - int psx_taken_BFC0CB0C = (psx_brA_BFC0CB0C == psx_brB_BFC0CB0C); + psx_taken_BFC0CB0C = (psx_brA_BFC0CB0C == psx_brB_BFC0CB0C); /* 0xBFC0CB10: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0CB0C) goto label_BFC0CB30; @@ -44740,7 +46143,7 @@ label_BFC0CB28: psx_check_interrupts(cpu); /* 0xBFC0CB28: 1440FFFA bne $v0, $zero, 0xBFC0CB14 */ uint32_t psx_brA_BFC0CB28 = cpu->gpr[2]; uint32_t psx_brB_BFC0CB28 = cpu->gpr[0]; - int psx_taken_BFC0CB28 = (psx_brA_BFC0CB28 != psx_brB_BFC0CB28); + psx_taken_BFC0CB28 = (psx_brA_BFC0CB28 != psx_brB_BFC0CB28); /* 0xBFC0CB2C: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0CB28) goto label_BFC0CB14; @@ -44757,7 +46160,7 @@ label_BFC0CB30: cpu->gpr[8] = cpu->gpr[25] & 0x4u; /* 0xBFC0CB3C: 1500000D bne $t0, $zero, 0xBFC0CB74 */ uint32_t psx_brA_BFC0CB3C = cpu->gpr[8]; uint32_t psx_brB_BFC0CB3C = cpu->gpr[0]; - int psx_taken_BFC0CB3C = (psx_brA_BFC0CB3C != psx_brB_BFC0CB3C); + psx_taken_BFC0CB3C = (psx_brA_BFC0CB3C != psx_brB_BFC0CB3C); /* 0xBFC0CB40: 00000000 nop */ /* nop */ if (psx_taken_BFC0CB3C) goto label_BFC0CB74; @@ -44774,7 +46177,7 @@ label_BFC0CB44: /* nop */ /* 0xBFC0CB50: 152A0008 bne $t1, $t2, 0xBFC0CB74 */ uint32_t psx_brA_BFC0CB50 = cpu->gpr[9]; uint32_t psx_brB_BFC0CB50 = cpu->gpr[10]; - int psx_taken_BFC0CB50 = (psx_brA_BFC0CB50 != psx_brB_BFC0CB50); + psx_taken_BFC0CB50 = (psx_brA_BFC0CB50 != psx_brB_BFC0CB50); /* 0xBFC0CB54: 00000000 nop */ /* nop */ if (psx_taken_BFC0CB50) goto label_BFC0CB74; @@ -44801,7 +46204,7 @@ label_BFC0CB60: /* nop */ /* 0xBFC0CB6C: 116CFFFA beq $t3, $t4, 0xBFC0CB58 */ uint32_t psx_brA_BFC0CB6C = cpu->gpr[11]; uint32_t psx_brB_BFC0CB6C = cpu->gpr[12]; - int psx_taken_BFC0CB6C = (psx_brA_BFC0CB6C == psx_brB_BFC0CB6C); + psx_taken_BFC0CB6C = (psx_brA_BFC0CB6C == psx_brB_BFC0CB6C); /* 0xBFC0CB70: 00000000 nop */ /* nop */ if (psx_taken_BFC0CB6C) goto label_BFC0CB58; @@ -44818,7 +46221,7 @@ label_BFC0CB74: /* nop */ /* 0xBFC0CB80: 15AE0006 bne $t5, $t6, 0xBFC0CB9C */ uint32_t psx_brA_BFC0CB80 = cpu->gpr[13]; uint32_t psx_brB_BFC0CB80 = cpu->gpr[14]; - int psx_taken_BFC0CB80 = (psx_brA_BFC0CB80 != psx_brB_BFC0CB80); + psx_taken_BFC0CB80 = (psx_brA_BFC0CB80 != psx_brB_BFC0CB80); /* 0xBFC0CB84: 00000000 nop */ /* nop */ if (psx_taken_BFC0CB80) goto label_BFC0CB9C; @@ -44835,7 +46238,7 @@ label_BFC0CB88: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CB90u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC0CB94: 10000030 beq $zero, $zero, 0xBFC0CC58 */ uint32_t psx_brA_BFC0CB94 = cpu->gpr[0]; uint32_t psx_brB_BFC0CB94 = cpu->gpr[0]; - int psx_taken_BFC0CB94 = (psx_brA_BFC0CB94 == psx_brB_BFC0CB94); + psx_taken_BFC0CB94 = (psx_brA_BFC0CB94 == psx_brB_BFC0CB94); /* 0xBFC0CB98: 01F81023 subu $v0, $t7, $t8 */ cpu->gpr[2] = cpu->gpr[15] - cpu->gpr[24]; if (psx_taken_BFC0CB94) goto label_BFC0CC58; @@ -44874,7 +46277,7 @@ label_BFC0CBA4: cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[8] + (1)); /* 0xBFC0CBC8: 1580FFCD bne $t4, $zero, 0xBFC0CB00 */ uint32_t psx_brA_BFC0CBC8 = cpu->gpr[12]; uint32_t psx_brB_BFC0CBC8 = cpu->gpr[0]; - int psx_taken_BFC0CBC8 = (psx_brA_BFC0CBC8 != psx_brB_BFC0CBC8); + psx_taken_BFC0CBC8 = (psx_brA_BFC0CBC8 != psx_brB_BFC0CBC8); /* 0xBFC0CBCC: AE290008 sw $t1, 8($s1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (8)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CBCCu); return; } g_debug_last_store_pc = 0xBFC0CBCCu; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC0CBC8) goto label_BFC0CB00; @@ -44889,7 +46292,7 @@ label_BFC0CBD0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CBD4u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC0CBD8: 10000020 beq $zero, $zero, 0xBFC0CC5C */ uint32_t psx_brA_BFC0CBD8 = cpu->gpr[0]; uint32_t psx_brB_BFC0CBD8 = cpu->gpr[0]; - int psx_taken_BFC0CBD8 = (psx_brA_BFC0CBD8 == psx_brB_BFC0CBD8); + psx_taken_BFC0CBD8 = (psx_brA_BFC0CBD8 == psx_brB_BFC0CBD8); /* 0xBFC0CBDC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CBDCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0CBD8) goto label_BFC0CC5C; @@ -44902,7 +46305,7 @@ label_BFC0CBE0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC0CBE4: 14A10019 bne $a1, $at, 0xBFC0CC4C */ uint32_t psx_brA_BFC0CBE4 = cpu->gpr[5]; uint32_t psx_brB_BFC0CBE4 = cpu->gpr[1]; - int psx_taken_BFC0CBE4 = (psx_brA_BFC0CBE4 != psx_brB_BFC0CBE4); + psx_taken_BFC0CBE4 = (psx_brA_BFC0CBE4 != psx_brB_BFC0CBE4); /* 0xBFC0CBE8: 00000000 nop */ /* nop */ if (psx_taken_BFC0CBE4) goto label_BFC0CC4C; @@ -44919,7 +46322,7 @@ label_BFC0CBEC: cpu->gpr[14] = cpu->gpr[13] & 0x2u; /* 0xBFC0CBF8: 11C00014 beq $t6, $zero, 0xBFC0CC4C */ uint32_t psx_brA_BFC0CBF8 = cpu->gpr[14]; uint32_t psx_brB_BFC0CBF8 = cpu->gpr[0]; - int psx_taken_BFC0CBF8 = (psx_brA_BFC0CBF8 == psx_brB_BFC0CBF8); + psx_taken_BFC0CBF8 = (psx_brA_BFC0CBF8 == psx_brB_BFC0CBF8); /* 0xBFC0CBFC: 00000000 nop */ /* nop */ if (psx_taken_BFC0CBF8) goto label_BFC0CC4C; @@ -44934,7 +46337,7 @@ label_BFC0CC00: cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[3] + (-1)); /* 0xBFC0CC08: 1040000D beq $v0, $zero, 0xBFC0CC40 */ uint32_t psx_brA_BFC0CC08 = cpu->gpr[2]; uint32_t psx_brB_BFC0CC08 = cpu->gpr[0]; - int psx_taken_BFC0CC08 = (psx_brA_BFC0CC08 == psx_brB_BFC0CC08); + psx_taken_BFC0CC08 = (psx_brA_BFC0CC08 == psx_brB_BFC0CC08); /* 0xBFC0CC0C: AE2F000C sw $t7, 12($s1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (12)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CC0Cu); return; } g_debug_last_store_pc = 0xBFC0CC0Cu; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC0CC08) goto label_BFC0CC40; @@ -44971,7 +46374,7 @@ label_BFC0CC28: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[3] + (-1)); /* 0xBFC0CC38: 1440FFF5 bne $v0, $zero, 0xBFC0CC10 */ uint32_t psx_brA_BFC0CC38 = cpu->gpr[2]; uint32_t psx_brB_BFC0CC38 = cpu->gpr[0]; - int psx_taken_BFC0CC38 = (psx_brA_BFC0CC38 != psx_brB_BFC0CC38); + psx_taken_BFC0CC38 = (psx_brA_BFC0CC38 != psx_brB_BFC0CC38); /* 0xBFC0CC3C: AE39000C sw $t9, 12($s1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (12)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CC3Cu); return; } g_debug_last_store_pc = 0xBFC0CC3Cu; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC0CC38) goto label_BFC0CC10; @@ -44984,7 +46387,7 @@ label_BFC0CC40: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CC40u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } /* 0xBFC0CC44: 10000005 beq $zero, $zero, 0xBFC0CC5C */ uint32_t psx_brA_BFC0CC44 = cpu->gpr[0]; uint32_t psx_brB_BFC0CC44 = cpu->gpr[0]; - int psx_taken_BFC0CC44 = (psx_brA_BFC0CC44 == psx_brB_BFC0CC44); + psx_taken_BFC0CC44 = (psx_brA_BFC0CC44 == psx_brB_BFC0CC44); /* 0xBFC0CC48: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CC48u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0CC44) goto label_BFC0CC5C; @@ -45033,6 +46436,20 @@ void func_1FC0CC68(CPUState* cpu) { default: break; } } + int psx_taken_BFC0CCA4 = 0; + int psx_taken_BFC0CCB0 = 0; + int psx_taken_BFC0CCB8 = 0; + int psx_taken_BFC0CCC0 = 0; + int psx_taken_BFC0CCC8 = 0; + int psx_taken_BFC0CCD8 = 0; + int psx_taken_BFC0CCF4 = 0; + int psx_taken_BFC0CCFC = 0; + int psx_taken_BFC0CD04 = 0; + int psx_taken_BFC0CD18 = 0; + int psx_taken_BFC0CD2C = 0; + int psx_taken_BFC0CD3C = 0; + int psx_taken_BFC0CD4C = 0; + int psx_taken_BFC0CD5C = 0; label_BFC0CC68: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(17u); @@ -45070,7 +46487,7 @@ label_BFC0CC68: cpu->gpr[16] = cpu->gpr[14] + cpu->gpr[15]; /* 0xBFC0CCA4: 10A1000A beq $a1, $at, 0xBFC0CCD0 */ uint32_t psx_brA_BFC0CCA4 = cpu->gpr[5]; uint32_t psx_brB_BFC0CCA4 = cpu->gpr[1]; - int psx_taken_BFC0CCA4 = (psx_brA_BFC0CCA4 == psx_brB_BFC0CCA4); + psx_taken_BFC0CCA4 = (psx_brA_BFC0CCA4 == psx_brB_BFC0CCA4); /* 0xBFC0CCA8: AFA0002C sw $zero, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CCA8u); return; } g_debug_last_store_pc = 0xBFC0CCA8u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC0CCA4) goto label_BFC0CCD0; @@ -45083,7 +46500,7 @@ label_BFC0CCAC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (29697)); /* 0xBFC0CCB0: 10A10014 beq $a1, $at, 0xBFC0CD04 */ uint32_t psx_brA_BFC0CCB0 = cpu->gpr[5]; uint32_t psx_brB_BFC0CCB0 = cpu->gpr[1]; - int psx_taken_BFC0CCB0 = (psx_brA_BFC0CCB0 == psx_brB_BFC0CCB0); + psx_taken_BFC0CCB0 = (psx_brA_BFC0CCB0 == psx_brB_BFC0CCB0); /* 0xBFC0CCB4: 24017402 addiu $at, $zero, 29698 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (29698)); if (psx_taken_BFC0CCB0) goto label_BFC0CD04; @@ -45094,7 +46511,7 @@ label_BFC0CCB8: psx_check_interrupts(cpu); /* 0xBFC0CCB8: 10A1001E beq $a1, $at, 0xBFC0CD34 */ uint32_t psx_brA_BFC0CCB8 = cpu->gpr[5]; uint32_t psx_brB_BFC0CCB8 = cpu->gpr[1]; - int psx_taken_BFC0CCB8 = (psx_brA_BFC0CCB8 == psx_brB_BFC0CCB8); + psx_taken_BFC0CCB8 = (psx_brA_BFC0CCB8 == psx_brB_BFC0CCB8); /* 0xBFC0CCBC: 24017403 addiu $at, $zero, 29699 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (29699)); if (psx_taken_BFC0CCB8) goto label_BFC0CD34; @@ -45105,7 +46522,7 @@ label_BFC0CCC0: psx_check_interrupts(cpu); /* 0xBFC0CCC0: 10A10020 beq $a1, $at, 0xBFC0CD44 */ uint32_t psx_brA_BFC0CCC0 = cpu->gpr[5]; uint32_t psx_brB_BFC0CCC0 = cpu->gpr[1]; - int psx_taken_BFC0CCC0 = (psx_brA_BFC0CCC0 == psx_brB_BFC0CCC0); + psx_taken_BFC0CCC0 = (psx_brA_BFC0CCC0 == psx_brB_BFC0CCC0); /* 0xBFC0CCC4: 00000000 nop */ /* nop */ if (psx_taken_BFC0CCC0) goto label_BFC0CD44; @@ -45116,7 +46533,7 @@ label_BFC0CCC8: psx_check_interrupts(cpu); /* 0xBFC0CCC8: 10000023 beq $zero, $zero, 0xBFC0CD58 */ uint32_t psx_brA_BFC0CCC8 = cpu->gpr[0]; uint32_t psx_brB_BFC0CCC8 = cpu->gpr[0]; - int psx_taken_BFC0CCC8 = (psx_brA_BFC0CCC8 == psx_brB_BFC0CCC8); + psx_taken_BFC0CCC8 = (psx_brA_BFC0CCC8 == psx_brB_BFC0CCC8); /* 0xBFC0CCCC: 240A0016 addiu $t2, $zero, 22 */ cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[0] + (22)); if (psx_taken_BFC0CCC8) goto label_BFC0CD58; @@ -45137,7 +46554,7 @@ label_BFC0CCD8: psx_check_interrupts(cpu); /* 0xBFC0CCD8: 10400022 beq $v0, $zero, 0xBFC0CD64 */ uint32_t psx_brA_BFC0CCD8 = cpu->gpr[2]; uint32_t psx_brB_BFC0CCD8 = cpu->gpr[0]; - int psx_taken_BFC0CCD8 = (psx_brA_BFC0CCD8 == psx_brB_BFC0CCD8); + psx_taken_BFC0CCD8 = (psx_brA_BFC0CCD8 == psx_brB_BFC0CCD8); /* 0xBFC0CCDC: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0CCD8) goto label_BFC0CD64; @@ -45170,7 +46587,7 @@ label_BFC0CCF4: psx_check_interrupts(cpu); /* 0xBFC0CCF4: 1440FFFA bne $v0, $zero, 0xBFC0CCE0 */ uint32_t psx_brA_BFC0CCF4 = cpu->gpr[2]; uint32_t psx_brB_BFC0CCF4 = cpu->gpr[0]; - int psx_taken_BFC0CCF4 = (psx_brA_BFC0CCF4 != psx_brB_BFC0CCF4); + psx_taken_BFC0CCF4 = (psx_brA_BFC0CCF4 != psx_brB_BFC0CCF4); /* 0xBFC0CCF8: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC0CCF4) goto label_BFC0CCE0; @@ -45181,7 +46598,7 @@ label_BFC0CCFC: psx_check_interrupts(cpu); /* 0xBFC0CCFC: 1000001A beq $zero, $zero, 0xBFC0CD68 */ uint32_t psx_brA_BFC0CCFC = cpu->gpr[0]; uint32_t psx_brB_BFC0CCFC = cpu->gpr[0]; - int psx_taken_BFC0CCFC = (psx_brA_BFC0CCFC == psx_brB_BFC0CCFC); + psx_taken_BFC0CCFC = (psx_brA_BFC0CCFC == psx_brB_BFC0CCFC); /* 0xBFC0CD00: 8FA2002C lw $v0, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CD00u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC0CCFC) goto label_BFC0CD68; @@ -45192,7 +46609,7 @@ label_BFC0CD04: psx_check_interrupts(cpu); /* 0xBFC0CD04: 10C00006 beq $a2, $zero, 0xBFC0CD20 */ uint32_t psx_brA_BFC0CD04 = cpu->gpr[6]; uint32_t psx_brB_BFC0CD04 = cpu->gpr[0]; - int psx_taken_BFC0CD04 = (psx_brA_BFC0CD04 == psx_brB_BFC0CD04); + psx_taken_BFC0CD04 = (psx_brA_BFC0CD04 == psx_brB_BFC0CD04); /* 0xBFC0CD08: 00000000 nop */ /* nop */ if (psx_taken_BFC0CD04) goto label_BFC0CD20; @@ -45209,7 +46626,7 @@ label_BFC0CD0C: cpu->gpr[25] = cpu->gpr[24] | 0x1u; /* 0xBFC0CD18: 10000012 beq $zero, $zero, 0xBFC0CD64 */ uint32_t psx_brA_BFC0CD18 = cpu->gpr[0]; uint32_t psx_brB_BFC0CD18 = cpu->gpr[0]; - int psx_taken_BFC0CD18 = (psx_brA_BFC0CD18 == psx_brB_BFC0CD18); + psx_taken_BFC0CD18 = (psx_brA_BFC0CD18 == psx_brB_BFC0CD18); /* 0xBFC0CD1C: AE190000 sw $t9, 0($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CD1Cu); return; } g_debug_last_store_pc = 0xBFC0CD1Cu; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC0CD18) goto label_BFC0CD64; @@ -45226,7 +46643,7 @@ label_BFC0CD20: cpu->gpr[9] = cpu->gpr[8] & cpu->gpr[1]; /* 0xBFC0CD2C: 1000000D beq $zero, $zero, 0xBFC0CD64 */ uint32_t psx_brA_BFC0CD2C = cpu->gpr[0]; uint32_t psx_brB_BFC0CD2C = cpu->gpr[0]; - int psx_taken_BFC0CD2C = (psx_brA_BFC0CD2C == psx_brB_BFC0CD2C); + psx_taken_BFC0CD2C = (psx_brA_BFC0CD2C == psx_brB_BFC0CD2C); /* 0xBFC0CD30: AE090000 sw $t1, 0($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CD30u); return; } g_debug_last_store_pc = 0xBFC0CD30u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC0CD2C) goto label_BFC0CD64; @@ -45241,7 +46658,7 @@ label_BFC0CD34: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (8)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CD38u); return; } g_debug_last_store_pc = 0xBFC0CD38u; cpu->write_word(psx_addr, cpu->gpr[2]); } /* 0xBFC0CD3C: 10000009 beq $zero, $zero, 0xBFC0CD64 */ uint32_t psx_brA_BFC0CD3C = cpu->gpr[0]; uint32_t psx_brB_BFC0CD3C = cpu->gpr[0]; - int psx_taken_BFC0CD3C = (psx_brA_BFC0CD3C == psx_brB_BFC0CD3C); + psx_taken_BFC0CD3C = (psx_brA_BFC0CD3C == psx_brB_BFC0CD3C); /* 0xBFC0CD40: AE020004 sw $v0, 4($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CD40u); return; } g_debug_last_store_pc = 0xBFC0CD40u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC0CD3C) goto label_BFC0CD64; @@ -45262,7 +46679,7 @@ label_BFC0CD4C: psx_check_interrupts(cpu); /* 0xBFC0CD4C: 10000005 beq $zero, $zero, 0xBFC0CD64 */ uint32_t psx_brA_BFC0CD4C = cpu->gpr[0]; uint32_t psx_brB_BFC0CD4C = cpu->gpr[0]; - int psx_taken_BFC0CD4C = (psx_brA_BFC0CD4C == psx_brB_BFC0CD4C); + psx_taken_BFC0CD4C = (psx_brA_BFC0CD4C == psx_brB_BFC0CD4C); /* 0xBFC0CD50: AFA2002C sw $v0, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CD50u); return; } g_debug_last_store_pc = 0xBFC0CD50u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC0CD4C) goto label_BFC0CD64; @@ -45282,7 +46699,7 @@ label_BFC0CD58: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CD58u); return; } g_debug_last_store_pc = 0xBFC0CD58u; cpu->write_word(psx_addr, cpu->gpr[10]); } /* 0xBFC0CD5C: 10000003 beq $zero, $zero, 0xBFC0CD6C */ uint32_t psx_brA_BFC0CD5C = cpu->gpr[0]; uint32_t psx_brB_BFC0CD5C = cpu->gpr[0]; - int psx_taken_BFC0CD5C = (psx_brA_BFC0CD5C == psx_brB_BFC0CD5C); + psx_taken_BFC0CD5C = (psx_brA_BFC0CD5C == psx_brB_BFC0CD5C); /* 0xBFC0CD60: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0CD5C) goto label_BFC0CD6C; @@ -45336,6 +46753,16 @@ void func_1FC0CD80(CPUState* cpu) { default: break; } } + int psx_taken_BFC0CDB0 = 0; + int psx_taken_BFC0CDDC = 0; + int psx_taken_BFC0CDE8 = 0; + int psx_taken_BFC0CE6C = 0; + int psx_taken_BFC0CE8C = 0; + int psx_taken_BFC0CEA0 = 0; + int psx_taken_BFC0CEC8 = 0; + int psx_taken_BFC0CEE8 = 0; + int psx_taken_BFC0CEF8 = 0; + int psx_taken_BFC0CF0C = 0; label_BFC0CD80: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -45373,7 +46800,7 @@ label_BFC0CDAC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (48)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CDACu); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC0CDB0: 04400071 bltz $v0, 0xBFC0CF78 */ uint32_t psx_brA_BFC0CDB0 = cpu->gpr[2]; - int psx_taken_BFC0CDB0 = ((int32_t)psx_brA_BFC0CDB0 < 0); + psx_taken_BFC0CDB0 = ((int32_t)psx_brA_BFC0CDB0 < 0); /* 0xBFC0CDB4: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CDB4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0CDB0) goto label_BFC0CF78; @@ -45402,7 +46829,7 @@ label_BFC0CDB8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (110)); /* 0xBFC0CDDC: 15410004 bne $t2, $at, 0xBFC0CDF0 */ uint32_t psx_brA_BFC0CDDC = cpu->gpr[10]; uint32_t psx_brB_BFC0CDDC = cpu->gpr[1]; - int psx_taken_BFC0CDDC = (psx_brA_BFC0CDDC != psx_brB_BFC0CDDC); + psx_taken_BFC0CDDC = (psx_brA_BFC0CDDC != psx_brB_BFC0CDDC); /* 0xBFC0CDE0: 00592025 or $a0, $v0, $t9 */ cpu->gpr[4] = cpu->gpr[2] | cpu->gpr[25]; if (psx_taken_BFC0CDDC) goto label_BFC0CDF0; @@ -45415,7 +46842,7 @@ label_BFC0CDE4: cpu->gpr[11] = (uint32_t)((int32_t)cpu->gpr[0] + (15)); /* 0xBFC0CDE8: 10000003 beq $zero, $zero, 0xBFC0CDF8 */ uint32_t psx_brA_BFC0CDE8 = cpu->gpr[0]; uint32_t psx_brB_BFC0CDE8 = cpu->gpr[0]; - int psx_taken_BFC0CDE8 = (psx_brA_BFC0CDE8 == psx_brB_BFC0CDE8); + psx_taken_BFC0CDE8 = (psx_brA_BFC0CDE8 == psx_brB_BFC0CDE8); /* 0xBFC0CDEC: A3AB0040 sb $t3, 64($sp) */ g_debug_last_store_pc = 0xBFC0CDECu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[29] + (64)), (uint8_t)(cpu->gpr[11] & 0xFFu)); if (psx_taken_BFC0CDE8) goto label_BFC0CDF8; @@ -45529,7 +46956,7 @@ label_BFC0CE4C: /* nop */ /* 0xBFC0CE6C: 19800009 blez $t4, 0xBFC0CE94 */ uint32_t psx_brA_BFC0CE6C = cpu->gpr[12]; - int psx_taken_BFC0CE6C = ((int32_t)psx_brA_BFC0CE6C <= 0); + psx_taken_BFC0CE6C = ((int32_t)psx_brA_BFC0CE6C <= 0); /* 0xBFC0CE70: 00000000 nop */ /* nop */ if (psx_taken_BFC0CE6C) goto label_BFC0CE94; @@ -45557,7 +46984,7 @@ label_BFC0CE78: /* nop */ /* 0xBFC0CE8C: 1DE0FFFA bgtz $t7, 0xBFC0CE78 */ uint32_t psx_brA_BFC0CE8C = cpu->gpr[15]; - int psx_taken_BFC0CE8C = ((int32_t)psx_brA_BFC0CE8C > 0); + psx_taken_BFC0CE8C = ((int32_t)psx_brA_BFC0CE8C > 0); /* 0xBFC0CE90: 8FAD003C lw $t5, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CE90u); return; } cpu->gpr[13] = cpu->read_word(psx_addr); } if (psx_taken_BFC0CE8C) goto label_BFC0CE78; @@ -45574,7 +47001,7 @@ label_BFC0CE94: cpu->gpr[24] = cpu->gpr[2] & 0x1u; /* 0xBFC0CEA0: 1300001D beq $t8, $zero, 0xBFC0CF18 */ uint32_t psx_brA_BFC0CEA0 = cpu->gpr[24]; uint32_t psx_brB_BFC0CEA0 = cpu->gpr[0]; - int psx_taken_BFC0CEA0 = (psx_brA_BFC0CEA0 == psx_brB_BFC0CEA0); + psx_taken_BFC0CEA0 = (psx_brA_BFC0CEA0 == psx_brB_BFC0CEA0); /* 0xBFC0CEA4: 240F0050 addiu $t7, $zero, 80 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (80)); if (psx_taken_BFC0CEA0) goto label_BFC0CF18; @@ -45606,7 +47033,7 @@ label_BFC0CEAC: /* nop */ /* 0xBFC0CEC8: 19400009 blez $t2, 0xBFC0CEF0 */ uint32_t psx_brA_BFC0CEC8 = cpu->gpr[10]; - int psx_taken_BFC0CEC8 = ((int32_t)psx_brA_BFC0CEC8 <= 0); + psx_taken_BFC0CEC8 = ((int32_t)psx_brA_BFC0CEC8 <= 0); /* 0xBFC0CECC: 00000000 nop */ /* nop */ if (psx_taken_BFC0CEC8) goto label_BFC0CEF0; @@ -45634,7 +47061,7 @@ label_BFC0CED4: /* nop */ /* 0xBFC0CEE8: 1DA0FFFA bgtz $t5, 0xBFC0CED4 */ uint32_t psx_brA_BFC0CEE8 = cpu->gpr[13]; - int psx_taken_BFC0CEE8 = ((int32_t)psx_brA_BFC0CEE8 > 0); + psx_taken_BFC0CEE8 = ((int32_t)psx_brA_BFC0CEE8 > 0); /* 0xBFC0CEEC: 8FAB0038 lw $t3, 56($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0CEECu); return; } cpu->gpr[11] = cpu->read_word(psx_addr); } if (psx_taken_BFC0CEE8) goto label_BFC0CED4; @@ -45649,7 +47076,7 @@ label_BFC0CEF0: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (-1)); /* 0xBFC0CEF8: 18600007 blez $v1, 0xBFC0CF18 */ uint32_t psx_brA_BFC0CEF8 = cpu->gpr[3]; - int psx_taken_BFC0CEF8 = ((int32_t)psx_brA_BFC0CEF8 <= 0); + psx_taken_BFC0CEF8 = ((int32_t)psx_brA_BFC0CEF8 <= 0); /* 0xBFC0CEFC: 240F0050 addiu $t7, $zero, 80 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (80)); if (psx_taken_BFC0CEF8) goto label_BFC0CF18; @@ -45666,7 +47093,7 @@ label_BFC0CF00: cpu->gpr[14] = cpu->gpr[2] & 0x1u; /* 0xBFC0CF0C: 15C0FFE7 bne $t6, $zero, 0xBFC0CEAC */ uint32_t psx_brA_BFC0CF0C = cpu->gpr[14]; uint32_t psx_brB_BFC0CF0C = cpu->gpr[0]; - int psx_taken_BFC0CF0C = (psx_brA_BFC0CF0C != psx_brB_BFC0CF0C); + psx_taken_BFC0CF0C = (psx_brA_BFC0CF0C != psx_brB_BFC0CF0C); /* 0xBFC0CF10: 2419012C addiu $t9, $zero, 300 */ cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[0] + (300)); if (psx_taken_BFC0CF0C) goto label_BFC0CEAC; @@ -45763,6 +47190,43 @@ label_BFC0CF78: void func_1FC0CF84(CPUState* cpu) { debug_server_log_call_entry(0x1FC0CF84u); + int psx_taken_BFC0CF84 = 0; + int psx_taken_BFC0CF8C = 0; + int psx_taken_BFC0CF94 = 0; + int psx_taken_BFC0CF9C = 0; + int psx_taken_BFC0CFA4 = 0; + int psx_taken_BFC0CFAC = 0; + int psx_taken_BFC0CFB4 = 0; + int psx_taken_BFC0CFBC = 0; + int psx_taken_BFC0CFC4 = 0; + int psx_taken_BFC0CFCC = 0; + int psx_taken_BFC0CFD4 = 0; + int psx_taken_BFC0CFDC = 0; + int psx_taken_BFC0CFE4 = 0; + int psx_taken_BFC0CFF0 = 0; + int psx_taken_BFC0CFF8 = 0; + int psx_taken_BFC0D000 = 0; + int psx_taken_BFC0D008 = 0; + int psx_taken_BFC0D010 = 0; + int psx_taken_BFC0D018 = 0; + int psx_taken_BFC0D020 = 0; + int psx_taken_BFC0D028 = 0; + int psx_taken_BFC0D034 = 0; + int psx_taken_BFC0D03C = 0; + int psx_taken_BFC0D048 = 0; + int psx_taken_BFC0D050 = 0; + int psx_taken_BFC0D058 = 0; + int psx_taken_BFC0D060 = 0; + int psx_taken_BFC0D06C = 0; + int psx_taken_BFC0D074 = 0; + int psx_taken_BFC0D080 = 0; + int psx_taken_BFC0D088 = 0; + int psx_taken_BFC0D090 = 0; + int psx_taken_BFC0D098 = 0; + int psx_taken_BFC0D0A0 = 0; + int psx_taken_BFC0D0A8 = 0; + int psx_taken_BFC0D0B4 = 0; + int psx_taken_BFC0D0BC = 0; label_BFC0CF84: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -45770,7 +47234,7 @@ label_BFC0CF84: psx_check_interrupts(cpu); /* 0xBFC0CF84: 1000001A beq $zero, $zero, 0xBFC0CFF0 */ uint32_t psx_brA_BFC0CF84 = cpu->gpr[0]; uint32_t psx_brB_BFC0CF84 = cpu->gpr[0]; - int psx_taken_BFC0CF84 = (psx_brA_BFC0CF84 == psx_brB_BFC0CF84); + psx_taken_BFC0CF84 = (psx_brA_BFC0CF84 == psx_brB_BFC0CF84); /* 0xBFC0CF88: 24010708 addiu $at, $zero, 1800 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1800)); if (psx_taken_BFC0CF84) goto label_BFC0CFF0; @@ -45781,7 +47245,7 @@ label_BFC0CF8C: psx_check_interrupts(cpu); /* 0xBFC0CF8C: 1000004D beq $zero, $zero, 0xBFC0D0C4 */ uint32_t psx_brA_BFC0CF8C = cpu->gpr[0]; uint32_t psx_brB_BFC0CF8C = cpu->gpr[0]; - int psx_taken_BFC0CF8C = (psx_brA_BFC0CF8C == psx_brB_BFC0CF8C); + psx_taken_BFC0CF8C = (psx_brA_BFC0CF8C == psx_brB_BFC0CF8C); /* 0xBFC0CF90: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0CF8C) goto label_BFC0D0C4; @@ -45792,7 +47256,7 @@ label_BFC0CF94: psx_check_interrupts(cpu); /* 0xBFC0CF94: 1000004B beq $zero, $zero, 0xBFC0D0C4 */ uint32_t psx_brA_BFC0CF94 = cpu->gpr[0]; uint32_t psx_brB_BFC0CF94 = cpu->gpr[0]; - int psx_taken_BFC0CF94 = (psx_brA_BFC0CF94 == psx_brB_BFC0CF94); + psx_taken_BFC0CF94 = (psx_brA_BFC0CF94 == psx_brB_BFC0CF94); /* 0xBFC0CF98: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC0CF94) goto label_BFC0D0C4; @@ -45803,7 +47267,7 @@ label_BFC0CF9C: psx_check_interrupts(cpu); /* 0xBFC0CF9C: 10000049 beq $zero, $zero, 0xBFC0D0C4 */ uint32_t psx_brA_BFC0CF9C = cpu->gpr[0]; uint32_t psx_brB_BFC0CF9C = cpu->gpr[0]; - int psx_taken_BFC0CF9C = (psx_brA_BFC0CF9C == psx_brB_BFC0CF9C); + psx_taken_BFC0CF9C = (psx_brA_BFC0CF9C == psx_brB_BFC0CF9C); /* 0xBFC0CFA0: 24030002 addiu $v1, $zero, 2 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC0CF9C) goto label_BFC0D0C4; @@ -45814,7 +47278,7 @@ label_BFC0CFA4: psx_check_interrupts(cpu); /* 0xBFC0CFA4: 10000047 beq $zero, $zero, 0xBFC0D0C4 */ uint32_t psx_brA_BFC0CFA4 = cpu->gpr[0]; uint32_t psx_brB_BFC0CFA4 = cpu->gpr[0]; - int psx_taken_BFC0CFA4 = (psx_brA_BFC0CFA4 == psx_brB_BFC0CFA4); + psx_taken_BFC0CFA4 = (psx_brA_BFC0CFA4 == psx_brB_BFC0CFA4); /* 0xBFC0CFA8: 24030003 addiu $v1, $zero, 3 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); if (psx_taken_BFC0CFA4) goto label_BFC0D0C4; @@ -45825,7 +47289,7 @@ label_BFC0CFAC: psx_check_interrupts(cpu); /* 0xBFC0CFAC: 10000045 beq $zero, $zero, 0xBFC0D0C4 */ uint32_t psx_brA_BFC0CFAC = cpu->gpr[0]; uint32_t psx_brB_BFC0CFAC = cpu->gpr[0]; - int psx_taken_BFC0CFAC = (psx_brA_BFC0CFAC == psx_brB_BFC0CFAC); + psx_taken_BFC0CFAC = (psx_brA_BFC0CFAC == psx_brB_BFC0CFAC); /* 0xBFC0CFB0: 24030004 addiu $v1, $zero, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC0CFAC) goto label_BFC0D0C4; @@ -45836,7 +47300,7 @@ label_BFC0CFB4: psx_check_interrupts(cpu); /* 0xBFC0CFB4: 10000043 beq $zero, $zero, 0xBFC0D0C4 */ uint32_t psx_brA_BFC0CFB4 = cpu->gpr[0]; uint32_t psx_brB_BFC0CFB4 = cpu->gpr[0]; - int psx_taken_BFC0CFB4 = (psx_brA_BFC0CFB4 == psx_brB_BFC0CFB4); + psx_taken_BFC0CFB4 = (psx_brA_BFC0CFB4 == psx_brB_BFC0CFB4); /* 0xBFC0CFB8: 24030005 addiu $v1, $zero, 5 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC0CFB4) goto label_BFC0D0C4; @@ -45847,7 +47311,7 @@ label_BFC0CFBC: psx_check_interrupts(cpu); /* 0xBFC0CFBC: 10000041 beq $zero, $zero, 0xBFC0D0C4 */ uint32_t psx_brA_BFC0CFBC = cpu->gpr[0]; uint32_t psx_brB_BFC0CFBC = cpu->gpr[0]; - int psx_taken_BFC0CFBC = (psx_brA_BFC0CFBC == psx_brB_BFC0CFBC); + psx_taken_BFC0CFBC = (psx_brA_BFC0CFBC == psx_brB_BFC0CFBC); /* 0xBFC0CFC0: 24030006 addiu $v1, $zero, 6 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (6)); if (psx_taken_BFC0CFBC) goto label_BFC0D0C4; @@ -45858,7 +47322,7 @@ label_BFC0CFC4: psx_check_interrupts(cpu); /* 0xBFC0CFC4: 1000003F beq $zero, $zero, 0xBFC0D0C4 */ uint32_t psx_brA_BFC0CFC4 = cpu->gpr[0]; uint32_t psx_brB_BFC0CFC4 = cpu->gpr[0]; - int psx_taken_BFC0CFC4 = (psx_brA_BFC0CFC4 == psx_brB_BFC0CFC4); + psx_taken_BFC0CFC4 = (psx_brA_BFC0CFC4 == psx_brB_BFC0CFC4); /* 0xBFC0CFC8: 24030008 addiu $v1, $zero, 8 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); if (psx_taken_BFC0CFC4) goto label_BFC0D0C4; @@ -45869,7 +47333,7 @@ label_BFC0CFCC: psx_check_interrupts(cpu); /* 0xBFC0CFCC: 1000003D beq $zero, $zero, 0xBFC0D0C4 */ uint32_t psx_brA_BFC0CFCC = cpu->gpr[0]; uint32_t psx_brB_BFC0CFCC = cpu->gpr[0]; - int psx_taken_BFC0CFCC = (psx_brA_BFC0CFCC == psx_brB_BFC0CFCC); + psx_taken_BFC0CFCC = (psx_brA_BFC0CFCC == psx_brB_BFC0CFCC); /* 0xBFC0CFD0: 24030009 addiu $v1, $zero, 9 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); if (psx_taken_BFC0CFCC) goto label_BFC0D0C4; @@ -45880,7 +47344,7 @@ label_BFC0CFD4: psx_check_interrupts(cpu); /* 0xBFC0CFD4: 1000003B beq $zero, $zero, 0xBFC0D0C4 */ uint32_t psx_brA_BFC0CFD4 = cpu->gpr[0]; uint32_t psx_brB_BFC0CFD4 = cpu->gpr[0]; - int psx_taken_BFC0CFD4 = (psx_brA_BFC0CFD4 == psx_brB_BFC0CFD4); + psx_taken_BFC0CFD4 = (psx_brA_BFC0CFD4 == psx_brB_BFC0CFD4); /* 0xBFC0CFD8: 2403000A addiu $v1, $zero, 10 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); if (psx_taken_BFC0CFD4) goto label_BFC0D0C4; @@ -45891,7 +47355,7 @@ label_BFC0CFDC: psx_check_interrupts(cpu); /* 0xBFC0CFDC: 10000039 beq $zero, $zero, 0xBFC0D0C4 */ uint32_t psx_brA_BFC0CFDC = cpu->gpr[0]; uint32_t psx_brB_BFC0CFDC = cpu->gpr[0]; - int psx_taken_BFC0CFDC = (psx_brA_BFC0CFDC == psx_brB_BFC0CFDC); + psx_taken_BFC0CFDC = (psx_brA_BFC0CFDC == psx_brB_BFC0CFDC); /* 0xBFC0CFE0: 2403000B addiu $v1, $zero, 11 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (11)); if (psx_taken_BFC0CFDC) goto label_BFC0D0C4; @@ -45902,7 +47366,7 @@ label_BFC0CFE4: psx_check_interrupts(cpu); /* 0xBFC0CFE4: 10000037 beq $zero, $zero, 0xBFC0D0C4 */ uint32_t psx_brA_BFC0CFE4 = cpu->gpr[0]; uint32_t psx_brB_BFC0CFE4 = cpu->gpr[0]; - int psx_taken_BFC0CFE4 = (psx_brA_BFC0CFE4 == psx_brB_BFC0CFE4); + psx_taken_BFC0CFE4 = (psx_brA_BFC0CFE4 == psx_brB_BFC0CFE4); /* 0xBFC0CFE8: 2403000C addiu $v1, $zero, 12 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (12)); if (psx_taken_BFC0CFE4) goto label_BFC0D0C4; @@ -45920,7 +47384,7 @@ label_BFC0CFF0: psx_check_interrupts(cpu); /* 0xBFC0CFF0: 1081FFF8 beq $a0, $at, 0xBFC0CFD4 */ uint32_t psx_brA_BFC0CFF0 = cpu->gpr[4]; uint32_t psx_brB_BFC0CFF0 = cpu->gpr[1]; - int psx_taken_BFC0CFF0 = (psx_brA_BFC0CFF0 == psx_brB_BFC0CFF0); + psx_taken_BFC0CFF0 = (psx_brA_BFC0CFF0 == psx_brB_BFC0CFF0); /* 0xBFC0CFF4: 28810709 slti $at, $a0, 1801 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (1801) ? 1 : 0); if (psx_taken_BFC0CFF0) goto label_BFC0CFD4; @@ -45931,7 +47395,7 @@ label_BFC0CFF8: psx_check_interrupts(cpu); /* 0xBFC0CFF8: 10200020 beq $at, $zero, 0xBFC0D07C */ uint32_t psx_brA_BFC0CFF8 = cpu->gpr[1]; uint32_t psx_brB_BFC0CFF8 = cpu->gpr[0]; - int psx_taken_BFC0CFF8 = (psx_brA_BFC0CFF8 == psx_brB_BFC0CFF8); + psx_taken_BFC0CFF8 = (psx_brA_BFC0CFF8 == psx_brB_BFC0CFF8); /* 0xBFC0CFFC: 24010096 addiu $at, $zero, 150 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (150)); if (psx_taken_BFC0CFF8) goto label_BFC0D07C; @@ -45942,7 +47406,7 @@ label_BFC0D000: psx_check_interrupts(cpu); /* 0xBFC0D000: 1081FFE8 beq $a0, $at, 0xBFC0CFA4 */ uint32_t psx_brA_BFC0D000 = cpu->gpr[4]; uint32_t psx_brB_BFC0D000 = cpu->gpr[1]; - int psx_taken_BFC0D000 = (psx_brA_BFC0D000 == psx_brB_BFC0D000); + psx_taken_BFC0D000 = (psx_brA_BFC0D000 == psx_brB_BFC0D000); /* 0xBFC0D004: 28810097 slti $at, $a0, 151 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (151) ? 1 : 0); if (psx_taken_BFC0D000) goto label_BFC0CFA4; @@ -45953,7 +47417,7 @@ label_BFC0D008: psx_check_interrupts(cpu); /* 0xBFC0D008: 1020000E beq $at, $zero, 0xBFC0D044 */ uint32_t psx_brA_BFC0D008 = cpu->gpr[1]; uint32_t psx_brB_BFC0D008 = cpu->gpr[0]; - int psx_taken_BFC0D008 = (psx_brA_BFC0D008 == psx_brB_BFC0D008); + psx_taken_BFC0D008 = (psx_brA_BFC0D008 == psx_brB_BFC0D008); /* 0xBFC0D00C: 2401006E addiu $at, $zero, 110 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (110)); if (psx_taken_BFC0D008) goto label_BFC0D044; @@ -45964,7 +47428,7 @@ label_BFC0D010: psx_check_interrupts(cpu); /* 0xBFC0D010: 1081FFE0 beq $a0, $at, 0xBFC0CF94 */ uint32_t psx_brA_BFC0D010 = cpu->gpr[4]; uint32_t psx_brB_BFC0D010 = cpu->gpr[1]; - int psx_taken_BFC0D010 = (psx_brA_BFC0D010 == psx_brB_BFC0D010); + psx_taken_BFC0D010 = (psx_brA_BFC0D010 == psx_brB_BFC0D010); /* 0xBFC0D014: 2881006F slti $at, $a0, 111 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (111) ? 1 : 0); if (psx_taken_BFC0D010) goto label_BFC0CF94; @@ -45975,7 +47439,7 @@ label_BFC0D018: psx_check_interrupts(cpu); /* 0xBFC0D018: 10200005 beq $at, $zero, 0xBFC0D030 */ uint32_t psx_brA_BFC0D018 = cpu->gpr[1]; uint32_t psx_brB_BFC0D018 = cpu->gpr[0]; - int psx_taken_BFC0D018 = (psx_brA_BFC0D018 == psx_brB_BFC0D018); + psx_taken_BFC0D018 = (psx_brA_BFC0D018 == psx_brB_BFC0D018); /* 0xBFC0D01C: 2401004B addiu $at, $zero, 75 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (75)); if (psx_taken_BFC0D018) goto label_BFC0D030; @@ -45986,7 +47450,7 @@ label_BFC0D020: psx_check_interrupts(cpu); /* 0xBFC0D020: 1081FFDA beq $a0, $at, 0xBFC0CF8C */ uint32_t psx_brA_BFC0D020 = cpu->gpr[4]; uint32_t psx_brB_BFC0D020 = cpu->gpr[1]; - int psx_taken_BFC0D020 = (psx_brA_BFC0D020 == psx_brB_BFC0D020); + psx_taken_BFC0D020 = (psx_brA_BFC0D020 == psx_brB_BFC0D020); /* 0xBFC0D024: 00000000 nop */ /* nop */ if (psx_taken_BFC0D020) goto label_BFC0CF8C; @@ -45997,7 +47461,7 @@ label_BFC0D028: psx_check_interrupts(cpu); /* 0xBFC0D028: 10000004 beq $zero, $zero, 0xBFC0D03C */ uint32_t psx_brA_BFC0D028 = cpu->gpr[0]; uint32_t psx_brB_BFC0D028 = cpu->gpr[0]; - int psx_taken_BFC0D028 = (psx_brA_BFC0D028 == psx_brB_BFC0D028); + psx_taken_BFC0D028 = (psx_brA_BFC0D028 == psx_brB_BFC0D028); /* 0xBFC0D02C: 00000000 nop */ /* nop */ if (psx_taken_BFC0D028) goto label_BFC0D03C; @@ -46010,7 +47474,7 @@ label_BFC0D030: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (134)); /* 0xBFC0D034: 1081FFD9 beq $a0, $at, 0xBFC0CF9C */ uint32_t psx_brA_BFC0D034 = cpu->gpr[4]; uint32_t psx_brB_BFC0D034 = cpu->gpr[1]; - int psx_taken_BFC0D034 = (psx_brA_BFC0D034 == psx_brB_BFC0D034); + psx_taken_BFC0D034 = (psx_brA_BFC0D034 == psx_brB_BFC0D034); /* 0xBFC0D038: 00000000 nop */ /* nop */ if (psx_taken_BFC0D034) goto label_BFC0CF9C; @@ -46021,7 +47485,7 @@ label_BFC0D03C: psx_check_interrupts(cpu); /* 0xBFC0D03C: 10000021 beq $zero, $zero, 0xBFC0D0C4 */ uint32_t psx_brA_BFC0D03C = cpu->gpr[0]; uint32_t psx_brB_BFC0D03C = cpu->gpr[0]; - int psx_taken_BFC0D03C = (psx_brA_BFC0D03C == psx_brB_BFC0D03C); + psx_taken_BFC0D03C = (psx_brA_BFC0D03C == psx_brB_BFC0D03C); /* 0xBFC0D040: 2403FFFF addiu $v1, $zero, -1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0D03C) goto label_BFC0D0C4; @@ -46034,7 +47498,7 @@ label_BFC0D044: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (600)); /* 0xBFC0D048: 1081FFDA beq $a0, $at, 0xBFC0CFB4 */ uint32_t psx_brA_BFC0D048 = cpu->gpr[4]; uint32_t psx_brB_BFC0D048 = cpu->gpr[1]; - int psx_taken_BFC0D048 = (psx_brA_BFC0D048 == psx_brB_BFC0D048); + psx_taken_BFC0D048 = (psx_brA_BFC0D048 == psx_brB_BFC0D048); /* 0xBFC0D04C: 28810259 slti $at, $a0, 601 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (601) ? 1 : 0); if (psx_taken_BFC0D048) goto label_BFC0CFB4; @@ -46045,7 +47509,7 @@ label_BFC0D050: psx_check_interrupts(cpu); /* 0xBFC0D050: 10200005 beq $at, $zero, 0xBFC0D068 */ uint32_t psx_brA_BFC0D050 = cpu->gpr[1]; uint32_t psx_brB_BFC0D050 = cpu->gpr[0]; - int psx_taken_BFC0D050 = (psx_brA_BFC0D050 == psx_brB_BFC0D050); + psx_taken_BFC0D050 = (psx_brA_BFC0D050 == psx_brB_BFC0D050); /* 0xBFC0D054: 2401012C addiu $at, $zero, 300 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (300)); if (psx_taken_BFC0D050) goto label_BFC0D068; @@ -46056,7 +47520,7 @@ label_BFC0D058: psx_check_interrupts(cpu); /* 0xBFC0D058: 1081FFD4 beq $a0, $at, 0xBFC0CFAC */ uint32_t psx_brA_BFC0D058 = cpu->gpr[4]; uint32_t psx_brB_BFC0D058 = cpu->gpr[1]; - int psx_taken_BFC0D058 = (psx_brA_BFC0D058 == psx_brB_BFC0D058); + psx_taken_BFC0D058 = (psx_brA_BFC0D058 == psx_brB_BFC0D058); /* 0xBFC0D05C: 00000000 nop */ /* nop */ if (psx_taken_BFC0D058) goto label_BFC0CFAC; @@ -46067,7 +47531,7 @@ label_BFC0D060: psx_check_interrupts(cpu); /* 0xBFC0D060: 1000FFF6 beq $zero, $zero, 0xBFC0D03C */ uint32_t psx_brA_BFC0D060 = cpu->gpr[0]; uint32_t psx_brB_BFC0D060 = cpu->gpr[0]; - int psx_taken_BFC0D060 = (psx_brA_BFC0D060 == psx_brB_BFC0D060); + psx_taken_BFC0D060 = (psx_brA_BFC0D060 == psx_brB_BFC0D060); /* 0xBFC0D064: 00000000 nop */ /* nop */ if (psx_taken_BFC0D060) goto label_BFC0D03C; @@ -46080,7 +47544,7 @@ label_BFC0D068: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1200)); /* 0xBFC0D06C: 1081FFD3 beq $a0, $at, 0xBFC0CFBC */ uint32_t psx_brA_BFC0D06C = cpu->gpr[4]; uint32_t psx_brB_BFC0D06C = cpu->gpr[1]; - int psx_taken_BFC0D06C = (psx_brA_BFC0D06C == psx_brB_BFC0D06C); + psx_taken_BFC0D06C = (psx_brA_BFC0D06C == psx_brB_BFC0D06C); /* 0xBFC0D070: 00000000 nop */ /* nop */ if (psx_taken_BFC0D06C) goto label_BFC0CFBC; @@ -46091,7 +47555,7 @@ label_BFC0D074: psx_check_interrupts(cpu); /* 0xBFC0D074: 1000FFF1 beq $zero, $zero, 0xBFC0D03C */ uint32_t psx_brA_BFC0D074 = cpu->gpr[0]; uint32_t psx_brB_BFC0D074 = cpu->gpr[0]; - int psx_taken_BFC0D074 = (psx_brA_BFC0D074 == psx_brB_BFC0D074); + psx_taken_BFC0D074 = (psx_brA_BFC0D074 == psx_brB_BFC0D074); /* 0xBFC0D078: 00000000 nop */ /* nop */ if (psx_taken_BFC0D074) goto label_BFC0D03C; @@ -46104,7 +47568,7 @@ label_BFC0D07C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (9600)); /* 0xBFC0D080: 1081FFD6 beq $a0, $at, 0xBFC0CFDC */ uint32_t psx_brA_BFC0D080 = cpu->gpr[4]; uint32_t psx_brB_BFC0D080 = cpu->gpr[1]; - int psx_taken_BFC0D080 = (psx_brA_BFC0D080 == psx_brB_BFC0D080); + psx_taken_BFC0D080 = (psx_brA_BFC0D080 == psx_brB_BFC0D080); /* 0xBFC0D084: 28812581 slti $at, $a0, 9601 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (9601) ? 1 : 0); if (psx_taken_BFC0D080) goto label_BFC0CFDC; @@ -46115,7 +47579,7 @@ label_BFC0D088: psx_check_interrupts(cpu); /* 0xBFC0D088: 10200009 beq $at, $zero, 0xBFC0D0B0 */ uint32_t psx_brA_BFC0D088 = cpu->gpr[1]; uint32_t psx_brB_BFC0D088 = cpu->gpr[0]; - int psx_taken_BFC0D088 = (psx_brA_BFC0D088 == psx_brB_BFC0D088); + psx_taken_BFC0D088 = (psx_brA_BFC0D088 == psx_brB_BFC0D088); /* 0xBFC0D08C: 240112C0 addiu $at, $zero, 4800 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4800)); if (psx_taken_BFC0D088) goto label_BFC0D0B0; @@ -46126,7 +47590,7 @@ label_BFC0D090: psx_check_interrupts(cpu); /* 0xBFC0D090: 1081FFCE beq $a0, $at, 0xBFC0CFCC */ uint32_t psx_brA_BFC0D090 = cpu->gpr[4]; uint32_t psx_brB_BFC0D090 = cpu->gpr[1]; - int psx_taken_BFC0D090 = (psx_brA_BFC0D090 == psx_brB_BFC0D090); + psx_taken_BFC0D090 = (psx_brA_BFC0D090 == psx_brB_BFC0D090); /* 0xBFC0D094: 288112C1 slti $at, $a0, 4801 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (4801) ? 1 : 0); if (psx_taken_BFC0D090) goto label_BFC0CFCC; @@ -46137,7 +47601,7 @@ label_BFC0D098: psx_check_interrupts(cpu); /* 0xBFC0D098: 1020FFE8 beq $at, $zero, 0xBFC0D03C */ uint32_t psx_brA_BFC0D098 = cpu->gpr[1]; uint32_t psx_brB_BFC0D098 = cpu->gpr[0]; - int psx_taken_BFC0D098 = (psx_brA_BFC0D098 == psx_brB_BFC0D098); + psx_taken_BFC0D098 = (psx_brA_BFC0D098 == psx_brB_BFC0D098); /* 0xBFC0D09C: 24010960 addiu $at, $zero, 2400 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2400)); if (psx_taken_BFC0D098) goto label_BFC0D03C; @@ -46148,7 +47612,7 @@ label_BFC0D0A0: psx_check_interrupts(cpu); /* 0xBFC0D0A0: 1081FFC8 beq $a0, $at, 0xBFC0CFC4 */ uint32_t psx_brA_BFC0D0A0 = cpu->gpr[4]; uint32_t psx_brB_BFC0D0A0 = cpu->gpr[1]; - int psx_taken_BFC0D0A0 = (psx_brA_BFC0D0A0 == psx_brB_BFC0D0A0); + psx_taken_BFC0D0A0 = (psx_brA_BFC0D0A0 == psx_brB_BFC0D0A0); /* 0xBFC0D0A4: 00000000 nop */ /* nop */ if (psx_taken_BFC0D0A0) goto label_BFC0CFC4; @@ -46159,7 +47623,7 @@ label_BFC0D0A8: psx_check_interrupts(cpu); /* 0xBFC0D0A8: 1000FFE4 beq $zero, $zero, 0xBFC0D03C */ uint32_t psx_brA_BFC0D0A8 = cpu->gpr[0]; uint32_t psx_brB_BFC0D0A8 = cpu->gpr[0]; - int psx_taken_BFC0D0A8 = (psx_brA_BFC0D0A8 == psx_brB_BFC0D0A8); + psx_taken_BFC0D0A8 = (psx_brA_BFC0D0A8 == psx_brB_BFC0D0A8); /* 0xBFC0D0AC: 00000000 nop */ /* nop */ if (psx_taken_BFC0D0A8) goto label_BFC0D03C; @@ -46172,7 +47636,7 @@ label_BFC0D0B0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (19200)); /* 0xBFC0D0B4: 1081FFCB beq $a0, $at, 0xBFC0CFE4 */ uint32_t psx_brA_BFC0D0B4 = cpu->gpr[4]; uint32_t psx_brB_BFC0D0B4 = cpu->gpr[1]; - int psx_taken_BFC0D0B4 = (psx_brA_BFC0D0B4 == psx_brB_BFC0D0B4); + psx_taken_BFC0D0B4 = (psx_brA_BFC0D0B4 == psx_brB_BFC0D0B4); /* 0xBFC0D0B8: 00000000 nop */ /* nop */ if (psx_taken_BFC0D0B4) goto label_BFC0CFE4; @@ -46183,7 +47647,7 @@ label_BFC0D0BC: psx_check_interrupts(cpu); /* 0xBFC0D0BC: 1000FFDF beq $zero, $zero, 0xBFC0D03C */ uint32_t psx_brA_BFC0D0BC = cpu->gpr[0]; uint32_t psx_brB_BFC0D0BC = cpu->gpr[0]; - int psx_taken_BFC0D0BC = (psx_brA_BFC0D0BC == psx_brB_BFC0D0BC); + psx_taken_BFC0D0BC = (psx_brA_BFC0D0BC == psx_brB_BFC0D0BC); /* 0xBFC0D0C0: 00000000 nop */ /* nop */ if (psx_taken_BFC0D0BC) goto label_BFC0D03C; @@ -46200,6 +47664,8 @@ label_BFC0D0C4: void func_1FC0D0CC(CPUState* cpu) { debug_server_log_call_entry(0x1FC0D0CCu); + int psx_taken_BFC0D0E8 = 0; + int psx_taken_BFC0D100 = 0; label_BFC0D0CC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -46226,7 +47692,7 @@ label_BFC0D0E0: /* nop */ /* 0xBFC0D0E8: 148E0004 bne $a0, $t6, 0xBFC0D0FC */ uint32_t psx_brA_BFC0D0E8 = cpu->gpr[4]; uint32_t psx_brB_BFC0D0E8 = cpu->gpr[14]; - int psx_taken_BFC0D0E8 = (psx_brA_BFC0D0E8 != psx_brB_BFC0D0E8); + psx_taken_BFC0D0E8 = (psx_brA_BFC0D0E8 != psx_brB_BFC0D0E8); /* 0xBFC0D0EC: 00000000 nop */ /* nop */ if (psx_taken_BFC0D0E8) goto label_BFC0D0FC; @@ -46250,7 +47716,7 @@ label_BFC0D0FC: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); /* 0xBFC0D100: 1462FFF7 bne $v1, $v0, 0xBFC0D0E0 */ uint32_t psx_brA_BFC0D100 = cpu->gpr[3]; uint32_t psx_brB_BFC0D100 = cpu->gpr[2]; - int psx_taken_BFC0D100 = (psx_brA_BFC0D100 != psx_brB_BFC0D100); + psx_taken_BFC0D100 = (psx_brA_BFC0D100 != psx_brB_BFC0D100); /* 0xBFC0D104: 00000000 nop */ /* nop */ if (psx_taken_BFC0D100) goto label_BFC0D0E0; @@ -46287,6 +47753,23 @@ void func_1FC0D11C(CPUState* cpu) { default: break; } } + int psx_taken_BFC0D148 = 0; + int psx_taken_BFC0D150 = 0; + int psx_taken_BFC0D15C = 0; + int psx_taken_BFC0D170 = 0; + int psx_taken_BFC0D198 = 0; + int psx_taken_BFC0D1B8 = 0; + int psx_taken_BFC0D1E4 = 0; + int psx_taken_BFC0D204 = 0; + int psx_taken_BFC0D210 = 0; + int psx_taken_BFC0D224 = 0; + int psx_taken_BFC0D238 = 0; + int psx_taken_BFC0D244 = 0; + int psx_taken_BFC0D2B8 = 0; + int psx_taken_BFC0D2C4 = 0; + int psx_taken_BFC0D2E4 = 0; + int psx_taken_BFC0D310 = 0; + int psx_taken_BFC0D330 = 0; label_BFC0D11C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -46316,7 +47799,7 @@ label_BFC0D11C: cpu->gpr[24] = cpu->gpr[2] & 0x1u; /* 0xBFC0D148: 17000004 bne $t8, $zero, 0xBFC0D15C */ uint32_t psx_brA_BFC0D148 = cpu->gpr[24]; uint32_t psx_brB_BFC0D148 = cpu->gpr[0]; - int psx_taken_BFC0D148 = (psx_brA_BFC0D148 != psx_brB_BFC0D148); + psx_taken_BFC0D148 = (psx_brA_BFC0D148 != psx_brB_BFC0D148); /* 0xBFC0D14C: 30590010 andi $t9, $v0, 0x10 */ cpu->gpr[25] = cpu->gpr[2] & 0x10u; if (psx_taken_BFC0D148) goto label_BFC0D15C; @@ -46327,7 +47810,7 @@ label_BFC0D150: psx_check_interrupts(cpu); /* 0xBFC0D150: 1000007A beq $zero, $zero, 0xBFC0D33C */ uint32_t psx_brA_BFC0D150 = cpu->gpr[0]; uint32_t psx_brB_BFC0D150 = cpu->gpr[0]; - int psx_taken_BFC0D150 = (psx_brA_BFC0D150 == psx_brB_BFC0D150); + psx_taken_BFC0D150 = (psx_brA_BFC0D150 == psx_brB_BFC0D150); /* 0xBFC0D154: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0D150) goto label_BFC0D33C; @@ -46345,7 +47828,7 @@ label_BFC0D15C: psx_check_interrupts(cpu); /* 0xBFC0D15C: 13200039 beq $t9, $zero, 0xBFC0D244 */ uint32_t psx_brA_BFC0D15C = cpu->gpr[25]; uint32_t psx_brB_BFC0D15C = cpu->gpr[0]; - int psx_taken_BFC0D15C = (psx_brA_BFC0D15C == psx_brB_BFC0D15C); + psx_taken_BFC0D15C = (psx_brA_BFC0D15C == psx_brB_BFC0D15C); /* 0xBFC0D160: 305900C0 andi $t9, $v0, 0xC0 */ cpu->gpr[25] = cpu->gpr[2] & 0xC0u; if (psx_taken_BFC0D15C) goto label_BFC0D244; @@ -46362,7 +47845,7 @@ label_BFC0D164: cpu->gpr[9] = cpu->gpr[8] & 0x1u; /* 0xBFC0D170: 1120002F beq $t1, $zero, 0xBFC0D230 */ uint32_t psx_brA_BFC0D170 = cpu->gpr[9]; uint32_t psx_brB_BFC0D170 = cpu->gpr[0]; - int psx_taken_BFC0D170 = (psx_brA_BFC0D170 == psx_brB_BFC0D170); + psx_taken_BFC0D170 = (psx_brA_BFC0D170 == psx_brB_BFC0D170); /* 0xBFC0D174: 24180040 addiu $t8, $zero, 64 */ cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[0] + (64)); if (psx_taken_BFC0D170) goto label_BFC0D230; @@ -46394,7 +47877,7 @@ label_BFC0D17C: /* nop */ /* 0xBFC0D198: 19A00009 blez $t5, 0xBFC0D1C0 */ uint32_t psx_brA_BFC0D198 = cpu->gpr[13]; - int psx_taken_BFC0D198 = ((int32_t)psx_brA_BFC0D198 <= 0); + psx_taken_BFC0D198 = ((int32_t)psx_brA_BFC0D198 <= 0); /* 0xBFC0D19C: 00000000 nop */ /* nop */ if (psx_taken_BFC0D198) goto label_BFC0D1C0; @@ -46422,7 +47905,7 @@ label_BFC0D1A4: /* nop */ /* 0xBFC0D1B8: 1F00FFFA bgtz $t8, 0xBFC0D1A4 */ uint32_t psx_brA_BFC0D1B8 = cpu->gpr[24]; - int psx_taken_BFC0D1B8 = ((int32_t)psx_brA_BFC0D1B8 > 0); + psx_taken_BFC0D1B8 = ((int32_t)psx_brA_BFC0D1B8 > 0); /* 0xBFC0D1BC: 8FAE0034 lw $t6, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0D1BCu); return; } cpu->gpr[14] = cpu->read_word(psx_addr); } if (psx_taken_BFC0D1B8) goto label_BFC0D1A4; @@ -46451,7 +47934,7 @@ label_BFC0D1C0: /* nop */ /* 0xBFC0D1E4: 19400009 blez $t2, 0xBFC0D20C */ uint32_t psx_brA_BFC0D1E4 = cpu->gpr[10]; - int psx_taken_BFC0D1E4 = ((int32_t)psx_brA_BFC0D1E4 <= 0); + psx_taken_BFC0D1E4 = ((int32_t)psx_brA_BFC0D1E4 <= 0); /* 0xBFC0D1E8: 00000000 nop */ /* nop */ if (psx_taken_BFC0D1E4) goto label_BFC0D20C; @@ -46479,7 +47962,7 @@ label_BFC0D1F0: /* nop */ /* 0xBFC0D204: 1DA0FFFA bgtz $t5, 0xBFC0D1F0 */ uint32_t psx_brA_BFC0D204 = cpu->gpr[13]; - int psx_taken_BFC0D204 = ((int32_t)psx_brA_BFC0D204 > 0); + psx_taken_BFC0D204 = ((int32_t)psx_brA_BFC0D204 > 0); /* 0xBFC0D208: 8FAB0030 lw $t3, 48($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (48)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0D208u); return; } cpu->gpr[11] = cpu->read_word(psx_addr); } if (psx_taken_BFC0D204) goto label_BFC0D1F0; @@ -46492,7 +47975,7 @@ label_BFC0D20C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (-1)); /* 0xBFC0D210: 18400007 blez $v0, 0xBFC0D230 */ uint32_t psx_brA_BFC0D210 = cpu->gpr[2]; - int psx_taken_BFC0D210 = ((int32_t)psx_brA_BFC0D210 <= 0); + psx_taken_BFC0D210 = ((int32_t)psx_brA_BFC0D210 <= 0); /* 0xBFC0D214: 24180040 addiu $t8, $zero, 64 */ cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[0] + (64)); if (psx_taken_BFC0D210) goto label_BFC0D230; @@ -46509,7 +47992,7 @@ label_BFC0D218: cpu->gpr[15] = cpu->gpr[14] & 0x1u; /* 0xBFC0D224: 15E0FFD5 bne $t7, $zero, 0xBFC0D17C */ uint32_t psx_brA_BFC0D224 = cpu->gpr[15]; uint32_t psx_brB_BFC0D224 = cpu->gpr[0]; - int psx_taken_BFC0D224 = (psx_brA_BFC0D224 != psx_brB_BFC0D224); + psx_taken_BFC0D224 = (psx_brA_BFC0D224 != psx_brB_BFC0D224); /* 0xBFC0D228: 240A001E addiu $t2, $zero, 30 */ cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[0] + (30)); if (psx_taken_BFC0D224) goto label_BFC0D17C; @@ -46537,7 +48020,7 @@ label_BFC0D238: psx_check_interrupts(cpu); /* 0xBFC0D238: 10000040 beq $zero, $zero, 0xBFC0D33C */ uint32_t psx_brA_BFC0D238 = cpu->gpr[0]; uint32_t psx_brB_BFC0D238 = cpu->gpr[0]; - int psx_taken_BFC0D238 = (psx_brA_BFC0D238 == psx_brB_BFC0D238); + psx_taken_BFC0D238 = (psx_brA_BFC0D238 == psx_brB_BFC0D238); /* 0xBFC0D23C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0D238) goto label_BFC0D33C; @@ -46555,7 +48038,7 @@ label_BFC0D244: psx_check_interrupts(cpu); /* 0xBFC0D244: 13200029 beq $t9, $zero, 0xBFC0D2EC */ uint32_t psx_brA_BFC0D244 = cpu->gpr[25]; uint32_t psx_brB_BFC0D244 = cpu->gpr[0]; - int psx_taken_BFC0D244 = (psx_brA_BFC0D244 == psx_brB_BFC0D244); + psx_taken_BFC0D244 = (psx_brA_BFC0D244 == psx_brB_BFC0D244); /* 0xBFC0D248: 00000000 nop */ /* nop */ if (psx_taken_BFC0D244) goto label_BFC0D2EC; @@ -46650,7 +48133,7 @@ label_BFC0D2AC: cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[15] + (-24544)); /* 0xBFC0D2B8: 104F0004 beq $v0, $t7, 0xBFC0D2CC */ uint32_t psx_brA_BFC0D2B8 = cpu->gpr[2]; uint32_t psx_brB_BFC0D2B8 = cpu->gpr[15]; - int psx_taken_BFC0D2B8 = (psx_brA_BFC0D2B8 == psx_brB_BFC0D2B8); + psx_taken_BFC0D2B8 = (psx_brA_BFC0D2B8 == psx_brB_BFC0D2B8); /* 0xBFC0D2BC: 00000000 nop */ /* nop */ if (psx_taken_BFC0D2B8) goto label_BFC0D2CC; @@ -46663,7 +48146,7 @@ label_BFC0D2C0: cpu->gpr[5] = 0xBFC10000u; /* 0xBFC0D2C4: 10000003 beq $zero, $zero, 0xBFC0D2D4 */ uint32_t psx_brA_BFC0D2C4 = cpu->gpr[0]; uint32_t psx_brB_BFC0D2C4 = cpu->gpr[0]; - int psx_taken_BFC0D2C4 = (psx_brA_BFC0D2C4 == psx_brB_BFC0D2C4); + psx_taken_BFC0D2C4 = (psx_brA_BFC0D2C4 == psx_brB_BFC0D2C4); /* 0xBFC0D2C8: 24A5E584 addiu $a1, $a1, -6780 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-6780)); if (psx_taken_BFC0D2C4) goto label_BFC0D2D4; @@ -46697,7 +48180,7 @@ label_BFC0D2E4: psx_check_interrupts(cpu); /* 0xBFC0D2E4: 10000015 beq $zero, $zero, 0xBFC0D33C */ uint32_t psx_brA_BFC0D2E4 = cpu->gpr[0]; uint32_t psx_brB_BFC0D2E4 = cpu->gpr[0]; - int psx_taken_BFC0D2E4 = (psx_brA_BFC0D2E4 == psx_brB_BFC0D2E4); + psx_taken_BFC0D2E4 = (psx_brA_BFC0D2E4 == psx_brB_BFC0D2E4); /* 0xBFC0D2E8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC0D2E4) goto label_BFC0D33C; @@ -46726,7 +48209,7 @@ label_BFC0D2EC: /* nop */ /* 0xBFC0D310: 1920000A blez $t1, 0xBFC0D33C */ uint32_t psx_brA_BFC0D310 = cpu->gpr[9]; - int psx_taken_BFC0D310 = ((int32_t)psx_brA_BFC0D310 <= 0); + psx_taken_BFC0D310 = ((int32_t)psx_brA_BFC0D310 <= 0); /* 0xBFC0D314: 34820100 ori $v0, $a0, 0x100 */ cpu->gpr[2] = cpu->gpr[4] | 0x100u; if (psx_taken_BFC0D310) goto label_BFC0D33C; @@ -46754,7 +48237,7 @@ label_BFC0D31C: /* nop */ /* 0xBFC0D330: 1D80FFFA bgtz $t4, 0xBFC0D31C */ uint32_t psx_brA_BFC0D330 = cpu->gpr[12]; - int psx_taken_BFC0D330 = ((int32_t)psx_brA_BFC0D330 > 0); + psx_taken_BFC0D330 = ((int32_t)psx_brA_BFC0D330 > 0); /* 0xBFC0D334: 8FAA0028 lw $t2, 40($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0D334u); return; } cpu->gpr[10] = cpu->read_word(psx_addr); } if (psx_taken_BFC0D330) goto label_BFC0D31C; @@ -46792,6 +48275,17 @@ void func_1FC0D34C(CPUState* cpu) { default: break; } } + int psx_taken_BFC0D394 = 0; + int psx_taken_BFC0D3B0 = 0; + int psx_taken_BFC0D3D0 = 0; + int psx_taken_BFC0D3E4 = 0; + int psx_taken_BFC0D3F8 = 0; + int psx_taken_BFC0D40C = 0; + int psx_taken_BFC0D414 = 0; + int psx_taken_BFC0D43C = 0; + int psx_taken_BFC0D45C = 0; + int psx_taken_BFC0D490 = 0; + int psx_taken_BFC0D4B0 = 0; label_BFC0D34C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(20u); @@ -46835,7 +48329,7 @@ label_BFC0D34C: cpu->gpr[8] = cpu->gpr[25] & 0x2u; /* 0xBFC0D394: 11000009 beq $t0, $zero, 0xBFC0D3BC */ uint32_t psx_brA_BFC0D394 = cpu->gpr[8]; uint32_t psx_brB_BFC0D394 = cpu->gpr[0]; - int psx_taken_BFC0D394 = (psx_brA_BFC0D394 == psx_brB_BFC0D394); + psx_taken_BFC0D394 = (psx_brA_BFC0D394 == psx_brB_BFC0D394); /* 0xBFC0D398: 8FAB0044 lw $t3, 68($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0D398u); return; } cpu->gpr[11] = cpu->read_word(psx_addr); } if (psx_taken_BFC0D394) goto label_BFC0D3BC; @@ -46862,7 +48356,7 @@ label_BFC0D3A4: cpu->gpr[10] = cpu->gpr[9] & 0x2u; /* 0xBFC0D3B0: 1540FFFA bne $t2, $zero, 0xBFC0D39C */ uint32_t psx_brA_BFC0D3B0 = cpu->gpr[10]; uint32_t psx_brB_BFC0D3B0 = cpu->gpr[0]; - int psx_taken_BFC0D3B0 = (psx_brA_BFC0D3B0 != psx_brB_BFC0D3B0); + psx_taken_BFC0D3B0 = (psx_brA_BFC0D3B0 != psx_brB_BFC0D3B0); /* 0xBFC0D3B4: 00000000 nop */ /* nop */ if (psx_taken_BFC0D3B0) goto label_BFC0D39C; @@ -46890,7 +48384,7 @@ label_BFC0D3BC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (999)); /* 0xBFC0D3D0: 1A000010 blez $s0, 0xBFC0D414 */ uint32_t psx_brA_BFC0D3D0 = cpu->gpr[16]; - int psx_taken_BFC0D3D0 = ((int32_t)psx_brA_BFC0D3D0 <= 0); + psx_taken_BFC0D3D0 = ((int32_t)psx_brA_BFC0D3D0 <= 0); /* 0xBFC0D3D4: 00000000 nop */ /* nop */ if (psx_taken_BFC0D3D0) goto label_BFC0D414; @@ -46907,7 +48401,7 @@ label_BFC0D3D8: cpu->gpr[14] = cpu->gpr[13] & 0x4u; /* 0xBFC0D3E4: 15C0000B bne $t6, $zero, 0xBFC0D414 */ uint32_t psx_brA_BFC0D3E4 = cpu->gpr[14]; uint32_t psx_brB_BFC0D3E4 = cpu->gpr[0]; - int psx_taken_BFC0D3E4 = (psx_brA_BFC0D3E4 != psx_brB_BFC0D3E4); + psx_taken_BFC0D3E4 = (psx_brA_BFC0D3E4 != psx_brB_BFC0D3E4); /* 0xBFC0D3E8: 00000000 nop */ /* nop */ if (psx_taken_BFC0D3E4) goto label_BFC0D414; @@ -46930,7 +48424,7 @@ label_BFC0D3F4: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); /* 0xBFC0D3F8: 1A000006 blez $s0, 0xBFC0D414 */ uint32_t psx_brA_BFC0D3F8 = cpu->gpr[16]; - int psx_taken_BFC0D3F8 = ((int32_t)psx_brA_BFC0D3F8 <= 0); + psx_taken_BFC0D3F8 = ((int32_t)psx_brA_BFC0D3F8 <= 0); /* 0xBFC0D3FC: 00000000 nop */ /* nop */ if (psx_taken_BFC0D3F8) goto label_BFC0D414; @@ -46947,7 +48441,7 @@ label_BFC0D400: cpu->gpr[24] = cpu->gpr[15] & 0x4u; /* 0xBFC0D40C: 1300FFF7 beq $t8, $zero, 0xBFC0D3EC */ uint32_t psx_brA_BFC0D40C = cpu->gpr[24]; uint32_t psx_brB_BFC0D40C = cpu->gpr[0]; - int psx_taken_BFC0D40C = (psx_brA_BFC0D40C == psx_brB_BFC0D40C); + psx_taken_BFC0D40C = (psx_brA_BFC0D40C == psx_brB_BFC0D40C); /* 0xBFC0D410: 00000000 nop */ /* nop */ if (psx_taken_BFC0D40C) goto label_BFC0D3EC; @@ -46958,7 +48452,7 @@ label_BFC0D414: psx_check_interrupts(cpu); /* 0xBFC0D414: 1A000029 blez $s0, 0xBFC0D4BC */ uint32_t psx_brA_BFC0D414 = cpu->gpr[16]; - int psx_taken_BFC0D414 = ((int32_t)psx_brA_BFC0D414 <= 0); + psx_taken_BFC0D414 = ((int32_t)psx_brA_BFC0D414 <= 0); /* 0xBFC0D418: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0D418u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0D414) goto label_BFC0D4BC; @@ -46985,7 +48479,7 @@ label_BFC0D41C: /* nop */ /* 0xBFC0D43C: 1940000A blez $t2, 0xBFC0D468 */ uint32_t psx_brA_BFC0D43C = cpu->gpr[10]; - int psx_taken_BFC0D43C = ((int32_t)psx_brA_BFC0D43C <= 0); + psx_taken_BFC0D43C = ((int32_t)psx_brA_BFC0D43C <= 0); /* 0xBFC0D440: 83AE0040 lb $t6, 64($sp) */ cpu->gpr[14] = (uint32_t)(int32_t)(int8_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (64))); if (psx_taken_BFC0D43C) goto label_BFC0D468; @@ -47013,7 +48507,7 @@ label_BFC0D448: /* nop */ /* 0xBFC0D45C: 1DA0FFFA bgtz $t5, 0xBFC0D448 */ uint32_t psx_brA_BFC0D45C = cpu->gpr[13]; - int psx_taken_BFC0D45C = ((int32_t)psx_brA_BFC0D45C > 0); + psx_taken_BFC0D45C = ((int32_t)psx_brA_BFC0D45C > 0); /* 0xBFC0D460: 8FAB0030 lw $t3, 48($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (48)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0D460u); return; } cpu->gpr[11] = cpu->read_word(psx_addr); } if (psx_taken_BFC0D45C) goto label_BFC0D448; @@ -47057,7 +48551,7 @@ label_BFC0D470: /* nop */ /* 0xBFC0D490: 1900000A blez $t0, 0xBFC0D4BC */ uint32_t psx_brA_BFC0D490 = cpu->gpr[8]; - int psx_taken_BFC0D490 = ((int32_t)psx_brA_BFC0D490 <= 0); + psx_taken_BFC0D490 = ((int32_t)psx_brA_BFC0D490 <= 0); /* 0xBFC0D494: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0D494u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC0D490) goto label_BFC0D4BC; @@ -47085,7 +48579,7 @@ label_BFC0D49C: /* nop */ /* 0xBFC0D4B0: 1D60FFFA bgtz $t3, 0xBFC0D49C */ uint32_t psx_brA_BFC0D4B0 = cpu->gpr[11]; - int psx_taken_BFC0D4B0 = ((int32_t)psx_brA_BFC0D4B0 > 0); + psx_taken_BFC0D4B0 = ((int32_t)psx_brA_BFC0D4B0 > 0); /* 0xBFC0D4B4: 8FA9002C lw $t1, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0D4B4u); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } if (psx_taken_BFC0D4B0) goto label_BFC0D49C; @@ -47168,6 +48662,9 @@ void func_1FC0D570(CPUState* cpu) { default: break; } } + int psx_taken_BFC0D594 = 0; + int psx_taken_BFC0D5A4 = 0; + int psx_taken_BFC0D5C0 = 0; label_BFC0D570: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -47199,7 +48696,7 @@ label_BFC0D588: /* nop */ /* 0xBFC0D594: 11E0000F beq $t7, $zero, 0xBFC0D5D4 */ uint32_t psx_brA_BFC0D594 = cpu->gpr[15]; uint32_t psx_brB_BFC0D594 = cpu->gpr[0]; - int psx_taken_BFC0D594 = (psx_brA_BFC0D594 == psx_brB_BFC0D594); + psx_taken_BFC0D594 = (psx_brA_BFC0D594 == psx_brB_BFC0D594); /* 0xBFC0D598: 00000000 nop */ /* nop */ if (psx_taken_BFC0D594) goto label_BFC0D5D4; @@ -47220,7 +48717,7 @@ label_BFC0D5A4: psx_check_interrupts(cpu); /* 0xBFC0D5A4: 04410004 bgez $v0, 0xBFC0D5B8 */ uint32_t psx_brA_BFC0D5A4 = cpu->gpr[2]; - int psx_taken_BFC0D5A4 = ((int32_t)psx_brA_BFC0D5A4 >= 0); + psx_taken_BFC0D5A4 = ((int32_t)psx_brA_BFC0D5A4 >= 0); /* 0xBFC0D5A8: 00000000 nop */ /* nop */ if (psx_taken_BFC0D5A4) goto label_BFC0D5B8; @@ -47253,7 +48750,7 @@ label_BFC0D5C0: psx_check_interrupts(cpu); /* 0xBFC0D5C0: 04410004 bgez $v0, 0xBFC0D5D4 */ uint32_t psx_brA_BFC0D5C0 = cpu->gpr[2]; - int psx_taken_BFC0D5C0 = ((int32_t)psx_brA_BFC0D5C0 >= 0); + psx_taken_BFC0D5C0 = ((int32_t)psx_brA_BFC0D5C0 >= 0); /* 0xBFC0D5C4: 00000000 nop */ /* nop */ if (psx_taken_BFC0D5C0) goto label_BFC0D5D4; @@ -47312,6 +48809,7 @@ label_BFC0D5F0: void func_1FC0D600(CPUState* cpu) { debug_server_log_call_entry(0x1FC0D600u); + int psx_taken_BFC0D630 = 0; label_BFC0D600: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -47348,7 +48846,7 @@ label_BFC0D628: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); /* 0xBFC0D630: 1443FFFD bne $v0, $v1, 0xBFC0D628 */ uint32_t psx_brA_BFC0D630 = cpu->gpr[2]; uint32_t psx_brB_BFC0D630 = cpu->gpr[3]; - int psx_taken_BFC0D630 = (psx_brA_BFC0D630 != psx_brB_BFC0D630); + psx_taken_BFC0D630 = (psx_brA_BFC0D630 != psx_brB_BFC0D630); /* 0xBFC0D634: AC080000 sw $t0, 0($zero) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[0] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC0D634u); return; } g_debug_last_store_pc = 0xBFC0D634u; cpu->write_word(psx_addr, cpu->gpr[8]); } if (psx_taken_BFC0D630) goto label_BFC0D628; @@ -47427,6 +48925,10 @@ void func_1FC0D688(CPUState* cpu) { default: break; } } + int psx_taken_BFC0D6D8 = 0; + int psx_taken_BFC0D6F4 = 0; + int psx_taken_BFC0D6FC = 0; + int psx_taken_BFC0D704 = 0; label_BFC0D688: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -47479,7 +48981,7 @@ label_BFC0D6B4: cpu->gpr[17] = cpu->gpr[2] & 0x7u; /* 0xBFC0D6D8: 12200006 beq $s1, $zero, 0xBFC0D6F4 */ uint32_t psx_brA_BFC0D6D8 = cpu->gpr[17]; uint32_t psx_brB_BFC0D6D8 = cpu->gpr[0]; - int psx_taken_BFC0D6D8 = (psx_brA_BFC0D6D8 == psx_brB_BFC0D6D8); + psx_taken_BFC0D6D8 = (psx_brA_BFC0D6D8 == psx_brB_BFC0D6D8); /* 0xBFC0D6DC: 2A010005 slti $at, $s0, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (5) ? 1 : 0); if (psx_taken_BFC0D6D8) goto label_BFC0D6F4; @@ -47511,7 +49013,7 @@ label_BFC0D6F4: psx_check_interrupts(cpu); /* 0xBFC0D6F4: 1420FFEF bne $at, $zero, 0xBFC0D6B4 */ uint32_t psx_brA_BFC0D6F4 = cpu->gpr[1]; uint32_t psx_brB_BFC0D6F4 = cpu->gpr[0]; - int psx_taken_BFC0D6F4 = (psx_brA_BFC0D6F4 != psx_brB_BFC0D6F4); + psx_taken_BFC0D6F4 = (psx_brA_BFC0D6F4 != psx_brB_BFC0D6F4); /* 0xBFC0D6F8: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC0D6F4) goto label_BFC0D6B4; @@ -47522,7 +49024,7 @@ label_BFC0D6FC: psx_check_interrupts(cpu); /* 0xBFC0D6FC: 16210004 bne $s1, $at, 0xBFC0D710 */ uint32_t psx_brA_BFC0D6FC = cpu->gpr[17]; uint32_t psx_brB_BFC0D6FC = cpu->gpr[1]; - int psx_taken_BFC0D6FC = (psx_brA_BFC0D6FC != psx_brB_BFC0D6FC); + psx_taken_BFC0D6FC = (psx_brA_BFC0D6FC != psx_brB_BFC0D6FC); /* 0xBFC0D700: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC0D6FC) goto label_BFC0D710; @@ -47533,7 +49035,7 @@ label_BFC0D704: psx_check_interrupts(cpu); /* 0xBFC0D704: 10000002 beq $zero, $zero, 0xBFC0D710 */ uint32_t psx_brA_BFC0D704 = cpu->gpr[0]; uint32_t psx_brB_BFC0D704 = cpu->gpr[0]; - int psx_taken_BFC0D704 = (psx_brA_BFC0D704 == psx_brB_BFC0D704); + psx_taken_BFC0D704 = (psx_brA_BFC0D704 == psx_brB_BFC0D704); /* 0xBFC0D708: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0D704) goto label_BFC0D710; @@ -47581,6 +49083,10 @@ void func_1FC0D72C(CPUState* cpu) { default: break; } } + int psx_taken_BFC0D764 = 0; + int psx_taken_BFC0D774 = 0; + int psx_taken_BFC0D780 = 0; + int psx_taken_BFC0D790 = 0; label_BFC0D72C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -47634,7 +49140,7 @@ label_BFC0D764: psx_check_interrupts(cpu); /* 0xBFC0D764: 04410006 bgez $v0, 0xBFC0D780 */ uint32_t psx_brA_BFC0D764 = cpu->gpr[2]; - int psx_taken_BFC0D764 = ((int32_t)psx_brA_BFC0D764 >= 0); + psx_taken_BFC0D764 = ((int32_t)psx_brA_BFC0D764 >= 0); /* 0xBFC0D768: 3059001D andi $t9, $v0, 0x1D */ cpu->gpr[25] = cpu->gpr[2] & 0x1Du; if (psx_taken_BFC0D764) goto label_BFC0D780; @@ -47655,7 +49161,7 @@ label_BFC0D774: psx_check_interrupts(cpu); /* 0xBFC0D774: 1000000D beq $zero, $zero, 0xBFC0D7AC */ uint32_t psx_brA_BFC0D774 = cpu->gpr[0]; uint32_t psx_brB_BFC0D774 = cpu->gpr[0]; - int psx_taken_BFC0D774 = (psx_brA_BFC0D774 == psx_brB_BFC0D774); + psx_taken_BFC0D774 = (psx_brA_BFC0D774 == psx_brB_BFC0D774); /* 0xBFC0D778: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0D774) goto label_BFC0D7AC; @@ -47673,7 +49179,7 @@ label_BFC0D780: psx_check_interrupts(cpu); /* 0xBFC0D780: 13200005 beq $t9, $zero, 0xBFC0D798 */ uint32_t psx_brA_BFC0D780 = cpu->gpr[25]; uint32_t psx_brB_BFC0D780 = cpu->gpr[0]; - int psx_taken_BFC0D780 = (psx_brA_BFC0D780 == psx_brB_BFC0D780); + psx_taken_BFC0D780 = (psx_brA_BFC0D780 == psx_brB_BFC0D780); /* 0xBFC0D784: 00000000 nop */ /* nop */ if (psx_taken_BFC0D780) goto label_BFC0D798; @@ -47694,7 +49200,7 @@ label_BFC0D790: psx_check_interrupts(cpu); /* 0xBFC0D790: 10000006 beq $zero, $zero, 0xBFC0D7AC */ uint32_t psx_brA_BFC0D790 = cpu->gpr[0]; uint32_t psx_brB_BFC0D790 = cpu->gpr[0]; - int psx_taken_BFC0D790 = (psx_brA_BFC0D790 == psx_brB_BFC0D790); + psx_taken_BFC0D790 = (psx_brA_BFC0D790 == psx_brB_BFC0D790); /* 0xBFC0D794: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0D790) goto label_BFC0D7AC; @@ -47756,6 +49262,10 @@ void func_1FC0D7BC(CPUState* cpu) { default: break; } } + int psx_taken_BFC0D7F4 = 0; + int psx_taken_BFC0D804 = 0; + int psx_taken_BFC0D810 = 0; + int psx_taken_BFC0D820 = 0; label_BFC0D7BC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -47809,7 +49319,7 @@ label_BFC0D7F4: psx_check_interrupts(cpu); /* 0xBFC0D7F4: 04410006 bgez $v0, 0xBFC0D810 */ uint32_t psx_brA_BFC0D7F4 = cpu->gpr[2]; - int psx_taken_BFC0D7F4 = ((int32_t)psx_brA_BFC0D7F4 >= 0); + psx_taken_BFC0D7F4 = ((int32_t)psx_brA_BFC0D7F4 >= 0); /* 0xBFC0D7F8: 3059001D andi $t9, $v0, 0x1D */ cpu->gpr[25] = cpu->gpr[2] & 0x1Du; if (psx_taken_BFC0D7F4) goto label_BFC0D810; @@ -47830,7 +49340,7 @@ label_BFC0D804: psx_check_interrupts(cpu); /* 0xBFC0D804: 1000000D beq $zero, $zero, 0xBFC0D83C */ uint32_t psx_brA_BFC0D804 = cpu->gpr[0]; uint32_t psx_brB_BFC0D804 = cpu->gpr[0]; - int psx_taken_BFC0D804 = (psx_brA_BFC0D804 == psx_brB_BFC0D804); + psx_taken_BFC0D804 = (psx_brA_BFC0D804 == psx_brB_BFC0D804); /* 0xBFC0D808: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0D804) goto label_BFC0D83C; @@ -47848,7 +49358,7 @@ label_BFC0D810: psx_check_interrupts(cpu); /* 0xBFC0D810: 13200005 beq $t9, $zero, 0xBFC0D828 */ uint32_t psx_brA_BFC0D810 = cpu->gpr[25]; uint32_t psx_brB_BFC0D810 = cpu->gpr[0]; - int psx_taken_BFC0D810 = (psx_brA_BFC0D810 == psx_brB_BFC0D810); + psx_taken_BFC0D810 = (psx_brA_BFC0D810 == psx_brB_BFC0D810); /* 0xBFC0D814: 00000000 nop */ /* nop */ if (psx_taken_BFC0D810) goto label_BFC0D828; @@ -47869,7 +49379,7 @@ label_BFC0D820: psx_check_interrupts(cpu); /* 0xBFC0D820: 10000006 beq $zero, $zero, 0xBFC0D83C */ uint32_t psx_brA_BFC0D820 = cpu->gpr[0]; uint32_t psx_brB_BFC0D820 = cpu->gpr[0]; - int psx_taken_BFC0D820 = (psx_brA_BFC0D820 == psx_brB_BFC0D820); + psx_taken_BFC0D820 = (psx_brA_BFC0D820 == psx_brB_BFC0D820); /* 0xBFC0D824: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC0D820) goto label_BFC0D83C; @@ -47917,6 +49427,7 @@ label_BFC0D83C: void func_1FC0D850(CPUState* cpu) { debug_server_log_call_entry(0x1FC0D850u); + int psx_taken_BFC0D86C = 0; label_BFC0D850: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -47943,7 +49454,7 @@ label_BFC0D864: { int32_t psx_a = (int32_t)cpu->gpr[9]; int32_t psx_b = (4); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[9] = (uint32_t)(int32_t)psx_r; } /* 0xBFC0D86C: 152AFFFD bne $t1, $t2, 0xBFC0D864 */ uint32_t psx_brA_BFC0D86C = cpu->gpr[9]; uint32_t psx_brB_BFC0D86C = cpu->gpr[10]; - int psx_taken_BFC0D86C = (psx_brA_BFC0D86C != psx_brB_BFC0D86C); + psx_taken_BFC0D86C = (psx_brA_BFC0D86C != psx_brB_BFC0D86C); /* 0xBFC0D870: 00000000 nop */ /* nop */ if (psx_taken_BFC0D86C) goto label_BFC0D864; @@ -48857,6 +50368,8 @@ label_BFC10030: void func_00000540(CPUState* cpu) { debug_server_log_call_entry(0x00000540u); + int psx_taken_BFC10060 = 0; + int psx_taken_BFC10088 = 0; label_BFC10040: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -48885,7 +50398,7 @@ label_BFC10054: { int32_t psx_a = (int32_t)cpu->gpr[6]; int32_t psx_b = (4); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[6] = (uint32_t)(int32_t)psx_r; } /* 0xBFC10060: 14A4FFFC bne $a1, $a0, 0xBFC10054 */ uint32_t psx_brA_BFC10060 = cpu->gpr[5]; uint32_t psx_brB_BFC10060 = cpu->gpr[4]; - int psx_taken_BFC10060 = (psx_brA_BFC10060 != psx_brB_BFC10060); + psx_taken_BFC10060 = (psx_brA_BFC10060 != psx_brB_BFC10060); /* 0xBFC10064: ACC2FFFC sw $v0, -4($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10064u); return; } g_debug_last_store_pc = 0xBFC10064u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC10060) goto label_BFC10054; @@ -48917,7 +50430,7 @@ label_BFC1007C: { int32_t psx_a = (int32_t)cpu->gpr[6]; int32_t psx_b = (4); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[6] = (uint32_t)(int32_t)psx_r; } /* 0xBFC10088: 14A4FFFC bne $a1, $a0, 0xBFC1007C */ uint32_t psx_brA_BFC10088 = cpu->gpr[5]; uint32_t psx_brB_BFC10088 = cpu->gpr[4]; - int psx_taken_BFC10088 = (psx_brA_BFC10088 != psx_brB_BFC10088); + psx_taken_BFC10088 = (psx_brA_BFC10088 != psx_brB_BFC10088); /* 0xBFC1008C: ACC2FFFC sw $v0, -4($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1008Cu); return; } g_debug_last_store_pc = 0xBFC1008Cu; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC10088) goto label_BFC1007C; @@ -48934,6 +50447,7 @@ label_BFC10090: void func_00000598(CPUState* cpu) { debug_server_log_call_entry(0x00000598u); + int psx_taken_BFC100B4 = 0; label_BFC10098: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -48960,7 +50474,7 @@ label_BFC100A8: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[3] ? 1 : 0); /* 0xBFC100B4: 1420FFFC bne $at, $zero, 0xBFC100A8 */ uint32_t psx_brA_BFC100B4 = cpu->gpr[1]; uint32_t psx_brB_BFC100B4 = cpu->gpr[0]; - int psx_taken_BFC100B4 = (psx_brA_BFC100B4 != psx_brB_BFC100B4); + psx_taken_BFC100B4 = (psx_brA_BFC100B4 != psx_brB_BFC100B4); /* 0xBFC100B8: 00000000 nop */ /* nop */ if (psx_taken_BFC100B4) goto label_BFC100A8; @@ -49170,6 +50684,14 @@ void func_00000C80(CPUState* cpu) { default: break; } } + int psx_taken_BFC107C4 = 0; + int psx_taken_BFC107E0 = 0; + int psx_taken_BFC108F0 = 0; + int psx_taken_BFC10900 = 0; + int psx_taken_BFC10910 = 0; + int psx_taken_BFC10918 = 0; + int psx_taken_BFC10930 = 0; + int psx_taken_BFC1093C = 0; label_BFC10780: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -49217,7 +50739,7 @@ label_BFC107C0: cpu->gpr[2] = cpu->gpr[2] & 0x3Cu; /* 0xBFC107C4: 14400009 bne $v0, $zero, 0xBFC107EC */ uint32_t psx_brA_BFC107C4 = cpu->gpr[2]; uint32_t psx_brB_BFC107C4 = cpu->gpr[0]; - int psx_taken_BFC107C4 = (psx_brA_BFC107C4 != psx_brB_BFC107C4); + psx_taken_BFC107C4 = (psx_brA_BFC107C4 != psx_brB_BFC107C4); /* 0xBFC107C8: 00000000 nop */ /* nop */ if (psx_taken_BFC107C4) goto label_BFC107EC; @@ -49238,7 +50760,7 @@ label_BFC107CC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (74)); /* 0xBFC107E0: 14410002 bne $v0, $at, 0xBFC107EC */ uint32_t psx_brA_BFC107E0 = cpu->gpr[2]; uint32_t psx_brB_BFC107E0 = cpu->gpr[1]; - int psx_taken_BFC107E0 = (psx_brA_BFC107E0 != psx_brB_BFC107E0); + psx_taken_BFC107E0 = (psx_brA_BFC107E0 != psx_brB_BFC107E0); /* 0xBFC107E4: 00000000 nop */ /* nop */ if (psx_taken_BFC107E0) goto label_BFC107EC; @@ -49401,7 +50923,7 @@ label_BFC108E8: /* nop */ /* 0xBFC108F0: 12C00011 beq $s6, $zero, 0xBFC10938 */ uint32_t psx_brA_BFC108F0 = cpu->gpr[22]; uint32_t psx_brB_BFC108F0 = cpu->gpr[0]; - int psx_taken_BFC108F0 = (psx_brA_BFC108F0 == psx_brB_BFC108F0); + psx_taken_BFC108F0 = (psx_brA_BFC108F0 == psx_brB_BFC108F0); /* 0xBFC108F4: 00000000 nop */ /* nop */ if (psx_taken_BFC108F0) goto label_BFC10938; @@ -49416,7 +50938,7 @@ label_BFC108F8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[22] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC108FCu); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC10900: 12200009 beq $s1, $zero, 0xBFC10928 */ uint32_t psx_brA_BFC10900 = cpu->gpr[17]; uint32_t psx_brB_BFC10900 = cpu->gpr[0]; - int psx_taken_BFC10900 = (psx_brA_BFC10900 == psx_brB_BFC10900); + psx_taken_BFC10900 = (psx_brA_BFC10900 == psx_brB_BFC10900); /* 0xBFC10904: 00000000 nop */ /* nop */ if (psx_taken_BFC10900) goto label_BFC10928; @@ -49437,7 +50959,7 @@ label_BFC10910: psx_check_interrupts(cpu); /* 0xBFC10910: 10400005 beq $v0, $zero, 0xBFC10928 */ uint32_t psx_brA_BFC10910 = cpu->gpr[2]; uint32_t psx_brB_BFC10910 = cpu->gpr[0]; - int psx_taken_BFC10910 = (psx_brA_BFC10910 == psx_brB_BFC10910); + psx_taken_BFC10910 = (psx_brA_BFC10910 == psx_brB_BFC10910); /* 0xBFC10914: 00000000 nop */ /* nop */ if (psx_taken_BFC10910) goto label_BFC10928; @@ -49448,7 +50970,7 @@ label_BFC10918: psx_check_interrupts(cpu); /* 0xBFC10918: 12000003 beq $s0, $zero, 0xBFC10928 */ uint32_t psx_brA_BFC10918 = cpu->gpr[16]; uint32_t psx_brB_BFC10918 = cpu->gpr[0]; - int psx_taken_BFC10918 = (psx_brA_BFC10918 == psx_brB_BFC10918); + psx_taken_BFC10918 = (psx_brA_BFC10918 == psx_brB_BFC10918); /* 0xBFC1091C: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC10918) goto label_BFC10928; @@ -49473,7 +50995,7 @@ label_BFC10928: /* nop */ /* 0xBFC10930: 16C0FFF1 bne $s6, $zero, 0xBFC108F8 */ uint32_t psx_brA_BFC10930 = cpu->gpr[22]; uint32_t psx_brB_BFC10930 = cpu->gpr[0]; - int psx_taken_BFC10930 = (psx_brA_BFC10930 != psx_brB_BFC10930); + psx_taken_BFC10930 = (psx_brA_BFC10930 != psx_brB_BFC10930); /* 0xBFC10934: 00000000 nop */ /* nop */ if (psx_taken_BFC10930) goto label_BFC108F8; @@ -49486,7 +51008,7 @@ label_BFC10938: { int32_t psx_a = (int32_t)cpu->gpr[19]; int32_t psx_b = (8); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[19] = (uint32_t)(int32_t)psx_r; } /* 0xBFC1093C: 1693FFEA bne $s4, $s3, 0xBFC108E8 */ uint32_t psx_brA_BFC1093C = cpu->gpr[20]; uint32_t psx_brB_BFC1093C = cpu->gpr[19]; - int psx_taken_BFC1093C = (psx_brA_BFC1093C != psx_brB_BFC1093C); + psx_taken_BFC1093C = (psx_brA_BFC1093C != psx_brB_BFC1093C); /* 0xBFC10940: 00000000 nop */ /* nop */ if (psx_taken_BFC1093C) goto label_BFC108E8; @@ -49562,6 +51084,8 @@ label_BFC109A0: void func_00000EB0(CPUState* cpu) { debug_server_log_call_entry(0x00000EB0u); + int psx_taken_BFC109D4 = 0; + int psx_taken_BFC109FC = 0; label_BFC109B0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -49592,7 +51116,7 @@ label_BFC109C8: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); /* 0xBFC109D4: 175BFFFC bne $k0, $k1, 0xBFC109C8 */ uint32_t psx_brA_BFC109D4 = cpu->gpr[26]; uint32_t psx_brB_BFC109D4 = cpu->gpr[27]; - int psx_taken_BFC109D4 = (psx_brA_BFC109D4 != psx_brB_BFC109D4); + psx_taken_BFC109D4 = (psx_brA_BFC109D4 != psx_brB_BFC109D4); /* 0xBFC109D8: AC43FFFC sw $v1, -4($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC109D8u); return; } g_debug_last_store_pc = 0xBFC109D8u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC109D4) goto label_BFC109C8; @@ -49624,7 +51148,7 @@ label_BFC109F0: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); /* 0xBFC109FC: 175BFFFC bne $k0, $k1, 0xBFC109F0 */ uint32_t psx_brA_BFC109FC = cpu->gpr[26]; uint32_t psx_brB_BFC109FC = cpu->gpr[27]; - int psx_taken_BFC109FC = (psx_brA_BFC109FC != psx_brB_BFC109FC); + psx_taken_BFC109FC = (psx_brA_BFC109FC != psx_brB_BFC109FC); /* 0xBFC10A00: AC43FFFC sw $v1, -4($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10A00u); return; } g_debug_last_store_pc = 0xBFC10A00u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC109FC) goto label_BFC109F0; @@ -49792,6 +51316,13 @@ label_BFC10A40: void func_00001030(CPUState* cpu) { debug_server_log_call_entry(0x00001030u); + int psx_taken_BFC10B30 = 0; + int psx_taken_BFC10B48 = 0; + int psx_taken_BFC10B54 = 0; + int psx_taken_BFC10B8C = 0; + int psx_taken_BFC10B94 = 0; + int psx_taken_BFC10BA0 = 0; + int psx_taken_BFC10BA8 = 0; label_BFC10B30: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -49799,7 +51330,7 @@ label_BFC10B30: psx_check_interrupts(cpu); /* 0xBFC10B30: 10800021 beq $a0, $zero, 0xBFC10BB8 */ uint32_t psx_brA_BFC10B30 = cpu->gpr[4]; uint32_t psx_brB_BFC10B30 = cpu->gpr[0]; - int psx_taken_BFC10B30 = (psx_brA_BFC10B30 == psx_brB_BFC10B30); + psx_taken_BFC10B30 = (psx_brA_BFC10B30 == psx_brB_BFC10B30); /* 0xBFC10B34: 00000000 nop */ /* nop */ if (psx_taken_BFC10B30) { cpu->pc = 0xBFC10BB8u; return; } @@ -49818,7 +51349,7 @@ label_BFC10B38: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[4] ? 1 : 0); /* 0xBFC10B48: 14200005 bne $at, $zero, 0xBFC10B60 */ uint32_t psx_brA_BFC10B48 = cpu->gpr[1]; uint32_t psx_brB_BFC10B48 = cpu->gpr[0]; - int psx_taken_BFC10B48 = (psx_brA_BFC10B48 != psx_brB_BFC10B48); + psx_taken_BFC10B48 = (psx_brA_BFC10B48 != psx_brB_BFC10B48); /* 0xBFC10B4C: 00801821 addu $v1, $a0, $zero */ cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC10B48) goto label_BFC10B60; @@ -49831,7 +51362,7 @@ label_BFC10B50: cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; /* 0xBFC10B54: 10000003 beq $zero, $zero, 0xBFC10B64 */ uint32_t psx_brA_BFC10B54 = cpu->gpr[0]; uint32_t psx_brB_BFC10B54 = cpu->gpr[0]; - int psx_taken_BFC10B54 = (psx_brA_BFC10B54 == psx_brB_BFC10B54); + psx_taken_BFC10B54 = (psx_brA_BFC10B54 == psx_brB_BFC10B54); /* 0xBFC10B58: 00802821 addu $a1, $a0, $zero */ cpu->gpr[5] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC10B54) goto label_BFC10B64; @@ -49876,7 +51407,7 @@ label_BFC10B64: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[3] ? 1 : 0); /* 0xBFC10B8C: 14200004 bne $at, $zero, 0xBFC10BA0 */ uint32_t psx_brA_BFC10B8C = cpu->gpr[1]; uint32_t psx_brB_BFC10B8C = cpu->gpr[0]; - int psx_taken_BFC10B8C = (psx_brA_BFC10B8C != psx_brB_BFC10B8C); + psx_taken_BFC10B8C = (psx_brA_BFC10B8C != psx_brB_BFC10B8C); /* 0xBFC10B90: 0045082B sltu $at, $v0, $a1 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[5] ? 1 : 0); if (psx_taken_BFC10B8C) goto label_BFC10BA0; @@ -49887,7 +51418,7 @@ label_BFC10B94: psx_check_interrupts(cpu); /* 0xBFC10B94: 10000013 beq $zero, $zero, 0xBFC10BE4 */ uint32_t psx_brA_BFC10B94 = cpu->gpr[0]; uint32_t psx_brB_BFC10B94 = cpu->gpr[0]; - int psx_taken_BFC10B94 = (psx_brA_BFC10B94 == psx_brB_BFC10B94); + psx_taken_BFC10B94 = (psx_brA_BFC10B94 == psx_brB_BFC10B94); /* 0xBFC10B98: 00603021 addu $a2, $v1, $zero */ cpu->gpr[6] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC10B94) { cpu->pc = 0xBFC10BE4u; return; } @@ -49905,7 +51436,7 @@ label_BFC10BA0: psx_check_interrupts(cpu); /* 0xBFC10BA0: 14200003 bne $at, $zero, 0xBFC10BB0 */ uint32_t psx_brA_BFC10BA0 = cpu->gpr[1]; uint32_t psx_brB_BFC10BA0 = cpu->gpr[0]; - int psx_taken_BFC10BA0 = (psx_brA_BFC10BA0 != psx_brB_BFC10BA0); + psx_taken_BFC10BA0 = (psx_brA_BFC10BA0 != psx_brB_BFC10BA0); /* 0xBFC10BA4: 00000000 nop */ /* nop */ if (psx_taken_BFC10BA0) goto label_BFC10BB0; @@ -49916,7 +51447,7 @@ label_BFC10BA8: psx_check_interrupts(cpu); /* 0xBFC10BA8: 1000000E beq $zero, $zero, 0xBFC10BE4 */ uint32_t psx_brA_BFC10BA8 = cpu->gpr[0]; uint32_t psx_brB_BFC10BA8 = cpu->gpr[0]; - int psx_taken_BFC10BA8 = (psx_brA_BFC10BA8 == psx_brB_BFC10BA8); + psx_taken_BFC10BA8 = (psx_brA_BFC10BA8 == psx_brB_BFC10BA8); /* 0xBFC10BAC: 00A03021 addu $a2, $a1, $zero */ cpu->gpr[6] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC10BA8) { cpu->pc = 0xBFC10BE4u; return; } @@ -49933,6 +51464,7 @@ label_BFC10BB0: void func_000010B8(CPUState* cpu) { debug_server_log_call_entry(0x000010B8u); + int psx_taken_BFC10BD0 = 0; label_BFC10BB8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -49952,7 +51484,7 @@ label_BFC10BB8: cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < cpu->gpr[15] ? 1 : 0); /* 0xBFC10BD0: 14200004 bne $at, $zero, 0xBFC10BE4 */ uint32_t psx_brA_BFC10BD0 = cpu->gpr[1]; uint32_t psx_brB_BFC10BD0 = cpu->gpr[0]; - int psx_taken_BFC10BD0 = (psx_brA_BFC10BD0 != psx_brB_BFC10BD0); + psx_taken_BFC10BD0 = (psx_brA_BFC10BD0 != psx_brB_BFC10BD0); /* 0xBFC10BD4: 00003021 addu $a2, $zero, $zero */ cpu->gpr[6] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC10BD0) { cpu->pc = 0xBFC10BE4u; return; } @@ -49981,6 +51513,8 @@ label_BFC10BE0: void func_000010E4(CPUState* cpu) { debug_server_log_call_entry(0x000010E4u); + int psx_taken_BFC10BF4 = 0; + int psx_taken_BFC10C14 = 0; label_BFC10BE4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -49996,7 +51530,7 @@ label_BFC10BE4: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC10BF4: 04C10002 bgez $a2, 0xBFC10C00 */ uint32_t psx_brA_BFC10BF4 = cpu->gpr[6]; - int psx_taken_BFC10BF4 = ((int32_t)psx_brA_BFC10BF4 >= 0); + psx_taken_BFC10BF4 = ((int32_t)psx_brA_BFC10BF4 >= 0); /* 0xBFC10BF8: 00C00821 addu $at, $a2, $zero */ cpu->gpr[1] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC10BF4) goto label_BFC10C00; @@ -50024,7 +51558,7 @@ label_BFC10C00: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10C10u); return; } g_debug_last_store_pc = 0xBFC10C10u; cpu->write_word(psx_addr, cpu->gpr[10]); } /* 0xBFC10C14: 05610002 bgez $t3, 0xBFC10C20 */ uint32_t psx_brA_BFC10C14 = cpu->gpr[11]; - int psx_taken_BFC10C14 = ((int32_t)psx_brA_BFC10C14 >= 0); + psx_taken_BFC10C14 = ((int32_t)psx_brA_BFC10C14 >= 0); /* 0xBFC10C18: 01600821 addu $at, $t3, $zero */ cpu->gpr[1] = cpu->gpr[11] + cpu->gpr[0]; if (psx_taken_BFC10C14) goto label_BFC10C20; @@ -50105,6 +51639,33 @@ void func_00001174(CPUState* cpu) { default: break; } } + int psx_taken_BFC10CA8 = 0; + int psx_taken_BFC10CB0 = 0; + int psx_taken_BFC10CD0 = 0; + int psx_taken_BFC10CD8 = 0; + int psx_taken_BFC10D04 = 0; + int psx_taken_BFC10D0C = 0; + int psx_taken_BFC10D48 = 0; + int psx_taken_BFC10D54 = 0; + int psx_taken_BFC10D68 = 0; + int psx_taken_BFC10D74 = 0; + int psx_taken_BFC10D90 = 0; + int psx_taken_BFC10DB0 = 0; + int psx_taken_BFC10DBC = 0; + int psx_taken_BFC10DE0 = 0; + int psx_taken_BFC10DEC = 0; + int psx_taken_BFC10DFC = 0; + int psx_taken_BFC10E04 = 0; + int psx_taken_BFC10E18 = 0; + int psx_taken_BFC10E24 = 0; + int psx_taken_BFC10E40 = 0; + int psx_taken_BFC10E60 = 0; + int psx_taken_BFC10E68 = 0; + int psx_taken_BFC10E8C = 0; + int psx_taken_BFC10E98 = 0; + int psx_taken_BFC10EA8 = 0; + int psx_taken_BFC10EB0 = 0; + int psx_taken_BFC10ED8 = 0; label_BFC10C74: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -50138,7 +51699,7 @@ label_BFC10C74: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC10CA8: 11C00003 beq $t6, $zero, 0xBFC10CB8 */ uint32_t psx_brA_BFC10CA8 = cpu->gpr[14]; uint32_t psx_brB_BFC10CA8 = cpu->gpr[0]; - int psx_taken_BFC10CA8 = (psx_brA_BFC10CA8 == psx_brB_BFC10CA8); + psx_taken_BFC10CA8 = (psx_brA_BFC10CA8 == psx_brB_BFC10CA8); /* 0xBFC10CAC: 02218824 and $s1, $s1, $at */ cpu->gpr[17] = cpu->gpr[17] & cpu->gpr[1]; if (psx_taken_BFC10CA8) goto label_BFC10CB8; @@ -50149,7 +51710,7 @@ label_BFC10CB0: psx_check_interrupts(cpu); /* 0xBFC10CB0: 1000001F beq $zero, $zero, 0xBFC10D30 */ uint32_t psx_brA_BFC10CB0 = cpu->gpr[0]; uint32_t psx_brB_BFC10CB0 = cpu->gpr[0]; - int psx_taken_BFC10CB0 = (psx_brA_BFC10CB0 == psx_brB_BFC10CB0); + psx_taken_BFC10CB0 = (psx_brA_BFC10CB0 == psx_brB_BFC10CB0); /* 0xBFC10CB4: 2412FFFE addiu $s2, $zero, -2 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); if (psx_taken_BFC10CB0) goto label_BFC10D30; @@ -50172,7 +51733,7 @@ label_BFC10CB8: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[15] ? 1 : 0); /* 0xBFC10CD0: 14200004 bne $at, $zero, 0xBFC10CE4 */ uint32_t psx_brA_BFC10CD0 = cpu->gpr[1]; uint32_t psx_brB_BFC10CD0 = cpu->gpr[0]; - int psx_taken_BFC10CD0 = (psx_brA_BFC10CD0 != psx_brB_BFC10CD0); + psx_taken_BFC10CD0 = (psx_brA_BFC10CD0 != psx_brB_BFC10CD0); /* 0xBFC10CD4: 2412FFFE addiu $s2, $zero, -2 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); if (psx_taken_BFC10CD0) goto label_BFC10CE4; @@ -50183,7 +51744,7 @@ label_BFC10CD8: psx_check_interrupts(cpu); /* 0xBFC10CD8: 10000085 beq $zero, $zero, 0xBFC10EF0 */ uint32_t psx_brA_BFC10CD8 = cpu->gpr[0]; uint32_t psx_brB_BFC10CD8 = cpu->gpr[0]; - int psx_taken_BFC10CD8 = (psx_brA_BFC10CD8 == psx_brB_BFC10CD8); + psx_taken_BFC10CD8 = (psx_brA_BFC10CD8 == psx_brB_BFC10CD8); /* 0xBFC10CDC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC10CD8) goto label_BFC10EF0; @@ -50223,7 +51784,7 @@ label_BFC10D04: psx_check_interrupts(cpu); /* 0xBFC10D04: 10400003 beq $v0, $zero, 0xBFC10D14 */ uint32_t psx_brA_BFC10D04 = cpu->gpr[2]; uint32_t psx_brB_BFC10D04 = cpu->gpr[0]; - int psx_taken_BFC10D04 = (psx_brA_BFC10D04 == psx_brB_BFC10D04); + psx_taken_BFC10D04 = (psx_brA_BFC10D04 == psx_brB_BFC10D04); /* 0xBFC10D08: 00000000 nop */ /* nop */ if (psx_taken_BFC10D04) goto label_BFC10D14; @@ -50234,7 +51795,7 @@ label_BFC10D0C: psx_check_interrupts(cpu); /* 0xBFC10D0C: 10000078 beq $zero, $zero, 0xBFC10EF0 */ uint32_t psx_brA_BFC10D0C = cpu->gpr[0]; uint32_t psx_brB_BFC10D0C = cpu->gpr[0]; - int psx_taken_BFC10D0C = (psx_brA_BFC10D0C == psx_brB_BFC10D0C); + psx_taken_BFC10D0C = (psx_brA_BFC10D0C == psx_brB_BFC10D0C); /* 0xBFC10D10: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC10D0C) goto label_BFC10EF0; @@ -50281,7 +51842,7 @@ label_BFC10D48: psx_check_interrupts(cpu); /* 0xBFC10D48: 10600047 beq $v1, $zero, 0xBFC10E68 */ uint32_t psx_brA_BFC10D48 = cpu->gpr[3]; uint32_t psx_brB_BFC10D48 = cpu->gpr[0]; - int psx_taken_BFC10D48 = (psx_brA_BFC10D48 == psx_brB_BFC10D48); + psx_taken_BFC10D48 = (psx_brA_BFC10D48 == psx_brB_BFC10D48); /* 0xBFC10D4C: 00000000 nop */ /* nop */ if (psx_taken_BFC10D48) goto label_BFC10E68; @@ -50294,7 +51855,7 @@ label_BFC10D50: cpu->gpr[2] = cpu->gpr[17] | 0x1u; /* 0xBFC10D54: 14440007 bne $v0, $a0, 0xBFC10D74 */ uint32_t psx_brA_BFC10D54 = cpu->gpr[2]; uint32_t psx_brB_BFC10D54 = cpu->gpr[4]; - int psx_taken_BFC10D54 = (psx_brA_BFC10D54 != psx_brB_BFC10D54); + psx_taken_BFC10D54 = (psx_brA_BFC10D54 != psx_brB_BFC10D54); /* 0xBFC10D58: 0044082B sltu $at, $v0, $a0 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[4] ? 1 : 0); if (psx_taken_BFC10D54) goto label_BFC10D74; @@ -50311,7 +51872,7 @@ label_BFC10D5C: cpu->gpr[9] = cpu->gpr[4] & cpu->gpr[18]; /* 0xBFC10D68: 1000005D beq $zero, $zero, 0xBFC10EE0 */ uint32_t psx_brA_BFC10D68 = cpu->gpr[0]; uint32_t psx_brB_BFC10D68 = cpu->gpr[0]; - int psx_taken_BFC10D68 = (psx_brA_BFC10D68 == psx_brB_BFC10D68); + psx_taken_BFC10D68 = (psx_brA_BFC10D68 == psx_brB_BFC10D68); /* 0xBFC10D6C: AD490000 sw $t1, 0($t2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[10] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10D6Cu); return; } g_debug_last_store_pc = 0xBFC10D6Cu; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC10D68) goto label_BFC10EE0; @@ -50329,7 +51890,7 @@ label_BFC10D74: psx_check_interrupts(cpu); /* 0xBFC10D74: 10200011 beq $at, $zero, 0xBFC10DBC */ uint32_t psx_brA_BFC10D74 = cpu->gpr[1]; uint32_t psx_brB_BFC10D74 = cpu->gpr[0]; - int psx_taken_BFC10D74 = (psx_brA_BFC10D74 == psx_brB_BFC10D74); + psx_taken_BFC10D74 = (psx_brA_BFC10D74 == psx_brB_BFC10D74); /* 0xBFC10D78: 0091082B sltu $at, $a0, $s1 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < cpu->gpr[17] ? 1 : 0); if (psx_taken_BFC10D74) goto label_BFC10DBC; @@ -50350,7 +51911,7 @@ label_BFC10D7C: cpu->gpr[25] = 0x00010000u; /* 0xBFC10D90: 06210002 bgez $s1, 0xBFC10D9C */ uint32_t psx_brA_BFC10D90 = cpu->gpr[17]; - int psx_taken_BFC10D90 = ((int32_t)psx_brA_BFC10D90 >= 0); + psx_taken_BFC10D90 = ((int32_t)psx_brA_BFC10D90 >= 0); /* 0xBFC10D94: 02200821 addu $at, $s1, $zero */ cpu->gpr[1] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC10D90) goto label_BFC10D9C; @@ -50378,7 +51939,7 @@ label_BFC10D9C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[25] + (-31236)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10DACu); return; } cpu->gpr[25] = cpu->read_word(psx_addr); } /* 0xBFC10DB0: 1000004B beq $zero, $zero, 0xBFC10EE0 */ uint32_t psx_brA_BFC10DB0 = cpu->gpr[0]; uint32_t psx_brB_BFC10DB0 = cpu->gpr[0]; - int psx_taken_BFC10DB0 = (psx_brA_BFC10DB0 == psx_brB_BFC10DB0); + psx_taken_BFC10DB0 = (psx_brA_BFC10DB0 == psx_brB_BFC10DB0); /* 0xBFC10DB4: AF310000 sw $s1, 0($t9) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[25] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10DB4u); return; } g_debug_last_store_pc = 0xBFC10DB4u; cpu->write_word(psx_addr, cpu->gpr[17]); } if (psx_taken_BFC10DB0) goto label_BFC10EE0; @@ -50396,7 +51957,7 @@ label_BFC10DBC: psx_check_interrupts(cpu); /* 0xBFC10DBC: 1020FFE2 beq $at, $zero, 0xBFC10D48 */ uint32_t psx_brA_BFC10DBC = cpu->gpr[1]; uint32_t psx_brB_BFC10DBC = cpu->gpr[0]; - int psx_taken_BFC10DBC = (psx_brA_BFC10DBC == psx_brB_BFC10DBC); + psx_taken_BFC10DBC = (psx_brA_BFC10DBC == psx_brB_BFC10DBC); /* 0xBFC10DC0: 00000000 nop */ /* nop */ if (psx_taken_BFC10DBC) goto label_BFC10D48; @@ -50421,7 +51982,7 @@ label_BFC10DC4: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); /* 0xBFC10DE0: 16420010 bne $s2, $v0, 0xBFC10E24 */ uint32_t psx_brA_BFC10DE0 = cpu->gpr[18]; uint32_t psx_brB_BFC10DE0 = cpu->gpr[2]; - int psx_taken_BFC10DE0 = (psx_brA_BFC10DE0 != psx_brB_BFC10DE0); + psx_taken_BFC10DE0 = (psx_brA_BFC10DE0 != psx_brB_BFC10DE0); /* 0xBFC10DE4: 304E0001 andi $t6, $v0, 0x1 */ cpu->gpr[14] = cpu->gpr[2] & 0x1u; if (psx_taken_BFC10DE0) goto label_BFC10E24; @@ -50434,7 +51995,7 @@ label_BFC10DE8: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); /* 0xBFC10DEC: 1E000007 bgtz $s0, 0xBFC10E0C */ uint32_t psx_brA_BFC10DEC = cpu->gpr[16]; - int psx_taken_BFC10DEC = ((int32_t)psx_brA_BFC10DEC > 0); + psx_taken_BFC10DEC = ((int32_t)psx_brA_BFC10DEC > 0); /* 0xBFC10DF0: 00000000 nop */ /* nop */ if (psx_taken_BFC10DEC) goto label_BFC10E0C; @@ -50455,7 +52016,7 @@ label_BFC10DFC: psx_check_interrupts(cpu); /* 0xBFC10DFC: 10400014 beq $v0, $zero, 0xBFC10E50 */ uint32_t psx_brA_BFC10DFC = cpu->gpr[2]; uint32_t psx_brB_BFC10DFC = cpu->gpr[0]; - int psx_taken_BFC10DFC = (psx_brA_BFC10DFC == psx_brB_BFC10DFC); + psx_taken_BFC10DFC = (psx_brA_BFC10DFC == psx_brB_BFC10DFC); /* 0xBFC10E00: 00000000 nop */ /* nop */ if (psx_taken_BFC10DFC) goto label_BFC10E50; @@ -50466,7 +52027,7 @@ label_BFC10E04: psx_check_interrupts(cpu); /* 0xBFC10E04: 1000003A beq $zero, $zero, 0xBFC10EF0 */ uint32_t psx_brA_BFC10E04 = cpu->gpr[0]; uint32_t psx_brB_BFC10E04 = cpu->gpr[0]; - int psx_taken_BFC10E04 = (psx_brA_BFC10E04 == psx_brB_BFC10E04); + psx_taken_BFC10E04 = (psx_brA_BFC10E04 == psx_brB_BFC10E04); /* 0xBFC10E08: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC10E04) goto label_BFC10EF0; @@ -50483,7 +52044,7 @@ label_BFC10E0C: cpu->gpr[1] = 0x00010000u; /* 0xBFC10E18: 1000000D beq $zero, $zero, 0xBFC10E50 */ uint32_t psx_brA_BFC10E18 = cpu->gpr[0]; uint32_t psx_brB_BFC10E18 = cpu->gpr[0]; - int psx_taken_BFC10E18 = (psx_brA_BFC10E18 == psx_brB_BFC10E18); + psx_taken_BFC10E18 = (psx_brA_BFC10E18 == psx_brB_BFC10E18); /* 0xBFC10E1C: AC2B85FC sw $t3, -31236($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31236)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10E1Cu); return; } g_debug_last_store_pc = 0xBFC10E1Cu; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC10E18) goto label_BFC10E50; @@ -50501,7 +52062,7 @@ label_BFC10E24: psx_check_interrupts(cpu); /* 0xBFC10E24: 11C00008 beq $t6, $zero, 0xBFC10E48 */ uint32_t psx_brA_BFC10E24 = cpu->gpr[14]; uint32_t psx_brB_BFC10E24 = cpu->gpr[0]; - int psx_taken_BFC10E24 = (psx_brA_BFC10E24 == psx_brB_BFC10E24); + psx_taken_BFC10E24 = (psx_brA_BFC10E24 == psx_brB_BFC10E24); /* 0xBFC10E28: 00000000 nop */ /* nop */ if (psx_taken_BFC10E24) goto label_BFC10E48; @@ -50522,7 +52083,7 @@ label_BFC10E2C: cpu->gpr[12] = (uint32_t)((int32_t)cpu->gpr[15] + (4)); /* 0xBFC10E40: 10000003 beq $zero, $zero, 0xBFC10E50 */ uint32_t psx_brA_BFC10E40 = cpu->gpr[0]; uint32_t psx_brB_BFC10E40 = cpu->gpr[0]; - int psx_taken_BFC10E40 = (psx_brA_BFC10E40 == psx_brB_BFC10E40); + psx_taken_BFC10E40 = (psx_brA_BFC10E40 == psx_brB_BFC10E40); /* 0xBFC10E44: AF0C0000 sw $t4, 0($t8) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10E44u); return; } g_debug_last_store_pc = 0xBFC10E44u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC10E40) goto label_BFC10E50; @@ -50550,7 +52111,7 @@ label_BFC10E50: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[25] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10E5Cu); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC10E60: 1000FFB9 beq $zero, $zero, 0xBFC10D48 */ uint32_t psx_brA_BFC10E60 = cpu->gpr[0]; uint32_t psx_brB_BFC10E60 = cpu->gpr[0]; - int psx_taken_BFC10E60 = (psx_brA_BFC10E60 == psx_brB_BFC10E60); + psx_taken_BFC10E60 = (psx_brA_BFC10E60 == psx_brB_BFC10E60); /* 0xBFC10E64: 30830001 andi $v1, $a0, 0x1 */ cpu->gpr[3] = cpu->gpr[4] & 0x1u; if (psx_taken_BFC10E60) goto label_BFC10D48; @@ -50561,7 +52122,7 @@ label_BFC10E68: psx_check_interrupts(cpu); /* 0xBFC10E68: 1244000A beq $s2, $a0, 0xBFC10E94 */ uint32_t psx_brA_BFC10E68 = cpu->gpr[18]; uint32_t psx_brB_BFC10E68 = cpu->gpr[4]; - int psx_taken_BFC10E68 = (psx_brA_BFC10E68 == psx_brB_BFC10E68); + psx_taken_BFC10E68 = (psx_brA_BFC10E68 == psx_brB_BFC10E68); /* 0xBFC10E6C: 00000000 nop */ /* nop */ if (psx_taken_BFC10E68) goto label_BFC10E94; @@ -50586,7 +52147,7 @@ label_BFC10E70: cpu->gpr[1] = 0x00010000u; /* 0xBFC10E8C: 1000000E beq $zero, $zero, 0xBFC10EC8 */ uint32_t psx_brA_BFC10E8C = cpu->gpr[0]; uint32_t psx_brB_BFC10E8C = cpu->gpr[0]; - int psx_taken_BFC10E8C = (psx_brA_BFC10E8C == psx_brB_BFC10E8C); + psx_taken_BFC10E8C = (psx_brA_BFC10E8C == psx_brB_BFC10E8C); /* 0xBFC10E90: AC2E85FC sw $t6, -31236($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31236)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10E90u); return; } g_debug_last_store_pc = 0xBFC10E90u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC10E8C) goto label_BFC10EC8; @@ -50599,7 +52160,7 @@ label_BFC10E94: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); /* 0xBFC10E98: 1E000007 bgtz $s0, 0xBFC10EB8 */ uint32_t psx_brA_BFC10E98 = cpu->gpr[16]; - int psx_taken_BFC10E98 = ((int32_t)psx_brA_BFC10E98 > 0); + psx_taken_BFC10E98 = ((int32_t)psx_brA_BFC10E98 > 0); /* 0xBFC10E9C: 00000000 nop */ /* nop */ if (psx_taken_BFC10E98) goto label_BFC10EB8; @@ -50620,7 +52181,7 @@ label_BFC10EA8: psx_check_interrupts(cpu); /* 0xBFC10EA8: 10400007 beq $v0, $zero, 0xBFC10EC8 */ uint32_t psx_brA_BFC10EA8 = cpu->gpr[2]; uint32_t psx_brB_BFC10EA8 = cpu->gpr[0]; - int psx_taken_BFC10EA8 = (psx_brA_BFC10EA8 == psx_brB_BFC10EA8); + psx_taken_BFC10EA8 = (psx_brA_BFC10EA8 == psx_brB_BFC10EA8); /* 0xBFC10EAC: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC10EA8) goto label_BFC10EC8; @@ -50631,7 +52192,7 @@ label_BFC10EB0: psx_check_interrupts(cpu); /* 0xBFC10EB0: 1000000F beq $zero, $zero, 0xBFC10EF0 */ uint32_t psx_brA_BFC10EB0 = cpu->gpr[0]; uint32_t psx_brB_BFC10EB0 = cpu->gpr[0]; - int psx_taken_BFC10EB0 = (psx_brA_BFC10EB0 == psx_brB_BFC10EB0); + psx_taken_BFC10EB0 = (psx_brA_BFC10EB0 == psx_brB_BFC10EB0); /* 0xBFC10EB4: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC10EB0) goto label_BFC10EF0; @@ -50663,7 +52224,7 @@ label_BFC10EC8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[15] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10ED4u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC10ED8: 1000FF9B beq $zero, $zero, 0xBFC10D48 */ uint32_t psx_brA_BFC10ED8 = cpu->gpr[0]; uint32_t psx_brB_BFC10ED8 = cpu->gpr[0]; - int psx_taken_BFC10ED8 = (psx_brA_BFC10ED8 == psx_brB_BFC10ED8); + psx_taken_BFC10ED8 = (psx_brA_BFC10ED8 == psx_brB_BFC10ED8); /* 0xBFC10EDC: 30830001 andi $v1, $a0, 0x1 */ cpu->gpr[3] = cpu->gpr[4] & 0x1u; if (psx_taken_BFC10ED8) goto label_BFC10D48; @@ -50747,6 +52308,20 @@ label_BFC10F20: void func_00001444(CPUState* cpu) { debug_server_log_call_entry(0x00001444u); + int psx_taken_BFC10F5C = 0; + int psx_taken_BFC10F64 = 0; + int psx_taken_BFC10F6C = 0; + int psx_taken_BFC10F7C = 0; + int psx_taken_BFC10F8C = 0; + int psx_taken_BFC10F94 = 0; + int psx_taken_BFC10F9C = 0; + int psx_taken_BFC10FA8 = 0; + int psx_taken_BFC10FB0 = 0; + int psx_taken_BFC10FBC = 0; + int psx_taken_BFC10FCC = 0; + int psx_taken_BFC10FDC = 0; + int psx_taken_BFC10FE4 = 0; + int psx_taken_BFC10FF4 = 0; label_BFC10F44: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -50766,7 +52341,7 @@ label_BFC10F44: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-8)); /* 0xBFC10F5C: 14C00003 bne $a2, $zero, 0xBFC10F6C */ uint32_t psx_brA_BFC10F5C = cpu->gpr[6]; uint32_t psx_brB_BFC10F5C = cpu->gpr[0]; - int psx_taken_BFC10F5C = (psx_brA_BFC10F5C != psx_brB_BFC10F5C); + psx_taken_BFC10F5C = (psx_brA_BFC10F5C != psx_brB_BFC10F5C); /* 0xBFC10F60: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC10F5C) goto label_BFC10F6C; @@ -50777,7 +52352,7 @@ label_BFC10F64: psx_check_interrupts(cpu); /* 0xBFC10F64: 10000026 beq $zero, $zero, 0xBFC11000 */ uint32_t psx_brA_BFC10F64 = cpu->gpr[0]; uint32_t psx_brB_BFC10F64 = cpu->gpr[0]; - int psx_taken_BFC10F64 = (psx_brA_BFC10F64 == psx_brB_BFC10F64); + psx_taken_BFC10F64 = (psx_brA_BFC10F64 == psx_brB_BFC10F64); /* 0xBFC10F68: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC10F64) goto label_BFC11000; @@ -50788,7 +52363,7 @@ label_BFC10F6C: psx_check_interrupts(cpu); /* 0xBFC10F6C: 14C50005 bne $a2, $a1, 0xBFC10F84 */ uint32_t psx_brA_BFC10F6C = cpu->gpr[6]; uint32_t psx_brB_BFC10F6C = cpu->gpr[5]; - int psx_taken_BFC10F6C = (psx_brA_BFC10F6C != psx_brB_BFC10F6C); + psx_taken_BFC10F6C = (psx_brA_BFC10F6C != psx_brB_BFC10F6C); /* 0xBFC10F70: 00000000 nop */ /* nop */ if (psx_taken_BFC10F6C) goto label_BFC10F84; @@ -50803,7 +52378,7 @@ label_BFC10F74: cpu->gpr[2] = cpu->gpr[6] + cpu->gpr[0]; /* 0xBFC10F7C: 10000020 beq $zero, $zero, 0xBFC11000 */ uint32_t psx_brA_BFC10F7C = cpu->gpr[0]; uint32_t psx_brB_BFC10F7C = cpu->gpr[0]; - int psx_taken_BFC10F7C = (psx_brA_BFC10F7C == psx_brB_BFC10F7C); + psx_taken_BFC10F7C = (psx_brA_BFC10F7C == psx_brB_BFC10F7C); /* 0xBFC10F80: AC780000 sw $t8, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10F80u); return; } g_debug_last_store_pc = 0xBFC10F80u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC10F7C) goto label_BFC11000; @@ -50818,7 +52393,7 @@ label_BFC10F84: /* nop */ /* 0xBFC10F8C: 14400003 bne $v0, $zero, 0xBFC10F9C */ uint32_t psx_brA_BFC10F8C = cpu->gpr[2]; uint32_t psx_brB_BFC10F8C = cpu->gpr[0]; - int psx_taken_BFC10F8C = (psx_brA_BFC10F8C != psx_brB_BFC10F8C); + psx_taken_BFC10F8C = (psx_brA_BFC10F8C != psx_brB_BFC10F8C); /* 0xBFC10F90: 00000000 nop */ /* nop */ if (psx_taken_BFC10F8C) goto label_BFC10F9C; @@ -50829,7 +52404,7 @@ label_BFC10F94: psx_check_interrupts(cpu); /* 0xBFC10F94: 1000001A beq $zero, $zero, 0xBFC11000 */ uint32_t psx_brA_BFC10F94 = cpu->gpr[0]; uint32_t psx_brB_BFC10F94 = cpu->gpr[0]; - int psx_taken_BFC10F94 = (psx_brA_BFC10F94 == psx_brB_BFC10F94); + psx_taken_BFC10F94 = (psx_brA_BFC10F94 == psx_brB_BFC10F94); /* 0xBFC10F98: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC10F94) goto label_BFC11000; @@ -50840,7 +52415,7 @@ label_BFC10F9C: psx_check_interrupts(cpu); /* 0xBFC10F9C: 14C50004 bne $a2, $a1, 0xBFC10FB0 */ uint32_t psx_brA_BFC10F9C = cpu->gpr[6]; uint32_t psx_brB_BFC10F9C = cpu->gpr[5]; - int psx_taken_BFC10F9C = (psx_brA_BFC10F9C != psx_brB_BFC10F9C); + psx_taken_BFC10F9C = (psx_brA_BFC10F9C != psx_brB_BFC10F9C); /* 0xBFC10FA0: 00000000 nop */ /* nop */ if (psx_taken_BFC10F9C) goto label_BFC10FB0; @@ -50853,7 +52428,7 @@ label_BFC10FA4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10FA4u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC10FA8: 1000000E beq $zero, $zero, 0xBFC10FE4 */ uint32_t psx_brA_BFC10FA8 = cpu->gpr[0]; uint32_t psx_brB_BFC10FA8 = cpu->gpr[0]; - int psx_taken_BFC10FA8 = (psx_brA_BFC10FA8 == psx_brB_BFC10FA8); + psx_taken_BFC10FA8 = (psx_brA_BFC10FA8 == psx_brB_BFC10FA8); /* 0xBFC10FAC: 00000000 nop */ /* nop */ if (psx_taken_BFC10FA8) goto label_BFC10FE4; @@ -50864,7 +52439,7 @@ label_BFC10FB0: psx_check_interrupts(cpu); /* 0xBFC10FB0: 14400005 bne $v0, $zero, 0xBFC10FC8 */ uint32_t psx_brA_BFC10FB0 = cpu->gpr[2]; uint32_t psx_brB_BFC10FB0 = cpu->gpr[0]; - int psx_taken_BFC10FB0 = (psx_brA_BFC10FB0 != psx_brB_BFC10FB0); + psx_taken_BFC10FB0 = (psx_brA_BFC10FB0 != psx_brB_BFC10FB0); /* 0xBFC10FB4: 00C01821 addu $v1, $a2, $zero */ cpu->gpr[3] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC10FB0) goto label_BFC10FC8; @@ -50877,7 +52452,7 @@ label_BFC10FB8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10FB8u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC10FBC: 10000009 beq $zero, $zero, 0xBFC10FE4 */ uint32_t psx_brA_BFC10FBC = cpu->gpr[0]; uint32_t psx_brB_BFC10FBC = cpu->gpr[0]; - int psx_taken_BFC10FBC = (psx_brA_BFC10FBC == psx_brB_BFC10FBC); + psx_taken_BFC10FBC = (psx_brA_BFC10FBC == psx_brB_BFC10FBC); /* 0xBFC10FC0: 00000000 nop */ /* nop */ if (psx_taken_BFC10FBC) goto label_BFC10FE4; @@ -50897,7 +52472,7 @@ label_BFC10FC8: cpu->gpr[6] = cpu->gpr[2] + cpu->gpr[0]; /* 0xBFC10FCC: 10C50005 beq $a2, $a1, 0xBFC10FE4 */ uint32_t psx_brA_BFC10FCC = cpu->gpr[6]; uint32_t psx_brB_BFC10FCC = cpu->gpr[5]; - int psx_taken_BFC10FCC = (psx_brA_BFC10FCC == psx_brB_BFC10FCC); + psx_taken_BFC10FCC = (psx_brA_BFC10FCC == psx_brB_BFC10FCC); /* 0xBFC10FD0: 00000000 nop */ /* nop */ if (psx_taken_BFC10FCC) goto label_BFC10FE4; @@ -50912,7 +52487,7 @@ label_BFC10FD4: /* nop */ /* 0xBFC10FDC: 1440FFF9 bne $v0, $zero, 0xBFC10FC4 */ uint32_t psx_brA_BFC10FDC = cpu->gpr[2]; uint32_t psx_brB_BFC10FDC = cpu->gpr[0]; - int psx_taken_BFC10FDC = (psx_brA_BFC10FDC != psx_brB_BFC10FDC); + psx_taken_BFC10FDC = (psx_brA_BFC10FDC != psx_brB_BFC10FDC); /* 0xBFC10FE0: 00000000 nop */ /* nop */ if (psx_taken_BFC10FDC) goto label_BFC10FC4; @@ -50923,7 +52498,7 @@ label_BFC10FE4: psx_check_interrupts(cpu); /* 0xBFC10FE4: 14C50006 bne $a2, $a1, 0xBFC11000 */ uint32_t psx_brA_BFC10FE4 = cpu->gpr[6]; uint32_t psx_brB_BFC10FE4 = cpu->gpr[5]; - int psx_taken_BFC10FE4 = (psx_brA_BFC10FE4 != psx_brB_BFC10FE4); + psx_taken_BFC10FE4 = (psx_brA_BFC10FE4 != psx_brB_BFC10FE4); /* 0xBFC10FE8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC10FE4) goto label_BFC11000; @@ -50938,7 +52513,7 @@ label_BFC10FEC: cpu->gpr[2] = cpu->gpr[6] + cpu->gpr[0]; /* 0xBFC10FF4: 10000002 beq $zero, $zero, 0xBFC11000 */ uint32_t psx_brA_BFC10FF4 = cpu->gpr[0]; uint32_t psx_brB_BFC10FF4 = cpu->gpr[0]; - int psx_taken_BFC10FF4 = (psx_brA_BFC10FF4 == psx_brB_BFC10FF4); + psx_taken_BFC10FF4 = (psx_brA_BFC10FF4 == psx_brB_BFC10FF4); /* 0xBFC10FF8: AC790000 sw $t9, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC10FF8u); return; } g_debug_last_store_pc = 0xBFC10FF8u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC10FF4) goto label_BFC11000; @@ -50973,6 +52548,8 @@ void func_00001508(CPUState* cpu) { default: break; } } + int psx_taken_BFC11084 = 0; + int psx_taken_BFC110AC = 0; label_BFC11008: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(18u); @@ -51059,7 +52636,7 @@ label_BFC11080: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (16)); /* 0xBFC11084: 1614FFFA bne $s0, $s4, 0xBFC11070 */ uint32_t psx_brA_BFC11084 = cpu->gpr[16]; uint32_t psx_brB_BFC11084 = cpu->gpr[20]; - int psx_taken_BFC11084 = (psx_brA_BFC11084 != psx_brB_BFC11084); + psx_taken_BFC11084 = (psx_brA_BFC11084 != psx_brB_BFC11084); /* 0xBFC11088: 26310004 addiu $s1, $s1, 4 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (4)); if (psx_taken_BFC11084) goto label_BFC11070; @@ -51103,7 +52680,7 @@ label_BFC110A8: cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (1)); /* 0xBFC110AC: 1650FFF9 bne $s2, $s0, 0xBFC11094 */ uint32_t psx_brA_BFC110AC = cpu->gpr[18]; uint32_t psx_brB_BFC110AC = cpu->gpr[16]; - int psx_taken_BFC110AC = (psx_brA_BFC110AC != psx_brB_BFC110AC); + psx_taken_BFC110AC = (psx_brA_BFC110AC != psx_brB_BFC110AC); /* 0xBFC110B0: 26730010 addiu $s3, $s3, 16 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (16)); if (psx_taken_BFC110AC) goto label_BFC11094; @@ -51159,6 +52736,7 @@ label_BFC110D8: void func_000015F8(CPUState* cpu) { debug_server_log_call_entry(0x000015F8u); + int psx_taken_BFC11104 = 0; label_BFC110F8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -51172,7 +52750,7 @@ label_BFC110F8: cpu->gpr[5] = cpu->gpr[5] & 0xFFFFu; /* 0xBFC11104: 14200003 bne $at, $zero, 0xBFC11114 */ uint32_t psx_brA_BFC11104 = cpu->gpr[1]; uint32_t psx_brB_BFC11104 = cpu->gpr[0]; - int psx_taken_BFC11104 = (psx_brA_BFC11104 != psx_brB_BFC11104); + psx_taken_BFC11104 = (psx_brA_BFC11104 != psx_brB_BFC11104); /* 0xBFC11108: 00C03821 addu $a3, $a2, $zero */ cpu->gpr[7] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC11104) { cpu->pc = 0xBFC11114u; return; } @@ -51189,6 +52767,14 @@ label_BFC1110C: void func_00001614(CPUState* cpu) { debug_server_log_call_entry(0x00001614u); + int psx_taken_BFC11138 = 0; + int psx_taken_BFC11144 = 0; + int psx_taken_BFC11150 = 0; + int psx_taken_BFC11160 = 0; + int psx_taken_BFC11168 = 0; + int psx_taken_BFC11174 = 0; + int psx_taken_BFC11180 = 0; + int psx_taken_BFC11190 = 0; label_BFC11114: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -51214,7 +52800,7 @@ label_BFC11114: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (8)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC11134u); return; } g_debug_last_store_pc = 0xBFC11134u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[5] & 0xFFFFu)); } /* 0xBFC11138: 14400004 bne $v0, $zero, 0xBFC1114C */ uint32_t psx_brA_BFC11138 = cpu->gpr[2]; uint32_t psx_brB_BFC11138 = cpu->gpr[0]; - int psx_taken_BFC11138 = (psx_brA_BFC11138 != psx_brB_BFC11138); + psx_taken_BFC11138 = (psx_brA_BFC11138 != psx_brB_BFC11138); /* 0xBFC1113C: 24060048 addiu $a2, $zero, 72 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[0] + (72)); if (psx_taken_BFC11138) goto label_BFC1114C; @@ -51227,7 +52813,7 @@ label_BFC11140: cpu->gpr[24] = cpu->gpr[2] | 0x1u; /* 0xBFC11144: 1300000B beq $t8, $zero, 0xBFC11174 */ uint32_t psx_brA_BFC11144 = cpu->gpr[24]; uint32_t psx_brB_BFC11144 = cpu->gpr[0]; - int psx_taken_BFC11144 = (psx_brA_BFC11144 == psx_brB_BFC11144); + psx_taken_BFC11144 = (psx_brA_BFC11144 == psx_brB_BFC11144); /* 0xBFC11148: 34490002 ori $t1, $v0, 0x2 */ cpu->gpr[9] = cpu->gpr[2] | 0x2u; if (psx_taken_BFC11144) goto label_BFC11174; @@ -51240,7 +52826,7 @@ label_BFC1114C: cpu->gpr[25] = cpu->gpr[7] & 0x10u; /* 0xBFC11150: 13200003 beq $t9, $zero, 0xBFC11160 */ uint32_t psx_brA_BFC11150 = cpu->gpr[25]; uint32_t psx_brB_BFC11150 = cpu->gpr[0]; - int psx_taken_BFC11150 = (psx_brA_BFC11150 == psx_brB_BFC11150); + psx_taken_BFC11150 = (psx_brA_BFC11150 == psx_brB_BFC11150); /* 0xBFC11154: 30E80001 andi $t0, $a3, 0x1 */ cpu->gpr[8] = cpu->gpr[7] & 0x1u; if (psx_taken_BFC11150) goto label_BFC11160; @@ -51260,7 +52846,7 @@ label_BFC11160: psx_check_interrupts(cpu); /* 0xBFC11160: 1500000B bne $t0, $zero, 0xBFC11190 */ uint32_t psx_brA_BFC11160 = cpu->gpr[8]; uint32_t psx_brB_BFC11160 = cpu->gpr[0]; - int psx_taken_BFC11160 = (psx_brA_BFC11160 != psx_brB_BFC11160); + psx_taken_BFC11160 = (psx_brA_BFC11160 != psx_brB_BFC11160); /* 0xBFC11164: 30EB1000 andi $t3, $a3, 0x1000 */ cpu->gpr[11] = cpu->gpr[7] & 0x1000u; if (psx_taken_BFC11160) goto label_BFC11190; @@ -51271,7 +52857,7 @@ label_BFC11168: psx_check_interrupts(cpu); /* 0xBFC11168: 10000008 beq $zero, $zero, 0xBFC1118C */ uint32_t psx_brA_BFC11168 = cpu->gpr[0]; uint32_t psx_brB_BFC11168 = cpu->gpr[0]; - int psx_taken_BFC11168 = (psx_brA_BFC11168 == psx_brB_BFC11168); + psx_taken_BFC11168 = (psx_brA_BFC11168 == psx_brB_BFC11168); /* 0xBFC1116C: 34C60100 ori $a2, $a2, 0x100 */ cpu->gpr[6] = cpu->gpr[6] | 0x100u; if (psx_taken_BFC11168) goto label_BFC1118C; @@ -51289,7 +52875,7 @@ label_BFC11174: psx_check_interrupts(cpu); /* 0xBFC11174: 11200006 beq $t1, $zero, 0xBFC11190 */ uint32_t psx_brA_BFC11174 = cpu->gpr[9]; uint32_t psx_brB_BFC11174 = cpu->gpr[0]; - int psx_taken_BFC11174 = (psx_brA_BFC11174 == psx_brB_BFC11174); + psx_taken_BFC11174 = (psx_brA_BFC11174 == psx_brB_BFC11174); /* 0xBFC11178: 30EB1000 andi $t3, $a3, 0x1000 */ cpu->gpr[11] = cpu->gpr[7] & 0x1000u; if (psx_taken_BFC11174) goto label_BFC11190; @@ -51302,7 +52888,7 @@ label_BFC1117C: cpu->gpr[10] = cpu->gpr[7] & 0x1u; /* 0xBFC11180: 15400003 bne $t2, $zero, 0xBFC11190 */ uint32_t psx_brA_BFC11180 = cpu->gpr[10]; uint32_t psx_brB_BFC11180 = cpu->gpr[0]; - int psx_taken_BFC11180 = (psx_brA_BFC11180 != psx_brB_BFC11180); + psx_taken_BFC11180 = (psx_brA_BFC11180 != psx_brB_BFC11180); /* 0xBFC11184: 30EB1000 andi $t3, $a3, 0x1000 */ cpu->gpr[11] = cpu->gpr[7] & 0x1000u; if (psx_taken_BFC11180) goto label_BFC11190; @@ -51327,7 +52913,7 @@ label_BFC11190: psx_check_interrupts(cpu); /* 0xBFC11190: 11600002 beq $t3, $zero, 0xBFC1119C */ uint32_t psx_brA_BFC11190 = cpu->gpr[11]; uint32_t psx_brB_BFC11190 = cpu->gpr[0]; - int psx_taken_BFC11190 = (psx_brA_BFC11190 == psx_brB_BFC11190); + psx_taken_BFC11190 = (psx_brA_BFC11190 == psx_brB_BFC11190); /* 0xBFC11194: 00000000 nop */ /* nop */ if (psx_taken_BFC11190) goto label_BFC1119C; @@ -51355,6 +52941,7 @@ label_BFC1119C: void func_000016AC(CPUState* cpu) { debug_server_log_call_entry(0x000016ACu); + int psx_taken_BFC111B4 = 0; label_BFC111AC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -51366,7 +52953,7 @@ label_BFC111AC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (3) ? 1 : 0); /* 0xBFC111B4: 14200003 bne $at, $zero, 0xBFC111C4 */ uint32_t psx_brA_BFC111B4 = cpu->gpr[1]; uint32_t psx_brB_BFC111B4 = cpu->gpr[0]; - int psx_taken_BFC111B4 = (psx_brA_BFC111B4 != psx_brB_BFC111B4); + psx_taken_BFC111B4 = (psx_brA_BFC111B4 != psx_brB_BFC111B4); /* 0xBFC111B8: 00000000 nop */ /* nop */ if (psx_taken_BFC111B4) { cpu->pc = 0xBFC111C4u; return; } @@ -51408,6 +52995,7 @@ label_BFC111C4: void func_000016E4(CPUState* cpu) { debug_server_log_call_entry(0x000016E4u); + int psx_taken_BFC1120C = 0; label_BFC111E4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -51435,7 +53023,7 @@ label_BFC111E4: cpu->gpr[25] = cpu->gpr[14] | cpu->gpr[24]; /* 0xBFC1120C: 14200003 bne $at, $zero, 0xBFC1121C */ uint32_t psx_brA_BFC1120C = cpu->gpr[1]; uint32_t psx_brB_BFC1120C = cpu->gpr[0]; - int psx_taken_BFC1120C = (psx_brA_BFC1120C != psx_brB_BFC1120C); + psx_taken_BFC1120C = (psx_brA_BFC1120C != psx_brB_BFC1120C); /* 0xBFC11210: AC590004 sw $t9, 4($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC11210u); return; } g_debug_last_store_pc = 0xBFC11210u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC1120C) { cpu->pc = 0xBFC1121Cu; return; } @@ -51502,6 +53090,7 @@ label_BFC11228: void func_0000175C(CPUState* cpu) { debug_server_log_call_entry(0x0000175Cu); + int psx_taken_BFC11264 = 0; label_BFC1125C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -51513,7 +53102,7 @@ label_BFC1125C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (3) ? 1 : 0); /* 0xBFC11264: 14200003 bne $at, $zero, 0xBFC11274 */ uint32_t psx_brA_BFC11264 = cpu->gpr[1]; uint32_t psx_brB_BFC11264 = cpu->gpr[0]; - int psx_taken_BFC11264 = (psx_brA_BFC11264 != psx_brB_BFC11264); + psx_taken_BFC11264 = (psx_brA_BFC11264 != psx_brB_BFC11264); /* 0xBFC11268: 00000000 nop */ /* nop */ if (psx_taken_BFC11264) { cpu->pc = 0xBFC11274u; return; } @@ -51563,6 +53152,9 @@ void func_00001794(CPUState* cpu) { default: break; } } + int psx_taken_BFC112B0 = 0; + int psx_taken_BFC112C4 = 0; + int psx_taken_BFC112CC = 0; label_BFC11294: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -51584,7 +53176,7 @@ label_BFC11294: cpu->gpr[15] = cpu->gpr[14] & 0x10u; /* 0xBFC112B0: 11E00006 beq $t7, $zero, 0xBFC112CC */ uint32_t psx_brA_BFC112B0 = cpu->gpr[15]; uint32_t psx_brB_BFC112B0 = cpu->gpr[0]; - int psx_taken_BFC112B0 = (psx_brA_BFC112B0 == psx_brB_BFC112B0); + psx_taken_BFC112B0 = (psx_brA_BFC112B0 == psx_brB_BFC112B0); /* 0xBFC112B4: 00000000 nop */ /* nop */ if (psx_taken_BFC112B0) goto label_BFC112CC; @@ -51601,7 +53193,7 @@ label_BFC112B8: cpu->gpr[25] = cpu->gpr[24] & 0x10u; /* 0xBFC112C4: 17200004 bne $t9, $zero, 0xBFC112D8 */ uint32_t psx_brA_BFC112C4 = cpu->gpr[25]; uint32_t psx_brB_BFC112C4 = cpu->gpr[0]; - int psx_taken_BFC112C4 = (psx_brA_BFC112C4 != psx_brB_BFC112C4); + psx_taken_BFC112C4 = (psx_brA_BFC112C4 != psx_brB_BFC112C4); /* 0xBFC112C8: 3C04F200 lui $a0, 0xF200 */ cpu->gpr[4] = 0xF2000000u; if (psx_taken_BFC112C4) goto label_BFC112D8; @@ -51612,7 +53204,7 @@ label_BFC112CC: psx_check_interrupts(cpu); /* 0xBFC112CC: 10000005 beq $zero, $zero, 0xBFC112E4 */ uint32_t psx_brA_BFC112CC = cpu->gpr[0]; uint32_t psx_brB_BFC112CC = cpu->gpr[0]; - int psx_taken_BFC112CC = (psx_brA_BFC112CC == psx_brB_BFC112CC); + psx_taken_BFC112CC = (psx_brA_BFC112CC == psx_brB_BFC112CC); /* 0xBFC112D0: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC112CC) goto label_BFC112E4; @@ -51665,6 +53257,9 @@ void func_000017F4(CPUState* cpu) { default: break; } } + int psx_taken_BFC11310 = 0; + int psx_taken_BFC11324 = 0; + int psx_taken_BFC1132C = 0; label_BFC112F4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -51686,7 +53281,7 @@ label_BFC112F4: cpu->gpr[15] = cpu->gpr[14] & 0x20u; /* 0xBFC11310: 11E00006 beq $t7, $zero, 0xBFC1132C */ uint32_t psx_brA_BFC11310 = cpu->gpr[15]; uint32_t psx_brB_BFC11310 = cpu->gpr[0]; - int psx_taken_BFC11310 = (psx_brA_BFC11310 == psx_brB_BFC11310); + psx_taken_BFC11310 = (psx_brA_BFC11310 == psx_brB_BFC11310); /* 0xBFC11314: 00000000 nop */ /* nop */ if (psx_taken_BFC11310) goto label_BFC1132C; @@ -51703,7 +53298,7 @@ label_BFC11318: cpu->gpr[25] = cpu->gpr[24] & 0x20u; /* 0xBFC11324: 17200004 bne $t9, $zero, 0xBFC11338 */ uint32_t psx_brA_BFC11324 = cpu->gpr[25]; uint32_t psx_brB_BFC11324 = cpu->gpr[0]; - int psx_taken_BFC11324 = (psx_brA_BFC11324 != psx_brB_BFC11324); + psx_taken_BFC11324 = (psx_brA_BFC11324 != psx_brB_BFC11324); /* 0xBFC11328: 3C04F200 lui $a0, 0xF200 */ cpu->gpr[4] = 0xF2000000u; if (psx_taken_BFC11324) goto label_BFC11338; @@ -51714,7 +53309,7 @@ label_BFC1132C: psx_check_interrupts(cpu); /* 0xBFC1132C: 10000006 beq $zero, $zero, 0xBFC11348 */ uint32_t psx_brA_BFC1132C = cpu->gpr[0]; uint32_t psx_brB_BFC1132C = cpu->gpr[0]; - int psx_taken_BFC1132C = (psx_brA_BFC1132C == psx_brB_BFC1132C); + psx_taken_BFC1132C = (psx_brA_BFC1132C == psx_brB_BFC1132C); /* 0xBFC11330: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1132C) goto label_BFC11348; @@ -51769,6 +53364,9 @@ void func_00001858(CPUState* cpu) { default: break; } } + int psx_taken_BFC11374 = 0; + int psx_taken_BFC11388 = 0; + int psx_taken_BFC11390 = 0; label_BFC11358: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -51790,7 +53388,7 @@ label_BFC11358: cpu->gpr[15] = cpu->gpr[14] & 0x40u; /* 0xBFC11374: 11E00006 beq $t7, $zero, 0xBFC11390 */ uint32_t psx_brA_BFC11374 = cpu->gpr[15]; uint32_t psx_brB_BFC11374 = cpu->gpr[0]; - int psx_taken_BFC11374 = (psx_brA_BFC11374 == psx_brB_BFC11374); + psx_taken_BFC11374 = (psx_brA_BFC11374 == psx_brB_BFC11374); /* 0xBFC11378: 00000000 nop */ /* nop */ if (psx_taken_BFC11374) goto label_BFC11390; @@ -51807,7 +53405,7 @@ label_BFC1137C: cpu->gpr[25] = cpu->gpr[24] & 0x40u; /* 0xBFC11388: 17200004 bne $t9, $zero, 0xBFC1139C */ uint32_t psx_brA_BFC11388 = cpu->gpr[25]; uint32_t psx_brB_BFC11388 = cpu->gpr[0]; - int psx_taken_BFC11388 = (psx_brA_BFC11388 != psx_brB_BFC11388); + psx_taken_BFC11388 = (psx_brA_BFC11388 != psx_brB_BFC11388); /* 0xBFC1138C: 3C04F200 lui $a0, 0xF200 */ cpu->gpr[4] = 0xF2000000u; if (psx_taken_BFC11388) goto label_BFC1139C; @@ -51818,7 +53416,7 @@ label_BFC11390: psx_check_interrupts(cpu); /* 0xBFC11390: 10000006 beq $zero, $zero, 0xBFC113AC */ uint32_t psx_brA_BFC11390 = cpu->gpr[0]; uint32_t psx_brB_BFC11390 = cpu->gpr[0]; - int psx_taken_BFC11390 = (psx_brA_BFC11390 == psx_brB_BFC11390); + psx_taken_BFC11390 = (psx_brA_BFC11390 == psx_brB_BFC11390); /* 0xBFC11394: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC11390) goto label_BFC113AC; @@ -51873,6 +53471,9 @@ void func_000018BC(CPUState* cpu) { default: break; } } + int psx_taken_BFC113D8 = 0; + int psx_taken_BFC113EC = 0; + int psx_taken_BFC113F4 = 0; label_BFC113BC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -51894,7 +53495,7 @@ label_BFC113BC: cpu->gpr[15] = cpu->gpr[14] & 0x1u; /* 0xBFC113D8: 11E00006 beq $t7, $zero, 0xBFC113F4 */ uint32_t psx_brA_BFC113D8 = cpu->gpr[15]; uint32_t psx_brB_BFC113D8 = cpu->gpr[0]; - int psx_taken_BFC113D8 = (psx_brA_BFC113D8 == psx_brB_BFC113D8); + psx_taken_BFC113D8 = (psx_brA_BFC113D8 == psx_brB_BFC113D8); /* 0xBFC113DC: 00000000 nop */ /* nop */ if (psx_taken_BFC113D8) goto label_BFC113F4; @@ -51911,7 +53512,7 @@ label_BFC113E0: cpu->gpr[25] = cpu->gpr[24] & 0x1u; /* 0xBFC113EC: 17200004 bne $t9, $zero, 0xBFC11400 */ uint32_t psx_brA_BFC113EC = cpu->gpr[25]; uint32_t psx_brB_BFC113EC = cpu->gpr[0]; - int psx_taken_BFC113EC = (psx_brA_BFC113EC != psx_brB_BFC113EC); + psx_taken_BFC113EC = (psx_brA_BFC113EC != psx_brB_BFC113EC); /* 0xBFC113F0: 3C04F200 lui $a0, 0xF200 */ cpu->gpr[4] = 0xF2000000u; if (psx_taken_BFC113EC) goto label_BFC11400; @@ -51922,7 +53523,7 @@ label_BFC113F4: psx_check_interrupts(cpu); /* 0xBFC113F4: 10000006 beq $zero, $zero, 0xBFC11410 */ uint32_t psx_brA_BFC113F4 = cpu->gpr[0]; uint32_t psx_brB_BFC113F4 = cpu->gpr[0]; - int psx_taken_BFC113F4 = (psx_brA_BFC113F4 == psx_brB_BFC113F4); + psx_taken_BFC113F4 = (psx_brA_BFC113F4 == psx_brB_BFC113F4); /* 0xBFC113F8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC113F4) goto label_BFC11410; @@ -51977,6 +53578,7 @@ void func_00001920(CPUState* cpu) { default: break; } } + int psx_taken_BFC1142C = 0; label_BFC11420: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -51990,7 +53592,7 @@ label_BFC11420: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC1142C: 11C00006 beq $t6, $zero, 0xBFC11448 */ uint32_t psx_brA_BFC1142C = cpu->gpr[14]; uint32_t psx_brB_BFC1142C = cpu->gpr[0]; - int psx_taken_BFC1142C = (psx_brA_BFC1142C == psx_brB_BFC1142C); + psx_taken_BFC1142C = (psx_brA_BFC1142C == psx_brB_BFC1142C); /* 0xBFC11430: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC11430u); return; } g_debug_last_store_pc = 0xBFC11430u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1142C) goto label_BFC11448; @@ -52035,6 +53637,7 @@ void func_00001958(CPUState* cpu) { default: break; } } + int psx_taken_BFC11464 = 0; label_BFC11458: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -52048,7 +53651,7 @@ label_BFC11458: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC11464: 11C00006 beq $t6, $zero, 0xBFC11480 */ uint32_t psx_brA_BFC11464 = cpu->gpr[14]; uint32_t psx_brB_BFC11464 = cpu->gpr[0]; - int psx_taken_BFC11464 = (psx_brA_BFC11464 == psx_brB_BFC11464); + psx_taken_BFC11464 = (psx_brA_BFC11464 == psx_brB_BFC11464); /* 0xBFC11468: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC11468u); return; } g_debug_last_store_pc = 0xBFC11468u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC11464) goto label_BFC11480; @@ -52093,6 +53696,7 @@ void func_00001990(CPUState* cpu) { default: break; } } + int psx_taken_BFC1149C = 0; label_BFC11490: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -52106,7 +53710,7 @@ label_BFC11490: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC1149C: 11C00006 beq $t6, $zero, 0xBFC114B8 */ uint32_t psx_brA_BFC1149C = cpu->gpr[14]; uint32_t psx_brB_BFC1149C = cpu->gpr[0]; - int psx_taken_BFC1149C = (psx_brA_BFC1149C == psx_brB_BFC1149C); + psx_taken_BFC1149C = (psx_brA_BFC1149C == psx_brB_BFC1149C); /* 0xBFC114A0: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC114A0u); return; } g_debug_last_store_pc = 0xBFC114A0u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1149C) goto label_BFC114B8; @@ -52151,6 +53755,7 @@ void func_000019C8(CPUState* cpu) { default: break; } } + int psx_taken_BFC114D4 = 0; label_BFC114C8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -52164,7 +53769,7 @@ label_BFC114C8: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC114D4: 11C00006 beq $t6, $zero, 0xBFC114F0 */ uint32_t psx_brA_BFC114D4 = cpu->gpr[14]; uint32_t psx_brB_BFC114D4 = cpu->gpr[0]; - int psx_taken_BFC114D4 = (psx_brA_BFC114D4 == psx_brB_BFC114D4); + psx_taken_BFC114D4 = (psx_brA_BFC114D4 == psx_brB_BFC114D4); /* 0xBFC114D8: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC114D8u); return; } g_debug_last_store_pc = 0xBFC114D8u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC114D4) goto label_BFC114F0; @@ -52201,6 +53806,7 @@ label_BFC114F0: void func_00001A00(CPUState* cpu) { debug_server_log_call_entry(0x00001A00u); + int psx_taken_BFC1151C = 0; label_BFC11500: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -52222,7 +53828,7 @@ label_BFC11500: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (152)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC11518u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC1151C: 10000032 beq $zero, $zero, 0xBFC115E8 */ uint32_t psx_brA_BFC1151C = cpu->gpr[0]; uint32_t psx_brB_BFC1151C = cpu->gpr[0]; - int psx_taken_BFC1151C = (psx_brA_BFC1151C == psx_brB_BFC1151C); + psx_taken_BFC1151C = (psx_brA_BFC1151C == psx_brB_BFC1151C); /* 0xBFC11520: 3063003C andi $v1, $v1, 0x3C */ cpu->gpr[3] = cpu->gpr[3] & 0x3Cu; if (psx_taken_BFC1151C) { cpu->pc = 0xBFC115E8u; return; } @@ -52231,6 +53837,7 @@ label_BFC11500: void func_00001A24(CPUState* cpu) { debug_server_log_call_entry(0x00001A24u); + int psx_taken_BFC11524 = 0; label_BFC11524: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -52238,7 +53845,7 @@ label_BFC11524: psx_check_interrupts(cpu); /* 0xBFC11524: 1000003A beq $zero, $zero, 0xBFC11610 */ uint32_t psx_brA_BFC11524 = cpu->gpr[0]; uint32_t psx_brB_BFC11524 = cpu->gpr[0]; - int psx_taken_BFC11524 = (psx_brA_BFC11524 == psx_brB_BFC11524); + psx_taken_BFC11524 = (psx_brA_BFC11524 == psx_brB_BFC11524); /* 0xBFC11528: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC11524) { cpu->pc = 0xBFC11610u; return; } @@ -52247,6 +53854,7 @@ label_BFC11524: void func_00001A2C(CPUState* cpu) { debug_server_log_call_entry(0x00001A2Cu); + int psx_taken_BFC1153C = 0; label_BFC1152C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -52262,7 +53870,7 @@ label_BFC1152C: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < 0x00000004u ? 1 : 0); /* 0xBFC1153C: 10200020 beq $at, $zero, 0xBFC115C0 */ uint32_t psx_brA_BFC1153C = cpu->gpr[1]; uint32_t psx_brB_BFC1153C = cpu->gpr[0]; - int psx_taken_BFC1153C = (psx_brA_BFC1153C == psx_brB_BFC1153C); + psx_taken_BFC1153C = (psx_brA_BFC1153C == psx_brB_BFC1153C); /* 0xBFC11540: AC580088 sw $t8, 136($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (136)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC11540u); return; } g_debug_last_store_pc = 0xBFC11540u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC1153C) { cpu->pc = 0xBFC115C0u; return; } @@ -52299,6 +53907,13 @@ void func_00001A60(CPUState* cpu) { default: break; } } + int psx_taken_BFC1156C = 0; + int psx_taken_BFC11578 = 0; + int psx_taken_BFC11590 = 0; + int psx_taken_BFC115A4 = 0; + int psx_taken_BFC115B8 = 0; + int psx_taken_BFC115D0 = 0; + int psx_taken_BFC115E0 = 0; label_BFC11560: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -52312,7 +53927,7 @@ label_BFC11560: cpu->gpr[9] = cpu->gpr[8] & 0x404u; /* 0xBFC1156C: 15210004 bne $t1, $at, 0xBFC11580 */ uint32_t psx_brA_BFC1156C = cpu->gpr[9]; uint32_t psx_brB_BFC1156C = cpu->gpr[1]; - int psx_taken_BFC1156C = (psx_brA_BFC1156C != psx_brB_BFC1156C); + psx_taken_BFC1156C = (psx_brA_BFC1156C != psx_brB_BFC1156C); /* 0xBFC11570: 00000000 nop */ /* nop */ if (psx_taken_BFC1156C) goto label_BFC11580; @@ -52325,7 +53940,7 @@ label_BFC11574: cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC11578: 10000002 beq $zero, $zero, 0xBFC11584 */ uint32_t psx_brA_BFC11578 = cpu->gpr[0]; uint32_t psx_brB_BFC11578 = cpu->gpr[0]; - int psx_taken_BFC11578 = (psx_brA_BFC11578 == psx_brB_BFC11578); + psx_taken_BFC11578 = (psx_brA_BFC11578 == psx_brB_BFC11578); /* 0xBFC1157C: AC4A0010 sw $t2, 16($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (16)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1157Cu); return; } g_debug_last_store_pc = 0xBFC1157Cu; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC11578) goto label_BFC11584; @@ -52349,7 +53964,7 @@ label_BFC11584: cpu->gpr[12] = cpu->gpr[11] & cpu->gpr[1]; /* 0xBFC11590: 10000011 beq $zero, $zero, 0xBFC115D8 */ uint32_t psx_brA_BFC11590 = cpu->gpr[0]; uint32_t psx_brB_BFC11590 = cpu->gpr[0]; - int psx_taken_BFC11590 = (psx_brA_BFC11590 == psx_brB_BFC11590); + psx_taken_BFC11590 = (psx_brA_BFC11590 == psx_brB_BFC11590); /* 0xBFC11594: AC4C0094 sw $t4, 148($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (148)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC11594u); return; } g_debug_last_store_pc = 0xBFC11594u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC11590) goto label_BFC115D8; @@ -52366,7 +53981,7 @@ label_BFC11598: cpu->gpr[14] = cpu->gpr[13] | 0x404u; /* 0xBFC115A4: 1000000C beq $zero, $zero, 0xBFC115D8 */ uint32_t psx_brA_BFC115A4 = cpu->gpr[0]; uint32_t psx_brB_BFC115A4 = cpu->gpr[0]; - int psx_taken_BFC115A4 = (psx_brA_BFC115A4 == psx_brB_BFC115A4); + psx_taken_BFC115A4 = (psx_brA_BFC115A4 == psx_brB_BFC115A4); /* 0xBFC115A8: AC4E0094 sw $t6, 148($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (148)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC115A8u); return; } g_debug_last_store_pc = 0xBFC115A8u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC115A4) goto label_BFC115D8; @@ -52383,7 +53998,7 @@ label_BFC115AC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC115B4u); return; } g_debug_last_store_pc = 0xBFC115B4u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC115B8: 10000007 beq $zero, $zero, 0xBFC115D8 */ uint32_t psx_brA_BFC115B8 = cpu->gpr[0]; uint32_t psx_brB_BFC115B8 = cpu->gpr[0]; - int psx_taken_BFC115B8 = (psx_brA_BFC115B8 == psx_brB_BFC115B8); + psx_taken_BFC115B8 = (psx_brA_BFC115B8 == psx_brB_BFC115B8); /* 0xBFC115BC: AC580010 sw $t8, 16($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (16)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC115BCu); return; } g_debug_last_store_pc = 0xBFC115BCu; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC115B8) goto label_BFC115D8; @@ -52408,7 +54023,7 @@ label_BFC115D0: psx_check_interrupts(cpu); /* 0xBFC115D0: 10000001 beq $zero, $zero, 0xBFC115D8 */ uint32_t psx_brA_BFC115D0 = cpu->gpr[0]; uint32_t psx_brB_BFC115D0 = cpu->gpr[0]; - int psx_taken_BFC115D0 = (psx_brA_BFC115D0 == psx_brB_BFC115D0); + psx_taken_BFC115D0 = (psx_brA_BFC115D0 == psx_brB_BFC115D0); /* 0xBFC115D4: 00000000 nop */ /* nop */ if (psx_taken_BFC115D0) goto label_BFC115D8; @@ -52429,7 +54044,7 @@ label_BFC115E0: psx_check_interrupts(cpu); /* 0xBFC115E0: 10000006 beq $zero, $zero, 0xBFC115FC */ uint32_t psx_brA_BFC115E0 = cpu->gpr[0]; uint32_t psx_brB_BFC115E0 = cpu->gpr[0]; - int psx_taken_BFC115E0 = (psx_brA_BFC115E0 == psx_brB_BFC115E0); + psx_taken_BFC115E0 = (psx_brA_BFC115E0 == psx_brB_BFC115E0); /* 0xBFC115E4: 3C04F000 lui $a0, 0xF000 */ cpu->gpr[4] = 0xF0000000u; if (psx_taken_BFC115E0) { cpu->pc = 0xBFC115FCu; return; } @@ -52438,6 +54053,8 @@ label_BFC115E0: void func_00001AE8(CPUState* cpu) { debug_server_log_call_entry(0x00001AE8u); + int psx_taken_BFC115E8 = 0; + int psx_taken_BFC115F0 = 0; label_BFC115E8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -52445,7 +54062,7 @@ label_BFC115E8: psx_check_interrupts(cpu); /* 0xBFC115E8: 1060FFCE beq $v1, $zero, 0xBFC11524 */ uint32_t psx_brA_BFC115E8 = cpu->gpr[3]; uint32_t psx_brB_BFC115E8 = cpu->gpr[0]; - int psx_taken_BFC115E8 = (psx_brA_BFC115E8 == psx_brB_BFC115E8); + psx_taken_BFC115E8 = (psx_brA_BFC115E8 == psx_brB_BFC115E8); /* 0xBFC115EC: 24010020 addiu $at, $zero, 32 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (32)); if (psx_taken_BFC115E8) { cpu->pc = 0xBFC11524u; return; } @@ -52456,7 +54073,7 @@ label_BFC115F0: psx_check_interrupts(cpu); /* 0xBFC115F0: 1061FFCE beq $v1, $at, 0xBFC1152C */ uint32_t psx_brA_BFC115F0 = cpu->gpr[3]; uint32_t psx_brB_BFC115F0 = cpu->gpr[1]; - int psx_taken_BFC115F0 = (psx_brA_BFC115F0 == psx_brB_BFC115F0); + psx_taken_BFC115F0 = (psx_brA_BFC115F0 == psx_brB_BFC115F0); /* 0xBFC115F4: 00000000 nop */ /* nop */ if (psx_taken_BFC115F0) { cpu->pc = 0xBFC1152Cu; return; } @@ -52573,6 +54190,15 @@ void func_00001B44(CPUState* cpu) { default: break; } } + int psx_taken_BFC11698 = 0; + int psx_taken_BFC116C0 = 0; + int psx_taken_BFC116D0 = 0; + int psx_taken_BFC116E0 = 0; + int psx_taken_BFC116F0 = 0; + int psx_taken_BFC116F8 = 0; + int psx_taken_BFC11700 = 0; + int psx_taken_BFC11710 = 0; + int psx_taken_BFC11728 = 0; label_BFC11644: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(23u); @@ -52622,7 +54248,7 @@ label_BFC11644: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[2] ? 1 : 0); /* 0xBFC11698: 10200029 beq $at, $zero, 0xBFC11740 */ uint32_t psx_brA_BFC11698 = cpu->gpr[1]; uint32_t psx_brB_BFC11698 = cpu->gpr[0]; - int psx_taken_BFC11698 = (psx_brA_BFC11698 == psx_brB_BFC11698); + psx_taken_BFC11698 = (psx_brA_BFC11698 == psx_brB_BFC11698); /* 0xBFC1169C: 0040A021 addu $s4, $v0, $zero */ cpu->gpr[20] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC11698) goto label_BFC11740; @@ -52654,7 +54280,7 @@ label_BFC116B8: /* nop */ /* 0xBFC116C0: 16390017 bne $s1, $t9, 0xBFC11720 */ uint32_t psx_brA_BFC116C0 = cpu->gpr[17]; uint32_t psx_brB_BFC116C0 = cpu->gpr[25]; - int psx_taken_BFC116C0 = (psx_brA_BFC116C0 != psx_brB_BFC116C0); + psx_taken_BFC116C0 = (psx_brA_BFC116C0 != psx_brB_BFC116C0); /* 0xBFC116C4: 00000000 nop */ /* nop */ if (psx_taken_BFC116C0) goto label_BFC11720; @@ -52669,7 +54295,7 @@ label_BFC116C8: /* nop */ /* 0xBFC116D0: 16A80013 bne $s5, $t0, 0xBFC11720 */ uint32_t psx_brA_BFC116D0 = cpu->gpr[21]; uint32_t psx_brB_BFC116D0 = cpu->gpr[8]; - int psx_taken_BFC116D0 = (psx_brA_BFC116D0 != psx_brB_BFC116D0); + psx_taken_BFC116D0 = (psx_brA_BFC116D0 != psx_brB_BFC116D0); /* 0xBFC116D4: 00000000 nop */ /* nop */ if (psx_taken_BFC116D0) goto label_BFC11720; @@ -52684,7 +54310,7 @@ label_BFC116D8: /* nop */ /* 0xBFC116E0: 16C9000F bne $s6, $t1, 0xBFC11720 */ uint32_t psx_brA_BFC116E0 = cpu->gpr[22]; uint32_t psx_brB_BFC116E0 = cpu->gpr[9]; - int psx_taken_BFC116E0 = (psx_brA_BFC116E0 != psx_brB_BFC116E0); + psx_taken_BFC116E0 = (psx_brA_BFC116E0 != psx_brB_BFC116E0); /* 0xBFC116E4: 00000000 nop */ /* nop */ if (psx_taken_BFC116E0) goto label_BFC11720; @@ -52699,7 +54325,7 @@ label_BFC116E8: /* nop */ /* 0xBFC116F0: 16220003 bne $s1, $v0, 0xBFC11700 */ uint32_t psx_brA_BFC116F0 = cpu->gpr[17]; uint32_t psx_brB_BFC116F0 = cpu->gpr[2]; - int psx_taken_BFC116F0 = (psx_brA_BFC116F0 != psx_brB_BFC116F0); + psx_taken_BFC116F0 = (psx_brA_BFC116F0 != psx_brB_BFC116F0); /* 0xBFC116F4: 00000000 nop */ /* nop */ if (psx_taken_BFC116F0) goto label_BFC11700; @@ -52710,7 +54336,7 @@ label_BFC116F8: psx_check_interrupts(cpu); /* 0xBFC116F8: 10000009 beq $zero, $zero, 0xBFC11720 */ uint32_t psx_brA_BFC116F8 = cpu->gpr[0]; uint32_t psx_brB_BFC116F8 = cpu->gpr[0]; - int psx_taken_BFC116F8 = (psx_brA_BFC116F8 == psx_brB_BFC116F8); + psx_taken_BFC116F8 = (psx_brA_BFC116F8 == psx_brB_BFC116F8); /* 0xBFC116FC: AE120004 sw $s2, 4($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC116FCu); return; } g_debug_last_store_pc = 0xBFC116FCu; cpu->write_word(psx_addr, cpu->gpr[18]); } if (psx_taken_BFC116F8) goto label_BFC11720; @@ -52721,7 +54347,7 @@ label_BFC11700: psx_check_interrupts(cpu); /* 0xBFC11700: 16620007 bne $s3, $v0, 0xBFC11720 */ uint32_t psx_brA_BFC11700 = cpu->gpr[19]; uint32_t psx_brB_BFC11700 = cpu->gpr[2]; - int psx_taken_BFC11700 = (psx_brA_BFC11700 != psx_brB_BFC11700); + psx_taken_BFC11700 = (psx_brA_BFC11700 != psx_brB_BFC11700); /* 0xBFC11704: 00000000 nop */ /* nop */ if (psx_taken_BFC11700) goto label_BFC11720; @@ -52736,7 +54362,7 @@ label_BFC11708: /* nop */ /* 0xBFC11710: 10400003 beq $v0, $zero, 0xBFC11720 */ uint32_t psx_brA_BFC11710 = cpu->gpr[2]; uint32_t psx_brB_BFC11710 = cpu->gpr[0]; - int psx_taken_BFC11710 = (psx_brA_BFC11710 == psx_brB_BFC11710); + psx_taken_BFC11710 = (psx_brA_BFC11710 == psx_brB_BFC11710); /* 0xBFC11714: 00000000 nop */ /* nop */ if (psx_taken_BFC11710) goto label_BFC11720; @@ -52761,7 +54387,7 @@ label_BFC11720: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[20] ? 1 : 0); /* 0xBFC11728: 1420FFE3 bne $at, $zero, 0xBFC116B8 */ uint32_t psx_brA_BFC11728 = cpu->gpr[1]; uint32_t psx_brB_BFC11728 = cpu->gpr[0]; - int psx_taken_BFC11728 = (psx_brA_BFC11728 != psx_brB_BFC11728); + psx_taken_BFC11728 = (psx_brA_BFC11728 != psx_brB_BFC11728); /* 0xBFC1172C: 00000000 nop */ /* nop */ if (psx_taken_BFC11728) goto label_BFC116B8; @@ -52801,6 +54427,12 @@ label_BFC11740: void func_00001C5C(CPUState* cpu) { debug_server_log_call_entry(0x00001C5Cu); + int psx_taken_BFC11794 = 0; + int psx_taken_BFC117AC = 0; + int psx_taken_BFC117BC = 0; + int psx_taken_BFC117CC = 0; + int psx_taken_BFC117DC = 0; + int psx_taken_BFC117F0 = 0; label_BFC1175C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -52836,7 +54468,7 @@ label_BFC1175C: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[7] ? 1 : 0); /* 0xBFC11794: 10200018 beq $at, $zero, 0xBFC117F8 */ uint32_t psx_brA_BFC11794 = cpu->gpr[1]; uint32_t psx_brB_BFC11794 = cpu->gpr[0]; - int psx_taken_BFC11794 = (psx_brA_BFC11794 == psx_brB_BFC11794); + psx_taken_BFC11794 = (psx_brA_BFC11794 == psx_brB_BFC11794); /* 0xBFC11798: 00E03021 addu $a2, $a3, $zero */ cpu->gpr[6] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC11794) goto label_BFC117F8; @@ -52860,7 +54492,7 @@ label_BFC117A4: /* nop */ /* 0xBFC117AC: 1479000E bne $v1, $t9, 0xBFC117E8 */ uint32_t psx_brA_BFC117AC = cpu->gpr[3]; uint32_t psx_brB_BFC117AC = cpu->gpr[25]; - int psx_taken_BFC117AC = (psx_brA_BFC117AC != psx_brB_BFC117AC); + psx_taken_BFC117AC = (psx_brA_BFC117AC != psx_brB_BFC117AC); /* 0xBFC117B0: 00000000 nop */ /* nop */ if (psx_taken_BFC117AC) goto label_BFC117E8; @@ -52875,7 +54507,7 @@ label_BFC117B4: /* nop */ /* 0xBFC117BC: 1488000A bne $a0, $t0, 0xBFC117E8 */ uint32_t psx_brA_BFC117BC = cpu->gpr[4]; uint32_t psx_brB_BFC117BC = cpu->gpr[8]; - int psx_taken_BFC117BC = (psx_brA_BFC117BC != psx_brB_BFC117BC); + psx_taken_BFC117BC = (psx_brA_BFC117BC != psx_brB_BFC117BC); /* 0xBFC117C0: 00000000 nop */ /* nop */ if (psx_taken_BFC117BC) goto label_BFC117E8; @@ -52890,7 +54522,7 @@ label_BFC117C4: /* nop */ /* 0xBFC117CC: 14A90006 bne $a1, $t1, 0xBFC117E8 */ uint32_t psx_brA_BFC117CC = cpu->gpr[5]; uint32_t psx_brB_BFC117CC = cpu->gpr[9]; - int psx_taken_BFC117CC = (psx_brA_BFC117CC != psx_brB_BFC117CC); + psx_taken_BFC117CC = (psx_brA_BFC117CC != psx_brB_BFC117CC); /* 0xBFC117D0: 00000000 nop */ /* nop */ if (psx_taken_BFC117CC) goto label_BFC117E8; @@ -52905,7 +54537,7 @@ label_BFC117D4: /* nop */ /* 0xBFC117DC: 14EA0002 bne $a3, $t2, 0xBFC117E8 */ uint32_t psx_brA_BFC117DC = cpu->gpr[7]; uint32_t psx_brB_BFC117DC = cpu->gpr[10]; - int psx_taken_BFC117DC = (psx_brA_BFC117DC != psx_brB_BFC117DC); + psx_taken_BFC117DC = (psx_brA_BFC117DC != psx_brB_BFC117DC); /* 0xBFC117E0: 00000000 nop */ /* nop */ if (psx_taken_BFC117DC) goto label_BFC117E8; @@ -52927,7 +54559,7 @@ label_BFC117E8: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[6] ? 1 : 0); /* 0xBFC117F0: 1420FFEC bne $at, $zero, 0xBFC117A4 */ uint32_t psx_brA_BFC117F0 = cpu->gpr[1]; uint32_t psx_brB_BFC117F0 = cpu->gpr[0]; - int psx_taken_BFC117F0 = (psx_brA_BFC117F0 != psx_brB_BFC117F0); + psx_taken_BFC117F0 = (psx_brA_BFC117F0 != psx_brB_BFC117F0); /* 0xBFC117F4: 00000000 nop */ /* nop */ if (psx_taken_BFC117F0) goto label_BFC117A4; @@ -52944,6 +54576,7 @@ label_BFC117F8: void func_00001D00(CPUState* cpu) { debug_server_log_call_entry(0x00001D00u); + int psx_taken_BFC11838 = 0; label_BFC11800: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -52979,7 +54612,7 @@ label_BFC11800: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < cpu->gpr[2] ? 1 : 0); /* 0xBFC11838: 10200011 beq $at, $zero, 0xBFC11880 */ uint32_t psx_brA_BFC11838 = cpu->gpr[1]; uint32_t psx_brB_BFC11838 = cpu->gpr[0]; - int psx_taken_BFC11838 = (psx_brA_BFC11838 == psx_brB_BFC11838); + psx_taken_BFC11838 = (psx_brA_BFC11838 == psx_brB_BFC11838); /* 0xBFC1183C: 00000000 nop */ /* nop */ if (psx_taken_BFC11838) { cpu->pc = 0xBFC11880u; return; } @@ -52988,6 +54621,7 @@ label_BFC11800: void func_00001D40(CPUState* cpu) { debug_server_log_call_entry(0x00001D40u); + int psx_taken_BFC11848 = 0; label_BFC11840: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -52999,7 +54633,7 @@ label_BFC11840: /* nop */ /* 0xBFC11848: 15000009 bne $t0, $zero, 0xBFC11870 */ uint32_t psx_brA_BFC11848 = cpu->gpr[8]; uint32_t psx_brB_BFC11848 = cpu->gpr[0]; - int psx_taken_BFC11848 = (psx_brA_BFC11848 != psx_brB_BFC11848); + psx_taken_BFC11848 = (psx_brA_BFC11848 != psx_brB_BFC11848); /* 0xBFC1184C: 00000000 nop */ /* nop */ if (psx_taken_BFC11848) { cpu->pc = 0xBFC11870u; return; } @@ -53036,6 +54670,7 @@ void func_00001D70(CPUState* cpu) { default: break; } } + int psx_taken_BFC11878 = 0; label_BFC11870: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -53047,7 +54682,7 @@ label_BFC11870: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[2] ? 1 : 0); /* 0xBFC11878: 1420FFF1 bne $at, $zero, 0xBFC11840 */ uint32_t psx_brA_BFC11878 = cpu->gpr[1]; uint32_t psx_brB_BFC11878 = cpu->gpr[0]; - int psx_taken_BFC11878 = (psx_brA_BFC11878 != psx_brB_BFC11878); + psx_taken_BFC11878 = (psx_brA_BFC11878 != psx_brB_BFC11878); /* 0xBFC1187C: 00000000 nop */ /* nop */ if (psx_taken_BFC11878) { cpu->pc = 0xBFC11840u; return; } @@ -53074,6 +54709,8 @@ void func_00001D8C(CPUState* cpu) { default: break; } } + int psx_taken_BFC118BC = 0; + int psx_taken_BFC118C4 = 0; label_BFC1188C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -53111,7 +54748,7 @@ label_BFC118B4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC118BC: 14410003 bne $v0, $at, 0xBFC118CC */ uint32_t psx_brA_BFC118BC = cpu->gpr[2]; uint32_t psx_brB_BFC118BC = cpu->gpr[1]; - int psx_taken_BFC118BC = (psx_brA_BFC118BC != psx_brB_BFC118BC); + psx_taken_BFC118BC = (psx_brA_BFC118BC != psx_brB_BFC118BC); /* 0xBFC118C0: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC118BC) goto label_BFC118CC; @@ -53122,7 +54759,7 @@ label_BFC118C4: psx_check_interrupts(cpu); /* 0xBFC118C4: 10000011 beq $zero, $zero, 0xBFC1190C */ uint32_t psx_brA_BFC118C4 = cpu->gpr[0]; uint32_t psx_brB_BFC118C4 = cpu->gpr[0]; - int psx_taken_BFC118C4 = (psx_brA_BFC118C4 == psx_brB_BFC118C4); + psx_taken_BFC118C4 = (psx_brA_BFC118C4 == psx_brB_BFC118C4); /* 0xBFC118C8: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC118C4) goto label_BFC1190C; @@ -53209,6 +54846,7 @@ label_BFC1191C: void func_00001E44(CPUState* cpu) { debug_server_log_call_entry(0x00001E44u); + int psx_taken_BFC11968 = 0; label_BFC11944: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -53234,7 +54872,7 @@ label_BFC11944: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (16384)); /* 0xBFC11968: 14B80005 bne $a1, $t8, 0xBFC11980 */ uint32_t psx_brA_BFC11968 = cpu->gpr[5]; uint32_t psx_brB_BFC11968 = cpu->gpr[24]; - int psx_taken_BFC11968 = (psx_brA_BFC11968 != psx_brB_BFC11968); + psx_taken_BFC11968 = (psx_brA_BFC11968 != psx_brB_BFC11968); /* 0xBFC1196C: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC11968) { cpu->pc = 0xBFC11980u; return; } @@ -53255,6 +54893,7 @@ label_BFC11970: void func_00001E80(CPUState* cpu) { debug_server_log_call_entry(0x00001E80u); + int psx_taken_BFC11988 = 0; label_BFC11980: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -53266,7 +54905,7 @@ label_BFC11980: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (8192)); /* 0xBFC11988: 10990003 beq $a0, $t9, 0xBFC11998 */ uint32_t psx_brA_BFC11988 = cpu->gpr[4]; uint32_t psx_brB_BFC11988 = cpu->gpr[25]; - int psx_taken_BFC11988 = (psx_brA_BFC11988 == psx_brB_BFC11988); + psx_taken_BFC11988 = (psx_brA_BFC11988 == psx_brB_BFC11988); /* 0xBFC1198C: 00000000 nop */ /* nop */ if (psx_taken_BFC11988) { cpu->pc = 0xBFC11998u; return; } @@ -53283,6 +54922,8 @@ label_BFC11990: void func_00001E98(CPUState* cpu) { debug_server_log_call_entry(0x00001E98u); + int psx_taken_BFC119A0 = 0; + int psx_taken_BFC119B0 = 0; label_BFC11998: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -53294,7 +54935,7 @@ label_BFC11998: /* nop */ /* 0xBFC119A0: 10A80005 beq $a1, $t0, 0xBFC119B8 */ uint32_t psx_brA_BFC119A0 = cpu->gpr[5]; uint32_t psx_brB_BFC119A0 = cpu->gpr[8]; - int psx_taken_BFC119A0 = (psx_brA_BFC119A0 == psx_brB_BFC119A0); + psx_taken_BFC119A0 = (psx_brA_BFC119A0 == psx_brB_BFC119A0); /* 0xBFC119A4: 00000000 nop */ /* nop */ if (psx_taken_BFC119A0) goto label_BFC119B8; @@ -53309,7 +54950,7 @@ label_BFC119A8: /* nop */ /* 0xBFC119B0: 14A9FFFD bne $a1, $t1, 0xBFC119A8 */ uint32_t psx_brA_BFC119B0 = cpu->gpr[5]; uint32_t psx_brB_BFC119B0 = cpu->gpr[9]; - int psx_taken_BFC119B0 = (psx_brA_BFC119B0 != psx_brB_BFC119B0); + psx_taken_BFC119B0 = (psx_brA_BFC119B0 != psx_brB_BFC119B0); /* 0xBFC119B4: 00000000 nop */ /* nop */ if (psx_taken_BFC119B0) goto label_BFC119A8; @@ -53330,6 +54971,7 @@ label_BFC119B8: void func_00001EC8(CPUState* cpu) { debug_server_log_call_entry(0x00001EC8u); + int psx_taken_BFC119EC = 0; label_BFC119C8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -53355,7 +54997,7 @@ label_BFC119C8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (16384)); /* 0xBFC119EC: 17010005 bne $t8, $at, 0xBFC11A04 */ uint32_t psx_brA_BFC119EC = cpu->gpr[24]; uint32_t psx_brB_BFC119EC = cpu->gpr[1]; - int psx_taken_BFC119EC = (psx_brA_BFC119EC != psx_brB_BFC119EC); + psx_taken_BFC119EC = (psx_brA_BFC119EC != psx_brB_BFC119EC); /* 0xBFC119F0: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC119EC) { cpu->pc = 0xBFC11A04u; return; } @@ -53391,6 +55033,7 @@ label_BFC11A04: void func_00001F10(CPUState* cpu) { debug_server_log_call_entry(0x00001F10u); + int psx_taken_BFC11A34 = 0; label_BFC11A10: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -53416,7 +55059,7 @@ label_BFC11A10: cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; /* 0xBFC11A34: 13000003 beq $t8, $zero, 0xBFC11A44 */ uint32_t psx_brA_BFC11A34 = cpu->gpr[24]; uint32_t psx_brB_BFC11A34 = cpu->gpr[0]; - int psx_taken_BFC11A34 = (psx_brA_BFC11A34 == psx_brB_BFC11A34); + psx_taken_BFC11A34 = (psx_brA_BFC11A34 == psx_brB_BFC11A34); /* 0xBFC11A38: 00000000 nop */ /* nop */ if (psx_taken_BFC11A34) goto label_BFC11A44; @@ -53442,6 +55085,7 @@ label_BFC11A44: void func_00001F4C(CPUState* cpu) { debug_server_log_call_entry(0x00001F4Cu); + int psx_taken_BFC11A70 = 0; label_BFC11A4C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -53467,7 +55111,7 @@ label_BFC11A4C: cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; /* 0xBFC11A70: 13000003 beq $t8, $zero, 0xBFC11A80 */ uint32_t psx_brA_BFC11A70 = cpu->gpr[24]; uint32_t psx_brB_BFC11A70 = cpu->gpr[0]; - int psx_taken_BFC11A70 = (psx_brA_BFC11A70 == psx_brB_BFC11A70); + psx_taken_BFC11A70 = (psx_brA_BFC11A70 == psx_brB_BFC11A70); /* 0xBFC11A74: 00000000 nop */ /* nop */ if (psx_taken_BFC11A70) goto label_BFC11A80; @@ -53501,6 +55145,8 @@ void func_00001F88(CPUState* cpu) { default: break; } } + int psx_taken_BFC11AC0 = 0; + int psx_taken_BFC11AD4 = 0; label_BFC11A88: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -53536,7 +55182,7 @@ label_BFC11A88: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < cpu->gpr[2] ? 1 : 0); /* 0xBFC11AC0: 10200012 beq $at, $zero, 0xBFC11B0C */ uint32_t psx_brA_BFC11AC0 = cpu->gpr[1]; uint32_t psx_brB_BFC11AC0 = cpu->gpr[0]; - int psx_taken_BFC11AC0 = (psx_brA_BFC11AC0 == psx_brB_BFC11AC0); + psx_taken_BFC11AC0 = (psx_brA_BFC11AC0 == psx_brB_BFC11AC0); /* 0xBFC11AC4: 00000000 nop */ /* nop */ if (psx_taken_BFC11AC0) { cpu->pc = 0xBFC11B0Cu; return; } @@ -53558,7 +55204,7 @@ label_BFC11ACC: /* nop */ /* 0xBFC11AD4: 14880009 bne $a0, $t0, 0xBFC11AFC */ uint32_t psx_brA_BFC11AD4 = cpu->gpr[4]; uint32_t psx_brB_BFC11AD4 = cpu->gpr[8]; - int psx_taken_BFC11AD4 = (psx_brA_BFC11AD4 != psx_brB_BFC11AD4); + psx_taken_BFC11AD4 = (psx_brA_BFC11AD4 != psx_brB_BFC11AD4); /* 0xBFC11AD8: 00000000 nop */ /* nop */ if (psx_taken_BFC11AD4) { cpu->pc = 0xBFC11AFCu; return; } @@ -53595,6 +55241,7 @@ void func_00001FFC(CPUState* cpu) { default: break; } } + int psx_taken_BFC11B04 = 0; label_BFC11AFC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -53606,7 +55253,7 @@ label_BFC11AFC: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[2] ? 1 : 0); /* 0xBFC11B04: 1420FFF1 bne $at, $zero, 0xBFC11ACC */ uint32_t psx_brA_BFC11B04 = cpu->gpr[1]; uint32_t psx_brB_BFC11B04 = cpu->gpr[0]; - int psx_taken_BFC11B04 = (psx_brA_BFC11B04 != psx_brB_BFC11B04); + psx_taken_BFC11B04 = (psx_brA_BFC11B04 != psx_brB_BFC11B04); /* 0xBFC11B08: 00000000 nop */ /* nop */ if (psx_taken_BFC11B04) { cpu->pc = 0xBFC11ACCu; return; } @@ -53633,6 +55280,8 @@ void func_00002018(CPUState* cpu) { default: break; } } + int psx_taken_BFC11B48 = 0; + int psx_taken_BFC11B50 = 0; label_BFC11B18: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -53670,7 +55319,7 @@ label_BFC11B3C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC11B48: 14410003 bne $v0, $at, 0xBFC11B58 */ uint32_t psx_brA_BFC11B48 = cpu->gpr[2]; uint32_t psx_brB_BFC11B48 = cpu->gpr[1]; - int psx_taken_BFC11B48 = (psx_brA_BFC11B48 != psx_brB_BFC11B48); + psx_taken_BFC11B48 = (psx_brA_BFC11B48 != psx_brB_BFC11B48); /* 0xBFC11B4C: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC11B48) goto label_BFC11B58; @@ -53681,7 +55330,7 @@ label_BFC11B50: psx_check_interrupts(cpu); /* 0xBFC11B50: 10000011 beq $zero, $zero, 0xBFC11B98 */ uint32_t psx_brA_BFC11B50 = cpu->gpr[0]; uint32_t psx_brB_BFC11B50 = cpu->gpr[0]; - int psx_taken_BFC11B50 = (psx_brA_BFC11B50 == psx_brB_BFC11B50); + psx_taken_BFC11B50 = (psx_brA_BFC11B50 == psx_brB_BFC11B50); /* 0xBFC11B54: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC11B50) goto label_BFC11B98; @@ -53825,6 +55474,7 @@ label_BFC11C04: void func_00002114(CPUState* cpu) { debug_server_log_call_entry(0x00002114u); + int psx_taken_BFC11C14 = 0; label_BFC11C14: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -53832,7 +55482,7 @@ label_BFC11C14: psx_check_interrupts(cpu); /* 0xBFC11C14: 14800003 bne $a0, $zero, 0xBFC11C24 */ uint32_t psx_brA_BFC11C14 = cpu->gpr[4]; uint32_t psx_brB_BFC11C14 = cpu->gpr[0]; - int psx_taken_BFC11C14 = (psx_brA_BFC11C14 != psx_brB_BFC11C14); + psx_taken_BFC11C14 = (psx_brA_BFC11C14 != psx_brB_BFC11C14); /* 0xBFC11C18: 00000000 nop */ /* nop */ if (psx_taken_BFC11C14) { cpu->pc = 0xBFC11C24u; return; } @@ -53849,6 +55499,8 @@ label_BFC11C1C: void func_00002124(CPUState* cpu) { debug_server_log_call_entry(0x00002124u); + int psx_taken_BFC11C24 = 0; + int psx_taken_BFC11C3C = 0; label_BFC11C24: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -53856,7 +55508,7 @@ label_BFC11C24: psx_check_interrupts(cpu); /* 0xBFC11C24: 18C00007 blez $a2, 0xBFC11C44 */ uint32_t psx_brA_BFC11C24 = cpu->gpr[6]; - int psx_taken_BFC11C24 = ((int32_t)psx_brA_BFC11C24 <= 0); + psx_taken_BFC11C24 = ((int32_t)psx_brA_BFC11C24 <= 0); /* 0xBFC11C28: 00801821 addu $v1, $a0, $zero */ cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC11C24) goto label_BFC11C44; @@ -53875,7 +55527,7 @@ label_BFC11C2C: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC11C3C: 1CC0FFFB bgtz $a2, 0xBFC11C2C */ uint32_t psx_brA_BFC11C3C = cpu->gpr[6]; - int psx_taken_BFC11C3C = ((int32_t)psx_brA_BFC11C3C > 0); + psx_taken_BFC11C3C = ((int32_t)psx_brA_BFC11C3C > 0); /* 0xBFC11C40: A0AEFFFF sb $t6, -1($a1) */ g_debug_last_store_pc = 0xBFC11C40u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[5] + (-1)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC11C3C) goto label_BFC11C2C; @@ -53894,6 +55546,8 @@ label_BFC11C44: void func_00002150(CPUState* cpu) { debug_server_log_call_entry(0x00002150u); + int psx_taken_BFC11C50 = 0; + int psx_taken_BFC11C58 = 0; label_BFC11C50: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -53901,7 +55555,7 @@ label_BFC11C50: psx_check_interrupts(cpu); /* 0xBFC11C50: 10800003 beq $a0, $zero, 0xBFC11C60 */ uint32_t psx_brA_BFC11C50 = cpu->gpr[4]; uint32_t psx_brB_BFC11C50 = cpu->gpr[0]; - int psx_taken_BFC11C50 = (psx_brA_BFC11C50 == psx_brB_BFC11C50); + psx_taken_BFC11C50 = (psx_brA_BFC11C50 == psx_brB_BFC11C50); /* 0xBFC11C54: 00000000 nop */ /* nop */ if (psx_taken_BFC11C50) goto label_BFC11C60; @@ -53912,7 +55566,7 @@ label_BFC11C58: psx_check_interrupts(cpu); /* 0xBFC11C58: 1CA00003 bgtz $a1, 0xBFC11C68 */ uint32_t psx_brA_BFC11C58 = cpu->gpr[5]; - int psx_taken_BFC11C58 = ((int32_t)psx_brA_BFC11C58 > 0); + psx_taken_BFC11C58 = ((int32_t)psx_brA_BFC11C58 > 0); /* 0xBFC11C5C: 00000000 nop */ /* nop */ if (psx_taken_BFC11C58) { cpu->pc = 0xBFC11C68u; return; } @@ -53929,6 +55583,8 @@ label_BFC11C60: void func_00002168(CPUState* cpu) { debug_server_log_call_entry(0x00002168u); + int psx_taken_BFC11C68 = 0; + int psx_taken_BFC11C78 = 0; label_BFC11C68: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -53936,7 +55592,7 @@ label_BFC11C68: psx_check_interrupts(cpu); /* 0xBFC11C68: 18A00005 blez $a1, 0xBFC11C80 */ uint32_t psx_brA_BFC11C68 = cpu->gpr[5]; - int psx_taken_BFC11C68 = ((int32_t)psx_brA_BFC11C68 <= 0); + psx_taken_BFC11C68 = ((int32_t)psx_brA_BFC11C68 <= 0); /* 0xBFC11C6C: 00801821 addu $v1, $a0, $zero */ cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC11C68) goto label_BFC11C80; @@ -53951,7 +55607,7 @@ label_BFC11C70: g_debug_last_store_pc = 0xBFC11C74u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[4] + (0)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC11C78: 1CA0FFFD bgtz $a1, 0xBFC11C70 */ uint32_t psx_brA_BFC11C78 = cpu->gpr[5]; - int psx_taken_BFC11C78 = ((int32_t)psx_brA_BFC11C78 > 0); + psx_taken_BFC11C78 = ((int32_t)psx_brA_BFC11C78 > 0); /* 0xBFC11C7C: 24840001 addiu $a0, $a0, 1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); if (psx_taken_BFC11C78) goto label_BFC11C70; @@ -53988,6 +55644,19 @@ void func_0000218C(CPUState* cpu) { default: break; } } + int psx_taken_BFC11CB0 = 0; + int psx_taken_BFC11CE8 = 0; + int psx_taken_BFC11D20 = 0; + int psx_taken_BFC11D58 = 0; + int psx_taken_BFC11D90 = 0; + int psx_taken_BFC11DC8 = 0; + int psx_taken_BFC11E00 = 0; + int psx_taken_BFC11E38 = 0; + int psx_taken_BFC11E70 = 0; + int psx_taken_BFC11EA8 = 0; + int psx_taken_BFC11EE0 = 0; + int psx_taken_BFC11F20 = 0; + int psx_taken_BFC11F38 = 0; label_BFC11C8C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -54013,7 +55682,7 @@ label_BFC11C8C: cpu->gpr[25] = cpu->gpr[24] & 0x4u; /* 0xBFC11CB0: 13200008 beq $t9, $zero, 0xBFC11CD4 */ uint32_t psx_brA_BFC11CB0 = cpu->gpr[25]; uint32_t psx_brB_BFC11CB0 = cpu->gpr[0]; - int psx_taken_BFC11CB0 = (psx_brA_BFC11CB0 == psx_brB_BFC11CB0); + psx_taken_BFC11CB0 = (psx_brA_BFC11CB0 == psx_brB_BFC11CB0); /* 0xBFC11CB4: 00000000 nop */ /* nop */ if (psx_taken_BFC11CB0) goto label_BFC11CD4; @@ -54059,7 +55728,7 @@ label_BFC11CD4: cpu->gpr[11] = cpu->gpr[10] & 0x200u; /* 0xBFC11CE8: 11600008 beq $t3, $zero, 0xBFC11D0C */ uint32_t psx_brA_BFC11CE8 = cpu->gpr[11]; uint32_t psx_brB_BFC11CE8 = cpu->gpr[0]; - int psx_taken_BFC11CE8 = (psx_brA_BFC11CE8 == psx_brB_BFC11CE8); + psx_taken_BFC11CE8 = (psx_brA_BFC11CE8 == psx_brB_BFC11CE8); /* 0xBFC11CEC: 00000000 nop */ /* nop */ if (psx_taken_BFC11CE8) goto label_BFC11D0C; @@ -54105,7 +55774,7 @@ label_BFC11D0C: cpu->gpr[15] = cpu->gpr[14] & 0x2u; /* 0xBFC11D20: 11E00008 beq $t7, $zero, 0xBFC11D44 */ uint32_t psx_brA_BFC11D20 = cpu->gpr[15]; uint32_t psx_brB_BFC11D20 = cpu->gpr[0]; - int psx_taken_BFC11D20 = (psx_brA_BFC11D20 == psx_brB_BFC11D20); + psx_taken_BFC11D20 = (psx_brA_BFC11D20 == psx_brB_BFC11D20); /* 0xBFC11D24: 00000000 nop */ /* nop */ if (psx_taken_BFC11D20) goto label_BFC11D44; @@ -54151,7 +55820,7 @@ label_BFC11D44: cpu->gpr[9] = cpu->gpr[8] & 0x400u; /* 0xBFC11D58: 11200008 beq $t1, $zero, 0xBFC11D7C */ uint32_t psx_brA_BFC11D58 = cpu->gpr[9]; uint32_t psx_brB_BFC11D58 = cpu->gpr[0]; - int psx_taken_BFC11D58 = (psx_brA_BFC11D58 == psx_brB_BFC11D58); + psx_taken_BFC11D58 = (psx_brA_BFC11D58 == psx_brB_BFC11D58); /* 0xBFC11D5C: 00000000 nop */ /* nop */ if (psx_taken_BFC11D58) goto label_BFC11D7C; @@ -54197,7 +55866,7 @@ label_BFC11D7C: cpu->gpr[13] = cpu->gpr[12] & 0x100u; /* 0xBFC11D90: 11A00008 beq $t5, $zero, 0xBFC11DB4 */ uint32_t psx_brA_BFC11D90 = cpu->gpr[13]; uint32_t psx_brB_BFC11D90 = cpu->gpr[0]; - int psx_taken_BFC11D90 = (psx_brA_BFC11D90 == psx_brB_BFC11D90); + psx_taken_BFC11D90 = (psx_brA_BFC11D90 == psx_brB_BFC11D90); /* 0xBFC11D94: 00000000 nop */ /* nop */ if (psx_taken_BFC11D90) goto label_BFC11DB4; @@ -54243,7 +55912,7 @@ label_BFC11DB4: cpu->gpr[25] = cpu->gpr[24] & 0x1u; /* 0xBFC11DC8: 13200008 beq $t9, $zero, 0xBFC11DEC */ uint32_t psx_brA_BFC11DC8 = cpu->gpr[25]; uint32_t psx_brB_BFC11DC8 = cpu->gpr[0]; - int psx_taken_BFC11DC8 = (psx_brA_BFC11DC8 == psx_brB_BFC11DC8); + psx_taken_BFC11DC8 = (psx_brA_BFC11DC8 == psx_brB_BFC11DC8); /* 0xBFC11DCC: 00000000 nop */ /* nop */ if (psx_taken_BFC11DC8) goto label_BFC11DEC; @@ -54289,7 +55958,7 @@ label_BFC11DEC: cpu->gpr[11] = cpu->gpr[10] & 0x10u; /* 0xBFC11E00: 11600008 beq $t3, $zero, 0xBFC11E24 */ uint32_t psx_brA_BFC11E00 = cpu->gpr[11]; uint32_t psx_brB_BFC11E00 = cpu->gpr[0]; - int psx_taken_BFC11E00 = (psx_brA_BFC11E00 == psx_brB_BFC11E00); + psx_taken_BFC11E00 = (psx_brA_BFC11E00 == psx_brB_BFC11E00); /* 0xBFC11E04: 00000000 nop */ /* nop */ if (psx_taken_BFC11E00) goto label_BFC11E24; @@ -54335,7 +56004,7 @@ label_BFC11E24: cpu->gpr[15] = cpu->gpr[14] & 0x20u; /* 0xBFC11E38: 11E00008 beq $t7, $zero, 0xBFC11E5C */ uint32_t psx_brA_BFC11E38 = cpu->gpr[15]; uint32_t psx_brB_BFC11E38 = cpu->gpr[0]; - int psx_taken_BFC11E38 = (psx_brA_BFC11E38 == psx_brB_BFC11E38); + psx_taken_BFC11E38 = (psx_brA_BFC11E38 == psx_brB_BFC11E38); /* 0xBFC11E3C: 00000000 nop */ /* nop */ if (psx_taken_BFC11E38) goto label_BFC11E5C; @@ -54381,7 +56050,7 @@ label_BFC11E5C: cpu->gpr[9] = cpu->gpr[8] & 0x40u; /* 0xBFC11E70: 11200008 beq $t1, $zero, 0xBFC11E94 */ uint32_t psx_brA_BFC11E70 = cpu->gpr[9]; uint32_t psx_brB_BFC11E70 = cpu->gpr[0]; - int psx_taken_BFC11E70 = (psx_brA_BFC11E70 == psx_brB_BFC11E70); + psx_taken_BFC11E70 = (psx_brA_BFC11E70 == psx_brB_BFC11E70); /* 0xBFC11E74: 00000000 nop */ /* nop */ if (psx_taken_BFC11E70) goto label_BFC11E94; @@ -54427,7 +56096,7 @@ label_BFC11E94: cpu->gpr[13] = cpu->gpr[12] & 0x80u; /* 0xBFC11EA8: 11A00008 beq $t5, $zero, 0xBFC11ECC */ uint32_t psx_brA_BFC11EA8 = cpu->gpr[13]; uint32_t psx_brB_BFC11EA8 = cpu->gpr[0]; - int psx_taken_BFC11EA8 = (psx_brA_BFC11EA8 == psx_brB_BFC11EA8); + psx_taken_BFC11EA8 = (psx_brA_BFC11EA8 == psx_brB_BFC11EA8); /* 0xBFC11EAC: 00000000 nop */ /* nop */ if (psx_taken_BFC11EA8) goto label_BFC11ECC; @@ -54473,7 +56142,7 @@ label_BFC11ECC: cpu->gpr[25] = cpu->gpr[24] & 0x8u; /* 0xBFC11EE0: 13200008 beq $t9, $zero, 0xBFC11F04 */ uint32_t psx_brA_BFC11EE0 = cpu->gpr[25]; uint32_t psx_brB_BFC11EE0 = cpu->gpr[0]; - int psx_taken_BFC11EE0 = (psx_brA_BFC11EE0 == psx_brB_BFC11EE0); + psx_taken_BFC11EE0 = (psx_brA_BFC11EE0 == psx_brB_BFC11EE0); /* 0xBFC11EE4: 00000000 nop */ /* nop */ if (psx_taken_BFC11EE0) goto label_BFC11F04; @@ -54528,7 +56197,7 @@ label_BFC11F18: /* nop */ /* 0xBFC11F20: 11000004 beq $t0, $zero, 0xBFC11F34 */ uint32_t psx_brA_BFC11F20 = cpu->gpr[8]; uint32_t psx_brB_BFC11F20 = cpu->gpr[0]; - int psx_taken_BFC11F20 = (psx_brA_BFC11F20 == psx_brB_BFC11F20); + psx_taken_BFC11F20 = (psx_brA_BFC11F20 == psx_brB_BFC11F20); /* 0xBFC11F24: 00000000 nop */ /* nop */ if (psx_taken_BFC11F20) goto label_BFC11F34; @@ -54552,7 +56221,7 @@ label_BFC11F34: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC11F38: 1445FFF7 bne $v0, $a1, 0xBFC11F18 */ uint32_t psx_brA_BFC11F38 = cpu->gpr[2]; uint32_t psx_brB_BFC11F38 = cpu->gpr[5]; - int psx_taken_BFC11F38 = (psx_brA_BFC11F38 != psx_brB_BFC11F38); + psx_taken_BFC11F38 = (psx_brA_BFC11F38 != psx_brB_BFC11F38); /* 0xBFC11F3C: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC11F38) goto label_BFC11F18; @@ -54595,6 +56264,19 @@ void func_00002458(CPUState* cpu) { default: break; } } + int psx_taken_BFC11F7C = 0; + int psx_taken_BFC11FB4 = 0; + int psx_taken_BFC11FEC = 0; + int psx_taken_BFC12024 = 0; + int psx_taken_BFC1205C = 0; + int psx_taken_BFC12094 = 0; + int psx_taken_BFC120CC = 0; + int psx_taken_BFC12104 = 0; + int psx_taken_BFC1213C = 0; + int psx_taken_BFC12174 = 0; + int psx_taken_BFC121AC = 0; + int psx_taken_BFC121EC = 0; + int psx_taken_BFC12204 = 0; label_BFC11F58: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -54620,7 +56302,7 @@ label_BFC11F58: cpu->gpr[25] = cpu->gpr[24] & 0x4u; /* 0xBFC11F7C: 13200008 beq $t9, $zero, 0xBFC11FA0 */ uint32_t psx_brA_BFC11F7C = cpu->gpr[25]; uint32_t psx_brB_BFC11F7C = cpu->gpr[0]; - int psx_taken_BFC11F7C = (psx_brA_BFC11F7C == psx_brB_BFC11F7C); + psx_taken_BFC11F7C = (psx_brA_BFC11F7C == psx_brB_BFC11F7C); /* 0xBFC11F80: 00000000 nop */ /* nop */ if (psx_taken_BFC11F7C) goto label_BFC11FA0; @@ -54666,7 +56348,7 @@ label_BFC11FA0: cpu->gpr[11] = cpu->gpr[10] & 0x200u; /* 0xBFC11FB4: 11600008 beq $t3, $zero, 0xBFC11FD8 */ uint32_t psx_brA_BFC11FB4 = cpu->gpr[11]; uint32_t psx_brB_BFC11FB4 = cpu->gpr[0]; - int psx_taken_BFC11FB4 = (psx_brA_BFC11FB4 == psx_brB_BFC11FB4); + psx_taken_BFC11FB4 = (psx_brA_BFC11FB4 == psx_brB_BFC11FB4); /* 0xBFC11FB8: 00000000 nop */ /* nop */ if (psx_taken_BFC11FB4) goto label_BFC11FD8; @@ -54712,7 +56394,7 @@ label_BFC11FD8: cpu->gpr[15] = cpu->gpr[14] & 0x2u; /* 0xBFC11FEC: 11E00008 beq $t7, $zero, 0xBFC12010 */ uint32_t psx_brA_BFC11FEC = cpu->gpr[15]; uint32_t psx_brB_BFC11FEC = cpu->gpr[0]; - int psx_taken_BFC11FEC = (psx_brA_BFC11FEC == psx_brB_BFC11FEC); + psx_taken_BFC11FEC = (psx_brA_BFC11FEC == psx_brB_BFC11FEC); /* 0xBFC11FF0: 00000000 nop */ /* nop */ if (psx_taken_BFC11FEC) goto label_BFC12010; @@ -54758,7 +56440,7 @@ label_BFC12010: cpu->gpr[9] = cpu->gpr[8] & 0x400u; /* 0xBFC12024: 11200008 beq $t1, $zero, 0xBFC12048 */ uint32_t psx_brA_BFC12024 = cpu->gpr[9]; uint32_t psx_brB_BFC12024 = cpu->gpr[0]; - int psx_taken_BFC12024 = (psx_brA_BFC12024 == psx_brB_BFC12024); + psx_taken_BFC12024 = (psx_brA_BFC12024 == psx_brB_BFC12024); /* 0xBFC12028: 00000000 nop */ /* nop */ if (psx_taken_BFC12024) goto label_BFC12048; @@ -54804,7 +56486,7 @@ label_BFC12048: cpu->gpr[13] = cpu->gpr[12] & 0x100u; /* 0xBFC1205C: 11A00008 beq $t5, $zero, 0xBFC12080 */ uint32_t psx_brA_BFC1205C = cpu->gpr[13]; uint32_t psx_brB_BFC1205C = cpu->gpr[0]; - int psx_taken_BFC1205C = (psx_brA_BFC1205C == psx_brB_BFC1205C); + psx_taken_BFC1205C = (psx_brA_BFC1205C == psx_brB_BFC1205C); /* 0xBFC12060: 00000000 nop */ /* nop */ if (psx_taken_BFC1205C) goto label_BFC12080; @@ -54850,7 +56532,7 @@ label_BFC12080: cpu->gpr[25] = cpu->gpr[24] & 0x1u; /* 0xBFC12094: 13200008 beq $t9, $zero, 0xBFC120B8 */ uint32_t psx_brA_BFC12094 = cpu->gpr[25]; uint32_t psx_brB_BFC12094 = cpu->gpr[0]; - int psx_taken_BFC12094 = (psx_brA_BFC12094 == psx_brB_BFC12094); + psx_taken_BFC12094 = (psx_brA_BFC12094 == psx_brB_BFC12094); /* 0xBFC12098: 00000000 nop */ /* nop */ if (psx_taken_BFC12094) goto label_BFC120B8; @@ -54896,7 +56578,7 @@ label_BFC120B8: cpu->gpr[11] = cpu->gpr[10] & 0x10u; /* 0xBFC120CC: 11600008 beq $t3, $zero, 0xBFC120F0 */ uint32_t psx_brA_BFC120CC = cpu->gpr[11]; uint32_t psx_brB_BFC120CC = cpu->gpr[0]; - int psx_taken_BFC120CC = (psx_brA_BFC120CC == psx_brB_BFC120CC); + psx_taken_BFC120CC = (psx_brA_BFC120CC == psx_brB_BFC120CC); /* 0xBFC120D0: 00000000 nop */ /* nop */ if (psx_taken_BFC120CC) goto label_BFC120F0; @@ -54942,7 +56624,7 @@ label_BFC120F0: cpu->gpr[15] = cpu->gpr[14] & 0x20u; /* 0xBFC12104: 11E00008 beq $t7, $zero, 0xBFC12128 */ uint32_t psx_brA_BFC12104 = cpu->gpr[15]; uint32_t psx_brB_BFC12104 = cpu->gpr[0]; - int psx_taken_BFC12104 = (psx_brA_BFC12104 == psx_brB_BFC12104); + psx_taken_BFC12104 = (psx_brA_BFC12104 == psx_brB_BFC12104); /* 0xBFC12108: 00000000 nop */ /* nop */ if (psx_taken_BFC12104) goto label_BFC12128; @@ -54988,7 +56670,7 @@ label_BFC12128: cpu->gpr[9] = cpu->gpr[8] & 0x40u; /* 0xBFC1213C: 11200008 beq $t1, $zero, 0xBFC12160 */ uint32_t psx_brA_BFC1213C = cpu->gpr[9]; uint32_t psx_brB_BFC1213C = cpu->gpr[0]; - int psx_taken_BFC1213C = (psx_brA_BFC1213C == psx_brB_BFC1213C); + psx_taken_BFC1213C = (psx_brA_BFC1213C == psx_brB_BFC1213C); /* 0xBFC12140: 00000000 nop */ /* nop */ if (psx_taken_BFC1213C) goto label_BFC12160; @@ -55034,7 +56716,7 @@ label_BFC12160: cpu->gpr[13] = cpu->gpr[12] & 0x80u; /* 0xBFC12174: 11A00008 beq $t5, $zero, 0xBFC12198 */ uint32_t psx_brA_BFC12174 = cpu->gpr[13]; uint32_t psx_brB_BFC12174 = cpu->gpr[0]; - int psx_taken_BFC12174 = (psx_brA_BFC12174 == psx_brB_BFC12174); + psx_taken_BFC12174 = (psx_brA_BFC12174 == psx_brB_BFC12174); /* 0xBFC12178: 00000000 nop */ /* nop */ if (psx_taken_BFC12174) goto label_BFC12198; @@ -55080,7 +56762,7 @@ label_BFC12198: cpu->gpr[25] = cpu->gpr[24] & 0x8u; /* 0xBFC121AC: 13200008 beq $t9, $zero, 0xBFC121D0 */ uint32_t psx_brA_BFC121AC = cpu->gpr[25]; uint32_t psx_brB_BFC121AC = cpu->gpr[0]; - int psx_taken_BFC121AC = (psx_brA_BFC121AC == psx_brB_BFC121AC); + psx_taken_BFC121AC = (psx_brA_BFC121AC == psx_brB_BFC121AC); /* 0xBFC121B0: 00000000 nop */ /* nop */ if (psx_taken_BFC121AC) goto label_BFC121D0; @@ -55135,7 +56817,7 @@ label_BFC121E4: /* nop */ /* 0xBFC121EC: 11000004 beq $t0, $zero, 0xBFC12200 */ uint32_t psx_brA_BFC121EC = cpu->gpr[8]; uint32_t psx_brB_BFC121EC = cpu->gpr[0]; - int psx_taken_BFC121EC = (psx_brA_BFC121EC == psx_brB_BFC121EC); + psx_taken_BFC121EC = (psx_brA_BFC121EC == psx_brB_BFC121EC); /* 0xBFC121F0: 00000000 nop */ /* nop */ if (psx_taken_BFC121EC) goto label_BFC12200; @@ -55159,7 +56841,7 @@ label_BFC12200: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC12204: 1445FFF7 bne $v0, $a1, 0xBFC121E4 */ uint32_t psx_brA_BFC12204 = cpu->gpr[2]; uint32_t psx_brB_BFC12204 = cpu->gpr[5]; - int psx_taken_BFC12204 = (psx_brA_BFC12204 != psx_brB_BFC12204); + psx_taken_BFC12204 = (psx_brA_BFC12204 != psx_brB_BFC12204); /* 0xBFC12208: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC12204) goto label_BFC121E4; @@ -55192,6 +56874,7 @@ void func_00002724(CPUState* cpu) { default: break; } } + int psx_taken_BFC12268 = 0; label_BFC12224: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -55238,7 +56921,7 @@ label_BFC12258: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-8)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12264u); return; } g_debug_last_store_pc = 0xBFC12264u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC12268: 1443FFFB bne $v0, $v1, 0xBFC12258 */ uint32_t psx_brA_BFC12268 = cpu->gpr[2]; uint32_t psx_brB_BFC12268 = cpu->gpr[3]; - int psx_taken_BFC12268 = (psx_brA_BFC12268 != psx_brB_BFC12268); + psx_taken_BFC12268 = (psx_brA_BFC12268 != psx_brB_BFC12268); /* 0xBFC1226C: AC40FFFC sw $zero, -4($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1226Cu); return; } g_debug_last_store_pc = 0xBFC1226Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC12268) goto label_BFC12258; @@ -55474,6 +57157,10 @@ void func_00002870(CPUState* cpu) { default: break; } } + int psx_taken_BFC123B0 = 0; + int psx_taken_BFC123B8 = 0; + int psx_taken_BFC123C0 = 0; + int psx_taken_BFC123D0 = 0; label_BFC12370: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -55531,7 +57218,7 @@ label_BFC123A8: /* nop */ /* 0xBFC123B0: 10400005 beq $v0, $zero, 0xBFC123C8 */ uint32_t psx_brA_BFC123B0 = cpu->gpr[2]; uint32_t psx_brB_BFC123B0 = cpu->gpr[0]; - int psx_taken_BFC123B0 = (psx_brA_BFC123B0 == psx_brB_BFC123B0); + psx_taken_BFC123B0 = (psx_brA_BFC123B0 == psx_brB_BFC123B0); /* 0xBFC123B4: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC123B0) goto label_BFC123C8; @@ -55542,7 +57229,7 @@ label_BFC123B8: psx_check_interrupts(cpu); /* 0xBFC123B8: 10410007 beq $v0, $at, 0xBFC123D8 */ uint32_t psx_brA_BFC123B8 = cpu->gpr[2]; uint32_t psx_brB_BFC123B8 = cpu->gpr[1]; - int psx_taken_BFC123B8 = (psx_brA_BFC123B8 == psx_brB_BFC123B8); + psx_taken_BFC123B8 = (psx_brA_BFC123B8 == psx_brB_BFC123B8); /* 0xBFC123BC: 00000000 nop */ /* nop */ if (psx_taken_BFC123B8) goto label_BFC123D8; @@ -55553,7 +57240,7 @@ label_BFC123C0: psx_check_interrupts(cpu); /* 0xBFC123C0: 1000000E beq $zero, $zero, 0xBFC123FC */ uint32_t psx_brA_BFC123C0 = cpu->gpr[0]; uint32_t psx_brB_BFC123C0 = cpu->gpr[0]; - int psx_taken_BFC123C0 = (psx_brA_BFC123C0 == psx_brB_BFC123C0); + psx_taken_BFC123C0 = (psx_brA_BFC123C0 == psx_brB_BFC123C0); /* 0xBFC123C4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC123C4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC123C0) goto label_BFC123FC; @@ -55574,7 +57261,7 @@ label_BFC123D0: psx_check_interrupts(cpu); /* 0xBFC123D0: 10000003 beq $zero, $zero, 0xBFC123E0 */ uint32_t psx_brA_BFC123D0 = cpu->gpr[0]; uint32_t psx_brB_BFC123D0 = cpu->gpr[0]; - int psx_taken_BFC123D0 = (psx_brA_BFC123D0 == psx_brB_BFC123D0); + psx_taken_BFC123D0 = (psx_brA_BFC123D0 == psx_brB_BFC123D0); /* 0xBFC123D4: 00000000 nop */ /* nop */ if (psx_taken_BFC123D0) goto label_BFC123E0; @@ -55651,6 +57338,7 @@ void func_00002908(CPUState* cpu) { default: break; } } + int psx_taken_BFC12430 = 0; label_BFC12408: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -55696,7 +57384,7 @@ label_BFC12430: psx_check_interrupts(cpu); /* 0xBFC12430: 14400006 bne $v0, $zero, 0xBFC1244C */ uint32_t psx_brA_BFC12430 = cpu->gpr[2]; uint32_t psx_brB_BFC12430 = cpu->gpr[0]; - int psx_taken_BFC12430 = (psx_brA_BFC12430 != psx_brB_BFC12430); + psx_taken_BFC12430 = (psx_brA_BFC12430 != psx_brB_BFC12430); /* 0xBFC12434: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12434u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC12430) goto label_BFC1244C; @@ -55746,6 +57434,12 @@ void func_00002958(CPUState* cpu) { default: break; } } + int psx_taken_BFC1246C = 0; + int psx_taken_BFC12480 = 0; + int psx_taken_BFC124A4 = 0; + int psx_taken_BFC124BC = 0; + int psx_taken_BFC12510 = 0; + int psx_taken_BFC12528 = 0; label_BFC12458: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -55769,7 +57463,7 @@ label_BFC1246C: psx_check_interrupts(cpu); /* 0xBFC1246C: 14400006 bne $v0, $zero, 0xBFC12488 */ uint32_t psx_brA_BFC1246C = cpu->gpr[2]; uint32_t psx_brB_BFC1246C = cpu->gpr[0]; - int psx_taken_BFC1246C = (psx_brA_BFC1246C != psx_brB_BFC1246C); + psx_taken_BFC1246C = (psx_brA_BFC1246C != psx_brB_BFC1246C); /* 0xBFC12470: 00403821 addu $a3, $v0, $zero */ cpu->gpr[7] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1246C) goto label_BFC12488; @@ -55786,7 +57480,7 @@ label_BFC12474: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1247Cu); return; } g_debug_last_store_pc = 0xBFC1247Cu; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC12480: 10000034 beq $zero, $zero, 0xBFC12554 */ uint32_t psx_brA_BFC12480 = cpu->gpr[0]; uint32_t psx_brB_BFC12480 = cpu->gpr[0]; - int psx_taken_BFC12480 = (psx_brA_BFC12480 == psx_brB_BFC12480); + psx_taken_BFC12480 = (psx_brA_BFC12480 == psx_brB_BFC12480); /* 0xBFC12484: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC12480) goto label_BFC12554; @@ -55817,7 +57511,7 @@ label_BFC1249C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC124A4: 14410007 bne $v0, $at, 0xBFC124C4 */ uint32_t psx_brA_BFC124A4 = cpu->gpr[2]; uint32_t psx_brB_BFC124A4 = cpu->gpr[1]; - int psx_taken_BFC124A4 = (psx_brA_BFC124A4 != psx_brB_BFC124A4); + psx_taken_BFC124A4 = (psx_brA_BFC124A4 != psx_brB_BFC124A4); /* 0xBFC124A8: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC124A4) goto label_BFC124C4; @@ -55836,7 +57530,7 @@ label_BFC124AC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[7] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC124B8u); return; } g_debug_last_store_pc = 0xBFC124B8u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC124BC: 10000025 beq $zero, $zero, 0xBFC12554 */ uint32_t psx_brA_BFC124BC = cpu->gpr[0]; uint32_t psx_brB_BFC124BC = cpu->gpr[0]; - int psx_taken_BFC124BC = (psx_brA_BFC124BC == psx_brB_BFC124BC); + psx_taken_BFC124BC = (psx_brA_BFC124BC == psx_brB_BFC124BC); /* 0xBFC124C0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC124BC) goto label_BFC12554; @@ -55891,7 +57585,7 @@ label_BFC1250C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1250Cu); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } /* 0xBFC12510: 10400007 beq $v0, $zero, 0xBFC12530 */ uint32_t psx_brA_BFC12510 = cpu->gpr[2]; uint32_t psx_brB_BFC12510 = cpu->gpr[0]; - int psx_taken_BFC12510 = (psx_brA_BFC12510 == psx_brB_BFC12510); + psx_taken_BFC12510 = (psx_brA_BFC12510 == psx_brB_BFC12510); /* 0xBFC12514: 00000000 nop */ /* nop */ if (psx_taken_BFC12510) goto label_BFC12530; @@ -55910,7 +57604,7 @@ label_BFC12518: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[7] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12524u); return; } g_debug_last_store_pc = 0xBFC12524u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC12528: 1000000A beq $zero, $zero, 0xBFC12554 */ uint32_t psx_brA_BFC12528 = cpu->gpr[0]; uint32_t psx_brB_BFC12528 = cpu->gpr[0]; - int psx_taken_BFC12528 = (psx_brA_BFC12528 == psx_brB_BFC12528); + psx_taken_BFC12528 = (psx_brA_BFC12528 == psx_brB_BFC12528); /* 0xBFC1252C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC12528) goto label_BFC12554; @@ -55963,6 +57657,15 @@ void func_00002A64(CPUState* cpu) { default: break; } } + int psx_taken_BFC12580 = 0; + int psx_taken_BFC12590 = 0; + int psx_taken_BFC125A4 = 0; + int psx_taken_BFC125AC = 0; + int psx_taken_BFC125C0 = 0; + int psx_taken_BFC125F0 = 0; + int psx_taken_BFC125F8 = 0; + int psx_taken_BFC12600 = 0; + int psx_taken_BFC12608 = 0; label_BFC12564: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -55990,7 +57693,7 @@ label_BFC12578: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1257Cu); return; } cpu->gpr[6] = cpu->read_word(psx_addr); } /* 0xBFC12580: 10400005 beq $v0, $zero, 0xBFC12598 */ uint32_t psx_brA_BFC12580 = cpu->gpr[2]; uint32_t psx_brB_BFC12580 = cpu->gpr[0]; - int psx_taken_BFC12580 = (psx_brA_BFC12580 == psx_brB_BFC12580); + psx_taken_BFC12580 = (psx_brA_BFC12580 == psx_brB_BFC12580); /* 0xBFC12584: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC12580) goto label_BFC12598; @@ -56005,7 +57708,7 @@ label_BFC12588: /* nop */ /* 0xBFC12590: 15C00019 bne $t6, $zero, 0xBFC125F8 */ uint32_t psx_brA_BFC12590 = cpu->gpr[14]; uint32_t psx_brB_BFC12590 = cpu->gpr[0]; - int psx_taken_BFC12590 = (psx_brA_BFC12590 != psx_brB_BFC12590); + psx_taken_BFC12590 = (psx_brA_BFC12590 != psx_brB_BFC12590); /* 0xBFC12594: 00000000 nop */ /* nop */ if (psx_taken_BFC12590) goto label_BFC125F8; @@ -56022,7 +57725,7 @@ label_BFC12598: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC125A0u); return; } g_debug_last_store_pc = 0xBFC125A0u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC125A4: 1000001C beq $zero, $zero, 0xBFC12618 */ uint32_t psx_brA_BFC125A4 = cpu->gpr[0]; uint32_t psx_brB_BFC125A4 = cpu->gpr[0]; - int psx_taken_BFC125A4 = (psx_brA_BFC125A4 == psx_brB_BFC125A4); + psx_taken_BFC125A4 = (psx_brA_BFC125A4 == psx_brB_BFC125A4); /* 0xBFC125A8: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC125A4) goto label_BFC12618; @@ -56033,7 +57736,7 @@ label_BFC125AC: psx_check_interrupts(cpu); /* 0xBFC125AC: 10000018 beq $zero, $zero, 0xBFC12610 */ uint32_t psx_brA_BFC125AC = cpu->gpr[0]; uint32_t psx_brB_BFC125AC = cpu->gpr[0]; - int psx_taken_BFC125AC = (psx_brA_BFC125AC == psx_brB_BFC125AC); + psx_taken_BFC125AC = (psx_brA_BFC125AC == psx_brB_BFC125AC); /* 0xBFC125B0: AC440010 sw $a0, 16($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (16)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC125B0u); return; } g_debug_last_store_pc = 0xBFC125B0u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC125AC) goto label_BFC12610; @@ -56050,7 +57753,7 @@ label_BFC125B4: cpu->gpr[25] = cpu->gpr[24] + cpu->gpr[4]; /* 0xBFC125C0: 10000013 beq $zero, $zero, 0xBFC12610 */ uint32_t psx_brA_BFC125C0 = cpu->gpr[0]; uint32_t psx_brB_BFC125C0 = cpu->gpr[0]; - int psx_taken_BFC125C0 = (psx_brA_BFC125C0 == psx_brB_BFC125C0); + psx_taken_BFC125C0 = (psx_brA_BFC125C0 == psx_brB_BFC125C0); /* 0xBFC125C4: AC590010 sw $t9, 16($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (16)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC125C4u); return; } g_debug_last_store_pc = 0xBFC125C4u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC125C0) goto label_BFC12610; @@ -56087,7 +57790,7 @@ label_BFC125D8: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC125F0: 10000009 beq $zero, $zero, 0xBFC12618 */ uint32_t psx_brA_BFC125F0 = cpu->gpr[0]; uint32_t psx_brB_BFC125F0 = cpu->gpr[0]; - int psx_taken_BFC125F0 = (psx_brA_BFC125F0 == psx_brB_BFC125F0); + psx_taken_BFC125F0 = (psx_brA_BFC125F0 == psx_brB_BFC125F0); /* 0xBFC125F4: AC690018 sw $t1, 24($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC125F4u); return; } g_debug_last_store_pc = 0xBFC125F4u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC125F0) goto label_BFC12618; @@ -56098,7 +57801,7 @@ label_BFC125F8: psx_check_interrupts(cpu); /* 0xBFC125F8: 10C0FFEC beq $a2, $zero, 0xBFC125AC */ uint32_t psx_brA_BFC125F8 = cpu->gpr[6]; uint32_t psx_brB_BFC125F8 = cpu->gpr[0]; - int psx_taken_BFC125F8 = (psx_brA_BFC125F8 == psx_brB_BFC125F8); + psx_taken_BFC125F8 = (psx_brA_BFC125F8 == psx_brB_BFC125F8); /* 0xBFC125FC: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC125F8) goto label_BFC125AC; @@ -56109,7 +57812,7 @@ label_BFC12600: psx_check_interrupts(cpu); /* 0xBFC12600: 10C1FFEC beq $a2, $at, 0xBFC125B4 */ uint32_t psx_brA_BFC12600 = cpu->gpr[6]; uint32_t psx_brB_BFC12600 = cpu->gpr[1]; - int psx_taken_BFC12600 = (psx_brA_BFC12600 == psx_brB_BFC12600); + psx_taken_BFC12600 = (psx_brA_BFC12600 == psx_brB_BFC12600); /* 0xBFC12604: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC12600) goto label_BFC125B4; @@ -56120,7 +57823,7 @@ label_BFC12608: psx_check_interrupts(cpu); /* 0xBFC12608: 14C1FFEF bne $a2, $at, 0xBFC125C8 */ uint32_t psx_brA_BFC12608 = cpu->gpr[6]; uint32_t psx_brB_BFC12608 = cpu->gpr[1]; - int psx_taken_BFC12608 = (psx_brA_BFC12608 != psx_brB_BFC12608); + psx_taken_BFC12608 = (psx_brA_BFC12608 != psx_brB_BFC12608); /* 0xBFC1260C: 00000000 nop */ /* nop */ if (psx_taken_BFC12608) goto label_BFC125C8; @@ -56162,6 +57865,18 @@ void func_00002B28(CPUState* cpu) { default: break; } } + int psx_taken_BFC1263C = 0; + int psx_taken_BFC1264C = 0; + int psx_taken_BFC12660 = 0; + int psx_taken_BFC12684 = 0; + int psx_taken_BFC126AC = 0; + int psx_taken_BFC126D8 = 0; + int psx_taken_BFC126F4 = 0; + int psx_taken_BFC12700 = 0; + int psx_taken_BFC12714 = 0; + int psx_taken_BFC12730 = 0; + int psx_taken_BFC12754 = 0; + int psx_taken_BFC1276C = 0; label_BFC12628: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -56185,7 +57900,7 @@ label_BFC1263C: psx_check_interrupts(cpu); /* 0xBFC1263C: 10400005 beq $v0, $zero, 0xBFC12654 */ uint32_t psx_brA_BFC1263C = cpu->gpr[2]; uint32_t psx_brB_BFC1263C = cpu->gpr[0]; - int psx_taken_BFC1263C = (psx_brA_BFC1263C == psx_brB_BFC1263C); + psx_taken_BFC1263C = (psx_brA_BFC1263C == psx_brB_BFC1263C); /* 0xBFC12640: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1263C) goto label_BFC12654; @@ -56200,7 +57915,7 @@ label_BFC12644: /* nop */ /* 0xBFC1264C: 15C00006 bne $t6, $zero, 0xBFC12668 */ uint32_t psx_brA_BFC1264C = cpu->gpr[14]; uint32_t psx_brB_BFC1264C = cpu->gpr[0]; - int psx_taken_BFC1264C = (psx_brA_BFC1264C != psx_brB_BFC1264C); + psx_taken_BFC1264C = (psx_brA_BFC1264C != psx_brB_BFC1264C); /* 0xBFC12650: 00000000 nop */ /* nop */ if (psx_taken_BFC1264C) goto label_BFC12668; @@ -56217,7 +57932,7 @@ label_BFC12654: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1265Cu); return; } g_debug_last_store_pc = 0xBFC1265Cu; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC12660: 10000048 beq $zero, $zero, 0xBFC12784 */ uint32_t psx_brA_BFC12660 = cpu->gpr[0]; uint32_t psx_brB_BFC12660 = cpu->gpr[0]; - int psx_taken_BFC12660 = (psx_brA_BFC12660 == psx_brB_BFC12660); + psx_taken_BFC12660 = (psx_brA_BFC12660 == psx_brB_BFC12660); /* 0xBFC12664: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC12660) goto label_BFC12784; @@ -56248,7 +57963,7 @@ label_BFC12670: cpu->gpr[25] = cpu->gpr[24] & 0x10u; /* 0xBFC12684: 1320000C beq $t9, $zero, 0xBFC126B8 */ uint32_t psx_brA_BFC12684 = cpu->gpr[25]; uint32_t psx_brB_BFC12684 = cpu->gpr[0]; - int psx_taken_BFC12684 = (psx_brA_BFC12684 == psx_brB_BFC12684); + psx_taken_BFC12684 = (psx_brA_BFC12684 == psx_brB_BFC12684); /* 0xBFC12688: 8FAA002C lw $t2, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12688u); return; } cpu->gpr[10] = cpu->read_word(psx_addr); } if (psx_taken_BFC12684) goto label_BFC126B8; @@ -56281,7 +57996,7 @@ label_BFC126A8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC126A8u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC126AC: 1000002F beq $zero, $zero, 0xBFC1276C */ uint32_t psx_brA_BFC126AC = cpu->gpr[0]; uint32_t psx_brB_BFC126AC = cpu->gpr[0]; - int psx_taken_BFC126AC = (psx_brA_BFC126AC == psx_brB_BFC126AC); + psx_taken_BFC126AC = (psx_brA_BFC126AC == psx_brB_BFC126AC); /* 0xBFC126B0: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC126AC) goto label_BFC1276C; @@ -56315,7 +58030,7 @@ label_BFC126B8: cpu->gpr[13] = cpu->gpr[12] & 0x4u; /* 0xBFC126D8: 11A00018 beq $t5, $zero, 0xBFC1273C */ uint32_t psx_brA_BFC126D8 = cpu->gpr[13]; uint32_t psx_brB_BFC126D8 = cpu->gpr[0]; - int psx_taken_BFC126D8 = (psx_brA_BFC126D8 == psx_brB_BFC126D8); + psx_taken_BFC126D8 = (psx_brA_BFC126D8 == psx_brB_BFC126D8); /* 0xBFC126DC: 00000000 nop */ /* nop */ if (psx_taken_BFC126D8) goto label_BFC1273C; @@ -56336,7 +58051,7 @@ label_BFC126E0: cpu->gpr[15] = cpu->hi; /* 0xBFC126F4: 14400002 bne $v0, $zero, 0xBFC12700 */ uint32_t psx_brA_BFC126F4 = cpu->gpr[2]; uint32_t psx_brB_BFC126F4 = cpu->gpr[0]; - int psx_taken_BFC126F4 = (psx_brA_BFC126F4 != psx_brB_BFC126F4); + psx_taken_BFC126F4 = (psx_brA_BFC126F4 != psx_brB_BFC126F4); /* 0xBFC126F8: 00000000 nop */ /* nop */ if (psx_taken_BFC126F4) goto label_BFC12700; @@ -56354,7 +58069,7 @@ label_BFC12700: psx_check_interrupts(cpu); /* 0xBFC12700: 11E00006 beq $t7, $zero, 0xBFC1271C */ uint32_t psx_brA_BFC12700 = cpu->gpr[15]; uint32_t psx_brB_BFC12700 = cpu->gpr[0]; - int psx_taken_BFC12700 = (psx_brA_BFC12700 == psx_brB_BFC12700); + psx_taken_BFC12700 = (psx_brA_BFC12700 == psx_brB_BFC12700); /* 0xBFC12704: 00000000 nop */ /* nop */ if (psx_taken_BFC12700) goto label_BFC1271C; @@ -56377,7 +58092,7 @@ label_BFC12714: psx_check_interrupts(cpu); /* 0xBFC12714: 1000001B beq $zero, $zero, 0xBFC12784 */ uint32_t psx_brA_BFC12714 = cpu->gpr[0]; uint32_t psx_brB_BFC12714 = cpu->gpr[0]; - int psx_taken_BFC12714 = (psx_brA_BFC12714 == psx_brB_BFC12714); + psx_taken_BFC12714 = (psx_brA_BFC12714 == psx_brB_BFC12714); /* 0xBFC12718: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC12714) goto label_BFC12784; @@ -56398,7 +58113,7 @@ label_BFC1271C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (12)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1272Cu); return; } g_debug_last_store_pc = 0xBFC1272Cu; cpu->write_word(psx_addr, cpu->gpr[25]); } /* 0xBFC12730: 14400002 bne $v0, $zero, 0xBFC1273C */ uint32_t psx_brA_BFC12730 = cpu->gpr[2]; uint32_t psx_brB_BFC12730 = cpu->gpr[0]; - int psx_taken_BFC12730 = (psx_brA_BFC12730 != psx_brB_BFC12730); + psx_taken_BFC12730 = (psx_brA_BFC12730 != psx_brB_BFC12730); /* 0xBFC12734: 00000000 nop */ /* nop */ if (psx_taken_BFC12730) goto label_BFC1273C; @@ -56434,7 +58149,7 @@ label_BFC12750: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12750u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC12754: 18400005 blez $v0, 0xBFC1276C */ uint32_t psx_brA_BFC12754 = cpu->gpr[2]; - int psx_taken_BFC12754 = ((int32_t)psx_brA_BFC12754 <= 0); + psx_taken_BFC12754 = ((int32_t)psx_brA_BFC12754 <= 0); /* 0xBFC12758: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC12754) goto label_BFC1276C; @@ -56458,7 +58173,7 @@ label_BFC1276C: psx_check_interrupts(cpu); /* 0xBFC1276C: 04410005 bgez $v0, 0xBFC12784 */ uint32_t psx_brA_BFC1276C = cpu->gpr[2]; - int psx_taken_BFC1276C = ((int32_t)psx_brA_BFC1276C >= 0); + psx_taken_BFC1276C = ((int32_t)psx_brA_BFC1276C >= 0); /* 0xBFC12770: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC1276C) goto label_BFC12784; @@ -56504,6 +58219,18 @@ void func_00002C94(CPUState* cpu) { default: break; } } + int psx_taken_BFC127A8 = 0; + int psx_taken_BFC127B8 = 0; + int psx_taken_BFC127CC = 0; + int psx_taken_BFC127F0 = 0; + int psx_taken_BFC12818 = 0; + int psx_taken_BFC12844 = 0; + int psx_taken_BFC12860 = 0; + int psx_taken_BFC1286C = 0; + int psx_taken_BFC12880 = 0; + int psx_taken_BFC1289C = 0; + int psx_taken_BFC128C0 = 0; + int psx_taken_BFC128D8 = 0; label_BFC12794: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -56527,7 +58254,7 @@ label_BFC127A8: psx_check_interrupts(cpu); /* 0xBFC127A8: 10400005 beq $v0, $zero, 0xBFC127C0 */ uint32_t psx_brA_BFC127A8 = cpu->gpr[2]; uint32_t psx_brB_BFC127A8 = cpu->gpr[0]; - int psx_taken_BFC127A8 = (psx_brA_BFC127A8 == psx_brB_BFC127A8); + psx_taken_BFC127A8 = (psx_brA_BFC127A8 == psx_brB_BFC127A8); /* 0xBFC127AC: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC127A8) goto label_BFC127C0; @@ -56542,7 +58269,7 @@ label_BFC127B0: /* nop */ /* 0xBFC127B8: 15C00006 bne $t6, $zero, 0xBFC127D4 */ uint32_t psx_brA_BFC127B8 = cpu->gpr[14]; uint32_t psx_brB_BFC127B8 = cpu->gpr[0]; - int psx_taken_BFC127B8 = (psx_brA_BFC127B8 != psx_brB_BFC127B8); + psx_taken_BFC127B8 = (psx_brA_BFC127B8 != psx_brB_BFC127B8); /* 0xBFC127BC: 00000000 nop */ /* nop */ if (psx_taken_BFC127B8) goto label_BFC127D4; @@ -56559,7 +58286,7 @@ label_BFC127C0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC127C8u); return; } g_debug_last_store_pc = 0xBFC127C8u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC127CC: 10000048 beq $zero, $zero, 0xBFC128F0 */ uint32_t psx_brA_BFC127CC = cpu->gpr[0]; uint32_t psx_brB_BFC127CC = cpu->gpr[0]; - int psx_taken_BFC127CC = (psx_brA_BFC127CC == psx_brB_BFC127CC); + psx_taken_BFC127CC = (psx_brA_BFC127CC == psx_brB_BFC127CC); /* 0xBFC127D0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC127CC) goto label_BFC128F0; @@ -56590,7 +58317,7 @@ label_BFC127DC: cpu->gpr[25] = cpu->gpr[24] & 0x10u; /* 0xBFC127F0: 1320000C beq $t9, $zero, 0xBFC12824 */ uint32_t psx_brA_BFC127F0 = cpu->gpr[25]; uint32_t psx_brB_BFC127F0 = cpu->gpr[0]; - int psx_taken_BFC127F0 = (psx_brA_BFC127F0 == psx_brB_BFC127F0); + psx_taken_BFC127F0 = (psx_brA_BFC127F0 == psx_brB_BFC127F0); /* 0xBFC127F4: 8FAA002C lw $t2, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC127F4u); return; } cpu->gpr[10] = cpu->read_word(psx_addr); } if (psx_taken_BFC127F0) goto label_BFC12824; @@ -56623,7 +58350,7 @@ label_BFC12814: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12814u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC12818: 1000002F beq $zero, $zero, 0xBFC128D8 */ uint32_t psx_brA_BFC12818 = cpu->gpr[0]; uint32_t psx_brB_BFC12818 = cpu->gpr[0]; - int psx_taken_BFC12818 = (psx_brA_BFC12818 == psx_brB_BFC12818); + psx_taken_BFC12818 = (psx_brA_BFC12818 == psx_brB_BFC12818); /* 0xBFC1281C: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC12818) goto label_BFC128D8; @@ -56657,7 +58384,7 @@ label_BFC12824: cpu->gpr[13] = cpu->gpr[12] & 0x4u; /* 0xBFC12844: 11A00018 beq $t5, $zero, 0xBFC128A8 */ uint32_t psx_brA_BFC12844 = cpu->gpr[13]; uint32_t psx_brB_BFC12844 = cpu->gpr[0]; - int psx_taken_BFC12844 = (psx_brA_BFC12844 == psx_brB_BFC12844); + psx_taken_BFC12844 = (psx_brA_BFC12844 == psx_brB_BFC12844); /* 0xBFC12848: 00000000 nop */ /* nop */ if (psx_taken_BFC12844) goto label_BFC128A8; @@ -56678,7 +58405,7 @@ label_BFC1284C: cpu->gpr[15] = cpu->hi; /* 0xBFC12860: 14400002 bne $v0, $zero, 0xBFC1286C */ uint32_t psx_brA_BFC12860 = cpu->gpr[2]; uint32_t psx_brB_BFC12860 = cpu->gpr[0]; - int psx_taken_BFC12860 = (psx_brA_BFC12860 != psx_brB_BFC12860); + psx_taken_BFC12860 = (psx_brA_BFC12860 != psx_brB_BFC12860); /* 0xBFC12864: 00000000 nop */ /* nop */ if (psx_taken_BFC12860) goto label_BFC1286C; @@ -56696,7 +58423,7 @@ label_BFC1286C: psx_check_interrupts(cpu); /* 0xBFC1286C: 11E00006 beq $t7, $zero, 0xBFC12888 */ uint32_t psx_brA_BFC1286C = cpu->gpr[15]; uint32_t psx_brB_BFC1286C = cpu->gpr[0]; - int psx_taken_BFC1286C = (psx_brA_BFC1286C == psx_brB_BFC1286C); + psx_taken_BFC1286C = (psx_brA_BFC1286C == psx_brB_BFC1286C); /* 0xBFC12870: 00000000 nop */ /* nop */ if (psx_taken_BFC1286C) goto label_BFC12888; @@ -56719,7 +58446,7 @@ label_BFC12880: psx_check_interrupts(cpu); /* 0xBFC12880: 1000001B beq $zero, $zero, 0xBFC128F0 */ uint32_t psx_brA_BFC12880 = cpu->gpr[0]; uint32_t psx_brB_BFC12880 = cpu->gpr[0]; - int psx_taken_BFC12880 = (psx_brA_BFC12880 == psx_brB_BFC12880); + psx_taken_BFC12880 = (psx_brA_BFC12880 == psx_brB_BFC12880); /* 0xBFC12884: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC12880) goto label_BFC128F0; @@ -56740,7 +58467,7 @@ label_BFC12888: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (12)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12898u); return; } g_debug_last_store_pc = 0xBFC12898u; cpu->write_word(psx_addr, cpu->gpr[25]); } /* 0xBFC1289C: 14400002 bne $v0, $zero, 0xBFC128A8 */ uint32_t psx_brA_BFC1289C = cpu->gpr[2]; uint32_t psx_brB_BFC1289C = cpu->gpr[0]; - int psx_taken_BFC1289C = (psx_brA_BFC1289C != psx_brB_BFC1289C); + psx_taken_BFC1289C = (psx_brA_BFC1289C != psx_brB_BFC1289C); /* 0xBFC128A0: 00000000 nop */ /* nop */ if (psx_taken_BFC1289C) goto label_BFC128A8; @@ -56776,7 +58503,7 @@ label_BFC128BC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC128BCu); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC128C0: 18400005 blez $v0, 0xBFC128D8 */ uint32_t psx_brA_BFC128C0 = cpu->gpr[2]; - int psx_taken_BFC128C0 = ((int32_t)psx_brA_BFC128C0 <= 0); + psx_taken_BFC128C0 = ((int32_t)psx_brA_BFC128C0 <= 0); /* 0xBFC128C4: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC128C0) goto label_BFC128D8; @@ -56800,7 +58527,7 @@ label_BFC128D8: psx_check_interrupts(cpu); /* 0xBFC128D8: 04410005 bgez $v0, 0xBFC128F0 */ uint32_t psx_brA_BFC128D8 = cpu->gpr[2]; - int psx_taken_BFC128D8 = ((int32_t)psx_brA_BFC128D8 >= 0); + psx_taken_BFC128D8 = ((int32_t)psx_brA_BFC128D8 >= 0); /* 0xBFC128DC: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC128D8) goto label_BFC128F0; @@ -56843,6 +58570,11 @@ void func_00002E00(CPUState* cpu) { default: break; } } + int psx_taken_BFC12918 = 0; + int psx_taken_BFC12928 = 0; + int psx_taken_BFC1293C = 0; + int psx_taken_BFC12964 = 0; + int psx_taken_BFC12978 = 0; label_BFC12900: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -56868,7 +58600,7 @@ label_BFC12918: psx_check_interrupts(cpu); /* 0xBFC12918: 10400005 beq $v0, $zero, 0xBFC12930 */ uint32_t psx_brA_BFC12918 = cpu->gpr[2]; uint32_t psx_brB_BFC12918 = cpu->gpr[0]; - int psx_taken_BFC12918 = (psx_brA_BFC12918 == psx_brB_BFC12918); + psx_taken_BFC12918 = (psx_brA_BFC12918 == psx_brB_BFC12918); /* 0xBFC1291C: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC12918) goto label_BFC12930; @@ -56883,7 +58615,7 @@ label_BFC12920: /* nop */ /* 0xBFC12928: 15C00006 bne $t6, $zero, 0xBFC12944 */ uint32_t psx_brA_BFC12928 = cpu->gpr[14]; uint32_t psx_brB_BFC12928 = cpu->gpr[0]; - int psx_taken_BFC12928 = (psx_brA_BFC12928 != psx_brB_BFC12928); + psx_taken_BFC12928 = (psx_brA_BFC12928 != psx_brB_BFC12928); /* 0xBFC1292C: 00000000 nop */ /* nop */ if (psx_taken_BFC12928) goto label_BFC12944; @@ -56900,7 +58632,7 @@ label_BFC12930: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12938u); return; } g_debug_last_store_pc = 0xBFC12938u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC1293C: 10000012 beq $zero, $zero, 0xBFC12988 */ uint32_t psx_brA_BFC1293C = cpu->gpr[0]; uint32_t psx_brB_BFC1293C = cpu->gpr[0]; - int psx_taken_BFC1293C = (psx_brA_BFC1293C == psx_brB_BFC1293C); + psx_taken_BFC1293C = (psx_brA_BFC1293C == psx_brB_BFC1293C); /* 0xBFC12940: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC1293C) goto label_BFC12988; @@ -56933,7 +58665,7 @@ label_BFC12960: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12960u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC12964: 10400006 beq $v0, $zero, 0xBFC12980 */ uint32_t psx_brA_BFC12964 = cpu->gpr[2]; uint32_t psx_brB_BFC12964 = cpu->gpr[0]; - int psx_taken_BFC12964 = (psx_brA_BFC12964 == psx_brB_BFC12964); + psx_taken_BFC12964 = (psx_brA_BFC12964 == psx_brB_BFC12964); /* 0xBFC12968: AC800000 sw $zero, 0($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12968u); return; } g_debug_last_store_pc = 0xBFC12968u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC12964) goto label_BFC12980; @@ -56950,7 +58682,7 @@ label_BFC1296C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC12978: 10000003 beq $zero, $zero, 0xBFC12988 */ uint32_t psx_brA_BFC12978 = cpu->gpr[0]; uint32_t psx_brB_BFC12978 = cpu->gpr[0]; - int psx_taken_BFC12978 = (psx_brA_BFC12978 == psx_brB_BFC12978); + psx_taken_BFC12978 = (psx_brA_BFC12978 == psx_brB_BFC12978); /* 0xBFC1297C: AC288640 sw $t0, -31168($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1297Cu); return; } g_debug_last_store_pc = 0xBFC1297Cu; cpu->write_word(psx_addr, cpu->gpr[8]); } if (psx_taken_BFC12978) goto label_BFC12988; @@ -56988,6 +58720,9 @@ void func_00002E98(CPUState* cpu) { default: break; } } + int psx_taken_BFC129A8 = 0; + int psx_taken_BFC129B8 = 0; + int psx_taken_BFC129CC = 0; label_BFC12998: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -57009,7 +58744,7 @@ label_BFC129A8: psx_check_interrupts(cpu); /* 0xBFC129A8: 10400005 beq $v0, $zero, 0xBFC129C0 */ uint32_t psx_brA_BFC129A8 = cpu->gpr[2]; uint32_t psx_brB_BFC129A8 = cpu->gpr[0]; - int psx_taken_BFC129A8 = (psx_brA_BFC129A8 == psx_brB_BFC129A8); + psx_taken_BFC129A8 = (psx_brA_BFC129A8 == psx_brB_BFC129A8); /* 0xBFC129AC: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC129A8) goto label_BFC129C0; @@ -57024,7 +58759,7 @@ label_BFC129B0: /* nop */ /* 0xBFC129B8: 15C00006 bne $t6, $zero, 0xBFC129D4 */ uint32_t psx_brA_BFC129B8 = cpu->gpr[14]; uint32_t psx_brB_BFC129B8 = cpu->gpr[0]; - int psx_taken_BFC129B8 = (psx_brA_BFC129B8 != psx_brB_BFC129B8); + psx_taken_BFC129B8 = (psx_brA_BFC129B8 != psx_brB_BFC129B8); /* 0xBFC129BC: 00000000 nop */ /* nop */ if (psx_taken_BFC129B8) goto label_BFC129D4; @@ -57041,7 +58776,7 @@ label_BFC129C0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC129C8u); return; } g_debug_last_store_pc = 0xBFC129C8u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC129CC: 10000003 beq $zero, $zero, 0xBFC129DC */ uint32_t psx_brA_BFC129CC = cpu->gpr[0]; uint32_t psx_brB_BFC129CC = cpu->gpr[0]; - int psx_taken_BFC129CC = (psx_brA_BFC129CC == psx_brB_BFC129CC); + psx_taken_BFC129CC = (psx_brA_BFC129CC == psx_brB_BFC129CC); /* 0xBFC129D0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC129CC) goto label_BFC129DC; @@ -57097,6 +58832,15 @@ void func_00002EFC(CPUState* cpu) { default: break; } } + int psx_taken_BFC12A18 = 0; + int psx_taken_BFC12A28 = 0; + int psx_taken_BFC12A3C = 0; + int psx_taken_BFC12A44 = 0; + int psx_taken_BFC12A50 = 0; + int psx_taken_BFC12A64 = 0; + int psx_taken_BFC12A70 = 0; + int psx_taken_BFC12A98 = 0; + int psx_taken_BFC12AAC = 0; label_BFC129FC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -57124,7 +58868,7 @@ label_BFC12A10: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12A14u); return; } cpu->gpr[6] = cpu->read_word(psx_addr); } /* 0xBFC12A18: 10400005 beq $v0, $zero, 0xBFC12A30 */ uint32_t psx_brA_BFC12A18 = cpu->gpr[2]; uint32_t psx_brB_BFC12A18 = cpu->gpr[0]; - int psx_taken_BFC12A18 = (psx_brA_BFC12A18 == psx_brB_BFC12A18); + psx_taken_BFC12A18 = (psx_brA_BFC12A18 == psx_brB_BFC12A18); /* 0xBFC12A1C: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC12A18) goto label_BFC12A30; @@ -57139,7 +58883,7 @@ label_BFC12A20: /* nop */ /* 0xBFC12A28: 14600011 bne $v1, $zero, 0xBFC12A70 */ uint32_t psx_brA_BFC12A28 = cpu->gpr[3]; uint32_t psx_brB_BFC12A28 = cpu->gpr[0]; - int psx_taken_BFC12A28 = (psx_brA_BFC12A28 != psx_brB_BFC12A28); + psx_taken_BFC12A28 = (psx_brA_BFC12A28 != psx_brB_BFC12A28); /* 0xBFC12A2C: 24016601 addiu $at, $zero, 26113 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (26113)); if (psx_taken_BFC12A28) goto label_BFC12A70; @@ -57156,7 +58900,7 @@ label_BFC12A30: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12A38u); return; } g_debug_last_store_pc = 0xBFC12A38u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC12A3C: 1000001E beq $zero, $zero, 0xBFC12AB8 */ uint32_t psx_brA_BFC12A3C = cpu->gpr[0]; uint32_t psx_brB_BFC12A3C = cpu->gpr[0]; - int psx_taken_BFC12A3C = (psx_brA_BFC12A3C == psx_brB_BFC12A3C); + psx_taken_BFC12A3C = (psx_brA_BFC12A3C == psx_brB_BFC12A3C); /* 0xBFC12A40: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC12A3C) goto label_BFC12AB8; @@ -57167,7 +58911,7 @@ label_BFC12A44: psx_check_interrupts(cpu); /* 0xBFC12A44: 10C00005 beq $a2, $zero, 0xBFC12A5C */ uint32_t psx_brA_BFC12A44 = cpu->gpr[6]; uint32_t psx_brB_BFC12A44 = cpu->gpr[0]; - int psx_taken_BFC12A44 = (psx_brA_BFC12A44 == psx_brB_BFC12A44); + psx_taken_BFC12A44 = (psx_brA_BFC12A44 == psx_brB_BFC12A44); /* 0xBFC12A48: 2401FFFB addiu $at, $zero, -5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-5)); if (psx_taken_BFC12A44) goto label_BFC12A5C; @@ -57180,7 +58924,7 @@ label_BFC12A4C: cpu->gpr[15] = cpu->gpr[3] | 0x4u; /* 0xBFC12A50: 10000004 beq $zero, $zero, 0xBFC12A64 */ uint32_t psx_brA_BFC12A50 = cpu->gpr[0]; uint32_t psx_brB_BFC12A50 = cpu->gpr[0]; - int psx_taken_BFC12A50 = (psx_brA_BFC12A50 == psx_brB_BFC12A50); + psx_taken_BFC12A50 = (psx_brA_BFC12A50 == psx_brB_BFC12A50); /* 0xBFC12A54: AC4F0000 sw $t7, 0($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12A54u); return; } g_debug_last_store_pc = 0xBFC12A54u; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC12A50) goto label_BFC12A64; @@ -57207,7 +58951,7 @@ label_BFC12A64: psx_check_interrupts(cpu); /* 0xBFC12A64: 10000014 beq $zero, $zero, 0xBFC12AB8 */ uint32_t psx_brA_BFC12A64 = cpu->gpr[0]; uint32_t psx_brB_BFC12A64 = cpu->gpr[0]; - int psx_taken_BFC12A64 = (psx_brA_BFC12A64 == psx_brB_BFC12A64); + psx_taken_BFC12A64 = (psx_brA_BFC12A64 == psx_brB_BFC12A64); /* 0xBFC12A68: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC12A64) goto label_BFC12AB8; @@ -57225,7 +58969,7 @@ label_BFC12A70: psx_check_interrupts(cpu); /* 0xBFC12A70: 10A1FFF4 beq $a1, $at, 0xBFC12A44 */ uint32_t psx_brA_BFC12A70 = cpu->gpr[5]; uint32_t psx_brB_BFC12A70 = cpu->gpr[1]; - int psx_taken_BFC12A70 = (psx_brA_BFC12A70 == psx_brB_BFC12A70); + psx_taken_BFC12A70 = (psx_brA_BFC12A70 == psx_brB_BFC12A70); /* 0xBFC12A74: 00000000 nop */ /* nop */ if (psx_taken_BFC12A70) goto label_BFC12A44; @@ -57258,7 +59002,7 @@ label_BFC12A94: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12A94u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC12A98: 04410007 bgez $v0, 0xBFC12AB8 */ uint32_t psx_brA_BFC12A98 = cpu->gpr[2]; - int psx_taken_BFC12A98 = ((int32_t)psx_brA_BFC12A98 >= 0); + psx_taken_BFC12A98 = ((int32_t)psx_brA_BFC12A98 >= 0); /* 0xBFC12A9C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC12A98) goto label_BFC12AB8; @@ -57275,7 +59019,7 @@ label_BFC12AA0: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC12AAC: 10000002 beq $zero, $zero, 0xBFC12AB8 */ uint32_t psx_brA_BFC12AAC = cpu->gpr[0]; uint32_t psx_brB_BFC12AAC = cpu->gpr[0]; - int psx_taken_BFC12AAC = (psx_brA_BFC12AAC == psx_brB_BFC12AAC); + psx_taken_BFC12AAC = (psx_brA_BFC12AAC == psx_brB_BFC12AAC); /* 0xBFC12AB0: AC298640 sw $t1, -31168($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12AB0u); return; } g_debug_last_store_pc = 0xBFC12AB0u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC12AAC) goto label_BFC12AB8; @@ -57371,6 +59115,7 @@ void func_00003000(CPUState* cpu) { default: break; } } + int psx_taken_BFC12B28 = 0; label_BFC12B00: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -57409,7 +59154,7 @@ label_BFC12B24: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC12B28: 1611FFFC bne $s0, $s1, 0xBFC12B1C */ uint32_t psx_brA_BFC12B28 = cpu->gpr[16]; uint32_t psx_brB_BFC12B28 = cpu->gpr[17]; - int psx_taken_BFC12B28 = (psx_brA_BFC12B28 != psx_brB_BFC12B28); + psx_taken_BFC12B28 = (psx_brA_BFC12B28 != psx_brB_BFC12B28); /* 0xBFC12B2C: 00000000 nop */ /* nop */ if (psx_taken_BFC12B28) goto label_BFC12B1C; @@ -57466,6 +59211,9 @@ void func_00003060(CPUState* cpu) { default: break; } } + int psx_taken_BFC12B80 = 0; + int psx_taken_BFC12B88 = 0; + int psx_taken_BFC12B98 = 0; label_BFC12B60: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -57494,7 +59242,7 @@ label_BFC12B78: /* nop */ /* 0xBFC12B80: 15C00003 bne $t6, $zero, 0xBFC12B90 */ uint32_t psx_brA_BFC12B80 = cpu->gpr[14]; uint32_t psx_brB_BFC12B80 = cpu->gpr[0]; - int psx_taken_BFC12B80 = (psx_brA_BFC12B80 != psx_brB_BFC12B80); + psx_taken_BFC12B80 = (psx_brA_BFC12B80 != psx_brB_BFC12B80); /* 0xBFC12B84: 00000000 nop */ /* nop */ if (psx_taken_BFC12B80) goto label_BFC12B90; @@ -57505,7 +59253,7 @@ label_BFC12B88: psx_check_interrupts(cpu); /* 0xBFC12B88: 1000000B beq $zero, $zero, 0xBFC12BB8 */ uint32_t psx_brA_BFC12B88 = cpu->gpr[0]; uint32_t psx_brB_BFC12B88 = cpu->gpr[0]; - int psx_taken_BFC12B88 = (psx_brA_BFC12B88 == psx_brB_BFC12B88); + psx_taken_BFC12B88 = (psx_brA_BFC12B88 == psx_brB_BFC12B88); /* 0xBFC12B8C: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC12B88) goto label_BFC12BB8; @@ -57520,7 +59268,7 @@ label_BFC12B90: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[2] ? 1 : 0); /* 0xBFC12B98: 1420FFF7 bne $at, $zero, 0xBFC12B78 */ uint32_t psx_brA_BFC12B98 = cpu->gpr[1]; uint32_t psx_brB_BFC12B98 = cpu->gpr[0]; - int psx_taken_BFC12B98 = (psx_brA_BFC12B98 != psx_brB_BFC12B98); + psx_taken_BFC12B98 = (psx_brA_BFC12B98 != psx_brB_BFC12B98); /* 0xBFC12B9C: 00000000 nop */ /* nop */ if (psx_taken_BFC12B98) goto label_BFC12B78; @@ -57564,6 +59312,8 @@ label_BFC12BB8: void func_000030C8(CPUState* cpu) { debug_server_log_call_entry(0x000030C8u); + int psx_taken_BFC12BC8 = 0; + int psx_taken_BFC12BD0 = 0; label_BFC12BC8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -57571,7 +59321,7 @@ label_BFC12BC8: psx_check_interrupts(cpu); /* 0xBFC12BC8: 04800003 bltz $a0, 0xBFC12BD8 */ uint32_t psx_brA_BFC12BC8 = cpu->gpr[4]; - int psx_taken_BFC12BC8 = ((int32_t)psx_brA_BFC12BC8 < 0); + psx_taken_BFC12BC8 = ((int32_t)psx_brA_BFC12BC8 < 0); /* 0xBFC12BCC: 28810010 slti $at, $a0, 16 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (16) ? 1 : 0); if (psx_taken_BFC12BC8) goto label_BFC12BD8; @@ -57582,7 +59332,7 @@ label_BFC12BD0: psx_check_interrupts(cpu); /* 0xBFC12BD0: 14200004 bne $at, $zero, 0xBFC12BE4 */ uint32_t psx_brA_BFC12BD0 = cpu->gpr[1]; uint32_t psx_brB_BFC12BD0 = cpu->gpr[0]; - int psx_taken_BFC12BD0 = (psx_brA_BFC12BD0 != psx_brB_BFC12BD0); + psx_taken_BFC12BD0 = (psx_brA_BFC12BD0 != psx_brB_BFC12BD0); /* 0xBFC12BD4: 00047080 sll $t6, $a0, 2 */ cpu->gpr[14] = cpu->gpr[4] << 2u; if (psx_taken_BFC12BD0) { cpu->pc = 0xBFC12BE4u; return; } @@ -57649,6 +59399,11 @@ void func_00003108(CPUState* cpu) { default: break; } } + int psx_taken_BFC12C4C = 0; + int psx_taken_BFC12C5C = 0; + int psx_taken_BFC12C6C = 0; + int psx_taken_BFC12C74 = 0; + int psx_taken_BFC12C9C = 0; label_BFC12C08: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(19u); @@ -57690,7 +59445,7 @@ label_BFC12C08: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12C48u); return; } g_debug_last_store_pc = 0xBFC12C48u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC12C4C: 14200014 bne $at, $zero, 0xBFC12CA0 */ uint32_t psx_brA_BFC12C4C = cpu->gpr[1]; uint32_t psx_brB_BFC12C4C = cpu->gpr[0]; - int psx_taken_BFC12C4C = (psx_brA_BFC12C4C != psx_brB_BFC12C4C); + psx_taken_BFC12C4C = (psx_brA_BFC12C4C != psx_brB_BFC12C4C); /* 0xBFC12C50: 02208021 addu $s0, $s1, $zero */ cpu->gpr[16] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC12C4C) goto label_BFC12CA0; @@ -57705,7 +59460,7 @@ label_BFC12C54: /* nop */ /* 0xBFC12C5C: 10800007 beq $a0, $zero, 0xBFC12C7C */ uint32_t psx_brA_BFC12C5C = cpu->gpr[4]; uint32_t psx_brB_BFC12C5C = cpu->gpr[0]; - int psx_taken_BFC12C5C = (psx_brA_BFC12C5C == psx_brB_BFC12C5C); + psx_taken_BFC12C5C = (psx_brA_BFC12C5C == psx_brB_BFC12C5C); /* 0xBFC12C60: 00000000 nop */ /* nop */ if (psx_taken_BFC12C5C) goto label_BFC12C7C; @@ -57726,7 +59481,7 @@ label_BFC12C6C: psx_check_interrupts(cpu); /* 0xBFC12C6C: 14400003 bne $v0, $zero, 0xBFC12C7C */ uint32_t psx_brA_BFC12C6C = cpu->gpr[2]; uint32_t psx_brB_BFC12C6C = cpu->gpr[0]; - int psx_taken_BFC12C6C = (psx_brA_BFC12C6C != psx_brB_BFC12C6C); + psx_taken_BFC12C6C = (psx_brA_BFC12C6C != psx_brB_BFC12C6C); /* 0xBFC12C70: 00000000 nop */ /* nop */ if (psx_taken_BFC12C6C) goto label_BFC12C7C; @@ -57737,7 +59492,7 @@ label_BFC12C74: psx_check_interrupts(cpu); /* 0xBFC12C74: 10000016 beq $zero, $zero, 0xBFC12CD0 */ uint32_t psx_brA_BFC12C74 = cpu->gpr[0]; uint32_t psx_brB_BFC12C74 = cpu->gpr[0]; - int psx_taken_BFC12C74 = (psx_brA_BFC12C74 == psx_brB_BFC12C74); + psx_taken_BFC12C74 = (psx_brA_BFC12C74 == psx_brB_BFC12C74); /* 0xBFC12C78: 02001021 addu $v0, $s0, $zero */ cpu->gpr[2] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC12C74) goto label_BFC12CD0; @@ -57764,7 +59519,7 @@ label_BFC12C7C: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[10] ? 1 : 0); /* 0xBFC12C9C: 1420FFED bne $at, $zero, 0xBFC12C54 */ uint32_t psx_brA_BFC12C9C = cpu->gpr[1]; uint32_t psx_brB_BFC12C9C = cpu->gpr[0]; - int psx_taken_BFC12C9C = (psx_brA_BFC12C9C != psx_brB_BFC12C9C); + psx_taken_BFC12C9C = (psx_brA_BFC12C9C != psx_brB_BFC12C9C); label_BFC12CA0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -57848,6 +59603,21 @@ void func_000031E8(CPUState* cpu) { default: break; } } + int psx_taken_BFC12D08 = 0; + int psx_taken_BFC12D18 = 0; + int psx_taken_BFC12D34 = 0; + int psx_taken_BFC12D3C = 0; + int psx_taken_BFC12D60 = 0; + int psx_taken_BFC12D68 = 0; + int psx_taken_BFC12D84 = 0; + int psx_taken_BFC12DB4 = 0; + int psx_taken_BFC12DD4 = 0; + int psx_taken_BFC12DF4 = 0; + int psx_taken_BFC12E1C = 0; + int psx_taken_BFC12E24 = 0; + int psx_taken_BFC12E50 = 0; + int psx_taken_BFC12E78 = 0; + int psx_taken_BFC12E80 = 0; label_BFC12CE8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -57871,7 +59641,7 @@ label_BFC12CE8: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (32)); /* 0xBFC12D08: 144E0005 bne $v0, $t6, 0xBFC12D20 */ uint32_t psx_brA_BFC12D08 = cpu->gpr[2]; uint32_t psx_brB_BFC12D08 = cpu->gpr[14]; - int psx_taken_BFC12D08 = (psx_brA_BFC12D08 != psx_brB_BFC12D08); + psx_taken_BFC12D08 = (psx_brA_BFC12D08 != psx_brB_BFC12D08); /* 0xBFC12D0C: 00C09821 addu $s3, $a2, $zero */ cpu->gpr[19] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC12D08) goto label_BFC12D20; @@ -57886,7 +59656,7 @@ label_BFC12D10: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); /* 0xBFC12D18: 104FFFFD beq $v0, $t7, 0xBFC12D10 */ uint32_t psx_brA_BFC12D18 = cpu->gpr[2]; uint32_t psx_brB_BFC12D18 = cpu->gpr[15]; - int psx_taken_BFC12D18 = (psx_brA_BFC12D18 == psx_brB_BFC12D18); + psx_taken_BFC12D18 = (psx_brA_BFC12D18 == psx_brB_BFC12D18); /* 0xBFC12D1C: 00000000 nop */ /* nop */ if (psx_taken_BFC12D18) goto label_BFC12D10; @@ -57907,7 +59677,7 @@ label_BFC12D20: cpu->gpr[18] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC12D34: 10A2000E beq $a1, $v0, 0xBFC12D70 */ uint32_t psx_brA_BFC12D34 = cpu->gpr[5]; uint32_t psx_brB_BFC12D34 = cpu->gpr[2]; - int psx_taken_BFC12D34 = (psx_brA_BFC12D34 == psx_brB_BFC12D34); + psx_taken_BFC12D34 = (psx_brA_BFC12D34 == psx_brB_BFC12D34); /* 0xBFC12D38: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC12D34) goto label_BFC12D70; @@ -57918,7 +59688,7 @@ label_BFC12D3C: psx_check_interrupts(cpu); /* 0xBFC12D3C: 1040000D beq $v0, $zero, 0xBFC12D74 */ uint32_t psx_brA_BFC12D3C = cpu->gpr[2]; uint32_t psx_brB_BFC12D3C = cpu->gpr[0]; - int psx_taken_BFC12D3C = (psx_brA_BFC12D3C == psx_brB_BFC12D3C); + psx_taken_BFC12D3C = (psx_brA_BFC12D3C == psx_brB_BFC12D3C); /* 0xBFC12D40: 27B90070 addiu $t9, $sp, 112 */ cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[29] + (112)); if (psx_taken_BFC12D3C) goto label_BFC12D74; @@ -57948,7 +59718,7 @@ label_BFC12D50: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC12D60: 10A20003 beq $a1, $v0, 0xBFC12D70 */ uint32_t psx_brA_BFC12D60 = cpu->gpr[5]; uint32_t psx_brB_BFC12D60 = cpu->gpr[2]; - int psx_taken_BFC12D60 = (psx_brA_BFC12D60 == psx_brB_BFC12D60); + psx_taken_BFC12D60 = (psx_brA_BFC12D60 == psx_brB_BFC12D60); /* 0xBFC12D64: 26100001 addiu $s0, $s0, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); if (psx_taken_BFC12D60) goto label_BFC12D70; @@ -57959,7 +59729,7 @@ label_BFC12D68: psx_check_interrupts(cpu); /* 0xBFC12D68: 1440FFF9 bne $v0, $zero, 0xBFC12D50 */ uint32_t psx_brA_BFC12D68 = cpu->gpr[2]; uint32_t psx_brB_BFC12D68 = cpu->gpr[0]; - int psx_taken_BFC12D68 = (psx_brA_BFC12D68 != psx_brB_BFC12D68); + psx_taken_BFC12D68 = (psx_brA_BFC12D68 != psx_brB_BFC12D68); /* 0xBFC12D6C: 00000000 nop */ /* nop */ if (psx_taken_BFC12D68) goto label_BFC12D50; @@ -57985,7 +59755,7 @@ label_BFC12D74: /* nop */ /* 0xBFC12D84: 11000039 beq $t0, $zero, 0xBFC12E6C */ uint32_t psx_brA_BFC12D84 = cpu->gpr[8]; uint32_t psx_brB_BFC12D84 = cpu->gpr[0]; - int psx_taken_BFC12D84 = (psx_brA_BFC12D84 == psx_brB_BFC12D84); + psx_taken_BFC12D84 = (psx_brA_BFC12D84 == psx_brB_BFC12D84); /* 0xBFC12D88: 00000000 nop */ /* nop */ if (psx_taken_BFC12D84) goto label_BFC12E6C; @@ -58016,7 +59786,7 @@ label_BFC12D8C: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (-1)); /* 0xBFC12DB4: 11800009 beq $t4, $zero, 0xBFC12DDC */ uint32_t psx_brA_BFC12DB4 = cpu->gpr[12]; uint32_t psx_brB_BFC12DB4 = cpu->gpr[0]; - int psx_taken_BFC12DB4 = (psx_brA_BFC12DB4 == psx_brB_BFC12DB4); + psx_taken_BFC12DB4 = (psx_brA_BFC12DB4 == psx_brB_BFC12DB4); /* 0xBFC12DB8: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC12DB4) goto label_BFC12DDC; @@ -58039,7 +59809,7 @@ label_BFC12DBC: cpu->gpr[24] = cpu->gpr[15] & 0x44u; /* 0xBFC12DD4: 1700FFF9 bne $t8, $zero, 0xBFC12DBC */ uint32_t psx_brA_BFC12DD4 = cpu->gpr[24]; uint32_t psx_brB_BFC12DD4 = cpu->gpr[0]; - int psx_taken_BFC12DD4 = (psx_brA_BFC12DD4 != psx_brB_BFC12DD4); + psx_taken_BFC12DD4 = (psx_brA_BFC12DD4 != psx_brB_BFC12DD4); /* 0xBFC12DD8: 00000000 nop */ /* nop */ if (psx_taken_BFC12DD4) goto label_BFC12DBC; @@ -58062,7 +59832,7 @@ label_BFC12DDC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC12DF4: 10800019 beq $a0, $zero, 0xBFC12E5C */ uint32_t psx_brA_BFC12DF4 = cpu->gpr[4]; uint32_t psx_brB_BFC12DF4 = cpu->gpr[0]; - int psx_taken_BFC12DF4 = (psx_brA_BFC12DF4 == psx_brB_BFC12DF4); + psx_taken_BFC12DF4 = (psx_brA_BFC12DF4 == psx_brB_BFC12DF4); /* 0xBFC12DF8: 8FB90068 lw $t9, 104($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (104)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12DF8u); return; } cpu->gpr[25] = cpu->read_word(psx_addr); } if (psx_taken_BFC12DF4) goto label_BFC12E5C; @@ -58095,7 +59865,7 @@ label_BFC12E04: cpu->gpr[12] = cpu->gpr[11] & 0x4u; /* 0xBFC12E1C: 11800004 beq $t4, $zero, 0xBFC12E30 */ uint32_t psx_brA_BFC12E1C = cpu->gpr[12]; uint32_t psx_brB_BFC12E1C = cpu->gpr[0]; - int psx_taken_BFC12E1C = (psx_brA_BFC12E1C == psx_brB_BFC12E1C); + psx_taken_BFC12E1C = (psx_brA_BFC12E1C == psx_brB_BFC12E1C); /* 0xBFC12E20: 24030037 addiu $v1, $zero, 55 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (55)); if (psx_taken_BFC12E1C) goto label_BFC12E30; @@ -58106,7 +59876,7 @@ label_BFC12E24: psx_check_interrupts(cpu); /* 0xBFC12E24: 10000002 beq $zero, $zero, 0xBFC12E30 */ uint32_t psx_brA_BFC12E24 = cpu->gpr[0]; uint32_t psx_brB_BFC12E24 = cpu->gpr[0]; - int psx_taken_BFC12E24 = (psx_brA_BFC12E24 == psx_brB_BFC12E24); + psx_taken_BFC12E24 = (psx_brA_BFC12E24 == psx_brB_BFC12E24); /* 0xBFC12E28: 24030030 addiu $v1, $zero, 48 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (48)); if (psx_taken_BFC12E24) goto label_BFC12E30; @@ -58140,7 +59910,7 @@ label_BFC12E30: /* nop */ /* 0xBFC12E50: 1480FFEA bne $a0, $zero, 0xBFC12DFC */ uint32_t psx_brA_BFC12E50 = cpu->gpr[4]; uint32_t psx_brB_BFC12E50 = cpu->gpr[0]; - int psx_taken_BFC12E50 = (psx_brA_BFC12E50 != psx_brB_BFC12E50); + psx_taken_BFC12E50 = (psx_brA_BFC12E50 != psx_brB_BFC12E50); /* 0xBFC12E54: 00000000 nop */ /* nop */ if (psx_taken_BFC12E50) goto label_BFC12DFC; @@ -58183,7 +59953,7 @@ label_BFC12E74: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (116)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12E74u); return; } cpu->gpr[8] = cpu->read_word(psx_addr); } /* 0xBFC12E78: 14400003 bne $v0, $zero, 0xBFC12E88 */ uint32_t psx_brA_BFC12E78 = cpu->gpr[2]; uint32_t psx_brB_BFC12E78 = cpu->gpr[0]; - int psx_taken_BFC12E78 = (psx_brA_BFC12E78 != psx_brB_BFC12E78); + psx_taken_BFC12E78 = (psx_brA_BFC12E78 != psx_brB_BFC12E78); /* 0xBFC12E7C: AD020000 sw $v0, 0($t0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[8] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12E7Cu); return; } g_debug_last_store_pc = 0xBFC12E7Cu; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC12E78) goto label_BFC12E88; @@ -58194,7 +59964,7 @@ label_BFC12E80: psx_check_interrupts(cpu); /* 0xBFC12E80: 10000002 beq $zero, $zero, 0xBFC12E8C */ uint32_t psx_brA_BFC12E80 = cpu->gpr[0]; uint32_t psx_brB_BFC12E80 = cpu->gpr[0]; - int psx_taken_BFC12E80 = (psx_brA_BFC12E80 == psx_brB_BFC12E80); + psx_taken_BFC12E80 = (psx_brA_BFC12E80 == psx_brB_BFC12E80); /* 0xBFC12E84: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC12E80) goto label_BFC12E8C; @@ -58234,6 +60004,11 @@ void func_000033A4(CPUState* cpu) { default: break; } } + int psx_taken_BFC12EB4 = 0; + int psx_taken_BFC12EC0 = 0; + int psx_taken_BFC12F34 = 0; + int psx_taken_BFC12F48 = 0; + int psx_taken_BFC12F50 = 0; label_BFC12EA4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -58249,7 +60024,7 @@ label_BFC12EA4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12EB0u); return; } g_debug_last_store_pc = 0xBFC12EB0u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC12EB4: 10200004 beq $at, $zero, 0xBFC12EC8 */ uint32_t psx_brA_BFC12EB4 = cpu->gpr[1]; uint32_t psx_brB_BFC12EB4 = cpu->gpr[0]; - int psx_taken_BFC12EB4 = (psx_brA_BFC12EB4 == psx_brB_BFC12EB4); + psx_taken_BFC12EB4 = (psx_brA_BFC12EB4 == psx_brB_BFC12EB4); /* 0xBFC12EB8: 00A03821 addu $a3, $a1, $zero */ cpu->gpr[7] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC12EB4) goto label_BFC12EC8; @@ -58262,7 +60037,7 @@ label_BFC12EBC: cpu->gpr[1] = (uint32_t)(cpu->gpr[7] < 0x00000010u ? 1 : 0); /* 0xBFC12EC0: 1420000C bne $at, $zero, 0xBFC12EF4 */ uint32_t psx_brA_BFC12EC0 = cpu->gpr[1]; uint32_t psx_brB_BFC12EC0 = cpu->gpr[0]; - int psx_taken_BFC12EC0 = (psx_brA_BFC12EC0 != psx_brB_BFC12EC0); + psx_taken_BFC12EC0 = (psx_brA_BFC12EC0 != psx_brB_BFC12EC0); /* 0xBFC12EC4: 00077080 sll $t6, $a3, 2 */ cpu->gpr[14] = cpu->gpr[7] << 2u; if (psx_taken_BFC12EC0) goto label_BFC12EF4; @@ -58338,7 +60113,7 @@ label_BFC12EF4: /* nop */ /* 0xBFC12F34: 17190008 bne $t8, $t9, 0xBFC12F58 */ uint32_t psx_brA_BFC12F34 = cpu->gpr[24]; uint32_t psx_brB_BFC12F34 = cpu->gpr[25]; - int psx_taken_BFC12F34 = (psx_brA_BFC12F34 != psx_brB_BFC12F34); + psx_taken_BFC12F34 = (psx_brA_BFC12F34 != psx_brB_BFC12F34); /* 0xBFC12F38: 00000000 nop */ /* nop */ if (psx_taken_BFC12F34) goto label_BFC12F58; @@ -58355,7 +60130,7 @@ label_BFC12F3C: /* nop */ /* 0xBFC12F48: 15090004 bne $t0, $t1, 0xBFC12F5C */ uint32_t psx_brA_BFC12F48 = cpu->gpr[8]; uint32_t psx_brB_BFC12F48 = cpu->gpr[9]; - int psx_taken_BFC12F48 = (psx_brA_BFC12F48 != psx_brB_BFC12F48); + psx_taken_BFC12F48 = (psx_brA_BFC12F48 != psx_brB_BFC12F48); /* 0xBFC12F4C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC12F48) goto label_BFC12F5C; @@ -58366,7 +60141,7 @@ label_BFC12F50: psx_check_interrupts(cpu); /* 0xBFC12F50: 10000002 beq $zero, $zero, 0xBFC12F5C */ uint32_t psx_brA_BFC12F50 = cpu->gpr[0]; uint32_t psx_brB_BFC12F50 = cpu->gpr[0]; - int psx_taken_BFC12F50 = (psx_brA_BFC12F50 == psx_brB_BFC12F50); + psx_taken_BFC12F50 = (psx_brA_BFC12F50 == psx_brB_BFC12F50); /* 0xBFC12F54: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC12F50) goto label_BFC12F5C; @@ -58402,6 +60177,7 @@ void func_0000346C(CPUState* cpu) { default: break; } } + int psx_taken_BFC12F84 = 0; label_BFC12F6C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -58427,7 +60203,7 @@ label_BFC12F7C: cpu->gpr[2] = (uint32_t)(cpu->gpr[0] < cpu->gpr[2] ? 1 : 0); /* 0xBFC12F84: 10400008 beq $v0, $zero, 0xBFC12FA8 */ uint32_t psx_brA_BFC12F84 = cpu->gpr[2]; uint32_t psx_brB_BFC12F84 = cpu->gpr[0]; - int psx_taken_BFC12F84 = (psx_brA_BFC12F84 == psx_brB_BFC12F84); + psx_taken_BFC12F84 = (psx_brA_BFC12F84 == psx_brB_BFC12F84); /* 0xBFC12F88: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC12F88u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC12F84) goto label_BFC12FA8; @@ -58473,6 +60249,8 @@ void func_000034B4(CPUState* cpu) { default: break; } } + int psx_taken_BFC12FCC = 0; + int psx_taken_BFC1300C = 0; label_BFC12FB4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -58492,7 +60270,7 @@ label_BFC12FB4: /* nop */ /* 0xBFC12FCC: 144E0009 bne $v0, $t6, 0xBFC12FF4 */ uint32_t psx_brA_BFC12FCC = cpu->gpr[2]; uint32_t psx_brB_BFC12FCC = cpu->gpr[14]; - int psx_taken_BFC12FCC = (psx_brA_BFC12FCC != psx_brB_BFC12FCC); + psx_taken_BFC12FCC = (psx_brA_BFC12FCC != psx_brB_BFC12FCC); /* 0xBFC12FD0: 00000000 nop */ /* nop */ if (psx_taken_BFC12FCC) goto label_BFC12FF4; @@ -58542,7 +60320,7 @@ label_BFC12FF4: cpu->gpr[1] = (uint32_t)(cpu->gpr[24] < cpu->gpr[25] ? 1 : 0); /* 0xBFC1300C: 14200003 bne $at, $zero, 0xBFC1301C */ uint32_t psx_brA_BFC1300C = cpu->gpr[1]; uint32_t psx_brB_BFC1300C = cpu->gpr[0]; - int psx_taken_BFC1300C = (psx_brA_BFC1300C != psx_brB_BFC1300C); + psx_taken_BFC1300C = (psx_brA_BFC1300C != psx_brB_BFC1300C); /* 0xBFC13010: 308400FF andi $a0, $a0, 0xFF */ cpu->gpr[4] = cpu->gpr[4] & 0xFFu; if (psx_taken_BFC1300C) goto label_BFC1301C; @@ -58572,6 +60350,9 @@ label_BFC1301C: void func_0000352C(CPUState* cpu) { debug_server_log_call_entry(0x0000352Cu); + int psx_taken_BFC1303C = 0; + int psx_taken_BFC13044 = 0; + int psx_taken_BFC13058 = 0; label_BFC1302C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -58587,7 +60368,7 @@ label_BFC1302C: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[14] ? 1 : 0); /* 0xBFC1303C: 14200003 bne $at, $zero, 0xBFC1304C */ uint32_t psx_brA_BFC1303C = cpu->gpr[1]; uint32_t psx_brB_BFC1303C = cpu->gpr[0]; - int psx_taken_BFC1303C = (psx_brA_BFC1303C != psx_brB_BFC1303C); + psx_taken_BFC1303C = (psx_brA_BFC1303C != psx_brB_BFC1303C); /* 0xBFC13040: 00803021 addu $a2, $a0, $zero */ cpu->gpr[6] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC1303C) goto label_BFC1304C; @@ -58598,7 +60379,7 @@ label_BFC13044: psx_check_interrupts(cpu); /* 0xBFC13044: 10000002 beq $zero, $zero, 0xBFC13050 */ uint32_t psx_brA_BFC13044 = cpu->gpr[0]; uint32_t psx_brB_BFC13044 = cpu->gpr[0]; - int psx_taken_BFC13044 = (psx_brA_BFC13044 == psx_brB_BFC13044); + psx_taken_BFC13044 = (psx_brA_BFC13044 == psx_brB_BFC13044); /* 0xBFC13048: 24A4000C addiu $a0, $a1, 12 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[5] + (12)); if (psx_taken_BFC13044) goto label_BFC13050; @@ -58620,7 +60401,7 @@ label_BFC13050: /* nop */ /* 0xBFC13058: 108F0003 beq $a0, $t7, 0xBFC13068 */ uint32_t psx_brA_BFC13058 = cpu->gpr[4]; uint32_t psx_brB_BFC13058 = cpu->gpr[15]; - int psx_taken_BFC13058 = (psx_brA_BFC13058 == psx_brB_BFC13058); + psx_taken_BFC13058 = (psx_brA_BFC13058 == psx_brB_BFC13058); /* 0xBFC1305C: 00000000 nop */ /* nop */ if (psx_taken_BFC13058) goto label_BFC13068; @@ -58718,6 +60499,12 @@ void func_000035AC(CPUState* cpu) { default: break; } } + int psx_taken_BFC130BC = 0; + int psx_taken_BFC130D0 = 0; + int psx_taken_BFC130F4 = 0; + int psx_taken_BFC1310C = 0; + int psx_taken_BFC13148 = 0; + int psx_taken_BFC1315C = 0; label_BFC130AC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -58739,7 +60526,7 @@ label_BFC130BC: psx_check_interrupts(cpu); /* 0xBFC130BC: 14400006 bne $v0, $zero, 0xBFC130D8 */ uint32_t psx_brA_BFC130BC = cpu->gpr[2]; uint32_t psx_brB_BFC130BC = cpu->gpr[0]; - int psx_taken_BFC130BC = (psx_brA_BFC130BC != psx_brB_BFC130BC); + psx_taken_BFC130BC = (psx_brA_BFC130BC != psx_brB_BFC130BC); /* 0xBFC130C0: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC130BC) goto label_BFC130D8; @@ -58756,7 +60543,7 @@ label_BFC130C4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC130CCu); return; } g_debug_last_store_pc = 0xBFC130CCu; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC130D0: 10000025 beq $zero, $zero, 0xBFC13168 */ uint32_t psx_brA_BFC130D0 = cpu->gpr[0]; uint32_t psx_brB_BFC130D0 = cpu->gpr[0]; - int psx_taken_BFC130D0 = (psx_brA_BFC130D0 == psx_brB_BFC130D0); + psx_taken_BFC130D0 = (psx_brA_BFC130D0 == psx_brB_BFC130D0); /* 0xBFC130D4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC130D0) goto label_BFC13168; @@ -58787,7 +60574,7 @@ label_BFC130EC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC130F4: 14410007 bne $v0, $at, 0xBFC13114 */ uint32_t psx_brA_BFC130F4 = cpu->gpr[2]; uint32_t psx_brB_BFC130F4 = cpu->gpr[1]; - int psx_taken_BFC130F4 = (psx_brA_BFC130F4 != psx_brB_BFC130F4); + psx_taken_BFC130F4 = (psx_brA_BFC130F4 != psx_brB_BFC130F4); /* 0xBFC130F8: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC130F4) goto label_BFC13114; @@ -58806,7 +60593,7 @@ label_BFC130FC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13108u); return; } g_debug_last_store_pc = 0xBFC13108u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC1310C: 10000016 beq $zero, $zero, 0xBFC13168 */ uint32_t psx_brA_BFC1310C = cpu->gpr[0]; uint32_t psx_brB_BFC1310C = cpu->gpr[0]; - int psx_taken_BFC1310C = (psx_brA_BFC1310C == psx_brB_BFC1310C); + psx_taken_BFC1310C = (psx_brA_BFC1310C == psx_brB_BFC1310C); /* 0xBFC13110: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1310C) goto label_BFC13168; @@ -58849,7 +60636,7 @@ label_BFC13144: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13144u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC13148: 10400006 beq $v0, $zero, 0xBFC13164 */ uint32_t psx_brA_BFC13148 = cpu->gpr[2]; uint32_t psx_brB_BFC13148 = cpu->gpr[0]; - int psx_taken_BFC13148 = (psx_brA_BFC13148 == psx_brB_BFC13148); + psx_taken_BFC13148 = (psx_brA_BFC13148 == psx_brB_BFC13148); /* 0xBFC1314C: AC600000 sw $zero, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1314Cu); return; } g_debug_last_store_pc = 0xBFC1314Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC13148) goto label_BFC13164; @@ -58866,7 +60653,7 @@ label_BFC13150: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC1315C: 10000002 beq $zero, $zero, 0xBFC13168 */ uint32_t psx_brA_BFC1315C = cpu->gpr[0]; uint32_t psx_brB_BFC1315C = cpu->gpr[0]; - int psx_taken_BFC1315C = (psx_brA_BFC1315C == psx_brB_BFC1315C); + psx_taken_BFC1315C = (psx_brA_BFC1315C == psx_brB_BFC1315C); /* 0xBFC13160: AC2A8640 sw $t2, -31168($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13160u); return; } g_debug_last_store_pc = 0xBFC13160u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC1315C) goto label_BFC13168; @@ -58904,6 +60691,12 @@ void func_00003678(CPUState* cpu) { default: break; } } + int psx_taken_BFC13188 = 0; + int psx_taken_BFC1319C = 0; + int psx_taken_BFC131C0 = 0; + int psx_taken_BFC131D8 = 0; + int psx_taken_BFC13214 = 0; + int psx_taken_BFC13228 = 0; label_BFC13178: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -58925,7 +60718,7 @@ label_BFC13188: psx_check_interrupts(cpu); /* 0xBFC13188: 14400006 bne $v0, $zero, 0xBFC131A4 */ uint32_t psx_brA_BFC13188 = cpu->gpr[2]; uint32_t psx_brB_BFC13188 = cpu->gpr[0]; - int psx_taken_BFC13188 = (psx_brA_BFC13188 != psx_brB_BFC13188); + psx_taken_BFC13188 = (psx_brA_BFC13188 != psx_brB_BFC13188); /* 0xBFC1318C: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC13188) goto label_BFC131A4; @@ -58942,7 +60735,7 @@ label_BFC13190: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13198u); return; } g_debug_last_store_pc = 0xBFC13198u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC1319C: 10000025 beq $zero, $zero, 0xBFC13234 */ uint32_t psx_brA_BFC1319C = cpu->gpr[0]; uint32_t psx_brB_BFC1319C = cpu->gpr[0]; - int psx_taken_BFC1319C = (psx_brA_BFC1319C == psx_brB_BFC1319C); + psx_taken_BFC1319C = (psx_brA_BFC1319C == psx_brB_BFC1319C); /* 0xBFC131A0: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1319C) goto label_BFC13234; @@ -58973,7 +60766,7 @@ label_BFC131B8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC131C0: 14410007 bne $v0, $at, 0xBFC131E0 */ uint32_t psx_brA_BFC131C0 = cpu->gpr[2]; uint32_t psx_brB_BFC131C0 = cpu->gpr[1]; - int psx_taken_BFC131C0 = (psx_brA_BFC131C0 != psx_brB_BFC131C0); + psx_taken_BFC131C0 = (psx_brA_BFC131C0 != psx_brB_BFC131C0); /* 0xBFC131C4: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC131C0) goto label_BFC131E0; @@ -58992,7 +60785,7 @@ label_BFC131C8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC131D4u); return; } g_debug_last_store_pc = 0xBFC131D4u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC131D8: 10000016 beq $zero, $zero, 0xBFC13234 */ uint32_t psx_brA_BFC131D8 = cpu->gpr[0]; uint32_t psx_brB_BFC131D8 = cpu->gpr[0]; - int psx_taken_BFC131D8 = (psx_brA_BFC131D8 == psx_brB_BFC131D8); + psx_taken_BFC131D8 = (psx_brA_BFC131D8 == psx_brB_BFC131D8); /* 0xBFC131DC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC131D8) goto label_BFC13234; @@ -59035,7 +60828,7 @@ label_BFC13210: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13210u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC13214: 10400006 beq $v0, $zero, 0xBFC13230 */ uint32_t psx_brA_BFC13214 = cpu->gpr[2]; uint32_t psx_brB_BFC13214 = cpu->gpr[0]; - int psx_taken_BFC13214 = (psx_brA_BFC13214 == psx_brB_BFC13214); + psx_taken_BFC13214 = (psx_brA_BFC13214 == psx_brB_BFC13214); /* 0xBFC13218: AC600000 sw $zero, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13218u); return; } g_debug_last_store_pc = 0xBFC13218u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC13214) goto label_BFC13230; @@ -59052,7 +60845,7 @@ label_BFC1321C: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC13228: 10000002 beq $zero, $zero, 0xBFC13234 */ uint32_t psx_brA_BFC13228 = cpu->gpr[0]; uint32_t psx_brB_BFC13228 = cpu->gpr[0]; - int psx_taken_BFC13228 = (psx_brA_BFC13228 == psx_brB_BFC13228); + psx_taken_BFC13228 = (psx_brA_BFC13228 == psx_brB_BFC13228); /* 0xBFC1322C: AC2A8640 sw $t2, -31168($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1322Cu); return; } g_debug_last_store_pc = 0xBFC1322Cu; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC13228) goto label_BFC13234; @@ -59090,6 +60883,12 @@ void func_00003744(CPUState* cpu) { default: break; } } + int psx_taken_BFC13254 = 0; + int psx_taken_BFC13268 = 0; + int psx_taken_BFC1328C = 0; + int psx_taken_BFC132A4 = 0; + int psx_taken_BFC132E0 = 0; + int psx_taken_BFC132F4 = 0; label_BFC13244: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -59111,7 +60910,7 @@ label_BFC13254: psx_check_interrupts(cpu); /* 0xBFC13254: 14400006 bne $v0, $zero, 0xBFC13270 */ uint32_t psx_brA_BFC13254 = cpu->gpr[2]; uint32_t psx_brB_BFC13254 = cpu->gpr[0]; - int psx_taken_BFC13254 = (psx_brA_BFC13254 != psx_brB_BFC13254); + psx_taken_BFC13254 = (psx_brA_BFC13254 != psx_brB_BFC13254); /* 0xBFC13258: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC13254) goto label_BFC13270; @@ -59128,7 +60927,7 @@ label_BFC1325C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13264u); return; } g_debug_last_store_pc = 0xBFC13264u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC13268: 10000025 beq $zero, $zero, 0xBFC13300 */ uint32_t psx_brA_BFC13268 = cpu->gpr[0]; uint32_t psx_brB_BFC13268 = cpu->gpr[0]; - int psx_taken_BFC13268 = (psx_brA_BFC13268 == psx_brB_BFC13268); + psx_taken_BFC13268 = (psx_brA_BFC13268 == psx_brB_BFC13268); /* 0xBFC1326C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC13268) goto label_BFC13300; @@ -59159,7 +60958,7 @@ label_BFC13284: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC1328C: 14410007 bne $v0, $at, 0xBFC132AC */ uint32_t psx_brA_BFC1328C = cpu->gpr[2]; uint32_t psx_brB_BFC1328C = cpu->gpr[1]; - int psx_taken_BFC1328C = (psx_brA_BFC1328C != psx_brB_BFC1328C); + psx_taken_BFC1328C = (psx_brA_BFC1328C != psx_brB_BFC1328C); /* 0xBFC13290: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1328C) goto label_BFC132AC; @@ -59178,7 +60977,7 @@ label_BFC13294: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC132A0u); return; } g_debug_last_store_pc = 0xBFC132A0u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC132A4: 10000016 beq $zero, $zero, 0xBFC13300 */ uint32_t psx_brA_BFC132A4 = cpu->gpr[0]; uint32_t psx_brB_BFC132A4 = cpu->gpr[0]; - int psx_taken_BFC132A4 = (psx_brA_BFC132A4 == psx_brB_BFC132A4); + psx_taken_BFC132A4 = (psx_brA_BFC132A4 == psx_brB_BFC132A4); /* 0xBFC132A8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC132A4) goto label_BFC13300; @@ -59221,7 +61020,7 @@ label_BFC132DC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC132DCu); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC132E0: 10400006 beq $v0, $zero, 0xBFC132FC */ uint32_t psx_brA_BFC132E0 = cpu->gpr[2]; uint32_t psx_brB_BFC132E0 = cpu->gpr[0]; - int psx_taken_BFC132E0 = (psx_brA_BFC132E0 == psx_brB_BFC132E0); + psx_taken_BFC132E0 = (psx_brA_BFC132E0 == psx_brB_BFC132E0); /* 0xBFC132E4: AC600000 sw $zero, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC132E4u); return; } g_debug_last_store_pc = 0xBFC132E4u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC132E0) goto label_BFC132FC; @@ -59238,7 +61037,7 @@ label_BFC132E8: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC132F4: 10000002 beq $zero, $zero, 0xBFC13300 */ uint32_t psx_brA_BFC132F4 = cpu->gpr[0]; uint32_t psx_brB_BFC132F4 = cpu->gpr[0]; - int psx_taken_BFC132F4 = (psx_brA_BFC132F4 == psx_brB_BFC132F4); + psx_taken_BFC132F4 = (psx_brA_BFC132F4 == psx_brB_BFC132F4); /* 0xBFC132F8: AC2A8640 sw $t2, -31168($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC132F8u); return; } g_debug_last_store_pc = 0xBFC132F8u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC132F4) goto label_BFC13300; @@ -59276,6 +61075,12 @@ void func_00003810(CPUState* cpu) { default: break; } } + int psx_taken_BFC13320 = 0; + int psx_taken_BFC13334 = 0; + int psx_taken_BFC13358 = 0; + int psx_taken_BFC1336C = 0; + int psx_taken_BFC133A8 = 0; + int psx_taken_BFC133BC = 0; label_BFC13310: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -59297,7 +61102,7 @@ label_BFC13320: psx_check_interrupts(cpu); /* 0xBFC13320: 14400006 bne $v0, $zero, 0xBFC1333C */ uint32_t psx_brA_BFC13320 = cpu->gpr[2]; uint32_t psx_brB_BFC13320 = cpu->gpr[0]; - int psx_taken_BFC13320 = (psx_brA_BFC13320 != psx_brB_BFC13320); + psx_taken_BFC13320 = (psx_brA_BFC13320 != psx_brB_BFC13320); /* 0xBFC13324: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC13320) goto label_BFC1333C; @@ -59314,7 +61119,7 @@ label_BFC13328: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13330u); return; } g_debug_last_store_pc = 0xBFC13330u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC13334: 10000024 beq $zero, $zero, 0xBFC133C8 */ uint32_t psx_brA_BFC13334 = cpu->gpr[0]; uint32_t psx_brB_BFC13334 = cpu->gpr[0]; - int psx_taken_BFC13334 = (psx_brA_BFC13334 == psx_brB_BFC13334); + psx_taken_BFC13334 = (psx_brA_BFC13334 == psx_brB_BFC13334); /* 0xBFC13338: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC13334) goto label_BFC133C8; @@ -59345,7 +61150,7 @@ label_BFC13350: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC13358: 14410006 bne $v0, $at, 0xBFC13374 */ uint32_t psx_brA_BFC13358 = cpu->gpr[2]; uint32_t psx_brB_BFC13358 = cpu->gpr[1]; - int psx_taken_BFC13358 = (psx_brA_BFC13358 != psx_brB_BFC13358); + psx_taken_BFC13358 = (psx_brA_BFC13358 != psx_brB_BFC13358); /* 0xBFC1335C: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC13358) goto label_BFC13374; @@ -59362,7 +61167,7 @@ label_BFC13360: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13368u); return; } g_debug_last_store_pc = 0xBFC13368u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC1336C: 10000016 beq $zero, $zero, 0xBFC133C8 */ uint32_t psx_brA_BFC1336C = cpu->gpr[0]; uint32_t psx_brB_BFC1336C = cpu->gpr[0]; - int psx_taken_BFC1336C = (psx_brA_BFC1336C == psx_brB_BFC1336C); + psx_taken_BFC1336C = (psx_brA_BFC1336C == psx_brB_BFC1336C); /* 0xBFC13370: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1336C) goto label_BFC133C8; @@ -59405,7 +61210,7 @@ label_BFC133A4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC133A4u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC133A8: 10400006 beq $v0, $zero, 0xBFC133C4 */ uint32_t psx_brA_BFC133A8 = cpu->gpr[2]; uint32_t psx_brB_BFC133A8 = cpu->gpr[0]; - int psx_taken_BFC133A8 = (psx_brA_BFC133A8 == psx_brB_BFC133A8); + psx_taken_BFC133A8 = (psx_brA_BFC133A8 == psx_brB_BFC133A8); /* 0xBFC133AC: AC600000 sw $zero, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC133ACu); return; } g_debug_last_store_pc = 0xBFC133ACu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC133A8) goto label_BFC133C4; @@ -59422,7 +61227,7 @@ label_BFC133B0: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC133BC: 10000002 beq $zero, $zero, 0xBFC133C8 */ uint32_t psx_brA_BFC133BC = cpu->gpr[0]; uint32_t psx_brB_BFC133BC = cpu->gpr[0]; - int psx_taken_BFC133BC = (psx_brA_BFC133BC == psx_brB_BFC133BC); + psx_taken_BFC133BC = (psx_brA_BFC133BC == psx_brB_BFC133BC); /* 0xBFC133C0: AC2A8640 sw $t2, -31168($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC133C0u); return; } g_debug_last_store_pc = 0xBFC133C0u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC133BC) goto label_BFC133C8; @@ -59460,6 +61265,12 @@ void func_000038D8(CPUState* cpu) { default: break; } } + int psx_taken_BFC133E8 = 0; + int psx_taken_BFC133FC = 0; + int psx_taken_BFC13420 = 0; + int psx_taken_BFC13438 = 0; + int psx_taken_BFC13474 = 0; + int psx_taken_BFC13488 = 0; label_BFC133D8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -59481,7 +61292,7 @@ label_BFC133E8: psx_check_interrupts(cpu); /* 0xBFC133E8: 14400006 bne $v0, $zero, 0xBFC13404 */ uint32_t psx_brA_BFC133E8 = cpu->gpr[2]; uint32_t psx_brB_BFC133E8 = cpu->gpr[0]; - int psx_taken_BFC133E8 = (psx_brA_BFC133E8 != psx_brB_BFC133E8); + psx_taken_BFC133E8 = (psx_brA_BFC133E8 != psx_brB_BFC133E8); /* 0xBFC133EC: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC133E8) goto label_BFC13404; @@ -59498,7 +61309,7 @@ label_BFC133F0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC133F8u); return; } g_debug_last_store_pc = 0xBFC133F8u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC133FC: 10000025 beq $zero, $zero, 0xBFC13494 */ uint32_t psx_brA_BFC133FC = cpu->gpr[0]; uint32_t psx_brB_BFC133FC = cpu->gpr[0]; - int psx_taken_BFC133FC = (psx_brA_BFC133FC == psx_brB_BFC133FC); + psx_taken_BFC133FC = (psx_brA_BFC133FC == psx_brB_BFC133FC); /* 0xBFC13400: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC133FC) goto label_BFC13494; @@ -59529,7 +61340,7 @@ label_BFC13418: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC13420: 14410008 bne $v0, $at, 0xBFC13444 */ uint32_t psx_brA_BFC13420 = cpu->gpr[2]; uint32_t psx_brB_BFC13420 = cpu->gpr[1]; - int psx_taken_BFC13420 = (psx_brA_BFC13420 != psx_brB_BFC13420); + psx_taken_BFC13420 = (psx_brA_BFC13420 != psx_brB_BFC13420); /* 0xBFC13424: 8FB80024 lw $t8, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13424u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC13420) goto label_BFC13444; @@ -59548,7 +61359,7 @@ label_BFC13428: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13434u); return; } g_debug_last_store_pc = 0xBFC13434u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC13438: 10000016 beq $zero, $zero, 0xBFC13494 */ uint32_t psx_brA_BFC13438 = cpu->gpr[0]; uint32_t psx_brB_BFC13438 = cpu->gpr[0]; - int psx_taken_BFC13438 = (psx_brA_BFC13438 == psx_brB_BFC13438); + psx_taken_BFC13438 = (psx_brA_BFC13438 == psx_brB_BFC13438); /* 0xBFC1343C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC13438) goto label_BFC13494; @@ -59596,7 +61407,7 @@ label_BFC13470: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13470u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC13474: 10400006 beq $v0, $zero, 0xBFC13490 */ uint32_t psx_brA_BFC13474 = cpu->gpr[2]; uint32_t psx_brB_BFC13474 = cpu->gpr[0]; - int psx_taken_BFC13474 = (psx_brA_BFC13474 == psx_brB_BFC13474); + psx_taken_BFC13474 = (psx_brA_BFC13474 == psx_brB_BFC13474); /* 0xBFC13478: AC600000 sw $zero, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13478u); return; } g_debug_last_store_pc = 0xBFC13478u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC13474) goto label_BFC13490; @@ -59613,7 +61424,7 @@ label_BFC1347C: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC13488: 10000002 beq $zero, $zero, 0xBFC13494 */ uint32_t psx_brA_BFC13488 = cpu->gpr[0]; uint32_t psx_brB_BFC13488 = cpu->gpr[0]; - int psx_taken_BFC13488 = (psx_brA_BFC13488 == psx_brB_BFC13488); + psx_taken_BFC13488 = (psx_brA_BFC13488 == psx_brB_BFC13488); /* 0xBFC1348C: AC2A8640 sw $t2, -31168($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1348Cu); return; } g_debug_last_store_pc = 0xBFC1348Cu; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC13488) goto label_BFC13494; @@ -59651,6 +61462,11 @@ void func_000039A4(CPUState* cpu) { default: break; } } + int psx_taken_BFC134B8 = 0; + int psx_taken_BFC134D0 = 0; + int psx_taken_BFC134E4 = 0; + int psx_taken_BFC13500 = 0; + int psx_taken_BFC13520 = 0; label_BFC134A4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -59668,7 +61484,7 @@ label_BFC134A4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (48)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC134B4u); return; } g_debug_last_store_pc = 0xBFC134B4u; cpu->write_word(psx_addr, cpu->gpr[4]); } /* 0xBFC134B8: 1460000C bne $v1, $zero, 0xBFC134EC */ uint32_t psx_brA_BFC134B8 = cpu->gpr[3]; uint32_t psx_brB_BFC134B8 = cpu->gpr[0]; - int psx_taken_BFC134B8 = (psx_brA_BFC134B8 != psx_brB_BFC134B8); + psx_taken_BFC134B8 = (psx_brA_BFC134B8 != psx_brB_BFC134B8); /* 0xBFC134BC: AFA50034 sw $a1, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC134BCu); return; } g_debug_last_store_pc = 0xBFC134BCu; cpu->write_word(psx_addr, cpu->gpr[5]); } if (psx_taken_BFC134B8) goto label_BFC134EC; @@ -59693,7 +61509,7 @@ label_BFC134C8: cpu->gpr[1] = 0x00000000u; /* 0xBFC134D0: 14400006 bne $v0, $zero, 0xBFC134EC */ uint32_t psx_brA_BFC134D0 = cpu->gpr[2]; uint32_t psx_brB_BFC134D0 = cpu->gpr[0]; - int psx_taken_BFC134D0 = (psx_brA_BFC134D0 != psx_brB_BFC134D0); + psx_taken_BFC134D0 = (psx_brA_BFC134D0 != psx_brB_BFC134D0); /* 0xBFC134D4: AC237480 sw $v1, 29824($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (29824)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC134D4u); return; } g_debug_last_store_pc = 0xBFC134D4u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC134D0) goto label_BFC134EC; @@ -59710,7 +61526,7 @@ label_BFC134D8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC134E0u); return; } g_debug_last_store_pc = 0xBFC134E0u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC134E4: 1000001E beq $zero, $zero, 0xBFC13560 */ uint32_t psx_brA_BFC134E4 = cpu->gpr[0]; uint32_t psx_brB_BFC134E4 = cpu->gpr[0]; - int psx_taken_BFC134E4 = (psx_brA_BFC134E4 == psx_brB_BFC134E4); + psx_taken_BFC134E4 = (psx_brA_BFC134E4 == psx_brB_BFC134E4); /* 0xBFC134E8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC134E4) goto label_BFC13560; @@ -59737,7 +61553,7 @@ label_BFC134FC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC13500: 14410009 bne $v0, $at, 0xBFC13528 */ uint32_t psx_brA_BFC13500 = cpu->gpr[2]; uint32_t psx_brB_BFC13500 = cpu->gpr[1]; - int psx_taken_BFC13500 = (psx_brA_BFC13500 != psx_brB_BFC13500); + psx_taken_BFC13500 = (psx_brA_BFC13500 != psx_brB_BFC13500); /* 0xBFC13504: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC13500) goto label_BFC13528; @@ -59760,7 +61576,7 @@ label_BFC13508: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC13520: 1000000F beq $zero, $zero, 0xBFC13560 */ uint32_t psx_brA_BFC13520 = cpu->gpr[0]; uint32_t psx_brB_BFC13520 = cpu->gpr[0]; - int psx_taken_BFC13520 = (psx_brA_BFC13520 == psx_brB_BFC13520); + psx_taken_BFC13520 = (psx_brA_BFC13520 == psx_brB_BFC13520); /* 0xBFC13524: AC600000 sw $zero, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13524u); return; } g_debug_last_store_pc = 0xBFC13524u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC13520) goto label_BFC13560; @@ -59880,6 +61696,19 @@ void func_00003AAC(CPUState* cpu) { default: break; } } + int psx_taken_BFC135C4 = 0; + int psx_taken_BFC135D8 = 0; + int psx_taken_BFC135E8 = 0; + int psx_taken_BFC13600 = 0; + int psx_taken_BFC13624 = 0; + int psx_taken_BFC13634 = 0; + int psx_taken_BFC13664 = 0; + int psx_taken_BFC13674 = 0; + int psx_taken_BFC13680 = 0; + int psx_taken_BFC13690 = 0; + int psx_taken_BFC136EC = 0; + int psx_taken_BFC13700 = 0; + int psx_taken_BFC13708 = 0; label_BFC135AC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -59905,7 +61734,7 @@ label_BFC135C4: psx_check_interrupts(cpu); /* 0xBFC135C4: 14400006 bne $v0, $zero, 0xBFC135E0 */ uint32_t psx_brA_BFC135C4 = cpu->gpr[2]; uint32_t psx_brB_BFC135C4 = cpu->gpr[0]; - int psx_taken_BFC135C4 = (psx_brA_BFC135C4 != psx_brB_BFC135C4); + psx_taken_BFC135C4 = (psx_brA_BFC135C4 != psx_brB_BFC135C4); /* 0xBFC135C8: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC135C4) goto label_BFC135E0; @@ -59922,7 +61751,7 @@ label_BFC135CC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC135D4u); return; } g_debug_last_store_pc = 0xBFC135D4u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC135D8: 10000050 beq $zero, $zero, 0xBFC1371C */ uint32_t psx_brA_BFC135D8 = cpu->gpr[0]; uint32_t psx_brB_BFC135D8 = cpu->gpr[0]; - int psx_taken_BFC135D8 = (psx_brA_BFC135D8 == psx_brB_BFC135D8); + psx_taken_BFC135D8 = (psx_brA_BFC135D8 == psx_brB_BFC135D8); /* 0xBFC135DC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC135D8) goto label_BFC1371C; @@ -59943,7 +61772,7 @@ label_BFC135E8: psx_check_interrupts(cpu); /* 0xBFC135E8: 14400007 bne $v0, $zero, 0xBFC13608 */ uint32_t psx_brA_BFC135E8 = cpu->gpr[2]; uint32_t psx_brB_BFC135E8 = cpu->gpr[0]; - int psx_taken_BFC135E8 = (psx_brA_BFC135E8 != psx_brB_BFC135E8); + psx_taken_BFC135E8 = (psx_brA_BFC135E8 != psx_brB_BFC135E8); /* 0xBFC135EC: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC135E8) goto label_BFC13608; @@ -59962,7 +61791,7 @@ label_BFC135F0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC135FCu); return; } g_debug_last_store_pc = 0xBFC135FCu; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC13600: 10000046 beq $zero, $zero, 0xBFC1371C */ uint32_t psx_brA_BFC13600 = cpu->gpr[0]; uint32_t psx_brB_BFC13600 = cpu->gpr[0]; - int psx_taken_BFC13600 = (psx_brA_BFC13600 == psx_brB_BFC13600); + psx_taken_BFC13600 = (psx_brA_BFC13600 == psx_brB_BFC13600); /* 0xBFC13604: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC13600) goto label_BFC1371C; @@ -59993,7 +61822,7 @@ label_BFC1361C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC13624: 14410005 bne $v0, $at, 0xBFC1363C */ uint32_t psx_brA_BFC13624 = cpu->gpr[2]; uint32_t psx_brB_BFC13624 = cpu->gpr[1]; - int psx_taken_BFC13624 = (psx_brA_BFC13624 != psx_brB_BFC13624); + psx_taken_BFC13624 = (psx_brA_BFC13624 != psx_brB_BFC13624); /* 0xBFC13628: 00404021 addu $t0, $v0, $zero */ cpu->gpr[8] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC13624) goto label_BFC1363C; @@ -60008,7 +61837,7 @@ label_BFC1362C: cpu->gpr[1] = 0x00010000u; /* 0xBFC13634: 10000036 beq $zero, $zero, 0xBFC13710 */ uint32_t psx_brA_BFC13634 = cpu->gpr[0]; uint32_t psx_brB_BFC13634 = cpu->gpr[0]; - int psx_taken_BFC13634 = (psx_brA_BFC13634 == psx_brB_BFC13634); + psx_taken_BFC13634 = (psx_brA_BFC13634 == psx_brB_BFC13634); /* 0xBFC13638: AC388640 sw $t8, -31168($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13638u); return; } g_debug_last_store_pc = 0xBFC13638u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC13634) goto label_BFC13710; @@ -60045,7 +61874,7 @@ label_BFC13654: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13660u); return; } cpu->gpr[8] = cpu->read_word(psx_addr); } /* 0xBFC13664: 13290005 beq $t9, $t1, 0xBFC1367C */ uint32_t psx_brA_BFC13664 = cpu->gpr[25]; uint32_t psx_brB_BFC13664 = cpu->gpr[9]; - int psx_taken_BFC13664 = (psx_brA_BFC13664 == psx_brB_BFC13664); + psx_taken_BFC13664 = (psx_brA_BFC13664 == psx_brB_BFC13664); /* 0xBFC13668: 00403821 addu $a3, $v0, $zero */ cpu->gpr[7] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC13664) goto label_BFC1367C; @@ -60060,7 +61889,7 @@ label_BFC1366C: cpu->gpr[1] = 0x00010000u; /* 0xBFC13674: 10000026 beq $zero, $zero, 0xBFC13710 */ uint32_t psx_brA_BFC13674 = cpu->gpr[0]; uint32_t psx_brB_BFC13674 = cpu->gpr[0]; - int psx_taken_BFC13674 = (psx_brA_BFC13674 == psx_brB_BFC13674); + psx_taken_BFC13674 = (psx_brA_BFC13674 == psx_brB_BFC13674); /* 0xBFC13678: AC2A8640 sw $t2, -31168($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13678u); return; } g_debug_last_store_pc = 0xBFC13678u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC13674) goto label_BFC13710; @@ -60073,7 +61902,7 @@ label_BFC1367C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC13680: 14410006 bne $v0, $at, 0xBFC1369C */ uint32_t psx_brA_BFC13680 = cpu->gpr[2]; uint32_t psx_brB_BFC13680 = cpu->gpr[1]; - int psx_taken_BFC13680 = (psx_brA_BFC13680 != psx_brB_BFC13680); + psx_taken_BFC13680 = (psx_brA_BFC13680 != psx_brB_BFC13680); /* 0xBFC13684: 8FAC0034 lw $t4, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13684u); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } if (psx_taken_BFC13680) goto label_BFC1369C; @@ -60088,7 +61917,7 @@ label_BFC13688: cpu->gpr[1] = 0x00010000u; /* 0xBFC13690: 1000001F beq $zero, $zero, 0xBFC13710 */ uint32_t psx_brA_BFC13690 = cpu->gpr[0]; uint32_t psx_brB_BFC13690 = cpu->gpr[0]; - int psx_taken_BFC13690 = (psx_brA_BFC13690 == psx_brB_BFC13690); + psx_taken_BFC13690 = (psx_brA_BFC13690 == psx_brB_BFC13690); /* 0xBFC13694: AC2B8640 sw $t3, -31168($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13694u); return; } g_debug_last_store_pc = 0xBFC13694u; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC13690) goto label_BFC13710; @@ -60152,7 +61981,7 @@ label_BFC136E0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC136E8u); return; } g_debug_last_store_pc = 0xBFC136E8u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC136EC: 10400006 beq $v0, $zero, 0xBFC13708 */ uint32_t psx_brA_BFC136EC = cpu->gpr[2]; uint32_t psx_brB_BFC136EC = cpu->gpr[0]; - int psx_taken_BFC136EC = (psx_brA_BFC136EC == psx_brB_BFC136EC); + psx_taken_BFC136EC = (psx_brA_BFC136EC == psx_brB_BFC136EC); /* 0xBFC136F0: AE000000 sw $zero, 0($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC136F0u); return; } g_debug_last_store_pc = 0xBFC136F0u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC136EC) goto label_BFC13708; @@ -60169,7 +61998,7 @@ label_BFC136F4: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC13700: 10000006 beq $zero, $zero, 0xBFC1371C */ uint32_t psx_brA_BFC13700 = cpu->gpr[0]; uint32_t psx_brB_BFC13700 = cpu->gpr[0]; - int psx_taken_BFC13700 = (psx_brA_BFC13700 == psx_brB_BFC13700); + psx_taken_BFC13700 = (psx_brA_BFC13700 == psx_brB_BFC13700); /* 0xBFC13704: AC298640 sw $t1, -31168($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13704u); return; } g_debug_last_store_pc = 0xBFC13704u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC13700) goto label_BFC1371C; @@ -60180,7 +62009,7 @@ label_BFC13708: psx_check_interrupts(cpu); /* 0xBFC13708: 10000004 beq $zero, $zero, 0xBFC1371C */ uint32_t psx_brA_BFC13708 = cpu->gpr[0]; uint32_t psx_brB_BFC13708 = cpu->gpr[0]; - int psx_taken_BFC13708 = (psx_brA_BFC13708 == psx_brB_BFC13708); + psx_taken_BFC13708 = (psx_brA_BFC13708 == psx_brB_BFC13708); /* 0xBFC1370C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC13708) goto label_BFC1371C; @@ -60212,6 +62041,7 @@ label_BFC1371C: void func_00003C2C(CPUState* cpu) { debug_server_log_call_entry(0x00003C2Cu); + int psx_taken_BFC13764 = 0; label_BFC1372C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -60247,7 +62077,7 @@ label_BFC1372C: cpu->gpr[7] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC13764: 14200019 bne $at, $zero, 0xBFC137CC */ uint32_t psx_brA_BFC13764 = cpu->gpr[1]; uint32_t psx_brB_BFC13764 = cpu->gpr[0]; - int psx_taken_BFC13764 = (psx_brA_BFC13764 != psx_brB_BFC13764); + psx_taken_BFC13764 = (psx_brA_BFC13764 != psx_brB_BFC13764); /* 0xBFC13768: 00A01821 addu $v1, $a1, $zero */ cpu->gpr[3] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC13764) { cpu->pc = 0xBFC137CCu; return; } @@ -60265,6 +62095,7 @@ void func_00003C6C(CPUState* cpu) { default: break; } } + int psx_taken_BFC13774 = 0; label_BFC1376C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -60276,7 +62107,7 @@ label_BFC1376C: /* nop */ /* 0xBFC13774: 17200011 bne $t9, $zero, 0xBFC137BC */ uint32_t psx_brA_BFC13774 = cpu->gpr[25]; uint32_t psx_brB_BFC13774 = cpu->gpr[0]; - int psx_taken_BFC13774 = (psx_brA_BFC13774 != psx_brB_BFC13774); + psx_taken_BFC13774 = (psx_brA_BFC13774 != psx_brB_BFC13774); /* 0xBFC13778: 00000000 nop */ /* nop */ if (psx_taken_BFC13774) { cpu->pc = 0xBFC137BCu; return; } @@ -60331,6 +62162,7 @@ label_BFC1379C: void func_00003CB4(CPUState* cpu) { debug_server_log_call_entry(0x00003CB4u); + int psx_taken_BFC137B4 = 0; label_BFC137B4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -60338,7 +62170,7 @@ label_BFC137B4: psx_check_interrupts(cpu); /* 0xBFC137B4: 10000006 beq $zero, $zero, 0xBFC137D0 */ uint32_t psx_brA_BFC137B4 = cpu->gpr[0]; uint32_t psx_brB_BFC137B4 = cpu->gpr[0]; - int psx_taken_BFC137B4 = (psx_brA_BFC137B4 == psx_brB_BFC137B4); + psx_taken_BFC137B4 = (psx_brA_BFC137B4 == psx_brB_BFC137B4); /* 0xBFC137B8: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC137B4) { cpu->pc = 0xBFC137D0u; return; } @@ -60355,6 +62187,7 @@ void func_00003CBC(CPUState* cpu) { default: break; } } + int psx_taken_BFC137C4 = 0; label_BFC137BC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -60366,7 +62199,7 @@ label_BFC137BC: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[2] ? 1 : 0); /* 0xBFC137C4: 1420FFE9 bne $at, $zero, 0xBFC1376C */ uint32_t psx_brA_BFC137C4 = cpu->gpr[1]; uint32_t psx_brB_BFC137C4 = cpu->gpr[0]; - int psx_taken_BFC137C4 = (psx_brA_BFC137C4 != psx_brB_BFC137C4); + psx_taken_BFC137C4 = (psx_brA_BFC137C4 != psx_brB_BFC137C4); /* 0xBFC137C8: 00000000 nop */ /* nop */ if (psx_taken_BFC137C4) { cpu->pc = 0xBFC1376Cu; return; } @@ -60408,6 +62241,11 @@ void func_00003CE0(CPUState* cpu) { default: break; } } + int psx_taken_BFC13824 = 0; + int psx_taken_BFC13834 = 0; + int psx_taken_BFC13844 = 0; + int psx_taken_BFC13860 = 0; + int psx_taken_BFC13888 = 0; label_BFC137E0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(19u); @@ -60449,7 +62287,7 @@ label_BFC137E0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13820u); return; } g_debug_last_store_pc = 0xBFC13820u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC13824: 1420001A bne $at, $zero, 0xBFC13890 */ uint32_t psx_brA_BFC13824 = cpu->gpr[1]; uint32_t psx_brB_BFC13824 = cpu->gpr[0]; - int psx_taken_BFC13824 = (psx_brA_BFC13824 != psx_brB_BFC13824); + psx_taken_BFC13824 = (psx_brA_BFC13824 != psx_brB_BFC13824); /* 0xBFC13828: 02208021 addu $s0, $s1, $zero */ cpu->gpr[16] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC13824) goto label_BFC13890; @@ -60464,7 +62302,7 @@ label_BFC1382C: /* nop */ /* 0xBFC13834: 10A0000C beq $a1, $zero, 0xBFC13868 */ uint32_t psx_brA_BFC13834 = cpu->gpr[5]; uint32_t psx_brB_BFC13834 = cpu->gpr[0]; - int psx_taken_BFC13834 = (psx_brA_BFC13834 == psx_brB_BFC13834); + psx_taken_BFC13834 = (psx_brA_BFC13834 == psx_brB_BFC13834); /* 0xBFC13838: 00000000 nop */ /* nop */ if (psx_taken_BFC13834) goto label_BFC13868; @@ -60485,7 +62323,7 @@ label_BFC13844: psx_check_interrupts(cpu); /* 0xBFC13844: 14400008 bne $v0, $zero, 0xBFC13868 */ uint32_t psx_brA_BFC13844 = cpu->gpr[2]; uint32_t psx_brB_BFC13844 = cpu->gpr[0]; - int psx_taken_BFC13844 = (psx_brA_BFC13844 != psx_brB_BFC13844); + psx_taken_BFC13844 = (psx_brA_BFC13844 != psx_brB_BFC13844); /* 0xBFC13848: 00000000 nop */ /* nop */ if (psx_taken_BFC13844) goto label_BFC13868; @@ -60512,7 +62350,7 @@ label_BFC1385C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1385Cu); return; } g_debug_last_store_pc = 0xBFC1385Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC13860: 1000000C beq $zero, $zero, 0xBFC13894 */ uint32_t psx_brA_BFC13860 = cpu->gpr[0]; uint32_t psx_brB_BFC13860 = cpu->gpr[0]; - int psx_taken_BFC13860 = (psx_brA_BFC13860 == psx_brB_BFC13860); + psx_taken_BFC13860 = (psx_brA_BFC13860 == psx_brB_BFC13860); /* 0xBFC13864: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC13860) goto label_BFC13894; @@ -60539,7 +62377,7 @@ label_BFC13868: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[11] ? 1 : 0); /* 0xBFC13888: 1420FFE8 bne $at, $zero, 0xBFC1382C */ uint32_t psx_brA_BFC13888 = cpu->gpr[1]; uint32_t psx_brB_BFC13888 = cpu->gpr[0]; - int psx_taken_BFC13888 = (psx_brA_BFC13888 != psx_brB_BFC13888); + psx_taken_BFC13888 = (psx_brA_BFC13888 != psx_brB_BFC13888); /* 0xBFC1388C: 00000000 nop */ /* nop */ if (psx_taken_BFC13888) goto label_BFC1382C; @@ -60579,6 +62417,9 @@ void func_00003DAC(CPUState* cpu) { default: break; } } + int psx_taken_BFC138E4 = 0; + int psx_taken_BFC13900 = 0; + int psx_taken_BFC1393C = 0; label_BFC138AC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -60614,7 +62455,7 @@ label_BFC138AC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC138E0u); return; } g_debug_last_store_pc = 0xBFC138E0u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC138E4: 14200019 bne $at, $zero, 0xBFC1394C */ uint32_t psx_brA_BFC138E4 = cpu->gpr[1]; uint32_t psx_brB_BFC138E4 = cpu->gpr[0]; - int psx_taken_BFC138E4 = (psx_brA_BFC138E4 != psx_brB_BFC138E4); + psx_taken_BFC138E4 = (psx_brA_BFC138E4 != psx_brB_BFC138E4); /* 0xBFC138E8: 00608021 addu $s0, $v1, $zero */ cpu->gpr[16] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC138E4) goto label_BFC1394C; @@ -60640,7 +62481,7 @@ label_BFC138F8: /* nop */ /* 0xBFC13900: 10A0000C beq $a1, $zero, 0xBFC13934 */ uint32_t psx_brA_BFC13900 = cpu->gpr[5]; uint32_t psx_brB_BFC13900 = cpu->gpr[0]; - int psx_taken_BFC13900 = (psx_brA_BFC13900 == psx_brB_BFC13900); + psx_taken_BFC13900 = (psx_brA_BFC13900 == psx_brB_BFC13900); /* 0xBFC13904: 00000000 nop */ /* nop */ if (psx_taken_BFC13900) goto label_BFC13934; @@ -60688,7 +62529,7 @@ label_BFC13934: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[2] ? 1 : 0); /* 0xBFC1393C: 1420FFEE bne $at, $zero, 0xBFC138F8 */ uint32_t psx_brA_BFC1393C = cpu->gpr[1]; uint32_t psx_brB_BFC1393C = cpu->gpr[0]; - int psx_taken_BFC1393C = (psx_brA_BFC1393C != psx_brB_BFC1393C); + psx_taken_BFC1393C = (psx_brA_BFC1393C != psx_brB_BFC1393C); /* 0xBFC13940: 00000000 nop */ /* nop */ if (psx_taken_BFC1393C) goto label_BFC138F8; @@ -60758,6 +62599,8 @@ void func_00003E80(CPUState* cpu) { default: break; } } + int psx_taken_BFC139B4 = 0; + int psx_taken_BFC139E4 = 0; label_BFC13980: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -60796,7 +62639,7 @@ label_BFC139A8: cpu->gpr[15] = cpu->gpr[14] & 0x1000u; /* 0xBFC139B4: 11E00009 beq $t7, $zero, 0xBFC139DC */ uint32_t psx_brA_BFC139B4 = cpu->gpr[15]; uint32_t psx_brB_BFC139B4 = cpu->gpr[0]; - int psx_taken_BFC139B4 = (psx_brA_BFC139B4 == psx_brB_BFC139B4); + psx_taken_BFC139B4 = (psx_brA_BFC139B4 == psx_brB_BFC139B4); /* 0xBFC139B8: 00000000 nop */ /* nop */ if (psx_taken_BFC139B4) goto label_BFC139DC; @@ -60833,7 +62676,7 @@ label_BFC139DC: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[17] ? 1 : 0); /* 0xBFC139E4: 1420FFF0 bne $at, $zero, 0xBFC139A8 */ uint32_t psx_brA_BFC139E4 = cpu->gpr[1]; uint32_t psx_brB_BFC139E4 = cpu->gpr[0]; - int psx_taken_BFC139E4 = (psx_brA_BFC139E4 != psx_brB_BFC139E4); + psx_taken_BFC139E4 = (psx_brA_BFC139E4 != psx_brB_BFC139E4); /* 0xBFC139E8: 00000000 nop */ /* nop */ if (psx_taken_BFC139E4) goto label_BFC139A8; @@ -60867,6 +62710,16 @@ void func_00003F04(CPUState* cpu) { default: break; } } + int psx_taken_BFC13A14 = 0; + int psx_taken_BFC13A28 = 0; + int psx_taken_BFC13A38 = 0; + int psx_taken_BFC13A44 = 0; + int psx_taken_BFC13A70 = 0; + int psx_taken_BFC13A84 = 0; + int psx_taken_BFC13A98 = 0; + int psx_taken_BFC13AA4 = 0; + int psx_taken_BFC13AB8 = 0; + int psx_taken_BFC13ACC = 0; label_BFC13A04: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -60882,7 +62735,7 @@ label_BFC13A04: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13A10u); return; } g_debug_last_store_pc = 0xBFC13A10u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC13A14: 10C0002A beq $a2, $zero, 0xBFC13AC0 */ uint32_t psx_brA_BFC13A14 = cpu->gpr[6]; uint32_t psx_brB_BFC13A14 = cpu->gpr[0]; - int psx_taken_BFC13A14 = (psx_brA_BFC13A14 == psx_brB_BFC13A14); + psx_taken_BFC13A14 = (psx_brA_BFC13A14 == psx_brB_BFC13A14); /* 0xBFC13A18: 00801821 addu $v1, $a0, $zero */ cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC13A14) goto label_BFC13AC0; @@ -60899,7 +62752,7 @@ label_BFC13A1C: cpu->gpr[14] = cpu->gpr[2] & 0x1u; /* 0xBFC13A28: 15C00025 bne $t6, $zero, 0xBFC13AC0 */ uint32_t psx_brA_BFC13A28 = cpu->gpr[14]; uint32_t psx_brB_BFC13A28 = cpu->gpr[0]; - int psx_taken_BFC13A28 = (psx_brA_BFC13A28 != psx_brB_BFC13A28); + psx_taken_BFC13A28 = (psx_brA_BFC13A28 != psx_brB_BFC13A28); /* 0xBFC13A2C: 00000000 nop */ /* nop */ if (psx_taken_BFC13A28) goto label_BFC13AC0; @@ -60914,7 +62767,7 @@ label_BFC13A30: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC13A38: 15E1000B bne $t7, $at, 0xBFC13A68 */ uint32_t psx_brA_BFC13A38 = cpu->gpr[15]; uint32_t psx_brB_BFC13A38 = cpu->gpr[1]; - int psx_taken_BFC13A38 = (psx_brA_BFC13A38 != psx_brB_BFC13A38); + psx_taken_BFC13A38 = (psx_brA_BFC13A38 != psx_brB_BFC13A38); /* 0xBFC13A3C: 00000000 nop */ /* nop */ if (psx_taken_BFC13A38) goto label_BFC13A68; @@ -60927,7 +62780,7 @@ label_BFC13A40: cpu->gpr[24] = cpu->gpr[2] & 0x4u; /* 0xBFC13A44: 13000009 beq $t8, $zero, 0xBFC13A6C */ uint32_t psx_brA_BFC13A44 = cpu->gpr[24]; uint32_t psx_brB_BFC13A44 = cpu->gpr[0]; - int psx_taken_BFC13A44 = (psx_brA_BFC13A44 == psx_brB_BFC13A44); + psx_taken_BFC13A44 = (psx_brA_BFC13A44 == psx_brB_BFC13A44); /* 0xBFC13A48: 30C2007F andi $v0, $a2, 0x7F */ cpu->gpr[2] = cpu->gpr[6] & 0x7Fu; if (psx_taken_BFC13A44) goto label_BFC13A6C; @@ -60972,7 +62825,7 @@ label_BFC13A6C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (19)); /* 0xBFC13A70: 1441000C bne $v0, $at, 0xBFC13AA4 */ uint32_t psx_brA_BFC13A70 = cpu->gpr[2]; uint32_t psx_brB_BFC13A70 = cpu->gpr[1]; - int psx_taken_BFC13A70 = (psx_brA_BFC13A70 != psx_brB_BFC13A70); + psx_taken_BFC13A70 = (psx_brA_BFC13A70 != psx_brB_BFC13A70); /* 0xBFC13A74: 24010011 addiu $at, $zero, 17 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (17)); if (psx_taken_BFC13A70) goto label_BFC13AA4; @@ -60989,7 +62842,7 @@ label_BFC13A78: /* nop */ /* 0xBFC13A84: 17200017 bne $t9, $zero, 0xBFC13AE4 */ uint32_t psx_brA_BFC13A84 = cpu->gpr[25]; uint32_t psx_brB_BFC13A84 = cpu->gpr[0]; - int psx_taken_BFC13A84 = (psx_brA_BFC13A84 != psx_brB_BFC13A84); + psx_taken_BFC13A84 = (psx_brA_BFC13A84 != psx_brB_BFC13A84); /* 0xBFC13A88: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13A88u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC13A84) goto label_BFC13AE4; @@ -61006,7 +62859,7 @@ label_BFC13A8C: cpu->gpr[9] = cpu->gpr[8] | 0x2u; /* 0xBFC13A98: 10000011 beq $zero, $zero, 0xBFC13AE0 */ uint32_t psx_brA_BFC13A98 = cpu->gpr[0]; uint32_t psx_brB_BFC13A98 = cpu->gpr[0]; - int psx_taken_BFC13A98 = (psx_brA_BFC13A98 == psx_brB_BFC13A98); + psx_taken_BFC13A98 = (psx_brA_BFC13A98 == psx_brB_BFC13A98); /* 0xBFC13A9C: AC690000 sw $t1, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13A9Cu); return; } g_debug_last_store_pc = 0xBFC13A9Cu; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC13A98) goto label_BFC13AE0; @@ -61024,7 +62877,7 @@ label_BFC13AA4: psx_check_interrupts(cpu); /* 0xBFC13AA4: 14410006 bne $v0, $at, 0xBFC13AC0 */ uint32_t psx_brA_BFC13AA4 = cpu->gpr[2]; uint32_t psx_brB_BFC13AA4 = cpu->gpr[1]; - int psx_taken_BFC13AA4 = (psx_brA_BFC13AA4 != psx_brB_BFC13AA4); + psx_taken_BFC13AA4 = (psx_brA_BFC13AA4 != psx_brB_BFC13AA4); /* 0xBFC13AA8: 00000000 nop */ /* nop */ if (psx_taken_BFC13AA4) goto label_BFC13AC0; @@ -61041,7 +62894,7 @@ label_BFC13AAC: cpu->gpr[11] = cpu->gpr[10] & cpu->gpr[1]; /* 0xBFC13AB8: 10000009 beq $zero, $zero, 0xBFC13AE0 */ uint32_t psx_brA_BFC13AB8 = cpu->gpr[0]; uint32_t psx_brB_BFC13AB8 = cpu->gpr[0]; - int psx_taken_BFC13AB8 = (psx_brA_BFC13AB8 == psx_brB_BFC13AB8); + psx_taken_BFC13AB8 = (psx_brA_BFC13AB8 == psx_brB_BFC13AB8); /* 0xBFC13ABC: AC6B0000 sw $t3, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13ABCu); return; } g_debug_last_store_pc = 0xBFC13ABCu; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC13AB8) goto label_BFC13AE0; @@ -61058,7 +62911,7 @@ label_BFC13AC0: cpu->gpr[13] = cpu->gpr[12] & 0x2u; /* 0xBFC13ACC: 15A00005 bne $t5, $zero, 0xBFC13AE4 */ uint32_t psx_brA_BFC13ACC = cpu->gpr[13]; uint32_t psx_brB_BFC13ACC = cpu->gpr[0]; - int psx_taken_BFC13ACC = (psx_brA_BFC13ACC != psx_brB_BFC13ACC); + psx_taken_BFC13ACC = (psx_brA_BFC13ACC != psx_brB_BFC13ACC); /* 0xBFC13AD0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13AD0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC13ACC) goto label_BFC13AE4; @@ -61153,6 +63006,8 @@ void func_00004024(CPUState* cpu) { default: break; } } + int psx_taken_BFC13B38 = 0; + int psx_taken_BFC13B40 = 0; label_BFC13B24: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -61176,7 +63031,7 @@ label_BFC13B38: psx_check_interrupts(cpu); /* 0xBFC13B38: 1C400004 bgtz $v0, 0xBFC13B4C */ uint32_t psx_brA_BFC13B38 = cpu->gpr[2]; - int psx_taken_BFC13B38 = ((int32_t)psx_brA_BFC13B38 > 0); + psx_taken_BFC13B38 = ((int32_t)psx_brA_BFC13B38 > 0); /* 0xBFC13B3C: 83A20024 lb $v0, 36($sp) */ cpu->gpr[2] = (uint32_t)(int32_t)(int8_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (36))); if (psx_taken_BFC13B38) goto label_BFC13B4C; @@ -61187,7 +63042,7 @@ label_BFC13B40: psx_check_interrupts(cpu); /* 0xBFC13B40: 10000006 beq $zero, $zero, 0xBFC13B5C */ uint32_t psx_brA_BFC13B40 = cpu->gpr[0]; uint32_t psx_brB_BFC13B40 = cpu->gpr[0]; - int psx_taken_BFC13B40 = (psx_brA_BFC13B40 == psx_brB_BFC13B40); + psx_taken_BFC13B40 = (psx_brA_BFC13B40 == psx_brB_BFC13B40); /* 0xBFC13B44: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC13B40) goto label_BFC13B5C; @@ -61238,6 +63093,14 @@ void func_0000406C(CPUState* cpu) { default: break; } } + int psx_taken_BFC13B7C = 0; + int psx_taken_BFC13B88 = 0; + int psx_taken_BFC13B9C = 0; + int psx_taken_BFC13BBC = 0; + int psx_taken_BFC13BC4 = 0; + int psx_taken_BFC13BD0 = 0; + int psx_taken_BFC13BD8 = 0; + int psx_taken_BFC13BF8 = 0; label_BFC13B6C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -61253,7 +63116,7 @@ label_BFC13B6C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC13B7C: 11C10009 beq $t6, $at, 0xBFC13BA4 */ uint32_t psx_brA_BFC13B7C = cpu->gpr[14]; uint32_t psx_brB_BFC13B7C = cpu->gpr[1]; - int psx_taken_BFC13B7C = (psx_brA_BFC13B7C == psx_brB_BFC13B7C); + psx_taken_BFC13B7C = (psx_brA_BFC13B7C == psx_brB_BFC13B7C); /* 0xBFC13B80: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13B80u); return; } g_debug_last_store_pc = 0xBFC13B80u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC13B7C) goto label_BFC13BA4; @@ -61266,7 +63129,7 @@ label_BFC13B84: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); /* 0xBFC13B88: 15C10016 bne $t6, $at, 0xBFC13BE4 */ uint32_t psx_brA_BFC13B88 = cpu->gpr[14]; uint32_t psx_brB_BFC13B88 = cpu->gpr[1]; - int psx_taken_BFC13B88 = (psx_brA_BFC13B88 != psx_brB_BFC13B88); + psx_taken_BFC13B88 = (psx_brA_BFC13B88 != psx_brB_BFC13B88); /* 0xBFC13B8C: 93B90018 lbu $t9, 24($sp) */ cpu->gpr[25] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (24))); if (psx_taken_BFC13B88) goto label_BFC13BE4; @@ -61289,7 +63152,7 @@ label_BFC13B98: cpu->gpr[1] = 0x00010000u; /* 0xBFC13B9C: 1000001D beq $zero, $zero, 0xBFC13C14 */ uint32_t psx_brA_BFC13B9C = cpu->gpr[0]; uint32_t psx_brB_BFC13B9C = cpu->gpr[0]; - int psx_taken_BFC13B9C = (psx_brA_BFC13B9C == psx_brB_BFC13B9C); + psx_taken_BFC13B9C = (psx_brA_BFC13B9C == psx_brB_BFC13B9C); /* 0xBFC13BA0: AC208910 sw $zero, -30448($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-30448)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13BA0u); return; } g_debug_last_store_pc = 0xBFC13BA0u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC13B9C) goto label_BFC13C14; @@ -61318,7 +63181,7 @@ label_BFC13BAC: /* nop */ /* 0xBFC13BBC: 05E10004 bgez $t7, 0xBFC13BD0 */ uint32_t psx_brA_BFC13BBC = cpu->gpr[15]; - int psx_taken_BFC13BBC = ((int32_t)psx_brA_BFC13BBC >= 0); + psx_taken_BFC13BBC = ((int32_t)psx_brA_BFC13BBC >= 0); /* 0xBFC13BC0: 31F80007 andi $t8, $t7, 0x7 */ cpu->gpr[24] = cpu->gpr[15] & 0x7u; if (psx_taken_BFC13BBC) goto label_BFC13BD0; @@ -61329,7 +63192,7 @@ label_BFC13BC4: psx_check_interrupts(cpu); /* 0xBFC13BC4: 13000002 beq $t8, $zero, 0xBFC13BD0 */ uint32_t psx_brA_BFC13BC4 = cpu->gpr[24]; uint32_t psx_brB_BFC13BC4 = cpu->gpr[0]; - int psx_taken_BFC13BC4 = (psx_brA_BFC13BC4 == psx_brB_BFC13BC4); + psx_taken_BFC13BC4 = (psx_brA_BFC13BC4 == psx_brB_BFC13BC4); /* 0xBFC13BC8: 00000000 nop */ /* nop */ if (psx_taken_BFC13BC4) goto label_BFC13BD0; @@ -61347,7 +63210,7 @@ label_BFC13BD0: psx_check_interrupts(cpu); /* 0xBFC13BD0: 1700FFF4 bne $t8, $zero, 0xBFC13BA4 */ uint32_t psx_brA_BFC13BD0 = cpu->gpr[24]; uint32_t psx_brB_BFC13BD0 = cpu->gpr[0]; - int psx_taken_BFC13BD0 = (psx_brA_BFC13BD0 != psx_brB_BFC13BD0); + psx_taken_BFC13BD0 = (psx_brA_BFC13BD0 != psx_brB_BFC13BD0); /* 0xBFC13BD4: 00000000 nop */ /* nop */ if (psx_taken_BFC13BD0) goto label_BFC13BA4; @@ -61358,7 +63221,7 @@ label_BFC13BD8: psx_check_interrupts(cpu); /* 0xBFC13BD8: 10000013 beq $zero, $zero, 0xBFC13C28 */ uint32_t psx_brA_BFC13BD8 = cpu->gpr[0]; uint32_t psx_brB_BFC13BD8 = cpu->gpr[0]; - int psx_taken_BFC13BD8 = (psx_brA_BFC13BD8 == psx_brB_BFC13BD8); + psx_taken_BFC13BD8 = (psx_brA_BFC13BD8 == psx_brB_BFC13BD8); /* 0xBFC13BDC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13BDCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC13BD8) goto label_BFC13C28; @@ -61386,7 +63249,7 @@ label_BFC13BE4: cpu->gpr[9] = cpu->gpr[8] & 0x97u; /* 0xBFC13BF8: 11200007 beq $t1, $zero, 0xBFC13C18 */ uint32_t psx_brA_BFC13BF8 = cpu->gpr[9]; uint32_t psx_brB_BFC13BF8 = cpu->gpr[0]; - int psx_taken_BFC13BF8 = (psx_brA_BFC13BF8 == psx_brB_BFC13BF8); + psx_taken_BFC13BF8 = (psx_brA_BFC13BF8 == psx_brB_BFC13BF8); /* 0xBFC13BFC: 24040001 addiu $a0, $zero, 1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC13BF8) goto label_BFC13C18; @@ -61510,6 +63373,23 @@ void func_00004164(CPUState* cpu) { default: break; } } + int psx_taken_BFC13CC4 = 0; + int psx_taken_BFC13CCC = 0; + int psx_taken_BFC13CD4 = 0; + int psx_taken_BFC13CDC = 0; + int psx_taken_BFC13CE4 = 0; + int psx_taken_BFC13CEC = 0; + int psx_taken_BFC13CF4 = 0; + int psx_taken_BFC13D0C = 0; + int psx_taken_BFC13D20 = 0; + int psx_taken_BFC13D30 = 0; + int psx_taken_BFC13D44 = 0; + int psx_taken_BFC13D50 = 0; + int psx_taken_BFC13D74 = 0; + int psx_taken_BFC13D98 = 0; + int psx_taken_BFC13DA8 = 0; + int psx_taken_BFC13DBC = 0; + int psx_taken_BFC13DCC = 0; label_BFC13C64: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(19u); @@ -61576,7 +63456,7 @@ label_BFC13CB8: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] >> 24u); /* 0xBFC13CC4: 10730021 beq $v1, $s3, 0xBFC13D4C */ uint32_t psx_brA_BFC13CC4 = cpu->gpr[3]; uint32_t psx_brB_BFC13CC4 = cpu->gpr[19]; - int psx_taken_BFC13CC4 = (psx_brA_BFC13CC4 == psx_brB_BFC13CC4); + psx_taken_BFC13CC4 = (psx_brA_BFC13CC4 == psx_brB_BFC13CC4); /* 0xBFC13CC8: 00042603 sra $a0, $a0, 24 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] >> 24u); if (psx_taken_BFC13CC4) goto label_BFC13D4C; @@ -61587,7 +63467,7 @@ label_BFC13CCC: psx_check_interrupts(cpu); /* 0xBFC13CCC: 1074002B beq $v1, $s4, 0xBFC13D7C */ uint32_t psx_brA_BFC13CCC = cpu->gpr[3]; uint32_t psx_brB_BFC13CCC = cpu->gpr[20]; - int psx_taken_BFC13CCC = (psx_brA_BFC13CCC == psx_brB_BFC13CCC); + psx_taken_BFC13CCC = (psx_brA_BFC13CCC == psx_brB_BFC13CCC); /* 0xBFC13CD0: 00000000 nop */ /* nop */ if (psx_taken_BFC13CCC) goto label_BFC13D7C; @@ -61598,7 +63478,7 @@ label_BFC13CD4: psx_check_interrupts(cpu); /* 0xBFC13CD4: 10750018 beq $v1, $s5, 0xBFC13D38 */ uint32_t psx_brA_BFC13CD4 = cpu->gpr[3]; uint32_t psx_brB_BFC13CD4 = cpu->gpr[21]; - int psx_taken_BFC13CD4 = (psx_brA_BFC13CD4 == psx_brB_BFC13CD4); + psx_taken_BFC13CD4 = (psx_brA_BFC13CD4 == psx_brB_BFC13CD4); /* 0xBFC13CD8: 00000000 nop */ /* nop */ if (psx_taken_BFC13CD4) goto label_BFC13D38; @@ -61609,7 +63489,7 @@ label_BFC13CDC: psx_check_interrupts(cpu); /* 0xBFC13CDC: 10760016 beq $v1, $s6, 0xBFC13D38 */ uint32_t psx_brA_BFC13CDC = cpu->gpr[3]; uint32_t psx_brB_BFC13CDC = cpu->gpr[22]; - int psx_taken_BFC13CDC = (psx_brA_BFC13CDC == psx_brB_BFC13CDC); + psx_taken_BFC13CDC = (psx_brA_BFC13CDC == psx_brB_BFC13CDC); /* 0xBFC13CE0: 00000000 nop */ /* nop */ if (psx_taken_BFC13CDC) goto label_BFC13D38; @@ -61620,7 +63500,7 @@ label_BFC13CE4: psx_check_interrupts(cpu); /* 0xBFC13CE4: 10770005 beq $v1, $s7, 0xBFC13CFC */ uint32_t psx_brA_BFC13CE4 = cpu->gpr[3]; uint32_t psx_brB_BFC13CE4 = cpu->gpr[23]; - int psx_taken_BFC13CE4 = (psx_brA_BFC13CE4 == psx_brB_BFC13CE4); + psx_taken_BFC13CE4 = (psx_brA_BFC13CE4 == psx_brB_BFC13CE4); /* 0xBFC13CE8: 00000000 nop */ /* nop */ if (psx_taken_BFC13CE4) goto label_BFC13CFC; @@ -61631,7 +63511,7 @@ label_BFC13CEC: psx_check_interrupts(cpu); /* 0xBFC13CEC: 107E0018 beq $v1, $fp, 0xBFC13D50 */ uint32_t psx_brA_BFC13CEC = cpu->gpr[3]; uint32_t psx_brB_BFC13CEC = cpu->gpr[30]; - int psx_taken_BFC13CEC = (psx_brA_BFC13CEC == psx_brB_BFC13CEC); + psx_taken_BFC13CEC = (psx_brA_BFC13CEC == psx_brB_BFC13CEC); /* 0xBFC13CF0: 0251082B sltu $at, $s2, $s1 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[18] < cpu->gpr[17] ? 1 : 0); if (psx_taken_BFC13CEC) goto label_BFC13D50; @@ -61642,7 +63522,7 @@ label_BFC13CF4: psx_check_interrupts(cpu); /* 0xBFC13CF4: 10000023 beq $zero, $zero, 0xBFC13D84 */ uint32_t psx_brA_BFC13CF4 = cpu->gpr[0]; uint32_t psx_brB_BFC13CF4 = cpu->gpr[0]; - int psx_taken_BFC13CF4 = (psx_brA_BFC13CF4 == psx_brB_BFC13CF4); + psx_taken_BFC13CF4 = (psx_brA_BFC13CF4 == psx_brB_BFC13CF4); /* 0xBFC13CF8: 308E00FF andi $t6, $a0, 0xFF */ cpu->gpr[14] = cpu->gpr[4] & 0xFFu; if (psx_taken_BFC13CF4) goto label_BFC13D84; @@ -61667,7 +63547,7 @@ label_BFC13D04: cpu->gpr[1] = (uint32_t)(cpu->gpr[17] < cpu->gpr[16] ? 1 : 0); /* 0xBFC13D0C: 10200006 beq $at, $zero, 0xBFC13D28 */ uint32_t psx_brA_BFC13D0C = cpu->gpr[1]; uint32_t psx_brB_BFC13D0C = cpu->gpr[0]; - int psx_taken_BFC13D0C = (psx_brA_BFC13D0C == psx_brB_BFC13D0C); + psx_taken_BFC13D0C = (psx_brA_BFC13D0C == psx_brB_BFC13D0C); /* 0xBFC13D10: 00042603 sra $a0, $a0, 24 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] >> 24u); if (psx_taken_BFC13D0C) goto label_BFC13D28; @@ -61690,7 +63570,7 @@ label_BFC13D20: psx_check_interrupts(cpu); /* 0xBFC13D20: 1000FFE3 beq $zero, $zero, 0xBFC13CB0 */ uint32_t psx_brA_BFC13D20 = cpu->gpr[0]; uint32_t psx_brB_BFC13D20 = cpu->gpr[0]; - int psx_taken_BFC13D20 = (psx_brA_BFC13D20 == psx_brB_BFC13D20); + psx_taken_BFC13D20 = (psx_brA_BFC13D20 == psx_brB_BFC13D20); /* 0xBFC13D24: 00000000 nop */ /* nop */ if (psx_taken_BFC13D20) goto label_BFC13CB0; @@ -61711,7 +63591,7 @@ label_BFC13D30: psx_check_interrupts(cpu); /* 0xBFC13D30: 1000FFDF beq $zero, $zero, 0xBFC13CB0 */ uint32_t psx_brA_BFC13D30 = cpu->gpr[0]; uint32_t psx_brB_BFC13D30 = cpu->gpr[0]; - int psx_taken_BFC13D30 = (psx_brA_BFC13D30 == psx_brB_BFC13D30); + psx_taken_BFC13D30 = (psx_brA_BFC13D30 == psx_brB_BFC13D30); /* 0xBFC13D34: 00000000 nop */ /* nop */ if (psx_taken_BFC13D30) goto label_BFC13CB0; @@ -61734,7 +63614,7 @@ label_BFC13D40: g_debug_last_store_pc = 0xBFC13D40u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[17] + (0)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC13D44: 10000023 beq $zero, $zero, 0xBFC13DD4 */ uint32_t psx_brA_BFC13D44 = cpu->gpr[0]; uint32_t psx_brB_BFC13D44 = cpu->gpr[0]; - int psx_taken_BFC13D44 = (psx_brA_BFC13D44 == psx_brB_BFC13D44); + psx_taken_BFC13D44 = (psx_brA_BFC13D44 == psx_brB_BFC13D44); /* 0xBFC13D48: 02401021 addu $v0, $s2, $zero */ cpu->gpr[2] = cpu->gpr[18] + cpu->gpr[0]; if (psx_taken_BFC13D44) goto label_BFC13DD4; @@ -61752,7 +63632,7 @@ label_BFC13D50: psx_check_interrupts(cpu); /* 0xBFC13D50: 1020FFD7 beq $at, $zero, 0xBFC13CB0 */ uint32_t psx_brA_BFC13D50 = cpu->gpr[1]; uint32_t psx_brB_BFC13D50 = cpu->gpr[0]; - int psx_taken_BFC13D50 = (psx_brA_BFC13D50 == psx_brB_BFC13D50); + psx_taken_BFC13D50 = (psx_brA_BFC13D50 == psx_brB_BFC13D50); /* 0xBFC13D54: 00000000 nop */ /* nop */ if (psx_taken_BFC13D50) goto label_BFC13CB0; @@ -61795,7 +63675,7 @@ label_BFC13D74: psx_check_interrupts(cpu); /* 0xBFC13D74: 1000FFCE beq $zero, $zero, 0xBFC13CB0 */ uint32_t psx_brA_BFC13D74 = cpu->gpr[0]; uint32_t psx_brB_BFC13D74 = cpu->gpr[0]; - int psx_taken_BFC13D74 = (psx_brA_BFC13D74 == psx_brB_BFC13D74); + psx_taken_BFC13D74 = (psx_brA_BFC13D74 == psx_brB_BFC13D74); /* 0xBFC13D78: 00000000 nop */ /* nop */ if (psx_taken_BFC13D74) goto label_BFC13CB0; @@ -61825,7 +63705,7 @@ label_BFC13D84: cpu->gpr[24] = cpu->gpr[15] & 0x97u; /* 0xBFC13D98: 1300000A beq $t8, $zero, 0xBFC13DC4 */ uint32_t psx_brA_BFC13D98 = cpu->gpr[24]; uint32_t psx_brB_BFC13D98 = cpu->gpr[0]; - int psx_taken_BFC13D98 = (psx_brA_BFC13D98 == psx_brB_BFC13D98); + psx_taken_BFC13D98 = (psx_brA_BFC13D98 == psx_brB_BFC13D98); /* 0xBFC13D9C: 00000000 nop */ /* nop */ if (psx_taken_BFC13D98) goto label_BFC13DC4; @@ -61840,7 +63720,7 @@ label_BFC13DA0: cpu->gpr[1] = (uint32_t)(cpu->gpr[17] < cpu->gpr[25] ? 1 : 0); /* 0xBFC13DA8: 10200006 beq $at, $zero, 0xBFC13DC4 */ uint32_t psx_brA_BFC13DA8 = cpu->gpr[1]; uint32_t psx_brB_BFC13DA8 = cpu->gpr[0]; - int psx_taken_BFC13DA8 = (psx_brA_BFC13DA8 == psx_brB_BFC13DA8); + psx_taken_BFC13DA8 = (psx_brA_BFC13DA8 == psx_brB_BFC13DA8); /* 0xBFC13DAC: 00000000 nop */ /* nop */ if (psx_taken_BFC13DA8) goto label_BFC13DC4; @@ -61863,7 +63743,7 @@ label_BFC13DBC: psx_check_interrupts(cpu); /* 0xBFC13DBC: 1000FFBC beq $zero, $zero, 0xBFC13CB0 */ uint32_t psx_brA_BFC13DBC = cpu->gpr[0]; uint32_t psx_brB_BFC13DBC = cpu->gpr[0]; - int psx_taken_BFC13DBC = (psx_brA_BFC13DBC == psx_brB_BFC13DBC); + psx_taken_BFC13DBC = (psx_brA_BFC13DBC == psx_brB_BFC13DBC); /* 0xBFC13DC0: 00000000 nop */ /* nop */ if (psx_taken_BFC13DBC) goto label_BFC13CB0; @@ -61884,7 +63764,7 @@ label_BFC13DCC: psx_check_interrupts(cpu); /* 0xBFC13DCC: 1000FFB8 beq $zero, $zero, 0xBFC13CB0 */ uint32_t psx_brA_BFC13DCC = cpu->gpr[0]; uint32_t psx_brB_BFC13DCC = cpu->gpr[0]; - int psx_taken_BFC13DCC = (psx_brA_BFC13DCC == psx_brB_BFC13DCC); + psx_taken_BFC13DCC = (psx_brA_BFC13DCC == psx_brB_BFC13DCC); /* 0xBFC13DD0: 00000000 nop */ /* nop */ if (psx_taken_BFC13DCC) goto label_BFC13CB0; @@ -61929,6 +63809,9 @@ void func_00004304(CPUState* cpu) { default: break; } } + int psx_taken_BFC13E14 = 0; + int psx_taken_BFC13E2C = 0; + int psx_taken_BFC13E44 = 0; label_BFC13E04: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -61944,7 +63827,7 @@ label_BFC13E04: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13E10u); return; } g_debug_last_store_pc = 0xBFC13E10u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC13E14: 16200003 bne $s1, $zero, 0xBFC13E24 */ uint32_t psx_brA_BFC13E14 = cpu->gpr[17]; uint32_t psx_brB_BFC13E14 = cpu->gpr[0]; - int psx_taken_BFC13E14 = (psx_brA_BFC13E14 != psx_brB_BFC13E14); + psx_taken_BFC13E14 = (psx_brA_BFC13E14 != psx_brB_BFC13E14); /* 0xBFC13E18: AFB00014 sw $s0, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13E18u); return; } g_debug_last_store_pc = 0xBFC13E18u; cpu->write_word(psx_addr, cpu->gpr[16]); } if (psx_taken_BFC13E14) goto label_BFC13E24; @@ -61968,7 +63851,7 @@ label_BFC13E24: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC13E2C: 12000008 beq $s0, $zero, 0xBFC13E50 */ uint32_t psx_brA_BFC13E2C = cpu->gpr[16]; uint32_t psx_brB_BFC13E2C = cpu->gpr[0]; - int psx_taken_BFC13E2C = (psx_brA_BFC13E2C == psx_brB_BFC13E2C); + psx_taken_BFC13E2C = (psx_brA_BFC13E2C == psx_brB_BFC13E2C); /* 0xBFC13E30: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13E30u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC13E2C) goto label_BFC13E50; @@ -61993,7 +63876,7 @@ label_BFC13E3C: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC13E44: 1600FFFB bne $s0, $zero, 0xBFC13E34 */ uint32_t psx_brA_BFC13E44 = cpu->gpr[16]; uint32_t psx_brB_BFC13E44 = cpu->gpr[0]; - int psx_taken_BFC13E44 = (psx_brA_BFC13E44 != psx_brB_BFC13E44); + psx_taken_BFC13E44 = (psx_brA_BFC13E44 != psx_brB_BFC13E44); /* 0xBFC13E48: 00000000 nop */ /* nop */ if (psx_taken_BFC13E44) goto label_BFC13E34; @@ -62180,6 +64063,8 @@ label_BFC13F40: void func_0000445C(CPUState* cpu) { debug_server_log_call_entry(0x0000445Cu); + int psx_taken_BFC13F70 = 0; + int psx_taken_BFC13F88 = 0; label_BFC13F5C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -62197,7 +64082,7 @@ label_BFC13F5C: cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[14] + (-1)); /* 0xBFC13F70: 10400007 beq $v0, $zero, 0xBFC13F90 */ uint32_t psx_brA_BFC13F70 = cpu->gpr[2]; uint32_t psx_brB_BFC13F70 = cpu->gpr[0]; - int psx_taken_BFC13F70 = (psx_brA_BFC13F70 == psx_brB_BFC13F70); + psx_taken_BFC13F70 = (psx_brA_BFC13F70 == psx_brB_BFC13F70); /* 0xBFC13F74: AFAF0000 sw $t7, 0($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13F74u); return; } g_debug_last_store_pc = 0xBFC13F74u; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC13F70) goto label_BFC13F90; @@ -62216,7 +64101,7 @@ label_BFC13F78: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[24] + (-1)); /* 0xBFC13F88: 1440FFFB bne $v0, $zero, 0xBFC13F78 */ uint32_t psx_brA_BFC13F88 = cpu->gpr[2]; uint32_t psx_brB_BFC13F88 = cpu->gpr[0]; - int psx_taken_BFC13F88 = (psx_brA_BFC13F88 != psx_brB_BFC13F88); + psx_taken_BFC13F88 = (psx_brA_BFC13F88 != psx_brB_BFC13F88); /* 0xBFC13F8C: AFB90000 sw $t9, 0($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC13F8Cu); return; } g_debug_last_store_pc = 0xBFC13F8Cu; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC13F88) goto label_BFC13F78; @@ -62248,6 +64133,47 @@ void func_00004498(CPUState* cpu) { default: break; } } + int psx_taken_BFC13FD8 = 0; + int psx_taken_BFC13FE0 = 0; + int psx_taken_BFC1401C = 0; + int psx_taken_BFC14024 = 0; + int psx_taken_BFC14064 = 0; + int psx_taken_BFC14078 = 0; + int psx_taken_BFC140BC = 0; + int psx_taken_BFC140D0 = 0; + int psx_taken_BFC140F0 = 0; + int psx_taken_BFC1410C = 0; + int psx_taken_BFC14120 = 0; + int psx_taken_BFC1415C = 0; + int psx_taken_BFC14170 = 0; + int psx_taken_BFC1419C = 0; + int psx_taken_BFC141B4 = 0; + int psx_taken_BFC141D0 = 0; + int psx_taken_BFC141E4 = 0; + int psx_taken_BFC14220 = 0; + int psx_taken_BFC14234 = 0; + int psx_taken_BFC1424C = 0; + int psx_taken_BFC14254 = 0; + int psx_taken_BFC14268 = 0; + int psx_taken_BFC14284 = 0; + int psx_taken_BFC14298 = 0; + int psx_taken_BFC142AC = 0; + int psx_taken_BFC142EC = 0; + int psx_taken_BFC14300 = 0; + int psx_taken_BFC14314 = 0; + int psx_taken_BFC14328 = 0; + int psx_taken_BFC14334 = 0; + int psx_taken_BFC14348 = 0; + int psx_taken_BFC14370 = 0; + int psx_taken_BFC1438C = 0; + int psx_taken_BFC143A0 = 0; + int psx_taken_BFC143B4 = 0; + int psx_taken_BFC143F4 = 0; + int psx_taken_BFC14408 = 0; + int psx_taken_BFC1442C = 0; + int psx_taken_BFC14448 = 0; + int psx_taken_BFC1446C = 0; + int psx_taken_BFC14478 = 0; label_BFC13F98: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(18u); @@ -62287,7 +64213,7 @@ label_BFC13F98: cpu->gpr[21] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC13FD8: 14800003 bne $a0, $zero, 0xBFC13FE8 */ uint32_t psx_brA_BFC13FD8 = cpu->gpr[4]; uint32_t psx_brB_BFC13FD8 = cpu->gpr[0]; - int psx_taken_BFC13FD8 = (psx_brA_BFC13FD8 != psx_brB_BFC13FD8); + psx_taken_BFC13FD8 = (psx_brA_BFC13FD8 != psx_brB_BFC13FD8); /* 0xBFC13FDC: A3380000 sb $t8, 0($t9) */ g_debug_last_store_pc = 0xBFC13FDCu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[25] + (0)), (uint8_t)(cpu->gpr[24] & 0xFFu)); if (psx_taken_BFC13FD8) goto label_BFC13FE8; @@ -62298,7 +64224,7 @@ label_BFC13FE0: psx_check_interrupts(cpu); /* 0xBFC13FE0: 10000002 beq $zero, $zero, 0xBFC13FEC */ uint32_t psx_brA_BFC13FE0 = cpu->gpr[0]; uint32_t psx_brB_BFC13FE0 = cpu->gpr[0]; - int psx_taken_BFC13FE0 = (psx_brA_BFC13FE0 == psx_brB_BFC13FE0); + psx_taken_BFC13FE0 = (psx_brA_BFC13FE0 == psx_brB_BFC13FE0); /* 0xBFC13FE4: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC13FE0) goto label_BFC13FEC; @@ -62340,7 +64266,7 @@ label_BFC13FEC: cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (1)); /* 0xBFC1401C: 11600004 beq $t3, $zero, 0xBFC14030 */ uint32_t psx_brA_BFC1401C = cpu->gpr[11]; uint32_t psx_brB_BFC1401C = cpu->gpr[0]; - int psx_taken_BFC1401C = (psx_brA_BFC1401C == psx_brB_BFC1401C); + psx_taken_BFC1401C = (psx_brA_BFC1401C == psx_brB_BFC1401C); /* 0xBFC14020: 00000000 nop */ /* nop */ if (psx_taken_BFC1401C) goto label_BFC14030; @@ -62351,7 +64277,7 @@ label_BFC14024: psx_check_interrupts(cpu); /* 0xBFC14024: 12400002 beq $s2, $zero, 0xBFC14030 */ uint32_t psx_brA_BFC14024 = cpu->gpr[18]; uint32_t psx_brB_BFC14024 = cpu->gpr[0]; - int psx_taken_BFC14024 = (psx_brA_BFC14024 == psx_brB_BFC14024); + psx_taken_BFC14024 = (psx_brA_BFC14024 == psx_brB_BFC14024); /* 0xBFC14028: 00000000 nop */ /* nop */ if (psx_taken_BFC14024) goto label_BFC14030; @@ -62401,7 +64327,7 @@ label_BFC14048: cpu->gpr[14] = cpu->gpr[13] & 0x1u; /* 0xBFC14064: 15C00007 bne $t6, $zero, 0xBFC14084 */ uint32_t psx_brA_BFC14064 = cpu->gpr[14]; uint32_t psx_brB_BFC14064 = cpu->gpr[0]; - int psx_taken_BFC14064 = (psx_brA_BFC14064 != psx_brB_BFC14064); + psx_taken_BFC14064 = (psx_brA_BFC14064 != psx_brB_BFC14064); /* 0xBFC14068: 24190001 addiu $t9, $zero, 1 */ cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC14064) goto label_BFC14084; @@ -62418,7 +64344,7 @@ label_BFC1406C: cpu->gpr[24] = cpu->gpr[15] & 0x1u; /* 0xBFC14078: 1300FFFC beq $t8, $zero, 0xBFC1406C */ uint32_t psx_brA_BFC14078 = cpu->gpr[24]; uint32_t psx_brB_BFC14078 = cpu->gpr[0]; - int psx_taken_BFC14078 = (psx_brA_BFC14078 == psx_brB_BFC14078); + psx_taken_BFC14078 = (psx_brA_BFC14078 == psx_brB_BFC14078); /* 0xBFC1407C: 00000000 nop */ /* nop */ if (psx_taken_BFC14078) goto label_BFC1406C; @@ -62470,7 +64396,7 @@ label_BFC14090: cpu->gpr[11] = cpu->gpr[10] & 0x2u; /* 0xBFC140BC: 15600006 bne $t3, $zero, 0xBFC140D8 */ uint32_t psx_brA_BFC140BC = cpu->gpr[11]; uint32_t psx_brB_BFC140BC = cpu->gpr[0]; - int psx_taken_BFC140BC = (psx_brA_BFC140BC != psx_brB_BFC140BC); + psx_taken_BFC140BC = (psx_brA_BFC140BC != psx_brB_BFC140BC); /* 0xBFC140C0: 00000000 nop */ /* nop */ if (psx_taken_BFC140BC) goto label_BFC140D8; @@ -62487,7 +64413,7 @@ label_BFC140C4: cpu->gpr[13] = cpu->gpr[12] & 0x2u; /* 0xBFC140D0: 11A0FFFC beq $t5, $zero, 0xBFC140C4 */ uint32_t psx_brA_BFC140D0 = cpu->gpr[13]; uint32_t psx_brB_BFC140D0 = cpu->gpr[0]; - int psx_taken_BFC140D0 = (psx_brA_BFC140D0 == psx_brB_BFC140D0); + psx_taken_BFC140D0 = (psx_brA_BFC140D0 == psx_brB_BFC140D0); /* 0xBFC140D4: 00000000 nop */ /* nop */ if (psx_taken_BFC140D0) goto label_BFC140C4; @@ -62516,7 +64442,7 @@ label_BFC140E4: cpu->gpr[15] = cpu->gpr[14] & 0x80u; /* 0xBFC140F0: 15E0000E bne $t7, $zero, 0xBFC1412C */ uint32_t psx_brA_BFC140F0 = cpu->gpr[15]; uint32_t psx_brB_BFC140F0 = cpu->gpr[0]; - int psx_taken_BFC140F0 = (psx_brA_BFC140F0 != psx_brB_BFC140F0); + psx_taken_BFC140F0 = (psx_brA_BFC140F0 != psx_brB_BFC140F0); /* 0xBFC140F4: 240A0042 addiu $t2, $zero, 66 */ cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[0] + (66)); if (psx_taken_BFC140F0) goto label_BFC1412C; @@ -62542,7 +64468,7 @@ label_BFC140FC: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[24] + (1)); /* 0xBFC1410C: 144000D0 bne $v0, $zero, 0xBFC14450 */ uint32_t psx_brA_BFC1410C = cpu->gpr[2]; uint32_t psx_brB_BFC1410C = cpu->gpr[0]; - int psx_taken_BFC1410C = (psx_brA_BFC1410C != psx_brB_BFC1410C); + psx_taken_BFC1410C = (psx_brA_BFC1410C != psx_brB_BFC1410C); /* 0xBFC14110: AFB90048 sw $t9, 72($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14110u); return; } g_debug_last_store_pc = 0xBFC14110u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC1410C) goto label_BFC14450; @@ -62559,7 +64485,7 @@ label_BFC14114: cpu->gpr[9] = cpu->gpr[8] & 0x80u; /* 0xBFC14120: 1120FFF6 beq $t1, $zero, 0xBFC140FC */ uint32_t psx_brA_BFC14120 = cpu->gpr[9]; uint32_t psx_brB_BFC14120 = cpu->gpr[0]; - int psx_taken_BFC14120 = (psx_brA_BFC14120 == psx_brB_BFC14120); + psx_taken_BFC14120 = (psx_brA_BFC14120 == psx_brB_BFC14120); /* 0xBFC14124: 8FA20048 lw $v0, 72($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14124u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC14120) goto label_BFC140FC; @@ -62607,7 +64533,7 @@ label_BFC14138: cpu->gpr[14] = cpu->gpr[13] & 0x2u; /* 0xBFC1415C: 15C00006 bne $t6, $zero, 0xBFC14178 */ uint32_t psx_brA_BFC1415C = cpu->gpr[14]; uint32_t psx_brB_BFC1415C = cpu->gpr[0]; - int psx_taken_BFC1415C = (psx_brA_BFC1415C != psx_brB_BFC1415C); + psx_taken_BFC1415C = (psx_brA_BFC1415C != psx_brB_BFC1415C); /* 0xBFC14160: 00000000 nop */ /* nop */ if (psx_taken_BFC1415C) goto label_BFC14178; @@ -62624,7 +64550,7 @@ label_BFC14164: cpu->gpr[24] = cpu->gpr[15] & 0x2u; /* 0xBFC14170: 1300FFFC beq $t8, $zero, 0xBFC14164 */ uint32_t psx_brA_BFC14170 = cpu->gpr[24]; uint32_t psx_brB_BFC14170 = cpu->gpr[0]; - int psx_taken_BFC14170 = (psx_brA_BFC14170 == psx_brB_BFC14170); + psx_taken_BFC14170 = (psx_brA_BFC14170 == psx_brB_BFC14170); /* 0xBFC14174: 00000000 nop */ /* nop */ if (psx_taken_BFC14170) goto label_BFC14164; @@ -62653,7 +64579,7 @@ label_BFC14178: g_debug_last_store_pc = 0xBFC14198u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[19] + (-1)), (uint8_t)(cpu->gpr[2] & 0xFFu)); /* 0xBFC1419C: 15000002 bne $t0, $zero, 0xBFC141A8 */ uint32_t psx_brA_BFC1419C = cpu->gpr[8]; uint32_t psx_brB_BFC1419C = cpu->gpr[0]; - int psx_taken_BFC1419C = (psx_brA_BFC1419C != psx_brB_BFC1419C); + psx_taken_BFC1419C = (psx_brA_BFC1419C != psx_brB_BFC1419C); /* 0xBFC141A0: 00052E03 sra $a1, $a1, 24 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] >> 24u); if (psx_taken_BFC1419C) goto label_BFC141A8; @@ -62677,7 +64603,7 @@ label_BFC141A8: cpu->gpr[10] = cpu->gpr[9] & 0x80u; /* 0xBFC141B4: 1540000D bne $t2, $zero, 0xBFC141EC */ uint32_t psx_brA_BFC141B4 = cpu->gpr[10]; uint32_t psx_brB_BFC141B4 = cpu->gpr[0]; - int psx_taken_BFC141B4 = (psx_brA_BFC141B4 != psx_brB_BFC141B4); + psx_taken_BFC141B4 = (psx_brA_BFC141B4 != psx_brB_BFC141B4); /* 0xBFC141B8: 00000000 nop */ /* nop */ if (psx_taken_BFC141B4) goto label_BFC141EC; @@ -62703,7 +64629,7 @@ label_BFC141C0: cpu->gpr[12] = (uint32_t)((int32_t)cpu->gpr[11] + (1)); /* 0xBFC141D0: 1440009F bne $v0, $zero, 0xBFC14450 */ uint32_t psx_brA_BFC141D0 = cpu->gpr[2]; uint32_t psx_brB_BFC141D0 = cpu->gpr[0]; - int psx_taken_BFC141D0 = (psx_brA_BFC141D0 != psx_brB_BFC141D0); + psx_taken_BFC141D0 = (psx_brA_BFC141D0 != psx_brB_BFC141D0); /* 0xBFC141D4: AFAC0048 sw $t4, 72($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC141D4u); return; } g_debug_last_store_pc = 0xBFC141D4u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC141D0) goto label_BFC14450; @@ -62720,7 +64646,7 @@ label_BFC141D8: cpu->gpr[14] = cpu->gpr[13] & 0x80u; /* 0xBFC141E4: 11C0FFF6 beq $t6, $zero, 0xBFC141C0 */ uint32_t psx_brA_BFC141E4 = cpu->gpr[14]; uint32_t psx_brB_BFC141E4 = cpu->gpr[0]; - int psx_taken_BFC141E4 = (psx_brA_BFC141E4 == psx_brB_BFC141E4); + psx_taken_BFC141E4 = (psx_brA_BFC141E4 == psx_brB_BFC141E4); /* 0xBFC141E8: 8FA20048 lw $v0, 72($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC141E8u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC141E4) goto label_BFC141C0; @@ -62763,7 +64689,7 @@ label_BFC141FC: cpu->gpr[8] = cpu->gpr[25] & 0x2u; /* 0xBFC14220: 15000006 bne $t0, $zero, 0xBFC1423C */ uint32_t psx_brA_BFC14220 = cpu->gpr[8]; uint32_t psx_brB_BFC14220 = cpu->gpr[0]; - int psx_taken_BFC14220 = (psx_brA_BFC14220 != psx_brB_BFC14220); + psx_taken_BFC14220 = (psx_brA_BFC14220 != psx_brB_BFC14220); /* 0xBFC14224: 00000000 nop */ /* nop */ if (psx_taken_BFC14220) goto label_BFC1423C; @@ -62780,7 +64706,7 @@ label_BFC14228: cpu->gpr[10] = cpu->gpr[9] & 0x2u; /* 0xBFC14234: 1140FFFC beq $t2, $zero, 0xBFC14228 */ uint32_t psx_brA_BFC14234 = cpu->gpr[10]; uint32_t psx_brB_BFC14234 = cpu->gpr[0]; - int psx_taken_BFC14234 = (psx_brA_BFC14234 == psx_brB_BFC14234); + psx_taken_BFC14234 = (psx_brA_BFC14234 == psx_brB_BFC14234); /* 0xBFC14238: 00000000 nop */ /* nop */ if (psx_taken_BFC14234) goto label_BFC14228; @@ -62799,7 +64725,7 @@ label_BFC1423C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] >> 24u); /* 0xBFC1424C: 14410081 bne $v0, $at, 0xBFC14454 */ uint32_t psx_brA_BFC1424C = cpu->gpr[2]; uint32_t psx_brB_BFC1424C = cpu->gpr[1]; - int psx_taken_BFC1424C = (psx_brA_BFC1424C != psx_brB_BFC1424C); + psx_taken_BFC1424C = (psx_brA_BFC1424C != psx_brB_BFC1424C); /* 0xBFC14250: 8FAE0040 lw $t6, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14250u); return; } cpu->gpr[14] = cpu->read_word(psx_addr); } if (psx_taken_BFC1424C) goto label_BFC14454; @@ -62810,7 +64736,7 @@ label_BFC14254: psx_check_interrupts(cpu); /* 0xBFC14254: 18A00078 blez $a1, 0xBFC14438 */ uint32_t psx_brA_BFC14254 = cpu->gpr[5]; - int psx_taken_BFC14254 = ((int32_t)psx_brA_BFC14254 <= 0); + psx_taken_BFC14254 = ((int32_t)psx_brA_BFC14254 <= 0); /* 0xBFC14258: 8FAB0040 lw $t3, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14258u); return; } cpu->gpr[11] = cpu->read_word(psx_addr); } if (psx_taken_BFC14254) goto label_BFC14438; @@ -62827,7 +64753,7 @@ label_BFC1425C: cpu->gpr[12] = cpu->gpr[11] & 0x80u; /* 0xBFC14268: 1580000D bne $t4, $zero, 0xBFC142A0 */ uint32_t psx_brA_BFC14268 = cpu->gpr[12]; uint32_t psx_brB_BFC14268 = cpu->gpr[0]; - int psx_taken_BFC14268 = (psx_brA_BFC14268 != psx_brB_BFC14268); + psx_taken_BFC14268 = (psx_brA_BFC14268 != psx_brB_BFC14268); /* 0xBFC1426C: 00000000 nop */ /* nop */ if (psx_taken_BFC14268) goto label_BFC142A0; @@ -62853,7 +64779,7 @@ label_BFC14274: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[13] + (1)); /* 0xBFC14284: 14400072 bne $v0, $zero, 0xBFC14450 */ uint32_t psx_brA_BFC14284 = cpu->gpr[2]; uint32_t psx_brB_BFC14284 = cpu->gpr[0]; - int psx_taken_BFC14284 = (psx_brA_BFC14284 != psx_brB_BFC14284); + psx_taken_BFC14284 = (psx_brA_BFC14284 != psx_brB_BFC14284); /* 0xBFC14288: AFAE0048 sw $t6, 72($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14288u); return; } g_debug_last_store_pc = 0xBFC14288u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC14284) goto label_BFC14450; @@ -62870,7 +64796,7 @@ label_BFC1428C: cpu->gpr[24] = cpu->gpr[15] & 0x80u; /* 0xBFC14298: 1300FFF6 beq $t8, $zero, 0xBFC14274 */ uint32_t psx_brA_BFC14298 = cpu->gpr[24]; uint32_t psx_brB_BFC14298 = cpu->gpr[0]; - int psx_taken_BFC14298 = (psx_brA_BFC14298 == psx_brB_BFC14298); + psx_taken_BFC14298 = (psx_brA_BFC14298 == psx_brB_BFC14298); /* 0xBFC1429C: 8FA20048 lw $v0, 72($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1429Cu); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC14298) goto label_BFC14274; @@ -62887,7 +64813,7 @@ label_BFC142A0: cpu->gpr[2] = (uint32_t)(cpu->gpr[0] < cpu->gpr[2] ? 1 : 0); /* 0xBFC142AC: 10400002 beq $v0, $zero, 0xBFC142B8 */ uint32_t psx_brA_BFC142AC = cpu->gpr[2]; uint32_t psx_brB_BFC142AC = cpu->gpr[0]; - int psx_taken_BFC142AC = (psx_brA_BFC142AC == psx_brB_BFC142AC); + psx_taken_BFC142AC = (psx_brA_BFC142AC == psx_brB_BFC142AC); /* 0xBFC142B0: 00000000 nop */ /* nop */ if (psx_taken_BFC142AC) goto label_BFC142B8; @@ -62937,7 +64863,7 @@ label_BFC142C8: cpu->gpr[10] = cpu->gpr[9] & 0x2u; /* 0xBFC142EC: 15400018 bne $t2, $zero, 0xBFC14350 */ uint32_t psx_brA_BFC142EC = cpu->gpr[10]; uint32_t psx_brB_BFC142EC = cpu->gpr[0]; - int psx_taken_BFC142EC = (psx_brA_BFC142EC != psx_brB_BFC142EC); + psx_taken_BFC142EC = (psx_brA_BFC142EC != psx_brB_BFC142EC); /* 0xBFC142F0: 00000000 nop */ /* nop */ if (psx_taken_BFC142EC) goto label_BFC14350; @@ -62954,7 +64880,7 @@ label_BFC142F4: cpu->gpr[12] = cpu->gpr[11] & 0x80u; /* 0xBFC14300: 1180000E beq $t4, $zero, 0xBFC1433C */ uint32_t psx_brA_BFC14300 = cpu->gpr[12]; uint32_t psx_brB_BFC14300 = cpu->gpr[0]; - int psx_taken_BFC14300 = (psx_brA_BFC14300 == psx_brB_BFC14300); + psx_taken_BFC14300 = (psx_brA_BFC14300 == psx_brB_BFC14300); /* 0xBFC14304: 00000000 nop */ /* nop */ if (psx_taken_BFC14300) goto label_BFC1433C; @@ -62971,7 +64897,7 @@ label_BFC14308: cpu->gpr[14] = cpu->gpr[13] & 0x2u; /* 0xBFC14314: 15C00006 bne $t6, $zero, 0xBFC14330 */ uint32_t psx_brA_BFC14314 = cpu->gpr[14]; uint32_t psx_brB_BFC14314 = cpu->gpr[0]; - int psx_taken_BFC14314 = (psx_brA_BFC14314 != psx_brB_BFC14314); + psx_taken_BFC14314 = (psx_brA_BFC14314 != psx_brB_BFC14314); /* 0xBFC14318: 00000000 nop */ /* nop */ if (psx_taken_BFC14314) goto label_BFC14330; @@ -62988,7 +64914,7 @@ label_BFC1431C: cpu->gpr[24] = cpu->gpr[15] & 0x2u; /* 0xBFC14328: 1300FFFC beq $t8, $zero, 0xBFC1431C */ uint32_t psx_brA_BFC14328 = cpu->gpr[24]; uint32_t psx_brB_BFC14328 = cpu->gpr[0]; - int psx_taken_BFC14328 = (psx_brA_BFC14328 == psx_brB_BFC14328); + psx_taken_BFC14328 = (psx_brA_BFC14328 == psx_brB_BFC14328); /* 0xBFC1432C: 00000000 nop */ /* nop */ if (psx_taken_BFC14328) goto label_BFC1431C; @@ -63001,7 +64927,7 @@ label_BFC14330: (void)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[17] + (0))); /* 0xBFC14334: 10000047 beq $zero, $zero, 0xBFC14454 */ uint32_t psx_brA_BFC14334 = cpu->gpr[0]; uint32_t psx_brB_BFC14334 = cpu->gpr[0]; - int psx_taken_BFC14334 = (psx_brA_BFC14334 == psx_brB_BFC14334); + psx_taken_BFC14334 = (psx_brA_BFC14334 == psx_brB_BFC14334); /* 0xBFC14338: 8FAE0040 lw $t6, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14338u); return; } cpu->gpr[14] = cpu->read_word(psx_addr); } if (psx_taken_BFC14334) goto label_BFC14454; @@ -63018,7 +64944,7 @@ label_BFC1433C: cpu->gpr[8] = cpu->gpr[25] & 0x2u; /* 0xBFC14348: 1100FFEA beq $t0, $zero, 0xBFC142F4 */ uint32_t psx_brA_BFC14348 = cpu->gpr[8]; uint32_t psx_brB_BFC14348 = cpu->gpr[0]; - int psx_taken_BFC14348 = (psx_brA_BFC14348 == psx_brB_BFC14348); + psx_taken_BFC14348 = (psx_brA_BFC14348 == psx_brB_BFC14348); /* 0xBFC1434C: 00000000 nop */ /* nop */ if (psx_taken_BFC14348) goto label_BFC142F4; @@ -63045,7 +64971,7 @@ label_BFC14350: cpu->gpr[10] = cpu->gpr[9] & 0x80u; /* 0xBFC14370: 1540000D bne $t2, $zero, 0xBFC143A8 */ uint32_t psx_brA_BFC14370 = cpu->gpr[10]; uint32_t psx_brB_BFC14370 = cpu->gpr[0]; - int psx_taken_BFC14370 = (psx_brA_BFC14370 != psx_brB_BFC14370); + psx_taken_BFC14370 = (psx_brA_BFC14370 != psx_brB_BFC14370); /* 0xBFC14374: 00000000 nop */ /* nop */ if (psx_taken_BFC14370) goto label_BFC143A8; @@ -63071,7 +64997,7 @@ label_BFC1437C: cpu->gpr[12] = (uint32_t)((int32_t)cpu->gpr[11] + (1)); /* 0xBFC1438C: 14400030 bne $v0, $zero, 0xBFC14450 */ uint32_t psx_brA_BFC1438C = cpu->gpr[2]; uint32_t psx_brB_BFC1438C = cpu->gpr[0]; - int psx_taken_BFC1438C = (psx_brA_BFC1438C != psx_brB_BFC1438C); + psx_taken_BFC1438C = (psx_brA_BFC1438C != psx_brB_BFC1438C); /* 0xBFC14390: AFAC0048 sw $t4, 72($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14390u); return; } g_debug_last_store_pc = 0xBFC14390u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC1438C) goto label_BFC14450; @@ -63088,7 +65014,7 @@ label_BFC14394: cpu->gpr[14] = cpu->gpr[13] & 0x80u; /* 0xBFC143A0: 11C0FFF6 beq $t6, $zero, 0xBFC1437C */ uint32_t psx_brA_BFC143A0 = cpu->gpr[14]; uint32_t psx_brB_BFC143A0 = cpu->gpr[0]; - int psx_taken_BFC143A0 = (psx_brA_BFC143A0 == psx_brB_BFC143A0); + psx_taken_BFC143A0 = (psx_brA_BFC143A0 == psx_brB_BFC143A0); /* 0xBFC143A4: 8FA20048 lw $v0, 72($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC143A4u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC143A0) goto label_BFC1437C; @@ -63105,7 +65031,7 @@ label_BFC143A8: cpu->gpr[2] = (uint32_t)(cpu->gpr[0] < cpu->gpr[2] ? 1 : 0); /* 0xBFC143B4: 10400002 beq $v0, $zero, 0xBFC143C0 */ uint32_t psx_brA_BFC143B4 = cpu->gpr[2]; uint32_t psx_brB_BFC143B4 = cpu->gpr[0]; - int psx_taken_BFC143B4 = (psx_brA_BFC143B4 == psx_brB_BFC143B4); + psx_taken_BFC143B4 = (psx_brA_BFC143B4 == psx_brB_BFC143B4); /* 0xBFC143B8: 00000000 nop */ /* nop */ if (psx_taken_BFC143B4) goto label_BFC143C0; @@ -63155,7 +65081,7 @@ label_BFC143D0: cpu->gpr[8] = cpu->gpr[25] & 0x2u; /* 0xBFC143F4: 15000006 bne $t0, $zero, 0xBFC14410 */ uint32_t psx_brA_BFC143F4 = cpu->gpr[8]; uint32_t psx_brB_BFC143F4 = cpu->gpr[0]; - int psx_taken_BFC143F4 = (psx_brA_BFC143F4 != psx_brB_BFC143F4); + psx_taken_BFC143F4 = (psx_brA_BFC143F4 != psx_brB_BFC143F4); /* 0xBFC143F8: 00000000 nop */ /* nop */ if (psx_taken_BFC143F4) goto label_BFC14410; @@ -63172,7 +65098,7 @@ label_BFC143FC: cpu->gpr[10] = cpu->gpr[9] & 0x2u; /* 0xBFC14408: 1140FFFC beq $t2, $zero, 0xBFC143FC */ uint32_t psx_brA_BFC14408 = cpu->gpr[10]; uint32_t psx_brB_BFC14408 = cpu->gpr[0]; - int psx_taken_BFC14408 = (psx_brA_BFC14408 == psx_brB_BFC14408); + psx_taken_BFC14408 = (psx_brA_BFC14408 == psx_brB_BFC14408); /* 0xBFC1440C: 00000000 nop */ /* nop */ if (psx_taken_BFC14408) goto label_BFC143FC; @@ -63197,7 +65123,7 @@ label_BFC14410: g_debug_last_store_pc = 0xBFC14428u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[19] + (0)), (uint8_t)(cpu->gpr[2] & 0xFFu)); /* 0xBFC1442C: 1CA0FF8B bgtz $a1, 0xBFC1425C */ uint32_t psx_brA_BFC1442C = cpu->gpr[5]; - int psx_taken_BFC1442C = ((int32_t)psx_brA_BFC1442C > 0); + psx_taken_BFC1442C = ((int32_t)psx_brA_BFC1442C > 0); /* 0xBFC14430: 26730001 addiu $s3, $s3, 1 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (1)); if (psx_taken_BFC1442C) goto label_BFC1425C; @@ -63223,7 +65149,7 @@ label_BFC14438: g_debug_last_store_pc = 0xBFC14444u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[12] + (0)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC14448: 10000013 beq $zero, $zero, 0xBFC14498 */ uint32_t psx_brA_BFC14448 = cpu->gpr[0]; uint32_t psx_brB_BFC14448 = cpu->gpr[0]; - int psx_taken_BFC14448 = (psx_brA_BFC14448 == psx_brB_BFC14448); + psx_taken_BFC14448 = (psx_brA_BFC14448 == psx_brB_BFC14448); /* 0xBFC1444C: A620000A sh $zero, 10($s1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (10)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1444Cu); return; } g_debug_last_store_pc = 0xBFC1444Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[0] & 0xFFFFu)); } if (psx_taken_BFC14448) goto label_BFC14498; @@ -63253,7 +65179,7 @@ label_BFC14454: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[25] + (29904)); /* 0xBFC1446C: 13190005 beq $t8, $t9, 0xBFC14484 */ uint32_t psx_brA_BFC1446C = cpu->gpr[24]; uint32_t psx_brB_BFC1446C = cpu->gpr[25]; - int psx_taken_BFC1446C = (psx_brA_BFC1446C == psx_brB_BFC1446C); + psx_taken_BFC1446C = (psx_brA_BFC1446C == psx_brB_BFC1446C); /* 0xBFC14470: 24092002 addiu $t1, $zero, 8194 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (8194)); if (psx_taken_BFC1446C) goto label_BFC14484; @@ -63266,7 +65192,7 @@ label_BFC14474: cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC14478: 10000003 beq $zero, $zero, 0xBFC14488 */ uint32_t psx_brA_BFC14478 = cpu->gpr[0]; uint32_t psx_brB_BFC14478 = cpu->gpr[0]; - int psx_taken_BFC14478 = (psx_brA_BFC14478 == psx_brB_BFC14478); + psx_taken_BFC14478 = (psx_brA_BFC14478 == psx_brB_BFC14478); /* 0xBFC1447C: A628000A sh $t0, 10($s1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (10)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1447Cu); return; } g_debug_last_store_pc = 0xBFC1447Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[8] & 0xFFFFu)); } if (psx_taken_BFC14478) goto label_BFC14488; @@ -63341,6 +65267,10 @@ void func_000049BC(CPUState* cpu) { default: break; } } + int psx_taken_BFC144C8 = 0; + int psx_taken_BFC144EC = 0; + int psx_taken_BFC14508 = 0; + int psx_taken_BFC1452C = 0; label_BFC144BC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -63354,7 +65284,7 @@ label_BFC144BC: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC144C8: 11C0000C beq $t6, $zero, 0xBFC144FC */ uint32_t psx_brA_BFC144C8 = cpu->gpr[14]; uint32_t psx_brB_BFC144C8 = cpu->gpr[0]; - int psx_taken_BFC144C8 = (psx_brA_BFC144C8 == psx_brB_BFC144C8); + psx_taken_BFC144C8 = (psx_brA_BFC144C8 == psx_brB_BFC144C8); /* 0xBFC144CC: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC144CCu); return; } g_debug_last_store_pc = 0xBFC144CCu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC144C8) goto label_BFC144FC; @@ -63391,7 +65321,7 @@ label_BFC144E0: /* nop */ /* 0xBFC144EC: 11E00003 beq $t7, $zero, 0xBFC144FC */ uint32_t psx_brA_BFC144EC = cpu->gpr[15]; uint32_t psx_brB_BFC144EC = cpu->gpr[0]; - int psx_taken_BFC144EC = (psx_brA_BFC144EC == psx_brB_BFC144EC); + psx_taken_BFC144EC = (psx_brA_BFC144EC == psx_brB_BFC144EC); /* 0xBFC144F0: 00000000 nop */ /* nop */ if (psx_taken_BFC144EC) goto label_BFC144FC; @@ -63418,7 +65348,7 @@ label_BFC144FC: /* nop */ /* 0xBFC14508: 13000005 beq $t8, $zero, 0xBFC14520 */ uint32_t psx_brA_BFC14508 = cpu->gpr[24]; uint32_t psx_brB_BFC14508 = cpu->gpr[0]; - int psx_taken_BFC14508 = (psx_brA_BFC14508 == psx_brB_BFC14508); + psx_taken_BFC14508 = (psx_brA_BFC14508 == psx_brB_BFC14508); /* 0xBFC1450C: 00000000 nop */ /* nop */ if (psx_taken_BFC14508) goto label_BFC14520; @@ -63448,7 +65378,7 @@ label_BFC14520: /* nop */ /* 0xBFC1452C: 11200004 beq $t1, $zero, 0xBFC14540 */ uint32_t psx_brA_BFC1452C = cpu->gpr[9]; uint32_t psx_brB_BFC1452C = cpu->gpr[0]; - int psx_taken_BFC1452C = (psx_brA_BFC1452C == psx_brB_BFC1452C); + psx_taken_BFC1452C = (psx_brA_BFC1452C == psx_brB_BFC1452C); /* 0xBFC14530: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14530u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1452C) goto label_BFC14540; @@ -63484,6 +65414,8 @@ label_BFC14540: void func_00004A4C(CPUState* cpu) { debug_server_log_call_entry(0x00004A4Cu); + int psx_taken_BFC14564 = 0; + int psx_taken_BFC14578 = 0; label_BFC1454C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -63503,7 +65435,7 @@ label_BFC1454C: cpu->gpr[15] = cpu->gpr[14] & 0x1u; /* 0xBFC14564: 11E00006 beq $t7, $zero, 0xBFC14580 */ uint32_t psx_brA_BFC14564 = cpu->gpr[15]; uint32_t psx_brB_BFC14564 = cpu->gpr[0]; - int psx_taken_BFC14564 = (psx_brA_BFC14564 == psx_brB_BFC14564); + psx_taken_BFC14564 = (psx_brA_BFC14564 == psx_brB_BFC14564); /* 0xBFC14568: 00000000 nop */ /* nop */ if (psx_taken_BFC14564) goto label_BFC14580; @@ -63520,7 +65452,7 @@ label_BFC1456C: cpu->gpr[25] = cpu->gpr[24] & 0x1u; /* 0xBFC14578: 17200004 bne $t9, $zero, 0xBFC1458C */ uint32_t psx_brA_BFC14578 = cpu->gpr[25]; uint32_t psx_brB_BFC14578 = cpu->gpr[0]; - int psx_taken_BFC14578 = (psx_brA_BFC14578 != psx_brB_BFC14578); + psx_taken_BFC14578 = (psx_brA_BFC14578 != psx_brB_BFC14578); /* 0xBFC1457C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC14578) { cpu->pc = 0xBFC1458Cu; return; } @@ -64287,6 +66219,18 @@ void func_00004D6C(CPUState* cpu) { default: break; } } + int psx_taken_BFC14878 = 0; + int psx_taken_BFC14880 = 0; + int psx_taken_BFC148DC = 0; + int psx_taken_BFC148E8 = 0; + int psx_taken_BFC148F0 = 0; + int psx_taken_BFC148F8 = 0; + int psx_taken_BFC14900 = 0; + int psx_taken_BFC14908 = 0; + int psx_taken_BFC1492C = 0; + int psx_taken_BFC14954 = 0; + int psx_taken_BFC149D8 = 0; + int psx_taken_BFC14A34 = 0; label_BFC1486C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -64300,7 +66244,7 @@ label_BFC1486C: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC14878: 15C00003 bne $t6, $zero, 0xBFC14888 */ uint32_t psx_brA_BFC14878 = cpu->gpr[14]; uint32_t psx_brB_BFC14878 = cpu->gpr[0]; - int psx_taken_BFC14878 = (psx_brA_BFC14878 != psx_brB_BFC14878); + psx_taken_BFC14878 = (psx_brA_BFC14878 != psx_brB_BFC14878); /* 0xBFC1487C: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1487Cu); return; } g_debug_last_store_pc = 0xBFC1487Cu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC14878) goto label_BFC14888; @@ -64311,7 +66255,7 @@ label_BFC14880: psx_check_interrupts(cpu); /* 0xBFC14880: 10000002 beq $zero, $zero, 0xBFC1488C */ uint32_t psx_brA_BFC14880 = cpu->gpr[0]; uint32_t psx_brB_BFC14880 = cpu->gpr[0]; - int psx_taken_BFC14880 = (psx_brA_BFC14880 == psx_brB_BFC14880); + psx_taken_BFC14880 = (psx_brA_BFC14880 == psx_brB_BFC14880); /* 0xBFC14884: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC14880) goto label_BFC1488C; @@ -64375,7 +66319,7 @@ label_BFC148DC: psx_check_interrupts(cpu); /* 0xBFC148DC: 10000004 beq $zero, $zero, 0xBFC148F0 */ uint32_t psx_brA_BFC148DC = cpu->gpr[0]; uint32_t psx_brB_BFC148DC = cpu->gpr[0]; - int psx_taken_BFC148DC = (psx_brA_BFC148DC == psx_brB_BFC148DC); + psx_taken_BFC148DC = (psx_brA_BFC148DC == psx_brB_BFC148DC); /* 0xBFC148E0: 00000000 nop */ /* nop */ if (psx_taken_BFC148DC) goto label_BFC148F0; @@ -64388,7 +66332,7 @@ label_BFC148E4: cpu->gpr[1] = 0x00000000u; /* 0xBFC148E8: 1000003D beq $zero, $zero, 0xBFC149E0 */ uint32_t psx_brA_BFC148E8 = cpu->gpr[0]; uint32_t psx_brB_BFC148E8 = cpu->gpr[0]; - int psx_taken_BFC148E8 = (psx_brA_BFC148E8 == psx_brB_BFC148E8); + psx_taken_BFC148E8 = (psx_brA_BFC148E8 == psx_brB_BFC148E8); /* 0xBFC148EC: AC2074A4 sw $zero, 29860($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (29860)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC148ECu); return; } g_debug_last_store_pc = 0xBFC148ECu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC148E8) goto label_BFC149E0; @@ -64399,7 +66343,7 @@ label_BFC148F0: psx_check_interrupts(cpu); /* 0xBFC148F0: 10400007 beq $v0, $zero, 0xBFC14910 */ uint32_t psx_brA_BFC148F0 = cpu->gpr[2]; uint32_t psx_brB_BFC148F0 = cpu->gpr[0]; - int psx_taken_BFC148F0 = (psx_brA_BFC148F0 == psx_brB_BFC148F0); + psx_taken_BFC148F0 = (psx_brA_BFC148F0 == psx_brB_BFC148F0); /* 0xBFC148F4: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC148F0) goto label_BFC14910; @@ -64410,7 +66354,7 @@ label_BFC148F8: psx_check_interrupts(cpu); /* 0xBFC148F8: 1041FFFA beq $v0, $at, 0xBFC148E4 */ uint32_t psx_brA_BFC148F8 = cpu->gpr[2]; uint32_t psx_brB_BFC148F8 = cpu->gpr[1]; - int psx_taken_BFC148F8 = (psx_brA_BFC148F8 == psx_brB_BFC148F8); + psx_taken_BFC148F8 = (psx_brA_BFC148F8 == psx_brB_BFC148F8); /* 0xBFC148FC: 2401FFFF addiu $at, $zero, -1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC148F8) goto label_BFC148E4; @@ -64421,7 +66365,7 @@ label_BFC14900: psx_check_interrupts(cpu); /* 0xBFC14900: 1041000C beq $v0, $at, 0xBFC14934 */ uint32_t psx_brA_BFC14900 = cpu->gpr[2]; uint32_t psx_brB_BFC14900 = cpu->gpr[1]; - int psx_taken_BFC14900 = (psx_brA_BFC14900 == psx_brB_BFC14900); + psx_taken_BFC14900 = (psx_brA_BFC14900 == psx_brB_BFC14900); /* 0xBFC14904: 00000000 nop */ /* nop */ if (psx_taken_BFC14900) goto label_BFC14934; @@ -64432,7 +66376,7 @@ label_BFC14908: psx_check_interrupts(cpu); /* 0xBFC14908: 1000000A beq $zero, $zero, 0xBFC14934 */ uint32_t psx_brA_BFC14908 = cpu->gpr[0]; uint32_t psx_brB_BFC14908 = cpu->gpr[0]; - int psx_taken_BFC14908 = (psx_brA_BFC14908 == psx_brB_BFC14908); + psx_taken_BFC14908 = (psx_brA_BFC14908 == psx_brB_BFC14908); /* 0xBFC1490C: 00000000 nop */ /* nop */ if (psx_taken_BFC14908) goto label_BFC14934; @@ -64457,7 +66401,7 @@ label_BFC14910: cpu->gpr[14] = cpu->gpr[13] | 0x80u; /* 0xBFC1492C: 10000054 beq $zero, $zero, 0xBFC14A80 */ uint32_t psx_brA_BFC1492C = cpu->gpr[0]; uint32_t psx_brB_BFC1492C = cpu->gpr[0]; - int psx_taken_BFC1492C = (psx_brA_BFC1492C == psx_brB_BFC1492C); + psx_taken_BFC1492C = (psx_brA_BFC1492C == psx_brB_BFC1492C); /* 0xBFC14930: AC6E0004 sw $t6, 4($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14930u); return; } g_debug_last_store_pc = 0xBFC14930u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC1492C) { cpu->pc = 0xBFC14A80u; return; } @@ -64484,7 +66428,7 @@ label_BFC14934: /* nop */ /* 0xBFC14954: 15E00011 bne $t7, $zero, 0xBFC1499C */ uint32_t psx_brA_BFC14954 = cpu->gpr[15]; uint32_t psx_brB_BFC14954 = cpu->gpr[0]; - int psx_taken_BFC14954 = (psx_brA_BFC14954 != psx_brB_BFC14954); + psx_taken_BFC14954 = (psx_brA_BFC14954 != psx_brB_BFC14954); /* 0xBFC14958: 3C010000 lui $at, 0x0 */ cpu->gpr[1] = 0x00000000u; if (psx_taken_BFC14954) goto label_BFC1499C; @@ -64575,7 +66519,7 @@ label_BFC149BC: cpu->gpr[10] = cpu->gpr[9] & cpu->gpr[4]; /* 0xBFC149D8: 10000029 beq $zero, $zero, 0xBFC14A80 */ uint32_t psx_brA_BFC149D8 = cpu->gpr[0]; uint32_t psx_brB_BFC149D8 = cpu->gpr[0]; - int psx_taken_BFC149D8 = (psx_brA_BFC149D8 == psx_brB_BFC149D8); + psx_taken_BFC149D8 = (psx_brA_BFC149D8 == psx_brB_BFC149D8); /* 0xBFC149DC: AC6A0004 sw $t2, 4($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC149DCu); return; } g_debug_last_store_pc = 0xBFC149DCu; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC149D8) { cpu->pc = 0xBFC14A80u; return; } @@ -64634,7 +66578,7 @@ label_BFC14A0C: /* nop */ /* 0xBFC14A34: 15A00011 bne $t5, $zero, 0xBFC14A7C */ uint32_t psx_brA_BFC14A34 = cpu->gpr[13]; uint32_t psx_brB_BFC14A34 = cpu->gpr[0]; - int psx_taken_BFC14A34 = (psx_brA_BFC14A34 != psx_brB_BFC14A34); + psx_taken_BFC14A34 = (psx_brA_BFC14A34 != psx_brB_BFC14A34); /* 0xBFC14A38: 3C010000 lui $at, 0x0 */ cpu->gpr[1] = 0x00000000u; if (psx_taken_BFC14A34) { cpu->pc = 0xBFC14A7Cu; return; } @@ -64734,6 +66678,11 @@ void func_00004F90(CPUState* cpu) { default: break; } } + int psx_taken_BFC14AAC = 0; + int psx_taken_BFC14AC0 = 0; + int psx_taken_BFC14AC8 = 0; + int psx_taken_BFC14ADC = 0; + int psx_taken_BFC14AE4 = 0; label_BFC14A90: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -64755,7 +66704,7 @@ label_BFC14A90: cpu->gpr[15] = cpu->gpr[14] & 0x80u; /* 0xBFC14AAC: 11E00006 beq $t7, $zero, 0xBFC14AC8 */ uint32_t psx_brA_BFC14AAC = cpu->gpr[15]; uint32_t psx_brB_BFC14AAC = cpu->gpr[0]; - int psx_taken_BFC14AAC = (psx_brA_BFC14AAC == psx_brB_BFC14AAC); + psx_taken_BFC14AAC = (psx_brA_BFC14AAC == psx_brB_BFC14AAC); /* 0xBFC14AB0: 00000000 nop */ /* nop */ if (psx_taken_BFC14AAC) goto label_BFC14AC8; @@ -64772,7 +66721,7 @@ label_BFC14AB4: cpu->gpr[25] = cpu->gpr[24] & 0x80u; /* 0xBFC14AC0: 17200003 bne $t9, $zero, 0xBFC14AD0 */ uint32_t psx_brA_BFC14AC0 = cpu->gpr[25]; uint32_t psx_brB_BFC14AC0 = cpu->gpr[0]; - int psx_taken_BFC14AC0 = (psx_brA_BFC14AC0 != psx_brB_BFC14AC0); + psx_taken_BFC14AC0 = (psx_brA_BFC14AC0 != psx_brB_BFC14AC0); /* 0xBFC14AC4: 00000000 nop */ /* nop */ if (psx_taken_BFC14AC0) goto label_BFC14AD0; @@ -64783,7 +66732,7 @@ label_BFC14AC8: psx_check_interrupts(cpu); /* 0xBFC14AC8: 10000009 beq $zero, $zero, 0xBFC14AF0 */ uint32_t psx_brA_BFC14AC8 = cpu->gpr[0]; uint32_t psx_brB_BFC14AC8 = cpu->gpr[0]; - int psx_taken_BFC14AC8 = (psx_brA_BFC14AC8 == psx_brB_BFC14AC8); + psx_taken_BFC14AC8 = (psx_brA_BFC14AC8 == psx_brB_BFC14AC8); /* 0xBFC14ACC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC14AC8) goto label_BFC14AF0; @@ -64806,7 +66755,7 @@ label_BFC14AD8: cpu->gpr[8] = cpu->gpr[2] & 0x1u; /* 0xBFC14ADC: 11000004 beq $t0, $zero, 0xBFC14AF0 */ uint32_t psx_brA_BFC14ADC = cpu->gpr[8]; uint32_t psx_brB_BFC14ADC = cpu->gpr[0]; - int psx_taken_BFC14ADC = (psx_brA_BFC14ADC == psx_brB_BFC14ADC); + psx_taken_BFC14ADC = (psx_brA_BFC14ADC == psx_brB_BFC14ADC); /* 0xBFC14AE0: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC14ADC) goto label_BFC14AF0; @@ -64817,7 +66766,7 @@ label_BFC14AE4: psx_check_interrupts(cpu); /* 0xBFC14AE4: 10000002 beq $zero, $zero, 0xBFC14AF0 */ uint32_t psx_brA_BFC14AE4 = cpu->gpr[0]; uint32_t psx_brB_BFC14AE4 = cpu->gpr[0]; - int psx_taken_BFC14AE4 = (psx_brA_BFC14AE4 == psx_brB_BFC14AE4); + psx_taken_BFC14AE4 = (psx_brA_BFC14AE4 == psx_brB_BFC14AE4); /* 0xBFC14AE8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC14AE4) goto label_BFC14AF0; @@ -64864,6 +66813,10 @@ void func_00005000(CPUState* cpu) { default: break; } } + int psx_taken_BFC14B64 = 0; + int psx_taken_BFC14C20 = 0; + int psx_taken_BFC14C60 = 0; + int psx_taken_BFC14C68 = 0; label_BFC14B00: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -64951,7 +66904,7 @@ label_BFC14B58: /* nop */ /* 0xBFC14B64: 11C00030 beq $t6, $zero, 0xBFC14C28 */ uint32_t psx_brA_BFC14B64 = cpu->gpr[14]; uint32_t psx_brB_BFC14B64 = cpu->gpr[0]; - int psx_taken_BFC14B64 = (psx_brA_BFC14B64 == psx_brB_BFC14B64); + psx_taken_BFC14B64 = (psx_brA_BFC14B64 == psx_brB_BFC14B64); /* 0xBFC14B68: 3C010000 lui $at, 0x0 */ cpu->gpr[1] = 0x00000000u; if (psx_taken_BFC14B64) goto label_BFC14C28; @@ -65070,7 +67023,7 @@ label_BFC14C00: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (8)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14C1Cu); return; } g_debug_last_store_pc = 0xBFC14C1Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[13] & 0xFFFFu)); } /* 0xBFC14C20: 10000030 beq $zero, $zero, 0xBFC14CE4 */ uint32_t psx_brA_BFC14C20 = cpu->gpr[0]; uint32_t psx_brB_BFC14C20 = cpu->gpr[0]; - int psx_taken_BFC14C20 = (psx_brA_BFC14C20 == psx_brB_BFC14C20); + psx_taken_BFC14C20 = (psx_brA_BFC14C20 == psx_brB_BFC14C20); /* 0xBFC14C24: A460000A sh $zero, 10($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (10)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14C24u); return; } g_debug_last_store_pc = 0xBFC14C24u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[0] & 0xFFFFu)); } if (psx_taken_BFC14C20) goto label_BFC14CE4; @@ -65109,7 +67062,7 @@ label_BFC14C28: cpu->gpr[10] = cpu->gpr[9] & 0x1u; /* 0xBFC14C60: 11400003 beq $t2, $zero, 0xBFC14C70 */ uint32_t psx_brA_BFC14C60 = cpu->gpr[10]; uint32_t psx_brB_BFC14C60 = cpu->gpr[0]; - int psx_taken_BFC14C60 = (psx_brA_BFC14C60 == psx_brB_BFC14C60); + psx_taken_BFC14C60 = (psx_brA_BFC14C60 == psx_brB_BFC14C60); /* 0xBFC14C64: 00000000 nop */ /* nop */ if (psx_taken_BFC14C60) goto label_BFC14C70; @@ -65120,7 +67073,7 @@ label_BFC14C68: psx_check_interrupts(cpu); /* 0xBFC14C68: 1000001E beq $zero, $zero, 0xBFC14CE4 */ uint32_t psx_brA_BFC14C68 = cpu->gpr[0]; uint32_t psx_brB_BFC14C68 = cpu->gpr[0]; - int psx_taken_BFC14C68 = (psx_brA_BFC14C68 == psx_brB_BFC14C68); + psx_taken_BFC14C68 = (psx_brA_BFC14C68 == psx_brB_BFC14C68); /* 0xBFC14C6C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC14C68) goto label_BFC14CE4; @@ -65235,6 +67188,39 @@ void func_000051F4(CPUState* cpu) { default: break; } } + int psx_taken_BFC14D20 = 0; + int psx_taken_BFC14D44 = 0; + int psx_taken_BFC14D4C = 0; + int psx_taken_BFC14DBC = 0; + int psx_taken_BFC14DF0 = 0; + int psx_taken_BFC14E38 = 0; + int psx_taken_BFC14E44 = 0; + int psx_taken_BFC14E90 = 0; + int psx_taken_BFC14EC4 = 0; + int psx_taken_BFC14ECC = 0; + int psx_taken_BFC14F08 = 0; + int psx_taken_BFC14F10 = 0; + int psx_taken_BFC14F24 = 0; + int psx_taken_BFC14F80 = 0; + int psx_taken_BFC14FC4 = 0; + int psx_taken_BFC14FF4 = 0; + int psx_taken_BFC15028 = 0; + int psx_taken_BFC15030 = 0; + int psx_taken_BFC15064 = 0; + int psx_taken_BFC1506C = 0; + int psx_taken_BFC15080 = 0; + int psx_taken_BFC15094 = 0; + int psx_taken_BFC150A8 = 0; + int psx_taken_BFC150C8 = 0; + int psx_taken_BFC1512C = 0; + int psx_taken_BFC15134 = 0; + int psx_taken_BFC1513C = 0; + int psx_taken_BFC15144 = 0; + int psx_taken_BFC1514C = 0; + int psx_taken_BFC15154 = 0; + int psx_taken_BFC1515C = 0; + int psx_taken_BFC15164 = 0; + int psx_taken_BFC1516C = 0; label_BFC14CF4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -65264,7 +67250,7 @@ label_BFC14CF4: cpu->gpr[1] = (uint32_t)(cpu->gpr[15] < 0x0000000Au ? 1 : 0); /* 0xBFC14D20: 10200112 beq $at, $zero, 0xBFC1516C */ uint32_t psx_brA_BFC14D20 = cpu->gpr[1]; uint32_t psx_brB_BFC14D20 = cpu->gpr[0]; - int psx_taken_BFC14D20 = (psx_brA_BFC14D20 == psx_brB_BFC14D20); + psx_taken_BFC14D20 = (psx_brA_BFC14D20 == psx_brB_BFC14D20); /* 0xBFC14D24: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14D24u); return; } g_debug_last_store_pc = 0xBFC14D24u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC14D20) goto label_BFC1516C; @@ -65294,7 +67280,7 @@ label_BFC14D44: psx_check_interrupts(cpu); /* 0xBFC14D44: 14C00004 bne $a2, $zero, 0xBFC14D58 */ uint32_t psx_brA_BFC14D44 = cpu->gpr[6]; uint32_t psx_brB_BFC14D44 = cpu->gpr[0]; - int psx_taken_BFC14D44 = (psx_brA_BFC14D44 != psx_brB_BFC14D44); + psx_taken_BFC14D44 = (psx_brA_BFC14D44 != psx_brB_BFC14D44); /* 0xBFC14D48: 24022000 addiu $v0, $zero, 8192 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (8192)); if (psx_taken_BFC14D44) goto label_BFC14D58; @@ -65305,7 +67291,7 @@ label_BFC14D4C: psx_check_interrupts(cpu); /* 0xBFC14D4C: 10000002 beq $zero, $zero, 0xBFC14D58 */ uint32_t psx_brA_BFC14D4C = cpu->gpr[0]; uint32_t psx_brB_BFC14D4C = cpu->gpr[0]; - int psx_taken_BFC14D4C = (psx_brA_BFC14D4C == psx_brB_BFC14D4C); + psx_taken_BFC14D4C = (psx_brA_BFC14D4C == psx_brB_BFC14D4C); /* 0xBFC14D50: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC14D4C) goto label_BFC14D58; @@ -65373,7 +67359,7 @@ label_BFC14D58: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[25] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14DB8u); return; } g_debug_last_store_pc = 0xBFC14DB8u; cpu->write_word(psx_addr, cpu->gpr[24]); } /* 0xBFC14DBC: 100000ED beq $zero, $zero, 0xBFC15174 */ uint32_t psx_brA_BFC14DBC = cpu->gpr[0]; uint32_t psx_brB_BFC14DBC = cpu->gpr[0]; - int psx_taken_BFC14DBC = (psx_brA_BFC14DBC == psx_brB_BFC14DBC); + psx_taken_BFC14DBC = (psx_brA_BFC14DBC == psx_brB_BFC14DBC); /* 0xBFC14DC0: AC2274A0 sw $v0, 29856($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (29856)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14DC0u); return; } g_debug_last_store_pc = 0xBFC14DC0u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC14DBC) goto label_BFC15174; @@ -65406,7 +67392,7 @@ label_BFC14DC4: cpu->gpr[11] = (uint32_t)((int32_t)cpu->gpr[0] + (-129)); /* 0xBFC14DF0: 100000E0 beq $zero, $zero, 0xBFC15174 */ uint32_t psx_brA_BFC14DF0 = cpu->gpr[0]; uint32_t psx_brB_BFC14DF0 = cpu->gpr[0]; - int psx_taken_BFC14DF0 = (psx_brA_BFC14DF0 == psx_brB_BFC14DF0); + psx_taken_BFC14DF0 = (psx_brA_BFC14DF0 == psx_brB_BFC14DF0); /* 0xBFC14DF4: AD8B0000 sw $t3, 0($t4) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[12] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14DF4u); return; } g_debug_last_store_pc = 0xBFC14DF4u; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC14DF0) goto label_BFC15174; @@ -65449,7 +67435,7 @@ label_BFC14DF8: cpu->gpr[1] = cpu->gpr[1] + cpu->gpr[25]; /* 0xBFC14E38: 150000CE bne $t0, $zero, 0xBFC15174 */ uint32_t psx_brA_BFC14E38 = cpu->gpr[8]; uint32_t psx_brB_BFC14E38 = cpu->gpr[0]; - int psx_taken_BFC14E38 = (psx_brA_BFC14E38 != psx_brB_BFC14E38); + psx_taken_BFC14E38 = (psx_brA_BFC14E38 != psx_brB_BFC14E38); /* 0xBFC14E3C: AC2374F8 sw $v1, 29944($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (29944)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14E3Cu); return; } g_debug_last_store_pc = 0xBFC14E3Cu; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC14E38) goto label_BFC15174; @@ -65462,7 +67448,7 @@ label_BFC14E40: cpu->gpr[9] = cpu->gpr[3] & 0x8u; /* 0xBFC14E44: 112000CB beq $t1, $zero, 0xBFC15174 */ uint32_t psx_brA_BFC14E44 = cpu->gpr[9]; uint32_t psx_brB_BFC14E44 = cpu->gpr[0]; - int psx_taken_BFC14E44 = (psx_brA_BFC14E44 == psx_brB_BFC14E44); + psx_taken_BFC14E44 = (psx_brA_BFC14E44 == psx_brB_BFC14E44); /* 0xBFC14E48: 3C010000 lui $at, 0x0 */ cpu->gpr[1] = 0x00000000u; if (psx_taken_BFC14E44) goto label_BFC15174; @@ -65519,7 +67505,7 @@ label_BFC14E84: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (29984)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14E8Cu); return; } g_debug_last_store_pc = 0xBFC14E8Cu; cpu->write_word(psx_addr, cpu->gpr[12]); } /* 0xBFC14E90: 100000B9 beq $zero, $zero, 0xBFC15178 */ uint32_t psx_brA_BFC14E90 = cpu->gpr[0]; uint32_t psx_brB_BFC14E90 = cpu->gpr[0]; - int psx_taken_BFC14E90 = (psx_brA_BFC14E90 == psx_brB_BFC14E90); + psx_taken_BFC14E90 = (psx_brA_BFC14E90 == psx_brB_BFC14E90); /* 0xBFC14E94: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC14E90) goto label_BFC15178; @@ -65552,7 +67538,7 @@ label_BFC14E98: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (90)); /* 0xBFC14EC4: 106100AB beq $v1, $at, 0xBFC15174 */ uint32_t psx_brA_BFC14EC4 = cpu->gpr[3]; uint32_t psx_brB_BFC14EC4 = cpu->gpr[1]; - int psx_taken_BFC14EC4 = (psx_brA_BFC14EC4 == psx_brB_BFC14EC4); + psx_taken_BFC14EC4 = (psx_brA_BFC14EC4 == psx_brB_BFC14EC4); /* 0xBFC14EC8: AF0F0000 sw $t7, 0($t8) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14EC8u); return; } g_debug_last_store_pc = 0xBFC14EC8u; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC14EC4) goto label_BFC15174; @@ -65563,7 +67549,7 @@ label_BFC14ECC: psx_check_interrupts(cpu); /* 0xBFC14ECC: 100000AA beq $zero, $zero, 0xBFC15178 */ uint32_t psx_brA_BFC14ECC = cpu->gpr[0]; uint32_t psx_brB_BFC14ECC = cpu->gpr[0]; - int psx_taken_BFC14ECC = (psx_brA_BFC14ECC == psx_brB_BFC14ECC); + psx_taken_BFC14ECC = (psx_brA_BFC14ECC == psx_brB_BFC14ECC); /* 0xBFC14ED0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC14ECC) goto label_BFC15178; @@ -65600,7 +67586,7 @@ label_BFC14ED4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (93)); /* 0xBFC14F08: 10610003 beq $v1, $at, 0xBFC14F18 */ uint32_t psx_brA_BFC14F08 = cpu->gpr[3]; uint32_t psx_brB_BFC14F08 = cpu->gpr[1]; - int psx_taken_BFC14F08 = (psx_brA_BFC14F08 == psx_brB_BFC14F08); + psx_taken_BFC14F08 = (psx_brA_BFC14F08 == psx_brB_BFC14F08); /* 0xBFC14F0C: AD490000 sw $t1, 0($t2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[10] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14F0Cu); return; } g_debug_last_store_pc = 0xBFC14F0Cu; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC14F08) goto label_BFC14F18; @@ -65611,7 +67597,7 @@ label_BFC14F10: psx_check_interrupts(cpu); /* 0xBFC14F10: 10000099 beq $zero, $zero, 0xBFC15178 */ uint32_t psx_brA_BFC14F10 = cpu->gpr[0]; uint32_t psx_brB_BFC14F10 = cpu->gpr[0]; - int psx_taken_BFC14F10 = (psx_brA_BFC14F10 == psx_brB_BFC14F10); + psx_taken_BFC14F10 = (psx_brA_BFC14F10 == psx_brB_BFC14F10); /* 0xBFC14F14: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC14F10) goto label_BFC15178; @@ -65628,7 +67614,7 @@ label_BFC14F18: cpu->gpr[1] = cpu->gpr[1] + cpu->gpr[11]; /* 0xBFC14F24: 10000093 beq $zero, $zero, 0xBFC15174 */ uint32_t psx_brA_BFC14F24 = cpu->gpr[0]; uint32_t psx_brB_BFC14F24 = cpu->gpr[0]; - int psx_taken_BFC14F24 = (psx_brA_BFC14F24 == psx_brB_BFC14F24); + psx_taken_BFC14F24 = (psx_brA_BFC14F24 == psx_brB_BFC14F24); /* 0xBFC14F28: AC227560 sw $v0, 30048($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (30048)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14F28u); return; } g_debug_last_store_pc = 0xBFC14F28u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC14F24) goto label_BFC15174; @@ -65687,7 +67673,7 @@ label_BFC14F80: psx_check_interrupts(cpu); /* 0xBFC14F80: 1000007D beq $zero, $zero, 0xBFC15178 */ uint32_t psx_brA_BFC14F80 = cpu->gpr[0]; uint32_t psx_brB_BFC14F80 = cpu->gpr[0]; - int psx_taken_BFC14F80 = (psx_brA_BFC14F80 == psx_brB_BFC14F80); + psx_taken_BFC14F80 = (psx_brA_BFC14F80 == psx_brB_BFC14F80); /* 0xBFC14F84: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC14F80) goto label_BFC15178; @@ -65728,7 +67714,7 @@ label_BFC14F88: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[0] + (-129)); /* 0xBFC14FC4: 1000006B beq $zero, $zero, 0xBFC15174 */ uint32_t psx_brA_BFC14FC4 = cpu->gpr[0]; uint32_t psx_brB_BFC14FC4 = cpu->gpr[0]; - int psx_taken_BFC14FC4 = (psx_brA_BFC14FC4 == psx_brB_BFC14FC4); + psx_taken_BFC14FC4 = (psx_brA_BFC14FC4 == psx_brB_BFC14FC4); /* 0xBFC14FC8: ADEE0000 sw $t6, 0($t7) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[15] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14FC8u); return; } g_debug_last_store_pc = 0xBFC14FC8u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC14FC4) goto label_BFC15174; @@ -65759,7 +67745,7 @@ label_BFC14FCC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (29276)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14FF0u); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } /* 0xBFC14FF4: 1000005F beq $zero, $zero, 0xBFC15174 */ uint32_t psx_brA_BFC14FF4 = cpu->gpr[0]; uint32_t psx_brB_BFC14FF4 = cpu->gpr[0]; - int psx_taken_BFC14FF4 = (psx_brA_BFC14FF4 == psx_brB_BFC14FF4); + psx_taken_BFC14FF4 = (psx_brA_BFC14FF4 == psx_brB_BFC14FF4); /* 0xBFC14FF8: AD280000 sw $t0, 0($t1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC14FF8u); return; } g_debug_last_store_pc = 0xBFC14FF8u; cpu->write_word(psx_addr, cpu->gpr[8]); } if (psx_taken_BFC14FF4) goto label_BFC15174; @@ -65792,7 +67778,7 @@ label_BFC14FFC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (92)); /* 0xBFC15028: 10610052 beq $v1, $at, 0xBFC15174 */ uint32_t psx_brA_BFC15028 = cpu->gpr[3]; uint32_t psx_brB_BFC15028 = cpu->gpr[1]; - int psx_taken_BFC15028 = (psx_brA_BFC15028 == psx_brB_BFC15028); + psx_taken_BFC15028 = (psx_brA_BFC15028 == psx_brB_BFC15028); /* 0xBFC1502C: ADAC0000 sw $t4, 0($t5) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[13] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1502Cu); return; } g_debug_last_store_pc = 0xBFC1502Cu; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC15028) goto label_BFC15174; @@ -65803,7 +67789,7 @@ label_BFC15030: psx_check_interrupts(cpu); /* 0xBFC15030: 10000051 beq $zero, $zero, 0xBFC15178 */ uint32_t psx_brA_BFC15030 = cpu->gpr[0]; uint32_t psx_brB_BFC15030 = cpu->gpr[0]; - int psx_taken_BFC15030 = (psx_brA_BFC15030 == psx_brB_BFC15030); + psx_taken_BFC15030 = (psx_brA_BFC15030 == psx_brB_BFC15030); /* 0xBFC15034: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC15030) goto label_BFC15178; @@ -65836,7 +67822,7 @@ label_BFC15038: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (93)); /* 0xBFC15064: 10610003 beq $v1, $at, 0xBFC15074 */ uint32_t psx_brA_BFC15064 = cpu->gpr[3]; uint32_t psx_brB_BFC15064 = cpu->gpr[1]; - int psx_taken_BFC15064 = (psx_brA_BFC15064 == psx_brB_BFC15064); + psx_taken_BFC15064 = (psx_brA_BFC15064 == psx_brB_BFC15064); /* 0xBFC15068: AF380000 sw $t8, 0($t9) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[25] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15068u); return; } g_debug_last_store_pc = 0xBFC15068u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC15064) goto label_BFC15074; @@ -65847,7 +67833,7 @@ label_BFC1506C: psx_check_interrupts(cpu); /* 0xBFC1506C: 10000042 beq $zero, $zero, 0xBFC15178 */ uint32_t psx_brA_BFC1506C = cpu->gpr[0]; uint32_t psx_brB_BFC1506C = cpu->gpr[0]; - int psx_taken_BFC1506C = (psx_brA_BFC1506C == psx_brB_BFC1506C); + psx_taken_BFC1506C = (psx_brA_BFC1506C == psx_brB_BFC1506C); /* 0xBFC15070: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC1506C) goto label_BFC15178; @@ -65864,7 +67850,7 @@ label_BFC15074: cpu->gpr[9] = cpu->gpr[8] & 0x2u; /* 0xBFC15080: 15200006 bne $t1, $zero, 0xBFC1509C */ uint32_t psx_brA_BFC15080 = cpu->gpr[9]; uint32_t psx_brB_BFC15080 = cpu->gpr[0]; - int psx_taken_BFC15080 = (psx_brA_BFC15080 != psx_brB_BFC15080); + psx_taken_BFC15080 = (psx_brA_BFC15080 != psx_brB_BFC15080); /* 0xBFC15084: 00000000 nop */ /* nop */ if (psx_taken_BFC15080) goto label_BFC1509C; @@ -65881,7 +67867,7 @@ label_BFC15088: cpu->gpr[11] = cpu->gpr[10] & 0x2u; /* 0xBFC15094: 1160FFFC beq $t3, $zero, 0xBFC15088 */ uint32_t psx_brA_BFC15094 = cpu->gpr[11]; uint32_t psx_brB_BFC15094 = cpu->gpr[0]; - int psx_taken_BFC15094 = (psx_brA_BFC15094 == psx_brB_BFC15094); + psx_taken_BFC15094 = (psx_brA_BFC15094 == psx_brB_BFC15094); /* 0xBFC15098: 00000000 nop */ /* nop */ if (psx_taken_BFC15094) goto label_BFC15088; @@ -65898,7 +67884,7 @@ label_BFC1509C: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[4] + (0))); /* 0xBFC150A8: 15800020 bne $t4, $zero, 0xBFC1512C */ uint32_t psx_brA_BFC150A8 = cpu->gpr[12]; uint32_t psx_brB_BFC150A8 = cpu->gpr[0]; - int psx_taken_BFC150A8 = (psx_brA_BFC150A8 != psx_brB_BFC150A8); + psx_taken_BFC150A8 = (psx_brA_BFC150A8 != psx_brB_BFC150A8); /* 0xBFC150AC: 24010047 addiu $at, $zero, 71 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (71)); if (psx_taken_BFC150A8) goto label_BFC1512C; @@ -65921,7 +67907,7 @@ label_BFC150B0: cpu->gpr[14] = cpu->gpr[2] & 0x4u; /* 0xBFC150C8: 11C00017 beq $t6, $zero, 0xBFC15128 */ uint32_t psx_brA_BFC150C8 = cpu->gpr[14]; uint32_t psx_brB_BFC150C8 = cpu->gpr[0]; - int psx_taken_BFC150C8 = (psx_brA_BFC150C8 == psx_brB_BFC150C8); + psx_taken_BFC150C8 = (psx_brA_BFC150C8 == psx_brB_BFC150C8); /* 0xBFC150CC: 3C010000 lui $at, 0x0 */ cpu->gpr[1] = 0x00000000u; if (psx_taken_BFC150C8) goto label_BFC15128; @@ -66000,7 +67986,7 @@ label_BFC1512C: psx_check_interrupts(cpu); /* 0xBFC1512C: 10610007 beq $v1, $at, 0xBFC1514C */ uint32_t psx_brA_BFC1512C = cpu->gpr[3]; uint32_t psx_brB_BFC1512C = cpu->gpr[1]; - int psx_taken_BFC1512C = (psx_brA_BFC1512C == psx_brB_BFC1512C); + psx_taken_BFC1512C = (psx_brA_BFC1512C == psx_brB_BFC1512C); /* 0xBFC15130: 2401004E addiu $at, $zero, 78 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (78)); if (psx_taken_BFC1512C) goto label_BFC1514C; @@ -66011,7 +67997,7 @@ label_BFC15134: psx_check_interrupts(cpu); /* 0xBFC15134: 10610007 beq $v1, $at, 0xBFC15154 */ uint32_t psx_brA_BFC15134 = cpu->gpr[3]; uint32_t psx_brB_BFC15134 = cpu->gpr[1]; - int psx_taken_BFC15134 = (psx_brA_BFC15134 == psx_brB_BFC15134); + psx_taken_BFC15134 = (psx_brA_BFC15134 == psx_brB_BFC15134); /* 0xBFC15138: 240100FF addiu $at, $zero, 255 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (255)); if (psx_taken_BFC15134) goto label_BFC15154; @@ -66022,7 +68008,7 @@ label_BFC1513C: psx_check_interrupts(cpu); /* 0xBFC1513C: 10610007 beq $v1, $at, 0xBFC1515C */ uint32_t psx_brA_BFC1513C = cpu->gpr[3]; uint32_t psx_brB_BFC1513C = cpu->gpr[1]; - int psx_taken_BFC1513C = (psx_brA_BFC1513C == psx_brB_BFC1513C); + psx_taken_BFC1513C = (psx_brA_BFC1513C == psx_brB_BFC1513C); /* 0xBFC15140: 00000000 nop */ /* nop */ if (psx_taken_BFC1513C) goto label_BFC1515C; @@ -66033,7 +68019,7 @@ label_BFC15144: psx_check_interrupts(cpu); /* 0xBFC15144: 10000007 beq $zero, $zero, 0xBFC15164 */ uint32_t psx_brA_BFC15144 = cpu->gpr[0]; uint32_t psx_brB_BFC15144 = cpu->gpr[0]; - int psx_taken_BFC15144 = (psx_brA_BFC15144 == psx_brB_BFC15144); + psx_taken_BFC15144 = (psx_brA_BFC15144 == psx_brB_BFC15144); /* 0xBFC15148: 00000000 nop */ /* nop */ if (psx_taken_BFC15144) goto label_BFC15164; @@ -66044,7 +68030,7 @@ label_BFC1514C: psx_check_interrupts(cpu); /* 0xBFC1514C: 1000000A beq $zero, $zero, 0xBFC15178 */ uint32_t psx_brA_BFC1514C = cpu->gpr[0]; uint32_t psx_brB_BFC1514C = cpu->gpr[0]; - int psx_taken_BFC1514C = (psx_brA_BFC1514C == psx_brB_BFC1514C); + psx_taken_BFC1514C = (psx_brA_BFC1514C == psx_brB_BFC1514C); /* 0xBFC15150: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1514C) goto label_BFC15178; @@ -66055,7 +68041,7 @@ label_BFC15154: psx_check_interrupts(cpu); /* 0xBFC15154: 10000008 beq $zero, $zero, 0xBFC15178 */ uint32_t psx_brA_BFC15154 = cpu->gpr[0]; uint32_t psx_brB_BFC15154 = cpu->gpr[0]; - int psx_taken_BFC15154 = (psx_brA_BFC15154 == psx_brB_BFC15154); + psx_taken_BFC15154 = (psx_brA_BFC15154 == psx_brB_BFC15154); /* 0xBFC15158: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC15154) goto label_BFC15178; @@ -66066,7 +68052,7 @@ label_BFC1515C: psx_check_interrupts(cpu); /* 0xBFC1515C: 10000006 beq $zero, $zero, 0xBFC15178 */ uint32_t psx_brA_BFC1515C = cpu->gpr[0]; uint32_t psx_brB_BFC1515C = cpu->gpr[0]; - int psx_taken_BFC1515C = (psx_brA_BFC1515C == psx_brB_BFC1515C); + psx_taken_BFC1515C = (psx_brA_BFC1515C == psx_brB_BFC1515C); /* 0xBFC15160: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC1515C) goto label_BFC15178; @@ -66077,7 +68063,7 @@ label_BFC15164: psx_check_interrupts(cpu); /* 0xBFC15164: 10000004 beq $zero, $zero, 0xBFC15178 */ uint32_t psx_brA_BFC15164 = cpu->gpr[0]; uint32_t psx_brB_BFC15164 = cpu->gpr[0]; - int psx_taken_BFC15164 = (psx_brA_BFC15164 == psx_brB_BFC15164); + psx_taken_BFC15164 = (psx_brA_BFC15164 == psx_brB_BFC15164); /* 0xBFC15168: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC15164) goto label_BFC15178; @@ -66088,7 +68074,7 @@ label_BFC1516C: psx_check_interrupts(cpu); /* 0xBFC1516C: 10000002 beq $zero, $zero, 0xBFC15178 */ uint32_t psx_brA_BFC1516C = cpu->gpr[0]; uint32_t psx_brB_BFC1516C = cpu->gpr[0]; - int psx_taken_BFC1516C = (psx_brA_BFC1516C == psx_brB_BFC1516C); + psx_taken_BFC1516C = (psx_brA_BFC1516C == psx_brB_BFC1516C); /* 0xBFC15170: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC1516C) goto label_BFC15178; @@ -66116,6 +68102,7 @@ label_BFC15178: void func_00005688(CPUState* cpu) { debug_server_log_call_entry(0x00005688u); + int psx_taken_BFC151C4 = 0; label_BFC15188: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(17u); @@ -66153,7 +68140,7 @@ label_BFC15188: cpu->gpr[1] = (uint32_t)(cpu->gpr[24] < 0x0000000Du ? 1 : 0); /* 0xBFC151C4: 10200120 beq $at, $zero, 0xBFC15648 */ uint32_t psx_brA_BFC151C4 = cpu->gpr[1]; uint32_t psx_brB_BFC151C4 = cpu->gpr[0]; - int psx_taken_BFC151C4 = (psx_brA_BFC151C4 == psx_brB_BFC151C4); + psx_taken_BFC151C4 = (psx_brA_BFC151C4 == psx_brB_BFC151C4); /* 0xBFC151C8: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC151C8u); return; } g_debug_last_store_pc = 0xBFC151C8u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC151C4) { cpu->pc = 0xBFC15648u; return; } @@ -66180,6 +68167,9 @@ label_BFC151CC: void func_000056E8(CPUState* cpu) { debug_server_log_call_entry(0x000056E8u); + int psx_taken_BFC151E8 = 0; + int psx_taken_BFC151F0 = 0; + int psx_taken_BFC15260 = 0; label_BFC151E8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -66187,7 +68177,7 @@ label_BFC151E8: psx_check_interrupts(cpu); /* 0xBFC151E8: 14E00004 bne $a3, $zero, 0xBFC151FC */ uint32_t psx_brA_BFC151E8 = cpu->gpr[7]; uint32_t psx_brB_BFC151E8 = cpu->gpr[0]; - int psx_taken_BFC151E8 = (psx_brA_BFC151E8 != psx_brB_BFC151E8); + psx_taken_BFC151E8 = (psx_brA_BFC151E8 != psx_brB_BFC151E8); /* 0xBFC151EC: 24022000 addiu $v0, $zero, 8192 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (8192)); if (psx_taken_BFC151E8) goto label_BFC151FC; @@ -66198,7 +68188,7 @@ label_BFC151F0: psx_check_interrupts(cpu); /* 0xBFC151F0: 10000002 beq $zero, $zero, 0xBFC151FC */ uint32_t psx_brA_BFC151F0 = cpu->gpr[0]; uint32_t psx_brB_BFC151F0 = cpu->gpr[0]; - int psx_taken_BFC151F0 = (psx_brA_BFC151F0 == psx_brB_BFC151F0); + psx_taken_BFC151F0 = (psx_brA_BFC151F0 == psx_brB_BFC151F0); /* 0xBFC151F4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC151F0) goto label_BFC151FC; @@ -66266,7 +68256,7 @@ label_BFC151FC: cpu->gpr[1] = 0x00000000u; /* 0xBFC15260: 100000FB beq $zero, $zero, 0xBFC15650 */ uint32_t psx_brA_BFC15260 = cpu->gpr[0]; uint32_t psx_brB_BFC15260 = cpu->gpr[0]; - int psx_taken_BFC15260 = (psx_brA_BFC15260 == psx_brB_BFC15260); + psx_taken_BFC15260 = (psx_brA_BFC15260 == psx_brB_BFC15260); /* 0xBFC15264: AC2274A0 sw $v0, 29856($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (29856)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15264u); return; } g_debug_last_store_pc = 0xBFC15264u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC15260) { cpu->pc = 0xBFC15650u; return; } @@ -66275,6 +68265,7 @@ label_BFC151FC: void func_00005768(CPUState* cpu) { debug_server_log_call_entry(0x00005768u); + int psx_taken_BFC15294 = 0; label_BFC15268: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -66304,7 +68295,7 @@ label_BFC15268: cpu->gpr[12] = (uint32_t)((int32_t)cpu->gpr[0] + (-129)); /* 0xBFC15294: 100000EE beq $zero, $zero, 0xBFC15650 */ uint32_t psx_brA_BFC15294 = cpu->gpr[0]; uint32_t psx_brB_BFC15294 = cpu->gpr[0]; - int psx_taken_BFC15294 = (psx_brA_BFC15294 == psx_brB_BFC15294); + psx_taken_BFC15294 = (psx_brA_BFC15294 == psx_brB_BFC15294); /* 0xBFC15298: ADAC0000 sw $t4, 0($t5) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[13] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15298u); return; } g_debug_last_store_pc = 0xBFC15298u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC15294) { cpu->pc = 0xBFC15650u; return; } @@ -66322,6 +68313,9 @@ void func_0000579C(CPUState* cpu) { default: break; } } + int psx_taken_BFC152D4 = 0; + int psx_taken_BFC152E0 = 0; + int psx_taken_BFC1532C = 0; label_BFC1529C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -66357,7 +68351,7 @@ label_BFC1529C: /* nop */ /* 0xBFC152D4: 150000DF bne $t0, $zero, 0xBFC15654 */ uint32_t psx_brA_BFC152D4 = cpu->gpr[8]; uint32_t psx_brB_BFC152D4 = cpu->gpr[0]; - int psx_taken_BFC152D4 = (psx_brA_BFC152D4 != psx_brB_BFC152D4); + psx_taken_BFC152D4 = (psx_brA_BFC152D4 != psx_brB_BFC152D4); /* 0xBFC152D8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC152D4) { cpu->pc = 0xBFC15654u; return; } @@ -66370,7 +68364,7 @@ label_BFC152DC: cpu->gpr[9] = cpu->gpr[4] & 0x8u; /* 0xBFC152E0: 112000DB beq $t1, $zero, 0xBFC15650 */ uint32_t psx_brA_BFC152E0 = cpu->gpr[9]; uint32_t psx_brB_BFC152E0 = cpu->gpr[0]; - int psx_taken_BFC152E0 = (psx_brA_BFC152E0 == psx_brB_BFC152E0); + psx_taken_BFC152E0 = (psx_brA_BFC152E0 == psx_brB_BFC152E0); /* 0xBFC152E4: 3C010000 lui $at, 0x0 */ cpu->gpr[1] = 0x00000000u; if (psx_taken_BFC152E0) { cpu->pc = 0xBFC15650u; return; } @@ -66427,7 +68421,7 @@ label_BFC15320: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (29984)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15328u); return; } g_debug_last_store_pc = 0xBFC15328u; cpu->write_word(psx_addr, cpu->gpr[12]); } /* 0xBFC1532C: 100000C9 beq $zero, $zero, 0xBFC15654 */ uint32_t psx_brA_BFC1532C = cpu->gpr[0]; uint32_t psx_brB_BFC1532C = cpu->gpr[0]; - int psx_taken_BFC1532C = (psx_brA_BFC1532C == psx_brB_BFC1532C); + psx_taken_BFC1532C = (psx_brA_BFC1532C == psx_brB_BFC1532C); /* 0xBFC15330: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC1532C) { cpu->pc = 0xBFC15654u; return; } @@ -66436,6 +68430,8 @@ label_BFC15320: void func_00005834(CPUState* cpu) { debug_server_log_call_entry(0x00005834u); + int psx_taken_BFC15360 = 0; + int psx_taken_BFC15368 = 0; label_BFC15334: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -66465,7 +68461,7 @@ label_BFC15334: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (90)); /* 0xBFC15360: 108100BB beq $a0, $at, 0xBFC15650 */ uint32_t psx_brA_BFC15360 = cpu->gpr[4]; uint32_t psx_brB_BFC15360 = cpu->gpr[1]; - int psx_taken_BFC15360 = (psx_brA_BFC15360 == psx_brB_BFC15360); + psx_taken_BFC15360 = (psx_brA_BFC15360 == psx_brB_BFC15360); /* 0xBFC15364: AF0F0000 sw $t7, 0($t8) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15364u); return; } g_debug_last_store_pc = 0xBFC15364u; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC15360) { cpu->pc = 0xBFC15650u; return; } @@ -66476,7 +68472,7 @@ label_BFC15368: psx_check_interrupts(cpu); /* 0xBFC15368: 100000BA beq $zero, $zero, 0xBFC15654 */ uint32_t psx_brA_BFC15368 = cpu->gpr[0]; uint32_t psx_brB_BFC15368 = cpu->gpr[0]; - int psx_taken_BFC15368 = (psx_brA_BFC15368 == psx_brB_BFC15368); + psx_taken_BFC15368 = (psx_brA_BFC15368 == psx_brB_BFC15368); /* 0xBFC1536C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC15368) { cpu->pc = 0xBFC15654u; return; } @@ -66485,6 +68481,8 @@ label_BFC15368: void func_00005870(CPUState* cpu) { debug_server_log_call_entry(0x00005870u); + int psx_taken_BFC153A4 = 0; + int psx_taken_BFC153AC = 0; label_BFC15370: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -66518,7 +68516,7 @@ label_BFC15370: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (93)); /* 0xBFC153A4: 108100AA beq $a0, $at, 0xBFC15650 */ uint32_t psx_brA_BFC153A4 = cpu->gpr[4]; uint32_t psx_brB_BFC153A4 = cpu->gpr[1]; - int psx_taken_BFC153A4 = (psx_brA_BFC153A4 == psx_brB_BFC153A4); + psx_taken_BFC153A4 = (psx_brA_BFC153A4 == psx_brB_BFC153A4); /* 0xBFC153A8: AD8B0000 sw $t3, 0($t4) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[12] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC153A8u); return; } g_debug_last_store_pc = 0xBFC153A8u; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC153A4) { cpu->pc = 0xBFC15650u; return; } @@ -66529,7 +68527,7 @@ label_BFC153AC: psx_check_interrupts(cpu); /* 0xBFC153AC: 100000A9 beq $zero, $zero, 0xBFC15654 */ uint32_t psx_brA_BFC153AC = cpu->gpr[0]; uint32_t psx_brB_BFC153AC = cpu->gpr[0]; - int psx_taken_BFC153AC = (psx_brA_BFC153AC == psx_brB_BFC153AC); + psx_taken_BFC153AC = (psx_brA_BFC153AC == psx_brB_BFC153AC); /* 0xBFC153B0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC153AC) { cpu->pc = 0xBFC15654u; return; } @@ -66538,6 +68536,7 @@ label_BFC153AC: void func_000058B4(CPUState* cpu) { debug_server_log_call_entry(0x000058B4u); + int psx_taken_BFC153E0 = 0; label_BFC153B4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -66567,7 +68566,7 @@ label_BFC153B4: cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[0] + (-129)); /* 0xBFC153E0: 1000009B beq $zero, $zero, 0xBFC15650 */ uint32_t psx_brA_BFC153E0 = cpu->gpr[0]; uint32_t psx_brB_BFC153E0 = cpu->gpr[0]; - int psx_taken_BFC153E0 = (psx_brA_BFC153E0 == psx_brB_BFC153E0); + psx_taken_BFC153E0 = (psx_brA_BFC153E0 == psx_brB_BFC153E0); /* 0xBFC153E4: AF380000 sw $t8, 0($t9) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[25] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC153E4u); return; } g_debug_last_store_pc = 0xBFC153E4u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC153E0) { cpu->pc = 0xBFC15650u; return; } @@ -66576,6 +68575,7 @@ label_BFC153B4: void func_000058E8(CPUState* cpu) { debug_server_log_call_entry(0x000058E8u); + int psx_taken_BFC15410 = 0; label_BFC153E8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -66603,7 +68603,7 @@ label_BFC153E8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[11] + (29276)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1540Cu); return; } cpu->gpr[11] = cpu->read_word(psx_addr); } /* 0xBFC15410: 1000008F beq $zero, $zero, 0xBFC15650 */ uint32_t psx_brA_BFC15410 = cpu->gpr[0]; uint32_t psx_brB_BFC15410 = cpu->gpr[0]; - int psx_taken_BFC15410 = (psx_brA_BFC15410 == psx_brB_BFC15410); + psx_taken_BFC15410 = (psx_brA_BFC15410 == psx_brB_BFC15410); /* 0xBFC15414: AD6A0000 sw $t2, 0($t3) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[11] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15414u); return; } g_debug_last_store_pc = 0xBFC15414u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC15410) { cpu->pc = 0xBFC15650u; return; } @@ -66612,6 +68612,8 @@ label_BFC153E8: void func_00005918(CPUState* cpu) { debug_server_log_call_entry(0x00005918u); + int psx_taken_BFC15444 = 0; + int psx_taken_BFC1544C = 0; label_BFC15418: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -66641,7 +68643,7 @@ label_BFC15418: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (92)); /* 0xBFC15444: 10810082 beq $a0, $at, 0xBFC15650 */ uint32_t psx_brA_BFC15444 = cpu->gpr[4]; uint32_t psx_brB_BFC15444 = cpu->gpr[1]; - int psx_taken_BFC15444 = (psx_brA_BFC15444 == psx_brB_BFC15444); + psx_taken_BFC15444 = (psx_brA_BFC15444 == psx_brB_BFC15444); /* 0xBFC15448: ADEE0000 sw $t6, 0($t7) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[15] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15448u); return; } g_debug_last_store_pc = 0xBFC15448u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC15444) { cpu->pc = 0xBFC15650u; return; } @@ -66652,7 +68654,7 @@ label_BFC1544C: psx_check_interrupts(cpu); /* 0xBFC1544C: 10000081 beq $zero, $zero, 0xBFC15654 */ uint32_t psx_brA_BFC1544C = cpu->gpr[0]; uint32_t psx_brB_BFC1544C = cpu->gpr[0]; - int psx_taken_BFC1544C = (psx_brA_BFC1544C == psx_brB_BFC1544C); + psx_taken_BFC1544C = (psx_brA_BFC1544C == psx_brB_BFC1544C); /* 0xBFC15450: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC1544C) { cpu->pc = 0xBFC15654u; return; } @@ -66661,6 +68663,8 @@ label_BFC1544C: void func_00005954(CPUState* cpu) { debug_server_log_call_entry(0x00005954u); + int psx_taken_BFC15480 = 0; + int psx_taken_BFC15488 = 0; label_BFC15454: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -66690,7 +68694,7 @@ label_BFC15454: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (93)); /* 0xBFC15480: 10810073 beq $a0, $at, 0xBFC15650 */ uint32_t psx_brA_BFC15480 = cpu->gpr[4]; uint32_t psx_brB_BFC15480 = cpu->gpr[1]; - int psx_taken_BFC15480 = (psx_brA_BFC15480 == psx_brB_BFC15480); + psx_taken_BFC15480 = (psx_brA_BFC15480 == psx_brB_BFC15480); /* 0xBFC15484: AD280000 sw $t0, 0($t1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15484u); return; } g_debug_last_store_pc = 0xBFC15484u; cpu->write_word(psx_addr, cpu->gpr[8]); } if (psx_taken_BFC15480) { cpu->pc = 0xBFC15650u; return; } @@ -66701,7 +68705,7 @@ label_BFC15488: psx_check_interrupts(cpu); /* 0xBFC15488: 10000072 beq $zero, $zero, 0xBFC15654 */ uint32_t psx_brA_BFC15488 = cpu->gpr[0]; uint32_t psx_brB_BFC15488 = cpu->gpr[0]; - int psx_taken_BFC15488 = (psx_brA_BFC15488 == psx_brB_BFC15488); + psx_taken_BFC15488 = (psx_brA_BFC15488 == psx_brB_BFC15488); /* 0xBFC1548C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC15488) { cpu->pc = 0xBFC15654u; return; } @@ -66710,6 +68714,8 @@ label_BFC15488: void func_00005990(CPUState* cpu) { debug_server_log_call_entry(0x00005990u); + int psx_taken_BFC154C0 = 0; + int psx_taken_BFC154C8 = 0; label_BFC15490: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -66741,7 +68747,7 @@ label_BFC15490: cpu->gpr[2] = cpu->gpr[2] & 0xFFu; /* 0xBFC154C0: 10820003 beq $a0, $v0, 0xBFC154D0 */ uint32_t psx_brA_BFC154C0 = cpu->gpr[4]; uint32_t psx_brB_BFC154C0 = cpu->gpr[2]; - int psx_taken_BFC154C0 = (psx_brA_BFC154C0 == psx_brB_BFC154C0); + psx_taken_BFC154C0 = (psx_brA_BFC154C0 == psx_brB_BFC154C0); /* 0xBFC154C4: ADAC0000 sw $t4, 0($t5) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[13] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC154C4u); return; } g_debug_last_store_pc = 0xBFC154C4u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC154C0) { cpu->pc = 0xBFC154D0u; return; } @@ -66752,7 +68758,7 @@ label_BFC154C8: psx_check_interrupts(cpu); /* 0xBFC154C8: 10000062 beq $zero, $zero, 0xBFC15654 */ uint32_t psx_brA_BFC154C8 = cpu->gpr[0]; uint32_t psx_brB_BFC154C8 = cpu->gpr[0]; - int psx_taken_BFC154C8 = (psx_brA_BFC154C8 == psx_brB_BFC154C8); + psx_taken_BFC154C8 = (psx_brA_BFC154C8 == psx_brB_BFC154C8); /* DELAY (orphaned) 0xBFC154CC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC154C8) { cpu->pc = 0xBFC15654u; return; } @@ -66769,6 +68775,7 @@ void func_000059CC(CPUState* cpu) { default: break; } } + int psx_taken_BFC154F8 = 0; label_BFC154CC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -66803,7 +68810,7 @@ label_BFC154D0: cpu->gpr[1] = cpu->gpr[1] + cpu->gpr[7]; /* 0xBFC154F8: 10000055 beq $zero, $zero, 0xBFC15650 */ uint32_t psx_brA_BFC154F8 = cpu->gpr[0]; uint32_t psx_brB_BFC154F8 = cpu->gpr[0]; - int psx_taken_BFC154F8 = (psx_brA_BFC154F8 == psx_brB_BFC154F8); + psx_taken_BFC154F8 = (psx_brA_BFC154F8 == psx_brB_BFC154F8); /* 0xBFC154FC: A0207558 sb $zero, 30040($at) */ g_debug_last_store_pc = 0xBFC154FCu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[1] + (30040)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC154F8) { cpu->pc = 0xBFC15650u; return; } @@ -66826,6 +68833,8 @@ label_BFC15500: void func_00005A08(CPUState* cpu) { debug_server_log_call_entry(0x00005A08u); + int psx_taken_BFC15538 = 0; + int psx_taken_BFC15540 = 0; label_BFC15508: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -66857,7 +68866,7 @@ label_BFC15508: cpu->gpr[14] = cpu->gpr[6] & 0xFFu; /* 0xBFC15538: 108E0003 beq $a0, $t6, 0xBFC15548 */ uint32_t psx_brA_BFC15538 = cpu->gpr[4]; uint32_t psx_brB_BFC15538 = cpu->gpr[14]; - int psx_taken_BFC15538 = (psx_brA_BFC15538 == psx_brB_BFC15538); + psx_taken_BFC15538 = (psx_brA_BFC15538 == psx_brB_BFC15538); /* 0xBFC1553C: ADAC0000 sw $t4, 0($t5) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[13] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1553Cu); return; } g_debug_last_store_pc = 0xBFC1553Cu; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC15538) { cpu->pc = 0xBFC15548u; return; } @@ -66868,7 +68877,7 @@ label_BFC15540: psx_check_interrupts(cpu); /* 0xBFC15540: 10000044 beq $zero, $zero, 0xBFC15654 */ uint32_t psx_brA_BFC15540 = cpu->gpr[0]; uint32_t psx_brB_BFC15540 = cpu->gpr[0]; - int psx_taken_BFC15540 = (psx_brA_BFC15540 == psx_brB_BFC15540); + psx_taken_BFC15540 = (psx_brA_BFC15540 == psx_brB_BFC15540); /* DELAY (orphaned) 0xBFC15544: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC15540) { cpu->pc = 0xBFC15654u; return; } @@ -66886,6 +68895,7 @@ void func_00005A44(CPUState* cpu) { default: break; } } + int psx_taken_BFC15550 = 0; label_BFC15544: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -66910,7 +68920,7 @@ label_BFC15550: psx_check_interrupts(cpu); /* 0xBFC15550: 10000040 beq $zero, $zero, 0xBFC15654 */ uint32_t psx_brA_BFC15550 = cpu->gpr[0]; uint32_t psx_brB_BFC15550 = cpu->gpr[0]; - int psx_taken_BFC15550 = (psx_brA_BFC15550 == psx_brB_BFC15550); + psx_taken_BFC15550 = (psx_brA_BFC15550 == psx_brB_BFC15550); /* 0xBFC15554: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC15550) { cpu->pc = 0xBFC15654u; return; } @@ -66949,6 +68959,7 @@ label_BFC15558: void func_00005A80(CPUState* cpu) { debug_server_log_call_entry(0x00005A80u); + int psx_taken_BFC155A8 = 0; label_BFC15580: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -66976,7 +68987,7 @@ label_BFC15580: cpu->gpr[13] = cpu->gpr[11] ^ cpu->gpr[12]; /* 0xBFC155A8: 10000029 beq $zero, $zero, 0xBFC15650 */ uint32_t psx_brA_BFC155A8 = cpu->gpr[0]; uint32_t psx_brB_BFC155A8 = cpu->gpr[0]; - int psx_taken_BFC155A8 = (psx_brA_BFC155A8 == psx_brB_BFC155A8); + psx_taken_BFC155A8 = (psx_brA_BFC155A8 == psx_brB_BFC155A8); /* 0xBFC155AC: AC4D0000 sw $t5, 0($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC155ACu); return; } g_debug_last_store_pc = 0xBFC155ACu; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC155A8) { cpu->pc = 0xBFC15650u; return; } @@ -67001,6 +69012,7 @@ label_BFC155B0: void func_00005ABC(CPUState* cpu) { debug_server_log_call_entry(0x00005ABCu); + int psx_taken_BFC155F0 = 0; label_BFC155BC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -67034,7 +69046,7 @@ label_BFC155BC: /* nop */ /* 0xBFC155F0: 10890003 beq $a0, $t1, 0xBFC15600 */ uint32_t psx_brA_BFC155F0 = cpu->gpr[4]; uint32_t psx_brB_BFC155F0 = cpu->gpr[9]; - int psx_taken_BFC155F0 = (psx_brA_BFC155F0 == psx_brB_BFC155F0); + psx_taken_BFC155F0 = (psx_brA_BFC155F0 == psx_brB_BFC155F0); /* 0xBFC155F4: 00000000 nop */ /* nop */ if (psx_taken_BFC155F0) { cpu->pc = 0xBFC15600u; return; } @@ -67051,6 +69063,10 @@ void func_00005AF8(CPUState* cpu) { default: break; } } + int psx_taken_BFC155F8 = 0; + int psx_taken_BFC1560C = 0; + int psx_taken_BFC15620 = 0; + int psx_taken_BFC15630 = 0; label_BFC155F8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -67058,7 +69074,7 @@ label_BFC155F8: psx_check_interrupts(cpu); /* 0xBFC155F8: 10000016 beq $zero, $zero, 0xBFC15654 */ uint32_t psx_brA_BFC155F8 = cpu->gpr[0]; uint32_t psx_brB_BFC155F8 = cpu->gpr[0]; - int psx_taken_BFC155F8 = (psx_brA_BFC155F8 == psx_brB_BFC155F8); + psx_taken_BFC155F8 = (psx_brA_BFC155F8 == psx_brB_BFC155F8); /* 0xBFC155FC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC155F8) { cpu->pc = 0xBFC15654u; return; } @@ -67075,7 +69091,7 @@ label_BFC15600: cpu->gpr[11] = cpu->gpr[10] & 0x2u; /* 0xBFC1560C: 15600006 bne $t3, $zero, 0xBFC15628 */ uint32_t psx_brA_BFC1560C = cpu->gpr[11]; uint32_t psx_brB_BFC1560C = cpu->gpr[0]; - int psx_taken_BFC1560C = (psx_brA_BFC1560C != psx_brB_BFC1560C); + psx_taken_BFC1560C = (psx_brA_BFC1560C != psx_brB_BFC1560C); /* 0xBFC15610: 00000000 nop */ /* nop */ if (psx_taken_BFC1560C) goto label_BFC15628; @@ -67092,7 +69108,7 @@ label_BFC15614: cpu->gpr[13] = cpu->gpr[12] & 0x2u; /* 0xBFC15620: 11A0FFFC beq $t5, $zero, 0xBFC15614 */ uint32_t psx_brA_BFC15620 = cpu->gpr[13]; uint32_t psx_brB_BFC15620 = cpu->gpr[0]; - int psx_taken_BFC15620 = (psx_brA_BFC15620 == psx_brB_BFC15620); + psx_taken_BFC15620 = (psx_brA_BFC15620 == psx_brB_BFC15620); /* 0xBFC15624: 00000000 nop */ /* nop */ if (psx_taken_BFC15620) goto label_BFC15614; @@ -67107,7 +69123,7 @@ label_BFC15628: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (71)); /* 0xBFC15630: 10810003 beq $a0, $at, 0xBFC15640 */ uint32_t psx_brA_BFC15630 = cpu->gpr[4]; uint32_t psx_brB_BFC15630 = cpu->gpr[1]; - int psx_taken_BFC15630 = (psx_brA_BFC15630 == psx_brB_BFC15630); + psx_taken_BFC15630 = (psx_brA_BFC15630 == psx_brB_BFC15630); /* DELAY (orphaned) 0xBFC15634: 00000000 nop */ /* nop */ if (psx_taken_BFC15630) { cpu->pc = 0xBFC15640u; return; } @@ -67125,6 +69141,9 @@ void func_00005B34(CPUState* cpu) { default: break; } } + int psx_taken_BFC15638 = 0; + int psx_taken_BFC15640 = 0; + int psx_taken_BFC15648 = 0; label_BFC15634: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -67134,7 +69153,7 @@ label_BFC15634: /* nop */ /* 0xBFC15638: 10000006 beq $zero, $zero, 0xBFC15654 */ uint32_t psx_brA_BFC15638 = cpu->gpr[0]; uint32_t psx_brB_BFC15638 = cpu->gpr[0]; - int psx_taken_BFC15638 = (psx_brA_BFC15638 == psx_brB_BFC15638); + psx_taken_BFC15638 = (psx_brA_BFC15638 == psx_brB_BFC15638); /* 0xBFC1563C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC15638) { cpu->pc = 0xBFC15654u; return; } @@ -67145,7 +69164,7 @@ label_BFC15640: psx_check_interrupts(cpu); /* 0xBFC15640: 10000004 beq $zero, $zero, 0xBFC15654 */ uint32_t psx_brA_BFC15640 = cpu->gpr[0]; uint32_t psx_brB_BFC15640 = cpu->gpr[0]; - int psx_taken_BFC15640 = (psx_brA_BFC15640 == psx_brB_BFC15640); + psx_taken_BFC15640 = (psx_brA_BFC15640 == psx_brB_BFC15640); /* 0xBFC15644: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC15640) { cpu->pc = 0xBFC15654u; return; } @@ -67156,7 +69175,7 @@ label_BFC15648: psx_check_interrupts(cpu); /* 0xBFC15648: 10000002 beq $zero, $zero, 0xBFC15654 */ uint32_t psx_brA_BFC15648 = cpu->gpr[0]; uint32_t psx_brB_BFC15648 = cpu->gpr[0]; - int psx_taken_BFC15648 = (psx_brA_BFC15648 == psx_brB_BFC15648); + psx_taken_BFC15648 = (psx_brA_BFC15648 == psx_brB_BFC15648); /* 0xBFC1564C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC15648) { cpu->pc = 0xBFC15654u; return; } @@ -67194,6 +69213,7 @@ label_BFC15654: void func_00005B64(CPUState* cpu) { debug_server_log_call_entry(0x00005B64u); + int psx_taken_BFC15680 = 0; label_BFC15664: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -67215,7 +69235,7 @@ label_BFC15664: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < 0x00000004u ? 1 : 0); /* 0xBFC15680: 10200082 beq $at, $zero, 0xBFC1588C */ uint32_t psx_brA_BFC15680 = cpu->gpr[1]; uint32_t psx_brB_BFC15680 = cpu->gpr[0]; - int psx_taken_BFC15680 = (psx_brA_BFC15680 == psx_brB_BFC15680); + psx_taken_BFC15680 = (psx_brA_BFC15680 == psx_brB_BFC15680); /* 0xBFC15684: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15684u); return; } g_debug_last_store_pc = 0xBFC15684u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC15680) { cpu->pc = 0xBFC1588Cu; return; } @@ -67242,6 +69262,9 @@ label_BFC15688: void func_00005BA4(CPUState* cpu) { debug_server_log_call_entry(0x00005BA4u); + int psx_taken_BFC156A4 = 0; + int psx_taken_BFC156AC = 0; + int psx_taken_BFC1571C = 0; label_BFC156A4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -67249,7 +69272,7 @@ label_BFC156A4: psx_check_interrupts(cpu); /* 0xBFC156A4: 14800004 bne $a0, $zero, 0xBFC156B8 */ uint32_t psx_brA_BFC156A4 = cpu->gpr[4]; uint32_t psx_brB_BFC156A4 = cpu->gpr[0]; - int psx_taken_BFC156A4 = (psx_brA_BFC156A4 != psx_brB_BFC156A4); + psx_taken_BFC156A4 = (psx_brA_BFC156A4 != psx_brB_BFC156A4); /* 0xBFC156A8: 24032000 addiu $v1, $zero, 8192 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (8192)); if (psx_taken_BFC156A4) goto label_BFC156B8; @@ -67260,7 +69283,7 @@ label_BFC156AC: psx_check_interrupts(cpu); /* 0xBFC156AC: 10000002 beq $zero, $zero, 0xBFC156B8 */ uint32_t psx_brA_BFC156AC = cpu->gpr[0]; uint32_t psx_brB_BFC156AC = cpu->gpr[0]; - int psx_taken_BFC156AC = (psx_brA_BFC156AC == psx_brB_BFC156AC); + psx_taken_BFC156AC = (psx_brA_BFC156AC == psx_brB_BFC156AC); /* 0xBFC156B0: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC156AC) goto label_BFC156B8; @@ -67328,7 +69351,7 @@ label_BFC156B8: cpu->gpr[1] = 0x00000000u; /* 0xBFC1571C: 1000005D beq $zero, $zero, 0xBFC15894 */ uint32_t psx_brA_BFC1571C = cpu->gpr[0]; uint32_t psx_brB_BFC1571C = cpu->gpr[0]; - int psx_taken_BFC1571C = (psx_brA_BFC1571C == psx_brB_BFC1571C); + psx_taken_BFC1571C = (psx_brA_BFC1571C == psx_brB_BFC1571C); /* 0xBFC15720: AC2374A0 sw $v1, 29856($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (29856)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15720u); return; } g_debug_last_store_pc = 0xBFC15720u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC1571C) { cpu->pc = 0xBFC15894u; return; } @@ -67337,6 +69360,7 @@ label_BFC156B8: void func_00005C24(CPUState* cpu) { debug_server_log_call_entry(0x00005C24u); + int psx_taken_BFC15750 = 0; label_BFC15724: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -67366,7 +69390,7 @@ label_BFC15724: cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[0] + (-129)); /* 0xBFC15750: 10000050 beq $zero, $zero, 0xBFC15894 */ uint32_t psx_brA_BFC15750 = cpu->gpr[0]; uint32_t psx_brB_BFC15750 = cpu->gpr[0]; - int psx_taken_BFC15750 = (psx_brA_BFC15750 == psx_brB_BFC15750); + psx_taken_BFC15750 = (psx_brA_BFC15750 == psx_brB_BFC15750); /* 0xBFC15754: AD6A0000 sw $t2, 0($t3) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[11] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15754u); return; } g_debug_last_store_pc = 0xBFC15754u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC15750) { cpu->pc = 0xBFC15894u; return; } @@ -67386,6 +69410,11 @@ void func_00005C58(CPUState* cpu) { default: break; } } + int psx_taken_BFC15790 = 0; + int psx_taken_BFC1579C = 0; + int psx_taken_BFC157E8 = 0; + int psx_taken_BFC157F4 = 0; + int psx_taken_BFC15840 = 0; label_BFC15758: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -67421,7 +69450,7 @@ label_BFC15758: /* nop */ /* 0xBFC15790: 17000041 bne $t8, $zero, 0xBFC15898 */ uint32_t psx_brA_BFC15790 = cpu->gpr[24]; uint32_t psx_brB_BFC15790 = cpu->gpr[0]; - int psx_taken_BFC15790 = (psx_brA_BFC15790 != psx_brB_BFC15790); + psx_taken_BFC15790 = (psx_brA_BFC15790 != psx_brB_BFC15790); /* 0xBFC15794: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC15790) { cpu->pc = 0xBFC15898u; return; } @@ -67434,7 +69463,7 @@ label_BFC15798: cpu->gpr[25] = cpu->gpr[3] & 0x4u; /* 0xBFC1579C: 13200014 beq $t9, $zero, 0xBFC157F0 */ uint32_t psx_brA_BFC1579C = cpu->gpr[25]; uint32_t psx_brB_BFC1579C = cpu->gpr[0]; - int psx_taken_BFC1579C = (psx_brA_BFC1579C == psx_brB_BFC1579C); + psx_taken_BFC1579C = (psx_brA_BFC1579C == psx_brB_BFC1579C); /* 0xBFC157A0: 3C010000 lui $at, 0x0 */ cpu->gpr[1] = 0x00000000u; if (psx_taken_BFC1579C) goto label_BFC157F0; @@ -67491,7 +69520,7 @@ label_BFC157DC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (29984)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC157E4u); return; } g_debug_last_store_pc = 0xBFC157E4u; cpu->write_word(psx_addr, cpu->gpr[10]); } /* 0xBFC157E8: 1000002B beq $zero, $zero, 0xBFC15898 */ uint32_t psx_brA_BFC157E8 = cpu->gpr[0]; uint32_t psx_brB_BFC157E8 = cpu->gpr[0]; - int psx_taken_BFC157E8 = (psx_brA_BFC157E8 == psx_brB_BFC157E8); + psx_taken_BFC157E8 = (psx_brA_BFC157E8 == psx_brB_BFC157E8); /* 0xBFC157EC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC157E8) { cpu->pc = 0xBFC15898u; return; } @@ -67504,7 +69533,7 @@ label_BFC157F0: cpu->gpr[11] = cpu->gpr[3] & 0x8u; /* 0xBFC157F4: 11600027 beq $t3, $zero, 0xBFC15894 */ uint32_t psx_brA_BFC157F4 = cpu->gpr[11]; uint32_t psx_brB_BFC157F4 = cpu->gpr[0]; - int psx_taken_BFC157F4 = (psx_brA_BFC157F4 == psx_brB_BFC157F4); + psx_taken_BFC157F4 = (psx_brA_BFC157F4 == psx_brB_BFC157F4); /* 0xBFC157F8: 3C010000 lui $at, 0x0 */ cpu->gpr[1] = 0x00000000u; if (psx_taken_BFC157F4) { cpu->pc = 0xBFC15894u; return; } @@ -67561,7 +69590,7 @@ label_BFC15834: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (29984)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1583Cu); return; } g_debug_last_store_pc = 0xBFC1583Cu; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC15840: 10000015 beq $zero, $zero, 0xBFC15898 */ uint32_t psx_brA_BFC15840 = cpu->gpr[0]; uint32_t psx_brB_BFC15840 = cpu->gpr[0]; - int psx_taken_BFC15840 = (psx_brA_BFC15840 == psx_brB_BFC15840); + psx_taken_BFC15840 = (psx_brA_BFC15840 == psx_brB_BFC15840); /* 0xBFC15844: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC15840) { cpu->pc = 0xBFC15898u; return; } @@ -67578,6 +69607,10 @@ void func_00005D48(CPUState* cpu) { default: break; } } + int psx_taken_BFC15874 = 0; + int psx_taken_BFC1587C = 0; + int psx_taken_BFC15884 = 0; + int psx_taken_BFC1588C = 0; label_BFC15848: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -67607,7 +69640,7 @@ label_BFC15848: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (90)); /* 0xBFC15874: 10610003 beq $v1, $at, 0xBFC15884 */ uint32_t psx_brA_BFC15874 = cpu->gpr[3]; uint32_t psx_brB_BFC15874 = cpu->gpr[1]; - int psx_taken_BFC15874 = (psx_brA_BFC15874 == psx_brB_BFC15874); + psx_taken_BFC15874 = (psx_brA_BFC15874 == psx_brB_BFC15874); /* 0xBFC15878: AD190000 sw $t9, 0($t0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[8] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15878u); return; } g_debug_last_store_pc = 0xBFC15878u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC15874) goto label_BFC15884; @@ -67618,7 +69651,7 @@ label_BFC1587C: psx_check_interrupts(cpu); /* 0xBFC1587C: 10000006 beq $zero, $zero, 0xBFC15898 */ uint32_t psx_brA_BFC1587C = cpu->gpr[0]; uint32_t psx_brB_BFC1587C = cpu->gpr[0]; - int psx_taken_BFC1587C = (psx_brA_BFC1587C == psx_brB_BFC1587C); + psx_taken_BFC1587C = (psx_brA_BFC1587C == psx_brB_BFC1587C); /* 0xBFC15880: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC1587C) { cpu->pc = 0xBFC15898u; return; } @@ -67629,7 +69662,7 @@ label_BFC15884: psx_check_interrupts(cpu); /* 0xBFC15884: 10000004 beq $zero, $zero, 0xBFC15898 */ uint32_t psx_brA_BFC15884 = cpu->gpr[0]; uint32_t psx_brB_BFC15884 = cpu->gpr[0]; - int psx_taken_BFC15884 = (psx_brA_BFC15884 == psx_brB_BFC15884); + psx_taken_BFC15884 = (psx_brA_BFC15884 == psx_brB_BFC15884); /* 0xBFC15888: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC15884) { cpu->pc = 0xBFC15898u; return; } @@ -67640,7 +69673,7 @@ label_BFC1588C: psx_check_interrupts(cpu); /* 0xBFC1588C: 10000002 beq $zero, $zero, 0xBFC15898 */ uint32_t psx_brA_BFC1588C = cpu->gpr[0]; uint32_t psx_brB_BFC1588C = cpu->gpr[0]; - int psx_taken_BFC1588C = (psx_brA_BFC1588C == psx_brB_BFC1588C); + psx_taken_BFC1588C = (psx_brA_BFC1588C == psx_brB_BFC1588C); /* 0xBFC15890: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC1588C) { cpu->pc = 0xBFC15898u; return; } @@ -67835,6 +69868,10 @@ label_BFC15930: void func_00005E50(CPUState* cpu) { debug_server_log_call_entry(0x00005E50u); + int psx_taken_BFC15958 = 0; + int psx_taken_BFC15978 = 0; + int psx_taken_BFC15980 = 0; + int psx_taken_BFC15988 = 0; label_BFC15950: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -67846,7 +69883,7 @@ label_BFC15950: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[14] + (30056)); /* 0xBFC15958: 04810002 bgez $a0, 0xBFC15964 */ uint32_t psx_brA_BFC15958 = cpu->gpr[4]; - int psx_taken_BFC15958 = ((int32_t)psx_brA_BFC15958 >= 0); + psx_taken_BFC15958 = ((int32_t)psx_brA_BFC15958 >= 0); /* 0xBFC1595C: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC15958) goto label_BFC15964; @@ -67874,7 +69911,7 @@ label_BFC15964: cpu->gpr[15] = cpu->gpr[2] & 0x1u; /* 0xBFC15978: 11E00005 beq $t7, $zero, 0xBFC15990 */ uint32_t psx_brA_BFC15978 = cpu->gpr[15]; uint32_t psx_brB_BFC15978 = cpu->gpr[0]; - int psx_taken_BFC15978 = (psx_brA_BFC15978 == psx_brB_BFC15978); + psx_taken_BFC15978 = (psx_brA_BFC15978 == psx_brB_BFC15978); /* 0xBFC1597C: 00000000 nop */ /* nop */ if (psx_taken_BFC15978) goto label_BFC15990; @@ -67885,7 +69922,7 @@ label_BFC15980: psx_check_interrupts(cpu); /* 0xBFC15980: 04A00003 bltz $a1, 0xBFC15990 */ uint32_t psx_brA_BFC15980 = cpu->gpr[5]; - int psx_taken_BFC15980 = ((int32_t)psx_brA_BFC15980 < 0); + psx_taken_BFC15980 = ((int32_t)psx_brA_BFC15980 < 0); /* 0xBFC15984: 28A10401 slti $at, $a1, 1025 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[5] < (1025) ? 1 : 0); if (psx_taken_BFC15980) goto label_BFC15990; @@ -67896,7 +69933,7 @@ label_BFC15988: psx_check_interrupts(cpu); /* 0xBFC15988: 14200003 bne $at, $zero, 0xBFC15998 */ uint32_t psx_brA_BFC15988 = cpu->gpr[1]; uint32_t psx_brB_BFC15988 = cpu->gpr[0]; - int psx_taken_BFC15988 = (psx_brA_BFC15988 != psx_brB_BFC15988); + psx_taken_BFC15988 = (psx_brA_BFC15988 != psx_brB_BFC15988); /* 0xBFC1598C: 00000000 nop */ /* nop */ if (psx_taken_BFC15988) { cpu->pc = 0xBFC15998u; return; } @@ -67986,6 +70023,10 @@ label_BFC159F4: void func_00005F04(CPUState* cpu) { debug_server_log_call_entry(0x00005F04u); + int psx_taken_BFC15A0C = 0; + int psx_taken_BFC15A2C = 0; + int psx_taken_BFC15A34 = 0; + int psx_taken_BFC15A3C = 0; label_BFC15A04: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -67997,7 +70038,7 @@ label_BFC15A04: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[14] + (30056)); /* 0xBFC15A0C: 04810002 bgez $a0, 0xBFC15A18 */ uint32_t psx_brA_BFC15A0C = cpu->gpr[4]; - int psx_taken_BFC15A0C = ((int32_t)psx_brA_BFC15A0C >= 0); + psx_taken_BFC15A0C = ((int32_t)psx_brA_BFC15A0C >= 0); /* 0xBFC15A10: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC15A0C) goto label_BFC15A18; @@ -68025,7 +70066,7 @@ label_BFC15A18: cpu->gpr[15] = cpu->gpr[2] & 0x1u; /* 0xBFC15A2C: 11E00005 beq $t7, $zero, 0xBFC15A44 */ uint32_t psx_brA_BFC15A2C = cpu->gpr[15]; uint32_t psx_brB_BFC15A2C = cpu->gpr[0]; - int psx_taken_BFC15A2C = (psx_brA_BFC15A2C == psx_brB_BFC15A2C); + psx_taken_BFC15A2C = (psx_brA_BFC15A2C == psx_brB_BFC15A2C); /* 0xBFC15A30: 00000000 nop */ /* nop */ if (psx_taken_BFC15A2C) goto label_BFC15A44; @@ -68036,7 +70077,7 @@ label_BFC15A34: psx_check_interrupts(cpu); /* 0xBFC15A34: 04A00003 bltz $a1, 0xBFC15A44 */ uint32_t psx_brA_BFC15A34 = cpu->gpr[5]; - int psx_taken_BFC15A34 = ((int32_t)psx_brA_BFC15A34 < 0); + psx_taken_BFC15A34 = ((int32_t)psx_brA_BFC15A34 < 0); /* 0xBFC15A38: 28A10401 slti $at, $a1, 1025 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[5] < (1025) ? 1 : 0); if (psx_taken_BFC15A34) goto label_BFC15A44; @@ -68047,7 +70088,7 @@ label_BFC15A3C: psx_check_interrupts(cpu); /* 0xBFC15A3C: 14200003 bne $at, $zero, 0xBFC15A4C */ uint32_t psx_brA_BFC15A3C = cpu->gpr[1]; uint32_t psx_brB_BFC15A3C = cpu->gpr[0]; - int psx_taken_BFC15A3C = (psx_brA_BFC15A3C != psx_brB_BFC15A3C); + psx_taken_BFC15A3C = (psx_brA_BFC15A3C != psx_brB_BFC15A3C); /* 0xBFC15A40: 00000000 nop */ /* nop */ if (psx_taken_BFC15A3C) { cpu->pc = 0xBFC15A4Cu; return; } @@ -68137,6 +70178,8 @@ label_BFC15AA8: void func_00005FB8(CPUState* cpu) { debug_server_log_call_entry(0x00005FB8u); + int psx_taken_BFC15AC0 = 0; + int psx_taken_BFC15AE0 = 0; label_BFC15AB8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -68148,7 +70191,7 @@ label_BFC15AB8: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[14] + (30056)); /* 0xBFC15AC0: 04810002 bgez $a0, 0xBFC15ACC */ uint32_t psx_brA_BFC15AC0 = cpu->gpr[4]; - int psx_taken_BFC15AC0 = ((int32_t)psx_brA_BFC15AC0 >= 0); + psx_taken_BFC15AC0 = ((int32_t)psx_brA_BFC15AC0 >= 0); /* 0xBFC15AC4: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC15AC0) goto label_BFC15ACC; @@ -68176,7 +70219,7 @@ label_BFC15ACC: cpu->gpr[15] = cpu->gpr[2] & 0x1u; /* 0xBFC15AE0: 15E00003 bne $t7, $zero, 0xBFC15AF0 */ uint32_t psx_brA_BFC15AE0 = cpu->gpr[15]; uint32_t psx_brB_BFC15AE0 = cpu->gpr[0]; - int psx_taken_BFC15AE0 = (psx_brA_BFC15AE0 != psx_brB_BFC15AE0); + psx_taken_BFC15AE0 = (psx_brA_BFC15AE0 != psx_brB_BFC15AE0); /* 0xBFC15AE4: 00000000 nop */ /* nop */ if (psx_taken_BFC15AE0) { cpu->pc = 0xBFC15AF0u; return; } @@ -68275,6 +70318,7 @@ label_BFC15B5C: void func_00006070(CPUState* cpu) { debug_server_log_call_entry(0x00006070u); + int psx_taken_BFC15B88 = 0; label_BFC15B70: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -68299,7 +70343,7 @@ label_BFC15B7C: cpu->gpr[15] = cpu->gpr[2] & 0x1u; /* 0xBFC15B88: 11E0FFFC beq $t7, $zero, 0xBFC15B7C */ uint32_t psx_brA_BFC15B88 = cpu->gpr[15]; uint32_t psx_brB_BFC15B88 = cpu->gpr[0]; - int psx_taken_BFC15B88 = (psx_brA_BFC15B88 == psx_brB_BFC15B88); + psx_taken_BFC15B88 = (psx_brA_BFC15B88 == psx_brB_BFC15B88); /* 0xBFC15B8C: 00000000 nop */ /* nop */ if (psx_taken_BFC15B88) goto label_BFC15B7C; @@ -68330,6 +70374,12 @@ void func_0000609C(CPUState* cpu) { default: break; } } + int psx_taken_BFC15BB4 = 0; + int psx_taken_BFC15BC8 = 0; + int psx_taken_BFC15BD4 = 0; + int psx_taken_BFC15BE0 = 0; + int psx_taken_BFC15C68 = 0; + int psx_taken_BFC15C9C = 0; label_BFC15B9C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -68349,7 +70399,7 @@ label_BFC15B9C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15BB0u); return; } g_debug_last_store_pc = 0xBFC15BB0u; cpu->write_word(psx_addr, cpu->gpr[6]); } /* 0xBFC15BB4: 14810006 bne $a0, $at, 0xBFC15BD0 */ uint32_t psx_brA_BFC15BB4 = cpu->gpr[4]; uint32_t psx_brB_BFC15BB4 = cpu->gpr[1]; - int psx_taken_BFC15BB4 = (psx_brA_BFC15BB4 != psx_brB_BFC15BB4); + psx_taken_BFC15BB4 = (psx_brA_BFC15BB4 != psx_brB_BFC15BB4); /* 0xBFC15BB8: AFA7002C sw $a3, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15BB8u); return; } g_debug_last_store_pc = 0xBFC15BB8u; cpu->write_word(psx_addr, cpu->gpr[7]); } if (psx_taken_BFC15BB4) goto label_BFC15BD0; @@ -68372,7 +70422,7 @@ label_BFC15BC8: psx_check_interrupts(cpu); /* 0xBFC15BC8: 1000003A beq $zero, $zero, 0xBFC15CB4 */ uint32_t psx_brA_BFC15BC8 = cpu->gpr[0]; uint32_t psx_brB_BFC15BC8 = cpu->gpr[0]; - int psx_taken_BFC15BC8 = (psx_brA_BFC15BC8 == psx_brB_BFC15BC8); + psx_taken_BFC15BC8 = (psx_brA_BFC15BC8 == psx_brB_BFC15BC8); /* 0xBFC15BCC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC15BC8) goto label_BFC15CB4; @@ -68385,7 +70435,7 @@ label_BFC15BD0: cpu->gpr[1] = 0x20000000u; /* 0xBFC15BD4: 10810004 beq $a0, $at, 0xBFC15BE8 */ uint32_t psx_brA_BFC15BD4 = cpu->gpr[4]; uint32_t psx_brB_BFC15BD4 = cpu->gpr[1]; - int psx_taken_BFC15BD4 = (psx_brA_BFC15BD4 == psx_brB_BFC15BD4); + psx_taken_BFC15BD4 = (psx_brA_BFC15BD4 == psx_brB_BFC15BD4); /* 0xBFC15BD8: 3C012000 lui $at, 0x2000 */ cpu->gpr[1] = 0x20000000u; if (psx_taken_BFC15BD4) goto label_BFC15BE8; @@ -68398,7 +70448,7 @@ label_BFC15BDC: cpu->gpr[1] = cpu->gpr[1] | 0x1u; /* 0xBFC15BE0: 14810030 bne $a0, $at, 0xBFC15CA4 */ uint32_t psx_brA_BFC15BE0 = cpu->gpr[4]; uint32_t psx_brB_BFC15BE0 = cpu->gpr[1]; - int psx_taken_BFC15BE0 = (psx_brA_BFC15BE0 != psx_brB_BFC15BE0); + psx_taken_BFC15BE0 = (psx_brA_BFC15BE0 != psx_brB_BFC15BE0); /* 0xBFC15BE4: 00000000 nop */ /* nop */ if (psx_taken_BFC15BE0) goto label_BFC15CA4; @@ -68484,7 +70534,7 @@ label_BFC15C44: g_debug_last_store_pc = 0xBFC15C64u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[3] + (-1)), (uint8_t)(cpu->gpr[2] & 0xFFu)); /* 0xBFC15C68: 1465FFF6 bne $v1, $a1, 0xBFC15C44 */ uint32_t psx_brA_BFC15C68 = cpu->gpr[3]; uint32_t psx_brB_BFC15C68 = cpu->gpr[5]; - int psx_taken_BFC15C68 = (psx_brA_BFC15C68 != psx_brB_BFC15C68); + psx_taken_BFC15C68 = (psx_brA_BFC15C68 != psx_brB_BFC15C68); /* 0xBFC15C6C: 24840004 addiu $a0, $a0, 4 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (4)); if (psx_taken_BFC15C68) goto label_BFC15C44; @@ -68529,7 +70579,7 @@ label_BFC15C9C: psx_check_interrupts(cpu); /* 0xBFC15C9C: 10000005 beq $zero, $zero, 0xBFC15CB4 */ uint32_t psx_brA_BFC15C9C = cpu->gpr[0]; uint32_t psx_brB_BFC15C9C = cpu->gpr[0]; - int psx_taken_BFC15C9C = (psx_brA_BFC15C9C == psx_brB_BFC15C9C); + psx_taken_BFC15C9C = (psx_brA_BFC15C9C == psx_brB_BFC15C9C); /* 0xBFC15CA0: 24020002 addiu $v0, $zero, 2 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC15C9C) goto label_BFC15CB4; @@ -68569,6 +70619,20 @@ label_BFC15CB4: void func_000061C4(CPUState* cpu) { debug_server_log_call_entry(0x000061C4u); + int psx_taken_BFC15CE0 = 0; + int psx_taken_BFC15CE8 = 0; + int psx_taken_BFC15CFC = 0; + int psx_taken_BFC15D04 = 0; + int psx_taken_BFC15D10 = 0; + int psx_taken_BFC15D44 = 0; + int psx_taken_BFC15D68 = 0; + int psx_taken_BFC15D90 = 0; + int psx_taken_BFC15DB4 = 0; + int psx_taken_BFC15DC8 = 0; + int psx_taken_BFC15DD0 = 0; + int psx_taken_BFC15E04 = 0; + int psx_taken_BFC15E28 = 0; + int psx_taken_BFC15E50 = 0; label_BFC15CC4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -68590,7 +70654,7 @@ label_BFC15CC4: /* nop */ /* 0xBFC15CE0: 11E00003 beq $t7, $zero, 0xBFC15CF0 */ uint32_t psx_brA_BFC15CE0 = cpu->gpr[15]; uint32_t psx_brB_BFC15CE0 = cpu->gpr[0]; - int psx_taken_BFC15CE0 = (psx_brA_BFC15CE0 == psx_brB_BFC15CE0); + psx_taken_BFC15CE0 = (psx_brA_BFC15CE0 == psx_brB_BFC15CE0); /* 0xBFC15CE4: 00000000 nop */ /* nop */ if (psx_taken_BFC15CE0) goto label_BFC15CF0; @@ -68601,7 +70665,7 @@ label_BFC15CE8: psx_check_interrupts(cpu); /* 0xBFC15CE8: 1000002F beq $zero, $zero, 0xBFC15DA8 */ uint32_t psx_brA_BFC15CE8 = cpu->gpr[0]; uint32_t psx_brB_BFC15CE8 = cpu->gpr[0]; - int psx_taken_BFC15CE8 = (psx_brA_BFC15CE8 == psx_brB_BFC15CE8); + psx_taken_BFC15CE8 = (psx_brA_BFC15CE8 == psx_brB_BFC15CE8); /* 0xBFC15CEC: 24040023 addiu $a0, $zero, 35 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (35)); if (psx_taken_BFC15CE8) goto label_BFC15DA8; @@ -68618,7 +70682,7 @@ label_BFC15CF0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (65)); /* 0xBFC15CFC: 14410004 bne $v0, $at, 0xBFC15D10 */ uint32_t psx_brA_BFC15CFC = cpu->gpr[2]; uint32_t psx_brB_BFC15CFC = cpu->gpr[1]; - int psx_taken_BFC15CFC = (psx_brA_BFC15CFC != psx_brB_BFC15CFC); + psx_taken_BFC15CFC = (psx_brA_BFC15CFC != psx_brB_BFC15CFC); /* 0xBFC15D00: 24040023 addiu $a0, $zero, 35 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (35)); if (psx_taken_BFC15CFC) goto label_BFC15D10; @@ -68629,7 +70693,7 @@ label_BFC15D04: psx_check_interrupts(cpu); /* 0xBFC15D04: 10000004 beq $zero, $zero, 0xBFC15D18 */ uint32_t psx_brA_BFC15D04 = cpu->gpr[0]; uint32_t psx_brB_BFC15D04 = cpu->gpr[0]; - int psx_taken_BFC15D04 = (psx_brA_BFC15D04 == psx_brB_BFC15D04); + psx_taken_BFC15D04 = (psx_brA_BFC15D04 == psx_brB_BFC15D04); /* 0xBFC15D08: 24040023 addiu $a0, $zero, 35 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (35)); if (psx_taken_BFC15D04) goto label_BFC15D18; @@ -68647,7 +70711,7 @@ label_BFC15D10: psx_check_interrupts(cpu); /* 0xBFC15D10: 14440025 bne $v0, $a0, 0xBFC15DA8 */ uint32_t psx_brA_BFC15D10 = cpu->gpr[2]; uint32_t psx_brB_BFC15D10 = cpu->gpr[4]; - int psx_taken_BFC15D10 = (psx_brA_BFC15D10 != psx_brB_BFC15D10); + psx_taken_BFC15D10 = (psx_brA_BFC15D10 != psx_brB_BFC15D10); /* 0xBFC15D14: 00000000 nop */ /* nop */ if (psx_taken_BFC15D10) goto label_BFC15DA8; @@ -68680,7 +70744,7 @@ label_BFC15D18: /* nop */ /* 0xBFC15D44: 15640018 bne $t3, $a0, 0xBFC15DA8 */ uint32_t psx_brA_BFC15D44 = cpu->gpr[11]; uint32_t psx_brB_BFC15D44 = cpu->gpr[4]; - int psx_taken_BFC15D44 = (psx_brA_BFC15D44 != psx_brB_BFC15D44); + psx_taken_BFC15D44 = (psx_brA_BFC15D44 != psx_brB_BFC15D44); /* 0xBFC15D48: 00000000 nop */ /* nop */ if (psx_taken_BFC15D44) goto label_BFC15DA8; @@ -68705,7 +70769,7 @@ label_BFC15D4C: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < 0x00000011u ? 1 : 0); /* 0xBFC15D68: 14200005 bne $at, $zero, 0xBFC15D80 */ uint32_t psx_brA_BFC15D68 = cpu->gpr[1]; uint32_t psx_brB_BFC15D68 = cpu->gpr[0]; - int psx_taken_BFC15D68 = (psx_brA_BFC15D68 != psx_brB_BFC15D68); + psx_taken_BFC15D68 = (psx_brA_BFC15D68 != psx_brB_BFC15D68); /* 0xBFC15D6C: 00000000 nop */ /* nop */ if (psx_taken_BFC15D68) goto label_BFC15D80; @@ -68737,7 +70801,7 @@ label_BFC15D80: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < 0x00000011u ? 1 : 0); /* 0xBFC15D90: 14200005 bne $at, $zero, 0xBFC15DA8 */ uint32_t psx_brA_BFC15D90 = cpu->gpr[1]; uint32_t psx_brB_BFC15D90 = cpu->gpr[0]; - int psx_taken_BFC15D90 = (psx_brA_BFC15D90 != psx_brB_BFC15D90); + psx_taken_BFC15D90 = (psx_brA_BFC15D90 != psx_brB_BFC15D90); /* 0xBFC15D94: 00000000 nop */ /* nop */ if (psx_taken_BFC15D90) goto label_BFC15DA8; @@ -68767,7 +70831,7 @@ label_BFC15DA8: /* nop */ /* 0xBFC15DB4: 1540002C bne $t2, $zero, 0xBFC15E68 */ uint32_t psx_brA_BFC15DB4 = cpu->gpr[10]; uint32_t psx_brB_BFC15DB4 = cpu->gpr[0]; - int psx_taken_BFC15DB4 = (psx_brA_BFC15DB4 != psx_brB_BFC15DB4); + psx_taken_BFC15DB4 = (psx_brA_BFC15DB4 != psx_brB_BFC15DB4); /* 0xBFC15DB8: 00000000 nop */ /* nop */ if (psx_taken_BFC15DB4) goto label_BFC15E68; @@ -68784,7 +70848,7 @@ label_BFC15DBC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (65)); /* 0xBFC15DC8: 10410003 beq $v0, $at, 0xBFC15DD8 */ uint32_t psx_brA_BFC15DC8 = cpu->gpr[2]; uint32_t psx_brB_BFC15DC8 = cpu->gpr[1]; - int psx_taken_BFC15DC8 = (psx_brA_BFC15DC8 == psx_brB_BFC15DC8); + psx_taken_BFC15DC8 = (psx_brA_BFC15DC8 == psx_brB_BFC15DC8); /* 0xBFC15DCC: 00000000 nop */ /* nop */ if (psx_taken_BFC15DC8) goto label_BFC15DD8; @@ -68795,7 +70859,7 @@ label_BFC15DD0: psx_check_interrupts(cpu); /* 0xBFC15DD0: 14440025 bne $v0, $a0, 0xBFC15E68 */ uint32_t psx_brA_BFC15DD0 = cpu->gpr[2]; uint32_t psx_brB_BFC15DD0 = cpu->gpr[4]; - int psx_taken_BFC15DD0 = (psx_brA_BFC15DD0 != psx_brB_BFC15DD0); + psx_taken_BFC15DD0 = (psx_brA_BFC15DD0 != psx_brB_BFC15DD0); /* 0xBFC15DD4: 00000000 nop */ /* nop */ if (psx_taken_BFC15DD0) goto label_BFC15E68; @@ -68828,7 +70892,7 @@ label_BFC15DD8: /* nop */ /* 0xBFC15E04: 17040018 bne $t8, $a0, 0xBFC15E68 */ uint32_t psx_brA_BFC15E04 = cpu->gpr[24]; uint32_t psx_brB_BFC15E04 = cpu->gpr[4]; - int psx_taken_BFC15E04 = (psx_brA_BFC15E04 != psx_brB_BFC15E04); + psx_taken_BFC15E04 = (psx_brA_BFC15E04 != psx_brB_BFC15E04); /* 0xBFC15E08: 00000000 nop */ /* nop */ if (psx_taken_BFC15E04) goto label_BFC15E68; @@ -68853,7 +70917,7 @@ label_BFC15E0C: cpu->gpr[1] = (uint32_t)(cpu->gpr[9] < 0x00000011u ? 1 : 0); /* 0xBFC15E28: 14200005 bne $at, $zero, 0xBFC15E40 */ uint32_t psx_brA_BFC15E28 = cpu->gpr[1]; uint32_t psx_brB_BFC15E28 = cpu->gpr[0]; - int psx_taken_BFC15E28 = (psx_brA_BFC15E28 != psx_brB_BFC15E28); + psx_taken_BFC15E28 = (psx_brA_BFC15E28 != psx_brB_BFC15E28); /* 0xBFC15E2C: 00000000 nop */ /* nop */ if (psx_taken_BFC15E28) goto label_BFC15E40; @@ -68885,7 +70949,7 @@ label_BFC15E40: cpu->gpr[1] = (uint32_t)(cpu->gpr[13] < 0x00000011u ? 1 : 0); /* 0xBFC15E50: 14200005 bne $at, $zero, 0xBFC15E68 */ uint32_t psx_brA_BFC15E50 = cpu->gpr[1]; uint32_t psx_brB_BFC15E50 = cpu->gpr[0]; - int psx_taken_BFC15E50 = (psx_brA_BFC15E50 != psx_brB_BFC15E50); + psx_taken_BFC15E50 = (psx_brA_BFC15E50 != psx_brB_BFC15E50); /* 0xBFC15E54: 00000000 nop */ /* nop */ if (psx_taken_BFC15E50) goto label_BFC15E68; @@ -68965,6 +71029,7 @@ label_BFC15E90: void func_000063BC(CPUState* cpu) { debug_server_log_call_entry(0x000063BCu); + int psx_taken_BFC15EE8 = 0; label_BFC15EBC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -68999,7 +71064,7 @@ label_BFC15EDC: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); /* 0xBFC15EE8: 175BFFFC bne $k0, $k1, 0xBFC15EDC */ uint32_t psx_brA_BFC15EE8 = cpu->gpr[26]; uint32_t psx_brB_BFC15EE8 = cpu->gpr[27]; - int psx_taken_BFC15EE8 = (psx_brA_BFC15EE8 != psx_brB_BFC15EE8); + psx_taken_BFC15EE8 = (psx_brA_BFC15EE8 != psx_brB_BFC15EE8); /* 0xBFC15EEC: AC43FFFC sw $v1, -4($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC15EECu); return; } g_debug_last_store_pc = 0xBFC15EECu; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC15EE8) goto label_BFC15EDC; @@ -69041,6 +71106,13 @@ void func_00006408(CPUState* cpu) { default: break; } } + int psx_taken_BFC15F28 = 0; + int psx_taken_BFC15F3C = 0; + int psx_taken_BFC15F50 = 0; + int psx_taken_BFC15F6C = 0; + int psx_taken_BFC15FE0 = 0; + int psx_taken_BFC1600C = 0; + int psx_taken_BFC16080 = 0; label_BFC15F08: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -69070,7 +71142,7 @@ label_BFC15F18: cpu->gpr[3] = 0x1F800000u; /* 0xBFC15F28: 1040005A beq $v0, $zero, 0xBFC16094 */ uint32_t psx_brA_BFC15F28 = cpu->gpr[2]; uint32_t psx_brB_BFC15F28 = cpu->gpr[0]; - int psx_taken_BFC15F28 = (psx_brA_BFC15F28 == psx_brB_BFC15F28); + psx_taken_BFC15F28 = (psx_brA_BFC15F28 == psx_brB_BFC15F28); /* 0xBFC15F2C: 00000000 nop */ /* nop */ if (psx_taken_BFC15F28) goto label_BFC16094; @@ -69087,7 +71159,7 @@ label_BFC15F30: cpu->gpr[2] = cpu->gpr[2] & 0x80u; /* 0xBFC15F3C: 10400055 beq $v0, $zero, 0xBFC16094 */ uint32_t psx_brA_BFC15F3C = cpu->gpr[2]; uint32_t psx_brB_BFC15F3C = cpu->gpr[0]; - int psx_taken_BFC15F3C = (psx_brA_BFC15F3C == psx_brB_BFC15F3C); + psx_taken_BFC15F3C = (psx_brA_BFC15F3C == psx_brB_BFC15F3C); /* 0xBFC15F40: 00000000 nop */ /* nop */ if (psx_taken_BFC15F3C) goto label_BFC16094; @@ -69104,7 +71176,7 @@ label_BFC15F44: cpu->gpr[2] = cpu->gpr[2] & 0x80u; /* 0xBFC15F50: 10400050 beq $v0, $zero, 0xBFC16094 */ uint32_t psx_brA_BFC15F50 = cpu->gpr[2]; uint32_t psx_brB_BFC15F50 = cpu->gpr[0]; - int psx_taken_BFC15F50 = (psx_brA_BFC15F50 == psx_brB_BFC15F50); + psx_taken_BFC15F50 = (psx_brA_BFC15F50 == psx_brB_BFC15F50); /* 0xBFC15F54: 00000000 nop */ /* nop */ if (psx_taken_BFC15F50) goto label_BFC16094; @@ -69125,7 +71197,7 @@ label_BFC15F58: /* nop */ /* 0xBFC15F6C: 14410027 bne $v0, $at, 0xBFC1600C */ uint32_t psx_brA_BFC15F6C = cpu->gpr[2]; uint32_t psx_brB_BFC15F6C = cpu->gpr[1]; - int psx_taken_BFC15F6C = (psx_brA_BFC15F6C != psx_brB_BFC15F6C); + psx_taken_BFC15F6C = (psx_brA_BFC15F6C != psx_brB_BFC15F6C); /* 0xBFC15F70: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC15F6C) goto label_BFC1600C; @@ -69190,7 +71262,7 @@ label_BFC15F74: cpu->gpr[1] = (uint32_t)(cpu->gpr[26] < 0x00000080u ? 1 : 0); /* 0xBFC15FE0: 14200002 bne $at, $zero, 0xBFC15FEC */ uint32_t psx_brA_BFC15FE0 = cpu->gpr[1]; uint32_t psx_brB_BFC15FE0 = cpu->gpr[0]; - int psx_taken_BFC15FE0 = (psx_brA_BFC15FE0 != psx_brB_BFC15FE0); + psx_taken_BFC15FE0 = (psx_brA_BFC15FE0 != psx_brB_BFC15FE0); /* 0xBFC15FE4: 3C010000 lui $at, 0x0 */ cpu->gpr[1] = 0x00000000u; if (psx_taken_BFC15FE0) goto label_BFC15FEC; @@ -69217,7 +71289,7 @@ label_BFC1600C: psx_check_interrupts(cpu); /* 0xBFC1600C: 14410021 bne $v0, $at, 0xBFC16094 */ uint32_t psx_brA_BFC1600C = cpu->gpr[2]; uint32_t psx_brB_BFC1600C = cpu->gpr[1]; - int psx_taken_BFC1600C = (psx_brA_BFC1600C != psx_brB_BFC1600C); + psx_taken_BFC1600C = (psx_brA_BFC1600C != psx_brB_BFC1600C); /* 0xBFC16010: 00000000 nop */ /* nop */ if (psx_taken_BFC1600C) goto label_BFC16094; @@ -69282,7 +71354,7 @@ label_BFC16014: cpu->gpr[1] = (uint32_t)(cpu->gpr[26] < 0x0000007Fu ? 1 : 0); /* 0xBFC16080: 14200002 bne $at, $zero, 0xBFC1608C */ uint32_t psx_brA_BFC16080 = cpu->gpr[1]; uint32_t psx_brB_BFC16080 = cpu->gpr[0]; - int psx_taken_BFC16080 = (psx_brA_BFC16080 != psx_brB_BFC16080); + psx_taken_BFC16080 = (psx_brA_BFC16080 != psx_brB_BFC16080); /* 0xBFC16084: 3C010000 lui $at, 0x0 */ cpu->gpr[1] = 0x00000000u; if (psx_taken_BFC16080) goto label_BFC1608C; @@ -69360,6 +71432,73 @@ void func_00006670(CPUState* cpu) { default: break; } } + int psx_taken_BFC161A0 = 0; + int psx_taken_BFC161D0 = 0; + int psx_taken_BFC161D8 = 0; + int psx_taken_BFC161E0 = 0; + int psx_taken_BFC161EC = 0; + int psx_taken_BFC161F4 = 0; + int psx_taken_BFC161FC = 0; + int psx_taken_BFC16208 = 0; + int psx_taken_BFC16210 = 0; + int psx_taken_BFC16218 = 0; + int psx_taken_BFC16224 = 0; + int psx_taken_BFC1622C = 0; + int psx_taken_BFC16234 = 0; + int psx_taken_BFC16240 = 0; + int psx_taken_BFC16248 = 0; + int psx_taken_BFC16250 = 0; + int psx_taken_BFC1625C = 0; + int psx_taken_BFC16264 = 0; + int psx_taken_BFC1626C = 0; + int psx_taken_BFC16278 = 0; + int psx_taken_BFC16284 = 0; + int psx_taken_BFC162B0 = 0; + int psx_taken_BFC162C4 = 0; + int psx_taken_BFC162CC = 0; + int psx_taken_BFC162D4 = 0; + int psx_taken_BFC162E0 = 0; + int psx_taken_BFC162E8 = 0; + int psx_taken_BFC162F0 = 0; + int psx_taken_BFC162FC = 0; + int psx_taken_BFC16304 = 0; + int psx_taken_BFC1630C = 0; + int psx_taken_BFC16318 = 0; + int psx_taken_BFC16324 = 0; + int psx_taken_BFC16330 = 0; + int psx_taken_BFC1633C = 0; + int psx_taken_BFC16368 = 0; + int psx_taken_BFC1637C = 0; + int psx_taken_BFC16384 = 0; + int psx_taken_BFC1638C = 0; + int psx_taken_BFC16398 = 0; + int psx_taken_BFC163A0 = 0; + int psx_taken_BFC163A8 = 0; + int psx_taken_BFC163B4 = 0; + int psx_taken_BFC163BC = 0; + int psx_taken_BFC163C4 = 0; + int psx_taken_BFC163D0 = 0; + int psx_taken_BFC163DC = 0; + int psx_taken_BFC163E8 = 0; + int psx_taken_BFC163F4 = 0; + int psx_taken_BFC16420 = 0; + int psx_taken_BFC16434 = 0; + int psx_taken_BFC1643C = 0; + int psx_taken_BFC16444 = 0; + int psx_taken_BFC16450 = 0; + int psx_taken_BFC16458 = 0; + int psx_taken_BFC16460 = 0; + int psx_taken_BFC1646C = 0; + int psx_taken_BFC16474 = 0; + int psx_taken_BFC1647C = 0; + int psx_taken_BFC16488 = 0; + int psx_taken_BFC16494 = 0; + int psx_taken_BFC164A0 = 0; + int psx_taken_BFC164AC = 0; + int psx_taken_BFC164D8 = 0; + int psx_taken_BFC164EC = 0; + int psx_taken_BFC164F4 = 0; + int psx_taken_BFC16530 = 0; label_BFC16170: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -69397,7 +71536,7 @@ label_BFC1618C: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < 0x00000004u ? 1 : 0); /* 0xBFC161A0: 102000CF beq $at, $zero, 0xBFC164E0 */ uint32_t psx_brA_BFC161A0 = cpu->gpr[1]; uint32_t psx_brB_BFC161A0 = cpu->gpr[0]; - int psx_taken_BFC161A0 = (psx_brA_BFC161A0 == psx_brB_BFC161A0); + psx_taken_BFC161A0 = (psx_brA_BFC161A0 == psx_brB_BFC161A0); /* 0xBFC161A4: 00000000 nop */ /* nop */ if (psx_taken_BFC161A0) goto label_BFC164E0; @@ -69433,7 +71572,7 @@ label_BFC161C4: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000040u ? 1 : 0); /* 0xBFC161D0: 14200005 bne $at, $zero, 0xBFC161E8 */ uint32_t psx_brA_BFC161D0 = cpu->gpr[1]; uint32_t psx_brB_BFC161D0 = cpu->gpr[0]; - int psx_taken_BFC161D0 = (psx_brA_BFC161D0 != psx_brB_BFC161D0); + psx_taken_BFC161D0 = (psx_brA_BFC161D0 != psx_brB_BFC161D0); /* 0xBFC161D4: 2C41007F sltiu $at, $v0, 127 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000007Fu ? 1 : 0); if (psx_taken_BFC161D0) goto label_BFC161E8; @@ -69444,7 +71583,7 @@ label_BFC161D8: psx_check_interrupts(cpu); /* 0xBFC161D8: 10200004 beq $at, $zero, 0xBFC161EC */ uint32_t psx_brA_BFC161D8 = cpu->gpr[1]; uint32_t psx_brB_BFC161D8 = cpu->gpr[0]; - int psx_taken_BFC161D8 = (psx_brA_BFC161D8 == psx_brB_BFC161D8); + psx_taken_BFC161D8 = (psx_brA_BFC161D8 == psx_brB_BFC161D8); /* 0xBFC161DC: 2C410080 sltiu $at, $v0, 128 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000080u ? 1 : 0); if (psx_taken_BFC161D8) goto label_BFC161EC; @@ -69455,7 +71594,7 @@ label_BFC161E0: psx_check_interrupts(cpu); /* 0xBFC161E0: 1000002B beq $zero, $zero, 0xBFC16290 */ uint32_t psx_brA_BFC161E0 = cpu->gpr[0]; uint32_t psx_brB_BFC161E0 = cpu->gpr[0]; - int psx_taken_BFC161E0 = (psx_brA_BFC161E0 == psx_brB_BFC161E0); + psx_taken_BFC161E0 = (psx_brA_BFC161E0 == psx_brB_BFC161E0); /* 0xBFC161E4: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC161E0) goto label_BFC16290; @@ -69473,7 +71612,7 @@ label_BFC161EC: psx_check_interrupts(cpu); /* 0xBFC161EC: 14200005 bne $at, $zero, 0xBFC16204 */ uint32_t psx_brA_BFC161EC = cpu->gpr[1]; uint32_t psx_brB_BFC161EC = cpu->gpr[0]; - int psx_taken_BFC161EC = (psx_brA_BFC161EC != psx_brB_BFC161EC); + psx_taken_BFC161EC = (psx_brA_BFC161EC != psx_brB_BFC161EC); /* 0xBFC161F0: 2C4100AD sltiu $at, $v0, 173 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000ADu ? 1 : 0); if (psx_taken_BFC161EC) goto label_BFC16204; @@ -69484,7 +71623,7 @@ label_BFC161F4: psx_check_interrupts(cpu); /* 0xBFC161F4: 10200004 beq $at, $zero, 0xBFC16208 */ uint32_t psx_brA_BFC161F4 = cpu->gpr[1]; uint32_t psx_brB_BFC161F4 = cpu->gpr[0]; - int psx_taken_BFC161F4 = (psx_brA_BFC161F4 == psx_brB_BFC161F4); + psx_taken_BFC161F4 = (psx_brA_BFC161F4 == psx_brB_BFC161F4); /* 0xBFC161F8: 2C4100B8 sltiu $at, $v0, 184 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000B8u ? 1 : 0); if (psx_taken_BFC161F4) goto label_BFC16208; @@ -69495,7 +71634,7 @@ label_BFC161FC: psx_check_interrupts(cpu); /* 0xBFC161FC: 10000024 beq $zero, $zero, 0xBFC16290 */ uint32_t psx_brA_BFC161FC = cpu->gpr[0]; uint32_t psx_brB_BFC161FC = cpu->gpr[0]; - int psx_taken_BFC161FC = (psx_brA_BFC161FC == psx_brB_BFC161FC); + psx_taken_BFC161FC = (psx_brA_BFC161FC == psx_brB_BFC161FC); /* 0xBFC16200: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC161FC) goto label_BFC16290; @@ -69513,7 +71652,7 @@ label_BFC16208: psx_check_interrupts(cpu); /* 0xBFC16208: 14200005 bne $at, $zero, 0xBFC16220 */ uint32_t psx_brA_BFC16208 = cpu->gpr[1]; uint32_t psx_brB_BFC16208 = cpu->gpr[0]; - int psx_taken_BFC16208 = (psx_brA_BFC16208 != psx_brB_BFC16208); + psx_taken_BFC16208 = (psx_brA_BFC16208 != psx_brB_BFC16208); /* 0xBFC1620C: 2C4100C0 sltiu $at, $v0, 192 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000C0u ? 1 : 0); if (psx_taken_BFC16208) goto label_BFC16220; @@ -69524,7 +71663,7 @@ label_BFC16210: psx_check_interrupts(cpu); /* 0xBFC16210: 10200004 beq $at, $zero, 0xBFC16224 */ uint32_t psx_brA_BFC16210 = cpu->gpr[1]; uint32_t psx_brB_BFC16210 = cpu->gpr[0]; - int psx_taken_BFC16210 = (psx_brA_BFC16210 == psx_brB_BFC16210); + psx_taken_BFC16210 = (psx_brA_BFC16210 == psx_brB_BFC16210); /* 0xBFC16214: 2C4100C8 sltiu $at, $v0, 200 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000C8u ? 1 : 0); if (psx_taken_BFC16210) goto label_BFC16224; @@ -69535,7 +71674,7 @@ label_BFC16218: psx_check_interrupts(cpu); /* 0xBFC16218: 1000001D beq $zero, $zero, 0xBFC16290 */ uint32_t psx_brA_BFC16218 = cpu->gpr[0]; uint32_t psx_brB_BFC16218 = cpu->gpr[0]; - int psx_taken_BFC16218 = (psx_brA_BFC16218 == psx_brB_BFC16218); + psx_taken_BFC16218 = (psx_brA_BFC16218 == psx_brB_BFC16218); /* 0xBFC1621C: 24030002 addiu $v1, $zero, 2 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC16218) goto label_BFC16290; @@ -69553,7 +71692,7 @@ label_BFC16224: psx_check_interrupts(cpu); /* 0xBFC16224: 14200005 bne $at, $zero, 0xBFC1623C */ uint32_t psx_brA_BFC16224 = cpu->gpr[1]; uint32_t psx_brB_BFC16224 = cpu->gpr[0]; - int psx_taken_BFC16224 = (psx_brA_BFC16224 != psx_brB_BFC16224); + psx_taken_BFC16224 = (psx_brA_BFC16224 != psx_brB_BFC16224); /* 0xBFC16228: 2C4100CF sltiu $at, $v0, 207 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000CFu ? 1 : 0); if (psx_taken_BFC16224) goto label_BFC1623C; @@ -69564,7 +71703,7 @@ label_BFC1622C: psx_check_interrupts(cpu); /* 0xBFC1622C: 10200004 beq $at, $zero, 0xBFC16240 */ uint32_t psx_brA_BFC1622C = cpu->gpr[1]; uint32_t psx_brB_BFC1622C = cpu->gpr[0]; - int psx_taken_BFC1622C = (psx_brA_BFC1622C == psx_brB_BFC1622C); + psx_taken_BFC1622C = (psx_brA_BFC1622C == psx_brB_BFC1622C); /* 0xBFC16230: 2C4100DA sltiu $at, $v0, 218 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000DAu ? 1 : 0); if (psx_taken_BFC1622C) goto label_BFC16240; @@ -69575,7 +71714,7 @@ label_BFC16234: psx_check_interrupts(cpu); /* 0xBFC16234: 10000016 beq $zero, $zero, 0xBFC16290 */ uint32_t psx_brA_BFC16234 = cpu->gpr[0]; uint32_t psx_brB_BFC16234 = cpu->gpr[0]; - int psx_taken_BFC16234 = (psx_brA_BFC16234 == psx_brB_BFC16234); + psx_taken_BFC16234 = (psx_brA_BFC16234 == psx_brB_BFC16234); /* 0xBFC16238: 24030003 addiu $v1, $zero, 3 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); if (psx_taken_BFC16234) goto label_BFC16290; @@ -69593,7 +71732,7 @@ label_BFC16240: psx_check_interrupts(cpu); /* 0xBFC16240: 14200005 bne $at, $zero, 0xBFC16258 */ uint32_t psx_brA_BFC16240 = cpu->gpr[1]; uint32_t psx_brB_BFC16240 = cpu->gpr[0]; - int psx_taken_BFC16240 = (psx_brA_BFC16240 != psx_brB_BFC16240); + psx_taken_BFC16240 = (psx_brA_BFC16240 != psx_brB_BFC16240); /* 0xBFC16244: 2C4100E9 sltiu $at, $v0, 233 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000E9u ? 1 : 0); if (psx_taken_BFC16240) goto label_BFC16258; @@ -69604,7 +71743,7 @@ label_BFC16248: psx_check_interrupts(cpu); /* 0xBFC16248: 10200004 beq $at, $zero, 0xBFC1625C */ uint32_t psx_brA_BFC16248 = cpu->gpr[1]; uint32_t psx_brB_BFC16248 = cpu->gpr[0]; - int psx_taken_BFC16248 = (psx_brA_BFC16248 == psx_brB_BFC16248); + psx_taken_BFC16248 = (psx_brA_BFC16248 == psx_brB_BFC16248); /* 0xBFC1624C: 2C4100F0 sltiu $at, $v0, 240 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000F0u ? 1 : 0); if (psx_taken_BFC16248) goto label_BFC1625C; @@ -69615,7 +71754,7 @@ label_BFC16250: psx_check_interrupts(cpu); /* 0xBFC16250: 1000000F beq $zero, $zero, 0xBFC16290 */ uint32_t psx_brA_BFC16250 = cpu->gpr[0]; uint32_t psx_brB_BFC16250 = cpu->gpr[0]; - int psx_taken_BFC16250 = (psx_brA_BFC16250 == psx_brB_BFC16250); + psx_taken_BFC16250 = (psx_brA_BFC16250 == psx_brB_BFC16250); /* 0xBFC16254: 24030004 addiu $v1, $zero, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC16250) goto label_BFC16290; @@ -69633,7 +71772,7 @@ label_BFC1625C: psx_check_interrupts(cpu); /* 0xBFC1625C: 14200005 bne $at, $zero, 0xBFC16274 */ uint32_t psx_brA_BFC1625C = cpu->gpr[1]; uint32_t psx_brB_BFC1625C = cpu->gpr[0]; - int psx_taken_BFC1625C = (psx_brA_BFC1625C != psx_brB_BFC1625C); + psx_taken_BFC1625C = (psx_brA_BFC1625C != psx_brB_BFC1625C); /* 0xBFC16260: 2C4100F8 sltiu $at, $v0, 248 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000F8u ? 1 : 0); if (psx_taken_BFC1625C) goto label_BFC16274; @@ -69644,7 +71783,7 @@ label_BFC16264: psx_check_interrupts(cpu); /* 0xBFC16264: 10200004 beq $at, $zero, 0xBFC16278 */ uint32_t psx_brA_BFC16264 = cpu->gpr[1]; uint32_t psx_brB_BFC16264 = cpu->gpr[0]; - int psx_taken_BFC16264 = (psx_brA_BFC16264 == psx_brB_BFC16264); + psx_taken_BFC16264 = (psx_brA_BFC16264 == psx_brB_BFC16264); /* 0xBFC16268: 240100FC addiu $at, $zero, 252 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (252)); if (psx_taken_BFC16264) goto label_BFC16278; @@ -69655,7 +71794,7 @@ label_BFC1626C: psx_check_interrupts(cpu); /* 0xBFC1626C: 10000008 beq $zero, $zero, 0xBFC16290 */ uint32_t psx_brA_BFC1626C = cpu->gpr[0]; uint32_t psx_brB_BFC1626C = cpu->gpr[0]; - int psx_taken_BFC1626C = (psx_brA_BFC1626C == psx_brB_BFC1626C); + psx_taken_BFC1626C = (psx_brA_BFC1626C == psx_brB_BFC1626C); /* 0xBFC16270: 24030005 addiu $v1, $zero, 5 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC1626C) goto label_BFC16290; @@ -69673,7 +71812,7 @@ label_BFC16278: psx_check_interrupts(cpu); /* 0xBFC16278: 10410005 beq $v0, $at, 0xBFC16290 */ uint32_t psx_brA_BFC16278 = cpu->gpr[2]; uint32_t psx_brB_BFC16278 = cpu->gpr[1]; - int psx_taken_BFC16278 = (psx_brA_BFC16278 == psx_brB_BFC16278); + psx_taken_BFC16278 = (psx_brA_BFC16278 == psx_brB_BFC16278); /* 0xBFC1627C: 24030006 addiu $v1, $zero, 6 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (6)); if (psx_taken_BFC16278) goto label_BFC16290; @@ -69686,7 +71825,7 @@ label_BFC16280: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC16284: 10000002 beq $zero, $zero, 0xBFC16290 */ uint32_t psx_brA_BFC16284 = cpu->gpr[0]; uint32_t psx_brB_BFC16284 = cpu->gpr[0]; - int psx_taken_BFC16284 = (psx_brA_BFC16284 == psx_brB_BFC16284); + psx_taken_BFC16284 = (psx_brA_BFC16284 == psx_brB_BFC16284); /* 0xBFC16288: 00000000 nop */ /* nop */ if (psx_taken_BFC16284) goto label_BFC16290; @@ -69720,7 +71859,7 @@ label_BFC16290: cpu->gpr[9] = cpu->gpr[25] - cpu->gpr[8]; /* 0xBFC162B0: 100000A1 beq $zero, $zero, 0xBFC16538 */ uint32_t psx_brA_BFC162B0 = cpu->gpr[0]; uint32_t psx_brB_BFC162B0 = cpu->gpr[0]; - int psx_taken_BFC162B0 = (psx_brA_BFC162B0 == psx_brB_BFC162B0); + psx_taken_BFC162B0 = (psx_brA_BFC162B0 == psx_brB_BFC162B0); /* 0xBFC162B4: 012A2021 addu $a0, $t1, $t2 */ cpu->gpr[4] = cpu->gpr[9] + cpu->gpr[10]; if (psx_taken_BFC162B0) goto label_BFC16538; @@ -69737,7 +71876,7 @@ label_BFC162B8: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000004Fu ? 1 : 0); /* 0xBFC162C4: 14200005 bne $at, $zero, 0xBFC162DC */ uint32_t psx_brA_BFC162C4 = cpu->gpr[1]; uint32_t psx_brB_BFC162C4 = cpu->gpr[0]; - int psx_taken_BFC162C4 = (psx_brA_BFC162C4 != psx_brB_BFC162C4); + psx_taken_BFC162C4 = (psx_brA_BFC162C4 != psx_brB_BFC162C4); /* 0xBFC162C8: 2C410059 sltiu $at, $v0, 89 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000059u ? 1 : 0); if (psx_taken_BFC162C4) goto label_BFC162DC; @@ -69748,7 +71887,7 @@ label_BFC162CC: psx_check_interrupts(cpu); /* 0xBFC162CC: 10200004 beq $at, $zero, 0xBFC162E0 */ uint32_t psx_brA_BFC162CC = cpu->gpr[1]; uint32_t psx_brB_BFC162CC = cpu->gpr[0]; - int psx_taken_BFC162CC = (psx_brA_BFC162CC == psx_brB_BFC162CC); + psx_taken_BFC162CC = (psx_brA_BFC162CC == psx_brB_BFC162CC); /* 0xBFC162D0: 2C410060 sltiu $at, $v0, 96 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000060u ? 1 : 0); if (psx_taken_BFC162CC) goto label_BFC162E0; @@ -69759,7 +71898,7 @@ label_BFC162D4: psx_check_interrupts(cpu); /* 0xBFC162D4: 1000001C beq $zero, $zero, 0xBFC16348 */ uint32_t psx_brA_BFC162D4 = cpu->gpr[0]; uint32_t psx_brB_BFC162D4 = cpu->gpr[0]; - int psx_taken_BFC162D4 = (psx_brA_BFC162D4 == psx_brB_BFC162D4); + psx_taken_BFC162D4 = (psx_brA_BFC162D4 == psx_brB_BFC162D4); /* 0xBFC162D8: 24030007 addiu $v1, $zero, 7 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (7)); if (psx_taken_BFC162D4) goto label_BFC16348; @@ -69777,7 +71916,7 @@ label_BFC162E0: psx_check_interrupts(cpu); /* 0xBFC162E0: 14200005 bne $at, $zero, 0xBFC162F8 */ uint32_t psx_brA_BFC162E0 = cpu->gpr[1]; uint32_t psx_brB_BFC162E0 = cpu->gpr[0]; - int psx_taken_BFC162E0 = (psx_brA_BFC162E0 != psx_brB_BFC162E0); + psx_taken_BFC162E0 = (psx_brA_BFC162E0 != psx_brB_BFC162E0); /* 0xBFC162E4: 2C41007A sltiu $at, $v0, 122 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000007Au ? 1 : 0); if (psx_taken_BFC162E0) goto label_BFC162F8; @@ -69788,7 +71927,7 @@ label_BFC162E8: psx_check_interrupts(cpu); /* 0xBFC162E8: 10200004 beq $at, $zero, 0xBFC162FC */ uint32_t psx_brA_BFC162E8 = cpu->gpr[1]; uint32_t psx_brB_BFC162E8 = cpu->gpr[0]; - int psx_taken_BFC162E8 = (psx_brA_BFC162E8 == psx_brB_BFC162E8); + psx_taken_BFC162E8 = (psx_brA_BFC162E8 == psx_brB_BFC162E8); /* 0xBFC162EC: 2C410081 sltiu $at, $v0, 129 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000081u ? 1 : 0); if (psx_taken_BFC162E8) goto label_BFC162FC; @@ -69799,7 +71938,7 @@ label_BFC162F0: psx_check_interrupts(cpu); /* 0xBFC162F0: 10000015 beq $zero, $zero, 0xBFC16348 */ uint32_t psx_brA_BFC162F0 = cpu->gpr[0]; uint32_t psx_brB_BFC162F0 = cpu->gpr[0]; - int psx_taken_BFC162F0 = (psx_brA_BFC162F0 == psx_brB_BFC162F0); + psx_taken_BFC162F0 = (psx_brA_BFC162F0 == psx_brB_BFC162F0); /* 0xBFC162F4: 24030008 addiu $v1, $zero, 8 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); if (psx_taken_BFC162F0) goto label_BFC16348; @@ -69817,7 +71956,7 @@ label_BFC162FC: psx_check_interrupts(cpu); /* 0xBFC162FC: 14200005 bne $at, $zero, 0xBFC16314 */ uint32_t psx_brA_BFC162FC = cpu->gpr[1]; uint32_t psx_brB_BFC162FC = cpu->gpr[0]; - int psx_taken_BFC162FC = (psx_brA_BFC162FC != psx_brB_BFC162FC); + psx_taken_BFC162FC = (psx_brA_BFC162FC != psx_brB_BFC162FC); /* 0xBFC16300: 2C41009B sltiu $at, $v0, 155 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000009Bu ? 1 : 0); if (psx_taken_BFC162FC) goto label_BFC16314; @@ -69828,7 +71967,7 @@ label_BFC16304: psx_check_interrupts(cpu); /* 0xBFC16304: 10200004 beq $at, $zero, 0xBFC16318 */ uint32_t psx_brA_BFC16304 = cpu->gpr[1]; uint32_t psx_brB_BFC16304 = cpu->gpr[0]; - int psx_taken_BFC16304 = (psx_brA_BFC16304 == psx_brB_BFC16304); + psx_taken_BFC16304 = (psx_brA_BFC16304 == psx_brB_BFC16304); /* 0xBFC16308: 2C41009F sltiu $at, $v0, 159 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000009Fu ? 1 : 0); if (psx_taken_BFC16304) goto label_BFC16318; @@ -69839,7 +71978,7 @@ label_BFC1630C: psx_check_interrupts(cpu); /* 0xBFC1630C: 1000000E beq $zero, $zero, 0xBFC16348 */ uint32_t psx_brA_BFC1630C = cpu->gpr[0]; uint32_t psx_brB_BFC1630C = cpu->gpr[0]; - int psx_taken_BFC1630C = (psx_brA_BFC1630C == psx_brB_BFC1630C); + psx_taken_BFC1630C = (psx_brA_BFC1630C == psx_brB_BFC1630C); /* 0xBFC16310: 24030009 addiu $v1, $zero, 9 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); if (psx_taken_BFC1630C) goto label_BFC16348; @@ -69857,7 +71996,7 @@ label_BFC16318: psx_check_interrupts(cpu); /* 0xBFC16318: 10200005 beq $at, $zero, 0xBFC16330 */ uint32_t psx_brA_BFC16318 = cpu->gpr[1]; uint32_t psx_brB_BFC16318 = cpu->gpr[0]; - int psx_taken_BFC16318 = (psx_brA_BFC16318 == psx_brB_BFC16318); + psx_taken_BFC16318 = (psx_brA_BFC16318 == psx_brB_BFC16318); /* 0xBFC1631C: 2C4100F2 sltiu $at, $v0, 242 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000F2u ? 1 : 0); if (psx_taken_BFC16318) goto label_BFC16330; @@ -69870,7 +72009,7 @@ label_BFC16320: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC16324: 10000008 beq $zero, $zero, 0xBFC16348 */ uint32_t psx_brA_BFC16324 = cpu->gpr[0]; uint32_t psx_brB_BFC16324 = cpu->gpr[0]; - int psx_taken_BFC16324 = (psx_brA_BFC16324 == psx_brB_BFC16324); + psx_taken_BFC16324 = (psx_brA_BFC16324 == psx_brB_BFC16324); /* 0xBFC16328: 00000000 nop */ /* nop */ if (psx_taken_BFC16324) goto label_BFC16348; @@ -69888,7 +72027,7 @@ label_BFC16330: psx_check_interrupts(cpu); /* 0xBFC16330: 14200005 bne $at, $zero, 0xBFC16348 */ uint32_t psx_brA_BFC16330 = cpu->gpr[1]; uint32_t psx_brB_BFC16330 = cpu->gpr[0]; - int psx_taken_BFC16330 = (psx_brA_BFC16330 != psx_brB_BFC16330); + psx_taken_BFC16330 = (psx_brA_BFC16330 != psx_brB_BFC16330); /* 0xBFC16334: 2403000A addiu $v1, $zero, 10 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); if (psx_taken_BFC16330) goto label_BFC16348; @@ -69901,7 +72040,7 @@ label_BFC16338: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC1633C: 10000002 beq $zero, $zero, 0xBFC16348 */ uint32_t psx_brA_BFC1633C = cpu->gpr[0]; uint32_t psx_brB_BFC1633C = cpu->gpr[0]; - int psx_taken_BFC1633C = (psx_brA_BFC1633C == psx_brB_BFC1633C); + psx_taken_BFC1633C = (psx_brA_BFC1633C == psx_brB_BFC1633C); /* 0xBFC16340: 00000000 nop */ /* nop */ if (psx_taken_BFC1633C) goto label_BFC16348; @@ -69935,7 +72074,7 @@ label_BFC16348: cpu->gpr[15] = cpu->gpr[13] - cpu->gpr[14]; /* 0xBFC16368: 10000073 beq $zero, $zero, 0xBFC16538 */ uint32_t psx_brA_BFC16368 = cpu->gpr[0]; uint32_t psx_brB_BFC16368 = cpu->gpr[0]; - int psx_taken_BFC16368 = (psx_brA_BFC16368 == psx_brB_BFC16368); + psx_taken_BFC16368 = (psx_brA_BFC16368 == psx_brB_BFC16368); /* 0xBFC1636C: 01F82021 addu $a0, $t7, $t8 */ cpu->gpr[4] = cpu->gpr[15] + cpu->gpr[24]; if (psx_taken_BFC16368) goto label_BFC16538; @@ -69952,7 +72091,7 @@ label_BFC16370: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000040u ? 1 : 0); /* 0xBFC1637C: 14200005 bne $at, $zero, 0xBFC16394 */ uint32_t psx_brA_BFC1637C = cpu->gpr[1]; uint32_t psx_brB_BFC1637C = cpu->gpr[0]; - int psx_taken_BFC1637C = (psx_brA_BFC1637C != psx_brB_BFC1637C); + psx_taken_BFC1637C = (psx_brA_BFC1637C != psx_brB_BFC1637C); /* 0xBFC16380: 2C41007F sltiu $at, $v0, 127 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000007Fu ? 1 : 0); if (psx_taken_BFC1637C) goto label_BFC16394; @@ -69963,7 +72102,7 @@ label_BFC16384: psx_check_interrupts(cpu); /* 0xBFC16384: 10200004 beq $at, $zero, 0xBFC16398 */ uint32_t psx_brA_BFC16384 = cpu->gpr[1]; uint32_t psx_brB_BFC16384 = cpu->gpr[0]; - int psx_taken_BFC16384 = (psx_brA_BFC16384 == psx_brB_BFC16384); + psx_taken_BFC16384 = (psx_brA_BFC16384 == psx_brB_BFC16384); /* 0xBFC16388: 2C410080 sltiu $at, $v0, 128 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000080u ? 1 : 0); if (psx_taken_BFC16384) goto label_BFC16398; @@ -69974,7 +72113,7 @@ label_BFC1638C: psx_check_interrupts(cpu); /* 0xBFC1638C: 1000001C beq $zero, $zero, 0xBFC16400 */ uint32_t psx_brA_BFC1638C = cpu->gpr[0]; uint32_t psx_brB_BFC1638C = cpu->gpr[0]; - int psx_taken_BFC1638C = (psx_brA_BFC1638C == psx_brB_BFC1638C); + psx_taken_BFC1638C = (psx_brA_BFC1638C == psx_brB_BFC1638C); /* 0xBFC16390: 2403000B addiu $v1, $zero, 11 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (11)); if (psx_taken_BFC1638C) goto label_BFC16400; @@ -69992,7 +72131,7 @@ label_BFC16398: psx_check_interrupts(cpu); /* 0xBFC16398: 14200005 bne $at, $zero, 0xBFC163B0 */ uint32_t psx_brA_BFC16398 = cpu->gpr[1]; uint32_t psx_brB_BFC16398 = cpu->gpr[0]; - int psx_taken_BFC16398 = (psx_brA_BFC16398 != psx_brB_BFC16398); + psx_taken_BFC16398 = (psx_brA_BFC16398 != psx_brB_BFC16398); /* 0xBFC1639C: 2C410097 sltiu $at, $v0, 151 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000097u ? 1 : 0); if (psx_taken_BFC16398) goto label_BFC163B0; @@ -70003,7 +72142,7 @@ label_BFC163A0: psx_check_interrupts(cpu); /* 0xBFC163A0: 10200004 beq $at, $zero, 0xBFC163B4 */ uint32_t psx_brA_BFC163A0 = cpu->gpr[1]; uint32_t psx_brB_BFC163A0 = cpu->gpr[0]; - int psx_taken_BFC163A0 = (psx_brA_BFC163A0 == psx_brB_BFC163A0); + psx_taken_BFC163A0 = (psx_brA_BFC163A0 == psx_brB_BFC163A0); /* 0xBFC163A4: 2C41009F sltiu $at, $v0, 159 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000009Fu ? 1 : 0); if (psx_taken_BFC163A0) goto label_BFC163B4; @@ -70014,7 +72153,7 @@ label_BFC163A8: psx_check_interrupts(cpu); /* 0xBFC163A8: 10000015 beq $zero, $zero, 0xBFC16400 */ uint32_t psx_brA_BFC163A8 = cpu->gpr[0]; uint32_t psx_brB_BFC163A8 = cpu->gpr[0]; - int psx_taken_BFC163A8 = (psx_brA_BFC163A8 == psx_brB_BFC163A8); + psx_taken_BFC163A8 = (psx_brA_BFC163A8 == psx_brB_BFC163A8); /* 0xBFC163AC: 2403000C addiu $v1, $zero, 12 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (12)); if (psx_taken_BFC163A8) goto label_BFC16400; @@ -70032,7 +72171,7 @@ label_BFC163B4: psx_check_interrupts(cpu); /* 0xBFC163B4: 14200005 bne $at, $zero, 0xBFC163CC */ uint32_t psx_brA_BFC163B4 = cpu->gpr[1]; uint32_t psx_brB_BFC163B4 = cpu->gpr[0]; - int psx_taken_BFC163B4 = (psx_brA_BFC163B4 != psx_brB_BFC163B4); + psx_taken_BFC163B4 = (psx_brA_BFC163B4 != psx_brB_BFC163B4); /* 0xBFC163B8: 2C4100B7 sltiu $at, $v0, 183 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000B7u ? 1 : 0); if (psx_taken_BFC163B4) goto label_BFC163CC; @@ -70043,7 +72182,7 @@ label_BFC163BC: psx_check_interrupts(cpu); /* 0xBFC163BC: 10200004 beq $at, $zero, 0xBFC163D0 */ uint32_t psx_brA_BFC163BC = cpu->gpr[1]; uint32_t psx_brB_BFC163BC = cpu->gpr[0]; - int psx_taken_BFC163BC = (psx_brA_BFC163BC == psx_brB_BFC163BC); + psx_taken_BFC163BC = (psx_brA_BFC163BC == psx_brB_BFC163BC); /* 0xBFC163C0: 2C4100BF sltiu $at, $v0, 191 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000BFu ? 1 : 0); if (psx_taken_BFC163BC) goto label_BFC163D0; @@ -70054,7 +72193,7 @@ label_BFC163C4: psx_check_interrupts(cpu); /* 0xBFC163C4: 1000000E beq $zero, $zero, 0xBFC16400 */ uint32_t psx_brA_BFC163C4 = cpu->gpr[0]; uint32_t psx_brB_BFC163C4 = cpu->gpr[0]; - int psx_taken_BFC163C4 = (psx_brA_BFC163C4 == psx_brB_BFC163C4); + psx_taken_BFC163C4 = (psx_brA_BFC163C4 == psx_brB_BFC163C4); /* 0xBFC163C8: 2403000D addiu $v1, $zero, 13 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (13)); if (psx_taken_BFC163C4) goto label_BFC16400; @@ -70072,7 +72211,7 @@ label_BFC163D0: psx_check_interrupts(cpu); /* 0xBFC163D0: 10200005 beq $at, $zero, 0xBFC163E8 */ uint32_t psx_brA_BFC163D0 = cpu->gpr[1]; uint32_t psx_brB_BFC163D0 = cpu->gpr[0]; - int psx_taken_BFC163D0 = (psx_brA_BFC163D0 == psx_brB_BFC163D0); + psx_taken_BFC163D0 = (psx_brA_BFC163D0 == psx_brB_BFC163D0); /* 0xBFC163D4: 2C4100D7 sltiu $at, $v0, 215 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000D7u ? 1 : 0); if (psx_taken_BFC163D0) goto label_BFC163E8; @@ -70085,7 +72224,7 @@ label_BFC163D8: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC163DC: 10000008 beq $zero, $zero, 0xBFC16400 */ uint32_t psx_brA_BFC163DC = cpu->gpr[0]; uint32_t psx_brB_BFC163DC = cpu->gpr[0]; - int psx_taken_BFC163DC = (psx_brA_BFC163DC == psx_brB_BFC163DC); + psx_taken_BFC163DC = (psx_brA_BFC163DC == psx_brB_BFC163DC); /* 0xBFC163E0: 00000000 nop */ /* nop */ if (psx_taken_BFC163DC) goto label_BFC16400; @@ -70103,7 +72242,7 @@ label_BFC163E8: psx_check_interrupts(cpu); /* 0xBFC163E8: 14200005 bne $at, $zero, 0xBFC16400 */ uint32_t psx_brA_BFC163E8 = cpu->gpr[1]; uint32_t psx_brB_BFC163E8 = cpu->gpr[0]; - int psx_taken_BFC163E8 = (psx_brA_BFC163E8 != psx_brB_BFC163E8); + psx_taken_BFC163E8 = (psx_brA_BFC163E8 != psx_brB_BFC163E8); /* 0xBFC163EC: 2403000E addiu $v1, $zero, 14 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (14)); if (psx_taken_BFC163E8) goto label_BFC16400; @@ -70116,7 +72255,7 @@ label_BFC163F0: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC163F4: 10000002 beq $zero, $zero, 0xBFC16400 */ uint32_t psx_brA_BFC163F4 = cpu->gpr[0]; uint32_t psx_brB_BFC163F4 = cpu->gpr[0]; - int psx_taken_BFC163F4 = (psx_brA_BFC163F4 == psx_brB_BFC163F4); + psx_taken_BFC163F4 = (psx_brA_BFC163F4 == psx_brB_BFC163F4); /* 0xBFC163F8: 00000000 nop */ /* nop */ if (psx_taken_BFC163F4) goto label_BFC16400; @@ -70150,7 +72289,7 @@ label_BFC16400: cpu->gpr[11] = cpu->gpr[9] - cpu->gpr[10]; /* 0xBFC16420: 10000045 beq $zero, $zero, 0xBFC16538 */ uint32_t psx_brA_BFC16420 = cpu->gpr[0]; uint32_t psx_brB_BFC16420 = cpu->gpr[0]; - int psx_taken_BFC16420 = (psx_brA_BFC16420 == psx_brB_BFC16420); + psx_taken_BFC16420 = (psx_brA_BFC16420 == psx_brB_BFC16420); /* 0xBFC16424: 016C2021 addu $a0, $t3, $t4 */ cpu->gpr[4] = cpu->gpr[11] + cpu->gpr[12]; if (psx_taken_BFC16420) goto label_BFC16538; @@ -70167,7 +72306,7 @@ label_BFC16428: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000040u ? 1 : 0); /* 0xBFC16434: 14200005 bne $at, $zero, 0xBFC1644C */ uint32_t psx_brA_BFC16434 = cpu->gpr[1]; uint32_t psx_brB_BFC16434 = cpu->gpr[0]; - int psx_taken_BFC16434 = (psx_brA_BFC16434 != psx_brB_BFC16434); + psx_taken_BFC16434 = (psx_brA_BFC16434 != psx_brB_BFC16434); /* 0xBFC16438: 2C410061 sltiu $at, $v0, 97 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000061u ? 1 : 0); if (psx_taken_BFC16434) goto label_BFC1644C; @@ -70178,7 +72317,7 @@ label_BFC1643C: psx_check_interrupts(cpu); /* 0xBFC1643C: 10200004 beq $at, $zero, 0xBFC16450 */ uint32_t psx_brA_BFC1643C = cpu->gpr[1]; uint32_t psx_brB_BFC1643C = cpu->gpr[0]; - int psx_taken_BFC1643C = (psx_brA_BFC1643C == psx_brB_BFC1643C); + psx_taken_BFC1643C = (psx_brA_BFC1643C == psx_brB_BFC1643C); /* 0xBFC16440: 2C410070 sltiu $at, $v0, 112 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000070u ? 1 : 0); if (psx_taken_BFC1643C) goto label_BFC16450; @@ -70189,7 +72328,7 @@ label_BFC16444: psx_check_interrupts(cpu); /* 0xBFC16444: 1000001C beq $zero, $zero, 0xBFC164B8 */ uint32_t psx_brA_BFC16444 = cpu->gpr[0]; uint32_t psx_brB_BFC16444 = cpu->gpr[0]; - int psx_taken_BFC16444 = (psx_brA_BFC16444 == psx_brB_BFC16444); + psx_taken_BFC16444 = (psx_brA_BFC16444 == psx_brB_BFC16444); /* 0xBFC16448: 2403000F addiu $v1, $zero, 15 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (15)); if (psx_taken_BFC16444) goto label_BFC164B8; @@ -70207,7 +72346,7 @@ label_BFC16450: psx_check_interrupts(cpu); /* 0xBFC16450: 14200005 bne $at, $zero, 0xBFC16468 */ uint32_t psx_brA_BFC16450 = cpu->gpr[1]; uint32_t psx_brB_BFC16450 = cpu->gpr[0]; - int psx_taken_BFC16450 = (psx_brA_BFC16450 != psx_brB_BFC16450); + psx_taken_BFC16450 = (psx_brA_BFC16450 != psx_brB_BFC16450); /* 0xBFC16454: 2C41007F sltiu $at, $v0, 127 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000007Fu ? 1 : 0); if (psx_taken_BFC16450) goto label_BFC16468; @@ -70218,7 +72357,7 @@ label_BFC16458: psx_check_interrupts(cpu); /* 0xBFC16458: 10200004 beq $at, $zero, 0xBFC1646C */ uint32_t psx_brA_BFC16458 = cpu->gpr[1]; uint32_t psx_brB_BFC16458 = cpu->gpr[0]; - int psx_taken_BFC16458 = (psx_brA_BFC16458 == psx_brB_BFC16458); + psx_taken_BFC16458 = (psx_brA_BFC16458 == psx_brB_BFC16458); /* 0xBFC1645C: 2C410080 sltiu $at, $v0, 128 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000080u ? 1 : 0); if (psx_taken_BFC16458) goto label_BFC1646C; @@ -70229,7 +72368,7 @@ label_BFC16460: psx_check_interrupts(cpu); /* 0xBFC16460: 10000015 beq $zero, $zero, 0xBFC164B8 */ uint32_t psx_brA_BFC16460 = cpu->gpr[0]; uint32_t psx_brB_BFC16460 = cpu->gpr[0]; - int psx_taken_BFC16460 = (psx_brA_BFC16460 == psx_brB_BFC16460); + psx_taken_BFC16460 = (psx_brA_BFC16460 == psx_brB_BFC16460); /* 0xBFC16464: 24030010 addiu $v1, $zero, 16 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); if (psx_taken_BFC16460) goto label_BFC164B8; @@ -70247,7 +72386,7 @@ label_BFC1646C: psx_check_interrupts(cpu); /* 0xBFC1646C: 14200005 bne $at, $zero, 0xBFC16484 */ uint32_t psx_brA_BFC1646C = cpu->gpr[1]; uint32_t psx_brB_BFC1646C = cpu->gpr[0]; - int psx_taken_BFC1646C = (psx_brA_BFC1646C != psx_brB_BFC1646C); + psx_taken_BFC1646C = (psx_brA_BFC1646C != psx_brB_BFC1646C); /* 0xBFC16470: 2C410092 sltiu $at, $v0, 146 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000092u ? 1 : 0); if (psx_taken_BFC1646C) goto label_BFC16484; @@ -70258,7 +72397,7 @@ label_BFC16474: psx_check_interrupts(cpu); /* 0xBFC16474: 10200004 beq $at, $zero, 0xBFC16488 */ uint32_t psx_brA_BFC16474 = cpu->gpr[1]; uint32_t psx_brB_BFC16474 = cpu->gpr[0]; - int psx_taken_BFC16474 = (psx_brA_BFC16474 == psx_brB_BFC16474); + psx_taken_BFC16474 = (psx_brA_BFC16474 == psx_brB_BFC16474); /* 0xBFC16478: 2C41009F sltiu $at, $v0, 159 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000009Fu ? 1 : 0); if (psx_taken_BFC16474) goto label_BFC16488; @@ -70269,7 +72408,7 @@ label_BFC1647C: psx_check_interrupts(cpu); /* 0xBFC1647C: 1000000E beq $zero, $zero, 0xBFC164B8 */ uint32_t psx_brA_BFC1647C = cpu->gpr[0]; uint32_t psx_brB_BFC1647C = cpu->gpr[0]; - int psx_taken_BFC1647C = (psx_brA_BFC1647C == psx_brB_BFC1647C); + psx_taken_BFC1647C = (psx_brA_BFC1647C == psx_brB_BFC1647C); /* 0xBFC16480: 24030011 addiu $v1, $zero, 17 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (17)); if (psx_taken_BFC1647C) goto label_BFC164B8; @@ -70287,7 +72426,7 @@ label_BFC16488: psx_check_interrupts(cpu); /* 0xBFC16488: 10200005 beq $at, $zero, 0xBFC164A0 */ uint32_t psx_brA_BFC16488 = cpu->gpr[1]; uint32_t psx_brB_BFC16488 = cpu->gpr[0]; - int psx_taken_BFC16488 = (psx_brA_BFC16488 == psx_brB_BFC16488); + psx_taken_BFC16488 = (psx_brA_BFC16488 == psx_brB_BFC16488); /* 0xBFC1648C: 2C4100BF sltiu $at, $v0, 191 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000BFu ? 1 : 0); if (psx_taken_BFC16488) goto label_BFC164A0; @@ -70300,7 +72439,7 @@ label_BFC16490: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC16494: 10000008 beq $zero, $zero, 0xBFC164B8 */ uint32_t psx_brA_BFC16494 = cpu->gpr[0]; uint32_t psx_brB_BFC16494 = cpu->gpr[0]; - int psx_taken_BFC16494 = (psx_brA_BFC16494 == psx_brB_BFC16494); + psx_taken_BFC16494 = (psx_brA_BFC16494 == psx_brB_BFC16494); /* 0xBFC16498: 00000000 nop */ /* nop */ if (psx_taken_BFC16494) goto label_BFC164B8; @@ -70318,7 +72457,7 @@ label_BFC164A0: psx_check_interrupts(cpu); /* 0xBFC164A0: 14200005 bne $at, $zero, 0xBFC164B8 */ uint32_t psx_brA_BFC164A0 = cpu->gpr[1]; uint32_t psx_brB_BFC164A0 = cpu->gpr[0]; - int psx_taken_BFC164A0 = (psx_brA_BFC164A0 != psx_brB_BFC164A0); + psx_taken_BFC164A0 = (psx_brA_BFC164A0 != psx_brB_BFC164A0); /* 0xBFC164A4: 24030012 addiu $v1, $zero, 18 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (18)); if (psx_taken_BFC164A0) goto label_BFC164B8; @@ -70331,7 +72470,7 @@ label_BFC164A8: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC164AC: 10000002 beq $zero, $zero, 0xBFC164B8 */ uint32_t psx_brA_BFC164AC = cpu->gpr[0]; uint32_t psx_brB_BFC164AC = cpu->gpr[0]; - int psx_taken_BFC164AC = (psx_brA_BFC164AC == psx_brB_BFC164AC); + psx_taken_BFC164AC = (psx_brA_BFC164AC == psx_brB_BFC164AC); /* 0xBFC164B0: 00000000 nop */ /* nop */ if (psx_taken_BFC164AC) goto label_BFC164B8; @@ -70365,7 +72504,7 @@ label_BFC164B8: cpu->gpr[25] = cpu->gpr[15] - cpu->gpr[24]; /* 0xBFC164D8: 10000017 beq $zero, $zero, 0xBFC16538 */ uint32_t psx_brA_BFC164D8 = cpu->gpr[0]; uint32_t psx_brB_BFC164D8 = cpu->gpr[0]; - int psx_taken_BFC164D8 = (psx_brA_BFC164D8 == psx_brB_BFC164D8); + psx_taken_BFC164D8 = (psx_brA_BFC164D8 == psx_brB_BFC164D8); /* 0xBFC164DC: 03282021 addu $a0, $t9, $t0 */ cpu->gpr[4] = cpu->gpr[25] + cpu->gpr[8]; if (psx_taken_BFC164D8) goto label_BFC16538; @@ -70382,7 +72521,7 @@ label_BFC164E0: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000007Fu ? 1 : 0); /* 0xBFC164EC: 10200004 beq $at, $zero, 0xBFC16500 */ uint32_t psx_brA_BFC164EC = cpu->gpr[1]; uint32_t psx_brB_BFC164EC = cpu->gpr[0]; - int psx_taken_BFC164EC = (psx_brA_BFC164EC == psx_brB_BFC164EC); + psx_taken_BFC164EC = (psx_brA_BFC164EC == psx_brB_BFC164EC); /* 0xBFC164F0: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC164EC) goto label_BFC16500; @@ -70393,7 +72532,7 @@ label_BFC164F4: psx_check_interrupts(cpu); /* 0xBFC164F4: 10000002 beq $zero, $zero, 0xBFC16500 */ uint32_t psx_brA_BFC164F4 = cpu->gpr[0]; uint32_t psx_brB_BFC164F4 = cpu->gpr[0]; - int psx_taken_BFC164F4 = (psx_brA_BFC164F4 == psx_brB_BFC164F4); + psx_taken_BFC164F4 = (psx_brA_BFC164F4 == psx_brB_BFC164F4); /* 0xBFC164F8: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC164F4) goto label_BFC16500; @@ -70435,7 +72574,7 @@ label_BFC16500: cpu->gpr[25] = cpu->gpr[15] - cpu->gpr[24]; /* 0xBFC16530: 10000001 beq $zero, $zero, 0xBFC16538 */ uint32_t psx_brA_BFC16530 = cpu->gpr[0]; uint32_t psx_brB_BFC16530 = cpu->gpr[0]; - int psx_taken_BFC16530 = (psx_brA_BFC16530 == psx_brB_BFC16530); + psx_taken_BFC16530 = (psx_brA_BFC16530 == psx_brB_BFC16530); /* 0xBFC16534: 03282021 addu $a0, $t9, $t0 */ cpu->gpr[4] = cpu->gpr[25] + cpu->gpr[8]; if (psx_taken_BFC16530) goto label_BFC16538; @@ -70917,6 +73056,16 @@ void func_1FC18000(CPUState* cpu) { default: break; } } + int psx_taken_BFC180FC = 0; + int psx_taken_BFC18104 = 0; + int psx_taken_BFC18128 = 0; + int psx_taken_BFC1813C = 0; + int psx_taken_BFC18150 = 0; + int psx_taken_BFC18168 = 0; + int psx_taken_BFC1817C = 0; + int psx_taken_BFC18194 = 0; + int psx_taken_BFC181BC = 0; + int psx_taken_BFC181DC = 0; label_BFC18000: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -71146,7 +73295,7 @@ label_BFC180FC: psx_check_interrupts(cpu); /* 0xBFC180FC: 04410003 bgez $v0, 0xBFC1810C */ uint32_t psx_brA_BFC180FC = cpu->gpr[2]; - int psx_taken_BFC180FC = ((int32_t)psx_brA_BFC180FC >= 0); + psx_taken_BFC180FC = ((int32_t)psx_brA_BFC180FC >= 0); /* 0xBFC18100: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC180FC) goto label_BFC1810C; @@ -71157,7 +73306,7 @@ label_BFC18104: psx_check_interrupts(cpu); /* 0xBFC18104: 10000004 beq $zero, $zero, 0xBFC18118 */ uint32_t psx_brA_BFC18104 = cpu->gpr[0]; uint32_t psx_brB_BFC18104 = cpu->gpr[0]; - int psx_taken_BFC18104 = (psx_brA_BFC18104 == psx_brB_BFC18104); + psx_taken_BFC18104 = (psx_brA_BFC18104 == psx_brB_BFC18104); /* 0xBFC18108: AC209DF0 sw $zero, -25104($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25104)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18108u); return; } g_debug_last_store_pc = 0xBFC18108u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC18104) goto label_BFC18118; @@ -71199,7 +73348,7 @@ label_BFC18128: psx_check_interrupts(cpu); /* 0xBFC18128: 0440002F bltz $v0, 0xBFC181E8 */ uint32_t psx_brA_BFC18128 = cpu->gpr[2]; - int psx_taken_BFC18128 = ((int32_t)psx_brA_BFC18128 < 0); + psx_taken_BFC18128 = ((int32_t)psx_brA_BFC18128 < 0); /* 0xBFC1812C: 3C0D0200 lui $t5, 0x200 */ cpu->gpr[13] = 0x02000000u; if (psx_taken_BFC18128) goto label_BFC181E8; @@ -71216,7 +73365,7 @@ label_BFC18130: /* nop */ /* 0xBFC1813C: 1100002A beq $t0, $zero, 0xBFC181E8 */ uint32_t psx_brA_BFC1813C = cpu->gpr[8]; uint32_t psx_brB_BFC1813C = cpu->gpr[0]; - int psx_taken_BFC1813C = (psx_brA_BFC1813C == psx_brB_BFC1813C); + psx_taken_BFC1813C = (psx_brA_BFC1813C == psx_brB_BFC1813C); /* 0xBFC18140: 3C0D0200 lui $t5, 0x200 */ cpu->gpr[13] = 0x02000000u; if (psx_taken_BFC1813C) goto label_BFC181E8; @@ -71233,7 +73382,7 @@ label_BFC18144: /* nop */ /* 0xBFC18150: 11200003 beq $t1, $zero, 0xBFC18160 */ uint32_t psx_brA_BFC18150 = cpu->gpr[9]; uint32_t psx_brB_BFC18150 = cpu->gpr[0]; - int psx_taken_BFC18150 = (psx_brA_BFC18150 == psx_brB_BFC18150); + psx_taken_BFC18150 = (psx_brA_BFC18150 == psx_brB_BFC18150); /* 0xBFC18154: 00000000 nop */ /* nop */ if (psx_taken_BFC18150) goto label_BFC18160; @@ -71264,7 +73413,7 @@ label_BFC18168: psx_check_interrupts(cpu); /* 0xBFC18168: 0440001F bltz $v0, 0xBFC181E8 */ uint32_t psx_brA_BFC18168 = cpu->gpr[2]; - int psx_taken_BFC18168 = ((int32_t)psx_brA_BFC18168 < 0); + psx_taken_BFC18168 = ((int32_t)psx_brA_BFC18168 < 0); /* 0xBFC1816C: 3C0D0200 lui $t5, 0x200 */ cpu->gpr[13] = 0x02000000u; if (psx_taken_BFC18168) goto label_BFC181E8; @@ -71281,7 +73430,7 @@ label_BFC18170: /* nop */ /* 0xBFC1817C: 1140001A beq $t2, $zero, 0xBFC181E8 */ uint32_t psx_brA_BFC1817C = cpu->gpr[10]; uint32_t psx_brB_BFC1817C = cpu->gpr[0]; - int psx_taken_BFC1817C = (psx_brA_BFC1817C == psx_brB_BFC1817C); + psx_taken_BFC1817C = (psx_brA_BFC1817C == psx_brB_BFC1817C); /* 0xBFC18180: 3C0D0200 lui $t5, 0x200 */ cpu->gpr[13] = 0x02000000u; if (psx_taken_BFC1817C) goto label_BFC181E8; @@ -71312,7 +73461,7 @@ label_BFC18194: psx_check_interrupts(cpu); /* 0xBFC18194: 0441000B bgez $v0, 0xBFC181C4 */ uint32_t psx_brA_BFC18194 = cpu->gpr[2]; - int psx_taken_BFC18194 = ((int32_t)psx_brA_BFC18194 >= 0); + psx_taken_BFC18194 = ((int32_t)psx_brA_BFC18194 >= 0); /* 0xBFC18198: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC18194) goto label_BFC181C4; @@ -71339,7 +73488,7 @@ label_BFC1819C: cpu->gpr[1] = 0x80080000u; /* 0xBFC181BC: 10000009 beq $zero, $zero, 0xBFC181E4 */ uint32_t psx_brA_BFC181BC = cpu->gpr[0]; uint32_t psx_brB_BFC181BC = cpu->gpr[0]; - int psx_taken_BFC181BC = (psx_brA_BFC181BC == psx_brB_BFC181BC); + psx_taken_BFC181BC = (psx_brA_BFC181BC == psx_brB_BFC181BC); /* 0xBFC181C0: AC209E00 sw $zero, -25088($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25088)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC181C0u); return; } g_debug_last_store_pc = 0xBFC181C0u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC181BC) goto label_BFC181E4; @@ -71380,7 +73529,7 @@ label_BFC181DC: psx_check_interrupts(cpu); /* 0xBFC181DC: 1000001A beq $zero, $zero, 0xBFC18248 */ uint32_t psx_brA_BFC181DC = cpu->gpr[0]; uint32_t psx_brB_BFC181DC = cpu->gpr[0]; - int psx_taken_BFC181DC = (psx_brA_BFC181DC == psx_brB_BFC181DC); + psx_taken_BFC181DC = (psx_brA_BFC181DC == psx_brB_BFC181DC); /* 0xBFC181E0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC181E0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC181DC) goto label_BFC18248; @@ -71527,6 +73676,33 @@ void func_1FC18254(CPUState* cpu) { default: break; } } + int psx_taken_BFC1827C = 0; + int psx_taken_BFC18290 = 0; + int psx_taken_BFC182CC = 0; + int psx_taken_BFC182E0 = 0; + int psx_taken_BFC182F4 = 0; + int psx_taken_BFC18314 = 0; + int psx_taken_BFC18328 = 0; + int psx_taken_BFC1833C = 0; + int psx_taken_BFC18358 = 0; + int psx_taken_BFC1836C = 0; + int psx_taken_BFC1837C = 0; + int psx_taken_BFC18398 = 0; + int psx_taken_BFC183B4 = 0; + int psx_taken_BFC183FC = 0; + int psx_taken_BFC18410 = 0; + int psx_taken_BFC1844C = 0; + int psx_taken_BFC1845C = 0; + int psx_taken_BFC184C8 = 0; + int psx_taken_BFC184DC = 0; + int psx_taken_BFC184EC = 0; + int psx_taken_BFC18504 = 0; + int psx_taken_BFC18540 = 0; + int psx_taken_BFC18584 = 0; + int psx_taken_BFC185C0 = 0; + int psx_taken_BFC18610 = 0; + int psx_taken_BFC18640 = 0; + int psx_taken_BFC18654 = 0; label_BFC18254: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -71566,7 +73742,7 @@ label_BFC1827C: psx_check_interrupts(cpu); /* 0xBFC1827C: 10400006 beq $v0, $zero, 0xBFC18298 */ uint32_t psx_brA_BFC1827C = cpu->gpr[2]; uint32_t psx_brB_BFC1827C = cpu->gpr[0]; - int psx_taken_BFC1827C = (psx_brA_BFC1827C == psx_brB_BFC1827C); + psx_taken_BFC1827C = (psx_brA_BFC1827C == psx_brB_BFC1827C); /* 0xBFC18280: 2450FFFF addiu $s0, $v0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[2] + (-1)); if (psx_taken_BFC1827C) goto label_BFC18298; @@ -71589,7 +73765,7 @@ label_BFC1828C: cpu->gpr[2] = cpu->gpr[16] + cpu->gpr[0]; /* 0xBFC18290: 1440FFFC bne $v0, $zero, 0xBFC18284 */ uint32_t psx_brA_BFC18290 = cpu->gpr[2]; uint32_t psx_brB_BFC18290 = cpu->gpr[0]; - int psx_taken_BFC18290 = (psx_brA_BFC18290 != psx_brB_BFC18290); + psx_taken_BFC18290 = (psx_brA_BFC18290 != psx_brB_BFC18290); /* 0xBFC18294: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC18290) goto label_BFC18284; @@ -71644,7 +73820,7 @@ label_BFC182C0: /* nop */ /* 0xBFC182CC: 15C00006 bne $t6, $zero, 0xBFC182E8 */ uint32_t psx_brA_BFC182CC = cpu->gpr[14]; uint32_t psx_brB_BFC182CC = cpu->gpr[0]; - int psx_taken_BFC182CC = (psx_brA_BFC182CC != psx_brB_BFC182CC); + psx_taken_BFC182CC = (psx_brA_BFC182CC != psx_brB_BFC182CC); /* 0xBFC182D0: 00000000 nop */ /* nop */ if (psx_taken_BFC182CC) goto label_BFC182E8; @@ -71661,7 +73837,7 @@ label_BFC182D4: /* nop */ /* 0xBFC182E0: 11E0000E beq $t7, $zero, 0xBFC1831C */ uint32_t psx_brA_BFC182E0 = cpu->gpr[15]; uint32_t psx_brB_BFC182E0 = cpu->gpr[0]; - int psx_taken_BFC182E0 = (psx_brA_BFC182E0 == psx_brB_BFC182E0); + psx_taken_BFC182E0 = (psx_brA_BFC182E0 == psx_brB_BFC182E0); /* 0xBFC182E4: 00000000 nop */ /* nop */ if (psx_taken_BFC182E0) goto label_BFC1831C; @@ -71678,7 +73854,7 @@ label_BFC182E8: /* nop */ /* 0xBFC182F4: 13000002 beq $t8, $zero, 0xBFC18300 */ uint32_t psx_brA_BFC182F4 = cpu->gpr[24]; uint32_t psx_brB_BFC182F4 = cpu->gpr[0]; - int psx_taken_BFC182F4 = (psx_brA_BFC182F4 == psx_brB_BFC182F4); + psx_taken_BFC182F4 = (psx_brA_BFC182F4 == psx_brB_BFC182F4); /* 0xBFC182F8: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC182F4) goto label_BFC18300; @@ -71706,7 +73882,7 @@ label_BFC18300: cpu->gpr[1] = 0x800F0000u; /* 0xBFC18314: 1000002F beq $zero, $zero, 0xBFC183D4 */ uint32_t psx_brA_BFC18314 = cpu->gpr[0]; uint32_t psx_brB_BFC18314 = cpu->gpr[0]; - int psx_taken_BFC18314 = (psx_brA_BFC18314 == psx_brB_BFC18314); + psx_taken_BFC18314 = (psx_brA_BFC18314 == psx_brB_BFC18314); /* 0xBFC18318: AC20A780 sw $zero, -22656($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-22656)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18318u); return; } g_debug_last_store_pc = 0xBFC18318u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC18314) goto label_BFC183D4; @@ -71723,7 +73899,7 @@ label_BFC1831C: /* nop */ /* 0xBFC18328: 1720000D bne $t9, $zero, 0xBFC18360 */ uint32_t psx_brA_BFC18328 = cpu->gpr[25]; uint32_t psx_brB_BFC18328 = cpu->gpr[0]; - int psx_taken_BFC18328 = (psx_brA_BFC18328 != psx_brB_BFC18328); + psx_taken_BFC18328 = (psx_brA_BFC18328 != psx_brB_BFC18328); /* 0xBFC1832C: 00000000 nop */ /* nop */ if (psx_taken_BFC18328) goto label_BFC18360; @@ -71740,7 +73916,7 @@ label_BFC18330: /* nop */ /* 0xBFC1833C: 15000008 bne $t0, $zero, 0xBFC18360 */ uint32_t psx_brA_BFC1833C = cpu->gpr[8]; uint32_t psx_brB_BFC1833C = cpu->gpr[0]; - int psx_taken_BFC1833C = (psx_brA_BFC1833C != psx_brB_BFC1833C); + psx_taken_BFC1833C = (psx_brA_BFC1833C != psx_brB_BFC1833C); /* 0xBFC18340: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC1833C) goto label_BFC18360; @@ -71761,7 +73937,7 @@ label_BFC18344: cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC18358: 1000001E beq $zero, $zero, 0xBFC183D4 */ uint32_t psx_brA_BFC18358 = cpu->gpr[0]; uint32_t psx_brB_BFC18358 = cpu->gpr[0]; - int psx_taken_BFC18358 = (psx_brA_BFC18358 == psx_brB_BFC18358); + psx_taken_BFC18358 = (psx_brA_BFC18358 == psx_brB_BFC18358); /* 0xBFC1835C: AC29A780 sw $t1, -22656($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-22656)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1835Cu); return; } g_debug_last_store_pc = 0xBFC1835Cu; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC18358) goto label_BFC183D4; @@ -71778,7 +73954,7 @@ label_BFC18360: /* nop */ /* 0xBFC1836C: 11400013 beq $t2, $zero, 0xBFC183BC */ uint32_t psx_brA_BFC1836C = cpu->gpr[10]; uint32_t psx_brB_BFC1836C = cpu->gpr[0]; - int psx_taken_BFC1836C = (psx_brA_BFC1836C == psx_brB_BFC1836C); + psx_taken_BFC1836C = (psx_brA_BFC1836C == psx_brB_BFC1836C); /* 0xBFC18370: 00000000 nop */ /* nop */ if (psx_taken_BFC1836C) goto label_BFC183BC; @@ -71799,7 +73975,7 @@ label_BFC1837C: psx_check_interrupts(cpu); /* 0xBFC1837C: 10400008 beq $v0, $zero, 0xBFC183A0 */ uint32_t psx_brA_BFC1837C = cpu->gpr[2]; uint32_t psx_brB_BFC1837C = cpu->gpr[0]; - int psx_taken_BFC1837C = (psx_brA_BFC1837C == psx_brB_BFC1837C); + psx_taken_BFC1837C = (psx_brA_BFC1837C == psx_brB_BFC1837C); /* 0xBFC18380: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC1837C) goto label_BFC183A0; @@ -71820,7 +73996,7 @@ label_BFC18384: cpu->gpr[11] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC18398: 1000000E beq $zero, $zero, 0xBFC183D4 */ uint32_t psx_brA_BFC18398 = cpu->gpr[0]; uint32_t psx_brB_BFC18398 = cpu->gpr[0]; - int psx_taken_BFC18398 = (psx_brA_BFC18398 == psx_brB_BFC18398); + psx_taken_BFC18398 = (psx_brA_BFC18398 == psx_brB_BFC18398); /* 0xBFC1839C: AC2BA780 sw $t3, -22656($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-22656)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1839Cu); return; } g_debug_last_store_pc = 0xBFC1839Cu; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC18398) goto label_BFC183D4; @@ -71841,7 +74017,7 @@ label_BFC183A0: cpu->gpr[1] = 0x800F0000u; /* 0xBFC183B4: 10000007 beq $zero, $zero, 0xBFC183D4 */ uint32_t psx_brA_BFC183B4 = cpu->gpr[0]; uint32_t psx_brB_BFC183B4 = cpu->gpr[0]; - int psx_taken_BFC183B4 = (psx_brA_BFC183B4 == psx_brB_BFC183B4); + psx_taken_BFC183B4 = (psx_brA_BFC183B4 == psx_brB_BFC183B4); /* 0xBFC183B8: AC20A780 sw $zero, -22656($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-22656)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC183B8u); return; } g_debug_last_store_pc = 0xBFC183B8u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC183B4) goto label_BFC183D4; @@ -71919,7 +74095,7 @@ label_BFC183FC: psx_check_interrupts(cpu); /* 0xBFC183FC: 1440009C bne $v0, $zero, 0xBFC18670 */ uint32_t psx_brA_BFC183FC = cpu->gpr[2]; uint32_t psx_brB_BFC183FC = cpu->gpr[0]; - int psx_taken_BFC183FC = (psx_brA_BFC183FC != psx_brB_BFC183FC); + psx_taken_BFC183FC = (psx_brA_BFC183FC != psx_brB_BFC183FC); /* 0xBFC18400: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18400u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC183FC) goto label_BFC18670; @@ -71936,7 +74112,7 @@ label_BFC18404: /* nop */ /* 0xBFC18410: 15800097 bne $t4, $zero, 0xBFC18670 */ uint32_t psx_brA_BFC18410 = cpu->gpr[12]; uint32_t psx_brB_BFC18410 = cpu->gpr[0]; - int psx_taken_BFC18410 = (psx_brA_BFC18410 != psx_brB_BFC18410); + psx_taken_BFC18410 = (psx_brA_BFC18410 != psx_brB_BFC18410); /* 0xBFC18414: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18414u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC18410) goto label_BFC18670; @@ -71978,7 +74154,7 @@ label_BFC18440: /* nop */ /* 0xBFC1844C: 05A00020 bltz $t5, 0xBFC184D0 */ uint32_t psx_brA_BFC1844C = cpu->gpr[13]; - int psx_taken_BFC1844C = ((int32_t)psx_brA_BFC1844C < 0); + psx_taken_BFC1844C = ((int32_t)psx_brA_BFC1844C < 0); /* 0xBFC18450: 00000000 nop */ /* nop */ if (psx_taken_BFC1844C) goto label_BFC184D0; @@ -71999,7 +74175,7 @@ label_BFC1845C: psx_check_interrupts(cpu); /* 0xBFC1845C: 1440001C bne $v0, $zero, 0xBFC184D0 */ uint32_t psx_brA_BFC1845C = cpu->gpr[2]; uint32_t psx_brB_BFC1845C = cpu->gpr[0]; - int psx_taken_BFC1845C = (psx_brA_BFC1845C != psx_brB_BFC1845C); + psx_taken_BFC1845C = (psx_brA_BFC1845C != psx_brB_BFC1845C); /* 0xBFC18460: 00000000 nop */ /* nop */ if (psx_taken_BFC1845C) goto label_BFC184D0; @@ -72096,7 +74272,7 @@ label_BFC184C8: psx_check_interrupts(cpu); /* 0xBFC184C8: 1000005B beq $zero, $zero, 0xBFC18638 */ uint32_t psx_brA_BFC184C8 = cpu->gpr[0]; uint32_t psx_brB_BFC184C8 = cpu->gpr[0]; - int psx_taken_BFC184C8 = (psx_brA_BFC184C8 == psx_brB_BFC184C8); + psx_taken_BFC184C8 = (psx_brA_BFC184C8 == psx_brB_BFC184C8); /* 0xBFC184CC: 00000000 nop */ /* nop */ if (psx_taken_BFC184C8) goto label_BFC18638; @@ -72113,7 +74289,7 @@ label_BFC184D0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); /* 0xBFC184DC: 15E1000B bne $t7, $at, 0xBFC1850C */ uint32_t psx_brA_BFC184DC = cpu->gpr[15]; uint32_t psx_brB_BFC184DC = cpu->gpr[1]; - int psx_taken_BFC184DC = (psx_brA_BFC184DC != psx_brB_BFC184DC); + psx_taken_BFC184DC = (psx_brA_BFC184DC != psx_brB_BFC184DC); /* 0xBFC184E0: 00000000 nop */ /* nop */ if (psx_taken_BFC184DC) goto label_BFC1850C; @@ -72134,7 +74310,7 @@ label_BFC184EC: psx_check_interrupts(cpu); /* 0xBFC184EC: 14400007 bne $v0, $zero, 0xBFC1850C */ uint32_t psx_brA_BFC184EC = cpu->gpr[2]; uint32_t psx_brB_BFC184EC = cpu->gpr[0]; - int psx_taken_BFC184EC = (psx_brA_BFC184EC != psx_brB_BFC184EC); + psx_taken_BFC184EC = (psx_brA_BFC184EC != psx_brB_BFC184EC); /* 0xBFC184F0: 00000000 nop */ /* nop */ if (psx_taken_BFC184EC) goto label_BFC1850C; @@ -72159,7 +74335,7 @@ label_BFC184FC: cpu->gpr[1] = 0x800F0000u; /* 0xBFC18504: 1000004C beq $zero, $zero, 0xBFC18638 */ uint32_t psx_brA_BFC18504 = cpu->gpr[0]; uint32_t psx_brB_BFC18504 = cpu->gpr[0]; - int psx_taken_BFC18504 = (psx_brA_BFC18504 == psx_brB_BFC18504); + psx_taken_BFC18504 = (psx_brA_BFC18504 == psx_brB_BFC18504); /* 0xBFC18508: AC38A780 sw $t8, -22656($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-22656)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18508u); return; } g_debug_last_store_pc = 0xBFC18508u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC18504) goto label_BFC18638; @@ -72214,7 +74390,7 @@ label_BFC18534: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC18540: 17210009 bne $t9, $at, 0xBFC18568 */ uint32_t psx_brA_BFC18540 = cpu->gpr[25]; uint32_t psx_brB_BFC18540 = cpu->gpr[1]; - int psx_taken_BFC18540 = (psx_brA_BFC18540 != psx_brB_BFC18540); + psx_taken_BFC18540 = (psx_brA_BFC18540 != psx_brB_BFC18540); /* 0xBFC18544: 00000000 nop */ /* nop */ if (psx_taken_BFC18540) goto label_BFC18568; @@ -72273,7 +74449,7 @@ label_BFC18578: /* nop */ /* 0xBFC18584: 19000024 blez $t0, 0xBFC18618 */ uint32_t psx_brA_BFC18584 = cpu->gpr[8]; - int psx_taken_BFC18584 = ((int32_t)psx_brA_BFC18584 <= 0); + psx_taken_BFC18584 = ((int32_t)psx_brA_BFC18584 <= 0); /* 0xBFC18588: 00000000 nop */ /* nop */ if (psx_taken_BFC18584) goto label_BFC18618; @@ -72315,7 +74491,7 @@ label_BFC1859C: /* nop */ /* 0xBFC185C0: 122D000F beq $s1, $t5, 0xBFC18600 */ uint32_t psx_brA_BFC185C0 = cpu->gpr[17]; uint32_t psx_brB_BFC185C0 = cpu->gpr[13]; - int psx_taken_BFC185C0 = (psx_brA_BFC185C0 == psx_brB_BFC185C0); + psx_taken_BFC185C0 = (psx_brA_BFC185C0 == psx_brB_BFC185C0); /* 0xBFC185C4: 00000000 nop */ /* nop */ if (psx_taken_BFC185C0) goto label_BFC18600; @@ -72373,7 +74549,7 @@ label_BFC18600: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[25] ? 1 : 0); /* 0xBFC18610: 1420FFE2 bne $at, $zero, 0xBFC1859C */ uint32_t psx_brA_BFC18610 = cpu->gpr[1]; uint32_t psx_brB_BFC18610 = cpu->gpr[0]; - int psx_taken_BFC18610 = (psx_brA_BFC18610 != psx_brB_BFC18610); + psx_taken_BFC18610 = (psx_brA_BFC18610 != psx_brB_BFC18610); /* 0xBFC18614: 000248C0 sll $t1, $v0, 3 */ cpu->gpr[9] = cpu->gpr[2] << 3u; if (psx_taken_BFC18610) goto label_BFC1859C; @@ -72422,7 +74598,7 @@ label_BFC18640: psx_check_interrupts(cpu); /* 0xBFC18640: 14400006 bne $v0, $zero, 0xBFC1865C */ uint32_t psx_brA_BFC18640 = cpu->gpr[2]; uint32_t psx_brB_BFC18640 = cpu->gpr[0]; - int psx_taken_BFC18640 = (psx_brA_BFC18640 != psx_brB_BFC18640); + psx_taken_BFC18640 = (psx_brA_BFC18640 != psx_brB_BFC18640); /* 0xBFC18644: 00000000 nop */ /* nop */ if (psx_taken_BFC18640) goto label_BFC1865C; @@ -72439,7 +74615,7 @@ label_BFC18648: /* nop */ /* 0xBFC18654: 1100FF7A beq $t0, $zero, 0xBFC18440 */ uint32_t psx_brA_BFC18654 = cpu->gpr[8]; uint32_t psx_brB_BFC18654 = cpu->gpr[0]; - int psx_taken_BFC18654 = (psx_brA_BFC18654 == psx_brB_BFC18654); + psx_taken_BFC18654 = (psx_brA_BFC18654 == psx_brB_BFC18654); /* 0xBFC18658: 00000000 nop */ /* nop */ if (psx_taken_BFC18654) goto label_BFC18440; @@ -72499,6 +74675,15 @@ void func_1FC18684(CPUState* cpu) { default: break; } } + int psx_taken_BFC186A0 = 0; + int psx_taken_BFC186A8 = 0; + int psx_taken_BFC186BC = 0; + int psx_taken_BFC186D8 = 0; + int psx_taken_BFC186E8 = 0; + int psx_taken_BFC186F0 = 0; + int psx_taken_BFC18710 = 0; + int psx_taken_BFC18744 = 0; + int psx_taken_BFC1875C = 0; label_BFC18684: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -72526,7 +74711,7 @@ label_BFC186A0: psx_check_interrupts(cpu); /* 0xBFC186A0: 04410003 bgez $v0, 0xBFC186B0 */ uint32_t psx_brA_BFC186A0 = cpu->gpr[2]; - int psx_taken_BFC186A0 = ((int32_t)psx_brA_BFC186A0 >= 0); + psx_taken_BFC186A0 = ((int32_t)psx_brA_BFC186A0 >= 0); /* 0xBFC186A4: 00000000 nop */ /* nop */ if (psx_taken_BFC186A0) goto label_BFC186B0; @@ -72537,7 +74722,7 @@ label_BFC186A8: psx_check_interrupts(cpu); /* 0xBFC186A8: 10000033 beq $zero, $zero, 0xBFC18778 */ uint32_t psx_brA_BFC186A8 = cpu->gpr[0]; uint32_t psx_brB_BFC186A8 = cpu->gpr[0]; - int psx_taken_BFC186A8 = (psx_brA_BFC186A8 == psx_brB_BFC186A8); + psx_taken_BFC186A8 = (psx_brA_BFC186A8 == psx_brB_BFC186A8); /* 0xBFC186AC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC186A8) goto label_BFC18778; @@ -72554,7 +74739,7 @@ label_BFC186B0: /* nop */ /* 0xBFC186BC: 11C0000E beq $t6, $zero, 0xBFC186F8 */ uint32_t psx_brA_BFC186BC = cpu->gpr[14]; uint32_t psx_brB_BFC186BC = cpu->gpr[0]; - int psx_taken_BFC186BC = (psx_brA_BFC186BC == psx_brB_BFC186BC); + psx_taken_BFC186BC = (psx_brA_BFC186BC == psx_brB_BFC186BC); /* 0xBFC186C0: 00000000 nop */ /* nop */ if (psx_taken_BFC186BC) goto label_BFC186F8; @@ -72581,7 +74766,7 @@ label_BFC186D8: psx_check_interrupts(cpu); /* 0xBFC186D8: 14400005 bne $v0, $zero, 0xBFC186F0 */ uint32_t psx_brA_BFC186D8 = cpu->gpr[2]; uint32_t psx_brB_BFC186D8 = cpu->gpr[0]; - int psx_taken_BFC186D8 = (psx_brA_BFC186D8 != psx_brB_BFC186D8); + psx_taken_BFC186D8 = (psx_brA_BFC186D8 != psx_brB_BFC186D8); /* 0xBFC186DC: 00000000 nop */ /* nop */ if (psx_taken_BFC186D8) goto label_BFC186F0; @@ -72602,7 +74787,7 @@ label_BFC186E8: psx_check_interrupts(cpu); /* 0xBFC186E8: 10000005 beq $zero, $zero, 0xBFC18700 */ uint32_t psx_brA_BFC186E8 = cpu->gpr[0]; uint32_t psx_brB_BFC186E8 = cpu->gpr[0]; - int psx_taken_BFC186E8 = (psx_brA_BFC186E8 == psx_brB_BFC186E8); + psx_taken_BFC186E8 = (psx_brA_BFC186E8 == psx_brB_BFC186E8); /* 0xBFC186EC: 00000000 nop */ /* nop */ if (psx_taken_BFC186E8) goto label_BFC18700; @@ -72613,7 +74798,7 @@ label_BFC186F0: psx_check_interrupts(cpu); /* 0xBFC186F0: 10000021 beq $zero, $zero, 0xBFC18778 */ uint32_t psx_brA_BFC186F0 = cpu->gpr[0]; uint32_t psx_brB_BFC186F0 = cpu->gpr[0]; - int psx_taken_BFC186F0 = (psx_brA_BFC186F0 == psx_brB_BFC186F0); + psx_taken_BFC186F0 = (psx_brA_BFC186F0 == psx_brB_BFC186F0); /* 0xBFC186F4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC186F0) goto label_BFC18778; @@ -72654,7 +74839,7 @@ label_BFC18710: psx_check_interrupts(cpu); /* 0xBFC18710: 16000005 bne $s0, $zero, 0xBFC18728 */ uint32_t psx_brA_BFC18710 = cpu->gpr[16]; uint32_t psx_brB_BFC18710 = cpu->gpr[0]; - int psx_taken_BFC18710 = (psx_brA_BFC18710 != psx_brB_BFC18710); + psx_taken_BFC18710 = (psx_brA_BFC18710 != psx_brB_BFC18710); /* 0xBFC18714: 00000000 nop */ /* nop */ if (psx_taken_BFC18710) goto label_BFC18728; @@ -72717,7 +74902,7 @@ label_BFC18740: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC18744: 14500007 bne $v0, $s0, 0xBFC18764 */ uint32_t psx_brA_BFC18744 = cpu->gpr[2]; uint32_t psx_brB_BFC18744 = cpu->gpr[16]; - int psx_taken_BFC18744 = (psx_brA_BFC18744 != psx_brB_BFC18744); + psx_taken_BFC18744 = (psx_brA_BFC18744 != psx_brB_BFC18744); /* 0xBFC18748: 00000000 nop */ /* nop */ if (psx_taken_BFC18744) goto label_BFC18764; @@ -72748,7 +74933,7 @@ label_BFC1875C: psx_check_interrupts(cpu); /* 0xBFC1875C: 1050FFFB beq $v0, $s0, 0xBFC1874C */ uint32_t psx_brA_BFC1875C = cpu->gpr[2]; uint32_t psx_brB_BFC1875C = cpu->gpr[16]; - int psx_taken_BFC1875C = (psx_brA_BFC1875C == psx_brB_BFC1875C); + psx_taken_BFC1875C = (psx_brA_BFC1875C == psx_brB_BFC1875C); /* 0xBFC18760: 00000000 nop */ /* nop */ if (psx_taken_BFC1875C) goto label_BFC1874C; @@ -72827,6 +75012,14 @@ void func_1FC18798(CPUState* cpu) { default: break; } } + int psx_taken_BFC187DC = 0; + int psx_taken_BFC187F0 = 0; + int psx_taken_BFC18810 = 0; + int psx_taken_BFC18820 = 0; + int psx_taken_BFC18834 = 0; + int psx_taken_BFC18854 = 0; + int psx_taken_BFC18890 = 0; + int psx_taken_BFC18898 = 0; label_BFC18798: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -72885,7 +75078,7 @@ label_BFC187D4: /* nop */ /* 0xBFC187DC: 10400006 beq $v0, $zero, 0xBFC187F8 */ uint32_t psx_brA_BFC187DC = cpu->gpr[2]; uint32_t psx_brB_BFC187DC = cpu->gpr[0]; - int psx_taken_BFC187DC = (psx_brA_BFC187DC == psx_brB_BFC187DC); + psx_taken_BFC187DC = (psx_brA_BFC187DC == psx_brB_BFC187DC); /* 0xBFC187E0: 00000000 nop */ /* nop */ if (psx_taken_BFC187DC) goto label_BFC187F8; @@ -72902,7 +75095,7 @@ label_BFC187E4: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); /* 0xBFC187F0: 1000FFF8 beq $zero, $zero, 0xBFC187D4 */ uint32_t psx_brA_BFC187F0 = cpu->gpr[0]; uint32_t psx_brB_BFC187F0 = cpu->gpr[0]; - int psx_taken_BFC187F0 = (psx_brA_BFC187F0 == psx_brB_BFC187F0); + psx_taken_BFC187F0 = (psx_brA_BFC187F0 == psx_brB_BFC187F0); /* 0xBFC187F4: 24630001 addiu $v1, $v1, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); if (psx_taken_BFC187F0) goto label_BFC187D4; @@ -72930,7 +75123,7 @@ label_BFC18808: /* nop */ /* 0xBFC18810: 10400005 beq $v0, $zero, 0xBFC18828 */ uint32_t psx_brA_BFC18810 = cpu->gpr[2]; uint32_t psx_brB_BFC18810 = cpu->gpr[0]; - int psx_taken_BFC18810 = (psx_brA_BFC18810 == psx_brB_BFC18810); + psx_taken_BFC18810 = (psx_brA_BFC18810 == psx_brB_BFC18810); /* 0xBFC18814: 00000000 nop */ /* nop */ if (psx_taken_BFC18810) goto label_BFC18828; @@ -72945,7 +75138,7 @@ label_BFC18818: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (1)); /* 0xBFC18820: 1000FFF9 beq $zero, $zero, 0xBFC18808 */ uint32_t psx_brA_BFC18820 = cpu->gpr[0]; uint32_t psx_brB_BFC18820 = cpu->gpr[0]; - int psx_taken_BFC18820 = (psx_brA_BFC18820 == psx_brB_BFC18820); + psx_taken_BFC18820 = (psx_brA_BFC18820 == psx_brB_BFC18820); /* 0xBFC18824: 24630001 addiu $v1, $v1, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); if (psx_taken_BFC18820) goto label_BFC18808; @@ -72962,7 +75155,7 @@ label_BFC18828: /* nop */ /* 0xBFC18834: 15C00009 bne $t6, $zero, 0xBFC1885C */ uint32_t psx_brA_BFC18834 = cpu->gpr[14]; uint32_t psx_brB_BFC18834 = cpu->gpr[0]; - int psx_taken_BFC18834 = (psx_brA_BFC18834 != psx_brB_BFC18834); + psx_taken_BFC18834 = (psx_brA_BFC18834 != psx_brB_BFC18834); /* 0xBFC18838: 00000000 nop */ /* nop */ if (psx_taken_BFC18834) goto label_BFC1885C; @@ -72997,7 +75190,7 @@ label_BFC18854: psx_check_interrupts(cpu); /* 0xBFC18854: 10000009 beq $zero, $zero, 0xBFC1887C */ uint32_t psx_brA_BFC18854 = cpu->gpr[0]; uint32_t psx_brB_BFC18854 = cpu->gpr[0]; - int psx_taken_BFC18854 = (psx_brA_BFC18854 == psx_brB_BFC18854); + psx_taken_BFC18854 = (psx_brA_BFC18854 == psx_brB_BFC18854); /* 0xBFC18858: 00000000 nop */ /* nop */ if (psx_taken_BFC18854) goto label_BFC1887C; @@ -73052,7 +75245,7 @@ label_BFC18884: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (69)); /* 0xBFC18890: 15E10004 bne $t7, $at, 0xBFC188A4 */ uint32_t psx_brA_BFC18890 = cpu->gpr[15]; uint32_t psx_brB_BFC18890 = cpu->gpr[1]; - int psx_taken_BFC18890 = (psx_brA_BFC18890 != psx_brB_BFC18890); + psx_taken_BFC18890 = (psx_brA_BFC18890 != psx_brB_BFC18890); /* 0xBFC18894: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC18890) goto label_BFC188A4; @@ -73063,7 +75256,7 @@ label_BFC18898: psx_check_interrupts(cpu); /* 0xBFC18898: 10000002 beq $zero, $zero, 0xBFC188A4 */ uint32_t psx_brA_BFC18898 = cpu->gpr[0]; uint32_t psx_brB_BFC18898 = cpu->gpr[0]; - int psx_taken_BFC18898 = (psx_brA_BFC18898 == psx_brB_BFC18898); + psx_taken_BFC18898 = (psx_brA_BFC18898 == psx_brB_BFC18898); /* 0xBFC1889C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC18898) goto label_BFC188A4; @@ -73091,6 +75284,8 @@ label_BFC188A4: void func_1FC188B4(CPUState* cpu) { debug_server_log_call_entry(0x1FC188B4u); + int psx_taken_BFC188B8 = 0; + int psx_taken_BFC188D4 = 0; label_BFC188B4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -73100,7 +75295,7 @@ label_BFC188B4: cpu->gpr[2] = cpu->gpr[6] + cpu->gpr[0]; /* 0xBFC188B8: 10400008 beq $v0, $zero, 0xBFC188DC */ uint32_t psx_brA_BFC188B8 = cpu->gpr[2]; uint32_t psx_brB_BFC188B8 = cpu->gpr[0]; - int psx_taken_BFC188B8 = (psx_brA_BFC188B8 == psx_brB_BFC188B8); + psx_taken_BFC188B8 = (psx_brA_BFC188B8 == psx_brB_BFC188B8); /* 0xBFC188BC: 24C6FFFF addiu $a2, $a2, -1 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); if (psx_taken_BFC188B8) goto label_BFC188DC; @@ -73121,7 +75316,7 @@ label_BFC188C0: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); /* 0xBFC188D4: 1440FFFA bne $v0, $zero, 0xBFC188C0 */ uint32_t psx_brA_BFC188D4 = cpu->gpr[2]; uint32_t psx_brB_BFC188D4 = cpu->gpr[0]; - int psx_taken_BFC188D4 = (psx_brA_BFC188D4 != psx_brB_BFC188D4); + psx_taken_BFC188D4 = (psx_brA_BFC188D4 != psx_brB_BFC188D4); /* 0xBFC188D8: A08EFFFF sb $t6, -1($a0) */ g_debug_last_store_pc = 0xBFC188D8u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[4] + (-1)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC188D4) goto label_BFC188C0; @@ -73148,6 +75343,11 @@ void func_1FC188F0(CPUState* cpu) { default: break; } } + int psx_taken_BFC18914 = 0; + int psx_taken_BFC18928 = 0; + int psx_taken_BFC18938 = 0; + int psx_taken_BFC18950 = 0; + int psx_taken_BFC18958 = 0; label_BFC188F0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -73179,7 +75379,7 @@ label_BFC18900: /* nop */ /* 0xBFC18914: 14830010 bne $a0, $v1, 0xBFC18958 */ uint32_t psx_brA_BFC18914 = cpu->gpr[4]; uint32_t psx_brB_BFC18914 = cpu->gpr[3]; - int psx_taken_BFC18914 = (psx_brA_BFC18914 != psx_brB_BFC18914); + psx_taken_BFC18914 = (psx_brA_BFC18914 != psx_brB_BFC18914); /* 0xBFC18918: 00000000 nop */ /* nop */ if (psx_taken_BFC18914) goto label_BFC18958; @@ -73196,7 +75396,7 @@ label_BFC1891C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC18928: 11C10012 beq $t6, $at, 0xBFC18974 */ uint32_t psx_brA_BFC18928 = cpu->gpr[14]; uint32_t psx_brB_BFC18928 = cpu->gpr[1]; - int psx_taken_BFC18928 = (psx_brA_BFC18928 == psx_brB_BFC18928); + psx_taken_BFC18928 = (psx_brA_BFC18928 == psx_brB_BFC18928); /* 0xBFC1892C: 3C015000 lui $at, 0x5000 */ cpu->gpr[1] = 0x50000000u; if (psx_taken_BFC18928) goto label_BFC18974; @@ -73211,7 +75411,7 @@ label_BFC18930: cpu->gpr[15] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC18938: 15E0000F bne $t7, $zero, 0xBFC18978 */ uint32_t psx_brA_BFC18938 = cpu->gpr[15]; uint32_t psx_brB_BFC18938 = cpu->gpr[0]; - int psx_taken_BFC18938 = (psx_brA_BFC18938 != psx_brB_BFC18938); + psx_taken_BFC18938 = (psx_brA_BFC18938 != psx_brB_BFC18938); /* 0xBFC1893C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1893Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC18938) goto label_BFC18978; @@ -73236,7 +75436,7 @@ label_BFC18948: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (-25060)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1894Cu); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC18950: 10000009 beq $zero, $zero, 0xBFC18978 */ uint32_t psx_brA_BFC18950 = cpu->gpr[0]; uint32_t psx_brB_BFC18950 = cpu->gpr[0]; - int psx_taken_BFC18950 = (psx_brA_BFC18950 == psx_brB_BFC18950); + psx_taken_BFC18950 = (psx_brA_BFC18950 == psx_brB_BFC18950); /* 0xBFC18954: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18954u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC18950) goto label_BFC18978; @@ -73247,7 +75447,7 @@ label_BFC18958: psx_check_interrupts(cpu); /* 0xBFC18958: 14600007 bne $v1, $zero, 0xBFC18978 */ uint32_t psx_brA_BFC18958 = cpu->gpr[3]; uint32_t psx_brB_BFC18958 = cpu->gpr[0]; - int psx_taken_BFC18958 = (psx_brA_BFC18958 != psx_brB_BFC18958); + psx_taken_BFC18958 = (psx_brA_BFC18958 != psx_brB_BFC18958); /* 0xBFC1895C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1895Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC18958) goto label_BFC18978; @@ -73325,6 +75525,43 @@ void func_1FC18990(CPUState* cpu) { default: break; } } + int psx_taken_BFC1899C = 0; + int psx_taken_BFC189A8 = 0; + int psx_taken_BFC189C8 = 0; + int psx_taken_BFC189DC = 0; + int psx_taken_BFC189F0 = 0; + int psx_taken_BFC189F8 = 0; + int psx_taken_BFC18A20 = 0; + int psx_taken_BFC18A34 = 0; + int psx_taken_BFC18A54 = 0; + int psx_taken_BFC18A68 = 0; + int psx_taken_BFC18A88 = 0; + int psx_taken_BFC18A9C = 0; + int psx_taken_BFC18AB0 = 0; + int psx_taken_BFC18AC0 = 0; + int psx_taken_BFC18AD4 = 0; + int psx_taken_BFC18AE8 = 0; + int psx_taken_BFC18AFC = 0; + int psx_taken_BFC18B14 = 0; + int psx_taken_BFC18B28 = 0; + int psx_taken_BFC18B48 = 0; + int psx_taken_BFC18B9C = 0; + int psx_taken_BFC18BB0 = 0; + int psx_taken_BFC18BC4 = 0; + int psx_taken_BFC18BD4 = 0; + int psx_taken_BFC18BE8 = 0; + int psx_taken_BFC18BFC = 0; + int psx_taken_BFC18C0C = 0; + int psx_taken_BFC18C34 = 0; + int psx_taken_BFC18C48 = 0; + int psx_taken_BFC18C58 = 0; + int psx_taken_BFC18C74 = 0; + int psx_taken_BFC18C88 = 0; + int psx_taken_BFC18C9C = 0; + int psx_taken_BFC18CB0 = 0; + int psx_taken_BFC18CC4 = 0; + int psx_taken_BFC18CD8 = 0; + int psx_taken_BFC18CEC = 0; label_BFC18990: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -73338,7 +75575,7 @@ label_BFC18990: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC1899C: 11C00004 beq $t6, $zero, 0xBFC189B0 */ uint32_t psx_brA_BFC1899C = cpu->gpr[14]; uint32_t psx_brB_BFC1899C = cpu->gpr[0]; - int psx_taken_BFC1899C = (psx_brA_BFC1899C == psx_brB_BFC1899C); + psx_taken_BFC1899C = (psx_brA_BFC1899C == psx_brB_BFC1899C); /* 0xBFC189A0: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC189A0u); return; } g_debug_last_store_pc = 0xBFC189A0u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1899C) goto label_BFC189B0; @@ -73351,7 +75588,7 @@ label_BFC189A4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC189A8: 15C100B4 bne $t6, $at, 0xBFC18C7C */ uint32_t psx_brA_BFC189A8 = cpu->gpr[14]; uint32_t psx_brB_BFC189A8 = cpu->gpr[1]; - int psx_taken_BFC189A8 = (psx_brA_BFC189A8 != psx_brB_BFC189A8); + psx_taken_BFC189A8 = (psx_brA_BFC189A8 != psx_brB_BFC189A8); /* 0xBFC189AC: 00000000 nop */ /* nop */ if (psx_taken_BFC189A8) goto label_BFC18C7C; @@ -73374,7 +75611,7 @@ label_BFC189B0: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC189C8: 104000AC beq $v0, $zero, 0xBFC18C7C */ uint32_t psx_brA_BFC189C8 = cpu->gpr[2]; uint32_t psx_brB_BFC189C8 = cpu->gpr[0]; - int psx_taken_BFC189C8 = (psx_brA_BFC189C8 == psx_brB_BFC189C8); + psx_taken_BFC189C8 = (psx_brA_BFC189C8 == psx_brB_BFC189C8); /* 0xBFC189CC: AC239E34 sw $v1, -25036($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25036)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC189CCu); return; } g_debug_last_store_pc = 0xBFC189CCu; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC189C8) goto label_BFC18C7C; @@ -73391,7 +75628,7 @@ label_BFC189D0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC189DC: 15E10008 bne $t7, $at, 0xBFC18A00 */ uint32_t psx_brA_BFC189DC = cpu->gpr[15]; uint32_t psx_brB_BFC189DC = cpu->gpr[1]; - int psx_taken_BFC189DC = (psx_brA_BFC189DC != psx_brB_BFC189DC); + psx_taken_BFC189DC = (psx_brA_BFC189DC != psx_brB_BFC189DC); /* 0xBFC189E0: 00000000 nop */ /* nop */ if (psx_taken_BFC189DC) goto label_BFC18A00; @@ -73408,7 +75645,7 @@ label_BFC189E4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC189F0: 13010003 beq $t8, $at, 0xBFC18A00 */ uint32_t psx_brA_BFC189F0 = cpu->gpr[24]; uint32_t psx_brB_BFC189F0 = cpu->gpr[1]; - int psx_taken_BFC189F0 = (psx_brA_BFC189F0 == psx_brB_BFC189F0); + psx_taken_BFC189F0 = (psx_brA_BFC189F0 == psx_brB_BFC189F0); /* 0xBFC189F4: 3C018006 lui $at, 0x8006 */ cpu->gpr[1] = 0x80060000u; if (psx_taken_BFC189F0) goto label_BFC18A00; @@ -73419,7 +75656,7 @@ label_BFC189F8: psx_check_interrupts(cpu); /* 0xBFC189F8: 100000C1 beq $zero, $zero, 0xBFC18D00 */ uint32_t psx_brA_BFC189F8 = cpu->gpr[0]; uint32_t psx_brB_BFC189F8 = cpu->gpr[0]; - int psx_taken_BFC189F8 = (psx_brA_BFC189F8 == psx_brB_BFC189F8); + psx_taken_BFC189F8 = (psx_brA_BFC189F8 == psx_brB_BFC189F8); /* 0xBFC189FC: AC20AED4 sw $zero, -20780($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-20780)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC189FCu); return; } g_debug_last_store_pc = 0xBFC189FCu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC189F8) goto label_BFC18D00; @@ -73452,7 +75689,7 @@ label_BFC18A14: /* nop */ /* 0xBFC18A20: 1320000E beq $t9, $zero, 0xBFC18A5C */ uint32_t psx_brA_BFC18A20 = cpu->gpr[25]; uint32_t psx_brB_BFC18A20 = cpu->gpr[0]; - int psx_taken_BFC18A20 = (psx_brA_BFC18A20 == psx_brB_BFC18A20); + psx_taken_BFC18A20 = (psx_brA_BFC18A20 == psx_brB_BFC18A20); /* 0xBFC18A24: 00000000 nop */ /* nop */ if (psx_taken_BFC18A20) goto label_BFC18A5C; @@ -73469,7 +75706,7 @@ label_BFC18A28: /* nop */ /* 0xBFC18A34: 15000009 bne $t0, $zero, 0xBFC18A5C */ uint32_t psx_brA_BFC18A34 = cpu->gpr[8]; uint32_t psx_brB_BFC18A34 = cpu->gpr[0]; - int psx_taken_BFC18A34 = (psx_brA_BFC18A34 != psx_brB_BFC18A34); + psx_taken_BFC18A34 = (psx_brA_BFC18A34 != psx_brB_BFC18A34); /* 0xBFC18A38: 00000000 nop */ /* nop */ if (psx_taken_BFC18A34) goto label_BFC18A5C; @@ -73498,7 +75735,7 @@ label_BFC18A44: cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC18A54: 10000009 beq $zero, $zero, 0xBFC18A7C */ uint32_t psx_brA_BFC18A54 = cpu->gpr[0]; uint32_t psx_brB_BFC18A54 = cpu->gpr[0]; - int psx_taken_BFC18A54 = (psx_brA_BFC18A54 == psx_brB_BFC18A54); + psx_taken_BFC18A54 = (psx_brA_BFC18A54 == psx_brB_BFC18A54); /* 0xBFC18A58: AC29AED4 sw $t1, -20780($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-20780)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18A58u); return; } g_debug_last_store_pc = 0xBFC18A58u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC18A54) goto label_BFC18A7C; @@ -73515,7 +75752,7 @@ label_BFC18A5C: /* nop */ /* 0xBFC18A68: 11400004 beq $t2, $zero, 0xBFC18A7C */ uint32_t psx_brA_BFC18A68 = cpu->gpr[10]; uint32_t psx_brB_BFC18A68 = cpu->gpr[0]; - int psx_taken_BFC18A68 = (psx_brA_BFC18A68 == psx_brB_BFC18A68); + psx_taken_BFC18A68 = (psx_brA_BFC18A68 == psx_brB_BFC18A68); /* 0xBFC18A6C: 3C018006 lui $at, 0x8006 */ cpu->gpr[1] = 0x80060000u; if (psx_taken_BFC18A68) goto label_BFC18A7C; @@ -73544,7 +75781,7 @@ label_BFC18A7C: /* nop */ /* 0xBFC18A88: 1560007C bne $t3, $zero, 0xBFC18C7C */ uint32_t psx_brA_BFC18A88 = cpu->gpr[11]; uint32_t psx_brB_BFC18A88 = cpu->gpr[0]; - int psx_taken_BFC18A88 = (psx_brA_BFC18A88 != psx_brB_BFC18A88); + psx_taken_BFC18A88 = (psx_brA_BFC18A88 != psx_brB_BFC18A88); /* 0xBFC18A8C: 00000000 nop */ /* nop */ if (psx_taken_BFC18A88) goto label_BFC18C7C; @@ -73561,7 +75798,7 @@ label_BFC18A90: /* nop */ /* 0xBFC18A9C: 15800077 bne $t4, $zero, 0xBFC18C7C */ uint32_t psx_brA_BFC18A9C = cpu->gpr[12]; uint32_t psx_brB_BFC18A9C = cpu->gpr[0]; - int psx_taken_BFC18A9C = (psx_brA_BFC18A9C != psx_brB_BFC18A9C); + psx_taken_BFC18A9C = (psx_brA_BFC18A9C != psx_brB_BFC18A9C); /* 0xBFC18AA0: 00000000 nop */ /* nop */ if (psx_taken_BFC18A9C) goto label_BFC18C7C; @@ -73578,7 +75815,7 @@ label_BFC18AA4: /* nop */ /* 0xBFC18AB0: 15A00072 bne $t5, $zero, 0xBFC18C7C */ uint32_t psx_brA_BFC18AB0 = cpu->gpr[13]; uint32_t psx_brB_BFC18AB0 = cpu->gpr[0]; - int psx_taken_BFC18AB0 = (psx_brA_BFC18AB0 != psx_brB_BFC18AB0); + psx_taken_BFC18AB0 = (psx_brA_BFC18AB0 != psx_brB_BFC18AB0); /* 0xBFC18AB4: 00000000 nop */ /* nop */ if (psx_taken_BFC18AB0) goto label_BFC18C7C; @@ -73599,7 +75836,7 @@ label_BFC18AC0: psx_check_interrupts(cpu); /* 0xBFC18AC0: 1840006E blez $v0, 0xBFC18C7C */ uint32_t psx_brA_BFC18AC0 = cpu->gpr[2]; - int psx_taken_BFC18AC0 = ((int32_t)psx_brA_BFC18AC0 <= 0); + psx_taken_BFC18AC0 = ((int32_t)psx_brA_BFC18AC0 <= 0); /* 0xBFC18AC4: 00000000 nop */ /* nop */ if (psx_taken_BFC18AC0) goto label_BFC18C7C; @@ -73616,7 +75853,7 @@ label_BFC18AC8: /* nop */ /* 0xBFC18AD4: 15C00059 bne $t6, $zero, 0xBFC18C3C */ uint32_t psx_brA_BFC18AD4 = cpu->gpr[14]; uint32_t psx_brB_BFC18AD4 = cpu->gpr[0]; - int psx_taken_BFC18AD4 = (psx_brA_BFC18AD4 != psx_brB_BFC18AD4); + psx_taken_BFC18AD4 = (psx_brA_BFC18AD4 != psx_brB_BFC18AD4); /* 0xBFC18AD8: 00000000 nop */ /* nop */ if (psx_taken_BFC18AD4) goto label_BFC18C3C; @@ -73633,7 +75870,7 @@ label_BFC18ADC: /* nop */ /* 0xBFC18AE8: 11E0002E beq $t7, $zero, 0xBFC18BA4 */ uint32_t psx_brA_BFC18AE8 = cpu->gpr[15]; uint32_t psx_brB_BFC18AE8 = cpu->gpr[0]; - int psx_taken_BFC18AE8 = (psx_brA_BFC18AE8 == psx_brB_BFC18AE8); + psx_taken_BFC18AE8 = (psx_brA_BFC18AE8 == psx_brB_BFC18AE8); /* 0xBFC18AEC: 00000000 nop */ /* nop */ if (psx_taken_BFC18AE8) goto label_BFC18BA4; @@ -73650,7 +75887,7 @@ label_BFC18AF0: /* nop */ /* 0xBFC18AFC: 13000003 beq $t8, $zero, 0xBFC18B0C */ uint32_t psx_brA_BFC18AFC = cpu->gpr[24]; uint32_t psx_brB_BFC18AFC = cpu->gpr[0]; - int psx_taken_BFC18AFC = (psx_brA_BFC18AFC == psx_brB_BFC18AFC); + psx_taken_BFC18AFC = (psx_brA_BFC18AFC == psx_brB_BFC18AFC); /* 0xBFC18B00: 00000000 nop */ /* nop */ if (psx_taken_BFC18AFC) goto label_BFC18B0C; @@ -73681,7 +75918,7 @@ label_BFC18B14: psx_check_interrupts(cpu); /* 0xBFC18B14: 18400059 blez $v0, 0xBFC18C7C */ uint32_t psx_brA_BFC18B14 = cpu->gpr[2]; - int psx_taken_BFC18B14 = ((int32_t)psx_brA_BFC18B14 <= 0); + psx_taken_BFC18B14 = ((int32_t)psx_brA_BFC18B14 <= 0); /* 0xBFC18B18: 00000000 nop */ /* nop */ if (psx_taken_BFC18B14) goto label_BFC18C7C; @@ -73698,7 +75935,7 @@ label_BFC18B1C: /* nop */ /* 0xBFC18B28: 13200054 beq $t9, $zero, 0xBFC18C7C */ uint32_t psx_brA_BFC18B28 = cpu->gpr[25]; uint32_t psx_brB_BFC18B28 = cpu->gpr[0]; - int psx_taken_BFC18B28 = (psx_brA_BFC18B28 == psx_brB_BFC18B28); + psx_taken_BFC18B28 = (psx_brA_BFC18B28 == psx_brB_BFC18B28); /* 0xBFC18B2C: 00000000 nop */ /* nop */ if (psx_taken_BFC18B28) goto label_BFC18C7C; @@ -73739,7 +75976,7 @@ label_BFC18B48: psx_check_interrupts(cpu); /* 0xBFC18B48: 1840004C blez $v0, 0xBFC18C7C */ uint32_t psx_brA_BFC18B48 = cpu->gpr[2]; - int psx_taken_BFC18B48 = ((int32_t)psx_brA_BFC18B48 <= 0); + psx_taken_BFC18B48 = ((int32_t)psx_brA_BFC18B48 <= 0); /* 0xBFC18B4C: 00000000 nop */ /* nop */ if (psx_taken_BFC18B48) goto label_BFC18C7C; @@ -73818,7 +76055,7 @@ label_BFC18B94: cpu->gpr[1] = 0x80080000u; /* 0xBFC18B9C: 10000058 beq $zero, $zero, 0xBFC18D00 */ uint32_t psx_brA_BFC18B9C = cpu->gpr[0]; uint32_t psx_brB_BFC18B9C = cpu->gpr[0]; - int psx_taken_BFC18B9C = (psx_brA_BFC18B9C == psx_brB_BFC18B9C); + psx_taken_BFC18B9C = (psx_brA_BFC18B9C == psx_brB_BFC18B9C); /* 0xBFC18BA0: AC299E28 sw $t1, -25048($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25048)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18BA0u); return; } g_debug_last_store_pc = 0xBFC18BA0u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC18B9C) goto label_BFC18D00; @@ -73835,7 +76072,7 @@ label_BFC18BA4: /* nop */ /* 0xBFC18BB0: 1540000A bne $t2, $zero, 0xBFC18BDC */ uint32_t psx_brA_BFC18BB0 = cpu->gpr[10]; uint32_t psx_brB_BFC18BB0 = cpu->gpr[0]; - int psx_taken_BFC18BB0 = (psx_brA_BFC18BB0 != psx_brB_BFC18BB0); + psx_taken_BFC18BB0 = (psx_brA_BFC18BB0 != psx_brB_BFC18BB0); /* 0xBFC18BB4: 00000000 nop */ /* nop */ if (psx_taken_BFC18BB0) goto label_BFC18BDC; @@ -73852,7 +76089,7 @@ label_BFC18BB8: /* nop */ /* 0xBFC18BC4: 15600005 bne $t3, $zero, 0xBFC18BDC */ uint32_t psx_brA_BFC18BC4 = cpu->gpr[11]; uint32_t psx_brB_BFC18BC4 = cpu->gpr[0]; - int psx_taken_BFC18BC4 = (psx_brA_BFC18BC4 != psx_brB_BFC18BC4); + psx_taken_BFC18BC4 = (psx_brA_BFC18BC4 != psx_brB_BFC18BC4); /* 0xBFC18BC8: 00000000 nop */ /* nop */ if (psx_taken_BFC18BC4) goto label_BFC18BDC; @@ -73867,7 +76104,7 @@ label_BFC18BCC: cpu->gpr[1] = 0x800F0000u; /* 0xBFC18BD4: 1000004A beq $zero, $zero, 0xBFC18D00 */ uint32_t psx_brA_BFC18BD4 = cpu->gpr[0]; uint32_t psx_brB_BFC18BD4 = cpu->gpr[0]; - int psx_taken_BFC18BD4 = (psx_brA_BFC18BD4 == psx_brB_BFC18BD4); + psx_taken_BFC18BD4 = (psx_brA_BFC18BD4 == psx_brB_BFC18BD4); /* 0xBFC18BD8: AC2CA780 sw $t4, -22656($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-22656)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18BD8u); return; } g_debug_last_store_pc = 0xBFC18BD8u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC18BD4) goto label_BFC18D00; @@ -73884,7 +76121,7 @@ label_BFC18BDC: /* nop */ /* 0xBFC18BE8: 11A00024 beq $t5, $zero, 0xBFC18C7C */ uint32_t psx_brA_BFC18BE8 = cpu->gpr[13]; uint32_t psx_brB_BFC18BE8 = cpu->gpr[0]; - int psx_taken_BFC18BE8 = (psx_brA_BFC18BE8 == psx_brB_BFC18BE8); + psx_taken_BFC18BE8 = (psx_brA_BFC18BE8 == psx_brB_BFC18BE8); /* 0xBFC18BEC: 00000000 nop */ /* nop */ if (psx_taken_BFC18BE8) goto label_BFC18C7C; @@ -73901,7 +76138,7 @@ label_BFC18BF0: /* nop */ /* 0xBFC18BFC: 15C0001F bne $t6, $zero, 0xBFC18C7C */ uint32_t psx_brA_BFC18BFC = cpu->gpr[14]; uint32_t psx_brB_BFC18BFC = cpu->gpr[0]; - int psx_taken_BFC18BFC = (psx_brA_BFC18BFC != psx_brB_BFC18BFC); + psx_taken_BFC18BFC = (psx_brA_BFC18BFC != psx_brB_BFC18BFC); /* 0xBFC18C00: 00000000 nop */ /* nop */ if (psx_taken_BFC18BFC) goto label_BFC18C7C; @@ -73922,7 +76159,7 @@ label_BFC18C0C: psx_check_interrupts(cpu); /* 0xBFC18C0C: 1040001B beq $v0, $zero, 0xBFC18C7C */ uint32_t psx_brA_BFC18C0C = cpu->gpr[2]; uint32_t psx_brB_BFC18C0C = cpu->gpr[0]; - int psx_taken_BFC18C0C = (psx_brA_BFC18C0C == psx_brB_BFC18C0C); + psx_taken_BFC18C0C = (psx_brA_BFC18C0C == psx_brB_BFC18C0C); /* 0xBFC18C10: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC18C0C) goto label_BFC18C7C; @@ -73955,7 +76192,7 @@ label_BFC18C2C: cpu->gpr[1] = 0x80080000u; /* 0xBFC18C34: 10000032 beq $zero, $zero, 0xBFC18D00 */ uint32_t psx_brA_BFC18C34 = cpu->gpr[0]; uint32_t psx_brB_BFC18C34 = cpu->gpr[0]; - int psx_taken_BFC18C34 = (psx_brA_BFC18C34 == psx_brB_BFC18C34); + psx_taken_BFC18C34 = (psx_brA_BFC18C34 == psx_brB_BFC18C34); /* 0xBFC18C38: AC389E30 sw $t8, -25040($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25040)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18C38u); return; } g_debug_last_store_pc = 0xBFC18C38u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC18C34) goto label_BFC18D00; @@ -73972,7 +76209,7 @@ label_BFC18C3C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC18C48: 1721000C bne $t9, $at, 0xBFC18C7C */ uint32_t psx_brA_BFC18C48 = cpu->gpr[25]; uint32_t psx_brB_BFC18C48 = cpu->gpr[1]; - int psx_taken_BFC18C48 = (psx_brA_BFC18C48 != psx_brB_BFC18C48); + psx_taken_BFC18C48 = (psx_brA_BFC18C48 != psx_brB_BFC18C48); /* 0xBFC18C4C: 00000000 nop */ /* nop */ if (psx_taken_BFC18C48) goto label_BFC18C7C; @@ -73993,7 +76230,7 @@ label_BFC18C58: psx_check_interrupts(cpu); /* 0xBFC18C58: 10400008 beq $v0, $zero, 0xBFC18C7C */ uint32_t psx_brA_BFC18C58 = cpu->gpr[2]; uint32_t psx_brB_BFC18C58 = cpu->gpr[0]; - int psx_taken_BFC18C58 = (psx_brA_BFC18C58 == psx_brB_BFC18C58); + psx_taken_BFC18C58 = (psx_brA_BFC18C58 == psx_brB_BFC18C58); /* 0xBFC18C5C: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC18C58) goto label_BFC18C7C; @@ -74020,7 +76257,7 @@ label_BFC18C6C: cpu->gpr[1] = 0x80080000u; /* 0xBFC18C74: 10000022 beq $zero, $zero, 0xBFC18D00 */ uint32_t psx_brA_BFC18C74 = cpu->gpr[0]; uint32_t psx_brB_BFC18C74 = cpu->gpr[0]; - int psx_taken_BFC18C74 = (psx_brA_BFC18C74 == psx_brB_BFC18C74); + psx_taken_BFC18C74 = (psx_brA_BFC18C74 == psx_brB_BFC18C74); /* 0xBFC18C78: AC289E30 sw $t0, -25040($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25040)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18C78u); return; } g_debug_last_store_pc = 0xBFC18C78u; cpu->write_word(psx_addr, cpu->gpr[8]); } if (psx_taken_BFC18C74) goto label_BFC18D00; @@ -74037,7 +76274,7 @@ label_BFC18C7C: /* nop */ /* 0xBFC18C88: 1520001E bne $t1, $zero, 0xBFC18D04 */ uint32_t psx_brA_BFC18C88 = cpu->gpr[9]; uint32_t psx_brB_BFC18C88 = cpu->gpr[0]; - int psx_taken_BFC18C88 = (psx_brA_BFC18C88 != psx_brB_BFC18C88); + psx_taken_BFC18C88 = (psx_brA_BFC18C88 != psx_brB_BFC18C88); /* 0xBFC18C8C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18C8Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC18C88) goto label_BFC18D04; @@ -74054,7 +76291,7 @@ label_BFC18C90: /* nop */ /* 0xBFC18C9C: 15400019 bne $t2, $zero, 0xBFC18D04 */ uint32_t psx_brA_BFC18C9C = cpu->gpr[10]; uint32_t psx_brB_BFC18C9C = cpu->gpr[0]; - int psx_taken_BFC18C9C = (psx_brA_BFC18C9C != psx_brB_BFC18C9C); + psx_taken_BFC18C9C = (psx_brA_BFC18C9C != psx_brB_BFC18C9C); /* 0xBFC18CA0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18CA0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC18C9C) goto label_BFC18D04; @@ -74071,7 +76308,7 @@ label_BFC18CA4: /* nop */ /* 0xBFC18CB0: 15600014 bne $t3, $zero, 0xBFC18D04 */ uint32_t psx_brA_BFC18CB0 = cpu->gpr[11]; uint32_t psx_brB_BFC18CB0 = cpu->gpr[0]; - int psx_taken_BFC18CB0 = (psx_brA_BFC18CB0 != psx_brB_BFC18CB0); + psx_taken_BFC18CB0 = (psx_brA_BFC18CB0 != psx_brB_BFC18CB0); /* 0xBFC18CB4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18CB4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC18CB0) goto label_BFC18D04; @@ -74088,7 +76325,7 @@ label_BFC18CB8: /* nop */ /* 0xBFC18CC4: 1580000F bne $t4, $zero, 0xBFC18D04 */ uint32_t psx_brA_BFC18CC4 = cpu->gpr[12]; uint32_t psx_brB_BFC18CC4 = cpu->gpr[0]; - int psx_taken_BFC18CC4 = (psx_brA_BFC18CC4 != psx_brB_BFC18CC4); + psx_taken_BFC18CC4 = (psx_brA_BFC18CC4 != psx_brB_BFC18CC4); /* 0xBFC18CC8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18CC8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC18CC4) goto label_BFC18D04; @@ -74105,7 +76342,7 @@ label_BFC18CCC: /* nop */ /* 0xBFC18CD8: 15A0000A bne $t5, $zero, 0xBFC18D04 */ uint32_t psx_brA_BFC18CD8 = cpu->gpr[13]; uint32_t psx_brB_BFC18CD8 = cpu->gpr[0]; - int psx_taken_BFC18CD8 = (psx_brA_BFC18CD8 != psx_brB_BFC18CD8); + psx_taken_BFC18CD8 = (psx_brA_BFC18CD8 != psx_brB_BFC18CD8); /* 0xBFC18CDC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18CDCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC18CD8) goto label_BFC18D04; @@ -74122,7 +76359,7 @@ label_BFC18CE0: /* nop */ /* 0xBFC18CEC: 11C00005 beq $t6, $zero, 0xBFC18D04 */ uint32_t psx_brA_BFC18CEC = cpu->gpr[14]; uint32_t psx_brB_BFC18CEC = cpu->gpr[0]; - int psx_taken_BFC18CEC = (psx_brA_BFC18CEC == psx_brB_BFC18CEC); + psx_taken_BFC18CEC = (psx_brA_BFC18CEC == psx_brB_BFC18CEC); /* 0xBFC18CF0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC18CF0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC18CEC) goto label_BFC18D04; @@ -74201,6 +76438,8 @@ void func_1FC18D10(CPUState* cpu) { default: break; } } + int psx_taken_BFC18DE4 = 0; + int psx_taken_BFC18DEC = 0; label_BFC18D10: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -74368,7 +76607,7 @@ label_BFC18DD8: /* nop */ /* 0xBFC18DE4: 15000003 bne $t0, $zero, 0xBFC18DF4 */ uint32_t psx_brA_BFC18DE4 = cpu->gpr[8]; uint32_t psx_brB_BFC18DE4 = cpu->gpr[0]; - int psx_taken_BFC18DE4 = (psx_brA_BFC18DE4 != psx_brB_BFC18DE4); + psx_taken_BFC18DE4 = (psx_brA_BFC18DE4 != psx_brB_BFC18DE4); /* 0xBFC18DE8: 00000000 nop */ /* nop */ if (psx_taken_BFC18DE4) goto label_BFC18DF4; @@ -74379,7 +76618,7 @@ label_BFC18DEC: psx_check_interrupts(cpu); /* 0xBFC18DEC: 1000000C beq $zero, $zero, 0xBFC18E20 */ uint32_t psx_brA_BFC18DEC = cpu->gpr[0]; uint32_t psx_brB_BFC18DEC = cpu->gpr[0]; - int psx_taken_BFC18DEC = (psx_brA_BFC18DEC == psx_brB_BFC18DEC); + psx_taken_BFC18DEC = (psx_brA_BFC18DEC == psx_brB_BFC18DEC); /* 0xBFC18DF0: 24050001 addiu $a1, $zero, 1 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC18DEC) goto label_BFC18E20; @@ -75330,6 +77569,12 @@ void func_1FC193C0(CPUState* cpu) { default: break; } } + int psx_taken_BFC193E0 = 0; + int psx_taken_BFC193F4 = 0; + int psx_taken_BFC1944C = 0; + int psx_taken_BFC19460 = 0; + int psx_taken_BFC194B8 = 0; + int psx_taken_BFC19500 = 0; label_BFC193C0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -75353,7 +77598,7 @@ label_BFC193C0: /* nop */ /* 0xBFC193E0: 148E0006 bne $a0, $t6, 0xBFC193FC */ uint32_t psx_brA_BFC193E0 = cpu->gpr[4]; uint32_t psx_brB_BFC193E0 = cpu->gpr[14]; - int psx_taken_BFC193E0 = (psx_brA_BFC193E0 != psx_brB_BFC193E0); + psx_taken_BFC193E0 = (psx_brA_BFC193E0 != psx_brB_BFC193E0); /* 0xBFC193E4: 00000000 nop */ /* nop */ if (psx_taken_BFC193E0) goto label_BFC193FC; @@ -75370,7 +77615,7 @@ label_BFC193E8: cpu->gpr[1] = 0x80080000u; /* 0xBFC193F4: 10000004 beq $zero, $zero, 0xBFC19408 */ uint32_t psx_brA_BFC193F4 = cpu->gpr[0]; uint32_t psx_brB_BFC193F4 = cpu->gpr[0]; - int psx_taken_BFC193F4 = (psx_brA_BFC193F4 == psx_brB_BFC193F4); + psx_taken_BFC193F4 = (psx_brA_BFC193F4 == psx_brB_BFC193F4); /* 0xBFC193F8: AC209E24 sw $zero, -25052($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25052)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC193F8u); return; } g_debug_last_store_pc = 0xBFC193F8u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC193F4) goto label_BFC19408; @@ -75444,7 +77689,7 @@ label_BFC19440: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC1944C: 17010033 bne $t8, $at, 0xBFC1951C */ uint32_t psx_brA_BFC1944C = cpu->gpr[24]; uint32_t psx_brB_BFC1944C = cpu->gpr[1]; - int psx_taken_BFC1944C = (psx_brA_BFC1944C != psx_brB_BFC1944C); + psx_taken_BFC1944C = (psx_brA_BFC1944C != psx_brB_BFC1944C); /* 0xBFC19450: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19450u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1944C) goto label_BFC1951C; @@ -75461,7 +77706,7 @@ label_BFC19454: cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC19460: 1B20002E blez $t9, 0xBFC1951C */ uint32_t psx_brA_BFC19460 = cpu->gpr[25]; - int psx_taken_BFC19460 = ((int32_t)psx_brA_BFC19460 <= 0); + psx_taken_BFC19460 = ((int32_t)psx_brA_BFC19460 <= 0); /* 0xBFC19464: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19464u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC19460) goto label_BFC1951C; @@ -75517,7 +77762,7 @@ label_BFC19488: /* nop */ /* 0xBFC194B8: 122D000D beq $s1, $t5, 0xBFC194F0 */ uint32_t psx_brA_BFC194B8 = cpu->gpr[17]; uint32_t psx_brB_BFC194B8 = cpu->gpr[13]; - int psx_taken_BFC194B8 = (psx_brA_BFC194B8 == psx_brB_BFC194B8); + psx_taken_BFC194B8 = (psx_brA_BFC194B8 == psx_brB_BFC194B8); /* 0xBFC194BC: 00000000 nop */ /* nop */ if (psx_taken_BFC194B8) goto label_BFC194F0; @@ -75566,7 +77811,7 @@ label_BFC194F0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[8] ? 1 : 0); /* 0xBFC19500: 1420FFE1 bne $at, $zero, 0xBFC19488 */ uint32_t psx_brA_BFC19500 = cpu->gpr[1]; uint32_t psx_brB_BFC19500 = cpu->gpr[0]; - int psx_taken_BFC19500 = (psx_brA_BFC19500 != psx_brB_BFC19500); + psx_taken_BFC19500 = (psx_brA_BFC19500 != psx_brB_BFC19500); /* 0xBFC19504: 00000000 nop */ /* nop */ if (psx_taken_BFC19500) goto label_BFC19488; @@ -75611,6 +77856,8 @@ void func_1FC1952C(CPUState* cpu) { default: break; } } + int psx_taken_BFC19574 = 0; + int psx_taken_BFC195D0 = 0; label_BFC1952C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -75665,7 +77912,7 @@ label_BFC19558: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[15] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19570u); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC19574: 15EEFFF8 bne $t7, $t6, 0xBFC19558 */ uint32_t psx_brA_BFC19574 = cpu->gpr[15]; uint32_t psx_brB_BFC19574 = cpu->gpr[14]; - int psx_taken_BFC19574 = (psx_brA_BFC19574 != psx_brB_BFC19574); + psx_taken_BFC19574 = (psx_brA_BFC19574 != psx_brB_BFC19574); /* 0xBFC19578: AF010000 sw $at, 0($t8) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19578u); return; } g_debug_last_store_pc = 0xBFC19578u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC19574) goto label_BFC19558; @@ -75723,7 +77970,7 @@ label_BFC19598: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (95)); uint32_t psx_aligned = psx_addr & ~3u; uint32_t psx_shift_bytes = psx_addr & 3u; uint32_t psx_shift_bits = (3u - psx_shift_bytes) * 8u; uint32_t psx_keep_mask = 0x00FFFFFFu >> (psx_shift_bytes * 8u); uint32_t psx_mem = cpu->read_word(psx_aligned); uint32_t psx_new = (psx_mem & psx_keep_mask) | (cpu->gpr[1] >> psx_shift_bits); g_debug_last_store_pc = 0xBFC195CCu; cpu->write_word(psx_aligned, psx_new); } /* 0xBFC195D0: 1519FFF1 bne $t0, $t9, 0xBFC19598 */ uint32_t psx_brA_BFC195D0 = cpu->gpr[8]; uint32_t psx_brB_BFC195D0 = cpu->gpr[25]; - int psx_taken_BFC195D0 = (psx_brA_BFC195D0 != psx_brB_BFC195D0); + psx_taken_BFC195D0 = (psx_brA_BFC195D0 != psx_brB_BFC195D0); /* 0xBFC195D4: B921005C swr $at, 92($t1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (92)); uint32_t psx_aligned = psx_addr & ~3u; uint32_t psx_shift_bytes = psx_addr & 3u; uint32_t psx_shift_bits = psx_shift_bytes * 8u; uint32_t psx_keep_mask = 0xFFFFFF00u << ((3u - psx_shift_bytes) * 8u); uint32_t psx_mem = cpu->read_word(psx_aligned); uint32_t psx_new = (psx_mem & psx_keep_mask) | (cpu->gpr[1] << psx_shift_bits); g_debug_last_store_pc = 0xBFC195D4u; cpu->write_word(psx_aligned, psx_new); } if (psx_taken_BFC195D0) goto label_BFC19598; @@ -75791,6 +78038,9 @@ void func_1FC19630(CPUState* cpu) { default: break; } } + int psx_taken_BFC19648 = 0; + int psx_taken_BFC1967C = 0; + int psx_taken_BFC19690 = 0; label_BFC19630: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -75810,7 +78060,7 @@ label_BFC19630: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19644u); return; } g_debug_last_store_pc = 0xBFC19644u; cpu->write_word(psx_addr, cpu->gpr[4]); } /* 0xBFC19648: 11C1001B beq $t6, $at, 0xBFC196B8 */ uint32_t psx_brA_BFC19648 = cpu->gpr[14]; uint32_t psx_brB_BFC19648 = cpu->gpr[1]; - int psx_taken_BFC19648 = (psx_brA_BFC19648 == psx_brB_BFC19648); + psx_taken_BFC19648 = (psx_brA_BFC19648 == psx_brB_BFC19648); /* 0xBFC1964C: AFA50024 sw $a1, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1964Cu); return; } g_debug_last_store_pc = 0xBFC1964Cu; cpu->write_word(psx_addr, cpu->gpr[5]); } if (psx_taken_BFC19648) goto label_BFC196B8; @@ -75855,7 +78105,7 @@ label_BFC19660: /* nop */ /* 0xBFC1967C: 07010002 bgez $t8, 0xBFC19688 */ uint32_t psx_brA_BFC1967C = cpu->gpr[24]; - int psx_taken_BFC1967C = ((int32_t)psx_brA_BFC1967C >= 0); + psx_taken_BFC1967C = ((int32_t)psx_brA_BFC1967C >= 0); /* 0xBFC19680: 03000821 addu $at, $t8, $zero */ cpu->gpr[1] = cpu->gpr[24] + cpu->gpr[0]; if (psx_taken_BFC1967C) goto label_BFC19688; @@ -75877,7 +78127,7 @@ label_BFC19688: cpu->gpr[5] = cpu->gpr[15] + cpu->gpr[25]; /* 0xBFC19690: 05410002 bgez $t2, 0xBFC1969C */ uint32_t psx_brA_BFC19690 = cpu->gpr[10]; - int psx_taken_BFC19690 = ((int32_t)psx_brA_BFC19690 >= 0); + psx_taken_BFC19690 = ((int32_t)psx_brA_BFC19690 >= 0); /* 0xBFC19694: 01400821 addu $at, $t2, $zero */ cpu->gpr[1] = cpu->gpr[10] + cpu->gpr[0]; if (psx_taken_BFC19690) goto label_BFC1969C; @@ -75962,6 +78212,26 @@ void func_1FC196D4(CPUState* cpu) { default: break; } } + int psx_taken_BFC196EC = 0; + int psx_taken_BFC196FC = 0; + int psx_taken_BFC19704 = 0; + int psx_taken_BFC19734 = 0; + int psx_taken_BFC19778 = 0; + int psx_taken_BFC197B4 = 0; + int psx_taken_BFC197C0 = 0; + int psx_taken_BFC197D0 = 0; + int psx_taken_BFC197DC = 0; + int psx_taken_BFC1982C = 0; + int psx_taken_BFC19834 = 0; + int psx_taken_BFC19934 = 0; + int psx_taken_BFC1993C = 0; + int psx_taken_BFC19950 = 0; + int psx_taken_BFC19960 = 0; + int psx_taken_BFC1997C = 0; + int psx_taken_BFC19990 = 0; + int psx_taken_BFC199BC = 0; + int psx_taken_BFC199D0 = 0; + int psx_taken_BFC199DC = 0; label_BFC196D4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -75981,7 +78251,7 @@ label_BFC196D4: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); /* 0xBFC196EC: 144E0007 bne $v0, $t6, 0xBFC1970C */ uint32_t psx_brA_BFC196EC = cpu->gpr[2]; uint32_t psx_brB_BFC196EC = cpu->gpr[14]; - int psx_taken_BFC196EC = (psx_brA_BFC196EC != psx_brB_BFC196EC); + psx_taken_BFC196EC = (psx_brA_BFC196EC != psx_brB_BFC196EC); /* 0xBFC196F0: 00000000 nop */ /* nop */ if (psx_taken_BFC196EC) goto label_BFC1970C; @@ -75996,7 +78266,7 @@ label_BFC196F4: /* nop */ /* 0xBFC196FC: 144F0003 bne $v0, $t7, 0xBFC1970C */ uint32_t psx_brA_BFC196FC = cpu->gpr[2]; uint32_t psx_brB_BFC196FC = cpu->gpr[15]; - int psx_taken_BFC196FC = (psx_brA_BFC196FC != psx_brB_BFC196FC); + psx_taken_BFC196FC = (psx_brA_BFC196FC != psx_brB_BFC196FC); /* 0xBFC19700: 00000000 nop */ /* nop */ if (psx_taken_BFC196FC) goto label_BFC1970C; @@ -76007,7 +78277,7 @@ label_BFC19704: psx_check_interrupts(cpu); /* 0xBFC19704: 100000D0 beq $zero, $zero, 0xBFC19A48 */ uint32_t psx_brA_BFC19704 = cpu->gpr[0]; uint32_t psx_brB_BFC19704 = cpu->gpr[0]; - int psx_taken_BFC19704 = (psx_brA_BFC19704 == psx_brB_BFC19704); + psx_taken_BFC19704 = (psx_brA_BFC19704 == psx_brB_BFC19704); /* 0xBFC19708: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC19704) goto label_BFC19A48; @@ -76044,7 +78314,7 @@ label_BFC1972C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19730u); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } /* 0xBFC19734: 1440000A bne $v0, $zero, 0xBFC19760 */ uint32_t psx_brA_BFC19734 = cpu->gpr[2]; uint32_t psx_brB_BFC19734 = cpu->gpr[0]; - int psx_taken_BFC19734 = (psx_brA_BFC19734 != psx_brB_BFC19734); + psx_taken_BFC19734 = (psx_brA_BFC19734 != psx_brB_BFC19734); /* 0xBFC19738: AFA20034 sw $v0, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19738u); return; } g_debug_last_store_pc = 0xBFC19738u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC19734) goto label_BFC19760; @@ -76102,7 +78372,7 @@ label_BFC19770: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19774u); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } /* 0xBFC19778: 1440000C bne $v0, $zero, 0xBFC197AC */ uint32_t psx_brA_BFC19778 = cpu->gpr[2]; uint32_t psx_brB_BFC19778 = cpu->gpr[0]; - int psx_taken_BFC19778 = (psx_brA_BFC19778 != psx_brB_BFC19778); + psx_taken_BFC19778 = (psx_brA_BFC19778 != psx_brB_BFC19778); /* 0xBFC1977C: 00405821 addu $t3, $v0, $zero */ cpu->gpr[11] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC19778) goto label_BFC197AC; @@ -76150,7 +78420,7 @@ label_BFC197AC: /* nop */ /* 0xBFC197B4: 13000063 beq $t8, $zero, 0xBFC19944 */ uint32_t psx_brA_BFC197B4 = cpu->gpr[24]; uint32_t psx_brB_BFC197B4 = cpu->gpr[0]; - int psx_taken_BFC197B4 = (psx_brA_BFC197B4 == psx_brB_BFC197B4); + psx_taken_BFC197B4 = (psx_brA_BFC197B4 == psx_brB_BFC197B4); /* 0xBFC197B8: 00000000 nop */ /* nop */ if (psx_taken_BFC197B4) goto label_BFC19944; @@ -76163,7 +78433,7 @@ label_BFC197BC: cpu->gpr[8] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC197C0: 05810002 bgez $t4, 0xBFC197CC */ uint32_t psx_brA_BFC197C0 = cpu->gpr[12]; - int psx_taken_BFC197C0 = ((int32_t)psx_brA_BFC197C0 >= 0); + psx_taken_BFC197C0 = ((int32_t)psx_brA_BFC197C0 >= 0); /* 0xBFC197C4: 01800821 addu $at, $t4, $zero */ cpu->gpr[1] = cpu->gpr[12] + cpu->gpr[0]; if (psx_taken_BFC197C0) goto label_BFC197CC; @@ -76183,7 +78453,7 @@ label_BFC197CC: cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[1] >> 1u); /* 0xBFC197D0: 19200085 blez $t1, 0xBFC199E8 */ uint32_t psx_brA_BFC197D0 = cpu->gpr[9]; - int psx_taken_BFC197D0 = ((int32_t)psx_brA_BFC197D0 <= 0); + psx_taken_BFC197D0 = ((int32_t)psx_brA_BFC197D0 <= 0); /* 0xBFC197D4: 8FA4004C lw $a0, 76($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC197D4u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC197D0) goto label_BFC199E8; @@ -76196,7 +78466,7 @@ label_BFC197D8: cpu->gpr[3] = cpu->gpr[9] & 0x3u; /* 0xBFC197DC: 10600018 beq $v1, $zero, 0xBFC19840 */ uint32_t psx_brA_BFC197DC = cpu->gpr[3]; uint32_t psx_brB_BFC197DC = cpu->gpr[0]; - int psx_taken_BFC197DC = (psx_brA_BFC197DC == psx_brB_BFC197DC); + psx_taken_BFC197DC = (psx_brA_BFC197DC == psx_brB_BFC197DC); /* 0xBFC197E0: 0008C840 sll $t9, $t0, 1 */ cpu->gpr[25] = cpu->gpr[8] << 1u; if (psx_taken_BFC197DC) goto label_BFC19840; @@ -76248,7 +78518,7 @@ label_BFC197F0: g_debug_last_store_pc = 0xBFC19828u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[6] + (-1)), (uint8_t)(cpu->gpr[24] & 0xFFu)); /* 0xBFC1982C: 1468FFF0 bne $v1, $t0, 0xBFC197F0 */ uint32_t psx_brA_BFC1982C = cpu->gpr[3]; uint32_t psx_brB_BFC1982C = cpu->gpr[8]; - int psx_taken_BFC1982C = (psx_brA_BFC1982C != psx_brB_BFC1982C); + psx_taken_BFC1982C = (psx_brA_BFC1982C != psx_brB_BFC1982C); /* 0xBFC19830: 24E70001 addiu $a3, $a3, 1 */ cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[7] + (1)); if (psx_taken_BFC1982C) goto label_BFC197F0; @@ -76259,7 +78529,7 @@ label_BFC19834: psx_check_interrupts(cpu); /* 0xBFC19834: 1109006C beq $t0, $t1, 0xBFC199E8 */ uint32_t psx_brA_BFC19834 = cpu->gpr[8]; uint32_t psx_brB_BFC19834 = cpu->gpr[9]; - int psx_taken_BFC19834 = (psx_brA_BFC19834 == psx_brB_BFC19834); + psx_taken_BFC19834 = (psx_brA_BFC19834 == psx_brB_BFC19834); /* 0xBFC19838: 8FA4004C lw $a0, 76($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19838u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC19834) goto label_BFC199E8; @@ -76404,7 +78674,7 @@ label_BFC19848: cpu->gpr[25] = cpu->gpr[14] | cpu->gpr[24]; /* 0xBFC19934: 1509FFC4 bne $t0, $t1, 0xBFC19848 */ uint32_t psx_brA_BFC19934 = cpu->gpr[8]; uint32_t psx_brB_BFC19934 = cpu->gpr[9]; - int psx_taken_BFC19934 = (psx_brA_BFC19934 != psx_brB_BFC19934); + psx_taken_BFC19934 = (psx_brA_BFC19934 != psx_brB_BFC19934); /* 0xBFC19938: A0D9FFFF sb $t9, -1($a2) */ g_debug_last_store_pc = 0xBFC19938u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[6] + (-1)), (uint8_t)(cpu->gpr[25] & 0xFFu)); if (psx_taken_BFC19934) goto label_BFC19848; @@ -76415,7 +78685,7 @@ label_BFC1993C: psx_check_interrupts(cpu); /* 0xBFC1993C: 1000002A beq $zero, $zero, 0xBFC199E8 */ uint32_t psx_brA_BFC1993C = cpu->gpr[0]; uint32_t psx_brB_BFC1993C = cpu->gpr[0]; - int psx_taken_BFC1993C = (psx_brA_BFC1993C == psx_brB_BFC1993C); + psx_taken_BFC1993C = (psx_brA_BFC1993C == psx_brB_BFC1993C); /* 0xBFC19940: 8FA4004C lw $a0, 76($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19940u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC1993C) goto label_BFC199E8; @@ -76432,7 +78702,7 @@ label_BFC19944: cpu->gpr[2] = cpu->gpr[2] & 0xFu; /* 0xBFC19950: 14400003 bne $v0, $zero, 0xBFC19960 */ uint32_t psx_brA_BFC19950 = cpu->gpr[2]; uint32_t psx_brB_BFC19950 = cpu->gpr[0]; - int psx_taken_BFC19950 = (psx_brA_BFC19950 != psx_brB_BFC19950); + psx_taken_BFC19950 = (psx_brA_BFC19950 != psx_brB_BFC19950); /* 0xBFC19954: 00004021 addu $t0, $zero, $zero */ cpu->gpr[8] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC19950) goto label_BFC19960; @@ -76452,7 +78722,7 @@ label_BFC19960: psx_check_interrupts(cpu); /* 0xBFC19960: 19800020 blez $t4, 0xBFC199E4 */ uint32_t psx_brA_BFC19960 = cpu->gpr[12]; - int psx_taken_BFC19960 = ((int32_t)psx_brA_BFC19960 <= 0); + psx_taken_BFC19960 = ((int32_t)psx_brA_BFC19960 <= 0); /* 0xBFC19964: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC19960) goto label_BFC199E4; @@ -76478,7 +78748,7 @@ label_BFC19970: cpu->gpr[15] = cpu->gpr[13] & 0xF0u; /* 0xBFC1997C: 1C400007 bgtz $v0, 0xBFC1999C */ uint32_t psx_brA_BFC1997C = cpu->gpr[2]; - int psx_taken_BFC1997C = ((int32_t)psx_brA_BFC1997C > 0); + psx_taken_BFC1997C = ((int32_t)psx_brA_BFC1997C > 0); /* 0xBFC19980: A06F0000 sb $t7, 0($v1) */ g_debug_last_store_pc = 0xBFC19980u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[3] + (0)), (uint8_t)(cpu->gpr[15] & 0xFFu)); if (psx_taken_BFC1997C) goto label_BFC1999C; @@ -76495,7 +78765,7 @@ label_BFC19984: cpu->gpr[2] = cpu->gpr[2] & 0xFu; /* 0xBFC19990: 14400002 bne $v0, $zero, 0xBFC1999C */ uint32_t psx_brA_BFC19990 = cpu->gpr[2]; uint32_t psx_brB_BFC19990 = cpu->gpr[0]; - int psx_taken_BFC19990 = (psx_brA_BFC19990 != psx_brB_BFC19990); + psx_taken_BFC19990 = (psx_brA_BFC19990 != psx_brB_BFC19990); /* 0xBFC19994: 00000000 nop */ /* nop */ if (psx_taken_BFC19990) goto label_BFC1999C; @@ -76529,7 +78799,7 @@ label_BFC1999C: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); /* 0xBFC199BC: 1C400007 bgtz $v0, 0xBFC199DC */ uint32_t psx_brA_BFC199BC = cpu->gpr[2]; - int psx_taken_BFC199BC = ((int32_t)psx_brA_BFC199BC > 0); + psx_taken_BFC199BC = ((int32_t)psx_brA_BFC199BC > 0); /* 0xBFC199C0: 24630001 addiu $v1, $v1, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); if (psx_taken_BFC199BC) goto label_BFC199DC; @@ -76546,7 +78816,7 @@ label_BFC199C4: cpu->gpr[2] = cpu->gpr[2] & 0xFu; /* 0xBFC199D0: 14400002 bne $v0, $zero, 0xBFC199DC */ uint32_t psx_brA_BFC199D0 = cpu->gpr[2]; uint32_t psx_brB_BFC199D0 = cpu->gpr[0]; - int psx_taken_BFC199D0 = (psx_brA_BFC199D0 != psx_brB_BFC199D0); + psx_taken_BFC199D0 = (psx_brA_BFC199D0 != psx_brB_BFC199D0); /* 0xBFC199D4: 00000000 nop */ /* nop */ if (psx_taken_BFC199D0) goto label_BFC199DC; @@ -76564,7 +78834,7 @@ label_BFC199DC: psx_check_interrupts(cpu); /* 0xBFC199DC: 148CFFE4 bne $a0, $t4, 0xBFC19970 */ uint32_t psx_brA_BFC199DC = cpu->gpr[4]; uint32_t psx_brB_BFC199DC = cpu->gpr[12]; - int psx_taken_BFC199DC = (psx_brA_BFC199DC != psx_brB_BFC199DC); + psx_taken_BFC199DC = (psx_brA_BFC199DC != psx_brB_BFC199DC); /* 0xBFC199E0: 00000000 nop */ /* nop */ if (psx_taken_BFC199DC) goto label_BFC19970; @@ -76707,6 +78977,19 @@ void func_1FC19A58(CPUState* cpu) { default: break; } } + int psx_taken_BFC19ABC = 0; + int psx_taken_BFC19AD8 = 0; + int psx_taken_BFC19AE8 = 0; + int psx_taken_BFC19B04 = 0; + int psx_taken_BFC19B14 = 0; + int psx_taken_BFC19B30 = 0; + int psx_taken_BFC19B40 = 0; + int psx_taken_BFC19B88 = 0; + int psx_taken_BFC19BE4 = 0; + int psx_taken_BFC19C4C = 0; + int psx_taken_BFC19CDC = 0; + int psx_taken_BFC19CEC = 0; + int psx_taken_BFC19D4C = 0; label_BFC19A58: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -76782,7 +79065,7 @@ label_BFC19AB4: /* nop */ /* 0xBFC19ABC: 15000009 bne $t0, $zero, 0xBFC19AE4 */ uint32_t psx_brA_BFC19ABC = cpu->gpr[8]; uint32_t psx_brB_BFC19ABC = cpu->gpr[0]; - int psx_taken_BFC19ABC = (psx_brA_BFC19ABC != psx_brB_BFC19ABC); + psx_taken_BFC19ABC = (psx_brA_BFC19ABC != psx_brB_BFC19ABC); /* 0xBFC19AC0: 8FA900D8 lw $t1, 216($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (216)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19AC0u); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } if (psx_taken_BFC19ABC) goto label_BFC19AE4; @@ -76809,7 +79092,7 @@ label_BFC19AD8: psx_check_interrupts(cpu); /* 0xBFC19AD8: 10000021 beq $zero, $zero, 0xBFC19B60 */ uint32_t psx_brA_BFC19AD8 = cpu->gpr[0]; uint32_t psx_brB_BFC19AD8 = cpu->gpr[0]; - int psx_taken_BFC19AD8 = (psx_brA_BFC19AD8 == psx_brB_BFC19AD8); + psx_taken_BFC19AD8 = (psx_brA_BFC19AD8 == psx_brB_BFC19AD8); /* 0xBFC19ADC: 8FAC00D8 lw $t4, 216($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (216)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19ADCu); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } if (psx_taken_BFC19AD8) goto label_BFC19B60; @@ -76829,7 +79112,7 @@ label_BFC19AE4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC19AE8: 15210009 bne $t1, $at, 0xBFC19B10 */ uint32_t psx_brA_BFC19AE8 = cpu->gpr[9]; uint32_t psx_brB_BFC19AE8 = cpu->gpr[1]; - int psx_taken_BFC19AE8 = (psx_brA_BFC19AE8 != psx_brB_BFC19AE8); + psx_taken_BFC19AE8 = (psx_brA_BFC19AE8 != psx_brB_BFC19AE8); /* 0xBFC19AEC: 8FAA00D8 lw $t2, 216($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (216)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19AECu); return; } cpu->gpr[10] = cpu->read_word(psx_addr); } if (psx_taken_BFC19AE8) goto label_BFC19B10; @@ -76856,7 +79139,7 @@ label_BFC19B04: psx_check_interrupts(cpu); /* 0xBFC19B04: 10000016 beq $zero, $zero, 0xBFC19B60 */ uint32_t psx_brA_BFC19B04 = cpu->gpr[0]; uint32_t psx_brB_BFC19B04 = cpu->gpr[0]; - int psx_taken_BFC19B04 = (psx_brA_BFC19B04 == psx_brB_BFC19B04); + psx_taken_BFC19B04 = (psx_brA_BFC19B04 == psx_brB_BFC19B04); /* 0xBFC19B08: 8FAC00D8 lw $t4, 216($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (216)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19B08u); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } if (psx_taken_BFC19B04) goto label_BFC19B60; @@ -76876,7 +79159,7 @@ label_BFC19B10: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC19B14: 15410009 bne $t2, $at, 0xBFC19B3C */ uint32_t psx_brA_BFC19B14 = cpu->gpr[10]; uint32_t psx_brB_BFC19B14 = cpu->gpr[1]; - int psx_taken_BFC19B14 = (psx_brA_BFC19B14 != psx_brB_BFC19B14); + psx_taken_BFC19B14 = (psx_brA_BFC19B14 != psx_brB_BFC19B14); /* 0xBFC19B18: 8FAB00D8 lw $t3, 216($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (216)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19B18u); return; } cpu->gpr[11] = cpu->read_word(psx_addr); } if (psx_taken_BFC19B14) goto label_BFC19B3C; @@ -76903,7 +79186,7 @@ label_BFC19B30: psx_check_interrupts(cpu); /* 0xBFC19B30: 1000000B beq $zero, $zero, 0xBFC19B60 */ uint32_t psx_brA_BFC19B30 = cpu->gpr[0]; uint32_t psx_brB_BFC19B30 = cpu->gpr[0]; - int psx_taken_BFC19B30 = (psx_brA_BFC19B30 == psx_brB_BFC19B30); + psx_taken_BFC19B30 = (psx_brA_BFC19B30 == psx_brB_BFC19B30); /* 0xBFC19B34: 8FAC00D8 lw $t4, 216($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (216)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19B34u); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } if (psx_taken_BFC19B30) goto label_BFC19B60; @@ -76923,7 +79206,7 @@ label_BFC19B3C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC19B40: 15610007 bne $t3, $at, 0xBFC19B60 */ uint32_t psx_brA_BFC19B40 = cpu->gpr[11]; uint32_t psx_brB_BFC19B40 = cpu->gpr[1]; - int psx_taken_BFC19B40 = (psx_brA_BFC19B40 != psx_brB_BFC19B40); + psx_taken_BFC19B40 = (psx_brA_BFC19B40 != psx_brB_BFC19B40); /* 0xBFC19B44: 8FAC00D8 lw $t4, 216($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (216)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19B44u); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } if (psx_taken_BFC19B40) goto label_BFC19B60; @@ -76977,7 +79260,7 @@ label_BFC19B60: /* nop */ /* 0xBFC19B88: 11E00057 beq $t7, $zero, 0xBFC19CE8 */ uint32_t psx_brA_BFC19B88 = cpu->gpr[15]; uint32_t psx_brB_BFC19B88 = cpu->gpr[0]; - int psx_taken_BFC19B88 = (psx_brA_BFC19B88 == psx_brB_BFC19B88); + psx_taken_BFC19B88 = (psx_brA_BFC19B88 == psx_brB_BFC19B88); /* 0xBFC19B8C: 8FAE00D8 lw $t6, 216($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (216)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19B8Cu); return; } cpu->gpr[14] = cpu->read_word(psx_addr); } if (psx_taken_BFC19B88) goto label_BFC19CE8; @@ -77035,7 +79318,7 @@ label_BFC19B94: /* nop */ /* 0xBFC19BE4: 05410002 bgez $t2, 0xBFC19BF0 */ uint32_t psx_brA_BFC19BE4 = cpu->gpr[10]; - int psx_taken_BFC19BE4 = ((int32_t)psx_brA_BFC19BE4 >= 0); + psx_taken_BFC19BE4 = ((int32_t)psx_brA_BFC19BE4 >= 0); /* 0xBFC19BE8: 01400821 addu $at, $t2, $zero */ cpu->gpr[1] = cpu->gpr[10] + cpu->gpr[0]; if (psx_taken_BFC19BE4) goto label_BFC19BF0; @@ -77105,7 +79388,7 @@ label_BFC19C30: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (100)); /* 0xBFC19C4C: 15A10021 bne $t5, $at, 0xBFC19CD4 */ uint32_t psx_brA_BFC19C4C = cpu->gpr[13]; uint32_t psx_brB_BFC19C4C = cpu->gpr[1]; - int psx_taken_BFC19C4C = (psx_brA_BFC19C4C != psx_brB_BFC19C4C); + psx_taken_BFC19C4C = (psx_brA_BFC19C4C != psx_brB_BFC19C4C); /* 0xBFC19C50: 00000000 nop */ /* nop */ if (psx_taken_BFC19C4C) goto label_BFC19CD4; @@ -77213,7 +79496,7 @@ label_BFC19CD4: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC19CDC: 15A0FFAD bne $t5, $zero, 0xBFC19B94 */ uint32_t psx_brA_BFC19CDC = cpu->gpr[13]; uint32_t psx_brB_BFC19CDC = cpu->gpr[0]; - int psx_taken_BFC19CDC = (psx_brA_BFC19CDC != psx_brB_BFC19CDC); + psx_taken_BFC19CDC = (psx_brA_BFC19CDC != psx_brB_BFC19CDC); /* 0xBFC19CE0: 2610003C addiu $s0, $s0, 60 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (60)); if (psx_taken_BFC19CDC) goto label_BFC19B94; @@ -77233,7 +79516,7 @@ label_BFC19CE8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC19CEC: 15C10007 bne $t6, $at, 0xBFC19D0C */ uint32_t psx_brA_BFC19CEC = cpu->gpr[14]; uint32_t psx_brB_BFC19CEC = cpu->gpr[1]; - int psx_taken_BFC19CEC = (psx_brA_BFC19CEC != psx_brB_BFC19CEC); + psx_taken_BFC19CEC = (psx_brA_BFC19CEC != psx_brB_BFC19CEC); /* 0xBFC19CF0: 00000000 nop */ /* nop */ if (psx_taken_BFC19CEC) goto label_BFC19D0C; @@ -77330,7 +79613,7 @@ label_BFC19D3C: cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[24] + (26172)); /* 0xBFC19D4C: 16580003 bne $s2, $t8, 0xBFC19D5C */ uint32_t psx_brA_BFC19D4C = cpu->gpr[18]; uint32_t psx_brB_BFC19D4C = cpu->gpr[24]; - int psx_taken_BFC19D4C = (psx_brA_BFC19D4C != psx_brB_BFC19D4C); + psx_taken_BFC19D4C = (psx_brA_BFC19D4C != psx_brB_BFC19D4C); /* 0xBFC19D50: AC2F9E2C sw $t7, -25044($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25044)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19D50u); return; } g_debug_last_store_pc = 0xBFC19D50u; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC19D4C) goto label_BFC19D5C; @@ -77480,6 +79763,18 @@ void func_1FC19DF4(CPUState* cpu) { default: break; } } + int psx_taken_BFC19E1C = 0; + int psx_taken_BFC19E54 = 0; + int psx_taken_BFC19E6C = 0; + int psx_taken_BFC19EC0 = 0; + int psx_taken_BFC19EDC = 0; + int psx_taken_BFC19EEC = 0; + int psx_taken_BFC19F08 = 0; + int psx_taken_BFC19F18 = 0; + int psx_taken_BFC19F28 = 0; + int psx_taken_BFC19F6C = 0; + int psx_taken_BFC19F9C = 0; + int psx_taken_BFC19FA4 = 0; label_BFC19DF4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -77507,7 +79802,7 @@ label_BFC19DF4: cpu->gpr[21] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC19E1C: 11C0005B beq $t6, $zero, 0xBFC19F8C */ uint32_t psx_brA_BFC19E1C = cpu->gpr[14]; uint32_t psx_brB_BFC19E1C = cpu->gpr[0]; - int psx_taken_BFC19E1C = (psx_brA_BFC19E1C == psx_brB_BFC19E1C); + psx_taken_BFC19E1C = (psx_brA_BFC19E1C == psx_brB_BFC19E1C); /* 0xBFC19E20: 0000A021 addu $s4, $zero, $zero */ cpu->gpr[20] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC19E1C) goto label_BFC19F8C; @@ -77547,7 +79842,7 @@ label_BFC19E4C: /* nop */ /* 0xBFC19E54: 16E20008 bne $s7, $v0, 0xBFC19E78 */ uint32_t psx_brA_BFC19E54 = cpu->gpr[23]; uint32_t psx_brB_BFC19E54 = cpu->gpr[2]; - int psx_taken_BFC19E54 = (psx_brA_BFC19E54 != psx_brB_BFC19E54); + psx_taken_BFC19E54 = (psx_brA_BFC19E54 != psx_brB_BFC19E54); /* 0xBFC19E58: 000278C0 sll $t7, $v0, 3 */ cpu->gpr[15] = cpu->gpr[2] << 3u; if (psx_taken_BFC19E54) goto label_BFC19E78; @@ -77572,7 +79867,7 @@ label_BFC19E6C: psx_check_interrupts(cpu); /* 0xBFC19E6C: 10000009 beq $zero, $zero, 0xBFC19E94 */ uint32_t psx_brA_BFC19E6C = cpu->gpr[0]; uint32_t psx_brB_BFC19E6C = cpu->gpr[0]; - int psx_taken_BFC19E6C = (psx_brA_BFC19E6C == psx_brB_BFC19E6C); + psx_taken_BFC19E6C = (psx_brA_BFC19E6C == psx_brB_BFC19E6C); /* 0xBFC19E70: 8E050004 lw $a1, 4($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19E70u); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } if (psx_taken_BFC19E6C) goto label_BFC19E94; @@ -77655,7 +79950,7 @@ label_BFC19EB8: /* nop */ /* 0xBFC19EC0: 17C20006 bne $fp, $v0, 0xBFC19EDC */ uint32_t psx_brA_BFC19EC0 = cpu->gpr[30]; uint32_t psx_brB_BFC19EC0 = cpu->gpr[2]; - int psx_taken_BFC19EC0 = (psx_brA_BFC19EC0 != psx_brB_BFC19EC0); + psx_taken_BFC19EC0 = (psx_brA_BFC19EC0 != psx_brB_BFC19EC0); /* 0xBFC19EC4: 00000000 nop */ /* nop */ if (psx_taken_BFC19EC0) goto label_BFC19EDC; @@ -77687,7 +79982,7 @@ label_BFC19EDC: psx_check_interrupts(cpu); /* 0xBFC19EDC: 14400005 bne $v0, $zero, 0xBFC19EF4 */ uint32_t psx_brA_BFC19EDC = cpu->gpr[2]; uint32_t psx_brB_BFC19EDC = cpu->gpr[0]; - int psx_taken_BFC19EDC = (psx_brA_BFC19EDC != psx_brB_BFC19EDC); + psx_taken_BFC19EDC = (psx_brA_BFC19EDC != psx_brB_BFC19EDC); /* 0xBFC19EE0: 00000000 nop */ /* nop */ if (psx_taken_BFC19EDC) goto label_BFC19EF4; @@ -77702,7 +79997,7 @@ label_BFC19EE4: /* nop */ /* 0xBFC19EEC: 13000005 beq $t8, $zero, 0xBFC19F04 */ uint32_t psx_brA_BFC19EEC = cpu->gpr[24]; uint32_t psx_brB_BFC19EEC = cpu->gpr[0]; - int psx_taken_BFC19EEC = (psx_brA_BFC19EEC == psx_brB_BFC19EEC); + psx_taken_BFC19EEC = (psx_brA_BFC19EEC == psx_brB_BFC19EEC); /* 0xBFC19EF0: 00000000 nop */ /* nop */ if (psx_taken_BFC19EEC) goto label_BFC19F04; @@ -77729,7 +80024,7 @@ label_BFC19F04: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (12)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19F04u); return; } cpu->gpr[25] = cpu->read_word(psx_addr); } /* 0xBFC19F08: 16600007 bne $s3, $zero, 0xBFC19F28 */ uint32_t psx_brA_BFC19F08 = cpu->gpr[19]; uint32_t psx_brB_BFC19F08 = cpu->gpr[0]; - int psx_taken_BFC19F08 = (psx_brA_BFC19F08 != psx_brB_BFC19F08); + psx_taken_BFC19F08 = (psx_brA_BFC19F08 != psx_brB_BFC19F08); /* 0xBFC19F0C: AE39006C sw $t9, 108($s1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (108)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19F0Cu); return; } g_debug_last_store_pc = 0xBFC19F0Cu; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC19F08) goto label_BFC19F28; @@ -77744,7 +80039,7 @@ label_BFC19F10: /* nop */ /* 0xBFC19F18: 05000003 bltz $t0, 0xBFC19F28 */ uint32_t psx_brA_BFC19F18 = cpu->gpr[8]; - int psx_taken_BFC19F18 = ((int32_t)psx_brA_BFC19F18 < 0); + psx_taken_BFC19F18 = ((int32_t)psx_brA_BFC19F18 < 0); /* 0xBFC19F1C: 00000000 nop */ /* nop */ if (psx_taken_BFC19F18) goto label_BFC19F28; @@ -77764,7 +80059,7 @@ label_BFC19F28: psx_check_interrupts(cpu); /* 0xBFC19F28: 12600009 beq $s3, $zero, 0xBFC19F50 */ uint32_t psx_brA_BFC19F28 = cpu->gpr[19]; uint32_t psx_brB_BFC19F28 = cpu->gpr[0]; - int psx_taken_BFC19F28 = (psx_brA_BFC19F28 == psx_brB_BFC19F28); + psx_taken_BFC19F28 = (psx_brA_BFC19F28 == psx_brB_BFC19F28); /* 0xBFC19F2C: 02202021 addu $a0, $s1, $zero */ cpu->gpr[4] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC19F28) goto label_BFC19F50; @@ -77822,7 +80117,7 @@ label_BFC19F5C: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (112)); /* 0xBFC19F6C: 1540FFB7 bne $t2, $zero, 0xBFC19E4C */ uint32_t psx_brA_BFC19F6C = cpu->gpr[10]; uint32_t psx_brB_BFC19F6C = cpu->gpr[0]; - int psx_taken_BFC19F6C = (psx_brA_BFC19F6C != psx_brB_BFC19F6C); + psx_taken_BFC19F6C = (psx_brA_BFC19F6C != psx_brB_BFC19F6C); /* 0xBFC19F70: 26520070 addiu $s2, $s2, 112 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (112)); if (psx_taken_BFC19F6C) goto label_BFC19E4C; @@ -77858,7 +80153,7 @@ label_BFC19F8C: cpu->gpr[11] = cpu->gpr[20] - cpu->gpr[21]; /* 0xBFC19F9C: 06A00003 bltz $s5, 0xBFC19FAC */ uint32_t psx_brA_BFC19F9C = cpu->gpr[21]; - int psx_taken_BFC19F9C = ((int32_t)psx_brA_BFC19F9C < 0); + psx_taken_BFC19F9C = ((int32_t)psx_brA_BFC19F9C < 0); /* 0xBFC19FA0: AC2BA77C sw $t3, -22660($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-22660)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19FA0u); return; } g_debug_last_store_pc = 0xBFC19FA0u; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC19F9C) goto label_BFC19FAC; @@ -77869,7 +80164,7 @@ label_BFC19FA4: psx_check_interrupts(cpu); /* 0xBFC19FA4: 10000002 beq $zero, $zero, 0xBFC19FB0 */ uint32_t psx_brA_BFC19FA4 = cpu->gpr[0]; uint32_t psx_brB_BFC19FA4 = cpu->gpr[0]; - int psx_taken_BFC19FA4 = (psx_brA_BFC19FA4 == psx_brB_BFC19FA4); + psx_taken_BFC19FA4 = (psx_brA_BFC19FA4 == psx_brB_BFC19FA4); /* 0xBFC19FA8: 02A01821 addu $v1, $s5, $zero */ cpu->gpr[3] = cpu->gpr[21] + cpu->gpr[0]; if (psx_taken_BFC19FA4) goto label_BFC19FB0; @@ -77917,6 +80212,8 @@ void func_1FC19FD0(CPUState* cpu) { default: break; } } + int psx_taken_BFC19FE0 = 0; + int psx_taken_BFC1A004 = 0; label_BFC19FD0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -77932,7 +80229,7 @@ label_BFC19FD0: cpu->gpr[14] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC19FE0: 11C00017 beq $t6, $zero, 0xBFC1A040 */ uint32_t psx_brA_BFC19FE0 = cpu->gpr[14]; uint32_t psx_brB_BFC19FE0 = cpu->gpr[0]; - int psx_taken_BFC19FE0 = (psx_brA_BFC19FE0 == psx_brB_BFC19FE0); + psx_taken_BFC19FE0 = (psx_brA_BFC19FE0 == psx_brB_BFC19FE0); /* 0xBFC19FE4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC19FE4u); return; } g_debug_last_store_pc = 0xBFC19FE4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC19FE0) goto label_BFC1A040; @@ -77957,7 +80254,7 @@ label_BFC19FE8: cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1A004: 1720000E bne $t9, $zero, 0xBFC1A040 */ uint32_t psx_brA_BFC1A004 = cpu->gpr[25]; uint32_t psx_brB_BFC1A004 = cpu->gpr[0]; - int psx_taken_BFC1A004 = (psx_brA_BFC1A004 != psx_brB_BFC1A004); + psx_taken_BFC1A004 = (psx_brA_BFC1A004 != psx_brB_BFC1A004); /* 0xBFC1A008: AC38A780 sw $t8, -22656($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-22656)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A008u); return; } g_debug_last_store_pc = 0xBFC1A008u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC1A004) goto label_BFC1A040; @@ -78049,6 +80346,11 @@ void func_1FC1A050(CPUState* cpu) { default: break; } } + int psx_taken_BFC1A060 = 0; + int psx_taken_BFC1A07C = 0; + int psx_taken_BFC1A090 = 0; + int psx_taken_BFC1A0A4 = 0; + int psx_taken_BFC1A0B4 = 0; label_BFC1A050: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -78064,7 +80366,7 @@ label_BFC1A050: cpu->gpr[14] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC1A060: 11C0002A beq $t6, $zero, 0xBFC1A10C */ uint32_t psx_brA_BFC1A060 = cpu->gpr[14]; uint32_t psx_brB_BFC1A060 = cpu->gpr[0]; - int psx_taken_BFC1A060 = (psx_brA_BFC1A060 == psx_brB_BFC1A060); + psx_taken_BFC1A060 = (psx_brA_BFC1A060 == psx_brB_BFC1A060); /* 0xBFC1A064: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A064u); return; } g_debug_last_store_pc = 0xBFC1A064u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1A060) goto label_BFC1A10C; @@ -78091,7 +80393,7 @@ label_BFC1A070: /* nop */ /* 0xBFC1A07C: 11E0000F beq $t7, $zero, 0xBFC1A0BC */ uint32_t psx_brA_BFC1A07C = cpu->gpr[15]; uint32_t psx_brB_BFC1A07C = cpu->gpr[0]; - int psx_taken_BFC1A07C = (psx_brA_BFC1A07C == psx_brB_BFC1A07C); + psx_taken_BFC1A07C = (psx_brA_BFC1A07C == psx_brB_BFC1A07C); /* 0xBFC1A080: 00000000 nop */ /* nop */ if (psx_taken_BFC1A07C) goto label_BFC1A0BC; @@ -78108,7 +80410,7 @@ label_BFC1A084: /* nop */ /* 0xBFC1A090: 17000010 bne $t8, $zero, 0xBFC1A0D4 */ uint32_t psx_brA_BFC1A090 = cpu->gpr[24]; uint32_t psx_brB_BFC1A090 = cpu->gpr[0]; - int psx_taken_BFC1A090 = (psx_brA_BFC1A090 != psx_brB_BFC1A090); + psx_taken_BFC1A090 = (psx_brA_BFC1A090 != psx_brB_BFC1A090); /* 0xBFC1A094: 00000000 nop */ /* nop */ if (psx_taken_BFC1A090) goto label_BFC1A0D4; @@ -78125,7 +80427,7 @@ label_BFC1A098: /* nop */ /* 0xBFC1A0A4: 1720000B bne $t9, $zero, 0xBFC1A0D4 */ uint32_t psx_brA_BFC1A0A4 = cpu->gpr[25]; uint32_t psx_brB_BFC1A0A4 = cpu->gpr[0]; - int psx_taken_BFC1A0A4 = (psx_brA_BFC1A0A4 != psx_brB_BFC1A0A4); + psx_taken_BFC1A0A4 = (psx_brA_BFC1A0A4 != psx_brB_BFC1A0A4); /* 0xBFC1A0A8: 00000000 nop */ /* nop */ if (psx_taken_BFC1A0A4) goto label_BFC1A0D4; @@ -78146,7 +80448,7 @@ label_BFC1A0B4: psx_check_interrupts(cpu); /* 0xBFC1A0B4: 10000007 beq $zero, $zero, 0xBFC1A0D4 */ uint32_t psx_brA_BFC1A0B4 = cpu->gpr[0]; uint32_t psx_brB_BFC1A0B4 = cpu->gpr[0]; - int psx_taken_BFC1A0B4 = (psx_brA_BFC1A0B4 == psx_brB_BFC1A0B4); + psx_taken_BFC1A0B4 = (psx_brA_BFC1A0B4 == psx_brB_BFC1A0B4); /* 0xBFC1A0B8: 00000000 nop */ /* nop */ if (psx_taken_BFC1A0B4) goto label_BFC1A0D4; @@ -78231,6 +80533,7 @@ void func_1FC1A11C(CPUState* cpu) { default: break; } } + int psx_taken_BFC1A12C = 0; label_BFC1A11C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -78246,7 +80549,7 @@ label_BFC1A11C: cpu->gpr[14] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC1A12C: 11C00007 beq $t6, $zero, 0xBFC1A14C */ uint32_t psx_brA_BFC1A12C = cpu->gpr[14]; uint32_t psx_brB_BFC1A12C = cpu->gpr[0]; - int psx_taken_BFC1A12C = (psx_brA_BFC1A12C == psx_brB_BFC1A12C); + psx_taken_BFC1A12C = (psx_brA_BFC1A12C == psx_brB_BFC1A12C); /* 0xBFC1A130: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A130u); return; } g_debug_last_store_pc = 0xBFC1A130u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1A12C) goto label_BFC1A14C; @@ -78402,6 +80705,7 @@ label_BFC1A1AC: void func_1FC1A3B8(CPUState* cpu) { debug_server_log_call_entry(0x1FC1A3B8u); + int psx_taken_BFC1A3F8 = 0; label_BFC1A3B8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(18u); @@ -78441,7 +80745,7 @@ label_BFC1A3B8: cpu->gpr[1] = 0x80080000u; /* 0xBFC1A3F8: 15E00004 bne $t7, $zero, 0xBFC1A40C */ uint32_t psx_brA_BFC1A3F8 = cpu->gpr[15]; uint32_t psx_brB_BFC1A3F8 = cpu->gpr[0]; - int psx_taken_BFC1A3F8 = (psx_brA_BFC1A3F8 != psx_brB_BFC1A3F8); + psx_taken_BFC1A3F8 = (psx_brA_BFC1A3F8 != psx_brB_BFC1A3F8); /* 0xBFC1A3FC: AC209E6C sw $zero, -24980($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24980)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A3FCu); return; } g_debug_last_store_pc = 0xBFC1A3FCu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1A3F8) goto label_BFC1A40C; @@ -78524,6 +80828,12 @@ void func_1FC1A430(CPUState* cpu) { default: break; } } + int psx_taken_BFC1A448 = 0; + int psx_taken_BFC1A454 = 0; + int psx_taken_BFC1A460 = 0; + int psx_taken_BFC1A4A4 = 0; + int psx_taken_BFC1A4FC = 0; + int psx_taken_BFC1A540 = 0; label_BFC1A430: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -78543,7 +80853,7 @@ label_BFC1A430: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A444u); return; } g_debug_last_store_pc = 0xBFC1A444u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC1A448: 162E0004 bne $s1, $t6, 0xBFC1A45C */ uint32_t psx_brA_BFC1A448 = cpu->gpr[17]; uint32_t psx_brB_BFC1A448 = cpu->gpr[14]; - int psx_taken_BFC1A448 = (psx_brA_BFC1A448 != psx_brB_BFC1A448); + psx_taken_BFC1A448 = (psx_brA_BFC1A448 != psx_brB_BFC1A448); /* 0xBFC1A44C: AFB0001C sw $s0, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A44Cu); return; } g_debug_last_store_pc = 0xBFC1A44Cu; cpu->write_word(psx_addr, cpu->gpr[16]); } if (psx_taken_BFC1A448) goto label_BFC1A45C; @@ -78556,7 +80866,7 @@ label_BFC1A450: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (204)); /* 0xBFC1A454: 16210052 bne $s1, $at, 0xBFC1A5A0 */ uint32_t psx_brA_BFC1A454 = cpu->gpr[17]; uint32_t psx_brB_BFC1A454 = cpu->gpr[1]; - int psx_taken_BFC1A454 = (psx_brA_BFC1A454 != psx_brB_BFC1A454); + psx_taken_BFC1A454 = (psx_brA_BFC1A454 != psx_brB_BFC1A454); /* 0xBFC1A458: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A458u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A454) goto label_BFC1A5A0; @@ -78574,7 +80884,7 @@ label_BFC1A460: psx_check_interrupts(cpu); /* 0xBFC1A460: 1211000E beq $s0, $s1, 0xBFC1A49C */ uint32_t psx_brA_BFC1A460 = cpu->gpr[16]; uint32_t psx_brB_BFC1A460 = cpu->gpr[17]; - int psx_taken_BFC1A460 = (psx_brA_BFC1A460 == psx_brB_BFC1A460); + psx_taken_BFC1A460 = (psx_brA_BFC1A460 == psx_brB_BFC1A460); /* 0xBFC1A464: 00000000 nop */ /* nop */ if (psx_taken_BFC1A460) goto label_BFC1A49C; @@ -78639,7 +80949,7 @@ label_BFC1A49C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (208) ? 1 : 0); /* 0xBFC1A4A4: 1420FFEE bne $at, $zero, 0xBFC1A460 */ uint32_t psx_brA_BFC1A4A4 = cpu->gpr[1]; uint32_t psx_brB_BFC1A4A4 = cpu->gpr[0]; - int psx_taken_BFC1A4A4 = (psx_brA_BFC1A4A4 != psx_brB_BFC1A4A4); + psx_taken_BFC1A4A4 = (psx_brA_BFC1A4A4 != psx_brB_BFC1A4A4); /* 0xBFC1A4A8: 00000000 nop */ /* nop */ if (psx_taken_BFC1A4A4) goto label_BFC1A460; @@ -78719,7 +81029,7 @@ label_BFC1A4FC: psx_check_interrupts(cpu); /* 0xBFC1A4FC: 1211000E beq $s0, $s1, 0xBFC1A538 */ uint32_t psx_brA_BFC1A4FC = cpu->gpr[16]; uint32_t psx_brB_BFC1A4FC = cpu->gpr[17]; - int psx_taken_BFC1A4FC = (psx_brA_BFC1A4FC == psx_brB_BFC1A4FC); + psx_taken_BFC1A4FC = (psx_brA_BFC1A4FC == psx_brB_BFC1A4FC); /* 0xBFC1A500: 00000000 nop */ /* nop */ if (psx_taken_BFC1A4FC) goto label_BFC1A538; @@ -78784,7 +81094,7 @@ label_BFC1A538: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (208) ? 1 : 0); /* 0xBFC1A540: 1420FFEE bne $at, $zero, 0xBFC1A4FC */ uint32_t psx_brA_BFC1A540 = cpu->gpr[1]; uint32_t psx_brB_BFC1A540 = cpu->gpr[0]; - int psx_taken_BFC1A540 = (psx_brA_BFC1A540 != psx_brB_BFC1A540); + psx_taken_BFC1A540 = (psx_brA_BFC1A540 != psx_brB_BFC1A540); /* 0xBFC1A544: 00000000 nop */ /* nop */ if (psx_taken_BFC1A540) goto label_BFC1A4FC; @@ -78895,6 +81205,18 @@ void func_1FC1A5B0(CPUState* cpu) { default: break; } } + int psx_taken_BFC1A5D8 = 0; + int psx_taken_BFC1A5EC = 0; + int psx_taken_BFC1A600 = 0; + int psx_taken_BFC1A614 = 0; + int psx_taken_BFC1A648 = 0; + int psx_taken_BFC1A674 = 0; + int psx_taken_BFC1A684 = 0; + int psx_taken_BFC1A694 = 0; + int psx_taken_BFC1A6A4 = 0; + int psx_taken_BFC1A6B4 = 0; + int psx_taken_BFC1A6C4 = 0; + int psx_taken_BFC1A6D4 = 0; label_BFC1A5B0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -78928,7 +81250,7 @@ label_BFC1A5C8: cpu->gpr[15] = cpu->gpr[14] & cpu->gpr[1]; /* 0xBFC1A5D8: 11E00041 beq $t7, $zero, 0xBFC1A6E0 */ uint32_t psx_brA_BFC1A5D8 = cpu->gpr[15]; uint32_t psx_brB_BFC1A5D8 = cpu->gpr[0]; - int psx_taken_BFC1A5D8 = (psx_brA_BFC1A5D8 == psx_brB_BFC1A5D8); + psx_taken_BFC1A5D8 = (psx_brA_BFC1A5D8 == psx_brB_BFC1A5D8); /* 0xBFC1A5DC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A5DCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A5D8) goto label_BFC1A6E0; @@ -78945,7 +81267,7 @@ label_BFC1A5E0: /* nop */ /* 0xBFC1A5EC: 1700003C bne $t8, $zero, 0xBFC1A6E0 */ uint32_t psx_brA_BFC1A5EC = cpu->gpr[24]; uint32_t psx_brB_BFC1A5EC = cpu->gpr[0]; - int psx_taken_BFC1A5EC = (psx_brA_BFC1A5EC != psx_brB_BFC1A5EC); + psx_taken_BFC1A5EC = (psx_brA_BFC1A5EC != psx_brB_BFC1A5EC); /* 0xBFC1A5F0: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A5F0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A5EC) goto label_BFC1A6E0; @@ -78962,7 +81284,7 @@ label_BFC1A5F4: /* nop */ /* 0xBFC1A600: 17200037 bne $t9, $zero, 0xBFC1A6E0 */ uint32_t psx_brA_BFC1A600 = cpu->gpr[25]; uint32_t psx_brB_BFC1A600 = cpu->gpr[0]; - int psx_taken_BFC1A600 = (psx_brA_BFC1A600 != psx_brB_BFC1A600); + psx_taken_BFC1A600 = (psx_brA_BFC1A600 != psx_brB_BFC1A600); /* 0xBFC1A604: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A604u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A600) goto label_BFC1A6E0; @@ -78979,7 +81301,7 @@ label_BFC1A608: /* nop */ /* 0xBFC1A614: 11000032 beq $t0, $zero, 0xBFC1A6E0 */ uint32_t psx_brA_BFC1A614 = cpu->gpr[8]; uint32_t psx_brB_BFC1A614 = cpu->gpr[0]; - int psx_taken_BFC1A614 = (psx_brA_BFC1A614 == psx_brB_BFC1A614); + psx_taken_BFC1A614 = (psx_brA_BFC1A614 == psx_brB_BFC1A614); /* 0xBFC1A618: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A618u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A614) goto label_BFC1A6E0; @@ -79024,7 +81346,7 @@ label_BFC1A630: cpu->gpr[1] = (uint32_t)(cpu->gpr[9] < 0x00000007u ? 1 : 0); /* 0xBFC1A648: 10200024 beq $at, $zero, 0xBFC1A6DC */ uint32_t psx_brA_BFC1A648 = cpu->gpr[1]; uint32_t psx_brB_BFC1A648 = cpu->gpr[0]; - int psx_taken_BFC1A648 = (psx_brA_BFC1A648 == psx_brB_BFC1A648); + psx_taken_BFC1A648 = (psx_brA_BFC1A648 == psx_brB_BFC1A648); /* 0xBFC1A64C: 00000000 nop */ /* nop */ if (psx_taken_BFC1A648) goto label_BFC1A6DC; @@ -79074,7 +81396,7 @@ label_BFC1A674: psx_check_interrupts(cpu); /* 0xBFC1A674: 1000001A beq $zero, $zero, 0xBFC1A6E0 */ uint32_t psx_brA_BFC1A674 = cpu->gpr[0]; uint32_t psx_brB_BFC1A674 = cpu->gpr[0]; - int psx_taken_BFC1A674 = (psx_brA_BFC1A674 == psx_brB_BFC1A674); + psx_taken_BFC1A674 = (psx_brA_BFC1A674 == psx_brB_BFC1A674); /* 0xBFC1A678: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A678u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A674) goto label_BFC1A6E0; @@ -79095,7 +81417,7 @@ label_BFC1A684: psx_check_interrupts(cpu); /* 0xBFC1A684: 10000016 beq $zero, $zero, 0xBFC1A6E0 */ uint32_t psx_brA_BFC1A684 = cpu->gpr[0]; uint32_t psx_brB_BFC1A684 = cpu->gpr[0]; - int psx_taken_BFC1A684 = (psx_brA_BFC1A684 == psx_brB_BFC1A684); + psx_taken_BFC1A684 = (psx_brA_BFC1A684 == psx_brB_BFC1A684); /* 0xBFC1A688: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A688u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A684) goto label_BFC1A6E0; @@ -79116,7 +81438,7 @@ label_BFC1A694: psx_check_interrupts(cpu); /* 0xBFC1A694: 10000012 beq $zero, $zero, 0xBFC1A6E0 */ uint32_t psx_brA_BFC1A694 = cpu->gpr[0]; uint32_t psx_brB_BFC1A694 = cpu->gpr[0]; - int psx_taken_BFC1A694 = (psx_brA_BFC1A694 == psx_brB_BFC1A694); + psx_taken_BFC1A694 = (psx_brA_BFC1A694 == psx_brB_BFC1A694); /* 0xBFC1A698: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A698u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A694) goto label_BFC1A6E0; @@ -79137,7 +81459,7 @@ label_BFC1A6A4: psx_check_interrupts(cpu); /* 0xBFC1A6A4: 1000000E beq $zero, $zero, 0xBFC1A6E0 */ uint32_t psx_brA_BFC1A6A4 = cpu->gpr[0]; uint32_t psx_brB_BFC1A6A4 = cpu->gpr[0]; - int psx_taken_BFC1A6A4 = (psx_brA_BFC1A6A4 == psx_brB_BFC1A6A4); + psx_taken_BFC1A6A4 = (psx_brA_BFC1A6A4 == psx_brB_BFC1A6A4); /* 0xBFC1A6A8: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A6A8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A6A4) goto label_BFC1A6E0; @@ -79158,7 +81480,7 @@ label_BFC1A6B4: psx_check_interrupts(cpu); /* 0xBFC1A6B4: 1000000A beq $zero, $zero, 0xBFC1A6E0 */ uint32_t psx_brA_BFC1A6B4 = cpu->gpr[0]; uint32_t psx_brB_BFC1A6B4 = cpu->gpr[0]; - int psx_taken_BFC1A6B4 = (psx_brA_BFC1A6B4 == psx_brB_BFC1A6B4); + psx_taken_BFC1A6B4 = (psx_brA_BFC1A6B4 == psx_brB_BFC1A6B4); /* 0xBFC1A6B8: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A6B8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A6B4) goto label_BFC1A6E0; @@ -79179,7 +81501,7 @@ label_BFC1A6C4: psx_check_interrupts(cpu); /* 0xBFC1A6C4: 10000006 beq $zero, $zero, 0xBFC1A6E0 */ uint32_t psx_brA_BFC1A6C4 = cpu->gpr[0]; uint32_t psx_brB_BFC1A6C4 = cpu->gpr[0]; - int psx_taken_BFC1A6C4 = (psx_brA_BFC1A6C4 == psx_brB_BFC1A6C4); + psx_taken_BFC1A6C4 = (psx_brA_BFC1A6C4 == psx_brB_BFC1A6C4); /* 0xBFC1A6C8: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A6C8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A6C4) goto label_BFC1A6E0; @@ -79200,7 +81522,7 @@ label_BFC1A6D4: psx_check_interrupts(cpu); /* 0xBFC1A6D4: 10000002 beq $zero, $zero, 0xBFC1A6E0 */ uint32_t psx_brA_BFC1A6D4 = cpu->gpr[0]; uint32_t psx_brB_BFC1A6D4 = cpu->gpr[0]; - int psx_taken_BFC1A6D4 = (psx_brA_BFC1A6D4 == psx_brB_BFC1A6D4); + psx_taken_BFC1A6D4 = (psx_brA_BFC1A6D4 == psx_brB_BFC1A6D4); /* 0xBFC1A6D8: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A6D8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A6D4) goto label_BFC1A6E0; @@ -79252,6 +81574,32 @@ void func_1FC1A6EC(CPUState* cpu) { default: break; } } + int psx_taken_BFC1A76C = 0; + int psx_taken_BFC1A778 = 0; + int psx_taken_BFC1A78C = 0; + int psx_taken_BFC1A7A0 = 0; + int psx_taken_BFC1A7B4 = 0; + int psx_taken_BFC1A7D4 = 0; + int psx_taken_BFC1A7E4 = 0; + int psx_taken_BFC1A7EC = 0; + int psx_taken_BFC1A804 = 0; + int psx_taken_BFC1A810 = 0; + int psx_taken_BFC1A818 = 0; + int psx_taken_BFC1A838 = 0; + int psx_taken_BFC1A84C = 0; + int psx_taken_BFC1A854 = 0; + int psx_taken_BFC1A85C = 0; + int psx_taken_BFC1A87C = 0; + int psx_taken_BFC1A890 = 0; + int psx_taken_BFC1A8A4 = 0; + int psx_taken_BFC1A8AC = 0; + int psx_taken_BFC1A8CC = 0; + int psx_taken_BFC1A8F0 = 0; + int psx_taken_BFC1A924 = 0; + int psx_taken_BFC1A95C = 0; + int psx_taken_BFC1A968 = 0; + int psx_taken_BFC1A99C = 0; + int psx_taken_BFC1A9E0 = 0; label_BFC1A6EC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -79347,7 +81695,7 @@ label_BFC1A760: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (43) ? 1 : 0); /* 0xBFC1A76C: 1420001B bne $at, $zero, 0xBFC1A7DC */ uint32_t psx_brA_BFC1A76C = cpu->gpr[1]; uint32_t psx_brB_BFC1A76C = cpu->gpr[0]; - int psx_taken_BFC1A76C = (psx_brA_BFC1A76C != psx_brB_BFC1A76C); + psx_taken_BFC1A76C = (psx_brA_BFC1A76C != psx_brB_BFC1A76C); /* 0xBFC1A770: AFA20028 sw $v0, 40($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A770u); return; } g_debug_last_store_pc = 0xBFC1A770u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC1A76C) goto label_BFC1A7DC; @@ -79360,7 +81708,7 @@ label_BFC1A774: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (47) ? 1 : 0); /* 0xBFC1A778: 10200019 beq $at, $zero, 0xBFC1A7E0 */ uint32_t psx_brA_BFC1A778 = cpu->gpr[1]; uint32_t psx_brB_BFC1A778 = cpu->gpr[0]; - int psx_taken_BFC1A778 = (psx_brA_BFC1A778 == psx_brB_BFC1A778); + psx_taken_BFC1A778 = (psx_brA_BFC1A778 == psx_brB_BFC1A778); /* 0xBFC1A77C: 8FAC0034 lw $t4, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A77Cu); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A778) goto label_BFC1A7E0; @@ -79377,7 +81725,7 @@ label_BFC1A780: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC1A78C: 15210006 bne $t1, $at, 0xBFC1A7A8 */ uint32_t psx_brA_BFC1A78C = cpu->gpr[9]; uint32_t psx_brB_BFC1A78C = cpu->gpr[1]; - int psx_taken_BFC1A78C = (psx_brA_BFC1A78C != psx_brB_BFC1A78C); + psx_taken_BFC1A78C = (psx_brA_BFC1A78C != psx_brB_BFC1A78C); /* 0xBFC1A790: 00000000 nop */ /* nop */ if (psx_taken_BFC1A78C) goto label_BFC1A7A8; @@ -79394,7 +81742,7 @@ label_BFC1A794: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC1A7A0: 15410007 bne $t2, $at, 0xBFC1A7C0 */ uint32_t psx_brA_BFC1A7A0 = cpu->gpr[10]; uint32_t psx_brB_BFC1A7A0 = cpu->gpr[1]; - int psx_taken_BFC1A7A0 = (psx_brA_BFC1A7A0 != psx_brB_BFC1A7A0); + psx_taken_BFC1A7A0 = (psx_brA_BFC1A7A0 != psx_brB_BFC1A7A0); /* 0xBFC1A7A4: 01002021 addu $a0, $t0, $zero */ cpu->gpr[4] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC1A7A0) goto label_BFC1A7C0; @@ -79411,7 +81759,7 @@ label_BFC1A7A8: /* nop */ /* 0xBFC1A7B4: 1160000A beq $t3, $zero, 0xBFC1A7E0 */ uint32_t psx_brA_BFC1A7B4 = cpu->gpr[11]; uint32_t psx_brB_BFC1A7B4 = cpu->gpr[0]; - int psx_taken_BFC1A7B4 = (psx_brA_BFC1A7B4 == psx_brB_BFC1A7B4); + psx_taken_BFC1A7B4 = (psx_brA_BFC1A7B4 == psx_brB_BFC1A7B4); /* 0xBFC1A7B8: 8FAC0034 lw $t4, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A7B8u); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A7B4) goto label_BFC1A7E0; @@ -79451,7 +81799,7 @@ label_BFC1A7D4: psx_check_interrupts(cpu); /* 0xBFC1A7D4: 100000AB beq $zero, $zero, 0xBFC1AA84 */ uint32_t psx_brA_BFC1A7D4 = cpu->gpr[0]; uint32_t psx_brB_BFC1A7D4 = cpu->gpr[0]; - int psx_taken_BFC1A7D4 = (psx_brA_BFC1A7D4 == psx_brB_BFC1A7D4); + psx_taken_BFC1A7D4 = (psx_brA_BFC1A7D4 == psx_brB_BFC1A7D4); /* 0xBFC1A7D8: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A7D8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A7D4) goto label_BFC1AA84; @@ -79471,7 +81819,7 @@ label_BFC1A7E0: /* nop */ /* 0xBFC1A7E4: 11800003 beq $t4, $zero, 0xBFC1A7F4 */ uint32_t psx_brA_BFC1A7E4 = cpu->gpr[12]; uint32_t psx_brB_BFC1A7E4 = cpu->gpr[0]; - int psx_taken_BFC1A7E4 = (psx_brA_BFC1A7E4 == psx_brB_BFC1A7E4); + psx_taken_BFC1A7E4 = (psx_brA_BFC1A7E4 == psx_brB_BFC1A7E4); /* 0xBFC1A7E8: 00000000 nop */ /* nop */ if (psx_taken_BFC1A7E4) goto label_BFC1A7F4; @@ -79482,7 +81830,7 @@ label_BFC1A7EC: psx_check_interrupts(cpu); /* 0xBFC1A7EC: 10000014 beq $zero, $zero, 0xBFC1A840 */ uint32_t psx_brA_BFC1A7EC = cpu->gpr[0]; uint32_t psx_brB_BFC1A7EC = cpu->gpr[0]; - int psx_taken_BFC1A7EC = (psx_brA_BFC1A7EC == psx_brB_BFC1A7EC); + psx_taken_BFC1A7EC = (psx_brA_BFC1A7EC == psx_brB_BFC1A7EC); /* 0xBFC1A7F0: 24020002 addiu $v0, $zero, 2 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC1A7EC) goto label_BFC1A840; @@ -79501,7 +81849,7 @@ label_BFC1A7F4: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (22)); /* 0xBFC1A804: 11C20003 beq $t6, $v0, 0xBFC1A814 */ uint32_t psx_brA_BFC1A804 = cpu->gpr[14]; uint32_t psx_brB_BFC1A804 = cpu->gpr[2]; - int psx_taken_BFC1A804 = (psx_brA_BFC1A804 == psx_brB_BFC1A804); + psx_taken_BFC1A804 = (psx_brA_BFC1A804 == psx_brB_BFC1A804); /* 0xBFC1A808: AFAD0034 sw $t5, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A808u); return; } g_debug_last_store_pc = 0xBFC1A808u; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC1A804) goto label_BFC1A814; @@ -79514,7 +81862,7 @@ label_BFC1A80C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (41)); /* 0xBFC1A810: 10610003 beq $v1, $at, 0xBFC1A820 */ uint32_t psx_brA_BFC1A810 = cpu->gpr[3]; uint32_t psx_brB_BFC1A810 = cpu->gpr[1]; - int psx_taken_BFC1A810 = (psx_brA_BFC1A810 == psx_brB_BFC1A810); + psx_taken_BFC1A810 = (psx_brA_BFC1A810 == psx_brB_BFC1A810); label_BFC1A814: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -79530,7 +81878,7 @@ label_BFC1A818: psx_check_interrupts(cpu); /* 0xBFC1A818: 14610009 bne $v1, $at, 0xBFC1A840 */ uint32_t psx_brA_BFC1A818 = cpu->gpr[3]; uint32_t psx_brB_BFC1A818 = cpu->gpr[1]; - int psx_taken_BFC1A818 = (psx_brA_BFC1A818 != psx_brB_BFC1A818); + psx_taken_BFC1A818 = (psx_brA_BFC1A818 != psx_brB_BFC1A818); /* 0xBFC1A81C: 00000000 nop */ /* nop */ if (psx_taken_BFC1A818) goto label_BFC1A840; @@ -79565,7 +81913,7 @@ label_BFC1A838: psx_check_interrupts(cpu); /* 0xBFC1A838: 10000092 beq $zero, $zero, 0xBFC1AA84 */ uint32_t psx_brA_BFC1A838 = cpu->gpr[0]; uint32_t psx_brB_BFC1A838 = cpu->gpr[0]; - int psx_taken_BFC1A838 = (psx_brA_BFC1A838 == psx_brB_BFC1A838); + psx_taken_BFC1A838 = (psx_brA_BFC1A838 == psx_brB_BFC1A838); /* 0xBFC1A83C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A83Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A838) goto label_BFC1AA84; @@ -79582,7 +81930,7 @@ label_BFC1A840: /* nop */ /* 0xBFC1A84C: 15E2000D bne $t7, $v0, 0xBFC1A884 */ uint32_t psx_brA_BFC1A84C = cpu->gpr[15]; uint32_t psx_brB_BFC1A84C = cpu->gpr[2]; - int psx_taken_BFC1A84C = (psx_brA_BFC1A84C != psx_brB_BFC1A84C); + psx_taken_BFC1A84C = (psx_brA_BFC1A84C != psx_brB_BFC1A84C); /* 0xBFC1A850: 24010029 addiu $at, $zero, 41 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (41)); if (psx_taken_BFC1A84C) goto label_BFC1A884; @@ -79593,7 +81941,7 @@ label_BFC1A854: psx_check_interrupts(cpu); /* 0xBFC1A854: 10610003 beq $v1, $at, 0xBFC1A864 */ uint32_t psx_brA_BFC1A854 = cpu->gpr[3]; uint32_t psx_brB_BFC1A854 = cpu->gpr[1]; - int psx_taken_BFC1A854 = (psx_brA_BFC1A854 == psx_brB_BFC1A854); + psx_taken_BFC1A854 = (psx_brA_BFC1A854 == psx_brB_BFC1A854); /* 0xBFC1A858: 2401002A addiu $at, $zero, 42 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (42)); if (psx_taken_BFC1A854) goto label_BFC1A864; @@ -79604,7 +81952,7 @@ label_BFC1A85C: psx_check_interrupts(cpu); /* 0xBFC1A85C: 14610009 bne $v1, $at, 0xBFC1A884 */ uint32_t psx_brA_BFC1A85C = cpu->gpr[3]; uint32_t psx_brB_BFC1A85C = cpu->gpr[1]; - int psx_taken_BFC1A85C = (psx_brA_BFC1A85C != psx_brB_BFC1A85C); + psx_taken_BFC1A85C = (psx_brA_BFC1A85C != psx_brB_BFC1A85C); /* 0xBFC1A860: 00000000 nop */ /* nop */ if (psx_taken_BFC1A85C) goto label_BFC1A884; @@ -79639,7 +81987,7 @@ label_BFC1A87C: psx_check_interrupts(cpu); /* 0xBFC1A87C: 10000081 beq $zero, $zero, 0xBFC1AA84 */ uint32_t psx_brA_BFC1A87C = cpu->gpr[0]; uint32_t psx_brB_BFC1A87C = cpu->gpr[0]; - int psx_taken_BFC1A87C = (psx_brA_BFC1A87C == psx_brB_BFC1A87C); + psx_taken_BFC1A87C = (psx_brA_BFC1A87C == psx_brB_BFC1A87C); /* 0xBFC1A880: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A880u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A87C) goto label_BFC1AA84; @@ -79656,7 +82004,7 @@ label_BFC1A884: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC1A890: 17010011 bne $t8, $at, 0xBFC1A8D8 */ uint32_t psx_brA_BFC1A890 = cpu->gpr[24]; uint32_t psx_brB_BFC1A890 = cpu->gpr[1]; - int psx_taken_BFC1A890 = (psx_brA_BFC1A890 != psx_brB_BFC1A890); + psx_taken_BFC1A890 = (psx_brA_BFC1A890 != psx_brB_BFC1A890); /* 0xBFC1A894: 8FA40034 lw $a0, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A894u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A890) goto label_BFC1A8D8; @@ -79673,7 +82021,7 @@ label_BFC1A898: /* nop */ /* 0xBFC1A8A4: 1722000B bne $t9, $v0, 0xBFC1A8D4 */ uint32_t psx_brA_BFC1A8A4 = cpu->gpr[25]; uint32_t psx_brB_BFC1A8A4 = cpu->gpr[2]; - int psx_taken_BFC1A8A4 = (psx_brA_BFC1A8A4 != psx_brB_BFC1A8A4); + psx_taken_BFC1A8A4 = (psx_brA_BFC1A8A4 != psx_brB_BFC1A8A4); /* 0xBFC1A8A8: 2401002A addiu $at, $zero, 42 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (42)); if (psx_taken_BFC1A8A4) goto label_BFC1A8D4; @@ -79684,7 +82032,7 @@ label_BFC1A8AC: psx_check_interrupts(cpu); /* 0xBFC1A8AC: 1461000A bne $v1, $at, 0xBFC1A8D8 */ uint32_t psx_brA_BFC1A8AC = cpu->gpr[3]; uint32_t psx_brB_BFC1A8AC = cpu->gpr[1]; - int psx_taken_BFC1A8AC = (psx_brA_BFC1A8AC != psx_brB_BFC1A8AC); + psx_taken_BFC1A8AC = (psx_brA_BFC1A8AC != psx_brB_BFC1A8AC); /* 0xBFC1A8B0: 8FA40034 lw $a0, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A8B0u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A8AC) goto label_BFC1A8D8; @@ -79719,7 +82067,7 @@ label_BFC1A8CC: psx_check_interrupts(cpu); /* 0xBFC1A8CC: 1000006D beq $zero, $zero, 0xBFC1AA84 */ uint32_t psx_brA_BFC1A8CC = cpu->gpr[0]; uint32_t psx_brB_BFC1A8CC = cpu->gpr[0]; - int psx_taken_BFC1A8CC = (psx_brA_BFC1A8CC == psx_brB_BFC1A8CC); + psx_taken_BFC1A8CC = (psx_brA_BFC1A8CC == psx_brB_BFC1A8CC); /* 0xBFC1A8D0: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A8D0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1A8CC) goto label_BFC1AA84; @@ -79755,7 +82103,7 @@ label_BFC1A8E0: /* nop */ /* 0xBFC1A8F0: 11200020 beq $t1, $zero, 0xBFC1A974 */ uint32_t psx_brA_BFC1A8F0 = cpu->gpr[9]; uint32_t psx_brB_BFC1A8F0 = cpu->gpr[0]; - int psx_taken_BFC1A8F0 = (psx_brA_BFC1A8F0 == psx_brB_BFC1A8F0); + psx_taken_BFC1A8F0 = (psx_brA_BFC1A8F0 == psx_brB_BFC1A8F0); /* 0xBFC1A8F4: 24430004 addiu $v1, $v0, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); if (psx_taken_BFC1A8F0) goto label_BFC1A974; @@ -79793,7 +82141,7 @@ label_BFC1A908: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[11] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A920u); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC1A924: 156AFFF8 bne $t3, $t2, 0xBFC1A908 */ uint32_t psx_brA_BFC1A924 = cpu->gpr[11]; uint32_t psx_brB_BFC1A924 = cpu->gpr[10]; - int psx_taken_BFC1A924 = (psx_brA_BFC1A924 != psx_brB_BFC1A924); + psx_taken_BFC1A924 = (psx_brA_BFC1A924 != psx_brB_BFC1A924); /* 0xBFC1A928: AD810014 sw $at, 20($t4) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[12] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A928u); return; } g_debug_last_store_pc = 0xBFC1A928u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC1A924) goto label_BFC1A908; @@ -79833,7 +82181,7 @@ label_BFC1A940: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[15] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A958u); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC1A95C: 15EEFFF8 bne $t7, $t6, 0xBFC1A940 */ uint32_t psx_brA_BFC1A95C = cpu->gpr[15]; uint32_t psx_brB_BFC1A95C = cpu->gpr[14]; - int psx_taken_BFC1A95C = (psx_brA_BFC1A95C != psx_brB_BFC1A95C); + psx_taken_BFC1A95C = (psx_brA_BFC1A95C != psx_brB_BFC1A95C); /* 0xBFC1A960: ADA10014 sw $at, 20($t5) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[13] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A960u); return; } g_debug_last_store_pc = 0xBFC1A960u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC1A95C) goto label_BFC1A940; @@ -79846,7 +82194,7 @@ label_BFC1A964: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[15] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A964u); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC1A968: 10000025 beq $zero, $zero, 0xBFC1AA00 */ uint32_t psx_brA_BFC1A968 = cpu->gpr[0]; uint32_t psx_brB_BFC1A968 = cpu->gpr[0]; - int psx_taken_BFC1A968 = (psx_brA_BFC1A968 == psx_brB_BFC1A968); + psx_taken_BFC1A968 = (psx_brA_BFC1A968 == psx_brB_BFC1A968); /* 0xBFC1A96C: ADA10018 sw $at, 24($t5) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[13] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A96Cu); return; } g_debug_last_store_pc = 0xBFC1A96Cu; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC1A968) goto label_BFC1AA00; @@ -79889,7 +82237,7 @@ label_BFC1A980: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[25] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A998u); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC1A99C: 1738FFF8 bne $t9, $t8, 0xBFC1A980 */ uint32_t psx_brA_BFC1A99C = cpu->gpr[25]; uint32_t psx_brB_BFC1A99C = cpu->gpr[24]; - int psx_taken_BFC1A99C = (psx_brA_BFC1A99C != psx_brB_BFC1A99C); + psx_taken_BFC1A99C = (psx_brA_BFC1A99C != psx_brB_BFC1A99C); /* 0xBFC1A9A0: AD210000 sw $at, 0($t1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A9A0u); return; } g_debug_last_store_pc = 0xBFC1A9A0u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC1A99C) goto label_BFC1A980; @@ -79935,7 +82283,7 @@ label_BFC1A9C4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[12] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A9DCu); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC1A9E0: 158BFFF8 bne $t4, $t3, 0xBFC1A9C4 */ uint32_t psx_brA_BFC1A9E0 = cpu->gpr[12]; uint32_t psx_brB_BFC1A9E0 = cpu->gpr[11]; - int psx_taken_BFC1A9E0 = (psx_brA_BFC1A9E0 != psx_brB_BFC1A9E0); + psx_taken_BFC1A9E0 = (psx_brA_BFC1A9E0 != psx_brB_BFC1A9E0); /* 0xBFC1A9E4: AD410000 sw $at, 0($t2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[10] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1A9E4u); return; } g_debug_last_store_pc = 0xBFC1A9E4u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC1A9E0) goto label_BFC1A9C4; @@ -80095,6 +82443,15 @@ void func_1FC1AA90(CPUState* cpu) { default: break; } } + int psx_taken_BFC1AAA0 = 0; + int psx_taken_BFC1AAC8 = 0; + int psx_taken_BFC1AAE0 = 0; + int psx_taken_BFC1AB5C = 0; + int psx_taken_BFC1AB68 = 0; + int psx_taken_BFC1AB7C = 0; + int psx_taken_BFC1ABC0 = 0; + int psx_taken_BFC1ABD0 = 0; + int psx_taken_BFC1AC14 = 0; label_BFC1AA90: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -80110,7 +82467,7 @@ label_BFC1AA90: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC1AAA0: 15C1006D bne $t6, $at, 0xBFC1AC58 */ uint32_t psx_brA_BFC1AAA0 = cpu->gpr[14]; uint32_t psx_brB_BFC1AAA0 = cpu->gpr[1]; - int psx_taken_BFC1AAA0 = (psx_brA_BFC1AAA0 != psx_brB_BFC1AAA0); + psx_taken_BFC1AAA0 = (psx_brA_BFC1AAA0 != psx_brB_BFC1AAA0); /* 0xBFC1AAA4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AAA4u); return; } g_debug_last_store_pc = 0xBFC1AAA4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1AAA0) goto label_BFC1AC58; @@ -80143,7 +82500,7 @@ label_BFC1AAB8: cpu->gpr[1] = (uint32_t)(cpu->gpr[15] < 0x0000000Au ? 1 : 0); /* 0xBFC1AAC8: 14200004 bne $at, $zero, 0xBFC1AADC */ uint32_t psx_brA_BFC1AAC8 = cpu->gpr[1]; uint32_t psx_brB_BFC1AAC8 = cpu->gpr[0]; - int psx_taken_BFC1AAC8 = (psx_brA_BFC1AAC8 != psx_brB_BFC1AAC8); + psx_taken_BFC1AAC8 = (psx_brA_BFC1AAC8 != psx_brB_BFC1AAC8); /* 0xBFC1AACC: 3058000F andi $t8, $v0, 0xF */ cpu->gpr[24] = cpu->gpr[2] & 0xFu; if (psx_taken_BFC1AAC8) goto label_BFC1AADC; @@ -80167,7 +82524,7 @@ label_BFC1AADC: cpu->gpr[1] = (uint32_t)(cpu->gpr[24] < 0x0000000Au ? 1 : 0); /* 0xBFC1AAE0: 14200004 bne $at, $zero, 0xBFC1AAF4 */ uint32_t psx_brA_BFC1AAE0 = cpu->gpr[1]; uint32_t psx_brB_BFC1AAE0 = cpu->gpr[0]; - int psx_taken_BFC1AAE0 = (psx_brA_BFC1AAE0 != psx_brB_BFC1AAE0); + psx_taken_BFC1AAE0 = (psx_brA_BFC1AAE0 != psx_brB_BFC1AAE0); /* 0xBFC1AAE4: 24040029 addiu $a0, $zero, 41 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (41)); if (psx_taken_BFC1AAE0) goto label_BFC1AAF4; @@ -80277,7 +82634,7 @@ label_BFC1AB50: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC1AB5C: 13210005 beq $t9, $at, 0xBFC1AB74 */ uint32_t psx_brA_BFC1AB5C = cpu->gpr[25]; uint32_t psx_brB_BFC1AB5C = cpu->gpr[1]; - int psx_taken_BFC1AB5C = (psx_brA_BFC1AB5C == psx_brB_BFC1AB5C); + psx_taken_BFC1AB5C = (psx_brA_BFC1AB5C == psx_brB_BFC1AB5C); /* 0xBFC1AB60: 24020002 addiu $v0, $zero, 2 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC1AB5C) goto label_BFC1AB74; @@ -80290,7 +82647,7 @@ label_BFC1AB64: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AB64u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } /* 0xBFC1AB68: 10000003 beq $zero, $zero, 0xBFC1AB78 */ uint32_t psx_brA_BFC1AB68 = cpu->gpr[0]; uint32_t psx_brB_BFC1AB68 = cpu->gpr[0]; - int psx_taken_BFC1AB68 = (psx_brA_BFC1AB68 == psx_brB_BFC1AB68); + psx_taken_BFC1AB68 = (psx_brA_BFC1AB68 == psx_brB_BFC1AB68); /* 0xBFC1AB6C: 93A8001E lbu $t0, 30($sp) */ cpu->gpr[8] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (30))); if (psx_taken_BFC1AB68) goto label_BFC1AB78; @@ -80317,7 +82674,7 @@ label_BFC1AB78: /* nop */ /* 0xBFC1AB7C: 15000013 bne $t0, $zero, 0xBFC1ABCC */ uint32_t psx_brA_BFC1AB7C = cpu->gpr[8]; uint32_t psx_brB_BFC1AB7C = cpu->gpr[0]; - int psx_taken_BFC1AB7C = (psx_brA_BFC1AB7C != psx_brB_BFC1AB7C); + psx_taken_BFC1AB7C = (psx_brA_BFC1AB7C != psx_brB_BFC1AB7C); /* 0xBFC1AB80: 93AE001C lbu $t6, 28($sp) */ cpu->gpr[14] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); if (psx_taken_BFC1AB7C) goto label_BFC1ABCC; @@ -80364,7 +82721,7 @@ label_BFC1ABC0: psx_check_interrupts(cpu); /* 0xBFC1ABC0: 10000026 beq $zero, $zero, 0xBFC1AC5C */ uint32_t psx_brA_BFC1ABC0 = cpu->gpr[0]; uint32_t psx_brB_BFC1ABC0 = cpu->gpr[0]; - int psx_taken_BFC1ABC0 = (psx_brA_BFC1ABC0 == psx_brB_BFC1ABC0); + psx_taken_BFC1ABC0 = (psx_brA_BFC1ABC0 == psx_brB_BFC1ABC0); /* 0xBFC1ABC4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1ABC4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1ABC0) goto label_BFC1AC5C; @@ -80384,7 +82741,7 @@ label_BFC1ABCC: /* nop */ /* 0xBFC1ABD0: 11C00012 beq $t6, $zero, 0xBFC1AC1C */ uint32_t psx_brA_BFC1ABD0 = cpu->gpr[14]; uint32_t psx_brB_BFC1ABD0 = cpu->gpr[0]; - int psx_taken_BFC1ABD0 = (psx_brA_BFC1ABD0 == psx_brB_BFC1ABD0); + psx_taken_BFC1ABD0 = (psx_brA_BFC1ABD0 == psx_brB_BFC1ABD0); /* 0xBFC1ABD4: 00000000 nop */ /* nop */ if (psx_taken_BFC1ABD0) goto label_BFC1AC1C; @@ -80431,7 +82788,7 @@ label_BFC1AC14: psx_check_interrupts(cpu); /* 0xBFC1AC14: 10000011 beq $zero, $zero, 0xBFC1AC5C */ uint32_t psx_brA_BFC1AC14 = cpu->gpr[0]; uint32_t psx_brB_BFC1AC14 = cpu->gpr[0]; - int psx_taken_BFC1AC14 = (psx_brA_BFC1AC14 == psx_brB_BFC1AC14); + psx_taken_BFC1AC14 = (psx_brA_BFC1AC14 == psx_brB_BFC1AC14); /* 0xBFC1AC18: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AC18u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1AC14) goto label_BFC1AC5C; @@ -80503,6 +82860,28 @@ void func_1FC1AC68(CPUState* cpu) { default: break; } } + int psx_taken_BFC1AC78 = 0; + int psx_taken_BFC1AC98 = 0; + int psx_taken_BFC1ACBC = 0; + int psx_taken_BFC1ACC4 = 0; + int psx_taken_BFC1ACCC = 0; + int psx_taken_BFC1ACE0 = 0; + int psx_taken_BFC1ACE8 = 0; + int psx_taken_BFC1ACF4 = 0; + int psx_taken_BFC1ACFC = 0; + int psx_taken_BFC1AD08 = 0; + int psx_taken_BFC1AD14 = 0; + int psx_taken_BFC1AD48 = 0; + int psx_taken_BFC1AD54 = 0; + int psx_taken_BFC1AD6C = 0; + int psx_taken_BFC1AD7C = 0; + int psx_taken_BFC1AD8C = 0; + int psx_taken_BFC1AD9C = 0; + int psx_taken_BFC1ADAC = 0; + int psx_taken_BFC1ADB8 = 0; + int psx_taken_BFC1ADCC = 0; + int psx_taken_BFC1ADFC = 0; + int psx_taken_BFC1AE04 = 0; label_BFC1AC68: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -80518,7 +82897,7 @@ label_BFC1AC68: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC1AC78: 15C10066 bne $t6, $at, 0xBFC1AE14 */ uint32_t psx_brA_BFC1AC78 = cpu->gpr[14]; uint32_t psx_brB_BFC1AC78 = cpu->gpr[1]; - int psx_taken_BFC1AC78 = (psx_brA_BFC1AC78 != psx_brB_BFC1AC78); + psx_taken_BFC1AC78 = (psx_brA_BFC1AC78 != psx_brB_BFC1AC78); /* 0xBFC1AC7C: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AC7Cu); return; } g_debug_last_store_pc = 0xBFC1AC7Cu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1AC78) goto label_BFC1AE14; @@ -80541,7 +82920,7 @@ label_BFC1AC80: cpu->gpr[1] = (uint32_t)(cpu->gpr[15] < 0x0000000Au ? 1 : 0); /* 0xBFC1AC98: 1020001B beq $at, $zero, 0xBFC1AD08 */ uint32_t psx_brA_BFC1AC98 = cpu->gpr[1]; uint32_t psx_brB_BFC1AC98 = cpu->gpr[0]; - int psx_taken_BFC1AC98 = (psx_brA_BFC1AC98 == psx_brB_BFC1AC98); + psx_taken_BFC1AC98 = (psx_brA_BFC1AC98 == psx_brB_BFC1AC98); /* 0xBFC1AC9C: 2401003A addiu $at, $zero, 58 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (58)); if (psx_taken_BFC1AC98) goto label_BFC1AD08; @@ -80579,7 +82958,7 @@ label_BFC1ACBC: psx_check_interrupts(cpu); /* 0xBFC1ACBC: 10000011 beq $zero, $zero, 0xBFC1AD04 */ uint32_t psx_brA_BFC1ACBC = cpu->gpr[0]; uint32_t psx_brB_BFC1ACBC = cpu->gpr[0]; - int psx_taken_BFC1ACBC = (psx_brA_BFC1ACBC == psx_brB_BFC1ACBC); + psx_taken_BFC1ACBC = (psx_brA_BFC1ACBC == psx_brB_BFC1ACBC); /* 0xBFC1ACC0: 240700CB addiu $a3, $zero, 203 */ cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (203)); if (psx_taken_BFC1ACBC) goto label_BFC1AD04; @@ -80590,7 +82969,7 @@ label_BFC1ACC4: psx_check_interrupts(cpu); /* 0xBFC1ACC4: 1000000F beq $zero, $zero, 0xBFC1AD04 */ uint32_t psx_brA_BFC1ACC4 = cpu->gpr[0]; uint32_t psx_brB_BFC1ACC4 = cpu->gpr[0]; - int psx_taken_BFC1ACC4 = (psx_brA_BFC1ACC4 == psx_brB_BFC1ACC4); + psx_taken_BFC1ACC4 = (psx_brA_BFC1ACC4 == psx_brB_BFC1ACC4); /* 0xBFC1ACC8: 240700CC addiu $a3, $zero, 204 */ cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (204)); if (psx_taken_BFC1ACC4) goto label_BFC1AD04; @@ -80601,7 +82980,7 @@ label_BFC1ACCC: psx_check_interrupts(cpu); /* 0xBFC1ACCC: 1000000D beq $zero, $zero, 0xBFC1AD04 */ uint32_t psx_brA_BFC1ACCC = cpu->gpr[0]; uint32_t psx_brB_BFC1ACCC = cpu->gpr[0]; - int psx_taken_BFC1ACCC = (psx_brA_BFC1ACCC == psx_brB_BFC1ACCC); + psx_taken_BFC1ACCC = (psx_brA_BFC1ACCC == psx_brB_BFC1ACCC); /* 0xBFC1ACD0: 240700CD addiu $a3, $zero, 205 */ cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (205)); if (psx_taken_BFC1ACCC) goto label_BFC1AD04; @@ -80618,7 +82997,7 @@ label_BFC1ACD4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1ACE0: 14410004 bne $v0, $at, 0xBFC1ACF4 */ uint32_t psx_brA_BFC1ACE0 = cpu->gpr[2]; uint32_t psx_brB_BFC1ACE0 = cpu->gpr[1]; - int psx_taken_BFC1ACE0 = (psx_brA_BFC1ACE0 != psx_brB_BFC1ACE0); + psx_taken_BFC1ACE0 = (psx_brA_BFC1ACE0 != psx_brB_BFC1ACE0); /* 0xBFC1ACE4: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC1ACE0) goto label_BFC1ACF4; @@ -80629,7 +83008,7 @@ label_BFC1ACE8: psx_check_interrupts(cpu); /* 0xBFC1ACE8: 10000006 beq $zero, $zero, 0xBFC1AD04 */ uint32_t psx_brA_BFC1ACE8 = cpu->gpr[0]; uint32_t psx_brB_BFC1ACE8 = cpu->gpr[0]; - int psx_taken_BFC1ACE8 = (psx_brA_BFC1ACE8 == psx_brB_BFC1ACE8); + psx_taken_BFC1ACE8 = (psx_brA_BFC1ACE8 == psx_brB_BFC1ACE8); /* 0xBFC1ACEC: 240700CA addiu $a3, $zero, 202 */ cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (202)); if (psx_taken_BFC1ACE8) goto label_BFC1AD04; @@ -80647,7 +83026,7 @@ label_BFC1ACF4: psx_check_interrupts(cpu); /* 0xBFC1ACF4: 14410004 bne $v0, $at, 0xBFC1AD08 */ uint32_t psx_brA_BFC1ACF4 = cpu->gpr[2]; uint32_t psx_brB_BFC1ACF4 = cpu->gpr[1]; - int psx_taken_BFC1ACF4 = (psx_brA_BFC1ACF4 != psx_brB_BFC1ACF4); + psx_taken_BFC1ACF4 = (psx_brA_BFC1ACF4 != psx_brB_BFC1ACF4); /* 0xBFC1ACF8: 2401003A addiu $at, $zero, 58 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (58)); if (psx_taken_BFC1ACF4) goto label_BFC1AD08; @@ -80658,7 +83037,7 @@ label_BFC1ACFC: psx_check_interrupts(cpu); /* 0xBFC1ACFC: 10000001 beq $zero, $zero, 0xBFC1AD04 */ uint32_t psx_brA_BFC1ACFC = cpu->gpr[0]; uint32_t psx_brB_BFC1ACFC = cpu->gpr[0]; - int psx_taken_BFC1ACFC = (psx_brA_BFC1ACFC == psx_brB_BFC1ACFC); + psx_taken_BFC1ACFC = (psx_brA_BFC1ACFC == psx_brB_BFC1ACFC); /* 0xBFC1AD00: 240700CE addiu $a3, $zero, 206 */ cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (206)); if (psx_taken_BFC1ACFC) goto label_BFC1AD04; @@ -80676,7 +83055,7 @@ label_BFC1AD08: psx_check_interrupts(cpu); /* 0xBFC1AD08: 10A10004 beq $a1, $at, 0xBFC1AD1C */ uint32_t psx_brA_BFC1AD08 = cpu->gpr[5]; uint32_t psx_brB_BFC1AD08 = cpu->gpr[1]; - int psx_taken_BFC1AD08 = (psx_brA_BFC1AD08 == psx_brB_BFC1AD08); + psx_taken_BFC1AD08 = (psx_brA_BFC1AD08 == psx_brB_BFC1AD08); /* 0xBFC1AD0C: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1AD08) goto label_BFC1AD1C; @@ -80689,7 +83068,7 @@ label_BFC1AD10: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (59)); /* 0xBFC1AD14: 14A10039 bne $a1, $at, 0xBFC1ADFC */ uint32_t psx_brA_BFC1AD14 = cpu->gpr[5]; uint32_t psx_brB_BFC1AD14 = cpu->gpr[1]; - int psx_taken_BFC1AD14 = (psx_brA_BFC1AD14 != psx_brB_BFC1AD14); + psx_taken_BFC1AD14 = (psx_brA_BFC1AD14 != psx_brB_BFC1AD14); /* 0xBFC1AD18: 00000000 nop */ /* nop */ if (psx_taken_BFC1AD14) goto label_BFC1ADFC; @@ -80728,7 +83107,7 @@ label_BFC1AD34: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (58)); /* 0xBFC1AD48: 10A10005 beq $a1, $at, 0xBFC1AD60 */ uint32_t psx_brA_BFC1AD48 = cpu->gpr[5]; uint32_t psx_brB_BFC1AD48 = cpu->gpr[1]; - int psx_taken_BFC1AD48 = (psx_brA_BFC1AD48 == psx_brB_BFC1AD48); + psx_taken_BFC1AD48 = (psx_brA_BFC1AD48 == psx_brB_BFC1AD48); /* 0xBFC1AD4C: 8FA2001C lw $v0, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AD4Cu); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC1AD48) goto label_BFC1AD60; @@ -80741,7 +83120,7 @@ label_BFC1AD50: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AD50u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } /* 0xBFC1AD54: 1000000D beq $zero, $zero, 0xBFC1AD8C */ uint32_t psx_brA_BFC1AD54 = cpu->gpr[0]; uint32_t psx_brB_BFC1AD54 = cpu->gpr[0]; - int psx_taken_BFC1AD54 = (psx_brA_BFC1AD54 == psx_brB_BFC1AD54); + psx_taken_BFC1AD54 = (psx_brA_BFC1AD54 == psx_brB_BFC1AD54); /* 0xBFC1AD58: 2401003B addiu $at, $zero, 59 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (59)); if (psx_taken_BFC1AD54) goto label_BFC1AD8C; @@ -80765,7 +83144,7 @@ label_BFC1AD60: cpu->gpr[24] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC1AD6C: 17000006 bne $t8, $zero, 0xBFC1AD88 */ uint32_t psx_brA_BFC1AD6C = cpu->gpr[24]; uint32_t psx_brB_BFC1AD6C = cpu->gpr[0]; - int psx_taken_BFC1AD6C = (psx_brA_BFC1AD6C != psx_brB_BFC1AD6C); + psx_taken_BFC1AD6C = (psx_brA_BFC1AD6C != psx_brB_BFC1AD6C); /* 0xBFC1AD70: 3C010002 lui $at, 0x2 */ cpu->gpr[1] = 0x00020000u; if (psx_taken_BFC1AD6C) goto label_BFC1AD88; @@ -80780,7 +83159,7 @@ label_BFC1AD74: cpu->gpr[25] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC1AD7C: 17200003 bne $t9, $zero, 0xBFC1AD8C */ uint32_t psx_brA_BFC1AD7C = cpu->gpr[25]; uint32_t psx_brB_BFC1AD7C = cpu->gpr[0]; - int psx_taken_BFC1AD7C = (psx_brA_BFC1AD7C != psx_brB_BFC1AD7C); + psx_taken_BFC1AD7C = (psx_brA_BFC1AD7C != psx_brB_BFC1AD7C); /* 0xBFC1AD80: 2401003B addiu $at, $zero, 59 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (59)); if (psx_taken_BFC1AD7C) goto label_BFC1AD8C; @@ -80805,7 +83184,7 @@ label_BFC1AD8C: psx_check_interrupts(cpu); /* 0xBFC1AD8C: 14A1000A bne $a1, $at, 0xBFC1ADB8 */ uint32_t psx_brA_BFC1AD8C = cpu->gpr[5]; uint32_t psx_brB_BFC1AD8C = cpu->gpr[1]; - int psx_taken_BFC1AD8C = (psx_brA_BFC1AD8C != psx_brB_BFC1AD8C); + psx_taken_BFC1AD8C = (psx_brA_BFC1AD8C != psx_brB_BFC1AD8C); /* 0xBFC1AD90: 3C0100F0 lui $at, 0xF0 */ cpu->gpr[1] = 0x00F00000u; if (psx_taken_BFC1AD8C) goto label_BFC1ADB8; @@ -80820,7 +83199,7 @@ label_BFC1AD94: cpu->gpr[8] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC1AD9C: 15000006 bne $t0, $zero, 0xBFC1ADB8 */ uint32_t psx_brA_BFC1AD9C = cpu->gpr[8]; uint32_t psx_brB_BFC1AD9C = cpu->gpr[0]; - int psx_taken_BFC1AD9C = (psx_brA_BFC1AD9C != psx_brB_BFC1AD9C); + psx_taken_BFC1AD9C = (psx_brA_BFC1AD9C != psx_brB_BFC1AD9C); /* 0xBFC1ADA0: 3C010001 lui $at, 0x1 */ cpu->gpr[1] = 0x00010000u; if (psx_taken_BFC1AD9C) goto label_BFC1ADB8; @@ -80835,7 +83214,7 @@ label_BFC1ADA4: cpu->gpr[9] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC1ADAC: 15200002 bne $t1, $zero, 0xBFC1ADB8 */ uint32_t psx_brA_BFC1ADAC = cpu->gpr[9]; uint32_t psx_brB_BFC1ADAC = cpu->gpr[0]; - int psx_taken_BFC1ADAC = (psx_brA_BFC1ADAC != psx_brB_BFC1ADAC); + psx_taken_BFC1ADAC = (psx_brA_BFC1ADAC != psx_brB_BFC1ADAC); /* 0xBFC1ADB0: 00000000 nop */ /* nop */ if (psx_taken_BFC1ADAC) goto label_BFC1ADB8; @@ -80853,7 +83232,7 @@ label_BFC1ADB8: psx_check_interrupts(cpu); /* 0xBFC1ADB8: 10600010 beq $v1, $zero, 0xBFC1ADFC */ uint32_t psx_brA_BFC1ADB8 = cpu->gpr[3]; uint32_t psx_brB_BFC1ADB8 = cpu->gpr[0]; - int psx_taken_BFC1ADB8 = (psx_brA_BFC1ADB8 == psx_brB_BFC1ADB8); + psx_taken_BFC1ADB8 = (psx_brA_BFC1ADB8 == psx_brB_BFC1ADB8); /* 0xBFC1ADBC: 00000000 nop */ /* nop */ if (psx_taken_BFC1ADB8) goto label_BFC1ADFC; @@ -80870,7 +83249,7 @@ label_BFC1ADC0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC1ADCC: 1541000B bne $t2, $at, 0xBFC1ADFC */ uint32_t psx_brA_BFC1ADCC = cpu->gpr[10]; uint32_t psx_brB_BFC1ADCC = cpu->gpr[1]; - int psx_taken_BFC1ADCC = (psx_brA_BFC1ADCC != psx_brB_BFC1ADCC); + psx_taken_BFC1ADCC = (psx_brA_BFC1ADCC != psx_brB_BFC1ADCC); /* 0xBFC1ADD0: 00000000 nop */ /* nop */ if (psx_taken_BFC1ADCC) goto label_BFC1ADFC; @@ -80912,7 +83291,7 @@ label_BFC1ADFC: psx_check_interrupts(cpu); /* 0xBFC1ADFC: 14600006 bne $v1, $zero, 0xBFC1AE18 */ uint32_t psx_brA_BFC1ADFC = cpu->gpr[3]; uint32_t psx_brB_BFC1ADFC = cpu->gpr[0]; - int psx_taken_BFC1ADFC = (psx_brA_BFC1ADFC != psx_brB_BFC1ADFC); + psx_taken_BFC1ADFC = (psx_brA_BFC1ADFC != psx_brB_BFC1ADFC); /* 0xBFC1AE00: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AE00u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1ADFC) goto label_BFC1AE18; @@ -80923,7 +83302,7 @@ label_BFC1AE04: psx_check_interrupts(cpu); /* 0xBFC1AE04: 10E00004 beq $a3, $zero, 0xBFC1AE18 */ uint32_t psx_brA_BFC1AE04 = cpu->gpr[7]; uint32_t psx_brB_BFC1AE04 = cpu->gpr[0]; - int psx_taken_BFC1AE04 = (psx_brA_BFC1AE04 == psx_brB_BFC1AE04); + psx_taken_BFC1AE04 = (psx_brA_BFC1AE04 == psx_brB_BFC1AE04); /* 0xBFC1AE08: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AE08u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1AE04) goto label_BFC1AE18; @@ -80976,6 +83355,7 @@ label_BFC1AE24: void func_1FC1AE34(CPUState* cpu) { debug_server_log_call_entry(0x1FC1AE34u); + int psx_taken_BFC1AE40 = 0; label_BFC1AE34: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -80989,7 +83369,7 @@ label_BFC1AE34: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC1AE40: 15C10007 bne $t6, $at, 0xBFC1AE60 */ uint32_t psx_brA_BFC1AE40 = cpu->gpr[14]; uint32_t psx_brB_BFC1AE40 = cpu->gpr[1]; - int psx_taken_BFC1AE40 = (psx_brA_BFC1AE40 != psx_brB_BFC1AE40); + psx_taken_BFC1AE40 = (psx_brA_BFC1AE40 != psx_brB_BFC1AE40); /* 0xBFC1AE44: 00000000 nop */ /* nop */ if (psx_taken_BFC1AE40) goto label_BFC1AE60; @@ -81067,6 +83447,81 @@ void func_1FC1AE68(CPUState* cpu) { default: break; } } + int psx_taken_BFC1AE8C = 0; + int psx_taken_BFC1AEA0 = 0; + int psx_taken_BFC1AEB4 = 0; + int psx_taken_BFC1AEC8 = 0; + int psx_taken_BFC1AEDC = 0; + int psx_taken_BFC1AEFC = 0; + int psx_taken_BFC1AF10 = 0; + int psx_taken_BFC1AF20 = 0; + int psx_taken_BFC1AF34 = 0; + int psx_taken_BFC1AF3C = 0; + int psx_taken_BFC1AF44 = 0; + int psx_taken_BFC1AF5C = 0; + int psx_taken_BFC1AF88 = 0; + int psx_taken_BFC1AF98 = 0; + int psx_taken_BFC1AFB0 = 0; + int psx_taken_BFC1AFC4 = 0; + int psx_taken_BFC1AFD8 = 0; + int psx_taken_BFC1AFE0 = 0; + int psx_taken_BFC1B008 = 0; + int psx_taken_BFC1B014 = 0; + int psx_taken_BFC1B084 = 0; + int psx_taken_BFC1B098 = 0; + int psx_taken_BFC1B0A0 = 0; + int psx_taken_BFC1B0A8 = 0; + int psx_taken_BFC1B0B0 = 0; + int psx_taken_BFC1B0C0 = 0; + int psx_taken_BFC1B0CC = 0; + int psx_taken_BFC1B0F8 = 0; + int psx_taken_BFC1B108 = 0; + int psx_taken_BFC1B120 = 0; + int psx_taken_BFC1B128 = 0; + int psx_taken_BFC1B174 = 0; + int psx_taken_BFC1B188 = 0; + int psx_taken_BFC1B19C = 0; + int psx_taken_BFC1B1A4 = 0; + int psx_taken_BFC1B1AC = 0; + int psx_taken_BFC1B1EC = 0; + int psx_taken_BFC1B220 = 0; + int psx_taken_BFC1B234 = 0; + int psx_taken_BFC1B23C = 0; + int psx_taken_BFC1B244 = 0; + int psx_taken_BFC1B258 = 0; + int psx_taken_BFC1B268 = 0; + int psx_taken_BFC1B28C = 0; + int psx_taken_BFC1B2A4 = 0; + int psx_taken_BFC1B2B0 = 0; + int psx_taken_BFC1B2DC = 0; + int psx_taken_BFC1B300 = 0; + int psx_taken_BFC1B31C = 0; + int psx_taken_BFC1B33C = 0; + int psx_taken_BFC1B350 = 0; + int psx_taken_BFC1B364 = 0; + int psx_taken_BFC1B3AC = 0; + int psx_taken_BFC1B3C8 = 0; + int psx_taken_BFC1B3E8 = 0; + int psx_taken_BFC1B3F4 = 0; + int psx_taken_BFC1B408 = 0; + int psx_taken_BFC1B420 = 0; + int psx_taken_BFC1B434 = 0; + int psx_taken_BFC1B460 = 0; + int psx_taken_BFC1B49C = 0; + int psx_taken_BFC1B4B4 = 0; + int psx_taken_BFC1B4E0 = 0; + int psx_taken_BFC1B500 = 0; + int psx_taken_BFC1B520 = 0; + int psx_taken_BFC1B544 = 0; + int psx_taken_BFC1B558 = 0; + int psx_taken_BFC1B594 = 0; + int psx_taken_BFC1B59C = 0; + int psx_taken_BFC1B5B4 = 0; + int psx_taken_BFC1B5C0 = 0; + int psx_taken_BFC1B5F4 = 0; + int psx_taken_BFC1B624 = 0; + int psx_taken_BFC1B678 = 0; + int psx_taken_BFC1B6AC = 0; label_BFC1AE68: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -81098,7 +83553,7 @@ label_BFC1AE80: cpu->gpr[14] = cpu->gpr[16] & cpu->gpr[1]; /* 0xBFC1AE8C: 11C00214 beq $t6, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1AE8C = cpu->gpr[14]; uint32_t psx_brB_BFC1AE8C = cpu->gpr[0]; - int psx_taken_BFC1AE8C = (psx_brA_BFC1AE8C == psx_brB_BFC1AE8C); + psx_taken_BFC1AE8C = (psx_brA_BFC1AE8C == psx_brB_BFC1AE8C); /* 0xBFC1AE90: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AE90u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1AE8C) goto label_BFC1B6E0; @@ -81115,7 +83570,7 @@ label_BFC1AE94: /* nop */ /* 0xBFC1AEA0: 15E0020F bne $t7, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1AEA0 = cpu->gpr[15]; uint32_t psx_brB_BFC1AEA0 = cpu->gpr[0]; - int psx_taken_BFC1AEA0 = (psx_brA_BFC1AEA0 != psx_brB_BFC1AEA0); + psx_taken_BFC1AEA0 = (psx_brA_BFC1AEA0 != psx_brB_BFC1AEA0); /* 0xBFC1AEA4: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AEA4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1AEA0) goto label_BFC1B6E0; @@ -81132,7 +83587,7 @@ label_BFC1AEA8: /* nop */ /* 0xBFC1AEB4: 1700020A bne $t8, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1AEB4 = cpu->gpr[24]; uint32_t psx_brB_BFC1AEB4 = cpu->gpr[0]; - int psx_taken_BFC1AEB4 = (psx_brA_BFC1AEB4 != psx_brB_BFC1AEB4); + psx_taken_BFC1AEB4 = (psx_brA_BFC1AEB4 != psx_brB_BFC1AEB4); /* 0xBFC1AEB8: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AEB8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1AEB4) goto label_BFC1B6E0; @@ -81155,7 +83610,7 @@ label_BFC1AEC4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (21) ? 1 : 0); /* 0xBFC1AEC8: 10200149 beq $at, $zero, 0xBFC1B3F0 */ uint32_t psx_brA_BFC1AEC8 = cpu->gpr[1]; uint32_t psx_brB_BFC1AEC8 = cpu->gpr[0]; - int psx_taken_BFC1AEC8 = (psx_brA_BFC1AEC8 == psx_brB_BFC1AEC8); + psx_taken_BFC1AEC8 = (psx_brA_BFC1AEC8 == psx_brB_BFC1AEC8); /* 0xBFC1AECC: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1AEC8) goto label_BFC1B3F0; @@ -81172,7 +83627,7 @@ label_BFC1AED0: /* nop */ /* 0xBFC1AEDC: 17200009 bne $t9, $zero, 0xBFC1AF04 */ uint32_t psx_brA_BFC1AEDC = cpu->gpr[25]; uint32_t psx_brB_BFC1AEDC = cpu->gpr[0]; - int psx_taken_BFC1AEDC = (psx_brA_BFC1AEDC != psx_brB_BFC1AEDC); + psx_taken_BFC1AEDC = (psx_brA_BFC1AEDC != psx_brB_BFC1AEDC); /* 0xBFC1AEE0: 00000000 nop */ /* nop */ if (psx_taken_BFC1AEDC) goto label_BFC1AF04; @@ -81195,7 +83650,7 @@ label_BFC1AEE4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (-24708)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AEF8u); return; } cpu->gpr[6] = cpu->read_word(psx_addr); } /* 0xBFC1AEFC: 1000005E beq $zero, $zero, 0xBFC1B078 */ uint32_t psx_brA_BFC1AEFC = cpu->gpr[0]; uint32_t psx_brB_BFC1AEFC = cpu->gpr[0]; - int psx_taken_BFC1AEFC = (psx_brA_BFC1AEFC == psx_brB_BFC1AEFC); + psx_taken_BFC1AEFC = (psx_brA_BFC1AEFC == psx_brB_BFC1AEFC); /* 0xBFC1AF00: 2410FFFF addiu $s0, $zero, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC1AEFC) goto label_BFC1B078; @@ -81212,7 +83667,7 @@ label_BFC1AF04: /* nop */ /* 0xBFC1AF10: 15000005 bne $t0, $zero, 0xBFC1AF28 */ uint32_t psx_brA_BFC1AF10 = cpu->gpr[8]; uint32_t psx_brB_BFC1AF10 = cpu->gpr[0]; - int psx_taken_BFC1AF10 = (psx_brA_BFC1AF10 != psx_brB_BFC1AF10); + psx_taken_BFC1AF10 = (psx_brA_BFC1AF10 != psx_brB_BFC1AF10); /* 0xBFC1AF14: 00000000 nop */ /* nop */ if (psx_taken_BFC1AF10) goto label_BFC1AF28; @@ -81227,7 +83682,7 @@ label_BFC1AF18: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (-24708)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AF1Cu); return; } cpu->gpr[6] = cpu->read_word(psx_addr); } /* 0xBFC1AF20: 10000006 beq $zero, $zero, 0xBFC1AF3C */ uint32_t psx_brA_BFC1AF20 = cpu->gpr[0]; uint32_t psx_brB_BFC1AF20 = cpu->gpr[0]; - int psx_taken_BFC1AF20 = (psx_brA_BFC1AF20 == psx_brB_BFC1AF20); + psx_taken_BFC1AF20 = (psx_brA_BFC1AF20 == psx_brB_BFC1AF20); /* 0xBFC1AF24: 2841000B slti $at, $v0, 11 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (11) ? 1 : 0); if (psx_taken_BFC1AF20) goto label_BFC1AF3C; @@ -81244,7 +83699,7 @@ label_BFC1AF28: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (99)); /* 0xBFC1AF34: 10C101E9 beq $a2, $at, 0xBFC1B6DC */ uint32_t psx_brA_BFC1AF34 = cpu->gpr[6]; uint32_t psx_brB_BFC1AF34 = cpu->gpr[1]; - int psx_taken_BFC1AF34 = (psx_brA_BFC1AF34 == psx_brB_BFC1AF34); + psx_taken_BFC1AF34 = (psx_brA_BFC1AF34 == psx_brB_BFC1AF34); /* 0xBFC1AF38: 2841000B slti $at, $v0, 11 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (11) ? 1 : 0); if (psx_taken_BFC1AF34) goto label_BFC1B6DC; @@ -81255,7 +83710,7 @@ label_BFC1AF3C: psx_check_interrupts(cpu); /* 0xBFC1AF3C: 102001E7 beq $at, $zero, 0xBFC1B6DC */ uint32_t psx_brA_BFC1AF3C = cpu->gpr[1]; uint32_t psx_brB_BFC1AF3C = cpu->gpr[0]; - int psx_taken_BFC1AF3C = (psx_brA_BFC1AF3C == psx_brB_BFC1AF3C); + psx_taken_BFC1AF3C = (psx_brA_BFC1AF3C == psx_brB_BFC1AF3C); /* 0xBFC1AF40: 2401000A addiu $at, $zero, 10 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); if (psx_taken_BFC1AF3C) goto label_BFC1B6DC; @@ -81266,7 +83721,7 @@ label_BFC1AF44: psx_check_interrupts(cpu); /* 0xBFC1AF44: 14410002 bne $v0, $at, 0xBFC1AF50 */ uint32_t psx_brA_BFC1AF44 = cpu->gpr[2]; uint32_t psx_brB_BFC1AF44 = cpu->gpr[1]; - int psx_taken_BFC1AF44 = (psx_brA_BFC1AF44 != psx_brB_BFC1AF44); + psx_taken_BFC1AF44 = (psx_brA_BFC1AF44 != psx_brB_BFC1AF44); /* 0xBFC1AF48: 00000000 nop */ /* nop */ if (psx_taken_BFC1AF44) goto label_BFC1AF50; @@ -81290,7 +83745,7 @@ label_BFC1AF50: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC1AF5C: 11300022 beq $t1, $s0, 0xBFC1AFE8 */ uint32_t psx_brA_BFC1AF5C = cpu->gpr[9]; uint32_t psx_brB_BFC1AF5C = cpu->gpr[16]; - int psx_taken_BFC1AF5C = (psx_brA_BFC1AF5C == psx_brB_BFC1AF5C); + psx_taken_BFC1AF5C = (psx_brA_BFC1AF5C == psx_brB_BFC1AF5C); /* 0xBFC1AF60: 00000000 nop */ /* nop */ if (psx_taken_BFC1AF5C) goto label_BFC1AFE8; @@ -81319,7 +83774,7 @@ label_BFC1AF64: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[3] ? 1 : 0); /* 0xBFC1AF88: 10200005 beq $at, $zero, 0xBFC1AFA0 */ uint32_t psx_brA_BFC1AF88 = cpu->gpr[1]; uint32_t psx_brB_BFC1AF88 = cpu->gpr[0]; - int psx_taken_BFC1AF88 = (psx_brA_BFC1AF88 == psx_brB_BFC1AF88); + psx_taken_BFC1AF88 = (psx_brA_BFC1AF88 == psx_brB_BFC1AF88); /* 0xBFC1AF8C: 00000000 nop */ /* nop */ if (psx_taken_BFC1AF88) goto label_BFC1AFA0; @@ -81334,7 +83789,7 @@ label_BFC1AF90: cpu->gpr[4] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[4] + (-24976))); /* 0xBFC1AF98: 10000037 beq $zero, $zero, 0xBFC1B078 */ uint32_t psx_brA_BFC1AF98 = cpu->gpr[0]; uint32_t psx_brB_BFC1AF98 = cpu->gpr[0]; - int psx_taken_BFC1AF98 = (psx_brA_BFC1AF98 == psx_brB_BFC1AF98); + psx_taken_BFC1AF98 = (psx_brA_BFC1AF98 == psx_brB_BFC1AF98); /* 0xBFC1AF9C: 00000000 nop */ /* nop */ if (psx_taken_BFC1AF98) goto label_BFC1B078; @@ -81353,7 +83808,7 @@ label_BFC1AFA0: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[4] ? 1 : 0); /* 0xBFC1AFB0: 14200031 bne $at, $zero, 0xBFC1B078 */ uint32_t psx_brA_BFC1AFB0 = cpu->gpr[1]; uint32_t psx_brB_BFC1AFB0 = cpu->gpr[0]; - int psx_taken_BFC1AFB0 = (psx_brA_BFC1AFB0 != psx_brB_BFC1AFB0); + psx_taken_BFC1AFB0 = (psx_brA_BFC1AFB0 != psx_brB_BFC1AFB0); /* 0xBFC1AFB4: 00000000 nop */ /* nop */ if (psx_taken_BFC1AFB0) goto label_BFC1B078; @@ -81370,7 +83825,7 @@ label_BFC1AFB8: /* nop */ /* 0xBFC1AFC4: 15600005 bne $t3, $zero, 0xBFC1AFDC */ uint32_t psx_brA_BFC1AFC4 = cpu->gpr[11]; uint32_t psx_brB_BFC1AFC4 = cpu->gpr[0]; - int psx_taken_BFC1AFC4 = (psx_brA_BFC1AFC4 != psx_brB_BFC1AFC4); + psx_taken_BFC1AFC4 = (psx_brA_BFC1AFC4 != psx_brB_BFC1AFC4); /* 0xBFC1AFC8: 00000000 nop */ /* nop */ if (psx_taken_BFC1AFC4) goto label_BFC1AFDC; @@ -81387,7 +83842,7 @@ label_BFC1AFCC: /* nop */ /* 0xBFC1AFD8: 11800027 beq $t4, $zero, 0xBFC1B078 */ uint32_t psx_brA_BFC1AFD8 = cpu->gpr[12]; uint32_t psx_brB_BFC1AFD8 = cpu->gpr[0]; - int psx_taken_BFC1AFD8 = (psx_brA_BFC1AFD8 == psx_brB_BFC1AFD8); + psx_taken_BFC1AFD8 = (psx_brA_BFC1AFD8 == psx_brB_BFC1AFD8); label_BFC1AFDC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -81403,7 +83858,7 @@ label_BFC1AFE0: psx_check_interrupts(cpu); /* 0xBFC1AFE0: 10000025 beq $zero, $zero, 0xBFC1B078 */ uint32_t psx_brA_BFC1AFE0 = cpu->gpr[0]; uint32_t psx_brB_BFC1AFE0 = cpu->gpr[0]; - int psx_taken_BFC1AFE0 = (psx_brA_BFC1AFE0 == psx_brB_BFC1AFE0); + psx_taken_BFC1AFE0 = (psx_brA_BFC1AFE0 == psx_brB_BFC1AFE0); /* 0xBFC1AFE4: AC309F88 sw $s0, -24696($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24696)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1AFE4u); return; } g_debug_last_store_pc = 0xBFC1AFE4u; cpu->write_word(psx_addr, cpu->gpr[16]); } if (psx_taken_BFC1AFE0) goto label_BFC1B078; @@ -81430,7 +83885,7 @@ label_BFC1AFE8: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[2] ? 1 : 0); /* 0xBFC1B008: 10200004 beq $at, $zero, 0xBFC1B01C */ uint32_t psx_brA_BFC1B008 = cpu->gpr[1]; uint32_t psx_brB_BFC1B008 = cpu->gpr[0]; - int psx_taken_BFC1B008 = (psx_brA_BFC1B008 == psx_brB_BFC1B008); + psx_taken_BFC1B008 = (psx_brA_BFC1B008 == psx_brB_BFC1B008); /* 0xBFC1B00C: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1B008) goto label_BFC1B01C; @@ -81443,7 +83898,7 @@ label_BFC1B010: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24696)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B010u); return; } g_debug_last_store_pc = 0xBFC1B010u; cpu->write_word(psx_addr, cpu->gpr[16]); } /* 0xBFC1B014: 10000015 beq $zero, $zero, 0xBFC1B06C */ uint32_t psx_brA_BFC1B014 = cpu->gpr[0]; uint32_t psx_brB_BFC1B014 = cpu->gpr[0]; - int psx_taken_BFC1B014 = (psx_brA_BFC1B014 == psx_brB_BFC1B014); + psx_taken_BFC1B014 = (psx_brA_BFC1B014 == psx_brB_BFC1B014); /* 0xBFC1B018: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1B014) goto label_BFC1B06C; @@ -81522,7 +83977,7 @@ label_BFC1B078: /* nop */ /* 0xBFC1B084: 13000068 beq $t8, $zero, 0xBFC1B228 */ uint32_t psx_brA_BFC1B084 = cpu->gpr[24]; uint32_t psx_brB_BFC1B084 = cpu->gpr[0]; - int psx_taken_BFC1B084 = (psx_brA_BFC1B084 == psx_brB_BFC1B084); + psx_taken_BFC1B084 = (psx_brA_BFC1B084 == psx_brB_BFC1B084); /* 0xBFC1B088: 00000000 nop */ /* nop */ if (psx_taken_BFC1B084) goto label_BFC1B228; @@ -81539,7 +83994,7 @@ label_BFC1B08C: /* nop */ /* 0xBFC1B098: 17200038 bne $t9, $zero, 0xBFC1B17C */ uint32_t psx_brA_BFC1B098 = cpu->gpr[25]; uint32_t psx_brB_BFC1B098 = cpu->gpr[0]; - int psx_taken_BFC1B098 = (psx_brA_BFC1B098 != psx_brB_BFC1B098); + psx_taken_BFC1B098 = (psx_brA_BFC1B098 != psx_brB_BFC1B098); /* 0xBFC1B09C: 0064082B sltu $at, $v1, $a0 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[4] ? 1 : 0); if (psx_taken_BFC1B098) goto label_BFC1B17C; @@ -81550,7 +84005,7 @@ label_BFC1B0A0: psx_check_interrupts(cpu); /* 0xBFC1B0A0: 1420018E bne $at, $zero, 0xBFC1B6DC */ uint32_t psx_brA_BFC1B0A0 = cpu->gpr[1]; uint32_t psx_brB_BFC1B0A0 = cpu->gpr[0]; - int psx_taken_BFC1B0A0 = (psx_brA_BFC1B0A0 != psx_brB_BFC1B0A0); + psx_taken_BFC1B0A0 = (psx_brA_BFC1B0A0 != psx_brB_BFC1B0A0); /* 0xBFC1B0A4: 00A3082B sltu $at, $a1, $v1 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[3] ? 1 : 0); if (psx_taken_BFC1B0A0) goto label_BFC1B6DC; @@ -81561,7 +84016,7 @@ label_BFC1B0A8: psx_check_interrupts(cpu); /* 0xBFC1B0A8: 1420018D bne $at, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B0A8 = cpu->gpr[1]; uint32_t psx_brB_BFC1B0A8 = cpu->gpr[0]; - int psx_taken_BFC1B0A8 = (psx_brA_BFC1B0A8 != psx_brB_BFC1B0A8); + psx_taken_BFC1B0A8 = (psx_brA_BFC1B0A8 != psx_brB_BFC1B0A8); /* 0xBFC1B0AC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B0ACu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B0A8) goto label_BFC1B6E0; @@ -81572,7 +84027,7 @@ label_BFC1B0B0: psx_check_interrupts(cpu); /* 0xBFC1B0B0: 14C0001B bne $a2, $zero, 0xBFC1B120 */ uint32_t psx_brA_BFC1B0B0 = cpu->gpr[6]; uint32_t psx_brB_BFC1B0B0 = cpu->gpr[0]; - int psx_taken_BFC1B0B0 = (psx_brA_BFC1B0B0 != psx_brB_BFC1B0B0); + psx_taken_BFC1B0B0 = (psx_brA_BFC1B0B0 != psx_brB_BFC1B0B0); /* 0xBFC1B0B4: 28C10063 slti $at, $a2, 99 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[6] < (99) ? 1 : 0); if (psx_taken_BFC1B0B0) goto label_BFC1B120; @@ -81587,7 +84042,7 @@ label_BFC1B0B8: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[2] ? 1 : 0); /* 0xBFC1B0C0: 14200016 bne $at, $zero, 0xBFC1B11C */ uint32_t psx_brA_BFC1B0C0 = cpu->gpr[1]; uint32_t psx_brB_BFC1B0C0 = cpu->gpr[0]; - int psx_taken_BFC1B0C0 = (psx_brA_BFC1B0C0 != psx_brB_BFC1B0C0); + psx_taken_BFC1B0C0 = (psx_brA_BFC1B0C0 != psx_brB_BFC1B0C0); /* 0xBFC1B0C4: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1B0C0) goto label_BFC1B11C; @@ -81605,7 +84060,7 @@ label_BFC1B0CC: psx_check_interrupts(cpu); /* 0xBFC1B0CC: 10200014 beq $at, $zero, 0xBFC1B120 */ uint32_t psx_brA_BFC1B0CC = cpu->gpr[1]; uint32_t psx_brB_BFC1B0CC = cpu->gpr[0]; - int psx_taken_BFC1B0CC = (psx_brA_BFC1B0CC == psx_brB_BFC1B0CC); + psx_taken_BFC1B0CC = (psx_brA_BFC1B0CC == psx_brB_BFC1B0CC); /* 0xBFC1B0D0: 28C10063 slti $at, $a2, 99 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[6] < (99) ? 1 : 0); if (psx_taken_BFC1B0CC) goto label_BFC1B120; @@ -81640,7 +84095,7 @@ label_BFC1B0E4: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[16] ? 1 : 0); /* 0xBFC1B0F8: 14200005 bne $at, $zero, 0xBFC1B110 */ uint32_t psx_brA_BFC1B0F8 = cpu->gpr[1]; uint32_t psx_brB_BFC1B0F8 = cpu->gpr[0]; - int psx_taken_BFC1B0F8 = (psx_brA_BFC1B0F8 != psx_brB_BFC1B0F8); + psx_taken_BFC1B0F8 = (psx_brA_BFC1B0F8 != psx_brB_BFC1B0F8); /* 0xBFC1B0FC: 00000000 nop */ /* nop */ if (psx_taken_BFC1B0F8) goto label_BFC1B110; @@ -81655,7 +84110,7 @@ label_BFC1B100: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (-24708)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B104u); return; } cpu->gpr[6] = cpu->read_word(psx_addr); } /* 0xBFC1B108: 1000FFF0 beq $zero, $zero, 0xBFC1B0CC */ uint32_t psx_brA_BFC1B108 = cpu->gpr[0]; uint32_t psx_brB_BFC1B108 = cpu->gpr[0]; - int psx_taken_BFC1B108 = (psx_brA_BFC1B108 == psx_brB_BFC1B108); + psx_taken_BFC1B108 = (psx_brA_BFC1B108 == psx_brB_BFC1B108); /* 0xBFC1B10C: 2A010015 slti $at, $s0, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (21) ? 1 : 0); if (psx_taken_BFC1B108) goto label_BFC1B0CC; @@ -81684,7 +84139,7 @@ label_BFC1B120: psx_check_interrupts(cpu); /* 0xBFC1B120: 1020016E beq $at, $zero, 0xBFC1B6DC */ uint32_t psx_brA_BFC1B120 = cpu->gpr[1]; uint32_t psx_brB_BFC1B120 = cpu->gpr[0]; - int psx_taken_BFC1B120 = (psx_brA_BFC1B120 == psx_brB_BFC1B120); + psx_taken_BFC1B120 = (psx_brA_BFC1B120 == psx_brB_BFC1B120); /* 0xBFC1B124: 28610015 slti $at, $v1, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (21) ? 1 : 0); if (psx_taken_BFC1B120) goto label_BFC1B6DC; @@ -81695,7 +84150,7 @@ label_BFC1B128: psx_check_interrupts(cpu); /* 0xBFC1B128: 10200009 beq $at, $zero, 0xBFC1B150 */ uint32_t psx_brA_BFC1B128 = cpu->gpr[1]; uint32_t psx_brB_BFC1B128 = cpu->gpr[0]; - int psx_taken_BFC1B128 = (psx_brA_BFC1B128 == psx_brB_BFC1B128); + psx_taken_BFC1B128 = (psx_brA_BFC1B128 == psx_brB_BFC1B128); /* 0xBFC1B12C: 00000000 nop */ /* nop */ if (psx_taken_BFC1B128) goto label_BFC1B150; @@ -81757,7 +84212,7 @@ label_BFC1B174: psx_check_interrupts(cpu); /* 0xBFC1B174: 1000015A beq $zero, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B174 = cpu->gpr[0]; uint32_t psx_brB_BFC1B174 = cpu->gpr[0]; - int psx_taken_BFC1B174 = (psx_brA_BFC1B174 == psx_brB_BFC1B174); + psx_taken_BFC1B174 = (psx_brA_BFC1B174 == psx_brB_BFC1B174); /* 0xBFC1B178: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B178u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B174) goto label_BFC1B6E0; @@ -81774,7 +84229,7 @@ label_BFC1B17C: /* nop */ /* 0xBFC1B188: 11200155 beq $t1, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B188 = cpu->gpr[9]; uint32_t psx_brB_BFC1B188 = cpu->gpr[0]; - int psx_taken_BFC1B188 = (psx_brA_BFC1B188 == psx_brB_BFC1B188); + psx_taken_BFC1B188 = (psx_brA_BFC1B188 == psx_brB_BFC1B188); /* 0xBFC1B18C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B18Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B188) goto label_BFC1B6E0; @@ -81791,7 +84246,7 @@ label_BFC1B190: /* nop */ /* 0xBFC1B19C: 15500150 bne $t2, $s0, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B19C = cpu->gpr[10]; uint32_t psx_brB_BFC1B19C = cpu->gpr[16]; - int psx_taken_BFC1B19C = (psx_brA_BFC1B19C != psx_brB_BFC1B19C); + psx_taken_BFC1B19C = (psx_brA_BFC1B19C != psx_brB_BFC1B19C); /* 0xBFC1B1A0: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B1A0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B19C) goto label_BFC1B6E0; @@ -81802,7 +84257,7 @@ label_BFC1B1A4: psx_check_interrupts(cpu); /* 0xBFC1B1A4: 1060014D beq $v1, $zero, 0xBFC1B6DC */ uint32_t psx_brA_BFC1B1A4 = cpu->gpr[3]; uint32_t psx_brB_BFC1B1A4 = cpu->gpr[0]; - int psx_taken_BFC1B1A4 = (psx_brA_BFC1B1A4 == psx_brB_BFC1B1A4); + psx_taken_BFC1B1A4 = (psx_brA_BFC1B1A4 == psx_brB_BFC1B1A4); /* 0xBFC1B1A8: 28C10063 slti $at, $a2, 99 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[6] < (99) ? 1 : 0); if (psx_taken_BFC1B1A4) goto label_BFC1B6DC; @@ -81813,7 +84268,7 @@ label_BFC1B1AC: psx_check_interrupts(cpu); /* 0xBFC1B1AC: 1020014C beq $at, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B1AC = cpu->gpr[1]; uint32_t psx_brB_BFC1B1AC = cpu->gpr[0]; - int psx_taken_BFC1B1AC = (psx_brA_BFC1B1AC == psx_brB_BFC1B1AC); + psx_taken_BFC1B1AC = (psx_brA_BFC1B1AC == psx_brB_BFC1B1AC); /* 0xBFC1B1B0: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B1B0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B1AC) goto label_BFC1B6E0; @@ -81858,7 +84313,7 @@ label_BFC1B1DC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1B1EC: 11810004 beq $t4, $at, 0xBFC1B200 */ uint32_t psx_brA_BFC1B1EC = cpu->gpr[12]; uint32_t psx_brB_BFC1B1EC = cpu->gpr[1]; - int psx_taken_BFC1B1EC = (psx_brA_BFC1B1EC == psx_brB_BFC1B1EC); + psx_taken_BFC1B1EC = (psx_brA_BFC1B1EC == psx_brB_BFC1B1EC); /* 0xBFC1B1F0: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1B1EC) goto label_BFC1B200; @@ -81902,7 +84357,7 @@ label_BFC1B220: psx_check_interrupts(cpu); /* 0xBFC1B220: 1000012F beq $zero, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B220 = cpu->gpr[0]; uint32_t psx_brB_BFC1B220 = cpu->gpr[0]; - int psx_taken_BFC1B220 = (psx_brA_BFC1B220 == psx_brB_BFC1B220); + psx_taken_BFC1B220 = (psx_brA_BFC1B220 == psx_brB_BFC1B220); /* 0xBFC1B224: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B224u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B220) goto label_BFC1B6E0; @@ -81919,7 +84374,7 @@ label_BFC1B228: /* nop */ /* 0xBFC1B234: 15E00129 bne $t7, $zero, 0xBFC1B6DC */ uint32_t psx_brA_BFC1B234 = cpu->gpr[15]; uint32_t psx_brB_BFC1B234 = cpu->gpr[0]; - int psx_taken_BFC1B234 = (psx_brA_BFC1B234 != psx_brB_BFC1B234); + psx_taken_BFC1B234 = (psx_brA_BFC1B234 != psx_brB_BFC1B234); /* 0xBFC1B238: 0064082B sltu $at, $v1, $a0 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[4] ? 1 : 0); if (psx_taken_BFC1B234) goto label_BFC1B6DC; @@ -81930,7 +84385,7 @@ label_BFC1B23C: psx_check_interrupts(cpu); /* 0xBFC1B23C: 14200127 bne $at, $zero, 0xBFC1B6DC */ uint32_t psx_brA_BFC1B23C = cpu->gpr[1]; uint32_t psx_brB_BFC1B23C = cpu->gpr[0]; - int psx_taken_BFC1B23C = (psx_brA_BFC1B23C != psx_brB_BFC1B23C); + psx_taken_BFC1B23C = (psx_brA_BFC1B23C != psx_brB_BFC1B23C); /* 0xBFC1B240: 00A3082B sltu $at, $a1, $v1 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[3] ? 1 : 0); if (psx_taken_BFC1B23C) goto label_BFC1B6DC; @@ -81941,7 +84396,7 @@ label_BFC1B244: psx_check_interrupts(cpu); /* 0xBFC1B244: 14200126 bne $at, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B244 = cpu->gpr[1]; uint32_t psx_brB_BFC1B244 = cpu->gpr[0]; - int psx_taken_BFC1B244 = (psx_brA_BFC1B244 != psx_brB_BFC1B244); + psx_taken_BFC1B244 = (psx_brA_BFC1B244 != psx_brB_BFC1B244); /* 0xBFC1B248: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B248u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B244) goto label_BFC1B6E0; @@ -81958,7 +84413,7 @@ label_BFC1B24C: /* nop */ /* 0xBFC1B258: 1700003A bne $t8, $zero, 0xBFC1B344 */ uint32_t psx_brA_BFC1B258 = cpu->gpr[24]; uint32_t psx_brB_BFC1B258 = cpu->gpr[0]; - int psx_taken_BFC1B258 = (psx_brA_BFC1B258 != psx_brB_BFC1B258); + psx_taken_BFC1B258 = (psx_brA_BFC1B258 != psx_brB_BFC1B258); /* 0xBFC1B25C: 00000000 nop */ /* nop */ if (psx_taken_BFC1B258) goto label_BFC1B344; @@ -81973,7 +84428,7 @@ label_BFC1B260: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC1B268: 1020000D beq $at, $zero, 0xBFC1B2A0 */ uint32_t psx_brA_BFC1B268 = cpu->gpr[1]; uint32_t psx_brB_BFC1B268 = cpu->gpr[0]; - int psx_taken_BFC1B268 = (psx_brA_BFC1B268 == psx_brB_BFC1B268); + psx_taken_BFC1B268 = (psx_brA_BFC1B268 == psx_brB_BFC1B268); /* 0xBFC1B26C: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1B268) goto label_BFC1B2A0; @@ -82009,7 +84464,7 @@ label_BFC1B280: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC1B28C: 1420FFF9 bne $at, $zero, 0xBFC1B274 */ uint32_t psx_brA_BFC1B28C = cpu->gpr[1]; uint32_t psx_brB_BFC1B28C = cpu->gpr[0]; - int psx_taken_BFC1B28C = (psx_brA_BFC1B28C != psx_brB_BFC1B28C); + psx_taken_BFC1B28C = (psx_brA_BFC1B28C != psx_brB_BFC1B28C); /* 0xBFC1B290: 02002021 addu $a0, $s0, $zero */ cpu->gpr[4] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC1B28C) goto label_BFC1B274; @@ -82033,7 +84488,7 @@ label_BFC1B2A0: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[3] ? 1 : 0); /* 0xBFC1B2A4: 1420000F bne $at, $zero, 0xBFC1B2E4 */ uint32_t psx_brA_BFC1B2A4 = cpu->gpr[1]; uint32_t psx_brB_BFC1B2A4 = cpu->gpr[0]; - int psx_taken_BFC1B2A4 = (psx_brA_BFC1B2A4 != psx_brB_BFC1B2A4); + psx_taken_BFC1B2A4 = (psx_brA_BFC1B2A4 != psx_brB_BFC1B2A4); /* 0xBFC1B2A8: 00608021 addu $s0, $v1, $zero */ cpu->gpr[16] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC1B2A4) goto label_BFC1B2E4; @@ -82051,7 +84506,7 @@ label_BFC1B2B0: psx_check_interrupts(cpu); /* 0xBFC1B2B0: 1020000D beq $at, $zero, 0xBFC1B2E8 */ uint32_t psx_brA_BFC1B2B0 = cpu->gpr[1]; uint32_t psx_brB_BFC1B2B0 = cpu->gpr[0]; - int psx_taken_BFC1B2B0 = (psx_brA_BFC1B2B0 == psx_brB_BFC1B2B0); + psx_taken_BFC1B2B0 = (psx_brA_BFC1B2B0 == psx_brB_BFC1B2B0); /* 0xBFC1B2B4: 00602021 addu $a0, $v1, $zero */ cpu->gpr[4] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC1B2B0) goto label_BFC1B2E8; @@ -82086,7 +84541,7 @@ label_BFC1B2C8: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[16] ? 1 : 0); /* 0xBFC1B2DC: 1020FFF4 beq $at, $zero, 0xBFC1B2B0 */ uint32_t psx_brA_BFC1B2DC = cpu->gpr[1]; uint32_t psx_brB_BFC1B2DC = cpu->gpr[0]; - int psx_taken_BFC1B2DC = (psx_brA_BFC1B2DC == psx_brB_BFC1B2DC); + psx_taken_BFC1B2DC = (psx_brA_BFC1B2DC == psx_brB_BFC1B2DC); /* 0xBFC1B2E0: 2A010015 slti $at, $s0, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (21) ? 1 : 0); if (psx_taken_BFC1B2DC) goto label_BFC1B2B0; @@ -82122,7 +84577,7 @@ label_BFC1B2F0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1B300: 17210009 bne $t9, $at, 0xBFC1B328 */ uint32_t psx_brA_BFC1B300 = cpu->gpr[25]; uint32_t psx_brB_BFC1B300 = cpu->gpr[1]; - int psx_taken_BFC1B300 = (psx_brA_BFC1B300 != psx_brB_BFC1B300); + psx_taken_BFC1B300 = (psx_brA_BFC1B300 != psx_brB_BFC1B300); /* 0xBFC1B304: 00034080 sll $t0, $v1, 2 */ cpu->gpr[8] = cpu->gpr[3] << 2u; if (psx_taken_BFC1B300) goto label_BFC1B328; @@ -82149,7 +84604,7 @@ label_BFC1B31C: psx_check_interrupts(cpu); /* 0xBFC1B31C: 100000F0 beq $zero, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B31C = cpu->gpr[0]; uint32_t psx_brB_BFC1B31C = cpu->gpr[0]; - int psx_taken_BFC1B31C = (psx_brA_BFC1B31C == psx_brB_BFC1B31C); + psx_taken_BFC1B31C = (psx_brA_BFC1B31C == psx_brB_BFC1B31C); /* 0xBFC1B320: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B320u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B31C) goto label_BFC1B6E0; @@ -82183,7 +84638,7 @@ label_BFC1B33C: psx_check_interrupts(cpu); /* 0xBFC1B33C: 100000E8 beq $zero, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B33C = cpu->gpr[0]; uint32_t psx_brB_BFC1B33C = cpu->gpr[0]; - int psx_taken_BFC1B33C = (psx_brA_BFC1B33C == psx_brB_BFC1B33C); + psx_taken_BFC1B33C = (psx_brA_BFC1B33C == psx_brB_BFC1B33C); /* 0xBFC1B340: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B340u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B33C) goto label_BFC1B6E0; @@ -82200,7 +84655,7 @@ label_BFC1B344: /* nop */ /* 0xBFC1B350: 112000E3 beq $t1, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B350 = cpu->gpr[9]; uint32_t psx_brB_BFC1B350 = cpu->gpr[0]; - int psx_taken_BFC1B350 = (psx_brA_BFC1B350 == psx_brB_BFC1B350); + psx_taken_BFC1B350 = (psx_brA_BFC1B350 == psx_brB_BFC1B350); /* 0xBFC1B354: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B354u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B350) goto label_BFC1B6E0; @@ -82217,7 +84672,7 @@ label_BFC1B358: /* nop */ /* 0xBFC1B364: 155000DE bne $t2, $s0, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B364 = cpu->gpr[10]; uint32_t psx_brB_BFC1B364 = cpu->gpr[16]; - int psx_taken_BFC1B364 = (psx_brA_BFC1B364 != psx_brB_BFC1B364); + psx_taken_BFC1B364 = (psx_brA_BFC1B364 != psx_brB_BFC1B364); /* 0xBFC1B368: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B368u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B364) goto label_BFC1B6E0; @@ -82266,7 +84721,7 @@ label_BFC1B378: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1B3AC: 15A10009 bne $t5, $at, 0xBFC1B3D4 */ uint32_t psx_brA_BFC1B3AC = cpu->gpr[13]; uint32_t psx_brB_BFC1B3AC = cpu->gpr[1]; - int psx_taken_BFC1B3AC = (psx_brA_BFC1B3AC != psx_brB_BFC1B3AC); + psx_taken_BFC1B3AC = (psx_brA_BFC1B3AC != psx_brB_BFC1B3AC); /* 0xBFC1B3B0: 00037080 sll $t6, $v1, 2 */ cpu->gpr[14] = cpu->gpr[3] << 2u; if (psx_taken_BFC1B3AC) goto label_BFC1B3D4; @@ -82293,7 +84748,7 @@ label_BFC1B3C8: psx_check_interrupts(cpu); /* 0xBFC1B3C8: 100000C5 beq $zero, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B3C8 = cpu->gpr[0]; uint32_t psx_brB_BFC1B3C8 = cpu->gpr[0]; - int psx_taken_BFC1B3C8 = (psx_brA_BFC1B3C8 == psx_brB_BFC1B3C8); + psx_taken_BFC1B3C8 = (psx_brA_BFC1B3C8 == psx_brB_BFC1B3C8); /* 0xBFC1B3CC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B3CCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B3C8) goto label_BFC1B6E0; @@ -82327,7 +84782,7 @@ label_BFC1B3E8: psx_check_interrupts(cpu); /* 0xBFC1B3E8: 100000BD beq $zero, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B3E8 = cpu->gpr[0]; uint32_t psx_brB_BFC1B3E8 = cpu->gpr[0]; - int psx_taken_BFC1B3E8 = (psx_brA_BFC1B3E8 == psx_brB_BFC1B3E8); + psx_taken_BFC1B3E8 = (psx_brA_BFC1B3E8 == psx_brB_BFC1B3E8); /* 0xBFC1B3EC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B3ECu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B3E8) goto label_BFC1B6E0; @@ -82340,7 +84795,7 @@ label_BFC1B3F0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (21)); /* 0xBFC1B3F4: 144100BA bne $v0, $at, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B3F4 = cpu->gpr[2]; uint32_t psx_brB_BFC1B3F4 = cpu->gpr[1]; - int psx_taken_BFC1B3F4 = (psx_brA_BFC1B3F4 != psx_brB_BFC1B3F4); + psx_taken_BFC1B3F4 = (psx_brA_BFC1B3F4 != psx_brB_BFC1B3F4); /* 0xBFC1B3F8: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B3F8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B3F4) goto label_BFC1B6E0; @@ -82357,7 +84812,7 @@ label_BFC1B3FC: /* nop */ /* 0xBFC1B408: 15E000B5 bne $t7, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B408 = cpu->gpr[15]; uint32_t psx_brB_BFC1B408 = cpu->gpr[0]; - int psx_taken_BFC1B408 = (psx_brA_BFC1B408 != psx_brB_BFC1B408); + psx_taken_BFC1B408 = (psx_brA_BFC1B408 != psx_brB_BFC1B408); /* 0xBFC1B40C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B40Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B408) goto label_BFC1B6E0; @@ -82376,7 +84831,7 @@ label_BFC1B410: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000015u ? 1 : 0); /* 0xBFC1B420: 142000AF bne $at, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B420 = cpu->gpr[1]; uint32_t psx_brB_BFC1B420 = cpu->gpr[0]; - int psx_taken_BFC1B420 = (psx_brA_BFC1B420 != psx_brB_BFC1B420); + psx_taken_BFC1B420 = (psx_brA_BFC1B420 != psx_brB_BFC1B420); /* 0xBFC1B424: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B424u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B420) goto label_BFC1B6E0; @@ -82393,7 +84848,7 @@ label_BFC1B428: /* nop */ /* 0xBFC1B434: 1300007D beq $t8, $zero, 0xBFC1B62C */ uint32_t psx_brA_BFC1B434 = cpu->gpr[24]; uint32_t psx_brB_BFC1B434 = cpu->gpr[0]; - int psx_taken_BFC1B434 = (psx_brA_BFC1B434 == psx_brB_BFC1B434); + psx_taken_BFC1B434 = (psx_brA_BFC1B434 == psx_brB_BFC1B434); /* 0xBFC1B438: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1B434) goto label_BFC1B62C; @@ -82427,7 +84882,7 @@ label_BFC1B460: psx_check_interrupts(cpu); /* 0xBFC1B460: 1420000C bne $at, $zero, 0xBFC1B494 */ uint32_t psx_brA_BFC1B460 = cpu->gpr[1]; uint32_t psx_brB_BFC1B460 = cpu->gpr[0]; - int psx_taken_BFC1B460 = (psx_brA_BFC1B460 != psx_brB_BFC1B460); + psx_taken_BFC1B460 = (psx_brA_BFC1B460 != psx_brB_BFC1B460); /* 0xBFC1B464: 00000000 nop */ /* nop */ if (psx_taken_BFC1B460) goto label_BFC1B494; @@ -82487,7 +84942,7 @@ label_BFC1B494: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (21)); /* 0xBFC1B49C: 1601FFF0 bne $s0, $at, 0xBFC1B460 */ uint32_t psx_brA_BFC1B49C = cpu->gpr[16]; uint32_t psx_brB_BFC1B49C = cpu->gpr[1]; - int psx_taken_BFC1B49C = (psx_brA_BFC1B49C != psx_brB_BFC1B49C); + psx_taken_BFC1B49C = (psx_brA_BFC1B49C != psx_brB_BFC1B49C); /* 0xBFC1B4A0: 00B0082B sltu $at, $a1, $s0 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[16] ? 1 : 0); if (psx_taken_BFC1B49C) goto label_BFC1B460; @@ -82506,7 +84961,7 @@ label_BFC1B4A4: cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < 0x00000002u ? 1 : 0); /* 0xBFC1B4B4: 1420000F bne $at, $zero, 0xBFC1B4F4 */ uint32_t psx_brA_BFC1B4B4 = cpu->gpr[1]; uint32_t psx_brB_BFC1B4B4 = cpu->gpr[0]; - int psx_taken_BFC1B4B4 = (psx_brA_BFC1B4B4 != psx_brB_BFC1B4B4); + psx_taken_BFC1B4B4 = (psx_brA_BFC1B4B4 != psx_brB_BFC1B4B4); /* 0xBFC1B4B8: 00000000 nop */ /* nop */ if (psx_taken_BFC1B4B4) goto label_BFC1B4F4; @@ -82547,7 +85002,7 @@ label_BFC1B4D0: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[4] ? 1 : 0); /* 0xBFC1B4E0: 1420FFF6 bne $at, $zero, 0xBFC1B4BC */ uint32_t psx_brA_BFC1B4E0 = cpu->gpr[1]; uint32_t psx_brB_BFC1B4E0 = cpu->gpr[0]; - int psx_taken_BFC1B4E0 = (psx_brA_BFC1B4E0 != psx_brB_BFC1B4E0); + psx_taken_BFC1B4E0 = (psx_brA_BFC1B4E0 != psx_brB_BFC1B4E0); /* 0xBFC1B4E4: 00000000 nop */ /* nop */ if (psx_taken_BFC1B4E0) goto label_BFC1B4BC; @@ -82575,7 +85030,7 @@ label_BFC1B4F4: /* nop */ /* 0xBFC1B500: 11000028 beq $t0, $zero, 0xBFC1B5A4 */ uint32_t psx_brA_BFC1B500 = cpu->gpr[8]; uint32_t psx_brB_BFC1B500 = cpu->gpr[0]; - int psx_taken_BFC1B500 = (psx_brA_BFC1B500 == psx_brB_BFC1B500); + psx_taken_BFC1B500 = (psx_brA_BFC1B500 == psx_brB_BFC1B500); /* 0xBFC1B504: 00000000 nop */ /* nop */ if (psx_taken_BFC1B500) goto label_BFC1B5A4; @@ -82598,7 +85053,7 @@ label_BFC1B508: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[5] ? 1 : 0); /* 0xBFC1B520: 10200036 beq $at, $zero, 0xBFC1B5FC */ uint32_t psx_brA_BFC1B520 = cpu->gpr[1]; uint32_t psx_brB_BFC1B520 = cpu->gpr[0]; - int psx_taken_BFC1B520 = (psx_brA_BFC1B520 == psx_brB_BFC1B520); + psx_taken_BFC1B520 = (psx_brA_BFC1B520 == psx_brB_BFC1B520); /* 0xBFC1B524: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1B520) goto label_BFC1B5FC; @@ -82628,7 +85083,7 @@ label_BFC1B538: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (21) ? 1 : 0); /* 0xBFC1B544: 14200006 bne $at, $zero, 0xBFC1B560 */ uint32_t psx_brA_BFC1B544 = cpu->gpr[1]; uint32_t psx_brB_BFC1B544 = cpu->gpr[0]; - int psx_taken_BFC1B544 = (psx_brA_BFC1B544 != psx_brB_BFC1B544); + psx_taken_BFC1B544 = (psx_brA_BFC1B544 != psx_brB_BFC1B544); /* 0xBFC1B548: 00000000 nop */ /* nop */ if (psx_taken_BFC1B544) goto label_BFC1B560; @@ -82645,7 +85100,7 @@ label_BFC1B54C: cpu->gpr[11] = cpu->gpr[5] << 2u; /* 0xBFC1B558: 1000000C beq $zero, $zero, 0xBFC1B58C */ uint32_t psx_brA_BFC1B558 = cpu->gpr[0]; uint32_t psx_brB_BFC1B558 = cpu->gpr[0]; - int psx_taken_BFC1B558 = (psx_brA_BFC1B558 == psx_brB_BFC1B558); + psx_taken_BFC1B558 = (psx_brA_BFC1B558 == psx_brB_BFC1B558); /* 0xBFC1B55C: 016C1021 addu $v0, $t3, $t4 */ cpu->gpr[2] = cpu->gpr[11] + cpu->gpr[12]; if (psx_taken_BFC1B558) goto label_BFC1B58C; @@ -82693,7 +85148,7 @@ label_BFC1B58C: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[2] ? 1 : 0); /* 0xBFC1B594: 1420FFE8 bne $at, $zero, 0xBFC1B538 */ uint32_t psx_brA_BFC1B594 = cpu->gpr[1]; uint32_t psx_brB_BFC1B594 = cpu->gpr[0]; - int psx_taken_BFC1B594 = (psx_brA_BFC1B594 != psx_brB_BFC1B594); + psx_taken_BFC1B594 = (psx_brA_BFC1B594 != psx_brB_BFC1B594); /* 0xBFC1B598: 00000000 nop */ /* nop */ if (psx_taken_BFC1B594) goto label_BFC1B538; @@ -82704,7 +85159,7 @@ label_BFC1B59C: psx_check_interrupts(cpu); /* 0xBFC1B59C: 10000017 beq $zero, $zero, 0xBFC1B5FC */ uint32_t psx_brA_BFC1B59C = cpu->gpr[0]; uint32_t psx_brB_BFC1B59C = cpu->gpr[0]; - int psx_taken_BFC1B59C = (psx_brA_BFC1B59C == psx_brB_BFC1B59C); + psx_taken_BFC1B59C = (psx_brA_BFC1B59C == psx_brB_BFC1B59C); /* 0xBFC1B5A0: 00000000 nop */ /* nop */ if (psx_taken_BFC1B59C) goto label_BFC1B5FC; @@ -82723,7 +85178,7 @@ label_BFC1B5A4: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[5] ? 1 : 0); /* 0xBFC1B5B4: 10200011 beq $at, $zero, 0xBFC1B5FC */ uint32_t psx_brA_BFC1B5B4 = cpu->gpr[1]; uint32_t psx_brB_BFC1B5B4 = cpu->gpr[0]; - int psx_taken_BFC1B5B4 = (psx_brA_BFC1B5B4 == psx_brB_BFC1B5B4); + psx_taken_BFC1B5B4 = (psx_brA_BFC1B5B4 == psx_brB_BFC1B5B4); /* 0xBFC1B5B8: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1B5B4) goto label_BFC1B5FC; @@ -82741,7 +85196,7 @@ label_BFC1B5C0: psx_check_interrupts(cpu); /* 0xBFC1B5C0: 1020000A beq $at, $zero, 0xBFC1B5EC */ uint32_t psx_brA_BFC1B5C0 = cpu->gpr[1]; uint32_t psx_brB_BFC1B5C0 = cpu->gpr[0]; - int psx_taken_BFC1B5C0 = (psx_brA_BFC1B5C0 == psx_brB_BFC1B5C0); + psx_taken_BFC1B5C0 = (psx_brA_BFC1B5C0 == psx_brB_BFC1B5C0); /* 0xBFC1B5C4: 00000000 nop */ /* nop */ if (psx_taken_BFC1B5C0) goto label_BFC1B5EC; @@ -82785,7 +85240,7 @@ label_BFC1B5EC: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[5] ? 1 : 0); /* 0xBFC1B5F4: 1420FFF2 bne $at, $zero, 0xBFC1B5C0 */ uint32_t psx_brA_BFC1B5F4 = cpu->gpr[1]; uint32_t psx_brB_BFC1B5F4 = cpu->gpr[0]; - int psx_taken_BFC1B5F4 = (psx_brA_BFC1B5F4 != psx_brB_BFC1B5F4); + psx_taken_BFC1B5F4 = (psx_brA_BFC1B5F4 != psx_brB_BFC1B5F4); /* 0xBFC1B5F8: 2A010015 slti $at, $s0, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (21) ? 1 : 0); if (psx_taken_BFC1B5F4) goto label_BFC1B5C0; @@ -82840,7 +85295,7 @@ label_BFC1B624: psx_check_interrupts(cpu); /* 0xBFC1B624: 1000002E beq $zero, $zero, 0xBFC1B6E0 */ uint32_t psx_brA_BFC1B624 = cpu->gpr[0]; uint32_t psx_brB_BFC1B624 = cpu->gpr[0]; - int psx_taken_BFC1B624 = (psx_brA_BFC1B624 == psx_brB_BFC1B624); + psx_taken_BFC1B624 = (psx_brA_BFC1B624 == psx_brB_BFC1B624); /* 0xBFC1B628: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B628u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B624) goto label_BFC1B6E0; @@ -82912,7 +85367,7 @@ label_BFC1B670: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (11)); /* 0xBFC1B678: 1601FFF6 bne $s0, $at, 0xBFC1B654 */ uint32_t psx_brA_BFC1B678 = cpu->gpr[16]; uint32_t psx_brB_BFC1B678 = cpu->gpr[1]; - int psx_taken_BFC1B678 = (psx_brA_BFC1B678 != psx_brB_BFC1B678); + psx_taken_BFC1B678 = (psx_brA_BFC1B678 != psx_brB_BFC1B678); /* 0xBFC1B67C: 02002021 addu $a0, $s0, $zero */ cpu->gpr[4] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC1B678) goto label_BFC1B654; @@ -82968,7 +85423,7 @@ label_BFC1B6A4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (21)); /* 0xBFC1B6AC: 1601FFF6 bne $s0, $at, 0xBFC1B688 */ uint32_t psx_brA_BFC1B6AC = cpu->gpr[16]; uint32_t psx_brB_BFC1B6AC = cpu->gpr[1]; - int psx_taken_BFC1B6AC = (psx_brA_BFC1B6AC != psx_brB_BFC1B6AC); + psx_taken_BFC1B6AC = (psx_brA_BFC1B6AC != psx_brB_BFC1B6AC); /* 0xBFC1B6B0: 02002021 addu $a0, $s0, $zero */ cpu->gpr[4] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC1B6AC) goto label_BFC1B688; @@ -83049,6 +85504,8 @@ void func_1FC1B6EC(CPUState* cpu) { default: break; } } + int psx_taken_BFC1B6FC = 0; + int psx_taken_BFC1B710 = 0; label_BFC1B6EC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -83064,7 +85521,7 @@ label_BFC1B6EC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B6F8u); return; } g_debug_last_store_pc = 0xBFC1B6F8u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC1B6FC: 1020001D beq $at, $zero, 0xBFC1B774 */ uint32_t psx_brA_BFC1B6FC = cpu->gpr[1]; uint32_t psx_brB_BFC1B6FC = cpu->gpr[0]; - int psx_taken_BFC1B6FC = (psx_brA_BFC1B6FC == psx_brB_BFC1B6FC); + psx_taken_BFC1B6FC = (psx_brA_BFC1B6FC == psx_brB_BFC1B6FC); /* 0xBFC1B700: AFA5002C sw $a1, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B700u); return; } g_debug_last_store_pc = 0xBFC1B700u; cpu->write_word(psx_addr, cpu->gpr[5]); } if (psx_taken_BFC1B6FC) goto label_BFC1B774; @@ -83081,7 +85538,7 @@ label_BFC1B704: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC1B710: 15C10019 bne $t6, $at, 0xBFC1B778 */ uint32_t psx_brA_BFC1B710 = cpu->gpr[14]; uint32_t psx_brB_BFC1B710 = cpu->gpr[1]; - int psx_taken_BFC1B710 = (psx_brA_BFC1B710 != psx_brB_BFC1B710); + psx_taken_BFC1B710 = (psx_brA_BFC1B710 != psx_brB_BFC1B710); /* 0xBFC1B714: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B714u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B710) goto label_BFC1B778; @@ -83271,6 +85728,45 @@ void func_1FC1B7E0(CPUState* cpu) { default: break; } } + int psx_taken_BFC1B7F0 = 0; + int psx_taken_BFC1B804 = 0; + int psx_taken_BFC1B818 = 0; + int psx_taken_BFC1B82C = 0; + int psx_taken_BFC1B840 = 0; + int psx_taken_BFC1B854 = 0; + int psx_taken_BFC1B868 = 0; + int psx_taken_BFC1B884 = 0; + int psx_taken_BFC1B8A0 = 0; + int psx_taken_BFC1B8C8 = 0; + int psx_taken_BFC1B8D0 = 0; + int psx_taken_BFC1B8F8 = 0; + int psx_taken_BFC1B920 = 0; + int psx_taken_BFC1B948 = 0; + int psx_taken_BFC1B950 = 0; + int psx_taken_BFC1B958 = 0; + int psx_taken_BFC1B960 = 0; + int psx_taken_BFC1B9AC = 0; + int psx_taken_BFC1B9C0 = 0; + int psx_taken_BFC1B9E4 = 0; + int psx_taken_BFC1B9FC = 0; + int psx_taken_BFC1BA18 = 0; + int psx_taken_BFC1BA40 = 0; + int psx_taken_BFC1BA88 = 0; + int psx_taken_BFC1BB04 = 0; + int psx_taken_BFC1BB3C = 0; + int psx_taken_BFC1BB54 = 0; + int psx_taken_BFC1BB60 = 0; + int psx_taken_BFC1BB98 = 0; + int psx_taken_BFC1BBB0 = 0; + int psx_taken_BFC1BBE0 = 0; + int psx_taken_BFC1BC04 = 0; + int psx_taken_BFC1BC34 = 0; + int psx_taken_BFC1BC48 = 0; + int psx_taken_BFC1BC6C = 0; + int psx_taken_BFC1BC88 = 0; + int psx_taken_BFC1BCB8 = 0; + int psx_taken_BFC1BCD0 = 0; + int psx_taken_BFC1BD04 = 0; label_BFC1B7E0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -83286,7 +85782,7 @@ label_BFC1B7E0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC1B7F0: 15C1014A bne $t6, $at, 0xBFC1BD1C */ uint32_t psx_brA_BFC1B7F0 = cpu->gpr[14]; uint32_t psx_brB_BFC1B7F0 = cpu->gpr[1]; - int psx_taken_BFC1B7F0 = (psx_brA_BFC1B7F0 != psx_brB_BFC1B7F0); + psx_taken_BFC1B7F0 = (psx_brA_BFC1B7F0 != psx_brB_BFC1B7F0); /* 0xBFC1B7F4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B7F4u); return; } g_debug_last_store_pc = 0xBFC1B7F4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1B7F0) goto label_BFC1BD1C; @@ -83303,7 +85799,7 @@ label_BFC1B7F8: /* nop */ /* 0xBFC1B804: 11E0000B beq $t7, $zero, 0xBFC1B834 */ uint32_t psx_brA_BFC1B804 = cpu->gpr[15]; uint32_t psx_brB_BFC1B804 = cpu->gpr[0]; - int psx_taken_BFC1B804 = (psx_brA_BFC1B804 == psx_brB_BFC1B804); + psx_taken_BFC1B804 = (psx_brA_BFC1B804 == psx_brB_BFC1B804); /* 0xBFC1B808: 00000000 nop */ /* nop */ if (psx_taken_BFC1B804) goto label_BFC1B834; @@ -83320,7 +85816,7 @@ label_BFC1B80C: /* nop */ /* 0xBFC1B818: 11F80026 beq $t7, $t8, 0xBFC1B8B4 */ uint32_t psx_brA_BFC1B818 = cpu->gpr[15]; uint32_t psx_brB_BFC1B818 = cpu->gpr[24]; - int psx_taken_BFC1B818 = (psx_brA_BFC1B818 == psx_brB_BFC1B818); + psx_taken_BFC1B818 = (psx_brA_BFC1B818 == psx_brB_BFC1B818); /* 0xBFC1B81C: 00000000 nop */ /* nop */ if (psx_taken_BFC1B818) goto label_BFC1B8B4; @@ -83343,7 +85839,7 @@ label_BFC1B82C: psx_check_interrupts(cpu); /* 0xBFC1B82C: 10000021 beq $zero, $zero, 0xBFC1B8B4 */ uint32_t psx_brA_BFC1B82C = cpu->gpr[0]; uint32_t psx_brB_BFC1B82C = cpu->gpr[0]; - int psx_taken_BFC1B82C = (psx_brA_BFC1B82C == psx_brB_BFC1B82C); + psx_taken_BFC1B82C = (psx_brA_BFC1B82C == psx_brB_BFC1B82C); /* 0xBFC1B830: 00000000 nop */ /* nop */ if (psx_taken_BFC1B82C) goto label_BFC1B8B4; @@ -83360,7 +85856,7 @@ label_BFC1B834: /* nop */ /* 0xBFC1B840: 1320000B beq $t9, $zero, 0xBFC1B870 */ uint32_t psx_brA_BFC1B840 = cpu->gpr[25]; uint32_t psx_brB_BFC1B840 = cpu->gpr[0]; - int psx_taken_BFC1B840 = (psx_brA_BFC1B840 == psx_brB_BFC1B840); + psx_taken_BFC1B840 = (psx_brA_BFC1B840 == psx_brB_BFC1B840); /* 0xBFC1B844: 00000000 nop */ /* nop */ if (psx_taken_BFC1B840) goto label_BFC1B870; @@ -83377,7 +85873,7 @@ label_BFC1B848: /* nop */ /* 0xBFC1B854: 13280017 beq $t9, $t0, 0xBFC1B8B4 */ uint32_t psx_brA_BFC1B854 = cpu->gpr[25]; uint32_t psx_brB_BFC1B854 = cpu->gpr[8]; - int psx_taken_BFC1B854 = (psx_brA_BFC1B854 == psx_brB_BFC1B854); + psx_taken_BFC1B854 = (psx_brA_BFC1B854 == psx_brB_BFC1B854); /* 0xBFC1B858: 00000000 nop */ /* nop */ if (psx_taken_BFC1B854) goto label_BFC1B8B4; @@ -83400,7 +85896,7 @@ label_BFC1B868: psx_check_interrupts(cpu); /* 0xBFC1B868: 10000012 beq $zero, $zero, 0xBFC1B8B4 */ uint32_t psx_brA_BFC1B868 = cpu->gpr[0]; uint32_t psx_brB_BFC1B868 = cpu->gpr[0]; - int psx_taken_BFC1B868 = (psx_brA_BFC1B868 == psx_brB_BFC1B868); + psx_taken_BFC1B868 = (psx_brA_BFC1B868 == psx_brB_BFC1B868); /* 0xBFC1B86C: 00000000 nop */ /* nop */ if (psx_taken_BFC1B868) goto label_BFC1B8B4; @@ -83421,7 +85917,7 @@ label_BFC1B870: /* nop */ /* 0xBFC1B884: 152A0009 bne $t1, $t2, 0xBFC1B8AC */ uint32_t psx_brA_BFC1B884 = cpu->gpr[9]; uint32_t psx_brB_BFC1B884 = cpu->gpr[10]; - int psx_taken_BFC1B884 = (psx_brA_BFC1B884 != psx_brB_BFC1B884); + psx_taken_BFC1B884 = (psx_brA_BFC1B884 != psx_brB_BFC1B884); /* 0xBFC1B888: 24040033 addiu $a0, $zero, 51 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); if (psx_taken_BFC1B884) goto label_BFC1B8AC; @@ -83442,7 +85938,7 @@ label_BFC1B88C: /* nop */ /* 0xBFC1B8A0: 116C0004 beq $t3, $t4, 0xBFC1B8B4 */ uint32_t psx_brA_BFC1B8A0 = cpu->gpr[11]; uint32_t psx_brB_BFC1B8A0 = cpu->gpr[12]; - int psx_taken_BFC1B8A0 = (psx_brA_BFC1B8A0 == psx_brB_BFC1B8A0); + psx_taken_BFC1B8A0 = (psx_brA_BFC1B8A0 == psx_brB_BFC1B8A0); /* 0xBFC1B8A4: 00000000 nop */ /* nop */ if (psx_taken_BFC1B8A0) goto label_BFC1B8B4; @@ -83480,7 +85976,7 @@ label_BFC1B8B4: /* nop */ /* 0xBFC1B8C8: 108D0027 beq $a0, $t5, 0xBFC1B968 */ uint32_t psx_brA_BFC1B8C8 = cpu->gpr[4]; uint32_t psx_brB_BFC1B8C8 = cpu->gpr[13]; - int psx_taken_BFC1B8C8 = (psx_brA_BFC1B8C8 == psx_brB_BFC1B8C8); + psx_taken_BFC1B8C8 = (psx_brA_BFC1B8C8 == psx_brB_BFC1B8C8); /* 0xBFC1B8CC: 00000000 nop */ /* nop */ if (psx_taken_BFC1B8C8) goto label_BFC1B968; @@ -83491,7 +85987,7 @@ label_BFC1B8D0: psx_check_interrupts(cpu); /* 0xBFC1B8D0: 1000001F beq $zero, $zero, 0xBFC1B950 */ uint32_t psx_brA_BFC1B8D0 = cpu->gpr[0]; uint32_t psx_brB_BFC1B8D0 = cpu->gpr[0]; - int psx_taken_BFC1B8D0 = (psx_brA_BFC1B8D0 == psx_brB_BFC1B8D0); + psx_taken_BFC1B8D0 = (psx_brA_BFC1B8D0 == psx_brB_BFC1B8D0); /* 0xBFC1B8D4: 00000000 nop */ /* nop */ if (psx_taken_BFC1B8D0) goto label_BFC1B950; @@ -83530,7 +86026,7 @@ label_BFC1B8F0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (-24728)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B8F4u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC1B8F8: 1000001B beq $zero, $zero, 0xBFC1B968 */ uint32_t psx_brA_BFC1B8F8 = cpu->gpr[0]; uint32_t psx_brB_BFC1B8F8 = cpu->gpr[0]; - int psx_taken_BFC1B8F8 = (psx_brA_BFC1B8F8 == psx_brB_BFC1B8F8); + psx_taken_BFC1B8F8 = (psx_brA_BFC1B8F8 == psx_brB_BFC1B8F8); /* 0xBFC1B8FC: 00000000 nop */ /* nop */ if (psx_taken_BFC1B8F8) goto label_BFC1B968; @@ -83569,7 +86065,7 @@ label_BFC1B918: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (-24728)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B91Cu); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC1B920: 10000011 beq $zero, $zero, 0xBFC1B968 */ uint32_t psx_brA_BFC1B920 = cpu->gpr[0]; uint32_t psx_brB_BFC1B920 = cpu->gpr[0]; - int psx_taken_BFC1B920 = (psx_brA_BFC1B920 == psx_brB_BFC1B920); + psx_taken_BFC1B920 = (psx_brA_BFC1B920 == psx_brB_BFC1B920); /* 0xBFC1B924: 00000000 nop */ /* nop */ if (psx_taken_BFC1B920) goto label_BFC1B968; @@ -83608,7 +86104,7 @@ label_BFC1B940: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (-24728)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B944u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC1B948: 10000007 beq $zero, $zero, 0xBFC1B968 */ uint32_t psx_brA_BFC1B948 = cpu->gpr[0]; uint32_t psx_brB_BFC1B948 = cpu->gpr[0]; - int psx_taken_BFC1B948 = (psx_brA_BFC1B948 == psx_brB_BFC1B948); + psx_taken_BFC1B948 = (psx_brA_BFC1B948 == psx_brB_BFC1B948); /* 0xBFC1B94C: 00000000 nop */ /* nop */ if (psx_taken_BFC1B948) goto label_BFC1B968; @@ -83619,7 +86115,7 @@ label_BFC1B950: psx_check_interrupts(cpu); /* 0xBFC1B950: 1080FFF5 beq $a0, $zero, 0xBFC1B928 */ uint32_t psx_brA_BFC1B950 = cpu->gpr[4]; uint32_t psx_brB_BFC1B950 = cpu->gpr[0]; - int psx_taken_BFC1B950 = (psx_brA_BFC1B950 == psx_brB_BFC1B950); + psx_taken_BFC1B950 = (psx_brA_BFC1B950 == psx_brB_BFC1B950); /* 0xBFC1B954: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1B950) goto label_BFC1B928; @@ -83630,7 +86126,7 @@ label_BFC1B958: psx_check_interrupts(cpu); /* 0xBFC1B958: 1081FFDF beq $a0, $at, 0xBFC1B8D8 */ uint32_t psx_brA_BFC1B958 = cpu->gpr[4]; uint32_t psx_brB_BFC1B958 = cpu->gpr[1]; - int psx_taken_BFC1B958 = (psx_brA_BFC1B958 == psx_brB_BFC1B958); + psx_taken_BFC1B958 = (psx_brA_BFC1B958 == psx_brB_BFC1B958); /* 0xBFC1B95C: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC1B958) goto label_BFC1B8D8; @@ -83641,7 +86137,7 @@ label_BFC1B960: psx_check_interrupts(cpu); /* 0xBFC1B960: 1081FFE7 beq $a0, $at, 0xBFC1B900 */ uint32_t psx_brA_BFC1B960 = cpu->gpr[4]; uint32_t psx_brB_BFC1B960 = cpu->gpr[1]; - int psx_taken_BFC1B960 = (psx_brA_BFC1B960 == psx_brB_BFC1B960); + psx_taken_BFC1B960 = (psx_brA_BFC1B960 == psx_brB_BFC1B960); /* 0xBFC1B964: 00000000 nop */ /* nop */ if (psx_taken_BFC1B960) goto label_BFC1B900; @@ -83686,7 +86182,7 @@ label_BFC1B968: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (180)); /* 0xBFC1B9AC: 1441000A bne $v0, $at, 0xBFC1B9D8 */ uint32_t psx_brA_BFC1B9AC = cpu->gpr[2]; uint32_t psx_brB_BFC1B9AC = cpu->gpr[1]; - int psx_taken_BFC1B9AC = (psx_brA_BFC1B9AC != psx_brB_BFC1B9AC); + psx_taken_BFC1B9AC = (psx_brA_BFC1B9AC != psx_brB_BFC1B9AC); /* 0xBFC1B9B0: 00000000 nop */ /* nop */ if (psx_taken_BFC1B9AC) goto label_BFC1B9D8; @@ -83703,7 +86199,7 @@ label_BFC1B9B4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC1B9C0: 17010005 bne $t8, $at, 0xBFC1B9D8 */ uint32_t psx_brA_BFC1B9C0 = cpu->gpr[24]; uint32_t psx_brB_BFC1B9C0 = cpu->gpr[1]; - int psx_taken_BFC1B9C0 = (psx_brA_BFC1B9C0 != psx_brB_BFC1B9C0); + psx_taken_BFC1B9C0 = (psx_brA_BFC1B9C0 != psx_brB_BFC1B9C0); /* 0xBFC1B9C4: 00000000 nop */ /* nop */ if (psx_taken_BFC1B9C0) goto label_BFC1B9D8; @@ -83734,7 +86230,7 @@ label_BFC1B9D8: /* nop */ /* 0xBFC1B9E4: 150000CE bne $t0, $zero, 0xBFC1BD20 */ uint32_t psx_brA_BFC1B9E4 = cpu->gpr[8]; uint32_t psx_brB_BFC1B9E4 = cpu->gpr[0]; - int psx_taken_BFC1B9E4 = (psx_brA_BFC1B9E4 != psx_brB_BFC1B9E4); + psx_taken_BFC1B9E4 = (psx_brA_BFC1B9E4 != psx_brB_BFC1B9E4); /* 0xBFC1B9E8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1B9E8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1B9E4) goto label_BFC1BD20; @@ -83753,7 +86249,7 @@ label_BFC1B9EC: cpu->gpr[1] = (uint32_t)(cpu->gpr[9] < 0x00000015u ? 1 : 0); /* 0xBFC1B9FC: 10200008 beq $at, $zero, 0xBFC1BA20 */ uint32_t psx_brA_BFC1B9FC = cpu->gpr[1]; uint32_t psx_brB_BFC1B9FC = cpu->gpr[0]; - int psx_taken_BFC1B9FC = (psx_brA_BFC1B9FC == psx_brB_BFC1B9FC); + psx_taken_BFC1B9FC = (psx_brA_BFC1B9FC == psx_brB_BFC1B9FC); /* 0xBFC1BA00: 00000000 nop */ /* nop */ if (psx_taken_BFC1B9FC) goto label_BFC1BA20; @@ -83786,7 +86282,7 @@ label_BFC1BA18: psx_check_interrupts(cpu); /* 0xBFC1BA18: 10000006 beq $zero, $zero, 0xBFC1BA34 */ uint32_t psx_brA_BFC1BA18 = cpu->gpr[0]; uint32_t psx_brB_BFC1BA18 = cpu->gpr[0]; - int psx_taken_BFC1BA18 = (psx_brA_BFC1BA18 == psx_brB_BFC1BA18); + psx_taken_BFC1BA18 = (psx_brA_BFC1BA18 == psx_brB_BFC1BA18); /* 0xBFC1BA1C: 00000000 nop */ /* nop */ if (psx_taken_BFC1BA18) goto label_BFC1BA34; @@ -83825,7 +86321,7 @@ label_BFC1BA34: /* nop */ /* 0xBFC1BA40: 11400002 beq $t2, $zero, 0xBFC1BA4C */ uint32_t psx_brA_BFC1BA40 = cpu->gpr[10]; uint32_t psx_brB_BFC1BA40 = cpu->gpr[0]; - int psx_taken_BFC1BA40 = (psx_brA_BFC1BA40 == psx_brB_BFC1BA40); + psx_taken_BFC1BA40 = (psx_brA_BFC1BA40 == psx_brB_BFC1BA40); /* 0xBFC1BA44: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1BA40) goto label_BFC1BA4C; @@ -83897,7 +86393,7 @@ label_BFC1BA7C: /* nop */ /* 0xBFC1BA88: 1580001A bne $t4, $zero, 0xBFC1BAF4 */ uint32_t psx_brA_BFC1BA88 = cpu->gpr[12]; uint32_t psx_brB_BFC1BA88 = cpu->gpr[0]; - int psx_taken_BFC1BA88 = (psx_brA_BFC1BA88 != psx_brB_BFC1BA88); + psx_taken_BFC1BA88 = (psx_brA_BFC1BA88 != psx_brB_BFC1BA88); /* 0xBFC1BA8C: 00000000 nop */ /* nop */ if (psx_taken_BFC1BA88) goto label_BFC1BAF4; @@ -83977,7 +86473,7 @@ label_BFC1BAF4: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < 0x00000002u ? 1 : 0); /* 0xBFC1BB04: 1420000F bne $at, $zero, 0xBFC1BB44 */ uint32_t psx_brA_BFC1BB04 = cpu->gpr[1]; uint32_t psx_brB_BFC1BB04 = cpu->gpr[0]; - int psx_taken_BFC1BB04 = (psx_brA_BFC1BB04 != psx_brB_BFC1BB04); + psx_taken_BFC1BB04 = (psx_brA_BFC1BB04 != psx_brB_BFC1BB04); /* 0xBFC1BB08: 00000000 nop */ /* nop */ if (psx_taken_BFC1BB04) goto label_BFC1BB44; @@ -84035,7 +86531,7 @@ label_BFC1BB2C: cpu->gpr[1] = (uint32_t)(cpu->gpr[17] < cpu->gpr[3] ? 1 : 0); /* 0xBFC1BB3C: 1420FFF4 bne $at, $zero, 0xBFC1BB10 */ uint32_t psx_brA_BFC1BB3C = cpu->gpr[1]; uint32_t psx_brB_BFC1BB3C = cpu->gpr[0]; - int psx_taken_BFC1BB3C = (psx_brA_BFC1BB3C != psx_brB_BFC1BB3C); + psx_taken_BFC1BB3C = (psx_brA_BFC1BB3C != psx_brB_BFC1BB3C); /* 0xBFC1BB40: 02202021 addu $a0, $s1, $zero */ cpu->gpr[4] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC1BB3C) goto label_BFC1BB10; @@ -84054,7 +86550,7 @@ label_BFC1BB44: cpu->gpr[1] = (uint32_t)(cpu->gpr[15] < cpu->gpr[2] ? 1 : 0); /* 0xBFC1BB54: 14200012 bne $at, $zero, 0xBFC1BBA0 */ uint32_t psx_brA_BFC1BB54 = cpu->gpr[1]; uint32_t psx_brB_BFC1BB54 = cpu->gpr[0]; - int psx_taken_BFC1BB54 = (psx_brA_BFC1BB54 != psx_brB_BFC1BB54); + psx_taken_BFC1BB54 = (psx_brA_BFC1BB54 != psx_brB_BFC1BB54); /* 0xBFC1BB58: 00408821 addu $s1, $v0, $zero */ cpu->gpr[17] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1BB54) goto label_BFC1BBA0; @@ -84072,7 +86568,7 @@ label_BFC1BB60: psx_check_interrupts(cpu); /* 0xBFC1BB60: 1020000F beq $at, $zero, 0xBFC1BBA0 */ uint32_t psx_brA_BFC1BB60 = cpu->gpr[1]; uint32_t psx_brB_BFC1BB60 = cpu->gpr[0]; - int psx_taken_BFC1BB60 = (psx_brA_BFC1BB60 == psx_brB_BFC1BB60); + psx_taken_BFC1BB60 = (psx_brA_BFC1BB60 == psx_brB_BFC1BB60); /* 0xBFC1BB64: 00000000 nop */ /* nop */ if (psx_taken_BFC1BB60) goto label_BFC1BBA0; @@ -84125,7 +86621,7 @@ label_BFC1BB88: cpu->gpr[1] = (uint32_t)(cpu->gpr[24] < cpu->gpr[17] ? 1 : 0); /* 0xBFC1BB98: 1020FFF1 beq $at, $zero, 0xBFC1BB60 */ uint32_t psx_brA_BFC1BB98 = cpu->gpr[1]; uint32_t psx_brB_BFC1BB98 = cpu->gpr[0]; - int psx_taken_BFC1BB98 = (psx_brA_BFC1BB98 == psx_brB_BFC1BB98); + psx_taken_BFC1BB98 = (psx_brA_BFC1BB98 == psx_brB_BFC1BB98); /* 0xBFC1BB9C: 2A210015 slti $at, $s1, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (21) ? 1 : 0); if (psx_taken_BFC1BB98) goto label_BFC1BB60; @@ -84144,7 +86640,7 @@ label_BFC1BBA0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (2) ? 1 : 0); /* 0xBFC1BBB0: 1420000F bne $at, $zero, 0xBFC1BBF0 */ uint32_t psx_brA_BFC1BBB0 = cpu->gpr[1]; uint32_t psx_brB_BFC1BBB0 = cpu->gpr[0]; - int psx_taken_BFC1BBB0 = (psx_brA_BFC1BBB0 != psx_brB_BFC1BBB0); + psx_taken_BFC1BBB0 = (psx_brA_BFC1BBB0 != psx_brB_BFC1BBB0); /* 0xBFC1BBB4: 00000000 nop */ /* nop */ if (psx_taken_BFC1BBB0) goto label_BFC1BBF0; @@ -84186,7 +86682,7 @@ label_BFC1BBD0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC1BBE0: 1420FFF8 bne $at, $zero, 0xBFC1BBC4 */ uint32_t psx_brA_BFC1BBE0 = cpu->gpr[1]; uint32_t psx_brB_BFC1BBE0 = cpu->gpr[0]; - int psx_taken_BFC1BBE0 = (psx_brA_BFC1BBE0 != psx_brB_BFC1BBE0); + psx_taken_BFC1BBE0 = (psx_brA_BFC1BBE0 != psx_brB_BFC1BBE0); /* 0xBFC1BBE4: 26100004 addiu $s0, $s0, 4 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (4)); if (psx_taken_BFC1BBE0) goto label_BFC1BBC4; @@ -84216,7 +86712,7 @@ label_BFC1BBF0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (21) ? 1 : 0); /* 0xBFC1BC04: 1020000D beq $at, $zero, 0xBFC1BC3C */ uint32_t psx_brA_BFC1BC04 = cpu->gpr[1]; uint32_t psx_brB_BFC1BC04 = cpu->gpr[0]; - int psx_taken_BFC1BC04 = (psx_brA_BFC1BC04 == psx_brB_BFC1BC04); + psx_taken_BFC1BC04 = (psx_brA_BFC1BC04 == psx_brB_BFC1BC04); /* 0xBFC1BC08: 00408821 addu $s1, $v0, $zero */ cpu->gpr[17] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1BC04) goto label_BFC1BC3C; @@ -84270,7 +86766,7 @@ label_BFC1BC2C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (21) ? 1 : 0); /* 0xBFC1BC34: 1420FFF6 bne $at, $zero, 0xBFC1BC10 */ uint32_t psx_brA_BFC1BC34 = cpu->gpr[1]; uint32_t psx_brB_BFC1BC34 = cpu->gpr[0]; - int psx_taken_BFC1BC34 = (psx_brA_BFC1BC34 != psx_brB_BFC1BC34); + psx_taken_BFC1BC34 = (psx_brA_BFC1BC34 != psx_brB_BFC1BC34); /* 0xBFC1BC38: 02202021 addu $a0, $s1, $zero */ cpu->gpr[4] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC1BC34) goto label_BFC1BC10; @@ -84287,7 +86783,7 @@ label_BFC1BC3C: /* nop */ /* 0xBFC1BC48: 13200033 beq $t9, $zero, 0xBFC1BD18 */ uint32_t psx_brA_BFC1BC48 = cpu->gpr[25]; uint32_t psx_brB_BFC1BC48 = cpu->gpr[0]; - int psx_taken_BFC1BC48 = (psx_brA_BFC1BC48 == psx_brB_BFC1BC48); + psx_taken_BFC1BC48 = (psx_brA_BFC1BC48 == psx_brB_BFC1BC48); /* 0xBFC1BC4C: 8FB10024 lw $s1, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1BC4Cu); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } if (psx_taken_BFC1BC48) goto label_BFC1BD18; @@ -84323,7 +86819,7 @@ label_BFC1BC68: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC1BC6C: 1630FFFC bne $s1, $s0, 0xBFC1BC60 */ uint32_t psx_brA_BFC1BC6C = cpu->gpr[17]; uint32_t psx_brB_BFC1BC6C = cpu->gpr[16]; - int psx_taken_BFC1BC6C = (psx_brA_BFC1BC6C != psx_brB_BFC1BC6C); + psx_taken_BFC1BC6C = (psx_brA_BFC1BC6C != psx_brB_BFC1BC6C); /* 0xBFC1BC70: 02202021 addu $a0, $s1, $zero */ cpu->gpr[4] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC1BC6C) goto label_BFC1BC60; @@ -84344,7 +86840,7 @@ label_BFC1BC74: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (2) ? 1 : 0); /* 0xBFC1BC88: 1420000D bne $at, $zero, 0xBFC1BCC0 */ uint32_t psx_brA_BFC1BC88 = cpu->gpr[1]; uint32_t psx_brB_BFC1BC88 = cpu->gpr[0]; - int psx_taken_BFC1BC88 = (psx_brA_BFC1BC88 != psx_brB_BFC1BC88); + psx_taken_BFC1BC88 = (psx_brA_BFC1BC88 != psx_brB_BFC1BC88); /* 0xBFC1BC8C: 00000000 nop */ /* nop */ if (psx_taken_BFC1BC88) goto label_BFC1BCC0; @@ -84386,7 +86882,7 @@ label_BFC1BCA4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC1BCB8: 1420FFF7 bne $at, $zero, 0xBFC1BC98 */ uint32_t psx_brA_BFC1BCB8 = cpu->gpr[1]; uint32_t psx_brB_BFC1BCB8 = cpu->gpr[0]; - int psx_taken_BFC1BCB8 = (psx_brA_BFC1BCB8 != psx_brB_BFC1BCB8); + psx_taken_BFC1BCB8 = (psx_brA_BFC1BCB8 != psx_brB_BFC1BCB8); /* 0xBFC1BCBC: 26100004 addiu $s0, $s0, 4 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (4)); if (psx_taken_BFC1BCB8) goto label_BFC1BC98; @@ -84405,7 +86901,7 @@ label_BFC1BCC0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC1BCD0: 1020000E beq $at, $zero, 0xBFC1BD0C */ uint32_t psx_brA_BFC1BCD0 = cpu->gpr[1]; uint32_t psx_brB_BFC1BCD0 = cpu->gpr[0]; - int psx_taken_BFC1BCD0 = (psx_brA_BFC1BCD0 == psx_brB_BFC1BCD0); + psx_taken_BFC1BCD0 = (psx_brA_BFC1BCD0 == psx_brB_BFC1BCD0); /* 0xBFC1BCD4: 00608821 addu $s1, $v1, $zero */ cpu->gpr[17] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC1BCD0) goto label_BFC1BD0C; @@ -84449,7 +86945,7 @@ label_BFC1BCF4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[10] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC1BD04: 1020FFF8 beq $at, $zero, 0xBFC1BCE8 */ uint32_t psx_brA_BFC1BD04 = cpu->gpr[1]; uint32_t psx_brB_BFC1BD04 = cpu->gpr[0]; - int psx_taken_BFC1BD04 = (psx_brA_BFC1BD04 == psx_brB_BFC1BD04); + psx_taken_BFC1BD04 = (psx_brA_BFC1BD04 == psx_brB_BFC1BD04); /* 0xBFC1BD08: 26100004 addiu $s0, $s0, 4 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (4)); if (psx_taken_BFC1BD04) goto label_BFC1BCE8; @@ -84543,6 +87039,18 @@ void func_1FC1BD68(CPUState* cpu) { default: break; } } + int psx_taken_BFC1BD90 = 0; + int psx_taken_BFC1BDA4 = 0; + int psx_taken_BFC1BDB8 = 0; + int psx_taken_BFC1BDCC = 0; + int psx_taken_BFC1BDF0 = 0; + int psx_taken_BFC1BE1C = 0; + int psx_taken_BFC1BE30 = 0; + int psx_taken_BFC1BE48 = 0; + int psx_taken_BFC1BE80 = 0; + int psx_taken_BFC1BE90 = 0; + int psx_taken_BFC1BEB8 = 0; + int psx_taken_BFC1BEC8 = 0; label_BFC1BD68: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -84576,7 +87084,7 @@ label_BFC1BD80: cpu->gpr[15] = cpu->gpr[14] & cpu->gpr[1]; /* 0xBFC1BD90: 11E00050 beq $t7, $zero, 0xBFC1BED4 */ uint32_t psx_brA_BFC1BD90 = cpu->gpr[15]; uint32_t psx_brB_BFC1BD90 = cpu->gpr[0]; - int psx_taken_BFC1BD90 = (psx_brA_BFC1BD90 == psx_brB_BFC1BD90); + psx_taken_BFC1BD90 = (psx_brA_BFC1BD90 == psx_brB_BFC1BD90); /* 0xBFC1BD94: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1BD94u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1BD90) goto label_BFC1BED4; @@ -84593,7 +87101,7 @@ label_BFC1BD98: /* nop */ /* 0xBFC1BDA4: 1700004B bne $t8, $zero, 0xBFC1BED4 */ uint32_t psx_brA_BFC1BDA4 = cpu->gpr[24]; uint32_t psx_brB_BFC1BDA4 = cpu->gpr[0]; - int psx_taken_BFC1BDA4 = (psx_brA_BFC1BDA4 != psx_brB_BFC1BDA4); + psx_taken_BFC1BDA4 = (psx_brA_BFC1BDA4 != psx_brB_BFC1BDA4); /* 0xBFC1BDA8: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1BDA8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1BDA4) goto label_BFC1BED4; @@ -84610,7 +87118,7 @@ label_BFC1BDAC: /* nop */ /* 0xBFC1BDB8: 17200046 bne $t9, $zero, 0xBFC1BED4 */ uint32_t psx_brA_BFC1BDB8 = cpu->gpr[25]; uint32_t psx_brB_BFC1BDB8 = cpu->gpr[0]; - int psx_taken_BFC1BDB8 = (psx_brA_BFC1BDB8 != psx_brB_BFC1BDB8); + psx_taken_BFC1BDB8 = (psx_brA_BFC1BDB8 != psx_brB_BFC1BDB8); /* 0xBFC1BDBC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1BDBCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1BDB8) goto label_BFC1BED4; @@ -84627,7 +87135,7 @@ label_BFC1BDC0: /* nop */ /* 0xBFC1BDCC: 11000041 beq $t0, $zero, 0xBFC1BED4 */ uint32_t psx_brA_BFC1BDCC = cpu->gpr[8]; uint32_t psx_brB_BFC1BDCC = cpu->gpr[0]; - int psx_taken_BFC1BDCC = (psx_brA_BFC1BDCC == psx_brB_BFC1BDCC); + psx_taken_BFC1BDCC = (psx_brA_BFC1BDCC == psx_brB_BFC1BDCC); /* 0xBFC1BDD0: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1BDD0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1BDCC) goto label_BFC1BED4; @@ -84658,7 +87166,7 @@ label_BFC1BDDC: cpu->gpr[1] = (uint32_t)(cpu->gpr[9] < 0x00000005u ? 1 : 0); /* 0xBFC1BDF0: 10200037 beq $at, $zero, 0xBFC1BED0 */ uint32_t psx_brA_BFC1BDF0 = cpu->gpr[1]; uint32_t psx_brB_BFC1BDF0 = cpu->gpr[0]; - int psx_taken_BFC1BDF0 = (psx_brA_BFC1BDF0 == psx_brB_BFC1BDF0); + psx_taken_BFC1BDF0 = (psx_brA_BFC1BDF0 == psx_brB_BFC1BDF0); /* 0xBFC1BDF4: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1BDF0) goto label_BFC1BED0; @@ -84706,7 +87214,7 @@ label_BFC1BE1C: psx_check_interrupts(cpu); /* 0xBFC1BE1C: 1000002D beq $zero, $zero, 0xBFC1BED4 */ uint32_t psx_brA_BFC1BE1C = cpu->gpr[0]; uint32_t psx_brB_BFC1BE1C = cpu->gpr[0]; - int psx_taken_BFC1BE1C = (psx_brA_BFC1BE1C == psx_brB_BFC1BE1C); + psx_taken_BFC1BE1C = (psx_brA_BFC1BE1C == psx_brB_BFC1BE1C); /* 0xBFC1BE20: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1BE20u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1BE1C) goto label_BFC1BED4; @@ -84723,7 +87231,7 @@ label_BFC1BE24: /* nop */ /* 0xBFC1BE30: 15400027 bne $t2, $zero, 0xBFC1BED0 */ uint32_t psx_brA_BFC1BE30 = cpu->gpr[10]; uint32_t psx_brB_BFC1BE30 = cpu->gpr[0]; - int psx_taken_BFC1BE30 = (psx_brA_BFC1BE30 != psx_brB_BFC1BE30); + psx_taken_BFC1BE30 = (psx_brA_BFC1BE30 != psx_brB_BFC1BE30); /* 0xBFC1BE34: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1BE30) goto label_BFC1BED0; @@ -84742,7 +87250,7 @@ label_BFC1BE38: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC1BE48: 15610006 bne $t3, $at, 0xBFC1BE64 */ uint32_t psx_brA_BFC1BE48 = cpu->gpr[11]; uint32_t psx_brB_BFC1BE48 = cpu->gpr[1]; - int psx_taken_BFC1BE48 = (psx_brA_BFC1BE48 != psx_brB_BFC1BE48); + psx_taken_BFC1BE48 = (psx_brA_BFC1BE48 != psx_brB_BFC1BE48); /* 0xBFC1BE4C: 24040001 addiu $a0, $zero, 1 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1BE48) goto label_BFC1BE64; @@ -84800,7 +87308,7 @@ label_BFC1BE80: psx_check_interrupts(cpu); /* 0xBFC1BE80: 10000014 beq $zero, $zero, 0xBFC1BED4 */ uint32_t psx_brA_BFC1BE80 = cpu->gpr[0]; uint32_t psx_brB_BFC1BE80 = cpu->gpr[0]; - int psx_taken_BFC1BE80 = (psx_brA_BFC1BE80 == psx_brB_BFC1BE80); + psx_taken_BFC1BE80 = (psx_brA_BFC1BE80 == psx_brB_BFC1BE80); /* 0xBFC1BE84: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1BE84u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1BE80) goto label_BFC1BED4; @@ -84821,7 +87329,7 @@ label_BFC1BE90: psx_check_interrupts(cpu); /* 0xBFC1BE90: 10000010 beq $zero, $zero, 0xBFC1BED4 */ uint32_t psx_brA_BFC1BE90 = cpu->gpr[0]; uint32_t psx_brB_BFC1BE90 = cpu->gpr[0]; - int psx_taken_BFC1BE90 = (psx_brA_BFC1BE90 == psx_brB_BFC1BE90); + psx_taken_BFC1BE90 = (psx_brA_BFC1BE90 == psx_brB_BFC1BE90); /* 0xBFC1BE94: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1BE94u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1BE90) goto label_BFC1BED4; @@ -84866,7 +87374,7 @@ label_BFC1BEB8: psx_check_interrupts(cpu); /* 0xBFC1BEB8: 10000006 beq $zero, $zero, 0xBFC1BED4 */ uint32_t psx_brA_BFC1BEB8 = cpu->gpr[0]; uint32_t psx_brB_BFC1BEB8 = cpu->gpr[0]; - int psx_taken_BFC1BEB8 = (psx_brA_BFC1BEB8 == psx_brB_BFC1BEB8); + psx_taken_BFC1BEB8 = (psx_brA_BFC1BEB8 == psx_brB_BFC1BEB8); /* 0xBFC1BEBC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1BEBCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1BEB8) goto label_BFC1BED4; @@ -84887,7 +87395,7 @@ label_BFC1BEC8: psx_check_interrupts(cpu); /* 0xBFC1BEC8: 10000002 beq $zero, $zero, 0xBFC1BED4 */ uint32_t psx_brA_BFC1BEC8 = cpu->gpr[0]; uint32_t psx_brB_BFC1BEC8 = cpu->gpr[0]; - int psx_taken_BFC1BEC8 = (psx_brA_BFC1BEC8 == psx_brB_BFC1BEC8); + psx_taken_BFC1BEC8 = (psx_brA_BFC1BEC8 == psx_brB_BFC1BEC8); /* 0xBFC1BECC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1BECCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1BEC8) goto label_BFC1BED4; @@ -84921,6 +87429,9 @@ void func_1FC1BEE0(CPUState* cpu) { default: break; } } + int psx_taken_BFC1BEEC = 0; + int psx_taken_BFC1BF00 = 0; + int psx_taken_BFC1BF14 = 0; label_BFC1BEE0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -84934,7 +87445,7 @@ label_BFC1BEE0: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC1BEEC: 15C00006 bne $t6, $zero, 0xBFC1BF08 */ uint32_t psx_brA_BFC1BEEC = cpu->gpr[14]; uint32_t psx_brB_BFC1BEEC = cpu->gpr[0]; - int psx_taken_BFC1BEEC = (psx_brA_BFC1BEEC != psx_brB_BFC1BEEC); + psx_taken_BFC1BEEC = (psx_brA_BFC1BEEC != psx_brB_BFC1BEEC); /* 0xBFC1BEF0: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1BEF0u); return; } g_debug_last_store_pc = 0xBFC1BEF0u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1BEEC) goto label_BFC1BF08; @@ -84951,7 +87462,7 @@ label_BFC1BEF4: /* nop */ /* 0xBFC1BF00: 11E0000D beq $t7, $zero, 0xBFC1BF38 */ uint32_t psx_brA_BFC1BF00 = cpu->gpr[15]; uint32_t psx_brB_BFC1BF00 = cpu->gpr[0]; - int psx_taken_BFC1BF00 = (psx_brA_BFC1BF00 == psx_brB_BFC1BF00); + psx_taken_BFC1BF00 = (psx_brA_BFC1BF00 == psx_brB_BFC1BF00); /* 0xBFC1BF04: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1BF04u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1BF00) goto label_BFC1BF38; @@ -84968,7 +87479,7 @@ label_BFC1BF08: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC1BF14: 17010005 bne $t8, $at, 0xBFC1BF2C */ uint32_t psx_brA_BFC1BF14 = cpu->gpr[24]; uint32_t psx_brB_BFC1BF14 = cpu->gpr[1]; - int psx_taken_BFC1BF14 = (psx_brA_BFC1BF14 != psx_brB_BFC1BF14); + psx_taken_BFC1BF14 = (psx_brA_BFC1BF14 != psx_brB_BFC1BF14); /* 0xBFC1BF18: 00000000 nop */ /* nop */ if (psx_taken_BFC1BF14) goto label_BFC1BF2C; @@ -85037,6 +87548,17 @@ void func_1FC1BF44(CPUState* cpu) { default: break; } } + int psx_taken_BFC1BFC0 = 0; + int psx_taken_BFC1C008 = 0; + int psx_taken_BFC1C028 = 0; + int psx_taken_BFC1C040 = 0; + int psx_taken_BFC1C08C = 0; + int psx_taken_BFC1C0A8 = 0; + int psx_taken_BFC1C0B0 = 0; + int psx_taken_BFC1C0C8 = 0; + int psx_taken_BFC1C0D0 = 0; + int psx_taken_BFC1C0FC = 0; + int psx_taken_BFC1C104 = 0; label_BFC1BF44: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -85124,7 +87646,7 @@ label_BFC1BF90: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < 0x00000002u ? 1 : 0); /* 0xBFC1BFC0: 14200015 bne $at, $zero, 0xBFC1C018 */ uint32_t psx_brA_BFC1BFC0 = cpu->gpr[1]; uint32_t psx_brB_BFC1BFC0 = cpu->gpr[0]; - int psx_taken_BFC1BFC0 = (psx_brA_BFC1BFC0 != psx_brB_BFC1BFC0); + psx_taken_BFC1BFC0 = (psx_brA_BFC1BFC0 != psx_brB_BFC1BFC0); /* 0xBFC1BFC4: 24100001 addiu $s0, $zero, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1BFC0) goto label_BFC1C018; @@ -85190,7 +87712,7 @@ label_BFC1BFF8: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[3] ? 1 : 0); /* 0xBFC1C008: 1420FFF2 bne $at, $zero, 0xBFC1BFD4 */ uint32_t psx_brA_BFC1C008 = cpu->gpr[1]; uint32_t psx_brB_BFC1C008 = cpu->gpr[0]; - int psx_taken_BFC1C008 = (psx_brA_BFC1C008 != psx_brB_BFC1C008); + psx_taken_BFC1C008 = (psx_brA_BFC1C008 != psx_brB_BFC1C008); /* 0xBFC1C00C: 26310004 addiu $s1, $s1, 4 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (4)); if (psx_taken_BFC1C008) goto label_BFC1BFD4; @@ -85218,7 +87740,7 @@ label_BFC1C018: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < cpu->gpr[2] ? 1 : 0); /* 0xBFC1C028: 1420001C bne $at, $zero, 0xBFC1C09C */ uint32_t psx_brA_BFC1C028 = cpu->gpr[1]; uint32_t psx_brB_BFC1C028 = cpu->gpr[0]; - int psx_taken_BFC1C028 = (psx_brA_BFC1C028 != psx_brB_BFC1C028); + psx_taken_BFC1C028 = (psx_brA_BFC1C028 != psx_brB_BFC1C028); /* 0xBFC1C02C: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1C028) goto label_BFC1C09C; @@ -85242,7 +87764,7 @@ label_BFC1C03C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (21) ? 1 : 0); /* 0xBFC1C040: 10200009 beq $at, $zero, 0xBFC1C068 */ uint32_t psx_brA_BFC1C040 = cpu->gpr[1]; uint32_t psx_brB_BFC1C040 = cpu->gpr[0]; - int psx_taken_BFC1C040 = (psx_brA_BFC1C040 == psx_brB_BFC1C040); + psx_taken_BFC1C040 = (psx_brA_BFC1C040 == psx_brB_BFC1C040); /* 0xBFC1C044: AE300000 sw $s0, 0($s1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C044u); return; } g_debug_last_store_pc = 0xBFC1C044u; cpu->write_word(psx_addr, cpu->gpr[16]); } if (psx_taken_BFC1C040) goto label_BFC1C068; @@ -85317,7 +87839,7 @@ label_BFC1C07C: cpu->gpr[1] = (uint32_t)(cpu->gpr[10] < cpu->gpr[16] ? 1 : 0); /* 0xBFC1C08C: 1020FFEB beq $at, $zero, 0xBFC1C03C */ uint32_t psx_brA_BFC1C08C = cpu->gpr[1]; uint32_t psx_brB_BFC1C08C = cpu->gpr[0]; - int psx_taken_BFC1C08C = (psx_brA_BFC1C08C == psx_brB_BFC1C08C); + psx_taken_BFC1C08C = (psx_brA_BFC1C08C == psx_brB_BFC1C08C); /* 0xBFC1C090: 26310004 addiu $s1, $s1, 4 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (4)); if (psx_taken_BFC1C08C) goto label_BFC1C03C; @@ -85343,7 +87865,7 @@ label_BFC1C09C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC1C0A8: 10410003 beq $v0, $at, 0xBFC1C0B8 */ uint32_t psx_brA_BFC1C0A8 = cpu->gpr[2]; uint32_t psx_brB_BFC1C0A8 = cpu->gpr[1]; - int psx_taken_BFC1C0A8 = (psx_brA_BFC1C0A8 == psx_brB_BFC1C0A8); + psx_taken_BFC1C0A8 = (psx_brA_BFC1C0A8 == psx_brB_BFC1C0A8); /* 0xBFC1C0AC: 24010034 addiu $at, $zero, 52 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC1C0A8) goto label_BFC1C0B8; @@ -85354,7 +87876,7 @@ label_BFC1C0B0: psx_check_interrupts(cpu); /* 0xBFC1C0B0: 14410016 bne $v0, $at, 0xBFC1C10C */ uint32_t psx_brA_BFC1C0B0 = cpu->gpr[2]; uint32_t psx_brB_BFC1C0B0 = cpu->gpr[1]; - int psx_taken_BFC1C0B0 = (psx_brA_BFC1C0B0 != psx_brB_BFC1C0B0); + psx_taken_BFC1C0B0 = (psx_brA_BFC1C0B0 != psx_brB_BFC1C0B0); /* 0xBFC1C0B4: 00000000 nop */ /* nop */ if (psx_taken_BFC1C0B0) goto label_BFC1C10C; @@ -85373,7 +87895,7 @@ label_BFC1C0B8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[11] < (2) ? 1 : 0); /* 0xBFC1C0C8: 14200012 bne $at, $zero, 0xBFC1C114 */ uint32_t psx_brA_BFC1C0C8 = cpu->gpr[1]; uint32_t psx_brB_BFC1C0C8 = cpu->gpr[0]; - int psx_taken_BFC1C0C8 = (psx_brA_BFC1C0C8 != psx_brB_BFC1C0C8); + psx_taken_BFC1C0C8 = (psx_brA_BFC1C0C8 != psx_brB_BFC1C0C8); /* 0xBFC1C0CC: 2A010015 slti $at, $s0, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (21) ? 1 : 0); if (psx_taken_BFC1C0C8) goto label_BFC1C114; @@ -85384,7 +87906,7 @@ label_BFC1C0D0: psx_check_interrupts(cpu); /* 0xBFC1C0D0: 10200010 beq $at, $zero, 0xBFC1C114 */ uint32_t psx_brA_BFC1C0D0 = cpu->gpr[1]; uint32_t psx_brB_BFC1C0D0 = cpu->gpr[0]; - int psx_taken_BFC1C0D0 = (psx_brA_BFC1C0D0 == psx_brB_BFC1C0D0); + psx_taken_BFC1C0D0 = (psx_brA_BFC1C0D0 == psx_brB_BFC1C0D0); /* 0xBFC1C0D4: 00000000 nop */ /* nop */ if (psx_taken_BFC1C0D0) goto label_BFC1C114; @@ -85419,7 +87941,7 @@ label_BFC1C0EC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[14] ? 1 : 0); /* 0xBFC1C0FC: 1420FFF4 bne $at, $zero, 0xBFC1C0D0 */ uint32_t psx_brA_BFC1C0FC = cpu->gpr[1]; uint32_t psx_brB_BFC1C0FC = cpu->gpr[0]; - int psx_taken_BFC1C0FC = (psx_brA_BFC1C0FC != psx_brB_BFC1C0FC); + psx_taken_BFC1C0FC = (psx_brA_BFC1C0FC != psx_brB_BFC1C0FC); /* 0xBFC1C100: 2A010015 slti $at, $s0, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (21) ? 1 : 0); if (psx_taken_BFC1C0FC) goto label_BFC1C0D0; @@ -85430,7 +87952,7 @@ label_BFC1C104: psx_check_interrupts(cpu); /* 0xBFC1C104: 10000003 beq $zero, $zero, 0xBFC1C114 */ uint32_t psx_brA_BFC1C104 = cpu->gpr[0]; uint32_t psx_brB_BFC1C104 = cpu->gpr[0]; - int psx_taken_BFC1C104 = (psx_brA_BFC1C104 == psx_brB_BFC1C104); + psx_taken_BFC1C104 = (psx_brA_BFC1C104 == psx_brB_BFC1C104); /* 0xBFC1C108: 00000000 nop */ /* nop */ if (psx_taken_BFC1C104) goto label_BFC1C114; @@ -85480,6 +88002,9 @@ void func_1FC1C130(CPUState* cpu) { default: break; } } + int psx_taken_BFC1C14C = 0; + int psx_taken_BFC1C168 = 0; + int psx_taken_BFC1C180 = 0; label_BFC1C130: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -85501,7 +88026,7 @@ label_BFC1C130: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C148u); return; } g_debug_last_store_pc = 0xBFC1C148u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC1C14C: 11E20003 beq $t7, $v0, 0xBFC1C15C */ uint32_t psx_brA_BFC1C14C = cpu->gpr[15]; uint32_t psx_brB_BFC1C14C = cpu->gpr[2]; - int psx_taken_BFC1C14C = (psx_brA_BFC1C14C == psx_brB_BFC1C14C); + psx_taken_BFC1C14C = (psx_brA_BFC1C14C == psx_brB_BFC1C14C); /* 0xBFC1C150: AC2E9F70 sw $t6, -24720($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24720)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C150u); return; } g_debug_last_store_pc = 0xBFC1C150u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC1C14C) goto label_BFC1C15C; @@ -85527,7 +88052,7 @@ label_BFC1C15C: /* nop */ /* 0xBFC1C168: 17020002 bne $t8, $v0, 0xBFC1C174 */ uint32_t psx_brA_BFC1C168 = cpu->gpr[24]; uint32_t psx_brB_BFC1C168 = cpu->gpr[2]; - int psx_taken_BFC1C168 = (psx_brA_BFC1C168 != psx_brB_BFC1C168); + psx_taken_BFC1C168 = (psx_brA_BFC1C168 != psx_brB_BFC1C168); /* 0xBFC1C16C: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1C168) goto label_BFC1C174; @@ -85551,7 +88076,7 @@ label_BFC1C174: /* nop */ /* 0xBFC1C180: 13200002 beq $t9, $zero, 0xBFC1C18C */ uint32_t psx_brA_BFC1C180 = cpu->gpr[25]; uint32_t psx_brB_BFC1C180 = cpu->gpr[0]; - int psx_taken_BFC1C180 = (psx_brA_BFC1C180 == psx_brB_BFC1C180); + psx_taken_BFC1C180 = (psx_brA_BFC1C180 == psx_brB_BFC1C180); /* 0xBFC1C184: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1C180) goto label_BFC1C18C; @@ -85606,6 +88131,28 @@ void func_1FC1C1A4(CPUState* cpu) { default: break; } } + int psx_taken_BFC1C1C0 = 0; + int psx_taken_BFC1C208 = 0; + int psx_taken_BFC1C228 = 0; + int psx_taken_BFC1C248 = 0; + int psx_taken_BFC1C284 = 0; + int psx_taken_BFC1C2C4 = 0; + int psx_taken_BFC1C300 = 0; + int psx_taken_BFC1C314 = 0; + int psx_taken_BFC1C340 = 0; + int psx_taken_BFC1C364 = 0; + int psx_taken_BFC1C378 = 0; + int psx_taken_BFC1C3A8 = 0; + int psx_taken_BFC1C3B8 = 0; + int psx_taken_BFC1C3CC = 0; + int psx_taken_BFC1C3D4 = 0; + int psx_taken_BFC1C3DC = 0; + int psx_taken_BFC1C400 = 0; + int psx_taken_BFC1C420 = 0; + int psx_taken_BFC1C430 = 0; + int psx_taken_BFC1C440 = 0; + int psx_taken_BFC1C458 = 0; + int psx_taken_BFC1C498 = 0; label_BFC1C1A4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -85627,7 +88174,7 @@ label_BFC1C1A4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (888)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C1BCu); return; } g_debug_last_store_pc = 0xBFC1C1BCu; cpu->write_word(psx_addr, cpu->gpr[4]); } /* 0xBFC1C1C0: 14200015 bne $at, $zero, 0xBFC1C218 */ uint32_t psx_brA_BFC1C1C0 = cpu->gpr[1]; uint32_t psx_brB_BFC1C1C0 = cpu->gpr[0]; - int psx_taken_BFC1C1C0 = (psx_brA_BFC1C1C0 != psx_brB_BFC1C1C0); + psx_taken_BFC1C1C0 = (psx_brA_BFC1C1C0 != psx_brB_BFC1C1C0); /* 0xBFC1C1C4: 24100001 addiu $s0, $zero, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1C1C0) goto label_BFC1C218; @@ -85693,7 +88240,7 @@ label_BFC1C1F8: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[9] ? 1 : 0); /* 0xBFC1C208: 1420FFF2 bne $at, $zero, 0xBFC1C1D4 */ uint32_t psx_brA_BFC1C208 = cpu->gpr[1]; uint32_t psx_brB_BFC1C208 = cpu->gpr[0]; - int psx_taken_BFC1C208 = (psx_brA_BFC1C208 != psx_brB_BFC1C208); + psx_taken_BFC1C208 = (psx_brA_BFC1C208 != psx_brB_BFC1C208); /* 0xBFC1C20C: 26310004 addiu $s1, $s1, 4 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (4)); if (psx_taken_BFC1C208) goto label_BFC1C1D4; @@ -85721,7 +88268,7 @@ label_BFC1C218: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < cpu->gpr[10] ? 1 : 0); /* 0xBFC1C228: 1420001A bne $at, $zero, 0xBFC1C294 */ uint32_t psx_brA_BFC1C228 = cpu->gpr[1]; uint32_t psx_brB_BFC1C228 = cpu->gpr[0]; - int psx_taken_BFC1C228 = (psx_brA_BFC1C228 != psx_brB_BFC1C228); + psx_taken_BFC1C228 = (psx_brA_BFC1C228 != psx_brB_BFC1C228); /* 0xBFC1C22C: 01408021 addu $s0, $t2, $zero */ cpu->gpr[16] = cpu->gpr[10] + cpu->gpr[0]; if (psx_taken_BFC1C228) goto label_BFC1C294; @@ -85749,7 +88296,7 @@ label_BFC1C244: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (21) ? 1 : 0); /* 0xBFC1C248: 1020000C beq $at, $zero, 0xBFC1C27C */ uint32_t psx_brA_BFC1C248 = cpu->gpr[1]; uint32_t psx_brB_BFC1C248 = cpu->gpr[0]; - int psx_taken_BFC1C248 = (psx_brA_BFC1C248 == psx_brB_BFC1C248); + psx_taken_BFC1C248 = (psx_brA_BFC1C248 == psx_brB_BFC1C248); /* 0xBFC1C24C: AE300000 sw $s0, 0($s1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C24Cu); return; } g_debug_last_store_pc = 0xBFC1C24Cu; cpu->write_word(psx_addr, cpu->gpr[16]); } if (psx_taken_BFC1C248) goto label_BFC1C27C; @@ -85809,7 +88356,7 @@ label_BFC1C27C: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < cpu->gpr[16] ? 1 : 0); /* 0xBFC1C284: 1020FFEF beq $at, $zero, 0xBFC1C244 */ uint32_t psx_brA_BFC1C284 = cpu->gpr[1]; uint32_t psx_brB_BFC1C284 = cpu->gpr[0]; - int psx_taken_BFC1C284 = (psx_brA_BFC1C284 == psx_brB_BFC1C284); + psx_taken_BFC1C284 = (psx_brA_BFC1C284 == psx_brB_BFC1C284); /* 0xBFC1C288: 26310004 addiu $s1, $s1, 4 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (4)); if (psx_taken_BFC1C284) goto label_BFC1C244; @@ -85865,7 +88412,7 @@ label_BFC1C2A8: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); /* 0xBFC1C2C4: 10800011 beq $a0, $zero, 0xBFC1C30C */ uint32_t psx_brA_BFC1C2C4 = cpu->gpr[4]; uint32_t psx_brB_BFC1C2C4 = cpu->gpr[0]; - int psx_taken_BFC1C2C4 = (psx_brA_BFC1C2C4 == psx_brB_BFC1C2C4); + psx_taken_BFC1C2C4 = (psx_brA_BFC1C2C4 == psx_brB_BFC1C2C4); /* 0xBFC1C2C8: 01205021 addu $t2, $t1, $zero */ cpu->gpr[10] = cpu->gpr[9] + cpu->gpr[0]; if (psx_taken_BFC1C2C4) goto label_BFC1C30C; @@ -85913,7 +88460,7 @@ label_BFC1C2D8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-412)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C2FCu); return; } g_debug_last_store_pc = 0xBFC1C2FCu; cpu->write_word(psx_addr, cpu->gpr[2]); } /* 0xBFC1C300: 1420FFF3 bne $at, $zero, 0xBFC1C2D0 */ uint32_t psx_brA_BFC1C300 = cpu->gpr[1]; uint32_t psx_brB_BFC1C300 = cpu->gpr[0]; - int psx_taken_BFC1C300 = (psx_brA_BFC1C300 != psx_brB_BFC1C300); + psx_taken_BFC1C300 = (psx_brA_BFC1C300 != psx_brB_BFC1C300); /* 0xBFC1C304: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC1C300) goto label_BFC1C2D0; @@ -85935,7 +88482,7 @@ label_BFC1C30C: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < cpu->gpr[11] ? 1 : 0); /* 0xBFC1C314: 14200026 bne $at, $zero, 0xBFC1C3B0 */ uint32_t psx_brA_BFC1C314 = cpu->gpr[1]; uint32_t psx_brB_BFC1C314 = cpu->gpr[0]; - int psx_taken_BFC1C314 = (psx_brA_BFC1C314 != psx_brB_BFC1C314); + psx_taken_BFC1C314 = (psx_brA_BFC1C314 != psx_brB_BFC1C314); /* 0xBFC1C318: 01401021 addu $v0, $t2, $zero */ cpu->gpr[2] = cpu->gpr[10] + cpu->gpr[0]; if (psx_taken_BFC1C314) goto label_BFC1C3B0; @@ -85969,7 +88516,7 @@ label_BFC1C338: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1C340: 1420000F bne $at, $zero, 0xBFC1C380 */ uint32_t psx_brA_BFC1C340 = cpu->gpr[1]; uint32_t psx_brB_BFC1C340 = cpu->gpr[0]; - int psx_taken_BFC1C340 = (psx_brA_BFC1C340 != psx_brB_BFC1C340); + psx_taken_BFC1C340 = (psx_brA_BFC1C340 != psx_brB_BFC1C340); /* 0xBFC1C344: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1C340) goto label_BFC1C380; @@ -85999,7 +88546,7 @@ label_BFC1C34C: cpu->gpr[24] = cpu->gpr[13] - cpu->gpr[15]; /* 0xBFC1C364: 1B000002 blez $t8, 0xBFC1C370 */ uint32_t psx_brA_BFC1C364 = cpu->gpr[24]; - int psx_taken_BFC1C364 = ((int32_t)psx_brA_BFC1C364 <= 0); + psx_taken_BFC1C364 = ((int32_t)psx_brA_BFC1C364 <= 0); /* 0xBFC1C368: 00000000 nop */ /* nop */ if (psx_taken_BFC1C364) goto label_BFC1C370; @@ -86021,7 +88568,7 @@ label_BFC1C370: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[4] ? 1 : 0); /* 0xBFC1C378: 1420FFF4 bne $at, $zero, 0xBFC1C34C */ uint32_t psx_brA_BFC1C378 = cpu->gpr[1]; uint32_t psx_brB_BFC1C378 = cpu->gpr[0]; - int psx_taken_BFC1C378 = (psx_brA_BFC1C378 != psx_brB_BFC1C378); + psx_taken_BFC1C378 = (psx_brA_BFC1C378 != psx_brB_BFC1C378); /* 0xBFC1C37C: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC1C378) goto label_BFC1C34C; @@ -86052,7 +88599,7 @@ label_BFC1C380: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (-816)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C3A4u); return; } g_debug_last_store_pc = 0xBFC1C3A4u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC1C3A8: 1020FFE3 beq $at, $zero, 0xBFC1C338 */ uint32_t psx_brA_BFC1C3A8 = cpu->gpr[1]; uint32_t psx_brB_BFC1C3A8 = cpu->gpr[0]; - int psx_taken_BFC1C3A8 = (psx_brA_BFC1C3A8 == psx_brB_BFC1C3A8); + psx_taken_BFC1C3A8 = (psx_brA_BFC1C3A8 == psx_brB_BFC1C3A8); /* 0xBFC1C3AC: AD8001DC sw $zero, 476($t4) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[12] + (476)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C3ACu); return; } g_debug_last_store_pc = 0xBFC1C3ACu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1C3A8) goto label_BFC1C338; @@ -86067,7 +88614,7 @@ label_BFC1C3B0: /* nop */ /* 0xBFC1C3B8: 17200023 bne $t9, $zero, 0xBFC1C448 */ uint32_t psx_brA_BFC1C3B8 = cpu->gpr[25]; uint32_t psx_brB_BFC1C3B8 = cpu->gpr[0]; - int psx_taken_BFC1C3B8 = (psx_brA_BFC1C3B8 != psx_brB_BFC1C3B8); + psx_taken_BFC1C3B8 = (psx_brA_BFC1C3B8 != psx_brB_BFC1C3B8); /* 0xBFC1C3BC: 00000000 nop */ /* nop */ if (psx_taken_BFC1C3B8) goto label_BFC1C448; @@ -86084,7 +88631,7 @@ label_BFC1C3C0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC1C3CC: 10410002 beq $v0, $at, 0xBFC1C3D8 */ uint32_t psx_brA_BFC1C3CC = cpu->gpr[2]; uint32_t psx_brB_BFC1C3CC = cpu->gpr[1]; - int psx_taken_BFC1C3CC = (psx_brA_BFC1C3CC == psx_brB_BFC1C3CC); + psx_taken_BFC1C3CC = (psx_brA_BFC1C3CC == psx_brB_BFC1C3CC); /* 0xBFC1C3D0: 24010034 addiu $at, $zero, 52 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC1C3CC) goto label_BFC1C3D8; @@ -86095,7 +88642,7 @@ label_BFC1C3D4: psx_check_interrupts(cpu); /* 0xBFC1C3D4: 1441001C bne $v0, $at, 0xBFC1C448 */ uint32_t psx_brA_BFC1C3D4 = cpu->gpr[2]; uint32_t psx_brB_BFC1C3D4 = cpu->gpr[1]; - int psx_taken_BFC1C3D4 = (psx_brA_BFC1C3D4 != psx_brB_BFC1C3D4); + psx_taken_BFC1C3D4 = (psx_brA_BFC1C3D4 != psx_brB_BFC1C3D4); label_BFC1C3D8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -86111,7 +88658,7 @@ label_BFC1C3DC: psx_check_interrupts(cpu); /* 0xBFC1C3DC: 14200017 bne $at, $zero, 0xBFC1C43C */ uint32_t psx_brA_BFC1C3DC = cpu->gpr[1]; uint32_t psx_brB_BFC1C3DC = cpu->gpr[0]; - int psx_taken_BFC1C3DC = (psx_brA_BFC1C3DC != psx_brB_BFC1C3DC); + psx_taken_BFC1C3DC = (psx_brA_BFC1C3DC != psx_brB_BFC1C3DC); /* 0xBFC1C3E0: 01408021 addu $s0, $t2, $zero */ cpu->gpr[16] = cpu->gpr[10] + cpu->gpr[0]; if (psx_taken_BFC1C3DC) goto label_BFC1C43C; @@ -86141,7 +88688,7 @@ label_BFC1C3F8: /* nop */ /* 0xBFC1C400: 144F000A bne $v0, $t7, 0xBFC1C42C */ uint32_t psx_brA_BFC1C400 = cpu->gpr[2]; uint32_t psx_brB_BFC1C400 = cpu->gpr[15]; - int psx_taken_BFC1C400 = (psx_brA_BFC1C400 != psx_brB_BFC1C400); + psx_taken_BFC1C400 = (psx_brA_BFC1C400 != psx_brB_BFC1C400); /* 0xBFC1C404: 26100001 addiu $s0, $s0, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); if (psx_taken_BFC1C400) goto label_BFC1C42C; @@ -86164,7 +88711,7 @@ label_BFC1C408: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-812)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C41Cu); return; } g_debug_last_store_pc = 0xBFC1C41Cu; cpu->write_word(psx_addr, cpu->gpr[25]); } /* 0xBFC1C420: 10000006 beq $zero, $zero, 0xBFC1C43C */ uint32_t psx_brA_BFC1C420 = cpu->gpr[0]; uint32_t psx_brB_BFC1C420 = cpu->gpr[0]; - int psx_taken_BFC1C420 = (psx_brA_BFC1C420 == psx_brB_BFC1C420); + psx_taken_BFC1C420 = (psx_brA_BFC1C420 == psx_brB_BFC1C420); /* 0xBFC1C424: AC82FCD4 sw $v0, -812($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (-812)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C424u); return; } g_debug_last_store_pc = 0xBFC1C424u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC1C420) goto label_BFC1C43C; @@ -86184,7 +88731,7 @@ label_BFC1C42C: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < cpu->gpr[16] ? 1 : 0); /* 0xBFC1C430: 1020FFF1 beq $at, $zero, 0xBFC1C3F8 */ uint32_t psx_brA_BFC1C430 = cpu->gpr[1]; uint32_t psx_brB_BFC1C430 = cpu->gpr[0]; - int psx_taken_BFC1C430 = (psx_brA_BFC1C430 == psx_brB_BFC1C430); + psx_taken_BFC1C430 = (psx_brA_BFC1C430 == psx_brB_BFC1C430); /* 0xBFC1C434: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC1C430) goto label_BFC1C3F8; @@ -86204,7 +88751,7 @@ label_BFC1C43C: cpu->gpr[1] = 0x80080000u; /* 0xBFC1C440: 10000004 beq $zero, $zero, 0xBFC1C454 */ uint32_t psx_brA_BFC1C440 = cpu->gpr[0]; uint32_t psx_brB_BFC1C440 = cpu->gpr[0]; - int psx_taken_BFC1C440 = (psx_brA_BFC1C440 == psx_brB_BFC1C440); + psx_taken_BFC1C440 = (psx_brA_BFC1C440 == psx_brB_BFC1C440); /* 0xBFC1C444: AC2A9E5C sw $t2, -24996($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24996)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C444u); return; } g_debug_last_store_pc = 0xBFC1C444u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC1C440) goto label_BFC1C454; @@ -86228,7 +88775,7 @@ label_BFC1C454: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < cpu->gpr[11] ? 1 : 0); /* 0xBFC1C458: 14200013 bne $at, $zero, 0xBFC1C4A8 */ uint32_t psx_brA_BFC1C458 = cpu->gpr[1]; uint32_t psx_brB_BFC1C458 = cpu->gpr[0]; - int psx_taken_BFC1C458 = (psx_brA_BFC1C458 != psx_brB_BFC1C458); + psx_taken_BFC1C458 = (psx_brA_BFC1C458 != psx_brB_BFC1C458); /* 0xBFC1C45C: 00000000 nop */ /* nop */ if (psx_taken_BFC1C458) goto label_BFC1C4A8; @@ -86272,7 +88819,7 @@ label_BFC1C488: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (4)); /* 0xBFC1C498: 1020FFFB beq $at, $zero, 0xBFC1C488 */ uint32_t psx_brA_BFC1C498 = cpu->gpr[1]; uint32_t psx_brB_BFC1C498 = cpu->gpr[0]; - int psx_taken_BFC1C498 = (psx_brA_BFC1C498 == psx_brB_BFC1C498); + psx_taken_BFC1C498 = (psx_brA_BFC1C498 == psx_brB_BFC1C498); /* 0xBFC1C49C: AE39FFFC sw $t9, -4($s1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C49Cu); return; } g_debug_last_store_pc = 0xBFC1C49Cu; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC1C498) goto label_BFC1C488; @@ -86322,6 +88869,18 @@ void func_1FC1C4C0(CPUState* cpu) { default: break; } } + int psx_taken_BFC1C4D0 = 0; + int psx_taken_BFC1C4E4 = 0; + int psx_taken_BFC1C500 = 0; + int psx_taken_BFC1C518 = 0; + int psx_taken_BFC1C530 = 0; + int psx_taken_BFC1C538 = 0; + int psx_taken_BFC1C548 = 0; + int psx_taken_BFC1C550 = 0; + int psx_taken_BFC1C55C = 0; + int psx_taken_BFC1C570 = 0; + int psx_taken_BFC1C580 = 0; + int psx_taken_BFC1C598 = 0; label_BFC1C4C0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -86337,7 +88896,7 @@ label_BFC1C4C0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC1C4D0: 14610013 bne $v1, $at, 0xBFC1C520 */ uint32_t psx_brA_BFC1C4D0 = cpu->gpr[3]; uint32_t psx_brB_BFC1C4D0 = cpu->gpr[1]; - int psx_taken_BFC1C4D0 = (psx_brA_BFC1C4D0 != psx_brB_BFC1C4D0); + psx_taken_BFC1C4D0 = (psx_brA_BFC1C4D0 != psx_brB_BFC1C4D0); /* 0xBFC1C4D4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C4D4u); return; } g_debug_last_store_pc = 0xBFC1C4D4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1C4D0) goto label_BFC1C520; @@ -86354,7 +88913,7 @@ label_BFC1C4D8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC1C4E4: 14410008 bne $v0, $at, 0xBFC1C508 */ uint32_t psx_brA_BFC1C4E4 = cpu->gpr[2]; uint32_t psx_brB_BFC1C4E4 = cpu->gpr[1]; - int psx_taken_BFC1C4E4 = (psx_brA_BFC1C4E4 != psx_brB_BFC1C4E4); + psx_taken_BFC1C4E4 = (psx_brA_BFC1C4E4 != psx_brB_BFC1C4E4); /* 0xBFC1C4E8: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1C4E4) goto label_BFC1C508; @@ -86381,7 +88940,7 @@ label_BFC1C500: psx_check_interrupts(cpu); /* 0xBFC1C500: 1000002A beq $zero, $zero, 0xBFC1C5AC */ uint32_t psx_brA_BFC1C500 = cpu->gpr[0]; uint32_t psx_brB_BFC1C500 = cpu->gpr[0]; - int psx_taken_BFC1C500 = (psx_brA_BFC1C500 == psx_brB_BFC1C500); + psx_taken_BFC1C500 = (psx_brA_BFC1C500 == psx_brB_BFC1C500); /* 0xBFC1C504: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C504u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1C500) goto label_BFC1C5AC; @@ -86406,7 +88965,7 @@ label_BFC1C518: psx_check_interrupts(cpu); /* 0xBFC1C518: 10000024 beq $zero, $zero, 0xBFC1C5AC */ uint32_t psx_brA_BFC1C518 = cpu->gpr[0]; uint32_t psx_brB_BFC1C518 = cpu->gpr[0]; - int psx_taken_BFC1C518 = (psx_brA_BFC1C518 == psx_brB_BFC1C518); + psx_taken_BFC1C518 = (psx_brA_BFC1C518 == psx_brB_BFC1C518); /* 0xBFC1C51C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C51Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1C518) goto label_BFC1C5AC; @@ -86425,7 +88984,7 @@ label_BFC1C520: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC1C530: 10400015 beq $v0, $zero, 0xBFC1C588 */ uint32_t psx_brA_BFC1C530 = cpu->gpr[2]; uint32_t psx_brB_BFC1C530 = cpu->gpr[0]; - int psx_taken_BFC1C530 = (psx_brA_BFC1C530 == psx_brB_BFC1C530); + psx_taken_BFC1C530 = (psx_brA_BFC1C530 == psx_brB_BFC1C530); /* 0xBFC1C534: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1C530) goto label_BFC1C588; @@ -86436,7 +88995,7 @@ label_BFC1C538: psx_check_interrupts(cpu); /* 0xBFC1C538: 10410007 beq $v0, $at, 0xBFC1C558 */ uint32_t psx_brA_BFC1C538 = cpu->gpr[2]; uint32_t psx_brB_BFC1C538 = cpu->gpr[1]; - int psx_taken_BFC1C538 = (psx_brA_BFC1C538 == psx_brB_BFC1C538); + psx_taken_BFC1C538 = (psx_brA_BFC1C538 == psx_brB_BFC1C538); /* 0xBFC1C53C: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1C538) goto label_BFC1C558; @@ -86451,7 +89010,7 @@ label_BFC1C540: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC1C548: 10410006 beq $v0, $at, 0xBFC1C564 */ uint32_t psx_brA_BFC1C548 = cpu->gpr[2]; uint32_t psx_brB_BFC1C548 = cpu->gpr[1]; - int psx_taken_BFC1C548 = (psx_brA_BFC1C548 == psx_brB_BFC1C548); + psx_taken_BFC1C548 = (psx_brA_BFC1C548 == psx_brB_BFC1C548); /* 0xBFC1C54C: 00000000 nop */ /* nop */ if (psx_taken_BFC1C548) goto label_BFC1C564; @@ -86462,7 +89021,7 @@ label_BFC1C550: psx_check_interrupts(cpu); /* 0xBFC1C550: 1000000E beq $zero, $zero, 0xBFC1C58C */ uint32_t psx_brA_BFC1C550 = cpu->gpr[0]; uint32_t psx_brB_BFC1C550 = cpu->gpr[0]; - int psx_taken_BFC1C550 = (psx_brA_BFC1C550 == psx_brB_BFC1C550); + psx_taken_BFC1C550 = (psx_brA_BFC1C550 == psx_brB_BFC1C550); /* 0xBFC1C554: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1C550) goto label_BFC1C58C; @@ -86475,7 +89034,7 @@ label_BFC1C558: cpu->gpr[1] = 0x80080000u; /* 0xBFC1C55C: 1000000D beq $zero, $zero, 0xBFC1C594 */ uint32_t psx_brA_BFC1C55C = cpu->gpr[0]; uint32_t psx_brB_BFC1C55C = cpu->gpr[0]; - int psx_taken_BFC1C55C = (psx_brA_BFC1C55C == psx_brB_BFC1C55C); + psx_taken_BFC1C55C = (psx_brA_BFC1C55C == psx_brB_BFC1C55C); /* 0xBFC1C560: AC229F64 sw $v0, -24732($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24732)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C560u); return; } g_debug_last_store_pc = 0xBFC1C560u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC1C55C) goto label_BFC1C594; @@ -86492,7 +89051,7 @@ label_BFC1C564: /* nop */ /* 0xBFC1C570: 11C00009 beq $t6, $zero, 0xBFC1C598 */ uint32_t psx_brA_BFC1C570 = cpu->gpr[14]; uint32_t psx_brB_BFC1C570 = cpu->gpr[0]; - int psx_taken_BFC1C570 = (psx_brA_BFC1C570 == psx_brB_BFC1C570); + psx_taken_BFC1C570 = (psx_brA_BFC1C570 == psx_brB_BFC1C570); /* 0xBFC1C574: 24010034 addiu $at, $zero, 52 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC1C570) goto label_BFC1C598; @@ -86507,7 +89066,7 @@ label_BFC1C578: cpu->gpr[1] = 0x80080000u; /* 0xBFC1C580: 10000004 beq $zero, $zero, 0xBFC1C594 */ uint32_t psx_brA_BFC1C580 = cpu->gpr[0]; uint32_t psx_brB_BFC1C580 = cpu->gpr[0]; - int psx_taken_BFC1C580 = (psx_brA_BFC1C580 == psx_brB_BFC1C580); + psx_taken_BFC1C580 = (psx_brA_BFC1C580 == psx_brB_BFC1C580); /* 0xBFC1C584: AC229F64 sw $v0, -24732($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24732)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C584u); return; } g_debug_last_store_pc = 0xBFC1C584u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC1C580) goto label_BFC1C594; @@ -86541,7 +89100,7 @@ label_BFC1C598: psx_check_interrupts(cpu); /* 0xBFC1C598: 14610004 bne $v1, $at, 0xBFC1C5AC */ uint32_t psx_brA_BFC1C598 = cpu->gpr[3]; uint32_t psx_brB_BFC1C598 = cpu->gpr[1]; - int psx_taken_BFC1C598 = (psx_brA_BFC1C598 != psx_brB_BFC1C598); + psx_taken_BFC1C598 = (psx_brA_BFC1C598 != psx_brB_BFC1C598); /* 0xBFC1C59C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C59Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1C598) goto label_BFC1C5AC; @@ -86589,6 +89148,18 @@ void func_1FC1C5B8(CPUState* cpu) { default: break; } } + int psx_taken_BFC1C5D0 = 0; + int psx_taken_BFC1C5EC = 0; + int psx_taken_BFC1C610 = 0; + int psx_taken_BFC1C644 = 0; + int psx_taken_BFC1C654 = 0; + int psx_taken_BFC1C6A4 = 0; + int psx_taken_BFC1C6B8 = 0; + int psx_taken_BFC1C6C0 = 0; + int psx_taken_BFC1C6E0 = 0; + int psx_taken_BFC1C700 = 0; + int psx_taken_BFC1C70C = 0; + int psx_taken_BFC1C730 = 0; label_BFC1C5B8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -86608,7 +89179,7 @@ label_BFC1C5B8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC1C5D0: 11C10003 beq $t6, $at, 0xBFC1C5E0 */ uint32_t psx_brA_BFC1C5D0 = cpu->gpr[14]; uint32_t psx_brB_BFC1C5D0 = cpu->gpr[1]; - int psx_taken_BFC1C5D0 = (psx_brA_BFC1C5D0 == psx_brB_BFC1C5D0); + psx_taken_BFC1C5D0 = (psx_brA_BFC1C5D0 == psx_brB_BFC1C5D0); /* 0xBFC1C5D4: AFBF001C sw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C5D4u); return; } g_debug_last_store_pc = 0xBFC1C5D4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1C5D0) goto label_BFC1C5E0; @@ -86634,7 +89205,7 @@ label_BFC1C5E0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC1C5EC: 15E10005 bne $t7, $at, 0xBFC1C604 */ uint32_t psx_brA_BFC1C5EC = cpu->gpr[15]; uint32_t psx_brB_BFC1C5EC = cpu->gpr[1]; - int psx_taken_BFC1C5EC = (psx_brA_BFC1C5EC != psx_brB_BFC1C5EC); + psx_taken_BFC1C5EC = (psx_brA_BFC1C5EC != psx_brB_BFC1C5EC); /* 0xBFC1C5F0: 00000000 nop */ /* nop */ if (psx_taken_BFC1C5EC) goto label_BFC1C604; @@ -86664,7 +89235,7 @@ label_BFC1C604: /* nop */ /* 0xBFC1C610: 17200058 bne $t9, $zero, 0xBFC1C774 */ uint32_t psx_brA_BFC1C610 = cpu->gpr[25]; uint32_t psx_brB_BFC1C610 = cpu->gpr[0]; - int psx_taken_BFC1C610 = (psx_brA_BFC1C610 != psx_brB_BFC1C610); + psx_taken_BFC1C610 = (psx_brA_BFC1C610 != psx_brB_BFC1C610); /* 0xBFC1C614: 00000000 nop */ /* nop */ if (psx_taken_BFC1C610) goto label_BFC1C774; @@ -86703,7 +89274,7 @@ label_BFC1C638: /* nop */ /* 0xBFC1C644: 14600006 bne $v1, $zero, 0xBFC1C660 */ uint32_t psx_brA_BFC1C644 = cpu->gpr[3]; uint32_t psx_brB_BFC1C644 = cpu->gpr[0]; - int psx_taken_BFC1C644 = (psx_brA_BFC1C644 != psx_brB_BFC1C644); + psx_taken_BFC1C644 = (psx_brA_BFC1C644 != psx_brB_BFC1C644); /* 0xBFC1C648: 00035080 sll $t2, $v1, 2 */ cpu->gpr[10] = cpu->gpr[3] << 2u; if (psx_taken_BFC1C644) goto label_BFC1C660; @@ -86718,7 +89289,7 @@ label_BFC1C64C: cpu->gpr[9] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[9] + (-24976))); /* 0xBFC1C654: 10000007 beq $zero, $zero, 0xBFC1C674 */ uint32_t psx_brA_BFC1C654 = cpu->gpr[0]; uint32_t psx_brB_BFC1C654 = cpu->gpr[0]; - int psx_taken_BFC1C654 = (psx_brA_BFC1C654 == psx_brB_BFC1C654); + psx_taken_BFC1C654 = (psx_brA_BFC1C654 == psx_brB_BFC1C654); /* 0xBFC1C658: AFA90028 sw $t1, 40($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C658u); return; } g_debug_last_store_pc = 0xBFC1C658u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC1C654) goto label_BFC1C674; @@ -86780,7 +89351,7 @@ label_BFC1C694: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-8)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C6A0u); return; } g_debug_last_store_pc = 0xBFC1C6A0u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC1C6A4: 1443FFFB bne $v0, $v1, 0xBFC1C694 */ uint32_t psx_brA_BFC1C6A4 = cpu->gpr[2]; uint32_t psx_brB_BFC1C6A4 = cpu->gpr[3]; - int psx_taken_BFC1C6A4 = (psx_brA_BFC1C6A4 != psx_brB_BFC1C6A4); + psx_taken_BFC1C6A4 = (psx_brA_BFC1C6A4 != psx_brB_BFC1C6A4); /* 0xBFC1C6A8: AC40FFFC sw $zero, -4($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C6A8u); return; } g_debug_last_store_pc = 0xBFC1C6A8u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1C6A4) goto label_BFC1C694; @@ -86797,7 +89368,7 @@ label_BFC1C6AC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC1C6B8: 10410003 beq $v0, $at, 0xBFC1C6C8 */ uint32_t psx_brA_BFC1C6B8 = cpu->gpr[2]; uint32_t psx_brB_BFC1C6B8 = cpu->gpr[1]; - int psx_taken_BFC1C6B8 = (psx_brA_BFC1C6B8 == psx_brB_BFC1C6B8); + psx_taken_BFC1C6B8 = (psx_brA_BFC1C6B8 == psx_brB_BFC1C6B8); /* 0xBFC1C6BC: 24010034 addiu $at, $zero, 52 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC1C6B8) goto label_BFC1C6C8; @@ -86808,7 +89379,7 @@ label_BFC1C6C0: psx_check_interrupts(cpu); /* 0xBFC1C6C0: 1441002B bne $v0, $at, 0xBFC1C770 */ uint32_t psx_brA_BFC1C6C0 = cpu->gpr[2]; uint32_t psx_brB_BFC1C6C0 = cpu->gpr[1]; - int psx_taken_BFC1C6C0 = (psx_brA_BFC1C6C0 != psx_brB_BFC1C6C0); + psx_taken_BFC1C6C0 = (psx_brA_BFC1C6C0 != psx_brB_BFC1C6C0); /* 0xBFC1C6C4: 8FB00020 lw $s0, 32($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C6C4u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1C6C0) goto label_BFC1C770; @@ -86837,7 +89408,7 @@ label_BFC1C6D4: /* nop */ /* 0xBFC1C6E0: 15800018 bne $t4, $zero, 0xBFC1C744 */ uint32_t psx_brA_BFC1C6E0 = cpu->gpr[12]; uint32_t psx_brB_BFC1C6E0 = cpu->gpr[0]; - int psx_taken_BFC1C6E0 = (psx_brA_BFC1C6E0 != psx_brB_BFC1C6E0); + psx_taken_BFC1C6E0 = (psx_brA_BFC1C6E0 != psx_brB_BFC1C6E0); /* 0xBFC1C6E4: 00000000 nop */ /* nop */ if (psx_taken_BFC1C6E0) goto label_BFC1C744; @@ -86860,7 +89431,7 @@ label_BFC1C6E8: cpu->gpr[1] = (uint32_t)(cpu->gpr[13] < cpu->gpr[2] ? 1 : 0); /* 0xBFC1C700: 1420000D bne $at, $zero, 0xBFC1C738 */ uint32_t psx_brA_BFC1C700 = cpu->gpr[1]; uint32_t psx_brB_BFC1C700 = cpu->gpr[0]; - int psx_taken_BFC1C700 = (psx_brA_BFC1C700 != psx_brB_BFC1C700); + psx_taken_BFC1C700 = (psx_brA_BFC1C700 != psx_brB_BFC1C700); /* 0xBFC1C704: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1C700) goto label_BFC1C738; @@ -86878,7 +89449,7 @@ label_BFC1C70C: psx_check_interrupts(cpu); /* 0xBFC1C70C: 1020000B beq $at, $zero, 0xBFC1C73C */ uint32_t psx_brA_BFC1C70C = cpu->gpr[1]; uint32_t psx_brB_BFC1C70C = cpu->gpr[0]; - int psx_taken_BFC1C70C = (psx_brA_BFC1C70C == psx_brB_BFC1C70C); + psx_taken_BFC1C70C = (psx_brA_BFC1C70C == psx_brB_BFC1C70C); /* 0xBFC1C710: 8FA40028 lw $a0, 40($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C710u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC1C70C) goto label_BFC1C73C; @@ -86909,7 +89480,7 @@ label_BFC1C720: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < cpu->gpr[16] ? 1 : 0); /* 0xBFC1C730: 1020FFF6 beq $at, $zero, 0xBFC1C70C */ uint32_t psx_brA_BFC1C730 = cpu->gpr[1]; uint32_t psx_brB_BFC1C730 = cpu->gpr[0]; - int psx_taken_BFC1C730 = (psx_brA_BFC1C730 == psx_brB_BFC1C730); + psx_taken_BFC1C730 = (psx_brA_BFC1C730 == psx_brB_BFC1C730); /* 0xBFC1C734: 2A010015 slti $at, $s0, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (21) ? 1 : 0); if (psx_taken_BFC1C730) goto label_BFC1C70C; @@ -87009,6 +89580,19 @@ void func_1FC1C78C(CPUState* cpu) { default: break; } } + int psx_taken_BFC1C79C = 0; + int psx_taken_BFC1C7A8 = 0; + int psx_taken_BFC1C7B8 = 0; + int psx_taken_BFC1C7C0 = 0; + int psx_taken_BFC1C7D4 = 0; + int psx_taken_BFC1C7E8 = 0; + int psx_taken_BFC1C810 = 0; + int psx_taken_BFC1C838 = 0; + int psx_taken_BFC1C84C = 0; + int psx_taken_BFC1C860 = 0; + int psx_taken_BFC1C888 = 0; + int psx_taken_BFC1C8A0 = 0; + int psx_taken_BFC1C8B4 = 0; label_BFC1C78C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -87024,7 +89608,7 @@ label_BFC1C78C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC1C79C: 1040003C beq $v0, $zero, 0xBFC1C890 */ uint32_t psx_brA_BFC1C79C = cpu->gpr[2]; uint32_t psx_brB_BFC1C79C = cpu->gpr[0]; - int psx_taken_BFC1C79C = (psx_brA_BFC1C79C == psx_brB_BFC1C79C); + psx_taken_BFC1C79C = (psx_brA_BFC1C79C == psx_brB_BFC1C79C); /* 0xBFC1C7A0: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C7A0u); return; } g_debug_last_store_pc = 0xBFC1C7A0u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1C79C) goto label_BFC1C890; @@ -87037,7 +89621,7 @@ label_BFC1C7A4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1C7A8: 10410007 beq $v0, $at, 0xBFC1C7C8 */ uint32_t psx_brA_BFC1C7A8 = cpu->gpr[2]; uint32_t psx_brB_BFC1C7A8 = cpu->gpr[1]; - int psx_taken_BFC1C7A8 = (psx_brA_BFC1C7A8 == psx_brB_BFC1C7A8); + psx_taken_BFC1C7A8 = (psx_brA_BFC1C7A8 == psx_brB_BFC1C7A8); /* 0xBFC1C7AC: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1C7A8) goto label_BFC1C7C8; @@ -87052,7 +89636,7 @@ label_BFC1C7B0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC1C7B8: 10410021 beq $v0, $at, 0xBFC1C840 */ uint32_t psx_brA_BFC1C7B8 = cpu->gpr[2]; uint32_t psx_brB_BFC1C7B8 = cpu->gpr[1]; - int psx_taken_BFC1C7B8 = (psx_brA_BFC1C7B8 == psx_brB_BFC1C7B8); + psx_taken_BFC1C7B8 = (psx_brA_BFC1C7B8 == psx_brB_BFC1C7B8); /* 0xBFC1C7BC: 00000000 nop */ /* nop */ if (psx_taken_BFC1C7B8) goto label_BFC1C840; @@ -87063,7 +89647,7 @@ label_BFC1C7C0: psx_check_interrupts(cpu); /* 0xBFC1C7C0: 10000033 beq $zero, $zero, 0xBFC1C890 */ uint32_t psx_brA_BFC1C7C0 = cpu->gpr[0]; uint32_t psx_brB_BFC1C7C0 = cpu->gpr[0]; - int psx_taken_BFC1C7C0 = (psx_brA_BFC1C7C0 == psx_brB_BFC1C7C0); + psx_taken_BFC1C7C0 = (psx_brA_BFC1C7C0 == psx_brB_BFC1C7C0); /* 0xBFC1C7C4: 00000000 nop */ /* nop */ if (psx_taken_BFC1C7C0) goto label_BFC1C890; @@ -87080,7 +89664,7 @@ label_BFC1C7C8: cpu->gpr[1] = 0x80080000u; /* 0xBFC1C7D4: 15C00006 bne $t6, $zero, 0xBFC1C7F0 */ uint32_t psx_brA_BFC1C7D4 = cpu->gpr[14]; uint32_t psx_brB_BFC1C7D4 = cpu->gpr[0]; - int psx_taken_BFC1C7D4 = (psx_brA_BFC1C7D4 != psx_brB_BFC1C7D4); + psx_taken_BFC1C7D4 = (psx_brA_BFC1C7D4 != psx_brB_BFC1C7D4); /* 0xBFC1C7D8: AC229F68 sw $v0, -24728($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24728)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C7D8u); return; } g_debug_last_store_pc = 0xBFC1C7D8u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC1C7D4) goto label_BFC1C7F0; @@ -87097,7 +89681,7 @@ label_BFC1C7DC: /* nop */ /* 0xBFC1C7E8: 11E0000C beq $t7, $zero, 0xBFC1C81C */ uint32_t psx_brA_BFC1C7E8 = cpu->gpr[15]; uint32_t psx_brB_BFC1C7E8 = cpu->gpr[0]; - int psx_taken_BFC1C7E8 = (psx_brA_BFC1C7E8 == psx_brB_BFC1C7E8); + psx_taken_BFC1C7E8 = (psx_brA_BFC1C7E8 == psx_brB_BFC1C7E8); /* 0xBFC1C7EC: 24040034 addiu $a0, $zero, 52 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC1C7E8) goto label_BFC1C81C; @@ -87136,7 +89720,7 @@ label_BFC1C808: cpu->gpr[1] = 0x80080000u; /* 0xBFC1C810: 10000007 beq $zero, $zero, 0xBFC1C830 */ uint32_t psx_brA_BFC1C810 = cpu->gpr[0]; uint32_t psx_brB_BFC1C810 = cpu->gpr[0]; - int psx_taken_BFC1C810 = (psx_brA_BFC1C810 == psx_brB_BFC1C810); + psx_taken_BFC1C810 = (psx_brA_BFC1C810 == psx_brB_BFC1C810); /* 0xBFC1C814: AC229F68 sw $v0, -24728($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24728)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C814u); return; } g_debug_last_store_pc = 0xBFC1C814u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC1C810) goto label_BFC1C830; @@ -87186,7 +89770,7 @@ label_BFC1C838: psx_check_interrupts(cpu); /* 0xBFC1C838: 10000029 beq $zero, $zero, 0xBFC1C8E0 */ uint32_t psx_brA_BFC1C838 = cpu->gpr[0]; uint32_t psx_brB_BFC1C838 = cpu->gpr[0]; - int psx_taken_BFC1C838 = (psx_brA_BFC1C838 == psx_brB_BFC1C838); + psx_taken_BFC1C838 = (psx_brA_BFC1C838 == psx_brB_BFC1C838); /* 0xBFC1C83C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C83Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1C838) goto label_BFC1C8E0; @@ -87203,7 +89787,7 @@ label_BFC1C840: /* nop */ /* 0xBFC1C84C: 17000009 bne $t8, $zero, 0xBFC1C874 */ uint32_t psx_brA_BFC1C84C = cpu->gpr[24]; uint32_t psx_brB_BFC1C84C = cpu->gpr[0]; - int psx_taken_BFC1C84C = (psx_brA_BFC1C84C != psx_brB_BFC1C84C); + psx_taken_BFC1C84C = (psx_brA_BFC1C84C != psx_brB_BFC1C84C); /* 0xBFC1C850: 24040034 addiu $a0, $zero, 52 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC1C84C) goto label_BFC1C874; @@ -87220,7 +89804,7 @@ label_BFC1C854: /* nop */ /* 0xBFC1C860: 17200004 bne $t9, $zero, 0xBFC1C874 */ uint32_t psx_brA_BFC1C860 = cpu->gpr[25]; uint32_t psx_brB_BFC1C860 = cpu->gpr[0]; - int psx_taken_BFC1C860 = (psx_brA_BFC1C860 != psx_brB_BFC1C860); + psx_taken_BFC1C860 = (psx_brA_BFC1C860 != psx_brB_BFC1C860); /* 0xBFC1C864: 24040034 addiu $a0, $zero, 52 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC1C860) goto label_BFC1C874; @@ -87270,7 +89854,7 @@ label_BFC1C888: psx_check_interrupts(cpu); /* 0xBFC1C888: 10000015 beq $zero, $zero, 0xBFC1C8E0 */ uint32_t psx_brA_BFC1C888 = cpu->gpr[0]; uint32_t psx_brB_BFC1C888 = cpu->gpr[0]; - int psx_taken_BFC1C888 = (psx_brA_BFC1C888 == psx_brB_BFC1C888); + psx_taken_BFC1C888 = (psx_brA_BFC1C888 == psx_brB_BFC1C888); /* 0xBFC1C88C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C88Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1C888) goto label_BFC1C8E0; @@ -87289,7 +89873,7 @@ label_BFC1C890: cpu->gpr[1] = 0x80080000u; /* 0xBFC1C8A0: 15000008 bne $t0, $zero, 0xBFC1C8C4 */ uint32_t psx_brA_BFC1C8A0 = cpu->gpr[8]; uint32_t psx_brB_BFC1C8A0 = cpu->gpr[0]; - int psx_taken_BFC1C8A0 = (psx_brA_BFC1C8A0 != psx_brB_BFC1C8A0); + psx_taken_BFC1C8A0 = (psx_brA_BFC1C8A0 != psx_brB_BFC1C8A0); /* 0xBFC1C8A4: AC229F68 sw $v0, -24728($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24728)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C8A4u); return; } g_debug_last_store_pc = 0xBFC1C8A4u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC1C8A0) goto label_BFC1C8C4; @@ -87306,7 +89890,7 @@ label_BFC1C8A8: /* nop */ /* 0xBFC1C8B4: 15200004 bne $t1, $zero, 0xBFC1C8C8 */ uint32_t psx_brA_BFC1C8B4 = cpu->gpr[9]; uint32_t psx_brB_BFC1C8B4 = cpu->gpr[0]; - int psx_taken_BFC1C8B4 = (psx_brA_BFC1C8B4 != psx_brB_BFC1C8B4); + psx_taken_BFC1C8B4 = (psx_brA_BFC1C8B4 != psx_brB_BFC1C8B4); /* 0xBFC1C8B8: 24040034 addiu $a0, $zero, 52 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC1C8B4) goto label_BFC1C8C8; @@ -87381,6 +89965,7 @@ void func_1FC1C8EC(CPUState* cpu) { default: break; } } + int psx_taken_BFC1C914 = 0; label_BFC1C8EC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -87414,7 +89999,7 @@ label_BFC1C904: cpu->gpr[15] = cpu->gpr[14] & cpu->gpr[1]; /* 0xBFC1C914: 11E00015 beq $t7, $zero, 0xBFC1C96C */ uint32_t psx_brA_BFC1C914 = cpu->gpr[15]; uint32_t psx_brB_BFC1C914 = cpu->gpr[0]; - int psx_taken_BFC1C914 = (psx_brA_BFC1C914 == psx_brB_BFC1C914); + psx_taken_BFC1C914 = (psx_brA_BFC1C914 == psx_brB_BFC1C914); /* 0xBFC1C918: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C918u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1C914) goto label_BFC1C96C; @@ -87570,6 +90155,22 @@ void func_1FC1C9B4(CPUState* cpu) { default: break; } } + int psx_taken_BFC1C9C0 = 0; + int psx_taken_BFC1C9D4 = 0; + int psx_taken_BFC1C9E8 = 0; + int psx_taken_BFC1C9F8 = 0; + int psx_taken_BFC1CA0C = 0; + int psx_taken_BFC1CA1C = 0; + int psx_taken_BFC1CA2C = 0; + int psx_taken_BFC1CA40 = 0; + int psx_taken_BFC1CA50 = 0; + int psx_taken_BFC1CA64 = 0; + int psx_taken_BFC1CA74 = 0; + int psx_taken_BFC1CA88 = 0; + int psx_taken_BFC1CA98 = 0; + int psx_taken_BFC1CAAC = 0; + int psx_taken_BFC1CABC = 0; + int psx_taken_BFC1CAD0 = 0; label_BFC1C9B4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -87583,7 +90184,7 @@ label_BFC1C9B4: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC1C9C0: 15C00047 bne $t6, $zero, 0xBFC1CAE0 */ uint32_t psx_brA_BFC1C9C0 = cpu->gpr[14]; uint32_t psx_brB_BFC1C9C0 = cpu->gpr[0]; - int psx_taken_BFC1C9C0 = (psx_brA_BFC1C9C0 != psx_brB_BFC1C9C0); + psx_taken_BFC1C9C0 = (psx_brA_BFC1C9C0 != psx_brB_BFC1C9C0); /* 0xBFC1C9C4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C9C4u); return; } g_debug_last_store_pc = 0xBFC1C9C4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1C9C0) goto label_BFC1CAE0; @@ -87600,7 +90201,7 @@ label_BFC1C9C8: /* nop */ /* 0xBFC1C9D4: 15E00043 bne $t7, $zero, 0xBFC1CAE4 */ uint32_t psx_brA_BFC1C9D4 = cpu->gpr[15]; uint32_t psx_brB_BFC1C9D4 = cpu->gpr[0]; - int psx_taken_BFC1C9D4 = (psx_brA_BFC1C9D4 != psx_brB_BFC1C9D4); + psx_taken_BFC1C9D4 = (psx_brA_BFC1C9D4 != psx_brB_BFC1C9D4); /* 0xBFC1C9D8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1C9D8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1C9D4) goto label_BFC1CAE4; @@ -87617,7 +90218,7 @@ label_BFC1C9DC: /* nop */ /* 0xBFC1C9E8: 1300003D beq $t8, $zero, 0xBFC1CAE0 */ uint32_t psx_brA_BFC1C9E8 = cpu->gpr[24]; uint32_t psx_brB_BFC1C9E8 = cpu->gpr[0]; - int psx_taken_BFC1C9E8 = (psx_brA_BFC1C9E8 == psx_brB_BFC1C9E8); + psx_taken_BFC1C9E8 = (psx_brA_BFC1C9E8 == psx_brB_BFC1C9E8); /* 0xBFC1C9EC: 3C010800 lui $at, 0x800 */ cpu->gpr[1] = 0x08000000u; if (psx_taken_BFC1C9E8) goto label_BFC1CAE0; @@ -87632,7 +90233,7 @@ label_BFC1C9F0: cpu->gpr[25] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC1C9F8: 1320000F beq $t9, $zero, 0xBFC1CA38 */ uint32_t psx_brA_BFC1C9F8 = cpu->gpr[25]; uint32_t psx_brB_BFC1C9F8 = cpu->gpr[0]; - int psx_taken_BFC1C9F8 = (psx_brA_BFC1C9F8 == psx_brB_BFC1C9F8); + psx_taken_BFC1C9F8 = (psx_brA_BFC1C9F8 == psx_brB_BFC1C9F8); /* 0xBFC1C9FC: 3C010100 lui $at, 0x100 */ cpu->gpr[1] = 0x01000000u; if (psx_taken_BFC1C9F8) goto label_BFC1CA38; @@ -87649,7 +90250,7 @@ label_BFC1CA00: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC1CA0C: 15010005 bne $t0, $at, 0xBFC1CA24 */ uint32_t psx_brA_BFC1CA0C = cpu->gpr[8]; uint32_t psx_brB_BFC1CA0C = cpu->gpr[1]; - int psx_taken_BFC1CA0C = (psx_brA_BFC1CA0C != psx_brB_BFC1CA0C); + psx_taken_BFC1CA0C = (psx_brA_BFC1CA0C != psx_brB_BFC1CA0C); /* 0xBFC1CA10: 00000000 nop */ /* nop */ if (psx_taken_BFC1CA0C) goto label_BFC1CA24; @@ -87670,7 +90271,7 @@ label_BFC1CA1C: psx_check_interrupts(cpu); /* 0xBFC1CA1C: 10000031 beq $zero, $zero, 0xBFC1CAE4 */ uint32_t psx_brA_BFC1CA1C = cpu->gpr[0]; uint32_t psx_brB_BFC1CA1C = cpu->gpr[0]; - int psx_taken_BFC1CA1C = (psx_brA_BFC1CA1C == psx_brB_BFC1CA1C); + psx_taken_BFC1CA1C = (psx_brA_BFC1CA1C == psx_brB_BFC1CA1C); /* 0xBFC1CA20: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CA20u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1CA1C) goto label_BFC1CAE4; @@ -87691,7 +90292,7 @@ label_BFC1CA2C: psx_check_interrupts(cpu); /* 0xBFC1CA2C: 1000002D beq $zero, $zero, 0xBFC1CAE4 */ uint32_t psx_brA_BFC1CA2C = cpu->gpr[0]; uint32_t psx_brB_BFC1CA2C = cpu->gpr[0]; - int psx_taken_BFC1CA2C = (psx_brA_BFC1CA2C == psx_brB_BFC1CA2C); + psx_taken_BFC1CA2C = (psx_brA_BFC1CA2C == psx_brB_BFC1CA2C); /* 0xBFC1CA30: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CA30u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1CA2C) goto label_BFC1CAE4; @@ -87713,7 +90314,7 @@ label_BFC1CA38: cpu->gpr[9] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC1CA40: 11200006 beq $t1, $zero, 0xBFC1CA5C */ uint32_t psx_brA_BFC1CA40 = cpu->gpr[9]; uint32_t psx_brB_BFC1CA40 = cpu->gpr[0]; - int psx_taken_BFC1CA40 = (psx_brA_BFC1CA40 == psx_brB_BFC1CA40); + psx_taken_BFC1CA40 = (psx_brA_BFC1CA40 == psx_brB_BFC1CA40); /* 0xBFC1CA44: 3C010008 lui $at, 0x8 */ cpu->gpr[1] = 0x00080000u; if (psx_taken_BFC1CA40) goto label_BFC1CA5C; @@ -87734,7 +90335,7 @@ label_BFC1CA50: psx_check_interrupts(cpu); /* 0xBFC1CA50: 10000024 beq $zero, $zero, 0xBFC1CAE4 */ uint32_t psx_brA_BFC1CA50 = cpu->gpr[0]; uint32_t psx_brB_BFC1CA50 = cpu->gpr[0]; - int psx_taken_BFC1CA50 = (psx_brA_BFC1CA50 == psx_brB_BFC1CA50); + psx_taken_BFC1CA50 = (psx_brA_BFC1CA50 == psx_brB_BFC1CA50); /* 0xBFC1CA54: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CA54u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1CA50) goto label_BFC1CAE4; @@ -87756,7 +90357,7 @@ label_BFC1CA5C: cpu->gpr[10] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC1CA64: 11400006 beq $t2, $zero, 0xBFC1CA80 */ uint32_t psx_brA_BFC1CA64 = cpu->gpr[10]; uint32_t psx_brB_BFC1CA64 = cpu->gpr[0]; - int psx_taken_BFC1CA64 = (psx_brA_BFC1CA64 == psx_brB_BFC1CA64); + psx_taken_BFC1CA64 = (psx_brA_BFC1CA64 == psx_brB_BFC1CA64); /* 0xBFC1CA68: 3C010004 lui $at, 0x4 */ cpu->gpr[1] = 0x00040000u; if (psx_taken_BFC1CA64) goto label_BFC1CA80; @@ -87777,7 +90378,7 @@ label_BFC1CA74: psx_check_interrupts(cpu); /* 0xBFC1CA74: 1000001B beq $zero, $zero, 0xBFC1CAE4 */ uint32_t psx_brA_BFC1CA74 = cpu->gpr[0]; uint32_t psx_brB_BFC1CA74 = cpu->gpr[0]; - int psx_taken_BFC1CA74 = (psx_brA_BFC1CA74 == psx_brB_BFC1CA74); + psx_taken_BFC1CA74 = (psx_brA_BFC1CA74 == psx_brB_BFC1CA74); /* 0xBFC1CA78: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CA78u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1CA74) goto label_BFC1CAE4; @@ -87799,7 +90400,7 @@ label_BFC1CA80: cpu->gpr[11] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC1CA88: 11600006 beq $t3, $zero, 0xBFC1CAA4 */ uint32_t psx_brA_BFC1CA88 = cpu->gpr[11]; uint32_t psx_brB_BFC1CA88 = cpu->gpr[0]; - int psx_taken_BFC1CA88 = (psx_brA_BFC1CA88 == psx_brB_BFC1CA88); + psx_taken_BFC1CA88 = (psx_brA_BFC1CA88 == psx_brB_BFC1CA88); /* 0xBFC1CA8C: 3C010002 lui $at, 0x2 */ cpu->gpr[1] = 0x00020000u; if (psx_taken_BFC1CA88) goto label_BFC1CAA4; @@ -87820,7 +90421,7 @@ label_BFC1CA98: psx_check_interrupts(cpu); /* 0xBFC1CA98: 10000012 beq $zero, $zero, 0xBFC1CAE4 */ uint32_t psx_brA_BFC1CA98 = cpu->gpr[0]; uint32_t psx_brB_BFC1CA98 = cpu->gpr[0]; - int psx_taken_BFC1CA98 = (psx_brA_BFC1CA98 == psx_brB_BFC1CA98); + psx_taken_BFC1CA98 = (psx_brA_BFC1CA98 == psx_brB_BFC1CA98); /* 0xBFC1CA9C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CA9Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1CA98) goto label_BFC1CAE4; @@ -87842,7 +90443,7 @@ label_BFC1CAA4: cpu->gpr[12] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC1CAAC: 11800006 beq $t4, $zero, 0xBFC1CAC8 */ uint32_t psx_brA_BFC1CAAC = cpu->gpr[12]; uint32_t psx_brB_BFC1CAAC = cpu->gpr[0]; - int psx_taken_BFC1CAAC = (psx_brA_BFC1CAAC == psx_brB_BFC1CAAC); + psx_taken_BFC1CAAC = (psx_brA_BFC1CAAC == psx_brB_BFC1CAAC); /* 0xBFC1CAB0: 3C010001 lui $at, 0x1 */ cpu->gpr[1] = 0x00010000u; if (psx_taken_BFC1CAAC) goto label_BFC1CAC8; @@ -87863,7 +90464,7 @@ label_BFC1CABC: psx_check_interrupts(cpu); /* 0xBFC1CABC: 10000009 beq $zero, $zero, 0xBFC1CAE4 */ uint32_t psx_brA_BFC1CABC = cpu->gpr[0]; uint32_t psx_brB_BFC1CABC = cpu->gpr[0]; - int psx_taken_BFC1CABC = (psx_brA_BFC1CABC == psx_brB_BFC1CABC); + psx_taken_BFC1CABC = (psx_brA_BFC1CABC == psx_brB_BFC1CABC); /* 0xBFC1CAC0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CAC0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1CABC) goto label_BFC1CAE4; @@ -87885,7 +90486,7 @@ label_BFC1CAC8: cpu->gpr[13] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC1CAD0: 11A00004 beq $t5, $zero, 0xBFC1CAE4 */ uint32_t psx_brA_BFC1CAD0 = cpu->gpr[13]; uint32_t psx_brB_BFC1CAD0 = cpu->gpr[0]; - int psx_taken_BFC1CAD0 = (psx_brA_BFC1CAD0 == psx_brB_BFC1CAD0); + psx_taken_BFC1CAD0 = (psx_brA_BFC1CAD0 == psx_brB_BFC1CAD0); /* 0xBFC1CAD4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CAD4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1CAD0) goto label_BFC1CAE4; @@ -87937,6 +90538,8 @@ void func_1FC1CAF0(CPUState* cpu) { default: break; } } + int psx_taken_BFC1CB00 = 0; + int psx_taken_BFC1CB4C = 0; label_BFC1CAF0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -87952,7 +90555,7 @@ label_BFC1CAF0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC1CB00: 15C10026 bne $t6, $at, 0xBFC1CB9C */ uint32_t psx_brA_BFC1CB00 = cpu->gpr[14]; uint32_t psx_brB_BFC1CB00 = cpu->gpr[1]; - int psx_taken_BFC1CB00 = (psx_brA_BFC1CB00 != psx_brB_BFC1CB00); + psx_taken_BFC1CB00 = (psx_brA_BFC1CB00 != psx_brB_BFC1CB00); /* 0xBFC1CB04: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CB04u); return; } g_debug_last_store_pc = 0xBFC1CB04u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1CB00) goto label_BFC1CB9C; @@ -88020,7 +90623,7 @@ label_BFC1CB48: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC1CB4C: 1611FFF7 bne $s0, $s1, 0xBFC1CB2C */ uint32_t psx_brA_BFC1CB4C = cpu->gpr[16]; uint32_t psx_brB_BFC1CB4C = cpu->gpr[17]; - int psx_taken_BFC1CB4C = (psx_brA_BFC1CB4C != psx_brB_BFC1CB4C); + psx_taken_BFC1CB4C = (psx_brA_BFC1CB4C != psx_brB_BFC1CB4C); /* 0xBFC1CB50: 02002021 addu $a0, $s0, $zero */ cpu->gpr[4] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC1CB4C) goto label_BFC1CB2C; @@ -88129,6 +90732,14 @@ void func_1FC1CBAC(CPUState* cpu) { default: break; } } + int psx_taken_BFC1CBC4 = 0; + int psx_taken_BFC1CBD8 = 0; + int psx_taken_BFC1CC80 = 0; + int psx_taken_BFC1CCA8 = 0; + int psx_taken_BFC1CCC4 = 0; + int psx_taken_BFC1CCD4 = 0; + int psx_taken_BFC1CCE8 = 0; + int psx_taken_BFC1CCF8 = 0; label_BFC1CBAC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -88148,7 +90759,7 @@ label_BFC1CBAC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CBC0u); return; } g_debug_last_store_pc = 0xBFC1CBC0u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC1CBC4: 15CF0007 bne $t6, $t7, 0xBFC1CBE4 */ uint32_t psx_brA_BFC1CBC4 = cpu->gpr[14]; uint32_t psx_brB_BFC1CBC4 = cpu->gpr[15]; - int psx_taken_BFC1CBC4 = (psx_brA_BFC1CBC4 != psx_brB_BFC1CBC4); + psx_taken_BFC1CBC4 = (psx_brA_BFC1CBC4 != psx_brB_BFC1CBC4); /* 0xBFC1CBC8: 8FA50030 lw $a1, 48($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (48)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CBC8u); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } if (psx_taken_BFC1CBC4) goto label_BFC1CBE4; @@ -88171,7 +90782,7 @@ label_BFC1CBD8: psx_check_interrupts(cpu); /* 0xBFC1CBD8: 10000006 beq $zero, $zero, 0xBFC1CBF4 */ uint32_t psx_brA_BFC1CBD8 = cpu->gpr[0]; uint32_t psx_brB_BFC1CBD8 = cpu->gpr[0]; - int psx_taken_BFC1CBD8 = (psx_brA_BFC1CBD8 == psx_brB_BFC1CBD8); + psx_taken_BFC1CBD8 = (psx_brA_BFC1CBD8 == psx_brB_BFC1CBD8); /* 0xBFC1CBDC: 93A6002B lbu $a2, 43($sp) */ cpu->gpr[6] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (43))); if (psx_taken_BFC1CBD8) goto label_BFC1CBF4; @@ -88284,7 +90895,7 @@ label_BFC1CC3C: cpu->gpr[2] = cpu->gpr[2] - cpu->gpr[9]; /* 0xBFC1CC80: 04410003 bgez $v0, 0xBFC1CC90 */ uint32_t psx_brA_BFC1CC80 = cpu->gpr[2]; - int psx_taken_BFC1CC80 = ((int32_t)psx_brA_BFC1CC80 >= 0); + psx_taken_BFC1CC80 = ((int32_t)psx_brA_BFC1CC80 >= 0); /* 0xBFC1CC84: 006F1823 subu $v1, $v1, $t7 */ cpu->gpr[3] = cpu->gpr[3] - cpu->gpr[15]; if (psx_taken_BFC1CC80) goto label_BFC1CC90; @@ -88316,7 +90927,7 @@ label_BFC1CC90: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (60) ? 1 : 0); /* 0xBFC1CCA8: 14200003 bne $at, $zero, 0xBFC1CCB8 */ uint32_t psx_brA_BFC1CCA8 = cpu->gpr[1]; uint32_t psx_brB_BFC1CCA8 = cpu->gpr[0]; - int psx_taken_BFC1CCA8 = (psx_brA_BFC1CCA8 != psx_brB_BFC1CCA8); + psx_taken_BFC1CCA8 = (psx_brA_BFC1CCA8 != psx_brB_BFC1CCA8); /* 0xBFC1CCAC: 00A32821 addu $a1, $a1, $v1 */ cpu->gpr[5] = cpu->gpr[5] + cpu->gpr[3]; if (psx_taken_BFC1CCA8) goto label_BFC1CCB8; @@ -88342,7 +90953,7 @@ label_BFC1CCB8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC1CCC4: 11410005 beq $t2, $at, 0xBFC1CCDC */ uint32_t psx_brA_BFC1CCC4 = cpu->gpr[10]; uint32_t psx_brB_BFC1CCC4 = cpu->gpr[1]; - int psx_taken_BFC1CCC4 = (psx_brA_BFC1CCC4 == psx_brB_BFC1CCC4); + psx_taken_BFC1CCC4 = (psx_brA_BFC1CCC4 == psx_brB_BFC1CCC4); /* 0xBFC1CCC8: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1CCC4) goto label_BFC1CCDC; @@ -88357,7 +90968,7 @@ label_BFC1CCCC: cpu->gpr[1] = 0x80080000u; /* 0xBFC1CCD4: 10000016 beq $zero, $zero, 0xBFC1CD30 */ uint32_t psx_brA_BFC1CCD4 = cpu->gpr[0]; uint32_t psx_brB_BFC1CCD4 = cpu->gpr[0]; - int psx_taken_BFC1CCD4 = (psx_brA_BFC1CCD4 == psx_brB_BFC1CCD4); + psx_taken_BFC1CCD4 = (psx_brA_BFC1CCD4 == psx_brB_BFC1CCD4); /* 0xBFC1CCD8: AC249FA4 sw $a0, -24668($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24668)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CCD8u); return; } g_debug_last_store_pc = 0xBFC1CCD8u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC1CCD4) goto label_BFC1CD30; @@ -88374,7 +90985,7 @@ label_BFC1CCDC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC1CCE8: 15610005 bne $t3, $at, 0xBFC1CD00 */ uint32_t psx_brA_BFC1CCE8 = cpu->gpr[11]; uint32_t psx_brB_BFC1CCE8 = cpu->gpr[1]; - int psx_taken_BFC1CCE8 = (psx_brA_BFC1CCE8 != psx_brB_BFC1CCE8); + psx_taken_BFC1CCE8 = (psx_brA_BFC1CCE8 != psx_brB_BFC1CCE8); /* 0xBFC1CCEC: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1CCE8) goto label_BFC1CD00; @@ -88389,7 +91000,7 @@ label_BFC1CCF0: cpu->gpr[1] = 0x80080000u; /* 0xBFC1CCF8: 1000000D beq $zero, $zero, 0xBFC1CD30 */ uint32_t psx_brA_BFC1CCF8 = cpu->gpr[0]; uint32_t psx_brB_BFC1CCF8 = cpu->gpr[0]; - int psx_taken_BFC1CCF8 = (psx_brA_BFC1CCF8 == psx_brB_BFC1CCF8); + psx_taken_BFC1CCF8 = (psx_brA_BFC1CCF8 == psx_brB_BFC1CCF8); /* 0xBFC1CCFC: AC249FA4 sw $a0, -24668($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24668)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CCFCu); return; } g_debug_last_store_pc = 0xBFC1CCFCu; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC1CCF8) goto label_BFC1CD30; @@ -88440,6 +91051,7 @@ label_BFC1CD30: void func_1FC1CD40(CPUState* cpu) { debug_server_log_call_entry(0x1FC1CD40u); + int psx_taken_BFC1CD5C = 0; label_BFC1CD40: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -88461,7 +91073,7 @@ label_BFC1CD40: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1CD5C: 11C10002 beq $t6, $at, 0xBFC1CD68 */ uint32_t psx_brA_BFC1CD5C = cpu->gpr[14]; uint32_t psx_brB_BFC1CD5C = cpu->gpr[1]; - int psx_taken_BFC1CD5C = (psx_brA_BFC1CD5C == psx_brB_BFC1CD5C); + psx_taken_BFC1CD5C = (psx_brA_BFC1CD5C == psx_brB_BFC1CD5C); /* 0xBFC1CD60: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1CD5C) goto label_BFC1CD68; @@ -88615,6 +91227,68 @@ void func_1FC1CDD8(CPUState* cpu) { default: break; } } + int psx_taken_BFC1CDE8 = 0; + int psx_taken_BFC1CDFC = 0; + int psx_taken_BFC1CE1C = 0; + int psx_taken_BFC1CE34 = 0; + int psx_taken_BFC1CE64 = 0; + int psx_taken_BFC1CE6C = 0; + int psx_taken_BFC1CE74 = 0; + int psx_taken_BFC1CE7C = 0; + int psx_taken_BFC1CE84 = 0; + int psx_taken_BFC1CEA8 = 0; + int psx_taken_BFC1CEB8 = 0; + int psx_taken_BFC1CECC = 0; + int psx_taken_BFC1CEE8 = 0; + int psx_taken_BFC1CEF0 = 0; + int psx_taken_BFC1CF00 = 0; + int psx_taken_BFC1CF14 = 0; + int psx_taken_BFC1CF40 = 0; + int psx_taken_BFC1CF50 = 0; + int psx_taken_BFC1CF64 = 0; + int psx_taken_BFC1CFA0 = 0; + int psx_taken_BFC1CFB4 = 0; + int psx_taken_BFC1CFBC = 0; + int psx_taken_BFC1CFF8 = 0; + int psx_taken_BFC1D020 = 0; + int psx_taken_BFC1D034 = 0; + int psx_taken_BFC1D04C = 0; + int psx_taken_BFC1D060 = 0; + int psx_taken_BFC1D098 = 0; + int psx_taken_BFC1D128 = 0; + int psx_taken_BFC1D13C = 0; + int psx_taken_BFC1D174 = 0; + int psx_taken_BFC1D188 = 0; + int psx_taken_BFC1D19C = 0; + int psx_taken_BFC1D1A8 = 0; + int psx_taken_BFC1D23C = 0; + int psx_taken_BFC1D260 = 0; + int psx_taken_BFC1D280 = 0; + int psx_taken_BFC1D28C = 0; + int psx_taken_BFC1D2B4 = 0; + int psx_taken_BFC1D2C0 = 0; + int psx_taken_BFC1D2EC = 0; + int psx_taken_BFC1D37C = 0; + int psx_taken_BFC1D444 = 0; + int psx_taken_BFC1D460 = 0; + int psx_taken_BFC1D50C = 0; + int psx_taken_BFC1D520 = 0; + int psx_taken_BFC1D534 = 0; + int psx_taken_BFC1D5D8 = 0; + int psx_taken_BFC1D620 = 0; + int psx_taken_BFC1D630 = 0; + int psx_taken_BFC1D664 = 0; + int psx_taken_BFC1D6A0 = 0; + int psx_taken_BFC1D710 = 0; + int psx_taken_BFC1D7B8 = 0; + int psx_taken_BFC1D7C8 = 0; + int psx_taken_BFC1D81C = 0; + int psx_taken_BFC1D848 = 0; + int psx_taken_BFC1D864 = 0; + int psx_taken_BFC1D86C = 0; + int psx_taken_BFC1D8A8 = 0; + int psx_taken_BFC1D8C4 = 0; + int psx_taken_BFC1D8D4 = 0; label_BFC1CDD8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -88630,7 +91304,7 @@ label_BFC1CDD8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CDE4u); return; } g_debug_last_store_pc = 0xBFC1CDE4u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC1CDE8: 15C00006 bne $t6, $zero, 0xBFC1CE04 */ uint32_t psx_brA_BFC1CDE8 = cpu->gpr[14]; uint32_t psx_brB_BFC1CDE8 = cpu->gpr[0]; - int psx_taken_BFC1CDE8 = (psx_brA_BFC1CDE8 != psx_brB_BFC1CDE8); + psx_taken_BFC1CDE8 = (psx_brA_BFC1CDE8 != psx_brB_BFC1CDE8); /* 0xBFC1CDEC: AFA40078 sw $a0, 120($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (120)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CDECu); return; } g_debug_last_store_pc = 0xBFC1CDECu; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC1CDE8) goto label_BFC1CE04; @@ -88647,7 +91321,7 @@ label_BFC1CDF0: /* nop */ /* 0xBFC1CDFC: 11E00009 beq $t7, $zero, 0xBFC1CE24 */ uint32_t psx_brA_BFC1CDFC = cpu->gpr[15]; uint32_t psx_brB_BFC1CDFC = cpu->gpr[0]; - int psx_taken_BFC1CDFC = (psx_brA_BFC1CDFC == psx_brB_BFC1CDFC); + psx_taken_BFC1CDFC = (psx_brA_BFC1CDFC == psx_brB_BFC1CDFC); /* 0xBFC1CE00: 00000000 nop */ /* nop */ if (psx_taken_BFC1CDFC) goto label_BFC1CE24; @@ -88670,7 +91344,7 @@ label_BFC1CE04: g_debug_last_store_pc = 0xBFC1CE18u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[24] + (3)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC1CE1C: 100002D4 beq $zero, $zero, 0xBFC1D970 */ uint32_t psx_brA_BFC1CE1C = cpu->gpr[0]; uint32_t psx_brB_BFC1CE1C = cpu->gpr[0]; - int psx_taken_BFC1CE1C = (psx_brA_BFC1CE1C == psx_brB_BFC1CE1C); + psx_taken_BFC1CE1C = (psx_brA_BFC1CE1C == psx_brB_BFC1CE1C); /* 0xBFC1CE20: A3000004 sb $zero, 4($t8) */ g_debug_last_store_pc = 0xBFC1CE20u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[24] + (4)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC1CE1C) goto label_BFC1D970; @@ -88689,7 +91363,7 @@ label_BFC1CE24: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CE30u); return; } g_debug_last_store_pc = 0xBFC1CE30u; cpu->write_word(psx_addr, cpu->gpr[19]); } /* 0xBFC1CE34: 10200286 beq $at, $zero, 0xBFC1D850 */ uint32_t psx_brA_BFC1CE34 = cpu->gpr[1]; uint32_t psx_brB_BFC1CE34 = cpu->gpr[0]; - int psx_taken_BFC1CE34 = (psx_brA_BFC1CE34 == psx_brB_BFC1CE34); + psx_taken_BFC1CE34 = (psx_brA_BFC1CE34 == psx_brB_BFC1CE34); /* 0xBFC1CE38: AFB40044 sw $s4, 68($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CE38u); return; } g_debug_last_store_pc = 0xBFC1CE38u; cpu->write_word(psx_addr, cpu->gpr[20]); } if (psx_taken_BFC1CE34) goto label_BFC1D850; @@ -88733,7 +91407,7 @@ label_BFC1CE58: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC1CE64: 10410009 beq $v0, $at, 0xBFC1CE8C */ uint32_t psx_brA_BFC1CE64 = cpu->gpr[2]; uint32_t psx_brB_BFC1CE64 = cpu->gpr[1]; - int psx_taken_BFC1CE64 = (psx_brA_BFC1CE64 == psx_brB_BFC1CE64); + psx_taken_BFC1CE64 = (psx_brA_BFC1CE64 == psx_brB_BFC1CE64); /* 0xBFC1CE68: 2401003A addiu $at, $zero, 58 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (58)); if (psx_taken_BFC1CE64) goto label_BFC1CE8C; @@ -88744,7 +91418,7 @@ label_BFC1CE6C: psx_check_interrupts(cpu); /* 0xBFC1CE6C: 10410007 beq $v0, $at, 0xBFC1CE8C */ uint32_t psx_brA_BFC1CE6C = cpu->gpr[2]; uint32_t psx_brB_BFC1CE6C = cpu->gpr[1]; - int psx_taken_BFC1CE6C = (psx_brA_BFC1CE6C == psx_brB_BFC1CE6C); + psx_taken_BFC1CE6C = (psx_brA_BFC1CE6C == psx_brB_BFC1CE6C); /* 0xBFC1CE70: 2401003B addiu $at, $zero, 59 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (59)); if (psx_taken_BFC1CE6C) goto label_BFC1CE8C; @@ -88755,7 +91429,7 @@ label_BFC1CE74: psx_check_interrupts(cpu); /* 0xBFC1CE74: 10410005 beq $v0, $at, 0xBFC1CE8C */ uint32_t psx_brA_BFC1CE74 = cpu->gpr[2]; uint32_t psx_brB_BFC1CE74 = cpu->gpr[1]; - int psx_taken_BFC1CE74 = (psx_brA_BFC1CE74 == psx_brB_BFC1CE74); + psx_taken_BFC1CE74 = (psx_brA_BFC1CE74 == psx_brB_BFC1CE74); /* 0xBFC1CE78: 24010034 addiu $at, $zero, 52 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC1CE74) goto label_BFC1CE8C; @@ -88766,7 +91440,7 @@ label_BFC1CE7C: psx_check_interrupts(cpu); /* 0xBFC1CE7C: 10410003 beq $v0, $at, 0xBFC1CE8C */ uint32_t psx_brA_BFC1CE7C = cpu->gpr[2]; uint32_t psx_brB_BFC1CE7C = cpu->gpr[1]; - int psx_taken_BFC1CE7C = (psx_brA_BFC1CE7C == psx_brB_BFC1CE7C); + psx_taken_BFC1CE7C = (psx_brA_BFC1CE7C == psx_brB_BFC1CE7C); /* 0xBFC1CE80: 2401000A addiu $at, $zero, 10 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); if (psx_taken_BFC1CE7C) goto label_BFC1CE8C; @@ -88777,7 +91451,7 @@ label_BFC1CE84: psx_check_interrupts(cpu); /* 0xBFC1CE84: 1441001C bne $v0, $at, 0xBFC1CEF8 */ uint32_t psx_brA_BFC1CE84 = cpu->gpr[2]; uint32_t psx_brB_BFC1CE84 = cpu->gpr[1]; - int psx_taken_BFC1CE84 = (psx_brA_BFC1CE84 != psx_brB_BFC1CE84); + psx_taken_BFC1CE84 = (psx_brA_BFC1CE84 != psx_brB_BFC1CE84); /* 0xBFC1CE88: 00000000 nop */ /* nop */ if (psx_taken_BFC1CE84) goto label_BFC1CEF8; @@ -88802,7 +91476,7 @@ label_BFC1CE8C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (112)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CEA4u); return; } g_debug_last_store_pc = 0xBFC1CEA4u; cpu->write_word(psx_addr, cpu->gpr[5]); } /* 0xBFC1CEA8: 1120000A beq $t1, $zero, 0xBFC1CED4 */ uint32_t psx_brA_BFC1CEA8 = cpu->gpr[9]; uint32_t psx_brB_BFC1CEA8 = cpu->gpr[0]; - int psx_taken_BFC1CEA8 = (psx_brA_BFC1CEA8 == psx_brB_BFC1CEA8); + psx_taken_BFC1CEA8 = (psx_brA_BFC1CEA8 == psx_brB_BFC1CEA8); /* 0xBFC1CEAC: AFA30074 sw $v1, 116($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (116)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CEACu); return; } g_debug_last_store_pc = 0xBFC1CEACu; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC1CEA8) goto label_BFC1CED4; @@ -88817,7 +91491,7 @@ label_BFC1CEB0: cpu->gpr[20] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC1CEB8: 1441000B bne $v0, $at, 0xBFC1CEE8 */ uint32_t psx_brA_BFC1CEB8 = cpu->gpr[2]; uint32_t psx_brB_BFC1CEB8 = cpu->gpr[1]; - int psx_taken_BFC1CEB8 = (psx_brA_BFC1CEB8 != psx_brB_BFC1CEB8); + psx_taken_BFC1CEB8 = (psx_brA_BFC1CEB8 != psx_brB_BFC1CEB8); /* 0xBFC1CEBC: 00009821 addu $s3, $zero, $zero */ cpu->gpr[19] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1CEB8) goto label_BFC1CEE8; @@ -88834,7 +91508,7 @@ label_BFC1CEC0: cpu->gpr[1] = 0x80080000u; /* 0xBFC1CECC: 10000006 beq $zero, $zero, 0xBFC1CEE8 */ uint32_t psx_brA_BFC1CECC = cpu->gpr[0]; uint32_t psx_brB_BFC1CECC = cpu->gpr[0]; - int psx_taken_BFC1CECC = (psx_brA_BFC1CECC == psx_brB_BFC1CECC); + psx_taken_BFC1CECC = (psx_brA_BFC1CECC == psx_brB_BFC1CECC); /* 0xBFC1CED0: AC209E64 sw $zero, -24988($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24988)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CED0u); return; } g_debug_last_store_pc = 0xBFC1CED0u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1CECC) goto label_BFC1CEE8; @@ -88860,7 +91534,7 @@ label_BFC1CEE8: psx_check_interrupts(cpu); /* 0xBFC1CEE8: 14A00043 bne $a1, $zero, 0xBFC1CFF8 */ uint32_t psx_brA_BFC1CEE8 = cpu->gpr[5]; uint32_t psx_brB_BFC1CEE8 = cpu->gpr[0]; - int psx_taken_BFC1CEE8 = (psx_brA_BFC1CEE8 != psx_brB_BFC1CEE8); + psx_taken_BFC1CEE8 = (psx_brA_BFC1CEE8 != psx_brB_BFC1CEE8); /* 0xBFC1CEEC: 8FAF0078 lw $t7, 120($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (120)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CEECu); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC1CEE8) goto label_BFC1CFF8; @@ -88871,7 +91545,7 @@ label_BFC1CEF0: psx_check_interrupts(cpu); /* 0xBFC1CEF0: 10000040 beq $zero, $zero, 0xBFC1CFF4 */ uint32_t psx_brA_BFC1CEF0 = cpu->gpr[0]; uint32_t psx_brB_BFC1CEF0 = cpu->gpr[0]; - int psx_taken_BFC1CEF0 = (psx_brA_BFC1CEF0 == psx_brB_BFC1CEF0); + psx_taken_BFC1CEF0 = (psx_brA_BFC1CEF0 == psx_brB_BFC1CEF0); /* 0xBFC1CEF4: 26730001 addiu $s3, $s3, 1 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (1)); if (psx_taken_BFC1CEF0) goto label_BFC1CFF4; @@ -88892,7 +91566,7 @@ label_BFC1CF00: psx_check_interrupts(cpu); /* 0xBFC1CF00: 10400011 beq $v0, $zero, 0xBFC1CF48 */ uint32_t psx_brA_BFC1CF00 = cpu->gpr[2]; uint32_t psx_brB_BFC1CF00 = cpu->gpr[0]; - int psx_taken_BFC1CF00 = (psx_brA_BFC1CF00 == psx_brB_BFC1CF00); + psx_taken_BFC1CF00 = (psx_brA_BFC1CF00 == psx_brB_BFC1CF00); /* 0xBFC1CF04: 00000000 nop */ /* nop */ if (psx_taken_BFC1CF00) goto label_BFC1CF48; @@ -88909,7 +91583,7 @@ label_BFC1CF08: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC1CF14: 1441000C bne $v0, $at, 0xBFC1CF48 */ uint32_t psx_brA_BFC1CF14 = cpu->gpr[2]; uint32_t psx_brB_BFC1CF14 = cpu->gpr[1]; - int psx_taken_BFC1CF14 = (psx_brA_BFC1CF14 != psx_brB_BFC1CF14); + psx_taken_BFC1CF14 = (psx_brA_BFC1CF14 != psx_brB_BFC1CF14); /* 0xBFC1CF18: 00000000 nop */ /* nop */ if (psx_taken_BFC1CF14) goto label_BFC1CF48; @@ -88938,7 +91612,7 @@ label_BFC1CF1C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (112)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CF3Cu); return; } g_debug_last_store_pc = 0xBFC1CF3Cu; cpu->write_word(psx_addr, cpu->gpr[5]); } /* 0xBFC1CF40: 1000002C beq $zero, $zero, 0xBFC1CFF4 */ uint32_t psx_brA_BFC1CF40 = cpu->gpr[0]; uint32_t psx_brB_BFC1CF40 = cpu->gpr[0]; - int psx_taken_BFC1CF40 = (psx_brA_BFC1CF40 == psx_brB_BFC1CF40); + psx_taken_BFC1CF40 = (psx_brA_BFC1CF40 == psx_brB_BFC1CF40); /* 0xBFC1CF44: AFA30074 sw $v1, 116($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (116)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CF44u); return; } g_debug_last_store_pc = 0xBFC1CF44u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC1CF40) goto label_BFC1CFF4; @@ -88959,7 +91633,7 @@ label_BFC1CF50: psx_check_interrupts(cpu); /* 0xBFC1CF50: 10400015 beq $v0, $zero, 0xBFC1CFA8 */ uint32_t psx_brA_BFC1CF50 = cpu->gpr[2]; uint32_t psx_brB_BFC1CF50 = cpu->gpr[0]; - int psx_taken_BFC1CF50 = (psx_brA_BFC1CF50 == psx_brB_BFC1CF50); + psx_taken_BFC1CF50 = (psx_brA_BFC1CF50 == psx_brB_BFC1CF50); /* 0xBFC1CF54: 00000000 nop */ /* nop */ if (psx_taken_BFC1CF50) goto label_BFC1CFA8; @@ -88976,7 +91650,7 @@ label_BFC1CF58: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC1CF64: 14410010 bne $v0, $at, 0xBFC1CFA8 */ uint32_t psx_brA_BFC1CF64 = cpu->gpr[2]; uint32_t psx_brB_BFC1CF64 = cpu->gpr[1]; - int psx_taken_BFC1CF64 = (psx_brA_BFC1CF64 != psx_brB_BFC1CF64); + psx_taken_BFC1CF64 = (psx_brA_BFC1CF64 != psx_brB_BFC1CF64); /* 0xBFC1CF68: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1CF64) goto label_BFC1CFA8; @@ -89013,7 +91687,7 @@ label_BFC1CF6C: cpu->gpr[19] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC1CFA0: 10000014 beq $zero, $zero, 0xBFC1CFF4 */ uint32_t psx_brA_BFC1CFA0 = cpu->gpr[0]; uint32_t psx_brB_BFC1CFA0 = cpu->gpr[0]; - int psx_taken_BFC1CFA0 = (psx_brA_BFC1CFA0 == psx_brB_BFC1CFA0); + psx_taken_BFC1CFA0 = (psx_brA_BFC1CFA0 == psx_brB_BFC1CFA0); /* 0xBFC1CFA4: AC259EAC sw $a1, -24916($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24916)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CFA4u); return; } g_debug_last_store_pc = 0xBFC1CFA4u; cpu->write_word(psx_addr, cpu->gpr[5]); } if (psx_taken_BFC1CFA0) goto label_BFC1CFF4; @@ -89030,7 +91704,7 @@ label_BFC1CFA8: /* nop */ /* 0xBFC1CFB4: 14600003 bne $v1, $zero, 0xBFC1CFC4 */ uint32_t psx_brA_BFC1CFB4 = cpu->gpr[3]; uint32_t psx_brB_BFC1CFB4 = cpu->gpr[0]; - int psx_taken_BFC1CFB4 = (psx_brA_BFC1CFB4 != psx_brB_BFC1CFB4); + psx_taken_BFC1CFB4 = (psx_brA_BFC1CFB4 != psx_brB_BFC1CFB4); /* 0xBFC1CFB8: 00000000 nop */ /* nop */ if (psx_taken_BFC1CFB4) goto label_BFC1CFC4; @@ -89041,7 +91715,7 @@ label_BFC1CFBC: psx_check_interrupts(cpu); /* 0xBFC1CFBC: 10000009 beq $zero, $zero, 0xBFC1CFE4 */ uint32_t psx_brA_BFC1CFBC = cpu->gpr[0]; uint32_t psx_brB_BFC1CFBC = cpu->gpr[0]; - int psx_taken_BFC1CFBC = (psx_brA_BFC1CFBC == psx_brB_BFC1CFBC); + psx_taken_BFC1CFBC = (psx_brA_BFC1CFBC == psx_brB_BFC1CFBC); /* 0xBFC1CFC0: AFA00074 sw $zero, 116($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (116)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1CFC0u); return; } g_debug_last_store_pc = 0xBFC1CFC0u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1CFBC) goto label_BFC1CFE4; @@ -89093,7 +91767,7 @@ label_BFC1CFF8: psx_check_interrupts(cpu); /* 0xBFC1CFF8: 1000021C beq $zero, $zero, 0xBFC1D86C */ uint32_t psx_brA_BFC1CFF8 = cpu->gpr[0]; uint32_t psx_brB_BFC1CFF8 = cpu->gpr[0]; - int psx_taken_BFC1CFF8 = (psx_brA_BFC1CFF8 == psx_brB_BFC1CFF8); + psx_taken_BFC1CFF8 = (psx_brA_BFC1CFF8 == psx_brB_BFC1CFF8); /* 0xBFC1CFFC: A1E00000 sb $zero, 0($t7) */ g_debug_last_store_pc = 0xBFC1CFFCu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[15] + (0)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC1CFF8) goto label_BFC1D86C; @@ -89120,7 +91794,7 @@ label_BFC1D000: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (112)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D01Cu); return; } g_debug_last_store_pc = 0xBFC1D01Cu; cpu->write_word(psx_addr, cpu->gpr[5]); } /* 0xBFC1D020: 14410043 bne $v0, $at, 0xBFC1D130 */ uint32_t psx_brA_BFC1D020 = cpu->gpr[2]; uint32_t psx_brB_BFC1D020 = cpu->gpr[1]; - int psx_taken_BFC1D020 = (psx_brA_BFC1D020 != psx_brB_BFC1D020); + psx_taken_BFC1D020 = (psx_brA_BFC1D020 != psx_brB_BFC1D020); /* 0xBFC1D024: AFA30074 sw $v1, 116($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (116)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D024u); return; } g_debug_last_store_pc = 0xBFC1D024u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC1D020) goto label_BFC1D130; @@ -89137,7 +91811,7 @@ label_BFC1D028: /* nop */ /* 0xBFC1D034: 13200007 beq $t9, $zero, 0xBFC1D054 */ uint32_t psx_brA_BFC1D034 = cpu->gpr[25]; uint32_t psx_brB_BFC1D034 = cpu->gpr[0]; - int psx_taken_BFC1D034 = (psx_brA_BFC1D034 == psx_brB_BFC1D034); + psx_taken_BFC1D034 = (psx_brA_BFC1D034 == psx_brB_BFC1D034); /* 0xBFC1D038: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1D034) goto label_BFC1D054; @@ -89156,7 +91830,7 @@ label_BFC1D03C: cpu->gpr[19] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC1D04C: 10000079 beq $zero, $zero, 0xBFC1D234 */ uint32_t psx_brA_BFC1D04C = cpu->gpr[0]; uint32_t psx_brB_BFC1D04C = cpu->gpr[0]; - int psx_taken_BFC1D04C = (psx_brA_BFC1D04C == psx_brB_BFC1D04C); + psx_taken_BFC1D04C = (psx_brA_BFC1D04C == psx_brB_BFC1D04C); /* 0xBFC1D050: AC209E64 sw $zero, -24988($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24988)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D050u); return; } g_debug_last_store_pc = 0xBFC1D050u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1D04C) goto label_BFC1D234; @@ -89173,7 +91847,7 @@ label_BFC1D054: /* nop */ /* 0xBFC1D060: 1478000F bne $v1, $t8, 0xBFC1D0A0 */ uint32_t psx_brA_BFC1D060 = cpu->gpr[3]; uint32_t psx_brB_BFC1D060 = cpu->gpr[24]; - int psx_taken_BFC1D060 = (psx_brA_BFC1D060 != psx_brB_BFC1D060); + psx_taken_BFC1D060 = (psx_brA_BFC1D060 != psx_brB_BFC1D060); /* 0xBFC1D064: 00000000 nop */ /* nop */ if (psx_taken_BFC1D060) goto label_BFC1D0A0; @@ -89220,7 +91894,7 @@ label_BFC1D090: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (-25000)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D094u); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } /* 0xBFC1D098: 10000066 beq $zero, $zero, 0xBFC1D234 */ uint32_t psx_brA_BFC1D098 = cpu->gpr[0]; uint32_t psx_brB_BFC1D098 = cpu->gpr[0]; - int psx_taken_BFC1D098 = (psx_brA_BFC1D098 == psx_brB_BFC1D098); + psx_taken_BFC1D098 = (psx_brA_BFC1D098 == psx_brB_BFC1D098); /* 0xBFC1D09C: 00499823 subu $s3, $v0, $t1 */ cpu->gpr[19] = cpu->gpr[2] - cpu->gpr[9]; if (psx_taken_BFC1D098) goto label_BFC1D234; @@ -89311,7 +91985,7 @@ label_BFC1D118: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D124u); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC1D128: 10000042 beq $zero, $zero, 0xBFC1D234 */ uint32_t psx_brA_BFC1D128 = cpu->gpr[0]; uint32_t psx_brB_BFC1D128 = cpu->gpr[0]; - int psx_taken_BFC1D128 = (psx_brA_BFC1D128 == psx_brB_BFC1D128); + psx_taken_BFC1D128 = (psx_brA_BFC1D128 == psx_brB_BFC1D128); /* 0xBFC1D12C: 004B9823 subu $s3, $v0, $t3 */ cpu->gpr[19] = cpu->gpr[2] - cpu->gpr[11]; if (psx_taken_BFC1D128) goto label_BFC1D234; @@ -89328,7 +92002,7 @@ label_BFC1D130: /* nop */ /* 0xBFC1D13C: 146C000F bne $v1, $t4, 0xBFC1D17C */ uint32_t psx_brA_BFC1D13C = cpu->gpr[3]; uint32_t psx_brB_BFC1D13C = cpu->gpr[12]; - int psx_taken_BFC1D13C = (psx_brA_BFC1D13C != psx_brB_BFC1D13C); + psx_taken_BFC1D13C = (psx_brA_BFC1D13C != psx_brB_BFC1D13C); /* 0xBFC1D140: 00000000 nop */ /* nop */ if (psx_taken_BFC1D13C) goto label_BFC1D17C; @@ -89375,7 +92049,7 @@ label_BFC1D16C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[14] + (-25000)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D170u); return; } cpu->gpr[14] = cpu->read_word(psx_addr); } /* 0xBFC1D174: 1000002F beq $zero, $zero, 0xBFC1D234 */ uint32_t psx_brA_BFC1D174 = cpu->gpr[0]; uint32_t psx_brB_BFC1D174 = cpu->gpr[0]; - int psx_taken_BFC1D174 = (psx_brA_BFC1D174 == psx_brB_BFC1D174); + psx_taken_BFC1D174 = (psx_brA_BFC1D174 == psx_brB_BFC1D174); /* 0xBFC1D178: 004E9823 subu $s3, $v0, $t6 */ cpu->gpr[19] = cpu->gpr[2] - cpu->gpr[14]; if (psx_taken_BFC1D174) goto label_BFC1D234; @@ -89392,7 +92066,7 @@ label_BFC1D17C: /* nop */ /* 0xBFC1D188: 10600007 beq $v1, $zero, 0xBFC1D1A8 */ uint32_t psx_brA_BFC1D188 = cpu->gpr[3]; uint32_t psx_brB_BFC1D188 = cpu->gpr[0]; - int psx_taken_BFC1D188 = (psx_brA_BFC1D188 == psx_brB_BFC1D188); + psx_taken_BFC1D188 = (psx_brA_BFC1D188 == psx_brB_BFC1D188); /* 0xBFC1D18C: 0000A021 addu $s4, $zero, $zero */ cpu->gpr[20] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1D188) goto label_BFC1D1A8; @@ -89409,7 +92083,7 @@ label_BFC1D190: /* nop */ /* 0xBFC1D19C: 11E00004 beq $t7, $zero, 0xBFC1D1B0 */ uint32_t psx_brA_BFC1D19C = cpu->gpr[15]; uint32_t psx_brB_BFC1D19C = cpu->gpr[0]; - int psx_taken_BFC1D19C = (psx_brA_BFC1D19C == psx_brB_BFC1D19C); + psx_taken_BFC1D19C = (psx_brA_BFC1D19C == psx_brB_BFC1D19C); /* 0xBFC1D1A0: 00000000 nop */ /* nop */ if (psx_taken_BFC1D19C) goto label_BFC1D1B0; @@ -89427,7 +92101,7 @@ label_BFC1D1A8: psx_check_interrupts(cpu); /* 0xBFC1D1A8: 10000022 beq $zero, $zero, 0xBFC1D234 */ uint32_t psx_brA_BFC1D1A8 = cpu->gpr[0]; uint32_t psx_brB_BFC1D1A8 = cpu->gpr[0]; - int psx_taken_BFC1D1A8 = (psx_brA_BFC1D1A8 == psx_brB_BFC1D1A8); + psx_taken_BFC1D1A8 = (psx_brA_BFC1D1A8 == psx_brB_BFC1D1A8); /* 0xBFC1D1AC: 00009821 addu $s3, $zero, $zero */ cpu->gpr[19] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1D1A8) goto label_BFC1D234; @@ -89525,7 +92199,7 @@ label_BFC1D234: cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1D23C: 1000018B beq $zero, $zero, 0xBFC1D86C */ uint32_t psx_brA_BFC1D23C = cpu->gpr[0]; uint32_t psx_brB_BFC1D23C = cpu->gpr[0]; - int psx_taken_BFC1D23C = (psx_brA_BFC1D23C == psx_brB_BFC1D23C); + psx_taken_BFC1D23C = (psx_brA_BFC1D23C == psx_brB_BFC1D23C); /* 0xBFC1D240: A1280000 sb $t0, 0($t1) */ g_debug_last_store_pc = 0xBFC1D240u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[9] + (0)), (uint8_t)(cpu->gpr[8] & 0xFFu)); if (psx_taken_BFC1D23C) goto label_BFC1D86C; @@ -89556,7 +92230,7 @@ label_BFC1D260: psx_check_interrupts(cpu); /* 0xBFC1D260: 104000AC beq $v0, $zero, 0xBFC1D514 */ uint32_t psx_brA_BFC1D260 = cpu->gpr[2]; uint32_t psx_brB_BFC1D260 = cpu->gpr[0]; - int psx_taken_BFC1D260 = (psx_brA_BFC1D260 == psx_brB_BFC1D260); + psx_taken_BFC1D260 = (psx_brA_BFC1D260 == psx_brB_BFC1D260); /* 0xBFC1D264: 00000000 nop */ /* nop */ if (psx_taken_BFC1D260) goto label_BFC1D514; @@ -89579,7 +92253,7 @@ label_BFC1D268: cpu->gpr[19] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC1D280: 15430004 bne $t2, $v1, 0xBFC1D294 */ uint32_t psx_brA_BFC1D280 = cpu->gpr[10]; uint32_t psx_brB_BFC1D280 = cpu->gpr[3]; - int psx_taken_BFC1D280 = (psx_brA_BFC1D280 != psx_brB_BFC1D280); + psx_taken_BFC1D280 = (psx_brA_BFC1D280 != psx_brB_BFC1D280); /* 0xBFC1D284: 0000A021 addu $s4, $zero, $zero */ cpu->gpr[20] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1D280) goto label_BFC1D294; @@ -89592,7 +92266,7 @@ label_BFC1D288: cpu->gpr[18] = 0x80080000u; /* 0xBFC1D28C: 10000071 beq $zero, $zero, 0xBFC1D454 */ uint32_t psx_brA_BFC1D28C = cpu->gpr[0]; uint32_t psx_brB_BFC1D28C = cpu->gpr[0]; - int psx_taken_BFC1D28C = (psx_brA_BFC1D28C == psx_brB_BFC1D28C); + psx_taken_BFC1D28C = (psx_brA_BFC1D28C == psx_brB_BFC1D28C); /* 0xBFC1D290: 26529FB0 addiu $s2, $s2, -24656 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (-24656)); if (psx_taken_BFC1D28C) goto label_BFC1D454; @@ -89619,7 +92293,7 @@ label_BFC1D294: cpu->gpr[11] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1D2B4: 10200004 beq $at, $zero, 0xBFC1D2C8 */ uint32_t psx_brA_BFC1D2B4 = cpu->gpr[1]; uint32_t psx_brB_BFC1D2B4 = cpu->gpr[0]; - int psx_taken_BFC1D2B4 = (psx_brA_BFC1D2B4 == psx_brB_BFC1D2B4); + psx_taken_BFC1D2B4 = (psx_brA_BFC1D2B4 == psx_brB_BFC1D2B4); /* 0xBFC1D2B8: AFAB0060 sw $t3, 96($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (96)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D2B8u); return; } g_debug_last_store_pc = 0xBFC1D2B8u; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC1D2B4) goto label_BFC1D2C8; @@ -89632,7 +92306,7 @@ label_BFC1D2BC: cpu->gpr[18] = 0x80080000u; /* 0xBFC1D2C0: 10000064 beq $zero, $zero, 0xBFC1D454 */ uint32_t psx_brA_BFC1D2C0 = cpu->gpr[0]; uint32_t psx_brB_BFC1D2C0 = cpu->gpr[0]; - int psx_taken_BFC1D2C0 = (psx_brA_BFC1D2C0 == psx_brB_BFC1D2C0); + psx_taken_BFC1D2C0 = (psx_brA_BFC1D2C0 == psx_brB_BFC1D2C0); /* 0xBFC1D2C4: 26529FB0 addiu $s2, $s2, -24656 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (-24656)); if (psx_taken_BFC1D2C0) goto label_BFC1D454; @@ -89666,7 +92340,7 @@ label_BFC1D2DC: /* nop */ /* 0xBFC1D2EC: 15820026 bne $t4, $v0, 0xBFC1D388 */ uint32_t psx_brA_BFC1D2EC = cpu->gpr[12]; uint32_t psx_brB_BFC1D2EC = cpu->gpr[2]; - int psx_taken_BFC1D2EC = (psx_brA_BFC1D2EC != psx_brB_BFC1D2EC); + psx_taken_BFC1D2EC = (psx_brA_BFC1D2EC != psx_brB_BFC1D2EC); /* 0xBFC1D2F0: 00027880 sll $t7, $v0, 2 */ cpu->gpr[15] = cpu->gpr[2] << 2u; if (psx_taken_BFC1D2EC) goto label_BFC1D388; @@ -89769,7 +92443,7 @@ label_BFC1D368: cpu->gpr[14] = cpu->gpr[13] - cpu->gpr[2]; /* 0xBFC1D37C: 1000002B beq $zero, $zero, 0xBFC1D42C */ uint32_t psx_brA_BFC1D37C = cpu->gpr[0]; uint32_t psx_brB_BFC1D37C = cpu->gpr[0]; - int psx_taken_BFC1D37C = (psx_brA_BFC1D37C == psx_brB_BFC1D37C); + psx_taken_BFC1D37C = (psx_brA_BFC1D37C == psx_brB_BFC1D37C); /* 0xBFC1D380: AC2EA114 sw $t6, -24300($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24300)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D380u); return; } g_debug_last_store_pc = 0xBFC1D380u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC1D37C) goto label_BFC1D42C; @@ -89910,7 +92584,7 @@ label_BFC1D42C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (96)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D440u); return; } g_debug_last_store_pc = 0xBFC1D440u; cpu->write_word(psx_addr, cpu->gpr[13]); } /* 0xBFC1D444: 1420FFA5 bne $at, $zero, 0xBFC1D2DC */ uint32_t psx_brA_BFC1D444 = cpu->gpr[1]; uint32_t psx_brB_BFC1D444 = cpu->gpr[0]; - int psx_taken_BFC1D444 = (psx_brA_BFC1D444 != psx_brB_BFC1D444); + psx_taken_BFC1D444 = (psx_brA_BFC1D444 != psx_brB_BFC1D444); /* 0xBFC1D448: 26310004 addiu $s1, $s1, 4 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (4)); if (psx_taken_BFC1D444) goto label_BFC1D2DC; @@ -89936,7 +92610,7 @@ label_BFC1D454: /* nop */ /* 0xBFC1D460: 15C00029 bne $t6, $zero, 0xBFC1D508 */ uint32_t psx_brA_BFC1D460 = cpu->gpr[14]; uint32_t psx_brB_BFC1D460 = cpu->gpr[0]; - int psx_taken_BFC1D460 = (psx_brA_BFC1D460 != psx_brB_BFC1D460); + psx_taken_BFC1D460 = (psx_brA_BFC1D460 != psx_brB_BFC1D460); /* 0xBFC1D464: 00000000 nop */ /* nop */ if (psx_taken_BFC1D460) goto label_BFC1D508; @@ -90058,7 +92732,7 @@ label_BFC1D508: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D508u); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC1D50C: 10000043 beq $zero, $zero, 0xBFC1D61C */ uint32_t psx_brA_BFC1D50C = cpu->gpr[0]; uint32_t psx_brB_BFC1D50C = cpu->gpr[0]; - int psx_taken_BFC1D50C = (psx_brA_BFC1D50C == psx_brB_BFC1D50C); + psx_taken_BFC1D50C = (psx_brA_BFC1D50C == psx_brB_BFC1D50C); /* 0xBFC1D510: 8FAF0078 lw $t7, 120($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (120)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D510u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC1D50C) goto label_BFC1D61C; @@ -90075,7 +92749,7 @@ label_BFC1D514: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1D520: 1441002F bne $v0, $at, 0xBFC1D5E0 */ uint32_t psx_brA_BFC1D520 = cpu->gpr[2]; uint32_t psx_brB_BFC1D520 = cpu->gpr[1]; - int psx_taken_BFC1D520 = (psx_brA_BFC1D520 != psx_brB_BFC1D520); + psx_taken_BFC1D520 = (psx_brA_BFC1D520 != psx_brB_BFC1D520); /* 0xBFC1D524: 00000000 nop */ /* nop */ if (psx_taken_BFC1D520) goto label_BFC1D5E0; @@ -90092,7 +92766,7 @@ label_BFC1D528: /* nop */ /* 0xBFC1D534: 1160002A beq $t3, $zero, 0xBFC1D5E0 */ uint32_t psx_brA_BFC1D534 = cpu->gpr[11]; uint32_t psx_brB_BFC1D534 = cpu->gpr[0]; - int psx_taken_BFC1D534 = (psx_brA_BFC1D534 == psx_brB_BFC1D534); + psx_taken_BFC1D534 = (psx_brA_BFC1D534 == psx_brB_BFC1D534); /* 0xBFC1D538: 00000000 nop */ /* nop */ if (psx_taken_BFC1D534) goto label_BFC1D5E0; @@ -90205,7 +92879,7 @@ label_BFC1D5D0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D5D4u); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC1D5D8: 1000000F beq $zero, $zero, 0xBFC1D618 */ uint32_t psx_brA_BFC1D5D8 = cpu->gpr[0]; uint32_t psx_brB_BFC1D5D8 = cpu->gpr[0]; - int psx_taken_BFC1D5D8 = (psx_brA_BFC1D5D8 == psx_brB_BFC1D5D8); + psx_taken_BFC1D5D8 = (psx_brA_BFC1D5D8 == psx_brB_BFC1D5D8); /* 0xBFC1D5DC: 02029823 subu $s3, $s0, $v0 */ cpu->gpr[19] = cpu->gpr[16] - cpu->gpr[2]; if (psx_taken_BFC1D5D8) goto label_BFC1D618; @@ -90270,7 +92944,7 @@ label_BFC1D61C: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1D620: 10000092 beq $zero, $zero, 0xBFC1D86C */ uint32_t psx_brA_BFC1D620 = cpu->gpr[0]; uint32_t psx_brB_BFC1D620 = cpu->gpr[0]; - int psx_taken_BFC1D620 = (psx_brA_BFC1D620 == psx_brB_BFC1D620); + psx_taken_BFC1D620 = (psx_brA_BFC1D620 == psx_brB_BFC1D620); /* 0xBFC1D624: A1EE0000 sb $t6, 0($t7) */ g_debug_last_store_pc = 0xBFC1D624u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[15] + (0)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC1D620) goto label_BFC1D86C; @@ -90291,7 +92965,7 @@ label_BFC1D630: psx_check_interrupts(cpu); /* 0xBFC1D630: 10400067 beq $v0, $zero, 0xBFC1D7D0 */ uint32_t psx_brA_BFC1D630 = cpu->gpr[2]; uint32_t psx_brB_BFC1D630 = cpu->gpr[0]; - int psx_taken_BFC1D630 = (psx_brA_BFC1D630 == psx_brB_BFC1D630); + psx_taken_BFC1D630 = (psx_brA_BFC1D630 == psx_brB_BFC1D630); /* 0xBFC1D634: 00000000 nop */ /* nop */ if (psx_taken_BFC1D630) goto label_BFC1D7D0; @@ -90336,7 +93010,7 @@ label_BFC1D664: psx_check_interrupts(cpu); /* 0xBFC1D664: 1840006D blez $v0, 0xBFC1D81C */ uint32_t psx_brA_BFC1D664 = cpu->gpr[2]; - int psx_taken_BFC1D664 = ((int32_t)psx_brA_BFC1D664 <= 0); + psx_taken_BFC1D664 = ((int32_t)psx_brA_BFC1D664 <= 0); /* 0xBFC1D668: 8FA90078 lw $t1, 120($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (120)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D668u); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } if (psx_taken_BFC1D664) goto label_BFC1D81C; @@ -90378,7 +93052,7 @@ label_BFC1D690: /* nop */ /* 0xBFC1D6A0: 1542001E bne $t2, $v0, 0xBFC1D71C */ uint32_t psx_brA_BFC1D6A0 = cpu->gpr[10]; uint32_t psx_brB_BFC1D6A0 = cpu->gpr[2]; - int psx_taken_BFC1D6A0 = (psx_brA_BFC1D6A0 != psx_brB_BFC1D6A0); + psx_taken_BFC1D6A0 = (psx_brA_BFC1D6A0 != psx_brB_BFC1D6A0); /* 0xBFC1D6A4: 00024880 sll $t1, $v0, 2 */ cpu->gpr[9] = cpu->gpr[2] << 2u; if (psx_taken_BFC1D6A0) goto label_BFC1D71C; @@ -90465,7 +93139,7 @@ label_BFC1D70C: cpu->gpr[8] = cpu->gpr[19] + cpu->gpr[16]; /* 0xBFC1D710: 10000021 beq $zero, $zero, 0xBFC1D798 */ uint32_t psx_brA_BFC1D710 = cpu->gpr[0]; uint32_t psx_brB_BFC1D710 = cpu->gpr[0]; - int psx_taken_BFC1D710 = (psx_brA_BFC1D710 == psx_brB_BFC1D710); + psx_taken_BFC1D710 = (psx_brA_BFC1D710 == psx_brB_BFC1D710); /* 0xBFC1D714: 01029823 subu $s3, $t0, $v0 */ cpu->gpr[19] = cpu->gpr[8] - cpu->gpr[2]; if (psx_taken_BFC1D710) goto label_BFC1D798; @@ -90596,7 +93270,7 @@ label_BFC1D7AC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[14] ? 1 : 0); /* 0xBFC1D7B8: 1020FFB5 beq $at, $zero, 0xBFC1D690 */ uint32_t psx_brA_BFC1D7B8 = cpu->gpr[1]; uint32_t psx_brB_BFC1D7B8 = cpu->gpr[0]; - int psx_taken_BFC1D7B8 = (psx_brA_BFC1D7B8 == psx_brB_BFC1D7B8); + psx_taken_BFC1D7B8 = (psx_brA_BFC1D7B8 == psx_brB_BFC1D7B8); /* 0xBFC1D7BC: 00000000 nop */ /* nop */ if (psx_taken_BFC1D7B8) goto label_BFC1D690; @@ -90611,7 +93285,7 @@ label_BFC1D7C0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D7C4u); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC1D7C8: 10000014 beq $zero, $zero, 0xBFC1D81C */ uint32_t psx_brA_BFC1D7C8 = cpu->gpr[0]; uint32_t psx_brB_BFC1D7C8 = cpu->gpr[0]; - int psx_taken_BFC1D7C8 = (psx_brA_BFC1D7C8 == psx_brB_BFC1D7C8); + psx_taken_BFC1D7C8 = (psx_brA_BFC1D7C8 == psx_brB_BFC1D7C8); /* 0xBFC1D7CC: 8FA90078 lw $t1, 120($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (120)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D7CCu); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } if (psx_taken_BFC1D7C8) goto label_BFC1D81C; @@ -90677,7 +93351,7 @@ label_BFC1D81C: psx_check_interrupts(cpu); /* 0xBFC1D81C: 10000013 beq $zero, $zero, 0xBFC1D86C */ uint32_t psx_brA_BFC1D81C = cpu->gpr[0]; uint32_t psx_brB_BFC1D81C = cpu->gpr[0]; - int psx_taken_BFC1D81C = (psx_brA_BFC1D81C == psx_brB_BFC1D81C); + psx_taken_BFC1D81C = (psx_brA_BFC1D81C == psx_brB_BFC1D81C); /* 0xBFC1D820: A1200000 sb $zero, 0($t1) */ g_debug_last_store_pc = 0xBFC1D820u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[9] + (0)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC1D81C) goto label_BFC1D86C; @@ -90706,7 +93380,7 @@ label_BFC1D824: cpu->gpr[19] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC1D848: 10000008 beq $zero, $zero, 0xBFC1D86C */ uint32_t psx_brA_BFC1D848 = cpu->gpr[0]; uint32_t psx_brB_BFC1D848 = cpu->gpr[0]; - int psx_taken_BFC1D848 = (psx_brA_BFC1D848 == psx_brB_BFC1D848); + psx_taken_BFC1D848 = (psx_brA_BFC1D848 == psx_brB_BFC1D848); /* 0xBFC1D84C: A1800000 sb $zero, 0($t4) */ g_debug_last_store_pc = 0xBFC1D84Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[12] + (0)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC1D848) goto label_BFC1D86C; @@ -90727,7 +93401,7 @@ label_BFC1D850: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (104)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1D860u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC1D864: 10000001 beq $zero, $zero, 0xBFC1D86C */ uint32_t psx_brA_BFC1D864 = cpu->gpr[0]; uint32_t psx_brB_BFC1D864 = cpu->gpr[0]; - int psx_taken_BFC1D864 = (psx_brA_BFC1D864 == psx_brB_BFC1D864); + psx_taken_BFC1D864 = (psx_brA_BFC1D864 == psx_brB_BFC1D864); /* 0xBFC1D868: 00000000 nop */ /* nop */ if (psx_taken_BFC1D864) goto label_BFC1D86C; @@ -90738,7 +93412,7 @@ label_BFC1D86C: psx_check_interrupts(cpu); /* 0xBFC1D86C: 0661000E bgez $s3, 0xBFC1D8A8 */ uint32_t psx_brA_BFC1D86C = cpu->gpr[19]; - int psx_taken_BFC1D86C = ((int32_t)psx_brA_BFC1D86C >= 0); + psx_taken_BFC1D86C = ((int32_t)psx_brA_BFC1D86C >= 0); /* 0xBFC1D870: 2A61003C slti $at, $s3, 60 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (60) ? 1 : 0); if (psx_taken_BFC1D86C) goto label_BFC1D8A8; @@ -90786,7 +93460,7 @@ label_BFC1D8A8: psx_check_interrupts(cpu); /* 0xBFC1D8A8: 14200006 bne $at, $zero, 0xBFC1D8C4 */ uint32_t psx_brA_BFC1D8A8 = cpu->gpr[1]; uint32_t psx_brB_BFC1D8A8 = cpu->gpr[0]; - int psx_taken_BFC1D8A8 = (psx_brA_BFC1D8A8 != psx_brB_BFC1D8A8); + psx_taken_BFC1D8A8 = (psx_brA_BFC1D8A8 != psx_brB_BFC1D8A8); /* 0xBFC1D8AC: 2401003C addiu $at, $zero, 60 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (60)); if (psx_taken_BFC1D8A8) goto label_BFC1D8C4; @@ -90812,7 +93486,7 @@ label_BFC1D8C4: psx_check_interrupts(cpu); /* 0xBFC1D8C4: 06810003 bgez $s4, 0xBFC1D8D4 */ uint32_t psx_brA_BFC1D8C4 = cpu->gpr[20]; - int psx_taken_BFC1D8C4 = ((int32_t)psx_brA_BFC1D8C4 >= 0); + psx_taken_BFC1D8C4 = ((int32_t)psx_brA_BFC1D8C4 >= 0); /* 0xBFC1D8C8: 2A810064 slti $at, $s4, 100 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[20] < (100) ? 1 : 0); if (psx_taken_BFC1D8C4) goto label_BFC1D8D4; @@ -90832,7 +93506,7 @@ label_BFC1D8D4: psx_check_interrupts(cpu); /* 0xBFC1D8D4: 14200005 bne $at, $zero, 0xBFC1D8EC */ uint32_t psx_brA_BFC1D8D4 = cpu->gpr[1]; uint32_t psx_brB_BFC1D8D4 = cpu->gpr[0]; - int psx_taken_BFC1D8D4 = (psx_brA_BFC1D8D4 != psx_brB_BFC1D8D4); + psx_taken_BFC1D8D4 = (psx_brA_BFC1D8D4 != psx_brB_BFC1D8D4); /* 0xBFC1D8D8: 24010064 addiu $at, $zero, 100 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (100)); if (psx_taken_BFC1D8D4) goto label_BFC1D8EC; @@ -90997,6 +93671,28 @@ void func_1FC1D9C4(CPUState* cpu) { default: break; } } + int psx_taken_BFC1D9F8 = 0; + int psx_taken_BFC1DA10 = 0; + int psx_taken_BFC1DA28 = 0; + int psx_taken_BFC1DA60 = 0; + int psx_taken_BFC1DA70 = 0; + int psx_taken_BFC1DA88 = 0; + int psx_taken_BFC1DA98 = 0; + int psx_taken_BFC1DAA4 = 0; + int psx_taken_BFC1DABC = 0; + int psx_taken_BFC1DAD0 = 0; + int psx_taken_BFC1DAF4 = 0; + int psx_taken_BFC1DB04 = 0; + int psx_taken_BFC1DB18 = 0; + int psx_taken_BFC1DB28 = 0; + int psx_taken_BFC1DB40 = 0; + int psx_taken_BFC1DB58 = 0; + int psx_taken_BFC1DB6C = 0; + int psx_taken_BFC1DB88 = 0; + int psx_taken_BFC1DB94 = 0; + int psx_taken_BFC1DBA4 = 0; + int psx_taken_BFC1DBB0 = 0; + int psx_taken_BFC1DBC8 = 0; label_BFC1D9C4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -91036,7 +93732,7 @@ label_BFC1D9F8: psx_check_interrupts(cpu); /* 0xBFC1D9F8: 14400007 bne $v0, $zero, 0xBFC1DA18 */ uint32_t psx_brA_BFC1D9F8 = cpu->gpr[2]; uint32_t psx_brB_BFC1D9F8 = cpu->gpr[0]; - int psx_taken_BFC1D9F8 = (psx_brA_BFC1D9F8 != psx_brB_BFC1D9F8); + psx_taken_BFC1D9F8 = (psx_brA_BFC1D9F8 != psx_brB_BFC1D9F8); /* 0xBFC1D9FC: 00000000 nop */ /* nop */ if (psx_taken_BFC1D9F8) goto label_BFC1DA18; @@ -91067,7 +93763,7 @@ label_BFC1DA10: psx_check_interrupts(cpu); /* 0xBFC1DA10: 10000074 beq $zero, $zero, 0xBFC1DBE4 */ uint32_t psx_brA_BFC1DA10 = cpu->gpr[0]; uint32_t psx_brB_BFC1DA10 = cpu->gpr[0]; - int psx_taken_BFC1DA10 = (psx_brA_BFC1DA10 == psx_brB_BFC1DA10); + psx_taken_BFC1DA10 = (psx_brA_BFC1DA10 == psx_brB_BFC1DA10); /* 0xBFC1DA14: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1DA10) goto label_BFC1DBE4; @@ -91086,7 +93782,7 @@ label_BFC1DA18: cpu->gpr[24] = cpu->gpr[15] & 0x10u; /* 0xBFC1DA28: 13000020 beq $t8, $zero, 0xBFC1DAAC */ uint32_t psx_brA_BFC1DA28 = cpu->gpr[24]; uint32_t psx_brB_BFC1DA28 = cpu->gpr[0]; - int psx_taken_BFC1DA28 = (psx_brA_BFC1DA28 == psx_brB_BFC1DA28); + psx_taken_BFC1DA28 = (psx_brA_BFC1DA28 == psx_brB_BFC1DA28); /* 0xBFC1DA2C: 00000000 nop */ /* nop */ if (psx_taken_BFC1DA28) goto label_BFC1DAAC; @@ -91139,7 +93835,7 @@ label_BFC1DA60: psx_check_interrupts(cpu); /* 0xBFC1DA60: 14400005 bne $v0, $zero, 0xBFC1DA78 */ uint32_t psx_brA_BFC1DA60 = cpu->gpr[2]; uint32_t psx_brB_BFC1DA60 = cpu->gpr[0]; - int psx_taken_BFC1DA60 = (psx_brA_BFC1DA60 != psx_brB_BFC1DA60); + psx_taken_BFC1DA60 = (psx_brA_BFC1DA60 != psx_brB_BFC1DA60); /* 0xBFC1DA64: 00000000 nop */ /* nop */ if (psx_taken_BFC1DA60) goto label_BFC1DA78; @@ -91160,7 +93856,7 @@ label_BFC1DA70: psx_check_interrupts(cpu); /* 0xBFC1DA70: 1000005C beq $zero, $zero, 0xBFC1DBE4 */ uint32_t psx_brA_BFC1DA70 = cpu->gpr[0]; uint32_t psx_brB_BFC1DA70 = cpu->gpr[0]; - int psx_taken_BFC1DA70 = (psx_brA_BFC1DA70 == psx_brB_BFC1DA70); + psx_taken_BFC1DA70 = (psx_brA_BFC1DA70 == psx_brB_BFC1DA70); /* 0xBFC1DA74: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1DA70) goto label_BFC1DBE4; @@ -91179,7 +93875,7 @@ label_BFC1DA78: cpu->gpr[9] = cpu->gpr[8] & 0x10u; /* 0xBFC1DA88: 11200005 beq $t1, $zero, 0xBFC1DAA0 */ uint32_t psx_brA_BFC1DA88 = cpu->gpr[9]; uint32_t psx_brB_BFC1DA88 = cpu->gpr[0]; - int psx_taken_BFC1DA88 = (psx_brA_BFC1DA88 == psx_brB_BFC1DA88); + psx_taken_BFC1DA88 = (psx_brA_BFC1DA88 == psx_brB_BFC1DA88); /* 0xBFC1DA8C: 00000000 nop */ /* nop */ if (psx_taken_BFC1DA88) goto label_BFC1DAA0; @@ -91200,7 +93896,7 @@ label_BFC1DA98: psx_check_interrupts(cpu); /* 0xBFC1DA98: 10000007 beq $zero, $zero, 0xBFC1DAB8 */ uint32_t psx_brA_BFC1DA98 = cpu->gpr[0]; uint32_t psx_brB_BFC1DA98 = cpu->gpr[0]; - int psx_taken_BFC1DA98 = (psx_brA_BFC1DA98 == psx_brB_BFC1DA98); + psx_taken_BFC1DA98 = (psx_brA_BFC1DA98 == psx_brB_BFC1DA98); /* 0xBFC1DA9C: 8FAA0020 lw $t2, 32($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1DA9Cu); return; } cpu->gpr[10] = cpu->read_word(psx_addr); } if (psx_taken_BFC1DA98) goto label_BFC1DAB8; @@ -91213,7 +93909,7 @@ label_BFC1DAA0: cpu->gpr[1] = 0x80080000u; /* 0xBFC1DAA4: 10000003 beq $zero, $zero, 0xBFC1DAB4 */ uint32_t psx_brA_BFC1DAA4 = cpu->gpr[0]; uint32_t psx_brB_BFC1DAA4 = cpu->gpr[0]; - int psx_taken_BFC1DAA4 = (psx_brA_BFC1DAA4 == psx_brB_BFC1DAA4); + psx_taken_BFC1DAA4 = (psx_brA_BFC1DAA4 == psx_brB_BFC1DAA4); /* 0xBFC1DAA8: AC209DF8 sw $zero, -25096($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25096)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1DAA8u); return; } g_debug_last_store_pc = 0xBFC1DAA8u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1DAA4) goto label_BFC1DAB4; @@ -91242,7 +93938,7 @@ label_BFC1DAB8: /* nop */ /* 0xBFC1DABC: 11400049 beq $t2, $zero, 0xBFC1DBE4 */ uint32_t psx_brA_BFC1DABC = cpu->gpr[10]; uint32_t psx_brB_BFC1DABC = cpu->gpr[0]; - int psx_taken_BFC1DABC = (psx_brA_BFC1DABC == psx_brB_BFC1DABC); + psx_taken_BFC1DABC = (psx_brA_BFC1DABC == psx_brB_BFC1DABC); /* 0xBFC1DAC0: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1DABC) goto label_BFC1DBE4; @@ -91259,7 +93955,7 @@ label_BFC1DAC4: /* nop */ /* 0xBFC1DAD0: 15600043 bne $t3, $zero, 0xBFC1DBE0 */ uint32_t psx_brA_BFC1DAD0 = cpu->gpr[11]; uint32_t psx_brB_BFC1DAD0 = cpu->gpr[0]; - int psx_taken_BFC1DAD0 = (psx_brA_BFC1DAD0 != psx_brB_BFC1DAD0); + psx_taken_BFC1DAD0 = (psx_brA_BFC1DAD0 != psx_brB_BFC1DAD0); /* 0xBFC1DAD4: 3C018006 lui $at, 0x8006 */ cpu->gpr[1] = 0x80060000u; if (psx_taken_BFC1DAD0) goto label_BFC1DBE0; @@ -91290,7 +93986,7 @@ label_BFC1DAF4: psx_check_interrupts(cpu); /* 0xBFC1DAF4: 14400005 bne $v0, $zero, 0xBFC1DB0C */ uint32_t psx_brA_BFC1DAF4 = cpu->gpr[2]; uint32_t psx_brB_BFC1DAF4 = cpu->gpr[0]; - int psx_taken_BFC1DAF4 = (psx_brA_BFC1DAF4 != psx_brB_BFC1DAF4); + psx_taken_BFC1DAF4 = (psx_brA_BFC1DAF4 != psx_brB_BFC1DAF4); /* 0xBFC1DAF8: 00000000 nop */ /* nop */ if (psx_taken_BFC1DAF4) goto label_BFC1DB0C; @@ -91311,7 +94007,7 @@ label_BFC1DB04: psx_check_interrupts(cpu); /* 0xBFC1DB04: 10000037 beq $zero, $zero, 0xBFC1DBE4 */ uint32_t psx_brA_BFC1DB04 = cpu->gpr[0]; uint32_t psx_brB_BFC1DB04 = cpu->gpr[0]; - int psx_taken_BFC1DB04 = (psx_brA_BFC1DB04 == psx_brB_BFC1DB04); + psx_taken_BFC1DB04 = (psx_brA_BFC1DB04 == psx_brB_BFC1DB04); /* 0xBFC1DB08: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1DB04) goto label_BFC1DBE4; @@ -91328,7 +94024,7 @@ label_BFC1DB0C: /* nop */ /* 0xBFC1DB18: 11A00005 beq $t5, $zero, 0xBFC1DB30 */ uint32_t psx_brA_BFC1DB18 = cpu->gpr[13]; uint32_t psx_brB_BFC1DB18 = cpu->gpr[0]; - int psx_taken_BFC1DB18 = (psx_brA_BFC1DB18 == psx_brB_BFC1DB18); + psx_taken_BFC1DB18 = (psx_brA_BFC1DB18 == psx_brB_BFC1DB18); /* 0xBFC1DB1C: 00000000 nop */ /* nop */ if (psx_taken_BFC1DB18) goto label_BFC1DB30; @@ -91343,7 +94039,7 @@ label_BFC1DB20: cpu->gpr[2] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[2] + (-24319))); /* 0xBFC1DB28: 1000000D beq $zero, $zero, 0xBFC1DB60 */ uint32_t psx_brA_BFC1DB28 = cpu->gpr[0]; uint32_t psx_brB_BFC1DB28 = cpu->gpr[0]; - int psx_taken_BFC1DB28 = (psx_brA_BFC1DB28 == psx_brB_BFC1DB28); + psx_taken_BFC1DB28 = (psx_brA_BFC1DB28 == psx_brB_BFC1DB28); /* 0xBFC1DB2C: 00000000 nop */ /* nop */ if (psx_taken_BFC1DB28) goto label_BFC1DB60; @@ -91362,7 +94058,7 @@ label_BFC1DB30: cpu->gpr[14] = cpu->gpr[2] & 0x80u; /* 0xBFC1DB40: 15C00007 bne $t6, $zero, 0xBFC1DB60 */ uint32_t psx_brA_BFC1DB40 = cpu->gpr[14]; uint32_t psx_brB_BFC1DB40 = cpu->gpr[0]; - int psx_taken_BFC1DB40 = (psx_brA_BFC1DB40 != psx_brB_BFC1DB40); + psx_taken_BFC1DB40 = (psx_brA_BFC1DB40 != psx_brB_BFC1DB40); /* 0xBFC1DB44: 00000000 nop */ /* nop */ if (psx_taken_BFC1DB40) goto label_BFC1DB60; @@ -91381,7 +94077,7 @@ label_BFC1DB48: cpu->gpr[1] = 0x80080000u; /* 0xBFC1DB58: 10000007 beq $zero, $zero, 0xBFC1DB78 */ uint32_t psx_brA_BFC1DB58 = cpu->gpr[0]; uint32_t psx_brB_BFC1DB58 = cpu->gpr[0]; - int psx_taken_BFC1DB58 = (psx_brA_BFC1DB58 == psx_brB_BFC1DB58); + psx_taken_BFC1DB58 = (psx_brA_BFC1DB58 == psx_brB_BFC1DB58); /* 0xBFC1DB5C: AC209DF4 sw $zero, -25100($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25100)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1DB5Cu); return; } g_debug_last_store_pc = 0xBFC1DB5Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1DB58) goto label_BFC1DB78; @@ -91398,7 +94094,7 @@ label_BFC1DB60: /* nop */ /* 0xBFC1DB6C: 13000002 beq $t8, $zero, 0xBFC1DB78 */ uint32_t psx_brA_BFC1DB6C = cpu->gpr[24]; uint32_t psx_brB_BFC1DB6C = cpu->gpr[0]; - int psx_taken_BFC1DB6C = (psx_brA_BFC1DB6C == psx_brB_BFC1DB6C); + psx_taken_BFC1DB6C = (psx_brA_BFC1DB6C == psx_brB_BFC1DB6C); /* 0xBFC1DB70: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1DB6C) goto label_BFC1DB78; @@ -91424,7 +94120,7 @@ label_BFC1DB78: cpu->gpr[8] = cpu->gpr[25] & 0x8u; /* 0xBFC1DB88: 11000015 beq $t0, $zero, 0xBFC1DBE0 */ uint32_t psx_brA_BFC1DB88 = cpu->gpr[8]; uint32_t psx_brB_BFC1DB88 = cpu->gpr[0]; - int psx_taken_BFC1DB88 = (psx_brA_BFC1DB88 == psx_brB_BFC1DB88); + psx_taken_BFC1DB88 = (psx_brA_BFC1DB88 == psx_brB_BFC1DB88); /* 0xBFC1DB8C: 00000000 nop */ /* nop */ if (psx_taken_BFC1DB88) goto label_BFC1DBE0; @@ -91437,7 +94133,7 @@ label_BFC1DB90: cpu->gpr[9] = cpu->gpr[2] & 0x40u; /* 0xBFC1DB94: 11200006 beq $t1, $zero, 0xBFC1DBB0 */ uint32_t psx_brA_BFC1DB94 = cpu->gpr[9]; uint32_t psx_brB_BFC1DB94 = cpu->gpr[0]; - int psx_taken_BFC1DB94 = (psx_brA_BFC1DB94 == psx_brB_BFC1DB94); + psx_taken_BFC1DB94 = (psx_brA_BFC1DB94 == psx_brB_BFC1DB94); /* 0xBFC1DB98: 304B0080 andi $t3, $v0, 0x80 */ cpu->gpr[11] = cpu->gpr[2] & 0x80u; if (psx_taken_BFC1DB94) goto label_BFC1DBB0; @@ -91452,7 +94148,7 @@ label_BFC1DB9C: cpu->gpr[1] = 0x80080000u; /* 0xBFC1DBA4: 10000007 beq $zero, $zero, 0xBFC1DBC4 */ uint32_t psx_brA_BFC1DBA4 = cpu->gpr[0]; uint32_t psx_brB_BFC1DBA4 = cpu->gpr[0]; - int psx_taken_BFC1DBA4 = (psx_brA_BFC1DBA4 == psx_brB_BFC1DBA4); + psx_taken_BFC1DBA4 = (psx_brA_BFC1DBA4 == psx_brB_BFC1DBA4); /* 0xBFC1DBA8: AC2A9DF4 sw $t2, -25100($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25100)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1DBA8u); return; } g_debug_last_store_pc = 0xBFC1DBA8u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC1DBA4) goto label_BFC1DBC4; @@ -91470,7 +94166,7 @@ label_BFC1DBB0: psx_check_interrupts(cpu); /* 0xBFC1DBB0: 11600004 beq $t3, $zero, 0xBFC1DBC4 */ uint32_t psx_brA_BFC1DBB0 = cpu->gpr[11]; uint32_t psx_brB_BFC1DBB0 = cpu->gpr[0]; - int psx_taken_BFC1DBB0 = (psx_brA_BFC1DBB0 == psx_brB_BFC1DBB0); + psx_taken_BFC1DBB0 = (psx_brA_BFC1DBB0 == psx_brB_BFC1DBB0); /* 0xBFC1DBB4: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1DBB0) goto label_BFC1DBC4; @@ -91494,7 +94190,7 @@ label_BFC1DBC4: cpu->gpr[12] = cpu->gpr[2] & 0x10u; /* 0xBFC1DBC8: 11800005 beq $t4, $zero, 0xBFC1DBE0 */ uint32_t psx_brA_BFC1DBC8 = cpu->gpr[12]; uint32_t psx_brB_BFC1DBC8 = cpu->gpr[0]; - int psx_taken_BFC1DBC8 = (psx_brA_BFC1DBC8 == psx_brB_BFC1DBC8); + psx_taken_BFC1DBC8 = (psx_brA_BFC1DBC8 == psx_brB_BFC1DBC8); /* 0xBFC1DBCC: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1DBC8) goto label_BFC1DBE0; @@ -91558,6 +94254,7 @@ void func_1FC1DBF4(CPUState* cpu) { default: break; } } + int psx_taken_BFC1DC08 = 0; label_BFC1DBF4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -91581,7 +94278,7 @@ label_BFC1DC04: cpu->gpr[1] = 0x80080000u; /* 0xBFC1DC08: 1040006F beq $v0, $zero, 0xBFC1DDC8 */ uint32_t psx_brA_BFC1DC08 = cpu->gpr[2]; uint32_t psx_brB_BFC1DC08 = cpu->gpr[0]; - int psx_taken_BFC1DC08 = (psx_brA_BFC1DC08 == psx_brB_BFC1DC08); + psx_taken_BFC1DC08 = (psx_brA_BFC1DC08 == psx_brB_BFC1DC08); /* 0xBFC1DC0C: AC229EC4 sw $v0, -24892($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24892)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1DC0Cu); return; } g_debug_last_store_pc = 0xBFC1DC0Cu; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC1DC08) goto label_BFC1DDC8; @@ -91921,6 +94618,9 @@ void func_1FC1DDD8(CPUState* cpu) { default: break; } } + int psx_taken_BFC1DE88 = 0; + int psx_taken_BFC1DEBC = 0; + int psx_taken_BFC1DEE8 = 0; label_BFC1DDD8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -92033,7 +94733,7 @@ label_BFC1DE78: g_debug_last_store_pc = 0xBFC1DE84u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-2)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC1DE88: 1443FFFB bne $v0, $v1, 0xBFC1DE78 */ uint32_t psx_brA_BFC1DE88 = cpu->gpr[2]; uint32_t psx_brB_BFC1DE88 = cpu->gpr[3]; - int psx_taken_BFC1DE88 = (psx_brA_BFC1DE88 != psx_brB_BFC1DE88); + psx_taken_BFC1DE88 = (psx_brA_BFC1DE88 != psx_brB_BFC1DE88); /* 0xBFC1DE8C: A040FFFF sb $zero, -1($v0) */ g_debug_last_store_pc = 0xBFC1DE8Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-1)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC1DE88) goto label_BFC1DE78; @@ -92071,7 +94771,7 @@ label_BFC1DEAC: g_debug_last_store_pc = 0xBFC1DEB8u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-2)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC1DEBC: 1443FFFB bne $v0, $v1, 0xBFC1DEAC */ uint32_t psx_brA_BFC1DEBC = cpu->gpr[2]; uint32_t psx_brB_BFC1DEBC = cpu->gpr[3]; - int psx_taken_BFC1DEBC = (psx_brA_BFC1DEBC != psx_brB_BFC1DEBC); + psx_taken_BFC1DEBC = (psx_brA_BFC1DEBC != psx_brB_BFC1DEBC); /* 0xBFC1DEC0: A040FFFF sb $zero, -1($v0) */ g_debug_last_store_pc = 0xBFC1DEC0u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-1)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC1DEBC) goto label_BFC1DEAC; @@ -92105,7 +94805,7 @@ label_BFC1DED8: g_debug_last_store_pc = 0xBFC1DEE4u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-2)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC1DEE8: 1443FFFB bne $v0, $v1, 0xBFC1DED8 */ uint32_t psx_brA_BFC1DEE8 = cpu->gpr[2]; uint32_t psx_brB_BFC1DEE8 = cpu->gpr[3]; - int psx_taken_BFC1DEE8 = (psx_brA_BFC1DEE8 != psx_brB_BFC1DEE8); + psx_taken_BFC1DEE8 = (psx_brA_BFC1DEE8 != psx_brB_BFC1DEE8); /* 0xBFC1DEEC: A040FFFF sb $zero, -1($v0) */ g_debug_last_store_pc = 0xBFC1DEECu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-1)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC1DEE8) goto label_BFC1DED8; @@ -92175,6 +94875,18 @@ void func_1FC1DF50(CPUState* cpu) { default: break; } } + int psx_taken_BFC1DFA8 = 0; + int psx_taken_BFC1DFD0 = 0; + int psx_taken_BFC1DFE4 = 0; + int psx_taken_BFC1DFEC = 0; + int psx_taken_BFC1E034 = 0; + int psx_taken_BFC1E03C = 0; + int psx_taken_BFC1E050 = 0; + int psx_taken_BFC1E068 = 0; + int psx_taken_BFC1E070 = 0; + int psx_taken_BFC1E07C = 0; + int psx_taken_BFC1E094 = 0; + int psx_taken_BFC1E09C = 0; label_BFC1DF50: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(17u); @@ -92231,7 +94943,7 @@ label_BFC1DF94: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[25] ? 1 : 0); /* 0xBFC1DFA8: 1420FFFA bne $at, $zero, 0xBFC1DF94 */ uint32_t psx_brA_BFC1DFA8 = cpu->gpr[1]; uint32_t psx_brB_BFC1DFA8 = cpu->gpr[0]; - int psx_taken_BFC1DFA8 = (psx_brA_BFC1DFA8 != psx_brB_BFC1DFA8); + psx_taken_BFC1DFA8 = (psx_brA_BFC1DFA8 != psx_brB_BFC1DFA8); /* 0xBFC1DFAC: 24630001 addiu $v1, $v1, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); if (psx_taken_BFC1DFA8) goto label_BFC1DF94; @@ -92264,7 +94976,7 @@ label_BFC1DFD0: psx_check_interrupts(cpu); /* 0xBFC1DFD0: 1040FFF7 beq $v0, $zero, 0xBFC1DFB0 */ uint32_t psx_brA_BFC1DFD0 = cpu->gpr[2]; uint32_t psx_brB_BFC1DFD0 = cpu->gpr[0]; - int psx_taken_BFC1DFD0 = (psx_brA_BFC1DFD0 == psx_brB_BFC1DFD0); + psx_taken_BFC1DFD0 = (psx_brA_BFC1DFD0 == psx_brB_BFC1DFD0); /* 0xBFC1DFD4: 00000000 nop */ /* nop */ if (psx_taken_BFC1DFD0) goto label_BFC1DFB0; @@ -92281,7 +94993,7 @@ label_BFC1DFD8: /* nop */ /* 0xBFC1DFE4: 11200003 beq $t1, $zero, 0xBFC1DFF4 */ uint32_t psx_brA_BFC1DFE4 = cpu->gpr[9]; uint32_t psx_brB_BFC1DFE4 = cpu->gpr[0]; - int psx_taken_BFC1DFE4 = (psx_brA_BFC1DFE4 == psx_brB_BFC1DFE4); + psx_taken_BFC1DFE4 = (psx_brA_BFC1DFE4 == psx_brB_BFC1DFE4); /* 0xBFC1DFE8: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1DFE4) goto label_BFC1DFF4; @@ -92292,7 +95004,7 @@ label_BFC1DFEC: psx_check_interrupts(cpu); /* 0xBFC1DFEC: 1000FFF0 beq $zero, $zero, 0xBFC1DFB0 */ uint32_t psx_brA_BFC1DFEC = cpu->gpr[0]; uint32_t psx_brB_BFC1DFEC = cpu->gpr[0]; - int psx_taken_BFC1DFEC = (psx_brA_BFC1DFEC == psx_brB_BFC1DFEC); + psx_taken_BFC1DFEC = (psx_brA_BFC1DFEC == psx_brB_BFC1DFEC); /* 0xBFC1DFF0: AC209EB0 sw $zero, -24912($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24912)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1DFF0u); return; } g_debug_last_store_pc = 0xBFC1DFF0u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1DFEC) goto label_BFC1DFB0; @@ -92341,7 +95053,7 @@ label_BFC1E024: cpu->gpr[1] = (uint32_t)(cpu->gpr[11] < 0x00000095u ? 1 : 0); /* 0xBFC1E034: 10200003 beq $at, $zero, 0xBFC1E044 */ uint32_t psx_brA_BFC1E034 = cpu->gpr[1]; uint32_t psx_brB_BFC1E034 = cpu->gpr[0]; - int psx_taken_BFC1E034 = (psx_brA_BFC1E034 == psx_brB_BFC1E034); + psx_taken_BFC1E034 = (psx_brA_BFC1E034 == psx_brB_BFC1E034); /* 0xBFC1E038: 00000000 nop */ /* nop */ if (psx_taken_BFC1E034) goto label_BFC1E044; @@ -92352,7 +95064,7 @@ label_BFC1E03C: psx_check_interrupts(cpu); /* 0xBFC1E03C: 1000001D beq $zero, $zero, 0xBFC1E0B4 */ uint32_t psx_brA_BFC1E03C = cpu->gpr[0]; uint32_t psx_brB_BFC1E03C = cpu->gpr[0]; - int psx_taken_BFC1E03C = (psx_brA_BFC1E03C == psx_brB_BFC1E03C); + psx_taken_BFC1E03C = (psx_brA_BFC1E03C == psx_brB_BFC1E03C); /* 0xBFC1E040: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC1E03C) goto label_BFC1E0B4; @@ -92369,7 +95081,7 @@ label_BFC1E044: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (149)); /* 0xBFC1E050: 15810015 bne $t4, $at, 0xBFC1E0A8 */ uint32_t psx_brA_BFC1E050 = cpu->gpr[12]; uint32_t psx_brB_BFC1E050 = cpu->gpr[1]; - int psx_taken_BFC1E050 = (psx_brA_BFC1E050 != psx_brB_BFC1E050); + psx_taken_BFC1E050 = (psx_brA_BFC1E050 != psx_brB_BFC1E050); /* 0xBFC1E054: 240E0001 addiu $t6, $zero, 1 */ cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1E050) goto label_BFC1E0A8; @@ -92388,7 +95100,7 @@ label_BFC1E058: cpu->gpr[1] = (uint32_t)(cpu->gpr[6] < 0x00000007u ? 1 : 0); /* 0xBFC1E068: 10200004 beq $at, $zero, 0xBFC1E07C */ uint32_t psx_brA_BFC1E068 = cpu->gpr[1]; uint32_t psx_brB_BFC1E068 = cpu->gpr[0]; - int psx_taken_BFC1E068 = (psx_brA_BFC1E068 == psx_brB_BFC1E068); + psx_taken_BFC1E068 = (psx_brA_BFC1E068 == psx_brB_BFC1E068); /* 0xBFC1E06C: 24010007 addiu $at, $zero, 7 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (7)); if (psx_taken_BFC1E068) goto label_BFC1E07C; @@ -92399,7 +95111,7 @@ label_BFC1E070: psx_check_interrupts(cpu); /* 0xBFC1E070: 10000010 beq $zero, $zero, 0xBFC1E0B4 */ uint32_t psx_brA_BFC1E070 = cpu->gpr[0]; uint32_t psx_brB_BFC1E070 = cpu->gpr[0]; - int psx_taken_BFC1E070 = (psx_brA_BFC1E070 == psx_brB_BFC1E070); + psx_taken_BFC1E070 = (psx_brA_BFC1E070 == psx_brB_BFC1E070); /* 0xBFC1E074: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC1E070) goto label_BFC1E0B4; @@ -92417,7 +95129,7 @@ label_BFC1E07C: psx_check_interrupts(cpu); /* 0xBFC1E07C: 14C1000A bne $a2, $at, 0xBFC1E0A8 */ uint32_t psx_brA_BFC1E07C = cpu->gpr[6]; uint32_t psx_brB_BFC1E07C = cpu->gpr[1]; - int psx_taken_BFC1E07C = (psx_brA_BFC1E07C != psx_brB_BFC1E07C); + psx_taken_BFC1E07C = (psx_brA_BFC1E07C != psx_brB_BFC1E07C); /* 0xBFC1E080: 240E0001 addiu $t6, $zero, 1 */ cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1E07C) goto label_BFC1E0A8; @@ -92436,7 +95148,7 @@ label_BFC1E084: cpu->gpr[1] = (uint32_t)(cpu->gpr[13] < 0x00000006u ? 1 : 0); /* 0xBFC1E094: 10200004 beq $at, $zero, 0xBFC1E0A8 */ uint32_t psx_brA_BFC1E094 = cpu->gpr[1]; uint32_t psx_brB_BFC1E094 = cpu->gpr[0]; - int psx_taken_BFC1E094 = (psx_brA_BFC1E094 == psx_brB_BFC1E094); + psx_taken_BFC1E094 = (psx_brA_BFC1E094 == psx_brB_BFC1E094); /* 0xBFC1E098: 240E0001 addiu $t6, $zero, 1 */ cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1E094) goto label_BFC1E0A8; @@ -92447,7 +95159,7 @@ label_BFC1E09C: psx_check_interrupts(cpu); /* 0xBFC1E09C: 10000005 beq $zero, $zero, 0xBFC1E0B4 */ uint32_t psx_brA_BFC1E09C = cpu->gpr[0]; uint32_t psx_brB_BFC1E09C = cpu->gpr[0]; - int psx_taken_BFC1E09C = (psx_brA_BFC1E09C == psx_brB_BFC1E09C); + psx_taken_BFC1E09C = (psx_brA_BFC1E09C == psx_brB_BFC1E09C); /* 0xBFC1E0A0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC1E09C) goto label_BFC1E0B4; @@ -92561,6 +95273,11 @@ void func_1FC1E10C(CPUState* cpu) { default: break; } } + int psx_taken_BFC1E110 = 0; + int psx_taken_BFC1E128 = 0; + int psx_taken_BFC1E134 = 0; + int psx_taken_BFC1E18C = 0; + int psx_taken_BFC1E1A8 = 0; label_BFC1E10C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -92570,7 +95287,7 @@ label_BFC1E10C: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-40)); /* 0xBFC1E110: 14800007 bne $a0, $zero, 0xBFC1E130 */ uint32_t psx_brA_BFC1E110 = cpu->gpr[4]; uint32_t psx_brB_BFC1E110 = cpu->gpr[0]; - int psx_taken_BFC1E110 = (psx_brA_BFC1E110 != psx_brB_BFC1E110); + psx_taken_BFC1E110 = (psx_brA_BFC1E110 != psx_brB_BFC1E110); /* 0xBFC1E114: AFBF001C sw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E114u); return; } g_debug_last_store_pc = 0xBFC1E114u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1E110) goto label_BFC1E130; @@ -92589,7 +95306,7 @@ label_BFC1E118: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E128: 1000000D beq $zero, $zero, 0xBFC1E160 */ uint32_t psx_brA_BFC1E128 = cpu->gpr[0]; uint32_t psx_brB_BFC1E128 = cpu->gpr[0]; - int psx_taken_BFC1E128 = (psx_brA_BFC1E128 == psx_brB_BFC1E128); + psx_taken_BFC1E128 = (psx_brA_BFC1E128 == psx_brB_BFC1E128); /* 0xBFC1E12C: AC206954 sw $zero, 26964($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26964)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E12Cu); return; } g_debug_last_store_pc = 0xBFC1E12Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1E128) goto label_BFC1E160; @@ -92602,7 +95319,7 @@ label_BFC1E130: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1E134: 1481000A bne $a0, $at, 0xBFC1E160 */ uint32_t psx_brA_BFC1E134 = cpu->gpr[4]; uint32_t psx_brB_BFC1E134 = cpu->gpr[1]; - int psx_taken_BFC1E134 = (psx_brA_BFC1E134 != psx_brB_BFC1E134); + psx_taken_BFC1E134 = (psx_brA_BFC1E134 != psx_brB_BFC1E134); /* 0xBFC1E138: 00000000 nop */ /* nop */ if (psx_taken_BFC1E134) goto label_BFC1E160; @@ -92664,7 +95381,7 @@ label_BFC1E18C: psx_check_interrupts(cpu); /* 0xBFC1E18C: 14400003 bne $v0, $zero, 0xBFC1E19C */ uint32_t psx_brA_BFC1E18C = cpu->gpr[2]; uint32_t psx_brB_BFC1E18C = cpu->gpr[0]; - int psx_taken_BFC1E18C = (psx_brA_BFC1E18C != psx_brB_BFC1E18C); + psx_taken_BFC1E18C = (psx_brA_BFC1E18C != psx_brB_BFC1E18C); /* 0xBFC1E190: 00000000 nop */ /* nop */ if (psx_taken_BFC1E18C) goto label_BFC1E19C; @@ -92691,7 +95408,7 @@ label_BFC1E19C: /* nop */ /* 0xBFC1E1A8: 11400002 beq $t2, $zero, 0xBFC1E1B4 */ uint32_t psx_brA_BFC1E1A8 = cpu->gpr[10]; uint32_t psx_brB_BFC1E1A8 = cpu->gpr[0]; - int psx_taken_BFC1E1A8 = (psx_brA_BFC1E1A8 == psx_brB_BFC1E1A8); + psx_taken_BFC1E1A8 = (psx_brA_BFC1E1A8 == psx_brB_BFC1E1A8); /* 0xBFC1E1AC: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1E1A8) goto label_BFC1E1B4; @@ -92745,6 +95462,22 @@ void func_1FC1E1CC(CPUState* cpu) { default: break; } } + int psx_taken_BFC1E1E4 = 0; + int psx_taken_BFC1E210 = 0; + int psx_taken_BFC1E258 = 0; + int psx_taken_BFC1E284 = 0; + int psx_taken_BFC1E2B0 = 0; + int psx_taken_BFC1E2C8 = 0; + int psx_taken_BFC1E2D8 = 0; + int psx_taken_BFC1E300 = 0; + int psx_taken_BFC1E314 = 0; + int psx_taken_BFC1E324 = 0; + int psx_taken_BFC1E33C = 0; + int psx_taken_BFC1E350 = 0; + int psx_taken_BFC1E36C = 0; + int psx_taken_BFC1E37C = 0; + int psx_taken_BFC1E390 = 0; + int psx_taken_BFC1E3A4 = 0; label_BFC1E1CC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -92764,7 +95497,7 @@ label_BFC1E1CC: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < 0x00000018u ? 1 : 0); /* 0xBFC1E1E4: 10200075 beq $at, $zero, 0xBFC1E3BC */ uint32_t psx_brA_BFC1E1E4 = cpu->gpr[1]; uint32_t psx_brB_BFC1E1E4 = cpu->gpr[0]; - int psx_taken_BFC1E1E4 = (psx_brA_BFC1E1E4 == psx_brB_BFC1E1E4); + psx_taken_BFC1E1E4 = (psx_brA_BFC1E1E4 == psx_brB_BFC1E1E4); /* 0xBFC1E1E8: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E1E8u); return; } g_debug_last_store_pc = 0xBFC1E1E8u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1E1E4) { cpu->pc = 0xBFC1E3BCu; return; } @@ -92822,7 +95555,7 @@ label_BFC1E210: psx_check_interrupts(cpu); /* 0xBFC1E210: 1000006B beq $zero, $zero, 0xBFC1E3C0 */ uint32_t psx_brA_BFC1E210 = cpu->gpr[0]; uint32_t psx_brB_BFC1E210 = cpu->gpr[0]; - int psx_taken_BFC1E210 = (psx_brA_BFC1E210 == psx_brB_BFC1E210); + psx_taken_BFC1E210 = (psx_brA_BFC1E210 == psx_brB_BFC1E210); /* 0xBFC1E214: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E214u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1E210) { cpu->pc = 0xBFC1E3C0u; return; } @@ -92871,7 +95604,7 @@ label_BFC1E228: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E258: 10000058 beq $zero, $zero, 0xBFC1E3BC */ uint32_t psx_brA_BFC1E258 = cpu->gpr[0]; uint32_t psx_brB_BFC1E258 = cpu->gpr[0]; - int psx_taken_BFC1E258 = (psx_brA_BFC1E258 == psx_brB_BFC1E258); + psx_taken_BFC1E258 = (psx_brA_BFC1E258 == psx_brB_BFC1E258); /* 0xBFC1E25C: AC206950 sw $zero, 26960($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26960)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E25Cu); return; } g_debug_last_store_pc = 0xBFC1E25Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1E258) { cpu->pc = 0xBFC1E3BCu; return; } @@ -92906,7 +95639,7 @@ label_BFC1E268: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E284: 1000004D beq $zero, $zero, 0xBFC1E3BC */ uint32_t psx_brA_BFC1E284 = cpu->gpr[0]; uint32_t psx_brB_BFC1E284 = cpu->gpr[0]; - int psx_taken_BFC1E284 = (psx_brA_BFC1E284 == psx_brB_BFC1E284); + psx_taken_BFC1E284 = (psx_brA_BFC1E284 == psx_brB_BFC1E284); /* 0xBFC1E288: AC206950 sw $zero, 26960($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26960)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E288u); return; } g_debug_last_store_pc = 0xBFC1E288u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1E284) { cpu->pc = 0xBFC1E3BCu; return; } @@ -92941,7 +95674,7 @@ label_BFC1E294: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E2B0: 10000042 beq $zero, $zero, 0xBFC1E3BC */ uint32_t psx_brA_BFC1E2B0 = cpu->gpr[0]; uint32_t psx_brB_BFC1E2B0 = cpu->gpr[0]; - int psx_taken_BFC1E2B0 = (psx_brA_BFC1E2B0 == psx_brB_BFC1E2B0); + psx_taken_BFC1E2B0 = (psx_brA_BFC1E2B0 == psx_brB_BFC1E2B0); /* 0xBFC1E2B4: AC206950 sw $zero, 26960($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26960)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E2B4u); return; } g_debug_last_store_pc = 0xBFC1E2B4u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1E2B0) { cpu->pc = 0xBFC1E3BCu; return; } @@ -92966,7 +95699,7 @@ label_BFC1E2C0: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E2C8: 1000003C beq $zero, $zero, 0xBFC1E3BC */ uint32_t psx_brA_BFC1E2C8 = cpu->gpr[0]; uint32_t psx_brB_BFC1E2C8 = cpu->gpr[0]; - int psx_taken_BFC1E2C8 = (psx_brA_BFC1E2C8 == psx_brB_BFC1E2C8); + psx_taken_BFC1E2C8 = (psx_brA_BFC1E2C8 == psx_brB_BFC1E2C8); /* 0xBFC1E2CC: AC2C6948 sw $t4, 26952($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26952)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E2CCu); return; } g_debug_last_store_pc = 0xBFC1E2CCu; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC1E2C8) { cpu->pc = 0xBFC1E3BCu; return; } @@ -92987,7 +95720,7 @@ label_BFC1E2D8: psx_check_interrupts(cpu); /* 0xBFC1E2D8: 10000039 beq $zero, $zero, 0xBFC1E3C0 */ uint32_t psx_brA_BFC1E2D8 = cpu->gpr[0]; uint32_t psx_brB_BFC1E2D8 = cpu->gpr[0]; - int psx_taken_BFC1E2D8 = (psx_brA_BFC1E2D8 == psx_brB_BFC1E2D8); + psx_taken_BFC1E2D8 = (psx_brA_BFC1E2D8 == psx_brB_BFC1E2D8); /* 0xBFC1E2DC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E2DCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1E2D8) { cpu->pc = 0xBFC1E3C0u; return; } @@ -93020,7 +95753,7 @@ label_BFC1E300: psx_check_interrupts(cpu); /* 0xBFC1E300: 1000002F beq $zero, $zero, 0xBFC1E3C0 */ uint32_t psx_brA_BFC1E300 = cpu->gpr[0]; uint32_t psx_brB_BFC1E300 = cpu->gpr[0]; - int psx_taken_BFC1E300 = (psx_brA_BFC1E300 == psx_brB_BFC1E300); + psx_taken_BFC1E300 = (psx_brA_BFC1E300 == psx_brB_BFC1E300); /* 0xBFC1E304: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E304u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1E300) { cpu->pc = 0xBFC1E3C0u; return; } @@ -93043,7 +95776,7 @@ label_BFC1E314: psx_check_interrupts(cpu); /* 0xBFC1E314: 1000002A beq $zero, $zero, 0xBFC1E3C0 */ uint32_t psx_brA_BFC1E314 = cpu->gpr[0]; uint32_t psx_brB_BFC1E314 = cpu->gpr[0]; - int psx_taken_BFC1E314 = (psx_brA_BFC1E314 == psx_brB_BFC1E314); + psx_taken_BFC1E314 = (psx_brA_BFC1E314 == psx_brB_BFC1E314); /* 0xBFC1E318: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E318u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1E314) { cpu->pc = 0xBFC1E3C0u; return; } @@ -93064,7 +95797,7 @@ label_BFC1E324: psx_check_interrupts(cpu); /* 0xBFC1E324: 10000026 beq $zero, $zero, 0xBFC1E3C0 */ uint32_t psx_brA_BFC1E324 = cpu->gpr[0]; uint32_t psx_brB_BFC1E324 = cpu->gpr[0]; - int psx_taken_BFC1E324 = (psx_brA_BFC1E324 == psx_brB_BFC1E324); + psx_taken_BFC1E324 = (psx_brA_BFC1E324 == psx_brB_BFC1E324); /* 0xBFC1E328: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E328u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1E324) { cpu->pc = 0xBFC1E3C0u; return; } @@ -93089,7 +95822,7 @@ label_BFC1E33C: psx_check_interrupts(cpu); /* 0xBFC1E33C: 10000020 beq $zero, $zero, 0xBFC1E3C0 */ uint32_t psx_brA_BFC1E33C = cpu->gpr[0]; uint32_t psx_brB_BFC1E33C = cpu->gpr[0]; - int psx_taken_BFC1E33C = (psx_brA_BFC1E33C == psx_brB_BFC1E33C); + psx_taken_BFC1E33C = (psx_brA_BFC1E33C == psx_brB_BFC1E33C); /* 0xBFC1E340: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E340u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1E33C) { cpu->pc = 0xBFC1E3C0u; return; } @@ -93112,7 +95845,7 @@ label_BFC1E350: psx_check_interrupts(cpu); /* 0xBFC1E350: 1000001B beq $zero, $zero, 0xBFC1E3C0 */ uint32_t psx_brA_BFC1E350 = cpu->gpr[0]; uint32_t psx_brB_BFC1E350 = cpu->gpr[0]; - int psx_taken_BFC1E350 = (psx_brA_BFC1E350 == psx_brB_BFC1E350); + psx_taken_BFC1E350 = (psx_brA_BFC1E350 == psx_brB_BFC1E350); /* 0xBFC1E354: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E354u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1E350) { cpu->pc = 0xBFC1E3C0u; return; } @@ -93139,7 +95872,7 @@ label_BFC1E36C: psx_check_interrupts(cpu); /* 0xBFC1E36C: 10000014 beq $zero, $zero, 0xBFC1E3C0 */ uint32_t psx_brA_BFC1E36C = cpu->gpr[0]; uint32_t psx_brB_BFC1E36C = cpu->gpr[0]; - int psx_taken_BFC1E36C = (psx_brA_BFC1E36C == psx_brB_BFC1E36C); + psx_taken_BFC1E36C = (psx_brA_BFC1E36C == psx_brB_BFC1E36C); /* 0xBFC1E370: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E370u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1E36C) { cpu->pc = 0xBFC1E3C0u; return; } @@ -93160,7 +95893,7 @@ label_BFC1E37C: psx_check_interrupts(cpu); /* 0xBFC1E37C: 10000010 beq $zero, $zero, 0xBFC1E3C0 */ uint32_t psx_brA_BFC1E37C = cpu->gpr[0]; uint32_t psx_brB_BFC1E37C = cpu->gpr[0]; - int psx_taken_BFC1E37C = (psx_brA_BFC1E37C == psx_brB_BFC1E37C); + psx_taken_BFC1E37C = (psx_brA_BFC1E37C == psx_brB_BFC1E37C); /* 0xBFC1E380: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E380u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1E37C) { cpu->pc = 0xBFC1E3C0u; return; } @@ -93183,7 +95916,7 @@ label_BFC1E38C: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E390: 1000000A beq $zero, $zero, 0xBFC1E3BC */ uint32_t psx_brA_BFC1E390 = cpu->gpr[0]; uint32_t psx_brB_BFC1E390 = cpu->gpr[0]; - int psx_taken_BFC1E390 = (psx_brA_BFC1E390 == psx_brB_BFC1E390); + psx_taken_BFC1E390 = (psx_brA_BFC1E390 == psx_brB_BFC1E390); /* 0xBFC1E394: AC206950 sw $zero, 26960($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26960)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E394u); return; } g_debug_last_store_pc = 0xBFC1E394u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1E390) { cpu->pc = 0xBFC1E3BCu; return; } @@ -93206,7 +95939,7 @@ label_BFC1E3A4: psx_check_interrupts(cpu); /* 0xBFC1E3A4: 10000006 beq $zero, $zero, 0xBFC1E3C0 */ uint32_t psx_brA_BFC1E3A4 = cpu->gpr[0]; uint32_t psx_brB_BFC1E3A4 = cpu->gpr[0]; - int psx_taken_BFC1E3A4 = (psx_brA_BFC1E3A4 == psx_brB_BFC1E3A4); + psx_taken_BFC1E3A4 = (psx_brA_BFC1E3A4 == psx_brB_BFC1E3A4); /* 0xBFC1E3A8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E3A8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1E3A4) { cpu->pc = 0xBFC1E3C0u; return; } @@ -93224,6 +95957,7 @@ void func_1FC1E3AC(CPUState* cpu) { default: break; } } + int psx_taken_BFC1E3B4 = 0; label_BFC1E3AC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -93241,7 +95975,7 @@ label_BFC1E3B4: psx_check_interrupts(cpu); /* 0xBFC1E3B4: 10000002 beq $zero, $zero, 0xBFC1E3C0 */ uint32_t psx_brA_BFC1E3B4 = cpu->gpr[0]; uint32_t psx_brB_BFC1E3B4 = cpu->gpr[0]; - int psx_taken_BFC1E3B4 = (psx_brA_BFC1E3B4 == psx_brB_BFC1E3B4); + psx_taken_BFC1E3B4 = (psx_brA_BFC1E3B4 == psx_brB_BFC1E3B4); /* 0xBFC1E3B8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E3B8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1E3B4) { cpu->pc = 0xBFC1E3C0u; return; } @@ -93371,6 +96105,178 @@ void func_1FC1E3CC(CPUState* cpu) { default: break; } } + int psx_taken_BFC1E3E8 = 0; + int psx_taken_BFC1E408 = 0; + int psx_taken_BFC1E448 = 0; + int psx_taken_BFC1E474 = 0; + int psx_taken_BFC1E484 = 0; + int psx_taken_BFC1E4B8 = 0; + int psx_taken_BFC1E4E4 = 0; + int psx_taken_BFC1E500 = 0; + int psx_taken_BFC1E510 = 0; + int psx_taken_BFC1E520 = 0; + int psx_taken_BFC1E530 = 0; + int psx_taken_BFC1E540 = 0; + int psx_taken_BFC1E550 = 0; + int psx_taken_BFC1E560 = 0; + int psx_taken_BFC1E570 = 0; + int psx_taken_BFC1E584 = 0; + int psx_taken_BFC1E5B0 = 0; + int psx_taken_BFC1E5BC = 0; + int psx_taken_BFC1E5DC = 0; + int psx_taken_BFC1E5E4 = 0; + int psx_taken_BFC1E61C = 0; + int psx_taken_BFC1E644 = 0; + int psx_taken_BFC1E660 = 0; + int psx_taken_BFC1E674 = 0; + int psx_taken_BFC1E6CC = 0; + int psx_taken_BFC1E700 = 0; + int psx_taken_BFC1E744 = 0; + int psx_taken_BFC1E788 = 0; + int psx_taken_BFC1E798 = 0; + int psx_taken_BFC1E7A8 = 0; + int psx_taken_BFC1E7BC = 0; + int psx_taken_BFC1E7D8 = 0; + int psx_taken_BFC1E7F8 = 0; + int psx_taken_BFC1E81C = 0; + int psx_taken_BFC1E838 = 0; + int psx_taken_BFC1E85C = 0; + int psx_taken_BFC1E878 = 0; + int psx_taken_BFC1E894 = 0; + int psx_taken_BFC1E8E0 = 0; + int psx_taken_BFC1E8F4 = 0; + int psx_taken_BFC1E908 = 0; + int psx_taken_BFC1E92C = 0; + int psx_taken_BFC1E954 = 0; + int psx_taken_BFC1E964 = 0; + int psx_taken_BFC1E984 = 0; + int psx_taken_BFC1E998 = 0; + int psx_taken_BFC1E9AC = 0; + int psx_taken_BFC1E9C0 = 0; + int psx_taken_BFC1E9D0 = 0; + int psx_taken_BFC1E9F8 = 0; + int psx_taken_BFC1EA08 = 0; + int psx_taken_BFC1EA18 = 0; + int psx_taken_BFC1EA2C = 0; + int psx_taken_BFC1EA70 = 0; + int psx_taken_BFC1EA98 = 0; + int psx_taken_BFC1EAA8 = 0; + int psx_taken_BFC1EAC0 = 0; + int psx_taken_BFC1EADC = 0; + int psx_taken_BFC1EAF4 = 0; + int psx_taken_BFC1EB08 = 0; + int psx_taken_BFC1EB1C = 0; + int psx_taken_BFC1EB60 = 0; + int psx_taken_BFC1EB6C = 0; + int psx_taken_BFC1EB8C = 0; + int psx_taken_BFC1EB9C = 0; + int psx_taken_BFC1EBB0 = 0; + int psx_taken_BFC1EBC0 = 0; + int psx_taken_BFC1EBD4 = 0; + int psx_taken_BFC1EBE8 = 0; + int psx_taken_BFC1EC14 = 0; + int psx_taken_BFC1EC24 = 0; + int psx_taken_BFC1EC4C = 0; + int psx_taken_BFC1EC74 = 0; + int psx_taken_BFC1EC98 = 0; + int psx_taken_BFC1ECA8 = 0; + int psx_taken_BFC1ECD8 = 0; + int psx_taken_BFC1ECF8 = 0; + int psx_taken_BFC1ED2C = 0; + int psx_taken_BFC1ED38 = 0; + int psx_taken_BFC1ED48 = 0; + int psx_taken_BFC1ED5C = 0; + int psx_taken_BFC1ED70 = 0; + int psx_taken_BFC1ED80 = 0; + int psx_taken_BFC1ED98 = 0; + int psx_taken_BFC1EDAC = 0; + int psx_taken_BFC1EDCC = 0; + int psx_taken_BFC1EE00 = 0; + int psx_taken_BFC1EE0C = 0; + int psx_taken_BFC1EE1C = 0; + int psx_taken_BFC1EE2C = 0; + int psx_taken_BFC1EE40 = 0; + int psx_taken_BFC1EE54 = 0; + int psx_taken_BFC1EE68 = 0; + int psx_taken_BFC1EE78 = 0; + int psx_taken_BFC1EEA0 = 0; + int psx_taken_BFC1EEB0 = 0; + int psx_taken_BFC1EECC = 0; + int psx_taken_BFC1EEE4 = 0; + int psx_taken_BFC1EF20 = 0; + int psx_taken_BFC1EF2C = 0; + int psx_taken_BFC1EF44 = 0; + int psx_taken_BFC1EF54 = 0; + int psx_taken_BFC1EF7C = 0; + int psx_taken_BFC1EF9C = 0; + int psx_taken_BFC1EFE4 = 0; + int psx_taken_BFC1EFF4 = 0; + int psx_taken_BFC1F01C = 0; + int psx_taken_BFC1F030 = 0; + int psx_taken_BFC1F050 = 0; + int psx_taken_BFC1F05C = 0; + int psx_taken_BFC1F070 = 0; + int psx_taken_BFC1F084 = 0; + int psx_taken_BFC1F098 = 0; + int psx_taken_BFC1F0B0 = 0; + int psx_taken_BFC1F0C0 = 0; + int psx_taken_BFC1F0E0 = 0; + int psx_taken_BFC1F14C = 0; + int psx_taken_BFC1F170 = 0; + int psx_taken_BFC1F1A0 = 0; + int psx_taken_BFC1F1C0 = 0; + int psx_taken_BFC1F1E0 = 0; + int psx_taken_BFC1F200 = 0; + int psx_taken_BFC1F21C = 0; + int psx_taken_BFC1F228 = 0; + int psx_taken_BFC1F234 = 0; + int psx_taken_BFC1F248 = 0; + int psx_taken_BFC1F270 = 0; + int psx_taken_BFC1F288 = 0; + int psx_taken_BFC1F2A0 = 0; + int psx_taken_BFC1F2BC = 0; + int psx_taken_BFC1F2C8 = 0; + int psx_taken_BFC1F2F0 = 0; + int psx_taken_BFC1F300 = 0; + int psx_taken_BFC1F314 = 0; + int psx_taken_BFC1F324 = 0; + int psx_taken_BFC1F338 = 0; + int psx_taken_BFC1F368 = 0; + int psx_taken_BFC1F374 = 0; + int psx_taken_BFC1F380 = 0; + int psx_taken_BFC1F38C = 0; + int psx_taken_BFC1F3AC = 0; + int psx_taken_BFC1F3B8 = 0; + int psx_taken_BFC1F3CC = 0; + int psx_taken_BFC1F3DC = 0; + int psx_taken_BFC1F3F0 = 0; + int psx_taken_BFC1F400 = 0; + int psx_taken_BFC1F414 = 0; + int psx_taken_BFC1F428 = 0; + int psx_taken_BFC1F438 = 0; + int psx_taken_BFC1F44C = 0; + int psx_taken_BFC1F460 = 0; + int psx_taken_BFC1F470 = 0; + int psx_taken_BFC1F484 = 0; + int psx_taken_BFC1F4AC = 0; + int psx_taken_BFC1F4C4 = 0; + int psx_taken_BFC1F4D8 = 0; + int psx_taken_BFC1F504 = 0; + int psx_taken_BFC1F510 = 0; + int psx_taken_BFC1F530 = 0; + int psx_taken_BFC1F538 = 0; + int psx_taken_BFC1F570 = 0; + int psx_taken_BFC1F594 = 0; + int psx_taken_BFC1F5A8 = 0; + int psx_taken_BFC1F5C4 = 0; + int psx_taken_BFC1F614 = 0; + int psx_taken_BFC1F61C = 0; + int psx_taken_BFC1F630 = 0; + int psx_taken_BFC1F64C = 0; + int psx_taken_BFC1F660 = 0; + int psx_taken_BFC1F668 = 0; + int psx_taken_BFC1F678 = 0; + int psx_taken_BFC1F68C = 0; label_BFC1E3CC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -93398,7 +96304,7 @@ label_BFC1E3E4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1E3E8: 14410091 bne $v0, $at, 0xBFC1E630 */ uint32_t psx_brA_BFC1E3E8 = cpu->gpr[2]; uint32_t psx_brB_BFC1E3E8 = cpu->gpr[1]; - int psx_taken_BFC1E3E8 = (psx_brA_BFC1E3E8 != psx_brB_BFC1E3E8); + psx_taken_BFC1E3E8 = (psx_brA_BFC1E3E8 != psx_brB_BFC1E3E8); /* 0xBFC1E3EC: 00000000 nop */ /* nop */ if (psx_taken_BFC1E3E8) goto label_BFC1E630; @@ -93421,7 +96327,7 @@ label_BFC1E3F0: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < 0x00000018u ? 1 : 0); /* 0xBFC1E408: 1020005B beq $at, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E408 = cpu->gpr[1]; uint32_t psx_brB_BFC1E408 = cpu->gpr[0]; - int psx_taken_BFC1E408 = (psx_brA_BFC1E408 == psx_brB_BFC1E408); + psx_taken_BFC1E408 = (psx_brA_BFC1E408 == psx_brB_BFC1E408); /* 0xBFC1E40C: 00000000 nop */ /* nop */ if (psx_taken_BFC1E408) goto label_BFC1E578; @@ -93483,7 +96389,7 @@ label_BFC1E448: psx_check_interrupts(cpu); /* 0xBFC1E448: 1000004B beq $zero, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E448 = cpu->gpr[0]; uint32_t psx_brB_BFC1E448 = cpu->gpr[0]; - int psx_taken_BFC1E448 = (psx_brA_BFC1E448 == psx_brB_BFC1E448); + psx_taken_BFC1E448 = (psx_brA_BFC1E448 == psx_brB_BFC1E448); /* 0xBFC1E44C: 00000000 nop */ /* nop */ if (psx_taken_BFC1E448) goto label_BFC1E578; @@ -93518,7 +96424,7 @@ label_BFC1E474: psx_check_interrupts(cpu); /* 0xBFC1E474: 10000040 beq $zero, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E474 = cpu->gpr[0]; uint32_t psx_brB_BFC1E474 = cpu->gpr[0]; - int psx_taken_BFC1E474 = (psx_brA_BFC1E474 == psx_brB_BFC1E474); + psx_taken_BFC1E474 = (psx_brA_BFC1E474 == psx_brB_BFC1E474); /* 0xBFC1E478: 00000000 nop */ /* nop */ if (psx_taken_BFC1E474) goto label_BFC1E578; @@ -93533,7 +96439,7 @@ label_BFC1E47C: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E484: 1000003C beq $zero, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E484 = cpu->gpr[0]; uint32_t psx_brB_BFC1E484 = cpu->gpr[0]; - int psx_taken_BFC1E484 = (psx_brA_BFC1E484 == psx_brB_BFC1E484); + psx_taken_BFC1E484 = (psx_brA_BFC1E484 == psx_brB_BFC1E484); /* 0xBFC1E488: AC296940 sw $t1, 26944($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26944)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E488u); return; } g_debug_last_store_pc = 0xBFC1E488u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC1E484) goto label_BFC1E578; @@ -93566,7 +96472,7 @@ label_BFC1E48C: cpu->gpr[1] = (uint32_t)(cpu->gpr[11] < 0x0000000Au ? 1 : 0); /* 0xBFC1E4B8: 1020002F beq $at, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E4B8 = cpu->gpr[1]; uint32_t psx_brB_BFC1E4B8 = cpu->gpr[0]; - int psx_taken_BFC1E4B8 = (psx_brA_BFC1E4B8 == psx_brB_BFC1E4B8); + psx_taken_BFC1E4B8 = (psx_brA_BFC1E4B8 == psx_brB_BFC1E4B8); /* 0xBFC1E4BC: 00000000 nop */ /* nop */ if (psx_taken_BFC1E4B8) goto label_BFC1E578; @@ -93609,7 +96515,7 @@ label_BFC1E4DC: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E4E4: 10000024 beq $zero, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E4E4 = cpu->gpr[0]; uint32_t psx_brB_BFC1E4E4 = cpu->gpr[0]; - int psx_taken_BFC1E4E4 = (psx_brA_BFC1E4E4 == psx_brB_BFC1E4E4); + psx_taken_BFC1E4E4 = (psx_brA_BFC1E4E4 == psx_brB_BFC1E4E4); /* 0xBFC1E4E8: AC246944 sw $a0, 26948($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26948)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E4E8u); return; } g_debug_last_store_pc = 0xBFC1E4E8u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC1E4E4) goto label_BFC1E578; @@ -93630,7 +96536,7 @@ label_BFC1E4EC: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1E500: 1000001D beq $zero, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E500 = cpu->gpr[0]; uint32_t psx_brB_BFC1E500 = cpu->gpr[0]; - int psx_taken_BFC1E500 = (psx_brA_BFC1E500 == psx_brB_BFC1E500); + psx_taken_BFC1E500 = (psx_brA_BFC1E500 == psx_brB_BFC1E500); /* 0xBFC1E504: AC2D6948 sw $t5, 26952($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26952)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E504u); return; } g_debug_last_store_pc = 0xBFC1E504u; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC1E500) goto label_BFC1E578; @@ -93645,7 +96551,7 @@ label_BFC1E508: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E510: 10000019 beq $zero, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E510 = cpu->gpr[0]; uint32_t psx_brB_BFC1E510 = cpu->gpr[0]; - int psx_taken_BFC1E510 = (psx_brA_BFC1E510 == psx_brB_BFC1E510); + psx_taken_BFC1E510 = (psx_brA_BFC1E510 == psx_brB_BFC1E510); /* 0xBFC1E514: AC246944 sw $a0, 26948($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26948)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E514u); return; } g_debug_last_store_pc = 0xBFC1E514u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC1E510) goto label_BFC1E578; @@ -93660,7 +96566,7 @@ label_BFC1E518: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E520: 10000015 beq $zero, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E520 = cpu->gpr[0]; uint32_t psx_brB_BFC1E520 = cpu->gpr[0]; - int psx_taken_BFC1E520 = (psx_brA_BFC1E520 == psx_brB_BFC1E520); + psx_taken_BFC1E520 = (psx_brA_BFC1E520 == psx_brB_BFC1E520); /* 0xBFC1E524: AC246944 sw $a0, 26948($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26948)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E524u); return; } g_debug_last_store_pc = 0xBFC1E524u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC1E520) goto label_BFC1E578; @@ -93675,7 +96581,7 @@ label_BFC1E528: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E530: 10000011 beq $zero, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E530 = cpu->gpr[0]; uint32_t psx_brB_BFC1E530 = cpu->gpr[0]; - int psx_taken_BFC1E530 = (psx_brA_BFC1E530 == psx_brB_BFC1E530); + psx_taken_BFC1E530 = (psx_brA_BFC1E530 == psx_brB_BFC1E530); /* 0xBFC1E534: AC246944 sw $a0, 26948($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26948)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E534u); return; } g_debug_last_store_pc = 0xBFC1E534u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC1E530) goto label_BFC1E578; @@ -93690,7 +96596,7 @@ label_BFC1E538: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E540: 1000000D beq $zero, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E540 = cpu->gpr[0]; uint32_t psx_brB_BFC1E540 = cpu->gpr[0]; - int psx_taken_BFC1E540 = (psx_brA_BFC1E540 == psx_brB_BFC1E540); + psx_taken_BFC1E540 = (psx_brA_BFC1E540 == psx_brB_BFC1E540); /* 0xBFC1E544: AC2E6940 sw $t6, 26944($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26944)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E544u); return; } g_debug_last_store_pc = 0xBFC1E544u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC1E540) goto label_BFC1E578; @@ -93705,7 +96611,7 @@ label_BFC1E548: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E550: 10000009 beq $zero, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E550 = cpu->gpr[0]; uint32_t psx_brB_BFC1E550 = cpu->gpr[0]; - int psx_taken_BFC1E550 = (psx_brA_BFC1E550 == psx_brB_BFC1E550); + psx_taken_BFC1E550 = (psx_brA_BFC1E550 == psx_brB_BFC1E550); /* 0xBFC1E554: AC2F6940 sw $t7, 26944($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26944)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E554u); return; } g_debug_last_store_pc = 0xBFC1E554u; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC1E550) goto label_BFC1E578; @@ -93720,7 +96626,7 @@ label_BFC1E558: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E560: 10000005 beq $zero, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E560 = cpu->gpr[0]; uint32_t psx_brB_BFC1E560 = cpu->gpr[0]; - int psx_taken_BFC1E560 = (psx_brA_BFC1E560 == psx_brB_BFC1E560); + psx_taken_BFC1E560 = (psx_brA_BFC1E560 == psx_brB_BFC1E560); /* 0xBFC1E564: AC386940 sw $t8, 26944($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26944)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E564u); return; } g_debug_last_store_pc = 0xBFC1E564u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC1E560) goto label_BFC1E578; @@ -93735,7 +96641,7 @@ label_BFC1E568: cpu->gpr[1] = 0x80060000u; /* 0xBFC1E570: 10000001 beq $zero, $zero, 0xBFC1E578 */ uint32_t psx_brA_BFC1E570 = cpu->gpr[0]; uint32_t psx_brB_BFC1E570 = cpu->gpr[0]; - int psx_taken_BFC1E570 = (psx_brA_BFC1E570 == psx_brB_BFC1E570); + psx_taken_BFC1E570 = (psx_brA_BFC1E570 == psx_brB_BFC1E570); /* 0xBFC1E574: AC396940 sw $t9, 26944($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26944)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E574u); return; } g_debug_last_store_pc = 0xBFC1E574u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC1E570) goto label_BFC1E578; @@ -93752,7 +96658,7 @@ label_BFC1E578: /* nop */ /* 0xBFC1E584: 10A0002A beq $a1, $zero, 0xBFC1E630 */ uint32_t psx_brA_BFC1E584 = cpu->gpr[5]; uint32_t psx_brB_BFC1E584 = cpu->gpr[0]; - int psx_taken_BFC1E584 = (psx_brA_BFC1E584 == psx_brB_BFC1E584); + psx_taken_BFC1E584 = (psx_brA_BFC1E584 == psx_brB_BFC1E584); /* 0xBFC1E588: 00000000 nop */ /* nop */ if (psx_taken_BFC1E584) goto label_BFC1E630; @@ -93787,7 +96693,7 @@ label_BFC1E5A4: cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC1E5B0: 18A0001C blez $a1, 0xBFC1E624 */ uint32_t psx_brA_BFC1E5B0 = cpu->gpr[5]; - int psx_taken_BFC1E5B0 = ((int32_t)psx_brA_BFC1E5B0 <= 0); + psx_taken_BFC1E5B0 = ((int32_t)psx_brA_BFC1E5B0 <= 0); /* 0xBFC1E5B4: 00000000 nop */ /* nop */ if (psx_taken_BFC1E5B0) goto label_BFC1E624; @@ -93800,7 +96706,7 @@ label_BFC1E5B8: cpu->gpr[3] = cpu->gpr[5] & 0x3u; /* 0xBFC1E5BC: 1060000B beq $v1, $zero, 0xBFC1E5EC */ uint32_t psx_brA_BFC1E5BC = cpu->gpr[3]; uint32_t psx_brB_BFC1E5BC = cpu->gpr[0]; - int psx_taken_BFC1E5BC = (psx_brA_BFC1E5BC == psx_brB_BFC1E5BC); + psx_taken_BFC1E5BC = (psx_brA_BFC1E5BC == psx_brB_BFC1E5BC); /* 0xBFC1E5C0: 00000000 nop */ /* nop */ if (psx_taken_BFC1E5BC) goto label_BFC1E5EC; @@ -93828,7 +96734,7 @@ label_BFC1E5D0: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC1E5DC: 1464FFFC bne $v1, $a0, 0xBFC1E5D0 */ uint32_t psx_brA_BFC1E5DC = cpu->gpr[3]; uint32_t psx_brB_BFC1E5DC = cpu->gpr[4]; - int psx_taken_BFC1E5DC = (psx_brA_BFC1E5DC != psx_brB_BFC1E5DC); + psx_taken_BFC1E5DC = (psx_brA_BFC1E5DC != psx_brB_BFC1E5DC); /* 0xBFC1E5E0: A04AFFFF sb $t2, -1($v0) */ g_debug_last_store_pc = 0xBFC1E5E0u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-1)), (uint8_t)(cpu->gpr[10] & 0xFFu)); if (psx_taken_BFC1E5DC) goto label_BFC1E5D0; @@ -93839,7 +96745,7 @@ label_BFC1E5E4: psx_check_interrupts(cpu); /* 0xBFC1E5E4: 1085000F beq $a0, $a1, 0xBFC1E624 */ uint32_t psx_brA_BFC1E5E4 = cpu->gpr[4]; uint32_t psx_brB_BFC1E5E4 = cpu->gpr[5]; - int psx_taken_BFC1E5E4 = (psx_brA_BFC1E5E4 == psx_brB_BFC1E5E4); + psx_taken_BFC1E5E4 = (psx_brA_BFC1E5E4 == psx_brB_BFC1E5E4); /* 0xBFC1E5E8: 00000000 nop */ /* nop */ if (psx_taken_BFC1E5E4) goto label_BFC1E624; @@ -93879,7 +96785,7 @@ label_BFC1E5FC: g_debug_last_store_pc = 0xBFC1E618u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-2)), (uint8_t)(cpu->gpr[14] & 0xFFu)); /* 0xBFC1E61C: 1443FFF7 bne $v0, $v1, 0xBFC1E5FC */ uint32_t psx_brA_BFC1E61C = cpu->gpr[2]; uint32_t psx_brB_BFC1E61C = cpu->gpr[3]; - int psx_taken_BFC1E61C = (psx_brA_BFC1E61C != psx_brB_BFC1E61C); + psx_taken_BFC1E61C = (psx_brA_BFC1E61C != psx_brB_BFC1E61C); /* 0xBFC1E620: A04FFFFF sb $t7, -1($v0) */ g_debug_last_store_pc = 0xBFC1E620u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-1)), (uint8_t)(cpu->gpr[15] & 0xFFu)); if (psx_taken_BFC1E61C) goto label_BFC1E5FC; @@ -93917,7 +96823,7 @@ label_BFC1E640: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1E644: 144100A1 bne $v0, $at, 0xBFC1E8CC */ uint32_t psx_brA_BFC1E644 = cpu->gpr[2]; uint32_t psx_brB_BFC1E644 = cpu->gpr[1]; - int psx_taken_BFC1E644 = (psx_brA_BFC1E644 != psx_brB_BFC1E644); + psx_taken_BFC1E644 = (psx_brA_BFC1E644 != psx_brB_BFC1E644); /* 0xBFC1E648: 00000000 nop */ /* nop */ if (psx_taken_BFC1E644) goto label_BFC1E8CC; @@ -93944,7 +96850,7 @@ label_BFC1E654: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1E660: 1301009A beq $t8, $at, 0xBFC1E8CC */ uint32_t psx_brA_BFC1E660 = cpu->gpr[24]; uint32_t psx_brB_BFC1E660 = cpu->gpr[1]; - int psx_taken_BFC1E660 = (psx_brA_BFC1E660 == psx_brB_BFC1E660); + psx_taken_BFC1E660 = (psx_brA_BFC1E660 == psx_brB_BFC1E660); /* 0xBFC1E664: 00000000 nop */ /* nop */ if (psx_taken_BFC1E660) goto label_BFC1E8CC; @@ -93961,7 +96867,7 @@ label_BFC1E668: /* nop */ /* 0xBFC1E674: 10400004 beq $v0, $zero, 0xBFC1E688 */ uint32_t psx_brA_BFC1E674 = cpu->gpr[2]; uint32_t psx_brB_BFC1E674 = cpu->gpr[0]; - int psx_taken_BFC1E674 = (psx_brA_BFC1E674 == psx_brB_BFC1E674); + psx_taken_BFC1E674 = (psx_brA_BFC1E674 == psx_brB_BFC1E674); /* 0xBFC1E678: 00000000 nop */ /* nop */ if (psx_taken_BFC1E674) goto label_BFC1E688; @@ -94035,7 +96941,7 @@ label_BFC1E6BC: cpu->gpr[8] = cpu->gpr[25] & 0x80u; /* 0xBFC1E6CC: 1100000E beq $t0, $zero, 0xBFC1E708 */ uint32_t psx_brA_BFC1E6CC = cpu->gpr[8]; uint32_t psx_brB_BFC1E6CC = cpu->gpr[0]; - int psx_taken_BFC1E6CC = (psx_brA_BFC1E6CC == psx_brB_BFC1E6CC); + psx_taken_BFC1E6CC = (psx_brA_BFC1E6CC == psx_brB_BFC1E6CC); /* 0xBFC1E6D0: AC229EAC sw $v0, -24916($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24916)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E6D0u); return; } g_debug_last_store_pc = 0xBFC1E6D0u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC1E6CC) goto label_BFC1E708; @@ -94080,7 +96986,7 @@ label_BFC1E6FC: cpu->gpr[1] = 0x80080000u; /* 0xBFC1E700: 1000000D beq $zero, $zero, 0xBFC1E738 */ uint32_t psx_brA_BFC1E700 = cpu->gpr[0]; uint32_t psx_brB_BFC1E700 = cpu->gpr[0]; - int psx_taken_BFC1E700 = (psx_brA_BFC1E700 == psx_brB_BFC1E700); + psx_taken_BFC1E700 = (psx_brA_BFC1E700 == psx_brB_BFC1E700); /* 0xBFC1E704: AC229E64 sw $v0, -24988($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24988)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E704u); return; } g_debug_last_store_pc = 0xBFC1E704u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC1E700) goto label_BFC1E738; @@ -94138,7 +97044,7 @@ label_BFC1E738: /* nop */ /* 0xBFC1E744: 1460000D bne $v1, $zero, 0xBFC1E77C */ uint32_t psx_brA_BFC1E744 = cpu->gpr[3]; uint32_t psx_brB_BFC1E744 = cpu->gpr[0]; - int psx_taken_BFC1E744 = (psx_brA_BFC1E744 != psx_brB_BFC1E744); + psx_taken_BFC1E744 = (psx_brA_BFC1E744 != psx_brB_BFC1E744); /* 0xBFC1E748: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1E744) goto label_BFC1E77C; @@ -94184,7 +97090,7 @@ label_BFC1E77C: cpu->gpr[1] = 0x80080000u; /* 0xBFC1E788: 106B0038 beq $v1, $t3, 0xBFC1E86C */ uint32_t psx_brA_BFC1E788 = cpu->gpr[3]; uint32_t psx_brB_BFC1E788 = cpu->gpr[11]; - int psx_taken_BFC1E788 = (psx_brA_BFC1E788 == psx_brB_BFC1E788); + psx_taken_BFC1E788 = (psx_brA_BFC1E788 == psx_brB_BFC1E788); /* 0xBFC1E78C: AC239E50 sw $v1, -25008($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25008)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1E78Cu); return; } g_debug_last_store_pc = 0xBFC1E78Cu; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC1E788) goto label_BFC1E86C; @@ -94205,7 +97111,7 @@ label_BFC1E798: psx_check_interrupts(cpu); /* 0xBFC1E798: 14400034 bne $v0, $zero, 0xBFC1E86C */ uint32_t psx_brA_BFC1E798 = cpu->gpr[2]; uint32_t psx_brB_BFC1E798 = cpu->gpr[0]; - int psx_taken_BFC1E798 = (psx_brA_BFC1E798 != psx_brB_BFC1E798); + psx_taken_BFC1E798 = (psx_brA_BFC1E798 != psx_brB_BFC1E798); /* 0xBFC1E79C: 00000000 nop */ /* nop */ if (psx_taken_BFC1E798) goto label_BFC1E86C; @@ -94226,7 +97132,7 @@ label_BFC1E7A8: psx_check_interrupts(cpu); /* 0xBFC1E7A8: 14400030 bne $v0, $zero, 0xBFC1E86C */ uint32_t psx_brA_BFC1E7A8 = cpu->gpr[2]; uint32_t psx_brB_BFC1E7A8 = cpu->gpr[0]; - int psx_taken_BFC1E7A8 = (psx_brA_BFC1E7A8 != psx_brB_BFC1E7A8); + psx_taken_BFC1E7A8 = (psx_brA_BFC1E7A8 != psx_brB_BFC1E7A8); /* 0xBFC1E7AC: 00000000 nop */ /* nop */ if (psx_taken_BFC1E7A8) goto label_BFC1E86C; @@ -94249,7 +97155,7 @@ label_BFC1E7B8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1E7BC: 1041002B beq $v0, $at, 0xBFC1E86C */ uint32_t psx_brA_BFC1E7BC = cpu->gpr[2]; uint32_t psx_brB_BFC1E7BC = cpu->gpr[1]; - int psx_taken_BFC1E7BC = (psx_brA_BFC1E7BC == psx_brB_BFC1E7BC); + psx_taken_BFC1E7BC = (psx_brA_BFC1E7BC == psx_brB_BFC1E7BC); /* 0xBFC1E7C0: 00000000 nop */ /* nop */ if (psx_taken_BFC1E7BC) goto label_BFC1E86C; @@ -94276,7 +97182,7 @@ label_BFC1E7D8: psx_check_interrupts(cpu); /* 0xBFC1E7D8: 14400024 bne $v0, $zero, 0xBFC1E86C */ uint32_t psx_brA_BFC1E7D8 = cpu->gpr[2]; uint32_t psx_brB_BFC1E7D8 = cpu->gpr[0]; - int psx_taken_BFC1E7D8 = (psx_brA_BFC1E7D8 != psx_brB_BFC1E7D8); + psx_taken_BFC1E7D8 = (psx_brA_BFC1E7D8 != psx_brB_BFC1E7D8); /* 0xBFC1E7DC: 00000000 nop */ /* nop */ if (psx_taken_BFC1E7D8) goto label_BFC1E86C; @@ -94299,7 +97205,7 @@ label_BFC1E7E0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC1E7F8: 1020000A beq $at, $zero, 0xBFC1E824 */ uint32_t psx_brA_BFC1E7F8 = cpu->gpr[1]; uint32_t psx_brB_BFC1E7F8 = cpu->gpr[0]; - int psx_taken_BFC1E7F8 = (psx_brA_BFC1E7F8 == psx_brB_BFC1E7F8); + psx_taken_BFC1E7F8 = (psx_brA_BFC1E7F8 == psx_brB_BFC1E7F8); /* 0xBFC1E7FC: 00408821 addu $s1, $v0, $zero */ cpu->gpr[17] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1E7F8) goto label_BFC1E824; @@ -94330,7 +97236,7 @@ label_BFC1E80C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC1E81C: 1420FFF8 bne $at, $zero, 0xBFC1E800 */ uint32_t psx_brA_BFC1E81C = cpu->gpr[1]; uint32_t psx_brB_BFC1E81C = cpu->gpr[0]; - int psx_taken_BFC1E81C = (psx_brA_BFC1E81C != psx_brB_BFC1E81C); + psx_taken_BFC1E81C = (psx_brA_BFC1E81C != psx_brB_BFC1E81C); /* 0xBFC1E820: 00000000 nop */ /* nop */ if (psx_taken_BFC1E81C) goto label_BFC1E800; @@ -94351,7 +97257,7 @@ label_BFC1E824: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[12] ? 1 : 0); /* 0xBFC1E838: 1020000A beq $at, $zero, 0xBFC1E864 */ uint32_t psx_brA_BFC1E838 = cpu->gpr[1]; uint32_t psx_brB_BFC1E838 = cpu->gpr[0]; - int psx_taken_BFC1E838 = (psx_brA_BFC1E838 == psx_brB_BFC1E838); + psx_taken_BFC1E838 = (psx_brA_BFC1E838 == psx_brB_BFC1E838); /* 0xBFC1E83C: 00608821 addu $s1, $v1, $zero */ cpu->gpr[17] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC1E838) goto label_BFC1E864; @@ -94382,7 +97288,7 @@ label_BFC1E84C: cpu->gpr[1] = (uint32_t)(cpu->gpr[17] < cpu->gpr[13] ? 1 : 0); /* 0xBFC1E85C: 1420FFF8 bne $at, $zero, 0xBFC1E840 */ uint32_t psx_brA_BFC1E85C = cpu->gpr[1]; uint32_t psx_brB_BFC1E85C = cpu->gpr[0]; - int psx_taken_BFC1E85C = (psx_brA_BFC1E85C != psx_brB_BFC1E85C); + psx_taken_BFC1E85C = (psx_brA_BFC1E85C != psx_brB_BFC1E85C); /* 0xBFC1E860: 00000000 nop */ /* nop */ if (psx_taken_BFC1E85C) goto label_BFC1E840; @@ -94414,7 +97320,7 @@ label_BFC1E874: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC1E878: 1441000C bne $v0, $at, 0xBFC1E8AC */ uint32_t psx_brA_BFC1E878 = cpu->gpr[2]; uint32_t psx_brB_BFC1E878 = cpu->gpr[1]; - int psx_taken_BFC1E878 = (psx_brA_BFC1E878 != psx_brB_BFC1E878); + psx_taken_BFC1E878 = (psx_brA_BFC1E878 != psx_brB_BFC1E878); /* 0xBFC1E87C: 00000000 nop */ /* nop */ if (psx_taken_BFC1E878) goto label_BFC1E8AC; @@ -94435,7 +97341,7 @@ label_BFC1E880: cpu->gpr[15] = cpu->hi; /* 0xBFC1E894: 11E00005 beq $t7, $zero, 0xBFC1E8AC */ uint32_t psx_brA_BFC1E894 = cpu->gpr[15]; uint32_t psx_brB_BFC1E894 = cpu->gpr[0]; - int psx_taken_BFC1E894 = (psx_brA_BFC1E894 == psx_brB_BFC1E894); + psx_taken_BFC1E894 = (psx_brA_BFC1E894 == psx_brB_BFC1E894); /* 0xBFC1E898: 00000000 nop */ /* nop */ if (psx_taken_BFC1E894) goto label_BFC1E8AC; @@ -94497,7 +97403,7 @@ label_BFC1E8DC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1E8E0: 14410215 bne $v0, $at, 0xBFC1F138 */ uint32_t psx_brA_BFC1E8E0 = cpu->gpr[2]; uint32_t psx_brB_BFC1E8E0 = cpu->gpr[1]; - int psx_taken_BFC1E8E0 = (psx_brA_BFC1E8E0 != psx_brB_BFC1E8E0); + psx_taken_BFC1E8E0 = (psx_brA_BFC1E8E0 != psx_brB_BFC1E8E0); /* 0xBFC1E8E4: 00000000 nop */ /* nop */ if (psx_taken_BFC1E8E0) goto label_BFC1F138; @@ -94520,7 +97426,7 @@ label_BFC1E8F0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1E8F4: 14410019 bne $v0, $at, 0xBFC1E95C */ uint32_t psx_brA_BFC1E8F4 = cpu->gpr[2]; uint32_t psx_brB_BFC1E8F4 = cpu->gpr[1]; - int psx_taken_BFC1E8F4 = (psx_brA_BFC1E8F4 != psx_brB_BFC1E8F4); + psx_taken_BFC1E8F4 = (psx_brA_BFC1E8F4 != psx_brB_BFC1E8F4); /* 0xBFC1E8F8: 00000000 nop */ /* nop */ if (psx_taken_BFC1E8F4) goto label_BFC1E95C; @@ -94537,7 +97443,7 @@ label_BFC1E8FC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1E908: 1721000A bne $t9, $at, 0xBFC1E934 */ uint32_t psx_brA_BFC1E908 = cpu->gpr[25]; uint32_t psx_brB_BFC1E908 = cpu->gpr[1]; - int psx_taken_BFC1E908 = (psx_brA_BFC1E908 != psx_brB_BFC1E908); + psx_taken_BFC1E908 = (psx_brA_BFC1E908 != psx_brB_BFC1E908); /* 0xBFC1E90C: 00000000 nop */ /* nop */ if (psx_taken_BFC1E908) goto label_BFC1E934; @@ -94574,7 +97480,7 @@ label_BFC1E92C: psx_check_interrupts(cpu); /* 0xBFC1E92C: 10000200 beq $zero, $zero, 0xBFC1F130 */ uint32_t psx_brA_BFC1E92C = cpu->gpr[0]; uint32_t psx_brB_BFC1E92C = cpu->gpr[0]; - int psx_taken_BFC1E92C = (psx_brA_BFC1E92C == psx_brB_BFC1E92C); + psx_taken_BFC1E92C = (psx_brA_BFC1E92C == psx_brB_BFC1E92C); /* 0xBFC1E930: 24090001 addiu $t1, $zero, 1 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1E92C) goto label_BFC1F130; @@ -94607,7 +97513,7 @@ label_BFC1E954: psx_check_interrupts(cpu); /* 0xBFC1E954: 100001F6 beq $zero, $zero, 0xBFC1F130 */ uint32_t psx_brA_BFC1E954 = cpu->gpr[0]; uint32_t psx_brB_BFC1E954 = cpu->gpr[0]; - int psx_taken_BFC1E954 = (psx_brA_BFC1E954 == psx_brB_BFC1E954); + psx_taken_BFC1E954 = (psx_brA_BFC1E954 == psx_brB_BFC1E954); /* 0xBFC1E958: 24090001 addiu $t1, $zero, 1 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1E954) goto label_BFC1F130; @@ -94628,7 +97534,7 @@ label_BFC1E964: psx_check_interrupts(cpu); /* 0xBFC1E964: 10400083 beq $v0, $zero, 0xBFC1EB74 */ uint32_t psx_brA_BFC1E964 = cpu->gpr[2]; uint32_t psx_brB_BFC1E964 = cpu->gpr[0]; - int psx_taken_BFC1E964 = (psx_brA_BFC1E964 == psx_brB_BFC1E964); + psx_taken_BFC1E964 = (psx_brA_BFC1E964 == psx_brB_BFC1E964); /* 0xBFC1E968: 00000000 nop */ /* nop */ if (psx_taken_BFC1E964) goto label_BFC1EB74; @@ -94657,7 +97563,7 @@ label_BFC1E974: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[10] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC1E984: 1420007B bne $at, $zero, 0xBFC1EB74 */ uint32_t psx_brA_BFC1E984 = cpu->gpr[1]; uint32_t psx_brB_BFC1E984 = cpu->gpr[0]; - int psx_taken_BFC1E984 = (psx_brA_BFC1E984 != psx_brB_BFC1E984); + psx_taken_BFC1E984 = (psx_brA_BFC1E984 != psx_brB_BFC1E984); /* 0xBFC1E988: 00000000 nop */ /* nop */ if (psx_taken_BFC1E984) goto label_BFC1EB74; @@ -94674,7 +97580,7 @@ label_BFC1E98C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC1E998: 10500006 beq $v0, $s0, 0xBFC1E9B4 */ uint32_t psx_brA_BFC1E998 = cpu->gpr[2]; uint32_t psx_brB_BFC1E998 = cpu->gpr[16]; - int psx_taken_BFC1E998 = (psx_brA_BFC1E998 == psx_brB_BFC1E998); + psx_taken_BFC1E998 = (psx_brA_BFC1E998 == psx_brB_BFC1E998); /* 0xBFC1E99C: 00000000 nop */ /* nop */ if (psx_taken_BFC1E998) goto label_BFC1E9B4; @@ -94691,7 +97597,7 @@ label_BFC1E9A0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (59)); /* 0xBFC1E9AC: 15610014 bne $t3, $at, 0xBFC1EA00 */ uint32_t psx_brA_BFC1E9AC = cpu->gpr[11]; uint32_t psx_brB_BFC1E9AC = cpu->gpr[1]; - int psx_taken_BFC1E9AC = (psx_brA_BFC1E9AC != psx_brB_BFC1E9AC); + psx_taken_BFC1E9AC = (psx_brA_BFC1E9AC != psx_brB_BFC1E9AC); /* 0xBFC1E9B0: 00000000 nop */ /* nop */ if (psx_taken_BFC1E9AC) goto label_BFC1EA00; @@ -94708,7 +97614,7 @@ label_BFC1E9B4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1E9C0: 15810005 bne $t4, $at, 0xBFC1E9D8 */ uint32_t psx_brA_BFC1E9C0 = cpu->gpr[12]; uint32_t psx_brB_BFC1E9C0 = cpu->gpr[1]; - int psx_taken_BFC1E9C0 = (psx_brA_BFC1E9C0 != psx_brB_BFC1E9C0); + psx_taken_BFC1E9C0 = (psx_brA_BFC1E9C0 != psx_brB_BFC1E9C0); /* 0xBFC1E9C4: 00000000 nop */ /* nop */ if (psx_taken_BFC1E9C0) goto label_BFC1E9D8; @@ -94729,7 +97635,7 @@ label_BFC1E9D0: psx_check_interrupts(cpu); /* 0xBFC1E9D0: 10000046 beq $zero, $zero, 0xBFC1EAEC */ uint32_t psx_brA_BFC1E9D0 = cpu->gpr[0]; uint32_t psx_brB_BFC1E9D0 = cpu->gpr[0]; - int psx_taken_BFC1E9D0 = (psx_brA_BFC1E9D0 == psx_brB_BFC1E9D0); + psx_taken_BFC1E9D0 = (psx_brA_BFC1E9D0 == psx_brB_BFC1E9D0); /* 0xBFC1E9D4: 00000000 nop */ /* nop */ if (psx_taken_BFC1E9D0) goto label_BFC1EAEC; @@ -94762,7 +97668,7 @@ label_BFC1E9F8: psx_check_interrupts(cpu); /* 0xBFC1E9F8: 1000003C beq $zero, $zero, 0xBFC1EAEC */ uint32_t psx_brA_BFC1E9F8 = cpu->gpr[0]; uint32_t psx_brB_BFC1E9F8 = cpu->gpr[0]; - int psx_taken_BFC1E9F8 = (psx_brA_BFC1E9F8 == psx_brB_BFC1E9F8); + psx_taken_BFC1E9F8 = (psx_brA_BFC1E9F8 == psx_brB_BFC1E9F8); /* 0xBFC1E9FC: 00000000 nop */ /* nop */ if (psx_taken_BFC1E9F8) goto label_BFC1EAEC; @@ -94783,7 +97689,7 @@ label_BFC1EA08: psx_check_interrupts(cpu); /* 0xBFC1EA08: 1450002F bne $v0, $s0, 0xBFC1EAC8 */ uint32_t psx_brA_BFC1EA08 = cpu->gpr[2]; uint32_t psx_brB_BFC1EA08 = cpu->gpr[16]; - int psx_taken_BFC1EA08 = (psx_brA_BFC1EA08 != psx_brB_BFC1EA08); + psx_taken_BFC1EA08 = (psx_brA_BFC1EA08 != psx_brB_BFC1EA08); /* 0xBFC1EA0C: 00000000 nop */ /* nop */ if (psx_taken_BFC1EA08) goto label_BFC1EAC8; @@ -94804,7 +97710,7 @@ label_BFC1EA18: psx_check_interrupts(cpu); /* 0xBFC1EA18: 1440001A bne $v0, $zero, 0xBFC1EA84 */ uint32_t psx_brA_BFC1EA18 = cpu->gpr[2]; uint32_t psx_brB_BFC1EA18 = cpu->gpr[0]; - int psx_taken_BFC1EA18 = (psx_brA_BFC1EA18 != psx_brB_BFC1EA18); + psx_taken_BFC1EA18 = (psx_brA_BFC1EA18 != psx_brB_BFC1EA18); /* 0xBFC1EA1C: 24080001 addiu $t0, $zero, 1 */ cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1EA18) goto label_BFC1EA84; @@ -94827,7 +97733,7 @@ label_BFC1EA2C: psx_check_interrupts(cpu); /* 0xBFC1EA2C: 18400012 blez $v0, 0xBFC1EA78 */ uint32_t psx_brA_BFC1EA2C = cpu->gpr[2]; - int psx_taken_BFC1EA2C = ((int32_t)psx_brA_BFC1EA2C <= 0); + psx_taken_BFC1EA2C = ((int32_t)psx_brA_BFC1EA2C <= 0); /* 0xBFC1EA30: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1EA2C) goto label_BFC1EA78; @@ -94879,7 +97785,7 @@ label_BFC1EA60: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[16] ? 1 : 0); /* 0xBFC1EA70: 1020FFF6 beq $at, $zero, 0xBFC1EA4C */ uint32_t psx_brA_BFC1EA70 = cpu->gpr[1]; uint32_t psx_brB_BFC1EA70 = cpu->gpr[0]; - int psx_taken_BFC1EA70 = (psx_brA_BFC1EA70 == psx_brB_BFC1EA70); + psx_taken_BFC1EA70 = (psx_brA_BFC1EA70 == psx_brB_BFC1EA70); /* 0xBFC1EA74: 00000000 nop */ /* nop */ if (psx_taken_BFC1EA70) goto label_BFC1EA4C; @@ -94911,7 +97817,7 @@ label_BFC1EA84: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1EA98: 15210005 bne $t1, $at, 0xBFC1EAB0 */ uint32_t psx_brA_BFC1EA98 = cpu->gpr[9]; uint32_t psx_brB_BFC1EA98 = cpu->gpr[1]; - int psx_taken_BFC1EA98 = (psx_brA_BFC1EA98 != psx_brB_BFC1EA98); + psx_taken_BFC1EA98 = (psx_brA_BFC1EA98 != psx_brB_BFC1EA98); /* 0xBFC1EA9C: 00000000 nop */ /* nop */ if (psx_taken_BFC1EA98) goto label_BFC1EAB0; @@ -94932,7 +97838,7 @@ label_BFC1EAA8: psx_check_interrupts(cpu); /* 0xBFC1EAA8: 10000010 beq $zero, $zero, 0xBFC1EAEC */ uint32_t psx_brA_BFC1EAA8 = cpu->gpr[0]; uint32_t psx_brB_BFC1EAA8 = cpu->gpr[0]; - int psx_taken_BFC1EAA8 = (psx_brA_BFC1EAA8 == psx_brB_BFC1EAA8); + psx_taken_BFC1EAA8 = (psx_brA_BFC1EAA8 == psx_brB_BFC1EAA8); /* 0xBFC1EAAC: 00000000 nop */ /* nop */ if (psx_taken_BFC1EAA8) goto label_BFC1EAEC; @@ -94957,7 +97863,7 @@ label_BFC1EAC0: psx_check_interrupts(cpu); /* 0xBFC1EAC0: 1000000A beq $zero, $zero, 0xBFC1EAEC */ uint32_t psx_brA_BFC1EAC0 = cpu->gpr[0]; uint32_t psx_brB_BFC1EAC0 = cpu->gpr[0]; - int psx_taken_BFC1EAC0 = (psx_brA_BFC1EAC0 == psx_brB_BFC1EAC0); + psx_taken_BFC1EAC0 = (psx_brA_BFC1EAC0 == psx_brB_BFC1EAC0); /* 0xBFC1EAC4: 00000000 nop */ /* nop */ if (psx_taken_BFC1EAC0) goto label_BFC1EAEC; @@ -94984,7 +97890,7 @@ label_BFC1EAD0: /* nop */ /* 0xBFC1EADC: 15420003 bne $t2, $v0, 0xBFC1EAEC */ uint32_t psx_brA_BFC1EADC = cpu->gpr[10]; uint32_t psx_brB_BFC1EADC = cpu->gpr[2]; - int psx_taken_BFC1EADC = (psx_brA_BFC1EADC != psx_brB_BFC1EADC); + psx_taken_BFC1EADC = (psx_brA_BFC1EADC != psx_brB_BFC1EADC); /* 0xBFC1EAE0: 00000000 nop */ /* nop */ if (psx_taken_BFC1EADC) goto label_BFC1EAEC; @@ -95015,7 +97921,7 @@ label_BFC1EAF4: psx_check_interrupts(cpu); /* 0xBFC1EAF4: 1440018C bne $v0, $zero, 0xBFC1F128 */ uint32_t psx_brA_BFC1EAF4 = cpu->gpr[2]; uint32_t psx_brB_BFC1EAF4 = cpu->gpr[0]; - int psx_taken_BFC1EAF4 = (psx_brA_BFC1EAF4 != psx_brB_BFC1EAF4); + psx_taken_BFC1EAF4 = (psx_brA_BFC1EAF4 != psx_brB_BFC1EAF4); /* 0xBFC1EAF8: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EAF8u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1EAF4) goto label_BFC1F128; @@ -95032,7 +97938,7 @@ label_BFC1EAFC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1EB08: 14410187 bne $v0, $at, 0xBFC1F128 */ uint32_t psx_brA_BFC1EB08 = cpu->gpr[2]; uint32_t psx_brB_BFC1EB08 = cpu->gpr[1]; - int psx_taken_BFC1EB08 = (psx_brA_BFC1EB08 != psx_brB_BFC1EB08); + psx_taken_BFC1EB08 = (psx_brA_BFC1EB08 != psx_brB_BFC1EB08); /* 0xBFC1EB0C: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EB0Cu); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1EB08) goto label_BFC1F128; @@ -95055,7 +97961,7 @@ label_BFC1EB1C: psx_check_interrupts(cpu); /* 0xBFC1EB1C: 18400012 blez $v0, 0xBFC1EB68 */ uint32_t psx_brA_BFC1EB1C = cpu->gpr[2]; - int psx_taken_BFC1EB1C = ((int32_t)psx_brA_BFC1EB1C <= 0); + psx_taken_BFC1EB1C = ((int32_t)psx_brA_BFC1EB1C <= 0); /* 0xBFC1EB20: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1EB1C) goto label_BFC1EB68; @@ -95107,7 +98013,7 @@ label_BFC1EB50: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[16] ? 1 : 0); /* 0xBFC1EB60: 1020FFF6 beq $at, $zero, 0xBFC1EB3C */ uint32_t psx_brA_BFC1EB60 = cpu->gpr[1]; uint32_t psx_brB_BFC1EB60 = cpu->gpr[0]; - int psx_taken_BFC1EB60 = (psx_brA_BFC1EB60 == psx_brB_BFC1EB60); + psx_taken_BFC1EB60 = (psx_brA_BFC1EB60 == psx_brB_BFC1EB60); /* 0xBFC1EB64: 00000000 nop */ /* nop */ if (psx_taken_BFC1EB60) goto label_BFC1EB3C; @@ -95120,7 +98026,7 @@ label_BFC1EB68: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EB68u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } /* 0xBFC1EB6C: 1000016E beq $zero, $zero, 0xBFC1F128 */ uint32_t psx_brA_BFC1EB6C = cpu->gpr[0]; uint32_t psx_brB_BFC1EB6C = cpu->gpr[0]; - int psx_taken_BFC1EB6C = (psx_brA_BFC1EB6C == psx_brB_BFC1EB6C); + psx_taken_BFC1EB6C = (psx_brA_BFC1EB6C == psx_brB_BFC1EB6C); /* 0xBFC1EB70: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EB70u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1EB6C) goto label_BFC1F128; @@ -95143,7 +98049,7 @@ label_BFC1EB74: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < cpu->gpr[15] ? 1 : 0); /* 0xBFC1EB8C: 142000A1 bne $at, $zero, 0xBFC1EE14 */ uint32_t psx_brA_BFC1EB8C = cpu->gpr[1]; uint32_t psx_brB_BFC1EB8C = cpu->gpr[0]; - int psx_taken_BFC1EB8C = (psx_brA_BFC1EB8C != psx_brB_BFC1EB8C); + psx_taken_BFC1EB8C = (psx_brA_BFC1EB8C != psx_brB_BFC1EB8C); /* 0xBFC1EB90: 00000000 nop */ /* nop */ if (psx_taken_BFC1EB8C) goto label_BFC1EE14; @@ -95164,7 +98070,7 @@ label_BFC1EB9C: psx_check_interrupts(cpu); /* 0xBFC1EB9C: 1440009D bne $v0, $zero, 0xBFC1EE14 */ uint32_t psx_brA_BFC1EB9C = cpu->gpr[2]; uint32_t psx_brB_BFC1EB9C = cpu->gpr[0]; - int psx_taken_BFC1EB9C = (psx_brA_BFC1EB9C != psx_brB_BFC1EB9C); + psx_taken_BFC1EB9C = (psx_brA_BFC1EB9C != psx_brB_BFC1EB9C); /* 0xBFC1EBA0: 00000000 nop */ /* nop */ if (psx_taken_BFC1EB9C) goto label_BFC1EE14; @@ -95187,7 +98093,7 @@ label_BFC1EBAC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC1EBB0: 14500063 bne $v0, $s0, 0xBFC1ED40 */ uint32_t psx_brA_BFC1EBB0 = cpu->gpr[2]; uint32_t psx_brB_BFC1EBB0 = cpu->gpr[16]; - int psx_taken_BFC1EBB0 = (psx_brA_BFC1EBB0 != psx_brB_BFC1EBB0); + psx_taken_BFC1EBB0 = (psx_brA_BFC1EBB0 != psx_brB_BFC1EBB0); /* 0xBFC1EBB4: 00000000 nop */ /* nop */ if (psx_taken_BFC1EBB0) goto label_BFC1ED40; @@ -95208,7 +98114,7 @@ label_BFC1EBC0: psx_check_interrupts(cpu); /* 0xBFC1EBC0: 1040002E beq $v0, $zero, 0xBFC1EC7C */ uint32_t psx_brA_BFC1EBC0 = cpu->gpr[2]; uint32_t psx_brB_BFC1EBC0 = cpu->gpr[0]; - int psx_taken_BFC1EBC0 = (psx_brA_BFC1EBC0 == psx_brB_BFC1EBC0); + psx_taken_BFC1EBC0 = (psx_brA_BFC1EBC0 == psx_brB_BFC1EBC0); /* 0xBFC1EBC4: 00000000 nop */ /* nop */ if (psx_taken_BFC1EBC0) goto label_BFC1EC7C; @@ -95225,7 +98131,7 @@ label_BFC1EBC8: /* nop */ /* 0xBFC1EBD4: 1050001F beq $v0, $s0, 0xBFC1EC54 */ uint32_t psx_brA_BFC1EBD4 = cpu->gpr[2]; uint32_t psx_brB_BFC1EBD4 = cpu->gpr[16]; - int psx_taken_BFC1EBD4 = (psx_brA_BFC1EBD4 == psx_brB_BFC1EBD4); + psx_taken_BFC1EBD4 = (psx_brA_BFC1EBD4 == psx_brB_BFC1EBD4); /* 0xBFC1EBD8: 00000000 nop */ /* nop */ if (psx_taken_BFC1EBD4) goto label_BFC1EC54; @@ -95242,7 +98148,7 @@ label_BFC1EBDC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (59)); /* 0xBFC1EBE8: 1321001A beq $t9, $at, 0xBFC1EC54 */ uint32_t psx_brA_BFC1EBE8 = cpu->gpr[25]; uint32_t psx_brB_BFC1EBE8 = cpu->gpr[1]; - int psx_taken_BFC1EBE8 = (psx_brA_BFC1EBE8 == psx_brB_BFC1EBE8); + psx_taken_BFC1EBE8 = (psx_brA_BFC1EBE8 == psx_brB_BFC1EBE8); /* 0xBFC1EBEC: 00000000 nop */ /* nop */ if (psx_taken_BFC1EBE8) goto label_BFC1EC54; @@ -95277,7 +98183,7 @@ label_BFC1EC00: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1EC14: 16010005 bne $s0, $at, 0xBFC1EC2C */ uint32_t psx_brA_BFC1EC14 = cpu->gpr[16]; uint32_t psx_brB_BFC1EC14 = cpu->gpr[1]; - int psx_taken_BFC1EC14 = (psx_brA_BFC1EC14 != psx_brB_BFC1EC14); + psx_taken_BFC1EC14 = (psx_brA_BFC1EC14 != psx_brB_BFC1EC14); /* 0xBFC1EC18: 00000000 nop */ /* nop */ if (psx_taken_BFC1EC14) goto label_BFC1EC2C; @@ -95298,7 +98204,7 @@ label_BFC1EC24: psx_check_interrupts(cpu); /* 0xBFC1EC24: 1000005A beq $zero, $zero, 0xBFC1ED90 */ uint32_t psx_brA_BFC1EC24 = cpu->gpr[0]; uint32_t psx_brB_BFC1EC24 = cpu->gpr[0]; - int psx_taken_BFC1EC24 = (psx_brA_BFC1EC24 == psx_brB_BFC1EC24); + psx_taken_BFC1EC24 = (psx_brA_BFC1EC24 == psx_brB_BFC1EC24); /* 0xBFC1EC28: 00000000 nop */ /* nop */ if (psx_taken_BFC1EC24) goto label_BFC1ED90; @@ -95331,7 +98237,7 @@ label_BFC1EC4C: psx_check_interrupts(cpu); /* 0xBFC1EC4C: 10000050 beq $zero, $zero, 0xBFC1ED90 */ uint32_t psx_brA_BFC1EC4C = cpu->gpr[0]; uint32_t psx_brB_BFC1EC4C = cpu->gpr[0]; - int psx_taken_BFC1EC4C = (psx_brA_BFC1EC4C == psx_brB_BFC1EC4C); + psx_taken_BFC1EC4C = (psx_brA_BFC1EC4C == psx_brB_BFC1EC4C); /* 0xBFC1EC50: 00000000 nop */ /* nop */ if (psx_taken_BFC1EC4C) goto label_BFC1ED90; @@ -95364,7 +98270,7 @@ label_BFC1EC74: psx_check_interrupts(cpu); /* 0xBFC1EC74: 10000046 beq $zero, $zero, 0xBFC1ED90 */ uint32_t psx_brA_BFC1EC74 = cpu->gpr[0]; uint32_t psx_brB_BFC1EC74 = cpu->gpr[0]; - int psx_taken_BFC1EC74 = (psx_brA_BFC1EC74 == psx_brB_BFC1EC74); + psx_taken_BFC1EC74 = (psx_brA_BFC1EC74 == psx_brB_BFC1EC74); /* 0xBFC1EC78: 00000000 nop */ /* nop */ if (psx_taken_BFC1EC74) goto label_BFC1ED90; @@ -95389,7 +98295,7 @@ label_BFC1EC7C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1EC98: 15810005 bne $t4, $at, 0xBFC1ECB0 */ uint32_t psx_brA_BFC1EC98 = cpu->gpr[12]; uint32_t psx_brB_BFC1EC98 = cpu->gpr[1]; - int psx_taken_BFC1EC98 = (psx_brA_BFC1EC98 != psx_brB_BFC1EC98); + psx_taken_BFC1EC98 = (psx_brA_BFC1EC98 != psx_brB_BFC1EC98); /* 0xBFC1EC9C: 00000000 nop */ /* nop */ if (psx_taken_BFC1EC98) goto label_BFC1ECB0; @@ -95410,7 +98316,7 @@ label_BFC1ECA8: psx_check_interrupts(cpu); /* 0xBFC1ECA8: 10000039 beq $zero, $zero, 0xBFC1ED90 */ uint32_t psx_brA_BFC1ECA8 = cpu->gpr[0]; uint32_t psx_brB_BFC1ECA8 = cpu->gpr[0]; - int psx_taken_BFC1ECA8 = (psx_brA_BFC1ECA8 == psx_brB_BFC1ECA8); + psx_taken_BFC1ECA8 = (psx_brA_BFC1ECA8 == psx_brB_BFC1ECA8); /* 0xBFC1ECAC: 00000000 nop */ /* nop */ if (psx_taken_BFC1ECA8) goto label_BFC1ED90; @@ -95453,7 +98359,7 @@ label_BFC1ECD8: psx_check_interrupts(cpu); /* 0xBFC1ECD8: 1440002D bne $v0, $zero, 0xBFC1ED90 */ uint32_t psx_brA_BFC1ECD8 = cpu->gpr[2]; uint32_t psx_brB_BFC1ECD8 = cpu->gpr[0]; - int psx_taken_BFC1ECD8 = (psx_brA_BFC1ECD8 != psx_brB_BFC1ECD8); + psx_taken_BFC1ECD8 = (psx_brA_BFC1ECD8 != psx_brB_BFC1ECD8); /* 0xBFC1ECDC: 00000000 nop */ /* nop */ if (psx_taken_BFC1ECD8) goto label_BFC1ED90; @@ -95476,7 +98382,7 @@ label_BFC1ECE0: cpu->gpr[1] = (uint32_t)(cpu->gpr[25] < cpu->gpr[2] ? 1 : 0); /* 0xBFC1ECF8: 1420000E bne $at, $zero, 0xBFC1ED34 */ uint32_t psx_brA_BFC1ECF8 = cpu->gpr[1]; uint32_t psx_brB_BFC1ECF8 = cpu->gpr[0]; - int psx_taken_BFC1ECF8 = (psx_brA_BFC1ECF8 != psx_brB_BFC1ECF8); + psx_taken_BFC1ECF8 = (psx_brA_BFC1ECF8 != psx_brB_BFC1ECF8); /* 0xBFC1ECFC: 00408821 addu $s1, $v0, $zero */ cpu->gpr[17] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1ECF8) goto label_BFC1ED34; @@ -95520,7 +98426,7 @@ label_BFC1ED1C: cpu->gpr[1] = (uint32_t)(cpu->gpr[9] < cpu->gpr[17] ? 1 : 0); /* 0xBFC1ED2C: 1020FFF8 beq $at, $zero, 0xBFC1ED10 */ uint32_t psx_brA_BFC1ED2C = cpu->gpr[1]; uint32_t psx_brB_BFC1ED2C = cpu->gpr[0]; - int psx_taken_BFC1ED2C = (psx_brA_BFC1ED2C == psx_brB_BFC1ED2C); + psx_taken_BFC1ED2C = (psx_brA_BFC1ED2C == psx_brB_BFC1ED2C); /* 0xBFC1ED30: 26100004 addiu $s0, $s0, 4 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (4)); if (psx_taken_BFC1ED2C) goto label_BFC1ED10; @@ -95533,7 +98439,7 @@ label_BFC1ED34: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1ED34u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } /* 0xBFC1ED38: 10000015 beq $zero, $zero, 0xBFC1ED90 */ uint32_t psx_brA_BFC1ED38 = cpu->gpr[0]; uint32_t psx_brB_BFC1ED38 = cpu->gpr[0]; - int psx_taken_BFC1ED38 = (psx_brA_BFC1ED38 == psx_brB_BFC1ED38); + psx_taken_BFC1ED38 = (psx_brA_BFC1ED38 == psx_brB_BFC1ED38); /* 0xBFC1ED3C: 00000000 nop */ /* nop */ if (psx_taken_BFC1ED38) goto label_BFC1ED90; @@ -95554,7 +98460,7 @@ label_BFC1ED48: psx_check_interrupts(cpu); /* 0xBFC1ED48: 1040000F beq $v0, $zero, 0xBFC1ED88 */ uint32_t psx_brA_BFC1ED48 = cpu->gpr[2]; uint32_t psx_brB_BFC1ED48 = cpu->gpr[0]; - int psx_taken_BFC1ED48 = (psx_brA_BFC1ED48 == psx_brB_BFC1ED48); + psx_taken_BFC1ED48 = (psx_brA_BFC1ED48 == psx_brB_BFC1ED48); /* 0xBFC1ED4C: 00000000 nop */ /* nop */ if (psx_taken_BFC1ED48) goto label_BFC1ED88; @@ -95571,7 +98477,7 @@ label_BFC1ED50: /* nop */ /* 0xBFC1ED5C: 1450000A bne $v0, $s0, 0xBFC1ED88 */ uint32_t psx_brA_BFC1ED5C = cpu->gpr[2]; uint32_t psx_brB_BFC1ED5C = cpu->gpr[16]; - int psx_taken_BFC1ED5C = (psx_brA_BFC1ED5C != psx_brB_BFC1ED5C); + psx_taken_BFC1ED5C = (psx_brA_BFC1ED5C != psx_brB_BFC1ED5C); /* 0xBFC1ED60: 00000000 nop */ /* nop */ if (psx_taken_BFC1ED5C) goto label_BFC1ED88; @@ -95588,7 +98494,7 @@ label_BFC1ED64: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (59)); /* 0xBFC1ED70: 15410005 bne $t2, $at, 0xBFC1ED88 */ uint32_t psx_brA_BFC1ED70 = cpu->gpr[10]; uint32_t psx_brB_BFC1ED70 = cpu->gpr[1]; - int psx_taken_BFC1ED70 = (psx_brA_BFC1ED70 != psx_brB_BFC1ED70); + psx_taken_BFC1ED70 = (psx_brA_BFC1ED70 != psx_brB_BFC1ED70); /* 0xBFC1ED74: 00000000 nop */ /* nop */ if (psx_taken_BFC1ED70) goto label_BFC1ED88; @@ -95609,7 +98515,7 @@ label_BFC1ED80: psx_check_interrupts(cpu); /* 0xBFC1ED80: 10000003 beq $zero, $zero, 0xBFC1ED90 */ uint32_t psx_brA_BFC1ED80 = cpu->gpr[0]; uint32_t psx_brB_BFC1ED80 = cpu->gpr[0]; - int psx_taken_BFC1ED80 = (psx_brA_BFC1ED80 == psx_brB_BFC1ED80); + psx_taken_BFC1ED80 = (psx_brA_BFC1ED80 == psx_brB_BFC1ED80); /* 0xBFC1ED84: 00000000 nop */ /* nop */ if (psx_taken_BFC1ED80) goto label_BFC1ED90; @@ -95640,7 +98546,7 @@ label_BFC1ED98: psx_check_interrupts(cpu); /* 0xBFC1ED98: 144000E3 bne $v0, $zero, 0xBFC1F128 */ uint32_t psx_brA_BFC1ED98 = cpu->gpr[2]; uint32_t psx_brB_BFC1ED98 = cpu->gpr[0]; - int psx_taken_BFC1ED98 = (psx_brA_BFC1ED98 != psx_brB_BFC1ED98); + psx_taken_BFC1ED98 = (psx_brA_BFC1ED98 != psx_brB_BFC1ED98); /* 0xBFC1ED9C: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1ED9Cu); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1ED98) goto label_BFC1F128; @@ -95657,7 +98563,7 @@ label_BFC1EDA0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1EDAC: 144100DE bne $v0, $at, 0xBFC1F128 */ uint32_t psx_brA_BFC1EDAC = cpu->gpr[2]; uint32_t psx_brB_BFC1EDAC = cpu->gpr[1]; - int psx_taken_BFC1EDAC = (psx_brA_BFC1EDAC != psx_brB_BFC1EDAC); + psx_taken_BFC1EDAC = (psx_brA_BFC1EDAC != psx_brB_BFC1EDAC); /* 0xBFC1EDB0: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EDB0u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1EDAC) goto label_BFC1F128; @@ -95680,7 +98586,7 @@ label_BFC1EDB4: cpu->gpr[1] = (uint32_t)(cpu->gpr[11] < cpu->gpr[2] ? 1 : 0); /* 0xBFC1EDCC: 1420000E bne $at, $zero, 0xBFC1EE08 */ uint32_t psx_brA_BFC1EDCC = cpu->gpr[1]; uint32_t psx_brB_BFC1EDCC = cpu->gpr[0]; - int psx_taken_BFC1EDCC = (psx_brA_BFC1EDCC != psx_brB_BFC1EDCC); + psx_taken_BFC1EDCC = (psx_brA_BFC1EDCC != psx_brB_BFC1EDCC); /* 0xBFC1EDD0: 00408821 addu $s1, $v0, $zero */ cpu->gpr[17] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1EDCC) goto label_BFC1EE08; @@ -95724,7 +98630,7 @@ label_BFC1EDF0: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < cpu->gpr[17] ? 1 : 0); /* 0xBFC1EE00: 1020FFF8 beq $at, $zero, 0xBFC1EDE4 */ uint32_t psx_brA_BFC1EE00 = cpu->gpr[1]; uint32_t psx_brB_BFC1EE00 = cpu->gpr[0]; - int psx_taken_BFC1EE00 = (psx_brA_BFC1EE00 == psx_brB_BFC1EE00); + psx_taken_BFC1EE00 = (psx_brA_BFC1EE00 == psx_brB_BFC1EE00); /* 0xBFC1EE04: 26100004 addiu $s0, $s0, 4 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (4)); if (psx_taken_BFC1EE00) goto label_BFC1EDE4; @@ -95737,7 +98643,7 @@ label_BFC1EE08: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EE08u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } /* 0xBFC1EE0C: 100000C6 beq $zero, $zero, 0xBFC1F128 */ uint32_t psx_brA_BFC1EE0C = cpu->gpr[0]; uint32_t psx_brB_BFC1EE0C = cpu->gpr[0]; - int psx_taken_BFC1EE0C = (psx_brA_BFC1EE0C == psx_brB_BFC1EE0C); + psx_taken_BFC1EE0C = (psx_brA_BFC1EE0C == psx_brB_BFC1EE0C); /* 0xBFC1EE10: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EE10u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1EE0C) goto label_BFC1F128; @@ -95758,7 +98664,7 @@ label_BFC1EE1C: psx_check_interrupts(cpu); /* 0xBFC1EE1C: 14400005 bne $v0, $zero, 0xBFC1EE34 */ uint32_t psx_brA_BFC1EE1C = cpu->gpr[2]; uint32_t psx_brB_BFC1EE1C = cpu->gpr[0]; - int psx_taken_BFC1EE1C = (psx_brA_BFC1EE1C != psx_brB_BFC1EE1C); + psx_taken_BFC1EE1C = (psx_brA_BFC1EE1C != psx_brB_BFC1EE1C); /* 0xBFC1EE20: 00000000 nop */ /* nop */ if (psx_taken_BFC1EE1C) goto label_BFC1EE34; @@ -95779,7 +98685,7 @@ label_BFC1EE2C: psx_check_interrupts(cpu); /* 0xBFC1EE2C: 1040007D beq $v0, $zero, 0xBFC1F024 */ uint32_t psx_brA_BFC1EE2C = cpu->gpr[2]; uint32_t psx_brB_BFC1EE2C = cpu->gpr[0]; - int psx_taken_BFC1EE2C = (psx_brA_BFC1EE2C == psx_brB_BFC1EE2C); + psx_taken_BFC1EE2C = (psx_brA_BFC1EE2C == psx_brB_BFC1EE2C); /* 0xBFC1EE30: 00000000 nop */ /* nop */ if (psx_taken_BFC1EE2C) goto label_BFC1F024; @@ -95796,7 +98702,7 @@ label_BFC1EE34: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC1EE40: 10500006 beq $v0, $s0, 0xBFC1EE5C */ uint32_t psx_brA_BFC1EE40 = cpu->gpr[2]; uint32_t psx_brB_BFC1EE40 = cpu->gpr[16]; - int psx_taken_BFC1EE40 = (psx_brA_BFC1EE40 == psx_brB_BFC1EE40); + psx_taken_BFC1EE40 = (psx_brA_BFC1EE40 == psx_brB_BFC1EE40); /* 0xBFC1EE44: 00000000 nop */ /* nop */ if (psx_taken_BFC1EE40) goto label_BFC1EE5C; @@ -95813,7 +98719,7 @@ label_BFC1EE48: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (59)); /* 0xBFC1EE54: 15E10014 bne $t7, $at, 0xBFC1EEA8 */ uint32_t psx_brA_BFC1EE54 = cpu->gpr[15]; uint32_t psx_brB_BFC1EE54 = cpu->gpr[1]; - int psx_taken_BFC1EE54 = (psx_brA_BFC1EE54 != psx_brB_BFC1EE54); + psx_taken_BFC1EE54 = (psx_brA_BFC1EE54 != psx_brB_BFC1EE54); /* 0xBFC1EE58: 00000000 nop */ /* nop */ if (psx_taken_BFC1EE54) goto label_BFC1EEA8; @@ -95830,7 +98736,7 @@ label_BFC1EE5C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1EE68: 17210005 bne $t9, $at, 0xBFC1EE80 */ uint32_t psx_brA_BFC1EE68 = cpu->gpr[25]; uint32_t psx_brB_BFC1EE68 = cpu->gpr[1]; - int psx_taken_BFC1EE68 = (psx_brA_BFC1EE68 != psx_brB_BFC1EE68); + psx_taken_BFC1EE68 = (psx_brA_BFC1EE68 != psx_brB_BFC1EE68); /* 0xBFC1EE6C: 00000000 nop */ /* nop */ if (psx_taken_BFC1EE68) goto label_BFC1EE80; @@ -95851,7 +98757,7 @@ label_BFC1EE78: psx_check_interrupts(cpu); /* 0xBFC1EE78: 100000AB beq $zero, $zero, 0xBFC1F128 */ uint32_t psx_brA_BFC1EE78 = cpu->gpr[0]; uint32_t psx_brB_BFC1EE78 = cpu->gpr[0]; - int psx_taken_BFC1EE78 = (psx_brA_BFC1EE78 == psx_brB_BFC1EE78); + psx_taken_BFC1EE78 = (psx_brA_BFC1EE78 == psx_brB_BFC1EE78); /* 0xBFC1EE7C: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EE7Cu); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1EE78) goto label_BFC1F128; @@ -95884,7 +98790,7 @@ label_BFC1EEA0: psx_check_interrupts(cpu); /* 0xBFC1EEA0: 100000A1 beq $zero, $zero, 0xBFC1F128 */ uint32_t psx_brA_BFC1EEA0 = cpu->gpr[0]; uint32_t psx_brB_BFC1EEA0 = cpu->gpr[0]; - int psx_taken_BFC1EEA0 = (psx_brA_BFC1EEA0 == psx_brB_BFC1EEA0); + psx_taken_BFC1EEA0 = (psx_brA_BFC1EEA0 == psx_brB_BFC1EEA0); /* 0xBFC1EEA4: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EEA4u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1EEA0) goto label_BFC1F128; @@ -95905,7 +98811,7 @@ label_BFC1EEB0: psx_check_interrupts(cpu); /* 0xBFC1EEB0: 14400038 bne $v0, $zero, 0xBFC1EF94 */ uint32_t psx_brA_BFC1EEB0 = cpu->gpr[2]; uint32_t psx_brB_BFC1EEB0 = cpu->gpr[0]; - int psx_taken_BFC1EEB0 = (psx_brA_BFC1EEB0 != psx_brB_BFC1EEB0); + psx_taken_BFC1EEB0 = (psx_brA_BFC1EEB0 != psx_brB_BFC1EEB0); /* 0xBFC1EEB4: 00000000 nop */ /* nop */ if (psx_taken_BFC1EEB0) goto label_BFC1EF94; @@ -95932,7 +98838,7 @@ label_BFC1EEC0: /* nop */ /* 0xBFC1EECC: 11220031 beq $t1, $v0, 0xBFC1EF94 */ uint32_t psx_brA_BFC1EECC = cpu->gpr[9]; uint32_t psx_brB_BFC1EECC = cpu->gpr[2]; - int psx_taken_BFC1EECC = (psx_brA_BFC1EECC == psx_brB_BFC1EECC); + psx_taken_BFC1EECC = (psx_brA_BFC1EECC == psx_brB_BFC1EECC); /* 0xBFC1EED0: 00000000 nop */ /* nop */ if (psx_taken_BFC1EECC) goto label_BFC1EF94; @@ -95957,7 +98863,7 @@ label_BFC1EEE0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC1EEE4: 1420001A bne $at, $zero, 0xBFC1EF50 */ uint32_t psx_brA_BFC1EEE4 = cpu->gpr[1]; uint32_t psx_brB_BFC1EEE4 = cpu->gpr[0]; - int psx_taken_BFC1EEE4 = (psx_brA_BFC1EEE4 != psx_brB_BFC1EEE4); + psx_taken_BFC1EEE4 = (psx_brA_BFC1EEE4 != psx_brB_BFC1EEE4); /* 0xBFC1EEE8: 8FB80054 lw $t8, 84($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (84)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EEE8u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC1EEE4) goto label_BFC1EF50; @@ -95999,7 +98905,7 @@ label_BFC1EF00: /* nop */ /* 0xBFC1EF20: 15CF0005 bne $t6, $t7, 0xBFC1EF38 */ uint32_t psx_brA_BFC1EF20 = cpu->gpr[14]; uint32_t psx_brB_BFC1EF20 = cpu->gpr[15]; - int psx_taken_BFC1EF20 = (psx_brA_BFC1EF20 != psx_brB_BFC1EF20); + psx_taken_BFC1EF20 = (psx_brA_BFC1EF20 != psx_brB_BFC1EF20); /* 0xBFC1EF24: 26310001 addiu $s1, $s1, 1 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); if (psx_taken_BFC1EF20) goto label_BFC1EF38; @@ -96012,7 +98918,7 @@ label_BFC1EF28: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1EF2C: 10000007 beq $zero, $zero, 0xBFC1EF4C */ uint32_t psx_brA_BFC1EF2C = cpu->gpr[0]; uint32_t psx_brB_BFC1EF2C = cpu->gpr[0]; - int psx_taken_BFC1EF2C = (psx_brA_BFC1EF2C == psx_brB_BFC1EF2C); + psx_taken_BFC1EF2C = (psx_brA_BFC1EF2C == psx_brB_BFC1EF2C); /* 0xBFC1EF30: AFB90054 sw $t9, 84($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (84)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EF30u); return; } g_debug_last_store_pc = 0xBFC1EF30u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC1EF2C) goto label_BFC1EF4C; @@ -96042,7 +98948,7 @@ label_BFC1EF40: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC1EF44: 1020FFEE beq $at, $zero, 0xBFC1EF00 */ uint32_t psx_brA_BFC1EF44 = cpu->gpr[1]; uint32_t psx_brB_BFC1EF44 = cpu->gpr[0]; - int psx_taken_BFC1EF44 = (psx_brA_BFC1EF44 == psx_brB_BFC1EF44); + psx_taken_BFC1EF44 = (psx_brA_BFC1EF44 == psx_brB_BFC1EF44); /* 0xBFC1EF48: 00000000 nop */ /* nop */ if (psx_taken_BFC1EF44) goto label_BFC1EF00; @@ -96062,7 +98968,7 @@ label_BFC1EF50: /* nop */ /* 0xBFC1EF54: 1700000E bne $t8, $zero, 0xBFC1EF90 */ uint32_t psx_brA_BFC1EF54 = cpu->gpr[24]; uint32_t psx_brB_BFC1EF54 = cpu->gpr[0]; - int psx_taken_BFC1EF54 = (psx_brA_BFC1EF54 != psx_brB_BFC1EF54); + psx_taken_BFC1EF54 = (psx_brA_BFC1EF54 != psx_brB_BFC1EF54); /* 0xBFC1EF58: 8FB1002C lw $s1, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EF58u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } if (psx_taken_BFC1EF54) goto label_BFC1EF90; @@ -96089,7 +98995,7 @@ label_BFC1EF5C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (21) ? 1 : 0); /* 0xBFC1EF7C: 10200004 beq $at, $zero, 0xBFC1EF90 */ uint32_t psx_brA_BFC1EF7C = cpu->gpr[1]; uint32_t psx_brB_BFC1EF7C = cpu->gpr[0]; - int psx_taken_BFC1EF7C = (psx_brA_BFC1EF7C == psx_brB_BFC1EF7C); + psx_taken_BFC1EF7C = (psx_brA_BFC1EF7C == psx_brB_BFC1EF7C); /* 0xBFC1EF80: 8FB1002C lw $s1, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EF80u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } if (psx_taken_BFC1EF7C) goto label_BFC1EF90; @@ -96134,7 +99040,7 @@ label_BFC1EF9C: psx_check_interrupts(cpu); /* 0xBFC1EF9C: 10400009 beq $v0, $zero, 0xBFC1EFC4 */ uint32_t psx_brA_BFC1EF9C = cpu->gpr[2]; uint32_t psx_brB_BFC1EF9C = cpu->gpr[0]; - int psx_taken_BFC1EF9C = (psx_brA_BFC1EF9C == psx_brB_BFC1EF9C); + psx_taken_BFC1EF9C = (psx_brA_BFC1EF9C == psx_brB_BFC1EF9C); /* 0xBFC1EFA0: 00000000 nop */ /* nop */ if (psx_taken_BFC1EF9C) goto label_BFC1EFC4; @@ -96183,7 +99089,7 @@ label_BFC1EFC4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1EFE4: 15C10005 bne $t6, $at, 0xBFC1EFFC */ uint32_t psx_brA_BFC1EFE4 = cpu->gpr[14]; uint32_t psx_brB_BFC1EFE4 = cpu->gpr[1]; - int psx_taken_BFC1EFE4 = (psx_brA_BFC1EFE4 != psx_brB_BFC1EFE4); + psx_taken_BFC1EFE4 = (psx_brA_BFC1EFE4 != psx_brB_BFC1EFE4); /* 0xBFC1EFE8: 00000000 nop */ /* nop */ if (psx_taken_BFC1EFE4) goto label_BFC1EFFC; @@ -96204,7 +99110,7 @@ label_BFC1EFF4: psx_check_interrupts(cpu); /* 0xBFC1EFF4: 1000004C beq $zero, $zero, 0xBFC1F128 */ uint32_t psx_brA_BFC1EFF4 = cpu->gpr[0]; uint32_t psx_brB_BFC1EFF4 = cpu->gpr[0]; - int psx_taken_BFC1EFF4 = (psx_brA_BFC1EFF4 == psx_brB_BFC1EFF4); + psx_taken_BFC1EFF4 = (psx_brA_BFC1EFF4 == psx_brB_BFC1EFF4); /* 0xBFC1EFF8: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1EFF8u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1EFF4) goto label_BFC1F128; @@ -96237,7 +99143,7 @@ label_BFC1F01C: psx_check_interrupts(cpu); /* 0xBFC1F01C: 10000042 beq $zero, $zero, 0xBFC1F128 */ uint32_t psx_brA_BFC1F01C = cpu->gpr[0]; uint32_t psx_brB_BFC1F01C = cpu->gpr[0]; - int psx_taken_BFC1F01C = (psx_brA_BFC1F01C == psx_brB_BFC1F01C); + psx_taken_BFC1F01C = (psx_brA_BFC1F01C == psx_brB_BFC1F01C); /* 0xBFC1F020: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F020u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1F01C) goto label_BFC1F128; @@ -96254,7 +99160,7 @@ label_BFC1F024: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1F030: 1441000A bne $v0, $at, 0xBFC1F05C */ uint32_t psx_brA_BFC1F030 = cpu->gpr[2]; uint32_t psx_brB_BFC1F030 = cpu->gpr[1]; - int psx_taken_BFC1F030 = (psx_brA_BFC1F030 != psx_brB_BFC1F030); + psx_taken_BFC1F030 = (psx_brA_BFC1F030 != psx_brB_BFC1F030); /* 0xBFC1F034: 24100002 addiu $s0, $zero, 2 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC1F030) goto label_BFC1F05C; @@ -96283,7 +99189,7 @@ label_BFC1F050: psx_check_interrupts(cpu); /* 0xBFC1F050: 10000035 beq $zero, $zero, 0xBFC1F128 */ uint32_t psx_brA_BFC1F050 = cpu->gpr[0]; uint32_t psx_brB_BFC1F050 = cpu->gpr[0]; - int psx_taken_BFC1F050 = (psx_brA_BFC1F050 == psx_brB_BFC1F050); + psx_taken_BFC1F050 = (psx_brA_BFC1F050 == psx_brB_BFC1F050); /* 0xBFC1F054: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F054u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1F050) goto label_BFC1F128; @@ -96301,7 +99207,7 @@ label_BFC1F05C: psx_check_interrupts(cpu); /* 0xBFC1F05C: 10500006 beq $v0, $s0, 0xBFC1F078 */ uint32_t psx_brA_BFC1F05C = cpu->gpr[2]; uint32_t psx_brB_BFC1F05C = cpu->gpr[16]; - int psx_taken_BFC1F05C = (psx_brA_BFC1F05C == psx_brB_BFC1F05C); + psx_taken_BFC1F05C = (psx_brA_BFC1F05C == psx_brB_BFC1F05C); /* 0xBFC1F060: 00000000 nop */ /* nop */ if (psx_taken_BFC1F05C) goto label_BFC1F078; @@ -96318,7 +99224,7 @@ label_BFC1F064: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (59)); /* 0xBFC1F070: 1521001D bne $t1, $at, 0xBFC1F0E8 */ uint32_t psx_brA_BFC1F070 = cpu->gpr[9]; uint32_t psx_brB_BFC1F070 = cpu->gpr[1]; - int psx_taken_BFC1F070 = (psx_brA_BFC1F070 != psx_brB_BFC1F070); + psx_taken_BFC1F070 = (psx_brA_BFC1F070 != psx_brB_BFC1F070); /* 0xBFC1F074: 00000000 nop */ /* nop */ if (psx_taken_BFC1F070) goto label_BFC1F0E8; @@ -96335,7 +99241,7 @@ label_BFC1F078: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1F084: 15410010 bne $t2, $at, 0xBFC1F0C8 */ uint32_t psx_brA_BFC1F084 = cpu->gpr[10]; uint32_t psx_brB_BFC1F084 = cpu->gpr[1]; - int psx_taken_BFC1F084 = (psx_brA_BFC1F084 != psx_brB_BFC1F084); + psx_taken_BFC1F084 = (psx_brA_BFC1F084 != psx_brB_BFC1F084); /* 0xBFC1F088: 00000000 nop */ /* nop */ if (psx_taken_BFC1F084) goto label_BFC1F0C8; @@ -96352,7 +99258,7 @@ label_BFC1F08C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1F098: 15610007 bne $t3, $at, 0xBFC1F0B8 */ uint32_t psx_brA_BFC1F098 = cpu->gpr[11]; uint32_t psx_brB_BFC1F098 = cpu->gpr[1]; - int psx_taken_BFC1F098 = (psx_brA_BFC1F098 != psx_brB_BFC1F098); + psx_taken_BFC1F098 = (psx_brA_BFC1F098 != psx_brB_BFC1F098); /* 0xBFC1F09C: 00000000 nop */ /* nop */ if (psx_taken_BFC1F098) goto label_BFC1F0B8; @@ -96377,7 +99283,7 @@ label_BFC1F0A8: cpu->gpr[1] = 0x80060000u; /* 0xBFC1F0B0: 1000001C beq $zero, $zero, 0xBFC1F124 */ uint32_t psx_brA_BFC1F0B0 = cpu->gpr[0]; uint32_t psx_brB_BFC1F0B0 = cpu->gpr[0]; - int psx_taken_BFC1F0B0 = (psx_brA_BFC1F0B0 == psx_brB_BFC1F0B0); + psx_taken_BFC1F0B0 = (psx_brA_BFC1F0B0 == psx_brB_BFC1F0B0); /* 0xBFC1F0B4: AC2D6958 sw $t5, 26968($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26968)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F0B4u); return; } g_debug_last_store_pc = 0xBFC1F0B4u; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC1F0B0) goto label_BFC1F124; @@ -96398,7 +99304,7 @@ label_BFC1F0C0: psx_check_interrupts(cpu); /* 0xBFC1F0C0: 10000019 beq $zero, $zero, 0xBFC1F128 */ uint32_t psx_brA_BFC1F0C0 = cpu->gpr[0]; uint32_t psx_brB_BFC1F0C0 = cpu->gpr[0]; - int psx_taken_BFC1F0C0 = (psx_brA_BFC1F0C0 == psx_brB_BFC1F0C0); + psx_taken_BFC1F0C0 = (psx_brA_BFC1F0C0 == psx_brB_BFC1F0C0); /* 0xBFC1F0C4: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F0C4u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1F0C0) goto label_BFC1F128; @@ -96427,7 +99333,7 @@ label_BFC1F0E0: psx_check_interrupts(cpu); /* 0xBFC1F0E0: 10000011 beq $zero, $zero, 0xBFC1F128 */ uint32_t psx_brA_BFC1F0E0 = cpu->gpr[0]; uint32_t psx_brB_BFC1F0E0 = cpu->gpr[0]; - int psx_taken_BFC1F0E0 = (psx_brA_BFC1F0E0 == psx_brB_BFC1F0E0); + psx_taken_BFC1F0E0 = (psx_brA_BFC1F0E0 == psx_brB_BFC1F0E0); /* 0xBFC1F0E4: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F0E4u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1F0E0) goto label_BFC1F128; @@ -96521,7 +99427,7 @@ label_BFC1F148: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1F14C: 144100D2 bne $v0, $at, 0xBFC1F498 */ uint32_t psx_brA_BFC1F14C = cpu->gpr[2]; uint32_t psx_brB_BFC1F14C = cpu->gpr[1]; - int psx_taken_BFC1F14C = (psx_brA_BFC1F14C != psx_brB_BFC1F14C); + psx_taken_BFC1F14C = (psx_brA_BFC1F14C != psx_brB_BFC1F14C); /* 0xBFC1F150: 00000000 nop */ /* nop */ if (psx_taken_BFC1F14C) goto label_BFC1F498; @@ -96552,7 +99458,7 @@ label_BFC1F160: cpu->gpr[11] = cpu->gpr[3] & 0x10u; /* 0xBFC1F170: 1160002C beq $t3, $zero, 0xBFC1F224 */ uint32_t psx_brA_BFC1F170 = cpu->gpr[11]; uint32_t psx_brB_BFC1F170 = cpu->gpr[0]; - int psx_taken_BFC1F170 = (psx_brA_BFC1F170 == psx_brB_BFC1F170); + psx_taken_BFC1F170 = (psx_brA_BFC1F170 == psx_brB_BFC1F170); /* 0xBFC1F174: AC2A9EB0 sw $t2, -24912($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24912)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F174u); return; } g_debug_last_store_pc = 0xBFC1F174u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC1F170) goto label_BFC1F224; @@ -96589,7 +99495,7 @@ label_BFC1F180: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (22)); /* 0xBFC1F1A0: 15A10004 bne $t5, $at, 0xBFC1F1B4 */ uint32_t psx_brA_BFC1F1A0 = cpu->gpr[13]; uint32_t psx_brB_BFC1F1A0 = cpu->gpr[1]; - int psx_taken_BFC1F1A0 = (psx_brA_BFC1F1A0 != psx_brB_BFC1F1A0); + psx_taken_BFC1F1A0 = (psx_brA_BFC1F1A0 != psx_brB_BFC1F1A0); /* 0xBFC1F1A4: 00000000 nop */ /* nop */ if (psx_taken_BFC1F1A0) goto label_BFC1F1B4; @@ -96617,7 +99523,7 @@ label_BFC1F1B4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (15)); /* 0xBFC1F1C0: 15C10004 bne $t6, $at, 0xBFC1F1D4 */ uint32_t psx_brA_BFC1F1C0 = cpu->gpr[14]; uint32_t psx_brB_BFC1F1C0 = cpu->gpr[1]; - int psx_taken_BFC1F1C0 = (psx_brA_BFC1F1C0 != psx_brB_BFC1F1C0); + psx_taken_BFC1F1C0 = (psx_brA_BFC1F1C0 != psx_brB_BFC1F1C0); /* 0xBFC1F1C4: 00000000 nop */ /* nop */ if (psx_taken_BFC1F1C0) goto label_BFC1F1D4; @@ -96645,7 +99551,7 @@ label_BFC1F1D4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (11)); /* 0xBFC1F1E0: 17210004 bne $t9, $at, 0xBFC1F1F4 */ uint32_t psx_brA_BFC1F1E0 = cpu->gpr[25]; uint32_t psx_brB_BFC1F1E0 = cpu->gpr[1]; - int psx_taken_BFC1F1E0 = (psx_brA_BFC1F1E0 != psx_brB_BFC1F1E0); + psx_taken_BFC1F1E0 = (psx_brA_BFC1F1E0 != psx_brB_BFC1F1E0); /* 0xBFC1F1E4: 00000000 nop */ /* nop */ if (psx_taken_BFC1F1E0) goto label_BFC1F1F4; @@ -96673,7 +99579,7 @@ label_BFC1F1F4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC1F200: 15010004 bne $t0, $at, 0xBFC1F214 */ uint32_t psx_brA_BFC1F200 = cpu->gpr[8]; uint32_t psx_brB_BFC1F200 = cpu->gpr[1]; - int psx_taken_BFC1F200 = (psx_brA_BFC1F200 != psx_brB_BFC1F200); + psx_taken_BFC1F200 = (psx_brA_BFC1F200 != psx_brB_BFC1F200); /* 0xBFC1F204: 00000000 nop */ /* nop */ if (psx_taken_BFC1F200) goto label_BFC1F214; @@ -96705,7 +99611,7 @@ label_BFC1F21C: psx_check_interrupts(cpu); /* 0xBFC1F21C: 10000120 beq $zero, $zero, 0xBFC1F6A0 */ uint32_t psx_brA_BFC1F21C = cpu->gpr[0]; uint32_t psx_brB_BFC1F21C = cpu->gpr[0]; - int psx_taken_BFC1F21C = (psx_brA_BFC1F21C == psx_brB_BFC1F21C); + psx_taken_BFC1F21C = (psx_brA_BFC1F21C == psx_brB_BFC1F21C); /* 0xBFC1F220: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F220u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1F21C) goto label_BFC1F6A0; @@ -96718,7 +99624,7 @@ label_BFC1F224: cpu->gpr[10] = cpu->gpr[3] & 0x8u; /* 0xBFC1F228: 15400004 bne $t2, $zero, 0xBFC1F23C */ uint32_t psx_brA_BFC1F228 = cpu->gpr[10]; uint32_t psx_brB_BFC1F228 = cpu->gpr[0]; - int psx_taken_BFC1F228 = (psx_brA_BFC1F228 != psx_brB_BFC1F228); + psx_taken_BFC1F228 = (psx_brA_BFC1F228 != psx_brB_BFC1F228); /* 0xBFC1F22C: 00000000 nop */ /* nop */ if (psx_taken_BFC1F228) goto label_BFC1F23C; @@ -96731,7 +99637,7 @@ label_BFC1F230: cpu->gpr[2] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (68))); /* 0xBFC1F234: 10000021 beq $zero, $zero, 0xBFC1F2BC */ uint32_t psx_brA_BFC1F234 = cpu->gpr[0]; uint32_t psx_brB_BFC1F234 = cpu->gpr[0]; - int psx_taken_BFC1F234 = (psx_brA_BFC1F234 == psx_brB_BFC1F234); + psx_taken_BFC1F234 = (psx_brA_BFC1F234 == psx_brB_BFC1F234); /* 0xBFC1F238: 30680004 andi $t0, $v1, 0x4 */ cpu->gpr[8] = cpu->gpr[3] & 0x4u; if (psx_taken_BFC1F234) goto label_BFC1F2BC; @@ -96748,7 +99654,7 @@ label_BFC1F23C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (22)); /* 0xBFC1F248: 15610007 bne $t3, $at, 0xBFC1F268 */ uint32_t psx_brA_BFC1F248 = cpu->gpr[11]; uint32_t psx_brB_BFC1F248 = cpu->gpr[1]; - int psx_taken_BFC1F248 = (psx_brA_BFC1F248 != psx_brB_BFC1F248); + psx_taken_BFC1F248 = (psx_brA_BFC1F248 != psx_brB_BFC1F248); /* 0xBFC1F24C: 93A20044 lbu $v0, 68($sp) */ cpu->gpr[2] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (68))); if (psx_taken_BFC1F248) goto label_BFC1F268; @@ -96780,7 +99686,7 @@ label_BFC1F268: cpu->gpr[12] = cpu->gpr[2] & 0x80u; /* 0xBFC1F270: 11800004 beq $t4, $zero, 0xBFC1F284 */ uint32_t psx_brA_BFC1F270 = cpu->gpr[12]; uint32_t psx_brB_BFC1F270 = cpu->gpr[0]; - int psx_taken_BFC1F270 = (psx_brA_BFC1F270 == psx_brB_BFC1F270); + psx_taken_BFC1F270 = (psx_brA_BFC1F270 == psx_brB_BFC1F270); /* 0xBFC1F274: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1F270) goto label_BFC1F284; @@ -96804,7 +99710,7 @@ label_BFC1F284: cpu->gpr[14] = cpu->gpr[2] & 0x40u; /* 0xBFC1F288: 11C00005 beq $t6, $zero, 0xBFC1F2A0 */ uint32_t psx_brA_BFC1F288 = cpu->gpr[14]; uint32_t psx_brB_BFC1F288 = cpu->gpr[0]; - int psx_taken_BFC1F288 = (psx_brA_BFC1F288 == psx_brB_BFC1F288); + psx_taken_BFC1F288 = (psx_brA_BFC1F288 == psx_brB_BFC1F288); /* 0xBFC1F28C: 30590010 andi $t9, $v0, 0x10 */ cpu->gpr[25] = cpu->gpr[2] & 0x10u; if (psx_taken_BFC1F288) goto label_BFC1F2A0; @@ -96828,7 +99734,7 @@ label_BFC1F2A0: psx_check_interrupts(cpu); /* 0xBFC1F2A0: 13200005 beq $t9, $zero, 0xBFC1F2B8 */ uint32_t psx_brA_BFC1F2A0 = cpu->gpr[25]; uint32_t psx_brB_BFC1F2A0 = cpu->gpr[0]; - int psx_taken_BFC1F2A0 = (psx_brA_BFC1F2A0 == psx_brB_BFC1F2A0); + psx_taken_BFC1F2A0 = (psx_brA_BFC1F2A0 == psx_brB_BFC1F2A0); /* 0xBFC1F2A4: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1F2A0) goto label_BFC1F2B8; @@ -96859,7 +99765,7 @@ label_BFC1F2BC: psx_check_interrupts(cpu); /* 0xBFC1F2BC: 1100003A beq $t0, $zero, 0xBFC1F3A8 */ uint32_t psx_brA_BFC1F2BC = cpu->gpr[8]; uint32_t psx_brB_BFC1F2BC = cpu->gpr[0]; - int psx_taken_BFC1F2BC = (psx_brA_BFC1F2BC == psx_brB_BFC1F2BC); + psx_taken_BFC1F2BC = (psx_brA_BFC1F2BC == psx_brB_BFC1F2BC); /* 0xBFC1F2C0: 3C018006 lui $at, 0x8006 */ cpu->gpr[1] = 0x80060000u; if (psx_taken_BFC1F2BC) goto label_BFC1F3A8; @@ -96872,7 +99778,7 @@ label_BFC1F2C4: cpu->gpr[9] = cpu->gpr[2] & 0x8u; /* 0xBFC1F2C8: 11200029 beq $t1, $zero, 0xBFC1F370 */ uint32_t psx_brA_BFC1F2C8 = cpu->gpr[9]; uint32_t psx_brB_BFC1F2C8 = cpu->gpr[0]; - int psx_taken_BFC1F2C8 = (psx_brA_BFC1F2C8 == psx_brB_BFC1F2C8); + psx_taken_BFC1F2C8 = (psx_brA_BFC1F2C8 == psx_brB_BFC1F2C8); /* 0xBFC1F2CC: AC206950 sw $zero, 26960($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26960)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F2CCu); return; } g_debug_last_store_pc = 0xBFC1F2CCu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1F2C8) goto label_BFC1F370; @@ -96905,7 +99811,7 @@ label_BFC1F2D8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (22)); /* 0xBFC1F2F0: 15410005 bne $t2, $at, 0xBFC1F308 */ uint32_t psx_brA_BFC1F2F0 = cpu->gpr[10]; uint32_t psx_brB_BFC1F2F0 = cpu->gpr[1]; - int psx_taken_BFC1F2F0 = (psx_brA_BFC1F2F0 != psx_brB_BFC1F2F0); + psx_taken_BFC1F2F0 = (psx_brA_BFC1F2F0 != psx_brB_BFC1F2F0); /* 0xBFC1F2F4: 00000000 nop */ /* nop */ if (psx_taken_BFC1F2F0) goto label_BFC1F308; @@ -96920,7 +99826,7 @@ label_BFC1F2F8: cpu->gpr[1] = 0x80060000u; /* 0xBFC1F300: 10000017 beq $zero, $zero, 0xBFC1F360 */ uint32_t psx_brA_BFC1F300 = cpu->gpr[0]; uint32_t psx_brB_BFC1F300 = cpu->gpr[0]; - int psx_taken_BFC1F300 = (psx_brA_BFC1F300 == psx_brB_BFC1F300); + psx_taken_BFC1F300 = (psx_brA_BFC1F300 == psx_brB_BFC1F300); /* 0xBFC1F304: AC2B6940 sw $t3, 26944($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26944)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F304u); return; } g_debug_last_store_pc = 0xBFC1F304u; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC1F300) goto label_BFC1F360; @@ -96937,7 +99843,7 @@ label_BFC1F308: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (15)); /* 0xBFC1F314: 15A10005 bne $t5, $at, 0xBFC1F32C */ uint32_t psx_brA_BFC1F314 = cpu->gpr[13]; uint32_t psx_brB_BFC1F314 = cpu->gpr[1]; - int psx_taken_BFC1F314 = (psx_brA_BFC1F314 != psx_brB_BFC1F314); + psx_taken_BFC1F314 = (psx_brA_BFC1F314 != psx_brB_BFC1F314); /* 0xBFC1F318: 00000000 nop */ /* nop */ if (psx_taken_BFC1F314) goto label_BFC1F32C; @@ -96952,7 +99858,7 @@ label_BFC1F31C: cpu->gpr[1] = 0x80060000u; /* 0xBFC1F324: 1000000E beq $zero, $zero, 0xBFC1F360 */ uint32_t psx_brA_BFC1F324 = cpu->gpr[0]; uint32_t psx_brB_BFC1F324 = cpu->gpr[0]; - int psx_taken_BFC1F324 = (psx_brA_BFC1F324 == psx_brB_BFC1F324); + psx_taken_BFC1F324 = (psx_brA_BFC1F324 == psx_brB_BFC1F324); /* 0xBFC1F328: AC2C6940 sw $t4, 26944($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26944)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F328u); return; } g_debug_last_store_pc = 0xBFC1F328u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC1F324) goto label_BFC1F360; @@ -96969,7 +99875,7 @@ label_BFC1F32C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC1F338: 11C1000A beq $t6, $at, 0xBFC1F364 */ uint32_t psx_brA_BFC1F338 = cpu->gpr[14]; uint32_t psx_brB_BFC1F338 = cpu->gpr[1]; - int psx_taken_BFC1F338 = (psx_brA_BFC1F338 == psx_brB_BFC1F338); + psx_taken_BFC1F338 = (psx_brA_BFC1F338 == psx_brB_BFC1F338); /* 0xBFC1F33C: 93A20044 lbu $v0, 68($sp) */ cpu->gpr[2] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (68))); if (psx_taken_BFC1F338) goto label_BFC1F364; @@ -97016,7 +99922,7 @@ label_BFC1F364: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (72))); /* 0xBFC1F368: 10000010 beq $zero, $zero, 0xBFC1F3AC */ uint32_t psx_brA_BFC1F368 = cpu->gpr[0]; uint32_t psx_brB_BFC1F368 = cpu->gpr[0]; - int psx_taken_BFC1F368 = (psx_brA_BFC1F368 == psx_brB_BFC1F368); + psx_taken_BFC1F368 = (psx_brA_BFC1F368 == psx_brB_BFC1F368); /* 0xBFC1F36C: 306A0001 andi $t2, $v1, 0x1 */ cpu->gpr[10] = cpu->gpr[3] & 0x1u; if (psx_taken_BFC1F368) goto label_BFC1F3AC; @@ -97029,7 +99935,7 @@ label_BFC1F370: cpu->gpr[24] = cpu->gpr[2] & 0x40u; /* 0xBFC1F374: 17000007 bne $t8, $zero, 0xBFC1F394 */ uint32_t psx_brA_BFC1F374 = cpu->gpr[24]; uint32_t psx_brB_BFC1F374 = cpu->gpr[0]; - int psx_taken_BFC1F374 = (psx_brA_BFC1F374 != psx_brB_BFC1F374); + psx_taken_BFC1F374 = (psx_brA_BFC1F374 != psx_brB_BFC1F374); /* 0xBFC1F378: 00000000 nop */ /* nop */ if (psx_taken_BFC1F374) goto label_BFC1F394; @@ -97042,7 +99948,7 @@ label_BFC1F37C: cpu->gpr[8] = cpu->gpr[2] & 0x20u; /* 0xBFC1F380: 15000004 bne $t0, $zero, 0xBFC1F394 */ uint32_t psx_brA_BFC1F380 = cpu->gpr[8]; uint32_t psx_brB_BFC1F380 = cpu->gpr[0]; - int psx_taken_BFC1F380 = (psx_brA_BFC1F380 != psx_brB_BFC1F380); + psx_taken_BFC1F380 = (psx_brA_BFC1F380 != psx_brB_BFC1F380); /* 0xBFC1F384: 00000000 nop */ /* nop */ if (psx_taken_BFC1F380) goto label_BFC1F394; @@ -97055,7 +99961,7 @@ label_BFC1F388: cpu->gpr[9] = cpu->gpr[2] & 0x10u; /* 0xBFC1F38C: 11200007 beq $t1, $zero, 0xBFC1F3AC */ uint32_t psx_brA_BFC1F38C = cpu->gpr[9]; uint32_t psx_brB_BFC1F38C = cpu->gpr[0]; - int psx_taken_BFC1F38C = (psx_brA_BFC1F38C == psx_brB_BFC1F38C); + psx_taken_BFC1F38C = (psx_brA_BFC1F38C == psx_brB_BFC1F38C); /* 0xBFC1F390: 306A0001 andi $t2, $v1, 0x1 */ cpu->gpr[10] = cpu->gpr[3] & 0x1u; if (psx_taken_BFC1F38C) goto label_BFC1F3AC; @@ -97094,7 +100000,7 @@ label_BFC1F3AC: psx_check_interrupts(cpu); /* 0xBFC1F3AC: 1140003A beq $t2, $zero, 0xBFC1F498 */ uint32_t psx_brA_BFC1F3AC = cpu->gpr[10]; uint32_t psx_brB_BFC1F3AC = cpu->gpr[0]; - int psx_taken_BFC1F3AC = (psx_brA_BFC1F3AC == psx_brB_BFC1F3AC); + psx_taken_BFC1F3AC = (psx_brA_BFC1F3AC == psx_brB_BFC1F3AC); /* 0xBFC1F3B0: 3C018006 lui $at, 0x8006 */ cpu->gpr[1] = 0x80060000u; if (psx_taken_BFC1F3AC) goto label_BFC1F498; @@ -97107,7 +100013,7 @@ label_BFC1F3B4: cpu->gpr[11] = cpu->gpr[2] & 0x80u; /* 0xBFC1F3B8: 1160002F beq $t3, $zero, 0xBFC1F478 */ uint32_t psx_brA_BFC1F3B8 = cpu->gpr[11]; uint32_t psx_brB_BFC1F3B8 = cpu->gpr[0]; - int psx_taken_BFC1F3B8 = (psx_brA_BFC1F3B8 == psx_brB_BFC1F3B8); + psx_taken_BFC1F3B8 = (psx_brA_BFC1F3B8 == psx_brB_BFC1F3B8); /* 0xBFC1F3BC: AC206950 sw $zero, 26960($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26960)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F3BCu); return; } g_debug_last_store_pc = 0xBFC1F3BCu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1F3B8) goto label_BFC1F478; @@ -97124,7 +100030,7 @@ label_BFC1F3C0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); /* 0xBFC1F3CC: 15A10005 bne $t5, $at, 0xBFC1F3E4 */ uint32_t psx_brA_BFC1F3CC = cpu->gpr[13]; uint32_t psx_brB_BFC1F3CC = cpu->gpr[1]; - int psx_taken_BFC1F3CC = (psx_brA_BFC1F3CC != psx_brB_BFC1F3CC); + psx_taken_BFC1F3CC = (psx_brA_BFC1F3CC != psx_brB_BFC1F3CC); /* 0xBFC1F3D0: 00000000 nop */ /* nop */ if (psx_taken_BFC1F3CC) goto label_BFC1F3E4; @@ -97139,7 +100045,7 @@ label_BFC1F3D4: cpu->gpr[1] = 0x80060000u; /* 0xBFC1F3DC: 1000002E beq $zero, $zero, 0xBFC1F498 */ uint32_t psx_brA_BFC1F3DC = cpu->gpr[0]; uint32_t psx_brB_BFC1F3DC = cpu->gpr[0]; - int psx_taken_BFC1F3DC = (psx_brA_BFC1F3DC == psx_brB_BFC1F3DC); + psx_taken_BFC1F3DC = (psx_brA_BFC1F3DC == psx_brB_BFC1F3DC); /* 0xBFC1F3E0: AC246944 sw $a0, 26948($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26948)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F3E0u); return; } g_debug_last_store_pc = 0xBFC1F3E0u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC1F3DC) goto label_BFC1F498; @@ -97156,7 +100062,7 @@ label_BFC1F3E4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (11)); /* 0xBFC1F3F0: 15810005 bne $t4, $at, 0xBFC1F408 */ uint32_t psx_brA_BFC1F3F0 = cpu->gpr[12]; uint32_t psx_brB_BFC1F3F0 = cpu->gpr[1]; - int psx_taken_BFC1F3F0 = (psx_brA_BFC1F3F0 != psx_brB_BFC1F3F0); + psx_taken_BFC1F3F0 = (psx_brA_BFC1F3F0 != psx_brB_BFC1F3F0); /* 0xBFC1F3F4: 00000000 nop */ /* nop */ if (psx_taken_BFC1F3F0) goto label_BFC1F408; @@ -97171,7 +100077,7 @@ label_BFC1F3F8: cpu->gpr[1] = 0x80060000u; /* 0xBFC1F400: 10000025 beq $zero, $zero, 0xBFC1F498 */ uint32_t psx_brA_BFC1F400 = cpu->gpr[0]; uint32_t psx_brB_BFC1F400 = cpu->gpr[0]; - int psx_taken_BFC1F400 = (psx_brA_BFC1F400 == psx_brB_BFC1F400); + psx_taken_BFC1F400 = (psx_brA_BFC1F400 == psx_brB_BFC1F400); /* 0xBFC1F404: AC246944 sw $a0, 26948($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26948)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F404u); return; } g_debug_last_store_pc = 0xBFC1F404u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC1F400) goto label_BFC1F498; @@ -97188,7 +100094,7 @@ label_BFC1F408: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (58)); /* 0xBFC1F414: 15C2000A bne $t6, $v0, 0xBFC1F440 */ uint32_t psx_brA_BFC1F414 = cpu->gpr[14]; uint32_t psx_brB_BFC1F414 = cpu->gpr[2]; - int psx_taken_BFC1F414 = (psx_brA_BFC1F414 != psx_brB_BFC1F414); + psx_taken_BFC1F414 = (psx_brA_BFC1F414 != psx_brB_BFC1F414); /* 0xBFC1F418: 00000000 nop */ /* nop */ if (psx_taken_BFC1F414) goto label_BFC1F440; @@ -97205,7 +100111,7 @@ label_BFC1F41C: /* nop */ /* 0xBFC1F428: 15E20005 bne $t7, $v0, 0xBFC1F440 */ uint32_t psx_brA_BFC1F428 = cpu->gpr[15]; uint32_t psx_brB_BFC1F428 = cpu->gpr[2]; - int psx_taken_BFC1F428 = (psx_brA_BFC1F428 != psx_brB_BFC1F428); + psx_taken_BFC1F428 = (psx_brA_BFC1F428 != psx_brB_BFC1F428); /* 0xBFC1F42C: 00000000 nop */ /* nop */ if (psx_taken_BFC1F428) goto label_BFC1F440; @@ -97220,7 +100126,7 @@ label_BFC1F430: cpu->gpr[1] = 0x80060000u; /* 0xBFC1F438: 10000017 beq $zero, $zero, 0xBFC1F498 */ uint32_t psx_brA_BFC1F438 = cpu->gpr[0]; uint32_t psx_brB_BFC1F438 = cpu->gpr[0]; - int psx_taken_BFC1F438 = (psx_brA_BFC1F438 == psx_brB_BFC1F438); + psx_taken_BFC1F438 = (psx_brA_BFC1F438 == psx_brB_BFC1F438); /* 0xBFC1F43C: AC246944 sw $a0, 26948($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26948)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F43Cu); return; } g_debug_last_store_pc = 0xBFC1F43Cu; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC1F438) goto label_BFC1F498; @@ -97237,7 +100143,7 @@ label_BFC1F440: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (59)); /* 0xBFC1F44C: 17210012 bne $t9, $at, 0xBFC1F498 */ uint32_t psx_brA_BFC1F44C = cpu->gpr[25]; uint32_t psx_brB_BFC1F44C = cpu->gpr[1]; - int psx_taken_BFC1F44C = (psx_brA_BFC1F44C != psx_brB_BFC1F44C); + psx_taken_BFC1F44C = (psx_brA_BFC1F44C != psx_brB_BFC1F44C); /* 0xBFC1F450: 00000000 nop */ /* nop */ if (psx_taken_BFC1F44C) goto label_BFC1F498; @@ -97254,7 +100160,7 @@ label_BFC1F454: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (59)); /* 0xBFC1F460: 1701000D bne $t8, $at, 0xBFC1F498 */ uint32_t psx_brA_BFC1F460 = cpu->gpr[24]; uint32_t psx_brB_BFC1F460 = cpu->gpr[1]; - int psx_taken_BFC1F460 = (psx_brA_BFC1F460 != psx_brB_BFC1F460); + psx_taken_BFC1F460 = (psx_brA_BFC1F460 != psx_brB_BFC1F460); /* 0xBFC1F464: 00000000 nop */ /* nop */ if (psx_taken_BFC1F460) goto label_BFC1F498; @@ -97269,7 +100175,7 @@ label_BFC1F468: cpu->gpr[1] = 0x80060000u; /* 0xBFC1F470: 10000009 beq $zero, $zero, 0xBFC1F498 */ uint32_t psx_brA_BFC1F470 = cpu->gpr[0]; uint32_t psx_brB_BFC1F470 = cpu->gpr[0]; - int psx_taken_BFC1F470 = (psx_brA_BFC1F470 == psx_brB_BFC1F470); + psx_taken_BFC1F470 = (psx_brA_BFC1F470 == psx_brB_BFC1F470); /* 0xBFC1F474: AC246944 sw $a0, 26948($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26948)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F474u); return; } g_debug_last_store_pc = 0xBFC1F474u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC1F470) goto label_BFC1F498; @@ -97286,7 +100192,7 @@ label_BFC1F478: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC1F484: 15010004 bne $t0, $at, 0xBFC1F498 */ uint32_t psx_brA_BFC1F484 = cpu->gpr[8]; uint32_t psx_brB_BFC1F484 = cpu->gpr[1]; - int psx_taken_BFC1F484 = (psx_brA_BFC1F484 != psx_brB_BFC1F484); + psx_taken_BFC1F484 = (psx_brA_BFC1F484 != psx_brB_BFC1F484); /* 0xBFC1F488: 00000000 nop */ /* nop */ if (psx_taken_BFC1F484) goto label_BFC1F498; @@ -97324,7 +100230,7 @@ label_BFC1F4A8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC1F4AC: 14410002 bne $v0, $at, 0xBFC1F4B8 */ uint32_t psx_brA_BFC1F4AC = cpu->gpr[2]; uint32_t psx_brB_BFC1F4AC = cpu->gpr[1]; - int psx_taken_BFC1F4AC = (psx_brA_BFC1F4AC != psx_brB_BFC1F4AC); + psx_taken_BFC1F4AC = (psx_brA_BFC1F4AC != psx_brB_BFC1F4AC); /* 0xBFC1F4B0: 3C018006 lui $at, 0x8006 */ cpu->gpr[1] = 0x80060000u; if (psx_taken_BFC1F4AC) goto label_BFC1F4B8; @@ -97348,7 +100254,7 @@ label_BFC1F4B8: /* nop */ /* 0xBFC1F4C4: 1520002F bne $t1, $zero, 0xBFC1F584 */ uint32_t psx_brA_BFC1F4C4 = cpu->gpr[9]; uint32_t psx_brB_BFC1F4C4 = cpu->gpr[0]; - int psx_taken_BFC1F4C4 = (psx_brA_BFC1F4C4 != psx_brB_BFC1F4C4); + psx_taken_BFC1F4C4 = (psx_brA_BFC1F4C4 != psx_brB_BFC1F4C4); /* 0xBFC1F4C8: 00000000 nop */ /* nop */ if (psx_taken_BFC1F4C4) goto label_BFC1F584; @@ -97365,7 +100271,7 @@ label_BFC1F4CC: /* nop */ /* 0xBFC1F4D8: 10A0002A beq $a1, $zero, 0xBFC1F584 */ uint32_t psx_brA_BFC1F4D8 = cpu->gpr[5]; uint32_t psx_brB_BFC1F4D8 = cpu->gpr[0]; - int psx_taken_BFC1F4D8 = (psx_brA_BFC1F4D8 == psx_brB_BFC1F4D8); + psx_taken_BFC1F4D8 = (psx_brA_BFC1F4D8 == psx_brB_BFC1F4D8); /* 0xBFC1F4DC: 00000000 nop */ /* nop */ if (psx_taken_BFC1F4D8) goto label_BFC1F584; @@ -97400,7 +100306,7 @@ label_BFC1F4F8: cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC1F504: 18A0001C blez $a1, 0xBFC1F578 */ uint32_t psx_brA_BFC1F504 = cpu->gpr[5]; - int psx_taken_BFC1F504 = ((int32_t)psx_brA_BFC1F504 <= 0); + psx_taken_BFC1F504 = ((int32_t)psx_brA_BFC1F504 <= 0); /* 0xBFC1F508: 00000000 nop */ /* nop */ if (psx_taken_BFC1F504) goto label_BFC1F578; @@ -97413,7 +100319,7 @@ label_BFC1F50C: cpu->gpr[3] = cpu->gpr[5] & 0x3u; /* 0xBFC1F510: 1060000B beq $v1, $zero, 0xBFC1F540 */ uint32_t psx_brA_BFC1F510 = cpu->gpr[3]; uint32_t psx_brB_BFC1F510 = cpu->gpr[0]; - int psx_taken_BFC1F510 = (psx_brA_BFC1F510 == psx_brB_BFC1F510); + psx_taken_BFC1F510 = (psx_brA_BFC1F510 == psx_brB_BFC1F510); /* 0xBFC1F514: 00000000 nop */ /* nop */ if (psx_taken_BFC1F510) goto label_BFC1F540; @@ -97441,7 +100347,7 @@ label_BFC1F524: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC1F530: 1464FFFC bne $v1, $a0, 0xBFC1F524 */ uint32_t psx_brA_BFC1F530 = cpu->gpr[3]; uint32_t psx_brB_BFC1F530 = cpu->gpr[4]; - int psx_taken_BFC1F530 = (psx_brA_BFC1F530 != psx_brB_BFC1F530); + psx_taken_BFC1F530 = (psx_brA_BFC1F530 != psx_brB_BFC1F530); /* 0xBFC1F534: A04DFFFF sb $t5, -1($v0) */ g_debug_last_store_pc = 0xBFC1F534u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-1)), (uint8_t)(cpu->gpr[13] & 0xFFu)); if (psx_taken_BFC1F530) goto label_BFC1F524; @@ -97452,7 +100358,7 @@ label_BFC1F538: psx_check_interrupts(cpu); /* 0xBFC1F538: 1085000F beq $a0, $a1, 0xBFC1F578 */ uint32_t psx_brA_BFC1F538 = cpu->gpr[4]; uint32_t psx_brB_BFC1F538 = cpu->gpr[5]; - int psx_taken_BFC1F538 = (psx_brA_BFC1F538 == psx_brB_BFC1F538); + psx_taken_BFC1F538 = (psx_brA_BFC1F538 == psx_brB_BFC1F538); /* 0xBFC1F53C: 00000000 nop */ /* nop */ if (psx_taken_BFC1F538) goto label_BFC1F578; @@ -97492,7 +100398,7 @@ label_BFC1F550: g_debug_last_store_pc = 0xBFC1F56Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-2)), (uint8_t)(cpu->gpr[25] & 0xFFu)); /* 0xBFC1F570: 1443FFF7 bne $v0, $v1, 0xBFC1F550 */ uint32_t psx_brA_BFC1F570 = cpu->gpr[2]; uint32_t psx_brB_BFC1F570 = cpu->gpr[3]; - int psx_taken_BFC1F570 = (psx_brA_BFC1F570 != psx_brB_BFC1F570); + psx_taken_BFC1F570 = (psx_brA_BFC1F570 != psx_brB_BFC1F570); /* 0xBFC1F574: A058FFFF sb $t8, -1($v0) */ g_debug_last_store_pc = 0xBFC1F574u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-1)), (uint8_t)(cpu->gpr[24] & 0xFFu)); if (psx_taken_BFC1F570) goto label_BFC1F550; @@ -97522,7 +100428,7 @@ label_BFC1F584: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (26956)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F590u); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC1F594: 10800018 beq $a0, $zero, 0xBFC1F5F8 */ uint32_t psx_brA_BFC1F594 = cpu->gpr[4]; uint32_t psx_brB_BFC1F594 = cpu->gpr[0]; - int psx_taken_BFC1F594 = (psx_brA_BFC1F594 == psx_brB_BFC1F594); + psx_taken_BFC1F594 = (psx_brA_BFC1F594 == psx_brB_BFC1F594); /* 0xBFC1F598: 00000000 nop */ /* nop */ if (psx_taken_BFC1F594) goto label_BFC1F5F8; @@ -97539,7 +100445,7 @@ label_BFC1F59C: /* nop */ /* 0xBFC1F5A8: 11000008 beq $t0, $zero, 0xBFC1F5CC */ uint32_t psx_brA_BFC1F5A8 = cpu->gpr[8]; uint32_t psx_brB_BFC1F5A8 = cpu->gpr[0]; - int psx_taken_BFC1F5A8 = (psx_brA_BFC1F5A8 == psx_brB_BFC1F5A8); + psx_taken_BFC1F5A8 = (psx_brA_BFC1F5A8 == psx_brB_BFC1F5A8); /* 0xBFC1F5AC: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1F5A8) goto label_BFC1F5CC; @@ -97560,7 +100466,7 @@ label_BFC1F5B0: cpu->gpr[1] = 0x80060000u; /* 0xBFC1F5C4: 10000009 beq $zero, $zero, 0xBFC1F5EC */ uint32_t psx_brA_BFC1F5C4 = cpu->gpr[0]; uint32_t psx_brB_BFC1F5C4 = cpu->gpr[0]; - int psx_taken_BFC1F5C4 = (psx_brA_BFC1F5C4 == psx_brB_BFC1F5C4); + psx_taken_BFC1F5C4 = (psx_brA_BFC1F5C4 == psx_brB_BFC1F5C4); /* 0xBFC1F5C8: AC25694C sw $a1, 26956($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26956)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F5C8u); return; } g_debug_last_store_pc = 0xBFC1F5C8u; cpu->write_word(psx_addr, cpu->gpr[5]); } if (psx_taken_BFC1F5C4) goto label_BFC1F5EC; @@ -97630,7 +100536,7 @@ label_BFC1F608: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC1F614: 11610003 beq $t3, $at, 0xBFC1F624 */ uint32_t psx_brA_BFC1F614 = cpu->gpr[11]; uint32_t psx_brB_BFC1F614 = cpu->gpr[1]; - int psx_taken_BFC1F614 = (psx_brA_BFC1F614 == psx_brB_BFC1F614); + psx_taken_BFC1F614 = (psx_brA_BFC1F614 == psx_brB_BFC1F614); /* 0xBFC1F618: 24010034 addiu $at, $zero, 52 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC1F614) goto label_BFC1F624; @@ -97641,7 +100547,7 @@ label_BFC1F61C: psx_check_interrupts(cpu); /* 0xBFC1F61C: 15610008 bne $t3, $at, 0xBFC1F640 */ uint32_t psx_brA_BFC1F61C = cpu->gpr[11]; uint32_t psx_brB_BFC1F61C = cpu->gpr[1]; - int psx_taken_BFC1F61C = (psx_brA_BFC1F61C != psx_brB_BFC1F61C); + psx_taken_BFC1F61C = (psx_brA_BFC1F61C != psx_brB_BFC1F61C); /* 0xBFC1F620: 00000000 nop */ /* nop */ if (psx_taken_BFC1F61C) goto label_BFC1F640; @@ -97658,7 +100564,7 @@ label_BFC1F624: /* nop */ /* 0xBFC1F630: 11A00003 beq $t5, $zero, 0xBFC1F640 */ uint32_t psx_brA_BFC1F630 = cpu->gpr[13]; uint32_t psx_brB_BFC1F630 = cpu->gpr[0]; - int psx_taken_BFC1F630 = (psx_brA_BFC1F630 == psx_brB_BFC1F630); + psx_taken_BFC1F630 = (psx_brA_BFC1F630 == psx_brB_BFC1F630); /* 0xBFC1F634: 00000000 nop */ /* nop */ if (psx_taken_BFC1F630) goto label_BFC1F640; @@ -97691,7 +100597,7 @@ label_BFC1F648: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC1F64C: 1441000C bne $v0, $at, 0xBFC1F680 */ uint32_t psx_brA_BFC1F64C = cpu->gpr[2]; uint32_t psx_brB_BFC1F64C = cpu->gpr[1]; - int psx_taken_BFC1F64C = (psx_brA_BFC1F64C != psx_brB_BFC1F64C); + psx_taken_BFC1F64C = (psx_brA_BFC1F64C != psx_brB_BFC1F64C); /* 0xBFC1F650: 00000000 nop */ /* nop */ if (psx_taken_BFC1F64C) goto label_BFC1F680; @@ -97708,7 +100614,7 @@ label_BFC1F654: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC1F660: 11810003 beq $t4, $at, 0xBFC1F670 */ uint32_t psx_brA_BFC1F660 = cpu->gpr[12]; uint32_t psx_brB_BFC1F660 = cpu->gpr[1]; - int psx_taken_BFC1F660 = (psx_brA_BFC1F660 == psx_brB_BFC1F660); + psx_taken_BFC1F660 = (psx_brA_BFC1F660 == psx_brB_BFC1F660); /* 0xBFC1F664: 24010033 addiu $at, $zero, 51 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); if (psx_taken_BFC1F660) goto label_BFC1F670; @@ -97719,7 +100625,7 @@ label_BFC1F668: psx_check_interrupts(cpu); /* 0xBFC1F668: 1581000D bne $t4, $at, 0xBFC1F6A0 */ uint32_t psx_brA_BFC1F668 = cpu->gpr[12]; uint32_t psx_brB_BFC1F668 = cpu->gpr[1]; - int psx_taken_BFC1F668 = (psx_brA_BFC1F668 != psx_brB_BFC1F668); + psx_taken_BFC1F668 = (psx_brA_BFC1F668 != psx_brB_BFC1F668); /* 0xBFC1F66C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F66Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1F668) goto label_BFC1F6A0; @@ -97740,7 +100646,7 @@ label_BFC1F678: psx_check_interrupts(cpu); /* 0xBFC1F678: 10000009 beq $zero, $zero, 0xBFC1F6A0 */ uint32_t psx_brA_BFC1F678 = cpu->gpr[0]; uint32_t psx_brB_BFC1F678 = cpu->gpr[0]; - int psx_taken_BFC1F678 = (psx_brA_BFC1F678 == psx_brB_BFC1F678); + psx_taken_BFC1F678 = (psx_brA_BFC1F678 == psx_brB_BFC1F678); /* 0xBFC1F67C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F67Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1F678) goto label_BFC1F6A0; @@ -97757,7 +100663,7 @@ label_BFC1F680: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC1F68C: 11C10004 beq $t6, $at, 0xBFC1F6A0 */ uint32_t psx_brA_BFC1F68C = cpu->gpr[14]; uint32_t psx_brB_BFC1F68C = cpu->gpr[1]; - int psx_taken_BFC1F68C = (psx_brA_BFC1F68C == psx_brB_BFC1F68C); + psx_taken_BFC1F68C = (psx_brA_BFC1F68C == psx_brB_BFC1F68C); /* 0xBFC1F690: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F690u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1F68C) goto label_BFC1F6A0; @@ -97802,6 +100708,7 @@ void func_1FC1F6AC(CPUState* cpu) { default: break; } } + int psx_taken_BFC1F6C0 = 0; label_BFC1F6AC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -97819,7 +100726,7 @@ label_BFC1F6AC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F6BCu); return; } g_debug_last_store_pc = 0xBFC1F6BCu; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC1F6C0: 15C10024 bne $t6, $at, 0xBFC1F754 */ uint32_t psx_brA_BFC1F6C0 = cpu->gpr[14]; uint32_t psx_brB_BFC1F6C0 = cpu->gpr[1]; - int psx_taken_BFC1F6C0 = (psx_brA_BFC1F6C0 != psx_brB_BFC1F6C0); + psx_taken_BFC1F6C0 = (psx_brA_BFC1F6C0 != psx_brB_BFC1F6C0); /* 0xBFC1F6C4: AFA40018 sw $a0, 24($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F6C4u); return; } g_debug_last_store_pc = 0xBFC1F6C4u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC1F6C0) goto label_BFC1F754; @@ -97952,6 +100859,20 @@ void func_1FC1F778(CPUState* cpu) { default: break; } } + int psx_taken_BFC1F7D4 = 0; + int psx_taken_BFC1F7DC = 0; + int psx_taken_BFC1F7F0 = 0; + int psx_taken_BFC1F7FC = 0; + int psx_taken_BFC1F850 = 0; + int psx_taken_BFC1F858 = 0; + int psx_taken_BFC1F860 = 0; + int psx_taken_BFC1F870 = 0; + int psx_taken_BFC1F8D4 = 0; + int psx_taken_BFC1F8F0 = 0; + int psx_taken_BFC1F8FC = 0; + int psx_taken_BFC1F924 = 0; + int psx_taken_BFC1F940 = 0; + int psx_taken_BFC1F94C = 0; label_BFC1F778: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -98017,7 +100938,7 @@ label_BFC1F7D4: psx_check_interrupts(cpu); /* 0xBFC1F7D4: 14400003 bne $v0, $zero, 0xBFC1F7E4 */ uint32_t psx_brA_BFC1F7D4 = cpu->gpr[2]; uint32_t psx_brB_BFC1F7D4 = cpu->gpr[0]; - int psx_taken_BFC1F7D4 = (psx_brA_BFC1F7D4 != psx_brB_BFC1F7D4); + psx_taken_BFC1F7D4 = (psx_brA_BFC1F7D4 != psx_brB_BFC1F7D4); /* 0xBFC1F7D8: 00000000 nop */ /* nop */ if (psx_taken_BFC1F7D4) goto label_BFC1F7E4; @@ -98028,7 +100949,7 @@ label_BFC1F7DC: psx_check_interrupts(cpu); /* 0xBFC1F7DC: 10000064 beq $zero, $zero, 0xBFC1F970 */ uint32_t psx_brA_BFC1F7DC = cpu->gpr[0]; uint32_t psx_brB_BFC1F7DC = cpu->gpr[0]; - int psx_taken_BFC1F7DC = (psx_brA_BFC1F7DC == psx_brB_BFC1F7DC); + psx_taken_BFC1F7DC = (psx_brA_BFC1F7DC == psx_brB_BFC1F7DC); /* 0xBFC1F7E0: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1F7DC) goto label_BFC1F970; @@ -98045,7 +100966,7 @@ label_BFC1F7E4: /* nop */ /* 0xBFC1F7F0: 11E00004 beq $t7, $zero, 0xBFC1F804 */ uint32_t psx_brA_BFC1F7F0 = cpu->gpr[15]; uint32_t psx_brB_BFC1F7F0 = cpu->gpr[0]; - int psx_taken_BFC1F7F0 = (psx_brA_BFC1F7F0 == psx_brB_BFC1F7F0); + psx_taken_BFC1F7F0 = (psx_brA_BFC1F7F0 == psx_brB_BFC1F7F0); /* 0xBFC1F7F4: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1F7F0) goto label_BFC1F804; @@ -98058,7 +100979,7 @@ label_BFC1F7F8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24912)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F7F8u); return; } g_debug_last_store_pc = 0xBFC1F7F8u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC1F7FC: 1000005C beq $zero, $zero, 0xBFC1F970 */ uint32_t psx_brA_BFC1F7FC = cpu->gpr[0]; uint32_t psx_brB_BFC1F7FC = cpu->gpr[0]; - int psx_taken_BFC1F7FC = (psx_brA_BFC1F7FC == psx_brB_BFC1F7FC); + psx_taken_BFC1F7FC = (psx_brA_BFC1F7FC == psx_brB_BFC1F7FC); /* 0xBFC1F800: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1F7FC) goto label_BFC1F970; @@ -98118,7 +101039,7 @@ label_BFC1F84C: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[5] ? 1 : 0); /* 0xBFC1F850: 14200003 bne $at, $zero, 0xBFC1F860 */ uint32_t psx_brA_BFC1F850 = cpu->gpr[1]; uint32_t psx_brB_BFC1F850 = cpu->gpr[0]; - int psx_taken_BFC1F850 = (psx_brA_BFC1F850 != psx_brB_BFC1F850); + psx_taken_BFC1F850 = (psx_brA_BFC1F850 != psx_brB_BFC1F850); /* 0xBFC1F854: 00C2082B sltu $at, $a2, $v0 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[6] < cpu->gpr[2] ? 1 : 0); if (psx_taken_BFC1F850) goto label_BFC1F860; @@ -98129,7 +101050,7 @@ label_BFC1F858: psx_check_interrupts(cpu); /* 0xBFC1F858: 10200003 beq $at, $zero, 0xBFC1F868 */ uint32_t psx_brA_BFC1F858 = cpu->gpr[1]; uint32_t psx_brB_BFC1F858 = cpu->gpr[0]; - int psx_taken_BFC1F858 = (psx_brA_BFC1F858 == psx_brB_BFC1F858); + psx_taken_BFC1F858 = (psx_brA_BFC1F858 == psx_brB_BFC1F858); /* 0xBFC1F85C: 00000000 nop */ /* nop */ if (psx_taken_BFC1F858) goto label_BFC1F868; @@ -98140,7 +101061,7 @@ label_BFC1F860: psx_check_interrupts(cpu); /* 0xBFC1F860: 10000002 beq $zero, $zero, 0xBFC1F86C */ uint32_t psx_brA_BFC1F860 = cpu->gpr[0]; uint32_t psx_brB_BFC1F860 = cpu->gpr[0]; - int psx_taken_BFC1F860 = (psx_brA_BFC1F860 == psx_brB_BFC1F860); + psx_taken_BFC1F860 = (psx_brA_BFC1F860 == psx_brB_BFC1F860); /* 0xBFC1F864: AC600000 sw $zero, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F864u); return; } g_debug_last_store_pc = 0xBFC1F864u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1F860) goto label_BFC1F86C; @@ -98160,7 +101081,7 @@ label_BFC1F86C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC1F870: 1444FFF6 bne $v0, $a0, 0xBFC1F84C */ uint32_t psx_brA_BFC1F870 = cpu->gpr[2]; uint32_t psx_brB_BFC1F870 = cpu->gpr[4]; - int psx_taken_BFC1F870 = (psx_brA_BFC1F870 != psx_brB_BFC1F870); + psx_taken_BFC1F870 = (psx_brA_BFC1F870 != psx_brB_BFC1F870); /* 0xBFC1F874: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC1F870) goto label_BFC1F84C; @@ -98229,7 +101150,7 @@ label_BFC1F8D4: psx_check_interrupts(cpu); /* 0xBFC1F8D4: 14400003 bne $v0, $zero, 0xBFC1F8E4 */ uint32_t psx_brA_BFC1F8D4 = cpu->gpr[2]; uint32_t psx_brB_BFC1F8D4 = cpu->gpr[0]; - int psx_taken_BFC1F8D4 = (psx_brA_BFC1F8D4 != psx_brB_BFC1F8D4); + psx_taken_BFC1F8D4 = (psx_brA_BFC1F8D4 != psx_brB_BFC1F8D4); /* 0xBFC1F8D8: 00000000 nop */ /* nop */ if (psx_taken_BFC1F8D4) goto label_BFC1F8E4; @@ -98256,7 +101177,7 @@ label_BFC1F8E4: /* nop */ /* 0xBFC1F8F0: 11400004 beq $t2, $zero, 0xBFC1F904 */ uint32_t psx_brA_BFC1F8F0 = cpu->gpr[10]; uint32_t psx_brB_BFC1F8F0 = cpu->gpr[0]; - int psx_taken_BFC1F8F0 = (psx_brA_BFC1F8F0 == psx_brB_BFC1F8F0); + psx_taken_BFC1F8F0 = (psx_brA_BFC1F8F0 == psx_brB_BFC1F8F0); /* 0xBFC1F8F4: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1F8F0) goto label_BFC1F904; @@ -98269,7 +101190,7 @@ label_BFC1F8F8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24912)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F8F8u); return; } g_debug_last_store_pc = 0xBFC1F8F8u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC1F8FC: 1000001C beq $zero, $zero, 0xBFC1F970 */ uint32_t psx_brA_BFC1F8FC = cpu->gpr[0]; uint32_t psx_brB_BFC1F8FC = cpu->gpr[0]; - int psx_taken_BFC1F8FC = (psx_brA_BFC1F8FC == psx_brB_BFC1F8FC); + psx_taken_BFC1F8FC = (psx_brA_BFC1F8FC == psx_brB_BFC1F8FC); /* 0xBFC1F900: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1F8FC) goto label_BFC1F970; @@ -98302,7 +101223,7 @@ label_BFC1F924: psx_check_interrupts(cpu); /* 0xBFC1F924: 14400003 bne $v0, $zero, 0xBFC1F934 */ uint32_t psx_brA_BFC1F924 = cpu->gpr[2]; uint32_t psx_brB_BFC1F924 = cpu->gpr[0]; - int psx_taken_BFC1F924 = (psx_brA_BFC1F924 != psx_brB_BFC1F924); + psx_taken_BFC1F924 = (psx_brA_BFC1F924 != psx_brB_BFC1F924); /* 0xBFC1F928: 00000000 nop */ /* nop */ if (psx_taken_BFC1F924) goto label_BFC1F934; @@ -98329,7 +101250,7 @@ label_BFC1F934: /* nop */ /* 0xBFC1F940: 11800004 beq $t4, $zero, 0xBFC1F954 */ uint32_t psx_brA_BFC1F940 = cpu->gpr[12]; uint32_t psx_brB_BFC1F940 = cpu->gpr[0]; - int psx_taken_BFC1F940 = (psx_brA_BFC1F940 == psx_brB_BFC1F940); + psx_taken_BFC1F940 = (psx_brA_BFC1F940 == psx_brB_BFC1F940); /* 0xBFC1F944: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1F940) goto label_BFC1F954; @@ -98342,7 +101263,7 @@ label_BFC1F948: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24912)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F948u); return; } g_debug_last_store_pc = 0xBFC1F948u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC1F94C: 10000008 beq $zero, $zero, 0xBFC1F970 */ uint32_t psx_brA_BFC1F94C = cpu->gpr[0]; uint32_t psx_brB_BFC1F94C = cpu->gpr[0]; - int psx_taken_BFC1F94C = (psx_brA_BFC1F94C == psx_brB_BFC1F94C); + psx_taken_BFC1F94C = (psx_brA_BFC1F94C == psx_brB_BFC1F94C); /* 0xBFC1F950: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC1F94C) goto label_BFC1F970; @@ -98410,6 +101331,38 @@ void func_1FC1F980(CPUState* cpu) { default: break; } } + int psx_taken_BFC1F990 = 0; + int psx_taken_BFC1F9BC = 0; + int psx_taken_BFC1F9D8 = 0; + int psx_taken_BFC1F9EC = 0; + int psx_taken_BFC1FA04 = 0; + int psx_taken_BFC1FA14 = 0; + int psx_taken_BFC1FA1C = 0; + int psx_taken_BFC1FA2C = 0; + int psx_taken_BFC1FA3C = 0; + int psx_taken_BFC1FA80 = 0; + int psx_taken_BFC1FA8C = 0; + int psx_taken_BFC1FAA0 = 0; + int psx_taken_BFC1FAB4 = 0; + int psx_taken_BFC1FAE0 = 0; + int psx_taken_BFC1FAF4 = 0; + int psx_taken_BFC1FB08 = 0; + int psx_taken_BFC1FB18 = 0; + int psx_taken_BFC1FB40 = 0; + int psx_taken_BFC1FB4C = 0; + int psx_taken_BFC1FB54 = 0; + int psx_taken_BFC1FB78 = 0; + int psx_taken_BFC1FB84 = 0; + int psx_taken_BFC1FB94 = 0; + int psx_taken_BFC1FBA4 = 0; + int psx_taken_BFC1FBD8 = 0; + int psx_taken_BFC1FBF4 = 0; + int psx_taken_BFC1FBFC = 0; + int psx_taken_BFC1FC10 = 0; + int psx_taken_BFC1FC20 = 0; + int psx_taken_BFC1FC28 = 0; + int psx_taken_BFC1FC38 = 0; + int psx_taken_BFC1FC48 = 0; label_BFC1F980: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -98425,7 +101378,7 @@ label_BFC1F980: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC1F990: 1441003D bne $v0, $at, 0xBFC1FA88 */ uint32_t psx_brA_BFC1F990 = cpu->gpr[2]; uint32_t psx_brB_BFC1F990 = cpu->gpr[1]; - int psx_taken_BFC1F990 = (psx_brA_BFC1F990 != psx_brB_BFC1F990); + psx_taken_BFC1F990 = (psx_brA_BFC1F990 != psx_brB_BFC1F990); /* 0xBFC1F994: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F994u); return; } g_debug_last_store_pc = 0xBFC1F994u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1F990) goto label_BFC1FA88; @@ -98460,7 +101413,7 @@ label_BFC1F9BC: psx_check_interrupts(cpu); /* 0xBFC1F9BC: 14400008 bne $v0, $zero, 0xBFC1F9E0 */ uint32_t psx_brA_BFC1F9BC = cpu->gpr[2]; uint32_t psx_brB_BFC1F9BC = cpu->gpr[0]; - int psx_taken_BFC1F9BC = (psx_brA_BFC1F9BC != psx_brB_BFC1F9BC); + psx_taken_BFC1F9BC = (psx_brA_BFC1F9BC != psx_brB_BFC1F9BC); /* 0xBFC1F9C0: 00000000 nop */ /* nop */ if (psx_taken_BFC1F9BC) goto label_BFC1F9E0; @@ -98493,7 +101446,7 @@ label_BFC1F9D8: psx_check_interrupts(cpu); /* 0xBFC1F9D8: 100000B8 beq $zero, $zero, 0xBFC1FCBC */ uint32_t psx_brA_BFC1F9D8 = cpu->gpr[0]; uint32_t psx_brB_BFC1F9D8 = cpu->gpr[0]; - int psx_taken_BFC1F9D8 = (psx_brA_BFC1F9D8 == psx_brB_BFC1F9D8); + psx_taken_BFC1F9D8 = (psx_brA_BFC1F9D8 == psx_brB_BFC1F9D8); /* 0xBFC1F9DC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1F9DCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1F9D8) goto label_BFC1FCBC; @@ -98510,7 +101463,7 @@ label_BFC1F9E0: /* nop */ /* 0xBFC1F9EC: 13000002 beq $t8, $zero, 0xBFC1F9F8 */ uint32_t psx_brA_BFC1F9EC = cpu->gpr[24]; uint32_t psx_brB_BFC1F9EC = cpu->gpr[0]; - int psx_taken_BFC1F9EC = (psx_brA_BFC1F9EC == psx_brB_BFC1F9EC); + psx_taken_BFC1F9EC = (psx_brA_BFC1F9EC == psx_brB_BFC1F9EC); /* 0xBFC1F9F0: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1F9EC) goto label_BFC1F9F8; @@ -98534,7 +101487,7 @@ label_BFC1F9F8: /* nop */ /* 0xBFC1FA04: 144000AD bne $v0, $zero, 0xBFC1FCBC */ uint32_t psx_brA_BFC1FA04 = cpu->gpr[2]; uint32_t psx_brB_BFC1FA04 = cpu->gpr[0]; - int psx_taken_BFC1FA04 = (psx_brA_BFC1FA04 != psx_brB_BFC1FA04); + psx_taken_BFC1FA04 = (psx_brA_BFC1FA04 != psx_brB_BFC1FA04); /* 0xBFC1FA08: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1FA08u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1FA04) goto label_BFC1FCBC; @@ -98555,7 +101508,7 @@ label_BFC1FA14: psx_check_interrupts(cpu); /* 0xBFC1FA14: 10400003 beq $v0, $zero, 0xBFC1FA24 */ uint32_t psx_brA_BFC1FA14 = cpu->gpr[2]; uint32_t psx_brB_BFC1FA14 = cpu->gpr[0]; - int psx_taken_BFC1FA14 = (psx_brA_BFC1FA14 == psx_brB_BFC1FA14); + psx_taken_BFC1FA14 = (psx_brA_BFC1FA14 == psx_brB_BFC1FA14); /* 0xBFC1FA18: 00000000 nop */ /* nop */ if (psx_taken_BFC1FA14) goto label_BFC1FA24; @@ -98566,7 +101519,7 @@ label_BFC1FA1C: psx_check_interrupts(cpu); /* 0xBFC1FA1C: 1000000C beq $zero, $zero, 0xBFC1FA50 */ uint32_t psx_brA_BFC1FA1C = cpu->gpr[0]; uint32_t psx_brB_BFC1FA1C = cpu->gpr[0]; - int psx_taken_BFC1FA1C = (psx_brA_BFC1FA1C == psx_brB_BFC1FA1C); + psx_taken_BFC1FA1C = (psx_brA_BFC1FA1C == psx_brB_BFC1FA1C); /* 0xBFC1FA20: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1FA1C) goto label_BFC1FA50; @@ -98587,7 +101540,7 @@ label_BFC1FA2C: psx_check_interrupts(cpu); /* 0xBFC1FA2C: 10400005 beq $v0, $zero, 0xBFC1FA44 */ uint32_t psx_brA_BFC1FA2C = cpu->gpr[2]; uint32_t psx_brB_BFC1FA2C = cpu->gpr[0]; - int psx_taken_BFC1FA2C = (psx_brA_BFC1FA2C == psx_brB_BFC1FA2C); + psx_taken_BFC1FA2C = (psx_brA_BFC1FA2C == psx_brB_BFC1FA2C); /* 0xBFC1FA30: 00000000 nop */ /* nop */ if (psx_taken_BFC1FA2C) goto label_BFC1FA44; @@ -98602,7 +101555,7 @@ label_BFC1FA34: cpu->gpr[2] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[2] + (-24976))); /* 0xBFC1FA3C: 10000005 beq $zero, $zero, 0xBFC1FA54 */ uint32_t psx_brA_BFC1FA3C = cpu->gpr[0]; uint32_t psx_brB_BFC1FA3C = cpu->gpr[0]; - int psx_taken_BFC1FA3C = (psx_brA_BFC1FA3C == psx_brB_BFC1FA3C); + psx_taken_BFC1FA3C = (psx_brA_BFC1FA3C == psx_brB_BFC1FA3C); /* 0xBFC1FA40: 0002C880 sll $t9, $v0, 2 */ cpu->gpr[25] = cpu->gpr[2] << 2u; if (psx_taken_BFC1FA3C) goto label_BFC1FA54; @@ -98665,7 +101618,7 @@ label_BFC1FA80: psx_check_interrupts(cpu); /* 0xBFC1FA80: 1000008E beq $zero, $zero, 0xBFC1FCBC */ uint32_t psx_brA_BFC1FA80 = cpu->gpr[0]; uint32_t psx_brB_BFC1FA80 = cpu->gpr[0]; - int psx_taken_BFC1FA80 = (psx_brA_BFC1FA80 == psx_brB_BFC1FA80); + psx_taken_BFC1FA80 = (psx_brA_BFC1FA80 == psx_brB_BFC1FA80); /* 0xBFC1FA84: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1FA84u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1FA80) goto label_BFC1FCBC; @@ -98678,7 +101631,7 @@ label_BFC1FA88: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1FA8C: 10430006 beq $v0, $v1, 0xBFC1FAA8 */ uint32_t psx_brA_BFC1FA8C = cpu->gpr[2]; uint32_t psx_brB_BFC1FA8C = cpu->gpr[3]; - int psx_taken_BFC1FA8C = (psx_brA_BFC1FA8C == psx_brB_BFC1FA8C); + psx_taken_BFC1FA8C = (psx_brA_BFC1FA8C == psx_brB_BFC1FA8C); /* 0xBFC1FA90: 00000000 nop */ /* nop */ if (psx_taken_BFC1FA8C) goto label_BFC1FAA8; @@ -98695,7 +101648,7 @@ label_BFC1FA94: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC1FAA0: 1521002A bne $t1, $at, 0xBFC1FB4C */ uint32_t psx_brA_BFC1FAA0 = cpu->gpr[9]; uint32_t psx_brB_BFC1FAA0 = cpu->gpr[1]; - int psx_taken_BFC1FAA0 = (psx_brA_BFC1FAA0 != psx_brB_BFC1FAA0); + psx_taken_BFC1FAA0 = (psx_brA_BFC1FAA0 != psx_brB_BFC1FAA0); /* 0xBFC1FAA4: 2401003A addiu $at, $zero, 58 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (58)); if (psx_taken_BFC1FAA0) goto label_BFC1FB4C; @@ -98712,7 +101665,7 @@ label_BFC1FAA8: /* nop */ /* 0xBFC1FAB4: 1140000C beq $t2, $zero, 0xBFC1FAE8 */ uint32_t psx_brA_BFC1FAB4 = cpu->gpr[10]; uint32_t psx_brB_BFC1FAB4 = cpu->gpr[0]; - int psx_taken_BFC1FAB4 = (psx_brA_BFC1FAB4 == psx_brB_BFC1FAB4); + psx_taken_BFC1FAB4 = (psx_brA_BFC1FAB4 == psx_brB_BFC1FAB4); /* 0xBFC1FAB8: 00000000 nop */ /* nop */ if (psx_taken_BFC1FAB4) goto label_BFC1FAE8; @@ -98747,7 +101700,7 @@ label_BFC1FADC: cpu->gpr[1] = 0x80080000u; /* 0xBFC1FAE0: 10000075 beq $zero, $zero, 0xBFC1FCB8 */ uint32_t psx_brA_BFC1FAE0 = cpu->gpr[0]; uint32_t psx_brB_BFC1FAE0 = cpu->gpr[0]; - int psx_taken_BFC1FAE0 = (psx_brA_BFC1FAE0 == psx_brB_BFC1FAE0); + psx_taken_BFC1FAE0 = (psx_brA_BFC1FAE0 == psx_brB_BFC1FAE0); /* 0xBFC1FAE4: AC209EBC sw $zero, -24900($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24900)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1FAE4u); return; } g_debug_last_store_pc = 0xBFC1FAE4u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1FAE0) goto label_BFC1FCB8; @@ -98764,7 +101717,7 @@ label_BFC1FAE8: /* nop */ /* 0xBFC1FAF4: 15800006 bne $t4, $zero, 0xBFC1FB10 */ uint32_t psx_brA_BFC1FAF4 = cpu->gpr[12]; uint32_t psx_brB_BFC1FAF4 = cpu->gpr[0]; - int psx_taken_BFC1FAF4 = (psx_brA_BFC1FAF4 != psx_brB_BFC1FAF4); + psx_taken_BFC1FAF4 = (psx_brA_BFC1FAF4 != psx_brB_BFC1FAF4); /* 0xBFC1FAF8: 00000000 nop */ /* nop */ if (psx_taken_BFC1FAF4) goto label_BFC1FB10; @@ -98781,7 +101734,7 @@ label_BFC1FAFC: /* nop */ /* 0xBFC1FB08: 15A30005 bne $t5, $v1, 0xBFC1FB20 */ uint32_t psx_brA_BFC1FB08 = cpu->gpr[13]; uint32_t psx_brB_BFC1FB08 = cpu->gpr[3]; - int psx_taken_BFC1FB08 = (psx_brA_BFC1FB08 != psx_brB_BFC1FB08); + psx_taken_BFC1FB08 = (psx_brA_BFC1FB08 != psx_brB_BFC1FB08); /* 0xBFC1FB0C: 00000000 nop */ /* nop */ if (psx_taken_BFC1FB08) goto label_BFC1FB20; @@ -98802,7 +101755,7 @@ label_BFC1FB18: psx_check_interrupts(cpu); /* 0xBFC1FB18: 10000068 beq $zero, $zero, 0xBFC1FCBC */ uint32_t psx_brA_BFC1FB18 = cpu->gpr[0]; uint32_t psx_brB_BFC1FB18 = cpu->gpr[0]; - int psx_taken_BFC1FB18 = (psx_brA_BFC1FB18 == psx_brB_BFC1FB18); + psx_taken_BFC1FB18 = (psx_brA_BFC1FB18 == psx_brB_BFC1FB18); /* 0xBFC1FB1C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1FB1Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1FB18) goto label_BFC1FCBC; @@ -98835,7 +101788,7 @@ label_BFC1FB40: psx_check_interrupts(cpu); /* 0xBFC1FB40: 1000005E beq $zero, $zero, 0xBFC1FCBC */ uint32_t psx_brA_BFC1FB40 = cpu->gpr[0]; uint32_t psx_brB_BFC1FB40 = cpu->gpr[0]; - int psx_taken_BFC1FB40 = (psx_brA_BFC1FB40 == psx_brB_BFC1FB40); + psx_taken_BFC1FB40 = (psx_brA_BFC1FB40 == psx_brB_BFC1FB40); /* 0xBFC1FB44: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1FB44u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1FB40) goto label_BFC1FCBC; @@ -98853,7 +101806,7 @@ label_BFC1FB4C: psx_check_interrupts(cpu); /* 0xBFC1FB4C: 10410003 beq $v0, $at, 0xBFC1FB5C */ uint32_t psx_brA_BFC1FB4C = cpu->gpr[2]; uint32_t psx_brB_BFC1FB4C = cpu->gpr[1]; - int psx_taken_BFC1FB4C = (psx_brA_BFC1FB4C == psx_brB_BFC1FB4C); + psx_taken_BFC1FB4C = (psx_brA_BFC1FB4C == psx_brB_BFC1FB4C); /* 0xBFC1FB50: 2401003B addiu $at, $zero, 59 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (59)); if (psx_taken_BFC1FB4C) goto label_BFC1FB5C; @@ -98864,7 +101817,7 @@ label_BFC1FB54: psx_check_interrupts(cpu); /* 0xBFC1FB54: 1441000B bne $v0, $at, 0xBFC1FB84 */ uint32_t psx_brA_BFC1FB54 = cpu->gpr[2]; uint32_t psx_brB_BFC1FB54 = cpu->gpr[1]; - int psx_taken_BFC1FB54 = (psx_brA_BFC1FB54 != psx_brB_BFC1FB54); + psx_taken_BFC1FB54 = (psx_brA_BFC1FB54 != psx_brB_BFC1FB54); /* 0xBFC1FB58: 24010032 addiu $at, $zero, 50 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); if (psx_taken_BFC1FB54) goto label_BFC1FB84; @@ -98889,7 +101842,7 @@ label_BFC1FB5C: cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); /* 0xBFC1FB78: 1000004F beq $zero, $zero, 0xBFC1FCB8 */ uint32_t psx_brA_BFC1FB78 = cpu->gpr[0]; uint32_t psx_brB_BFC1FB78 = cpu->gpr[0]; - int psx_taken_BFC1FB78 = (psx_brA_BFC1FB78 == psx_brB_BFC1FB78); + psx_taken_BFC1FB78 = (psx_brA_BFC1FB78 == psx_brB_BFC1FB78); /* 0xBFC1FB7C: AC386944 sw $t8, 26948($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (26948)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1FB7Cu); return; } g_debug_last_store_pc = 0xBFC1FB7Cu; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC1FB78) goto label_BFC1FCB8; @@ -98907,7 +101860,7 @@ label_BFC1FB84: psx_check_interrupts(cpu); /* 0xBFC1FB84: 1441004D bne $v0, $at, 0xBFC1FCBC */ uint32_t psx_brA_BFC1FB84 = cpu->gpr[2]; uint32_t psx_brB_BFC1FB84 = cpu->gpr[1]; - int psx_taken_BFC1FB84 = (psx_brA_BFC1FB84 != psx_brB_BFC1FB84); + psx_taken_BFC1FB84 = (psx_brA_BFC1FB84 != psx_brB_BFC1FB84); /* 0xBFC1FB88: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1FB88u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC1FB84) goto label_BFC1FCBC; @@ -98928,7 +101881,7 @@ label_BFC1FB94: psx_check_interrupts(cpu); /* 0xBFC1FB94: 10400008 beq $v0, $zero, 0xBFC1FBB8 */ uint32_t psx_brA_BFC1FB94 = cpu->gpr[2]; uint32_t psx_brB_BFC1FB94 = cpu->gpr[0]; - int psx_taken_BFC1FB94 = (psx_brA_BFC1FB94 == psx_brB_BFC1FB94); + psx_taken_BFC1FB94 = (psx_brA_BFC1FB94 == psx_brB_BFC1FB94); /* 0xBFC1FB98: 24190034 addiu $t9, $zero, 52 */ cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC1FB94) goto label_BFC1FBB8; @@ -98949,7 +101902,7 @@ label_BFC1FBA4: psx_check_interrupts(cpu); /* 0xBFC1FBA4: 14400004 bne $v0, $zero, 0xBFC1FBB8 */ uint32_t psx_brA_BFC1FBA4 = cpu->gpr[2]; uint32_t psx_brB_BFC1FBA4 = cpu->gpr[0]; - int psx_taken_BFC1FBA4 = (psx_brA_BFC1FBA4 != psx_brB_BFC1FBA4); + psx_taken_BFC1FBA4 = (psx_brA_BFC1FBA4 != psx_brB_BFC1FBA4); /* 0xBFC1FBA8: 24190034 addiu $t9, $zero, 52 */ cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC1FBA4) goto label_BFC1FBB8; @@ -98999,7 +101952,7 @@ label_BFC1FBD8: psx_check_interrupts(cpu); /* 0xBFC1FBD8: 1440000A bne $v0, $zero, 0xBFC1FC04 */ uint32_t psx_brA_BFC1FBD8 = cpu->gpr[2]; uint32_t psx_brB_BFC1FBD8 = cpu->gpr[0]; - int psx_taken_BFC1FBD8 = (psx_brA_BFC1FBD8 != psx_brB_BFC1FBD8); + psx_taken_BFC1FBD8 = (psx_brA_BFC1FBD8 != psx_brB_BFC1FBD8); /* 0xBFC1FBDC: 00000000 nop */ /* nop */ if (psx_taken_BFC1FBD8) goto label_BFC1FC04; @@ -99026,7 +101979,7 @@ label_BFC1FBE8: /* nop */ /* 0xBFC1FBF4: 11200030 beq $t1, $zero, 0xBFC1FCB8 */ uint32_t psx_brA_BFC1FBF4 = cpu->gpr[9]; uint32_t psx_brB_BFC1FBF4 = cpu->gpr[0]; - int psx_taken_BFC1FBF4 = (psx_brA_BFC1FBF4 == psx_brB_BFC1FBF4); + psx_taken_BFC1FBF4 = (psx_brA_BFC1FBF4 == psx_brB_BFC1FBF4); /* 0xBFC1FBF8: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC1FBF4) goto label_BFC1FCB8; @@ -99037,7 +101990,7 @@ label_BFC1FBFC: psx_check_interrupts(cpu); /* 0xBFC1FBFC: 1000002E beq $zero, $zero, 0xBFC1FCB8 */ uint32_t psx_brA_BFC1FBFC = cpu->gpr[0]; uint32_t psx_brB_BFC1FBFC = cpu->gpr[0]; - int psx_taken_BFC1FBFC = (psx_brA_BFC1FBFC == psx_brB_BFC1FBFC); + psx_taken_BFC1FBFC = (psx_brA_BFC1FBFC == psx_brB_BFC1FBFC); /* 0xBFC1FC00: AC209EB0 sw $zero, -24912($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24912)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1FC00u); return; } g_debug_last_store_pc = 0xBFC1FC00u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1FBFC) goto label_BFC1FCB8; @@ -99054,7 +102007,7 @@ label_BFC1FC04: /* nop */ /* 0xBFC1FC10: 1440001C bne $v0, $zero, 0xBFC1FC84 */ uint32_t psx_brA_BFC1FC10 = cpu->gpr[2]; uint32_t psx_brB_BFC1FC10 = cpu->gpr[0]; - int psx_taken_BFC1FC10 = (psx_brA_BFC1FC10 != psx_brB_BFC1FC10); + psx_taken_BFC1FC10 = (psx_brA_BFC1FC10 != psx_brB_BFC1FC10); /* 0xBFC1FC14: 00000000 nop */ /* nop */ if (psx_taken_BFC1FC10) goto label_BFC1FC84; @@ -99075,7 +102028,7 @@ label_BFC1FC20: psx_check_interrupts(cpu); /* 0xBFC1FC20: 10400003 beq $v0, $zero, 0xBFC1FC30 */ uint32_t psx_brA_BFC1FC20 = cpu->gpr[2]; uint32_t psx_brB_BFC1FC20 = cpu->gpr[0]; - int psx_taken_BFC1FC20 = (psx_brA_BFC1FC20 == psx_brB_BFC1FC20); + psx_taken_BFC1FC20 = (psx_brA_BFC1FC20 == psx_brB_BFC1FC20); /* 0xBFC1FC24: 00000000 nop */ /* nop */ if (psx_taken_BFC1FC20) goto label_BFC1FC30; @@ -99086,7 +102039,7 @@ label_BFC1FC28: psx_check_interrupts(cpu); /* 0xBFC1FC28: 1000000C beq $zero, $zero, 0xBFC1FC5C */ uint32_t psx_brA_BFC1FC28 = cpu->gpr[0]; uint32_t psx_brB_BFC1FC28 = cpu->gpr[0]; - int psx_taken_BFC1FC28 = (psx_brA_BFC1FC28 == psx_brB_BFC1FC28); + psx_taken_BFC1FC28 = (psx_brA_BFC1FC28 == psx_brB_BFC1FC28); /* 0xBFC1FC2C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC1FC28) goto label_BFC1FC5C; @@ -99107,7 +102060,7 @@ label_BFC1FC38: psx_check_interrupts(cpu); /* 0xBFC1FC38: 10400005 beq $v0, $zero, 0xBFC1FC50 */ uint32_t psx_brA_BFC1FC38 = cpu->gpr[2]; uint32_t psx_brB_BFC1FC38 = cpu->gpr[0]; - int psx_taken_BFC1FC38 = (psx_brA_BFC1FC38 == psx_brB_BFC1FC38); + psx_taken_BFC1FC38 = (psx_brA_BFC1FC38 == psx_brB_BFC1FC38); /* 0xBFC1FC3C: 00000000 nop */ /* nop */ if (psx_taken_BFC1FC38) goto label_BFC1FC50; @@ -99122,7 +102075,7 @@ label_BFC1FC40: cpu->gpr[2] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[2] + (-24976))); /* 0xBFC1FC48: 10000005 beq $zero, $zero, 0xBFC1FC60 */ uint32_t psx_brA_BFC1FC48 = cpu->gpr[0]; uint32_t psx_brB_BFC1FC48 = cpu->gpr[0]; - int psx_taken_BFC1FC48 = (psx_brA_BFC1FC48 == psx_brB_BFC1FC48); + psx_taken_BFC1FC48 = (psx_brA_BFC1FC48 == psx_brB_BFC1FC48); /* 0xBFC1FC4C: 00025080 sll $t2, $v0, 2 */ cpu->gpr[10] = cpu->gpr[2] << 2u; if (psx_taken_BFC1FC48) goto label_BFC1FC60; @@ -99261,6 +102214,28 @@ void func_1FC1FCC8(CPUState* cpu) { default: break; } } + int psx_taken_BFC1FD14 = 0; + int psx_taken_BFC1FD24 = 0; + int psx_taken_BFC1FD3C = 0; + int psx_taken_BFC1FD4C = 0; + int psx_taken_BFC1FD60 = 0; + int psx_taken_BFC1FD98 = 0; + int psx_taken_BFC1FDBC = 0; + int psx_taken_BFC1FDCC = 0; + int psx_taken_BFC1FDF4 = 0; + int psx_taken_BFC1FE0C = 0; + int psx_taken_BFC1FE30 = 0; + int psx_taken_BFC1FE40 = 0; + int psx_taken_BFC1FE54 = 0; + int psx_taken_BFC1FE74 = 0; + int psx_taken_BFC1FE80 = 0; + int psx_taken_BFC1FEA4 = 0; + int psx_taken_BFC1FEC8 = 0; + int psx_taken_BFC1FED8 = 0; + int psx_taken_BFC1FEF8 = 0; + int psx_taken_BFC1FF10 = 0; + int psx_taken_BFC1FF1C = 0; + int psx_taken_BFC1FF48 = 0; label_BFC1FCC8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -99324,7 +102299,7 @@ label_BFC1FD14: psx_check_interrupts(cpu); /* 0xBFC1FD14: 10400005 beq $v0, $zero, 0xBFC1FD2C */ uint32_t psx_brA_BFC1FD14 = cpu->gpr[2]; uint32_t psx_brB_BFC1FD14 = cpu->gpr[0]; - int psx_taken_BFC1FD14 = (psx_brA_BFC1FD14 == psx_brB_BFC1FD14); + psx_taken_BFC1FD14 = (psx_brA_BFC1FD14 == psx_brB_BFC1FD14); /* 0xBFC1FD18: 00000000 nop */ /* nop */ if (psx_taken_BFC1FD14) goto label_BFC1FD2C; @@ -99345,7 +102320,7 @@ label_BFC1FD24: psx_check_interrupts(cpu); /* 0xBFC1FD24: 10000003 beq $zero, $zero, 0xBFC1FD34 */ uint32_t psx_brA_BFC1FD24 = cpu->gpr[0]; uint32_t psx_brB_BFC1FD24 = cpu->gpr[0]; - int psx_taken_BFC1FD24 = (psx_brA_BFC1FD24 == psx_brB_BFC1FD24); + psx_taken_BFC1FD24 = (psx_brA_BFC1FD24 == psx_brB_BFC1FD24); /* 0xBFC1FD28: 00000000 nop */ /* nop */ if (psx_taken_BFC1FD24) goto label_BFC1FD34; @@ -99376,7 +102351,7 @@ label_BFC1FD3C: psx_check_interrupts(cpu); /* 0xBFC1FD3C: 1040003E beq $v0, $zero, 0xBFC1FE38 */ uint32_t psx_brA_BFC1FD3C = cpu->gpr[2]; uint32_t psx_brB_BFC1FD3C = cpu->gpr[0]; - int psx_taken_BFC1FD3C = (psx_brA_BFC1FD3C == psx_brB_BFC1FD3C); + psx_taken_BFC1FD3C = (psx_brA_BFC1FD3C == psx_brB_BFC1FD3C); /* 0xBFC1FD40: 00000000 nop */ /* nop */ if (psx_taken_BFC1FD3C) goto label_BFC1FE38; @@ -99397,7 +102372,7 @@ label_BFC1FD4C: psx_check_interrupts(cpu); /* 0xBFC1FD4C: 14400018 bne $v0, $zero, 0xBFC1FDB0 */ uint32_t psx_brA_BFC1FD4C = cpu->gpr[2]; uint32_t psx_brB_BFC1FD4C = cpu->gpr[0]; - int psx_taken_BFC1FD4C = (psx_brA_BFC1FD4C != psx_brB_BFC1FD4C); + psx_taken_BFC1FD4C = (psx_brA_BFC1FD4C != psx_brB_BFC1FD4C); /* 0xBFC1FD50: 00000000 nop */ /* nop */ if (psx_taken_BFC1FD4C) goto label_BFC1FDB0; @@ -99420,7 +102395,7 @@ label_BFC1FD60: psx_check_interrupts(cpu); /* 0xBFC1FD60: 18400011 blez $v0, 0xBFC1FDA8 */ uint32_t psx_brA_BFC1FD60 = cpu->gpr[2]; - int psx_taken_BFC1FD60 = ((int32_t)psx_brA_BFC1FD60 <= 0); + psx_taken_BFC1FD60 = ((int32_t)psx_brA_BFC1FD60 <= 0); /* 0xBFC1FD64: 00000000 nop */ /* nop */ if (psx_taken_BFC1FD60) goto label_BFC1FDA8; @@ -99472,7 +102447,7 @@ label_BFC1FD94: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[16] ? 1 : 0); /* 0xBFC1FD98: 1020FFF8 beq $at, $zero, 0xBFC1FD7C */ uint32_t psx_brA_BFC1FD98 = cpu->gpr[1]; uint32_t psx_brB_BFC1FD98 = cpu->gpr[0]; - int psx_taken_BFC1FD98 = (psx_brA_BFC1FD98 == psx_brB_BFC1FD98); + psx_taken_BFC1FD98 = (psx_brA_BFC1FD98 == psx_brB_BFC1FD98); /* 0xBFC1FD9C: 00000000 nop */ /* nop */ if (psx_taken_BFC1FD98) goto label_BFC1FD7C; @@ -99507,7 +102482,7 @@ label_BFC1FDB0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC1FDBC: 17010068 bne $t8, $at, 0xBFC1FF60 */ uint32_t psx_brA_BFC1FDBC = cpu->gpr[24]; uint32_t psx_brB_BFC1FDBC = cpu->gpr[1]; - int psx_taken_BFC1FDBC = (psx_brA_BFC1FDBC != psx_brB_BFC1FDBC); + psx_taken_BFC1FDBC = (psx_brA_BFC1FDBC != psx_brB_BFC1FDBC); /* 0xBFC1FDC0: 00000000 nop */ /* nop */ if (psx_taken_BFC1FDBC) goto label_BFC1FF60; @@ -99528,7 +102503,7 @@ label_BFC1FDCC: psx_check_interrupts(cpu); /* 0xBFC1FDCC: 14400014 bne $v0, $zero, 0xBFC1FE20 */ uint32_t psx_brA_BFC1FDCC = cpu->gpr[2]; uint32_t psx_brB_BFC1FDCC = cpu->gpr[0]; - int psx_taken_BFC1FDCC = (psx_brA_BFC1FDCC != psx_brB_BFC1FDCC); + psx_taken_BFC1FDCC = (psx_brA_BFC1FDCC != psx_brB_BFC1FDCC); /* 0xBFC1FDD0: 00000000 nop */ /* nop */ if (psx_taken_BFC1FDCC) goto label_BFC1FE20; @@ -99560,7 +102535,7 @@ label_BFC1FDE4: cpu->gpr[1] = (uint32_t)(cpu->gpr[25] < cpu->gpr[16] ? 1 : 0); /* 0xBFC1FDF4: 14200007 bne $at, $zero, 0xBFC1FE14 */ uint32_t psx_brA_BFC1FDF4 = cpu->gpr[1]; uint32_t psx_brB_BFC1FDF4 = cpu->gpr[0]; - int psx_taken_BFC1FDF4 = (psx_brA_BFC1FDF4 != psx_brB_BFC1FDF4); + psx_taken_BFC1FDF4 = (psx_brA_BFC1FDF4 != psx_brB_BFC1FDF4); /* 0xBFC1FDF8: 00000000 nop */ /* nop */ if (psx_taken_BFC1FDF4) goto label_BFC1FE14; @@ -99585,7 +102560,7 @@ label_BFC1FE08: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC1FE0C: 1611FFF5 bne $s0, $s1, 0xBFC1FDE4 */ uint32_t psx_brA_BFC1FE0C = cpu->gpr[16]; uint32_t psx_brB_BFC1FE0C = cpu->gpr[17]; - int psx_taken_BFC1FE0C = (psx_brA_BFC1FE0C != psx_brB_BFC1FE0C); + psx_taken_BFC1FE0C = (psx_brA_BFC1FE0C != psx_brB_BFC1FE0C); /* 0xBFC1FE10: 00000000 nop */ /* nop */ if (psx_taken_BFC1FE0C) goto label_BFC1FDE4; @@ -99627,7 +102602,7 @@ label_BFC1FE30: psx_check_interrupts(cpu); /* 0xBFC1FE30: 1000004B beq $zero, $zero, 0xBFC1FF60 */ uint32_t psx_brA_BFC1FE30 = cpu->gpr[0]; uint32_t psx_brB_BFC1FE30 = cpu->gpr[0]; - int psx_taken_BFC1FE30 = (psx_brA_BFC1FE30 == psx_brB_BFC1FE30); + psx_taken_BFC1FE30 = (psx_brA_BFC1FE30 == psx_brB_BFC1FE30); /* 0xBFC1FE34: 00000000 nop */ /* nop */ if (psx_taken_BFC1FE30) goto label_BFC1FF60; @@ -99648,7 +102623,7 @@ label_BFC1FE40: psx_check_interrupts(cpu); /* 0xBFC1FE40: 10400023 beq $v0, $zero, 0xBFC1FED0 */ uint32_t psx_brA_BFC1FE40 = cpu->gpr[2]; uint32_t psx_brB_BFC1FE40 = cpu->gpr[0]; - int psx_taken_BFC1FE40 = (psx_brA_BFC1FE40 == psx_brB_BFC1FE40); + psx_taken_BFC1FE40 = (psx_brA_BFC1FE40 == psx_brB_BFC1FE40); /* 0xBFC1FE44: 00000000 nop */ /* nop */ if (psx_taken_BFC1FE40) goto label_BFC1FED0; @@ -99665,7 +102640,7 @@ label_BFC1FE48: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC1FE54: 15010017 bne $t0, $at, 0xBFC1FEB4 */ uint32_t psx_brA_BFC1FE54 = cpu->gpr[8]; uint32_t psx_brB_BFC1FE54 = cpu->gpr[1]; - int psx_taken_BFC1FE54 = (psx_brA_BFC1FE54 != psx_brB_BFC1FE54); + psx_taken_BFC1FE54 = (psx_brA_BFC1FE54 != psx_brB_BFC1FE54); /* 0xBFC1FE58: 00000000 nop */ /* nop */ if (psx_taken_BFC1FE54) goto label_BFC1FEB4; @@ -99688,7 +102663,7 @@ label_BFC1FE5C: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[9] ? 1 : 0); /* 0xBFC1FE74: 1020000D beq $at, $zero, 0xBFC1FEAC */ uint32_t psx_brA_BFC1FE74 = cpu->gpr[1]; uint32_t psx_brB_BFC1FE74 = cpu->gpr[0]; - int psx_taken_BFC1FE74 = (psx_brA_BFC1FE74 == psx_brB_BFC1FE74); + psx_taken_BFC1FE74 = (psx_brA_BFC1FE74 == psx_brB_BFC1FE74); /* 0xBFC1FE78: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1FE74) goto label_BFC1FEAC; @@ -99706,7 +102681,7 @@ label_BFC1FE80: psx_check_interrupts(cpu); /* 0xBFC1FE80: 1020000A beq $at, $zero, 0xBFC1FEAC */ uint32_t psx_brA_BFC1FE80 = cpu->gpr[1]; uint32_t psx_brB_BFC1FE80 = cpu->gpr[0]; - int psx_taken_BFC1FE80 = (psx_brA_BFC1FE80 == psx_brB_BFC1FE80); + psx_taken_BFC1FE80 = (psx_brA_BFC1FE80 == psx_brB_BFC1FE80); /* 0xBFC1FE84: 00000000 nop */ /* nop */ if (psx_taken_BFC1FE80) goto label_BFC1FEAC; @@ -99737,7 +102712,7 @@ label_BFC1FE94: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[10] ? 1 : 0); /* 0xBFC1FEA4: 1420FFF6 bne $at, $zero, 0xBFC1FE80 */ uint32_t psx_brA_BFC1FEA4 = cpu->gpr[1]; uint32_t psx_brB_BFC1FEA4 = cpu->gpr[0]; - int psx_taken_BFC1FEA4 = (psx_brA_BFC1FEA4 != psx_brB_BFC1FEA4); + psx_taken_BFC1FEA4 = (psx_brA_BFC1FEA4 != psx_brB_BFC1FEA4); /* 0xBFC1FEA8: 2A010015 slti $at, $s0, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (21) ? 1 : 0); if (psx_taken_BFC1FEA4) goto label_BFC1FE80; @@ -99773,7 +102748,7 @@ label_BFC1FEBC: cpu->gpr[1] = 0x80080000u; /* 0xBFC1FEC8: 10000025 beq $zero, $zero, 0xBFC1FF60 */ uint32_t psx_brA_BFC1FEC8 = cpu->gpr[0]; uint32_t psx_brB_BFC1FEC8 = cpu->gpr[0]; - int psx_taken_BFC1FEC8 = (psx_brA_BFC1FEC8 == psx_brB_BFC1FEC8); + psx_taken_BFC1FEC8 = (psx_brA_BFC1FEC8 == psx_brB_BFC1FEC8); /* 0xBFC1FECC: AC209E50 sw $zero, -25008($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25008)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1FECCu); return; } g_debug_last_store_pc = 0xBFC1FECCu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC1FEC8) goto label_BFC1FF60; @@ -99794,7 +102769,7 @@ label_BFC1FED8: psx_check_interrupts(cpu); /* 0xBFC1FED8: 14400021 bne $v0, $zero, 0xBFC1FF60 */ uint32_t psx_brA_BFC1FED8 = cpu->gpr[2]; uint32_t psx_brB_BFC1FED8 = cpu->gpr[0]; - int psx_taken_BFC1FED8 = (psx_brA_BFC1FED8 != psx_brB_BFC1FED8); + psx_taken_BFC1FED8 = (psx_brA_BFC1FED8 != psx_brB_BFC1FED8); /* 0xBFC1FEDC: 00000000 nop */ /* nop */ if (psx_taken_BFC1FED8) goto label_BFC1FF60; @@ -99817,7 +102792,7 @@ label_BFC1FEE0: cpu->gpr[1] = (uint32_t)(cpu->gpr[11] < cpu->gpr[2] ? 1 : 0); /* 0xBFC1FEF8: 14200017 bne $at, $zero, 0xBFC1FF58 */ uint32_t psx_brA_BFC1FEF8 = cpu->gpr[1]; uint32_t psx_brB_BFC1FEF8 = cpu->gpr[0]; - int psx_taken_BFC1FEF8 = (psx_brA_BFC1FEF8 != psx_brB_BFC1FEF8); + psx_taken_BFC1FEF8 = (psx_brA_BFC1FEF8 != psx_brB_BFC1FEF8); /* 0xBFC1FEFC: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC1FEF8) goto label_BFC1FF58; @@ -99841,7 +102816,7 @@ label_BFC1FF10: psx_check_interrupts(cpu); /* 0xBFC1FF10: 14200005 bne $at, $zero, 0xBFC1FF28 */ uint32_t psx_brA_BFC1FF10 = cpu->gpr[1]; uint32_t psx_brB_BFC1FF10 = cpu->gpr[0]; - int psx_taken_BFC1FF10 = (psx_brA_BFC1FF10 != psx_brB_BFC1FF10); + psx_taken_BFC1FF10 = (psx_brA_BFC1FF10 != psx_brB_BFC1FF10); /* 0xBFC1FF14: 00106080 sll $t4, $s0, 2 */ cpu->gpr[12] = cpu->gpr[16] << 2u; if (psx_taken_BFC1FF10) goto label_BFC1FF28; @@ -99854,7 +102829,7 @@ label_BFC1FF18: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1FF18u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } /* 0xBFC1FF1C: 1000000F beq $zero, $zero, 0xBFC1FF5C */ uint32_t psx_brA_BFC1FF1C = cpu->gpr[0]; uint32_t psx_brB_BFC1FF1C = cpu->gpr[0]; - int psx_taken_BFC1FF1C = (psx_brA_BFC1FF1C == psx_brB_BFC1FF1C); + psx_taken_BFC1FF1C = (psx_brA_BFC1FF1C == psx_brB_BFC1FF1C); /* 0xBFC1FF20: 8FB00020 lw $s0, 32($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1FF20u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC1FF1C) goto label_BFC1FF5C; @@ -99894,7 +102869,7 @@ label_BFC1FF38: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < cpu->gpr[16] ? 1 : 0); /* 0xBFC1FF48: 1020FFF1 beq $at, $zero, 0xBFC1FF10 */ uint32_t psx_brA_BFC1FF48 = cpu->gpr[1]; uint32_t psx_brB_BFC1FF48 = cpu->gpr[0]; - int psx_taken_BFC1FF48 = (psx_brA_BFC1FF48 == psx_brB_BFC1FF48); + psx_taken_BFC1FF48 = (psx_brA_BFC1FF48 == psx_brB_BFC1FF48); /* 0xBFC1FF4C: 2A010015 slti $at, $s0, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (21) ? 1 : 0); if (psx_taken_BFC1FF48) goto label_BFC1FF10; @@ -99986,6 +102961,40 @@ void func_1FC1FFA8(CPUState* cpu) { default: break; } } + int psx_taken_BFC1FFBC = 0; + int psx_taken_BFC1FFC8 = 0; + int psx_taken_BFC1FFDC = 0; + int psx_taken_BFC1FFE8 = 0; + int psx_taken_BFC20014 = 0; + int psx_taken_BFC2002C = 0; + int psx_taken_BFC20040 = 0; + int psx_taken_BFC20054 = 0; + int psx_taken_BFC2005C = 0; + int psx_taken_BFC20084 = 0; + int psx_taken_BFC200B8 = 0; + int psx_taken_BFC200C0 = 0; + int psx_taken_BFC200D4 = 0; + int psx_taken_BFC200F4 = 0; + int psx_taken_BFC20108 = 0; + int psx_taken_BFC2011C = 0; + int psx_taken_BFC20124 = 0; + int psx_taken_BFC20138 = 0; + int psx_taken_BFC20164 = 0; + int psx_taken_BFC2016C = 0; + int psx_taken_BFC20180 = 0; + int psx_taken_BFC201A0 = 0; + int psx_taken_BFC201B4 = 0; + int psx_taken_BFC201BC = 0; + int psx_taken_BFC201D0 = 0; + int psx_taken_BFC20204 = 0; + int psx_taken_BFC20224 = 0; + int psx_taken_BFC20248 = 0; + int psx_taken_BFC20258 = 0; + int psx_taken_BFC20260 = 0; + int psx_taken_BFC20274 = 0; + int psx_taken_BFC20294 = 0; + int psx_taken_BFC202A8 = 0; + int psx_taken_BFC202C0 = 0; label_BFC1FFA8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -100003,7 +103012,7 @@ label_BFC1FFA8: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC1FFBC: 10500004 beq $v0, $s0, 0xBFC1FFD0 */ uint32_t psx_brA_BFC1FFBC = cpu->gpr[2]; uint32_t psx_brB_BFC1FFBC = cpu->gpr[16]; - int psx_taken_BFC1FFBC = (psx_brA_BFC1FFBC == psx_brB_BFC1FFBC); + psx_taken_BFC1FFBC = (psx_brA_BFC1FFBC == psx_brB_BFC1FFBC); /* 0xBFC1FFC0: AFBF001C sw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC1FFC0u); return; } g_debug_last_store_pc = 0xBFC1FFC0u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC1FFBC) goto label_BFC1FFD0; @@ -100016,7 +103025,7 @@ label_BFC1FFC4: cpu->gpr[5] = 0x800F0000u; /* 0xBFC1FFC8: 10000012 beq $zero, $zero, 0xBFC20014 */ uint32_t psx_brA_BFC1FFC8 = cpu->gpr[0]; uint32_t psx_brB_BFC1FFC8 = cpu->gpr[0]; - int psx_taken_BFC1FFC8 = (psx_brA_BFC1FFC8 == psx_brB_BFC1FFC8); + psx_taken_BFC1FFC8 = (psx_brA_BFC1FFC8 == psx_brB_BFC1FFC8); /* 0xBFC1FFCC: 24A5D0F0 addiu $a1, $a1, -12048 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-12048)); if (psx_taken_BFC1FFC8) goto label_BFC20014; @@ -100033,7 +103042,7 @@ label_BFC1FFD0: /* nop */ /* 0xBFC1FFDC: 15C00004 bne $t6, $zero, 0xBFC1FFF0 */ uint32_t psx_brA_BFC1FFDC = cpu->gpr[14]; uint32_t psx_brB_BFC1FFDC = cpu->gpr[0]; - int psx_taken_BFC1FFDC = (psx_brA_BFC1FFDC != psx_brB_BFC1FFDC); + psx_taken_BFC1FFDC = (psx_brA_BFC1FFDC != psx_brB_BFC1FFDC); /* 0xBFC1FFE0: 00000000 nop */ /* nop */ if (psx_taken_BFC1FFDC) goto label_BFC1FFF0; @@ -100046,7 +103055,7 @@ label_BFC1FFE4: cpu->gpr[5] = 0x800F0000u; /* 0xBFC1FFE8: 1000000A beq $zero, $zero, 0xBFC20014 */ uint32_t psx_brA_BFC1FFE8 = cpu->gpr[0]; uint32_t psx_brB_BFC1FFE8 = cpu->gpr[0]; - int psx_taken_BFC1FFE8 = (psx_brA_BFC1FFE8 == psx_brB_BFC1FFE8); + psx_taken_BFC1FFE8 = (psx_brA_BFC1FFE8 == psx_brB_BFC1FFE8); /* 0xBFC1FFEC: 24A5D0F0 addiu $a1, $a1, -12048 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-12048)); if (psx_taken_BFC1FFE8) goto label_BFC20014; @@ -100080,7 +103089,7 @@ label_BFC20014: psx_check_interrupts(cpu); /* 0xBFC20014: 10800004 beq $a0, $zero, 0xBFC20028 */ uint32_t psx_brA_BFC20014 = cpu->gpr[4]; uint32_t psx_brB_BFC20014 = cpu->gpr[0]; - int psx_taken_BFC20014 = (psx_brA_BFC20014 == psx_brB_BFC20014); + psx_taken_BFC20014 = (psx_brA_BFC20014 == psx_brB_BFC20014); /* 0xBFC20018: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC20014) goto label_BFC20028; @@ -100104,7 +103113,7 @@ label_BFC20028: cpu->gpr[1] = 0x80080000u; /* 0xBFC2002C: 1480009B bne $a0, $zero, 0xBFC2029C */ uint32_t psx_brA_BFC2002C = cpu->gpr[4]; uint32_t psx_brB_BFC2002C = cpu->gpr[0]; - int psx_taken_BFC2002C = (psx_brA_BFC2002C != psx_brB_BFC2002C); + psx_taken_BFC2002C = (psx_brA_BFC2002C != psx_brB_BFC2002C); /* 0xBFC20030: AC249EB8 sw $a0, -24904($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24904)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20030u); return; } g_debug_last_store_pc = 0xBFC20030u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC2002C) goto label_BFC2029C; @@ -100127,7 +103136,7 @@ label_BFC2003C: cpu->gpr[5] = 0x800F0000u; /* 0xBFC20040: 1040002E beq $v0, $zero, 0xBFC200FC */ uint32_t psx_brA_BFC20040 = cpu->gpr[2]; uint32_t psx_brB_BFC20040 = cpu->gpr[0]; - int psx_taken_BFC20040 = (psx_brA_BFC20040 == psx_brB_BFC20040); + psx_taken_BFC20040 = (psx_brA_BFC20040 == psx_brB_BFC20040); /* 0xBFC20044: 24A5D0F0 addiu $a1, $a1, -12048 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-12048)); if (psx_taken_BFC20040) goto label_BFC200FC; @@ -100144,7 +103153,7 @@ label_BFC20048: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC20054: 10410003 beq $v0, $at, 0xBFC20064 */ uint32_t psx_brA_BFC20054 = cpu->gpr[2]; uint32_t psx_brB_BFC20054 = cpu->gpr[1]; - int psx_taken_BFC20054 = (psx_brA_BFC20054 == psx_brB_BFC20054); + psx_taken_BFC20054 = (psx_brA_BFC20054 == psx_brB_BFC20054); /* 0xBFC20058: 2401000B addiu $at, $zero, 11 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (11)); if (psx_taken_BFC20054) goto label_BFC20064; @@ -100155,7 +103164,7 @@ label_BFC2005C: psx_check_interrupts(cpu); /* 0xBFC2005C: 14410018 bne $v0, $at, 0xBFC200C0 */ uint32_t psx_brA_BFC2005C = cpu->gpr[2]; uint32_t psx_brB_BFC2005C = cpu->gpr[1]; - int psx_taken_BFC2005C = (psx_brA_BFC2005C != psx_brB_BFC2005C); + psx_taken_BFC2005C = (psx_brA_BFC2005C != psx_brB_BFC2005C); /* 0xBFC20060: 00000000 nop */ /* nop */ if (psx_taken_BFC2005C) goto label_BFC200C0; @@ -100188,7 +103197,7 @@ label_BFC20084: psx_check_interrupts(cpu); /* 0xBFC20084: 1440000A bne $v0, $zero, 0xBFC200B0 */ uint32_t psx_brA_BFC20084 = cpu->gpr[2]; uint32_t psx_brB_BFC20084 = cpu->gpr[0]; - int psx_taken_BFC20084 = (psx_brA_BFC20084 != psx_brB_BFC20084); + psx_taken_BFC20084 = (psx_brA_BFC20084 != psx_brB_BFC20084); /* 0xBFC20088: 00000000 nop */ /* nop */ if (psx_taken_BFC20084) goto label_BFC200B0; @@ -100232,7 +103241,7 @@ label_BFC200B0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (26952)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC200B4u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } /* 0xBFC200B8: 10000081 beq $zero, $zero, 0xBFC202C0 */ uint32_t psx_brA_BFC200B8 = cpu->gpr[0]; uint32_t psx_brB_BFC200B8 = cpu->gpr[0]; - int psx_taken_BFC200B8 = (psx_brA_BFC200B8 == psx_brB_BFC200B8); + psx_taken_BFC200B8 = (psx_brA_BFC200B8 == psx_brB_BFC200B8); /* 0xBFC200BC: 24010032 addiu $at, $zero, 50 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); if (psx_taken_BFC200B8) goto label_BFC202C0; @@ -100243,7 +103252,7 @@ label_BFC200C0: psx_check_interrupts(cpu); /* 0xBFC200C0: 1450007F bne $v0, $s0, 0xBFC202C0 */ uint32_t psx_brA_BFC200C0 = cpu->gpr[2]; uint32_t psx_brB_BFC200C0 = cpu->gpr[16]; - int psx_taken_BFC200C0 = (psx_brA_BFC200C0 != psx_brB_BFC200C0); + psx_taken_BFC200C0 = (psx_brA_BFC200C0 != psx_brB_BFC200C0); /* 0xBFC200C4: 24010032 addiu $at, $zero, 50 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); if (psx_taken_BFC200C0) goto label_BFC202C0; @@ -100260,7 +103269,7 @@ label_BFC200C8: /* nop */ /* 0xBFC200D4: 1120007A beq $t1, $zero, 0xBFC202C0 */ uint32_t psx_brA_BFC200D4 = cpu->gpr[9]; uint32_t psx_brB_BFC200D4 = cpu->gpr[0]; - int psx_taken_BFC200D4 = (psx_brA_BFC200D4 == psx_brB_BFC200D4); + psx_taken_BFC200D4 = (psx_brA_BFC200D4 == psx_brB_BFC200D4); /* 0xBFC200D8: 24010032 addiu $at, $zero, 50 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); if (psx_taken_BFC200D4) goto label_BFC202C0; @@ -100283,7 +103292,7 @@ label_BFC200DC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[11] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC200F0u); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } /* 0xBFC200F4: 10000071 beq $zero, $zero, 0xBFC202BC */ uint32_t psx_brA_BFC200F4 = cpu->gpr[0]; uint32_t psx_brB_BFC200F4 = cpu->gpr[0]; - int psx_taken_BFC200F4 = (psx_brA_BFC200F4 == psx_brB_BFC200F4); + psx_taken_BFC200F4 = (psx_brA_BFC200F4 == psx_brB_BFC200F4); /* 0xBFC200F8: AC2C9EB8 sw $t4, -24904($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24904)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC200F8u); return; } g_debug_last_store_pc = 0xBFC200F8u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC200F4) goto label_BFC202BC; @@ -100306,7 +103315,7 @@ label_BFC20104: cpu->gpr[5] = 0x800F0000u; /* 0xBFC20108: 10400027 beq $v0, $zero, 0xBFC201A8 */ uint32_t psx_brA_BFC20108 = cpu->gpr[2]; uint32_t psx_brB_BFC20108 = cpu->gpr[0]; - int psx_taken_BFC20108 = (psx_brA_BFC20108 == psx_brB_BFC20108); + psx_taken_BFC20108 = (psx_brA_BFC20108 == psx_brB_BFC20108); /* 0xBFC2010C: 24A5D0F0 addiu $a1, $a1, -12048 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-12048)); if (psx_taken_BFC20108) goto label_BFC201A8; @@ -100323,7 +103332,7 @@ label_BFC20110: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC2011C: 10410003 beq $v0, $at, 0xBFC2012C */ uint32_t psx_brA_BFC2011C = cpu->gpr[2]; uint32_t psx_brB_BFC2011C = cpu->gpr[1]; - int psx_taken_BFC2011C = (psx_brA_BFC2011C == psx_brB_BFC2011C); + psx_taken_BFC2011C = (psx_brA_BFC2011C == psx_brB_BFC2011C); /* 0xBFC20120: 2401000B addiu $at, $zero, 11 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (11)); if (psx_taken_BFC2011C) goto label_BFC2012C; @@ -100334,7 +103343,7 @@ label_BFC20124: psx_check_interrupts(cpu); /* 0xBFC20124: 14410011 bne $v0, $at, 0xBFC2016C */ uint32_t psx_brA_BFC20124 = cpu->gpr[2]; uint32_t psx_brB_BFC20124 = cpu->gpr[1]; - int psx_taken_BFC20124 = (psx_brA_BFC20124 != psx_brB_BFC20124); + psx_taken_BFC20124 = (psx_brA_BFC20124 != psx_brB_BFC20124); /* 0xBFC20128: 00000000 nop */ /* nop */ if (psx_taken_BFC20124) goto label_BFC2016C; @@ -100351,7 +103360,7 @@ label_BFC2012C: /* nop */ /* 0xBFC20138: 14600005 bne $v1, $zero, 0xBFC20150 */ uint32_t psx_brA_BFC20138 = cpu->gpr[3]; uint32_t psx_brB_BFC20138 = cpu->gpr[0]; - int psx_taken_BFC20138 = (psx_brA_BFC20138 != psx_brB_BFC20138); + psx_taken_BFC20138 = (psx_brA_BFC20138 != psx_brB_BFC20138); /* 0xBFC2013C: 00036880 sll $t5, $v1, 2 */ cpu->gpr[13] = cpu->gpr[3] << 2u; if (psx_taken_BFC20138) goto label_BFC20150; @@ -100385,7 +103394,7 @@ label_BFC20150: cpu->gpr[1] = 0x80080000u; /* 0xBFC20164: 10000055 beq $zero, $zero, 0xBFC202BC */ uint32_t psx_brA_BFC20164 = cpu->gpr[0]; uint32_t psx_brB_BFC20164 = cpu->gpr[0]; - int psx_taken_BFC20164 = (psx_brA_BFC20164 == psx_brB_BFC20164); + psx_taken_BFC20164 = (psx_brA_BFC20164 == psx_brB_BFC20164); /* 0xBFC20168: AC239E5C sw $v1, -24996($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24996)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20168u); return; } g_debug_last_store_pc = 0xBFC20168u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC20164) goto label_BFC202BC; @@ -100396,7 +103405,7 @@ label_BFC2016C: psx_check_interrupts(cpu); /* 0xBFC2016C: 14500054 bne $v0, $s0, 0xBFC202C0 */ uint32_t psx_brA_BFC2016C = cpu->gpr[2]; uint32_t psx_brB_BFC2016C = cpu->gpr[16]; - int psx_taken_BFC2016C = (psx_brA_BFC2016C != psx_brB_BFC2016C); + psx_taken_BFC2016C = (psx_brA_BFC2016C != psx_brB_BFC2016C); /* 0xBFC20170: 24010032 addiu $at, $zero, 50 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); if (psx_taken_BFC2016C) goto label_BFC202C0; @@ -100413,7 +103422,7 @@ label_BFC20174: /* nop */ /* 0xBFC20180: 1300004F beq $t8, $zero, 0xBFC202C0 */ uint32_t psx_brA_BFC20180 = cpu->gpr[24]; uint32_t psx_brB_BFC20180 = cpu->gpr[0]; - int psx_taken_BFC20180 = (psx_brA_BFC20180 == psx_brB_BFC20180); + psx_taken_BFC20180 = (psx_brA_BFC20180 == psx_brB_BFC20180); /* 0xBFC20184: 24010032 addiu $at, $zero, 50 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); if (psx_taken_BFC20180) goto label_BFC202C0; @@ -100436,7 +103445,7 @@ label_BFC20188: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[8] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2019Cu); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } /* 0xBFC201A0: 10000046 beq $zero, $zero, 0xBFC202BC */ uint32_t psx_brA_BFC201A0 = cpu->gpr[0]; uint32_t psx_brB_BFC201A0 = cpu->gpr[0]; - int psx_taken_BFC201A0 = (psx_brA_BFC201A0 == psx_brB_BFC201A0); + psx_taken_BFC201A0 = (psx_brA_BFC201A0 == psx_brB_BFC201A0); /* 0xBFC201A4: AC299EB8 sw $t1, -24904($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24904)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC201A4u); return; } g_debug_last_store_pc = 0xBFC201A4u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC201A0) goto label_BFC202BC; @@ -100453,7 +103462,7 @@ label_BFC201A8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC201B4: 10410003 beq $v0, $at, 0xBFC201C4 */ uint32_t psx_brA_BFC201B4 = cpu->gpr[2]; uint32_t psx_brB_BFC201B4 = cpu->gpr[1]; - int psx_taken_BFC201B4 = (psx_brA_BFC201B4 == psx_brB_BFC201B4); + psx_taken_BFC201B4 = (psx_brA_BFC201B4 == psx_brB_BFC201B4); /* 0xBFC201B8: 2401000B addiu $at, $zero, 11 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (11)); if (psx_taken_BFC201B4) goto label_BFC201C4; @@ -100464,7 +103473,7 @@ label_BFC201BC: psx_check_interrupts(cpu); /* 0xBFC201BC: 14410028 bne $v0, $at, 0xBFC20260 */ uint32_t psx_brA_BFC201BC = cpu->gpr[2]; uint32_t psx_brB_BFC201BC = cpu->gpr[1]; - int psx_taken_BFC201BC = (psx_brA_BFC201BC != psx_brB_BFC201BC); + psx_taken_BFC201BC = (psx_brA_BFC201BC != psx_brB_BFC201BC); /* 0xBFC201C0: 00000000 nop */ /* nop */ if (psx_taken_BFC201BC) goto label_BFC20260; @@ -100481,7 +103490,7 @@ label_BFC201C4: /* nop */ /* 0xBFC201D0: 14600005 bne $v1, $zero, 0xBFC201E8 */ uint32_t psx_brA_BFC201D0 = cpu->gpr[3]; uint32_t psx_brB_BFC201D0 = cpu->gpr[0]; - int psx_taken_BFC201D0 = (psx_brA_BFC201D0 != psx_brB_BFC201D0); + psx_taken_BFC201D0 = (psx_brA_BFC201D0 != psx_brB_BFC201D0); /* 0xBFC201D4: 00035080 sll $t2, $v1, 2 */ cpu->gpr[10] = cpu->gpr[3] << 2u; if (psx_taken_BFC201D0) goto label_BFC201E8; @@ -100525,7 +103534,7 @@ label_BFC20204: psx_check_interrupts(cpu); /* 0xBFC20204: 14400012 bne $v0, $zero, 0xBFC20250 */ uint32_t psx_brA_BFC20204 = cpu->gpr[2]; uint32_t psx_brB_BFC20204 = cpu->gpr[0]; - int psx_taken_BFC20204 = (psx_brA_BFC20204 != psx_brB_BFC20204); + psx_taken_BFC20204 = (psx_brA_BFC20204 != psx_brB_BFC20204); /* 0xBFC20208: 00000000 nop */ /* nop */ if (psx_taken_BFC20204) goto label_BFC20250; @@ -100548,7 +103557,7 @@ label_BFC2020C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC20224: 1020000A beq $at, $zero, 0xBFC20250 */ uint32_t psx_brA_BFC20224 = cpu->gpr[1]; uint32_t psx_brB_BFC20224 = cpu->gpr[0]; - int psx_taken_BFC20224 = (psx_brA_BFC20224 == psx_brB_BFC20224); + psx_taken_BFC20224 = (psx_brA_BFC20224 == psx_brB_BFC20224); /* 0xBFC20228: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC20224) goto label_BFC20250; @@ -100584,7 +103593,7 @@ label_BFC20238: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC20248: 1420FFF9 bne $at, $zero, 0xBFC20230 */ uint32_t psx_brA_BFC20248 = cpu->gpr[1]; uint32_t psx_brB_BFC20248 = cpu->gpr[0]; - int psx_taken_BFC20248 = (psx_brA_BFC20248 != psx_brB_BFC20248); + psx_taken_BFC20248 = (psx_brA_BFC20248 != psx_brB_BFC20248); /* 0xBFC2024C: 02002021 addu $a0, $s0, $zero */ cpu->gpr[4] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC20248) goto label_BFC20230; @@ -100599,7 +103608,7 @@ label_BFC20250: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (26952)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20254u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } /* 0xBFC20258: 10000019 beq $zero, $zero, 0xBFC202C0 */ uint32_t psx_brA_BFC20258 = cpu->gpr[0]; uint32_t psx_brB_BFC20258 = cpu->gpr[0]; - int psx_taken_BFC20258 = (psx_brA_BFC20258 == psx_brB_BFC20258); + psx_taken_BFC20258 = (psx_brA_BFC20258 == psx_brB_BFC20258); /* 0xBFC2025C: 24010032 addiu $at, $zero, 50 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); if (psx_taken_BFC20258) goto label_BFC202C0; @@ -100610,7 +103619,7 @@ label_BFC20260: psx_check_interrupts(cpu); /* 0xBFC20260: 14500017 bne $v0, $s0, 0xBFC202C0 */ uint32_t psx_brA_BFC20260 = cpu->gpr[2]; uint32_t psx_brB_BFC20260 = cpu->gpr[16]; - int psx_taken_BFC20260 = (psx_brA_BFC20260 != psx_brB_BFC20260); + psx_taken_BFC20260 = (psx_brA_BFC20260 != psx_brB_BFC20260); /* 0xBFC20264: 24010032 addiu $at, $zero, 50 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); if (psx_taken_BFC20260) goto label_BFC202C0; @@ -100627,7 +103636,7 @@ label_BFC20268: /* nop */ /* 0xBFC20274: 11A00012 beq $t5, $zero, 0xBFC202C0 */ uint32_t psx_brA_BFC20274 = cpu->gpr[13]; uint32_t psx_brB_BFC20274 = cpu->gpr[0]; - int psx_taken_BFC20274 = (psx_brA_BFC20274 == psx_brB_BFC20274); + psx_taken_BFC20274 = (psx_brA_BFC20274 == psx_brB_BFC20274); /* 0xBFC20278: 24010032 addiu $at, $zero, 50 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); if (psx_taken_BFC20274) goto label_BFC202C0; @@ -100650,7 +103659,7 @@ label_BFC2027C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[15] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20290u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } /* 0xBFC20294: 10000009 beq $zero, $zero, 0xBFC202BC */ uint32_t psx_brA_BFC20294 = cpu->gpr[0]; uint32_t psx_brB_BFC20294 = cpu->gpr[0]; - int psx_taken_BFC20294 = (psx_brA_BFC20294 == psx_brB_BFC20294); + psx_taken_BFC20294 = (psx_brA_BFC20294 == psx_brB_BFC20294); /* 0xBFC20298: AC389EB8 sw $t8, -24904($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24904)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20298u); return; } g_debug_last_store_pc = 0xBFC20298u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC20294) goto label_BFC202BC; @@ -100667,7 +103676,7 @@ label_BFC2029C: /* nop */ /* 0xBFC202A8: 13200005 beq $t9, $zero, 0xBFC202C0 */ uint32_t psx_brA_BFC202A8 = cpu->gpr[25]; uint32_t psx_brB_BFC202A8 = cpu->gpr[0]; - int psx_taken_BFC202A8 = (psx_brA_BFC202A8 == psx_brB_BFC202A8); + psx_taken_BFC202A8 = (psx_brA_BFC202A8 == psx_brB_BFC202A8); /* 0xBFC202AC: 24010032 addiu $at, $zero, 50 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); if (psx_taken_BFC202A8) goto label_BFC202C0; @@ -100696,7 +103705,7 @@ label_BFC202C0: psx_check_interrupts(cpu); /* 0xBFC202C0: 14410003 bne $v0, $at, 0xBFC202D0 */ uint32_t psx_brA_BFC202C0 = cpu->gpr[2]; uint32_t psx_brB_BFC202C0 = cpu->gpr[1]; - int psx_taken_BFC202C0 = (psx_brA_BFC202C0 != psx_brB_BFC202C0); + psx_taken_BFC202C0 = (psx_brA_BFC202C0 != psx_brB_BFC202C0); /* 0xBFC202C4: 00000000 nop */ /* nop */ if (psx_taken_BFC202C0) goto label_BFC202D0; @@ -100797,6 +103806,39 @@ void func_1FC20338(CPUState* cpu) { default: break; } } + int psx_taken_BFC20348 = 0; + int psx_taken_BFC2035C = 0; + int psx_taken_BFC20370 = 0; + int psx_taken_BFC20378 = 0; + int psx_taken_BFC2038C = 0; + int psx_taken_BFC203A0 = 0; + int psx_taken_BFC203B4 = 0; + int psx_taken_BFC203D0 = 0; + int psx_taken_BFC203E8 = 0; + int psx_taken_BFC20420 = 0; + int psx_taken_BFC20434 = 0; + int psx_taken_BFC20448 = 0; + int psx_taken_BFC20464 = 0; + int psx_taken_BFC20494 = 0; + int psx_taken_BFC204A4 = 0; + int psx_taken_BFC204B8 = 0; + int psx_taken_BFC204D4 = 0; + int psx_taken_BFC204F4 = 0; + int psx_taken_BFC20508 = 0; + int psx_taken_BFC20520 = 0; + int psx_taken_BFC20534 = 0; + int psx_taken_BFC20558 = 0; + int psx_taken_BFC20588 = 0; + int psx_taken_BFC2059C = 0; + int psx_taken_BFC205B0 = 0; + int psx_taken_BFC205B8 = 0; + int psx_taken_BFC205D8 = 0; + int psx_taken_BFC205E8 = 0; + int psx_taken_BFC205F8 = 0; + int psx_taken_BFC20610 = 0; + int psx_taken_BFC20624 = 0; + int psx_taken_BFC20634 = 0; + int psx_taken_BFC20648 = 0; label_BFC20338: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -100818,7 +103860,7 @@ label_BFC20348: psx_check_interrupts(cpu); /* 0xBFC20348: 10400054 beq $v0, $zero, 0xBFC2049C */ uint32_t psx_brA_BFC20348 = cpu->gpr[2]; uint32_t psx_brB_BFC20348 = cpu->gpr[0]; - int psx_taken_BFC20348 = (psx_brA_BFC20348 == psx_brB_BFC20348); + psx_taken_BFC20348 = (psx_brA_BFC20348 == psx_brB_BFC20348); /* 0xBFC2034C: 00000000 nop */ /* nop */ if (psx_taken_BFC20348) goto label_BFC2049C; @@ -100835,7 +103877,7 @@ label_BFC20350: /* nop */ /* 0xBFC2035C: 19C0009B blez $t6, 0xBFC205CC */ uint32_t psx_brA_BFC2035C = cpu->gpr[14]; - int psx_taken_BFC2035C = ((int32_t)psx_brA_BFC2035C <= 0); + psx_taken_BFC2035C = ((int32_t)psx_brA_BFC2035C <= 0); /* 0xBFC20360: 00000000 nop */ /* nop */ if (psx_taken_BFC2035C) goto label_BFC205CC; @@ -100852,7 +103894,7 @@ label_BFC20364: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC20370: 11E10008 beq $t7, $at, 0xBFC20394 */ uint32_t psx_brA_BFC20370 = cpu->gpr[15]; uint32_t psx_brB_BFC20370 = cpu->gpr[1]; - int psx_taken_BFC20370 = (psx_brA_BFC20370 == psx_brB_BFC20370); + psx_taken_BFC20370 = (psx_brA_BFC20370 == psx_brB_BFC20370); /* 0xBFC20374: 24010032 addiu $at, $zero, 50 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); if (psx_taken_BFC20370) goto label_BFC20394; @@ -100863,7 +103905,7 @@ label_BFC20378: psx_check_interrupts(cpu); /* 0xBFC20378: 11E10038 beq $t7, $at, 0xBFC2045C */ uint32_t psx_brA_BFC20378 = cpu->gpr[15]; uint32_t psx_brB_BFC20378 = cpu->gpr[1]; - int psx_taken_BFC20378 = (psx_brA_BFC20378 == psx_brB_BFC20378); + psx_taken_BFC20378 = (psx_brA_BFC20378 == psx_brB_BFC20378); /* 0xBFC2037C: 00000000 nop */ /* nop */ if (psx_taken_BFC20378) goto label_BFC2045C; @@ -100880,7 +103922,7 @@ label_BFC20380: /* nop */ /* 0xBFC2038C: 17000033 bne $t8, $zero, 0xBFC2045C */ uint32_t psx_brA_BFC2038C = cpu->gpr[24]; uint32_t psx_brB_BFC2038C = cpu->gpr[0]; - int psx_taken_BFC2038C = (psx_brA_BFC2038C != psx_brB_BFC2038C); + psx_taken_BFC2038C = (psx_brA_BFC2038C != psx_brB_BFC2038C); /* 0xBFC20390: 00000000 nop */ /* nop */ if (psx_taken_BFC2038C) goto label_BFC2045C; @@ -100903,7 +103945,7 @@ label_BFC2039C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC203A0: 14410026 bne $v0, $at, 0xBFC2043C */ uint32_t psx_brA_BFC203A0 = cpu->gpr[2]; uint32_t psx_brB_BFC203A0 = cpu->gpr[1]; - int psx_taken_BFC203A0 = (psx_brA_BFC203A0 != psx_brB_BFC203A0); + psx_taken_BFC203A0 = (psx_brA_BFC203A0 != psx_brB_BFC203A0); /* 0xBFC203A4: 00000000 nop */ /* nop */ if (psx_taken_BFC203A0) goto label_BFC2043C; @@ -100920,7 +103962,7 @@ label_BFC203A8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC203B4: 17210021 bne $t9, $at, 0xBFC2043C */ uint32_t psx_brA_BFC203B4 = cpu->gpr[25]; uint32_t psx_brB_BFC203B4 = cpu->gpr[1]; - int psx_taken_BFC203B4 = (psx_brA_BFC203B4 != psx_brB_BFC203B4); + psx_taken_BFC203B4 = (psx_brA_BFC203B4 != psx_brB_BFC203B4); /* 0xBFC203B8: 00000000 nop */ /* nop */ if (psx_taken_BFC203B4) goto label_BFC2043C; @@ -100953,7 +103995,7 @@ label_BFC203D0: psx_check_interrupts(cpu); /* 0xBFC203D0: 14400022 bne $v0, $zero, 0xBFC2045C */ uint32_t psx_brA_BFC203D0 = cpu->gpr[2]; uint32_t psx_brB_BFC203D0 = cpu->gpr[0]; - int psx_taken_BFC203D0 = (psx_brA_BFC203D0 != psx_brB_BFC203D0); + psx_taken_BFC203D0 = (psx_brA_BFC203D0 != psx_brB_BFC203D0); /* 0xBFC203D4: 00000000 nop */ /* nop */ if (psx_taken_BFC203D0) goto label_BFC2045C; @@ -100978,7 +104020,7 @@ label_BFC203E4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (2) ? 1 : 0); /* 0xBFC203E8: 14200011 bne $at, $zero, 0xBFC20430 */ uint32_t psx_brA_BFC203E8 = cpu->gpr[1]; uint32_t psx_brB_BFC203E8 = cpu->gpr[0]; - int psx_taken_BFC203E8 = (psx_brA_BFC203E8 != psx_brB_BFC203E8); + psx_taken_BFC203E8 = (psx_brA_BFC203E8 != psx_brB_BFC203E8); /* 0xBFC203EC: 00000000 nop */ /* nop */ if (psx_taken_BFC203E8) goto label_BFC20430; @@ -101030,7 +104072,7 @@ label_BFC2041C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC20420: 1420FFF8 bne $at, $zero, 0xBFC20404 */ uint32_t psx_brA_BFC20420 = cpu->gpr[1]; uint32_t psx_brB_BFC20420 = cpu->gpr[0]; - int psx_taken_BFC20420 = (psx_brA_BFC20420 != psx_brB_BFC20420); + psx_taken_BFC20420 = (psx_brA_BFC20420 != psx_brB_BFC20420); /* 0xBFC20424: 00000000 nop */ /* nop */ if (psx_taken_BFC20420) goto label_BFC20404; @@ -101052,7 +104094,7 @@ label_BFC20430: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20430u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } /* 0xBFC20434: 10000009 beq $zero, $zero, 0xBFC2045C */ uint32_t psx_brA_BFC20434 = cpu->gpr[0]; uint32_t psx_brB_BFC20434 = cpu->gpr[0]; - int psx_taken_BFC20434 = (psx_brA_BFC20434 == psx_brB_BFC20434); + psx_taken_BFC20434 = (psx_brA_BFC20434 == psx_brB_BFC20434); /* 0xBFC20438: 00000000 nop */ /* nop */ if (psx_taken_BFC20434) goto label_BFC2045C; @@ -101069,7 +104111,7 @@ label_BFC2043C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC20448: 11410004 beq $t2, $at, 0xBFC2045C */ uint32_t psx_brA_BFC20448 = cpu->gpr[10]; uint32_t psx_brB_BFC20448 = cpu->gpr[1]; - int psx_taken_BFC20448 = (psx_brA_BFC20448 == psx_brB_BFC20448); + psx_taken_BFC20448 = (psx_brA_BFC20448 == psx_brB_BFC20448); /* 0xBFC2044C: 00000000 nop */ /* nop */ if (psx_taken_BFC20448) goto label_BFC2045C; @@ -101101,7 +104143,7 @@ label_BFC20464: psx_check_interrupts(cpu); /* 0xBFC20464: 1440000A bne $v0, $zero, 0xBFC20490 */ uint32_t psx_brA_BFC20464 = cpu->gpr[2]; uint32_t psx_brB_BFC20464 = cpu->gpr[0]; - int psx_taken_BFC20464 = (psx_brA_BFC20464 != psx_brB_BFC20464); + psx_taken_BFC20464 = (psx_brA_BFC20464 != psx_brB_BFC20464); /* 0xBFC20468: 240E0002 addiu $t6, $zero, 2 */ cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC20464) goto label_BFC20490; @@ -101143,7 +104185,7 @@ label_BFC20490: cpu->gpr[1] = 0x80080000u; /* 0xBFC20494: 1000004D beq $zero, $zero, 0xBFC205CC */ uint32_t psx_brA_BFC20494 = cpu->gpr[0]; uint32_t psx_brB_BFC20494 = cpu->gpr[0]; - int psx_taken_BFC20494 = (psx_brA_BFC20494 == psx_brB_BFC20494); + psx_taken_BFC20494 = (psx_brA_BFC20494 == psx_brB_BFC20494); /* 0xBFC20498: AC2E9E40 sw $t6, -25024($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25024)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20498u); return; } g_debug_last_store_pc = 0xBFC20498u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC20494) goto label_BFC205CC; @@ -101164,7 +104206,7 @@ label_BFC204A4: psx_check_interrupts(cpu); /* 0xBFC204A4: 1040000D beq $v0, $zero, 0xBFC204DC */ uint32_t psx_brA_BFC204A4 = cpu->gpr[2]; uint32_t psx_brB_BFC204A4 = cpu->gpr[0]; - int psx_taken_BFC204A4 = (psx_brA_BFC204A4 == psx_brB_BFC204A4); + psx_taken_BFC204A4 = (psx_brA_BFC204A4 == psx_brB_BFC204A4); /* 0xBFC204A8: 00000000 nop */ /* nop */ if (psx_taken_BFC204A4) goto label_BFC204DC; @@ -101181,7 +104223,7 @@ label_BFC204AC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC204B8: 15E10044 bne $t7, $at, 0xBFC205CC */ uint32_t psx_brA_BFC204B8 = cpu->gpr[15]; uint32_t psx_brB_BFC204B8 = cpu->gpr[1]; - int psx_taken_BFC204B8 = (psx_brA_BFC204B8 != psx_brB_BFC204B8); + psx_taken_BFC204B8 = (psx_brA_BFC204B8 != psx_brB_BFC204B8); /* 0xBFC204BC: 00000000 nop */ /* nop */ if (psx_taken_BFC204B8) goto label_BFC205CC; @@ -101208,7 +104250,7 @@ label_BFC204D4: psx_check_interrupts(cpu); /* 0xBFC204D4: 1000003D beq $zero, $zero, 0xBFC205CC */ uint32_t psx_brA_BFC204D4 = cpu->gpr[0]; uint32_t psx_brB_BFC204D4 = cpu->gpr[0]; - int psx_taken_BFC204D4 = (psx_brA_BFC204D4 == psx_brB_BFC204D4); + psx_taken_BFC204D4 = (psx_brA_BFC204D4 == psx_brB_BFC204D4); /* 0xBFC204D8: 00000000 nop */ /* nop */ if (psx_taken_BFC204D4) goto label_BFC205CC; @@ -101231,7 +104273,7 @@ label_BFC204DC: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[25] ? 1 : 0); /* 0xBFC204F4: 10200026 beq $at, $zero, 0xBFC20590 */ uint32_t psx_brA_BFC204F4 = cpu->gpr[1]; uint32_t psx_brB_BFC204F4 = cpu->gpr[0]; - int psx_taken_BFC204F4 = (psx_brA_BFC204F4 == psx_brB_BFC204F4); + psx_taken_BFC204F4 = (psx_brA_BFC204F4 == psx_brB_BFC204F4); /* 0xBFC204F8: 00000000 nop */ /* nop */ if (psx_taken_BFC204F4) goto label_BFC20590; @@ -101248,7 +104290,7 @@ label_BFC204FC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC20508: 15010007 bne $t0, $at, 0xBFC20528 */ uint32_t psx_brA_BFC20508 = cpu->gpr[8]; uint32_t psx_brB_BFC20508 = cpu->gpr[1]; - int psx_taken_BFC20508 = (psx_brA_BFC20508 != psx_brB_BFC20508); + psx_taken_BFC20508 = (psx_brA_BFC20508 != psx_brB_BFC20508); /* 0xBFC2050C: 00000000 nop */ /* nop */ if (psx_taken_BFC20508) goto label_BFC20528; @@ -101267,7 +104309,7 @@ label_BFC20510: cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[9] + (-1)); /* 0xBFC20520: 1000000B beq $zero, $zero, 0xBFC20550 */ uint32_t psx_brA_BFC20520 = cpu->gpr[0]; uint32_t psx_brB_BFC20520 = cpu->gpr[0]; - int psx_taken_BFC20520 = (psx_brA_BFC20520 == psx_brB_BFC20520); + psx_taken_BFC20520 = (psx_brA_BFC20520 == psx_brB_BFC20520); /* 0xBFC20524: AC2A9E5C sw $t2, -24996($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24996)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20524u); return; } g_debug_last_store_pc = 0xBFC20524u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC20520) goto label_BFC20550; @@ -101284,7 +104326,7 @@ label_BFC20528: /* nop */ /* 0xBFC20534: 15600006 bne $t3, $zero, 0xBFC20550 */ uint32_t psx_brA_BFC20534 = cpu->gpr[11]; uint32_t psx_brB_BFC20534 = cpu->gpr[0]; - int psx_taken_BFC20534 = (psx_brA_BFC20534 != psx_brB_BFC20534); + psx_taken_BFC20534 = (psx_brA_BFC20534 != psx_brB_BFC20534); /* 0xBFC20538: 00000000 nop */ /* nop */ if (psx_taken_BFC20534) goto label_BFC20550; @@ -101320,7 +104362,7 @@ label_BFC20558: psx_check_interrupts(cpu); /* 0xBFC20558: 1440000A bne $v0, $zero, 0xBFC20584 */ uint32_t psx_brA_BFC20558 = cpu->gpr[2]; uint32_t psx_brB_BFC20558 = cpu->gpr[0]; - int psx_taken_BFC20558 = (psx_brA_BFC20558 != psx_brB_BFC20558); + psx_taken_BFC20558 = (psx_brA_BFC20558 != psx_brB_BFC20558); /* 0xBFC2055C: 24180002 addiu $t8, $zero, 2 */ cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC20558) goto label_BFC20584; @@ -101362,7 +104404,7 @@ label_BFC20584: cpu->gpr[1] = 0x80080000u; /* 0xBFC20588: 10000010 beq $zero, $zero, 0xBFC205CC */ uint32_t psx_brA_BFC20588 = cpu->gpr[0]; uint32_t psx_brB_BFC20588 = cpu->gpr[0]; - int psx_taken_BFC20588 = (psx_brA_BFC20588 == psx_brB_BFC20588); + psx_taken_BFC20588 = (psx_brA_BFC20588 == psx_brB_BFC20588); /* 0xBFC2058C: AC389E40 sw $t8, -25024($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25024)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2058Cu); return; } g_debug_last_store_pc = 0xBFC2058Cu; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC20588) goto label_BFC205CC; @@ -101379,7 +104421,7 @@ label_BFC20590: /* nop */ /* 0xBFC2059C: 1722000B bne $t9, $v0, 0xBFC205CC */ uint32_t psx_brA_BFC2059C = cpu->gpr[25]; uint32_t psx_brB_BFC2059C = cpu->gpr[2]; - int psx_taken_BFC2059C = (psx_brA_BFC2059C != psx_brB_BFC2059C); + psx_taken_BFC2059C = (psx_brA_BFC2059C != psx_brB_BFC2059C); /* 0xBFC205A0: 00000000 nop */ /* nop */ if (psx_taken_BFC2059C) goto label_BFC205CC; @@ -101396,7 +104438,7 @@ label_BFC205A4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC205B0: 15010003 bne $t0, $at, 0xBFC205C0 */ uint32_t psx_brA_BFC205B0 = cpu->gpr[8]; uint32_t psx_brB_BFC205B0 = cpu->gpr[1]; - int psx_taken_BFC205B0 = (psx_brA_BFC205B0 != psx_brB_BFC205B0); + psx_taken_BFC205B0 = (psx_brA_BFC205B0 != psx_brB_BFC205B0); /* 0xBFC205B4: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC205B0) goto label_BFC205C0; @@ -101407,7 +104449,7 @@ label_BFC205B8: psx_check_interrupts(cpu); /* 0xBFC205B8: 10000004 beq $zero, $zero, 0xBFC205CC */ uint32_t psx_brA_BFC205B8 = cpu->gpr[0]; uint32_t psx_brB_BFC205B8 = cpu->gpr[0]; - int psx_taken_BFC205B8 = (psx_brA_BFC205B8 == psx_brB_BFC205B8); + psx_taken_BFC205B8 = (psx_brA_BFC205B8 == psx_brB_BFC205B8); /* 0xBFC205BC: AC209E5C sw $zero, -24996($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24996)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC205BCu); return; } g_debug_last_store_pc = 0xBFC205BCu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC205B8) goto label_BFC205CC; @@ -101435,7 +104477,7 @@ label_BFC205CC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC205D8: 1541000F bne $t2, $at, 0xBFC20618 */ uint32_t psx_brA_BFC205D8 = cpu->gpr[10]; uint32_t psx_brB_BFC205D8 = cpu->gpr[1]; - int psx_taken_BFC205D8 = (psx_brA_BFC205D8 != psx_brB_BFC205D8); + psx_taken_BFC205D8 = (psx_brA_BFC205D8 != psx_brB_BFC205D8); /* 0xBFC205DC: 00000000 nop */ /* nop */ if (psx_taken_BFC205D8) goto label_BFC20618; @@ -101456,7 +104498,7 @@ label_BFC205E8: psx_check_interrupts(cpu); /* 0xBFC205E8: 14400021 bne $v0, $zero, 0xBFC20670 */ uint32_t psx_brA_BFC205E8 = cpu->gpr[2]; uint32_t psx_brB_BFC205E8 = cpu->gpr[0]; - int psx_taken_BFC205E8 = (psx_brA_BFC205E8 != psx_brB_BFC205E8); + psx_taken_BFC205E8 = (psx_brA_BFC205E8 != psx_brB_BFC205E8); /* 0xBFC205EC: 00000000 nop */ /* nop */ if (psx_taken_BFC205E8) goto label_BFC20670; @@ -101477,7 +104519,7 @@ label_BFC205F8: psx_check_interrupts(cpu); /* 0xBFC205F8: 1440001D bne $v0, $zero, 0xBFC20670 */ uint32_t psx_brA_BFC205F8 = cpu->gpr[2]; uint32_t psx_brB_BFC205F8 = cpu->gpr[0]; - int psx_taken_BFC205F8 = (psx_brA_BFC205F8 != psx_brB_BFC205F8); + psx_taken_BFC205F8 = (psx_brA_BFC205F8 != psx_brB_BFC205F8); /* 0xBFC205FC: 00000000 nop */ /* nop */ if (psx_taken_BFC205F8) goto label_BFC20670; @@ -101508,7 +104550,7 @@ label_BFC20610: psx_check_interrupts(cpu); /* 0xBFC20610: 10000017 beq $zero, $zero, 0xBFC20670 */ uint32_t psx_brA_BFC20610 = cpu->gpr[0]; uint32_t psx_brB_BFC20610 = cpu->gpr[0]; - int psx_taken_BFC20610 = (psx_brA_BFC20610 == psx_brB_BFC20610); + psx_taken_BFC20610 = (psx_brA_BFC20610 == psx_brB_BFC20610); /* 0xBFC20614: 00000000 nop */ /* nop */ if (psx_taken_BFC20610) goto label_BFC20670; @@ -101525,7 +104567,7 @@ label_BFC20618: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC20624: 15610005 bne $t3, $at, 0xBFC2063C */ uint32_t psx_brA_BFC20624 = cpu->gpr[11]; uint32_t psx_brB_BFC20624 = cpu->gpr[1]; - int psx_taken_BFC20624 = (psx_brA_BFC20624 != psx_brB_BFC20624); + psx_taken_BFC20624 = (psx_brA_BFC20624 != psx_brB_BFC20624); /* 0xBFC20628: 00000000 nop */ /* nop */ if (psx_taken_BFC20624) goto label_BFC2063C; @@ -101546,7 +104588,7 @@ label_BFC20634: psx_check_interrupts(cpu); /* 0xBFC20634: 1000000E beq $zero, $zero, 0xBFC20670 */ uint32_t psx_brA_BFC20634 = cpu->gpr[0]; uint32_t psx_brB_BFC20634 = cpu->gpr[0]; - int psx_taken_BFC20634 = (psx_brA_BFC20634 == psx_brB_BFC20634); + psx_taken_BFC20634 = (psx_brA_BFC20634 == psx_brB_BFC20634); /* 0xBFC20638: 00000000 nop */ /* nop */ if (psx_taken_BFC20634) goto label_BFC20670; @@ -101563,7 +104605,7 @@ label_BFC2063C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC20648: 15810009 bne $t4, $at, 0xBFC20670 */ uint32_t psx_brA_BFC20648 = cpu->gpr[12]; uint32_t psx_brB_BFC20648 = cpu->gpr[1]; - int psx_taken_BFC20648 = (psx_brA_BFC20648 != psx_brB_BFC20648); + psx_taken_BFC20648 = (psx_brA_BFC20648 != psx_brB_BFC20648); /* 0xBFC2064C: 00000000 nop */ /* nop */ if (psx_taken_BFC20648) goto label_BFC20670; @@ -101654,6 +104696,46 @@ void func_1FC2069C(CPUState* cpu) { default: break; } } + int psx_taken_BFC206AC = 0; + int psx_taken_BFC206C0 = 0; + int psx_taken_BFC206E0 = 0; + int psx_taken_BFC206F4 = 0; + int psx_taken_BFC20710 = 0; + int psx_taken_BFC20728 = 0; + int psx_taken_BFC2073C = 0; + int psx_taken_BFC20774 = 0; + int psx_taken_BFC20788 = 0; + int psx_taken_BFC207A4 = 0; + int psx_taken_BFC207C8 = 0; + int psx_taken_BFC207E4 = 0; + int psx_taken_BFC207FC = 0; + int psx_taken_BFC2083C = 0; + int psx_taken_BFC2084C = 0; + int psx_taken_BFC20864 = 0; + int psx_taken_BFC2087C = 0; + int psx_taken_BFC208A4 = 0; + int psx_taken_BFC208D4 = 0; + int psx_taken_BFC20900 = 0; + int psx_taken_BFC20910 = 0; + int psx_taken_BFC20918 = 0; + int psx_taken_BFC20928 = 0; + int psx_taken_BFC20934 = 0; + int psx_taken_BFC20964 = 0; + int psx_taken_BFC20974 = 0; + int psx_taken_BFC20988 = 0; + int psx_taken_BFC209A8 = 0; + int psx_taken_BFC209FC = 0; + int psx_taken_BFC20A1C = 0; + int psx_taken_BFC20A28 = 0; + int psx_taken_BFC20A38 = 0; + int psx_taken_BFC20A58 = 0; + int psx_taken_BFC20A68 = 0; + int psx_taken_BFC20A7C = 0; + int psx_taken_BFC20AC8 = 0; + int psx_taken_BFC20AE8 = 0; + int psx_taken_BFC20AF4 = 0; + int psx_taken_BFC20B0C = 0; + int psx_taken_BFC20B18 = 0; label_BFC2069C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -101675,7 +104757,7 @@ label_BFC206AC: psx_check_interrupts(cpu); /* 0xBFC206AC: 104000AF beq $v0, $zero, 0xBFC2096C */ uint32_t psx_brA_BFC206AC = cpu->gpr[2]; uint32_t psx_brB_BFC206AC = cpu->gpr[0]; - int psx_taken_BFC206AC = (psx_brA_BFC206AC == psx_brB_BFC206AC); + psx_taken_BFC206AC = (psx_brA_BFC206AC == psx_brB_BFC206AC); /* 0xBFC206B0: 00000000 nop */ /* nop */ if (psx_taken_BFC206AC) goto label_BFC2096C; @@ -101692,7 +104774,7 @@ label_BFC206B4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC206C0: 104100A2 beq $v0, $at, 0xBFC2094C */ uint32_t psx_brA_BFC206C0 = cpu->gpr[2]; uint32_t psx_brB_BFC206C0 = cpu->gpr[1]; - int psx_taken_BFC206C0 = (psx_brA_BFC206C0 == psx_brB_BFC206C0); + psx_taken_BFC206C0 = (psx_brA_BFC206C0 == psx_brB_BFC206C0); /* 0xBFC206C4: 00000000 nop */ /* nop */ if (psx_taken_BFC206C0) goto label_BFC2094C; @@ -101721,7 +104803,7 @@ label_BFC206D0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[14] ? 1 : 0); /* 0xBFC206E0: 1420009A bne $at, $zero, 0xBFC2094C */ uint32_t psx_brA_BFC206E0 = cpu->gpr[1]; uint32_t psx_brB_BFC206E0 = cpu->gpr[0]; - int psx_taken_BFC206E0 = (psx_brA_BFC206E0 != psx_brB_BFC206E0); + psx_taken_BFC206E0 = (psx_brA_BFC206E0 != psx_brB_BFC206E0); /* 0xBFC206E4: 00000000 nop */ /* nop */ if (psx_taken_BFC206E0) goto label_BFC2094C; @@ -101744,7 +104826,7 @@ label_BFC206F0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC206F4: 14410026 bne $v0, $at, 0xBFC20790 */ uint32_t psx_brA_BFC206F4 = cpu->gpr[2]; uint32_t psx_brB_BFC206F4 = cpu->gpr[1]; - int psx_taken_BFC206F4 = (psx_brA_BFC206F4 != psx_brB_BFC206F4); + psx_taken_BFC206F4 = (psx_brA_BFC206F4 != psx_brB_BFC206F4); /* 0xBFC206F8: 00000000 nop */ /* nop */ if (psx_taken_BFC206F4) goto label_BFC20790; @@ -101771,7 +104853,7 @@ label_BFC20704: /* nop */ /* 0xBFC20710: 15E2001F bne $t7, $v0, 0xBFC20790 */ uint32_t psx_brA_BFC20710 = cpu->gpr[15]; uint32_t psx_brB_BFC20710 = cpu->gpr[2]; - int psx_taken_BFC20710 = (psx_brA_BFC20710 != psx_brB_BFC20710); + psx_taken_BFC20710 = (psx_brA_BFC20710 != psx_brB_BFC20710); /* 0xBFC20714: 00000000 nop */ /* nop */ if (psx_taken_BFC20710) goto label_BFC20790; @@ -101796,7 +104878,7 @@ label_BFC20728: psx_check_interrupts(cpu); /* 0xBFC20728: 14400025 bne $v0, $zero, 0xBFC207C0 */ uint32_t psx_brA_BFC20728 = cpu->gpr[2]; uint32_t psx_brB_BFC20728 = cpu->gpr[0]; - int psx_taken_BFC20728 = (psx_brA_BFC20728 != psx_brB_BFC20728); + psx_taken_BFC20728 = (psx_brA_BFC20728 != psx_brB_BFC20728); /* 0xBFC2072C: 00000000 nop */ /* nop */ if (psx_taken_BFC20728) goto label_BFC207C0; @@ -101819,7 +104901,7 @@ label_BFC2073C: psx_check_interrupts(cpu); /* 0xBFC2073C: 18400011 blez $v0, 0xBFC20784 */ uint32_t psx_brA_BFC2073C = cpu->gpr[2]; - int psx_taken_BFC2073C = ((int32_t)psx_brA_BFC2073C <= 0); + psx_taken_BFC2073C = ((int32_t)psx_brA_BFC2073C <= 0); /* 0xBFC20740: 00000000 nop */ /* nop */ if (psx_taken_BFC2073C) goto label_BFC20784; @@ -101871,7 +104953,7 @@ label_BFC20770: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC20774: 1020FFF8 beq $at, $zero, 0xBFC20758 */ uint32_t psx_brA_BFC20774 = cpu->gpr[1]; uint32_t psx_brB_BFC20774 = cpu->gpr[0]; - int psx_taken_BFC20774 = (psx_brA_BFC20774 == psx_brB_BFC20774); + psx_taken_BFC20774 = (psx_brA_BFC20774 == psx_brB_BFC20774); /* 0xBFC20778: 00000000 nop */ /* nop */ if (psx_taken_BFC20774) goto label_BFC20758; @@ -101893,7 +104975,7 @@ label_BFC20784: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20784u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } /* 0xBFC20788: 1000000D beq $zero, $zero, 0xBFC207C0 */ uint32_t psx_brA_BFC20788 = cpu->gpr[0]; uint32_t psx_brB_BFC20788 = cpu->gpr[0]; - int psx_taken_BFC20788 = (psx_brA_BFC20788 == psx_brB_BFC20788); + psx_taken_BFC20788 = (psx_brA_BFC20788 == psx_brB_BFC20788); /* 0xBFC2078C: 00000000 nop */ /* nop */ if (psx_taken_BFC20788) goto label_BFC207C0; @@ -101920,7 +105002,7 @@ label_BFC20798: /* nop */ /* 0xBFC207A4: 11220006 beq $t1, $v0, 0xBFC207C0 */ uint32_t psx_brA_BFC207A4 = cpu->gpr[9]; uint32_t psx_brB_BFC207A4 = cpu->gpr[2]; - int psx_taken_BFC207A4 = (psx_brA_BFC207A4 == psx_brB_BFC207A4); + psx_taken_BFC207A4 = (psx_brA_BFC207A4 == psx_brB_BFC207A4); /* 0xBFC207A8: 00000000 nop */ /* nop */ if (psx_taken_BFC207A4) goto label_BFC207C0; @@ -101956,7 +105038,7 @@ label_BFC207C8: psx_check_interrupts(cpu); /* 0xBFC207C8: 1440003C bne $v0, $zero, 0xBFC208BC */ uint32_t psx_brA_BFC207C8 = cpu->gpr[2]; uint32_t psx_brB_BFC207C8 = cpu->gpr[0]; - int psx_taken_BFC207C8 = (psx_brA_BFC207C8 != psx_brB_BFC207C8); + psx_taken_BFC207C8 = (psx_brA_BFC207C8 != psx_brB_BFC207C8); /* 0xBFC207CC: 00000000 nop */ /* nop */ if (psx_taken_BFC207C8) goto label_BFC208BC; @@ -101983,7 +105065,7 @@ label_BFC207D8: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC207E4: 118D0035 beq $t4, $t5, 0xBFC208BC */ uint32_t psx_brA_BFC207E4 = cpu->gpr[12]; uint32_t psx_brB_BFC207E4 = cpu->gpr[13]; - int psx_taken_BFC207E4 = (psx_brA_BFC207E4 == psx_brB_BFC207E4); + psx_taken_BFC207E4 = (psx_brA_BFC207E4 == psx_brB_BFC207E4); /* 0xBFC207E8: 00000000 nop */ /* nop */ if (psx_taken_BFC207E4) goto label_BFC208BC; @@ -102008,7 +105090,7 @@ label_BFC207F8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC207FC: 1420001E bne $at, $zero, 0xBFC20878 */ uint32_t psx_brA_BFC207FC = cpu->gpr[1]; uint32_t psx_brB_BFC207FC = cpu->gpr[0]; - int psx_taken_BFC207FC = (psx_brA_BFC207FC != psx_brB_BFC207FC); + psx_taken_BFC207FC = (psx_brA_BFC207FC != psx_brB_BFC207FC); /* 0xBFC20800: 8FAB0034 lw $t3, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20800u); return; } cpu->gpr[11] = cpu->read_word(psx_addr); } if (psx_taken_BFC207FC) goto label_BFC20878; @@ -102052,7 +105134,7 @@ label_BFC2081C: /* nop */ /* 0xBFC2083C: 15090006 bne $t0, $t1, 0xBFC20858 */ uint32_t psx_brA_BFC2083C = cpu->gpr[8]; uint32_t psx_brB_BFC2083C = cpu->gpr[9]; - int psx_taken_BFC2083C = (psx_brA_BFC2083C != psx_brB_BFC2083C); + psx_taken_BFC2083C = (psx_brA_BFC2083C != psx_brB_BFC2083C); /* 0xBFC20840: 26310001 addiu $s1, $s1, 1 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); if (psx_taken_BFC2083C) goto label_BFC20858; @@ -102067,7 +105149,7 @@ label_BFC20844: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20848u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC2084C: 10000009 beq $zero, $zero, 0xBFC20874 */ uint32_t psx_brA_BFC2084C = cpu->gpr[0]; uint32_t psx_brB_BFC2084C = cpu->gpr[0]; - int psx_taken_BFC2084C = (psx_brA_BFC2084C == psx_brB_BFC2084C); + psx_taken_BFC2084C = (psx_brA_BFC2084C == psx_brB_BFC2084C); /* 0xBFC20850: AFAA0034 sw $t2, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20850u); return; } g_debug_last_store_pc = 0xBFC20850u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC2084C) goto label_BFC20874; @@ -102097,7 +105179,7 @@ label_BFC20860: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC20864: 1020FFED beq $at, $zero, 0xBFC2081C */ uint32_t psx_brA_BFC20864 = cpu->gpr[1]; uint32_t psx_brB_BFC20864 = cpu->gpr[0]; - int psx_taken_BFC20864 = (psx_brA_BFC20864 == psx_brB_BFC20864); + psx_taken_BFC20864 = (psx_brA_BFC20864 == psx_brB_BFC20864); /* 0xBFC20868: 00000000 nop */ /* nop */ if (psx_taken_BFC20864) goto label_BFC2081C; @@ -102126,7 +105208,7 @@ label_BFC20878: /* nop */ /* 0xBFC2087C: 1560000E bne $t3, $zero, 0xBFC208B8 */ uint32_t psx_brA_BFC2087C = cpu->gpr[11]; uint32_t psx_brB_BFC2087C = cpu->gpr[0]; - int psx_taken_BFC2087C = (psx_brA_BFC2087C != psx_brB_BFC2087C); + psx_taken_BFC2087C = (psx_brA_BFC2087C != psx_brB_BFC2087C); /* 0xBFC20880: 8FB1002C lw $s1, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20880u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } if (psx_taken_BFC2087C) goto label_BFC208B8; @@ -102153,7 +105235,7 @@ label_BFC20884: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (21) ? 1 : 0); /* 0xBFC208A4: 10200004 beq $at, $zero, 0xBFC208B8 */ uint32_t psx_brA_BFC208A4 = cpu->gpr[1]; uint32_t psx_brB_BFC208A4 = cpu->gpr[0]; - int psx_taken_BFC208A4 = (psx_brA_BFC208A4 == psx_brB_BFC208A4); + psx_taken_BFC208A4 = (psx_brA_BFC208A4 == psx_brB_BFC208A4); /* 0xBFC208A8: 8FB1002C lw $s1, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC208A8u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } if (psx_taken_BFC208A4) goto label_BFC208B8; @@ -102200,7 +105282,7 @@ label_BFC208BC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC208D4: 14410017 bne $v0, $at, 0xBFC20934 */ uint32_t psx_brA_BFC208D4 = cpu->gpr[2]; uint32_t psx_brB_BFC208D4 = cpu->gpr[1]; - int psx_taken_BFC208D4 = (psx_brA_BFC208D4 != psx_brB_BFC208D4); + psx_taken_BFC208D4 = (psx_brA_BFC208D4 != psx_brB_BFC208D4); /* 0xBFC208D8: 24010034 addiu $at, $zero, 52 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC208D4) goto label_BFC20934; @@ -102229,7 +105311,7 @@ label_BFC208DC: /* nop */ /* 0xBFC20900: 17240007 bne $t9, $a0, 0xBFC20920 */ uint32_t psx_brA_BFC20900 = cpu->gpr[25]; uint32_t psx_brB_BFC20900 = cpu->gpr[4]; - int psx_taken_BFC20900 = (psx_brA_BFC20900 != psx_brB_BFC20900); + psx_taken_BFC20900 = (psx_brA_BFC20900 != psx_brB_BFC20900); /* 0xBFC20904: 00000000 nop */ /* nop */ if (psx_taken_BFC20900) goto label_BFC20920; @@ -102244,7 +105326,7 @@ label_BFC20908: /* nop */ /* 0xBFC20910: 15000003 bne $t0, $zero, 0xBFC20920 */ uint32_t psx_brA_BFC20910 = cpu->gpr[8]; uint32_t psx_brB_BFC20910 = cpu->gpr[0]; - int psx_taken_BFC20910 = (psx_brA_BFC20910 != psx_brB_BFC20910); + psx_taken_BFC20910 = (psx_brA_BFC20910 != psx_brB_BFC20910); /* 0xBFC20914: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC20910) goto label_BFC20920; @@ -102255,7 +105337,7 @@ label_BFC20918: psx_check_interrupts(cpu); /* 0xBFC20918: 1000000C beq $zero, $zero, 0xBFC2094C */ uint32_t psx_brA_BFC20918 = cpu->gpr[0]; uint32_t psx_brB_BFC20918 = cpu->gpr[0]; - int psx_taken_BFC20918 = (psx_brA_BFC20918 == psx_brB_BFC20918); + psx_taken_BFC20918 = (psx_brA_BFC20918 == psx_brB_BFC20918); /* 0xBFC2091C: AC209E40 sw $zero, -25024($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25024)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2091Cu); return; } g_debug_last_store_pc = 0xBFC2091Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC20918) goto label_BFC2094C; @@ -102276,7 +105358,7 @@ label_BFC20928: psx_check_interrupts(cpu); /* 0xBFC20928: 10000008 beq $zero, $zero, 0xBFC2094C */ uint32_t psx_brA_BFC20928 = cpu->gpr[0]; uint32_t psx_brB_BFC20928 = cpu->gpr[0]; - int psx_taken_BFC20928 = (psx_brA_BFC20928 == psx_brB_BFC20928); + psx_taken_BFC20928 = (psx_brA_BFC20928 == psx_brB_BFC20928); /* 0xBFC2092C: 00000000 nop */ /* nop */ if (psx_taken_BFC20928) goto label_BFC2094C; @@ -102294,7 +105376,7 @@ label_BFC20934: psx_check_interrupts(cpu); /* 0xBFC20934: 14410005 bne $v0, $at, 0xBFC2094C */ uint32_t psx_brA_BFC20934 = cpu->gpr[2]; uint32_t psx_brB_BFC20934 = cpu->gpr[1]; - int psx_taken_BFC20934 = (psx_brA_BFC20934 != psx_brB_BFC20934); + psx_taken_BFC20934 = (psx_brA_BFC20934 != psx_brB_BFC20934); /* 0xBFC20938: 00000000 nop */ /* nop */ if (psx_taken_BFC20934) goto label_BFC2094C; @@ -102336,7 +105418,7 @@ label_BFC2094C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (-12048)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20960u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC20964: 1000007A beq $zero, $zero, 0xBFC20B50 */ uint32_t psx_brA_BFC20964 = cpu->gpr[0]; uint32_t psx_brB_BFC20964 = cpu->gpr[0]; - int psx_taken_BFC20964 = (psx_brA_BFC20964 == psx_brB_BFC20964); + psx_taken_BFC20964 = (psx_brA_BFC20964 == psx_brB_BFC20964); /* 0xBFC20968: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20968u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20964) goto label_BFC20B50; @@ -102357,7 +105439,7 @@ label_BFC20974: psx_check_interrupts(cpu); /* 0xBFC20974: 10400032 beq $v0, $zero, 0xBFC20A40 */ uint32_t psx_brA_BFC20974 = cpu->gpr[2]; uint32_t psx_brB_BFC20974 = cpu->gpr[0]; - int psx_taken_BFC20974 = (psx_brA_BFC20974 == psx_brB_BFC20974); + psx_taken_BFC20974 = (psx_brA_BFC20974 == psx_brB_BFC20974); /* 0xBFC20978: 00000000 nop */ /* nop */ if (psx_taken_BFC20974) goto label_BFC20A40; @@ -102374,7 +105456,7 @@ label_BFC2097C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); /* 0xBFC20988: 10410069 beq $v0, $at, 0xBFC20B30 */ uint32_t psx_brA_BFC20988 = cpu->gpr[2]; uint32_t psx_brB_BFC20988 = cpu->gpr[1]; - int psx_taken_BFC20988 = (psx_brA_BFC20988 == psx_brB_BFC20988); + psx_taken_BFC20988 = (psx_brA_BFC20988 == psx_brB_BFC20988); /* 0xBFC2098C: 00000000 nop */ /* nop */ if (psx_taken_BFC20988) goto label_BFC20B30; @@ -102397,7 +105479,7 @@ label_BFC20990: cpu->gpr[1] = (uint32_t)(cpu->gpr[11] < cpu->gpr[13] ? 1 : 0); /* 0xBFC209A8: 10200061 beq $at, $zero, 0xBFC20B30 */ uint32_t psx_brA_BFC209A8 = cpu->gpr[1]; uint32_t psx_brB_BFC209A8 = cpu->gpr[0]; - int psx_taken_BFC209A8 = (psx_brA_BFC209A8 == psx_brB_BFC209A8); + psx_taken_BFC209A8 = (psx_brA_BFC209A8 == psx_brB_BFC209A8); /* 0xBFC209AC: 00000000 nop */ /* nop */ if (psx_taken_BFC209A8) goto label_BFC20B30; @@ -102452,7 +105534,7 @@ label_BFC209D0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC209FC: 1441000A bne $v0, $at, 0xBFC20A28 */ uint32_t psx_brA_BFC209FC = cpu->gpr[2]; uint32_t psx_brB_BFC209FC = cpu->gpr[1]; - int psx_taken_BFC209FC = (psx_brA_BFC209FC != psx_brB_BFC209FC); + psx_taken_BFC209FC = (psx_brA_BFC209FC != psx_brB_BFC209FC); /* 0xBFC20A00: 24010034 addiu $at, $zero, 52 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC209FC) goto label_BFC20A28; @@ -102481,7 +105563,7 @@ label_BFC20A1C: psx_check_interrupts(cpu); /* 0xBFC20A1C: 10000044 beq $zero, $zero, 0xBFC20B30 */ uint32_t psx_brA_BFC20A1C = cpu->gpr[0]; uint32_t psx_brB_BFC20A1C = cpu->gpr[0]; - int psx_taken_BFC20A1C = (psx_brA_BFC20A1C == psx_brB_BFC20A1C); + psx_taken_BFC20A1C = (psx_brA_BFC20A1C == psx_brB_BFC20A1C); /* 0xBFC20A20: 00000000 nop */ /* nop */ if (psx_taken_BFC20A1C) goto label_BFC20B30; @@ -102499,7 +105581,7 @@ label_BFC20A28: psx_check_interrupts(cpu); /* 0xBFC20A28: 14410041 bne $v0, $at, 0xBFC20B30 */ uint32_t psx_brA_BFC20A28 = cpu->gpr[2]; uint32_t psx_brB_BFC20A28 = cpu->gpr[1]; - int psx_taken_BFC20A28 = (psx_brA_BFC20A28 != psx_brB_BFC20A28); + psx_taken_BFC20A28 = (psx_brA_BFC20A28 != psx_brB_BFC20A28); /* 0xBFC20A2C: 00000000 nop */ /* nop */ if (psx_taken_BFC20A28) goto label_BFC20B30; @@ -102520,7 +105602,7 @@ label_BFC20A38: psx_check_interrupts(cpu); /* 0xBFC20A38: 1000003D beq $zero, $zero, 0xBFC20B30 */ uint32_t psx_brA_BFC20A38 = cpu->gpr[0]; uint32_t psx_brB_BFC20A38 = cpu->gpr[0]; - int psx_taken_BFC20A38 = (psx_brA_BFC20A38 == psx_brB_BFC20A38); + psx_taken_BFC20A38 = (psx_brA_BFC20A38 == psx_brB_BFC20A38); /* 0xBFC20A3C: 00000000 nop */ /* nop */ if (psx_taken_BFC20A38) goto label_BFC20B30; @@ -102543,7 +105625,7 @@ label_BFC20A40: cpu->gpr[1] = (uint32_t)(cpu->gpr[9] < cpu->gpr[10] ? 1 : 0); /* 0xBFC20A58: 10200035 beq $at, $zero, 0xBFC20B30 */ uint32_t psx_brA_BFC20A58 = cpu->gpr[1]; uint32_t psx_brB_BFC20A58 = cpu->gpr[0]; - int psx_taken_BFC20A58 = (psx_brA_BFC20A58 == psx_brB_BFC20A58); + psx_taken_BFC20A58 = (psx_brA_BFC20A58 == psx_brB_BFC20A58); /* 0xBFC20A5C: 00000000 nop */ /* nop */ if (psx_taken_BFC20A58) goto label_BFC20B30; @@ -102564,7 +105646,7 @@ label_BFC20A68: psx_check_interrupts(cpu); /* 0xBFC20A68: 1440000C bne $v0, $zero, 0xBFC20A9C */ uint32_t psx_brA_BFC20A68 = cpu->gpr[2]; uint32_t psx_brB_BFC20A68 = cpu->gpr[0]; - int psx_taken_BFC20A68 = (psx_brA_BFC20A68 != psx_brB_BFC20A68); + psx_taken_BFC20A68 = (psx_brA_BFC20A68 != psx_brB_BFC20A68); /* 0xBFC20A6C: 00000000 nop */ /* nop */ if (psx_taken_BFC20A68) goto label_BFC20A9C; @@ -102581,7 +105663,7 @@ label_BFC20A70: /* nop */ /* 0xBFC20A7C: 11600007 beq $t3, $zero, 0xBFC20A9C */ uint32_t psx_brA_BFC20A7C = cpu->gpr[11]; uint32_t psx_brB_BFC20A7C = cpu->gpr[0]; - int psx_taken_BFC20A7C = (psx_brA_BFC20A7C == psx_brB_BFC20A7C); + psx_taken_BFC20A7C = (psx_brA_BFC20A7C == psx_brB_BFC20A7C); /* 0xBFC20A80: 00000000 nop */ /* nop */ if (psx_taken_BFC20A7C) goto label_BFC20A9C; @@ -102632,7 +105714,7 @@ label_BFC20A9C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); /* 0xBFC20AC8: 1441000A bne $v0, $at, 0xBFC20AF4 */ uint32_t psx_brA_BFC20AC8 = cpu->gpr[2]; uint32_t psx_brB_BFC20AC8 = cpu->gpr[1]; - int psx_taken_BFC20AC8 = (psx_brA_BFC20AC8 != psx_brB_BFC20AC8); + psx_taken_BFC20AC8 = (psx_brA_BFC20AC8 != psx_brB_BFC20AC8); /* 0xBFC20ACC: 24010034 addiu $at, $zero, 52 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); if (psx_taken_BFC20AC8) goto label_BFC20AF4; @@ -102661,7 +105743,7 @@ label_BFC20AE8: psx_check_interrupts(cpu); /* 0xBFC20AE8: 10000011 beq $zero, $zero, 0xBFC20B30 */ uint32_t psx_brA_BFC20AE8 = cpu->gpr[0]; uint32_t psx_brB_BFC20AE8 = cpu->gpr[0]; - int psx_taken_BFC20AE8 = (psx_brA_BFC20AE8 == psx_brB_BFC20AE8); + psx_taken_BFC20AE8 = (psx_brA_BFC20AE8 == psx_brB_BFC20AE8); /* 0xBFC20AEC: 00000000 nop */ /* nop */ if (psx_taken_BFC20AE8) goto label_BFC20B30; @@ -102679,7 +105761,7 @@ label_BFC20AF4: psx_check_interrupts(cpu); /* 0xBFC20AF4: 14410008 bne $v0, $at, 0xBFC20B18 */ uint32_t psx_brA_BFC20AF4 = cpu->gpr[2]; uint32_t psx_brB_BFC20AF4 = cpu->gpr[1]; - int psx_taken_BFC20AF4 = (psx_brA_BFC20AF4 != psx_brB_BFC20AF4); + psx_taken_BFC20AF4 = (psx_brA_BFC20AF4 != psx_brB_BFC20AF4); /* 0xBFC20AF8: 24010032 addiu $at, $zero, 50 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (50)); if (psx_taken_BFC20AF4) goto label_BFC20B18; @@ -102710,7 +105792,7 @@ label_BFC20B0C: psx_check_interrupts(cpu); /* 0xBFC20B0C: 10000008 beq $zero, $zero, 0xBFC20B30 */ uint32_t psx_brA_BFC20B0C = cpu->gpr[0]; uint32_t psx_brB_BFC20B0C = cpu->gpr[0]; - int psx_taken_BFC20B0C = (psx_brA_BFC20B0C == psx_brB_BFC20B0C); + psx_taken_BFC20B0C = (psx_brA_BFC20B0C == psx_brB_BFC20B0C); /* 0xBFC20B10: 00000000 nop */ /* nop */ if (psx_taken_BFC20B0C) goto label_BFC20B30; @@ -102728,7 +105810,7 @@ label_BFC20B18: psx_check_interrupts(cpu); /* 0xBFC20B18: 14410005 bne $v0, $at, 0xBFC20B30 */ uint32_t psx_brA_BFC20B18 = cpu->gpr[2]; uint32_t psx_brB_BFC20B18 = cpu->gpr[1]; - int psx_taken_BFC20B18 = (psx_brA_BFC20B18 != psx_brB_BFC20B18); + psx_taken_BFC20B18 = (psx_brA_BFC20B18 != psx_brB_BFC20B18); /* 0xBFC20B1C: 00000000 nop */ /* nop */ if (psx_taken_BFC20B18) goto label_BFC20B30; @@ -102790,6 +105872,8 @@ label_BFC20B50: void func_1FC20B60(CPUState* cpu) { debug_server_log_call_entry(0x1FC20B60u); + int psx_taken_BFC20B6C = 0; + int psx_taken_BFC20B74 = 0; label_BFC20B60: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -102803,7 +105887,7 @@ label_BFC20B60: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC20B6C: 10410009 beq $v0, $at, 0xBFC20B94 */ uint32_t psx_brA_BFC20B6C = cpu->gpr[2]; uint32_t psx_brB_BFC20B6C = cpu->gpr[1]; - int psx_taken_BFC20B6C = (psx_brA_BFC20B6C == psx_brB_BFC20B6C); + psx_taken_BFC20B6C = (psx_brA_BFC20B6C == psx_brB_BFC20B6C); /* 0xBFC20B70: 24010033 addiu $at, $zero, 51 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); if (psx_taken_BFC20B6C) goto label_BFC20B94; @@ -102814,7 +105898,7 @@ label_BFC20B74: psx_check_interrupts(cpu); /* 0xBFC20B74: 14410007 bne $v0, $at, 0xBFC20B94 */ uint32_t psx_brA_BFC20B74 = cpu->gpr[2]; uint32_t psx_brB_BFC20B74 = cpu->gpr[1]; - int psx_taken_BFC20B74 = (psx_brA_BFC20B74 != psx_brB_BFC20B74); + psx_taken_BFC20B74 = (psx_brA_BFC20B74 != psx_brB_BFC20B74); /* 0xBFC20B78: 00000000 nop */ /* nop */ if (psx_taken_BFC20B74) goto label_BFC20B94; @@ -102848,6 +105932,8 @@ label_BFC20B94: void func_1FC20B9C(CPUState* cpu) { debug_server_log_call_entry(0x1FC20B9Cu); + int psx_taken_BFC20BA8 = 0; + int psx_taken_BFC20BB0 = 0; label_BFC20B9C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -102861,7 +105947,7 @@ label_BFC20B9C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (52)); /* 0xBFC20BA8: 1041000C beq $v0, $at, 0xBFC20BDC */ uint32_t psx_brA_BFC20BA8 = cpu->gpr[2]; uint32_t psx_brB_BFC20BA8 = cpu->gpr[1]; - int psx_taken_BFC20BA8 = (psx_brA_BFC20BA8 == psx_brB_BFC20BA8); + psx_taken_BFC20BA8 = (psx_brA_BFC20BA8 == psx_brB_BFC20BA8); /* 0xBFC20BAC: 24010033 addiu $at, $zero, 51 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (51)); if (psx_taken_BFC20BA8) goto label_BFC20BDC; @@ -102872,7 +105958,7 @@ label_BFC20BB0: psx_check_interrupts(cpu); /* 0xBFC20BB0: 1441000A bne $v0, $at, 0xBFC20BDC */ uint32_t psx_brA_BFC20BB0 = cpu->gpr[2]; uint32_t psx_brB_BFC20BB0 = cpu->gpr[1]; - int psx_taken_BFC20BB0 = (psx_brA_BFC20BB0 != psx_brB_BFC20BB0); + psx_taken_BFC20BB0 = (psx_brA_BFC20BB0 != psx_brB_BFC20BB0); /* 0xBFC20BB4: 00000000 nop */ /* nop */ if (psx_taken_BFC20BB0) goto label_BFC20BDC; @@ -102923,6 +106009,11 @@ void func_1FC20BE4(CPUState* cpu) { default: break; } } + int psx_taken_BFC20C00 = 0; + int psx_taken_BFC20C18 = 0; + int psx_taken_BFC20C24 = 0; + int psx_taken_BFC20C34 = 0; + int psx_taken_BFC20C3C = 0; label_BFC20BE4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -102950,7 +106041,7 @@ label_BFC20BFC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (24)); /* 0xBFC20C00: 1A00000E blez $s0, 0xBFC20C3C */ uint32_t psx_brA_BFC20C00 = cpu->gpr[16]; - int psx_taken_BFC20C00 = ((int32_t)psx_brA_BFC20C00 <= 0); + psx_taken_BFC20C00 = ((int32_t)psx_brA_BFC20C00 <= 0); /* 0xBFC20C04: 00000000 nop */ /* nop */ if (psx_taken_BFC20C00) goto label_BFC20C3C; @@ -102975,7 +106066,7 @@ label_BFC20C18: psx_check_interrupts(cpu); /* 0xBFC20C18: 14400008 bne $v0, $zero, 0xBFC20C3C */ uint32_t psx_brA_BFC20C18 = cpu->gpr[2]; uint32_t psx_brB_BFC20C18 = cpu->gpr[0]; - int psx_taken_BFC20C18 = (psx_brA_BFC20C18 != psx_brB_BFC20C18); + psx_taken_BFC20C18 = (psx_brA_BFC20C18 != psx_brB_BFC20C18); /* 0xBFC20C1C: 00000000 nop */ /* nop */ if (psx_taken_BFC20C18) goto label_BFC20C3C; @@ -102988,7 +106079,7 @@ label_BFC20C20: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); /* 0xBFC20C24: 1A000005 blez $s0, 0xBFC20C3C */ uint32_t psx_brA_BFC20C24 = cpu->gpr[16]; - int psx_taken_BFC20C24 = ((int32_t)psx_brA_BFC20C24 <= 0); + psx_taken_BFC20C24 = ((int32_t)psx_brA_BFC20C24 <= 0); /* 0xBFC20C28: 00000000 nop */ /* nop */ if (psx_taken_BFC20C24) goto label_BFC20C3C; @@ -103009,7 +106100,7 @@ label_BFC20C34: psx_check_interrupts(cpu); /* 0xBFC20C34: 1040FFFA beq $v0, $zero, 0xBFC20C20 */ uint32_t psx_brA_BFC20C34 = cpu->gpr[2]; uint32_t psx_brB_BFC20C34 = cpu->gpr[0]; - int psx_taken_BFC20C34 = (psx_brA_BFC20C34 == psx_brB_BFC20C34); + psx_taken_BFC20C34 = (psx_brA_BFC20C34 == psx_brB_BFC20C34); /* 0xBFC20C38: 00000000 nop */ /* nop */ if (psx_taken_BFC20C34) goto label_BFC20C20; @@ -103020,7 +106111,7 @@ label_BFC20C3C: psx_check_interrupts(cpu); /* 0xBFC20C3C: 16000005 bne $s0, $zero, 0xBFC20C54 */ uint32_t psx_brA_BFC20C3C = cpu->gpr[16]; uint32_t psx_brB_BFC20C3C = cpu->gpr[0]; - int psx_taken_BFC20C3C = (psx_brA_BFC20C3C != psx_brB_BFC20C3C); + psx_taken_BFC20C3C = (psx_brA_BFC20C3C != psx_brB_BFC20C3C); /* 0xBFC20C40: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20C40u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20C3C) goto label_BFC20C54; @@ -103070,6 +106161,10 @@ void func_1FC20C64(CPUState* cpu) { default: break; } } + int psx_taken_BFC20C84 = 0; + int psx_taken_BFC20CAC = 0; + int psx_taken_BFC20CB8 = 0; + int psx_taken_BFC20CC8 = 0; label_BFC20C64: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -103099,7 +106194,7 @@ label_BFC20C80: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC20C84: 1A000013 blez $s0, 0xBFC20CD4 */ uint32_t psx_brA_BFC20C84 = cpu->gpr[16]; - int psx_taken_BFC20C84 = ((int32_t)psx_brA_BFC20C84 <= 0); + psx_taken_BFC20C84 = ((int32_t)psx_brA_BFC20C84 <= 0); /* 0xBFC20C88: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20C88u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20C84) goto label_BFC20CD4; @@ -103132,7 +106227,7 @@ label_BFC20CAC: psx_check_interrupts(cpu); /* 0xBFC20CAC: 14400009 bne $v0, $zero, 0xBFC20CD4 */ uint32_t psx_brA_BFC20CAC = cpu->gpr[2]; uint32_t psx_brB_BFC20CAC = cpu->gpr[0]; - int psx_taken_BFC20CAC = (psx_brA_BFC20CAC != psx_brB_BFC20CAC); + psx_taken_BFC20CAC = (psx_brA_BFC20CAC != psx_brB_BFC20CAC); /* 0xBFC20CB0: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20CB0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20CAC) goto label_BFC20CD4; @@ -103150,7 +106245,7 @@ label_BFC20CB8: psx_check_interrupts(cpu); /* 0xBFC20CB8: 1A000006 blez $s0, 0xBFC20CD4 */ uint32_t psx_brA_BFC20CB8 = cpu->gpr[16]; - int psx_taken_BFC20CB8 = ((int32_t)psx_brA_BFC20CB8 <= 0); + psx_taken_BFC20CB8 = ((int32_t)psx_brA_BFC20CB8 <= 0); /* 0xBFC20CBC: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20CBCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20CB8) goto label_BFC20CD4; @@ -103171,7 +106266,7 @@ label_BFC20CC8: psx_check_interrupts(cpu); /* 0xBFC20CC8: 1040FFFB beq $v0, $zero, 0xBFC20CB8 */ uint32_t psx_brA_BFC20CC8 = cpu->gpr[2]; uint32_t psx_brB_BFC20CC8 = cpu->gpr[0]; - int psx_taken_BFC20CC8 = (psx_brA_BFC20CC8 == psx_brB_BFC20CC8); + psx_taken_BFC20CC8 = (psx_brA_BFC20CC8 == psx_brB_BFC20CC8); /* 0xBFC20CCC: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC20CC8) goto label_BFC20CB8; @@ -103209,6 +106304,10 @@ void func_1FC20CE4(CPUState* cpu) { default: break; } } + int psx_taken_BFC20D04 = 0; + int psx_taken_BFC20D14 = 0; + int psx_taken_BFC20D20 = 0; + int psx_taken_BFC20D30 = 0; label_BFC20CE4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -103238,7 +106337,7 @@ label_BFC20D00: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC20D04: 1A00000D blez $s0, 0xBFC20D3C */ uint32_t psx_brA_BFC20D04 = cpu->gpr[16]; - int psx_taken_BFC20D04 = ((int32_t)psx_brA_BFC20D04 <= 0); + psx_taken_BFC20D04 = ((int32_t)psx_brA_BFC20D04 <= 0); /* 0xBFC20D08: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20D08u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20D04) goto label_BFC20D3C; @@ -103259,7 +106358,7 @@ label_BFC20D14: psx_check_interrupts(cpu); /* 0xBFC20D14: 14400009 bne $v0, $zero, 0xBFC20D3C */ uint32_t psx_brA_BFC20D14 = cpu->gpr[2]; uint32_t psx_brB_BFC20D14 = cpu->gpr[0]; - int psx_taken_BFC20D14 = (psx_brA_BFC20D14 != psx_brB_BFC20D14); + psx_taken_BFC20D14 = (psx_brA_BFC20D14 != psx_brB_BFC20D14); /* 0xBFC20D18: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20D18u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20D14) goto label_BFC20D3C; @@ -103277,7 +106376,7 @@ label_BFC20D20: psx_check_interrupts(cpu); /* 0xBFC20D20: 1A000006 blez $s0, 0xBFC20D3C */ uint32_t psx_brA_BFC20D20 = cpu->gpr[16]; - int psx_taken_BFC20D20 = ((int32_t)psx_brA_BFC20D20 <= 0); + psx_taken_BFC20D20 = ((int32_t)psx_brA_BFC20D20 <= 0); /* 0xBFC20D24: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20D24u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20D20) goto label_BFC20D3C; @@ -103298,7 +106397,7 @@ label_BFC20D30: psx_check_interrupts(cpu); /* 0xBFC20D30: 1040FFFB beq $v0, $zero, 0xBFC20D20 */ uint32_t psx_brA_BFC20D30 = cpu->gpr[2]; uint32_t psx_brB_BFC20D30 = cpu->gpr[0]; - int psx_taken_BFC20D30 = (psx_brA_BFC20D30 == psx_brB_BFC20D30); + psx_taken_BFC20D30 = (psx_brA_BFC20D30 == psx_brB_BFC20D30); /* 0xBFC20D34: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC20D30) goto label_BFC20D20; @@ -103336,6 +106435,10 @@ void func_1FC20D4C(CPUState* cpu) { default: break; } } + int psx_taken_BFC20D6C = 0; + int psx_taken_BFC20D7C = 0; + int psx_taken_BFC20D88 = 0; + int psx_taken_BFC20D98 = 0; label_BFC20D4C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -103365,7 +106468,7 @@ label_BFC20D68: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC20D6C: 1A00000D blez $s0, 0xBFC20DA4 */ uint32_t psx_brA_BFC20D6C = cpu->gpr[16]; - int psx_taken_BFC20D6C = ((int32_t)psx_brA_BFC20D6C <= 0); + psx_taken_BFC20D6C = ((int32_t)psx_brA_BFC20D6C <= 0); /* 0xBFC20D70: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20D70u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20D6C) goto label_BFC20DA4; @@ -103386,7 +106489,7 @@ label_BFC20D7C: psx_check_interrupts(cpu); /* 0xBFC20D7C: 14400009 bne $v0, $zero, 0xBFC20DA4 */ uint32_t psx_brA_BFC20D7C = cpu->gpr[2]; uint32_t psx_brB_BFC20D7C = cpu->gpr[0]; - int psx_taken_BFC20D7C = (psx_brA_BFC20D7C != psx_brB_BFC20D7C); + psx_taken_BFC20D7C = (psx_brA_BFC20D7C != psx_brB_BFC20D7C); /* 0xBFC20D80: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20D80u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20D7C) goto label_BFC20DA4; @@ -103404,7 +106507,7 @@ label_BFC20D88: psx_check_interrupts(cpu); /* 0xBFC20D88: 1A000006 blez $s0, 0xBFC20DA4 */ uint32_t psx_brA_BFC20D88 = cpu->gpr[16]; - int psx_taken_BFC20D88 = ((int32_t)psx_brA_BFC20D88 <= 0); + psx_taken_BFC20D88 = ((int32_t)psx_brA_BFC20D88 <= 0); /* 0xBFC20D8C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20D8Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20D88) goto label_BFC20DA4; @@ -103425,7 +106528,7 @@ label_BFC20D98: psx_check_interrupts(cpu); /* 0xBFC20D98: 1040FFFB beq $v0, $zero, 0xBFC20D88 */ uint32_t psx_brA_BFC20D98 = cpu->gpr[2]; uint32_t psx_brB_BFC20D98 = cpu->gpr[0]; - int psx_taken_BFC20D98 = (psx_brA_BFC20D98 == psx_brB_BFC20D98); + psx_taken_BFC20D98 = (psx_brA_BFC20D98 == psx_brB_BFC20D98); /* 0xBFC20D9C: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC20D98) goto label_BFC20D88; @@ -103463,6 +106566,10 @@ void func_1FC20DB4(CPUState* cpu) { default: break; } } + int psx_taken_BFC20DCC = 0; + int psx_taken_BFC20DDC = 0; + int psx_taken_BFC20DE8 = 0; + int psx_taken_BFC20DF8 = 0; label_BFC20DB4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -103488,7 +106595,7 @@ label_BFC20DC8: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC20DCC: 1A00000D blez $s0, 0xBFC20E04 */ uint32_t psx_brA_BFC20DCC = cpu->gpr[16]; - int psx_taken_BFC20DCC = ((int32_t)psx_brA_BFC20DCC <= 0); + psx_taken_BFC20DCC = ((int32_t)psx_brA_BFC20DCC <= 0); /* 0xBFC20DD0: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20DD0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20DCC) goto label_BFC20E04; @@ -103509,7 +106616,7 @@ label_BFC20DDC: psx_check_interrupts(cpu); /* 0xBFC20DDC: 14400009 bne $v0, $zero, 0xBFC20E04 */ uint32_t psx_brA_BFC20DDC = cpu->gpr[2]; uint32_t psx_brB_BFC20DDC = cpu->gpr[0]; - int psx_taken_BFC20DDC = (psx_brA_BFC20DDC != psx_brB_BFC20DDC); + psx_taken_BFC20DDC = (psx_brA_BFC20DDC != psx_brB_BFC20DDC); /* 0xBFC20DE0: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20DE0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20DDC) goto label_BFC20E04; @@ -103527,7 +106634,7 @@ label_BFC20DE8: psx_check_interrupts(cpu); /* 0xBFC20DE8: 1A000006 blez $s0, 0xBFC20E04 */ uint32_t psx_brA_BFC20DE8 = cpu->gpr[16]; - int psx_taken_BFC20DE8 = ((int32_t)psx_brA_BFC20DE8 <= 0); + psx_taken_BFC20DE8 = ((int32_t)psx_brA_BFC20DE8 <= 0); /* 0xBFC20DEC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20DECu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20DE8) goto label_BFC20E04; @@ -103548,7 +106655,7 @@ label_BFC20DF8: psx_check_interrupts(cpu); /* 0xBFC20DF8: 1040FFFB beq $v0, $zero, 0xBFC20DE8 */ uint32_t psx_brA_BFC20DF8 = cpu->gpr[2]; uint32_t psx_brB_BFC20DF8 = cpu->gpr[0]; - int psx_taken_BFC20DF8 = (psx_brA_BFC20DF8 == psx_brB_BFC20DF8); + psx_taken_BFC20DF8 = (psx_brA_BFC20DF8 == psx_brB_BFC20DF8); /* 0xBFC20DFC: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC20DF8) goto label_BFC20DE8; @@ -103584,6 +106691,10 @@ void func_1FC20E10(CPUState* cpu) { default: break; } } + int psx_taken_BFC20E28 = 0; + int psx_taken_BFC20E38 = 0; + int psx_taken_BFC20E44 = 0; + int psx_taken_BFC20E54 = 0; label_BFC20E10: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -103609,7 +106720,7 @@ label_BFC20E24: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC20E28: 1A00000D blez $s0, 0xBFC20E60 */ uint32_t psx_brA_BFC20E28 = cpu->gpr[16]; - int psx_taken_BFC20E28 = ((int32_t)psx_brA_BFC20E28 <= 0); + psx_taken_BFC20E28 = ((int32_t)psx_brA_BFC20E28 <= 0); /* 0xBFC20E2C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20E2Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20E28) goto label_BFC20E60; @@ -103630,7 +106741,7 @@ label_BFC20E38: psx_check_interrupts(cpu); /* 0xBFC20E38: 14400009 bne $v0, $zero, 0xBFC20E60 */ uint32_t psx_brA_BFC20E38 = cpu->gpr[2]; uint32_t psx_brB_BFC20E38 = cpu->gpr[0]; - int psx_taken_BFC20E38 = (psx_brA_BFC20E38 != psx_brB_BFC20E38); + psx_taken_BFC20E38 = (psx_brA_BFC20E38 != psx_brB_BFC20E38); /* 0xBFC20E3C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20E3Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20E38) goto label_BFC20E60; @@ -103648,7 +106759,7 @@ label_BFC20E44: psx_check_interrupts(cpu); /* 0xBFC20E44: 1A000006 blez $s0, 0xBFC20E60 */ uint32_t psx_brA_BFC20E44 = cpu->gpr[16]; - int psx_taken_BFC20E44 = ((int32_t)psx_brA_BFC20E44 <= 0); + psx_taken_BFC20E44 = ((int32_t)psx_brA_BFC20E44 <= 0); /* 0xBFC20E48: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20E48u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20E44) goto label_BFC20E60; @@ -103669,7 +106780,7 @@ label_BFC20E54: psx_check_interrupts(cpu); /* 0xBFC20E54: 1040FFFB beq $v0, $zero, 0xBFC20E44 */ uint32_t psx_brA_BFC20E54 = cpu->gpr[2]; uint32_t psx_brB_BFC20E54 = cpu->gpr[0]; - int psx_taken_BFC20E54 = (psx_brA_BFC20E54 == psx_brB_BFC20E54); + psx_taken_BFC20E54 = (psx_brA_BFC20E54 == psx_brB_BFC20E54); /* 0xBFC20E58: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC20E54) goto label_BFC20E44; @@ -103705,6 +106816,10 @@ void func_1FC20E6C(CPUState* cpu) { default: break; } } + int psx_taken_BFC20E84 = 0; + int psx_taken_BFC20E94 = 0; + int psx_taken_BFC20EA0 = 0; + int psx_taken_BFC20EB0 = 0; label_BFC20E6C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -103730,7 +106845,7 @@ label_BFC20E80: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC20E84: 1A00000D blez $s0, 0xBFC20EBC */ uint32_t psx_brA_BFC20E84 = cpu->gpr[16]; - int psx_taken_BFC20E84 = ((int32_t)psx_brA_BFC20E84 <= 0); + psx_taken_BFC20E84 = ((int32_t)psx_brA_BFC20E84 <= 0); /* 0xBFC20E88: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20E88u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20E84) goto label_BFC20EBC; @@ -103751,7 +106866,7 @@ label_BFC20E94: psx_check_interrupts(cpu); /* 0xBFC20E94: 14400009 bne $v0, $zero, 0xBFC20EBC */ uint32_t psx_brA_BFC20E94 = cpu->gpr[2]; uint32_t psx_brB_BFC20E94 = cpu->gpr[0]; - int psx_taken_BFC20E94 = (psx_brA_BFC20E94 != psx_brB_BFC20E94); + psx_taken_BFC20E94 = (psx_brA_BFC20E94 != psx_brB_BFC20E94); /* 0xBFC20E98: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20E98u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20E94) goto label_BFC20EBC; @@ -103769,7 +106884,7 @@ label_BFC20EA0: psx_check_interrupts(cpu); /* 0xBFC20EA0: 1A000006 blez $s0, 0xBFC20EBC */ uint32_t psx_brA_BFC20EA0 = cpu->gpr[16]; - int psx_taken_BFC20EA0 = ((int32_t)psx_brA_BFC20EA0 <= 0); + psx_taken_BFC20EA0 = ((int32_t)psx_brA_BFC20EA0 <= 0); /* 0xBFC20EA4: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20EA4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20EA0) goto label_BFC20EBC; @@ -103790,7 +106905,7 @@ label_BFC20EB0: psx_check_interrupts(cpu); /* 0xBFC20EB0: 1040FFFB beq $v0, $zero, 0xBFC20EA0 */ uint32_t psx_brA_BFC20EB0 = cpu->gpr[2]; uint32_t psx_brB_BFC20EB0 = cpu->gpr[0]; - int psx_taken_BFC20EB0 = (psx_brA_BFC20EB0 == psx_brB_BFC20EB0); + psx_taken_BFC20EB0 = (psx_brA_BFC20EB0 == psx_brB_BFC20EB0); /* 0xBFC20EB4: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC20EB0) goto label_BFC20EA0; @@ -103826,6 +106941,10 @@ void func_1FC20EC8(CPUState* cpu) { default: break; } } + int psx_taken_BFC20EE0 = 0; + int psx_taken_BFC20EF0 = 0; + int psx_taken_BFC20EFC = 0; + int psx_taken_BFC20F0C = 0; label_BFC20EC8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -103851,7 +106970,7 @@ label_BFC20EDC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC20EE0: 1A00000D blez $s0, 0xBFC20F18 */ uint32_t psx_brA_BFC20EE0 = cpu->gpr[16]; - int psx_taken_BFC20EE0 = ((int32_t)psx_brA_BFC20EE0 <= 0); + psx_taken_BFC20EE0 = ((int32_t)psx_brA_BFC20EE0 <= 0); /* 0xBFC20EE4: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20EE4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20EE0) goto label_BFC20F18; @@ -103872,7 +106991,7 @@ label_BFC20EF0: psx_check_interrupts(cpu); /* 0xBFC20EF0: 14400009 bne $v0, $zero, 0xBFC20F18 */ uint32_t psx_brA_BFC20EF0 = cpu->gpr[2]; uint32_t psx_brB_BFC20EF0 = cpu->gpr[0]; - int psx_taken_BFC20EF0 = (psx_brA_BFC20EF0 != psx_brB_BFC20EF0); + psx_taken_BFC20EF0 = (psx_brA_BFC20EF0 != psx_brB_BFC20EF0); /* 0xBFC20EF4: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20EF4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20EF0) goto label_BFC20F18; @@ -103890,7 +107009,7 @@ label_BFC20EFC: psx_check_interrupts(cpu); /* 0xBFC20EFC: 1A000006 blez $s0, 0xBFC20F18 */ uint32_t psx_brA_BFC20EFC = cpu->gpr[16]; - int psx_taken_BFC20EFC = ((int32_t)psx_brA_BFC20EFC <= 0); + psx_taken_BFC20EFC = ((int32_t)psx_brA_BFC20EFC <= 0); /* 0xBFC20F00: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20F00u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20EFC) goto label_BFC20F18; @@ -103911,7 +107030,7 @@ label_BFC20F0C: psx_check_interrupts(cpu); /* 0xBFC20F0C: 1040FFFB beq $v0, $zero, 0xBFC20EFC */ uint32_t psx_brA_BFC20F0C = cpu->gpr[2]; uint32_t psx_brB_BFC20F0C = cpu->gpr[0]; - int psx_taken_BFC20F0C = (psx_brA_BFC20F0C == psx_brB_BFC20F0C); + psx_taken_BFC20F0C = (psx_brA_BFC20F0C == psx_brB_BFC20F0C); /* 0xBFC20F10: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC20F0C) goto label_BFC20EFC; @@ -103947,6 +107066,10 @@ void func_1FC20F24(CPUState* cpu) { default: break; } } + int psx_taken_BFC20F44 = 0; + int psx_taken_BFC20F54 = 0; + int psx_taken_BFC20F60 = 0; + int psx_taken_BFC20F70 = 0; label_BFC20F24: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -103976,7 +107099,7 @@ label_BFC20F40: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC20F44: 1A00000D blez $s0, 0xBFC20F7C */ uint32_t psx_brA_BFC20F44 = cpu->gpr[16]; - int psx_taken_BFC20F44 = ((int32_t)psx_brA_BFC20F44 <= 0); + psx_taken_BFC20F44 = ((int32_t)psx_brA_BFC20F44 <= 0); /* 0xBFC20F48: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20F48u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20F44) goto label_BFC20F7C; @@ -103997,7 +107120,7 @@ label_BFC20F54: psx_check_interrupts(cpu); /* 0xBFC20F54: 14400009 bne $v0, $zero, 0xBFC20F7C */ uint32_t psx_brA_BFC20F54 = cpu->gpr[2]; uint32_t psx_brB_BFC20F54 = cpu->gpr[0]; - int psx_taken_BFC20F54 = (psx_brA_BFC20F54 != psx_brB_BFC20F54); + psx_taken_BFC20F54 = (psx_brA_BFC20F54 != psx_brB_BFC20F54); /* 0xBFC20F58: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20F58u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20F54) goto label_BFC20F7C; @@ -104015,7 +107138,7 @@ label_BFC20F60: psx_check_interrupts(cpu); /* 0xBFC20F60: 1A000006 blez $s0, 0xBFC20F7C */ uint32_t psx_brA_BFC20F60 = cpu->gpr[16]; - int psx_taken_BFC20F60 = ((int32_t)psx_brA_BFC20F60 <= 0); + psx_taken_BFC20F60 = ((int32_t)psx_brA_BFC20F60 <= 0); /* 0xBFC20F64: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20F64u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20F60) goto label_BFC20F7C; @@ -104036,7 +107159,7 @@ label_BFC20F70: psx_check_interrupts(cpu); /* 0xBFC20F70: 1040FFFB beq $v0, $zero, 0xBFC20F60 */ uint32_t psx_brA_BFC20F70 = cpu->gpr[2]; uint32_t psx_brB_BFC20F70 = cpu->gpr[0]; - int psx_taken_BFC20F70 = (psx_brA_BFC20F70 == psx_brB_BFC20F70); + psx_taken_BFC20F70 = (psx_brA_BFC20F70 == psx_brB_BFC20F70); /* 0xBFC20F74: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC20F70) goto label_BFC20F60; @@ -104074,6 +107197,10 @@ void func_1FC20F8C(CPUState* cpu) { default: break; } } + int psx_taken_BFC20FA4 = 0; + int psx_taken_BFC20FB4 = 0; + int psx_taken_BFC20FC0 = 0; + int psx_taken_BFC20FD0 = 0; label_BFC20F8C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -104099,7 +107226,7 @@ label_BFC20FA0: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC20FA4: 1A00000D blez $s0, 0xBFC20FDC */ uint32_t psx_brA_BFC20FA4 = cpu->gpr[16]; - int psx_taken_BFC20FA4 = ((int32_t)psx_brA_BFC20FA4 <= 0); + psx_taken_BFC20FA4 = ((int32_t)psx_brA_BFC20FA4 <= 0); /* 0xBFC20FA8: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20FA8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20FA4) goto label_BFC20FDC; @@ -104120,7 +107247,7 @@ label_BFC20FB4: psx_check_interrupts(cpu); /* 0xBFC20FB4: 14400009 bne $v0, $zero, 0xBFC20FDC */ uint32_t psx_brA_BFC20FB4 = cpu->gpr[2]; uint32_t psx_brB_BFC20FB4 = cpu->gpr[0]; - int psx_taken_BFC20FB4 = (psx_brA_BFC20FB4 != psx_brB_BFC20FB4); + psx_taken_BFC20FB4 = (psx_brA_BFC20FB4 != psx_brB_BFC20FB4); /* 0xBFC20FB8: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20FB8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20FB4) goto label_BFC20FDC; @@ -104138,7 +107265,7 @@ label_BFC20FC0: psx_check_interrupts(cpu); /* 0xBFC20FC0: 1A000006 blez $s0, 0xBFC20FDC */ uint32_t psx_brA_BFC20FC0 = cpu->gpr[16]; - int psx_taken_BFC20FC0 = ((int32_t)psx_brA_BFC20FC0 <= 0); + psx_taken_BFC20FC0 = ((int32_t)psx_brA_BFC20FC0 <= 0); /* 0xBFC20FC4: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC20FC4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC20FC0) goto label_BFC20FDC; @@ -104159,7 +107286,7 @@ label_BFC20FD0: psx_check_interrupts(cpu); /* 0xBFC20FD0: 1040FFFB beq $v0, $zero, 0xBFC20FC0 */ uint32_t psx_brA_BFC20FD0 = cpu->gpr[2]; uint32_t psx_brB_BFC20FD0 = cpu->gpr[0]; - int psx_taken_BFC20FD0 = (psx_brA_BFC20FD0 == psx_brB_BFC20FD0); + psx_taken_BFC20FD0 = (psx_brA_BFC20FD0 == psx_brB_BFC20FD0); /* 0xBFC20FD4: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC20FD0) goto label_BFC20FC0; @@ -104195,6 +107322,10 @@ void func_1FC20FE8(CPUState* cpu) { default: break; } } + int psx_taken_BFC21000 = 0; + int psx_taken_BFC21010 = 0; + int psx_taken_BFC2101C = 0; + int psx_taken_BFC2102C = 0; label_BFC20FE8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -104220,7 +107351,7 @@ label_BFC20FFC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC21000: 1A00000D blez $s0, 0xBFC21038 */ uint32_t psx_brA_BFC21000 = cpu->gpr[16]; - int psx_taken_BFC21000 = ((int32_t)psx_brA_BFC21000 <= 0); + psx_taken_BFC21000 = ((int32_t)psx_brA_BFC21000 <= 0); /* 0xBFC21004: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21004u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21000) goto label_BFC21038; @@ -104241,7 +107372,7 @@ label_BFC21010: psx_check_interrupts(cpu); /* 0xBFC21010: 14400009 bne $v0, $zero, 0xBFC21038 */ uint32_t psx_brA_BFC21010 = cpu->gpr[2]; uint32_t psx_brB_BFC21010 = cpu->gpr[0]; - int psx_taken_BFC21010 = (psx_brA_BFC21010 != psx_brB_BFC21010); + psx_taken_BFC21010 = (psx_brA_BFC21010 != psx_brB_BFC21010); /* 0xBFC21014: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21014u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21010) goto label_BFC21038; @@ -104259,7 +107390,7 @@ label_BFC2101C: psx_check_interrupts(cpu); /* 0xBFC2101C: 1A000006 blez $s0, 0xBFC21038 */ uint32_t psx_brA_BFC2101C = cpu->gpr[16]; - int psx_taken_BFC2101C = ((int32_t)psx_brA_BFC2101C <= 0); + psx_taken_BFC2101C = ((int32_t)psx_brA_BFC2101C <= 0); /* 0xBFC21020: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21020u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2101C) goto label_BFC21038; @@ -104280,7 +107411,7 @@ label_BFC2102C: psx_check_interrupts(cpu); /* 0xBFC2102C: 1040FFFB beq $v0, $zero, 0xBFC2101C */ uint32_t psx_brA_BFC2102C = cpu->gpr[2]; uint32_t psx_brB_BFC2102C = cpu->gpr[0]; - int psx_taken_BFC2102C = (psx_brA_BFC2102C == psx_brB_BFC2102C); + psx_taken_BFC2102C = (psx_brA_BFC2102C == psx_brB_BFC2102C); /* 0xBFC21030: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC2102C) goto label_BFC2101C; @@ -104317,6 +107448,11 @@ void func_1FC21044(CPUState* cpu) { default: break; } } + int psx_taken_BFC21064 = 0; + int psx_taken_BFC21074 = 0; + int psx_taken_BFC21080 = 0; + int psx_taken_BFC21090 = 0; + int psx_taken_BFC21098 = 0; label_BFC21044: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -104346,7 +107482,7 @@ label_BFC21060: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC21064: 1A00000C blez $s0, 0xBFC21098 */ uint32_t psx_brA_BFC21064 = cpu->gpr[16]; - int psx_taken_BFC21064 = ((int32_t)psx_brA_BFC21064 <= 0); + psx_taken_BFC21064 = ((int32_t)psx_brA_BFC21064 <= 0); /* 0xBFC21068: 00000000 nop */ /* nop */ if (psx_taken_BFC21064) goto label_BFC21098; @@ -104367,7 +107503,7 @@ label_BFC21074: psx_check_interrupts(cpu); /* 0xBFC21074: 14400008 bne $v0, $zero, 0xBFC21098 */ uint32_t psx_brA_BFC21074 = cpu->gpr[2]; uint32_t psx_brB_BFC21074 = cpu->gpr[0]; - int psx_taken_BFC21074 = (psx_brA_BFC21074 != psx_brB_BFC21074); + psx_taken_BFC21074 = (psx_brA_BFC21074 != psx_brB_BFC21074); /* 0xBFC21078: 00000000 nop */ /* nop */ if (psx_taken_BFC21074) goto label_BFC21098; @@ -104380,7 +107516,7 @@ label_BFC2107C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); /* 0xBFC21080: 1A000005 blez $s0, 0xBFC21098 */ uint32_t psx_brA_BFC21080 = cpu->gpr[16]; - int psx_taken_BFC21080 = ((int32_t)psx_brA_BFC21080 <= 0); + psx_taken_BFC21080 = ((int32_t)psx_brA_BFC21080 <= 0); /* 0xBFC21084: 00000000 nop */ /* nop */ if (psx_taken_BFC21080) goto label_BFC21098; @@ -104401,7 +107537,7 @@ label_BFC21090: psx_check_interrupts(cpu); /* 0xBFC21090: 1040FFFA beq $v0, $zero, 0xBFC2107C */ uint32_t psx_brA_BFC21090 = cpu->gpr[2]; uint32_t psx_brB_BFC21090 = cpu->gpr[0]; - int psx_taken_BFC21090 = (psx_brA_BFC21090 == psx_brB_BFC21090); + psx_taken_BFC21090 = (psx_brA_BFC21090 == psx_brB_BFC21090); /* 0xBFC21094: 00000000 nop */ /* nop */ if (psx_taken_BFC21090) goto label_BFC2107C; @@ -104412,7 +107548,7 @@ label_BFC21098: psx_check_interrupts(cpu); /* 0xBFC21098: 16000005 bne $s0, $zero, 0xBFC210B0 */ uint32_t psx_brA_BFC21098 = cpu->gpr[16]; uint32_t psx_brB_BFC21098 = cpu->gpr[0]; - int psx_taken_BFC21098 = (psx_brA_BFC21098 != psx_brB_BFC21098); + psx_taken_BFC21098 = (psx_brA_BFC21098 != psx_brB_BFC21098); /* 0xBFC2109C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2109Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21098) goto label_BFC210B0; @@ -104460,6 +107596,7 @@ void func_1FC210C0(CPUState* cpu) { default: break; } } + int psx_taken_BFC210E0 = 0; label_BFC210C0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -104489,7 +107626,7 @@ label_BFC210DC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC210E0: 1A00000D blez $s0, 0xBFC21118 */ uint32_t psx_brA_BFC210E0 = cpu->gpr[16]; - int psx_taken_BFC210E0 = ((int32_t)psx_brA_BFC210E0 <= 0); + psx_taken_BFC210E0 = ((int32_t)psx_brA_BFC210E0 <= 0); /* 0xBFC210E4: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC210E4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC210E0) { cpu->pc = 0xBFC21118u; return; } @@ -104517,6 +107654,9 @@ void func_1FC210F0(CPUState* cpu) { default: break; } } + int psx_taken_BFC210F0 = 0; + int psx_taken_BFC210FC = 0; + int psx_taken_BFC2110C = 0; label_BFC210F0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -104524,7 +107664,7 @@ label_BFC210F0: psx_check_interrupts(cpu); /* 0xBFC210F0: 14400009 bne $v0, $zero, 0xBFC21118 */ uint32_t psx_brA_BFC210F0 = cpu->gpr[2]; uint32_t psx_brB_BFC210F0 = cpu->gpr[0]; - int psx_taken_BFC210F0 = (psx_brA_BFC210F0 != psx_brB_BFC210F0); + psx_taken_BFC210F0 = (psx_brA_BFC210F0 != psx_brB_BFC210F0); /* 0xBFC210F4: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC210F4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC210F0) goto label_BFC21118; @@ -104542,7 +107682,7 @@ label_BFC210FC: psx_check_interrupts(cpu); /* 0xBFC210FC: 1A000006 blez $s0, 0xBFC21118 */ uint32_t psx_brA_BFC210FC = cpu->gpr[16]; - int psx_taken_BFC210FC = ((int32_t)psx_brA_BFC210FC <= 0); + psx_taken_BFC210FC = ((int32_t)psx_brA_BFC210FC <= 0); /* 0xBFC21100: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21100u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC210FC) goto label_BFC21118; @@ -104563,7 +107703,7 @@ label_BFC2110C: psx_check_interrupts(cpu); /* 0xBFC2110C: 1040FFFB beq $v0, $zero, 0xBFC210FC */ uint32_t psx_brA_BFC2110C = cpu->gpr[2]; uint32_t psx_brB_BFC2110C = cpu->gpr[0]; - int psx_taken_BFC2110C = (psx_brA_BFC2110C == psx_brB_BFC2110C); + psx_taken_BFC2110C = (psx_brA_BFC2110C == psx_brB_BFC2110C); /* 0xBFC21110: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC2110C) goto label_BFC210FC; @@ -104601,6 +107741,10 @@ void func_1FC21128(CPUState* cpu) { default: break; } } + int psx_taken_BFC21140 = 0; + int psx_taken_BFC21150 = 0; + int psx_taken_BFC2115C = 0; + int psx_taken_BFC2116C = 0; label_BFC21128: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -104626,7 +107770,7 @@ label_BFC2113C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC21140: 1A00000D blez $s0, 0xBFC21178 */ uint32_t psx_brA_BFC21140 = cpu->gpr[16]; - int psx_taken_BFC21140 = ((int32_t)psx_brA_BFC21140 <= 0); + psx_taken_BFC21140 = ((int32_t)psx_brA_BFC21140 <= 0); /* 0xBFC21144: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21144u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21140) goto label_BFC21178; @@ -104647,7 +107791,7 @@ label_BFC21150: psx_check_interrupts(cpu); /* 0xBFC21150: 14400009 bne $v0, $zero, 0xBFC21178 */ uint32_t psx_brA_BFC21150 = cpu->gpr[2]; uint32_t psx_brB_BFC21150 = cpu->gpr[0]; - int psx_taken_BFC21150 = (psx_brA_BFC21150 != psx_brB_BFC21150); + psx_taken_BFC21150 = (psx_brA_BFC21150 != psx_brB_BFC21150); /* 0xBFC21154: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21154u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21150) goto label_BFC21178; @@ -104665,7 +107809,7 @@ label_BFC2115C: psx_check_interrupts(cpu); /* 0xBFC2115C: 1A000006 blez $s0, 0xBFC21178 */ uint32_t psx_brA_BFC2115C = cpu->gpr[16]; - int psx_taken_BFC2115C = ((int32_t)psx_brA_BFC2115C <= 0); + psx_taken_BFC2115C = ((int32_t)psx_brA_BFC2115C <= 0); /* 0xBFC21160: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21160u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2115C) goto label_BFC21178; @@ -104686,7 +107830,7 @@ label_BFC2116C: psx_check_interrupts(cpu); /* 0xBFC2116C: 1040FFFB beq $v0, $zero, 0xBFC2115C */ uint32_t psx_brA_BFC2116C = cpu->gpr[2]; uint32_t psx_brB_BFC2116C = cpu->gpr[0]; - int psx_taken_BFC2116C = (psx_brA_BFC2116C == psx_brB_BFC2116C); + psx_taken_BFC2116C = (psx_brA_BFC2116C == psx_brB_BFC2116C); /* 0xBFC21170: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC2116C) goto label_BFC2115C; @@ -104722,6 +107866,10 @@ void func_1FC21184(CPUState* cpu) { default: break; } } + int psx_taken_BFC211AC = 0; + int psx_taken_BFC211C0 = 0; + int psx_taken_BFC211CC = 0; + int psx_taken_BFC211E0 = 0; label_BFC21184: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -104755,7 +107903,7 @@ label_BFC211A8: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC211AC: 1A00000F blez $s0, 0xBFC211EC */ uint32_t psx_brA_BFC211AC = cpu->gpr[16]; - int psx_taken_BFC211AC = ((int32_t)psx_brA_BFC211AC <= 0); + psx_taken_BFC211AC = ((int32_t)psx_brA_BFC211AC <= 0); /* 0xBFC211B0: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC211B0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC211AC) goto label_BFC211EC; @@ -104778,7 +107926,7 @@ label_BFC211C0: psx_check_interrupts(cpu); /* 0xBFC211C0: 1440000A bne $v0, $zero, 0xBFC211EC */ uint32_t psx_brA_BFC211C0 = cpu->gpr[2]; uint32_t psx_brB_BFC211C0 = cpu->gpr[0]; - int psx_taken_BFC211C0 = (psx_brA_BFC211C0 != psx_brB_BFC211C0); + psx_taken_BFC211C0 = (psx_brA_BFC211C0 != psx_brB_BFC211C0); /* 0xBFC211C4: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC211C4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC211C0) goto label_BFC211EC; @@ -104796,7 +107944,7 @@ label_BFC211CC: psx_check_interrupts(cpu); /* 0xBFC211CC: 1A000007 blez $s0, 0xBFC211EC */ uint32_t psx_brA_BFC211CC = cpu->gpr[16]; - int psx_taken_BFC211CC = ((int32_t)psx_brA_BFC211CC <= 0); + psx_taken_BFC211CC = ((int32_t)psx_brA_BFC211CC <= 0); /* 0xBFC211D0: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC211D0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC211CC) goto label_BFC211EC; @@ -104819,7 +107967,7 @@ label_BFC211E0: psx_check_interrupts(cpu); /* 0xBFC211E0: 1040FFFA beq $v0, $zero, 0xBFC211CC */ uint32_t psx_brA_BFC211E0 = cpu->gpr[2]; uint32_t psx_brB_BFC211E0 = cpu->gpr[0]; - int psx_taken_BFC211E0 = (psx_brA_BFC211E0 == psx_brB_BFC211E0); + psx_taken_BFC211E0 = (psx_brA_BFC211E0 == psx_brB_BFC211E0); /* 0xBFC211E4: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC211E0) goto label_BFC211CC; @@ -104858,6 +108006,8 @@ void func_1FC21200(CPUState* cpu) { default: break; } } + int psx_taken_BFC21228 = 0; + int psx_taken_BFC2123C = 0; label_BFC21200: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -104896,7 +108046,7 @@ label_BFC21228: psx_check_interrupts(cpu); /* 0xBFC21228: 1A000007 blez $s0, 0xBFC21248 */ uint32_t psx_brA_BFC21228 = cpu->gpr[16]; - int psx_taken_BFC21228 = ((int32_t)psx_brA_BFC21228 <= 0); + psx_taken_BFC21228 = ((int32_t)psx_brA_BFC21228 <= 0); /* 0xBFC2122C: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2122Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21228) goto label_BFC21248; @@ -104919,7 +108069,7 @@ label_BFC2123C: psx_check_interrupts(cpu); /* 0xBFC2123C: 1040FFFA beq $v0, $zero, 0xBFC21228 */ uint32_t psx_brA_BFC2123C = cpu->gpr[2]; uint32_t psx_brB_BFC2123C = cpu->gpr[0]; - int psx_taken_BFC2123C = (psx_brA_BFC2123C == psx_brB_BFC2123C); + psx_taken_BFC2123C = (psx_brA_BFC2123C == psx_brB_BFC2123C); /* 0xBFC21240: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC2123C) goto label_BFC21228; @@ -104959,6 +108109,10 @@ void func_1FC2125C(CPUState* cpu) { default: break; } } + int psx_taken_BFC2127C = 0; + int psx_taken_BFC2128C = 0; + int psx_taken_BFC21298 = 0; + int psx_taken_BFC212A8 = 0; label_BFC2125C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -104988,7 +108142,7 @@ label_BFC21278: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC2127C: 1A00000D blez $s0, 0xBFC212B4 */ uint32_t psx_brA_BFC2127C = cpu->gpr[16]; - int psx_taken_BFC2127C = ((int32_t)psx_brA_BFC2127C <= 0); + psx_taken_BFC2127C = ((int32_t)psx_brA_BFC2127C <= 0); /* 0xBFC21280: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21280u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2127C) goto label_BFC212B4; @@ -105009,7 +108163,7 @@ label_BFC2128C: psx_check_interrupts(cpu); /* 0xBFC2128C: 14400009 bne $v0, $zero, 0xBFC212B4 */ uint32_t psx_brA_BFC2128C = cpu->gpr[2]; uint32_t psx_brB_BFC2128C = cpu->gpr[0]; - int psx_taken_BFC2128C = (psx_brA_BFC2128C != psx_brB_BFC2128C); + psx_taken_BFC2128C = (psx_brA_BFC2128C != psx_brB_BFC2128C); /* 0xBFC21290: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21290u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2128C) goto label_BFC212B4; @@ -105027,7 +108181,7 @@ label_BFC21298: psx_check_interrupts(cpu); /* 0xBFC21298: 1A000006 blez $s0, 0xBFC212B4 */ uint32_t psx_brA_BFC21298 = cpu->gpr[16]; - int psx_taken_BFC21298 = ((int32_t)psx_brA_BFC21298 <= 0); + psx_taken_BFC21298 = ((int32_t)psx_brA_BFC21298 <= 0); /* 0xBFC2129C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2129Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21298) goto label_BFC212B4; @@ -105048,7 +108202,7 @@ label_BFC212A8: psx_check_interrupts(cpu); /* 0xBFC212A8: 1040FFFB beq $v0, $zero, 0xBFC21298 */ uint32_t psx_brA_BFC212A8 = cpu->gpr[2]; uint32_t psx_brB_BFC212A8 = cpu->gpr[0]; - int psx_taken_BFC212A8 = (psx_brA_BFC212A8 == psx_brB_BFC212A8); + psx_taken_BFC212A8 = (psx_brA_BFC212A8 == psx_brB_BFC212A8); /* 0xBFC212AC: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC212A8) goto label_BFC21298; @@ -105086,6 +108240,10 @@ void func_1FC212C4(CPUState* cpu) { default: break; } } + int psx_taken_BFC212DC = 0; + int psx_taken_BFC212EC = 0; + int psx_taken_BFC212F8 = 0; + int psx_taken_BFC21308 = 0; label_BFC212C4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -105111,7 +108269,7 @@ label_BFC212D8: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC212DC: 1A00000D blez $s0, 0xBFC21314 */ uint32_t psx_brA_BFC212DC = cpu->gpr[16]; - int psx_taken_BFC212DC = ((int32_t)psx_brA_BFC212DC <= 0); + psx_taken_BFC212DC = ((int32_t)psx_brA_BFC212DC <= 0); /* 0xBFC212E0: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC212E0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC212DC) goto label_BFC21314; @@ -105132,7 +108290,7 @@ label_BFC212EC: psx_check_interrupts(cpu); /* 0xBFC212EC: 14400009 bne $v0, $zero, 0xBFC21314 */ uint32_t psx_brA_BFC212EC = cpu->gpr[2]; uint32_t psx_brB_BFC212EC = cpu->gpr[0]; - int psx_taken_BFC212EC = (psx_brA_BFC212EC != psx_brB_BFC212EC); + psx_taken_BFC212EC = (psx_brA_BFC212EC != psx_brB_BFC212EC); /* 0xBFC212F0: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC212F0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC212EC) goto label_BFC21314; @@ -105150,7 +108308,7 @@ label_BFC212F8: psx_check_interrupts(cpu); /* 0xBFC212F8: 1A000006 blez $s0, 0xBFC21314 */ uint32_t psx_brA_BFC212F8 = cpu->gpr[16]; - int psx_taken_BFC212F8 = ((int32_t)psx_brA_BFC212F8 <= 0); + psx_taken_BFC212F8 = ((int32_t)psx_brA_BFC212F8 <= 0); /* 0xBFC212FC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC212FCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC212F8) goto label_BFC21314; @@ -105171,7 +108329,7 @@ label_BFC21308: psx_check_interrupts(cpu); /* 0xBFC21308: 1040FFFB beq $v0, $zero, 0xBFC212F8 */ uint32_t psx_brA_BFC21308 = cpu->gpr[2]; uint32_t psx_brB_BFC21308 = cpu->gpr[0]; - int psx_taken_BFC21308 = (psx_brA_BFC21308 == psx_brB_BFC21308); + psx_taken_BFC21308 = (psx_brA_BFC21308 == psx_brB_BFC21308); /* 0xBFC2130C: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC21308) goto label_BFC212F8; @@ -105207,6 +108365,10 @@ void func_1FC21320(CPUState* cpu) { default: break; } } + int psx_taken_BFC21340 = 0; + int psx_taken_BFC21364 = 0; + int psx_taken_BFC21370 = 0; + int psx_taken_BFC21384 = 0; label_BFC21320: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -105236,7 +108398,7 @@ label_BFC2133C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC21340: 1A000013 blez $s0, 0xBFC21390 */ uint32_t psx_brA_BFC21340 = cpu->gpr[16]; - int psx_taken_BFC21340 = ((int32_t)psx_brA_BFC21340 <= 0); + psx_taken_BFC21340 = ((int32_t)psx_brA_BFC21340 <= 0); /* 0xBFC21344: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21344u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21340) goto label_BFC21390; @@ -105267,7 +108429,7 @@ label_BFC21364: psx_check_interrupts(cpu); /* 0xBFC21364: 1440000A bne $v0, $zero, 0xBFC21390 */ uint32_t psx_brA_BFC21364 = cpu->gpr[2]; uint32_t psx_brB_BFC21364 = cpu->gpr[0]; - int psx_taken_BFC21364 = (psx_brA_BFC21364 != psx_brB_BFC21364); + psx_taken_BFC21364 = (psx_brA_BFC21364 != psx_brB_BFC21364); /* 0xBFC21368: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21368u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21364) goto label_BFC21390; @@ -105285,7 +108447,7 @@ label_BFC21370: psx_check_interrupts(cpu); /* 0xBFC21370: 1A000007 blez $s0, 0xBFC21390 */ uint32_t psx_brA_BFC21370 = cpu->gpr[16]; - int psx_taken_BFC21370 = ((int32_t)psx_brA_BFC21370 <= 0); + psx_taken_BFC21370 = ((int32_t)psx_brA_BFC21370 <= 0); /* 0xBFC21374: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21374u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21370) goto label_BFC21390; @@ -105308,7 +108470,7 @@ label_BFC21384: psx_check_interrupts(cpu); /* 0xBFC21384: 1040FFFA beq $v0, $zero, 0xBFC21370 */ uint32_t psx_brA_BFC21384 = cpu->gpr[2]; uint32_t psx_brB_BFC21384 = cpu->gpr[0]; - int psx_taken_BFC21384 = (psx_brA_BFC21384 == psx_brB_BFC21384); + psx_taken_BFC21384 = (psx_brA_BFC21384 == psx_brB_BFC21384); /* 0xBFC21388: 2610FFFF addiu $s0, $s0, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-1)); if (psx_taken_BFC21384) goto label_BFC21370; @@ -105439,6 +108601,12 @@ void func_1FC213FC(CPUState* cpu) { default: break; } } + int psx_taken_BFC21420 = 0; + int psx_taken_BFC21444 = 0; + int psx_taken_BFC21458 = 0; + int psx_taken_BFC21464 = 0; + int psx_taken_BFC2146C = 0; + int psx_taken_BFC21480 = 0; label_BFC213FC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -105464,7 +108632,7 @@ label_BFC213FC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24912)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2141Cu); return; } g_debug_last_store_pc = 0xBFC2141Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC21420: 1A400011 blez $s2, 0xBFC21468 */ uint32_t psx_brA_BFC21420 = cpu->gpr[18]; - int psx_taken_BFC21420 = ((int32_t)psx_brA_BFC21420 <= 0); + psx_taken_BFC21420 = ((int32_t)psx_brA_BFC21420 <= 0); /* 0xBFC21424: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC21420) goto label_BFC21468; @@ -105501,7 +108669,7 @@ label_BFC21438: /* nop */ /* 0xBFC21444: 11D10009 beq $t6, $s1, 0xBFC2146C */ uint32_t psx_brA_BFC21444 = cpu->gpr[14]; uint32_t psx_brB_BFC21444 = cpu->gpr[17]; - int psx_taken_BFC21444 = (psx_brA_BFC21444 == psx_brB_BFC21444); + psx_taken_BFC21444 = (psx_brA_BFC21444 == psx_brB_BFC21444); /* 0xBFC21448: 0212082A slt $at, $s0, $s2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[18] ? 1 : 0); if (psx_taken_BFC21444) goto label_BFC2146C; @@ -105518,7 +108686,7 @@ label_BFC2144C: /* nop */ /* 0xBFC21458: 15E00004 bne $t7, $zero, 0xBFC2146C */ uint32_t psx_brA_BFC21458 = cpu->gpr[15]; uint32_t psx_brB_BFC21458 = cpu->gpr[0]; - int psx_taken_BFC21458 = (psx_brA_BFC21458 != psx_brB_BFC21458); + psx_taken_BFC21458 = (psx_brA_BFC21458 != psx_brB_BFC21458); /* 0xBFC2145C: 0212082A slt $at, $s0, $s2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[18] ? 1 : 0); if (psx_taken_BFC21458) goto label_BFC2146C; @@ -105531,7 +108699,7 @@ label_BFC21460: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC21464: 1612FFF0 bne $s0, $s2, 0xBFC21428 */ uint32_t psx_brA_BFC21464 = cpu->gpr[16]; uint32_t psx_brB_BFC21464 = cpu->gpr[18]; - int psx_taken_BFC21464 = (psx_brA_BFC21464 != psx_brB_BFC21464); + psx_taken_BFC21464 = (psx_brA_BFC21464 != psx_brB_BFC21464); label_BFC21468: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -105547,7 +108715,7 @@ label_BFC2146C: psx_check_interrupts(cpu); /* 0xBFC2146C: 14200006 bne $at, $zero, 0xBFC21488 */ uint32_t psx_brA_BFC2146C = cpu->gpr[1]; uint32_t psx_brB_BFC2146C = cpu->gpr[0]; - int psx_taken_BFC2146C = (psx_brA_BFC2146C != psx_brB_BFC2146C); + psx_taken_BFC2146C = (psx_brA_BFC2146C != psx_brB_BFC2146C); /* 0xBFC21470: 3C018006 lui $at, 0x8006 */ cpu->gpr[1] = 0x80060000u; if (psx_taken_BFC2146C) goto label_BFC21488; @@ -105564,7 +108732,7 @@ label_BFC21474: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24912)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2147Cu); return; } g_debug_last_store_pc = 0xBFC2147Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC21480: 10000002 beq $zero, $zero, 0xBFC2148C */ uint32_t psx_brA_BFC21480 = cpu->gpr[0]; uint32_t psx_brB_BFC21480 = cpu->gpr[0]; - int psx_taken_BFC21480 = (psx_brA_BFC21480 == psx_brB_BFC21480); + psx_taken_BFC21480 = (psx_brA_BFC21480 == psx_brB_BFC21480); /* 0xBFC21484: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC21480) goto label_BFC2148C; @@ -105646,6 +108814,30 @@ void func_1FC214B0(CPUState* cpu) { default: break; } } + int psx_taken_BFC214C4 = 0; + int psx_taken_BFC214E0 = 0; + int psx_taken_BFC214E8 = 0; + int psx_taken_BFC21518 = 0; + int psx_taken_BFC2152C = 0; + int psx_taken_BFC21570 = 0; + int psx_taken_BFC21590 = 0; + int psx_taken_BFC215F0 = 0; + int psx_taken_BFC21620 = 0; + int psx_taken_BFC21634 = 0; + int psx_taken_BFC21658 = 0; + int psx_taken_BFC2166C = 0; + int psx_taken_BFC2167C = 0; + int psx_taken_BFC21684 = 0; + int psx_taken_BFC21698 = 0; + int psx_taken_BFC216AC = 0; + int psx_taken_BFC21778 = 0; + int psx_taken_BFC217B8 = 0; + int psx_taken_BFC217F8 = 0; + int psx_taken_BFC21838 = 0; + int psx_taken_BFC2184C = 0; + int psx_taken_BFC21854 = 0; + int psx_taken_BFC2185C = 0; + int psx_taken_BFC21878 = 0; label_BFC214B0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -105663,7 +108855,7 @@ label_BFC214B0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC214C0u); return; } g_debug_last_store_pc = 0xBFC214C0u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC214C4: 15C10011 bne $t6, $at, 0xBFC2150C */ uint32_t psx_brA_BFC214C4 = cpu->gpr[14]; uint32_t psx_brB_BFC214C4 = cpu->gpr[1]; - int psx_taken_BFC214C4 = (psx_brA_BFC214C4 != psx_brB_BFC214C4); + psx_taken_BFC214C4 = (psx_brA_BFC214C4 != psx_brB_BFC214C4); /* 0xBFC214C8: AFA40028 sw $a0, 40($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC214C8u); return; } g_debug_last_store_pc = 0xBFC214C8u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC214C4) goto label_BFC2150C; @@ -105684,7 +108876,7 @@ label_BFC214CC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (61) ? 1 : 0); /* 0xBFC214E0: 10200003 beq $at, $zero, 0xBFC214F0 */ uint32_t psx_brA_BFC214E0 = cpu->gpr[1]; uint32_t psx_brB_BFC214E0 = cpu->gpr[0]; - int psx_taken_BFC214E0 = (psx_brA_BFC214E0 == psx_brB_BFC214E0); + psx_taken_BFC214E0 = (psx_brA_BFC214E0 == psx_brB_BFC214E0); /* 0xBFC214E4: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC214E0) goto label_BFC214F0; @@ -105695,7 +108887,7 @@ label_BFC214E8: psx_check_interrupts(cpu); /* 0xBFC214E8: 10000008 beq $zero, $zero, 0xBFC2150C */ uint32_t psx_brA_BFC214E8 = cpu->gpr[0]; uint32_t psx_brB_BFC214E8 = cpu->gpr[0]; - int psx_taken_BFC214E8 = (psx_brA_BFC214E8 == psx_brB_BFC214E8); + psx_taken_BFC214E8 = (psx_brA_BFC214E8 == psx_brB_BFC214E8); /* 0xBFC214EC: AC22A134 sw $v0, -24268($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24268)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC214ECu); return; } g_debug_last_store_pc = 0xBFC214ECu; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC214E8) goto label_BFC2150C; @@ -105738,7 +108930,7 @@ label_BFC2150C: /* nop */ /* 0xBFC21518: 15E0001A bne $t7, $zero, 0xBFC21584 */ uint32_t psx_brA_BFC21518 = cpu->gpr[15]; uint32_t psx_brB_BFC21518 = cpu->gpr[0]; - int psx_taken_BFC21518 = (psx_brA_BFC21518 != psx_brB_BFC21518); + psx_taken_BFC21518 = (psx_brA_BFC21518 != psx_brB_BFC21518); /* 0xBFC2151C: 00000000 nop */ /* nop */ if (psx_taken_BFC21518) goto label_BFC21584; @@ -105755,7 +108947,7 @@ label_BFC21520: /* nop */ /* 0xBFC2152C: 1440000D bne $v0, $zero, 0xBFC21564 */ uint32_t psx_brA_BFC2152C = cpu->gpr[2]; uint32_t psx_brB_BFC2152C = cpu->gpr[0]; - int psx_taken_BFC2152C = (psx_brA_BFC2152C != psx_brB_BFC2152C); + psx_taken_BFC2152C = (psx_brA_BFC2152C != psx_brB_BFC2152C); /* 0xBFC21530: 24420001 addiu $v0, $v0, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); if (psx_taken_BFC2152C) goto label_BFC21564; @@ -105819,7 +109011,7 @@ label_BFC21564: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (3) ? 1 : 0); /* 0xBFC21570: 142000D3 bne $at, $zero, 0xBFC218C0 */ uint32_t psx_brA_BFC21570 = cpu->gpr[1]; uint32_t psx_brB_BFC21570 = cpu->gpr[0]; - int psx_taken_BFC21570 = (psx_brA_BFC21570 != psx_brB_BFC21570); + psx_taken_BFC21570 = (psx_brA_BFC21570 != psx_brB_BFC21570); /* 0xBFC21574: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21574u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21570) goto label_BFC218C0; @@ -105847,7 +109039,7 @@ label_BFC21584: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC21590: 19000025 blez $t0, 0xBFC21628 */ uint32_t psx_brA_BFC21590 = cpu->gpr[8]; - int psx_taken_BFC21590 = ((int32_t)psx_brA_BFC21590 <= 0); + psx_taken_BFC21590 = ((int32_t)psx_brA_BFC21590 <= 0); /* 0xBFC21594: 00000000 nop */ /* nop */ if (psx_taken_BFC21590) goto label_BFC21628; @@ -105902,7 +109094,7 @@ label_BFC21598: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1022)); /* 0xBFC215F0: 11C10007 beq $t6, $at, 0xBFC21610 */ uint32_t psx_brA_BFC215F0 = cpu->gpr[14]; uint32_t psx_brB_BFC215F0 = cpu->gpr[1]; - int psx_taken_BFC215F0 = (psx_brA_BFC215F0 == psx_brB_BFC215F0); + psx_taken_BFC215F0 = (psx_brA_BFC215F0 == psx_brB_BFC215F0); /* 0xBFC215F4: 00000000 nop */ /* nop */ if (psx_taken_BFC215F0) goto label_BFC21610; @@ -105944,7 +109136,7 @@ label_BFC21610: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[15] ? 1 : 0); /* 0xBFC21620: 1420FFDD bne $at, $zero, 0xBFC21598 */ uint32_t psx_brA_BFC21620 = cpu->gpr[1]; uint32_t psx_brB_BFC21620 = cpu->gpr[0]; - int psx_taken_BFC21620 = (psx_brA_BFC21620 != psx_brB_BFC21620); + psx_taken_BFC21620 = (psx_brA_BFC21620 != psx_brB_BFC21620); /* 0xBFC21624: 00000000 nop */ /* nop */ if (psx_taken_BFC21620) goto label_BFC21598; @@ -105961,7 +109153,7 @@ label_BFC21628: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC21634: 14810008 bne $a0, $at, 0xBFC21658 */ uint32_t psx_brA_BFC21634 = cpu->gpr[4]; uint32_t psx_brB_BFC21634 = cpu->gpr[1]; - int psx_taken_BFC21634 = (psx_brA_BFC21634 != psx_brB_BFC21634); + psx_taken_BFC21634 = (psx_brA_BFC21634 != psx_brB_BFC21634); /* 0xBFC21638: 24010007 addiu $at, $zero, 7 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (7)); if (psx_taken_BFC21634) goto label_BFC21658; @@ -105997,7 +109189,7 @@ label_BFC21658: psx_check_interrupts(cpu); /* 0xBFC21658: 1481000A bne $a0, $at, 0xBFC21684 */ uint32_t psx_brA_BFC21658 = cpu->gpr[4]; uint32_t psx_brB_BFC21658 = cpu->gpr[1]; - int psx_taken_BFC21658 = (psx_brA_BFC21658 != psx_brB_BFC21658); + psx_taken_BFC21658 = (psx_brA_BFC21658 != psx_brB_BFC21658); /* 0xBFC2165C: 00000000 nop */ /* nop */ if (psx_taken_BFC21658) goto label_BFC21684; @@ -106020,7 +109212,7 @@ label_BFC21668: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2166C: 10410094 beq $v0, $at, 0xBFC218C0 */ uint32_t psx_brA_BFC2166C = cpu->gpr[2]; uint32_t psx_brB_BFC2166C = cpu->gpr[1]; - int psx_taken_BFC2166C = (psx_brA_BFC2166C == psx_brB_BFC2166C); + psx_taken_BFC2166C = (psx_brA_BFC2166C == psx_brB_BFC2166C); /* 0xBFC21670: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21670u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2166C) goto label_BFC218C0; @@ -106041,7 +109233,7 @@ label_BFC2167C: psx_check_interrupts(cpu); /* 0xBFC2167C: 10000090 beq $zero, $zero, 0xBFC218C0 */ uint32_t psx_brA_BFC2167C = cpu->gpr[0]; uint32_t psx_brB_BFC2167C = cpu->gpr[0]; - int psx_taken_BFC2167C = (psx_brA_BFC2167C == psx_brB_BFC2167C); + psx_taken_BFC2167C = (psx_brA_BFC2167C == psx_brB_BFC2167C); /* 0xBFC21680: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21680u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2167C) goto label_BFC218C0; @@ -106052,7 +109244,7 @@ label_BFC21684: psx_check_interrupts(cpu); /* 0xBFC21684: 1080008E beq $a0, $zero, 0xBFC218C0 */ uint32_t psx_brA_BFC21684 = cpu->gpr[4]; uint32_t psx_brB_BFC21684 = cpu->gpr[0]; - int psx_taken_BFC21684 = (psx_brA_BFC21684 == psx_brB_BFC21684); + psx_taken_BFC21684 = (psx_brA_BFC21684 == psx_brB_BFC21684); /* 0xBFC21688: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21688u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21684) goto label_BFC218C0; @@ -106069,7 +109261,7 @@ label_BFC2168C: /* nop */ /* 0xBFC21698: 13000089 beq $t8, $zero, 0xBFC218C0 */ uint32_t psx_brA_BFC21698 = cpu->gpr[24]; uint32_t psx_brB_BFC21698 = cpu->gpr[0]; - int psx_taken_BFC21698 = (psx_brA_BFC21698 == psx_brB_BFC21698); + psx_taken_BFC21698 = (psx_brA_BFC21698 == psx_brB_BFC21698); /* 0xBFC2169C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2169Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21698) goto label_BFC218C0; @@ -106086,7 +109278,7 @@ label_BFC216A0: /* nop */ /* 0xBFC216AC: 13200074 beq $t9, $zero, 0xBFC21880 */ uint32_t psx_brA_BFC216AC = cpu->gpr[25]; uint32_t psx_brB_BFC216AC = cpu->gpr[0]; - int psx_taken_BFC216AC = (psx_brA_BFC216AC == psx_brB_BFC216AC); + psx_taken_BFC216AC = (psx_brA_BFC216AC == psx_brB_BFC216AC); /* 0xBFC216B0: 00000000 nop */ /* nop */ if (psx_taken_BFC216AC) goto label_BFC21880; @@ -106297,7 +109489,7 @@ label_BFC21778: psx_check_interrupts(cpu); /* 0xBFC21778: 10000031 beq $zero, $zero, 0xBFC21840 */ uint32_t psx_brA_BFC21778 = cpu->gpr[0]; uint32_t psx_brB_BFC21778 = cpu->gpr[0]; - int psx_taken_BFC21778 = (psx_brA_BFC21778 == psx_brB_BFC21778); + psx_taken_BFC21778 = (psx_brA_BFC21778 == psx_brB_BFC21778); /* 0xBFC2177C: 00000000 nop */ /* nop */ if (psx_taken_BFC21778) goto label_BFC21840; @@ -106366,7 +109558,7 @@ label_BFC217B0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (27584)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC217B4u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC217B8: 10000029 beq $zero, $zero, 0xBFC21860 */ uint32_t psx_brA_BFC217B8 = cpu->gpr[0]; uint32_t psx_brB_BFC217B8 = cpu->gpr[0]; - int psx_taken_BFC217B8 = (psx_brA_BFC217B8 == psx_brB_BFC217B8); + psx_taken_BFC217B8 = (psx_brA_BFC217B8 == psx_brB_BFC217B8); /* 0xBFC217BC: 00000000 nop */ /* nop */ if (psx_taken_BFC217B8) goto label_BFC21860; @@ -106435,7 +109627,7 @@ label_BFC217F0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (27584)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC217F4u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC217F8: 10000019 beq $zero, $zero, 0xBFC21860 */ uint32_t psx_brA_BFC217F8 = cpu->gpr[0]; uint32_t psx_brB_BFC217F8 = cpu->gpr[0]; - int psx_taken_BFC217F8 = (psx_brA_BFC217F8 == psx_brB_BFC217F8); + psx_taken_BFC217F8 = (psx_brA_BFC217F8 == psx_brB_BFC217F8); /* 0xBFC217FC: 00000000 nop */ /* nop */ if (psx_taken_BFC217F8) goto label_BFC21860; @@ -106504,7 +109696,7 @@ label_BFC21830: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (27584)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21834u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC21838: 10000009 beq $zero, $zero, 0xBFC21860 */ uint32_t psx_brA_BFC21838 = cpu->gpr[0]; uint32_t psx_brB_BFC21838 = cpu->gpr[0]; - int psx_taken_BFC21838 = (psx_brA_BFC21838 == psx_brB_BFC21838); + psx_taken_BFC21838 = (psx_brA_BFC21838 == psx_brB_BFC21838); /* 0xBFC2183C: 00000000 nop */ /* nop */ if (psx_taken_BFC21838) goto label_BFC21860; @@ -106521,7 +109713,7 @@ label_BFC21840: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC2184C: 1081FFCC beq $a0, $at, 0xBFC21780 */ uint32_t psx_brA_BFC2184C = cpu->gpr[4]; uint32_t psx_brB_BFC2184C = cpu->gpr[1]; - int psx_taken_BFC2184C = (psx_brA_BFC2184C == psx_brB_BFC2184C); + psx_taken_BFC2184C = (psx_brA_BFC2184C == psx_brB_BFC2184C); /* 0xBFC21850: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC2184C) goto label_BFC21780; @@ -106532,7 +109724,7 @@ label_BFC21854: psx_check_interrupts(cpu); /* 0xBFC21854: 1081FFDA beq $a0, $at, 0xBFC217C0 */ uint32_t psx_brA_BFC21854 = cpu->gpr[4]; uint32_t psx_brB_BFC21854 = cpu->gpr[1]; - int psx_taken_BFC21854 = (psx_brA_BFC21854 == psx_brB_BFC21854); + psx_taken_BFC21854 = (psx_brA_BFC21854 == psx_brB_BFC21854); /* 0xBFC21858: 24010006 addiu $at, $zero, 6 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (6)); if (psx_taken_BFC21854) goto label_BFC217C0; @@ -106543,7 +109735,7 @@ label_BFC2185C: psx_check_interrupts(cpu); /* 0xBFC2185C: 1081FFE8 beq $a0, $at, 0xBFC21800 */ uint32_t psx_brA_BFC2185C = cpu->gpr[4]; uint32_t psx_brB_BFC2185C = cpu->gpr[1]; - int psx_taken_BFC2185C = (psx_brA_BFC2185C == psx_brB_BFC2185C); + psx_taken_BFC2185C = (psx_brA_BFC2185C == psx_brB_BFC2185C); label_BFC21860: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -106569,7 +109761,7 @@ label_BFC21864: cpu->gpr[1] = 0x80060000u; /* 0xBFC21878: 10000010 beq $zero, $zero, 0xBFC218BC */ uint32_t psx_brA_BFC21878 = cpu->gpr[0]; uint32_t psx_brB_BFC21878 = cpu->gpr[0]; - int psx_taken_BFC21878 = (psx_brA_BFC21878 == psx_brB_BFC21878); + psx_taken_BFC21878 = (psx_brA_BFC21878 == psx_brB_BFC21878); /* 0xBFC2187C: AC246BC0 sw $a0, 27584($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (27584)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2187Cu); return; } g_debug_last_store_pc = 0xBFC2187Cu; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC21878) goto label_BFC218BC; @@ -106652,6 +109844,10 @@ void func_1FC218CC(CPUState* cpu) { default: break; } } + int psx_taken_BFC218D8 = 0; + int psx_taken_BFC218EC = 0; + int psx_taken_BFC21908 = 0; + int psx_taken_BFC2191C = 0; label_BFC218CC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -106665,7 +109861,7 @@ label_BFC218CC: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC218D8: 15C00014 bne $t6, $zero, 0xBFC2192C */ uint32_t psx_brA_BFC218D8 = cpu->gpr[14]; uint32_t psx_brB_BFC218D8 = cpu->gpr[0]; - int psx_taken_BFC218D8 = (psx_brA_BFC218D8 != psx_brB_BFC218D8); + psx_taken_BFC218D8 = (psx_brA_BFC218D8 != psx_brB_BFC218D8); /* 0xBFC218DC: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC218DCu); return; } g_debug_last_store_pc = 0xBFC218DCu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC218D8) goto label_BFC2192C; @@ -106682,7 +109878,7 @@ label_BFC218E0: cpu->gpr[15] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC218EC: 11E00009 beq $t7, $zero, 0xBFC21914 */ uint32_t psx_brA_BFC218EC = cpu->gpr[15]; uint32_t psx_brB_BFC218EC = cpu->gpr[0]; - int psx_taken_BFC218EC = (psx_brA_BFC218EC == psx_brB_BFC218EC); + psx_taken_BFC218EC = (psx_brA_BFC218EC == psx_brB_BFC218EC); /* 0xBFC218F0: 3C015000 lui $at, 0x5000 */ cpu->gpr[1] = 0x50000000u; if (psx_taken_BFC218EC) goto label_BFC21914; @@ -106715,7 +109911,7 @@ label_BFC21908: psx_check_interrupts(cpu); /* 0xBFC21908: 10000009 beq $zero, $zero, 0xBFC21930 */ uint32_t psx_brA_BFC21908 = cpu->gpr[0]; uint32_t psx_brB_BFC21908 = cpu->gpr[0]; - int psx_taken_BFC21908 = (psx_brA_BFC21908 == psx_brB_BFC21908); + psx_taken_BFC21908 = (psx_brA_BFC21908 == psx_brB_BFC21908); /* 0xBFC2190C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2190Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21908) goto label_BFC21930; @@ -106737,7 +109933,7 @@ label_BFC21914: cpu->gpr[24] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC2191C: 13000004 beq $t8, $zero, 0xBFC21930 */ uint32_t psx_brA_BFC2191C = cpu->gpr[24]; uint32_t psx_brB_BFC2191C = cpu->gpr[0]; - int psx_taken_BFC2191C = (psx_brA_BFC2191C == psx_brB_BFC2191C); + psx_taken_BFC2191C = (psx_brA_BFC2191C == psx_brB_BFC2191C); /* 0xBFC21920: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21920u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2191C) goto label_BFC21930; @@ -106785,6 +109981,12 @@ void func_1FC2193C(CPUState* cpu) { default: break; } } + int psx_taken_BFC21954 = 0; + int psx_taken_BFC2196C = 0; + int psx_taken_BFC21994 = 0; + int psx_taken_BFC21A30 = 0; + int psx_taken_BFC21A54 = 0; + int psx_taken_BFC21A60 = 0; label_BFC2193C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -106804,7 +110006,7 @@ label_BFC2193C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21950u); return; } g_debug_last_store_pc = 0xBFC21950u; cpu->write_word(psx_addr, cpu->gpr[18]); } /* 0xBFC21954: 15C00007 bne $t6, $zero, 0xBFC21974 */ uint32_t psx_brA_BFC21954 = cpu->gpr[14]; uint32_t psx_brB_BFC21954 = cpu->gpr[0]; - int psx_taken_BFC21954 = (psx_brA_BFC21954 != psx_brB_BFC21954); + psx_taken_BFC21954 = (psx_brA_BFC21954 != psx_brB_BFC21954); /* 0xBFC21958: 00009821 addu $s3, $zero, $zero */ cpu->gpr[19] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC21954) goto label_BFC21974; @@ -106829,7 +110031,7 @@ label_BFC2196C: psx_check_interrupts(cpu); /* 0xBFC2196C: 10000006 beq $zero, $zero, 0xBFC21988 */ uint32_t psx_brA_BFC2196C = cpu->gpr[0]; uint32_t psx_brB_BFC2196C = cpu->gpr[0]; - int psx_taken_BFC2196C = (psx_brA_BFC2196C == psx_brB_BFC2196C); + psx_taken_BFC2196C = (psx_brA_BFC2196C == psx_brB_BFC2196C); /* 0xBFC21970: 27A40040 addiu $a0, $sp, 64 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_taken_BFC2196C) goto label_BFC21988; @@ -106873,7 +110075,7 @@ label_BFC21990: cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[29] + (72)); /* 0xBFC21994: 14520038 bne $v0, $s2, 0xBFC21A78 */ uint32_t psx_brA_BFC21994 = cpu->gpr[2]; uint32_t psx_brB_BFC21994 = cpu->gpr[18]; - int psx_taken_BFC21994 = (psx_brA_BFC21994 != psx_brB_BFC21994); + psx_taken_BFC21994 = (psx_brA_BFC21994 != psx_brB_BFC21994); /* 0xBFC21998: 8FAF0070 lw $t7, 112($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (112)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21998u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC21994) goto label_BFC21A78; @@ -106969,7 +110171,7 @@ label_BFC21A24: /* nop */ /* 0xBFC21A30: 05A10002 bgez $t5, 0xBFC21A3C */ uint32_t psx_brA_BFC21A30 = cpu->gpr[13]; - int psx_taken_BFC21A30 = ((int32_t)psx_brA_BFC21A30 >= 0); + psx_taken_BFC21A30 = ((int32_t)psx_brA_BFC21A30 >= 0); /* 0xBFC21A34: 01A00821 addu $at, $t5, $zero */ cpu->gpr[1] = cpu->gpr[13] + cpu->gpr[0]; if (psx_taken_BFC21A30) goto label_BFC21A3C; @@ -107005,7 +110207,7 @@ label_BFC21A54: psx_check_interrupts(cpu); /* 0xBFC21A54: 14520004 bne $v0, $s2, 0xBFC21A68 */ uint32_t psx_brA_BFC21A54 = cpu->gpr[2]; uint32_t psx_brB_BFC21A54 = cpu->gpr[18]; - int psx_taken_BFC21A54 = (psx_brA_BFC21A54 != psx_brB_BFC21A54); + psx_taken_BFC21A54 = (psx_brA_BFC21A54 != psx_brB_BFC21A54); /* 0xBFC21A58: 00000000 nop */ /* nop */ if (psx_taken_BFC21A54) goto label_BFC21A68; @@ -107018,7 +110220,7 @@ label_BFC21A5C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (112)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21A5Cu); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } /* 0xBFC21A60: 1000FFEE beq $zero, $zero, 0xBFC21A1C */ uint32_t psx_brA_BFC21A60 = cpu->gpr[0]; uint32_t psx_brB_BFC21A60 = cpu->gpr[0]; - int psx_taken_BFC21A60 = (psx_brA_BFC21A60 == psx_brB_BFC21A60); + psx_taken_BFC21A60 = (psx_brA_BFC21A60 == psx_brB_BFC21A60); /* 0xBFC21A64: 02002021 addu $a0, $s0, $zero */ cpu->gpr[4] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC21A60) goto label_BFC21A1C; @@ -107087,6 +110289,36 @@ void func_1FC21A9C(CPUState* cpu) { default: break; } } + int psx_taken_BFC21AA8 = 0; + int psx_taken_BFC21AD4 = 0; + int psx_taken_BFC21AE8 = 0; + int psx_taken_BFC21AFC = 0; + int psx_taken_BFC21B08 = 0; + int psx_taken_BFC21B20 = 0; + int psx_taken_BFC21B34 = 0; + int psx_taken_BFC21B54 = 0; + int psx_taken_BFC21B64 = 0; + int psx_taken_BFC21B70 = 0; + int psx_taken_BFC21B9C = 0; + int psx_taken_BFC21BA4 = 0; + int psx_taken_BFC21BC0 = 0; + int psx_taken_BFC21C70 = 0; + int psx_taken_BFC21C88 = 0; + int psx_taken_BFC21D28 = 0; + int psx_taken_BFC21D80 = 0; + int psx_taken_BFC21D94 = 0; + int psx_taken_BFC21D9C = 0; + int psx_taken_BFC21DB4 = 0; + int psx_taken_BFC21E54 = 0; + int psx_taken_BFC21EAC = 0; + int psx_taken_BFC21F08 = 0; + int psx_taken_BFC21F10 = 0; + int psx_taken_BFC21F24 = 0; + int psx_taken_BFC21F88 = 0; + int psx_taken_BFC21FE0 = 0; + int psx_taken_BFC22020 = 0; + int psx_taken_BFC220D4 = 0; + int psx_taken_BFC22128 = 0; label_BFC21A9C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -107100,7 +110332,7 @@ label_BFC21A9C: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-208)); /* 0xBFC21AA8: 11C001AA beq $t6, $zero, 0xBFC22154 */ uint32_t psx_brA_BFC21AA8 = cpu->gpr[14]; uint32_t psx_brB_BFC21AA8 = cpu->gpr[0]; - int psx_taken_BFC21AA8 = (psx_brA_BFC21AA8 == psx_brB_BFC21AA8); + psx_taken_BFC21AA8 = (psx_brA_BFC21AA8 == psx_brB_BFC21AA8); /* 0xBFC21AAC: AFBF0034 sw $ra, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21AACu); return; } g_debug_last_store_pc = 0xBFC21AACu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC21AA8) goto label_BFC22154; @@ -107129,7 +110361,7 @@ label_BFC21AB0: /* nop */ /* 0xBFC21AD4: 1C400006 bgtz $v0, 0xBFC21AF0 */ uint32_t psx_brA_BFC21AD4 = cpu->gpr[2]; - int psx_taken_BFC21AD4 = ((int32_t)psx_brA_BFC21AD4 > 0); + psx_taken_BFC21AD4 = ((int32_t)psx_brA_BFC21AD4 > 0); /* 0xBFC21AD8: 00000000 nop */ /* nop */ if (psx_taken_BFC21AD4) goto label_BFC21AF0; @@ -107146,7 +110378,7 @@ label_BFC21ADC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (84)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21AE4u); return; } cpu->gpr[20] = cpu->read_word(psx_addr); } /* 0xBFC21AE8: 1000019B beq $zero, $zero, 0xBFC22158 */ uint32_t psx_brA_BFC21AE8 = cpu->gpr[0]; uint32_t psx_brB_BFC21AE8 = cpu->gpr[0]; - int psx_taken_BFC21AE8 = (psx_brA_BFC21AE8 == psx_brB_BFC21AE8); + psx_taken_BFC21AE8 = (psx_brA_BFC21AE8 == psx_brB_BFC21AE8); /* 0xBFC21AEC: 8FBF0034 lw $ra, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21AECu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21AE8) goto label_BFC22158; @@ -107169,7 +110401,7 @@ label_BFC21AF8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); /* 0xBFC21AFC: 14410004 bne $v0, $at, 0xBFC21B10 */ uint32_t psx_brA_BFC21AFC = cpu->gpr[2]; uint32_t psx_brB_BFC21AFC = cpu->gpr[1]; - int psx_taken_BFC21AFC = (psx_brA_BFC21AFC != psx_brB_BFC21AFC); + psx_taken_BFC21AFC = (psx_brA_BFC21AFC != psx_brB_BFC21AFC); /* 0xBFC21B00: 00000000 nop */ /* nop */ if (psx_taken_BFC21AFC) goto label_BFC21B10; @@ -107182,7 +110414,7 @@ label_BFC21B04: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (84)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21B04u); return; } cpu->gpr[20] = cpu->read_word(psx_addr); } /* 0xBFC21B08: 10000192 beq $zero, $zero, 0xBFC22154 */ uint32_t psx_brA_BFC21B08 = cpu->gpr[0]; uint32_t psx_brB_BFC21B08 = cpu->gpr[0]; - int psx_taken_BFC21B08 = (psx_brA_BFC21B08 == psx_brB_BFC21B08); + psx_taken_BFC21B08 = (psx_brA_BFC21B08 == psx_brB_BFC21B08); /* 0xBFC21B0C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC21B08) goto label_BFC22154; @@ -107201,7 +110433,7 @@ label_BFC21B10: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC21B20: 1503000E bne $t0, $v1, 0xBFC21B5C */ uint32_t psx_brA_BFC21B20 = cpu->gpr[8]; uint32_t psx_brB_BFC21B20 = cpu->gpr[3]; - int psx_taken_BFC21B20 = (psx_brA_BFC21B20 != psx_brB_BFC21B20); + psx_taken_BFC21B20 = (psx_brA_BFC21B20 != psx_brB_BFC21B20); /* 0xBFC21B24: 00000000 nop */ /* nop */ if (psx_taken_BFC21B20) goto label_BFC21B5C; @@ -107218,7 +110450,7 @@ label_BFC21B28: /* nop */ /* 0xBFC21B34: 15230009 bne $t1, $v1, 0xBFC21B5C */ uint32_t psx_brA_BFC21B34 = cpu->gpr[9]; uint32_t psx_brB_BFC21B34 = cpu->gpr[3]; - int psx_taken_BFC21B34 = (psx_brA_BFC21B34 != psx_brB_BFC21B34); + psx_taken_BFC21B34 = (psx_brA_BFC21B34 != psx_brB_BFC21B34); /* 0xBFC21B38: 00000000 nop */ /* nop */ if (psx_taken_BFC21B34) goto label_BFC21B5C; @@ -107253,7 +110485,7 @@ label_BFC21B4C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (84)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21B50u); return; } cpu->gpr[20] = cpu->read_word(psx_addr); } /* 0xBFC21B54: 1000017F beq $zero, $zero, 0xBFC22154 */ uint32_t psx_brA_BFC21B54 = cpu->gpr[0]; uint32_t psx_brB_BFC21B54 = cpu->gpr[0]; - int psx_taken_BFC21B54 = (psx_brA_BFC21B54 == psx_brB_BFC21B54); + psx_taken_BFC21B54 = (psx_brA_BFC21B54 == psx_brB_BFC21B54); /* 0xBFC21B58: AC206BC0 sw $zero, 27584($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (27584)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21B58u); return; } g_debug_last_store_pc = 0xBFC21B58u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC21B54) goto label_BFC22154; @@ -107268,7 +110500,7 @@ label_BFC21B5C: /* nop */ /* 0xBFC21B64: 14620005 bne $v1, $v0, 0xBFC21B7C */ uint32_t psx_brA_BFC21B64 = cpu->gpr[3]; uint32_t psx_brB_BFC21B64 = cpu->gpr[2]; - int psx_taken_BFC21B64 = (psx_brA_BFC21B64 != psx_brB_BFC21B64); + psx_taken_BFC21B64 = (psx_brA_BFC21B64 != psx_brB_BFC21B64); /* 0xBFC21B68: 8FA600D0 lw $a2, 208($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (208)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21B68u); return; } cpu->gpr[6] = cpu->read_word(psx_addr); } if (psx_taken_BFC21B64) goto label_BFC21B7C; @@ -107281,7 +110513,7 @@ label_BFC21B6C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (84)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21B6Cu); return; } cpu->gpr[20] = cpu->read_word(psx_addr); } /* 0xBFC21B70: 10000179 beq $zero, $zero, 0xBFC22158 */ uint32_t psx_brA_BFC21B70 = cpu->gpr[0]; uint32_t psx_brB_BFC21B70 = cpu->gpr[0]; - int psx_taken_BFC21B70 = (psx_brA_BFC21B70 == psx_brB_BFC21B70); + psx_taken_BFC21B70 = (psx_brA_BFC21B70 == psx_brB_BFC21B70); /* 0xBFC21B74: 8FBF0034 lw $ra, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21B74u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21B70) goto label_BFC22158; @@ -107315,7 +110547,7 @@ label_BFC21B7C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[12] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC21B9C: 14200164 bne $at, $zero, 0xBFC22130 */ uint32_t psx_brA_BFC21B9C = cpu->gpr[1]; uint32_t psx_brB_BFC21B9C = cpu->gpr[0]; - int psx_taken_BFC21B9C = (psx_brA_BFC21B9C != psx_brB_BFC21B9C); + psx_taken_BFC21B9C = (psx_brA_BFC21B9C != psx_brB_BFC21B9C); /* 0xBFC21BA0: 00000000 nop */ /* nop */ if (psx_taken_BFC21B9C) goto label_BFC22130; @@ -107326,7 +110558,7 @@ label_BFC21BA4: psx_check_interrupts(cpu); /* 0xBFC21BA4: 14C00008 bne $a2, $zero, 0xBFC21BC8 */ uint32_t psx_brA_BFC21BA4 = cpu->gpr[6]; uint32_t psx_brB_BFC21BA4 = cpu->gpr[0]; - int psx_taken_BFC21BA4 = (psx_brA_BFC21BA4 != psx_brB_BFC21BA4); + psx_taken_BFC21BA4 = (psx_brA_BFC21BA4 != psx_brB_BFC21BA4); /* 0xBFC21BA8: AFB20044 sw $s2, 68($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21BA8u); return; } g_debug_last_store_pc = 0xBFC21BA8u; cpu->write_word(psx_addr, cpu->gpr[18]); } if (psx_taken_BFC21BA4) goto label_BFC21BC8; @@ -107353,7 +110585,7 @@ label_BFC21BBC: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (30)); /* 0xBFC21BC0: 10000007 beq $zero, $zero, 0xBFC21BE0 */ uint32_t psx_brA_BFC21BC0 = cpu->gpr[0]; uint32_t psx_brB_BFC21BC0 = cpu->gpr[0]; - int psx_taken_BFC21BC0 = (psx_brA_BFC21BC0 == psx_brB_BFC21BC0); + psx_taken_BFC21BC0 = (psx_brA_BFC21BC0 == psx_brB_BFC21BC0); /* 0xBFC21BC4: AFAD008C sw $t5, 140($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (140)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21BC4u); return; } g_debug_last_store_pc = 0xBFC21BC4u; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC21BC0) goto label_BFC21BE0; @@ -107471,7 +110703,7 @@ label_BFC21C6C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (100)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21C6Cu); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC21C70: 10400045 beq $v0, $zero, 0xBFC21D88 */ uint32_t psx_brA_BFC21C70 = cpu->gpr[2]; uint32_t psx_brB_BFC21C70 = cpu->gpr[0]; - int psx_taken_BFC21C70 = (psx_brA_BFC21C70 == psx_brB_BFC21C70); + psx_taken_BFC21C70 = (psx_brA_BFC21C70 == psx_brB_BFC21C70); /* 0xBFC21C74: 00000000 nop */ /* nop */ if (psx_taken_BFC21C70) goto label_BFC21D88; @@ -107490,7 +110722,7 @@ label_BFC21C78: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (int32_t)cpu->gpr[8] ? 1 : 0); /* 0xBFC21C88: 1020002D beq $at, $zero, 0xBFC21D40 */ uint32_t psx_brA_BFC21C88 = cpu->gpr[1]; uint32_t psx_brB_BFC21C88 = cpu->gpr[0]; - int psx_taken_BFC21C88 = (psx_brA_BFC21C88 == psx_brB_BFC21C88); + psx_taken_BFC21C88 = (psx_brA_BFC21C88 == psx_brB_BFC21C88); /* 0xBFC21C8C: 00125080 sll $t2, $s2, 2 */ cpu->gpr[10] = cpu->gpr[18] << 2u; if (psx_taken_BFC21C88) goto label_BFC21D40; @@ -107588,7 +110820,7 @@ label_BFC21D18: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (92)); /* 0xBFC21D28: 1420FFF8 bne $at, $zero, 0xBFC21D0C */ uint32_t psx_brA_BFC21D28 = cpu->gpr[1]; uint32_t psx_brB_BFC21D28 = cpu->gpr[0]; - int psx_taken_BFC21D28 = (psx_brA_BFC21D28 != psx_brB_BFC21D28); + psx_taken_BFC21D28 = (psx_brA_BFC21D28 != psx_brB_BFC21D28); /* 0xBFC21D2C: 2631005C addiu $s1, $s1, 92 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (92)); if (psx_taken_BFC21D28) goto label_BFC21D0C; @@ -107650,7 +110882,7 @@ label_BFC21D64: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21D7Cu); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC21D80: 100000F5 beq $zero, $zero, 0xBFC22158 */ uint32_t psx_brA_BFC21D80 = cpu->gpr[0]; uint32_t psx_brB_BFC21D80 = cpu->gpr[0]; - int psx_taken_BFC21D80 = (psx_brA_BFC21D80 == psx_brB_BFC21D80); + psx_taken_BFC21D80 = (psx_brA_BFC21D80 == psx_brB_BFC21D80); /* 0xBFC21D84: 8FBF0034 lw $ra, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21D84u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21D80) goto label_BFC22158; @@ -107667,7 +110899,7 @@ label_BFC21D88: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (17) ? 1 : 0); /* 0xBFC21D94: 14200003 bne $at, $zero, 0xBFC21DA4 */ uint32_t psx_brA_BFC21D94 = cpu->gpr[1]; uint32_t psx_brB_BFC21D94 = cpu->gpr[0]; - int psx_taken_BFC21D94 = (psx_brA_BFC21D94 != psx_brB_BFC21D94); + psx_taken_BFC21D94 = (psx_brA_BFC21D94 != psx_brB_BFC21D94); /* 0xBFC21D98: 28410014 slti $at, $v0, 20 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (20) ? 1 : 0); if (psx_taken_BFC21D94) goto label_BFC21DA4; @@ -107678,7 +110910,7 @@ label_BFC21D9C: psx_check_interrupts(cpu); /* 0xBFC21D9C: 14200046 bne $at, $zero, 0xBFC21EB8 */ uint32_t psx_brA_BFC21D9C = cpu->gpr[1]; uint32_t psx_brB_BFC21D9C = cpu->gpr[0]; - int psx_taken_BFC21D9C = (psx_brA_BFC21D9C != psx_brB_BFC21D9C); + psx_taken_BFC21D9C = (psx_brA_BFC21D9C != psx_brB_BFC21D9C); /* 0xBFC21DA0: 8FA900D0 lw $t1, 208($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (208)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21DA0u); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } if (psx_taken_BFC21D9C) goto label_BFC21EB8; @@ -107697,7 +110929,7 @@ label_BFC21DA4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (int32_t)cpu->gpr[13] ? 1 : 0); /* 0xBFC21DB4: 1020002D beq $at, $zero, 0xBFC21E6C */ uint32_t psx_brA_BFC21DB4 = cpu->gpr[1]; uint32_t psx_brB_BFC21DB4 = cpu->gpr[0]; - int psx_taken_BFC21DB4 = (psx_brA_BFC21DB4 == psx_brB_BFC21DB4); + psx_taken_BFC21DB4 = (psx_brA_BFC21DB4 == psx_brB_BFC21DB4); /* 0xBFC21DB8: 0012C080 sll $t8, $s2, 2 */ cpu->gpr[24] = cpu->gpr[18] << 2u; if (psx_taken_BFC21DB4) goto label_BFC21E6C; @@ -107795,7 +111027,7 @@ label_BFC21E44: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (92)); /* 0xBFC21E54: 1420FFF8 bne $at, $zero, 0xBFC21E38 */ uint32_t psx_brA_BFC21E54 = cpu->gpr[1]; uint32_t psx_brB_BFC21E54 = cpu->gpr[0]; - int psx_taken_BFC21E54 = (psx_brA_BFC21E54 != psx_brB_BFC21E54); + psx_taken_BFC21E54 = (psx_brA_BFC21E54 != psx_brB_BFC21E54); /* 0xBFC21E58: 2631005C addiu $s1, $s1, 92 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (92)); if (psx_taken_BFC21E54) goto label_BFC21E38; @@ -107857,7 +111089,7 @@ label_BFC21E90: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21EA8u); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC21EAC: 100000AA beq $zero, $zero, 0xBFC22158 */ uint32_t psx_brA_BFC21EAC = cpu->gpr[0]; uint32_t psx_brB_BFC21EAC = cpu->gpr[0]; - int psx_taken_BFC21EAC = (psx_brA_BFC21EAC == psx_brB_BFC21EAC); + psx_taken_BFC21EAC = (psx_brA_BFC21EAC == psx_brB_BFC21EAC); /* 0xBFC21EB0: 8FBF0034 lw $ra, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21EB0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21EAC) goto label_BFC22158; @@ -107915,7 +111147,7 @@ label_BFC21EB8: /* nop */ /* 0xBFC21F08: 18600003 blez $v1, 0xBFC21F18 */ uint32_t psx_brA_BFC21F08 = cpu->gpr[3]; - int psx_taken_BFC21F08 = ((int32_t)psx_brA_BFC21F08 <= 0); + psx_taken_BFC21F08 = ((int32_t)psx_brA_BFC21F08 <= 0); /* 0xBFC21F0C: 28610010 slti $at, $v1, 16 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (16) ? 1 : 0); if (psx_taken_BFC21F08) goto label_BFC21F18; @@ -107926,7 +111158,7 @@ label_BFC21F10: psx_check_interrupts(cpu); /* 0xBFC21F10: 14200035 bne $at, $zero, 0xBFC21FE8 */ uint32_t psx_brA_BFC21F10 = cpu->gpr[1]; uint32_t psx_brB_BFC21F10 = cpu->gpr[0]; - int psx_taken_BFC21F10 = (psx_brA_BFC21F10 != psx_brB_BFC21F10); + psx_taken_BFC21F10 = (psx_brA_BFC21F10 != psx_brB_BFC21F10); /* 0xBFC21F14: 00000000 nop */ /* nop */ if (psx_taken_BFC21F10) goto label_BFC21FE8; @@ -107943,7 +111175,7 @@ label_BFC21F18: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (int32_t)cpu->gpr[13] ? 1 : 0); /* 0xBFC21F24: 1020001E beq $at, $zero, 0xBFC21FA0 */ uint32_t psx_brA_BFC21F24 = cpu->gpr[1]; uint32_t psx_brB_BFC21F24 = cpu->gpr[0]; - int psx_taken_BFC21F24 = (psx_brA_BFC21F24 == psx_brB_BFC21F24); + psx_taken_BFC21F24 = (psx_brA_BFC21F24 == psx_brB_BFC21F24); /* 0xBFC21F28: 00124880 sll $t1, $s2, 2 */ cpu->gpr[9] = cpu->gpr[18] << 2u; if (psx_taken_BFC21F24) goto label_BFC21FA0; @@ -108011,7 +111243,7 @@ label_BFC21F78: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (92)); /* 0xBFC21F88: 1420FFF8 bne $at, $zero, 0xBFC21F6C */ uint32_t psx_brA_BFC21F88 = cpu->gpr[1]; uint32_t psx_brB_BFC21F88 = cpu->gpr[0]; - int psx_taken_BFC21F88 = (psx_brA_BFC21F88 != psx_brB_BFC21F88); + psx_taken_BFC21F88 = (psx_brA_BFC21F88 != psx_brB_BFC21F88); /* 0xBFC21F8C: 2631005C addiu $s1, $s1, 92 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (92)); if (psx_taken_BFC21F88) goto label_BFC21F6C; @@ -108073,7 +111305,7 @@ label_BFC21FC4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21FDCu); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC21FE0: 1000005D beq $zero, $zero, 0xBFC22158 */ uint32_t psx_brA_BFC21FE0 = cpu->gpr[0]; uint32_t psx_brB_BFC21FE0 = cpu->gpr[0]; - int psx_taken_BFC21FE0 = (psx_brA_BFC21FE0 == psx_brB_BFC21FE0); + psx_taken_BFC21FE0 = (psx_brA_BFC21FE0 == psx_brB_BFC21FE0); /* 0xBFC21FE4: 8FBF0034 lw $ra, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC21FE4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC21FE0) goto label_BFC22158; @@ -108112,7 +111344,7 @@ label_BFC21FE8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[20] + (8)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2201Cu); return; } cpu->gpr[6] = cpu->read_word(psx_addr); } /* 0xBFC22020: 19200031 blez $t1, 0xBFC220E8 */ uint32_t psx_brA_BFC22020 = cpu->gpr[9]; - int psx_taken_BFC22020 = ((int32_t)psx_brA_BFC22020 <= 0); + psx_taken_BFC22020 = ((int32_t)psx_brA_BFC22020 <= 0); /* 0xBFC22024: 00009021 addu $s2, $zero, $zero */ cpu->gpr[18] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC22020) goto label_BFC220E8; @@ -108238,7 +111470,7 @@ label_BFC220C8: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (112)); /* 0xBFC220D4: 164FFFE9 bne $s2, $t7, 0xBFC2207C */ uint32_t psx_brA_BFC220D4 = cpu->gpr[18]; uint32_t psx_brB_BFC220D4 = cpu->gpr[15]; - int psx_taken_BFC220D4 = (psx_brA_BFC220D4 != psx_brB_BFC220D4); + psx_taken_BFC220D4 = (psx_brA_BFC220D4 != psx_brB_BFC220D4); /* 0xBFC220D8: 26310080 addiu $s1, $s1, 128 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (128)); if (psx_taken_BFC220D4) goto label_BFC2207C; @@ -108298,7 +111530,7 @@ label_BFC220FC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22124u); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC22128: 10000008 beq $zero, $zero, 0xBFC2214C */ uint32_t psx_brA_BFC22128 = cpu->gpr[0]; uint32_t psx_brB_BFC22128 = cpu->gpr[0]; - int psx_taken_BFC22128 = (psx_brA_BFC22128 == psx_brB_BFC22128); + psx_taken_BFC22128 = (psx_brA_BFC22128 == psx_brB_BFC22128); /* 0xBFC2212C: 8FB3004C lw $s3, 76($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2212Cu); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } if (psx_taken_BFC22128) goto label_BFC2214C; @@ -108378,6 +111610,19 @@ void func_1FC22164(CPUState* cpu) { default: break; } } + int psx_taken_BFC221A0 = 0; + int psx_taken_BFC221C8 = 0; + int psx_taken_BFC22214 = 0; + int psx_taken_BFC22240 = 0; + int psx_taken_BFC22278 = 0; + int psx_taken_BFC222B4 = 0; + int psx_taken_BFC222BC = 0; + int psx_taken_BFC222D8 = 0; + int psx_taken_BFC22300 = 0; + int psx_taken_BFC2230C = 0; + int psx_taken_BFC22344 = 0; + int psx_taken_BFC224B0 = 0; + int psx_taken_BFC224C0 = 0; label_BFC22164: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -108427,7 +111672,7 @@ label_BFC221A0: psx_check_interrupts(cpu); /* 0xBFC221A0: 16A0000B bne $s5, $zero, 0xBFC221D0 */ uint32_t psx_brA_BFC221A0 = cpu->gpr[21]; uint32_t psx_brB_BFC221A0 = cpu->gpr[0]; - int psx_taken_BFC221A0 = (psx_brA_BFC221A0 != psx_brB_BFC221A0); + psx_taken_BFC221A0 = (psx_brA_BFC221A0 != psx_brB_BFC221A0); /* 0xBFC221A4: 00000000 nop */ /* nop */ if (psx_taken_BFC221A0) goto label_BFC221D0; @@ -108466,7 +111711,7 @@ label_BFC221C8: psx_check_interrupts(cpu); /* 0xBFC221C8: 1000000A beq $zero, $zero, 0xBFC221F4 */ uint32_t psx_brA_BFC221C8 = cpu->gpr[0]; uint32_t psx_brB_BFC221C8 = cpu->gpr[0]; - int psx_taken_BFC221C8 = (psx_brA_BFC221C8 == psx_brB_BFC221C8); + psx_taken_BFC221C8 = (psx_brA_BFC221C8 == psx_brB_BFC221C8); /* 0xBFC221CC: 00157080 sll $t6, $s5, 2 */ cpu->gpr[14] = cpu->gpr[21] << 2u; if (psx_taken_BFC221C8) goto label_BFC221F4; @@ -108528,7 +111773,7 @@ label_BFC221F4: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[24] + (-1)); /* 0xBFC22214: 1B20003D blez $t9, 0xBFC2230C */ uint32_t psx_brA_BFC22214 = cpu->gpr[25]; - int psx_taken_BFC22214 = ((int32_t)psx_brA_BFC22214 <= 0); + psx_taken_BFC22214 = ((int32_t)psx_brA_BFC22214 <= 0); /* 0xBFC22218: 2A61000F slti $at, $s3, 15 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (15) ? 1 : 0); if (psx_taken_BFC22214) goto label_BFC2230C; @@ -108568,7 +111813,7 @@ label_BFC2223C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (32) ? 1 : 0); /* 0xBFC22240: 1020000F beq $at, $zero, 0xBFC22280 */ uint32_t psx_brA_BFC22240 = cpu->gpr[1]; uint32_t psx_brB_BFC22240 = cpu->gpr[0]; - int psx_taken_BFC22240 = (psx_brA_BFC22240 == psx_brB_BFC22240); + psx_taken_BFC22240 = (psx_brA_BFC22240 == psx_brB_BFC22240); /* 0xBFC22244: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC22240) goto label_BFC22280; @@ -108621,7 +111866,7 @@ label_BFC22278: psx_check_interrupts(cpu); /* 0xBFC22278: 1000001E beq $zero, $zero, 0xBFC222F4 */ uint32_t psx_brA_BFC22278 = cpu->gpr[0]; uint32_t psx_brB_BFC22278 = cpu->gpr[0]; - int psx_taken_BFC22278 = (psx_brA_BFC22278 == psx_brB_BFC22278); + psx_taken_BFC22278 = (psx_brA_BFC22278 == psx_brB_BFC22278); /* 0xBFC2227C: 8E980004 lw $t8, 4($s4) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[20] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2227Cu); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC22278) goto label_BFC222F4; @@ -108664,7 +111909,7 @@ label_BFC222B0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (65) ? 1 : 0); /* 0xBFC222B4: 14200004 bne $at, $zero, 0xBFC222C8 */ uint32_t psx_brA_BFC222B4 = cpu->gpr[1]; uint32_t psx_brB_BFC222B4 = cpu->gpr[0]; - int psx_taken_BFC222B4 = (psx_brA_BFC222B4 != psx_brB_BFC222B4); + psx_taken_BFC222B4 = (psx_brA_BFC222B4 != psx_brB_BFC222B4); /* 0xBFC222B8: 2606FFE0 addiu $a2, $s0, -32 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[16] + (-32)); if (psx_taken_BFC222B4) goto label_BFC222C8; @@ -108675,7 +111920,7 @@ label_BFC222BC: psx_check_interrupts(cpu); /* 0xBFC222BC: 10000002 beq $zero, $zero, 0xBFC222C8 */ uint32_t psx_brA_BFC222BC = cpu->gpr[0]; uint32_t psx_brB_BFC222BC = cpu->gpr[0]; - int psx_taken_BFC222BC = (psx_brA_BFC222BC == psx_brB_BFC222BC); + psx_taken_BFC222BC = (psx_brA_BFC222BC == psx_brB_BFC222BC); /* 0xBFC222C0: 24060020 addiu $a2, $zero, 32 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[0] + (32)); if (psx_taken_BFC222BC) goto label_BFC222C8; @@ -108707,7 +111952,7 @@ label_BFC222D4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (64) ? 1 : 0); /* 0xBFC222D8: 10200005 beq $at, $zero, 0xBFC222F0 */ uint32_t psx_brA_BFC222D8 = cpu->gpr[1]; uint32_t psx_brB_BFC222D8 = cpu->gpr[0]; - int psx_taken_BFC222D8 = (psx_brA_BFC222D8 == psx_brB_BFC222D8); + psx_taken_BFC222D8 = (psx_brA_BFC222D8 == psx_brB_BFC222D8); /* 0xBFC222DC: 00000000 nop */ /* nop */ if (psx_taken_BFC222D8) goto label_BFC222F0; @@ -108745,7 +111990,7 @@ label_BFC222F4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (int32_t)cpu->gpr[25] ? 1 : 0); /* 0xBFC22300: 1420FFCC bne $at, $zero, 0xBFC22234 */ uint32_t psx_brA_BFC22300 = cpu->gpr[1]; uint32_t psx_brB_BFC22300 = cpu->gpr[0]; - int psx_taken_BFC22300 = (psx_brA_BFC22300 != psx_brB_BFC22300); + psx_taken_BFC22300 = (psx_brA_BFC22300 != psx_brB_BFC22300); /* 0xBFC22304: 26520200 addiu $s2, $s2, 512 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (512)); if (psx_taken_BFC22300) goto label_BFC22234; @@ -108763,7 +112008,7 @@ label_BFC2230C: psx_check_interrupts(cpu); /* 0xBFC2230C: 10200010 beq $at, $zero, 0xBFC22350 */ uint32_t psx_brA_BFC2230C = cpu->gpr[1]; uint32_t psx_brB_BFC2230C = cpu->gpr[0]; - int psx_taken_BFC2230C = (psx_brA_BFC2230C == psx_brB_BFC2230C); + psx_taken_BFC2230C = (psx_brA_BFC2230C == psx_brB_BFC2230C); /* 0xBFC22310: 00158240 sll $s0, $s5, 9 */ cpu->gpr[16] = cpu->gpr[21] << 9u; if (psx_taken_BFC2230C) goto label_BFC22350; @@ -108815,7 +112060,7 @@ label_BFC2233C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (15) ? 1 : 0); /* 0xBFC22344: 1420FFF8 bne $at, $zero, 0xBFC22328 */ uint32_t psx_brA_BFC22344 = cpu->gpr[1]; uint32_t psx_brB_BFC22344 = cpu->gpr[0]; - int psx_taken_BFC22344 = (psx_brA_BFC22344 != psx_brB_BFC22344); + psx_taken_BFC22344 = (psx_brA_BFC22344 != psx_brB_BFC22344); /* 0xBFC22348: 27A40294 addiu $a0, $sp, 660 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[29] + (660)); if (psx_taken_BFC22344) goto label_BFC22328; @@ -109026,7 +112271,7 @@ label_BFC22434: cpu->gpr[31] = (uint32_t)((int32_t)cpu->gpr[31] + (48)); /* 0xBFC224B0: 14E1FFE0 bne $a3, $at, 0xBFC22434 */ uint32_t psx_brA_BFC224B0 = cpu->gpr[7]; uint32_t psx_brB_BFC224B0 = cpu->gpr[1]; - int psx_taken_BFC224B0 = (psx_brA_BFC224B0 != psx_brB_BFC224B0); + psx_taken_BFC224B0 = (psx_brA_BFC224B0 != psx_brB_BFC224B0); /* 0xBFC224B4: 24630114 addiu $v1, $v1, 276 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (276)); if (psx_taken_BFC224B0) goto label_BFC22434; @@ -109041,7 +112286,7 @@ label_BFC224B8: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[25] + (-9312)); /* 0xBFC224C0: 16590079 bne $s2, $t9, 0xBFC226A8 */ uint32_t psx_brA_BFC224C0 = cpu->gpr[18]; uint32_t psx_brB_BFC224C0 = cpu->gpr[25]; - int psx_taken_BFC224C0 = (psx_brA_BFC224C0 != psx_brB_BFC224C0); + psx_taken_BFC224C0 = (psx_brA_BFC224C0 != psx_brB_BFC224C0); /* 0xBFC224C4: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC224C4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC224C0) goto label_BFC226A8; @@ -109359,6 +112604,29 @@ void func_1FC226D0(CPUState* cpu) { default: break; } } + int psx_taken_BFC226DC = 0; + int psx_taken_BFC226F0 = 0; + int psx_taken_BFC2271C = 0; + int psx_taken_BFC22738 = 0; + int psx_taken_BFC22750 = 0; + int psx_taken_BFC22760 = 0; + int psx_taken_BFC22778 = 0; + int psx_taken_BFC22788 = 0; + int psx_taken_BFC22798 = 0; + int psx_taken_BFC227A0 = 0; + int psx_taken_BFC227C4 = 0; + int psx_taken_BFC227D4 = 0; + int psx_taken_BFC227E0 = 0; + int psx_taken_BFC227F4 = 0; + int psx_taken_BFC22804 = 0; + int psx_taken_BFC22818 = 0; + int psx_taken_BFC22828 = 0; + int psx_taken_BFC22838 = 0; + int psx_taken_BFC22848 = 0; + int psx_taken_BFC22870 = 0; + int psx_taken_BFC2288C = 0; + int psx_taken_BFC2289C = 0; + int psx_taken_BFC228A8 = 0; label_BFC226D0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -109372,7 +112640,7 @@ label_BFC226D0: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-48)); /* 0xBFC226DC: 15C0007A bne $t6, $zero, 0xBFC228C8 */ uint32_t psx_brA_BFC226DC = cpu->gpr[14]; uint32_t psx_brB_BFC226DC = cpu->gpr[0]; - int psx_taken_BFC226DC = (psx_brA_BFC226DC != psx_brB_BFC226DC); + psx_taken_BFC226DC = (psx_brA_BFC226DC != psx_brB_BFC226DC); /* 0xBFC226E0: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC226E0u); return; } g_debug_last_store_pc = 0xBFC226E0u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC226DC) goto label_BFC228C8; @@ -109389,7 +112657,7 @@ label_BFC226E4: cpu->gpr[15] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC226F0: 11E0003E beq $t7, $zero, 0xBFC227EC */ uint32_t psx_brA_BFC226F0 = cpu->gpr[15]; uint32_t psx_brB_BFC226F0 = cpu->gpr[0]; - int psx_taken_BFC226F0 = (psx_brA_BFC226F0 == psx_brB_BFC226F0); + psx_taken_BFC226F0 = (psx_brA_BFC226F0 == psx_brB_BFC226F0); /* 0xBFC226F4: 3C015000 lui $at, 0x5000 */ cpu->gpr[1] = 0x50000000u; if (psx_taken_BFC226F0) goto label_BFC227EC; @@ -109430,7 +112698,7 @@ label_BFC2271C: psx_check_interrupts(cpu); /* 0xBFC2271C: 04410022 bgez $v0, 0xBFC227A8 */ uint32_t psx_brA_BFC2271C = cpu->gpr[2]; - int psx_taken_BFC2271C = ((int32_t)psx_brA_BFC2271C >= 0); + psx_taken_BFC2271C = ((int32_t)psx_brA_BFC2271C >= 0); /* 0xBFC22720: 00000000 nop */ /* nop */ if (psx_taken_BFC2271C) goto label_BFC227A8; @@ -109463,7 +112731,7 @@ label_BFC22734: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC22738: 10500007 beq $v0, $s0, 0xBFC22758 */ uint32_t psx_brA_BFC22738 = cpu->gpr[2]; uint32_t psx_brB_BFC22738 = cpu->gpr[16]; - int psx_taken_BFC22738 = (psx_brA_BFC22738 == psx_brB_BFC22738); + psx_taken_BFC22738 = (psx_brA_BFC22738 == psx_brB_BFC22738); /* 0xBFC2273C: 00000000 nop */ /* nop */ if (psx_taken_BFC22738) goto label_BFC22758; @@ -109494,7 +112762,7 @@ label_BFC22750: psx_check_interrupts(cpu); /* 0xBFC22750: 10000023 beq $zero, $zero, 0xBFC227E0 */ uint32_t psx_brA_BFC22750 = cpu->gpr[0]; uint32_t psx_brB_BFC22750 = cpu->gpr[0]; - int psx_taken_BFC22750 = (psx_brA_BFC22750 == psx_brB_BFC22750); + psx_taken_BFC22750 = (psx_brA_BFC22750 == psx_brB_BFC22750); /* 0xBFC22754: 8FB0001C lw $s0, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22754u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC22750) goto label_BFC227E0; @@ -109515,7 +112783,7 @@ label_BFC22760: psx_check_interrupts(cpu); /* 0xBFC22760: 10500007 beq $v0, $s0, 0xBFC22780 */ uint32_t psx_brA_BFC22760 = cpu->gpr[2]; uint32_t psx_brB_BFC22760 = cpu->gpr[16]; - int psx_taken_BFC22760 = (psx_brA_BFC22760 == psx_brB_BFC22760); + psx_taken_BFC22760 = (psx_brA_BFC22760 == psx_brB_BFC22760); /* 0xBFC22764: 00000000 nop */ /* nop */ if (psx_taken_BFC22760) goto label_BFC22780; @@ -109546,7 +112814,7 @@ label_BFC22778: psx_check_interrupts(cpu); /* 0xBFC22778: 10000019 beq $zero, $zero, 0xBFC227E0 */ uint32_t psx_brA_BFC22778 = cpu->gpr[0]; uint32_t psx_brB_BFC22778 = cpu->gpr[0]; - int psx_taken_BFC22778 = (psx_brA_BFC22778 == psx_brB_BFC22778); + psx_taken_BFC22778 = (psx_brA_BFC22778 == psx_brB_BFC22778); /* 0xBFC2277C: 8FB0001C lw $s0, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2277Cu); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC22778) goto label_BFC227E0; @@ -109567,7 +112835,7 @@ label_BFC22788: psx_check_interrupts(cpu); /* 0xBFC22788: 10500014 beq $v0, $s0, 0xBFC227DC */ uint32_t psx_brA_BFC22788 = cpu->gpr[2]; uint32_t psx_brB_BFC22788 = cpu->gpr[16]; - int psx_taken_BFC22788 = (psx_brA_BFC22788 == psx_brB_BFC22788); + psx_taken_BFC22788 = (psx_brA_BFC22788 == psx_brB_BFC22788); /* 0xBFC2278C: 00000000 nop */ /* nop */ if (psx_taken_BFC22788) goto label_BFC227DC; @@ -109588,7 +112856,7 @@ label_BFC22798: psx_check_interrupts(cpu); /* 0xBFC22798: 1450FFFD bne $v0, $s0, 0xBFC22790 */ uint32_t psx_brA_BFC22798 = cpu->gpr[2]; uint32_t psx_brB_BFC22798 = cpu->gpr[16]; - int psx_taken_BFC22798 = (psx_brA_BFC22798 != psx_brB_BFC22798); + psx_taken_BFC22798 = (psx_brA_BFC22798 != psx_brB_BFC22798); /* 0xBFC2279C: 00000000 nop */ /* nop */ if (psx_taken_BFC22798) goto label_BFC22790; @@ -109599,7 +112867,7 @@ label_BFC227A0: psx_check_interrupts(cpu); /* 0xBFC227A0: 1000000F beq $zero, $zero, 0xBFC227E0 */ uint32_t psx_brA_BFC227A0 = cpu->gpr[0]; uint32_t psx_brB_BFC227A0 = cpu->gpr[0]; - int psx_taken_BFC227A0 = (psx_brA_BFC227A0 == psx_brB_BFC227A0); + psx_taken_BFC227A0 = (psx_brA_BFC227A0 == psx_brB_BFC227A0); /* 0xBFC227A4: 8FB0001C lw $s0, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC227A4u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC227A0) goto label_BFC227E0; @@ -109642,7 +112910,7 @@ label_BFC227C0: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC227C4: 10500005 beq $v0, $s0, 0xBFC227DC */ uint32_t psx_brA_BFC227C4 = cpu->gpr[2]; uint32_t psx_brB_BFC227C4 = cpu->gpr[16]; - int psx_taken_BFC227C4 = (psx_brA_BFC227C4 == psx_brB_BFC227C4); + psx_taken_BFC227C4 = (psx_brA_BFC227C4 == psx_brB_BFC227C4); /* 0xBFC227C8: 00000000 nop */ /* nop */ if (psx_taken_BFC227C4) goto label_BFC227DC; @@ -109663,7 +112931,7 @@ label_BFC227D4: psx_check_interrupts(cpu); /* 0xBFC227D4: 1450FFFD bne $v0, $s0, 0xBFC227CC */ uint32_t psx_brA_BFC227D4 = cpu->gpr[2]; uint32_t psx_brB_BFC227D4 = cpu->gpr[16]; - int psx_taken_BFC227D4 = (psx_brA_BFC227D4 != psx_brB_BFC227D4); + psx_taken_BFC227D4 = (psx_brA_BFC227D4 != psx_brB_BFC227D4); /* 0xBFC227D8: 00000000 nop */ /* nop */ if (psx_taken_BFC227D4) goto label_BFC227CC; @@ -109681,7 +112949,7 @@ label_BFC227E0: psx_check_interrupts(cpu); /* 0xBFC227E0: 1000003A beq $zero, $zero, 0xBFC228CC */ uint32_t psx_brA_BFC227E0 = cpu->gpr[0]; uint32_t psx_brB_BFC227E0 = cpu->gpr[0]; - int psx_taken_BFC227E0 = (psx_brA_BFC227E0 == psx_brB_BFC227E0); + psx_taken_BFC227E0 = (psx_brA_BFC227E0 == psx_brB_BFC227E0); /* 0xBFC227E4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC227E4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC227E0) goto label_BFC228CC; @@ -109703,7 +112971,7 @@ label_BFC227EC: cpu->gpr[25] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC227F4: 13200006 beq $t9, $zero, 0xBFC22810 */ uint32_t psx_brA_BFC227F4 = cpu->gpr[25]; uint32_t psx_brB_BFC227F4 = cpu->gpr[0]; - int psx_taken_BFC227F4 = (psx_brA_BFC227F4 == psx_brB_BFC227F4); + psx_taken_BFC227F4 = (psx_brA_BFC227F4 == psx_brB_BFC227F4); /* 0xBFC227F8: 3C010008 lui $at, 0x8 */ cpu->gpr[1] = 0x00080000u; if (psx_taken_BFC227F4) goto label_BFC22810; @@ -109724,7 +112992,7 @@ label_BFC22804: psx_check_interrupts(cpu); /* 0xBFC22804: 10000031 beq $zero, $zero, 0xBFC228CC */ uint32_t psx_brA_BFC22804 = cpu->gpr[0]; uint32_t psx_brB_BFC22804 = cpu->gpr[0]; - int psx_taken_BFC22804 = (psx_brA_BFC22804 == psx_brB_BFC22804); + psx_taken_BFC22804 = (psx_brA_BFC22804 == psx_brB_BFC22804); /* 0xBFC22808: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22808u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC22804) goto label_BFC228CC; @@ -109746,7 +113014,7 @@ label_BFC22810: cpu->gpr[8] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC22818: 1100002B beq $t0, $zero, 0xBFC228C8 */ uint32_t psx_brA_BFC22818 = cpu->gpr[8]; uint32_t psx_brB_BFC22818 = cpu->gpr[0]; - int psx_taken_BFC22818 = (psx_brA_BFC22818 == psx_brB_BFC22818); + psx_taken_BFC22818 = (psx_brA_BFC22818 == psx_brB_BFC22818); /* 0xBFC2281C: 3C010002 lui $at, 0x2 */ cpu->gpr[1] = 0x00020000u; if (psx_taken_BFC22818) goto label_BFC228C8; @@ -109761,7 +113029,7 @@ label_BFC22820: cpu->gpr[9] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC22828: 11200027 beq $t1, $zero, 0xBFC228C8 */ uint32_t psx_brA_BFC22828 = cpu->gpr[9]; uint32_t psx_brB_BFC22828 = cpu->gpr[0]; - int psx_taken_BFC22828 = (psx_brA_BFC22828 == psx_brB_BFC22828); + psx_taken_BFC22828 = (psx_brA_BFC22828 == psx_brB_BFC22828); /* 0xBFC2282C: 3C010004 lui $at, 0x4 */ cpu->gpr[1] = 0x00040000u; if (psx_taken_BFC22828) goto label_BFC228C8; @@ -109776,7 +113044,7 @@ label_BFC22830: cpu->gpr[10] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC22838: 11400023 beq $t2, $zero, 0xBFC228C8 */ uint32_t psx_brA_BFC22838 = cpu->gpr[10]; uint32_t psx_brB_BFC22838 = cpu->gpr[0]; - int psx_taken_BFC22838 = (psx_brA_BFC22838 == psx_brB_BFC22838); + psx_taken_BFC22838 = (psx_brA_BFC22838 == psx_brB_BFC22838); /* 0xBFC2283C: 3C010001 lui $at, 0x1 */ cpu->gpr[1] = 0x00010000u; if (psx_taken_BFC22838) goto label_BFC228C8; @@ -109791,7 +113059,7 @@ label_BFC22840: cpu->gpr[11] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC22848: 11600020 beq $t3, $zero, 0xBFC228CC */ uint32_t psx_brA_BFC22848 = cpu->gpr[11]; uint32_t psx_brB_BFC22848 = cpu->gpr[0]; - int psx_taken_BFC22848 = (psx_brA_BFC22848 == psx_brB_BFC22848); + psx_taken_BFC22848 = (psx_brA_BFC22848 == psx_brB_BFC22848); /* 0xBFC2284C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2284Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC22848) goto label_BFC228CC; @@ -109824,7 +113092,7 @@ label_BFC22870: psx_check_interrupts(cpu); /* 0xBFC22870: 10400008 beq $v0, $zero, 0xBFC22894 */ uint32_t psx_brA_BFC22870 = cpu->gpr[2]; uint32_t psx_brB_BFC22870 = cpu->gpr[0]; - int psx_taken_BFC22870 = (psx_brA_BFC22870 == psx_brB_BFC22870); + psx_taken_BFC22870 = (psx_brA_BFC22870 == psx_brB_BFC22870); /* 0xBFC22874: 00000000 nop */ /* nop */ if (psx_taken_BFC22870) goto label_BFC22894; @@ -109851,7 +113119,7 @@ label_BFC2288C: psx_check_interrupts(cpu); /* 0xBFC2288C: 1440000C bne $v0, $zero, 0xBFC228C0 */ uint32_t psx_brA_BFC2288C = cpu->gpr[2]; uint32_t psx_brB_BFC2288C = cpu->gpr[0]; - int psx_taken_BFC2288C = (psx_brA_BFC2288C != psx_brB_BFC2288C); + psx_taken_BFC2288C = (psx_brA_BFC2288C != psx_brB_BFC2288C); /* 0xBFC22890: 00000000 nop */ /* nop */ if (psx_taken_BFC2288C) goto label_BFC228C0; @@ -109872,7 +113140,7 @@ label_BFC2289C: psx_check_interrupts(cpu); /* 0xBFC2289C: 14400004 bne $v0, $zero, 0xBFC228B0 */ uint32_t psx_brA_BFC2289C = cpu->gpr[2]; uint32_t psx_brB_BFC2289C = cpu->gpr[0]; - int psx_taken_BFC2289C = (psx_brA_BFC2289C != psx_brB_BFC2289C); + psx_taken_BFC2289C = (psx_brA_BFC2289C != psx_brB_BFC2289C); /* 0xBFC228A0: 00000000 nop */ /* nop */ if (psx_taken_BFC2289C) goto label_BFC228B0; @@ -109885,7 +113153,7 @@ label_BFC228A4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC228A4u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC228A8: 10000008 beq $zero, $zero, 0xBFC228CC */ uint32_t psx_brA_BFC228A8 = cpu->gpr[0]; uint32_t psx_brB_BFC228A8 = cpu->gpr[0]; - int psx_taken_BFC228A8 = (psx_brA_BFC228A8 == psx_brB_BFC228A8); + psx_taken_BFC228A8 = (psx_brA_BFC228A8 == psx_brB_BFC228A8); /* 0xBFC228AC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC228ACu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC228A8) goto label_BFC228CC; @@ -109965,6 +113233,13 @@ void func_1FC228D8(CPUState* cpu) { default: break; } } + int psx_taken_BFC228E8 = 0; + int psx_taken_BFC229C8 = 0; + int psx_taken_BFC22AAC = 0; + int psx_taken_BFC22ABC = 0; + int psx_taken_BFC22B20 = 0; + int psx_taken_BFC22B48 = 0; + int psx_taken_BFC22B5C = 0; label_BFC228D8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -109980,7 +113255,7 @@ label_BFC228D8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC228E4u); return; } g_debug_last_store_pc = 0xBFC228E4u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC228E8: 15000070 bne $t0, $zero, 0xBFC22AAC */ uint32_t psx_brA_BFC228E8 = cpu->gpr[8]; uint32_t psx_brB_BFC228E8 = cpu->gpr[0]; - int psx_taken_BFC228E8 = (psx_brA_BFC228E8 != psx_brB_BFC228E8); + psx_taken_BFC228E8 = (psx_brA_BFC228E8 != psx_brB_BFC228E8); /* 0xBFC228EC: AC209E24 sw $zero, -25052($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25052)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC228ECu); return; } g_debug_last_store_pc = 0xBFC228ECu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC228E8) goto label_BFC22AAC; @@ -110116,7 +113391,7 @@ label_BFC229A4: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (20)); /* 0xBFC229C8: 1466FFF6 bne $v1, $a2, 0xBFC229A4 */ uint32_t psx_brA_BFC229C8 = cpu->gpr[3]; uint32_t psx_brB_BFC229C8 = cpu->gpr[6]; - int psx_taken_BFC229C8 = (psx_brA_BFC229C8 != psx_brB_BFC229C8); + psx_taken_BFC229C8 = (psx_brA_BFC229C8 != psx_brB_BFC229C8); /* 0xBFC229CC: 24A50004 addiu $a1, $a1, 4 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (4)); if (psx_taken_BFC229C8) goto label_BFC229A4; @@ -110308,7 +113583,7 @@ label_BFC22AAC: psx_check_interrupts(cpu); /* 0xBFC22AAC: 11000005 beq $t0, $zero, 0xBFC22AC4 */ uint32_t psx_brA_BFC22AAC = cpu->gpr[8]; uint32_t psx_brB_BFC22AAC = cpu->gpr[0]; - int psx_taken_BFC22AAC = (psx_brA_BFC22AAC == psx_brB_BFC22AAC); + psx_taken_BFC22AAC = (psx_brA_BFC22AAC == psx_brB_BFC22AAC); /* 0xBFC22AB0: 00000000 nop */ /* nop */ if (psx_taken_BFC22AAC) goto label_BFC22AC4; @@ -110323,7 +113598,7 @@ label_BFC22AB4: cpu->gpr[1] = 0x80060000u; /* 0xBFC22ABC: 10000003 beq $zero, $zero, 0xBFC22ACC */ uint32_t psx_brA_BFC22ABC = cpu->gpr[0]; uint32_t psx_brB_BFC22ABC = cpu->gpr[0]; - int psx_taken_BFC22ABC = (psx_brA_BFC22ABC == psx_brB_BFC22ABC); + psx_taken_BFC22ABC = (psx_brA_BFC22ABC == psx_brB_BFC22ABC); /* 0xBFC22AC0: AC296BC0 sw $t1, 27584($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (27584)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22AC0u); return; } g_debug_last_store_pc = 0xBFC22AC0u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC22ABC) goto label_BFC22ACC; @@ -110391,7 +113666,7 @@ label_BFC22B1C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22B1Cu); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC22B20: 10400007 beq $v0, $zero, 0xBFC22B40 */ uint32_t psx_brA_BFC22B20 = cpu->gpr[2]; uint32_t psx_brB_BFC22B20 = cpu->gpr[0]; - int psx_taken_BFC22B20 = (psx_brA_BFC22B20 == psx_brB_BFC22B20); + psx_taken_BFC22B20 = (psx_brA_BFC22B20 == psx_brB_BFC22B20); /* 0xBFC22B24: 8FAF0028 lw $t7, 40($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22B24u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC22B20) goto label_BFC22B40; @@ -110435,7 +113710,7 @@ label_BFC22B40: cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[24] + (3768)); /* 0xBFC22B48: 11F80006 beq $t7, $t8, 0xBFC22B64 */ uint32_t psx_brA_BFC22B48 = cpu->gpr[15]; uint32_t psx_brB_BFC22B48 = cpu->gpr[24]; - int psx_taken_BFC22B48 = (psx_brA_BFC22B48 == psx_brB_BFC22B48); + psx_taken_BFC22B48 = (psx_brA_BFC22B48 == psx_brB_BFC22B48); /* 0xBFC22B4C: 00000000 nop */ /* nop */ if (psx_taken_BFC22B48) goto label_BFC22B64; @@ -110458,7 +113733,7 @@ label_BFC22B5C: psx_check_interrupts(cpu); /* 0xBFC22B5C: 10000005 beq $zero, $zero, 0xBFC22B74 */ uint32_t psx_brA_BFC22B5C = cpu->gpr[0]; uint32_t psx_brB_BFC22B5C = cpu->gpr[0]; - int psx_taken_BFC22B5C = (psx_brA_BFC22B5C == psx_brB_BFC22B5C); + psx_taken_BFC22B5C = (psx_brA_BFC22B5C == psx_brB_BFC22B5C); /* 0xBFC22B60: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22B60u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC22B5C) goto label_BFC22B74; @@ -110531,6 +113806,36 @@ void func_1FC22B80(CPUState* cpu) { default: break; } } + int psx_taken_BFC22BA4 = 0; + int psx_taken_BFC22BB4 = 0; + int psx_taken_BFC22BBC = 0; + int psx_taken_BFC22BC8 = 0; + int psx_taken_BFC22BD0 = 0; + int psx_taken_BFC22BE0 = 0; + int psx_taken_BFC22BF8 = 0; + int psx_taken_BFC22C0C = 0; + int psx_taken_BFC22C20 = 0; + int psx_taken_BFC22C3C = 0; + int psx_taken_BFC22C50 = 0; + int psx_taken_BFC22C60 = 0; + int psx_taken_BFC22C8C = 0; + int psx_taken_BFC22C9C = 0; + int psx_taken_BFC22CB8 = 0; + int psx_taken_BFC22CCC = 0; + int psx_taken_BFC22CE8 = 0; + int psx_taken_BFC22D08 = 0; + int psx_taken_BFC22D14 = 0; + int psx_taken_BFC22D30 = 0; + int psx_taken_BFC22D38 = 0; + int psx_taken_BFC22D5C = 0; + int psx_taken_BFC22D74 = 0; + int psx_taken_BFC22D88 = 0; + int psx_taken_BFC22D90 = 0; + int psx_taken_BFC22DA0 = 0; + int psx_taken_BFC22DC0 = 0; + int psx_taken_BFC22DD4 = 0; + int psx_taken_BFC22DDC = 0; + int psx_taken_BFC22DEC = 0; label_BFC22B80: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -110562,7 +113867,7 @@ label_BFC22B94: cpu->gpr[14] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC22BA4: 11C00016 beq $t6, $zero, 0xBFC22C00 */ uint32_t psx_brA_BFC22BA4 = cpu->gpr[14]; uint32_t psx_brB_BFC22BA4 = cpu->gpr[0]; - int psx_taken_BFC22BA4 = (psx_brA_BFC22BA4 == psx_brB_BFC22BA4); + psx_taken_BFC22BA4 = (psx_brA_BFC22BA4 == psx_brB_BFC22BA4); /* 0xBFC22BA8: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC22BA4) goto label_BFC22C00; @@ -110577,7 +113882,7 @@ label_BFC22BAC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (29)); /* 0xBFC22BB4: 16010004 bne $s0, $at, 0xBFC22BC8 */ uint32_t psx_brA_BFC22BB4 = cpu->gpr[16]; uint32_t psx_brB_BFC22BB4 = cpu->gpr[1]; - int psx_taken_BFC22BB4 = (psx_brA_BFC22BB4 != psx_brB_BFC22BB4); + psx_taken_BFC22BB4 = (psx_brA_BFC22BB4 != psx_brB_BFC22BB4); /* 0xBFC22BB8: 2401003B addiu $at, $zero, 59 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (59)); if (psx_taken_BFC22BB4) goto label_BFC22BC8; @@ -110588,7 +113893,7 @@ label_BFC22BBC: psx_check_interrupts(cpu); /* 0xBFC22BBC: 1000000A beq $zero, $zero, 0xBFC22BE8 */ uint32_t psx_brA_BFC22BBC = cpu->gpr[0]; uint32_t psx_brB_BFC22BBC = cpu->gpr[0]; - int psx_taken_BFC22BBC = (psx_brA_BFC22BBC == psx_brB_BFC22BBC); + psx_taken_BFC22BBC = (psx_brA_BFC22BBC == psx_brB_BFC22BBC); /* 0xBFC22BC0: 26100001 addiu $s0, $s0, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); if (psx_taken_BFC22BBC) goto label_BFC22BE8; @@ -110606,7 +113911,7 @@ label_BFC22BC8: psx_check_interrupts(cpu); /* 0xBFC22BC8: 16010003 bne $s0, $at, 0xBFC22BD8 */ uint32_t psx_brA_BFC22BC8 = cpu->gpr[16]; uint32_t psx_brB_BFC22BC8 = cpu->gpr[1]; - int psx_taken_BFC22BC8 = (psx_brA_BFC22BC8 != psx_brB_BFC22BC8); + psx_taken_BFC22BC8 = (psx_brA_BFC22BC8 != psx_brB_BFC22BC8); /* 0xBFC22BCC: 00000000 nop */ /* nop */ if (psx_taken_BFC22BC8) goto label_BFC22BD8; @@ -110617,7 +113922,7 @@ label_BFC22BD0: psx_check_interrupts(cpu); /* 0xBFC22BD0: 10000005 beq $zero, $zero, 0xBFC22BE8 */ uint32_t psx_brA_BFC22BD0 = cpu->gpr[0]; uint32_t psx_brB_BFC22BD0 = cpu->gpr[0]; - int psx_taken_BFC22BD0 = (psx_brA_BFC22BD0 == psx_brB_BFC22BD0); + psx_taken_BFC22BD0 = (psx_brA_BFC22BD0 == psx_brB_BFC22BD0); /* 0xBFC22BD4: 26100001 addiu $s0, $s0, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); if (psx_taken_BFC22BD0) goto label_BFC22BE8; @@ -110638,7 +113943,7 @@ label_BFC22BE0: psx_check_interrupts(cpu); /* 0xBFC22BE0: 0440FFF2 bltz $v0, 0xBFC22BAC */ uint32_t psx_brA_BFC22BE0 = cpu->gpr[2]; - int psx_taken_BFC22BE0 = ((int32_t)psx_brA_BFC22BE0 < 0); + psx_taken_BFC22BE0 = ((int32_t)psx_brA_BFC22BE0 < 0); /* 0xBFC22BE4: 00000000 nop */ /* nop */ if (psx_taken_BFC22BE0) goto label_BFC22BAC; @@ -110669,7 +113974,7 @@ label_BFC22BF8: psx_check_interrupts(cpu); /* 0xBFC22BF8: 10000085 beq $zero, $zero, 0xBFC22E10 */ uint32_t psx_brA_BFC22BF8 = cpu->gpr[0]; uint32_t psx_brB_BFC22BF8 = cpu->gpr[0]; - int psx_taken_BFC22BF8 = (psx_brA_BFC22BF8 == psx_brB_BFC22BF8); + psx_taken_BFC22BF8 = (psx_brA_BFC22BF8 == psx_brB_BFC22BF8); /* 0xBFC22BFC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22BFCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC22BF8) goto label_BFC22E10; @@ -110686,7 +113991,7 @@ label_BFC22C00: cpu->gpr[15] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC22C0C: 11E0000E beq $t7, $zero, 0xBFC22C48 */ uint32_t psx_brA_BFC22C0C = cpu->gpr[15]; uint32_t psx_brB_BFC22C0C = cpu->gpr[0]; - int psx_taken_BFC22C0C = (psx_brA_BFC22C0C == psx_brB_BFC22C0C); + psx_taken_BFC22C0C = (psx_brA_BFC22C0C == psx_brB_BFC22C0C); /* 0xBFC22C10: 3C010900 lui $at, 0x900 */ cpu->gpr[1] = 0x09000000u; if (psx_taken_BFC22C0C) goto label_BFC22C48; @@ -110709,7 +114014,7 @@ label_BFC22C20: psx_check_interrupts(cpu); /* 0xBFC22C20: 04410002 bgez $v0, 0xBFC22C2C */ uint32_t psx_brA_BFC22C20 = cpu->gpr[2]; - int psx_taken_BFC22C20 = ((int32_t)psx_brA_BFC22C20 >= 0); + psx_taken_BFC22C20 = ((int32_t)psx_brA_BFC22C20 >= 0); /* 0xBFC22C24: 00000000 nop */ /* nop */ if (psx_taken_BFC22C20) goto label_BFC22C2C; @@ -110747,7 +114052,7 @@ label_BFC22C3C: psx_check_interrupts(cpu); /* 0xBFC22C3C: 10000074 beq $zero, $zero, 0xBFC22E10 */ uint32_t psx_brA_BFC22C3C = cpu->gpr[0]; uint32_t psx_brB_BFC22C3C = cpu->gpr[0]; - int psx_taken_BFC22C3C = (psx_brA_BFC22C3C == psx_brB_BFC22C3C); + psx_taken_BFC22C3C = (psx_brA_BFC22C3C == psx_brB_BFC22C3C); /* 0xBFC22C40: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22C40u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC22C3C) goto label_BFC22E10; @@ -110769,7 +114074,7 @@ label_BFC22C48: cpu->gpr[24] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC22C50: 1300001C beq $t8, $zero, 0xBFC22CC4 */ uint32_t psx_brA_BFC22C50 = cpu->gpr[24]; uint32_t psx_brB_BFC22C50 = cpu->gpr[0]; - int psx_taken_BFC22C50 = (psx_brA_BFC22C50 == psx_brB_BFC22C50); + psx_taken_BFC22C50 = (psx_brA_BFC22C50 == psx_brB_BFC22C50); /* 0xBFC22C54: 3C0100F0 lui $at, 0xF0 */ cpu->gpr[1] = 0x00F00000u; if (psx_taken_BFC22C50) goto label_BFC22CC4; @@ -110790,7 +114095,7 @@ label_BFC22C60: psx_check_interrupts(cpu); /* 0xBFC22C60: 04410002 bgez $v0, 0xBFC22C6C */ uint32_t psx_brA_BFC22C60 = cpu->gpr[2]; - int psx_taken_BFC22C60 = ((int32_t)psx_brA_BFC22C60 >= 0); + psx_taken_BFC22C60 = ((int32_t)psx_brA_BFC22C60 >= 0); /* 0xBFC22C64: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC22C60) goto label_BFC22C6C; @@ -110836,7 +114141,7 @@ label_BFC22C88: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC22C8C: 10500004 beq $v0, $s0, 0xBFC22CA0 */ uint32_t psx_brA_BFC22C8C = cpu->gpr[2]; uint32_t psx_brB_BFC22C8C = cpu->gpr[16]; - int psx_taken_BFC22C8C = (psx_brA_BFC22C8C == psx_brB_BFC22C8C); + psx_taken_BFC22C8C = (psx_brA_BFC22C8C == psx_brB_BFC22C8C); /* 0xBFC22C90: 00000000 nop */ /* nop */ if (psx_taken_BFC22C8C) goto label_BFC22CA0; @@ -110857,7 +114162,7 @@ label_BFC22C9C: psx_check_interrupts(cpu); /* 0xBFC22C9C: 1450FFFD bne $v0, $s0, 0xBFC22C94 */ uint32_t psx_brA_BFC22C9C = cpu->gpr[2]; uint32_t psx_brB_BFC22C9C = cpu->gpr[16]; - int psx_taken_BFC22C9C = (psx_brA_BFC22C9C != psx_brB_BFC22C9C); + psx_taken_BFC22C9C = (psx_brA_BFC22C9C != psx_brB_BFC22C9C); label_BFC22CA0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -110895,7 +114200,7 @@ label_BFC22CB8: psx_check_interrupts(cpu); /* 0xBFC22CB8: 10000055 beq $zero, $zero, 0xBFC22E10 */ uint32_t psx_brA_BFC22CB8 = cpu->gpr[0]; uint32_t psx_brB_BFC22CB8 = cpu->gpr[0]; - int psx_taken_BFC22CB8 = (psx_brA_BFC22CB8 == psx_brB_BFC22CB8); + psx_taken_BFC22CB8 = (psx_brA_BFC22CB8 == psx_brB_BFC22CB8); /* 0xBFC22CBC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22CBCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC22CB8) goto label_BFC22E10; @@ -110917,7 +114222,7 @@ label_BFC22CC4: cpu->gpr[25] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC22CCC: 1320002C beq $t9, $zero, 0xBFC22D80 */ uint32_t psx_brA_BFC22CCC = cpu->gpr[25]; uint32_t psx_brB_BFC22CCC = cpu->gpr[0]; - int psx_taken_BFC22CCC = (psx_brA_BFC22CCC == psx_brB_BFC22CCC); + psx_taken_BFC22CCC = (psx_brA_BFC22CCC == psx_brB_BFC22CCC); /* 0xBFC22CD0: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC22CCC) goto label_BFC22D80; @@ -110950,7 +114255,7 @@ label_BFC22CE8: psx_check_interrupts(cpu); /* 0xBFC22CE8: 0441000A bgez $v0, 0xBFC22D14 */ uint32_t psx_brA_BFC22CE8 = cpu->gpr[2]; - int psx_taken_BFC22CE8 = ((int32_t)psx_brA_BFC22CE8 >= 0); + psx_taken_BFC22CE8 = ((int32_t)psx_brA_BFC22CE8 >= 0); /* 0xBFC22CEC: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC22CE8) goto label_BFC22D14; @@ -110985,7 +114290,7 @@ label_BFC22D08: psx_check_interrupts(cpu); /* 0xBFC22D08: 10000041 beq $zero, $zero, 0xBFC22E10 */ uint32_t psx_brA_BFC22D08 = cpu->gpr[0]; uint32_t psx_brB_BFC22D08 = cpu->gpr[0]; - int psx_taken_BFC22D08 = (psx_brA_BFC22D08 == psx_brB_BFC22D08); + psx_taken_BFC22D08 = (psx_brA_BFC22D08 == psx_brB_BFC22D08); /* 0xBFC22D0C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22D0Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC22D08) goto label_BFC22E10; @@ -111003,7 +114308,7 @@ label_BFC22D14: psx_check_interrupts(cpu); /* 0xBFC22D14: 14410014 bne $v0, $at, 0xBFC22D68 */ uint32_t psx_brA_BFC22D14 = cpu->gpr[2]; uint32_t psx_brB_BFC22D14 = cpu->gpr[1]; - int psx_taken_BFC22D14 = (psx_brA_BFC22D14 != psx_brB_BFC22D14); + psx_taken_BFC22D14 = (psx_brA_BFC22D14 != psx_brB_BFC22D14); /* 0xBFC22D18: 24090001 addiu $t1, $zero, 1 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC22D14) goto label_BFC22D68; @@ -111029,7 +114334,7 @@ label_BFC22D20: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (60) ? 1 : 0); /* 0xBFC22D30: 10200004 beq $at, $zero, 0xBFC22D44 */ uint32_t psx_brA_BFC22D30 = cpu->gpr[1]; uint32_t psx_brB_BFC22D30 = cpu->gpr[0]; - int psx_taken_BFC22D30 = (psx_brA_BFC22D30 == psx_brB_BFC22D30); + psx_taken_BFC22D30 = (psx_brA_BFC22D30 == psx_brB_BFC22D30); /* 0xBFC22D34: 2402003C addiu $v0, $zero, 60 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (60)); if (psx_taken_BFC22D30) goto label_BFC22D44; @@ -111040,7 +114345,7 @@ label_BFC22D38: psx_check_interrupts(cpu); /* 0xBFC22D38: 10000002 beq $zero, $zero, 0xBFC22D44 */ uint32_t psx_brA_BFC22D38 = cpu->gpr[0]; uint32_t psx_brB_BFC22D38 = cpu->gpr[0]; - int psx_taken_BFC22D38 = (psx_brA_BFC22D38 == psx_brB_BFC22D38); + psx_taken_BFC22D38 = (psx_brA_BFC22D38 == psx_brB_BFC22D38); /* 0xBFC22D3C: 2402001E addiu $v0, $zero, 30 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (30)); if (psx_taken_BFC22D38) goto label_BFC22D44; @@ -111082,7 +114387,7 @@ label_BFC22D54: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (15)); /* 0xBFC22D5C: 1601FFF0 bne $s0, $at, 0xBFC22D20 */ uint32_t psx_brA_BFC22D5C = cpu->gpr[16]; uint32_t psx_brB_BFC22D5C = cpu->gpr[1]; - int psx_taken_BFC22D5C = (psx_brA_BFC22D5C != psx_brB_BFC22D5C); + psx_taken_BFC22D5C = (psx_brA_BFC22D5C != psx_brB_BFC22D5C); /* 0xBFC22D60: 00000000 nop */ /* nop */ if (psx_taken_BFC22D5C) goto label_BFC22D20; @@ -111112,7 +114417,7 @@ label_BFC22D74: psx_check_interrupts(cpu); /* 0xBFC22D74: 10000026 beq $zero, $zero, 0xBFC22E10 */ uint32_t psx_brA_BFC22D74 = cpu->gpr[0]; uint32_t psx_brB_BFC22D74 = cpu->gpr[0]; - int psx_taken_BFC22D74 = (psx_brA_BFC22D74 == psx_brB_BFC22D74); + psx_taken_BFC22D74 = (psx_brA_BFC22D74 == psx_brB_BFC22D74); /* 0xBFC22D78: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22D78u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC22D74) goto label_BFC22E10; @@ -111134,7 +114439,7 @@ label_BFC22D80: cpu->gpr[10] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC22D88: 1140000F beq $t2, $zero, 0xBFC22DC8 */ uint32_t psx_brA_BFC22D88 = cpu->gpr[10]; uint32_t psx_brB_BFC22D88 = cpu->gpr[0]; - int psx_taken_BFC22D88 = (psx_brA_BFC22D88 == psx_brB_BFC22D88); + psx_taken_BFC22D88 = (psx_brA_BFC22D88 == psx_brB_BFC22D88); /* 0xBFC22D8C: 2841003C slti $at, $v0, 60 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (60) ? 1 : 0); if (psx_taken_BFC22D88) goto label_BFC22DC8; @@ -111145,7 +114450,7 @@ label_BFC22D90: psx_check_interrupts(cpu); /* 0xBFC22D90: 1420001F bne $at, $zero, 0xBFC22E10 */ uint32_t psx_brA_BFC22D90 = cpu->gpr[1]; uint32_t psx_brB_BFC22D90 = cpu->gpr[0]; - int psx_taken_BFC22D90 = (psx_brA_BFC22D90 != psx_brB_BFC22D90); + psx_taken_BFC22D90 = (psx_brA_BFC22D90 != psx_brB_BFC22D90); /* 0xBFC22D94: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22D94u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC22D90) goto label_BFC22E10; @@ -111166,7 +114471,7 @@ label_BFC22DA0: psx_check_interrupts(cpu); /* 0xBFC22DA0: 0440001B bltz $v0, 0xBFC22E10 */ uint32_t psx_brA_BFC22DA0 = cpu->gpr[2]; - int psx_taken_BFC22DA0 = ((int32_t)psx_brA_BFC22DA0 < 0); + psx_taken_BFC22DA0 = ((int32_t)psx_brA_BFC22DA0 < 0); /* 0xBFC22DA4: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22DA4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC22DA0) goto label_BFC22E10; @@ -111207,7 +114512,7 @@ label_BFC22DC0: psx_check_interrupts(cpu); /* 0xBFC22DC0: 10000013 beq $zero, $zero, 0xBFC22E10 */ uint32_t psx_brA_BFC22DC0 = cpu->gpr[0]; uint32_t psx_brB_BFC22DC0 = cpu->gpr[0]; - int psx_taken_BFC22DC0 = (psx_brA_BFC22DC0 == psx_brB_BFC22DC0); + psx_taken_BFC22DC0 = (psx_brA_BFC22DC0 == psx_brB_BFC22DC0); /* 0xBFC22DC4: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22DC4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC22DC0) goto label_BFC22E10; @@ -111224,7 +114529,7 @@ label_BFC22DC8: cpu->gpr[11] = cpu->gpr[4] & cpu->gpr[1]; /* 0xBFC22DD4: 1160000D beq $t3, $zero, 0xBFC22E0C */ uint32_t psx_brA_BFC22DD4 = cpu->gpr[11]; uint32_t psx_brB_BFC22DD4 = cpu->gpr[0]; - int psx_taken_BFC22DD4 = (psx_brA_BFC22DD4 == psx_brB_BFC22DD4); + psx_taken_BFC22DD4 = (psx_brA_BFC22DD4 == psx_brB_BFC22DD4); /* 0xBFC22DD8: 2841003C slti $at, $v0, 60 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (60) ? 1 : 0); if (psx_taken_BFC22DD4) goto label_BFC22E0C; @@ -111235,7 +114540,7 @@ label_BFC22DDC: psx_check_interrupts(cpu); /* 0xBFC22DDC: 1020000C beq $at, $zero, 0xBFC22E10 */ uint32_t psx_brA_BFC22DDC = cpu->gpr[1]; uint32_t psx_brB_BFC22DDC = cpu->gpr[0]; - int psx_taken_BFC22DDC = (psx_brA_BFC22DDC == psx_brB_BFC22DDC); + psx_taken_BFC22DDC = (psx_brA_BFC22DDC == psx_brB_BFC22DDC); /* 0xBFC22DE0: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22DE0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC22DDC) goto label_BFC22E10; @@ -111256,7 +114561,7 @@ label_BFC22DEC: psx_check_interrupts(cpu); /* 0xBFC22DEC: 04400008 bltz $v0, 0xBFC22E10 */ uint32_t psx_brA_BFC22DEC = cpu->gpr[2]; - int psx_taken_BFC22DEC = ((int32_t)psx_brA_BFC22DEC < 0); + psx_taken_BFC22DEC = ((int32_t)psx_brA_BFC22DEC < 0); /* 0xBFC22DF0: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC22DF0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC22DEC) goto label_BFC22E10; @@ -111323,6 +114628,10 @@ void func_1FC22E1C(CPUState* cpu) { default: break; } } + int psx_taken_BFC22E34 = 0; + int psx_taken_BFC22E3C = 0; + int psx_taken_BFC22E5C = 0; + int psx_taken_BFC22E6C = 0; label_BFC22E1C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -111348,7 +114657,7 @@ label_BFC22E30: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC22E34: 14410003 bne $v0, $at, 0xBFC22E44 */ uint32_t psx_brA_BFC22E34 = cpu->gpr[2]; uint32_t psx_brB_BFC22E34 = cpu->gpr[1]; - int psx_taken_BFC22E34 = (psx_brA_BFC22E34 != psx_brB_BFC22E34); + psx_taken_BFC22E34 = (psx_brA_BFC22E34 != psx_brB_BFC22E34); /* 0xBFC22E38: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC22E34) goto label_BFC22E44; @@ -111359,7 +114668,7 @@ label_BFC22E3C: psx_check_interrupts(cpu); /* 0xBFC22E3C: 10000010 beq $zero, $zero, 0xBFC22E80 */ uint32_t psx_brA_BFC22E3C = cpu->gpr[0]; uint32_t psx_brB_BFC22E3C = cpu->gpr[0]; - int psx_taken_BFC22E3C = (psx_brA_BFC22E3C == psx_brB_BFC22E3C); + psx_taken_BFC22E3C = (psx_brA_BFC22E3C == psx_brB_BFC22E3C); /* 0xBFC22E40: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC22E3C) goto label_BFC22E80; @@ -111388,7 +114697,7 @@ label_BFC22E54: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (512)); /* 0xBFC22E5C: 10410005 beq $v0, $at, 0xBFC22E74 */ uint32_t psx_brA_BFC22E5C = cpu->gpr[2]; uint32_t psx_brB_BFC22E5C = cpu->gpr[1]; - int psx_taken_BFC22E5C = (psx_brA_BFC22E5C == psx_brB_BFC22E5C); + psx_taken_BFC22E5C = (psx_brA_BFC22E5C == psx_brB_BFC22E5C); /* 0xBFC22E60: 00000000 nop */ /* nop */ if (psx_taken_BFC22E5C) goto label_BFC22E74; @@ -111409,7 +114718,7 @@ label_BFC22E6C: psx_check_interrupts(cpu); /* 0xBFC22E6C: 10000004 beq $zero, $zero, 0xBFC22E80 */ uint32_t psx_brA_BFC22E6C = cpu->gpr[0]; uint32_t psx_brB_BFC22E6C = cpu->gpr[0]; - int psx_taken_BFC22E6C = (psx_brA_BFC22E6C == psx_brB_BFC22E6C); + psx_taken_BFC22E6C = (psx_brA_BFC22E6C == psx_brB_BFC22E6C); /* 0xBFC22E70: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC22E6C) goto label_BFC22E80; @@ -111457,6 +114766,10 @@ void func_1FC22E90(CPUState* cpu) { default: break; } } + int psx_taken_BFC22F58 = 0; + int psx_taken_BFC22FFC = 0; + int psx_taken_BFC23018 = 0; + int psx_taken_BFC23034 = 0; label_BFC22E90: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(52u); @@ -111564,7 +114877,7 @@ label_BFC22E90: cpu->gpr[22] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC22F58: 1920003E blez $t1, 0xBFC23054 */ uint32_t psx_brA_BFC22F58 = cpu->gpr[9]; - int psx_taken_BFC22F58 = ((int32_t)psx_brA_BFC22F58 <= 0); + psx_taken_BFC22F58 = ((int32_t)psx_brA_BFC22F58 <= 0); /* 0xBFC22F5C: 2673FFF0 addiu $s3, $s3, -16 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (-16)); if (psx_taken_BFC22F58) goto label_BFC23054; @@ -111670,7 +114983,7 @@ label_BFC22FF8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (2) ? 1 : 0); /* 0xBFC22FFC: 14200008 bne $at, $zero, 0xBFC23020 */ uint32_t psx_brA_BFC22FFC = cpu->gpr[1]; uint32_t psx_brB_BFC22FFC = cpu->gpr[0]; - int psx_taken_BFC22FFC = (psx_brA_BFC22FFC != psx_brB_BFC22FFC); + psx_taken_BFC22FFC = (psx_brA_BFC22FFC != psx_brB_BFC22FFC); /* 0xBFC23000: 00409021 addu $s2, $v0, $zero */ cpu->gpr[18] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC22FFC) goto label_BFC23020; @@ -111702,7 +115015,7 @@ label_BFC23014: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC23018: 1633FFFB bne $s1, $s3, 0xBFC23008 */ uint32_t psx_brA_BFC23018 = cpu->gpr[17]; uint32_t psx_brB_BFC23018 = cpu->gpr[19]; - int psx_taken_BFC23018 = (psx_brA_BFC23018 != psx_brB_BFC23018); + psx_taken_BFC23018 = (psx_brA_BFC23018 != psx_brB_BFC23018); /* 0xBFC2301C: 26100070 addiu $s0, $s0, 112 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (112)); if (psx_taken_BFC23018) goto label_BFC23008; @@ -111723,7 +115036,7 @@ label_BFC23020: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[22] < (int32_t)cpu->gpr[10] ? 1 : 0); /* 0xBFC23034: 1420FFE3 bne $at, $zero, 0xBFC22FC4 */ uint32_t psx_brA_BFC23034 = cpu->gpr[1]; uint32_t psx_brB_BFC23034 = cpu->gpr[0]; - int psx_taken_BFC23034 = (psx_brA_BFC23034 != psx_brB_BFC23034); + psx_taken_BFC23034 = (psx_brA_BFC23034 != psx_brB_BFC23034); /* 0xBFC23038: AEA90000 sw $t1, 0($s5) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[21] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23038u); return; } g_debug_last_store_pc = 0xBFC23038u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC23034) goto label_BFC22FC4; @@ -111775,6 +115088,7 @@ void func_1FC23078(CPUState* cpu) { default: break; } } + int psx_taken_BFC230A4 = 0; label_BFC23078: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -111815,7 +115129,7 @@ label_BFC230A0: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC230A4: 1611FFFC bne $s0, $s1, 0xBFC23098 */ uint32_t psx_brA_BFC230A4 = cpu->gpr[16]; uint32_t psx_brB_BFC230A4 = cpu->gpr[17]; - int psx_taken_BFC230A4 = (psx_brA_BFC230A4 != psx_brB_BFC230A4); + psx_taken_BFC230A4 = (psx_brA_BFC230A4 != psx_brB_BFC230A4); /* 0xBFC230A8: 00000000 nop */ /* nop */ if (psx_taken_BFC230A4) goto label_BFC23098; @@ -111848,6 +115162,10 @@ void func_1FC230C4(CPUState* cpu) { default: break; } } + int psx_taken_BFC230D0 = 0; + int psx_taken_BFC230D8 = 0; + int psx_taken_BFC230E8 = 0; + int psx_taken_BFC23100 = 0; label_BFC230C4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -111861,7 +115179,7 @@ label_BFC230C4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC230CCu); return; } g_debug_last_store_pc = 0xBFC230CCu; cpu->write_word(psx_addr, cpu->gpr[17]); } /* 0xBFC230D0: 14800003 bne $a0, $zero, 0xBFC230E0 */ uint32_t psx_brA_BFC230D0 = cpu->gpr[4]; uint32_t psx_brB_BFC230D0 = cpu->gpr[0]; - int psx_taken_BFC230D0 = (psx_brA_BFC230D0 != psx_brB_BFC230D0); + psx_taken_BFC230D0 = (psx_brA_BFC230D0 != psx_brB_BFC230D0); /* 0xBFC230D4: AFB00014 sw $s0, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC230D4u); return; } g_debug_last_store_pc = 0xBFC230D4u; cpu->write_word(psx_addr, cpu->gpr[16]); } if (psx_taken_BFC230D0) goto label_BFC230E0; @@ -111872,7 +115190,7 @@ label_BFC230D8: psx_check_interrupts(cpu); /* 0xBFC230D8: 10000002 beq $zero, $zero, 0xBFC230E4 */ uint32_t psx_brA_BFC230D8 = cpu->gpr[0]; uint32_t psx_brB_BFC230D8 = cpu->gpr[0]; - int psx_taken_BFC230D8 = (psx_brA_BFC230D8 == psx_brB_BFC230D8); + psx_taken_BFC230D8 = (psx_brA_BFC230D8 == psx_brB_BFC230D8); /* 0xBFC230DC: 2411002D addiu $s1, $zero, 45 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[0] + (45)); if (psx_taken_BFC230D8) goto label_BFC230E4; @@ -111892,7 +115210,7 @@ label_BFC230E4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[5] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC230E8: 10200007 beq $at, $zero, 0xBFC23108 */ uint32_t psx_brA_BFC230E8 = cpu->gpr[1]; uint32_t psx_brB_BFC230E8 = cpu->gpr[0]; - int psx_taken_BFC230E8 = (psx_brA_BFC230E8 == psx_brB_BFC230E8); + psx_taken_BFC230E8 = (psx_brA_BFC230E8 == psx_brB_BFC230E8); /* 0xBFC230EC: 00A08021 addu $s0, $a1, $zero */ cpu->gpr[16] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC230E8) goto label_BFC23108; @@ -111917,7 +115235,7 @@ label_BFC230F8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC23100: 1420FFFB bne $at, $zero, 0xBFC230F0 */ uint32_t psx_brA_BFC23100 = cpu->gpr[1]; uint32_t psx_brB_BFC23100 = cpu->gpr[0]; - int psx_taken_BFC23100 = (psx_brA_BFC23100 != psx_brB_BFC23100); + psx_taken_BFC23100 = (psx_brA_BFC23100 != psx_brB_BFC23100); /* 0xBFC23104: 00000000 nop */ /* nop */ if (psx_taken_BFC23100) goto label_BFC230F0; @@ -111950,6 +115268,11 @@ void func_1FC2311C(CPUState* cpu) { default: break; } } + int psx_taken_BFC2317C = 0; + int psx_taken_BFC23184 = 0; + int psx_taken_BFC231E8 = 0; + int psx_taken_BFC2321C = 0; + int psx_taken_BFC23228 = 0; label_BFC2311C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(21u); @@ -112016,7 +115339,7 @@ label_BFC2317C: psx_check_interrupts(cpu); /* 0xBFC2317C: 14400029 bne $v0, $zero, 0xBFC23224 */ uint32_t psx_brA_BFC2317C = cpu->gpr[2]; uint32_t psx_brB_BFC2317C = cpu->gpr[0]; - int psx_taken_BFC2317C = (psx_brA_BFC2317C != psx_brB_BFC2317C); + psx_taken_BFC2317C = (psx_brA_BFC2317C != psx_brB_BFC2317C); /* 0xBFC23180: 2A21000F slti $at, $s1, 15 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (15) ? 1 : 0); if (psx_taken_BFC2317C) goto label_BFC23224; @@ -112027,7 +115350,7 @@ label_BFC23184: psx_check_interrupts(cpu); /* 0xBFC23184: 1020001A beq $at, $zero, 0xBFC231F0 */ uint32_t psx_brA_BFC23184 = cpu->gpr[1]; uint32_t psx_brB_BFC23184 = cpu->gpr[0]; - int psx_taken_BFC23184 = (psx_brA_BFC23184 == psx_brB_BFC23184); + psx_taken_BFC23184 = (psx_brA_BFC23184 == psx_brB_BFC23184); /* 0xBFC23188: 02209021 addu $s2, $s1, $zero */ cpu->gpr[18] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC23184) goto label_BFC231F0; @@ -112095,7 +115418,7 @@ label_BFC231DC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (92)); /* 0xBFC231E8: 1420FFF8 bne $at, $zero, 0xBFC231CC */ uint32_t psx_brA_BFC231E8 = cpu->gpr[1]; uint32_t psx_brB_BFC231E8 = cpu->gpr[0]; - int psx_taken_BFC231E8 = (psx_brA_BFC231E8 != psx_brB_BFC231E8); + psx_taken_BFC231E8 = (psx_brA_BFC231E8 != psx_brB_BFC231E8); /* 0xBFC231EC: 2631005C addiu $s1, $s1, 92 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (92)); if (psx_taken_BFC231E8) goto label_BFC231CC; @@ -112134,7 +115457,7 @@ label_BFC2321C: psx_check_interrupts(cpu); /* 0xBFC2321C: 10000005 beq $zero, $zero, 0xBFC23234 */ uint32_t psx_brA_BFC2321C = cpu->gpr[0]; uint32_t psx_brB_BFC2321C = cpu->gpr[0]; - int psx_taken_BFC2321C = (psx_brA_BFC2321C == psx_brB_BFC2321C); + psx_taken_BFC2321C = (psx_brA_BFC2321C == psx_brB_BFC2321C); /* 0xBFC23220: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23220u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2321C) goto label_BFC23234; @@ -112147,7 +115470,7 @@ label_BFC23224: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC23228: 1633FFD1 bne $s1, $s3, 0xBFC23170 */ uint32_t psx_brA_BFC23228 = cpu->gpr[17]; uint32_t psx_brB_BFC23228 = cpu->gpr[19]; - int psx_taken_BFC23228 = (psx_brA_BFC23228 != psx_brB_BFC23228); + psx_taken_BFC23228 = (psx_brA_BFC23228 != psx_brB_BFC23228); /* 0xBFC2322C: 2610005C addiu $s0, $s0, 92 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (92)); if (psx_taken_BFC23228) goto label_BFC23170; @@ -112187,6 +115510,9 @@ void func_1FC2324C(CPUState* cpu) { default: break; } } + int psx_taken_BFC232A0 = 0; + int psx_taken_BFC232A8 = 0; + int psx_taken_BFC232B4 = 0; label_BFC2324C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(18u); @@ -112247,7 +115573,7 @@ label_BFC232A0: psx_check_interrupts(cpu); /* 0xBFC232A0: 14400004 bne $v0, $zero, 0xBFC232B4 */ uint32_t psx_brA_BFC232A0 = cpu->gpr[2]; uint32_t psx_brB_BFC232A0 = cpu->gpr[0]; - int psx_taken_BFC232A0 = (psx_brA_BFC232A0 != psx_brB_BFC232A0); + psx_taken_BFC232A0 = (psx_brA_BFC232A0 != psx_brB_BFC232A0); /* 0xBFC232A4: 26100001 addiu $s0, $s0, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); if (psx_taken_BFC232A0) goto label_BFC232B4; @@ -112258,7 +115584,7 @@ label_BFC232A8: psx_check_interrupts(cpu); /* 0xBFC232A8: 10000005 beq $zero, $zero, 0xBFC232C0 */ uint32_t psx_brA_BFC232A8 = cpu->gpr[0]; uint32_t psx_brB_BFC232A8 = cpu->gpr[0]; - int psx_taken_BFC232A8 = (psx_brA_BFC232A8 == psx_brB_BFC232A8); + psx_taken_BFC232A8 = (psx_brA_BFC232A8 == psx_brB_BFC232A8); /* 0xBFC232AC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC232A8) goto label_BFC232C0; @@ -112276,7 +115602,7 @@ label_BFC232B4: psx_check_interrupts(cpu); /* 0xBFC232B4: 1612FFF7 bne $s0, $s2, 0xBFC23294 */ uint32_t psx_brA_BFC232B4 = cpu->gpr[16]; uint32_t psx_brB_BFC232B4 = cpu->gpr[18]; - int psx_taken_BFC232B4 = (psx_brA_BFC232B4 != psx_brB_BFC232B4); + psx_taken_BFC232B4 = (psx_brA_BFC232B4 != psx_brB_BFC232B4); /* 0xBFC232B8: 2631005C addiu $s1, $s1, 92 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (92)); if (psx_taken_BFC232B4) goto label_BFC23294; @@ -112326,6 +115652,7 @@ void func_1FC232DC(CPUState* cpu) { default: break; } } + int psx_taken_BFC2333C = 0; label_BFC232DC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -112393,7 +115720,7 @@ label_BFC2332C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (2) ? 1 : 0); /* 0xBFC2333C: 10200068 beq $at, $zero, 0xBFC234E0 */ uint32_t psx_brA_BFC2333C = cpu->gpr[1]; uint32_t psx_brB_BFC2333C = cpu->gpr[0]; - int psx_taken_BFC2333C = (psx_brA_BFC2333C == psx_brB_BFC2333C); + psx_taken_BFC2333C = (psx_brA_BFC2333C == psx_brB_BFC2333C); /* 0xBFC23340: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC2333C) goto label_BFC234E0; @@ -112683,6 +116010,7 @@ void func_1FC23500(CPUState* cpu) { default: break; } } + int psx_taken_BFC23504 = 0; label_BFC23500: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -112692,7 +116020,7 @@ label_BFC23500: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC23504: 14800003 bne $a0, $zero, 0xBFC23514 */ uint32_t psx_brA_BFC23504 = cpu->gpr[4]; uint32_t psx_brB_BFC23504 = cpu->gpr[0]; - int psx_taken_BFC23504 = (psx_brA_BFC23504 != psx_brB_BFC23504); + psx_taken_BFC23504 = (psx_brA_BFC23504 != psx_brB_BFC23504); /* 0xBFC23508: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23508u); return; } g_debug_last_store_pc = 0xBFC23508u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC23504) goto label_BFC23514; @@ -112744,6 +116072,20 @@ void func_1FC23524(CPUState* cpu) { default: break; } } + int psx_taken_BFC2353C = 0; + int psx_taken_BFC23568 = 0; + int psx_taken_BFC23574 = 0; + int psx_taken_BFC2359C = 0; + int psx_taken_BFC235A8 = 0; + int psx_taken_BFC235BC = 0; + int psx_taken_BFC23618 = 0; + int psx_taken_BFC23620 = 0; + int psx_taken_BFC23644 = 0; + int psx_taken_BFC23658 = 0; + int psx_taken_BFC23A5C = 0; + int psx_taken_BFC23A6C = 0; + int psx_taken_BFC23AC0 = 0; + int psx_taken_BFC23B40 = 0; label_BFC23524: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -112763,7 +116105,7 @@ label_BFC23524: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23538u); return; } g_debug_last_store_pc = 0xBFC23538u; cpu->write_word(psx_addr, cpu->gpr[16]); } /* 0xBFC2353C: 1480000C bne $a0, $zero, 0xBFC23570 */ uint32_t psx_brA_BFC2353C = cpu->gpr[4]; uint32_t psx_brB_BFC2353C = cpu->gpr[0]; - int psx_taken_BFC2353C = (psx_brA_BFC2353C != psx_brB_BFC2353C); + psx_taken_BFC2353C = (psx_brA_BFC2353C != psx_brB_BFC2353C); /* 0xBFC23540: AFB10024 sw $s1, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23540u); return; } g_debug_last_store_pc = 0xBFC23540u; cpu->write_word(psx_addr, cpu->gpr[17]); } if (psx_taken_BFC2353C) goto label_BFC23570; @@ -112792,7 +116134,7 @@ label_BFC23544: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23564u); return; } g_debug_last_store_pc = 0xBFC23564u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC23568: 10000032 beq $zero, $zero, 0xBFC23634 */ uint32_t psx_brA_BFC23568 = cpu->gpr[0]; uint32_t psx_brB_BFC23568 = cpu->gpr[0]; - int psx_taken_BFC23568 = (psx_brA_BFC23568 == psx_brB_BFC23568); + psx_taken_BFC23568 = (psx_brA_BFC23568 == psx_brB_BFC23568); /* 0xBFC2356C: 01E0A021 addu $s4, $t7, $zero */ cpu->gpr[20] = cpu->gpr[15] + cpu->gpr[0]; if (psx_taken_BFC23568) goto label_BFC23634; @@ -112805,7 +116147,7 @@ label_BFC23570: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC23574: 1481000C bne $a0, $at, 0xBFC235A8 */ uint32_t psx_brA_BFC23574 = cpu->gpr[4]; uint32_t psx_brB_BFC23574 = cpu->gpr[1]; - int psx_taken_BFC23574 = (psx_brA_BFC23574 != psx_brB_BFC23574); + psx_taken_BFC23574 = (psx_brA_BFC23574 != psx_brB_BFC23574); /* 0xBFC23578: 2881003C slti $at, $a0, 60 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (60) ? 1 : 0); if (psx_taken_BFC23574) goto label_BFC235A8; @@ -112832,7 +116174,7 @@ label_BFC2357C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23598u); return; } g_debug_last_store_pc = 0xBFC23598u; cpu->write_word(psx_addr, cpu->gpr[24]); } /* 0xBFC2359C: 10000025 beq $zero, $zero, 0xBFC23634 */ uint32_t psx_brA_BFC2359C = cpu->gpr[0]; uint32_t psx_brB_BFC2359C = cpu->gpr[0]; - int psx_taken_BFC2359C = (psx_brA_BFC2359C == psx_brB_BFC2359C); + psx_taken_BFC2359C = (psx_brA_BFC2359C == psx_brB_BFC2359C); /* 0xBFC235A0: 0300A021 addu $s4, $t8, $zero */ cpu->gpr[20] = cpu->gpr[24] + cpu->gpr[0]; if (psx_taken_BFC2359C) goto label_BFC23634; @@ -112850,7 +116192,7 @@ label_BFC235A8: psx_check_interrupts(cpu); /* 0xBFC235A8: 10200007 beq $at, $zero, 0xBFC235C8 */ uint32_t psx_brA_BFC235A8 = cpu->gpr[1]; uint32_t psx_brB_BFC235A8 = cpu->gpr[0]; - int psx_taken_BFC235A8 = (psx_brA_BFC235A8 == psx_brB_BFC235A8); + psx_taken_BFC235A8 = (psx_brA_BFC235A8 == psx_brB_BFC235A8); /* 0xBFC235AC: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC235A8) goto label_BFC235C8; @@ -112867,7 +116209,7 @@ label_BFC235B0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (152)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC235B8u); return; } g_debug_last_store_pc = 0xBFC235B8u; cpu->write_word(psx_addr, cpu->gpr[25]); } /* 0xBFC235BC: 10000004 beq $zero, $zero, 0xBFC235D0 */ uint32_t psx_brA_BFC235BC = cpu->gpr[0]; uint32_t psx_brB_BFC235BC = cpu->gpr[0]; - int psx_taken_BFC235BC = (psx_brA_BFC235BC == psx_brB_BFC235BC); + psx_taken_BFC235BC = (psx_brA_BFC235BC == psx_brB_BFC235BC); /* 0xBFC235C0: 2485FFE3 addiu $a1, $a0, -29 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[4] + (-29)); if (psx_taken_BFC235BC) goto label_BFC235D0; @@ -112930,7 +116272,7 @@ label_BFC235D0: cpu->gpr[17] = cpu->gpr[17] & 0xFFu; /* 0xBFC23618: 16200005 bne $s1, $zero, 0xBFC23630 */ uint32_t psx_brA_BFC23618 = cpu->gpr[17]; uint32_t psx_brB_BFC23618 = cpu->gpr[0]; - int psx_taken_BFC23618 = (psx_brA_BFC23618 != psx_brB_BFC23618); + psx_taken_BFC23618 = (psx_brA_BFC23618 != psx_brB_BFC23618); /* 0xBFC2361C: 305200FF andi $s2, $v0, 0xFF */ cpu->gpr[18] = cpu->gpr[2] & 0xFFu; if (psx_taken_BFC23618) goto label_BFC23630; @@ -112941,7 +116283,7 @@ label_BFC23620: psx_check_interrupts(cpu); /* 0xBFC23620: 16400003 bne $s2, $zero, 0xBFC23630 */ uint32_t psx_brA_BFC23620 = cpu->gpr[18]; uint32_t psx_brB_BFC23620 = cpu->gpr[0]; - int psx_taken_BFC23620 = (psx_brA_BFC23620 != psx_brB_BFC23620); + psx_taken_BFC23620 = (psx_brA_BFC23620 != psx_brB_BFC23620); /* 0xBFC23624: 00000000 nop */ /* nop */ if (psx_taken_BFC23620) goto label_BFC23630; @@ -112976,7 +116318,7 @@ label_BFC23634: /* nop */ /* 0xBFC23644: 15980006 bne $t4, $t8, 0xBFC23660 */ uint32_t psx_brA_BFC23644 = cpu->gpr[12]; uint32_t psx_brB_BFC23644 = cpu->gpr[24]; - int psx_taken_BFC23644 = (psx_brA_BFC23644 != psx_brB_BFC23644); + psx_taken_BFC23644 = (psx_brA_BFC23644 != psx_brB_BFC23644); /* 0xBFC23648: 00000000 nop */ /* nop */ if (psx_taken_BFC23644) goto label_BFC23660; @@ -112993,7 +116335,7 @@ label_BFC2364C: cpu->gpr[16] = 0x80080000u; /* 0xBFC23658: 1000013E beq $zero, $zero, 0xBFC23B54 */ uint32_t psx_brA_BFC23658 = cpu->gpr[0]; uint32_t psx_brB_BFC23658 = cpu->gpr[0]; - int psx_taken_BFC23658 = (psx_brA_BFC23658 == psx_brB_BFC23658); + psx_taken_BFC23658 = (psx_brA_BFC23658 == psx_brB_BFC23658); /* 0xBFC2365C: 2610A528 addiu $s0, $s0, -23256 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-23256)); if (psx_taken_BFC23658) goto label_BFC23B54; @@ -113586,7 +116928,7 @@ label_BFC23A48: /* nop */ /* 0xBFC23A5C: 158D0006 bne $t4, $t5, 0xBFC23A78 */ uint32_t psx_brA_BFC23A5C = cpu->gpr[12]; uint32_t psx_brB_BFC23A5C = cpu->gpr[13]; - int psx_taken_BFC23A5C = (psx_brA_BFC23A5C != psx_brB_BFC23A5C); + psx_taken_BFC23A5C = (psx_brA_BFC23A5C != psx_brB_BFC23A5C); /* 0xBFC23A60: 8FB80098 lw $t8, 152($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (152)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23A60u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC23A5C) goto label_BFC23A78; @@ -113601,7 +116943,7 @@ label_BFC23A64: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (12)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23A68u); return; } cpu->gpr[11] = cpu->read_word(psx_addr); } /* 0xBFC23A6C: 1000000D beq $zero, $zero, 0xBFC23AA4 */ uint32_t psx_brA_BFC23A6C = cpu->gpr[0]; uint32_t psx_brB_BFC23A6C = cpu->gpr[0]; - int psx_taken_BFC23A6C = (psx_brA_BFC23A6C == psx_brB_BFC23A6C); + psx_taken_BFC23A6C = (psx_brA_BFC23A6C == psx_brB_BFC23A6C); /* 0xBFC23A70: 00000000 nop */ /* nop */ if (psx_taken_BFC23A6C) goto label_BFC23AA4; @@ -113665,7 +117007,7 @@ label_BFC23AB8: /* nop */ /* 0xBFC23AC0: 1199001E beq $t4, $t9, 0xBFC23B3C */ uint32_t psx_brA_BFC23AC0 = cpu->gpr[12]; uint32_t psx_brB_BFC23AC0 = cpu->gpr[25]; - int psx_taken_BFC23AC0 = (psx_brA_BFC23AC0 == psx_brB_BFC23AC0); + psx_taken_BFC23AC0 = (psx_brA_BFC23AC0 == psx_brB_BFC23AC0); /* 0xBFC23AC4: 00000000 nop */ /* nop */ if (psx_taken_BFC23AC0) goto label_BFC23B3C; @@ -113741,7 +117083,7 @@ label_BFC23B3C: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[7] + (1)); /* 0xBFC23B40: 14E9FFDD bne $a3, $t1, 0xBFC23AB8 */ uint32_t psx_brA_BFC23B40 = cpu->gpr[7]; uint32_t psx_brB_BFC23B40 = cpu->gpr[9]; - int psx_taken_BFC23B40 = (psx_brA_BFC23B40 != psx_brB_BFC23B40); + psx_taken_BFC23B40 = (psx_brA_BFC23B40 != psx_brB_BFC23B40); /* 0xBFC23B44: 24A5005C addiu $a1, $a1, 92 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (92)); if (psx_taken_BFC23B40) goto label_BFC23AB8; @@ -114070,6 +117412,38 @@ void func_1FC23D3C(CPUState* cpu) { default: break; } } + int psx_taken_BFC23D54 = 0; + int psx_taken_BFC23D5C = 0; + int psx_taken_BFC23D88 = 0; + int psx_taken_BFC23E30 = 0; + int psx_taken_BFC23E44 = 0; + int psx_taken_BFC23E74 = 0; + int psx_taken_BFC23E84 = 0; + int psx_taken_BFC23EA8 = 0; + int psx_taken_BFC23EE4 = 0; + int psx_taken_BFC23F10 = 0; + int psx_taken_BFC23F38 = 0; + int psx_taken_BFC23F6C = 0; + int psx_taken_BFC23F9C = 0; + int psx_taken_BFC23FAC = 0; + int psx_taken_BFC23FF4 = 0; + int psx_taken_BFC2400C = 0; + int psx_taken_BFC24020 = 0; + int psx_taken_BFC24034 = 0; + int psx_taken_BFC2405C = 0; + int psx_taken_BFC2406C = 0; + int psx_taken_BFC240D4 = 0; + int psx_taken_BFC240E4 = 0; + int psx_taken_BFC2410C = 0; + int psx_taken_BFC2411C = 0; + int psx_taken_BFC24184 = 0; + int psx_taken_BFC241B0 = 0; + int psx_taken_BFC24230 = 0; + int psx_taken_BFC24240 = 0; + int psx_taken_BFC24248 = 0; + int psx_taken_BFC24254 = 0; + int psx_taken_BFC24264 = 0; + int psx_taken_BFC2426C = 0; label_BFC23D3C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -114089,7 +117463,7 @@ label_BFC23D3C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (200)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23D50u); return; } g_debug_last_store_pc = 0xBFC23D50u; cpu->write_word(psx_addr, cpu->gpr[6]); } /* 0xBFC23D54: 11C000AF beq $t6, $zero, 0xBFC24014 */ uint32_t psx_brA_BFC23D54 = cpu->gpr[14]; uint32_t psx_brB_BFC23D54 = cpu->gpr[0]; - int psx_taken_BFC23D54 = (psx_brA_BFC23D54 == psx_brB_BFC23D54); + psx_taken_BFC23D54 = (psx_brA_BFC23D54 == psx_brB_BFC23D54); /* 0xBFC23D58: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC23D54) goto label_BFC24014; @@ -114100,7 +117474,7 @@ label_BFC23D5C: psx_check_interrupts(cpu); /* 0xBFC23D5C: 1480000C bne $a0, $zero, 0xBFC23D90 */ uint32_t psx_brA_BFC23D5C = cpu->gpr[4]; uint32_t psx_brB_BFC23D5C = cpu->gpr[0]; - int psx_taken_BFC23D5C = (psx_brA_BFC23D5C != psx_brB_BFC23D5C); + psx_taken_BFC23D5C = (psx_brA_BFC23D5C != psx_brB_BFC23D5C); /* 0xBFC23D60: 00000000 nop */ /* nop */ if (psx_taken_BFC23D5C) goto label_BFC23D90; @@ -114141,7 +117515,7 @@ label_BFC23D88: psx_check_interrupts(cpu); /* 0xBFC23D88: 1000000B beq $zero, $zero, 0xBFC23DB8 */ uint32_t psx_brA_BFC23D88 = cpu->gpr[0]; uint32_t psx_brB_BFC23D88 = cpu->gpr[0]; - int psx_taken_BFC23D88 = (psx_brA_BFC23D88 == psx_brB_BFC23D88); + psx_taken_BFC23D88 = (psx_brA_BFC23D88 == psx_brB_BFC23D88); /* 0xBFC23D8C: 27A40080 addiu $a0, $sp, 128 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[29] + (128)); if (psx_taken_BFC23D88) goto label_BFC23DB8; @@ -114297,7 +117671,7 @@ label_BFC23E2C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC23E30: 14410006 bne $v0, $at, 0xBFC23E4C */ uint32_t psx_brA_BFC23E30 = cpu->gpr[2]; uint32_t psx_brB_BFC23E30 = cpu->gpr[1]; - int psx_taken_BFC23E30 = (psx_brA_BFC23E30 != psx_brB_BFC23E30); + psx_taken_BFC23E30 = (psx_brA_BFC23E30 != psx_brB_BFC23E30); /* 0xBFC23E34: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC23E30) goto label_BFC23E4C; @@ -114314,7 +117688,7 @@ label_BFC23E38: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (27392)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23E40u); return; } g_debug_last_store_pc = 0xBFC23E40u; cpu->write_word(psx_addr, cpu->gpr[3]); } /* 0xBFC23E44: 1000010C beq $zero, $zero, 0xBFC24278 */ uint32_t psx_brA_BFC23E44 = cpu->gpr[0]; uint32_t psx_brB_BFC23E44 = cpu->gpr[0]; - int psx_taken_BFC23E44 = (psx_brA_BFC23E44 == psx_brB_BFC23E44); + psx_taken_BFC23E44 = (psx_brA_BFC23E44 == psx_brB_BFC23E44); /* 0xBFC23E48: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC23E44) goto label_BFC24278; @@ -114356,7 +117730,7 @@ label_BFC23E70: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC23E74: 1441000F bne $v0, $at, 0xBFC23EB4 */ uint32_t psx_brA_BFC23E74 = cpu->gpr[2]; uint32_t psx_brB_BFC23E74 = cpu->gpr[1]; - int psx_taken_BFC23E74 = (psx_brA_BFC23E74 != psx_brB_BFC23E74); + psx_taken_BFC23E74 = (psx_brA_BFC23E74 != psx_brB_BFC23E74); /* 0xBFC23E78: 8FAF00C8 lw $t7, 200($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (200)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23E78u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC23E74) goto label_BFC23EB4; @@ -114371,7 +117745,7 @@ label_BFC23E7C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (10) ? 1 : 0); /* 0xBFC23E84: 1420FFF3 bne $at, $zero, 0xBFC23E54 */ uint32_t psx_brA_BFC23E84 = cpu->gpr[1]; uint32_t psx_brB_BFC23E84 = cpu->gpr[0]; - int psx_taken_BFC23E84 = (psx_brA_BFC23E84 != psx_brB_BFC23E84); + psx_taken_BFC23E84 = (psx_brA_BFC23E84 != psx_brB_BFC23E84); /* 0xBFC23E88: 00000000 nop */ /* nop */ if (psx_taken_BFC23E84) goto label_BFC23E54; @@ -114402,7 +117776,7 @@ label_BFC23E9C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (27392)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23EA4u); return; } g_debug_last_store_pc = 0xBFC23EA4u; cpu->write_word(psx_addr, cpu->gpr[3]); } /* 0xBFC23EA8: 100000F3 beq $zero, $zero, 0xBFC24278 */ uint32_t psx_brA_BFC23EA8 = cpu->gpr[0]; uint32_t psx_brB_BFC23EA8 = cpu->gpr[0]; - int psx_taken_BFC23EA8 = (psx_brA_BFC23EA8 == psx_brB_BFC23EA8); + psx_taken_BFC23EA8 = (psx_brA_BFC23EA8 == psx_brB_BFC23EA8); /* 0xBFC23EAC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC23EA8) goto label_BFC24278; @@ -114456,7 +117830,7 @@ label_BFC23EE0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC23EE4: 1441000C bne $v0, $at, 0xBFC23F18 */ uint32_t psx_brA_BFC23EE4 = cpu->gpr[2]; uint32_t psx_brB_BFC23EE4 = cpu->gpr[1]; - int psx_taken_BFC23EE4 = (psx_brA_BFC23EE4 != psx_brB_BFC23EE4); + psx_taken_BFC23EE4 = (psx_brA_BFC23EE4 != psx_brB_BFC23EE4); /* 0xBFC23EE8: 00403821 addu $a3, $v0, $zero */ cpu->gpr[7] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC23EE4) goto label_BFC23F18; @@ -114491,7 +117865,7 @@ label_BFC23F04: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (27392)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC23F0Cu); return; } g_debug_last_store_pc = 0xBFC23F0Cu; cpu->write_word(psx_addr, cpu->gpr[3]); } /* 0xBFC23F10: 100000D9 beq $zero, $zero, 0xBFC24278 */ uint32_t psx_brA_BFC23F10 = cpu->gpr[0]; uint32_t psx_brB_BFC23F10 = cpu->gpr[0]; - int psx_taken_BFC23F10 = (psx_brA_BFC23F10 == psx_brB_BFC23F10); + psx_taken_BFC23F10 = (psx_brA_BFC23F10 == psx_brB_BFC23F10); /* 0xBFC23F14: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC23F10) goto label_BFC24278; @@ -114530,7 +117904,7 @@ label_BFC23F34: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC23F38: 1441000E bne $v0, $at, 0xBFC23F74 */ uint32_t psx_brA_BFC23F38 = cpu->gpr[2]; uint32_t psx_brB_BFC23F38 = cpu->gpr[1]; - int psx_taken_BFC23F38 = (psx_brA_BFC23F38 != psx_brB_BFC23F38); + psx_taken_BFC23F38 = (psx_brA_BFC23F38 != psx_brB_BFC23F38); /* 0xBFC23F3C: 00403821 addu $a3, $v0, $zero */ cpu->gpr[7] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC23F38) goto label_BFC23F74; @@ -114575,7 +117949,7 @@ label_BFC23F6C: psx_check_interrupts(cpu); /* 0xBFC23F6C: 100000C2 beq $zero, $zero, 0xBFC24278 */ uint32_t psx_brA_BFC23F6C = cpu->gpr[0]; uint32_t psx_brB_BFC23F6C = cpu->gpr[0]; - int psx_taken_BFC23F6C = (psx_brA_BFC23F6C == psx_brB_BFC23F6C); + psx_taken_BFC23F6C = (psx_brA_BFC23F6C == psx_brB_BFC23F6C); /* 0xBFC23F70: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC23F6C) goto label_BFC24278; @@ -114617,7 +117991,7 @@ label_BFC23F98: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC23F9C: 14410017 bne $v0, $at, 0xBFC23FFC */ uint32_t psx_brA_BFC23F9C = cpu->gpr[2]; uint32_t psx_brB_BFC23F9C = cpu->gpr[1]; - int psx_taken_BFC23F9C = (psx_brA_BFC23F9C != psx_brB_BFC23F9C); + psx_taken_BFC23F9C = (psx_brA_BFC23F9C != psx_brB_BFC23F9C); /* 0xBFC23FA0: 00000000 nop */ /* nop */ if (psx_taken_BFC23F9C) goto label_BFC23FFC; @@ -114632,7 +118006,7 @@ label_BFC23FA4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (10) ? 1 : 0); /* 0xBFC23FAC: 1420FFF3 bne $at, $zero, 0xBFC23F7C */ uint32_t psx_brA_BFC23FAC = cpu->gpr[1]; uint32_t psx_brB_BFC23FAC = cpu->gpr[0]; - int psx_taken_BFC23FAC = (psx_brA_BFC23FAC != psx_brB_BFC23FAC); + psx_taken_BFC23FAC = (psx_brA_BFC23FAC != psx_brB_BFC23FAC); /* 0xBFC23FB0: 00000000 nop */ /* nop */ if (psx_taken_BFC23FAC) goto label_BFC23F7C; @@ -114693,7 +118067,7 @@ label_BFC23FF4: psx_check_interrupts(cpu); /* 0xBFC23FF4: 100000A0 beq $zero, $zero, 0xBFC24278 */ uint32_t psx_brA_BFC23FF4 = cpu->gpr[0]; uint32_t psx_brB_BFC23FF4 = cpu->gpr[0]; - int psx_taken_BFC23FF4 = (psx_brA_BFC23FF4 == psx_brB_BFC23FF4); + psx_taken_BFC23FF4 = (psx_brA_BFC23FF4 == psx_brB_BFC23FF4); /* 0xBFC23FF8: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC23FF4) goto label_BFC24278; @@ -114712,7 +118086,7 @@ label_BFC23FFC: cpu->gpr[1] = 0x80080000u; /* 0xBFC2400C: 1000009A beq $zero, $zero, 0xBFC24278 */ uint32_t psx_brA_BFC2400C = cpu->gpr[0]; uint32_t psx_brB_BFC2400C = cpu->gpr[0]; - int psx_taken_BFC2400C = (psx_brA_BFC2400C == psx_brB_BFC2400C); + psx_taken_BFC2400C = (psx_brA_BFC2400C == psx_brB_BFC2400C); /* 0xBFC24010: AC22A454 sw $v0, -23468($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-23468)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24010u); return; } g_debug_last_store_pc = 0xBFC24010u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC2400C) goto label_BFC24278; @@ -114729,7 +118103,7 @@ label_BFC24014: /* nop */ /* 0xBFC24020: 10600092 beq $v1, $zero, 0xBFC2426C */ uint32_t psx_brA_BFC24020 = cpu->gpr[3]; uint32_t psx_brB_BFC24020 = cpu->gpr[0]; - int psx_taken_BFC24020 = (psx_brA_BFC24020 == psx_brB_BFC24020); + psx_taken_BFC24020 = (psx_brA_BFC24020 == psx_brB_BFC24020); /* 0xBFC24024: 00000000 nop */ /* nop */ if (psx_taken_BFC24020) goto label_BFC2426C; @@ -114746,7 +118120,7 @@ label_BFC24028: /* nop */ /* 0xBFC24034: 1700002D bne $t8, $zero, 0xBFC240EC */ uint32_t psx_brA_BFC24034 = cpu->gpr[24]; uint32_t psx_brB_BFC24034 = cpu->gpr[0]; - int psx_taken_BFC24034 = (psx_brA_BFC24034 != psx_brB_BFC24034); + psx_taken_BFC24034 = (psx_brA_BFC24034 != psx_brB_BFC24034); /* 0xBFC24038: 00000000 nop */ /* nop */ if (psx_taken_BFC24034) goto label_BFC240EC; @@ -114779,7 +118153,7 @@ label_BFC24058: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (128)); /* 0xBFC2405C: 10410020 beq $v0, $at, 0xBFC240E0 */ uint32_t psx_brA_BFC2405C = cpu->gpr[2]; uint32_t psx_brB_BFC2405C = cpu->gpr[1]; - int psx_taken_BFC2405C = (psx_brA_BFC2405C == psx_brB_BFC2405C); + psx_taken_BFC2405C = (psx_brA_BFC2405C == psx_brB_BFC2405C); /* 0xBFC24060: 24190001 addiu $t9, $zero, 1 */ cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC2405C) goto label_BFC240E0; @@ -114794,7 +118168,7 @@ label_BFC24064: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (10) ? 1 : 0); /* 0xBFC2406C: 1420FFF3 bne $at, $zero, 0xBFC2403C */ uint32_t psx_brA_BFC2406C = cpu->gpr[1]; uint32_t psx_brB_BFC2406C = cpu->gpr[0]; - int psx_taken_BFC2406C = (psx_brA_BFC2406C != psx_brB_BFC2406C); + psx_taken_BFC2406C = (psx_brA_BFC2406C != psx_brB_BFC2406C); /* 0xBFC24070: 00000000 nop */ /* nop */ if (psx_taken_BFC2406C) goto label_BFC2403C; @@ -114883,7 +118257,7 @@ label_BFC240D4: psx_check_interrupts(cpu); /* 0xBFC240D4: 10000068 beq $zero, $zero, 0xBFC24278 */ uint32_t psx_brA_BFC240D4 = cpu->gpr[0]; uint32_t psx_brB_BFC240D4 = cpu->gpr[0]; - int psx_taken_BFC240D4 = (psx_brA_BFC240D4 == psx_brB_BFC240D4); + psx_taken_BFC240D4 = (psx_brA_BFC240D4 == psx_brB_BFC240D4); /* 0xBFC240D8: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC240D4) goto label_BFC24278; @@ -114903,7 +118277,7 @@ label_BFC240E0: cpu->gpr[1] = 0x80080000u; /* 0xBFC240E4: 10000063 beq $zero, $zero, 0xBFC24274 */ uint32_t psx_brA_BFC240E4 = cpu->gpr[0]; uint32_t psx_brB_BFC240E4 = cpu->gpr[0]; - int psx_taken_BFC240E4 = (psx_brA_BFC240E4 == psx_brB_BFC240E4); + psx_taken_BFC240E4 = (psx_brA_BFC240E4 == psx_brB_BFC240E4); /* 0xBFC240E8: AC39A450 sw $t9, -23472($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-23472)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC240E8u); return; } g_debug_last_store_pc = 0xBFC240E8u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC240E4) goto label_BFC24274; @@ -114936,7 +118310,7 @@ label_BFC24108: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (128)); /* 0xBFC2410C: 1041001F beq $v0, $at, 0xBFC2418C */ uint32_t psx_brA_BFC2410C = cpu->gpr[2]; uint32_t psx_brB_BFC2410C = cpu->gpr[1]; - int psx_taken_BFC2410C = (psx_brA_BFC2410C == psx_brB_BFC2410C); + psx_taken_BFC2410C = (psx_brA_BFC2410C == psx_brB_BFC2410C); /* 0xBFC24110: 00000000 nop */ /* nop */ if (psx_taken_BFC2410C) goto label_BFC2418C; @@ -114951,7 +118325,7 @@ label_BFC24114: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (10) ? 1 : 0); /* 0xBFC2411C: 1420FFF3 bne $at, $zero, 0xBFC240EC */ uint32_t psx_brA_BFC2411C = cpu->gpr[1]; uint32_t psx_brB_BFC2411C = cpu->gpr[0]; - int psx_taken_BFC2411C = (psx_brA_BFC2411C != psx_brB_BFC2411C); + psx_taken_BFC2411C = (psx_brA_BFC2411C != psx_brB_BFC2411C); /* 0xBFC24120: 00000000 nop */ /* nop */ if (psx_taken_BFC2411C) goto label_BFC240EC; @@ -115040,7 +118414,7 @@ label_BFC24184: psx_check_interrupts(cpu); /* 0xBFC24184: 1000003C beq $zero, $zero, 0xBFC24278 */ uint32_t psx_brA_BFC24184 = cpu->gpr[0]; uint32_t psx_brB_BFC24184 = cpu->gpr[0]; - int psx_taken_BFC24184 = (psx_brA_BFC24184 == psx_brB_BFC24184); + psx_taken_BFC24184 = (psx_brA_BFC24184 == psx_brB_BFC24184); /* 0xBFC24188: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC24184) goto label_BFC24278; @@ -115069,7 +118443,7 @@ label_BFC2418C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[9] ? 1 : 0); /* 0xBFC241B0: 14200021 bne $at, $zero, 0xBFC24238 */ uint32_t psx_brA_BFC241B0 = cpu->gpr[1]; uint32_t psx_brB_BFC241B0 = cpu->gpr[0]; - int psx_taken_BFC241B0 = (psx_brA_BFC241B0 != psx_brB_BFC241B0); + psx_taken_BFC241B0 = (psx_brA_BFC241B0 != psx_brB_BFC241B0); /* 0xBFC241B4: 00000000 nop */ /* nop */ if (psx_taken_BFC241B0) goto label_BFC24238; @@ -115170,7 +118544,7 @@ label_BFC24228: cpu->gpr[2] = (uint32_t)(int32_t)(int8_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[2] + (-24109))); /* 0xBFC24230: 10000012 beq $zero, $zero, 0xBFC2427C */ uint32_t psx_brA_BFC24230 = cpu->gpr[0]; uint32_t psx_brB_BFC24230 = cpu->gpr[0]; - int psx_taken_BFC24230 = (psx_brA_BFC24230 == psx_brB_BFC24230); + psx_taken_BFC24230 = (psx_brA_BFC24230 == psx_brB_BFC24230); /* 0xBFC24234: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24234u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC24230) goto label_BFC2427C; @@ -115185,7 +118559,7 @@ label_BFC24238: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-23468)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2423Cu); return; } g_debug_last_store_pc = 0xBFC2423Cu; cpu->write_word(psx_addr, cpu->gpr[2]); } /* 0xBFC24240: 04410004 bgez $v0, 0xBFC24254 */ uint32_t psx_brA_BFC24240 = cpu->gpr[2]; - int psx_taken_BFC24240 = ((int32_t)psx_brA_BFC24240 >= 0); + psx_taken_BFC24240 = ((int32_t)psx_brA_BFC24240 >= 0); /* 0xBFC24244: 304A1FFF andi $t2, $v0, 0x1FFF */ cpu->gpr[10] = cpu->gpr[2] & 0x1FFFu; if (psx_taken_BFC24240) goto label_BFC24254; @@ -115196,7 +118570,7 @@ label_BFC24248: psx_check_interrupts(cpu); /* 0xBFC24248: 11400002 beq $t2, $zero, 0xBFC24254 */ uint32_t psx_brA_BFC24248 = cpu->gpr[10]; uint32_t psx_brB_BFC24248 = cpu->gpr[0]; - int psx_taken_BFC24248 = (psx_brA_BFC24248 == psx_brB_BFC24248); + psx_taken_BFC24248 = (psx_brA_BFC24248 == psx_brB_BFC24248); /* 0xBFC2424C: 00000000 nop */ /* nop */ if (psx_taken_BFC24248) goto label_BFC24254; @@ -115214,7 +118588,7 @@ label_BFC24254: psx_check_interrupts(cpu); /* 0xBFC24254: 15400008 bne $t2, $zero, 0xBFC24278 */ uint32_t psx_brA_BFC24254 = cpu->gpr[10]; uint32_t psx_brB_BFC24254 = cpu->gpr[0]; - int psx_taken_BFC24254 = (psx_brA_BFC24254 != psx_brB_BFC24254); + psx_taken_BFC24254 = (psx_brA_BFC24254 != psx_brB_BFC24254); /* 0xBFC24258: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC24254) goto label_BFC24278; @@ -115229,7 +118603,7 @@ label_BFC2425C: cpu->gpr[1] = 0x80080000u; /* 0xBFC24264: 10000003 beq $zero, $zero, 0xBFC24274 */ uint32_t psx_brA_BFC24264 = cpu->gpr[0]; uint32_t psx_brB_BFC24264 = cpu->gpr[0]; - int psx_taken_BFC24264 = (psx_brA_BFC24264 == psx_brB_BFC24264); + psx_taken_BFC24264 = (psx_brA_BFC24264 == psx_brB_BFC24264); /* 0xBFC24268: AC2B9ED4 sw $t3, -24876($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24876)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24268u); return; } g_debug_last_store_pc = 0xBFC24268u; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC24264) goto label_BFC24274; @@ -115240,7 +118614,7 @@ label_BFC2426C: psx_check_interrupts(cpu); /* 0xBFC2426C: 10000002 beq $zero, $zero, 0xBFC24278 */ uint32_t psx_brA_BFC2426C = cpu->gpr[0]; uint32_t psx_brB_BFC2426C = cpu->gpr[0]; - int psx_taken_BFC2426C = (psx_brA_BFC2426C == psx_brB_BFC2426C); + psx_taken_BFC2426C = (psx_brA_BFC2426C == psx_brB_BFC2426C); /* 0xBFC24270: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2426C) goto label_BFC24278; @@ -115286,6 +118660,17 @@ void func_1FC24288(CPUState* cpu) { default: break; } } + int psx_taken_BFC24298 = 0; + int psx_taken_BFC242AC = 0; + int psx_taken_BFC242C0 = 0; + int psx_taken_BFC242D4 = 0; + int psx_taken_BFC242F0 = 0; + int psx_taken_BFC24324 = 0; + int psx_taken_BFC2432C = 0; + int psx_taken_BFC24338 = 0; + int psx_taken_BFC24390 = 0; + int psx_taken_BFC24398 = 0; + int psx_taken_BFC243F0 = 0; label_BFC24288: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -115301,7 +118686,7 @@ label_BFC24288: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC24298: 10A7005B beq $a1, $a3, 0xBFC24408 */ uint32_t psx_brA_BFC24298 = cpu->gpr[5]; uint32_t psx_brB_BFC24298 = cpu->gpr[7]; - int psx_taken_BFC24298 = (psx_brA_BFC24298 == psx_brB_BFC24298); + psx_taken_BFC24298 = (psx_brA_BFC24298 == psx_brB_BFC24298); /* 0xBFC2429C: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2429Cu); return; } g_debug_last_store_pc = 0xBFC2429Cu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC24298) goto label_BFC24408; @@ -115318,7 +118703,7 @@ label_BFC242A0: /* nop */ /* 0xBFC242AC: 11C70057 beq $t6, $a3, 0xBFC2440C */ uint32_t psx_brA_BFC242AC = cpu->gpr[14]; uint32_t psx_brB_BFC242AC = cpu->gpr[7]; - int psx_taken_BFC242AC = (psx_brA_BFC242AC == psx_brB_BFC242AC); + psx_taken_BFC242AC = (psx_brA_BFC242AC == psx_brB_BFC242AC); /* 0xBFC242B0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC242B0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC242AC) goto label_BFC2440C; @@ -115335,7 +118720,7 @@ label_BFC242B4: /* nop */ /* 0xBFC242C0: 11E00011 beq $t7, $zero, 0xBFC24308 */ uint32_t psx_brA_BFC242C0 = cpu->gpr[15]; uint32_t psx_brB_BFC242C0 = cpu->gpr[0]; - int psx_taken_BFC242C0 = (psx_brA_BFC242C0 == psx_brB_BFC242C0); + psx_taken_BFC242C0 = (psx_brA_BFC242C0 == psx_brB_BFC242C0); /* 0xBFC242C4: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC242C0) goto label_BFC24308; @@ -115352,7 +118737,7 @@ label_BFC242C8: /* nop */ /* 0xBFC242D4: 10400009 beq $v0, $zero, 0xBFC242FC */ uint32_t psx_brA_BFC242D4 = cpu->gpr[2]; uint32_t psx_brB_BFC242D4 = cpu->gpr[0]; - int psx_taken_BFC242D4 = (psx_brA_BFC242D4 == psx_brB_BFC242D4); + psx_taken_BFC242D4 = (psx_brA_BFC242D4 == psx_brB_BFC242D4); /* 0xBFC242D8: 24420001 addiu $v0, $v0, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); if (psx_taken_BFC242D4) goto label_BFC242FC; @@ -115379,7 +118764,7 @@ label_BFC242E4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-23264)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC242ECu); return; } g_debug_last_store_pc = 0xBFC242ECu; cpu->write_word(psx_addr, cpu->gpr[2]); } /* 0xBFC242F0: 10000004 beq $zero, $zero, 0xBFC24304 */ uint32_t psx_brA_BFC242F0 = cpu->gpr[0]; uint32_t psx_brB_BFC242F0 = cpu->gpr[0]; - int psx_taken_BFC242F0 = (psx_brA_BFC242F0 == psx_brB_BFC242F0); + psx_taken_BFC242F0 = (psx_brA_BFC242F0 == psx_brB_BFC242F0); /* 0xBFC242F4: 2407FFFF addiu $a3, $zero, -1 */ cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC242F0) goto label_BFC24304; @@ -115433,7 +118818,7 @@ label_BFC24314: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[5] < (60) ? 1 : 0); /* 0xBFC24324: 10200004 beq $at, $zero, 0xBFC24338 */ uint32_t psx_brA_BFC24324 = cpu->gpr[1]; uint32_t psx_brB_BFC24324 = cpu->gpr[0]; - int psx_taken_BFC24324 = (psx_brA_BFC24324 == psx_brB_BFC24324); + psx_taken_BFC24324 = (psx_brA_BFC24324 == psx_brB_BFC24324); /* 0xBFC24328: 24060001 addiu $a2, $zero, 1 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC24324) goto label_BFC24338; @@ -115444,7 +118829,7 @@ label_BFC2432C: psx_check_interrupts(cpu); /* 0xBFC2432C: 10000002 beq $zero, $zero, 0xBFC24338 */ uint32_t psx_brA_BFC2432C = cpu->gpr[0]; uint32_t psx_brB_BFC2432C = cpu->gpr[0]; - int psx_taken_BFC2432C = (psx_brA_BFC2432C == psx_brB_BFC2432C); + psx_taken_BFC2432C = (psx_brA_BFC2432C == psx_brB_BFC2432C); /* 0xBFC24330: 00003021 addu $a2, $zero, $zero */ cpu->gpr[6] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2432C) goto label_BFC24338; @@ -115462,7 +118847,7 @@ label_BFC24338: psx_check_interrupts(cpu); /* 0xBFC24338: 14470017 bne $v0, $a3, 0xBFC24398 */ uint32_t psx_brA_BFC24338 = cpu->gpr[2]; uint32_t psx_brB_BFC24338 = cpu->gpr[7]; - int psx_taken_BFC24338 = (psx_brA_BFC24338 != psx_brB_BFC24338); + psx_taken_BFC24338 = (psx_brA_BFC24338 != psx_brB_BFC24338); /* 0xBFC2433C: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC24338) goto label_BFC24398; @@ -115531,7 +118916,7 @@ label_BFC24390: psx_check_interrupts(cpu); /* 0xBFC24390: 1000001E beq $zero, $zero, 0xBFC2440C */ uint32_t psx_brA_BFC24390 = cpu->gpr[0]; uint32_t psx_brB_BFC24390 = cpu->gpr[0]; - int psx_taken_BFC24390 = (psx_brA_BFC24390 == psx_brB_BFC24390); + psx_taken_BFC24390 = (psx_brA_BFC24390 == psx_brB_BFC24390); /* 0xBFC24394: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24394u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC24390) goto label_BFC2440C; @@ -115542,7 +118927,7 @@ label_BFC24398: psx_check_interrupts(cpu); /* 0xBFC24398: 1840001C blez $v0, 0xBFC2440C */ uint32_t psx_brA_BFC24398 = cpu->gpr[2]; - int psx_taken_BFC24398 = ((int32_t)psx_brA_BFC24398 <= 0); + psx_taken_BFC24398 = ((int32_t)psx_brA_BFC24398 <= 0); /* 0xBFC2439C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2439Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC24398) goto label_BFC2440C; @@ -115593,7 +118978,7 @@ label_BFC243A0: cpu->gpr[1] = 0x80080000u; /* 0xBFC243F0: 17070005 bne $t8, $a3, 0xBFC24408 */ uint32_t psx_brA_BFC243F0 = cpu->gpr[24]; uint32_t psx_brB_BFC243F0 = cpu->gpr[7]; - int psx_taken_BFC243F0 = (psx_brA_BFC243F0 != psx_brB_BFC243F0); + psx_taken_BFC243F0 = (psx_brA_BFC243F0 != psx_brB_BFC243F0); /* 0xBFC243F4: AC259ED0 sw $a1, -24880($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24880)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC243F4u); return; } g_debug_last_store_pc = 0xBFC243F4u; cpu->write_word(psx_addr, cpu->gpr[5]); } if (psx_taken_BFC243F0) goto label_BFC24408; @@ -115650,6 +119035,11 @@ void func_1FC24418(CPUState* cpu) { default: break; } } + int psx_taken_BFC24434 = 0; + int psx_taken_BFC2447C = 0; + int psx_taken_BFC244D0 = 0; + int psx_taken_BFC24548 = 0; + int psx_taken_BFC245A4 = 0; label_BFC24418: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -115671,7 +119061,7 @@ label_BFC24418: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24430u); return; } g_debug_last_store_pc = 0xBFC24430u; cpu->write_word(psx_addr, cpu->gpr[19]); } /* 0xBFC24434: 10200013 beq $at, $zero, 0xBFC24484 */ uint32_t psx_brA_BFC24434 = cpu->gpr[1]; uint32_t psx_brB_BFC24434 = cpu->gpr[0]; - int psx_taken_BFC24434 = (psx_brA_BFC24434 == psx_brB_BFC24434); + psx_taken_BFC24434 = (psx_brA_BFC24434 == psx_brB_BFC24434); /* 0xBFC24438: AFB00018 sw $s0, 24($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24438u); return; } g_debug_last_store_pc = 0xBFC24438u; cpu->write_word(psx_addr, cpu->gpr[16]); } if (psx_taken_BFC24434) goto label_BFC24484; @@ -115726,7 +119116,7 @@ label_BFC2447C: psx_check_interrupts(cpu); /* 0xBFC2447C: 10000011 beq $zero, $zero, 0xBFC244C4 */ uint32_t psx_brA_BFC2447C = cpu->gpr[0]; uint32_t psx_brB_BFC2447C = cpu->gpr[0]; - int psx_taken_BFC2447C = (psx_brA_BFC2447C == psx_brB_BFC2447C); + psx_taken_BFC2447C = (psx_brA_BFC2447C == psx_brB_BFC2447C); /* 0xBFC24480: 00000000 nop */ /* nop */ if (psx_taken_BFC2447C) goto label_BFC244C4; @@ -115793,7 +119183,7 @@ label_BFC244CC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC244D0: 10410056 beq $v0, $at, 0xBFC2462C */ uint32_t psx_brA_BFC244D0 = cpu->gpr[2]; uint32_t psx_brB_BFC244D0 = cpu->gpr[1]; - int psx_taken_BFC244D0 = (psx_brA_BFC244D0 == psx_brB_BFC244D0); + psx_taken_BFC244D0 = (psx_brA_BFC244D0 == psx_brB_BFC244D0); /* 0xBFC244D4: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC244D4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC244D0) goto label_BFC2462C; @@ -115866,7 +119256,7 @@ label_BFC244EC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24544u); return; } g_debug_last_store_pc = 0xBFC24544u; cpu->write_word(psx_addr, cpu->gpr[24]); } /* 0xBFC24548: 10200018 beq $at, $zero, 0xBFC245AC */ uint32_t psx_brA_BFC24548 = cpu->gpr[1]; uint32_t psx_brB_BFC24548 = cpu->gpr[0]; - int psx_taken_BFC24548 = (psx_brA_BFC24548 == psx_brB_BFC24548); + psx_taken_BFC24548 = (psx_brA_BFC24548 == psx_brB_BFC24548); /* 0xBFC2454C: 02009021 addu $s2, $s0, $zero */ cpu->gpr[18] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC24548) goto label_BFC245AC; @@ -115930,7 +119320,7 @@ label_BFC24598: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (92)); /* 0xBFC245A4: 1420FFF8 bne $at, $zero, 0xBFC24588 */ uint32_t psx_brA_BFC245A4 = cpu->gpr[1]; uint32_t psx_brB_BFC245A4 = cpu->gpr[0]; - int psx_taken_BFC245A4 = (psx_brA_BFC245A4 != psx_brB_BFC245A4); + psx_taken_BFC245A4 = (psx_brA_BFC245A4 != psx_brB_BFC245A4); /* 0xBFC245A8: 2631005C addiu $s1, $s1, 92 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (92)); if (psx_taken_BFC245A4) goto label_BFC24588; @@ -116061,6 +119451,24 @@ void func_1FC24640(CPUState* cpu) { default: break; } } + int psx_taken_BFC24674 = 0; + int psx_taken_BFC246BC = 0; + int psx_taken_BFC246F0 = 0; + int psx_taken_BFC24738 = 0; + int psx_taken_BFC247C4 = 0; + int psx_taken_BFC247D0 = 0; + int psx_taken_BFC247F8 = 0; + int psx_taken_BFC24804 = 0; + int psx_taken_BFC2480C = 0; + int psx_taken_BFC24824 = 0; + int psx_taken_BFC248C0 = 0; + int psx_taken_BFC24970 = 0; + int psx_taken_BFC2497C = 0; + int psx_taken_BFC24990 = 0; + int psx_taken_BFC2499C = 0; + int psx_taken_BFC249C8 = 0; + int psx_taken_BFC249D0 = 0; + int psx_taken_BFC249F4 = 0; label_BFC24640: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -116100,7 +119508,7 @@ label_BFC24664: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (60) ? 1 : 0); /* 0xBFC24674: 10200021 beq $at, $zero, 0xBFC246FC */ uint32_t psx_brA_BFC24674 = cpu->gpr[1]; uint32_t psx_brB_BFC24674 = cpu->gpr[0]; - int psx_taken_BFC24674 = (psx_brA_BFC24674 == psx_brB_BFC24674); + psx_taken_BFC24674 = (psx_brA_BFC24674 == psx_brB_BFC24674); /* 0xBFC24678: 00034080 sll $t0, $v1, 2 */ cpu->gpr[8] = cpu->gpr[3] << 2u; if (psx_taken_BFC24674) goto label_BFC246FC; @@ -116149,7 +119557,7 @@ label_BFC246B8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC246BC: 104100DD beq $v0, $at, 0xBFC24A34 */ uint32_t psx_brA_BFC246BC = cpu->gpr[2]; uint32_t psx_brB_BFC246BC = cpu->gpr[1]; - int psx_taken_BFC246BC = (psx_brA_BFC246BC == psx_brB_BFC246BC); + psx_taken_BFC246BC = (psx_brA_BFC246BC == psx_brB_BFC246BC); /* 0xBFC246C0: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC246C0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC246BC) goto label_BFC24A34; @@ -116188,7 +119596,7 @@ label_BFC246F0: psx_check_interrupts(cpu); /* 0xBFC246F0: 1000001F beq $zero, $zero, 0xBFC24770 */ uint32_t psx_brA_BFC246F0 = cpu->gpr[0]; uint32_t psx_brB_BFC246F0 = cpu->gpr[0]; - int psx_taken_BFC246F0 = (psx_brA_BFC246F0 == psx_brB_BFC246F0); + psx_taken_BFC246F0 = (psx_brA_BFC246F0 == psx_brB_BFC246F0); /* 0xBFC246F4: 2413003C addiu $s3, $zero, 60 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[0] + (60)); if (psx_taken_BFC246F0) goto label_BFC24770; @@ -116242,7 +119650,7 @@ label_BFC24734: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC24738: 104100BE beq $v0, $at, 0xBFC24A34 */ uint32_t psx_brA_BFC24738 = cpu->gpr[2]; uint32_t psx_brB_BFC24738 = cpu->gpr[1]; - int psx_taken_BFC24738 = (psx_brA_BFC24738 == psx_brB_BFC24738); + psx_taken_BFC24738 = (psx_brA_BFC24738 == psx_brB_BFC24738); /* 0xBFC2473C: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2473Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC24738) goto label_BFC24A34; @@ -116330,7 +119738,7 @@ label_BFC24770: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (16) ? 1 : 0); /* 0xBFC247C4: 14200004 bne $at, $zero, 0xBFC247D8 */ uint32_t psx_brA_BFC247C4 = cpu->gpr[1]; uint32_t psx_brB_BFC247C4 = cpu->gpr[0]; - int psx_taken_BFC247C4 = (psx_brA_BFC247C4 != psx_brB_BFC247C4); + psx_taken_BFC247C4 = (psx_brA_BFC247C4 != psx_brB_BFC247C4); /* 0xBFC247C8: 00000000 nop */ /* nop */ if (psx_taken_BFC247C4) goto label_BFC247D8; @@ -116343,7 +119751,7 @@ label_BFC247CC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC247CCu); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC247D0: 10000098 beq $zero, $zero, 0xBFC24A34 */ uint32_t psx_brA_BFC247D0 = cpu->gpr[0]; uint32_t psx_brB_BFC247D0 = cpu->gpr[0]; - int psx_taken_BFC247D0 = (psx_brA_BFC247D0 == psx_brB_BFC247D0); + psx_taken_BFC247D0 = (psx_brA_BFC247D0 == psx_brB_BFC247D0); /* 0xBFC247D4: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC247D4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC247D0) goto label_BFC24A34; @@ -116381,7 +119789,7 @@ label_BFC247F8: psx_check_interrupts(cpu); /* 0xBFC247F8: 10400004 beq $v0, $zero, 0xBFC2480C */ uint32_t psx_brA_BFC247F8 = cpu->gpr[2]; uint32_t psx_brB_BFC247F8 = cpu->gpr[0]; - int psx_taken_BFC247F8 = (psx_brA_BFC247F8 == psx_brB_BFC247F8); + psx_taken_BFC247F8 = (psx_brA_BFC247F8 == psx_brB_BFC247F8); /* 0xBFC247FC: 00000000 nop */ /* nop */ if (psx_taken_BFC247F8) goto label_BFC2480C; @@ -116394,7 +119802,7 @@ label_BFC24800: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC24804: 1612FFFA bne $s0, $s2, 0xBFC247F0 */ uint32_t psx_brA_BFC24804 = cpu->gpr[16]; uint32_t psx_brB_BFC24804 = cpu->gpr[18]; - int psx_taken_BFC24804 = (psx_brA_BFC24804 != psx_brB_BFC24804); + psx_taken_BFC24804 = (psx_brA_BFC24804 != psx_brB_BFC24804); /* 0xBFC24808: 02228821 addu $s1, $s1, $v0 */ cpu->gpr[17] = cpu->gpr[17] + cpu->gpr[2]; if (psx_taken_BFC24804) goto label_BFC247F0; @@ -116405,7 +119813,7 @@ label_BFC2480C: psx_check_interrupts(cpu); /* 0xBFC2480C: 16120008 bne $s0, $s2, 0xBFC24830 */ uint32_t psx_brA_BFC2480C = cpu->gpr[16]; uint32_t psx_brB_BFC2480C = cpu->gpr[18]; - int psx_taken_BFC2480C = (psx_brA_BFC2480C != psx_brB_BFC2480C); + psx_taken_BFC2480C = (psx_brA_BFC2480C != psx_brB_BFC2480C); /* 0xBFC24810: 00164880 sll $t1, $s6, 2 */ cpu->gpr[9] = cpu->gpr[22] << 2u; if (psx_taken_BFC2480C) goto label_BFC24830; @@ -116424,7 +119832,7 @@ label_BFC24814: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24820u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC24824: 10000083 beq $zero, $zero, 0xBFC24A34 */ uint32_t psx_brA_BFC24824 = cpu->gpr[0]; uint32_t psx_brB_BFC24824 = cpu->gpr[0]; - int psx_taken_BFC24824 = (psx_brA_BFC24824 == psx_brB_BFC24824); + psx_taken_BFC24824 = (psx_brA_BFC24824 == psx_brB_BFC24824); /* 0xBFC24828: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24828u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC24824) goto label_BFC24A34; @@ -116532,7 +119940,7 @@ label_BFC248C0: psx_check_interrupts(cpu); /* 0xBFC248C0: 1840004F blez $v0, 0xBFC24A00 */ uint32_t psx_brA_BFC248C0 = cpu->gpr[2]; - int psx_taken_BFC248C0 = ((int32_t)psx_brA_BFC248C0 <= 0); + psx_taken_BFC248C0 = ((int32_t)psx_brA_BFC248C0 <= 0); /* 0xBFC248C4: 02C02021 addu $a0, $s6, $zero */ cpu->gpr[4] = cpu->gpr[22] + cpu->gpr[0]; if (psx_taken_BFC248C0) goto label_BFC24A00; @@ -116650,7 +120058,7 @@ label_BFC24960: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (int32_t)cpu->gpr[8] ? 1 : 0); /* 0xBFC24970: 1020000A beq $at, $zero, 0xBFC2499C */ uint32_t psx_brA_BFC24970 = cpu->gpr[1]; uint32_t psx_brB_BFC24970 = cpu->gpr[0]; - int psx_taken_BFC24970 = (psx_brA_BFC24970 == psx_brB_BFC24970); + psx_taken_BFC24970 = (psx_brA_BFC24970 == psx_brB_BFC24970); /* 0xBFC24974: 02421821 addu $v1, $s2, $v0 */ cpu->gpr[3] = cpu->gpr[18] + cpu->gpr[2]; if (psx_taken_BFC24970) goto label_BFC2499C; @@ -116663,7 +120071,7 @@ label_BFC24978: cpu->gpr[3] = cpu->gpr[18] + cpu->gpr[2]; /* 0xBFC2497C: 04610002 bgez $v1, 0xBFC24988 */ uint32_t psx_brA_BFC2497C = cpu->gpr[3]; - int psx_taken_BFC2497C = ((int32_t)psx_brA_BFC2497C >= 0); + psx_taken_BFC2497C = ((int32_t)psx_brA_BFC2497C >= 0); /* 0xBFC24980: 00600821 addu $at, $v1, $zero */ cpu->gpr[1] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC2497C) goto label_BFC24988; @@ -116685,7 +120093,7 @@ label_BFC24988: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC24990: 10000009 beq $zero, $zero, 0xBFC249B8 */ uint32_t psx_brA_BFC24990 = cpu->gpr[0]; uint32_t psx_brB_BFC24990 = cpu->gpr[0]; - int psx_taken_BFC24990 = (psx_brA_BFC24990 == psx_brB_BFC24990); + psx_taken_BFC24990 = (psx_brA_BFC24990 == psx_brB_BFC24990); /* 0xBFC24994: AE030010 sw $v1, 16($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (16)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24994u); return; } g_debug_last_store_pc = 0xBFC24994u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC24990) goto label_BFC249B8; @@ -116703,7 +120111,7 @@ label_BFC2499C: psx_check_interrupts(cpu); /* 0xBFC2499C: 04610002 bgez $v1, 0xBFC249A8 */ uint32_t psx_brA_BFC2499C = cpu->gpr[3]; - int psx_taken_BFC2499C = ((int32_t)psx_brA_BFC2499C >= 0); + psx_taken_BFC2499C = ((int32_t)psx_brA_BFC2499C >= 0); /* 0xBFC249A0: 00600821 addu $at, $v1, $zero */ cpu->gpr[1] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC2499C) goto label_BFC249A8; @@ -116742,7 +120150,7 @@ label_BFC249B8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[12] < (int32_t)cpu->gpr[11] ? 1 : 0); /* 0xBFC249C8: 10200004 beq $at, $zero, 0xBFC249DC */ uint32_t psx_brA_BFC249C8 = cpu->gpr[1]; uint32_t psx_brB_BFC249C8 = cpu->gpr[0]; - int psx_taken_BFC249C8 = (psx_brA_BFC249C8 == psx_brB_BFC249C8); + psx_taken_BFC249C8 = (psx_brA_BFC249C8 == psx_brB_BFC249C8); /* 0xBFC249CC: 00037023 subu $t6, $zero, $v1 */ cpu->gpr[14] = cpu->gpr[0] - cpu->gpr[3]; if (psx_taken_BFC249C8) goto label_BFC249DC; @@ -116753,7 +120161,7 @@ label_BFC249D0: psx_check_interrupts(cpu); /* 0xBFC249D0: 10000003 beq $zero, $zero, 0xBFC249E0 */ uint32_t psx_brA_BFC249D0 = cpu->gpr[0]; uint32_t psx_brB_BFC249D0 = cpu->gpr[0]; - int psx_taken_BFC249D0 = (psx_brA_BFC249D0 == psx_brB_BFC249D0); + psx_taken_BFC249D0 = (psx_brA_BFC249D0 == psx_brB_BFC249D0); /* 0xBFC249D4: AE030014 sw $v1, 20($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC249D4u); return; } g_debug_last_store_pc = 0xBFC249D4u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC249D0) goto label_BFC249E0; @@ -116794,7 +120202,7 @@ label_BFC249F0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[20] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC249F4: 1420FFC1 bne $at, $zero, 0xBFC248FC */ uint32_t psx_brA_BFC249F4 = cpu->gpr[1]; uint32_t psx_brB_BFC249F4 = cpu->gpr[0]; - int psx_taken_BFC249F4 = (psx_brA_BFC249F4 != psx_brB_BFC249F4); + psx_taken_BFC249F4 = (psx_brA_BFC249F4 != psx_brB_BFC249F4); /* 0xBFC249F8: 02C02021 addu $a0, $s6, $zero */ cpu->gpr[4] = cpu->gpr[22] + cpu->gpr[0]; if (psx_taken_BFC249F4) goto label_BFC248FC; @@ -116883,6 +120291,30 @@ void func_1FC24A48(CPUState* cpu) { default: break; } } + int psx_taken_BFC24A8C = 0; + int psx_taken_BFC24AA8 = 0; + int psx_taken_BFC24AF4 = 0; + int psx_taken_BFC24B48 = 0; + int psx_taken_BFC24B60 = 0; + int psx_taken_BFC24B6C = 0; + int psx_taken_BFC24B74 = 0; + int psx_taken_BFC24BD0 = 0; + int psx_taken_BFC24BF8 = 0; + int psx_taken_BFC24C38 = 0; + int psx_taken_BFC24C8C = 0; + int psx_taken_BFC24CA4 = 0; + int psx_taken_BFC24CB0 = 0; + int psx_taken_BFC24CB8 = 0; + int psx_taken_BFC24D4C = 0; + int psx_taken_BFC24D60 = 0; + int psx_taken_BFC24E0C = 0; + int psx_taken_BFC24E18 = 0; + int psx_taken_BFC24E2C = 0; + int psx_taken_BFC24E38 = 0; + int psx_taken_BFC24E64 = 0; + int psx_taken_BFC24E6C = 0; + int psx_taken_BFC24E90 = 0; + int psx_taken_BFC24EC0 = 0; label_BFC24A48: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -116930,7 +120362,7 @@ label_BFC24A7C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (60) ? 1 : 0); /* 0xBFC24A8C: 10200008 beq $at, $zero, 0xBFC24AB0 */ uint32_t psx_brA_BFC24A8C = cpu->gpr[1]; uint32_t psx_brB_BFC24A8C = cpu->gpr[0]; - int psx_taken_BFC24A8C = (psx_brA_BFC24A8C == psx_brB_BFC24A8C); + psx_taken_BFC24A8C = (psx_brA_BFC24A8C == psx_brB_BFC24A8C); /* 0xBFC24A90: 00000000 nop */ /* nop */ if (psx_taken_BFC24A8C) goto label_BFC24AB0; @@ -116951,7 +120383,7 @@ label_BFC24A94: cpu->gpr[30] = (uint32_t)((int32_t)cpu->gpr[0] + (60)); /* 0xBFC24AA8: 10000007 beq $zero, $zero, 0xBFC24AC8 */ uint32_t psx_brA_BFC24AA8 = cpu->gpr[0]; uint32_t psx_brB_BFC24AA8 = cpu->gpr[0]; - int psx_taken_BFC24AA8 = (psx_brA_BFC24AA8 == psx_brB_BFC24AA8); + psx_taken_BFC24AA8 = (psx_brA_BFC24AA8 == psx_brB_BFC24AA8); /* 0xBFC24AAC: AFA300BC sw $v1, 188($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (188)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24AACu); return; } g_debug_last_store_pc = 0xBFC24AACu; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC24AA8) goto label_BFC24AC8; @@ -117012,7 +120444,7 @@ label_BFC24AF0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC24AF4: 10410033 beq $v0, $at, 0xBFC24BC4 */ uint32_t psx_brA_BFC24AF4 = cpu->gpr[2]; uint32_t psx_brB_BFC24AF4 = cpu->gpr[1]; - int psx_taken_BFC24AF4 = (psx_brA_BFC24AF4 == psx_brB_BFC24AF4); + psx_taken_BFC24AF4 = (psx_brA_BFC24AF4 == psx_brB_BFC24AF4); /* 0xBFC24AF8: 8FA200D4 lw $v0, 212($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (212)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24AF8u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC24AF4) goto label_BFC24BC4; @@ -117067,7 +120499,7 @@ label_BFC24B44: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC24B48: 1041001E beq $v0, $at, 0xBFC24BC4 */ uint32_t psx_brA_BFC24B48 = cpu->gpr[2]; uint32_t psx_brB_BFC24B48 = cpu->gpr[1]; - int psx_taken_BFC24B48 = (psx_brA_BFC24B48 == psx_brB_BFC24B48); + psx_taken_BFC24B48 = (psx_brA_BFC24B48 == psx_brB_BFC24B48); /* 0xBFC24B4C: 8FA200D4 lw $v0, 212($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (212)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24B4Cu); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC24B48) goto label_BFC24BC4; @@ -117097,7 +120529,7 @@ label_BFC24B60: psx_check_interrupts(cpu); /* 0xBFC24B60: 10400004 beq $v0, $zero, 0xBFC24B74 */ uint32_t psx_brA_BFC24B60 = cpu->gpr[2]; uint32_t psx_brB_BFC24B60 = cpu->gpr[0]; - int psx_taken_BFC24B60 = (psx_brA_BFC24B60 == psx_brB_BFC24B60); + psx_taken_BFC24B60 = (psx_brA_BFC24B60 == psx_brB_BFC24B60); /* 0xBFC24B64: 00000000 nop */ /* nop */ if (psx_taken_BFC24B60) goto label_BFC24B74; @@ -117110,7 +120542,7 @@ label_BFC24B68: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC24B6C: 1617FFFA bne $s0, $s7, 0xBFC24B58 */ uint32_t psx_brA_BFC24B6C = cpu->gpr[16]; uint32_t psx_brB_BFC24B6C = cpu->gpr[23]; - int psx_taken_BFC24B6C = (psx_brA_BFC24B6C != psx_brB_BFC24B6C); + psx_taken_BFC24B6C = (psx_brA_BFC24B6C != psx_brB_BFC24B6C); /* 0xBFC24B70: 02228821 addu $s1, $s1, $v0 */ cpu->gpr[17] = cpu->gpr[17] + cpu->gpr[2]; if (psx_taken_BFC24B6C) goto label_BFC24B58; @@ -117121,7 +120553,7 @@ label_BFC24B74: psx_check_interrupts(cpu); /* 0xBFC24B74: 12170019 beq $s0, $s7, 0xBFC24BDC */ uint32_t psx_brA_BFC24B74 = cpu->gpr[16]; uint32_t psx_brB_BFC24B74 = cpu->gpr[23]; - int psx_taken_BFC24B74 = (psx_brA_BFC24B74 == psx_brB_BFC24B74); + psx_taken_BFC24B74 = (psx_brA_BFC24B74 == psx_brB_BFC24B74); /* 0xBFC24B78: 8FAB00C4 lw $t3, 196($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (196)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24B78u); return; } cpu->gpr[11] = cpu->read_word(psx_addr); } if (psx_taken_BFC24B74) goto label_BFC24BDC; @@ -117179,7 +120611,7 @@ label_BFC24BC4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (15) ? 1 : 0); /* 0xBFC24BD0: 1420FFC3 bne $at, $zero, 0xBFC24AE0 */ uint32_t psx_brA_BFC24BD0 = cpu->gpr[1]; uint32_t psx_brB_BFC24BD0 = cpu->gpr[0]; - int psx_taken_BFC24BD0 = (psx_brA_BFC24BD0 != psx_brB_BFC24BD0); + psx_taken_BFC24BD0 = (psx_brA_BFC24BD0 != psx_brB_BFC24BD0); /* 0xBFC24BD4: AFA200D4 sw $v0, 212($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (212)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24BD4u); return; } g_debug_last_store_pc = 0xBFC24BD4u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC24BD0) goto label_BFC24AE0; @@ -117211,7 +120643,7 @@ label_BFC24BDC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (16) ? 1 : 0); /* 0xBFC24BF8: 102000B9 beq $at, $zero, 0xBFC24EE0 */ uint32_t psx_brA_BFC24BF8 = cpu->gpr[1]; uint32_t psx_brB_BFC24BF8 = cpu->gpr[0]; - int psx_taken_BFC24BF8 = (psx_brA_BFC24BF8 == psx_brB_BFC24BF8); + psx_taken_BFC24BF8 = (psx_brA_BFC24BF8 == psx_brB_BFC24BF8); /* 0xBFC24BFC: 8FBF003C lw $ra, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24BFCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC24BF8) goto label_BFC24EE0; @@ -117261,7 +120693,7 @@ label_BFC24C34: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC24C38: 1041009E beq $v0, $at, 0xBFC24EB4 */ uint32_t psx_brA_BFC24C38 = cpu->gpr[2]; uint32_t psx_brB_BFC24C38 = cpu->gpr[1]; - int psx_taken_BFC24C38 = (psx_brA_BFC24C38 == psx_brB_BFC24C38); + psx_taken_BFC24C38 = (psx_brA_BFC24C38 == psx_brB_BFC24C38); /* 0xBFC24C3C: 8FA200D4 lw $v0, 212($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (212)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24C3Cu); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC24C38) goto label_BFC24EB4; @@ -117316,7 +120748,7 @@ label_BFC24C88: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC24C8C: 10410089 beq $v0, $at, 0xBFC24EB4 */ uint32_t psx_brA_BFC24C8C = cpu->gpr[2]; uint32_t psx_brB_BFC24C8C = cpu->gpr[1]; - int psx_taken_BFC24C8C = (psx_brA_BFC24C8C == psx_brB_BFC24C8C); + psx_taken_BFC24C8C = (psx_brA_BFC24C8C == psx_brB_BFC24C8C); /* 0xBFC24C90: 8FA200D4 lw $v0, 212($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (212)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24C90u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC24C8C) goto label_BFC24EB4; @@ -117346,7 +120778,7 @@ label_BFC24CA4: psx_check_interrupts(cpu); /* 0xBFC24CA4: 10400004 beq $v0, $zero, 0xBFC24CB8 */ uint32_t psx_brA_BFC24CA4 = cpu->gpr[2]; uint32_t psx_brB_BFC24CA4 = cpu->gpr[0]; - int psx_taken_BFC24CA4 = (psx_brA_BFC24CA4 == psx_brB_BFC24CA4); + psx_taken_BFC24CA4 = (psx_brA_BFC24CA4 == psx_brB_BFC24CA4); /* 0xBFC24CA8: 00000000 nop */ /* nop */ if (psx_taken_BFC24CA4) goto label_BFC24CB8; @@ -117359,7 +120791,7 @@ label_BFC24CAC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC24CB0: 1617FFFA bne $s0, $s7, 0xBFC24C9C */ uint32_t psx_brA_BFC24CB0 = cpu->gpr[16]; uint32_t psx_brB_BFC24CB0 = cpu->gpr[23]; - int psx_taken_BFC24CB0 = (psx_brA_BFC24CB0 != psx_brB_BFC24CB0); + psx_taken_BFC24CB0 = (psx_brA_BFC24CB0 != psx_brB_BFC24CB0); /* 0xBFC24CB4: 02228821 addu $s1, $s1, $v0 */ cpu->gpr[17] = cpu->gpr[17] + cpu->gpr[2]; if (psx_taken_BFC24CB0) goto label_BFC24C9C; @@ -117370,7 +120802,7 @@ label_BFC24CB8: psx_check_interrupts(cpu); /* 0xBFC24CB8: 12170083 beq $s0, $s7, 0xBFC24EC8 */ uint32_t psx_brA_BFC24CB8 = cpu->gpr[16]; uint32_t psx_brB_BFC24CB8 = cpu->gpr[23]; - int psx_taken_BFC24CB8 = (psx_brA_BFC24CB8 == psx_brB_BFC24CB8); + psx_taken_BFC24CB8 = (psx_brA_BFC24CB8 == psx_brB_BFC24CB8); /* 0xBFC24CBC: 00000000 nop */ /* nop */ if (psx_taken_BFC24CB8) goto label_BFC24EC8; @@ -117463,7 +120895,7 @@ label_BFC24D48: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC24D4C: 10410058 beq $v0, $at, 0xBFC24EB0 */ uint32_t psx_brA_BFC24D4C = cpu->gpr[2]; uint32_t psx_brB_BFC24D4C = cpu->gpr[1]; - int psx_taken_BFC24D4C = (psx_brA_BFC24D4C == psx_brB_BFC24D4C); + psx_taken_BFC24D4C = (psx_brA_BFC24D4C == psx_brB_BFC24D4C); /* 0xBFC24D50: 0040A821 addu $s5, $v0, $zero */ cpu->gpr[21] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC24D4C) goto label_BFC24EB0; @@ -117486,7 +120918,7 @@ label_BFC24D60: psx_check_interrupts(cpu); /* 0xBFC24D60: 1840004E blez $v0, 0xBFC24E9C */ uint32_t psx_brA_BFC24D60 = cpu->gpr[2]; - int psx_taken_BFC24D60 = ((int32_t)psx_brA_BFC24D60 <= 0); + psx_taken_BFC24D60 = ((int32_t)psx_brA_BFC24D60 <= 0); /* 0xBFC24D64: 02A02021 addu $a0, $s5, $zero */ cpu->gpr[4] = cpu->gpr[21] + cpu->gpr[0]; if (psx_taken_BFC24D60) goto label_BFC24E9C; @@ -117602,7 +121034,7 @@ label_BFC24DFC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[25] < (int32_t)cpu->gpr[14] ? 1 : 0); /* 0xBFC24E0C: 1020000A beq $at, $zero, 0xBFC24E38 */ uint32_t psx_brA_BFC24E0C = cpu->gpr[1]; uint32_t psx_brB_BFC24E0C = cpu->gpr[0]; - int psx_taken_BFC24E0C = (psx_brA_BFC24E0C == psx_brB_BFC24E0C); + psx_taken_BFC24E0C = (psx_brA_BFC24E0C == psx_brB_BFC24E0C); /* 0xBFC24E10: 02421821 addu $v1, $s2, $v0 */ cpu->gpr[3] = cpu->gpr[18] + cpu->gpr[2]; if (psx_taken_BFC24E0C) goto label_BFC24E38; @@ -117615,7 +121047,7 @@ label_BFC24E14: cpu->gpr[3] = cpu->gpr[18] + cpu->gpr[2]; /* 0xBFC24E18: 04610002 bgez $v1, 0xBFC24E24 */ uint32_t psx_brA_BFC24E18 = cpu->gpr[3]; - int psx_taken_BFC24E18 = ((int32_t)psx_brA_BFC24E18 >= 0); + psx_taken_BFC24E18 = ((int32_t)psx_brA_BFC24E18 >= 0); /* 0xBFC24E1C: 00600821 addu $at, $v1, $zero */ cpu->gpr[1] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC24E18) goto label_BFC24E24; @@ -117637,7 +121069,7 @@ label_BFC24E24: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC24E2C: 10000009 beq $zero, $zero, 0xBFC24E54 */ uint32_t psx_brA_BFC24E2C = cpu->gpr[0]; uint32_t psx_brB_BFC24E2C = cpu->gpr[0]; - int psx_taken_BFC24E2C = (psx_brA_BFC24E2C == psx_brB_BFC24E2C); + psx_taken_BFC24E2C = (psx_brA_BFC24E2C == psx_brB_BFC24E2C); /* 0xBFC24E30: AE030010 sw $v1, 16($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (16)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24E30u); return; } g_debug_last_store_pc = 0xBFC24E30u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC24E2C) goto label_BFC24E54; @@ -117655,7 +121087,7 @@ label_BFC24E38: psx_check_interrupts(cpu); /* 0xBFC24E38: 04610002 bgez $v1, 0xBFC24E44 */ uint32_t psx_brA_BFC24E38 = cpu->gpr[3]; - int psx_taken_BFC24E38 = ((int32_t)psx_brA_BFC24E38 >= 0); + psx_taken_BFC24E38 = ((int32_t)psx_brA_BFC24E38 >= 0); /* 0xBFC24E3C: 00600821 addu $at, $v1, $zero */ cpu->gpr[1] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC24E38) goto label_BFC24E44; @@ -117694,7 +121126,7 @@ label_BFC24E54: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[10] < (int32_t)cpu->gpr[24] ? 1 : 0); /* 0xBFC24E64: 10200004 beq $at, $zero, 0xBFC24E78 */ uint32_t psx_brA_BFC24E64 = cpu->gpr[1]; uint32_t psx_brB_BFC24E64 = cpu->gpr[0]; - int psx_taken_BFC24E64 = (psx_brA_BFC24E64 == psx_brB_BFC24E64); + psx_taken_BFC24E64 = (psx_brA_BFC24E64 == psx_brB_BFC24E64); /* 0xBFC24E68: 00034823 subu $t1, $zero, $v1 */ cpu->gpr[9] = cpu->gpr[0] - cpu->gpr[3]; if (psx_taken_BFC24E64) goto label_BFC24E78; @@ -117705,7 +121137,7 @@ label_BFC24E6C: psx_check_interrupts(cpu); /* 0xBFC24E6C: 10000003 beq $zero, $zero, 0xBFC24E7C */ uint32_t psx_brA_BFC24E6C = cpu->gpr[0]; uint32_t psx_brB_BFC24E6C = cpu->gpr[0]; - int psx_taken_BFC24E6C = (psx_brA_BFC24E6C == psx_brB_BFC24E6C); + psx_taken_BFC24E6C = (psx_brA_BFC24E6C == psx_brB_BFC24E6C); /* 0xBFC24E70: AE030014 sw $v1, 20($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24E70u); return; } g_debug_last_store_pc = 0xBFC24E70u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC24E6C) goto label_BFC24E7C; @@ -117746,7 +121178,7 @@ label_BFC24E8C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[20] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC24E90: 1420FFC1 bne $at, $zero, 0xBFC24D98 */ uint32_t psx_brA_BFC24E90 = cpu->gpr[1]; uint32_t psx_brB_BFC24E90 = cpu->gpr[0]; - int psx_taken_BFC24E90 = (psx_brA_BFC24E90 != psx_brB_BFC24E90); + psx_taken_BFC24E90 = (psx_brA_BFC24E90 != psx_brB_BFC24E90); /* 0xBFC24E94: 02A02021 addu $a0, $s5, $zero */ cpu->gpr[4] = cpu->gpr[21] + cpu->gpr[0]; if (psx_taken_BFC24E90) goto label_BFC24D98; @@ -117798,7 +121230,7 @@ label_BFC24EB4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (15) ? 1 : 0); /* 0xBFC24EC0: 1420FF56 bne $at, $zero, 0xBFC24C1C */ uint32_t psx_brA_BFC24EC0 = cpu->gpr[1]; uint32_t psx_brB_BFC24EC0 = cpu->gpr[0]; - int psx_taken_BFC24EC0 = (psx_brA_BFC24EC0 != psx_brB_BFC24EC0); + psx_taken_BFC24EC0 = (psx_brA_BFC24EC0 != psx_brB_BFC24EC0); /* 0xBFC24EC4: AFA200D4 sw $v0, 212($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (212)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24EC4u); return; } g_debug_last_store_pc = 0xBFC24EC4u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC24EC0) goto label_BFC24C1C; @@ -117884,6 +121316,19 @@ void func_1FC24F00(CPUState* cpu) { default: break; } } + int psx_taken_BFC24F10 = 0; + int psx_taken_BFC24F20 = 0; + int psx_taken_BFC24F3C = 0; + int psx_taken_BFC24F48 = 0; + int psx_taken_BFC24F6C = 0; + int psx_taken_BFC24F78 = 0; + int psx_taken_BFC24F94 = 0; + int psx_taken_BFC24FB4 = 0; + int psx_taken_BFC250DC = 0; + int psx_taken_BFC250F0 = 0; + int psx_taken_BFC25148 = 0; + int psx_taken_BFC25154 = 0; + int psx_taken_BFC2518C = 0; label_BFC24F00: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -117899,7 +121344,7 @@ label_BFC24F00: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24F0Cu); return; } g_debug_last_store_pc = 0xBFC24F0Cu; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC24F10: 15C00006 bne $t6, $zero, 0xBFC24F2C */ uint32_t psx_brA_BFC24F10 = cpu->gpr[14]; uint32_t psx_brB_BFC24F10 = cpu->gpr[0]; - int psx_taken_BFC24F10 = (psx_brA_BFC24F10 != psx_brB_BFC24F10); + psx_taken_BFC24F10 = (psx_brA_BFC24F10 != psx_brB_BFC24F10); /* 0xBFC24F14: 2418003C addiu $t8, $zero, 60 */ cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[0] + (60)); if (psx_taken_BFC24F10) goto label_BFC24F2C; @@ -117914,7 +121359,7 @@ label_BFC24F18: cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC24F20: 10000004 beq $zero, $zero, 0xBFC24F34 */ uint32_t psx_brA_BFC24F20 = cpu->gpr[0]; uint32_t psx_brB_BFC24F20 = cpu->gpr[0]; - int psx_taken_BFC24F20 = (psx_brA_BFC24F20 == psx_brB_BFC24F20); + psx_taken_BFC24F20 = (psx_brA_BFC24F20 == psx_brB_BFC24F20); /* 0xBFC24F24: AFAF0040 sw $t7, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24F24u); return; } g_debug_last_store_pc = 0xBFC24F24u; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC24F20) goto label_BFC24F34; @@ -117951,7 +121396,7 @@ label_BFC24F3C: psx_check_interrupts(cpu); /* 0xBFC24F3C: 10400004 beq $v0, $zero, 0xBFC24F50 */ uint32_t psx_brA_BFC24F3C = cpu->gpr[2]; uint32_t psx_brB_BFC24F3C = cpu->gpr[0]; - int psx_taken_BFC24F3C = (psx_brA_BFC24F3C == psx_brB_BFC24F3C); + psx_taken_BFC24F3C = (psx_brA_BFC24F3C == psx_brB_BFC24F3C); /* 0xBFC24F40: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC24F3C) goto label_BFC24F50; @@ -117964,7 +121409,7 @@ label_BFC24F44: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24F44u); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC24F48: 1000000E beq $zero, $zero, 0xBFC24F84 */ uint32_t psx_brA_BFC24F48 = cpu->gpr[0]; uint32_t psx_brB_BFC24F48 = cpu->gpr[0]; - int psx_taken_BFC24F48 = (psx_brA_BFC24F48 == psx_brB_BFC24F48); + psx_taken_BFC24F48 = (psx_brA_BFC24F48 == psx_brB_BFC24F48); /* 0xBFC24F4C: 00055080 sll $t2, $a1, 2 */ cpu->gpr[10] = cpu->gpr[5] << 2u; if (psx_taken_BFC24F48) goto label_BFC24F84; @@ -117989,7 +121434,7 @@ label_BFC24F50: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC24F6C: 15210005 bne $t1, $at, 0xBFC24F84 */ uint32_t psx_brA_BFC24F6C = cpu->gpr[9]; uint32_t psx_brB_BFC24F6C = cpu->gpr[1]; - int psx_taken_BFC24F6C = (psx_brA_BFC24F6C != psx_brB_BFC24F6C); + psx_taken_BFC24F6C = (psx_brA_BFC24F6C != psx_brB_BFC24F6C); /* 0xBFC24F70: 00055080 sll $t2, $a1, 2 */ cpu->gpr[10] = cpu->gpr[5] << 2u; if (psx_taken_BFC24F6C) goto label_BFC24F84; @@ -118002,7 +121447,7 @@ label_BFC24F74: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC24F78: 10000005 beq $zero, $zero, 0xBFC24F90 */ uint32_t psx_brA_BFC24F78 = cpu->gpr[0]; uint32_t psx_brB_BFC24F78 = cpu->gpr[0]; - int psx_taken_BFC24F78 = (psx_brA_BFC24F78 == psx_brB_BFC24F78); + psx_taken_BFC24F78 = (psx_brA_BFC24F78 == psx_brB_BFC24F78); /* 0xBFC24F7C: AC600000 sw $zero, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC24F7Cu); return; } g_debug_last_store_pc = 0xBFC24F7Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC24F78) goto label_BFC24F90; @@ -118033,7 +121478,7 @@ label_BFC24F90: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC24F94: 1481006F bne $a0, $at, 0xBFC25154 */ uint32_t psx_brA_BFC24F94 = cpu->gpr[4]; uint32_t psx_brB_BFC24F94 = cpu->gpr[1]; - int psx_taken_BFC24F94 = (psx_brA_BFC24F94 != psx_brB_BFC24F94); + psx_taken_BFC24F94 = (psx_brA_BFC24F94 != psx_brB_BFC24F94); /* 0xBFC24F98: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC24F94) goto label_BFC25154; @@ -118056,7 +121501,7 @@ label_BFC24F9C: /* nop */ /* 0xBFC24FB4: 11A00064 beq $t5, $zero, 0xBFC25148 */ uint32_t psx_brA_BFC24FB4 = cpu->gpr[13]; uint32_t psx_brB_BFC24FB4 = cpu->gpr[0]; - int psx_taken_BFC24FB4 = (psx_brA_BFC24FB4 == psx_brB_BFC24FB4); + psx_taken_BFC24FB4 = (psx_brA_BFC24FB4 == psx_brB_BFC24FB4); /* 0xBFC24FB8: 00000000 nop */ /* nop */ if (psx_taken_BFC24FB4) goto label_BFC25148; @@ -118361,7 +121806,7 @@ label_BFC250D8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC250DC: 10410006 beq $v0, $at, 0xBFC250F8 */ uint32_t psx_brA_BFC250DC = cpu->gpr[2]; uint32_t psx_brB_BFC250DC = cpu->gpr[1]; - int psx_taken_BFC250DC = (psx_brA_BFC250DC == psx_brB_BFC250DC); + psx_taken_BFC250DC = (psx_brA_BFC250DC == psx_brB_BFC250DC); /* 0xBFC250E0: 00000000 nop */ /* nop */ if (psx_taken_BFC250DC) goto label_BFC250F8; @@ -118384,7 +121829,7 @@ label_BFC250EC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC250F0: 1441FFFC bne $v0, $at, 0xBFC250E4 */ uint32_t psx_brA_BFC250F0 = cpu->gpr[2]; uint32_t psx_brB_BFC250F0 = cpu->gpr[1]; - int psx_taken_BFC250F0 = (psx_brA_BFC250F0 != psx_brB_BFC250F0); + psx_taken_BFC250F0 = (psx_brA_BFC250F0 != psx_brB_BFC250F0); /* 0xBFC250F4: 00000000 nop */ /* nop */ if (psx_taken_BFC250F0) goto label_BFC250E4; @@ -118458,7 +121903,7 @@ label_BFC25148: psx_check_interrupts(cpu); /* 0xBFC25148: 10000013 beq $zero, $zero, 0xBFC25198 */ uint32_t psx_brA_BFC25148 = cpu->gpr[0]; uint32_t psx_brB_BFC25148 = cpu->gpr[0]; - int psx_taken_BFC25148 = (psx_brA_BFC25148 == psx_brB_BFC25148); + psx_taken_BFC25148 = (psx_brA_BFC25148 == psx_brB_BFC25148); /* 0xBFC2514C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC25148) goto label_BFC25198; @@ -118476,7 +121921,7 @@ label_BFC25154: psx_check_interrupts(cpu); /* 0xBFC25154: 1481000F bne $a0, $at, 0xBFC25194 */ uint32_t psx_brA_BFC25154 = cpu->gpr[4]; uint32_t psx_brB_BFC25154 = cpu->gpr[1]; - int psx_taken_BFC25154 = (psx_brA_BFC25154 != psx_brB_BFC25154); + psx_taken_BFC25154 = (psx_brA_BFC25154 != psx_brB_BFC25154); /* 0xBFC25158: 3C018006 lui $at, 0x8006 */ cpu->gpr[1] = 0x80060000u; if (psx_taken_BFC25154) goto label_BFC25194; @@ -118529,7 +121974,7 @@ label_BFC25180: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-22356)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC25188u); return; } g_debug_last_store_pc = 0xBFC25188u; cpu->write_word(psx_addr, cpu->gpr[10]); } /* 0xBFC2518C: 10000002 beq $zero, $zero, 0xBFC25198 */ uint32_t psx_brA_BFC2518C = cpu->gpr[0]; uint32_t psx_brB_BFC2518C = cpu->gpr[0]; - int psx_taken_BFC2518C = (psx_brA_BFC2518C == psx_brB_BFC2518C); + psx_taken_BFC2518C = (psx_brA_BFC2518C == psx_brB_BFC2518C); /* 0xBFC25190: 2402FFFE addiu $v0, $zero, -2 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); if (psx_taken_BFC2518C) goto label_BFC25198; @@ -118567,6 +122012,8 @@ void func_1FC251A8(CPUState* cpu) { default: break; } } + int psx_taken_BFC251C4 = 0; + int psx_taken_BFC251CC = 0; label_BFC251A8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -118600,7 +122047,7 @@ label_BFC251C4: psx_check_interrupts(cpu); /* 0xBFC251C4: 14400003 bne $v0, $zero, 0xBFC251D4 */ uint32_t psx_brA_BFC251C4 = cpu->gpr[2]; uint32_t psx_brB_BFC251C4 = cpu->gpr[0]; - int psx_taken_BFC251C4 = (psx_brA_BFC251C4 != psx_brB_BFC251C4); + psx_taken_BFC251C4 = (psx_brA_BFC251C4 != psx_brB_BFC251C4); /* 0xBFC251C8: 00000000 nop */ /* nop */ if (psx_taken_BFC251C4) goto label_BFC251D4; @@ -118611,7 +122058,7 @@ label_BFC251CC: psx_check_interrupts(cpu); /* 0xBFC251CC: 10000008 beq $zero, $zero, 0xBFC251F0 */ uint32_t psx_brA_BFC251CC = cpu->gpr[0]; uint32_t psx_brB_BFC251CC = cpu->gpr[0]; - int psx_taken_BFC251CC = (psx_brA_BFC251CC == psx_brB_BFC251CC); + psx_taken_BFC251CC = (psx_brA_BFC251CC == psx_brB_BFC251CC); /* 0xBFC251D0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC251CC) goto label_BFC251F0; @@ -118672,6 +122119,13 @@ void func_1FC25200(CPUState* cpu) { default: break; } } + int psx_taken_BFC25220 = 0; + int psx_taken_BFC25230 = 0; + int psx_taken_BFC25248 = 0; + int psx_taken_BFC25258 = 0; + int psx_taken_BFC25270 = 0; + int psx_taken_BFC25280 = 0; + int psx_taken_BFC25298 = 0; label_BFC25200: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -118706,7 +122160,7 @@ label_BFC25220: psx_check_interrupts(cpu); /* 0xBFC25220: 14500005 bne $v0, $s0, 0xBFC25238 */ uint32_t psx_brA_BFC25220 = cpu->gpr[2]; uint32_t psx_brB_BFC25220 = cpu->gpr[16]; - int psx_taken_BFC25220 = (psx_brA_BFC25220 != psx_brB_BFC25220); + psx_taken_BFC25220 = (psx_brA_BFC25220 != psx_brB_BFC25220); /* 0xBFC25224: 00000000 nop */ /* nop */ if (psx_taken_BFC25220) goto label_BFC25238; @@ -118727,7 +122181,7 @@ label_BFC25230: psx_check_interrupts(cpu); /* 0xBFC25230: 1000001E beq $zero, $zero, 0xBFC252AC */ uint32_t psx_brA_BFC25230 = cpu->gpr[0]; uint32_t psx_brB_BFC25230 = cpu->gpr[0]; - int psx_taken_BFC25230 = (psx_brA_BFC25230 == psx_brB_BFC25230); + psx_taken_BFC25230 = (psx_brA_BFC25230 == psx_brB_BFC25230); /* 0xBFC25234: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC25230) goto label_BFC252AC; @@ -118752,7 +122206,7 @@ label_BFC25248: psx_check_interrupts(cpu); /* 0xBFC25248: 14500005 bne $v0, $s0, 0xBFC25260 */ uint32_t psx_brA_BFC25248 = cpu->gpr[2]; uint32_t psx_brB_BFC25248 = cpu->gpr[16]; - int psx_taken_BFC25248 = (psx_brA_BFC25248 != psx_brB_BFC25248); + psx_taken_BFC25248 = (psx_brA_BFC25248 != psx_brB_BFC25248); /* 0xBFC2524C: 00000000 nop */ /* nop */ if (psx_taken_BFC25248) goto label_BFC25260; @@ -118773,7 +122227,7 @@ label_BFC25258: psx_check_interrupts(cpu); /* 0xBFC25258: 10000014 beq $zero, $zero, 0xBFC252AC */ uint32_t psx_brA_BFC25258 = cpu->gpr[0]; uint32_t psx_brB_BFC25258 = cpu->gpr[0]; - int psx_taken_BFC25258 = (psx_brA_BFC25258 == psx_brB_BFC25258); + psx_taken_BFC25258 = (psx_brA_BFC25258 == psx_brB_BFC25258); /* 0xBFC2525C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC25258) goto label_BFC252AC; @@ -118798,7 +122252,7 @@ label_BFC25270: psx_check_interrupts(cpu); /* 0xBFC25270: 14500005 bne $v0, $s0, 0xBFC25288 */ uint32_t psx_brA_BFC25270 = cpu->gpr[2]; uint32_t psx_brB_BFC25270 = cpu->gpr[16]; - int psx_taken_BFC25270 = (psx_brA_BFC25270 != psx_brB_BFC25270); + psx_taken_BFC25270 = (psx_brA_BFC25270 != psx_brB_BFC25270); /* 0xBFC25274: 00000000 nop */ /* nop */ if (psx_taken_BFC25270) goto label_BFC25288; @@ -118819,7 +122273,7 @@ label_BFC25280: psx_check_interrupts(cpu); /* 0xBFC25280: 1000000A beq $zero, $zero, 0xBFC252AC */ uint32_t psx_brA_BFC25280 = cpu->gpr[0]; uint32_t psx_brB_BFC25280 = cpu->gpr[0]; - int psx_taken_BFC25280 = (psx_brA_BFC25280 == psx_brB_BFC25280); + psx_taken_BFC25280 = (psx_brA_BFC25280 == psx_brB_BFC25280); /* 0xBFC25284: 24020002 addiu $v0, $zero, 2 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC25280) goto label_BFC252AC; @@ -118844,7 +122298,7 @@ label_BFC25298: psx_check_interrupts(cpu); /* 0xBFC25298: 1450FFDD bne $v0, $s0, 0xBFC25210 */ uint32_t psx_brA_BFC25298 = cpu->gpr[2]; uint32_t psx_brB_BFC25298 = cpu->gpr[16]; - int psx_taken_BFC25298 = (psx_brA_BFC25298 != psx_brB_BFC25298); + psx_taken_BFC25298 = (psx_brA_BFC25298 != psx_brB_BFC25298); /* 0xBFC2529C: 00000000 nop */ /* nop */ if (psx_taken_BFC25298) goto label_BFC25210; @@ -119106,6 +122560,11 @@ void func_1FC25390(CPUState* cpu) { default: break; } } + int psx_taken_BFC2539C = 0; + int psx_taken_BFC253B0 = 0; + int psx_taken_BFC253B8 = 0; + int psx_taken_BFC253FC = 0; + int psx_taken_BFC25410 = 0; label_BFC25390: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -119119,7 +122578,7 @@ label_BFC25390: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-48)); /* 0xBFC2539C: 11C00040 beq $t6, $zero, 0xBFC254A0 */ uint32_t psx_brA_BFC2539C = cpu->gpr[14]; uint32_t psx_brB_BFC2539C = cpu->gpr[0]; - int psx_taken_BFC2539C = (psx_brA_BFC2539C == psx_brB_BFC2539C); + psx_taken_BFC2539C = (psx_brA_BFC2539C == psx_brB_BFC2539C); /* 0xBFC253A0: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC253A0u); return; } g_debug_last_store_pc = 0xBFC253A0u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC2539C) goto label_BFC254A0; @@ -119136,7 +122595,7 @@ label_BFC253A4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC253ACu); return; } g_debug_last_store_pc = 0xBFC253ACu; cpu->write_word(psx_addr, cpu->gpr[16]); } /* 0xBFC253B0: 11E00003 beq $t7, $zero, 0xBFC253C0 */ uint32_t psx_brA_BFC253B0 = cpu->gpr[15]; uint32_t psx_brB_BFC253B0 = cpu->gpr[0]; - int psx_taken_BFC253B0 = (psx_brA_BFC253B0 == psx_brB_BFC253B0); + psx_taken_BFC253B0 = (psx_brA_BFC253B0 == psx_brB_BFC253B0); /* 0xBFC253B4: AFB1001C sw $s1, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC253B4u); return; } g_debug_last_store_pc = 0xBFC253B4u; cpu->write_word(psx_addr, cpu->gpr[17]); } if (psx_taken_BFC253B0) goto label_BFC253C0; @@ -119147,7 +122606,7 @@ label_BFC253B8: psx_check_interrupts(cpu); /* 0xBFC253B8: 10000002 beq $zero, $zero, 0xBFC253C4 */ uint32_t psx_brA_BFC253B8 = cpu->gpr[0]; uint32_t psx_brB_BFC253B8 = cpu->gpr[0]; - int psx_taken_BFC253B8 = (psx_brA_BFC253B8 == psx_brB_BFC253B8); + psx_taken_BFC253B8 = (psx_brA_BFC253B8 == psx_brB_BFC253B8); /* 0xBFC253BC: 2403004A addiu $v1, $zero, 74 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (74)); if (psx_taken_BFC253B8) goto label_BFC253C4; @@ -119205,7 +122664,7 @@ label_BFC253E4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[16] ? 1 : 0); /* 0xBFC253FC: 10200006 beq $at, $zero, 0xBFC25418 */ uint32_t psx_brA_BFC253FC = cpu->gpr[1]; uint32_t psx_brB_BFC253FC = cpu->gpr[0]; - int psx_taken_BFC253FC = (psx_brA_BFC253FC == psx_brB_BFC253FC); + psx_taken_BFC253FC = (psx_brA_BFC253FC == psx_brB_BFC253FC); /* 0xBFC25400: 00000000 nop */ /* nop */ if (psx_taken_BFC253FC) goto label_BFC25418; @@ -119228,7 +122687,7 @@ label_BFC2540C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[16] ? 1 : 0); /* 0xBFC25410: 1420FFFC bne $at, $zero, 0xBFC25404 */ uint32_t psx_brA_BFC25410 = cpu->gpr[1]; uint32_t psx_brB_BFC25410 = cpu->gpr[0]; - int psx_taken_BFC25410 = (psx_brA_BFC25410 != psx_brB_BFC25410); + psx_taken_BFC25410 = (psx_brA_BFC25410 != psx_brB_BFC25410); /* 0xBFC25414: 00000000 nop */ /* nop */ if (psx_taken_BFC25410) goto label_BFC25404; @@ -119577,6 +123036,8 @@ void func_1FC255A0(CPUState* cpu) { default: break; } } + int psx_taken_BFC25620 = 0; + int psx_taken_BFC25690 = 0; label_BFC255A0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -119659,7 +123120,7 @@ label_BFC25604: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2561Cu); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC25620: 152AFFF8 bne $t1, $t2, 0xBFC25604 */ uint32_t psx_brA_BFC25620 = cpu->gpr[9]; uint32_t psx_brB_BFC25620 = cpu->gpr[10]; - int psx_taken_BFC25620 = (psx_brA_BFC25620 != psx_brB_BFC25620); + psx_taken_BFC25620 = (psx_brA_BFC25620 != psx_brB_BFC25620); /* 0xBFC25624: AD01FFFC sw $at, -4($t0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[8] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC25624u); return; } g_debug_last_store_pc = 0xBFC25624u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC25620) goto label_BFC25604; @@ -119727,7 +123188,7 @@ label_BFC25658: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[13] + (-1)); uint32_t psx_aligned = psx_addr & ~3u; uint32_t psx_shift_bytes = psx_addr & 3u; uint32_t psx_shift_bits = (3u - psx_shift_bytes) * 8u; uint32_t psx_keep_mask = 0x00FFFFFFu >> (psx_shift_bytes * 8u); uint32_t psx_mem = cpu->read_word(psx_aligned); uint32_t psx_new = (psx_mem & psx_keep_mask) | (cpu->gpr[1] >> psx_shift_bits); g_debug_last_store_pc = 0xBFC2568Cu; cpu->write_word(psx_aligned, psx_new); } /* 0xBFC25690: 15CFFFF1 bne $t6, $t7, 0xBFC25658 */ uint32_t psx_brA_BFC25690 = cpu->gpr[14]; uint32_t psx_brB_BFC25690 = cpu->gpr[15]; - int psx_taken_BFC25690 = (psx_brA_BFC25690 != psx_brB_BFC25690); + psx_taken_BFC25690 = (psx_brA_BFC25690 != psx_brB_BFC25690); /* 0xBFC25694: B9A1FFFC swr $at, -4($t5) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[13] + (-4)); uint32_t psx_aligned = psx_addr & ~3u; uint32_t psx_shift_bytes = psx_addr & 3u; uint32_t psx_shift_bits = psx_shift_bytes * 8u; uint32_t psx_keep_mask = 0xFFFFFF00u << ((3u - psx_shift_bytes) * 8u); uint32_t psx_mem = cpu->read_word(psx_aligned); uint32_t psx_new = (psx_mem & psx_keep_mask) | (cpu->gpr[1] << psx_shift_bits); g_debug_last_store_pc = 0xBFC25694u; cpu->write_word(psx_aligned, psx_new); } if (psx_taken_BFC25690) goto label_BFC25658; @@ -119772,6 +123233,12 @@ label_BFC25698: void func_1FC256D8(CPUState* cpu) { debug_server_log_call_entry(0x1FC256D8u); + int psx_taken_BFC256DC = 0; + int psx_taken_BFC256F4 = 0; + int psx_taken_BFC2570C = 0; + int psx_taken_BFC25714 = 0; + int psx_taken_BFC25728 = 0; + int psx_taken_BFC2573C = 0; label_BFC256D8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -119781,7 +123248,7 @@ label_BFC256D8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC256DC: 1481000D bne $a0, $at, 0xBFC25714 */ uint32_t psx_brA_BFC256DC = cpu->gpr[4]; uint32_t psx_brB_BFC256DC = cpu->gpr[1]; - int psx_taken_BFC256DC = (psx_brA_BFC256DC != psx_brB_BFC256DC); + psx_taken_BFC256DC = (psx_brA_BFC256DC != psx_brB_BFC256DC); /* 0xBFC256E0: 00000000 nop */ /* nop */ if (psx_taken_BFC256DC) goto label_BFC25714; @@ -119800,7 +123267,7 @@ label_BFC256E4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (2) ? 1 : 0); /* 0xBFC256F4: 14200007 bne $at, $zero, 0xBFC25714 */ uint32_t psx_brA_BFC256F4 = cpu->gpr[1]; uint32_t psx_brB_BFC256F4 = cpu->gpr[0]; - int psx_taken_BFC256F4 = (psx_brA_BFC256F4 != psx_brB_BFC256F4); + psx_taken_BFC256F4 = (psx_brA_BFC256F4 != psx_brB_BFC256F4); /* 0xBFC256F8: 00000000 nop */ /* nop */ if (psx_taken_BFC256F4) goto label_BFC25714; @@ -119819,7 +123286,7 @@ label_BFC256FC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[15] < (2) ? 1 : 0); /* 0xBFC2570C: 1020FFFB beq $at, $zero, 0xBFC256FC */ uint32_t psx_brA_BFC2570C = cpu->gpr[1]; uint32_t psx_brB_BFC2570C = cpu->gpr[0]; - int psx_taken_BFC2570C = (psx_brA_BFC2570C == psx_brB_BFC2570C); + psx_taken_BFC2570C = (psx_brA_BFC2570C == psx_brB_BFC2570C); /* 0xBFC25710: 00000000 nop */ /* nop */ if (psx_taken_BFC2570C) goto label_BFC256FC; @@ -119830,7 +123297,7 @@ label_BFC25714: psx_check_interrupts(cpu); /* 0xBFC25714: 1480000B bne $a0, $zero, 0xBFC25744 */ uint32_t psx_brA_BFC25714 = cpu->gpr[4]; uint32_t psx_brB_BFC25714 = cpu->gpr[0]; - int psx_taken_BFC25714 = (psx_brA_BFC25714 != psx_brB_BFC25714); + psx_taken_BFC25714 = (psx_brA_BFC25714 != psx_brB_BFC25714); /* 0xBFC25718: 00000000 nop */ /* nop */ if (psx_taken_BFC25714) goto label_BFC25744; @@ -119847,7 +123314,7 @@ label_BFC2571C: /* nop */ /* 0xBFC25728: 13000006 beq $t8, $zero, 0xBFC25744 */ uint32_t psx_brA_BFC25728 = cpu->gpr[24]; uint32_t psx_brB_BFC25728 = cpu->gpr[0]; - int psx_taken_BFC25728 = (psx_brA_BFC25728 == psx_brB_BFC25728); + psx_taken_BFC25728 = (psx_brA_BFC25728 == psx_brB_BFC25728); /* 0xBFC2572C: 00000000 nop */ /* nop */ if (psx_taken_BFC25728) goto label_BFC25744; @@ -119864,7 +123331,7 @@ label_BFC25730: /* nop */ /* 0xBFC2573C: 1720FFFC bne $t9, $zero, 0xBFC25730 */ uint32_t psx_brA_BFC2573C = cpu->gpr[25]; uint32_t psx_brB_BFC2573C = cpu->gpr[0]; - int psx_taken_BFC2573C = (psx_brA_BFC2573C != psx_brB_BFC2573C); + psx_taken_BFC2573C = (psx_brA_BFC2573C != psx_brB_BFC2573C); /* 0xBFC25740: 00000000 nop */ /* nop */ if (psx_taken_BFC2573C) goto label_BFC25730; @@ -119893,6 +123360,10 @@ void func_1FC25754(CPUState* cpu) { default: break; } } + int psx_taken_BFC2579C = 0; + int psx_taken_BFC257D8 = 0; + int psx_taken_BFC25804 = 0; + int psx_taken_BFC25838 = 0; label_BFC25754: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -119941,7 +123412,7 @@ label_BFC25788: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < 0x00004000u ? 1 : 0); /* 0xBFC2579C: 10200028 beq $at, $zero, 0xBFC25840 */ uint32_t psx_brA_BFC2579C = cpu->gpr[1]; uint32_t psx_brB_BFC2579C = cpu->gpr[0]; - int psx_taken_BFC2579C = (psx_brA_BFC2579C == psx_brB_BFC2579C); + psx_taken_BFC2579C = (psx_brA_BFC2579C == psx_brB_BFC2579C); /* 0xBFC257A0: 00000000 nop */ /* nop */ if (psx_taken_BFC2579C) goto label_BFC25840; @@ -119978,7 +123449,7 @@ label_BFC257A4: cpu->gpr[3] = cpu->gpr[5] >> 24u; /* 0xBFC257D8: 10600009 beq $v1, $zero, 0xBFC25800 */ uint32_t psx_brA_BFC257D8 = cpu->gpr[3]; uint32_t psx_brB_BFC257D8 = cpu->gpr[0]; - int psx_taken_BFC257D8 = (psx_brA_BFC257D8 == psx_brB_BFC257D8); + psx_taken_BFC257D8 = (psx_brA_BFC257D8 == psx_brB_BFC257D8); /* 0xBFC257DC: 00055A00 sll $t3, $a1, 8 */ cpu->gpr[11] = cpu->gpr[5] << 8u; if (psx_taken_BFC257D8) goto label_BFC25800; @@ -120018,7 +123489,7 @@ label_BFC25800: cpu->gpr[12] = cpu->gpr[11] >> 8u; /* 0xBFC25804: 128C000E beq $s4, $t4, 0xBFC25840 */ uint32_t psx_brA_BFC25804 = cpu->gpr[20]; uint32_t psx_brB_BFC25804 = cpu->gpr[12]; - int psx_taken_BFC25804 = (psx_brA_BFC25804 == psx_brB_BFC25804); + psx_taken_BFC25804 = (psx_brA_BFC25804 == psx_brB_BFC25804); /* 0xBFC25808: 00000000 nop */ /* nop */ if (psx_taken_BFC25804) goto label_BFC25840; @@ -120051,7 +123522,7 @@ label_BFC2580C: cpu->gpr[17] = cpu->gpr[17] << 8u; /* 0xBFC25838: 1000FFD3 beq $zero, $zero, 0xBFC25788 */ uint32_t psx_brA_BFC25838 = cpu->gpr[0]; uint32_t psx_brB_BFC25838 = cpu->gpr[0]; - int psx_taken_BFC25838 = (psx_brA_BFC25838 == psx_brB_BFC25838); + psx_taken_BFC25838 = (psx_brA_BFC25838 == psx_brB_BFC25838); /* 0xBFC2583C: 00118A02 srl $s1, $s1, 8 */ cpu->gpr[17] = cpu->gpr[17] >> 8u; if (psx_taken_BFC25838) goto label_BFC25788; @@ -120098,6 +123569,8 @@ label_BFC25840: void func_1FC25884(CPUState* cpu) { debug_server_log_call_entry(0x1FC25884u); + int psx_taken_BFC25888 = 0; + int psx_taken_BFC258A4 = 0; label_BFC25884: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -120107,7 +123580,7 @@ label_BFC25884: cpu->gpr[2] = cpu->gpr[6] + cpu->gpr[0]; /* 0xBFC25888: 10400008 beq $v0, $zero, 0xBFC258AC */ uint32_t psx_brA_BFC25888 = cpu->gpr[2]; uint32_t psx_brB_BFC25888 = cpu->gpr[0]; - int psx_taken_BFC25888 = (psx_brA_BFC25888 == psx_brB_BFC25888); + psx_taken_BFC25888 = (psx_brA_BFC25888 == psx_brB_BFC25888); /* 0xBFC2588C: 24C6FFFF addiu $a2, $a2, -1 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); if (psx_taken_BFC25888) goto label_BFC258AC; @@ -120128,7 +123601,7 @@ label_BFC25890: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); /* 0xBFC258A4: 1440FFFA bne $v0, $zero, 0xBFC25890 */ uint32_t psx_brA_BFC258A4 = cpu->gpr[2]; uint32_t psx_brB_BFC258A4 = cpu->gpr[0]; - int psx_taken_BFC258A4 = (psx_brA_BFC258A4 != psx_brB_BFC258A4); + psx_taken_BFC258A4 = (psx_brA_BFC258A4 != psx_brB_BFC258A4); /* 0xBFC258A8: AC8EFFFC sw $t6, -4($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC258A8u); return; } g_debug_last_store_pc = 0xBFC258A8u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC258A4) goto label_BFC25890; @@ -120145,6 +123618,12 @@ label_BFC258AC: void func_1FC2592C(CPUState* cpu) { debug_server_log_call_entry(0x1FC2592Cu); + int psx_taken_BFC2593C = 0; + int psx_taken_BFC25944 = 0; + int psx_taken_BFC2595C = 0; + int psx_taken_BFC25978 = 0; + int psx_taken_BFC25980 = 0; + int psx_taken_BFC25998 = 0; label_BFC2592C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -120160,7 +123639,7 @@ label_BFC2592C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC2593C: 10200003 beq $at, $zero, 0xBFC2594C */ uint32_t psx_brA_BFC2593C = cpu->gpr[1]; uint32_t psx_brB_BFC2593C = cpu->gpr[0]; - int psx_taken_BFC2593C = (psx_brA_BFC2593C == psx_brB_BFC2593C); + psx_taken_BFC2593C = (psx_brA_BFC2593C == psx_brB_BFC2593C); /* 0xBFC25940: 00000000 nop */ /* nop */ if (psx_taken_BFC2593C) goto label_BFC2594C; @@ -120171,7 +123650,7 @@ label_BFC25944: psx_check_interrupts(cpu); /* 0xBFC25944: 10000008 beq $zero, $zero, 0xBFC25968 */ uint32_t psx_brA_BFC25944 = cpu->gpr[0]; uint32_t psx_brB_BFC25944 = cpu->gpr[0]; - int psx_taken_BFC25944 = (psx_brA_BFC25944 == psx_brB_BFC25944); + psx_taken_BFC25944 = (psx_brA_BFC25944 == psx_brB_BFC25944); /* 0xBFC25948: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC25944) goto label_BFC25968; @@ -120190,7 +123669,7 @@ label_BFC2594C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[4] ? 1 : 0); /* 0xBFC2595C: 10200002 beq $at, $zero, 0xBFC25968 */ uint32_t psx_brA_BFC2595C = cpu->gpr[1]; uint32_t psx_brB_BFC2595C = cpu->gpr[0]; - int psx_taken_BFC2595C = (psx_brA_BFC2595C == psx_brB_BFC2595C); + psx_taken_BFC2595C = (psx_brA_BFC2595C == psx_brB_BFC2595C); /* 0xBFC25960: 00000000 nop */ /* nop */ if (psx_taken_BFC2595C) goto label_BFC25968; @@ -120216,7 +123695,7 @@ label_BFC25968: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[5] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC25978: 10200003 beq $at, $zero, 0xBFC25988 */ uint32_t psx_brA_BFC25978 = cpu->gpr[1]; uint32_t psx_brB_BFC25978 = cpu->gpr[0]; - int psx_taken_BFC25978 = (psx_brA_BFC25978 == psx_brB_BFC25978); + psx_taken_BFC25978 = (psx_brA_BFC25978 == psx_brB_BFC25978); /* 0xBFC2597C: 00000000 nop */ /* nop */ if (psx_taken_BFC25978) goto label_BFC25988; @@ -120227,7 +123706,7 @@ label_BFC25980: psx_check_interrupts(cpu); /* 0xBFC25980: 10000008 beq $zero, $zero, 0xBFC259A4 */ uint32_t psx_brA_BFC25980 = cpu->gpr[0]; uint32_t psx_brB_BFC25980 = cpu->gpr[0]; - int psx_taken_BFC25980 = (psx_brA_BFC25980 == psx_brB_BFC25980); + psx_taken_BFC25980 = (psx_brA_BFC25980 == psx_brB_BFC25980); /* 0xBFC25984: 00402821 addu $a1, $v0, $zero */ cpu->gpr[5] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC25980) goto label_BFC259A4; @@ -120246,7 +123725,7 @@ label_BFC25988: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[5] ? 1 : 0); /* 0xBFC25998: 10200002 beq $at, $zero, 0xBFC259A4 */ uint32_t psx_brA_BFC25998 = cpu->gpr[1]; uint32_t psx_brB_BFC25998 = cpu->gpr[0]; - int psx_taken_BFC25998 = (psx_brA_BFC25998 == psx_brB_BFC25998); + psx_taken_BFC25998 = (psx_brA_BFC25998 == psx_brB_BFC25998); /* 0xBFC2599C: 00000000 nop */ /* nop */ if (psx_taken_BFC25998) goto label_BFC259A4; @@ -120276,6 +123755,22 @@ label_BFC259A4: void func_1FC259D8(CPUState* cpu) { debug_server_log_call_entry(0x1FC259D8u); + int psx_taken_BFC259FC = 0; + int psx_taken_BFC25A10 = 0; + int psx_taken_BFC25A1C = 0; + int psx_taken_BFC25A24 = 0; + int psx_taken_BFC25A58 = 0; + int psx_taken_BFC25A80 = 0; + int psx_taken_BFC25A98 = 0; + int psx_taken_BFC25AC0 = 0; + int psx_taken_BFC25AE4 = 0; + int psx_taken_BFC25AF4 = 0; + int psx_taken_BFC25AFC = 0; + int psx_taken_BFC25B0C = 0; + int psx_taken_BFC25B40 = 0; + int psx_taken_BFC25B4C = 0; + int psx_taken_BFC25B54 = 0; + int psx_taken_BFC25B5C = 0; label_BFC259D8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -120301,7 +123796,7 @@ label_BFC259D8: /* nop */ /* 0xBFC259FC: 13000003 beq $t8, $zero, 0xBFC25A0C */ uint32_t psx_brA_BFC259FC = cpu->gpr[24]; uint32_t psx_brB_BFC259FC = cpu->gpr[0]; - int psx_taken_BFC259FC = (psx_brA_BFC259FC == psx_brB_BFC259FC); + psx_taken_BFC259FC = (psx_brA_BFC259FC == psx_brB_BFC259FC); /* 0xBFC25A00: 00000000 nop */ /* nop */ if (psx_taken_BFC259FC) goto label_BFC25A0C; @@ -120323,7 +123818,7 @@ label_BFC25A0C: cpu->gpr[4] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[2] + (1))); /* 0xBFC25A10: 1000004D beq $zero, $zero, 0xBFC25B48 */ uint32_t psx_brA_BFC25A10 = cpu->gpr[0]; uint32_t psx_brB_BFC25A10 = cpu->gpr[0]; - int psx_taken_BFC25A10 = (psx_brA_BFC25A10 == psx_brB_BFC25A10); + psx_taken_BFC25A10 = (psx_brA_BFC25A10 == psx_brB_BFC25A10); /* 0xBFC25A14: 308300F0 andi $v1, $a0, 0xF0 */ cpu->gpr[3] = cpu->gpr[4] & 0xF0u; if (psx_taken_BFC25A10) goto label_BFC25B48; @@ -120336,7 +123831,7 @@ label_BFC25A18: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (18)); /* 0xBFC25A1C: 10810003 beq $a0, $at, 0xBFC25A2C */ uint32_t psx_brA_BFC25A1C = cpu->gpr[4]; uint32_t psx_brB_BFC25A1C = cpu->gpr[1]; - int psx_taken_BFC25A1C = (psx_brA_BFC25A1C == psx_brB_BFC25A1C); + psx_taken_BFC25A1C = (psx_brA_BFC25A1C == psx_brB_BFC25A1C); /* 0xBFC25A20: 00000000 nop */ /* nop */ if (psx_taken_BFC25A1C) goto label_BFC25A2C; @@ -120347,7 +123842,7 @@ label_BFC25A24: psx_check_interrupts(cpu); /* 0xBFC25A24: 10000050 beq $zero, $zero, 0xBFC25B68 */ uint32_t psx_brA_BFC25A24 = cpu->gpr[0]; uint32_t psx_brB_BFC25A24 = cpu->gpr[0]; - int psx_taken_BFC25A24 = (psx_brA_BFC25A24 == psx_brB_BFC25A24); + psx_taken_BFC25A24 = (psx_brA_BFC25A24 == psx_brB_BFC25A24); /* 0xBFC25A28: 2403FFFF addiu $v1, $zero, -1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC25A24) goto label_BFC25B68; @@ -120380,7 +123875,7 @@ label_BFC25A2C: cpu->gpr[11] = cpu->gpr[10] & 0x8u; /* 0xBFC25A58: 11600006 beq $t3, $zero, 0xBFC25A74 */ uint32_t psx_brA_BFC25A58 = cpu->gpr[11]; uint32_t psx_brB_BFC25A58 = cpu->gpr[0]; - int psx_taken_BFC25A58 = (psx_brA_BFC25A58 == psx_brB_BFC25A58); + psx_taken_BFC25A58 = (psx_brA_BFC25A58 == psx_brB_BFC25A58); /* 0xBFC25A5C: 00000000 nop */ /* nop */ if (psx_taken_BFC25A58) goto label_BFC25A74; @@ -120412,7 +123907,7 @@ label_BFC25A74: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC25A80: 15C40014 bne $t6, $a0, 0xBFC25AD4 */ uint32_t psx_brA_BFC25A80 = cpu->gpr[14]; uint32_t psx_brB_BFC25A80 = cpu->gpr[4]; - int psx_taken_BFC25A80 = (psx_brA_BFC25A80 != psx_brB_BFC25A80); + psx_taken_BFC25A80 = (psx_brA_BFC25A80 != psx_brB_BFC25A80); /* 0xBFC25A84: 00000000 nop */ /* nop */ if (psx_taken_BFC25A80) goto label_BFC25AD4; @@ -120431,7 +123926,7 @@ label_BFC25A88: cpu->gpr[25] = cpu->gpr[24] & 0x4u; /* 0xBFC25A98: 13200006 beq $t9, $zero, 0xBFC25AB4 */ uint32_t psx_brA_BFC25A98 = cpu->gpr[25]; uint32_t psx_brB_BFC25A98 = cpu->gpr[0]; - int psx_taken_BFC25A98 = (psx_brA_BFC25A98 == psx_brB_BFC25A98); + psx_taken_BFC25A98 = (psx_brA_BFC25A98 == psx_brB_BFC25A98); /* 0xBFC25A9C: 00000000 nop */ /* nop */ if (psx_taken_BFC25A98) goto label_BFC25AB4; @@ -120463,7 +123958,7 @@ label_BFC25AB4: cpu->gpr[11] = cpu->gpr[10] & 0xFFFFu; /* 0xBFC25AC0: 15610004 bne $t3, $at, 0xBFC25AD4 */ uint32_t psx_brA_BFC25AC0 = cpu->gpr[11]; uint32_t psx_brB_BFC25AC0 = cpu->gpr[1]; - int psx_taken_BFC25AC0 = (psx_brA_BFC25AC0 != psx_brB_BFC25AC0); + psx_taken_BFC25AC0 = (psx_brA_BFC25AC0 != psx_brB_BFC25AC0); /* 0xBFC25AC4: 00000000 nop */ /* nop */ if (psx_taken_BFC25AC0) goto label_BFC25AD4; @@ -120493,7 +123988,7 @@ label_BFC25AD4: cpu->gpr[3] = cpu->gpr[3] & 0xF0u; /* 0xBFC25AE4: 15A40021 bne $t5, $a0, 0xBFC25B6C */ uint32_t psx_brA_BFC25AE4 = cpu->gpr[13]; uint32_t psx_brB_BFC25AE4 = cpu->gpr[4]; - int psx_taken_BFC25AE4 = (psx_brA_BFC25AE4 != psx_brB_BFC25AE4); + psx_taken_BFC25AE4 = (psx_brA_BFC25AE4 != psx_brB_BFC25AE4); /* 0xBFC25AE8: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC25AE4) goto label_BFC25B6C; @@ -120508,7 +124003,7 @@ label_BFC25AEC: /* nop */ /* 0xBFC25AF4: 15C00003 bne $t6, $zero, 0xBFC25B04 */ uint32_t psx_brA_BFC25AF4 = cpu->gpr[14]; uint32_t psx_brB_BFC25AF4 = cpu->gpr[0]; - int psx_taken_BFC25AF4 = (psx_brA_BFC25AF4 != psx_brB_BFC25AF4); + psx_taken_BFC25AF4 = (psx_brA_BFC25AF4 != psx_brB_BFC25AF4); /* 0xBFC25AF8: 3C018006 lui $at, 0x8006 */ cpu->gpr[1] = 0x80060000u; if (psx_taken_BFC25AF4) goto label_BFC25B04; @@ -120519,7 +124014,7 @@ label_BFC25AFC: psx_check_interrupts(cpu); /* 0xBFC25AFC: 1000001A beq $zero, $zero, 0xBFC25B68 */ uint32_t psx_brA_BFC25AFC = cpu->gpr[0]; uint32_t psx_brB_BFC25AFC = cpu->gpr[0]; - int psx_taken_BFC25AFC = (psx_brA_BFC25AFC == psx_brB_BFC25AFC); + psx_taken_BFC25AFC = (psx_brA_BFC25AFC == psx_brB_BFC25AFC); /* 0xBFC25B00: AC206EB8 sw $zero, 28344($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (28344)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC25B00u); return; } g_debug_last_store_pc = 0xBFC25B00u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC25AFC) goto label_BFC25B68; @@ -120534,7 +124029,7 @@ label_BFC25B04: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC25B08u); return; } g_debug_last_store_pc = 0xBFC25B08u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC25B0C: 10000016 beq $zero, $zero, 0xBFC25B68 */ uint32_t psx_brA_BFC25B0C = cpu->gpr[0]; uint32_t psx_brB_BFC25B0C = cpu->gpr[0]; - int psx_taken_BFC25B0C = (psx_brA_BFC25B0C == psx_brB_BFC25B0C); + psx_taken_BFC25B0C = (psx_brA_BFC25B0C == psx_brB_BFC25B0C); /* 0xBFC25B10: ACC00000 sw $zero, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC25B10u); return; } g_debug_last_store_pc = 0xBFC25B10u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC25B0C) goto label_BFC25B68; @@ -120567,7 +124062,7 @@ label_BFC25B14: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[2] + (1))); /* 0xBFC25B40: 10000009 beq $zero, $zero, 0xBFC25B68 */ uint32_t psx_brA_BFC25B40 = cpu->gpr[0]; uint32_t psx_brB_BFC25B40 = cpu->gpr[0]; - int psx_taken_BFC25B40 = (psx_brA_BFC25B40 == psx_brB_BFC25B40); + psx_taken_BFC25B40 = (psx_brA_BFC25B40 == psx_brB_BFC25B40); /* 0xBFC25B44: 306300F0 andi $v1, $v1, 0xF0 */ cpu->gpr[3] = cpu->gpr[3] & 0xF0u; if (psx_taken_BFC25B40) goto label_BFC25B68; @@ -120580,7 +124075,7 @@ label_BFC25B48: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); /* 0xBFC25B4C: 1061FFB2 beq $v1, $at, 0xBFC25A18 */ uint32_t psx_brA_BFC25B4C = cpu->gpr[3]; uint32_t psx_brB_BFC25B4C = cpu->gpr[1]; - int psx_taken_BFC25B4C = (psx_brA_BFC25B4C == psx_brB_BFC25B4C); + psx_taken_BFC25B4C = (psx_brA_BFC25B4C == psx_brB_BFC25B4C); /* 0xBFC25B50: 24010020 addiu $at, $zero, 32 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (32)); if (psx_taken_BFC25B4C) goto label_BFC25A18; @@ -120591,7 +124086,7 @@ label_BFC25B54: psx_check_interrupts(cpu); /* 0xBFC25B54: 1061FFEF beq $v1, $at, 0xBFC25B14 */ uint32_t psx_brA_BFC25B54 = cpu->gpr[3]; uint32_t psx_brB_BFC25B54 = cpu->gpr[1]; - int psx_taken_BFC25B54 = (psx_brA_BFC25B54 == psx_brB_BFC25B54); + psx_taken_BFC25B54 = (psx_brA_BFC25B54 == psx_brB_BFC25B54); /* 0xBFC25B58: 24010040 addiu $at, $zero, 64 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (64)); if (psx_taken_BFC25B54) goto label_BFC25B14; @@ -120602,7 +124097,7 @@ label_BFC25B5C: psx_check_interrupts(cpu); /* 0xBFC25B5C: 1061FFED beq $v1, $at, 0xBFC25B14 */ uint32_t psx_brA_BFC25B5C = cpu->gpr[3]; uint32_t psx_brB_BFC25B5C = cpu->gpr[1]; - int psx_taken_BFC25B5C = (psx_brA_BFC25B5C == psx_brB_BFC25B5C); + psx_taken_BFC25B5C = (psx_brA_BFC25B5C == psx_brB_BFC25B5C); /* 0xBFC25B60: 00000000 nop */ /* nop */ if (psx_taken_BFC25B5C) goto label_BFC25B14; @@ -120643,6 +124138,8 @@ void func_1FC25B74(CPUState* cpu) { default: break; } } + int psx_taken_BFC25BA0 = 0; + int psx_taken_BFC25BCC = 0; label_BFC25B74: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -120678,7 +124175,7 @@ label_BFC25B9C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC25BA0: 14410007 bne $v0, $at, 0xBFC25BC0 */ uint32_t psx_brA_BFC25BA0 = cpu->gpr[2]; uint32_t psx_brB_BFC25BA0 = cpu->gpr[1]; - int psx_taken_BFC25BA0 = (psx_brA_BFC25BA0 != psx_brB_BFC25BA0); + psx_taken_BFC25BA0 = (psx_brA_BFC25BA0 != psx_brB_BFC25BA0); /* 0xBFC25BA4: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC25BA0) goto label_BFC25BC0; @@ -120718,7 +124215,7 @@ label_BFC25BC0: /* nop */ /* 0xBFC25BCC: 15C0001A bne $t6, $zero, 0xBFC25C38 */ uint32_t psx_brA_BFC25BCC = cpu->gpr[14]; uint32_t psx_brB_BFC25BCC = cpu->gpr[0]; - int psx_taken_BFC25BCC = (psx_brA_BFC25BCC != psx_brB_BFC25BCC); + psx_taken_BFC25BCC = (psx_brA_BFC25BCC != psx_brB_BFC25BCC); /* 0xBFC25BD0: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC25BD0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC25BCC) goto label_BFC25C38; @@ -120899,6 +124396,9 @@ void func_1FC25CC0(CPUState* cpu) { default: break; } } + int psx_taken_BFC25CFC = 0; + int psx_taken_BFC25D10 = 0; + int psx_taken_BFC25D18 = 0; label_BFC25CC0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -120942,7 +124442,7 @@ label_BFC25CE8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (28408)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC25CF8u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC25CFC: 14800006 bne $a0, $zero, 0xBFC25D18 */ uint32_t psx_brA_BFC25CFC = cpu->gpr[4]; uint32_t psx_brB_BFC25CFC = cpu->gpr[0]; - int psx_taken_BFC25CFC = (psx_brA_BFC25CFC != psx_brB_BFC25CFC); + psx_taken_BFC25CFC = (psx_brA_BFC25CFC != psx_brB_BFC25CFC); /* 0xBFC25D00: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC25CFC) goto label_BFC25D18; @@ -120959,7 +124459,7 @@ label_BFC25D04: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC25D10: 11C10003 beq $t6, $at, 0xBFC25D20 */ uint32_t psx_brA_BFC25D10 = cpu->gpr[14]; uint32_t psx_brB_BFC25D10 = cpu->gpr[1]; - int psx_taken_BFC25D10 = (psx_brA_BFC25D10 == psx_brB_BFC25D10); + psx_taken_BFC25D10 = (psx_brA_BFC25D10 == psx_brB_BFC25D10); /* 0xBFC25D14: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC25D10) goto label_BFC25D20; @@ -120970,7 +124470,7 @@ label_BFC25D18: psx_check_interrupts(cpu); /* 0xBFC25D18: 14810019 bne $a0, $at, 0xBFC25D80 */ uint32_t psx_brA_BFC25D18 = cpu->gpr[4]; uint32_t psx_brB_BFC25D18 = cpu->gpr[1]; - int psx_taken_BFC25D18 = (psx_brA_BFC25D18 != psx_brB_BFC25D18); + psx_taken_BFC25D18 = (psx_brA_BFC25D18 != psx_brB_BFC25D18); /* 0xBFC25D1C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC25D1Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC25D18) goto label_BFC25D80; @@ -121069,6 +124569,8 @@ void func_1FC25D8C(CPUState* cpu) { default: break; } } + int psx_taken_BFC25E20 = 0; + int psx_taken_BFC25E34 = 0; label_BFC25D8C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -121203,7 +124705,7 @@ label_BFC25E18: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (108)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC25E1Cu); return; } g_debug_last_store_pc = 0xBFC25E1Cu; cpu->write_word(psx_addr, cpu->gpr[18]); } /* 0xBFC25E20: 1633FFEF bne $s1, $s3, 0xBFC25DE0 */ uint32_t psx_brA_BFC25E20 = cpu->gpr[17]; uint32_t psx_brB_BFC25E20 = cpu->gpr[19]; - int psx_taken_BFC25E20 = (psx_brA_BFC25E20 != psx_brB_BFC25E20); + psx_taken_BFC25E20 = (psx_brA_BFC25E20 != psx_brB_BFC25E20); /* 0xBFC25E24: 26100070 addiu $s0, $s0, 112 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (112)); if (psx_taken_BFC25E20) goto label_BFC25DE0; @@ -121220,7 +124722,7 @@ label_BFC25E28: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC25E34: 11C10002 beq $t6, $at, 0xBFC25E40 */ uint32_t psx_brA_BFC25E34 = cpu->gpr[14]; uint32_t psx_brB_BFC25E34 = cpu->gpr[1]; - int psx_taken_BFC25E34 = (psx_brA_BFC25E34 == psx_brB_BFC25E34); + psx_taken_BFC25E34 = (psx_brA_BFC25E34 == psx_brB_BFC25E34); /* 0xBFC25E38: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC25E34) goto label_BFC25E40; @@ -121416,6 +124918,56 @@ void func_1FC25EF8(CPUState* cpu) { default: break; } } + int psx_taken_BFC25F1C = 0; + int psx_taken_BFC25F50 = 0; + int psx_taken_BFC25F58 = 0; + int psx_taken_BFC25F64 = 0; + int psx_taken_BFC25F6C = 0; + int psx_taken_BFC25F80 = 0; + int psx_taken_BFC25F94 = 0; + int psx_taken_BFC25F9C = 0; + int psx_taken_BFC25FA4 = 0; + int psx_taken_BFC25FBC = 0; + int psx_taken_BFC25FC8 = 0; + int psx_taken_BFC25FD0 = 0; + int psx_taken_BFC25FE8 = 0; + int psx_taken_BFC26040 = 0; + int psx_taken_BFC26058 = 0; + int psx_taken_BFC26074 = 0; + int psx_taken_BFC26084 = 0; + int psx_taken_BFC260A4 = 0; + int psx_taken_BFC260F0 = 0; + int psx_taken_BFC26104 = 0; + int psx_taken_BFC26118 = 0; + int psx_taken_BFC26128 = 0; + int psx_taken_BFC26130 = 0; + int psx_taken_BFC26140 = 0; + int psx_taken_BFC26148 = 0; + int psx_taken_BFC2615C = 0; + int psx_taken_BFC26170 = 0; + int psx_taken_BFC26178 = 0; + int psx_taken_BFC26190 = 0; + int psx_taken_BFC261C4 = 0; + int psx_taken_BFC261D8 = 0; + int psx_taken_BFC26200 = 0; + int psx_taken_BFC26214 = 0; + int psx_taken_BFC26224 = 0; + int psx_taken_BFC2623C = 0; + int psx_taken_BFC2624C = 0; + int psx_taken_BFC2625C = 0; + int psx_taken_BFC26274 = 0; + int psx_taken_BFC26284 = 0; + int psx_taken_BFC2628C = 0; + int psx_taken_BFC26298 = 0; + int psx_taken_BFC262AC = 0; + int psx_taken_BFC262C0 = 0; + int psx_taken_BFC262C8 = 0; + int psx_taken_BFC262D0 = 0; + int psx_taken_BFC262D8 = 0; + int psx_taken_BFC262E0 = 0; + int psx_taken_BFC262F0 = 0; + int psx_taken_BFC262FC = 0; + int psx_taken_BFC26304 = 0; label_BFC25EF8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -121441,7 +124993,7 @@ label_BFC25EF8: cpu->gpr[17] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC25F1C: 11C00005 beq $t6, $zero, 0xBFC25F34 */ uint32_t psx_brA_BFC25F1C = cpu->gpr[14]; uint32_t psx_brB_BFC25F1C = cpu->gpr[0]; - int psx_taken_BFC25F1C = (psx_brA_BFC25F1C == psx_brB_BFC25F1C); + psx_taken_BFC25F1C = (psx_brA_BFC25F1C == psx_brB_BFC25F1C); /* 0xBFC25F20: AFA70064 sw $a3, 100($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (100)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC25F20u); return; } g_debug_last_store_pc = 0xBFC25F20u; cpu->write_word(psx_addr, cpu->gpr[7]); } if (psx_taken_BFC25F1C) goto label_BFC25F34; @@ -121491,7 +125043,7 @@ label_BFC25F48: /* nop */ /* 0xBFC25F50: 11000006 beq $t0, $zero, 0xBFC25F6C */ uint32_t psx_brA_BFC25F50 = cpu->gpr[8]; uint32_t psx_brB_BFC25F50 = cpu->gpr[0]; - int psx_taken_BFC25F50 = (psx_brA_BFC25F50 == psx_brB_BFC25F50); + psx_taken_BFC25F50 = (psx_brA_BFC25F50 == psx_brB_BFC25F50); /* 0xBFC25F54: 00000000 nop */ /* nop */ if (psx_taken_BFC25F50) goto label_BFC25F6C; @@ -121502,7 +125054,7 @@ label_BFC25F58: psx_check_interrupts(cpu); /* 0xBFC25F58: 14480004 bne $v0, $t0, 0xBFC25F6C */ uint32_t psx_brA_BFC25F58 = cpu->gpr[2]; uint32_t psx_brB_BFC25F58 = cpu->gpr[8]; - int psx_taken_BFC25F58 = (psx_brA_BFC25F58 != psx_brB_BFC25F58); + psx_taken_BFC25F58 = (psx_brA_BFC25F58 != psx_brB_BFC25F58); /* 0xBFC25F5C: 00000000 nop */ /* nop */ if (psx_taken_BFC25F58) goto label_BFC25F6C; @@ -121515,7 +125067,7 @@ label_BFC25F60: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC25F60u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC25F64: 10000003 beq $zero, $zero, 0xBFC25F74 */ uint32_t psx_brA_BFC25F64 = cpu->gpr[0]; uint32_t psx_brB_BFC25F64 = cpu->gpr[0]; - int psx_taken_BFC25F64 = (psx_brA_BFC25F64 == psx_brB_BFC25F64); + psx_taken_BFC25F64 = (psx_brA_BFC25F64 == psx_brB_BFC25F64); /* 0xBFC25F68: 00000000 nop */ /* nop */ if (psx_taken_BFC25F64) goto label_BFC25F74; @@ -121526,7 +125078,7 @@ label_BFC25F6C: psx_check_interrupts(cpu); /* 0xBFC25F6C: 1000FFF6 beq $zero, $zero, 0xBFC25F48 */ uint32_t psx_brA_BFC25F6C = cpu->gpr[0]; uint32_t psx_brB_BFC25F6C = cpu->gpr[0]; - int psx_taken_BFC25F6C = (psx_brA_BFC25F6C == psx_brB_BFC25F6C); + psx_taken_BFC25F6C = (psx_brA_BFC25F6C == psx_brB_BFC25F6C); /* 0xBFC25F70: 25290688 addiu $t1, $t1, 1672 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[9] + (1672)); if (psx_taken_BFC25F6C) goto label_BFC25F48; @@ -121543,7 +125095,7 @@ label_BFC25F74: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC25F80: 15E1001B bne $t7, $at, 0xBFC25FF0 */ uint32_t psx_brA_BFC25F80 = cpu->gpr[15]; uint32_t psx_brB_BFC25F80 = cpu->gpr[1]; - int psx_taken_BFC25F80 = (psx_brA_BFC25F80 != psx_brB_BFC25F80); + psx_taken_BFC25F80 = (psx_brA_BFC25F80 != psx_brB_BFC25F80); /* 0xBFC25F84: 00000000 nop */ /* nop */ if (psx_taken_BFC25F80) goto label_BFC25FF0; @@ -121560,7 +125112,7 @@ label_BFC25F88: /* nop */ /* 0xBFC25F94: 17000016 bne $t8, $zero, 0xBFC25FF0 */ uint32_t psx_brA_BFC25F94 = cpu->gpr[24]; uint32_t psx_brB_BFC25F94 = cpu->gpr[0]; - int psx_taken_BFC25F94 = (psx_brA_BFC25F94 != psx_brB_BFC25F94); + psx_taken_BFC25F94 = (psx_brA_BFC25F94 != psx_brB_BFC25F94); /* 0xBFC25F98: 2A0100B4 slti $at, $s0, 180 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (180) ? 1 : 0); if (psx_taken_BFC25F94) goto label_BFC25FF0; @@ -121571,7 +125123,7 @@ label_BFC25F9C: psx_check_interrupts(cpu); /* 0xBFC25F9C: 14200009 bne $at, $zero, 0xBFC25FC4 */ uint32_t psx_brA_BFC25F9C = cpu->gpr[1]; uint32_t psx_brB_BFC25F9C = cpu->gpr[0]; - int psx_taken_BFC25F9C = (psx_brA_BFC25F9C != psx_brB_BFC25F9C); + psx_taken_BFC25F9C = (psx_brA_BFC25F9C != psx_brB_BFC25F9C); /* 0xBFC25FA0: 24010003 addiu $at, $zero, 3 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); if (psx_taken_BFC25F9C) goto label_BFC25FC4; @@ -121582,7 +125134,7 @@ label_BFC25FA4: psx_check_interrupts(cpu); /* 0xBFC25FA4: 14610008 bne $v1, $at, 0xBFC25FC8 */ uint32_t psx_brA_BFC25FA4 = cpu->gpr[3]; uint32_t psx_brB_BFC25FA4 = cpu->gpr[1]; - int psx_taken_BFC25FA4 = (psx_brA_BFC25FA4 != psx_brB_BFC25FA4); + psx_taken_BFC25FA4 = (psx_brA_BFC25FA4 != psx_brB_BFC25FA4); /* 0xBFC25FA8: 2A0101B5 slti $at, $s0, 437 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (437) ? 1 : 0); if (psx_taken_BFC25FA4) goto label_BFC25FC8; @@ -121601,7 +125153,7 @@ label_BFC25FAC: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC25FBC: 100000D6 beq $zero, $zero, 0xBFC26318 */ uint32_t psx_brA_BFC25FBC = cpu->gpr[0]; uint32_t psx_brB_BFC25FBC = cpu->gpr[0]; - int psx_taken_BFC25FBC = (psx_brA_BFC25FBC == psx_brB_BFC25FBC); + psx_taken_BFC25FBC = (psx_brA_BFC25FBC == psx_brB_BFC25FBC); /* 0xBFC25FC0: ADD90000 sw $t9, 0($t6) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[14] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC25FC0u); return; } g_debug_last_store_pc = 0xBFC25FC0u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC25FBC) goto label_BFC26318; @@ -121619,7 +125171,7 @@ label_BFC25FC8: psx_check_interrupts(cpu); /* 0xBFC25FC8: 10200009 beq $at, $zero, 0xBFC25FF0 */ uint32_t psx_brA_BFC25FC8 = cpu->gpr[1]; uint32_t psx_brB_BFC25FC8 = cpu->gpr[0]; - int psx_taken_BFC25FC8 = (psx_brA_BFC25FC8 == psx_brB_BFC25FC8); + psx_taken_BFC25FC8 = (psx_brA_BFC25FC8 == psx_brB_BFC25FC8); /* 0xBFC25FCC: 24010004 addiu $at, $zero, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC25FC8) goto label_BFC25FF0; @@ -121630,7 +125182,7 @@ label_BFC25FD0: psx_check_interrupts(cpu); /* 0xBFC25FD0: 14610007 bne $v1, $at, 0xBFC25FF0 */ uint32_t psx_brA_BFC25FD0 = cpu->gpr[3]; uint32_t psx_brB_BFC25FD0 = cpu->gpr[1]; - int psx_taken_BFC25FD0 = (psx_brA_BFC25FD0 != psx_brB_BFC25FD0); + psx_taken_BFC25FD0 = (psx_brA_BFC25FD0 != psx_brB_BFC25FD0); /* 0xBFC25FD4: 00000000 nop */ /* nop */ if (psx_taken_BFC25FD0) goto label_BFC25FF0; @@ -121649,7 +125201,7 @@ label_BFC25FD8: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC25FE8: 100000CB beq $zero, $zero, 0xBFC26318 */ uint32_t psx_brA_BFC25FE8 = cpu->gpr[0]; uint32_t psx_brB_BFC25FE8 = cpu->gpr[0]; - int psx_taken_BFC25FE8 = (psx_brA_BFC25FE8 == psx_brB_BFC25FE8); + psx_taken_BFC25FE8 = (psx_brA_BFC25FE8 == psx_brB_BFC25FE8); /* 0xBFC25FEC: AF0F0000 sw $t7, 0($t8) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC25FECu); return; } g_debug_last_store_pc = 0xBFC25FECu; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC25FE8) goto label_BFC26318; @@ -121700,7 +125252,7 @@ label_BFC25FF0: /* nop */ /* 0xBFC26040: 07010002 bgez $t8, 0xBFC2604C */ uint32_t psx_brA_BFC26040 = cpu->gpr[24]; - int psx_taken_BFC26040 = ((int32_t)psx_brA_BFC26040 >= 0); + psx_taken_BFC26040 = ((int32_t)psx_brA_BFC26040 >= 0); /* 0xBFC26044: 03000821 addu $at, $t8, $zero */ cpu->gpr[1] = cpu->gpr[24] + cpu->gpr[0]; if (psx_taken_BFC26040) goto label_BFC2604C; @@ -121724,7 +125276,7 @@ label_BFC2604C: /* nop */ /* 0xBFC26058: 05C10002 bgez $t6, 0xBFC26064 */ uint32_t psx_brA_BFC26058 = cpu->gpr[14]; - int psx_taken_BFC26058 = ((int32_t)psx_brA_BFC26058 >= 0); + psx_taken_BFC26058 = ((int32_t)psx_brA_BFC26058 >= 0); /* 0xBFC2605C: 01C00821 addu $at, $t6, $zero */ cpu->gpr[1] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC26058) goto label_BFC26064; @@ -121755,7 +125307,7 @@ label_BFC2606C: /* nop */ /* 0xBFC26074: 11000087 beq $t0, $zero, 0xBFC26294 */ uint32_t psx_brA_BFC26074 = cpu->gpr[8]; uint32_t psx_brB_BFC26074 = cpu->gpr[0]; - int psx_taken_BFC26074 = (psx_brA_BFC26074 == psx_brB_BFC26074); + psx_taken_BFC26074 = (psx_brA_BFC26074 == psx_brB_BFC26074); /* 0xBFC26078: 00000000 nop */ /* nop */ if (psx_taken_BFC26074) goto label_BFC26294; @@ -121770,7 +125322,7 @@ label_BFC2607C: /* nop */ /* 0xBFC26084: 13000083 beq $t8, $zero, 0xBFC26294 */ uint32_t psx_brA_BFC26084 = cpu->gpr[24]; uint32_t psx_brB_BFC26084 = cpu->gpr[0]; - int psx_taken_BFC26084 = (psx_brA_BFC26084 == psx_brB_BFC26084); + psx_taken_BFC26084 = (psx_brA_BFC26084 == psx_brB_BFC26084); /* 0xBFC26088: 00000000 nop */ /* nop */ if (psx_taken_BFC26084) goto label_BFC26294; @@ -121793,7 +125345,7 @@ label_BFC2608C: /* nop */ /* 0xBFC260A4: 11AF007B beq $t5, $t7, 0xBFC26294 */ uint32_t psx_brA_BFC260A4 = cpu->gpr[13]; uint32_t psx_brB_BFC260A4 = cpu->gpr[15]; - int psx_taken_BFC260A4 = (psx_brA_BFC260A4 == psx_brB_BFC260A4); + psx_taken_BFC260A4 = (psx_brA_BFC260A4 == psx_brB_BFC260A4); /* 0xBFC260A8: 00000000 nop */ /* nop */ if (psx_taken_BFC260A4) goto label_BFC26294; @@ -121838,7 +125390,7 @@ label_BFC260AC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (68)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC260ECu); return; } cpu->gpr[25] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC260F0: 04810002 bgez $a0, 0xBFC260FC */ uint32_t psx_brA_BFC260F0 = cpu->gpr[4]; - int psx_taken_BFC260F0 = ((int32_t)psx_brA_BFC260F0 >= 0); + psx_taken_BFC260F0 = ((int32_t)psx_brA_BFC260F0 >= 0); /* 0xBFC260F4: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC260F0) goto label_BFC260FC; @@ -121860,7 +125412,7 @@ label_BFC260FC: cpu->gpr[5] = cpu->gpr[15] - cpu->gpr[24]; /* 0xBFC26104: 04C10002 bgez $a2, 0xBFC26110 */ uint32_t psx_brA_BFC26104 = cpu->gpr[6]; - int psx_taken_BFC26104 = ((int32_t)psx_brA_BFC26104 >= 0); + psx_taken_BFC26104 = ((int32_t)psx_brA_BFC26104 >= 0); /* 0xBFC26108: 00C00821 addu $at, $a2, $zero */ cpu->gpr[1] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC26104) goto label_BFC26110; @@ -121882,7 +125434,7 @@ label_BFC26110: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[5] < (int32_t)cpu->gpr[16] ? 1 : 0); /* 0xBFC26118: 1020005E beq $at, $zero, 0xBFC26294 */ uint32_t psx_brA_BFC26118 = cpu->gpr[1]; uint32_t psx_brB_BFC26118 = cpu->gpr[0]; - int psx_taken_BFC26118 = (psx_brA_BFC26118 == psx_brB_BFC26118); + psx_taken_BFC26118 = (psx_brA_BFC26118 == psx_brB_BFC26118); /* 0xBFC2611C: 032E3823 subu $a3, $t9, $t6 */ cpu->gpr[7] = cpu->gpr[25] - cpu->gpr[14]; if (psx_taken_BFC26118) goto label_BFC26294; @@ -121897,7 +125449,7 @@ label_BFC26120: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[15] ? 1 : 0); /* 0xBFC26128: 1020005A beq $at, $zero, 0xBFC26294 */ uint32_t psx_brA_BFC26128 = cpu->gpr[1]; uint32_t psx_brB_BFC26128 = cpu->gpr[0]; - int psx_taken_BFC26128 = (psx_brA_BFC26128 == psx_brB_BFC26128); + psx_taken_BFC26128 = (psx_brA_BFC26128 == psx_brB_BFC26128); /* 0xBFC2612C: 00F1082A slt $at, $a3, $s1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[7] < (int32_t)cpu->gpr[17] ? 1 : 0); if (psx_taken_BFC26128) goto label_BFC26294; @@ -121908,7 +125460,7 @@ label_BFC26130: psx_check_interrupts(cpu); /* 0xBFC26130: 10200058 beq $at, $zero, 0xBFC26294 */ uint32_t psx_brA_BFC26130 = cpu->gpr[1]; uint32_t psx_brB_BFC26130 = cpu->gpr[0]; - int psx_taken_BFC26130 = (psx_brA_BFC26130 == psx_brB_BFC26130); + psx_taken_BFC26130 = (psx_brA_BFC26130 == psx_brB_BFC26130); /* 0xBFC26134: 00000000 nop */ /* nop */ if (psx_taken_BFC26130) goto label_BFC26294; @@ -121923,7 +125475,7 @@ label_BFC26138: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[24] ? 1 : 0); /* 0xBFC26140: 10200055 beq $at, $zero, 0xBFC26298 */ uint32_t psx_brA_BFC26140 = cpu->gpr[1]; uint32_t psx_brB_BFC26140 = cpu->gpr[0]; - int psx_taken_BFC26140 = (psx_brA_BFC26140 == psx_brB_BFC26140); + psx_taken_BFC26140 = (psx_brA_BFC26140 == psx_brB_BFC26140); /* 0xBFC26144: 254A0001 addiu $t2, $t2, 1 */ cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[10] + (1)); if (psx_taken_BFC26140) goto label_BFC26298; @@ -121934,7 +125486,7 @@ label_BFC26148: psx_check_interrupts(cpu); /* 0xBFC26148: 10480019 beq $v0, $t0, 0xBFC261B0 */ uint32_t psx_brA_BFC26148 = cpu->gpr[2]; uint32_t psx_brB_BFC26148 = cpu->gpr[8]; - int psx_taken_BFC26148 = (psx_brA_BFC26148 == psx_brB_BFC26148); + psx_taken_BFC26148 = (psx_brA_BFC26148 == psx_brB_BFC26148); /* 0xBFC2614C: 8FB80038 lw $t8, 56($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2614Cu); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC26148) goto label_BFC261B0; @@ -121951,7 +125503,7 @@ label_BFC26150: cpu->gpr[14] = cpu->gpr[25] & 0x20u; /* 0xBFC2615C: 15C00014 bne $t6, $zero, 0xBFC261B0 */ uint32_t psx_brA_BFC2615C = cpu->gpr[14]; uint32_t psx_brB_BFC2615C = cpu->gpr[0]; - int psx_taken_BFC2615C = (psx_brA_BFC2615C != psx_brB_BFC2615C); + psx_taken_BFC2615C = (psx_brA_BFC2615C != psx_brB_BFC2615C); /* 0xBFC26160: 8FB80038 lw $t8, 56($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26160u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC2615C) goto label_BFC261B0; @@ -121968,7 +125520,7 @@ label_BFC26164: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC26170: 15E10009 bne $t7, $at, 0xBFC26198 */ uint32_t psx_brA_BFC26170 = cpu->gpr[15]; uint32_t psx_brB_BFC26170 = cpu->gpr[1]; - int psx_taken_BFC26170 = (psx_brA_BFC26170 != psx_brB_BFC26170); + psx_taken_BFC26170 = (psx_brA_BFC26170 != psx_brB_BFC26170); /* 0xBFC26174: 24010016 addiu $at, $zero, 22 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (22)); if (psx_taken_BFC26170) goto label_BFC26198; @@ -121979,7 +125531,7 @@ label_BFC26178: psx_check_interrupts(cpu); /* 0xBFC26178: 15010008 bne $t0, $at, 0xBFC2619C */ uint32_t psx_brA_BFC26178 = cpu->gpr[8]; uint32_t psx_brB_BFC26178 = cpu->gpr[1]; - int psx_taken_BFC26178 = (psx_brA_BFC26178 != psx_brB_BFC26178); + psx_taken_BFC26178 = (psx_brA_BFC26178 != psx_brB_BFC26178); /* 0xBFC2617C: 01002021 addu $a0, $t0, $zero */ cpu->gpr[4] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC26178) goto label_BFC2619C; @@ -122004,7 +125556,7 @@ label_BFC2618C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2618Cu); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } /* 0xBFC26190: 10000007 beq $zero, $zero, 0xBFC261B0 */ uint32_t psx_brA_BFC26190 = cpu->gpr[0]; uint32_t psx_brB_BFC26190 = cpu->gpr[0]; - int psx_taken_BFC26190 = (psx_brA_BFC26190 == psx_brB_BFC26190); + psx_taken_BFC26190 = (psx_brA_BFC26190 == psx_brB_BFC26190); /* 0xBFC26194: 8FB80038 lw $t8, 56($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26194u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC26190) goto label_BFC261B0; @@ -122053,7 +125605,7 @@ label_BFC261B0: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[14] + (-21632)); /* 0xBFC261C4: 15C20010 bne $t6, $v0, 0xBFC26208 */ uint32_t psx_brA_BFC261C4 = cpu->gpr[14]; uint32_t psx_brB_BFC261C4 = cpu->gpr[2]; - int psx_taken_BFC261C4 = (psx_brA_BFC261C4 != psx_brB_BFC261C4); + psx_taken_BFC261C4 = (psx_brA_BFC261C4 != psx_brB_BFC261C4); /* 0xBFC261C8: 00000000 nop */ /* nop */ if (psx_taken_BFC261C4) goto label_BFC26208; @@ -122070,7 +125622,7 @@ label_BFC261CC: cpu->gpr[24] = cpu->gpr[15] & 0x20u; /* 0xBFC261D8: 1700002C bne $t8, $zero, 0xBFC2628C */ uint32_t psx_brA_BFC261D8 = cpu->gpr[24]; uint32_t psx_brB_BFC261D8 = cpu->gpr[0]; - int psx_taken_BFC261D8 = (psx_brA_BFC261D8 != psx_brB_BFC261D8); + psx_taken_BFC261D8 = (psx_brA_BFC261D8 != psx_brB_BFC261D8); /* 0xBFC261DC: 00000000 nop */ /* nop */ if (psx_taken_BFC261D8) goto label_BFC2628C; @@ -122109,7 +125661,7 @@ label_BFC26200: psx_check_interrupts(cpu); /* 0xBFC26200: 10000022 beq $zero, $zero, 0xBFC2628C */ uint32_t psx_brA_BFC26200 = cpu->gpr[0]; uint32_t psx_brB_BFC26200 = cpu->gpr[0]; - int psx_taken_BFC26200 = (psx_brA_BFC26200 == psx_brB_BFC26200); + psx_taken_BFC26200 = (psx_brA_BFC26200 == psx_brB_BFC26200); /* 0xBFC26204: 00000000 nop */ /* nop */ if (psx_taken_BFC26200) goto label_BFC2628C; @@ -122126,7 +125678,7 @@ label_BFC26208: /* nop */ /* 0xBFC26214: 1320001D beq $t9, $zero, 0xBFC2628C */ uint32_t psx_brA_BFC26214 = cpu->gpr[25]; uint32_t psx_brB_BFC26214 = cpu->gpr[0]; - int psx_taken_BFC26214 = (psx_brA_BFC26214 == psx_brB_BFC26214); + psx_taken_BFC26214 = (psx_brA_BFC26214 == psx_brB_BFC26214); /* 0xBFC26218: 00000000 nop */ /* nop */ if (psx_taken_BFC26214) goto label_BFC2628C; @@ -122141,7 +125693,7 @@ label_BFC2621C: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[14] + (-26420)); /* 0xBFC26224: 15C2000B bne $t6, $v0, 0xBFC26254 */ uint32_t psx_brA_BFC26224 = cpu->gpr[14]; uint32_t psx_brB_BFC26224 = cpu->gpr[2]; - int psx_taken_BFC26224 = (psx_brA_BFC26224 != psx_brB_BFC26224); + psx_taken_BFC26224 = (psx_brA_BFC26224 != psx_brB_BFC26224); /* 0xBFC26228: 00000000 nop */ /* nop */ if (psx_taken_BFC26224) goto label_BFC26254; @@ -122160,7 +125712,7 @@ label_BFC2622C: cpu->gpr[24] = cpu->gpr[15] & cpu->gpr[1]; /* 0xBFC2623C: 13000005 beq $t8, $zero, 0xBFC26254 */ uint32_t psx_brA_BFC2623C = cpu->gpr[24]; uint32_t psx_brB_BFC2623C = cpu->gpr[0]; - int psx_taken_BFC2623C = (psx_brA_BFC2623C == psx_brB_BFC2623C); + psx_taken_BFC2623C = (psx_brA_BFC2623C == psx_brB_BFC2623C); /* 0xBFC26240: 00000000 nop */ /* nop */ if (psx_taken_BFC2623C) goto label_BFC26254; @@ -122181,7 +125733,7 @@ label_BFC2624C: psx_check_interrupts(cpu); /* 0xBFC2624C: 10000032 beq $zero, $zero, 0xBFC26318 */ uint32_t psx_brA_BFC2624C = cpu->gpr[0]; uint32_t psx_brB_BFC2624C = cpu->gpr[0]; - int psx_taken_BFC2624C = (psx_brA_BFC2624C == psx_brB_BFC2624C); + psx_taken_BFC2624C = (psx_brA_BFC2624C == psx_brB_BFC2624C); /* 0xBFC26250: 2402FFFE addiu $v0, $zero, -2 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); if (psx_taken_BFC2624C) goto label_BFC26318; @@ -122196,7 +125748,7 @@ label_BFC26254: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[25] + (18668)); /* 0xBFC2625C: 1722000B bne $t9, $v0, 0xBFC2628C */ uint32_t psx_brA_BFC2625C = cpu->gpr[25]; uint32_t psx_brB_BFC2625C = cpu->gpr[2]; - int psx_taken_BFC2625C = (psx_brA_BFC2625C != psx_brB_BFC2625C); + psx_taken_BFC2625C = (psx_brA_BFC2625C != psx_brB_BFC2625C); /* 0xBFC26260: 00000000 nop */ /* nop */ if (psx_taken_BFC2625C) goto label_BFC2628C; @@ -122215,7 +125767,7 @@ label_BFC26264: cpu->gpr[15] = cpu->gpr[14] & cpu->gpr[1]; /* 0xBFC26274: 11E00005 beq $t7, $zero, 0xBFC2628C */ uint32_t psx_brA_BFC26274 = cpu->gpr[15]; uint32_t psx_brB_BFC26274 = cpu->gpr[0]; - int psx_taken_BFC26274 = (psx_brA_BFC26274 == psx_brB_BFC26274); + psx_taken_BFC26274 = (psx_brA_BFC26274 == psx_brB_BFC26274); /* 0xBFC26278: 00000000 nop */ /* nop */ if (psx_taken_BFC26274) goto label_BFC2628C; @@ -122236,7 +125788,7 @@ label_BFC26284: psx_check_interrupts(cpu); /* 0xBFC26284: 10000024 beq $zero, $zero, 0xBFC26318 */ uint32_t psx_brA_BFC26284 = cpu->gpr[0]; uint32_t psx_brB_BFC26284 = cpu->gpr[0]; - int psx_taken_BFC26284 = (psx_brA_BFC26284 == psx_brB_BFC26284); + psx_taken_BFC26284 = (psx_brA_BFC26284 == psx_brB_BFC26284); /* 0xBFC26288: 2402FFFE addiu $v0, $zero, -2 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); if (psx_taken_BFC26284) goto label_BFC26318; @@ -122247,7 +125799,7 @@ label_BFC2628C: psx_check_interrupts(cpu); /* 0xBFC2628C: 10000022 beq $zero, $zero, 0xBFC26318 */ uint32_t psx_brA_BFC2628C = cpu->gpr[0]; uint32_t psx_brB_BFC2628C = cpu->gpr[0]; - int psx_taken_BFC2628C = (psx_brA_BFC2628C == psx_brB_BFC2628C); + psx_taken_BFC2628C = (psx_brA_BFC2628C == psx_brB_BFC2628C); /* 0xBFC26290: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC2628C) goto label_BFC26318; @@ -122265,7 +125817,7 @@ label_BFC26298: psx_check_interrupts(cpu); /* 0xBFC26298: 154CFF74 bne $t2, $t4, 0xBFC2606C */ uint32_t psx_brA_BFC26298 = cpu->gpr[10]; uint32_t psx_brB_BFC26298 = cpu->gpr[12]; - int psx_taken_BFC26298 = (psx_brA_BFC26298 != psx_brB_BFC26298); + psx_taken_BFC26298 = (psx_brA_BFC26298 != psx_brB_BFC26298); /* 0xBFC2629C: 25290688 addiu $t1, $t1, 1672 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[9] + (1672)); if (psx_taken_BFC26298) goto label_BFC2606C; @@ -122282,7 +125834,7 @@ label_BFC262A0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC262AC: 1701001A bne $t8, $at, 0xBFC26318 */ uint32_t psx_brA_BFC262AC = cpu->gpr[24]; uint32_t psx_brB_BFC262AC = cpu->gpr[1]; - int psx_taken_BFC262AC = (psx_brA_BFC262AC != psx_brB_BFC262AC); + psx_taken_BFC262AC = (psx_brA_BFC262AC != psx_brB_BFC262AC); /* 0xBFC262B0: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC262AC) goto label_BFC26318; @@ -122299,7 +125851,7 @@ label_BFC262B4: /* nop */ /* 0xBFC262C0: 17200014 bne $t9, $zero, 0xBFC26314 */ uint32_t psx_brA_BFC262C0 = cpu->gpr[25]; uint32_t psx_brB_BFC262C0 = cpu->gpr[0]; - int psx_taken_BFC262C0 = (psx_brA_BFC262C0 != psx_brB_BFC262C0); + psx_taken_BFC262C0 = (psx_brA_BFC262C0 != psx_brB_BFC262C0); /* 0xBFC262C4: 2A210072 slti $at, $s1, 114 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (114) ? 1 : 0); if (psx_taken_BFC262C0) goto label_BFC26314; @@ -122310,7 +125862,7 @@ label_BFC262C8: psx_check_interrupts(cpu); /* 0xBFC262C8: 14200012 bne $at, $zero, 0xBFC26314 */ uint32_t psx_brA_BFC262C8 = cpu->gpr[1]; uint32_t psx_brB_BFC262C8 = cpu->gpr[0]; - int psx_taken_BFC262C8 = (psx_brA_BFC262C8 != psx_brB_BFC262C8); + psx_taken_BFC262C8 = (psx_brA_BFC262C8 != psx_brB_BFC262C8); /* 0xBFC262CC: 2A21016B slti $at, $s1, 363 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (363) ? 1 : 0); if (psx_taken_BFC262C8) goto label_BFC26314; @@ -122321,7 +125873,7 @@ label_BFC262D0: psx_check_interrupts(cpu); /* 0xBFC262D0: 10200010 beq $at, $zero, 0xBFC26314 */ uint32_t psx_brA_BFC262D0 = cpu->gpr[1]; uint32_t psx_brB_BFC262D0 = cpu->gpr[0]; - int psx_taken_BFC262D0 = (psx_brA_BFC262D0 == psx_brB_BFC262D0); + psx_taken_BFC262D0 = (psx_brA_BFC262D0 == psx_brB_BFC262D0); /* 0xBFC262D4: 2A010015 slti $at, $s0, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (21) ? 1 : 0); if (psx_taken_BFC262D0) goto label_BFC26314; @@ -122332,7 +125884,7 @@ label_BFC262D8: psx_check_interrupts(cpu); /* 0xBFC262D8: 14200007 bne $at, $zero, 0xBFC262F8 */ uint32_t psx_brA_BFC262D8 = cpu->gpr[1]; uint32_t psx_brB_BFC262D8 = cpu->gpr[0]; - int psx_taken_BFC262D8 = (psx_brA_BFC262D8 != psx_brB_BFC262D8); + psx_taken_BFC262D8 = (psx_brA_BFC262D8 != psx_brB_BFC262D8); /* 0xBFC262DC: 2A0100B3 slti $at, $s0, 179 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (179) ? 1 : 0); if (psx_taken_BFC262D8) goto label_BFC262F8; @@ -122343,7 +125895,7 @@ label_BFC262E0: psx_check_interrupts(cpu); /* 0xBFC262E0: 10200006 beq $at, $zero, 0xBFC262FC */ uint32_t psx_brA_BFC262E0 = cpu->gpr[1]; uint32_t psx_brB_BFC262E0 = cpu->gpr[0]; - int psx_taken_BFC262E0 = (psx_brA_BFC262E0 == psx_brB_BFC262E0); + psx_taken_BFC262E0 = (psx_brA_BFC262E0 == psx_brB_BFC262E0); /* 0xBFC262E4: 2A0101A7 slti $at, $s0, 423 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (423) ? 1 : 0); if (psx_taken_BFC262E0) goto label_BFC262FC; @@ -122364,7 +125916,7 @@ label_BFC262F0: psx_check_interrupts(cpu); /* 0xBFC262F0: 10000009 beq $zero, $zero, 0xBFC26318 */ uint32_t psx_brA_BFC262F0 = cpu->gpr[0]; uint32_t psx_brB_BFC262F0 = cpu->gpr[0]; - int psx_taken_BFC262F0 = (psx_brA_BFC262F0 == psx_brB_BFC262F0); + psx_taken_BFC262F0 = (psx_brA_BFC262F0 == psx_brB_BFC262F0); /* 0xBFC262F4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC262F0) goto label_BFC26318; @@ -122382,7 +125934,7 @@ label_BFC262FC: psx_check_interrupts(cpu); /* 0xBFC262FC: 14200005 bne $at, $zero, 0xBFC26314 */ uint32_t psx_brA_BFC262FC = cpu->gpr[1]; uint32_t psx_brB_BFC262FC = cpu->gpr[0]; - int psx_taken_BFC262FC = (psx_brA_BFC262FC != psx_brB_BFC262FC); + psx_taken_BFC262FC = (psx_brA_BFC262FC != psx_brB_BFC262FC); /* 0xBFC26300: 2A010245 slti $at, $s0, 581 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (581) ? 1 : 0); if (psx_taken_BFC262FC) goto label_BFC26314; @@ -122393,7 +125945,7 @@ label_BFC26304: psx_check_interrupts(cpu); /* 0xBFC26304: 10200004 beq $at, $zero, 0xBFC26318 */ uint32_t psx_brA_BFC26304 = cpu->gpr[1]; uint32_t psx_brB_BFC26304 = cpu->gpr[0]; - int psx_taken_BFC26304 = (psx_brA_BFC26304 == psx_brB_BFC26304); + psx_taken_BFC26304 = (psx_brA_BFC26304 == psx_brB_BFC26304); /* 0xBFC26308: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC26304) goto label_BFC26318; @@ -122444,6 +125996,21 @@ void func_1FC2632C(CPUState* cpu) { default: break; } } + int psx_taken_BFC2633C = 0; + int psx_taken_BFC26380 = 0; + int psx_taken_BFC26388 = 0; + int psx_taken_BFC26390 = 0; + int psx_taken_BFC26398 = 0; + int psx_taken_BFC263A0 = 0; + int psx_taken_BFC263D0 = 0; + int psx_taken_BFC263D8 = 0; + int psx_taken_BFC263E8 = 0; + int psx_taken_BFC263F4 = 0; + int psx_taken_BFC26404 = 0; + int psx_taken_BFC2640C = 0; + int psx_taken_BFC26418 = 0; + int psx_taken_BFC26428 = 0; + int psx_taken_BFC26430 = 0; label_BFC2632C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -122459,7 +126026,7 @@ label_BFC2632C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26338u); return; } g_debug_last_store_pc = 0xBFC26338u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC2633C: 11C00008 beq $t6, $zero, 0xBFC26360 */ uint32_t psx_brA_BFC2633C = cpu->gpr[14]; uint32_t psx_brB_BFC2633C = cpu->gpr[0]; - int psx_taken_BFC2633C = (psx_brA_BFC2633C == psx_brB_BFC2633C); + psx_taken_BFC2633C = (psx_brA_BFC2633C == psx_brB_BFC2633C); /* 0xBFC26340: 00804021 addu $t0, $a0, $zero */ cpu->gpr[8] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC2633C) goto label_BFC26360; @@ -122522,7 +126089,7 @@ label_BFC26378: /* nop */ /* 0xBFC26380: 14600003 bne $v1, $zero, 0xBFC26390 */ uint32_t psx_brA_BFC26380 = cpu->gpr[3]; uint32_t psx_brB_BFC26380 = cpu->gpr[0]; - int psx_taken_BFC26380 = (psx_brA_BFC26380 != psx_brB_BFC26380); + psx_taken_BFC26380 = (psx_brA_BFC26380 != psx_brB_BFC26380); /* 0xBFC26384: 00000000 nop */ /* nop */ if (psx_taken_BFC26380) goto label_BFC26390; @@ -122533,7 +126100,7 @@ label_BFC26388: psx_check_interrupts(cpu); /* 0xBFC26388: 10000007 beq $zero, $zero, 0xBFC263A8 */ uint32_t psx_brA_BFC26388 = cpu->gpr[0]; uint32_t psx_brB_BFC26388 = cpu->gpr[0]; - int psx_taken_BFC26388 = (psx_brA_BFC26388 == psx_brB_BFC26388); + psx_taken_BFC26388 = (psx_brA_BFC26388 == psx_brB_BFC26388); /* 0xBFC2638C: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC26388) goto label_BFC263A8; @@ -122544,7 +126111,7 @@ label_BFC26390: psx_check_interrupts(cpu); /* 0xBFC26390: 14430003 bne $v0, $v1, 0xBFC263A0 */ uint32_t psx_brA_BFC26390 = cpu->gpr[2]; uint32_t psx_brB_BFC26390 = cpu->gpr[3]; - int psx_taken_BFC26390 = (psx_brA_BFC26390 != psx_brB_BFC26390); + psx_taken_BFC26390 = (psx_brA_BFC26390 != psx_brB_BFC26390); /* 0xBFC26394: 00000000 nop */ /* nop */ if (psx_taken_BFC26390) goto label_BFC263A0; @@ -122555,7 +126122,7 @@ label_BFC26398: psx_check_interrupts(cpu); /* 0xBFC26398: 10000003 beq $zero, $zero, 0xBFC263A8 */ uint32_t psx_brA_BFC26398 = cpu->gpr[0]; uint32_t psx_brB_BFC26398 = cpu->gpr[0]; - int psx_taken_BFC26398 = (psx_brA_BFC26398 == psx_brB_BFC26398); + psx_taken_BFC26398 = (psx_brA_BFC26398 == psx_brB_BFC26398); /* 0xBFC2639C: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC26398) goto label_BFC263A8; @@ -122566,7 +126133,7 @@ label_BFC263A0: psx_check_interrupts(cpu); /* 0xBFC263A0: 1000FFF5 beq $zero, $zero, 0xBFC26378 */ uint32_t psx_brA_BFC263A0 = cpu->gpr[0]; uint32_t psx_brB_BFC263A0 = cpu->gpr[0]; - int psx_taken_BFC263A0 = (psx_brA_BFC263A0 == psx_brB_BFC263A0); + psx_taken_BFC263A0 = (psx_brA_BFC263A0 == psx_brB_BFC263A0); /* 0xBFC263A4: 24840688 addiu $a0, $a0, 1672 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1672)); if (psx_taken_BFC263A0) goto label_BFC26378; @@ -122602,7 +126169,7 @@ label_BFC263C8: /* nop */ /* 0xBFC263D0: 10600019 beq $v1, $zero, 0xBFC26438 */ uint32_t psx_brA_BFC263D0 = cpu->gpr[3]; uint32_t psx_brB_BFC263D0 = cpu->gpr[0]; - int psx_taken_BFC263D0 = (psx_brA_BFC263D0 == psx_brB_BFC263D0); + psx_taken_BFC263D0 = (psx_brA_BFC263D0 == psx_brB_BFC263D0); /* 0xBFC263D4: 00000000 nop */ /* nop */ if (psx_taken_BFC263D0) goto label_BFC26438; @@ -122613,7 +126180,7 @@ label_BFC263D8: psx_check_interrupts(cpu); /* 0xBFC263D8: 14430015 bne $v0, $v1, 0xBFC26430 */ uint32_t psx_brA_BFC263D8 = cpu->gpr[2]; uint32_t psx_brB_BFC263D8 = cpu->gpr[3]; - int psx_taken_BFC263D8 = (psx_brA_BFC263D8 != psx_brB_BFC263D8); + psx_taken_BFC263D8 = (psx_brA_BFC263D8 != psx_brB_BFC263D8); /* 0xBFC263DC: 00000000 nop */ /* nop */ if (psx_taken_BFC263D8) goto label_BFC26430; @@ -122628,7 +126195,7 @@ label_BFC263E0: /* nop */ /* 0xBFC263E8: 14C30008 bne $a2, $v1, 0xBFC2640C */ uint32_t psx_brA_BFC263E8 = cpu->gpr[6]; uint32_t psx_brB_BFC263E8 = cpu->gpr[3]; - int psx_taken_BFC263E8 = (psx_brA_BFC263E8 != psx_brB_BFC263E8); + psx_taken_BFC263E8 = (psx_brA_BFC263E8 != psx_brB_BFC263E8); /* 0xBFC263EC: 00000000 nop */ /* nop */ if (psx_taken_BFC263E8) goto label_BFC2640C; @@ -122641,7 +126208,7 @@ label_BFC263F0: cpu->gpr[15] = cpu->gpr[8] & cpu->gpr[5]; /* 0xBFC263F4: 11E00005 beq $t7, $zero, 0xBFC2640C */ uint32_t psx_brA_BFC263F4 = cpu->gpr[15]; uint32_t psx_brB_BFC263F4 = cpu->gpr[0]; - int psx_taken_BFC263F4 = (psx_brA_BFC263F4 == psx_brB_BFC263F4); + psx_taken_BFC263F4 = (psx_brA_BFC263F4 == psx_brB_BFC263F4); /* 0xBFC263F8: 00000000 nop */ /* nop */ if (psx_taken_BFC263F4) goto label_BFC2640C; @@ -122662,7 +126229,7 @@ label_BFC26404: psx_check_interrupts(cpu); /* 0xBFC26404: 1000000D beq $zero, $zero, 0xBFC2643C */ uint32_t psx_brA_BFC26404 = cpu->gpr[0]; uint32_t psx_brB_BFC26404 = cpu->gpr[0]; - int psx_taken_BFC26404 = (psx_brA_BFC26404 == psx_brB_BFC26404); + psx_taken_BFC26404 = (psx_brA_BFC26404 == psx_brB_BFC26404); /* 0xBFC26408: 2402FFFE addiu $v0, $zero, -2 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); if (psx_taken_BFC26404) goto label_BFC2643C; @@ -122673,7 +126240,7 @@ label_BFC2640C: psx_check_interrupts(cpu); /* 0xBFC2640C: 14E30008 bne $a3, $v1, 0xBFC26430 */ uint32_t psx_brA_BFC2640C = cpu->gpr[7]; uint32_t psx_brB_BFC2640C = cpu->gpr[3]; - int psx_taken_BFC2640C = (psx_brA_BFC2640C != psx_brB_BFC2640C); + psx_taken_BFC2640C = (psx_brA_BFC2640C != psx_brB_BFC2640C); /* 0xBFC26410: 00000000 nop */ /* nop */ if (psx_taken_BFC2640C) goto label_BFC26430; @@ -122686,7 +126253,7 @@ label_BFC26414: cpu->gpr[24] = cpu->gpr[8] & cpu->gpr[5]; /* 0xBFC26418: 13000005 beq $t8, $zero, 0xBFC26430 */ uint32_t psx_brA_BFC26418 = cpu->gpr[24]; uint32_t psx_brB_BFC26418 = cpu->gpr[0]; - int psx_taken_BFC26418 = (psx_brA_BFC26418 == psx_brB_BFC26418); + psx_taken_BFC26418 = (psx_brA_BFC26418 == psx_brB_BFC26418); /* 0xBFC2641C: 00000000 nop */ /* nop */ if (psx_taken_BFC26418) goto label_BFC26430; @@ -122707,7 +126274,7 @@ label_BFC26428: psx_check_interrupts(cpu); /* 0xBFC26428: 10000004 beq $zero, $zero, 0xBFC2643C */ uint32_t psx_brA_BFC26428 = cpu->gpr[0]; uint32_t psx_brB_BFC26428 = cpu->gpr[0]; - int psx_taken_BFC26428 = (psx_brA_BFC26428 == psx_brB_BFC26428); + psx_taken_BFC26428 = (psx_brA_BFC26428 == psx_brB_BFC26428); /* 0xBFC2642C: 2402FFFE addiu $v0, $zero, -2 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); if (psx_taken_BFC26428) goto label_BFC2643C; @@ -122718,7 +126285,7 @@ label_BFC26430: psx_check_interrupts(cpu); /* 0xBFC26430: 1000FFE5 beq $zero, $zero, 0xBFC263C8 */ uint32_t psx_brA_BFC26430 = cpu->gpr[0]; uint32_t psx_brB_BFC26430 = cpu->gpr[0]; - int psx_taken_BFC26430 = (psx_brA_BFC26430 == psx_brB_BFC26430); + psx_taken_BFC26430 = (psx_brA_BFC26430 == psx_brB_BFC26430); /* 0xBFC26434: 24840688 addiu $a0, $a0, 1672 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1672)); if (psx_taken_BFC26430) goto label_BFC263C8; @@ -122832,6 +126399,7 @@ void func_1FC264A0(CPUState* cpu) { default: break; } } + int psx_taken_BFC264B0 = 0; label_BFC264A0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -122847,7 +126415,7 @@ label_BFC264A0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC264B0: 15C1000E bne $t6, $at, 0xBFC264EC */ uint32_t psx_brA_BFC264B0 = cpu->gpr[14]; uint32_t psx_brB_BFC264B0 = cpu->gpr[1]; - int psx_taken_BFC264B0 = (psx_brA_BFC264B0 != psx_brB_BFC264B0); + psx_taken_BFC264B0 = (psx_brA_BFC264B0 != psx_brB_BFC264B0); /* 0xBFC264B4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC264B4u); return; } g_debug_last_store_pc = 0xBFC264B4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC264B0) goto label_BFC264EC; @@ -122988,6 +126556,8 @@ void func_1FC26550(CPUState* cpu) { default: break; } } + int psx_taken_BFC26578 = 0; + int psx_taken_BFC2658C = 0; label_BFC26550: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -123021,7 +126591,7 @@ label_BFC2656C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (6)); /* 0xBFC26578: 15C10007 bne $t6, $at, 0xBFC26598 */ uint32_t psx_brA_BFC26578 = cpu->gpr[14]; uint32_t psx_brB_BFC26578 = cpu->gpr[1]; - int psx_taken_BFC26578 = (psx_brA_BFC26578 != psx_brB_BFC26578); + psx_taken_BFC26578 = (psx_brA_BFC26578 != psx_brB_BFC26578); /* 0xBFC2657C: 24040104 addiu $a0, $zero, 260 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (260)); if (psx_taken_BFC26578) goto label_BFC26598; @@ -123044,7 +126614,7 @@ label_BFC2658C: psx_check_interrupts(cpu); /* 0xBFC2658C: 10000005 beq $zero, $zero, 0xBFC265A4 */ uint32_t psx_brA_BFC2658C = cpu->gpr[0]; uint32_t psx_brB_BFC2658C = cpu->gpr[0]; - int psx_taken_BFC2658C = (psx_brA_BFC2658C == psx_brB_BFC2658C); + psx_taken_BFC2658C = (psx_brA_BFC2658C == psx_brB_BFC2658C); /* 0xBFC26590: 240F0001 addiu $t7, $zero, 1 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC2658C) goto label_BFC265A4; @@ -123331,6 +126901,29 @@ void func_1FC266B0(CPUState* cpu) { default: break; } } + int psx_taken_BFC266C0 = 0; + int psx_taken_BFC266D4 = 0; + int psx_taken_BFC266FC = 0; + int psx_taken_BFC26734 = 0; + int psx_taken_BFC26748 = 0; + int psx_taken_BFC26758 = 0; + int psx_taken_BFC26760 = 0; + int psx_taken_BFC2676C = 0; + int psx_taken_BFC26778 = 0; + int psx_taken_BFC26790 = 0; + int psx_taken_BFC2679C = 0; + int psx_taken_BFC267A4 = 0; + int psx_taken_BFC267C0 = 0; + int psx_taken_BFC267D8 = 0; + int psx_taken_BFC267E0 = 0; + int psx_taken_BFC267F4 = 0; + int psx_taken_BFC267FC = 0; + int psx_taken_BFC26818 = 0; + int psx_taken_BFC26824 = 0; + int psx_taken_BFC2682C = 0; + int psx_taken_BFC26848 = 0; + int psx_taken_BFC2688C = 0; + int psx_taken_BFC268A8 = 0; label_BFC266B0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -123346,7 +126939,7 @@ label_BFC266B0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC266BCu); return; } g_debug_last_store_pc = 0xBFC266BCu; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC266C0: 1DC00086 bgtz $t6, 0xBFC268DC */ uint32_t psx_brA_BFC266C0 = cpu->gpr[14]; - int psx_taken_BFC266C0 = ((int32_t)psx_brA_BFC266C0 > 0); + psx_taken_BFC266C0 = ((int32_t)psx_brA_BFC266C0 > 0); /* 0xBFC266C4: AFA40048 sw $a0, 72($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC266C4u); return; } g_debug_last_store_pc = 0xBFC266C4u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC266C0) goto label_BFC268DC; @@ -123363,7 +126956,7 @@ label_BFC266C8: /* nop */ /* 0xBFC266D4: 15E00082 bne $t7, $zero, 0xBFC268E0 */ uint32_t psx_brA_BFC266D4 = cpu->gpr[15]; uint32_t psx_brB_BFC266D4 = cpu->gpr[0]; - int psx_taken_BFC266D4 = (psx_brA_BFC266D4 != psx_brB_BFC266D4); + psx_taken_BFC266D4 = (psx_brA_BFC266D4 != psx_brB_BFC266D4); /* 0xBFC266D8: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC266D8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC266D4) goto label_BFC268E0; @@ -123396,7 +126989,7 @@ label_BFC266EC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); /* 0xBFC266FC: 14410049 bne $v0, $at, 0xBFC26824 */ uint32_t psx_brA_BFC266FC = cpu->gpr[2]; uint32_t psx_brB_BFC266FC = cpu->gpr[1]; - int psx_taken_BFC266FC = (psx_brA_BFC266FC != psx_brB_BFC266FC); + psx_taken_BFC266FC = (psx_brA_BFC266FC != psx_brB_BFC266FC); /* 0xBFC26700: 2401FFFF addiu $at, $zero, -1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC266FC) goto label_BFC26824; @@ -123437,7 +127030,7 @@ label_BFC26728: /* nop */ /* 0xBFC26734: 14E00004 bne $a3, $zero, 0xBFC26748 */ uint32_t psx_brA_BFC26734 = cpu->gpr[7]; uint32_t psx_brB_BFC26734 = cpu->gpr[0]; - int psx_taken_BFC26734 = (psx_brA_BFC26734 != psx_brB_BFC26734); + psx_taken_BFC26734 = (psx_brA_BFC26734 != psx_brB_BFC26734); /* 0xBFC26738: 00000000 nop */ /* nop */ if (psx_taken_BFC26734) goto label_BFC26748; @@ -123459,7 +127052,7 @@ label_BFC26748: psx_check_interrupts(cpu); /* 0xBFC26748: 1440000A bne $v0, $zero, 0xBFC26774 */ uint32_t psx_brA_BFC26748 = cpu->gpr[2]; uint32_t psx_brB_BFC26748 = cpu->gpr[0]; - int psx_taken_BFC26748 = (psx_brA_BFC26748 != psx_brB_BFC26748); + psx_taken_BFC26748 = (psx_brA_BFC26748 != psx_brB_BFC26748); /* 0xBFC2674C: 3C010800 lui $at, 0x800 */ cpu->gpr[1] = 0x08000000u; if (psx_taken_BFC26748) goto label_BFC26774; @@ -123474,7 +127067,7 @@ label_BFC26750: cpu->gpr[8] = cpu->gpr[7] & cpu->gpr[1]; /* 0xBFC26758: 15000016 bne $t0, $zero, 0xBFC267B4 */ uint32_t psx_brA_BFC26758 = cpu->gpr[8]; uint32_t psx_brB_BFC26758 = cpu->gpr[0]; - int psx_taken_BFC26758 = (psx_brA_BFC26758 != psx_brB_BFC26758); + psx_taken_BFC26758 = (psx_brA_BFC26758 != psx_brB_BFC26758); /* 0xBFC2675C: 00000000 nop */ /* nop */ if (psx_taken_BFC26758) goto label_BFC267B4; @@ -123485,7 +127078,7 @@ label_BFC26760: psx_check_interrupts(cpu); /* 0xBFC26760: 10E00002 beq $a3, $zero, 0xBFC2676C */ uint32_t psx_brA_BFC26760 = cpu->gpr[7]; uint32_t psx_brB_BFC26760 = cpu->gpr[0]; - int psx_taken_BFC26760 = (psx_brA_BFC26760 == psx_brB_BFC26760); + psx_taken_BFC26760 = (psx_brA_BFC26760 == psx_brB_BFC26760); /* 0xBFC26764: 3C018006 lui $at, 0x8006 */ cpu->gpr[1] = 0x80060000u; if (psx_taken_BFC26760) goto label_BFC2676C; @@ -123503,7 +127096,7 @@ label_BFC2676C: psx_check_interrupts(cpu); /* 0xBFC2676C: 10000011 beq $zero, $zero, 0xBFC267B4 */ uint32_t psx_brA_BFC2676C = cpu->gpr[0]; uint32_t psx_brB_BFC2676C = cpu->gpr[0]; - int psx_taken_BFC2676C = (psx_brA_BFC2676C == psx_brB_BFC2676C); + psx_taken_BFC2676C = (psx_brA_BFC2676C == psx_brB_BFC2676C); /* 0xBFC26770: 00003821 addu $a3, $zero, $zero */ cpu->gpr[7] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2676C) goto label_BFC267B4; @@ -123516,7 +127109,7 @@ label_BFC26774: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); /* 0xBFC26778: 14410007 bne $v0, $at, 0xBFC26798 */ uint32_t psx_brA_BFC26778 = cpu->gpr[2]; uint32_t psx_brB_BFC26778 = cpu->gpr[1]; - int psx_taken_BFC26778 = (psx_brA_BFC26778 != psx_brB_BFC26778); + psx_taken_BFC26778 = (psx_brA_BFC26778 != psx_brB_BFC26778); /* 0xBFC2677C: 3C018006 lui $at, 0x8006 */ cpu->gpr[1] = 0x80060000u; if (psx_taken_BFC26778) goto label_BFC26798; @@ -123535,7 +127128,7 @@ label_BFC26780: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (27756)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2678Cu); return; } g_debug_last_store_pc = 0xBFC2678Cu; cpu->write_word(psx_addr, cpu->gpr[9]); } /* 0xBFC26790: 10000008 beq $zero, $zero, 0xBFC267B4 */ uint32_t psx_brA_BFC26790 = cpu->gpr[0]; uint32_t psx_brB_BFC26790 = cpu->gpr[0]; - int psx_taken_BFC26790 = (psx_brA_BFC26790 == psx_brB_BFC26790); + psx_taken_BFC26790 = (psx_brA_BFC26790 == psx_brB_BFC26790); /* 0xBFC26794: 00003821 addu $a3, $zero, $zero */ cpu->gpr[7] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC26790) goto label_BFC267B4; @@ -123548,7 +127141,7 @@ label_BFC26798: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC2679C: 14410005 bne $v0, $at, 0xBFC267B4 */ uint32_t psx_brA_BFC2679C = cpu->gpr[2]; uint32_t psx_brB_BFC2679C = cpu->gpr[1]; - int psx_taken_BFC2679C = (psx_brA_BFC2679C != psx_brB_BFC2679C); + psx_taken_BFC2679C = (psx_brA_BFC2679C != psx_brB_BFC2679C); /* 0xBFC267A0: 00000000 nop */ /* nop */ if (psx_taken_BFC2679C) goto label_BFC267B4; @@ -123559,7 +127152,7 @@ label_BFC267A4: psx_check_interrupts(cpu); /* 0xBFC267A4: 14E00003 bne $a3, $zero, 0xBFC267B4 */ uint32_t psx_brA_BFC267A4 = cpu->gpr[7]; uint32_t psx_brB_BFC267A4 = cpu->gpr[0]; - int psx_taken_BFC267A4 = (psx_brA_BFC267A4 != psx_brB_BFC267A4); + psx_taken_BFC267A4 = (psx_brA_BFC267A4 != psx_brB_BFC267A4); /* 0xBFC267A8: 00000000 nop */ /* nop */ if (psx_taken_BFC267A4) goto label_BFC267B4; @@ -123585,7 +127178,7 @@ label_BFC267B4: /* nop */ /* 0xBFC267C0: 15400002 bne $t2, $zero, 0xBFC267CC */ uint32_t psx_brA_BFC267C0 = cpu->gpr[10]; uint32_t psx_brB_BFC267C0 = cpu->gpr[0]; - int psx_taken_BFC267C0 = (psx_brA_BFC267C0 != psx_brB_BFC267C0); + psx_taken_BFC267C0 = (psx_brA_BFC267C0 != psx_brB_BFC267C0); /* 0xBFC267C4: 00000000 nop */ /* nop */ if (psx_taken_BFC267C0) goto label_BFC267CC; @@ -123609,7 +127202,7 @@ label_BFC267CC: /* nop */ /* 0xBFC267D8: 11600003 beq $t3, $zero, 0xBFC267E8 */ uint32_t psx_brA_BFC267D8 = cpu->gpr[11]; uint32_t psx_brB_BFC267D8 = cpu->gpr[0]; - int psx_taken_BFC267D8 = (psx_brA_BFC267D8 == psx_brB_BFC267D8); + psx_taken_BFC267D8 = (psx_brA_BFC267D8 == psx_brB_BFC267D8); /* 0xBFC267DC: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC267D8) goto label_BFC267E8; @@ -123620,7 +127213,7 @@ label_BFC267E0: psx_check_interrupts(cpu); /* 0xBFC267E0: 1000003E beq $zero, $zero, 0xBFC268DC */ uint32_t psx_brA_BFC267E0 = cpu->gpr[0]; uint32_t psx_brB_BFC267E0 = cpu->gpr[0]; - int psx_taken_BFC267E0 = (psx_brA_BFC267E0 == psx_brB_BFC267E0); + psx_taken_BFC267E0 = (psx_brA_BFC267E0 == psx_brB_BFC267E0); /* 0xBFC267E4: AC279E1C sw $a3, -25060($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25060)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC267E4u); return; } g_debug_last_store_pc = 0xBFC267E4u; cpu->write_word(psx_addr, cpu->gpr[7]); } if (psx_taken_BFC267E0) goto label_BFC268DC; @@ -123637,7 +127230,7 @@ label_BFC267E8: cpu->gpr[12] = cpu->gpr[7] & cpu->gpr[1]; /* 0xBFC267F4: 15800003 bne $t4, $zero, 0xBFC26804 */ uint32_t psx_brA_BFC267F4 = cpu->gpr[12]; uint32_t psx_brB_BFC267F4 = cpu->gpr[0]; - int psx_taken_BFC267F4 = (psx_brA_BFC267F4 != psx_brB_BFC267F4); + psx_taken_BFC267F4 = (psx_brA_BFC267F4 != psx_brB_BFC267F4); /* 0xBFC267F8: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC267F4) goto label_BFC26804; @@ -123648,7 +127241,7 @@ label_BFC267FC: psx_check_interrupts(cpu); /* 0xBFC267FC: 10000037 beq $zero, $zero, 0xBFC268DC */ uint32_t psx_brA_BFC267FC = cpu->gpr[0]; uint32_t psx_brB_BFC267FC = cpu->gpr[0]; - int psx_taken_BFC267FC = (psx_brA_BFC267FC == psx_brB_BFC267FC); + psx_taken_BFC267FC = (psx_brA_BFC267FC == psx_brB_BFC267FC); /* 0xBFC26800: AC279E1C sw $a3, -25060($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25060)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26800u); return; } g_debug_last_store_pc = 0xBFC26800u; cpu->write_word(psx_addr, cpu->gpr[7]); } if (psx_taken_BFC267FC) goto label_BFC268DC; @@ -123669,7 +127262,7 @@ label_BFC26804: cpu->gpr[1] = 0x80080000u; /* 0xBFC26818: 10000030 beq $zero, $zero, 0xBFC268DC */ uint32_t psx_brA_BFC26818 = cpu->gpr[0]; uint32_t psx_brB_BFC26818 = cpu->gpr[0]; - int psx_taken_BFC26818 = (psx_brA_BFC26818 == psx_brB_BFC26818); + psx_taken_BFC26818 = (psx_brA_BFC26818 == psx_brB_BFC26818); /* 0xBFC2681C: AC279E1C sw $a3, -25060($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25060)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2681Cu); return; } g_debug_last_store_pc = 0xBFC2681Cu; cpu->write_word(psx_addr, cpu->gpr[7]); } if (psx_taken_BFC26818) goto label_BFC268DC; @@ -123687,7 +127280,7 @@ label_BFC26824: psx_check_interrupts(cpu); /* 0xBFC26824: 14410003 bne $v0, $at, 0xBFC26834 */ uint32_t psx_brA_BFC26824 = cpu->gpr[2]; uint32_t psx_brB_BFC26824 = cpu->gpr[1]; - int psx_taken_BFC26824 = (psx_brA_BFC26824 != psx_brB_BFC26824); + psx_taken_BFC26824 = (psx_brA_BFC26824 != psx_brB_BFC26824); /* 0xBFC26828: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC26824) goto label_BFC26834; @@ -123698,7 +127291,7 @@ label_BFC2682C: psx_check_interrupts(cpu); /* 0xBFC2682C: 1000002B beq $zero, $zero, 0xBFC268DC */ uint32_t psx_brA_BFC2682C = cpu->gpr[0]; uint32_t psx_brB_BFC2682C = cpu->gpr[0]; - int psx_taken_BFC2682C = (psx_brA_BFC2682C == psx_brB_BFC2682C); + psx_taken_BFC2682C = (psx_brA_BFC2682C == psx_brB_BFC2682C); /* 0xBFC26830: AC279E1C sw $a3, -25060($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25060)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26830u); return; } g_debug_last_store_pc = 0xBFC26830u; cpu->write_word(psx_addr, cpu->gpr[7]); } if (psx_taken_BFC2682C) goto label_BFC268DC; @@ -123725,7 +127318,7 @@ label_BFC26844: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-2)); /* 0xBFC26848: 1441000D bne $v0, $at, 0xBFC26880 */ uint32_t psx_brA_BFC26848 = cpu->gpr[2]; uint32_t psx_brB_BFC26848 = cpu->gpr[1]; - int psx_taken_BFC26848 = (psx_brA_BFC26848 != psx_brB_BFC26848); + psx_taken_BFC26848 = (psx_brA_BFC26848 != psx_brB_BFC26848); /* 0xBFC2684C: 3C018006 lui $at, 0x8006 */ cpu->gpr[1] = 0x80060000u; if (psx_taken_BFC26848) goto label_BFC26880; @@ -123783,7 +127376,7 @@ label_BFC26880: /* nop */ /* 0xBFC2688C: 15E00014 bne $t7, $zero, 0xBFC268E0 */ uint32_t psx_brA_BFC2688C = cpu->gpr[15]; uint32_t psx_brB_BFC2688C = cpu->gpr[0]; - int psx_taken_BFC2688C = (psx_brA_BFC2688C != psx_brB_BFC2688C); + psx_taken_BFC2688C = (psx_brA_BFC2688C != psx_brB_BFC2688C); /* 0xBFC26890: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26890u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2688C) goto label_BFC268E0; @@ -123804,7 +127397,7 @@ label_BFC26894: cpu->gpr[24] = cpu->gpr[7] & cpu->gpr[1]; /* 0xBFC268A8: 1300000D beq $t8, $zero, 0xBFC268E0 */ uint32_t psx_brA_BFC268A8 = cpu->gpr[24]; uint32_t psx_brB_BFC268A8 = cpu->gpr[0]; - int psx_taken_BFC268A8 = (psx_brA_BFC268A8 == psx_brB_BFC268A8); + psx_taken_BFC268A8 = (psx_brA_BFC268A8 == psx_brB_BFC268A8); /* 0xBFC268AC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC268ACu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC268A8) goto label_BFC268E0; @@ -123883,6 +127476,19 @@ void func_1FC268EC(CPUState* cpu) { default: break; } } + int psx_taken_BFC26900 = 0; + int psx_taken_BFC26914 = 0; + int psx_taken_BFC26920 = 0; + int psx_taken_BFC26938 = 0; + int psx_taken_BFC26954 = 0; + int psx_taken_BFC269E0 = 0; + int psx_taken_BFC269F0 = 0; + int psx_taken_BFC26A04 = 0; + int psx_taken_BFC26A44 = 0; + int psx_taken_BFC26A74 = 0; + int psx_taken_BFC26A98 = 0; + int psx_taken_BFC26AAC = 0; + int psx_taken_BFC26AB8 = 0; label_BFC268EC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -123900,7 +127506,7 @@ label_BFC268EC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC268FCu); return; } g_debug_last_store_pc = 0xBFC268FCu; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC26900: 11C10079 beq $t6, $at, 0xBFC26AE8 */ uint32_t psx_brA_BFC26900 = cpu->gpr[14]; uint32_t psx_brB_BFC26900 = cpu->gpr[1]; - int psx_taken_BFC26900 = (psx_brA_BFC26900 == psx_brB_BFC26900); + psx_taken_BFC26900 = (psx_brA_BFC26900 == psx_brB_BFC26900); /* 0xBFC26904: 00805821 addu $t3, $a0, $zero */ cpu->gpr[11] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC26900) goto label_BFC26AE8; @@ -123917,7 +127523,7 @@ label_BFC26908: /* nop */ /* 0xBFC26914: 18400038 blez $v0, 0xBFC269F8 */ uint32_t psx_brA_BFC26914 = cpu->gpr[2]; - int psx_taken_BFC26914 = ((int32_t)psx_brA_BFC26914 <= 0); + psx_taken_BFC26914 = ((int32_t)psx_brA_BFC26914 <= 0); /* 0xBFC26918: 00000000 nop */ /* nop */ if (psx_taken_BFC26914) goto label_BFC269F8; @@ -123930,7 +127536,7 @@ label_BFC2691C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (-1)); /* 0xBFC26920: 14400007 bne $v0, $zero, 0xBFC26940 */ uint32_t psx_brA_BFC26920 = cpu->gpr[2]; uint32_t psx_brB_BFC26920 = cpu->gpr[0]; - int psx_taken_BFC26920 = (psx_brA_BFC26920 != psx_brB_BFC26920); + psx_taken_BFC26920 = (psx_brA_BFC26920 != psx_brB_BFC26920); /* 0xBFC26924: 3C018006 lui $at, 0x8006 */ cpu->gpr[1] = 0x80060000u; if (psx_taken_BFC26920) goto label_BFC26940; @@ -123949,7 +127555,7 @@ label_BFC26928: cpu->gpr[1] = 0x80080000u; /* 0xBFC26938: 1000006B beq $zero, $zero, 0xBFC26AE8 */ uint32_t psx_brA_BFC26938 = cpu->gpr[0]; uint32_t psx_brB_BFC26938 = cpu->gpr[0]; - int psx_taken_BFC26938 = (psx_brA_BFC26938 == psx_brB_BFC26938); + psx_taken_BFC26938 = (psx_brA_BFC26938 == psx_brB_BFC26938); /* 0xBFC2693C: AC2F9E1C sw $t7, -25060($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25060)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2693Cu); return; } g_debug_last_store_pc = 0xBFC2693Cu; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC26938) goto label_BFC26AE8; @@ -123970,7 +127576,7 @@ label_BFC26940: cpu->gpr[24] = cpu->hi; /* 0xBFC26954: 17000024 bne $t8, $zero, 0xBFC269E8 */ uint32_t psx_brA_BFC26954 = cpu->gpr[24]; uint32_t psx_brB_BFC26954 = cpu->gpr[0]; - int psx_taken_BFC26954 = (psx_brA_BFC26954 != psx_brB_BFC26954); + psx_taken_BFC26954 = (psx_brA_BFC26954 != psx_brB_BFC26954); /* 0xBFC26958: 00000000 nop */ /* nop */ if (psx_taken_BFC26954) goto label_BFC269E8; @@ -124053,7 +127659,7 @@ label_BFC269E0: psx_check_interrupts(cpu); /* 0xBFC269E0: 10000042 beq $zero, $zero, 0xBFC26AEC */ uint32_t psx_brA_BFC269E0 = cpu->gpr[0]; uint32_t psx_brB_BFC269E0 = cpu->gpr[0]; - int psx_taken_BFC269E0 = (psx_brA_BFC269E0 == psx_brB_BFC269E0); + psx_taken_BFC269E0 = (psx_brA_BFC269E0 == psx_brB_BFC269E0); /* 0xBFC269E4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC269E4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC269E0) goto label_BFC26AEC; @@ -124074,7 +127680,7 @@ label_BFC269F0: psx_check_interrupts(cpu); /* 0xBFC269F0: 1000003E beq $zero, $zero, 0xBFC26AEC */ uint32_t psx_brA_BFC269F0 = cpu->gpr[0]; uint32_t psx_brB_BFC269F0 = cpu->gpr[0]; - int psx_taken_BFC269F0 = (psx_brA_BFC269F0 == psx_brB_BFC269F0); + psx_taken_BFC269F0 = (psx_brA_BFC269F0 == psx_brB_BFC269F0); /* 0xBFC269F4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC269F4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC269F0) goto label_BFC26AEC; @@ -124091,7 +127697,7 @@ label_BFC269F8: /* nop */ /* 0xBFC26A04: 1040001E beq $v0, $zero, 0xBFC26A80 */ uint32_t psx_brA_BFC26A04 = cpu->gpr[2]; uint32_t psx_brB_BFC26A04 = cpu->gpr[0]; - int psx_taken_BFC26A04 = (psx_brA_BFC26A04 == psx_brB_BFC26A04); + psx_taken_BFC26A04 = (psx_brA_BFC26A04 == psx_brB_BFC26A04); /* 0xBFC26A08: 01602021 addu $a0, $t3, $zero */ cpu->gpr[4] = cpu->gpr[11] + cpu->gpr[0]; if (psx_taken_BFC26A04) goto label_BFC26A80; @@ -124136,7 +127742,7 @@ label_BFC26A38: /* nop */ /* 0xBFC26A44: 1C400029 bgtz $v0, 0xBFC26AEC */ uint32_t psx_brA_BFC26A44 = cpu->gpr[2]; - int psx_taken_BFC26A44 = ((int32_t)psx_brA_BFC26A44 > 0); + psx_taken_BFC26A44 = ((int32_t)psx_brA_BFC26A44 > 0); /* 0xBFC26A48: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26A48u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC26A44) goto label_BFC26AEC; @@ -124173,7 +127779,7 @@ label_BFC26A74: psx_check_interrupts(cpu); /* 0xBFC26A74: 1000001D beq $zero, $zero, 0xBFC26AEC */ uint32_t psx_brA_BFC26A74 = cpu->gpr[0]; uint32_t psx_brB_BFC26A74 = cpu->gpr[0]; - int psx_taken_BFC26A74 = (psx_brA_BFC26A74 == psx_brB_BFC26A74); + psx_taken_BFC26A74 = (psx_brA_BFC26A74 == psx_brB_BFC26A74); /* 0xBFC26A78: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26A78u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC26A74) goto label_BFC26AEC; @@ -124209,7 +127815,7 @@ label_BFC26A88: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); /* 0xBFC26A98: 14410007 bne $v0, $at, 0xBFC26AB8 */ uint32_t psx_brA_BFC26A98 = cpu->gpr[2]; uint32_t psx_brB_BFC26A98 = cpu->gpr[1]; - int psx_taken_BFC26A98 = (psx_brA_BFC26A98 != psx_brB_BFC26A98); + psx_taken_BFC26A98 = (psx_brA_BFC26A98 != psx_brB_BFC26A98); /* 0xBFC26A9C: 2401FFFF addiu $at, $zero, -1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC26A98) goto label_BFC26AB8; @@ -124232,7 +127838,7 @@ label_BFC26AAC: psx_check_interrupts(cpu); /* 0xBFC26AAC: 1000000F beq $zero, $zero, 0xBFC26AEC */ uint32_t psx_brA_BFC26AAC = cpu->gpr[0]; uint32_t psx_brB_BFC26AAC = cpu->gpr[0]; - int psx_taken_BFC26AAC = (psx_brA_BFC26AAC == psx_brB_BFC26AAC); + psx_taken_BFC26AAC = (psx_brA_BFC26AAC == psx_brB_BFC26AAC); /* 0xBFC26AB0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26AB0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC26AAC) goto label_BFC26AEC; @@ -124250,7 +127856,7 @@ label_BFC26AB8: psx_check_interrupts(cpu); /* 0xBFC26AB8: 1041000C beq $v0, $at, 0xBFC26AEC */ uint32_t psx_brA_BFC26AB8 = cpu->gpr[2]; uint32_t psx_brB_BFC26AB8 = cpu->gpr[1]; - int psx_taken_BFC26AB8 = (psx_brA_BFC26AB8 == psx_brB_BFC26AB8); + psx_taken_BFC26AB8 = (psx_brA_BFC26AB8 == psx_brB_BFC26AB8); /* 0xBFC26ABC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26ABCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC26AB8) goto label_BFC26AEC; @@ -124463,6 +128069,27 @@ void func_1FC26C10(CPUState* cpu) { default: break; } } + int psx_taken_BFC26C40 = 0; + int psx_taken_BFC26C48 = 0; + int psx_taken_BFC26C7C = 0; + int psx_taken_BFC26C84 = 0; + int psx_taken_BFC26C94 = 0; + int psx_taken_BFC26CB4 = 0; + int psx_taken_BFC26CC0 = 0; + int psx_taken_BFC26CD4 = 0; + int psx_taken_BFC26CFC = 0; + int psx_taken_BFC26D20 = 0; + int psx_taken_BFC26D48 = 0; + int psx_taken_BFC26D5C = 0; + int psx_taken_BFC26D70 = 0; + int psx_taken_BFC26D84 = 0; + int psx_taken_BFC26D98 = 0; + int psx_taken_BFC26DA0 = 0; + int psx_taken_BFC26DB4 = 0; + int psx_taken_BFC26DD4 = 0; + int psx_taken_BFC26DF4 = 0; + int psx_taken_BFC26E28 = 0; + int psx_taken_BFC26E34 = 0; label_BFC26C10: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -124506,7 +128133,7 @@ label_BFC26C40: psx_check_interrupts(cpu); /* 0xBFC26C40: 1C400003 bgtz $v0, 0xBFC26C50 */ uint32_t psx_brA_BFC26C40 = cpu->gpr[2]; - int psx_taken_BFC26C40 = ((int32_t)psx_brA_BFC26C40 > 0); + psx_taken_BFC26C40 = ((int32_t)psx_brA_BFC26C40 > 0); /* 0xBFC26C44: 00000000 nop */ /* nop */ if (psx_taken_BFC26C40) goto label_BFC26C50; @@ -124517,7 +128144,7 @@ label_BFC26C48: psx_check_interrupts(cpu); /* 0xBFC26C48: 10000082 beq $zero, $zero, 0xBFC26E54 */ uint32_t psx_brA_BFC26C48 = cpu->gpr[0]; uint32_t psx_brB_BFC26C48 = cpu->gpr[0]; - int psx_taken_BFC26C48 = (psx_brA_BFC26C48 == psx_brB_BFC26C48); + psx_taken_BFC26C48 = (psx_brA_BFC26C48 == psx_brB_BFC26C48); /* 0xBFC26C4C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC26C48) goto label_BFC26E54; @@ -124555,7 +128182,7 @@ label_BFC26C74: /* nop */ /* 0xBFC26C7C: 10820007 beq $a0, $v0, 0xBFC26C9C */ uint32_t psx_brA_BFC26C7C = cpu->gpr[4]; uint32_t psx_brB_BFC26C7C = cpu->gpr[2]; - int psx_taken_BFC26C7C = (psx_brA_BFC26C7C == psx_brB_BFC26C7C); + psx_taken_BFC26C7C = (psx_brA_BFC26C7C == psx_brB_BFC26C7C); /* 0xBFC26C80: 00000000 nop */ /* nop */ if (psx_taken_BFC26C7C) goto label_BFC26C9C; @@ -124566,7 +128193,7 @@ label_BFC26C84: psx_check_interrupts(cpu); /* 0xBFC26C84: 10400005 beq $v0, $zero, 0xBFC26C9C */ uint32_t psx_brA_BFC26C84 = cpu->gpr[2]; uint32_t psx_brB_BFC26C84 = cpu->gpr[0]; - int psx_taken_BFC26C84 = (psx_brA_BFC26C84 == psx_brB_BFC26C84); + psx_taken_BFC26C84 = (psx_brA_BFC26C84 == psx_brB_BFC26C84); /* 0xBFC26C88: 00000000 nop */ /* nop */ if (psx_taken_BFC26C84) goto label_BFC26C9C; @@ -124581,7 +128208,7 @@ label_BFC26C8C: g_debug_last_store_pc = 0xBFC26C90u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[7] + (-1)), (uint8_t)(cpu->gpr[2] & 0xFFu)); /* 0xBFC26C94: 14E5FFF7 bne $a3, $a1, 0xBFC26C74 */ uint32_t psx_brA_BFC26C94 = cpu->gpr[7]; uint32_t psx_brB_BFC26C94 = cpu->gpr[5]; - int psx_taken_BFC26C94 = (psx_brA_BFC26C94 != psx_brB_BFC26C94); + psx_taken_BFC26C94 = (psx_brA_BFC26C94 != psx_brB_BFC26C94); /* 0xBFC26C98: 24630001 addiu $v1, $v1, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); if (psx_taken_BFC26C94) goto label_BFC26C74; @@ -124610,7 +128237,7 @@ label_BFC26CB4: psx_check_interrupts(cpu); /* 0xBFC26CB4: 1C400004 bgtz $v0, 0xBFC26CC8 */ uint32_t psx_brA_BFC26CB4 = cpu->gpr[2]; - int psx_taken_BFC26CB4 = ((int32_t)psx_brA_BFC26CB4 > 0); + psx_taken_BFC26CB4 = ((int32_t)psx_brA_BFC26CB4 > 0); /* 0xBFC26CB8: 00000000 nop */ /* nop */ if (psx_taken_BFC26CB4) goto label_BFC26CC8; @@ -124623,7 +128250,7 @@ label_BFC26CBC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26CBCu); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC26CC0: 10000064 beq $zero, $zero, 0xBFC26E54 */ uint32_t psx_brA_BFC26CC0 = cpu->gpr[0]; uint32_t psx_brB_BFC26CC0 = cpu->gpr[0]; - int psx_taken_BFC26CC0 = (psx_brA_BFC26CC0 == psx_brB_BFC26CC0); + psx_taken_BFC26CC0 = (psx_brA_BFC26CC0 == psx_brB_BFC26CC0); /* 0xBFC26CC4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC26CC0) goto label_BFC26E54; @@ -124640,7 +128267,7 @@ label_BFC26CC8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26CD0u); return; } g_debug_last_store_pc = 0xBFC26CD0u; cpu->write_word(psx_addr, cpu->gpr[16]); } /* 0xBFC26CD4: 11C00016 beq $t6, $zero, 0xBFC26D30 */ uint32_t psx_brA_BFC26CD4 = cpu->gpr[14]; uint32_t psx_brB_BFC26CD4 = cpu->gpr[0]; - int psx_taken_BFC26CD4 = (psx_brA_BFC26CD4 == psx_brB_BFC26CD4); + psx_taken_BFC26CD4 = (psx_brA_BFC26CD4 == psx_brB_BFC26CD4); /* 0xBFC26CD8: 00009021 addu $s2, $zero, $zero */ cpu->gpr[18] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC26CD4) goto label_BFC26D30; @@ -124672,7 +128299,7 @@ label_BFC26CF0: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC26CFC: 10620006 beq $v1, $v0, 0xBFC26D18 */ uint32_t psx_brA_BFC26CFC = cpu->gpr[3]; uint32_t psx_brB_BFC26CFC = cpu->gpr[2]; - int psx_taken_BFC26CFC = (psx_brA_BFC26CFC == psx_brB_BFC26CFC); + psx_taken_BFC26CFC = (psx_brA_BFC26CFC == psx_brB_BFC26CFC); /* 0xBFC26D00: 26100001 addiu $s0, $s0, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); if (psx_taken_BFC26CFC) goto label_BFC26D18; @@ -124709,7 +128336,7 @@ label_BFC26D18: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (12920)); /* 0xBFC26D20: 1641FFF3 bne $s2, $at, 0xBFC26CF0 */ uint32_t psx_brA_BFC26D20 = cpu->gpr[18]; uint32_t psx_brB_BFC26D20 = cpu->gpr[1]; - int psx_taken_BFC26D20 = (psx_brA_BFC26D20 != psx_brB_BFC26D20); + psx_taken_BFC26D20 = (psx_brA_BFC26D20 != psx_brB_BFC26D20); /* 0xBFC26D24: 00000000 nop */ /* nop */ if (psx_taken_BFC26D20) goto label_BFC26CF0; @@ -124746,7 +128373,7 @@ label_BFC26D38: g_debug_last_store_pc = 0xBFC26D44u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-42)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC26D48: 1443FFFB bne $v0, $v1, 0xBFC26D38 */ uint32_t psx_brA_BFC26D48 = cpu->gpr[2]; uint32_t psx_brB_BFC26D48 = cpu->gpr[3]; - int psx_taken_BFC26D48 = (psx_brA_BFC26D48 != psx_brB_BFC26D48); + psx_taken_BFC26D48 = (psx_brA_BFC26D48 != psx_brB_BFC26D48); /* 0xBFC26D4C: A040FFD7 sb $zero, -41($v0) */ g_debug_last_store_pc = 0xBFC26D4Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-41)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC26D48) goto label_BFC26D38; @@ -124769,7 +128396,7 @@ label_BFC26D5C: psx_check_interrupts(cpu); /* 0xBFC26D5C: 04410027 bgez $v0, 0xBFC26DFC */ uint32_t psx_brA_BFC26D5C = cpu->gpr[2]; - int psx_taken_BFC26D5C = ((int32_t)psx_brA_BFC26D5C >= 0); + psx_taken_BFC26D5C = ((int32_t)psx_brA_BFC26D5C >= 0); /* 0xBFC26D60: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC26D5C) goto label_BFC26DFC; @@ -124786,7 +128413,7 @@ label_BFC26D64: cpu->gpr[2] = cpu->gpr[2] & 0x80u; /* 0xBFC26D70: 1040000B beq $v0, $zero, 0xBFC26DA0 */ uint32_t psx_brA_BFC26D70 = cpu->gpr[2]; uint32_t psx_brB_BFC26D70 = cpu->gpr[0]; - int psx_taken_BFC26D70 = (psx_brA_BFC26D70 == psx_brB_BFC26D70); + psx_taken_BFC26D70 = (psx_brA_BFC26D70 == psx_brB_BFC26D70); /* 0xBFC26D74: 00000000 nop */ /* nop */ if (psx_taken_BFC26D70) goto label_BFC26DA0; @@ -124803,7 +128430,7 @@ label_BFC26D78: cpu->gpr[24] = cpu->gpr[15] & 0x80u; /* 0xBFC26D84: 13000006 beq $t8, $zero, 0xBFC26DA0 */ uint32_t psx_brA_BFC26D84 = cpu->gpr[24]; uint32_t psx_brB_BFC26D84 = cpu->gpr[0]; - int psx_taken_BFC26D84 = (psx_brA_BFC26D84 == psx_brB_BFC26D84); + psx_taken_BFC26D84 = (psx_brA_BFC26D84 == psx_brB_BFC26D84); /* 0xBFC26D88: 00000000 nop */ /* nop */ if (psx_taken_BFC26D84) goto label_BFC26DA0; @@ -124826,7 +128453,7 @@ label_BFC26D98: psx_check_interrupts(cpu); /* 0xBFC26D98: 1000000C beq $zero, $zero, 0xBFC26DCC */ uint32_t psx_brA_BFC26D98 = cpu->gpr[0]; uint32_t psx_brB_BFC26D98 = cpu->gpr[0]; - int psx_taken_BFC26D98 = (psx_brA_BFC26D98 == psx_brB_BFC26D98); + psx_taken_BFC26D98 = (psx_brA_BFC26D98 == psx_brB_BFC26D98); /* 0xBFC26D9C: 93A90048 lbu $t1, 72($sp) */ cpu->gpr[9] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (72))); if (psx_taken_BFC26D98) goto label_BFC26DCC; @@ -124837,7 +128464,7 @@ label_BFC26DA0: psx_check_interrupts(cpu); /* 0xBFC26DA0: 1040000A beq $v0, $zero, 0xBFC26DCC */ uint32_t psx_brA_BFC26DA0 = cpu->gpr[2]; uint32_t psx_brB_BFC26DA0 = cpu->gpr[0]; - int psx_taken_BFC26DA0 = (psx_brA_BFC26DA0 == psx_brB_BFC26DA0); + psx_taken_BFC26DA0 = (psx_brA_BFC26DA0 == psx_brB_BFC26DA0); /* 0xBFC26DA4: 93A90048 lbu $t1, 72($sp) */ cpu->gpr[9] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (72))); if (psx_taken_BFC26DA0) goto label_BFC26DCC; @@ -124854,7 +128481,7 @@ label_BFC26DA8: cpu->gpr[8] = cpu->gpr[25] & 0x10u; /* 0xBFC26DB4: 11000005 beq $t0, $zero, 0xBFC26DCC */ uint32_t psx_brA_BFC26DB4 = cpu->gpr[8]; uint32_t psx_brB_BFC26DB4 = cpu->gpr[0]; - int psx_taken_BFC26DB4 = (psx_brA_BFC26DB4 == psx_brB_BFC26DB4); + psx_taken_BFC26DB4 = (psx_brA_BFC26DB4 == psx_brB_BFC26DB4); /* 0xBFC26DB8: 93A90048 lbu $t1, 72($sp) */ cpu->gpr[9] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (72))); if (psx_taken_BFC26DB4) goto label_BFC26DCC; @@ -124888,7 +128515,7 @@ label_BFC26DCC: cpu->gpr[10] = cpu->gpr[9] & 0x10u; /* 0xBFC26DD4: 11400005 beq $t2, $zero, 0xBFC26DEC */ uint32_t psx_brA_BFC26DD4 = cpu->gpr[10]; uint32_t psx_brB_BFC26DD4 = cpu->gpr[0]; - int psx_taken_BFC26DD4 = (psx_brA_BFC26DD4 == psx_brB_BFC26DD4); + psx_taken_BFC26DD4 = (psx_brA_BFC26DD4 == psx_brB_BFC26DD4); /* 0xBFC26DD8: 02001021 addu $v0, $s0, $zero */ cpu->gpr[2] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC26DD4) goto label_BFC26DEC; @@ -124922,7 +128549,7 @@ label_BFC26DEC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26DF0u); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC26DF4: 10000018 beq $zero, $zero, 0xBFC26E58 */ uint32_t psx_brA_BFC26DF4 = cpu->gpr[0]; uint32_t psx_brB_BFC26DF4 = cpu->gpr[0]; - int psx_taken_BFC26DF4 = (psx_brA_BFC26DF4 == psx_brB_BFC26DF4); + psx_taken_BFC26DF4 = (psx_brA_BFC26DF4 == psx_brB_BFC26DF4); /* 0xBFC26DF8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26DF8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC26DF4) goto label_BFC26E58; @@ -124955,7 +128582,7 @@ label_BFC26DFC: cpu->gpr[1] = 0x80080000u; /* 0xBFC26E28: 10400004 beq $v0, $zero, 0xBFC26E3C */ uint32_t psx_brA_BFC26E28 = cpu->gpr[2]; uint32_t psx_brB_BFC26E28 = cpu->gpr[0]; - int psx_taken_BFC26E28 = (psx_brA_BFC26E28 == psx_brB_BFC26E28); + psx_taken_BFC26E28 = (psx_brA_BFC26E28 == psx_brB_BFC26E28); /* 0xBFC26E2C: A0209EE0 sb $zero, -24864($at) */ g_debug_last_store_pc = 0xBFC26E2Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[1] + (-24864)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC26E28) goto label_BFC26E3C; @@ -124968,7 +128595,7 @@ label_BFC26E30: cpu->gpr[1] = 0x80080000u; /* 0xBFC26E34: 10000004 beq $zero, $zero, 0xBFC26E48 */ uint32_t psx_brA_BFC26E34 = cpu->gpr[0]; uint32_t psx_brB_BFC26E34 = cpu->gpr[0]; - int psx_taken_BFC26E34 = (psx_brA_BFC26E34 == psx_brB_BFC26E34); + psx_taken_BFC26E34 = (psx_brA_BFC26E34 == psx_brB_BFC26E34); /* 0xBFC26E38: A0229EDC sb $v0, -24868($at) */ g_debug_last_store_pc = 0xBFC26E38u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[1] + (-24868)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC26E34) goto label_BFC26E48; @@ -125027,6 +128654,11 @@ void func_1FC26E64(CPUState* cpu) { default: break; } } + int psx_taken_BFC26E88 = 0; + int psx_taken_BFC26E90 = 0; + int psx_taken_BFC26EA4 = 0; + int psx_taken_BFC26EC0 = 0; + int psx_taken_BFC26ED8 = 0; label_BFC26E64: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -125058,7 +128690,7 @@ label_BFC26E88: psx_check_interrupts(cpu); /* 0xBFC26E88: 10400004 beq $v0, $zero, 0xBFC26E9C */ uint32_t psx_brA_BFC26E88 = cpu->gpr[2]; uint32_t psx_brB_BFC26E88 = cpu->gpr[0]; - int psx_taken_BFC26E88 = (psx_brA_BFC26E88 == psx_brB_BFC26E88); + psx_taken_BFC26E88 = (psx_brA_BFC26E88 == psx_brB_BFC26E88); /* 0xBFC26E8C: 02002021 addu $a0, $s0, $zero */ cpu->gpr[4] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC26E88) goto label_BFC26E9C; @@ -125069,7 +128701,7 @@ label_BFC26E90: psx_check_interrupts(cpu); /* 0xBFC26E90: 10000007 beq $zero, $zero, 0xBFC26EB0 */ uint32_t psx_brA_BFC26E90 = cpu->gpr[0]; uint32_t psx_brB_BFC26E90 = cpu->gpr[0]; - int psx_taken_BFC26E90 = (psx_brA_BFC26E90 == psx_brB_BFC26E90); + psx_taken_BFC26E90 = (psx_brA_BFC26E90 == psx_brB_BFC26E90); /* 0xBFC26E94: 24100001 addiu $s0, $zero, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC26E90) goto label_BFC26EB0; @@ -125097,7 +128729,7 @@ label_BFC26EA4: psx_check_interrupts(cpu); /* 0xBFC26EA4: 1040FFFD beq $v0, $zero, 0xBFC26E9C */ uint32_t psx_brA_BFC26EA4 = cpu->gpr[2]; uint32_t psx_brB_BFC26EA4 = cpu->gpr[0]; - int psx_taken_BFC26EA4 = (psx_brA_BFC26EA4 == psx_brB_BFC26EA4); + psx_taken_BFC26EA4 = (psx_brA_BFC26EA4 == psx_brB_BFC26EA4); /* 0xBFC26EA8: 02002021 addu $a0, $s0, $zero */ cpu->gpr[4] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC26EA4) goto label_BFC26E9C; @@ -125129,7 +128761,7 @@ label_BFC26EC0: psx_check_interrupts(cpu); /* 0xBFC26EC0: 10500009 beq $v0, $s0, 0xBFC26EE8 */ uint32_t psx_brA_BFC26EC0 = cpu->gpr[2]; uint32_t psx_brB_BFC26EC0 = cpu->gpr[16]; - int psx_taken_BFC26EC0 = (psx_brA_BFC26EC0 == psx_brB_BFC26EC0); + psx_taken_BFC26EC0 = (psx_brA_BFC26EC0 == psx_brB_BFC26EC0); /* 0xBFC26EC4: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC26EC4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC26EC0) goto label_BFC26EE8; @@ -125154,7 +128786,7 @@ label_BFC26ED8: psx_check_interrupts(cpu); /* 0xBFC26ED8: 1450FFF5 bne $v0, $s0, 0xBFC26EB0 */ uint32_t psx_brA_BFC26ED8 = cpu->gpr[2]; uint32_t psx_brB_BFC26ED8 = cpu->gpr[16]; - int psx_taken_BFC26ED8 = (psx_brA_BFC26ED8 != psx_brB_BFC26ED8); + psx_taken_BFC26ED8 = (psx_brA_BFC26ED8 != psx_brB_BFC26ED8); /* 0xBFC26EDC: 00000000 nop */ /* nop */ if (psx_taken_BFC26ED8) goto label_BFC26EB0; @@ -125200,6 +128832,25 @@ void func_1FC26EF8(CPUState* cpu) { default: break; } } + int psx_taken_BFC27024 = 0; + int psx_taken_BFC2702C = 0; + int psx_taken_BFC2703C = 0; + int psx_taken_BFC27058 = 0; + int psx_taken_BFC27064 = 0; + int psx_taken_BFC2707C = 0; + int psx_taken_BFC27084 = 0; + int psx_taken_BFC270A4 = 0; + int psx_taken_BFC270B0 = 0; + int psx_taken_BFC270C8 = 0; + int psx_taken_BFC270D0 = 0; + int psx_taken_BFC270E8 = 0; + int psx_taken_BFC270F4 = 0; + int psx_taken_BFC270FC = 0; + int psx_taken_BFC27114 = 0; + int psx_taken_BFC27124 = 0; + int psx_taken_BFC2713C = 0; + int psx_taken_BFC2714C = 0; + int psx_taken_BFC27154 = 0; label_BFC26EF8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(75u); @@ -125363,7 +129014,7 @@ label_BFC27024: psx_check_interrupts(cpu); /* 0xBFC27024: 10400003 beq $v0, $zero, 0xBFC27034 */ uint32_t psx_brA_BFC27024 = cpu->gpr[2]; uint32_t psx_brB_BFC27024 = cpu->gpr[0]; - int psx_taken_BFC27024 = (psx_brA_BFC27024 == psx_brB_BFC27024); + psx_taken_BFC27024 = (psx_brA_BFC27024 == psx_brB_BFC27024); /* 0xBFC27028: 00000000 nop */ /* nop */ if (psx_taken_BFC27024) goto label_BFC27034; @@ -125374,7 +129025,7 @@ label_BFC2702C: psx_check_interrupts(cpu); /* 0xBFC2702C: 10000006 beq $zero, $zero, 0xBFC27048 */ uint32_t psx_brA_BFC2702C = cpu->gpr[0]; uint32_t psx_brB_BFC2702C = cpu->gpr[0]; - int psx_taken_BFC2702C = (psx_brA_BFC2702C == psx_brB_BFC2702C); + psx_taken_BFC2702C = (psx_brA_BFC2702C == psx_brB_BFC2702C); /* 0xBFC27030: 24120001 addiu $s2, $zero, 1 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC2702C) goto label_BFC27048; @@ -125395,7 +129046,7 @@ label_BFC2703C: psx_check_interrupts(cpu); /* 0xBFC2703C: 1040FFFD beq $v0, $zero, 0xBFC27034 */ uint32_t psx_brA_BFC2703C = cpu->gpr[2]; uint32_t psx_brB_BFC2703C = cpu->gpr[0]; - int psx_taken_BFC2703C = (psx_brA_BFC2703C == psx_brB_BFC2703C); + psx_taken_BFC2703C = (psx_brA_BFC2703C == psx_brB_BFC2703C); /* 0xBFC27040: 00000000 nop */ /* nop */ if (psx_taken_BFC2703C) goto label_BFC27034; @@ -125427,7 +129078,7 @@ label_BFC27058: psx_check_interrupts(cpu); /* 0xBFC27058: 14520004 bne $v0, $s2, 0xBFC2706C */ uint32_t psx_brA_BFC27058 = cpu->gpr[2]; uint32_t psx_brB_BFC27058 = cpu->gpr[18]; - int psx_taken_BFC27058 = (psx_brA_BFC27058 != psx_brB_BFC27058); + psx_taken_BFC27058 = (psx_brA_BFC27058 != psx_brB_BFC27058); /* 0xBFC2705C: 00000000 nop */ /* nop */ if (psx_taken_BFC27058) goto label_BFC2706C; @@ -125440,7 +129091,7 @@ label_BFC27060: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (48)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27060u); return; } g_debug_last_store_pc = 0xBFC27060u; cpu->write_word(psx_addr, cpu->gpr[17]); } /* 0xBFC27064: 10000009 beq $zero, $zero, 0xBFC2708C */ uint32_t psx_brA_BFC27064 = cpu->gpr[0]; uint32_t psx_brB_BFC27064 = cpu->gpr[0]; - int psx_taken_BFC27064 = (psx_brA_BFC27064 == psx_brB_BFC27064); + psx_taken_BFC27064 = (psx_brA_BFC27064 == psx_brB_BFC27064); /* 0xBFC27068: AFB3002C sw $s3, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27068u); return; } g_debug_last_store_pc = 0xBFC27068u; cpu->write_word(psx_addr, cpu->gpr[19]); } if (psx_taken_BFC27064) goto label_BFC2708C; @@ -125465,7 +129116,7 @@ label_BFC2707C: psx_check_interrupts(cpu); /* 0xBFC2707C: 1452FFF2 bne $v0, $s2, 0xBFC27048 */ uint32_t psx_brA_BFC2707C = cpu->gpr[2]; uint32_t psx_brB_BFC2707C = cpu->gpr[18]; - int psx_taken_BFC2707C = (psx_brA_BFC2707C != psx_brB_BFC2707C); + psx_taken_BFC2707C = (psx_brA_BFC2707C != psx_brB_BFC2707C); /* 0xBFC27080: 00000000 nop */ /* nop */ if (psx_taken_BFC2707C) goto label_BFC27048; @@ -125476,7 +129127,7 @@ label_BFC27084: psx_check_interrupts(cpu); /* 0xBFC27084: 10000039 beq $zero, $zero, 0xBFC2716C */ uint32_t psx_brA_BFC27084 = cpu->gpr[0]; uint32_t psx_brB_BFC27084 = cpu->gpr[0]; - int psx_taken_BFC27084 = (psx_brA_BFC27084 == psx_brB_BFC27084); + psx_taken_BFC27084 = (psx_brA_BFC27084 == psx_brB_BFC27084); /* 0xBFC27088: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC27084) goto label_BFC2716C; @@ -125505,7 +129156,7 @@ label_BFC270A4: psx_check_interrupts(cpu); /* 0xBFC270A4: 1440000A bne $v0, $zero, 0xBFC270D0 */ uint32_t psx_brA_BFC270A4 = cpu->gpr[2]; uint32_t psx_brB_BFC270A4 = cpu->gpr[0]; - int psx_taken_BFC270A4 = (psx_brA_BFC270A4 != psx_brB_BFC270A4); + psx_taken_BFC270A4 = (psx_brA_BFC270A4 != psx_brB_BFC270A4); /* 0xBFC270A8: 00409821 addu $s3, $v0, $zero */ cpu->gpr[19] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC270A4) goto label_BFC270D0; @@ -125518,7 +129169,7 @@ label_BFC270AC: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (-1)); /* 0xBFC270B0: 1A200007 blez $s1, 0xBFC270D0 */ uint32_t psx_brA_BFC270B0 = cpu->gpr[17]; - int psx_taken_BFC270B0 = ((int32_t)psx_brA_BFC270B0 <= 0); + psx_taken_BFC270B0 = ((int32_t)psx_brA_BFC270B0 <= 0); /* 0xBFC270B4: 00000000 nop */ /* nop */ if (psx_taken_BFC270B0) goto label_BFC270D0; @@ -125543,7 +129194,7 @@ label_BFC270C8: psx_check_interrupts(cpu); /* 0xBFC270C8: 1040FFF8 beq $v0, $zero, 0xBFC270AC */ uint32_t psx_brA_BFC270C8 = cpu->gpr[2]; uint32_t psx_brB_BFC270C8 = cpu->gpr[0]; - int psx_taken_BFC270C8 = (psx_brA_BFC270C8 == psx_brB_BFC270C8); + psx_taken_BFC270C8 = (psx_brA_BFC270C8 == psx_brB_BFC270C8); /* 0xBFC270CC: 00409821 addu $s3, $v0, $zero */ cpu->gpr[19] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC270C8) goto label_BFC270AC; @@ -125554,7 +129205,7 @@ label_BFC270D0: psx_check_interrupts(cpu); /* 0xBFC270D0: 1A200022 blez $s1, 0xBFC2715C */ uint32_t psx_brA_BFC270D0 = cpu->gpr[17]; - int psx_taken_BFC270D0 = ((int32_t)psx_brA_BFC270D0 <= 0); + psx_taken_BFC270D0 = ((int32_t)psx_brA_BFC270D0 <= 0); /* 0xBFC270D4: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC270D0) goto label_BFC2715C; @@ -125579,7 +129230,7 @@ label_BFC270E8: psx_check_interrupts(cpu); /* 0xBFC270E8: 14520006 bne $v0, $s2, 0xBFC27104 */ uint32_t psx_brA_BFC270E8 = cpu->gpr[2]; uint32_t psx_brB_BFC270E8 = cpu->gpr[18]; - int psx_taken_BFC270E8 = (psx_brA_BFC270E8 != psx_brB_BFC270E8); + psx_taken_BFC270E8 = (psx_brA_BFC270E8 != psx_brB_BFC270E8); /* 0xBFC270EC: 00000000 nop */ /* nop */ if (psx_taken_BFC270E8) goto label_BFC27104; @@ -125592,7 +129243,7 @@ label_BFC270F0: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC270F4: 1A000003 blez $s0, 0xBFC27104 */ uint32_t psx_brA_BFC270F4 = cpu->gpr[16]; - int psx_taken_BFC270F4 = ((int32_t)psx_brA_BFC270F4 <= 0); + psx_taken_BFC270F4 = ((int32_t)psx_brA_BFC270F4 <= 0); /* 0xBFC270F8: 00000000 nop */ /* nop */ if (psx_taken_BFC270F4) goto label_BFC27104; @@ -125603,7 +129254,7 @@ label_BFC270FC: psx_check_interrupts(cpu); /* 0xBFC270FC: 10000017 beq $zero, $zero, 0xBFC2715C */ uint32_t psx_brA_BFC270FC = cpu->gpr[0]; uint32_t psx_brB_BFC270FC = cpu->gpr[0]; - int psx_taken_BFC270FC = (psx_brA_BFC270FC == psx_brB_BFC270FC); + psx_taken_BFC270FC = (psx_brA_BFC270FC == psx_brB_BFC270FC); /* 0xBFC27100: 02809821 addu $s3, $s4, $zero */ cpu->gpr[19] = cpu->gpr[20] + cpu->gpr[0]; if (psx_taken_BFC270FC) goto label_BFC2715C; @@ -125628,7 +129279,7 @@ label_BFC27114: psx_check_interrupts(cpu); /* 0xBFC27114: 14520005 bne $v0, $s2, 0xBFC2712C */ uint32_t psx_brA_BFC27114 = cpu->gpr[2]; uint32_t psx_brB_BFC27114 = cpu->gpr[18]; - int psx_taken_BFC27114 = (psx_brA_BFC27114 != psx_brB_BFC27114); + psx_taken_BFC27114 = (psx_brA_BFC27114 != psx_brB_BFC27114); /* 0xBFC27118: 00000000 nop */ /* nop */ if (psx_taken_BFC27114) goto label_BFC2712C; @@ -125643,7 +129294,7 @@ label_BFC2711C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27120u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC27124: 10000011 beq $zero, $zero, 0xBFC2716C */ uint32_t psx_brA_BFC27124 = cpu->gpr[0]; uint32_t psx_brB_BFC27124 = cpu->gpr[0]; - int psx_taken_BFC27124 = (psx_brA_BFC27124 == psx_brB_BFC27124); + psx_taken_BFC27124 = (psx_brA_BFC27124 == psx_brB_BFC27124); /* 0xBFC27128: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC27124) goto label_BFC2716C; @@ -125668,7 +129319,7 @@ label_BFC2713C: psx_check_interrupts(cpu); /* 0xBFC2713C: 14520005 bne $v0, $s2, 0xBFC27154 */ uint32_t psx_brA_BFC2713C = cpu->gpr[2]; uint32_t psx_brB_BFC2713C = cpu->gpr[18]; - int psx_taken_BFC2713C = (psx_brA_BFC2713C != psx_brB_BFC2713C); + psx_taken_BFC2713C = (psx_brA_BFC2713C != psx_brB_BFC2713C); /* 0xBFC27140: 00000000 nop */ /* nop */ if (psx_taken_BFC2713C) goto label_BFC27154; @@ -125683,7 +129334,7 @@ label_BFC27144: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27148u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC2714C: 10000007 beq $zero, $zero, 0xBFC2716C */ uint32_t psx_brA_BFC2714C = cpu->gpr[0]; uint32_t psx_brB_BFC2714C = cpu->gpr[0]; - int psx_taken_BFC2714C = (psx_brA_BFC2714C == psx_brB_BFC2714C); + psx_taken_BFC2714C = (psx_brA_BFC2714C == psx_brB_BFC2714C); /* 0xBFC27150: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC2714C) goto label_BFC2716C; @@ -125694,7 +129345,7 @@ label_BFC27154: psx_check_interrupts(cpu); /* 0xBFC27154: 1E20FFE0 bgtz $s1, 0xBFC270D8 */ uint32_t psx_brA_BFC27154 = cpu->gpr[17]; - int psx_taken_BFC27154 = ((int32_t)psx_brA_BFC27154 > 0); + psx_taken_BFC27154 = ((int32_t)psx_brA_BFC27154 > 0); /* 0xBFC27158: 00000000 nop */ /* nop */ if (psx_taken_BFC27154) goto label_BFC270D8; @@ -125750,6 +129401,12 @@ void func_1FC27190(CPUState* cpu) { default: break; } } + int psx_taken_BFC27254 = 0; + int psx_taken_BFC27328 = 0; + int psx_taken_BFC27330 = 0; + int psx_taken_BFC27344 = 0; + int psx_taken_BFC27390 = 0; + int psx_taken_BFC273B0 = 0; label_BFC27190: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -125891,7 +129548,7 @@ label_BFC27248: /* nop */ /* 0xBFC27254: 11000018 beq $t0, $zero, 0xBFC272B8 */ uint32_t psx_brA_BFC27254 = cpu->gpr[8]; uint32_t psx_brB_BFC27254 = cpu->gpr[0]; - int psx_taken_BFC27254 = (psx_brA_BFC27254 == psx_brB_BFC27254); + psx_taken_BFC27254 = (psx_brA_BFC27254 == psx_brB_BFC27254); /* 0xBFC27258: 240F00EF addiu $t7, $zero, 239 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (239)); if (psx_taken_BFC27254) goto label_BFC272B8; @@ -126031,7 +129688,7 @@ label_BFC27328: psx_check_interrupts(cpu); /* 0xBFC27328: 12120003 beq $s0, $s2, 0xBFC27338 */ uint32_t psx_brA_BFC27328 = cpu->gpr[16]; uint32_t psx_brB_BFC27328 = cpu->gpr[18]; - int psx_taken_BFC27328 = (psx_brA_BFC27328 == psx_brB_BFC27328); + psx_taken_BFC27328 = (psx_brA_BFC27328 == psx_brB_BFC27328); /* 0xBFC2732C: 00000000 nop */ /* nop */ if (psx_taken_BFC27328) goto label_BFC27338; @@ -126042,7 +129699,7 @@ label_BFC27330: psx_check_interrupts(cpu); /* 0xBFC27330: 16130006 bne $s0, $s3, 0xBFC2734C */ uint32_t psx_brA_BFC27330 = cpu->gpr[16]; uint32_t psx_brB_BFC27330 = cpu->gpr[19]; - int psx_taken_BFC27330 = (psx_brA_BFC27330 != psx_brB_BFC27330); + psx_taken_BFC27330 = (psx_brA_BFC27330 != psx_brB_BFC27330); /* 0xBFC27334: 00000000 nop */ /* nop */ if (psx_taken_BFC27330) goto label_BFC2734C; @@ -126059,7 +129716,7 @@ label_BFC27338: /* nop */ /* 0xBFC27344: 11140011 beq $t0, $s4, 0xBFC2738C */ uint32_t psx_brA_BFC27344 = cpu->gpr[8]; uint32_t psx_brB_BFC27344 = cpu->gpr[20]; - int psx_taken_BFC27344 = (psx_brA_BFC27344 == psx_brB_BFC27344); + psx_taken_BFC27344 = (psx_brA_BFC27344 == psx_brB_BFC27344); /* 0xBFC27348: 00000000 nop */ /* nop */ if (psx_taken_BFC27344) goto label_BFC2738C; @@ -126110,7 +129767,7 @@ label_BFC2738C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC27390: 1615FFE5 bne $s0, $s5, 0xBFC27328 */ uint32_t psx_brA_BFC27390 = cpu->gpr[16]; uint32_t psx_brB_BFC27390 = cpu->gpr[21]; - int psx_taken_BFC27390 = (psx_brA_BFC27390 != psx_brB_BFC27390); + psx_taken_BFC27390 = (psx_brA_BFC27390 != psx_brB_BFC27390); /* 0xBFC27394: 00000000 nop */ /* nop */ if (psx_taken_BFC27390) goto label_BFC27328; @@ -126145,7 +129802,7 @@ label_BFC273A8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[23] < (30) ? 1 : 0); /* 0xBFC273B0: 1420FFCE bne $at, $zero, 0xBFC272EC */ uint32_t psx_brA_BFC273B0 = cpu->gpr[1]; uint32_t psx_brB_BFC273B0 = cpu->gpr[0]; - int psx_taken_BFC273B0 = (psx_brA_BFC273B0 != psx_brB_BFC273B0); + psx_taken_BFC273B0 = (psx_brA_BFC273B0 != psx_brB_BFC273B0); /* 0xBFC273B4: 26D60005 addiu $s6, $s6, 5 */ cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[22] + (5)); if (psx_taken_BFC273B0) goto label_BFC272EC; @@ -126208,6 +129865,29 @@ void func_1FC273E4(CPUState* cpu) { default: break; } } + int psx_taken_BFC27440 = 0; + int psx_taken_BFC2744C = 0; + int psx_taken_BFC274BC = 0; + int psx_taken_BFC274CC = 0; + int psx_taken_BFC274D4 = 0; + int psx_taken_BFC27500 = 0; + int psx_taken_BFC27510 = 0; + int psx_taken_BFC27518 = 0; + int psx_taken_BFC27544 = 0; + int psx_taken_BFC27554 = 0; + int psx_taken_BFC2755C = 0; + int psx_taken_BFC27588 = 0; + int psx_taken_BFC27598 = 0; + int psx_taken_BFC275A0 = 0; + int psx_taken_BFC275C0 = 0; + int psx_taken_BFC275F4 = 0; + int psx_taken_BFC2760C = 0; + int psx_taken_BFC276D0 = 0; + int psx_taken_BFC276F8 = 0; + int psx_taken_BFC2770C = 0; + int psx_taken_BFC27734 = 0; + int psx_taken_BFC277FC = 0; + int psx_taken_BFC27834 = 0; label_BFC273E4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(20u); @@ -126266,7 +129946,7 @@ label_BFC27434: cpu->gpr[18] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC27440: 11C00004 beq $t6, $zero, 0xBFC27454 */ uint32_t psx_brA_BFC27440 = cpu->gpr[14]; uint32_t psx_brB_BFC27440 = cpu->gpr[0]; - int psx_taken_BFC27440 = (psx_brA_BFC27440 == psx_brB_BFC27440); + psx_taken_BFC27440 = (psx_brA_BFC27440 == psx_brB_BFC27440); /* 0xBFC27444: 00000000 nop */ /* nop */ if (psx_taken_BFC27440) goto label_BFC27454; @@ -126279,7 +129959,7 @@ label_BFC27448: cpu->gpr[3] = 0x80060000u; /* 0xBFC2744C: 10000003 beq $zero, $zero, 0xBFC2745C */ uint32_t psx_brA_BFC2744C = cpu->gpr[0]; uint32_t psx_brB_BFC2744C = cpu->gpr[0]; - int psx_taken_BFC2744C = (psx_brA_BFC2744C == psx_brB_BFC2744C); + psx_taken_BFC2744C = (psx_brA_BFC2744C == psx_brB_BFC2744C); /* 0xBFC27450: 24636F60 addiu $v1, $v1, 28512 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (28512)); if (psx_taken_BFC2744C) goto label_BFC2745C; @@ -126371,7 +130051,7 @@ label_BFC274A8: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (328)); /* 0xBFC274BC: 14600002 bne $v1, $zero, 0xBFC274C8 */ uint32_t psx_brA_BFC274BC = cpu->gpr[3]; uint32_t psx_brB_BFC274BC = cpu->gpr[0]; - int psx_taken_BFC274BC = (psx_brA_BFC274BC != psx_brB_BFC274BC); + psx_taken_BFC274BC = (psx_brA_BFC274BC != psx_brB_BFC274BC); /* 0xBFC274C0: 00000000 nop */ /* nop */ if (psx_taken_BFC274BC) goto label_BFC274C8; @@ -126391,7 +130071,7 @@ label_BFC274C8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC274CC: 14610004 bne $v1, $at, 0xBFC274E0 */ uint32_t psx_brA_BFC274CC = cpu->gpr[3]; uint32_t psx_brB_BFC274CC = cpu->gpr[1]; - int psx_taken_BFC274CC = (psx_brA_BFC274CC != psx_brB_BFC274CC); + psx_taken_BFC274CC = (psx_brA_BFC274CC != psx_brB_BFC274CC); /* 0xBFC274D0: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC274CC) goto label_BFC274E0; @@ -126402,7 +130082,7 @@ label_BFC274D4: psx_check_interrupts(cpu); /* 0xBFC274D4: 15E10002 bne $t7, $at, 0xBFC274E0 */ uint32_t psx_brA_BFC274D4 = cpu->gpr[15]; uint32_t psx_brB_BFC274D4 = cpu->gpr[1]; - int psx_taken_BFC274D4 = (psx_brA_BFC274D4 != psx_brB_BFC274D4); + psx_taken_BFC274D4 = (psx_brA_BFC274D4 != psx_brB_BFC274D4); /* 0xBFC274D8: 00000000 nop */ /* nop */ if (psx_taken_BFC274D4) goto label_BFC274E0; @@ -126442,7 +130122,7 @@ label_BFC274EC: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (200)); /* 0xBFC27500: 14600002 bne $v1, $zero, 0xBFC2750C */ uint32_t psx_brA_BFC27500 = cpu->gpr[3]; uint32_t psx_brB_BFC27500 = cpu->gpr[0]; - int psx_taken_BFC27500 = (psx_brA_BFC27500 != psx_brB_BFC27500); + psx_taken_BFC27500 = (psx_brA_BFC27500 != psx_brB_BFC27500); /* 0xBFC27504: 00000000 nop */ /* nop */ if (psx_taken_BFC27500) goto label_BFC2750C; @@ -126462,7 +130142,7 @@ label_BFC2750C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC27510: 14610004 bne $v1, $at, 0xBFC27524 */ uint32_t psx_brA_BFC27510 = cpu->gpr[3]; uint32_t psx_brB_BFC27510 = cpu->gpr[1]; - int psx_taken_BFC27510 = (psx_brA_BFC27510 != psx_brB_BFC27510); + psx_taken_BFC27510 = (psx_brA_BFC27510 != psx_brB_BFC27510); /* 0xBFC27514: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC27510) goto label_BFC27524; @@ -126473,7 +130153,7 @@ label_BFC27518: psx_check_interrupts(cpu); /* 0xBFC27518: 17010002 bne $t8, $at, 0xBFC27524 */ uint32_t psx_brA_BFC27518 = cpu->gpr[24]; uint32_t psx_brB_BFC27518 = cpu->gpr[1]; - int psx_taken_BFC27518 = (psx_brA_BFC27518 != psx_brB_BFC27518); + psx_taken_BFC27518 = (psx_brA_BFC27518 != psx_brB_BFC27518); /* 0xBFC2751C: 00000000 nop */ /* nop */ if (psx_taken_BFC27518) goto label_BFC27524; @@ -126513,7 +130193,7 @@ label_BFC27530: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (364)); /* 0xBFC27544: 14600002 bne $v1, $zero, 0xBFC27550 */ uint32_t psx_brA_BFC27544 = cpu->gpr[3]; uint32_t psx_brB_BFC27544 = cpu->gpr[0]; - int psx_taken_BFC27544 = (psx_brA_BFC27544 != psx_brB_BFC27544); + psx_taken_BFC27544 = (psx_brA_BFC27544 != psx_brB_BFC27544); /* 0xBFC27548: 00000000 nop */ /* nop */ if (psx_taken_BFC27544) goto label_BFC27550; @@ -126533,7 +130213,7 @@ label_BFC27550: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC27554: 14610004 bne $v1, $at, 0xBFC27568 */ uint32_t psx_brA_BFC27554 = cpu->gpr[3]; uint32_t psx_brB_BFC27554 = cpu->gpr[1]; - int psx_taken_BFC27554 = (psx_brA_BFC27554 != psx_brB_BFC27554); + psx_taken_BFC27554 = (psx_brA_BFC27554 != psx_brB_BFC27554); /* 0xBFC27558: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC27554) goto label_BFC27568; @@ -126544,7 +130224,7 @@ label_BFC2755C: psx_check_interrupts(cpu); /* 0xBFC2755C: 17210002 bne $t9, $at, 0xBFC27568 */ uint32_t psx_brA_BFC2755C = cpu->gpr[25]; uint32_t psx_brB_BFC2755C = cpu->gpr[1]; - int psx_taken_BFC2755C = (psx_brA_BFC2755C != psx_brB_BFC2755C); + psx_taken_BFC2755C = (psx_brA_BFC2755C != psx_brB_BFC2755C); /* 0xBFC27560: 00000000 nop */ /* nop */ if (psx_taken_BFC2755C) goto label_BFC27568; @@ -126584,7 +130264,7 @@ label_BFC27574: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (20)); /* 0xBFC27588: 14600002 bne $v1, $zero, 0xBFC27594 */ uint32_t psx_brA_BFC27588 = cpu->gpr[3]; uint32_t psx_brB_BFC27588 = cpu->gpr[0]; - int psx_taken_BFC27588 = (psx_brA_BFC27588 != psx_brB_BFC27588); + psx_taken_BFC27588 = (psx_brA_BFC27588 != psx_brB_BFC27588); /* 0xBFC2758C: 00000000 nop */ /* nop */ if (psx_taken_BFC27588) goto label_BFC27594; @@ -126604,7 +130284,7 @@ label_BFC27594: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC27598: 14610004 bne $v1, $at, 0xBFC275AC */ uint32_t psx_brA_BFC27598 = cpu->gpr[3]; uint32_t psx_brB_BFC27598 = cpu->gpr[1]; - int psx_taken_BFC27598 = (psx_brA_BFC27598 != psx_brB_BFC27598); + psx_taken_BFC27598 = (psx_brA_BFC27598 != psx_brB_BFC27598); /* 0xBFC2759C: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC27598) goto label_BFC275AC; @@ -126615,7 +130295,7 @@ label_BFC275A0: psx_check_interrupts(cpu); /* 0xBFC275A0: 15010002 bne $t0, $at, 0xBFC275AC */ uint32_t psx_brA_BFC275A0 = cpu->gpr[8]; uint32_t psx_brB_BFC275A0 = cpu->gpr[1]; - int psx_taken_BFC275A0 = (psx_brA_BFC275A0 != psx_brB_BFC275A0); + psx_taken_BFC275A0 = (psx_brA_BFC275A0 != psx_brB_BFC275A0); /* 0xBFC275A4: 00000000 nop */ /* nop */ if (psx_taken_BFC275A0) goto label_BFC275AC; @@ -126655,7 +130335,7 @@ label_BFC275C0: psx_check_interrupts(cpu); /* 0xBFC275C0: 1840000F blez $v0, 0xBFC27600 */ uint32_t psx_brA_BFC275C0 = cpu->gpr[2]; - int psx_taken_BFC275C0 = ((int32_t)psx_brA_BFC275C0 <= 0); + psx_taken_BFC275C0 = ((int32_t)psx_brA_BFC275C0 <= 0); /* 0xBFC275C4: 03B25821 addu $t3, $sp, $s2 */ cpu->gpr[11] = cpu->gpr[29] + cpu->gpr[18]; if (psx_taken_BFC275C0) goto label_BFC27600; @@ -126699,7 +130379,7 @@ label_BFC275F0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC275F4: 1420FFF7 bne $at, $zero, 0xBFC275D4 */ uint32_t psx_brA_BFC275F4 = cpu->gpr[1]; uint32_t psx_brB_BFC275F4 = cpu->gpr[0]; - int psx_taken_BFC275F4 = (psx_brA_BFC275F4 != psx_brB_BFC275F4); + psx_taken_BFC275F4 = (psx_brA_BFC275F4 != psx_brB_BFC275F4); /* 0xBFC275F8: 00000000 nop */ /* nop */ if (psx_taken_BFC275F4) goto label_BFC275D4; @@ -126723,7 +130403,7 @@ label_BFC27600: /* nop */ /* 0xBFC2760C: 1180007D beq $t4, $zero, 0xBFC27804 */ uint32_t psx_brA_BFC2760C = cpu->gpr[12]; uint32_t psx_brB_BFC2760C = cpu->gpr[0]; - int psx_taken_BFC2760C = (psx_brA_BFC2760C == psx_brB_BFC2760C); + psx_taken_BFC2760C = (psx_brA_BFC2760C == psx_brB_BFC2760C); /* 0xBFC27610: 00000000 nop */ /* nop */ if (psx_taken_BFC2760C) goto label_BFC27804; @@ -126834,7 +130514,7 @@ label_BFC276CC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC276D0: 1441000B bne $v0, $at, 0xBFC27700 */ uint32_t psx_brA_BFC276D0 = cpu->gpr[2]; uint32_t psx_brB_BFC276D0 = cpu->gpr[1]; - int psx_taken_BFC276D0 = (psx_brA_BFC276D0 != psx_brB_BFC276D0); + psx_taken_BFC276D0 = (psx_brA_BFC276D0 != psx_brB_BFC276D0); /* 0xBFC276D4: 00000000 nop */ /* nop */ if (psx_taken_BFC276D0) goto label_BFC27700; @@ -126867,7 +130547,7 @@ label_BFC276F8: psx_check_interrupts(cpu); /* 0xBFC276F8: 10000019 beq $zero, $zero, 0xBFC27760 */ uint32_t psx_brA_BFC276F8 = cpu->gpr[0]; uint32_t psx_brB_BFC276F8 = cpu->gpr[0]; - int psx_taken_BFC276F8 = (psx_brA_BFC276F8 == psx_brB_BFC276F8); + psx_taken_BFC276F8 = (psx_brA_BFC276F8 == psx_brB_BFC276F8); /* 0xBFC276FC: 24090010 addiu $t1, $zero, 16 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); if (psx_taken_BFC276F8) goto label_BFC27760; @@ -126890,7 +130570,7 @@ label_BFC27708: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (6)); /* 0xBFC2770C: 1441000B bne $v0, $at, 0xBFC2773C */ uint32_t psx_brA_BFC2770C = cpu->gpr[2]; uint32_t psx_brB_BFC2770C = cpu->gpr[1]; - int psx_taken_BFC2770C = (psx_brA_BFC2770C != psx_brB_BFC2770C); + psx_taken_BFC2770C = (psx_brA_BFC2770C != psx_brB_BFC2770C); /* 0xBFC27710: 00000000 nop */ /* nop */ if (psx_taken_BFC2770C) goto label_BFC2773C; @@ -126923,7 +130603,7 @@ label_BFC27734: psx_check_interrupts(cpu); /* 0xBFC27734: 1000000A beq $zero, $zero, 0xBFC27760 */ uint32_t psx_brA_BFC27734 = cpu->gpr[0]; uint32_t psx_brB_BFC27734 = cpu->gpr[0]; - int psx_taken_BFC27734 = (psx_brA_BFC27734 == psx_brB_BFC27734); + psx_taken_BFC27734 = (psx_brA_BFC27734 == psx_brB_BFC27734); /* 0xBFC27738: 24090010 addiu $t1, $zero, 16 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); if (psx_taken_BFC27734) goto label_BFC27760; @@ -127071,7 +130751,7 @@ label_BFC277FC: psx_check_interrupts(cpu); /* 0xBFC277FC: 1000000A beq $zero, $zero, 0xBFC27828 */ uint32_t psx_brA_BFC277FC = cpu->gpr[0]; uint32_t psx_brB_BFC277FC = cpu->gpr[0]; - int psx_taken_BFC277FC = (psx_brA_BFC277FC == psx_brB_BFC277FC); + psx_taken_BFC277FC = (psx_brA_BFC277FC == psx_brB_BFC277FC); /* 0xBFC27800: 26940001 addiu $s4, $s4, 1 */ cpu->gpr[20] = (uint32_t)((int32_t)cpu->gpr[20] + (1)); if (psx_taken_BFC277FC) goto label_BFC27828; @@ -127117,7 +130797,7 @@ label_BFC27828: cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[22] + (1344)); /* 0xBFC27834: 1420FEFF bne $at, $zero, 0xBFC27434 */ uint32_t psx_brA_BFC27834 = cpu->gpr[1]; uint32_t psx_brB_BFC27834 = cpu->gpr[0]; - int psx_taken_BFC27834 = (psx_brA_BFC27834 != psx_brB_BFC27834); + psx_taken_BFC27834 = (psx_brA_BFC27834 != psx_brB_BFC27834); /* 0xBFC27838: 26F70540 addiu $s7, $s7, 1344 */ cpu->gpr[23] = (uint32_t)((int32_t)cpu->gpr[23] + (1344)); if (psx_taken_BFC27834) goto label_BFC27434; @@ -127163,6 +130843,7 @@ void func_1FC27868(CPUState* cpu) { default: break; } } + int psx_taken_BFC27888 = 0; label_BFC27868: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -127186,7 +130867,7 @@ label_BFC27868: /* nop */ /* 0xBFC27888: 11C0001B beq $t6, $zero, 0xBFC278F8 */ uint32_t psx_brA_BFC27888 = cpu->gpr[14]; uint32_t psx_brB_BFC27888 = cpu->gpr[0]; - int psx_taken_BFC27888 = (psx_brA_BFC27888 == psx_brB_BFC27888); + psx_taken_BFC27888 = (psx_brA_BFC27888 == psx_brB_BFC27888); /* 0xBFC2788C: 8FBF003C lw $ra, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2788Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC27888) goto label_BFC278F8; @@ -127296,6 +130977,12 @@ void func_1FC27910(CPUState* cpu) { default: break; } } + int psx_taken_BFC2794C = 0; + int psx_taken_BFC2796C = 0; + int psx_taken_BFC279D0 = 0; + int psx_taken_BFC279E8 = 0; + int psx_taken_BFC279F8 = 0; + int psx_taken_BFC27A0C = 0; label_BFC27910: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -127339,7 +131026,7 @@ label_BFC2792C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (9999)); /* 0xBFC2794C: 11E10032 beq $t7, $at, 0xBFC27A18 */ uint32_t psx_brA_BFC2794C = cpu->gpr[15]; uint32_t psx_brB_BFC2794C = cpu->gpr[1]; - int psx_taken_BFC2794C = (psx_brA_BFC2794C == psx_brB_BFC2794C); + psx_taken_BFC2794C = (psx_brA_BFC2794C == psx_brB_BFC2794C); /* 0xBFC27950: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2794C) goto label_BFC27A18; @@ -127362,7 +131049,7 @@ label_BFC27954: cpu->gpr[1] = (uint32_t)(cpu->gpr[24] < cpu->gpr[3] ? 1 : 0); /* 0xBFC2796C: 1420001A bne $at, $zero, 0xBFC279D8 */ uint32_t psx_brA_BFC2796C = cpu->gpr[1]; uint32_t psx_brB_BFC2796C = cpu->gpr[0]; - int psx_taken_BFC2796C = (psx_brA_BFC2796C != psx_brB_BFC2796C); + psx_taken_BFC2796C = (psx_brA_BFC2796C != psx_brB_BFC2796C); /* 0xBFC27970: 00000000 nop */ /* nop */ if (psx_taken_BFC2796C) goto label_BFC279D8; @@ -127425,7 +131112,7 @@ label_BFC2799C: cpu->gpr[1] = (uint32_t)(cpu->gpr[10] < cpu->gpr[3] ? 1 : 0); /* 0xBFC279D0: 1020FFE8 beq $at, $zero, 0xBFC27974 */ uint32_t psx_brA_BFC279D0 = cpu->gpr[1]; uint32_t psx_brB_BFC279D0 = cpu->gpr[0]; - int psx_taken_BFC279D0 = (psx_brA_BFC279D0 == psx_brB_BFC279D0); + psx_taken_BFC279D0 = (psx_brA_BFC279D0 == psx_brB_BFC279D0); /* 0xBFC279D4: 00000000 nop */ /* nop */ if (psx_taken_BFC279D0) goto label_BFC27974; @@ -127450,7 +131137,7 @@ label_BFC279E0: /* nop */ /* 0xBFC279E8: 11600006 beq $t3, $zero, 0xBFC27A04 */ uint32_t psx_brA_BFC279E8 = cpu->gpr[11]; uint32_t psx_brB_BFC279E8 = cpu->gpr[0]; - int psx_taken_BFC279E8 = (psx_brA_BFC279E8 == psx_brB_BFC279E8); + psx_taken_BFC279E8 = (psx_brA_BFC279E8 == psx_brB_BFC279E8); /* 0xBFC279EC: 240D0059 addiu $t5, $zero, 89 */ cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (89)); if (psx_taken_BFC279E8) goto label_BFC27A04; @@ -127465,7 +131152,7 @@ label_BFC279F0: cpu->gpr[1] = 0x80080000u; /* 0xBFC279F8: 10000004 beq $zero, $zero, 0xBFC27A0C */ uint32_t psx_brA_BFC279F8 = cpu->gpr[0]; uint32_t psx_brB_BFC279F8 = cpu->gpr[0]; - int psx_taken_BFC279F8 = (psx_brA_BFC279F8 == psx_brB_BFC279F8); + psx_taken_BFC279F8 = (psx_brA_BFC279F8 == psx_brB_BFC279F8); /* 0xBFC279FC: AC2C3E74 sw $t4, 15988($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (15988)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC279FCu); return; } g_debug_last_store_pc = 0xBFC279FCu; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC279F8) goto label_BFC27A0C; @@ -127492,7 +131179,7 @@ label_BFC27A0C: psx_check_interrupts(cpu); /* 0xBFC27A0C: 10000002 beq $zero, $zero, 0xBFC27A18 */ uint32_t psx_brA_BFC27A0C = cpu->gpr[0]; uint32_t psx_brB_BFC27A0C = cpu->gpr[0]; - int psx_taken_BFC27A0C = (psx_brA_BFC27A0C == psx_brB_BFC27A0C); + psx_taken_BFC27A0C = (psx_brA_BFC27A0C == psx_brB_BFC27A0C); /* 0xBFC27A10: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC27A0C) goto label_BFC27A18; @@ -127531,6 +131218,10 @@ void func_1FC27A2C(CPUState* cpu) { default: break; } } + int psx_taken_BFC27A5C = 0; + int psx_taken_BFC27A7C = 0; + int psx_taken_BFC27AE0 = 0; + int psx_taken_BFC27B04 = 0; label_BFC27A2C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -127562,7 +131253,7 @@ label_BFC27A2C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (9999)); /* 0xBFC27A5C: 11E1002C beq $t7, $at, 0xBFC27B10 */ uint32_t psx_brA_BFC27A5C = cpu->gpr[15]; uint32_t psx_brB_BFC27A5C = cpu->gpr[1]; - int psx_taken_BFC27A5C = (psx_brA_BFC27A5C == psx_brB_BFC27A5C); + psx_taken_BFC27A5C = (psx_brA_BFC27A5C == psx_brB_BFC27A5C); /* 0xBFC27A60: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC27A5C) goto label_BFC27B10; @@ -127585,7 +131276,7 @@ label_BFC27A64: cpu->gpr[1] = (uint32_t)(cpu->gpr[24] < cpu->gpr[3] ? 1 : 0); /* 0xBFC27A7C: 1420001A bne $at, $zero, 0xBFC27AE8 */ uint32_t psx_brA_BFC27A7C = cpu->gpr[1]; uint32_t psx_brB_BFC27A7C = cpu->gpr[0]; - int psx_taken_BFC27A7C = (psx_brA_BFC27A7C != psx_brB_BFC27A7C); + psx_taken_BFC27A7C = (psx_brA_BFC27A7C != psx_brB_BFC27A7C); /* 0xBFC27A80: 00000000 nop */ /* nop */ if (psx_taken_BFC27A7C) goto label_BFC27AE8; @@ -127648,7 +131339,7 @@ label_BFC27AAC: cpu->gpr[1] = (uint32_t)(cpu->gpr[10] < cpu->gpr[3] ? 1 : 0); /* 0xBFC27AE0: 1020FFE8 beq $at, $zero, 0xBFC27A84 */ uint32_t psx_brA_BFC27AE0 = cpu->gpr[1]; uint32_t psx_brB_BFC27AE0 = cpu->gpr[0]; - int psx_taken_BFC27AE0 = (psx_brA_BFC27AE0 == psx_brB_BFC27AE0); + psx_taken_BFC27AE0 = (psx_brA_BFC27AE0 == psx_brB_BFC27AE0); /* 0xBFC27AE4: 00000000 nop */ /* nop */ if (psx_taken_BFC27AE0) goto label_BFC27A84; @@ -127679,7 +131370,7 @@ label_BFC27AF0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (15988)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27B00u); return; } g_debug_last_store_pc = 0xBFC27B00u; cpu->write_word(psx_addr, cpu->gpr[12]); } /* 0xBFC27B04: 10000002 beq $zero, $zero, 0xBFC27B10 */ uint32_t psx_brA_BFC27B04 = cpu->gpr[0]; uint32_t psx_brB_BFC27B04 = cpu->gpr[0]; - int psx_taken_BFC27B04 = (psx_brA_BFC27B04 == psx_brB_BFC27B04); + psx_taken_BFC27B04 = (psx_brA_BFC27B04 == psx_brB_BFC27B04); /* 0xBFC27B08: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC27B04) goto label_BFC27B10; @@ -127868,6 +131559,10 @@ void func_1FC27BDC(CPUState* cpu) { default: break; } } + int psx_taken_BFC27C0C = 0; + int psx_taken_BFC27C28 = 0; + int psx_taken_BFC27C84 = 0; + int psx_taken_BFC27CA8 = 0; label_BFC27BDC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -127899,7 +131594,7 @@ label_BFC27BDC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (9999)); /* 0xBFC27C0C: 11E10029 beq $t7, $at, 0xBFC27CB4 */ uint32_t psx_brA_BFC27C0C = cpu->gpr[15]; uint32_t psx_brB_BFC27C0C = cpu->gpr[1]; - int psx_taken_BFC27C0C = (psx_brA_BFC27C0C == psx_brB_BFC27C0C); + psx_taken_BFC27C0C = (psx_brA_BFC27C0C == psx_brB_BFC27C0C); /* 0xBFC27C10: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC27C0C) goto label_BFC27CB4; @@ -127920,7 +131615,7 @@ label_BFC27C14: /* nop */ /* 0xBFC27C28: 14780018 bne $v1, $t8, 0xBFC27C8C */ uint32_t psx_brA_BFC27C28 = cpu->gpr[3]; uint32_t psx_brB_BFC27C28 = cpu->gpr[24]; - int psx_taken_BFC27C28 = (psx_brA_BFC27C28 != psx_brB_BFC27C28); + psx_taken_BFC27C28 = (psx_brA_BFC27C28 != psx_brB_BFC27C28); /* 0xBFC27C2C: 00000000 nop */ /* nop */ if (psx_taken_BFC27C28) goto label_BFC27C8C; @@ -127979,7 +131674,7 @@ label_BFC27C58: cpu->gpr[1] = 0x80080000u; /* 0xBFC27C84: 106AFFEA beq $v1, $t2, 0xBFC27C30 */ uint32_t psx_brA_BFC27C84 = cpu->gpr[3]; uint32_t psx_brB_BFC27C84 = cpu->gpr[10]; - int psx_taken_BFC27C84 = (psx_brA_BFC27C84 == psx_brB_BFC27C84); + psx_taken_BFC27C84 = (psx_brA_BFC27C84 == psx_brB_BFC27C84); /* 0xBFC27C88: AC233E84 sw $v1, 16004($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (16004)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27C88u); return; } g_debug_last_store_pc = 0xBFC27C88u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC27C84) goto label_BFC27C30; @@ -128010,7 +131705,7 @@ label_BFC27C94: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (16000)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27CA4u); return; } g_debug_last_store_pc = 0xBFC27CA4u; cpu->write_word(psx_addr, cpu->gpr[12]); } /* 0xBFC27CA8: 10000002 beq $zero, $zero, 0xBFC27CB4 */ uint32_t psx_brA_BFC27CA8 = cpu->gpr[0]; uint32_t psx_brB_BFC27CA8 = cpu->gpr[0]; - int psx_taken_BFC27CA8 = (psx_brA_BFC27CA8 == psx_brB_BFC27CA8); + psx_taken_BFC27CA8 = (psx_brA_BFC27CA8 == psx_brB_BFC27CA8); /* 0xBFC27CAC: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC27CA8) goto label_BFC27CB4; @@ -128129,6 +131824,7 @@ void func_1FC27D2C(CPUState* cpu) { default: break; } } + int psx_taken_BFC27D68 = 0; label_BFC27D2C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -128171,7 +131867,7 @@ label_BFC27D48: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-16)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27D64u); return; } g_debug_last_store_pc = 0xBFC27D64u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[0] & 0xFFFFu)); } /* 0xBFC27D68: 1443FFF7 bne $v0, $v1, 0xBFC27D48 */ uint32_t psx_brA_BFC27D68 = cpu->gpr[2]; uint32_t psx_brB_BFC27D68 = cpu->gpr[3]; - int psx_taken_BFC27D68 = (psx_brA_BFC27D68 != psx_brB_BFC27D68); + psx_taken_BFC27D68 = (psx_brA_BFC27D68 != psx_brB_BFC27D68); /* 0xBFC27D6C: A440FFF2 sh $zero, -14($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-14)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27D6Cu); return; } g_debug_last_store_pc = 0xBFC27D6Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[0] & 0xFFFFu)); } if (psx_taken_BFC27D68) goto label_BFC27D48; @@ -128244,6 +131940,7 @@ void func_1FC27DB0(CPUState* cpu) { default: break; } } + int psx_taken_BFC27DB4 = 0; label_BFC27DB0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -128253,7 +131950,7 @@ label_BFC27DB0: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC27DB4: 10800003 beq $a0, $zero, 0xBFC27DC4 */ uint32_t psx_brA_BFC27DB4 = cpu->gpr[4]; uint32_t psx_brB_BFC27DB4 = cpu->gpr[0]; - int psx_taken_BFC27DB4 = (psx_brA_BFC27DB4 == psx_brB_BFC27DB4); + psx_taken_BFC27DB4 = (psx_brA_BFC27DB4 == psx_brB_BFC27DB4); /* 0xBFC27DB8: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27DB8u); return; } g_debug_last_store_pc = 0xBFC27DB8u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC27DB4) goto label_BFC27DC4; @@ -128509,6 +132206,13 @@ void func_1FC27EB4(CPUState* cpu) { default: break; } } + int psx_taken_BFC27ECC = 0; + int psx_taken_BFC27F08 = 0; + int psx_taken_BFC27F28 = 0; + int psx_taken_BFC27F48 = 0; + int psx_taken_BFC27F68 = 0; + int psx_taken_BFC27F88 = 0; + int psx_taken_BFC27FA8 = 0; label_BFC27EB4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -128528,7 +132232,7 @@ label_BFC27EB4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (4144)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27EC8u); return; } g_debug_last_store_pc = 0xBFC27EC8u; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC27ECC: 1020005F beq $at, $zero, 0xBFC2804C */ uint32_t psx_brA_BFC27ECC = cpu->gpr[1]; uint32_t psx_brB_BFC27ECC = cpu->gpr[0]; - int psx_taken_BFC27ECC = (psx_brA_BFC27ECC == psx_brB_BFC27ECC); + psx_taken_BFC27ECC = (psx_brA_BFC27ECC == psx_brB_BFC27ECC); /* 0xBFC27ED0: AFA0002C sw $zero, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27ED0u); return; } g_debug_last_store_pc = 0xBFC27ED0u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC27ECC) { cpu->pc = 0xBFC2804Cu; return; } @@ -128591,7 +132295,7 @@ label_BFC27F08: psx_check_interrupts(cpu); /* 0xBFC27F08: 10000050 beq $zero, $zero, 0xBFC2804C */ uint32_t psx_brA_BFC27F08 = cpu->gpr[0]; uint32_t psx_brB_BFC27F08 = cpu->gpr[0]; - int psx_taken_BFC27F08 = (psx_brA_BFC27F08 == psx_brB_BFC27F08); + psx_taken_BFC27F08 = (psx_brA_BFC27F08 == psx_brB_BFC27F08); /* 0xBFC27F0C: 00000000 nop */ /* nop */ if (psx_taken_BFC27F08) { cpu->pc = 0xBFC2804Cu; return; } @@ -128626,7 +132330,7 @@ label_BFC27F28: psx_check_interrupts(cpu); /* 0xBFC27F28: 10000048 beq $zero, $zero, 0xBFC2804C */ uint32_t psx_brA_BFC27F28 = cpu->gpr[0]; uint32_t psx_brB_BFC27F28 = cpu->gpr[0]; - int psx_taken_BFC27F28 = (psx_brA_BFC27F28 == psx_brB_BFC27F28); + psx_taken_BFC27F28 = (psx_brA_BFC27F28 == psx_brB_BFC27F28); /* 0xBFC27F2C: 00000000 nop */ /* nop */ if (psx_taken_BFC27F28) { cpu->pc = 0xBFC2804Cu; return; } @@ -128661,7 +132365,7 @@ label_BFC27F48: psx_check_interrupts(cpu); /* 0xBFC27F48: 10000040 beq $zero, $zero, 0xBFC2804C */ uint32_t psx_brA_BFC27F48 = cpu->gpr[0]; uint32_t psx_brB_BFC27F48 = cpu->gpr[0]; - int psx_taken_BFC27F48 = (psx_brA_BFC27F48 == psx_brB_BFC27F48); + psx_taken_BFC27F48 = (psx_brA_BFC27F48 == psx_brB_BFC27F48); /* 0xBFC27F4C: 00000000 nop */ /* nop */ if (psx_taken_BFC27F48) { cpu->pc = 0xBFC2804Cu; return; } @@ -128696,7 +132400,7 @@ label_BFC27F68: psx_check_interrupts(cpu); /* 0xBFC27F68: 10000038 beq $zero, $zero, 0xBFC2804C */ uint32_t psx_brA_BFC27F68 = cpu->gpr[0]; uint32_t psx_brB_BFC27F68 = cpu->gpr[0]; - int psx_taken_BFC27F68 = (psx_brA_BFC27F68 == psx_brB_BFC27F68); + psx_taken_BFC27F68 = (psx_brA_BFC27F68 == psx_brB_BFC27F68); /* 0xBFC27F6C: 00000000 nop */ /* nop */ if (psx_taken_BFC27F68) { cpu->pc = 0xBFC2804Cu; return; } @@ -128731,7 +132435,7 @@ label_BFC27F88: psx_check_interrupts(cpu); /* 0xBFC27F88: 10000030 beq $zero, $zero, 0xBFC2804C */ uint32_t psx_brA_BFC27F88 = cpu->gpr[0]; uint32_t psx_brB_BFC27F88 = cpu->gpr[0]; - int psx_taken_BFC27F88 = (psx_brA_BFC27F88 == psx_brB_BFC27F88); + psx_taken_BFC27F88 = (psx_brA_BFC27F88 == psx_brB_BFC27F88); /* 0xBFC27F8C: 00000000 nop */ /* nop */ if (psx_taken_BFC27F88) { cpu->pc = 0xBFC2804Cu; return; } @@ -128766,7 +132470,7 @@ label_BFC27FA8: psx_check_interrupts(cpu); /* 0xBFC27FA8: 10000028 beq $zero, $zero, 0xBFC2804C */ uint32_t psx_brA_BFC27FA8 = cpu->gpr[0]; uint32_t psx_brB_BFC27FA8 = cpu->gpr[0]; - int psx_taken_BFC27FA8 = (psx_brA_BFC27FA8 == psx_brB_BFC27FA8); + psx_taken_BFC27FA8 = (psx_brA_BFC27FA8 == psx_brB_BFC27FA8); /* 0xBFC27FAC: 00000000 nop */ /* nop */ if (psx_taken_BFC27FA8) { cpu->pc = 0xBFC2804Cu; return; } @@ -128789,6 +132493,9 @@ void func_1FC27FB0(CPUState* cpu) { default: break; } } + int psx_taken_BFC27FD4 = 0; + int psx_taken_BFC2801C = 0; + int psx_taken_BFC28044 = 0; label_BFC27FB0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -128819,7 +132526,7 @@ label_BFC27FC4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-4112)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27FD0u); return; } g_debug_last_store_pc = 0xBFC27FD0u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC27FD4: 1443FFFB bne $v0, $v1, 0xBFC27FC4 */ uint32_t psx_brA_BFC27FD4 = cpu->gpr[2]; uint32_t psx_brB_BFC27FD4 = cpu->gpr[3]; - int psx_taken_BFC27FD4 = (psx_brA_BFC27FD4 != psx_brB_BFC27FD4); + psx_taken_BFC27FD4 = (psx_brA_BFC27FD4 != psx_brB_BFC27FD4); /* 0xBFC27FD8: AC40EFF4 sw $zero, -4108($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-4108)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC27FD8u); return; } g_debug_last_store_pc = 0xBFC27FD8u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC27FD4) goto label_BFC27FC4; @@ -128885,7 +132592,7 @@ label_BFC28018: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (512)); /* 0xBFC2801C: 1611FFF6 bne $s0, $s1, 0xBFC27FF8 */ uint32_t psx_brA_BFC2801C = cpu->gpr[16]; uint32_t psx_brB_BFC2801C = cpu->gpr[17]; - int psx_taken_BFC2801C = (psx_brA_BFC2801C != psx_brB_BFC2801C); + psx_taken_BFC2801C = (psx_brA_BFC2801C != psx_brB_BFC2801C); /* 0xBFC28020: 00000000 nop */ /* nop */ if (psx_taken_BFC2801C) goto label_BFC27FF8; @@ -128924,7 +132631,7 @@ label_BFC2803C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC28040u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } /* 0xBFC28044: 10000001 beq $zero, $zero, 0xBFC2804C */ uint32_t psx_brA_BFC28044 = cpu->gpr[0]; uint32_t psx_brB_BFC28044 = cpu->gpr[0]; - int psx_taken_BFC28044 = (psx_brA_BFC28044 == psx_brB_BFC28044); + psx_taken_BFC28044 = (psx_brA_BFC28044 == psx_brB_BFC28044); /* 0xBFC28048: 00000000 nop */ /* nop */ if (psx_taken_BFC28044) goto label_BFC2804C; @@ -129008,6 +132715,7 @@ void func_1FC282E8(CPUState* cpu) { default: break; } } + int psx_taken_BFC282F4 = 0; label_BFC282E8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -129021,7 +132729,7 @@ label_BFC282E8: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-32)); /* 0xBFC282F4: 15C0001A bne $t6, $zero, 0xBFC28360 */ uint32_t psx_brA_BFC282F4 = cpu->gpr[14]; uint32_t psx_brB_BFC282F4 = cpu->gpr[0]; - int psx_taken_BFC282F4 = (psx_brA_BFC282F4 != psx_brB_BFC282F4); + psx_taken_BFC282F4 = (psx_brA_BFC282F4 != psx_brB_BFC282F4); /* 0xBFC282F8: AFBF001C sw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC282F8u); return; } g_debug_last_store_pc = 0xBFC282F8u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC282F4) goto label_BFC28360; @@ -129125,6 +132833,7 @@ void func_1FC28370(CPUState* cpu) { default: break; } } + int psx_taken_BFC28380 = 0; label_BFC28370: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -129140,7 +132849,7 @@ label_BFC28370: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC28380: 15C10017 bne $t6, $at, 0xBFC283E0 */ uint32_t psx_brA_BFC28380 = cpu->gpr[14]; uint32_t psx_brB_BFC28380 = cpu->gpr[1]; - int psx_taken_BFC28380 = (psx_brA_BFC28380 != psx_brB_BFC28380); + psx_taken_BFC28380 = (psx_brA_BFC28380 != psx_brB_BFC28380); /* 0xBFC28384: AFBF001C sw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC28384u); return; } g_debug_last_store_pc = 0xBFC28384u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC28380) goto label_BFC283E0; @@ -129228,6 +132937,12 @@ label_BFC283E0: void func_1FC283F0(CPUState* cpu) { debug_server_log_call_entry(0x1FC283F0u); + int psx_taken_BFC283F0 = 0; + int psx_taken_BFC28410 = 0; + int psx_taken_BFC28418 = 0; + int psx_taken_BFC2843C = 0; + int psx_taken_BFC28454 = 0; + int psx_taken_BFC28478 = 0; label_BFC283F0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -129235,7 +132950,7 @@ label_BFC283F0: psx_check_interrupts(cpu); /* 0xBFC283F0: 10800023 beq $a0, $zero, 0xBFC28480 */ uint32_t psx_brA_BFC283F0 = cpu->gpr[4]; uint32_t psx_brB_BFC283F0 = cpu->gpr[0]; - int psx_taken_BFC283F0 = (psx_brA_BFC283F0 == psx_brB_BFC283F0); + psx_taken_BFC283F0 = (psx_brA_BFC283F0 == psx_brB_BFC283F0); /* 0xBFC283F4: 00000000 nop */ /* nop */ if (psx_taken_BFC283F0) goto label_BFC28480; @@ -129263,7 +132978,7 @@ label_BFC2840C: /* nop */ /* 0xBFC28410: 14440004 bne $v0, $a0, 0xBFC28424 */ uint32_t psx_brA_BFC28410 = cpu->gpr[2]; uint32_t psx_brB_BFC28410 = cpu->gpr[4]; - int psx_taken_BFC28410 = (psx_brA_BFC28410 != psx_brB_BFC28410); + psx_taken_BFC28410 = (psx_brA_BFC28410 != psx_brB_BFC28410); /* 0xBFC28414: 00027080 sll $t6, $v0, 2 */ cpu->gpr[14] = cpu->gpr[2] << 2u; if (psx_taken_BFC28410) goto label_BFC28424; @@ -129274,7 +132989,7 @@ label_BFC28418: psx_check_interrupts(cpu); /* 0xBFC28418: 1000000A beq $zero, $zero, 0xBFC28444 */ uint32_t psx_brA_BFC28418 = cpu->gpr[0]; uint32_t psx_brB_BFC28418 = cpu->gpr[0]; - int psx_taken_BFC28418 = (psx_brA_BFC28418 == psx_brB_BFC28418); + psx_taken_BFC28418 = (psx_brA_BFC28418 == psx_brB_BFC28418); /* 0xBFC2841C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC28418) goto label_BFC28444; @@ -129304,7 +133019,7 @@ label_BFC28424: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-8)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC28438u); return; } g_debug_last_store_pc = 0xBFC28438u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC2843C: 1000FFF3 beq $zero, $zero, 0xBFC2840C */ uint32_t psx_brA_BFC2843C = cpu->gpr[0]; uint32_t psx_brB_BFC2843C = cpu->gpr[0]; - int psx_taken_BFC2843C = (psx_brA_BFC2843C == psx_brB_BFC2843C); + psx_taken_BFC2843C = (psx_brA_BFC2843C == psx_brB_BFC2843C); /* 0xBFC28440: 8C620000 lw $v0, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC28440u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC2843C) goto label_BFC2840C; @@ -129328,7 +133043,7 @@ label_BFC28450: /* nop */ /* 0xBFC28454: 1044000A beq $v0, $a0, 0xBFC28480 */ uint32_t psx_brA_BFC28454 = cpu->gpr[2]; uint32_t psx_brB_BFC28454 = cpu->gpr[4]; - int psx_taken_BFC28454 = (psx_brA_BFC28454 == psx_brB_BFC28454); + psx_taken_BFC28454 = (psx_brA_BFC28454 == psx_brB_BFC28454); /* 0xBFC28458: 00000000 nop */ /* nop */ if (psx_taken_BFC28454) goto label_BFC28480; @@ -129353,7 +133068,7 @@ label_BFC2845C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-8)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC28474u); return; } g_debug_last_store_pc = 0xBFC28474u; cpu->write_word(psx_addr, cpu->gpr[25]); } /* 0xBFC28478: 1000FFF5 beq $zero, $zero, 0xBFC28450 */ uint32_t psx_brA_BFC28478 = cpu->gpr[0]; uint32_t psx_brB_BFC28478 = cpu->gpr[0]; - int psx_taken_BFC28478 = (psx_brA_BFC28478 == psx_brB_BFC28478); + psx_taken_BFC28478 = (psx_brA_BFC28478 == psx_brB_BFC28478); /* 0xBFC2847C: 8C620000 lw $v0, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2847Cu); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC28478) goto label_BFC28450; @@ -129379,6 +133094,10 @@ void func_1FC28490(CPUState* cpu) { default: break; } } + int psx_taken_BFC284AC = 0; + int psx_taken_BFC284B8 = 0; + int psx_taken_BFC284C8 = 0; + int psx_taken_BFC284D0 = 0; label_BFC28490: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -129406,7 +133125,7 @@ label_BFC284AC: psx_check_interrupts(cpu); /* 0xBFC284AC: 1440000B bne $v0, $zero, 0xBFC284DC */ uint32_t psx_brA_BFC284AC = cpu->gpr[2]; uint32_t psx_brB_BFC284AC = cpu->gpr[0]; - int psx_taken_BFC284AC = (psx_brA_BFC284AC != psx_brB_BFC284AC); + psx_taken_BFC284AC = (psx_brA_BFC284AC != psx_brB_BFC284AC); /* 0xBFC284B0: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC284B0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC284AC) goto label_BFC284DC; @@ -129419,7 +133138,7 @@ label_BFC284B4: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC284B8: 16300008 bne $s1, $s0, 0xBFC284DC */ uint32_t psx_brA_BFC284B8 = cpu->gpr[17]; uint32_t psx_brB_BFC284B8 = cpu->gpr[16]; - int psx_taken_BFC284B8 = (psx_brA_BFC284B8 != psx_brB_BFC284B8); + psx_taken_BFC284B8 = (psx_brA_BFC284B8 != psx_brB_BFC284B8); /* 0xBFC284BC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC284BCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC284B8) goto label_BFC284DC; @@ -129440,7 +133159,7 @@ label_BFC284C8: psx_check_interrupts(cpu); /* 0xBFC284C8: 14400004 bne $v0, $zero, 0xBFC284DC */ uint32_t psx_brA_BFC284C8 = cpu->gpr[2]; uint32_t psx_brB_BFC284C8 = cpu->gpr[0]; - int psx_taken_BFC284C8 = (psx_brA_BFC284C8 != psx_brB_BFC284C8); + psx_taken_BFC284C8 = (psx_brA_BFC284C8 != psx_brB_BFC284C8); /* 0xBFC284CC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC284CCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC284C8) goto label_BFC284DC; @@ -129451,7 +133170,7 @@ label_BFC284D0: psx_check_interrupts(cpu); /* 0xBFC284D0: 1230FFFB beq $s1, $s0, 0xBFC284C0 */ uint32_t psx_brA_BFC284D0 = cpu->gpr[17]; uint32_t psx_brB_BFC284D0 = cpu->gpr[16]; - int psx_taken_BFC284D0 = (psx_brA_BFC284D0 == psx_brB_BFC284D0); + psx_taken_BFC284D0 = (psx_brA_BFC284D0 == psx_brB_BFC284D0); /* 0xBFC284D4: 00000000 nop */ /* nop */ if (psx_taken_BFC284D0) goto label_BFC284C0; @@ -129514,6 +133233,23 @@ void func_1FC284F0(CPUState* cpu) { default: break; } } + int psx_taken_BFC2858C = 0; + int psx_taken_BFC285B0 = 0; + int psx_taken_BFC285B8 = 0; + int psx_taken_BFC285C4 = 0; + int psx_taken_BFC285E8 = 0; + int psx_taken_BFC285F0 = 0; + int psx_taken_BFC28608 = 0; + int psx_taken_BFC28634 = 0; + int psx_taken_BFC2863C = 0; + int psx_taken_BFC28648 = 0; + int psx_taken_BFC28658 = 0; + int psx_taken_BFC28680 = 0; + int psx_taken_BFC28734 = 0; + int psx_taken_BFC2882C = 0; + int psx_taken_BFC28834 = 0; + int psx_taken_BFC28840 = 0; + int psx_taken_BFC28854 = 0; label_BFC284F0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -129653,7 +133389,7 @@ label_BFC28580: /* nop */ /* 0xBFC2858C: 13000013 beq $t8, $zero, 0xBFC285DC */ uint32_t psx_brA_BFC2858C = cpu->gpr[24]; uint32_t psx_brB_BFC2858C = cpu->gpr[0]; - int psx_taken_BFC2858C = (psx_brA_BFC2858C == psx_brB_BFC2858C); + psx_taken_BFC2858C = (psx_brA_BFC2858C == psx_brB_BFC2858C); /* 0xBFC28590: 00000000 nop */ /* nop */ if (psx_taken_BFC2858C) goto label_BFC285DC; @@ -129684,7 +133420,7 @@ label_BFC285A4: /* nop */ /* 0xBFC285B0: 13200004 beq $t9, $zero, 0xBFC285C4 */ uint32_t psx_brA_BFC285B0 = cpu->gpr[25]; uint32_t psx_brB_BFC285B0 = cpu->gpr[0]; - int psx_taken_BFC285B0 = (psx_brA_BFC285B0 == psx_brB_BFC285B0); + psx_taken_BFC285B0 = (psx_brA_BFC285B0 == psx_brB_BFC285B0); /* 0xBFC285B4: 240200F0 addiu $v0, $zero, 240 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (240)); if (psx_taken_BFC285B0) goto label_BFC285C4; @@ -129695,7 +133431,7 @@ label_BFC285B8: psx_check_interrupts(cpu); /* 0xBFC285B8: 10000002 beq $zero, $zero, 0xBFC285C4 */ uint32_t psx_brA_BFC285B8 = cpu->gpr[0]; uint32_t psx_brB_BFC285B8 = cpu->gpr[0]; - int psx_taken_BFC285B8 = (psx_brA_BFC285B8 == psx_brB_BFC285B8); + psx_taken_BFC285B8 = (psx_brA_BFC285B8 == psx_brB_BFC285B8); /* 0xBFC285BC: 240200C8 addiu $v0, $zero, 200 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (200)); if (psx_taken_BFC285B8) goto label_BFC285C4; @@ -129713,7 +133449,7 @@ label_BFC285C4: psx_check_interrupts(cpu); /* 0xBFC285C4: 04410002 bgez $v0, 0xBFC285D0 */ uint32_t psx_brA_BFC285C4 = cpu->gpr[2]; - int psx_taken_BFC285C4 = ((int32_t)psx_brA_BFC285C4 >= 0); + psx_taken_BFC285C4 = ((int32_t)psx_brA_BFC285C4 >= 0); /* 0xBFC285C8: 00400821 addu $at, $v0, $zero */ cpu->gpr[1] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC285C4) goto label_BFC285D0; @@ -129749,7 +133485,7 @@ label_BFC285DC: /* nop */ /* 0xBFC285E8: 11000004 beq $t0, $zero, 0xBFC285FC */ uint32_t psx_brA_BFC285E8 = cpu->gpr[8]; uint32_t psx_brB_BFC285E8 = cpu->gpr[0]; - int psx_taken_BFC285E8 = (psx_brA_BFC285E8 == psx_brB_BFC285E8); + psx_taken_BFC285E8 = (psx_brA_BFC285E8 == psx_brB_BFC285E8); /* 0xBFC285EC: 240200F0 addiu $v0, $zero, 240 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (240)); if (psx_taken_BFC285E8) goto label_BFC285FC; @@ -129760,7 +133496,7 @@ label_BFC285F0: psx_check_interrupts(cpu); /* 0xBFC285F0: 10000002 beq $zero, $zero, 0xBFC285FC */ uint32_t psx_brA_BFC285F0 = cpu->gpr[0]; uint32_t psx_brB_BFC285F0 = cpu->gpr[0]; - int psx_taken_BFC285F0 = (psx_brA_BFC285F0 == psx_brB_BFC285F0); + psx_taken_BFC285F0 = (psx_brA_BFC285F0 == psx_brB_BFC285F0); /* 0xBFC285F4: 240200C8 addiu $v0, $zero, 200 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (200)); if (psx_taken_BFC285F0) goto label_BFC285FC; @@ -129784,7 +133520,7 @@ label_BFC285FC: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC28608: 04410002 bgez $v0, 0xBFC28614 */ uint32_t psx_brA_BFC28608 = cpu->gpr[2]; - int psx_taken_BFC28608 = ((int32_t)psx_brA_BFC28608 >= 0); + psx_taken_BFC28608 = ((int32_t)psx_brA_BFC28608 >= 0); /* 0xBFC2860C: 00400821 addu $at, $v0, $zero */ cpu->gpr[1] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC28608) goto label_BFC28614; @@ -129830,7 +133566,7 @@ label_BFC28628: cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC28634: 11200004 beq $t1, $zero, 0xBFC28648 */ uint32_t psx_brA_BFC28634 = cpu->gpr[9]; uint32_t psx_brB_BFC28634 = cpu->gpr[0]; - int psx_taken_BFC28634 = (psx_brA_BFC28634 == psx_brB_BFC28634); + psx_taken_BFC28634 = (psx_brA_BFC28634 == psx_brB_BFC28634); /* 0xBFC28638: 240200F0 addiu $v0, $zero, 240 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (240)); if (psx_taken_BFC28634) goto label_BFC28648; @@ -129841,7 +133577,7 @@ label_BFC2863C: psx_check_interrupts(cpu); /* 0xBFC2863C: 10000002 beq $zero, $zero, 0xBFC28648 */ uint32_t psx_brA_BFC2863C = cpu->gpr[0]; uint32_t psx_brB_BFC2863C = cpu->gpr[0]; - int psx_taken_BFC2863C = (psx_brA_BFC2863C == psx_brB_BFC2863C); + psx_taken_BFC2863C = (psx_brA_BFC2863C == psx_brB_BFC2863C); /* 0xBFC28640: 240200C8 addiu $v0, $zero, 200 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (200)); if (psx_taken_BFC2863C) goto label_BFC28648; @@ -129859,7 +133595,7 @@ label_BFC28648: psx_check_interrupts(cpu); /* 0xBFC28648: 04410002 bgez $v0, 0xBFC28654 */ uint32_t psx_brA_BFC28648 = cpu->gpr[2]; - int psx_taken_BFC28648 = ((int32_t)psx_brA_BFC28648 >= 0); + psx_taken_BFC28648 = ((int32_t)psx_brA_BFC28648 >= 0); /* 0xBFC2864C: 00400821 addu $at, $v0, $zero */ cpu->gpr[1] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC28648) goto label_BFC28654; @@ -129879,7 +133615,7 @@ label_BFC28654: cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[1] >> 1u); /* 0xBFC28658: 19400081 blez $t2, 0xBFC28860 */ uint32_t psx_brA_BFC28658 = cpu->gpr[10]; - int psx_taken_BFC28658 = ((int32_t)psx_brA_BFC28658 <= 0); + psx_taken_BFC28658 = ((int32_t)psx_brA_BFC28658 <= 0); /* 0xBFC2865C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2865Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC28658) goto label_BFC28860; @@ -129918,7 +133654,7 @@ label_BFC2867C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (9001) ? 1 : 0); /* 0xBFC28680: 14200002 bne $at, $zero, 0xBFC2868C */ uint32_t psx_brA_BFC28680 = cpu->gpr[1]; uint32_t psx_brB_BFC28680 = cpu->gpr[0]; - int psx_taken_BFC28680 = (psx_brA_BFC28680 != psx_brB_BFC28680); + psx_taken_BFC28680 = (psx_brA_BFC28680 != psx_brB_BFC28680); /* 0xBFC28684: 00000000 nop */ /* nop */ if (psx_taken_BFC28680) goto label_BFC2868C; @@ -130038,7 +133774,7 @@ label_BFC28734: psx_check_interrupts(cpu); /* 0xBFC28734: 12000031 beq $s0, $zero, 0xBFC287FC */ uint32_t psx_brA_BFC28734 = cpu->gpr[16]; uint32_t psx_brB_BFC28734 = cpu->gpr[0]; - int psx_taken_BFC28734 = (psx_brA_BFC28734 == psx_brB_BFC28734); + psx_taken_BFC28734 = (psx_brA_BFC28734 == psx_brB_BFC28734); /* 0xBFC28738: 240400B4 addiu $a0, $zero, 180 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (180)); if (psx_taken_BFC28734) goto label_BFC287FC; @@ -130222,7 +133958,7 @@ label_BFC28820: /* nop */ /* 0xBFC2882C: 11400004 beq $t2, $zero, 0xBFC28840 */ uint32_t psx_brA_BFC2882C = cpu->gpr[10]; uint32_t psx_brB_BFC2882C = cpu->gpr[0]; - int psx_taken_BFC2882C = (psx_brA_BFC2882C == psx_brB_BFC2882C); + psx_taken_BFC2882C = (psx_brA_BFC2882C == psx_brB_BFC2882C); /* 0xBFC28830: 240200F0 addiu $v0, $zero, 240 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (240)); if (psx_taken_BFC2882C) goto label_BFC28840; @@ -130233,7 +133969,7 @@ label_BFC28834: psx_check_interrupts(cpu); /* 0xBFC28834: 10000002 beq $zero, $zero, 0xBFC28840 */ uint32_t psx_brA_BFC28834 = cpu->gpr[0]; uint32_t psx_brB_BFC28834 = cpu->gpr[0]; - int psx_taken_BFC28834 = (psx_brA_BFC28834 == psx_brB_BFC28834); + psx_taken_BFC28834 = (psx_brA_BFC28834 == psx_brB_BFC28834); /* 0xBFC28838: 240200C8 addiu $v0, $zero, 200 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (200)); if (psx_taken_BFC28834) goto label_BFC28840; @@ -130251,7 +133987,7 @@ label_BFC28840: psx_check_interrupts(cpu); /* 0xBFC28840: 04410002 bgez $v0, 0xBFC2884C */ uint32_t psx_brA_BFC28840 = cpu->gpr[2]; - int psx_taken_BFC28840 = ((int32_t)psx_brA_BFC28840 >= 0); + psx_taken_BFC28840 = ((int32_t)psx_brA_BFC28840 >= 0); /* 0xBFC28844: 00400821 addu $at, $v0, $zero */ cpu->gpr[1] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC28840) goto label_BFC2884C; @@ -130273,7 +134009,7 @@ label_BFC2884C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[11] ? 1 : 0); /* 0xBFC28854: 1420FF82 bne $at, $zero, 0xBFC28660 */ uint32_t psx_brA_BFC28854 = cpu->gpr[1]; uint32_t psx_brB_BFC28854 = cpu->gpr[0]; - int psx_taken_BFC28854 = (psx_brA_BFC28854 != psx_brB_BFC28854); + psx_taken_BFC28854 = (psx_brA_BFC28854 != psx_brB_BFC28854); /* 0xBFC28858: 00000000 nop */ /* nop */ if (psx_taken_BFC28854) goto label_BFC28660; @@ -130316,6 +134052,22 @@ void func_1FC2886C(CPUState* cpu) { default: break; } } + int psx_taken_BFC289E8 = 0; + int psx_taken_BFC289F0 = 0; + int psx_taken_BFC28A2C = 0; + int psx_taken_BFC28A3C = 0; + int psx_taken_BFC28A44 = 0; + int psx_taken_BFC28A58 = 0; + int psx_taken_BFC28A60 = 0; + int psx_taken_BFC28A9C = 0; + int psx_taken_BFC28AAC = 0; + int psx_taken_BFC28AB4 = 0; + int psx_taken_BFC28AC8 = 0; + int psx_taken_BFC28AD0 = 0; + int psx_taken_BFC28B0C = 0; + int psx_taken_BFC28B1C = 0; + int psx_taken_BFC28B24 = 0; + int psx_taken_BFC28B4C = 0; label_BFC2886C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -130560,7 +134312,7 @@ label_BFC289E8: psx_check_interrupts(cpu); /* 0xBFC289E8: 12600004 beq $s3, $zero, 0xBFC289FC */ uint32_t psx_brA_BFC289E8 = cpu->gpr[19]; uint32_t psx_brB_BFC289E8 = cpu->gpr[0]; - int psx_taken_BFC289E8 = (psx_brA_BFC289E8 == psx_brB_BFC289E8); + psx_taken_BFC289E8 = (psx_brA_BFC289E8 == psx_brB_BFC289E8); /* 0xBFC289EC: 24020002 addiu $v0, $zero, 2 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC289E8) goto label_BFC289FC; @@ -130571,7 +134323,7 @@ label_BFC289F0: psx_check_interrupts(cpu); /* 0xBFC289F0: 10000002 beq $zero, $zero, 0xBFC289FC */ uint32_t psx_brA_BFC289F0 = cpu->gpr[0]; uint32_t psx_brB_BFC289F0 = cpu->gpr[0]; - int psx_taken_BFC289F0 = (psx_brA_BFC289F0 == psx_brB_BFC289F0); + psx_taken_BFC289F0 = (psx_brA_BFC289F0 == psx_brB_BFC289F0); /* 0xBFC289F4: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC289F0) goto label_BFC289FC; @@ -130613,7 +134365,7 @@ label_BFC289FC: cpu->gpr[6] = cpu->lo; /* 0xBFC28A2C: 14400002 bne $v0, $zero, 0xBFC28A38 */ uint32_t psx_brA_BFC28A2C = cpu->gpr[2]; uint32_t psx_brB_BFC28A2C = cpu->gpr[0]; - int psx_taken_BFC28A2C = (psx_brA_BFC28A2C != psx_brB_BFC28A2C); + psx_taken_BFC28A2C = (psx_brA_BFC28A2C != psx_brB_BFC28A2C); /* 0xBFC28A30: 00000000 nop */ /* nop */ if (psx_taken_BFC28A2C) goto label_BFC28A38; @@ -130633,7 +134385,7 @@ label_BFC28A38: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC28A3C: 14410004 bne $v0, $at, 0xBFC28A50 */ uint32_t psx_brA_BFC28A3C = cpu->gpr[2]; uint32_t psx_brB_BFC28A3C = cpu->gpr[1]; - int psx_taken_BFC28A3C = (psx_brA_BFC28A3C != psx_brB_BFC28A3C); + psx_taken_BFC28A3C = (psx_brA_BFC28A3C != psx_brB_BFC28A3C); /* 0xBFC28A40: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC28A3C) goto label_BFC28A50; @@ -130644,7 +134396,7 @@ label_BFC28A44: psx_check_interrupts(cpu); /* 0xBFC28A44: 15610002 bne $t3, $at, 0xBFC28A50 */ uint32_t psx_brA_BFC28A44 = cpu->gpr[11]; uint32_t psx_brB_BFC28A44 = cpu->gpr[1]; - int psx_taken_BFC28A44 = (psx_brA_BFC28A44 != psx_brB_BFC28A44); + psx_taken_BFC28A44 = (psx_brA_BFC28A44 != psx_brB_BFC28A44); /* 0xBFC28A48: 00000000 nop */ /* nop */ if (psx_taken_BFC28A44) goto label_BFC28A50; @@ -130672,7 +134424,7 @@ label_BFC28A58: psx_check_interrupts(cpu); /* 0xBFC28A58: 12600004 beq $s3, $zero, 0xBFC28A6C */ uint32_t psx_brA_BFC28A58 = cpu->gpr[19]; uint32_t psx_brB_BFC28A58 = cpu->gpr[0]; - int psx_taken_BFC28A58 = (psx_brA_BFC28A58 == psx_brB_BFC28A58); + psx_taken_BFC28A58 = (psx_brA_BFC28A58 == psx_brB_BFC28A58); /* 0xBFC28A5C: 24020002 addiu $v0, $zero, 2 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC28A58) goto label_BFC28A6C; @@ -130683,7 +134435,7 @@ label_BFC28A60: psx_check_interrupts(cpu); /* 0xBFC28A60: 10000002 beq $zero, $zero, 0xBFC28A6C */ uint32_t psx_brA_BFC28A60 = cpu->gpr[0]; uint32_t psx_brB_BFC28A60 = cpu->gpr[0]; - int psx_taken_BFC28A60 = (psx_brA_BFC28A60 == psx_brB_BFC28A60); + psx_taken_BFC28A60 = (psx_brA_BFC28A60 == psx_brB_BFC28A60); /* 0xBFC28A64: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC28A60) goto label_BFC28A6C; @@ -130725,7 +134477,7 @@ label_BFC28A6C: cpu->gpr[6] = cpu->lo; /* 0xBFC28A9C: 14400002 bne $v0, $zero, 0xBFC28AA8 */ uint32_t psx_brA_BFC28A9C = cpu->gpr[2]; uint32_t psx_brB_BFC28A9C = cpu->gpr[0]; - int psx_taken_BFC28A9C = (psx_brA_BFC28A9C != psx_brB_BFC28A9C); + psx_taken_BFC28A9C = (psx_brA_BFC28A9C != psx_brB_BFC28A9C); /* 0xBFC28AA0: 00000000 nop */ /* nop */ if (psx_taken_BFC28A9C) goto label_BFC28AA8; @@ -130745,7 +134497,7 @@ label_BFC28AA8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC28AAC: 14410004 bne $v0, $at, 0xBFC28AC0 */ uint32_t psx_brA_BFC28AAC = cpu->gpr[2]; uint32_t psx_brB_BFC28AAC = cpu->gpr[1]; - int psx_taken_BFC28AAC = (psx_brA_BFC28AAC != psx_brB_BFC28AAC); + psx_taken_BFC28AAC = (psx_brA_BFC28AAC != psx_brB_BFC28AAC); /* 0xBFC28AB0: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC28AAC) goto label_BFC28AC0; @@ -130756,7 +134508,7 @@ label_BFC28AB4: psx_check_interrupts(cpu); /* 0xBFC28AB4: 15A10002 bne $t5, $at, 0xBFC28AC0 */ uint32_t psx_brA_BFC28AB4 = cpu->gpr[13]; uint32_t psx_brB_BFC28AB4 = cpu->gpr[1]; - int psx_taken_BFC28AB4 = (psx_brA_BFC28AB4 != psx_brB_BFC28AB4); + psx_taken_BFC28AB4 = (psx_brA_BFC28AB4 != psx_brB_BFC28AB4); /* 0xBFC28AB8: 00000000 nop */ /* nop */ if (psx_taken_BFC28AB4) goto label_BFC28AC0; @@ -130784,7 +134536,7 @@ label_BFC28AC8: psx_check_interrupts(cpu); /* 0xBFC28AC8: 12600004 beq $s3, $zero, 0xBFC28ADC */ uint32_t psx_brA_BFC28AC8 = cpu->gpr[19]; uint32_t psx_brB_BFC28AC8 = cpu->gpr[0]; - int psx_taken_BFC28AC8 = (psx_brA_BFC28AC8 == psx_brB_BFC28AC8); + psx_taken_BFC28AC8 = (psx_brA_BFC28AC8 == psx_brB_BFC28AC8); /* 0xBFC28ACC: 24020002 addiu $v0, $zero, 2 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC28AC8) goto label_BFC28ADC; @@ -130795,7 +134547,7 @@ label_BFC28AD0: psx_check_interrupts(cpu); /* 0xBFC28AD0: 10000002 beq $zero, $zero, 0xBFC28ADC */ uint32_t psx_brA_BFC28AD0 = cpu->gpr[0]; uint32_t psx_brB_BFC28AD0 = cpu->gpr[0]; - int psx_taken_BFC28AD0 = (psx_brA_BFC28AD0 == psx_brB_BFC28AD0); + psx_taken_BFC28AD0 = (psx_brA_BFC28AD0 == psx_brB_BFC28AD0); /* 0xBFC28AD4: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC28AD0) goto label_BFC28ADC; @@ -130837,7 +134589,7 @@ label_BFC28ADC: cpu->gpr[6] = cpu->lo; /* 0xBFC28B0C: 14400002 bne $v0, $zero, 0xBFC28B18 */ uint32_t psx_brA_BFC28B0C = cpu->gpr[2]; uint32_t psx_brB_BFC28B0C = cpu->gpr[0]; - int psx_taken_BFC28B0C = (psx_brA_BFC28B0C != psx_brB_BFC28B0C); + psx_taken_BFC28B0C = (psx_brA_BFC28B0C != psx_brB_BFC28B0C); /* 0xBFC28B10: 00000000 nop */ /* nop */ if (psx_taken_BFC28B0C) goto label_BFC28B18; @@ -130857,7 +134609,7 @@ label_BFC28B18: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC28B1C: 14410004 bne $v0, $at, 0xBFC28B30 */ uint32_t psx_brA_BFC28B1C = cpu->gpr[2]; uint32_t psx_brB_BFC28B1C = cpu->gpr[1]; - int psx_taken_BFC28B1C = (psx_brA_BFC28B1C != psx_brB_BFC28B1C); + psx_taken_BFC28B1C = (psx_brA_BFC28B1C != psx_brB_BFC28B1C); /* 0xBFC28B20: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC28B1C) goto label_BFC28B30; @@ -130868,7 +134620,7 @@ label_BFC28B24: psx_check_interrupts(cpu); /* 0xBFC28B24: 15E10002 bne $t7, $at, 0xBFC28B30 */ uint32_t psx_brA_BFC28B24 = cpu->gpr[15]; uint32_t psx_brB_BFC28B24 = cpu->gpr[1]; - int psx_taken_BFC28B24 = (psx_brA_BFC28B24 != psx_brB_BFC28B24); + psx_taken_BFC28B24 = (psx_brA_BFC28B24 != psx_brB_BFC28B24); /* 0xBFC28B28: 00000000 nop */ /* nop */ if (psx_taken_BFC28B24) goto label_BFC28B30; @@ -130906,7 +134658,7 @@ label_BFC28B38: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[20] < (2) ? 1 : 0); /* 0xBFC28B4C: 1420FF61 bne $at, $zero, 0xBFC288D4 */ uint32_t psx_brA_BFC28B4C = cpu->gpr[1]; uint32_t psx_brB_BFC28B4C = cpu->gpr[0]; - int psx_taken_BFC28B4C = (psx_brA_BFC28B4C != psx_brB_BFC28B4C); + psx_taken_BFC28B4C = (psx_brA_BFC28B4C != psx_brB_BFC28B4C); /* 0xBFC28B50: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC28B4C) goto label_BFC288D4; @@ -130976,6 +134728,13 @@ void func_1FC28B84(CPUState* cpu) { default: break; } } + int psx_taken_BFC28BC4 = 0; + int psx_taken_BFC28BD4 = 0; + int psx_taken_BFC28BDC = 0; + int psx_taken_BFC28C38 = 0; + int psx_taken_BFC28C48 = 0; + int psx_taken_BFC28C50 = 0; + int psx_taken_BFC2918C = 0; label_BFC28B84: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(18u); @@ -131015,7 +134774,7 @@ label_BFC28B84: /* nop */ /* 0xBFC28BC4: 04C10002 bgez $a2, 0xBFC28BD0 */ uint32_t psx_brA_BFC28BC4 = cpu->gpr[6]; - int psx_taken_BFC28BC4 = ((int32_t)psx_brA_BFC28BC4 >= 0); + psx_taken_BFC28BC4 = ((int32_t)psx_brA_BFC28BC4 >= 0); /* 0xBFC28BC8: 00C00821 addu $at, $a2, $zero */ cpu->gpr[1] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC28BC4) goto label_BFC28BD0; @@ -131035,7 +134794,7 @@ label_BFC28BD0: cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[1] >> 1u); /* 0xBFC28BD4: 10800004 beq $a0, $zero, 0xBFC28BE8 */ uint32_t psx_brA_BFC28BD4 = cpu->gpr[4]; uint32_t psx_brB_BFC28BD4 = cpu->gpr[0]; - int psx_taken_BFC28BD4 = (psx_brA_BFC28BD4 == psx_brB_BFC28BD4); + psx_taken_BFC28BD4 = (psx_brA_BFC28BD4 == psx_brB_BFC28BD4); /* 0xBFC28BD8: 24020004 addiu $v0, $zero, 4 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC28BD4) goto label_BFC28BE8; @@ -131046,7 +134805,7 @@ label_BFC28BDC: psx_check_interrupts(cpu); /* 0xBFC28BDC: 10000002 beq $zero, $zero, 0xBFC28BE8 */ uint32_t psx_brA_BFC28BDC = cpu->gpr[0]; uint32_t psx_brB_BFC28BDC = cpu->gpr[0]; - int psx_taken_BFC28BDC = (psx_brA_BFC28BDC == psx_brB_BFC28BDC); + psx_taken_BFC28BDC = (psx_brA_BFC28BDC == psx_brB_BFC28BDC); /* 0xBFC28BE0: 24020002 addiu $v0, $zero, 2 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC28BDC) goto label_BFC28BE8; @@ -131104,7 +134863,7 @@ label_BFC28BE8: cpu->gpr[30] = cpu->gpr[0] - cpu->gpr[23]; /* 0xBFC28C38: 14400002 bne $v0, $zero, 0xBFC28C44 */ uint32_t psx_brA_BFC28C38 = cpu->gpr[2]; uint32_t psx_brB_BFC28C38 = cpu->gpr[0]; - int psx_taken_BFC28C38 = (psx_brA_BFC28C38 != psx_brB_BFC28C38); + psx_taken_BFC28C38 = (psx_brA_BFC28C38 != psx_brB_BFC28C38); /* 0xBFC28C3C: 00000000 nop */ /* nop */ if (psx_taken_BFC28C38) goto label_BFC28C44; @@ -131124,7 +134883,7 @@ label_BFC28C44: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC28C48: 14410004 bne $v0, $at, 0xBFC28C5C */ uint32_t psx_brA_BFC28C48 = cpu->gpr[2]; uint32_t psx_brB_BFC28C48 = cpu->gpr[1]; - int psx_taken_BFC28C48 = (psx_brA_BFC28C48 != psx_brB_BFC28C48); + psx_taken_BFC28C48 = (psx_brA_BFC28C48 != psx_brB_BFC28C48); /* 0xBFC28C4C: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC28C48) goto label_BFC28C5C; @@ -131135,7 +134894,7 @@ label_BFC28C50: psx_check_interrupts(cpu); /* 0xBFC28C50: 14C10002 bne $a2, $at, 0xBFC28C5C */ uint32_t psx_brA_BFC28C50 = cpu->gpr[6]; uint32_t psx_brB_BFC28C50 = cpu->gpr[1]; - int psx_taken_BFC28C50 = (psx_brA_BFC28C50 != psx_brB_BFC28C50); + psx_taken_BFC28C50 = (psx_brA_BFC28C50 != psx_brB_BFC28C50); /* 0xBFC28C54: 00000000 nop */ /* nop */ if (psx_taken_BFC28C50) goto label_BFC28C5C; @@ -131978,7 +135737,7 @@ label_BFC29174: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (2) ? 1 : 0); /* 0xBFC2918C: 1420FEC0 bne $at, $zero, 0xBFC28C90 */ uint32_t psx_brA_BFC2918C = cpu->gpr[1]; uint32_t psx_brB_BFC2918C = cpu->gpr[0]; - int psx_taken_BFC2918C = (psx_brA_BFC2918C != psx_brB_BFC2918C); + psx_taken_BFC2918C = (psx_brA_BFC2918C != psx_brB_BFC2918C); /* 0xBFC29190: 00000000 nop */ /* nop */ if (psx_taken_BFC2918C) goto label_BFC28C90; @@ -132028,6 +135787,38 @@ void func_1FC291C4(CPUState* cpu) { default: break; } } + int psx_taken_BFC291E0 = 0; + int psx_taken_BFC29208 = 0; + int psx_taken_BFC29218 = 0; + int psx_taken_BFC29244 = 0; + int psx_taken_BFC2924C = 0; + int psx_taken_BFC29284 = 0; + int psx_taken_BFC29294 = 0; + int psx_taken_BFC2929C = 0; + int psx_taken_BFC292B0 = 0; + int psx_taken_BFC292DC = 0; + int psx_taken_BFC29324 = 0; + int psx_taken_BFC2933C = 0; + int psx_taken_BFC29360 = 0; + int psx_taken_BFC29458 = 0; + int psx_taken_BFC294B4 = 0; + int psx_taken_BFC294C4 = 0; + int psx_taken_BFC294CC = 0; + int psx_taken_BFC29550 = 0; + int psx_taken_BFC29560 = 0; + int psx_taken_BFC29568 = 0; + int psx_taken_BFC295A4 = 0; + int psx_taken_BFC295B4 = 0; + int psx_taken_BFC295BC = 0; + int psx_taken_BFC29638 = 0; + int psx_taken_BFC29648 = 0; + int psx_taken_BFC29650 = 0; + int psx_taken_BFC296D0 = 0; + int psx_taken_BFC296E0 = 0; + int psx_taken_BFC296E8 = 0; + int psx_taken_BFC29724 = 0; + int psx_taken_BFC29734 = 0; + int psx_taken_BFC2973C = 0; label_BFC291C4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -132049,7 +135840,7 @@ label_BFC291C4: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] >> 16u); /* 0xBFC291E0: 10800052 beq $a0, $zero, 0xBFC2932C */ uint32_t psx_brA_BFC291E0 = cpu->gpr[4]; uint32_t psx_brB_BFC291E0 = cpu->gpr[0]; - int psx_taken_BFC291E0 = (psx_brA_BFC291E0 == psx_brB_BFC291E0); + psx_taken_BFC291E0 = (psx_brA_BFC291E0 == psx_brB_BFC291E0); /* 0xBFC291E4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC291E4u); return; } g_debug_last_store_pc = 0xBFC291E4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC291E0) goto label_BFC2932C; @@ -132076,7 +135867,7 @@ label_BFC291E8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (16252)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC29204u); return; } g_debug_last_store_pc = 0xBFC29204u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC29208: 04810002 bgez $a0, 0xBFC29214 */ uint32_t psx_brA_BFC29208 = cpu->gpr[4]; - int psx_taken_BFC29208 = ((int32_t)psx_brA_BFC29208 >= 0); + psx_taken_BFC29208 = ((int32_t)psx_brA_BFC29208 >= 0); /* 0xBFC2920C: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC29208) goto label_BFC29214; @@ -132096,7 +135887,7 @@ label_BFC29214: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[1] >> 2u); /* 0xBFC29218: 04810002 bgez $a0, 0xBFC29224 */ uint32_t psx_brA_BFC29218 = cpu->gpr[4]; - int psx_taken_BFC29218 = ((int32_t)psx_brA_BFC29218 >= 0); + psx_taken_BFC29218 = ((int32_t)psx_brA_BFC29218 >= 0); /* 0xBFC2921C: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC29218) goto label_BFC29224; @@ -132130,7 +135921,7 @@ label_BFC29224: cpu->gpr[1] = 0x80080000u; /* 0xBFC29244: 10600003 beq $v1, $zero, 0xBFC29254 */ uint32_t psx_brA_BFC29244 = cpu->gpr[3]; uint32_t psx_brB_BFC29244 = cpu->gpr[0]; - int psx_taken_BFC29244 = (psx_brA_BFC29244 == psx_brB_BFC29244); + psx_taken_BFC29244 = (psx_brA_BFC29244 == psx_brB_BFC29244); /* 0xBFC29248: A4393F6A sh $t9, 16234($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (16234)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC29248u); return; } g_debug_last_store_pc = 0xBFC29248u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[25] & 0xFFFFu)); } if (psx_taken_BFC29244) goto label_BFC29254; @@ -132141,7 +135932,7 @@ label_BFC2924C: psx_check_interrupts(cpu); /* 0xBFC2924C: 10000002 beq $zero, $zero, 0xBFC29258 */ uint32_t psx_brA_BFC2924C = cpu->gpr[0]; uint32_t psx_brB_BFC2924C = cpu->gpr[0]; - int psx_taken_BFC2924C = (psx_brA_BFC2924C == psx_brB_BFC2924C); + psx_taken_BFC2924C = (psx_brA_BFC2924C == psx_brB_BFC2924C); /* 0xBFC29250: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC2924C) goto label_BFC29258; @@ -132181,7 +135972,7 @@ label_BFC29258: cpu->gpr[11] = cpu->lo; /* 0xBFC29284: 14600002 bne $v1, $zero, 0xBFC29290 */ uint32_t psx_brA_BFC29284 = cpu->gpr[3]; uint32_t psx_brB_BFC29284 = cpu->gpr[0]; - int psx_taken_BFC29284 = (psx_brA_BFC29284 != psx_brB_BFC29284); + psx_taken_BFC29284 = (psx_brA_BFC29284 != psx_brB_BFC29284); /* 0xBFC29288: 00000000 nop */ /* nop */ if (psx_taken_BFC29284) goto label_BFC29290; @@ -132201,7 +135992,7 @@ label_BFC29290: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC29294: 14610004 bne $v1, $at, 0xBFC292A8 */ uint32_t psx_brA_BFC29294 = cpu->gpr[3]; uint32_t psx_brB_BFC29294 = cpu->gpr[1]; - int psx_taken_BFC29294 = (psx_brA_BFC29294 != psx_brB_BFC29294); + psx_taken_BFC29294 = (psx_brA_BFC29294 != psx_brB_BFC29294); /* 0xBFC29298: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC29294) goto label_BFC292A8; @@ -132212,7 +136003,7 @@ label_BFC2929C: psx_check_interrupts(cpu); /* 0xBFC2929C: 15410002 bne $t2, $at, 0xBFC292A8 */ uint32_t psx_brA_BFC2929C = cpu->gpr[10]; uint32_t psx_brB_BFC2929C = cpu->gpr[1]; - int psx_taken_BFC2929C = (psx_brA_BFC2929C != psx_brB_BFC2929C); + psx_taken_BFC2929C = (psx_brA_BFC2929C != psx_brB_BFC2929C); /* 0xBFC292A0: 00000000 nop */ /* nop */ if (psx_taken_BFC2929C) goto label_BFC292A8; @@ -132234,7 +136025,7 @@ label_BFC292A8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (16236)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC292ACu); return; } g_debug_last_store_pc = 0xBFC292ACu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[11] & 0xFFFFu)); } /* 0xBFC292B0: 05810002 bgez $t4, 0xBFC292BC */ uint32_t psx_brA_BFC292B0 = cpu->gpr[12]; - int psx_taken_BFC292B0 = ((int32_t)psx_brA_BFC292B0 >= 0); + psx_taken_BFC292B0 = ((int32_t)psx_brA_BFC292B0 >= 0); /* 0xBFC292B4: 01800821 addu $at, $t4, $zero */ cpu->gpr[1] = cpu->gpr[12] + cpu->gpr[0]; if (psx_taken_BFC292B0) goto label_BFC292BC; @@ -132268,7 +136059,7 @@ label_BFC292BC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (16238)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC292D8u); return; } g_debug_last_store_pc = 0xBFC292D8u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[14] & 0xFFFFu)); } /* 0xBFC292DC: 04810002 bgez $a0, 0xBFC292E8 */ uint32_t psx_brA_BFC292DC = cpu->gpr[4]; - int psx_taken_BFC292DC = ((int32_t)psx_brA_BFC292DC >= 0); + psx_taken_BFC292DC = ((int32_t)psx_brA_BFC292DC >= 0); /* 0xBFC292E0: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC292DC) goto label_BFC292E8; @@ -132316,7 +136107,7 @@ label_BFC292E8: cpu->gpr[1] = 0x80080000u; /* 0xBFC29324: 1000010E beq $zero, $zero, 0xBFC29760 */ uint32_t psx_brA_BFC29324 = cpu->gpr[0]; uint32_t psx_brB_BFC29324 = cpu->gpr[0]; - int psx_taken_BFC29324 = (psx_brA_BFC29324 == psx_brB_BFC29324); + psx_taken_BFC29324 = (psx_brA_BFC29324 == psx_brB_BFC29324); /* 0xBFC29328: A4273F68 sh $a3, 16232($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (16232)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC29328u); return; } g_debug_last_store_pc = 0xBFC29328u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[7] & 0xFFFFu)); } if (psx_taken_BFC29324) goto label_BFC29760; @@ -132335,7 +136126,7 @@ label_BFC2932C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[7] < (4096) ? 1 : 0); /* 0xBFC2933C: 10200004 beq $at, $zero, 0xBFC29350 */ uint32_t psx_brA_BFC2933C = cpu->gpr[1]; uint32_t psx_brB_BFC2933C = cpu->gpr[0]; - int psx_taken_BFC2933C = (psx_brA_BFC2933C == psx_brB_BFC2933C); + psx_taken_BFC2933C = (psx_brA_BFC2933C == psx_brB_BFC2933C); /* 0xBFC29340: 00000000 nop */ /* nop */ if (psx_taken_BFC2933C) goto label_BFC29350; @@ -132365,7 +136156,7 @@ label_BFC29350: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[7] ? 1 : 0); /* 0xBFC29360: 1020003F beq $at, $zero, 0xBFC29460 */ uint32_t psx_brA_BFC29360 = cpu->gpr[1]; uint32_t psx_brB_BFC29360 = cpu->gpr[0]; - int psx_taken_BFC29360 = (psx_brA_BFC29360 == psx_brB_BFC29360); + psx_taken_BFC29360 = (psx_brA_BFC29360 == psx_brB_BFC29360); /* 0xBFC29364: 00000000 nop */ /* nop */ if (psx_taken_BFC29360) goto label_BFC29460; @@ -132508,7 +136299,7 @@ label_BFC29458: psx_check_interrupts(cpu); /* 0xBFC29458: 100000C1 beq $zero, $zero, 0xBFC29760 */ uint32_t psx_brA_BFC29458 = cpu->gpr[0]; uint32_t psx_brB_BFC29458 = cpu->gpr[0]; - int psx_taken_BFC29458 = (psx_brA_BFC29458 == psx_brB_BFC29458); + psx_taken_BFC29458 = (psx_brA_BFC29458 == psx_brB_BFC29458); /* 0xBFC2945C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC29458) goto label_BFC29760; @@ -132561,7 +136352,7 @@ label_BFC29460: cpu->gpr[5] = cpu->gpr[24] - cpu->gpr[10]; /* 0xBFC294B4: 14400002 bne $v0, $zero, 0xBFC294C0 */ uint32_t psx_brA_BFC294B4 = cpu->gpr[2]; uint32_t psx_brB_BFC294B4 = cpu->gpr[0]; - int psx_taken_BFC294B4 = (psx_brA_BFC294B4 != psx_brB_BFC294B4); + psx_taken_BFC294B4 = (psx_brA_BFC294B4 != psx_brB_BFC294B4); /* 0xBFC294B8: 00000000 nop */ /* nop */ if (psx_taken_BFC294B4) goto label_BFC294C0; @@ -132581,7 +136372,7 @@ label_BFC294C0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC294C4: 14410004 bne $v0, $at, 0xBFC294D8 */ uint32_t psx_brA_BFC294C4 = cpu->gpr[2]; uint32_t psx_brB_BFC294C4 = cpu->gpr[1]; - int psx_taken_BFC294C4 = (psx_brA_BFC294C4 != psx_brB_BFC294C4); + psx_taken_BFC294C4 = (psx_brA_BFC294C4 != psx_brB_BFC294C4); /* 0xBFC294C8: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC294C4) goto label_BFC294D8; @@ -132592,7 +136383,7 @@ label_BFC294CC: psx_check_interrupts(cpu); /* 0xBFC294CC: 15210002 bne $t1, $at, 0xBFC294D8 */ uint32_t psx_brA_BFC294CC = cpu->gpr[9]; uint32_t psx_brB_BFC294CC = cpu->gpr[1]; - int psx_taken_BFC294CC = (psx_brA_BFC294CC != psx_brB_BFC294CC); + psx_taken_BFC294CC = (psx_brA_BFC294CC != psx_brB_BFC294CC); /* 0xBFC294D0: 00000000 nop */ /* nop */ if (psx_taken_BFC294CC) goto label_BFC294D8; @@ -132676,7 +136467,7 @@ label_BFC294E4: cpu->gpr[5] = cpu->gpr[14] + cpu->gpr[9]; /* 0xBFC29550: 14400002 bne $v0, $zero, 0xBFC2955C */ uint32_t psx_brA_BFC29550 = cpu->gpr[2]; uint32_t psx_brB_BFC29550 = cpu->gpr[0]; - int psx_taken_BFC29550 = (psx_brA_BFC29550 != psx_brB_BFC29550); + psx_taken_BFC29550 = (psx_brA_BFC29550 != psx_brB_BFC29550); /* 0xBFC29554: 00000000 nop */ /* nop */ if (psx_taken_BFC29550) goto label_BFC2955C; @@ -132696,7 +136487,7 @@ label_BFC2955C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC29560: 14410004 bne $v0, $at, 0xBFC29574 */ uint32_t psx_brA_BFC29560 = cpu->gpr[2]; uint32_t psx_brB_BFC29560 = cpu->gpr[1]; - int psx_taken_BFC29560 = (psx_brA_BFC29560 != psx_brB_BFC29560); + psx_taken_BFC29560 = (psx_brA_BFC29560 != psx_brB_BFC29560); /* 0xBFC29564: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC29560) goto label_BFC29574; @@ -132707,7 +136498,7 @@ label_BFC29568: psx_check_interrupts(cpu); /* 0xBFC29568: 17210002 bne $t9, $at, 0xBFC29574 */ uint32_t psx_brA_BFC29568 = cpu->gpr[25]; uint32_t psx_brB_BFC29568 = cpu->gpr[1]; - int psx_taken_BFC29568 = (psx_brA_BFC29568 != psx_brB_BFC29568); + psx_taken_BFC29568 = (psx_brA_BFC29568 != psx_brB_BFC29568); /* 0xBFC2956C: 00000000 nop */ /* nop */ if (psx_taken_BFC29568) goto label_BFC29574; @@ -132749,7 +136540,7 @@ label_BFC29574: cpu->gpr[6] = cpu->gpr[24] - cpu->gpr[12]; /* 0xBFC295A4: 14400002 bne $v0, $zero, 0xBFC295B0 */ uint32_t psx_brA_BFC295A4 = cpu->gpr[2]; uint32_t psx_brB_BFC295A4 = cpu->gpr[0]; - int psx_taken_BFC295A4 = (psx_brA_BFC295A4 != psx_brB_BFC295A4); + psx_taken_BFC295A4 = (psx_brA_BFC295A4 != psx_brB_BFC295A4); /* 0xBFC295A8: 00000000 nop */ /* nop */ if (psx_taken_BFC295A4) goto label_BFC295B0; @@ -132769,7 +136560,7 @@ label_BFC295B0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC295B4: 14410004 bne $v0, $at, 0xBFC295C8 */ uint32_t psx_brA_BFC295B4 = cpu->gpr[2]; uint32_t psx_brB_BFC295B4 = cpu->gpr[1]; - int psx_taken_BFC295B4 = (psx_brA_BFC295B4 != psx_brB_BFC295B4); + psx_taken_BFC295B4 = (psx_brA_BFC295B4 != psx_brB_BFC295B4); /* 0xBFC295B8: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC295B4) goto label_BFC295C8; @@ -132780,7 +136571,7 @@ label_BFC295BC: psx_check_interrupts(cpu); /* 0xBFC295BC: 15610002 bne $t3, $at, 0xBFC295C8 */ uint32_t psx_brA_BFC295BC = cpu->gpr[11]; uint32_t psx_brB_BFC295BC = cpu->gpr[1]; - int psx_taken_BFC295BC = (psx_brA_BFC295BC != psx_brB_BFC295BC); + psx_taken_BFC295BC = (psx_brA_BFC295BC != psx_brB_BFC295BC); /* 0xBFC295C0: 00000000 nop */ /* nop */ if (psx_taken_BFC295BC) goto label_BFC295C8; @@ -132860,7 +136651,7 @@ label_BFC295DC: cpu->gpr[5] = cpu->gpr[24] - cpu->gpr[11]; /* 0xBFC29638: 15400002 bne $t2, $zero, 0xBFC29644 */ uint32_t psx_brA_BFC29638 = cpu->gpr[10]; uint32_t psx_brB_BFC29638 = cpu->gpr[0]; - int psx_taken_BFC29638 = (psx_brA_BFC29638 != psx_brB_BFC29638); + psx_taken_BFC29638 = (psx_brA_BFC29638 != psx_brB_BFC29638); /* 0xBFC2963C: 00000000 nop */ /* nop */ if (psx_taken_BFC29638) goto label_BFC29644; @@ -132880,7 +136671,7 @@ label_BFC29644: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC29648: 15410004 bne $t2, $at, 0xBFC2965C */ uint32_t psx_brA_BFC29648 = cpu->gpr[10]; uint32_t psx_brB_BFC29648 = cpu->gpr[1]; - int psx_taken_BFC29648 = (psx_brA_BFC29648 != psx_brB_BFC29648); + psx_taken_BFC29648 = (psx_brA_BFC29648 != psx_brB_BFC29648); /* 0xBFC2964C: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC29648) goto label_BFC2965C; @@ -132891,7 +136682,7 @@ label_BFC29650: psx_check_interrupts(cpu); /* 0xBFC29650: 15210002 bne $t1, $at, 0xBFC2965C */ uint32_t psx_brA_BFC29650 = cpu->gpr[9]; uint32_t psx_brB_BFC29650 = cpu->gpr[1]; - int psx_taken_BFC29650 = (psx_brA_BFC29650 != psx_brB_BFC29650); + psx_taken_BFC29650 = (psx_brA_BFC29650 != psx_brB_BFC29650); /* 0xBFC29654: 00000000 nop */ /* nop */ if (psx_taken_BFC29650) goto label_BFC2965C; @@ -132973,7 +136764,7 @@ label_BFC29664: cpu->gpr[5] = cpu->gpr[25] - cpu->gpr[10]; /* 0xBFC296D0: 14400002 bne $v0, $zero, 0xBFC296DC */ uint32_t psx_brA_BFC296D0 = cpu->gpr[2]; uint32_t psx_brB_BFC296D0 = cpu->gpr[0]; - int psx_taken_BFC296D0 = (psx_brA_BFC296D0 != psx_brB_BFC296D0); + psx_taken_BFC296D0 = (psx_brA_BFC296D0 != psx_brB_BFC296D0); /* 0xBFC296D4: 00000000 nop */ /* nop */ if (psx_taken_BFC296D0) goto label_BFC296DC; @@ -132993,7 +136784,7 @@ label_BFC296DC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC296E0: 14410004 bne $v0, $at, 0xBFC296F4 */ uint32_t psx_brA_BFC296E0 = cpu->gpr[2]; uint32_t psx_brB_BFC296E0 = cpu->gpr[1]; - int psx_taken_BFC296E0 = (psx_brA_BFC296E0 != psx_brB_BFC296E0); + psx_taken_BFC296E0 = (psx_brA_BFC296E0 != psx_brB_BFC296E0); /* 0xBFC296E4: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC296E0) goto label_BFC296F4; @@ -133004,7 +136795,7 @@ label_BFC296E8: psx_check_interrupts(cpu); /* 0xBFC296E8: 15210002 bne $t1, $at, 0xBFC296F4 */ uint32_t psx_brA_BFC296E8 = cpu->gpr[9]; uint32_t psx_brB_BFC296E8 = cpu->gpr[1]; - int psx_taken_BFC296E8 = (psx_brA_BFC296E8 != psx_brB_BFC296E8); + psx_taken_BFC296E8 = (psx_brA_BFC296E8 != psx_brB_BFC296E8); /* 0xBFC296EC: 00000000 nop */ /* nop */ if (psx_taken_BFC296E8) goto label_BFC296F4; @@ -133046,7 +136837,7 @@ label_BFC296F4: cpu->gpr[6] = cpu->gpr[24] + cpu->gpr[13]; /* 0xBFC29724: 14400002 bne $v0, $zero, 0xBFC29730 */ uint32_t psx_brA_BFC29724 = cpu->gpr[2]; uint32_t psx_brB_BFC29724 = cpu->gpr[0]; - int psx_taken_BFC29724 = (psx_brA_BFC29724 != psx_brB_BFC29724); + psx_taken_BFC29724 = (psx_brA_BFC29724 != psx_brB_BFC29724); /* 0xBFC29728: 00000000 nop */ /* nop */ if (psx_taken_BFC29724) goto label_BFC29730; @@ -133066,7 +136857,7 @@ label_BFC29730: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC29734: 14410004 bne $v0, $at, 0xBFC29748 */ uint32_t psx_brA_BFC29734 = cpu->gpr[2]; uint32_t psx_brB_BFC29734 = cpu->gpr[1]; - int psx_taken_BFC29734 = (psx_brA_BFC29734 != psx_brB_BFC29734); + psx_taken_BFC29734 = (psx_brA_BFC29734 != psx_brB_BFC29734); /* 0xBFC29738: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC29734) goto label_BFC29748; @@ -133077,7 +136868,7 @@ label_BFC2973C: psx_check_interrupts(cpu); /* 0xBFC2973C: 15810002 bne $t4, $at, 0xBFC29748 */ uint32_t psx_brA_BFC2973C = cpu->gpr[12]; uint32_t psx_brB_BFC2973C = cpu->gpr[1]; - int psx_taken_BFC2973C = (psx_brA_BFC2973C != psx_brB_BFC2973C); + psx_taken_BFC2973C = (psx_brA_BFC2973C != psx_brB_BFC2973C); /* 0xBFC29740: 00000000 nop */ /* nop */ if (psx_taken_BFC2973C) goto label_BFC29748; @@ -133138,6 +136929,28 @@ void func_1FC29770(CPUState* cpu) { default: break; } } + int psx_taken_BFC29780 = 0; + int psx_taken_BFC29798 = 0; + int psx_taken_BFC29844 = 0; + int psx_taken_BFC29870 = 0; + int psx_taken_BFC29880 = 0; + int psx_taken_BFC29894 = 0; + int psx_taken_BFC298E4 = 0; + int psx_taken_BFC29950 = 0; + int psx_taken_BFC29960 = 0; + int psx_taken_BFC29968 = 0; + int psx_taken_BFC2998C = 0; + int psx_taken_BFC2999C = 0; + int psx_taken_BFC299A4 = 0; + int psx_taken_BFC299D0 = 0; + int psx_taken_BFC299E0 = 0; + int psx_taken_BFC299E8 = 0; + int psx_taken_BFC29A34 = 0; + int psx_taken_BFC29A44 = 0; + int psx_taken_BFC29A4C = 0; + int psx_taken_BFC29A64 = 0; + int psx_taken_BFC29A94 = 0; + int psx_taken_BFC29AAC = 0; label_BFC29770: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -133153,7 +136966,7 @@ label_BFC29770: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2977Cu); return; } g_debug_last_store_pc = 0xBFC2977Cu; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC29780: 15C00007 bne $t6, $zero, 0xBFC297A0 */ uint32_t psx_brA_BFC29780 = cpu->gpr[14]; uint32_t psx_brB_BFC29780 = cpu->gpr[0]; - int psx_taken_BFC29780 = (psx_brA_BFC29780 != psx_brB_BFC29780); + psx_taken_BFC29780 = (psx_brA_BFC29780 != psx_brB_BFC29780); /* 0xBFC29784: AFB20018 sw $s2, 24($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC29784u); return; } g_debug_last_store_pc = 0xBFC29784u; cpu->write_word(psx_addr, cpu->gpr[18]); } if (psx_taken_BFC29780) goto label_BFC297A0; @@ -133172,7 +136985,7 @@ label_BFC29788: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[8] + (16260)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC29794u); return; } cpu->gpr[8] = cpu->read_word(psx_addr); } /* 0xBFC29798: 10000034 beq $zero, $zero, 0xBFC2986C */ uint32_t psx_brA_BFC29798 = cpu->gpr[0]; uint32_t psx_brB_BFC29798 = cpu->gpr[0]; - int psx_taken_BFC29798 = (psx_brA_BFC29798 == psx_brB_BFC29798); + psx_taken_BFC29798 = (psx_brA_BFC29798 == psx_brB_BFC29798); /* 0xBFC2979C: 24120010 addiu $s2, $zero, 16 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); if (psx_taken_BFC29798) goto label_BFC2986C; @@ -133282,7 +137095,7 @@ label_BFC2983C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (8)); /* 0xBFC29844: 1636FFE6 bne $s1, $s6, 0xBFC297E0 */ uint32_t psx_brA_BFC29844 = cpu->gpr[17]; uint32_t psx_brB_BFC29844 = cpu->gpr[22]; - int psx_taken_BFC29844 = (psx_brA_BFC29844 != psx_brB_BFC29844); + psx_taken_BFC29844 = (psx_brA_BFC29844 != psx_brB_BFC29844); /* 0xBFC29848: 26940020 addiu $s4, $s4, 32 */ cpu->gpr[20] = (uint32_t)((int32_t)cpu->gpr[20] + (32)); if (psx_taken_BFC29844) goto label_BFC297E0; @@ -133316,7 +137129,7 @@ label_BFC2986C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (4096) ? 1 : 0); /* 0xBFC29870: 10200003 beq $at, $zero, 0xBFC29880 */ uint32_t psx_brA_BFC29870 = cpu->gpr[1]; uint32_t psx_brB_BFC29870 = cpu->gpr[0]; - int psx_taken_BFC29870 = (psx_brA_BFC29870 == psx_brB_BFC29870); + psx_taken_BFC29870 = (psx_brA_BFC29870 == psx_brB_BFC29870); /* 0xBFC29874: 00E8082A slt $at, $a3, $t0 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[7] < (int32_t)cpu->gpr[8] ? 1 : 0); if (psx_taken_BFC29870) goto label_BFC29880; @@ -133336,7 +137149,7 @@ label_BFC29880: psx_check_interrupts(cpu); /* 0xBFC29880: 10200006 beq $at, $zero, 0xBFC2989C */ uint32_t psx_brA_BFC29880 = cpu->gpr[1]; uint32_t psx_brB_BFC29880 = cpu->gpr[0]; - int psx_taken_BFC29880 = (psx_brA_BFC29880 == psx_brB_BFC29880); + psx_taken_BFC29880 = (psx_brA_BFC29880 == psx_brB_BFC29880); /* 0xBFC29884: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC29880) goto label_BFC2989C; @@ -133353,7 +137166,7 @@ label_BFC29888: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (16264)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC29890u); return; } g_debug_last_store_pc = 0xBFC29890u; cpu->write_word(psx_addr, cpu->gpr[7]); } /* 0xBFC29894: 1000008C beq $zero, $zero, 0xBFC29AC8 */ uint32_t psx_brA_BFC29894 = cpu->gpr[0]; uint32_t psx_brB_BFC29894 = cpu->gpr[0]; - int psx_taken_BFC29894 = (psx_brA_BFC29894 == psx_brB_BFC29894); + psx_taken_BFC29894 = (psx_brA_BFC29894 == psx_brB_BFC29894); /* 0xBFC29898: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC29894) goto label_BFC29AC8; @@ -133410,7 +137223,7 @@ label_BFC298DC: /* nop */ /* 0xBFC298E4: 1040005C beq $v0, $zero, 0xBFC29A58 */ uint32_t psx_brA_BFC298E4 = cpu->gpr[2]; uint32_t psx_brB_BFC298E4 = cpu->gpr[0]; - int psx_taken_BFC298E4 = (psx_brA_BFC298E4 == psx_brB_BFC298E4); + psx_taken_BFC298E4 = (psx_brA_BFC298E4 == psx_brB_BFC298E4); /* 0xBFC298E8: 00000000 nop */ /* nop */ if (psx_taken_BFC298E4) goto label_BFC29A58; @@ -133471,7 +137284,7 @@ label_BFC298EC: cpu->gpr[9] = cpu->gpr[2] >> 5u; /* 0xBFC29950: 14E00002 bne $a3, $zero, 0xBFC2995C */ uint32_t psx_brA_BFC29950 = cpu->gpr[7]; uint32_t psx_brB_BFC29950 = cpu->gpr[0]; - int psx_taken_BFC29950 = (psx_brA_BFC29950 != psx_brB_BFC29950); + psx_taken_BFC29950 = (psx_brA_BFC29950 != psx_brB_BFC29950); /* 0xBFC29954: 00000000 nop */ /* nop */ if (psx_taken_BFC29950) goto label_BFC2995C; @@ -133491,7 +137304,7 @@ label_BFC2995C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC29960: 14E10004 bne $a3, $at, 0xBFC29974 */ uint32_t psx_brA_BFC29960 = cpu->gpr[7]; uint32_t psx_brB_BFC29960 = cpu->gpr[1]; - int psx_taken_BFC29960 = (psx_brA_BFC29960 != psx_brB_BFC29960); + psx_taken_BFC29960 = (psx_brA_BFC29960 != psx_brB_BFC29960); /* 0xBFC29964: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC29960) goto label_BFC29974; @@ -133502,7 +137315,7 @@ label_BFC29968: psx_check_interrupts(cpu); /* 0xBFC29968: 15A10002 bne $t5, $at, 0xBFC29974 */ uint32_t psx_brA_BFC29968 = cpu->gpr[13]; uint32_t psx_brB_BFC29968 = cpu->gpr[1]; - int psx_taken_BFC29968 = (psx_brA_BFC29968 != psx_brB_BFC29968); + psx_taken_BFC29968 = (psx_brA_BFC29968 != psx_brB_BFC29968); /* 0xBFC2996C: 00000000 nop */ /* nop */ if (psx_taken_BFC29968) goto label_BFC29974; @@ -133532,7 +137345,7 @@ label_BFC29974: { int32_t psx_n = (int32_t)cpu->gpr[14]; int32_t psx_d = (int32_t)cpu->gpr[7]; if (psx_d == 0) { cpu->lo = (psx_n >= 0) ? 0xFFFFFFFFu : 0x00000001u; cpu->hi = (uint32_t)psx_n; } else if (psx_n == INT32_MIN && psx_d == -1) { cpu->lo = 0x80000000u; cpu->hi = 0u; } else { int32_t psx_q = psx_n / psx_d; int32_t psx_r = psx_n - (psx_q * psx_d); cpu->lo = (uint32_t)psx_q; cpu->hi = (uint32_t)psx_r; } } /* 0xBFC2998C: 14E00002 bne $a3, $zero, 0xBFC29998 */ uint32_t psx_brA_BFC2998C = cpu->gpr[7]; uint32_t psx_brB_BFC2998C = cpu->gpr[0]; - int psx_taken_BFC2998C = (psx_brA_BFC2998C != psx_brB_BFC2998C); + psx_taken_BFC2998C = (psx_brA_BFC2998C != psx_brB_BFC2998C); /* 0xBFC29990: 00000000 nop */ /* nop */ if (psx_taken_BFC2998C) goto label_BFC29998; @@ -133552,7 +137365,7 @@ label_BFC29998: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2999C: 14E10004 bne $a3, $at, 0xBFC299B0 */ uint32_t psx_brA_BFC2999C = cpu->gpr[7]; uint32_t psx_brB_BFC2999C = cpu->gpr[1]; - int psx_taken_BFC2999C = (psx_brA_BFC2999C != psx_brB_BFC2999C); + psx_taken_BFC2999C = (psx_brA_BFC2999C != psx_brB_BFC2999C); /* 0xBFC299A0: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC2999C) goto label_BFC299B0; @@ -133563,7 +137376,7 @@ label_BFC299A4: psx_check_interrupts(cpu); /* 0xBFC299A4: 15E10002 bne $t7, $at, 0xBFC299B0 */ uint32_t psx_brA_BFC299A4 = cpu->gpr[15]; uint32_t psx_brB_BFC299A4 = cpu->gpr[1]; - int psx_taken_BFC299A4 = (psx_brA_BFC299A4 != psx_brB_BFC299A4); + psx_taken_BFC299A4 = (psx_brA_BFC299A4 != psx_brB_BFC299A4); /* 0xBFC299A8: 00000000 nop */ /* nop */ if (psx_taken_BFC299A4) goto label_BFC299B0; @@ -133597,7 +137410,7 @@ label_BFC299B0: cpu->gpr[2] = cpu->gpr[2] & 0xFFFFu; /* 0xBFC299D0: 14E00002 bne $a3, $zero, 0xBFC299DC */ uint32_t psx_brA_BFC299D0 = cpu->gpr[7]; uint32_t psx_brB_BFC299D0 = cpu->gpr[0]; - int psx_taken_BFC299D0 = (psx_brA_BFC299D0 != psx_brB_BFC299D0); + psx_taken_BFC299D0 = (psx_brA_BFC299D0 != psx_brB_BFC299D0); /* 0xBFC299D4: 00000000 nop */ /* nop */ if (psx_taken_BFC299D0) goto label_BFC299DC; @@ -133617,7 +137430,7 @@ label_BFC299DC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC299E0: 14E10004 bne $a3, $at, 0xBFC299F4 */ uint32_t psx_brA_BFC299E0 = cpu->gpr[7]; uint32_t psx_brB_BFC299E0 = cpu->gpr[1]; - int psx_taken_BFC299E0 = (psx_brA_BFC299E0 != psx_brB_BFC299E0); + psx_taken_BFC299E0 = (psx_brA_BFC299E0 != psx_brB_BFC299E0); /* 0xBFC299E4: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC299E0) goto label_BFC299F4; @@ -133628,7 +137441,7 @@ label_BFC299E8: psx_check_interrupts(cpu); /* 0xBFC299E8: 15C10002 bne $t6, $at, 0xBFC299F4 */ uint32_t psx_brA_BFC299E8 = cpu->gpr[14]; uint32_t psx_brB_BFC299E8 = cpu->gpr[1]; - int psx_taken_BFC299E8 = (psx_brA_BFC299E8 != psx_brB_BFC299E8); + psx_taken_BFC299E8 = (psx_brA_BFC299E8 != psx_brB_BFC299E8); /* 0xBFC299EC: 00000000 nop */ /* nop */ if (psx_taken_BFC299E8) goto label_BFC299F4; @@ -133678,7 +137491,7 @@ label_BFC299F4: cpu->gpr[2] = cpu->gpr[2] & 0xFFFFu; /* 0xBFC29A34: 14E00002 bne $a3, $zero, 0xBFC29A40 */ uint32_t psx_brA_BFC29A34 = cpu->gpr[7]; uint32_t psx_brB_BFC29A34 = cpu->gpr[0]; - int psx_taken_BFC29A34 = (psx_brA_BFC29A34 != psx_brB_BFC29A34); + psx_taken_BFC29A34 = (psx_brA_BFC29A34 != psx_brB_BFC29A34); /* 0xBFC29A38: 00000000 nop */ /* nop */ if (psx_taken_BFC29A34) goto label_BFC29A40; @@ -133698,7 +137511,7 @@ label_BFC29A40: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC29A44: 14E10004 bne $a3, $at, 0xBFC29A58 */ uint32_t psx_brA_BFC29A44 = cpu->gpr[7]; uint32_t psx_brB_BFC29A44 = cpu->gpr[1]; - int psx_taken_BFC29A44 = (psx_brA_BFC29A44 != psx_brB_BFC29A44); + psx_taken_BFC29A44 = (psx_brA_BFC29A44 != psx_brB_BFC29A44); /* 0xBFC29A48: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC29A44) goto label_BFC29A58; @@ -133709,7 +137522,7 @@ label_BFC29A4C: psx_check_interrupts(cpu); /* 0xBFC29A4C: 15E10002 bne $t7, $at, 0xBFC29A58 */ uint32_t psx_brA_BFC29A4C = cpu->gpr[15]; uint32_t psx_brB_BFC29A4C = cpu->gpr[1]; - int psx_taken_BFC29A4C = (psx_brA_BFC29A4C != psx_brB_BFC29A4C); + psx_taken_BFC29A4C = (psx_brA_BFC29A4C != psx_brB_BFC29A4C); /* 0xBFC29A50: 00000000 nop */ /* nop */ if (psx_taken_BFC29A4C) goto label_BFC29A58; @@ -133733,7 +137546,7 @@ label_BFC29A58: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (2)); /* 0xBFC29A64: 1492FF9D bne $a0, $s2, 0xBFC298DC */ uint32_t psx_brA_BFC29A64 = cpu->gpr[4]; uint32_t psx_brB_BFC29A64 = cpu->gpr[18]; - int psx_taken_BFC29A64 = (psx_brA_BFC29A64 != psx_brB_BFC29A64); + psx_taken_BFC29A64 = (psx_brA_BFC29A64 != psx_brB_BFC29A64); /* 0xBFC29A68: 24C60002 addiu $a2, $a2, 2 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (2)); if (psx_taken_BFC29A64) goto label_BFC298DC; @@ -133770,7 +137583,7 @@ label_BFC29A88: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (8)); /* 0xBFC29A94: 10200007 beq $at, $zero, 0xBFC29AB4 */ uint32_t psx_brA_BFC29A94 = cpu->gpr[1]; uint32_t psx_brB_BFC29A94 = cpu->gpr[0]; - int psx_taken_BFC29A94 = (psx_brA_BFC29A94 == psx_brB_BFC29A94); + psx_taken_BFC29A94 = (psx_brA_BFC29A94 == psx_brB_BFC29A94); /* 0xBFC29A98: 26940020 addiu $s4, $s4, 32 */ cpu->gpr[20] = (uint32_t)((int32_t)cpu->gpr[20] + (32)); if (psx_taken_BFC29A94) goto label_BFC29AB4; @@ -133789,7 +137602,7 @@ label_BFC29A9C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[8] + (16260)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC29AA8u); return; } cpu->gpr[8] = cpu->read_word(psx_addr); } /* 0xBFC29AAC: 1000FF89 beq $zero, $zero, 0xBFC298D4 */ uint32_t psx_brA_BFC29AAC = cpu->gpr[0]; uint32_t psx_brB_BFC29AAC = cpu->gpr[0]; - int psx_taken_BFC29AAC = (psx_brA_BFC29AAC == psx_brB_BFC29AAC); + psx_taken_BFC29AAC = (psx_brA_BFC29AAC == psx_brB_BFC29AAC); /* 0xBFC29AB0: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC29AAC) goto label_BFC298D4; @@ -133866,6 +137679,19 @@ void func_1FC29AE0(CPUState* cpu) { default: break; } } + int psx_taken_BFC29B30 = 0; + int psx_taken_BFC29BD4 = 0; + int psx_taken_BFC29D18 = 0; + int psx_taken_BFC29D24 = 0; + int psx_taken_BFC29D30 = 0; + int psx_taken_BFC29D38 = 0; + int psx_taken_BFC29D94 = 0; + int psx_taken_BFC29DE4 = 0; + int psx_taken_BFC29ED8 = 0; + int psx_taken_BFC29EE4 = 0; + int psx_taken_BFC29EEC = 0; + int psx_taken_BFC29F54 = 0; + int psx_taken_BFC29FA8 = 0; label_BFC29AE0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -133925,7 +137751,7 @@ label_BFC29B30: psx_check_interrupts(cpu); /* 0xBFC29B30: 12000003 beq $s0, $zero, 0xBFC29B40 */ uint32_t psx_brA_BFC29B30 = cpu->gpr[16]; uint32_t psx_brB_BFC29B30 = cpu->gpr[0]; - int psx_taken_BFC29B30 = (psx_brA_BFC29B30 == psx_brB_BFC29B30); + psx_taken_BFC29B30 = (psx_brA_BFC29B30 == psx_brB_BFC29B30); /* 0xBFC29B34: AFA200A8 sw $v0, 168($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC29B34u); return; } g_debug_last_store_pc = 0xBFC29B34u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC29B30) goto label_BFC29B40; @@ -134044,7 +137870,7 @@ label_BFC29BC0: cpu->gpr[1] = 0x800F0000u; /* 0xBFC29BD4: 11000017 beq $t0, $zero, 0xBFC29C34 */ uint32_t psx_brA_BFC29BD4 = cpu->gpr[8]; uint32_t psx_brB_BFC29BD4 = cpu->gpr[0]; - int psx_taken_BFC29BD4 = (psx_brA_BFC29BD4 == psx_brB_BFC29BD4); + psx_taken_BFC29BD4 = (psx_brA_BFC29BD4 == psx_brB_BFC29BD4); /* 0xBFC29BD8: A020A87F sb $zero, -22401($at) */ g_debug_last_store_pc = 0xBFC29BD8u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[1] + (-22401)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC29BD4) goto label_BFC29C34; @@ -134296,7 +138122,7 @@ label_BFC29D08: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (-22424)); /* 0xBFC29D18: 16020005 bne $s0, $v0, 0xBFC29D30 */ uint32_t psx_brA_BFC29D18 = cpu->gpr[16]; uint32_t psx_brB_BFC29D18 = cpu->gpr[2]; - int psx_taken_BFC29D18 = (psx_brA_BFC29D18 != psx_brB_BFC29D18); + psx_taken_BFC29D18 = (psx_brA_BFC29D18 != psx_brB_BFC29D18); /* 0xBFC29D1C: 00408021 addu $s0, $v0, $zero */ cpu->gpr[16] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC29D18) goto label_BFC29D30; @@ -134309,7 +138135,7 @@ label_BFC29D20: cpu->gpr[16] = 0x800F0000u; /* 0xBFC29D24: 10000002 beq $zero, $zero, 0xBFC29D30 */ uint32_t psx_brA_BFC29D24 = cpu->gpr[0]; uint32_t psx_brB_BFC29D24 = cpu->gpr[0]; - int psx_taken_BFC29D24 = (psx_brA_BFC29D24 == psx_brB_BFC29D24); + psx_taken_BFC29D24 = (psx_brA_BFC29D24 == psx_brB_BFC29D24); /* 0xBFC29D28: 2610BC88 addiu $s0, $s0, -17272 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-17272)); if (psx_taken_BFC29D24) goto label_BFC29D30; @@ -134327,7 +138153,7 @@ label_BFC29D30: psx_check_interrupts(cpu); /* 0xBFC29D30: 16020004 bne $s0, $v0, 0xBFC29D44 */ uint32_t psx_brA_BFC29D30 = cpu->gpr[16]; uint32_t psx_brB_BFC29D30 = cpu->gpr[2]; - int psx_taken_BFC29D30 = (psx_brA_BFC29D30 != psx_brB_BFC29D30); + psx_taken_BFC29D30 = (psx_brA_BFC29D30 != psx_brB_BFC29D30); /* 0xBFC29D34: 24190001 addiu $t9, $zero, 1 */ cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC29D30) goto label_BFC29D44; @@ -134338,7 +138164,7 @@ label_BFC29D38: psx_check_interrupts(cpu); /* 0xBFC29D38: 10000003 beq $zero, $zero, 0xBFC29D48 */ uint32_t psx_brA_BFC29D38 = cpu->gpr[0]; uint32_t psx_brB_BFC29D38 = cpu->gpr[0]; - int psx_taken_BFC29D38 = (psx_brA_BFC29D38 == psx_brB_BFC29D38); + psx_taken_BFC29D38 = (psx_brA_BFC29D38 == psx_brB_BFC29D38); /* 0xBFC29D3C: AFA000A4 sw $zero, 164($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (164)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC29D3Cu); return; } g_debug_last_store_pc = 0xBFC29D3Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC29D38) goto label_BFC29D48; @@ -134425,7 +138251,7 @@ label_BFC29D84: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (60) ? 1 : 0); /* 0xBFC29D94: 14200081 bne $at, $zero, 0xBFC29F9C */ uint32_t psx_brA_BFC29D94 = cpu->gpr[1]; uint32_t psx_brB_BFC29D94 = cpu->gpr[0]; - int psx_taken_BFC29D94 = (psx_brA_BFC29D94 != psx_brB_BFC29D94); + psx_taken_BFC29D94 = (psx_brA_BFC29D94 != psx_brB_BFC29D94); /* 0xBFC29D98: 24420001 addiu $v0, $v0, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); if (psx_taken_BFC29D94) goto label_BFC29F9C; @@ -134490,7 +138316,7 @@ label_BFC29DDC: /* nop */ /* 0xBFC29DE4: 1900005D blez $t0, 0xBFC29F5C */ uint32_t psx_brA_BFC29DE4 = cpu->gpr[8]; - int psx_taken_BFC29DE4 = ((int32_t)psx_brA_BFC29DE4 <= 0); + psx_taken_BFC29DE4 = ((int32_t)psx_brA_BFC29DE4 <= 0); /* 0xBFC29DE8: 00000000 nop */ /* nop */ if (psx_taken_BFC29DE4) goto label_BFC29F5C; @@ -134636,7 +138462,7 @@ label_BFC29ECC: cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[8] >> 2u); /* 0xBFC29ED8: 1920000D blez $t1, 0xBFC29F10 */ uint32_t psx_brA_BFC29ED8 = cpu->gpr[9]; - int psx_taken_BFC29ED8 = ((int32_t)psx_brA_BFC29ED8 <= 0); + psx_taken_BFC29ED8 = ((int32_t)psx_brA_BFC29ED8 <= 0); /* 0xBFC29EDC: AFA900A0 sw $t1, 160($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (160)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC29EDCu); return; } g_debug_last_store_pc = 0xBFC29EDCu; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC29ED8) goto label_BFC29F10; @@ -134649,7 +138475,7 @@ label_BFC29EE0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (1024) ? 1 : 0); /* 0xBFC29EE4: 1020000B beq $at, $zero, 0xBFC29F14 */ uint32_t psx_brA_BFC29EE4 = cpu->gpr[1]; uint32_t psx_brB_BFC29EE4 = cpu->gpr[0]; - int psx_taken_BFC29EE4 = (psx_brA_BFC29EE4 == psx_brB_BFC29EE4); + psx_taken_BFC29EE4 = (psx_brA_BFC29EE4 == psx_brB_BFC29EE4); /* 0xBFC29EE8: 8FA200AC lw $v0, 172($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (172)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC29EE8u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC29EE4) goto label_BFC29F14; @@ -134660,7 +138486,7 @@ label_BFC29EEC: psx_check_interrupts(cpu); /* 0xBFC29EEC: 1A000009 blez $s0, 0xBFC29F14 */ uint32_t psx_brA_BFC29EEC = cpu->gpr[16]; - int psx_taken_BFC29EEC = ((int32_t)psx_brA_BFC29EEC <= 0); + psx_taken_BFC29EEC = ((int32_t)psx_brA_BFC29EEC <= 0); /* 0xBFC29EF0: 8FA200AC lw $v0, 172($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (172)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC29EF0u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC29EEC) goto label_BFC29F14; @@ -134730,7 +138556,7 @@ label_BFC29F14: cpu->gpr[23] = (uint32_t)((int32_t)cpu->gpr[23] + (20)); /* 0xBFC29F54: 144FFFC9 bne $v0, $t7, 0xBFC29E7C */ uint32_t psx_brA_BFC29F54 = cpu->gpr[2]; uint32_t psx_brB_BFC29F54 = cpu->gpr[15]; - int psx_taken_BFC29F54 = (psx_brA_BFC29F54 != psx_brB_BFC29F54); + psx_taken_BFC29F54 = (psx_brA_BFC29F54 != psx_brB_BFC29F54); /* 0xBFC29F58: 27DE0024 addiu $fp, $fp, 36 */ cpu->gpr[30] = (uint32_t)((int32_t)cpu->gpr[30] + (36)); if (psx_taken_BFC29F54) goto label_BFC29E7C; @@ -134802,7 +138628,7 @@ label_BFC29F9C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (91) ? 1 : 0); /* 0xBFC29FA8: 1420FF57 bne $at, $zero, 0xBFC29D08 */ uint32_t psx_brA_BFC29FA8 = cpu->gpr[1]; uint32_t psx_brB_BFC29FA8 = cpu->gpr[0]; - int psx_taken_BFC29FA8 = (psx_brA_BFC29FA8 != psx_brB_BFC29FA8); + psx_taken_BFC29FA8 = (psx_brA_BFC29FA8 != psx_brB_BFC29FA8); /* 0xBFC29FAC: 00000000 nop */ /* nop */ if (psx_taken_BFC29FA8) goto label_BFC29D08; @@ -134849,6 +138675,13 @@ label_BFC29FB8: void func_1FC29FE8(CPUState* cpu) { debug_server_log_call_entry(0x1FC29FE8u); + int psx_taken_BFC2A01C = 0; + int psx_taken_BFC2A060 = 0; + int psx_taken_BFC2A150 = 0; + int psx_taken_BFC2A2C0 = 0; + int psx_taken_BFC2A2C8 = 0; + int psx_taken_BFC2A2D0 = 0; + int psx_taken_BFC2A2DC = 0; label_BFC29FE8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -134882,7 +138715,7 @@ label_BFC29FE8: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (28)); /* 0xBFC2A01C: 1A2000BB blez $s1, 0xBFC2A30C */ uint32_t psx_brA_BFC2A01C = cpu->gpr[17]; - int psx_taken_BFC2A01C = ((int32_t)psx_brA_BFC2A01C <= 0); + psx_taken_BFC2A01C = ((int32_t)psx_brA_BFC2A01C <= 0); /* 0xBFC2A020: 00004821 addu $t1, $zero, $zero */ cpu->gpr[9] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2A01C) goto label_BFC2A30C; @@ -134928,7 +138761,7 @@ label_BFC2A05C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2A05Cu); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } /* 0xBFC2A060: 10000099 beq $zero, $zero, 0xBFC2A2C8 */ uint32_t psx_brA_BFC2A060 = cpu->gpr[0]; uint32_t psx_brB_BFC2A060 = cpu->gpr[0]; - int psx_taken_BFC2A060 = (psx_brA_BFC2A060 == psx_brB_BFC2A060); + psx_taken_BFC2A060 = (psx_brA_BFC2A060 == psx_brB_BFC2A060); /* 0xBFC2A064: 00021602 srl $v0, $v0, 24 */ cpu->gpr[2] = cpu->gpr[2] >> 24u; if (psx_taken_BFC2A060) goto label_BFC2A2C8; @@ -135055,7 +138888,7 @@ label_BFC2A068: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (-12)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2A14Cu); return; } cpu->gpr[25] = cpu->read_word(psx_addr); } /* 0xBFC2A150: 10000061 beq $zero, $zero, 0xBFC2A2D8 */ uint32_t psx_brA_BFC2A150 = cpu->gpr[0]; uint32_t psx_brB_BFC2A150 = cpu->gpr[0]; - int psx_taken_BFC2A150 = (psx_brA_BFC2A150 == psx_brB_BFC2A150); + psx_taken_BFC2A150 = (psx_brA_BFC2A150 == psx_brB_BFC2A150); /* 0xBFC2A154: AC590020 sw $t9, 32($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2A154u); return; } g_debug_last_store_pc = 0xBFC2A154u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC2A150) goto label_BFC2A2D8; @@ -135246,7 +139079,7 @@ label_BFC2A158: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2A2BCu); return; } g_debug_last_store_pc = 0xBFC2A2BCu; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC2A2C0: 10000005 beq $zero, $zero, 0xBFC2A2D8 */ uint32_t psx_brA_BFC2A2C0 = cpu->gpr[0]; uint32_t psx_brB_BFC2A2C0 = cpu->gpr[0]; - int psx_taken_BFC2A2C0 = (psx_brA_BFC2A2C0 == psx_brB_BFC2A2C0); + psx_taken_BFC2A2C0 = (psx_brA_BFC2A2C0 == psx_brB_BFC2A2C0); /* 0xBFC2A2C4: A0500023 sb $s0, 35($v0) */ g_debug_last_store_pc = 0xBFC2A2C4u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (35)), (uint8_t)(cpu->gpr[16] & 0xFFu)); if (psx_taken_BFC2A2C0) goto label_BFC2A2D8; @@ -135257,7 +139090,7 @@ label_BFC2A2C8: psx_check_interrupts(cpu); /* 0xBFC2A2C8: 104CFF67 beq $v0, $t4, 0xBFC2A068 */ uint32_t psx_brA_BFC2A2C8 = cpu->gpr[2]; uint32_t psx_brB_BFC2A2C8 = cpu->gpr[12]; - int psx_taken_BFC2A2C8 = (psx_brA_BFC2A2C8 == psx_brB_BFC2A2C8); + psx_taken_BFC2A2C8 = (psx_brA_BFC2A2C8 == psx_brB_BFC2A2C8); /* 0xBFC2A2CC: 00000000 nop */ /* nop */ if (psx_taken_BFC2A2C8) goto label_BFC2A068; @@ -135268,7 +139101,7 @@ label_BFC2A2D0: psx_check_interrupts(cpu); /* 0xBFC2A2D0: 104DFFA1 beq $v0, $t5, 0xBFC2A158 */ uint32_t psx_brA_BFC2A2D0 = cpu->gpr[2]; uint32_t psx_brB_BFC2A2D0 = cpu->gpr[13]; - int psx_taken_BFC2A2D0 = (psx_brA_BFC2A2D0 == psx_brB_BFC2A2D0); + psx_taken_BFC2A2D0 = (psx_brA_BFC2A2D0 == psx_brB_BFC2A2D0); /* 0xBFC2A2D4: 00000000 nop */ /* nop */ if (psx_taken_BFC2A2D0) goto label_BFC2A158; @@ -135281,7 +139114,7 @@ label_BFC2A2D8: cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[9] + (1)); /* 0xBFC2A2DC: 1531FF5F bne $t1, $s1, 0xBFC2A05C */ uint32_t psx_brA_BFC2A2DC = cpu->gpr[9]; uint32_t psx_brB_BFC2A2DC = cpu->gpr[17]; - int psx_taken_BFC2A2DC = (psx_brA_BFC2A2DC != psx_brB_BFC2A2DC); + psx_taken_BFC2A2DC = (psx_brA_BFC2A2DC != psx_brB_BFC2A2DC); /* 0xBFC2A2E0: 00000000 nop */ /* nop */ if (psx_taken_BFC2A2DC) goto label_BFC2A05C; @@ -135336,6 +139169,9 @@ void func_1FC2A31C(CPUState* cpu) { default: break; } } + int psx_taken_BFC2A3B8 = 0; + int psx_taken_BFC2A3C0 = 0; + int psx_taken_BFC2A404 = 0; label_BFC2A31C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -135432,7 +139268,7 @@ label_BFC2A3B8: psx_check_interrupts(cpu); /* 0xBFC2A3B8: 16320004 bne $s1, $s2, 0xBFC2A3CC */ uint32_t psx_brA_BFC2A3B8 = cpu->gpr[17]; uint32_t psx_brB_BFC2A3B8 = cpu->gpr[18]; - int psx_taken_BFC2A3B8 = (psx_brA_BFC2A3B8 != psx_brB_BFC2A3B8); + psx_taken_BFC2A3B8 = (psx_brA_BFC2A3B8 != psx_brB_BFC2A3B8); /* 0xBFC2A3BC: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC2A3B8) goto label_BFC2A3CC; @@ -135443,7 +139279,7 @@ label_BFC2A3C0: psx_check_interrupts(cpu); /* 0xBFC2A3C0: 10000002 beq $zero, $zero, 0xBFC2A3CC */ uint32_t psx_brA_BFC2A3C0 = cpu->gpr[0]; uint32_t psx_brB_BFC2A3C0 = cpu->gpr[0]; - int psx_taken_BFC2A3C0 = (psx_brA_BFC2A3C0 == psx_brB_BFC2A3C0); + psx_taken_BFC2A3C0 = (psx_brA_BFC2A3C0 == psx_brB_BFC2A3C0); /* 0xBFC2A3C4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2A3C0) goto label_BFC2A3CC; @@ -135495,7 +139331,7 @@ label_BFC2A400: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC2A404: 1614FFEC bne $s0, $s4, 0xBFC2A3B8 */ uint32_t psx_brA_BFC2A404 = cpu->gpr[16]; uint32_t psx_brB_BFC2A404 = cpu->gpr[20]; - int psx_taken_BFC2A404 = (psx_brA_BFC2A404 != psx_brB_BFC2A404); + psx_taken_BFC2A404 = (psx_brA_BFC2A404 != psx_brB_BFC2A404); /* 0xBFC2A408: 00000000 nop */ /* nop */ if (psx_taken_BFC2A404) goto label_BFC2A3B8; @@ -135538,6 +139374,49 @@ void func_1FC2A4E0(CPUState* cpu) { default: break; } } + int psx_taken_BFC2A564 = 0; + int psx_taken_BFC2A578 = 0; + int psx_taken_BFC2A580 = 0; + int psx_taken_BFC2A598 = 0; + int psx_taken_BFC2A5A4 = 0; + int psx_taken_BFC2A5AC = 0; + int psx_taken_BFC2A5C4 = 0; + int psx_taken_BFC2A5D8 = 0; + int psx_taken_BFC2A5E0 = 0; + int psx_taken_BFC2A5F0 = 0; + int psx_taken_BFC2A5F8 = 0; + int psx_taken_BFC2A614 = 0; + int psx_taken_BFC2A624 = 0; + int psx_taken_BFC2A630 = 0; + int psx_taken_BFC2A64C = 0; + int psx_taken_BFC2A660 = 0; + int psx_taken_BFC2A698 = 0; + int psx_taken_BFC2A6A0 = 0; + int psx_taken_BFC2A6D0 = 0; + int psx_taken_BFC2A6F8 = 0; + int psx_taken_BFC2A87C = 0; + int psx_taken_BFC2A99C = 0; + int psx_taken_BFC2A9AC = 0; + int psx_taken_BFC2A9B4 = 0; + int psx_taken_BFC2A9C4 = 0; + int psx_taken_BFC2A9CC = 0; + int psx_taken_BFC2A9DC = 0; + int psx_taken_BFC2A9EC = 0; + int psx_taken_BFC2A9F8 = 0; + int psx_taken_BFC2AAB8 = 0; + int psx_taken_BFC2AAC0 = 0; + int psx_taken_BFC2AAC8 = 0; + int psx_taken_BFC2AAD0 = 0; + int psx_taken_BFC2AAF8 = 0; + int psx_taken_BFC2AB08 = 0; + int psx_taken_BFC2AB18 = 0; + int psx_taken_BFC2AB20 = 0; + int psx_taken_BFC2AB30 = 0; + int psx_taken_BFC2AB80 = 0; + int psx_taken_BFC2AB88 = 0; + int psx_taken_BFC2AB94 = 0; + int psx_taken_BFC2ABCC = 0; + int psx_taken_BFC2ABEC = 0; label_BFC2A4E0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(28u); @@ -135623,7 +139502,7 @@ label_BFC2A55C: /* nop */ /* 0xBFC2A564: 10800051 beq $a0, $zero, 0xBFC2A6AC */ uint32_t psx_brA_BFC2A564 = cpu->gpr[4]; uint32_t psx_brB_BFC2A564 = cpu->gpr[0]; - int psx_taken_BFC2A564 = (psx_brA_BFC2A564 == psx_brB_BFC2A564); + psx_taken_BFC2A564 = (psx_brA_BFC2A564 == psx_brB_BFC2A564); /* 0xBFC2A568: 3C140001 lui $s4, 0x1 */ cpu->gpr[20] = 0x00010000u; if (psx_taken_BFC2A564) goto label_BFC2A6AC; @@ -135645,7 +139524,7 @@ label_BFC2A578: psx_check_interrupts(cpu); /* 0xBFC2A578: 1684000A bne $s4, $a0, 0xBFC2A5A4 */ uint32_t psx_brA_BFC2A578 = cpu->gpr[20]; uint32_t psx_brB_BFC2A578 = cpu->gpr[4]; - int psx_taken_BFC2A578 = (psx_brA_BFC2A578 != psx_brB_BFC2A578); + psx_taken_BFC2A578 = (psx_brA_BFC2A578 != psx_brB_BFC2A578); /* 0xBFC2A57C: 2C810081 sltiu $at, $a0, 129 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < 0x00000081u ? 1 : 0); if (psx_taken_BFC2A578) goto label_BFC2A5A4; @@ -135656,7 +139535,7 @@ label_BFC2A580: psx_check_interrupts(cpu); /* 0xBFC2A580: 06C10002 bgez $s6, 0xBFC2A58C */ uint32_t psx_brA_BFC2A580 = cpu->gpr[22]; - int psx_taken_BFC2A580 = ((int32_t)psx_brA_BFC2A580 >= 0); + psx_taken_BFC2A580 = ((int32_t)psx_brA_BFC2A580 >= 0); /* 0xBFC2A584: 02C00821 addu $at, $s6, $zero */ cpu->gpr[1] = cpu->gpr[22] + cpu->gpr[0]; if (psx_taken_BFC2A580) goto label_BFC2A58C; @@ -135680,7 +139559,7 @@ label_BFC2A58C: cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[22] + (16)); /* 0xBFC2A598: 1000003D beq $zero, $zero, 0xBFC2A690 */ uint32_t psx_brA_BFC2A598 = cpu->gpr[0]; uint32_t psx_brB_BFC2A598 = cpu->gpr[0]; - int psx_taken_BFC2A598 = (psx_brA_BFC2A598 == psx_brB_BFC2A598); + psx_taken_BFC2A598 = (psx_brA_BFC2A598 == psx_brB_BFC2A598); /* 0xBFC2A59C: 26730001 addiu $s3, $s3, 1 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (1)); if (psx_taken_BFC2A598) goto label_BFC2A690; @@ -135698,7 +139577,7 @@ label_BFC2A5A4: psx_check_interrupts(cpu); /* 0xBFC2A5A4: 14200009 bne $at, $zero, 0xBFC2A5CC */ uint32_t psx_brA_BFC2A5A4 = cpu->gpr[1]; uint32_t psx_brB_BFC2A5A4 = cpu->gpr[0]; - int psx_taken_BFC2A5A4 = (psx_brA_BFC2A5A4 != psx_brB_BFC2A5A4); + psx_taken_BFC2A5A4 = (psx_brA_BFC2A5A4 != psx_brB_BFC2A5A4); /* 0xBFC2A5A8: 2C810099 sltiu $at, $a0, 153 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < 0x00000099u ? 1 : 0); if (psx_taken_BFC2A5A4) goto label_BFC2A5CC; @@ -135709,7 +139588,7 @@ label_BFC2A5AC: psx_check_interrupts(cpu); /* 0xBFC2A5AC: 10200007 beq $at, $zero, 0xBFC2A5CC */ uint32_t psx_brA_BFC2A5AC = cpu->gpr[1]; uint32_t psx_brB_BFC2A5AC = cpu->gpr[0]; - int psx_taken_BFC2A5AC = (psx_brA_BFC2A5AC == psx_brB_BFC2A5AC); + psx_taken_BFC2A5AC = (psx_brA_BFC2A5AC == psx_brB_BFC2A5AC); /* 0xBFC2A5B0: 00000000 nop */ /* nop */ if (psx_taken_BFC2A5AC) goto label_BFC2A5CC; @@ -135728,7 +139607,7 @@ label_BFC2A5B4: cpu->gpr[5] = cpu->gpr[5] & 0xFFFFu; /* 0xBFC2A5C4: 10000009 beq $zero, $zero, 0xBFC2A5EC */ uint32_t psx_brA_BFC2A5C4 = cpu->gpr[0]; uint32_t psx_brB_BFC2A5C4 = cpu->gpr[0]; - int psx_taken_BFC2A5C4 = (psx_brA_BFC2A5C4 == psx_brB_BFC2A5C4); + psx_taken_BFC2A5C4 = (psx_brA_BFC2A5C4 == psx_brB_BFC2A5C4); /* 0xBFC2A5C8: 26730002 addiu $s3, $s3, 2 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (2)); if (psx_taken_BFC2A5C4) goto label_BFC2A5EC; @@ -135751,7 +139630,7 @@ label_BFC2A5D4: cpu->gpr[24] = cpu->gpr[2] & 0xFFFFu; /* 0xBFC2A5D8: 17000003 bne $t8, $zero, 0xBFC2A5E8 */ uint32_t psx_brA_BFC2A5D8 = cpu->gpr[24]; uint32_t psx_brB_BFC2A5D8 = cpu->gpr[0]; - int psx_taken_BFC2A5D8 = (psx_brA_BFC2A5D8 != psx_brB_BFC2A5D8); + psx_taken_BFC2A5D8 = (psx_brA_BFC2A5D8 != psx_brB_BFC2A5D8); /* 0xBFC2A5DC: 3045FFFF andi $a1, $v0, 0xFFFF */ cpu->gpr[5] = cpu->gpr[2] & 0xFFFFu; if (psx_taken_BFC2A5D8) goto label_BFC2A5E8; @@ -135762,7 +139641,7 @@ label_BFC2A5E0: psx_check_interrupts(cpu); /* 0xBFC2A5E0: 10000185 beq $zero, $zero, 0xBFC2ABF8 */ uint32_t psx_brA_BFC2A5E0 = cpu->gpr[0]; uint32_t psx_brB_BFC2A5E0 = cpu->gpr[0]; - int psx_taken_BFC2A5E0 = (psx_brA_BFC2A5E0 == psx_brB_BFC2A5E0); + psx_taken_BFC2A5E0 = (psx_brA_BFC2A5E0 == psx_brB_BFC2A5E0); /* 0xBFC2A5E4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC2A5E0) goto label_BFC2ABF8; @@ -135782,7 +139661,7 @@ label_BFC2A5EC: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[21] ? 1 : 0); /* 0xBFC2A5F0: 1420000A bne $at, $zero, 0xBFC2A61C */ uint32_t psx_brA_BFC2A5F0 = cpu->gpr[1]; uint32_t psx_brB_BFC2A5F0 = cpu->gpr[0]; - int psx_taken_BFC2A5F0 = (psx_brA_BFC2A5F0 != psx_brB_BFC2A5F0); + psx_taken_BFC2A5F0 = (psx_brA_BFC2A5F0 != psx_brB_BFC2A5F0); /* 0xBFC2A5F4: 00B7082B sltu $at, $a1, $s7 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[23] ? 1 : 0); if (psx_taken_BFC2A5F0) goto label_BFC2A61C; @@ -135793,7 +139672,7 @@ label_BFC2A5F8: psx_check_interrupts(cpu); /* 0xBFC2A5F8: 10200008 beq $at, $zero, 0xBFC2A61C */ uint32_t psx_brA_BFC2A5F8 = cpu->gpr[1]; uint32_t psx_brB_BFC2A5F8 = cpu->gpr[0]; - int psx_taken_BFC2A5F8 = (psx_brA_BFC2A5F8 == psx_brB_BFC2A5F8); + psx_taken_BFC2A5F8 = (psx_brA_BFC2A5F8 == psx_brB_BFC2A5F8); /* 0xBFC2A5FC: 3C010001 lui $at, 0x1 */ cpu->gpr[1] = 0x00010000u; if (psx_taken_BFC2A5F8) goto label_BFC2A61C; @@ -135814,7 +139693,7 @@ label_BFC2A600: cpu->gpr[17] = cpu->gpr[25] + cpu->gpr[14]; /* 0xBFC2A614: 10000014 beq $zero, $zero, 0xBFC2A668 */ uint32_t psx_brA_BFC2A614 = cpu->gpr[0]; uint32_t psx_brB_BFC2A614 = cpu->gpr[0]; - int psx_taken_BFC2A614 = (psx_brA_BFC2A614 == psx_brB_BFC2A614); + psx_taken_BFC2A614 = (psx_brA_BFC2A614 == psx_brB_BFC2A614); /* 0xBFC2A618: 36106000 ori $s0, $s0, 0x6000 */ cpu->gpr[16] = cpu->gpr[16] | 0x6000u; if (psx_taken_BFC2A614) goto label_BFC2A668; @@ -135829,7 +139708,7 @@ label_BFC2A61C: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[1] ? 1 : 0); /* 0xBFC2A624: 1420000B bne $at, $zero, 0xBFC2A654 */ uint32_t psx_brA_BFC2A624 = cpu->gpr[1]; uint32_t psx_brB_BFC2A624 = cpu->gpr[0]; - int psx_taken_BFC2A624 = (psx_brA_BFC2A624 != psx_brB_BFC2A624); + psx_taken_BFC2A624 = (psx_brA_BFC2A624 != psx_brB_BFC2A624); /* 0xBFC2A628: 34019873 ori $at, $zero, 0x9873 */ cpu->gpr[1] = cpu->gpr[0] | 0x9873u; if (psx_taken_BFC2A624) goto label_BFC2A654; @@ -135842,7 +139721,7 @@ label_BFC2A62C: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[1] ? 1 : 0); /* 0xBFC2A630: 10200008 beq $at, $zero, 0xBFC2A654 */ uint32_t psx_brA_BFC2A630 = cpu->gpr[1]; uint32_t psx_brB_BFC2A630 = cpu->gpr[0]; - int psx_taken_BFC2A630 = (psx_brA_BFC2A630 == psx_brB_BFC2A630); + psx_taken_BFC2A630 = (psx_brA_BFC2A630 == psx_brB_BFC2A630); /* 0xBFC2A634: 3C010001 lui $at, 0x1 */ cpu->gpr[1] = 0x00010000u; if (psx_taken_BFC2A630) goto label_BFC2A654; @@ -135863,7 +139742,7 @@ label_BFC2A638: cpu->gpr[17] = cpu->gpr[15] + cpu->gpr[24]; /* 0xBFC2A64C: 10000006 beq $zero, $zero, 0xBFC2A668 */ uint32_t psx_brA_BFC2A64C = cpu->gpr[0]; uint32_t psx_brB_BFC2A64C = cpu->gpr[0]; - int psx_taken_BFC2A64C = (psx_brA_BFC2A64C == psx_brB_BFC2A64C); + psx_taken_BFC2A64C = (psx_brA_BFC2A64C == psx_brB_BFC2A64C); /* 0xBFC2A650: 36109D68 ori $s0, $s0, 0x9D68 */ cpu->gpr[16] = cpu->gpr[16] | 0x9D68u; if (psx_taken_BFC2A64C) goto label_BFC2A668; @@ -135886,7 +139765,7 @@ label_BFC2A660: psx_check_interrupts(cpu); /* 0xBFC2A660: 10000165 beq $zero, $zero, 0xBFC2ABF8 */ uint32_t psx_brA_BFC2A660 = cpu->gpr[0]; uint32_t psx_brB_BFC2A660 = cpu->gpr[0]; - int psx_taken_BFC2A660 = (psx_brA_BFC2A660 == psx_brB_BFC2A660); + psx_taken_BFC2A660 = (psx_brA_BFC2A660 == psx_brB_BFC2A660); /* 0xBFC2A664: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC2A660) goto label_BFC2ABF8; @@ -135938,7 +139817,7 @@ label_BFC2A690: /* nop */ /* 0xBFC2A698: 10800003 beq $a0, $zero, 0xBFC2A6A8 */ uint32_t psx_brA_BFC2A698 = cpu->gpr[4]; uint32_t psx_brB_BFC2A698 = cpu->gpr[0]; - int psx_taken_BFC2A698 = (psx_brA_BFC2A698 == psx_brB_BFC2A698); + psx_taken_BFC2A698 = (psx_brA_BFC2A698 == psx_brB_BFC2A698); /* 0xBFC2A69C: 2AC10100 slti $at, $s6, 256 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[22] < (256) ? 1 : 0); if (psx_taken_BFC2A698) goto label_BFC2A6A8; @@ -135949,7 +139828,7 @@ label_BFC2A6A0: psx_check_interrupts(cpu); /* 0xBFC2A6A0: 1420FFB5 bne $at, $zero, 0xBFC2A578 */ uint32_t psx_brA_BFC2A6A0 = cpu->gpr[1]; uint32_t psx_brB_BFC2A6A0 = cpu->gpr[0]; - int psx_taken_BFC2A6A0 = (psx_brA_BFC2A6A0 != psx_brB_BFC2A6A0); + psx_taken_BFC2A6A0 = (psx_brA_BFC2A6A0 != psx_brB_BFC2A6A0); /* 0xBFC2A6A4: 00000000 nop */ /* nop */ if (psx_taken_BFC2A6A0) goto label_BFC2A578; @@ -136000,7 +139879,7 @@ label_BFC2A6CC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[31] < (int32_t)cpu->gpr[22] ? 1 : 0); /* 0xBFC2A6D0: 102000B0 beq $at, $zero, 0xBFC2A994 */ uint32_t psx_brA_BFC2A6D0 = cpu->gpr[1]; uint32_t psx_brB_BFC2A6D0 = cpu->gpr[0]; - int psx_taken_BFC2A6D0 = (psx_brA_BFC2A6D0 == psx_brB_BFC2A6D0); + psx_taken_BFC2A6D0 = (psx_brA_BFC2A6D0 == psx_brB_BFC2A6D0); /* 0xBFC2A6D4: 03E09821 addu $s3, $ra, $zero */ cpu->gpr[19] = cpu->gpr[31] + cpu->gpr[0]; if (psx_taken_BFC2A6D0) goto label_BFC2A994; @@ -136027,7 +139906,7 @@ label_BFC2A6D8: cpu->gpr[14] = cpu->gpr[24] + cpu->gpr[25]; /* 0xBFC2A6F8: 12800062 beq $s4, $zero, 0xBFC2A884 */ uint32_t psx_brA_BFC2A6F8 = cpu->gpr[20]; uint32_t psx_brB_BFC2A6F8 = cpu->gpr[0]; - int psx_taken_BFC2A6F8 = (psx_brA_BFC2A6F8 == psx_brB_BFC2A6F8); + psx_taken_BFC2A6F8 = (psx_brA_BFC2A6F8 == psx_brB_BFC2A6F8); /* 0xBFC2A6FC: 01CF6821 addu $t5, $t6, $t7 */ cpu->gpr[13] = cpu->gpr[14] + cpu->gpr[15]; if (psx_taken_BFC2A6F8) goto label_BFC2A884; @@ -136228,7 +140107,7 @@ label_BFC2A700: cpu->gpr[15] = cpu->gpr[25] | cpu->gpr[14]; /* 0xBFC2A87C: 10000045 beq $zero, $zero, 0xBFC2A994 */ uint32_t psx_brA_BFC2A87C = cpu->gpr[0]; uint32_t psx_brB_BFC2A87C = cpu->gpr[0]; - int psx_taken_BFC2A87C = (psx_brA_BFC2A87C == psx_brB_BFC2A87C); + psx_taken_BFC2A87C = (psx_brA_BFC2A87C == psx_brB_BFC2A87C); /* 0xBFC2A880: A42FDFFA sh $t7, -8198($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-8198)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2A880u); return; } g_debug_last_store_pc = 0xBFC2A880u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[15] & 0xFFFFu)); } if (psx_taken_BFC2A87C) goto label_BFC2A994; @@ -136384,7 +140263,7 @@ label_BFC2A994: cpu->gpr[31] = (uint32_t)((int32_t)cpu->gpr[31] + (1)); /* 0xBFC2A99C: 1615FF4B bne $s0, $s5, 0xBFC2A6CC */ uint32_t psx_brA_BFC2A99C = cpu->gpr[16]; uint32_t psx_brB_BFC2A99C = cpu->gpr[21]; - int psx_taken_BFC2A99C = (psx_brA_BFC2A99C != psx_brB_BFC2A99C); + psx_taken_BFC2A99C = (psx_brA_BFC2A99C != psx_brB_BFC2A99C); /* 0xBFC2A9A0: 26520004 addiu $s2, $s2, 4 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (4)); if (psx_taken_BFC2A99C) goto label_BFC2A6CC; @@ -136399,7 +140278,7 @@ label_BFC2A9A4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (16) ? 1 : 0); /* 0xBFC2A9AC: 1420FF45 bne $at, $zero, 0xBFC2A6C4 */ uint32_t psx_brA_BFC2A9AC = cpu->gpr[1]; uint32_t psx_brB_BFC2A9AC = cpu->gpr[0]; - int psx_taken_BFC2A9AC = (psx_brA_BFC2A9AC != psx_brB_BFC2A9AC); + psx_taken_BFC2A9AC = (psx_brA_BFC2A9AC != psx_brB_BFC2A9AC); /* 0xBFC2A9B0: 0276082A slt $at, $s3, $s6 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (int32_t)cpu->gpr[22] ? 1 : 0); if (psx_taken_BFC2A9AC) goto label_BFC2A6C4; @@ -136410,7 +140289,7 @@ label_BFC2A9B4: psx_check_interrupts(cpu); /* 0xBFC2A9B4: 10200005 beq $at, $zero, 0xBFC2A9CC */ uint32_t psx_brA_BFC2A9B4 = cpu->gpr[1]; uint32_t psx_brB_BFC2A9B4 = cpu->gpr[0]; - int psx_taken_BFC2A9B4 = (psx_brA_BFC2A9B4 == psx_brB_BFC2A9B4); + psx_taken_BFC2A9B4 = (psx_brA_BFC2A9B4 == psx_brB_BFC2A9B4); /* 0xBFC2A9B8: 2AC10010 slti $at, $s6, 16 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[22] < (16) ? 1 : 0); if (psx_taken_BFC2A9B4) goto label_BFC2A9CC; @@ -136425,7 +140304,7 @@ label_BFC2A9BC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[23] < (256) ? 1 : 0); /* 0xBFC2A9C4: 1420FF3E bne $at, $zero, 0xBFC2A6C0 */ uint32_t psx_brA_BFC2A9C4 = cpu->gpr[1]; uint32_t psx_brB_BFC2A9C4 = cpu->gpr[0]; - int psx_taken_BFC2A9C4 = (psx_brA_BFC2A9C4 != psx_brB_BFC2A9C4); + psx_taken_BFC2A9C4 = (psx_brA_BFC2A9C4 != psx_brB_BFC2A9C4); /* 0xBFC2A9C8: 2AC10010 slti $at, $s6, 16 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[22] < (16) ? 1 : 0); if (psx_taken_BFC2A9C4) goto label_BFC2A6C0; @@ -136436,7 +140315,7 @@ label_BFC2A9CC: psx_check_interrupts(cpu); /* 0xBFC2A9CC: 1020000A beq $at, $zero, 0xBFC2A9F8 */ uint32_t psx_brA_BFC2A9CC = cpu->gpr[1]; uint32_t psx_brB_BFC2A9CC = cpu->gpr[0]; - int psx_taken_BFC2A9CC = (psx_brA_BFC2A9CC == psx_brB_BFC2A9CC); + psx_taken_BFC2A9CC = (psx_brA_BFC2A9CC == psx_brB_BFC2A9CC); /* 0xBFC2A9D0: 26D1FFFF addiu $s1, $s6, -1 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[22] + (-1)); if (psx_taken_BFC2A9CC) goto label_BFC2A9F8; @@ -136451,7 +140330,7 @@ label_BFC2A9D4: cpu->gpr[20] = cpu->gpr[22] << 5u; /* 0xBFC2A9DC: 06210002 bgez $s1, 0xBFC2A9E8 */ uint32_t psx_brA_BFC2A9DC = cpu->gpr[17]; - int psx_taken_BFC2A9DC = ((int32_t)psx_brA_BFC2A9DC >= 0); + psx_taken_BFC2A9DC = ((int32_t)psx_brA_BFC2A9DC >= 0); /* 0xBFC2A9E0: 02200821 addu $at, $s1, $zero */ cpu->gpr[1] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC2A9DC) goto label_BFC2A9E8; @@ -136471,7 +140350,7 @@ label_BFC2A9E8: cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[1] >> 4u); /* 0xBFC2A9EC: 10000009 beq $zero, $zero, 0xBFC2AA14 */ uint32_t psx_brA_BFC2A9EC = cpu->gpr[0]; uint32_t psx_brB_BFC2A9EC = cpu->gpr[0]; - int psx_taken_BFC2A9EC = (psx_brA_BFC2A9EC == psx_brB_BFC2A9EC); + psx_taken_BFC2A9EC = (psx_brA_BFC2A9EC == psx_brB_BFC2A9EC); /* 0xBFC2A9F0: 00148080 sll $s0, $s4, 2 */ cpu->gpr[16] = cpu->gpr[20] << 2u; if (psx_taken_BFC2A9EC) goto label_BFC2AA14; @@ -136489,7 +140368,7 @@ label_BFC2A9F8: psx_check_interrupts(cpu); /* 0xBFC2A9F8: 06210002 bgez $s1, 0xBFC2AA04 */ uint32_t psx_brA_BFC2A9F8 = cpu->gpr[17]; - int psx_taken_BFC2A9F8 = ((int32_t)psx_brA_BFC2A9F8 >= 0); + psx_taken_BFC2A9F8 = ((int32_t)psx_brA_BFC2A9F8 >= 0); /* 0xBFC2A9FC: 02200821 addu $at, $s1, $zero */ cpu->gpr[1] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC2A9F8) goto label_BFC2AA04; @@ -136608,7 +140487,7 @@ label_BFC2AA20: cpu->gpr[15] = cpu->gpr[24] | cpu->gpr[14]; /* 0xBFC2AAB8: 14200003 bne $at, $zero, 0xBFC2AAC8 */ uint32_t psx_brA_BFC2AAB8 = cpu->gpr[1]; uint32_t psx_brB_BFC2AAB8 = cpu->gpr[0]; - int psx_taken_BFC2AAB8 = (psx_brA_BFC2AAB8 != psx_brB_BFC2AAB8); + psx_taken_BFC2AAB8 = (psx_brA_BFC2AAB8 != psx_brB_BFC2AAB8); /* 0xBFC2AABC: AFCF0038 sw $t7, 56($fp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[30] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2AABCu); return; } g_debug_last_store_pc = 0xBFC2AABCu; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC2AAB8) goto label_BFC2AAC8; @@ -136619,7 +140498,7 @@ label_BFC2AAC0: psx_check_interrupts(cpu); /* 0xBFC2AAC0: 10000008 beq $zero, $zero, 0xBFC2AAE4 */ uint32_t psx_brA_BFC2AAC0 = cpu->gpr[0]; uint32_t psx_brB_BFC2AAC0 = cpu->gpr[0]; - int psx_taken_BFC2AAC0 = (psx_brA_BFC2AAC0 == psx_brB_BFC2AAC0); + psx_taken_BFC2AAC0 = (psx_brA_BFC2AAC0 == psx_brB_BFC2AAC0); /* 0xBFC2AAC4: 24020040 addiu $v0, $zero, 64 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (64)); if (psx_taken_BFC2AAC0) goto label_BFC2AAE4; @@ -136630,7 +140509,7 @@ label_BFC2AAC8: psx_check_interrupts(cpu); /* 0xBFC2AAC8: 06210004 bgez $s1, 0xBFC2AADC */ uint32_t psx_brA_BFC2AAC8 = cpu->gpr[17]; - int psx_taken_BFC2AAC8 = ((int32_t)psx_brA_BFC2AAC8 >= 0); + psx_taken_BFC2AAC8 = ((int32_t)psx_brA_BFC2AAC8 >= 0); /* 0xBFC2AACC: 3222000F andi $v0, $s1, 0xF */ cpu->gpr[2] = cpu->gpr[17] & 0xFu; if (psx_taken_BFC2AAC8) goto label_BFC2AADC; @@ -136641,7 +140520,7 @@ label_BFC2AAD0: psx_check_interrupts(cpu); /* 0xBFC2AAD0: 10400002 beq $v0, $zero, 0xBFC2AADC */ uint32_t psx_brA_BFC2AAD0 = cpu->gpr[2]; uint32_t psx_brB_BFC2AAD0 = cpu->gpr[0]; - int psx_taken_BFC2AAD0 = (psx_brA_BFC2AAD0 == psx_brB_BFC2AAD0); + psx_taken_BFC2AAD0 = (psx_brA_BFC2AAD0 == psx_brB_BFC2AAD0); /* 0xBFC2AAD4: 00000000 nop */ /* nop */ if (psx_taken_BFC2AAD0) goto label_BFC2AADC; @@ -136678,7 +140557,7 @@ label_BFC2AAE4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[22] < (16) ? 1 : 0); /* 0xBFC2AAF8: 10200025 beq $at, $zero, 0xBFC2AB90 */ uint32_t psx_brA_BFC2AAF8 = cpu->gpr[1]; uint32_t psx_brB_BFC2AAF8 = cpu->gpr[0]; - int psx_taken_BFC2AAF8 = (psx_brA_BFC2AAF8 == psx_brB_BFC2AAF8); + psx_taken_BFC2AAF8 = (psx_brA_BFC2AAF8 == psx_brB_BFC2AAF8); /* 0xBFC2AAFC: AFCF003C sw $t7, 60($fp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[30] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2AAFCu); return; } g_debug_last_store_pc = 0xBFC2AAFCu; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC2AAF8) goto label_BFC2AB90; @@ -136693,7 +140572,7 @@ label_BFC2AB00: cpu->gpr[19] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC2AB08: 1A80003A blez $s4, 0xBFC2ABF4 */ uint32_t psx_brA_BFC2AB08 = cpu->gpr[20]; - int psx_taken_BFC2AB08 = ((int32_t)psx_brA_BFC2AB08 <= 0); + psx_taken_BFC2AB08 = ((int32_t)psx_brA_BFC2AB08 <= 0); /* 0xBFC2AB0C: 00002821 addu $a1, $zero, $zero */ cpu->gpr[5] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2AB08) goto label_BFC2ABF4; @@ -136713,7 +140592,7 @@ label_BFC2AB18: psx_check_interrupts(cpu); /* 0xBFC2AB18: 06610004 bgez $s3, 0xBFC2AB2C */ uint32_t psx_brA_BFC2AB18 = cpu->gpr[19]; - int psx_taken_BFC2AB18 = ((int32_t)psx_brA_BFC2AB18 >= 0); + psx_taken_BFC2AB18 = ((int32_t)psx_brA_BFC2AB18 >= 0); /* 0xBFC2AB1C: 3279003F andi $t9, $s3, 0x3F */ cpu->gpr[25] = cpu->gpr[19] & 0x3Fu; if (psx_taken_BFC2AB18) goto label_BFC2AB2C; @@ -136724,7 +140603,7 @@ label_BFC2AB20: psx_check_interrupts(cpu); /* 0xBFC2AB20: 13200002 beq $t9, $zero, 0xBFC2AB2C */ uint32_t psx_brA_BFC2AB20 = cpu->gpr[25]; uint32_t psx_brB_BFC2AB20 = cpu->gpr[0]; - int psx_taken_BFC2AB20 = (psx_brA_BFC2AB20 == psx_brB_BFC2AB20); + psx_taken_BFC2AB20 = (psx_brA_BFC2AB20 == psx_brB_BFC2AB20); /* 0xBFC2AB24: 00000000 nop */ /* nop */ if (psx_taken_BFC2AB20) goto label_BFC2AB2C; @@ -136744,7 +140623,7 @@ label_BFC2AB2C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[25] < (int32_t)cpu->gpr[4] ? 1 : 0); /* 0xBFC2AB30: 14200004 bne $at, $zero, 0xBFC2AB44 */ uint32_t psx_brA_BFC2AB30 = cpu->gpr[1]; uint32_t psx_brB_BFC2AB30 = cpu->gpr[0]; - int psx_taken_BFC2AB30 = (psx_brA_BFC2AB30 != psx_brB_BFC2AB30); + psx_taken_BFC2AB30 = (psx_brA_BFC2AB30 != psx_brB_BFC2AB30); /* 0xBFC2AB34: 3C010001 lui $at, 0x1 */ cpu->gpr[1] = 0x00010000u; if (psx_taken_BFC2AB30) goto label_BFC2AB44; @@ -136796,7 +140675,7 @@ label_BFC2AB44: cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (2)); /* 0xBFC2AB80: 1634FFE5 bne $s1, $s4, 0xBFC2AB18 */ uint32_t psx_brA_BFC2AB80 = cpu->gpr[17]; uint32_t psx_brB_BFC2AB80 = cpu->gpr[20]; - int psx_taken_BFC2AB80 = (psx_brA_BFC2AB80 != psx_brB_BFC2AB80); + psx_taken_BFC2AB80 = (psx_brA_BFC2AB80 != psx_brB_BFC2AB80); /* 0xBFC2AB84: 24420004 addiu $v0, $v0, 4 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); if (psx_taken_BFC2AB80) goto label_BFC2AB18; @@ -136807,7 +140686,7 @@ label_BFC2AB88: psx_check_interrupts(cpu); /* 0xBFC2AB88: 1000001B beq $zero, $zero, 0xBFC2ABF8 */ uint32_t psx_brA_BFC2AB88 = cpu->gpr[0]; uint32_t psx_brB_BFC2AB88 = cpu->gpr[0]; - int psx_taken_BFC2AB88 = (psx_brA_BFC2AB88 == psx_brB_BFC2AB88); + psx_taken_BFC2AB88 = (psx_brA_BFC2AB88 == psx_brB_BFC2AB88); /* 0xBFC2AB8C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2AB88) goto label_BFC2ABF8; @@ -136820,7 +140699,7 @@ label_BFC2AB90: cpu->gpr[2] = cpu->gpr[20] << 1u; /* 0xBFC2AB94: 18400017 blez $v0, 0xBFC2ABF4 */ uint32_t psx_brA_BFC2AB94 = cpu->gpr[2]; - int psx_taken_BFC2AB94 = ((int32_t)psx_brA_BFC2AB94 <= 0); + psx_taken_BFC2AB94 = ((int32_t)psx_brA_BFC2AB94 <= 0); /* 0xBFC2AB98: 00008821 addu $s1, $zero, $zero */ cpu->gpr[17] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2AB94) goto label_BFC2ABF4; @@ -136860,7 +140739,7 @@ label_BFC2ABA8: cpu->gpr[14] = cpu->gpr[25] | cpu->gpr[24]; /* 0xBFC2ABCC: 06210002 bgez $s1, 0xBFC2ABD8 */ uint32_t psx_brA_BFC2ABCC = cpu->gpr[17]; - int psx_taken_BFC2ABCC = ((int32_t)psx_brA_BFC2ABCC >= 0); + psx_taken_BFC2ABCC = ((int32_t)psx_brA_BFC2ABCC >= 0); /* 0xBFC2ABD0: 02200821 addu $at, $s1, $zero */ cpu->gpr[1] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC2ABCC) goto label_BFC2ABD8; @@ -136888,7 +140767,7 @@ label_BFC2ABD8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC2ABEC: 1420FFEE bne $at, $zero, 0xBFC2ABA8 */ uint32_t psx_brA_BFC2ABEC = cpu->gpr[1]; uint32_t psx_brB_BFC2ABEC = cpu->gpr[0]; - int psx_taken_BFC2ABEC = (psx_brA_BFC2ABEC != psx_brB_BFC2ABEC); + psx_taken_BFC2ABEC = (psx_brA_BFC2ABEC != psx_brB_BFC2ABEC); /* 0xBFC2ABF0: AF0E0040 sw $t6, 64($t8) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2ABF0u); return; } g_debug_last_store_pc = 0xBFC2ABF0u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC2ABEC) goto label_BFC2ABA8; @@ -136944,6 +140823,73 @@ void func_1FC2ACD0(CPUState* cpu) { default: break; } } + int psx_taken_BFC2AD00 = 0; + int psx_taken_BFC2AD30 = 0; + int psx_taken_BFC2AD38 = 0; + int psx_taken_BFC2AD40 = 0; + int psx_taken_BFC2AD4C = 0; + int psx_taken_BFC2AD54 = 0; + int psx_taken_BFC2AD5C = 0; + int psx_taken_BFC2AD68 = 0; + int psx_taken_BFC2AD70 = 0; + int psx_taken_BFC2AD78 = 0; + int psx_taken_BFC2AD84 = 0; + int psx_taken_BFC2AD8C = 0; + int psx_taken_BFC2AD94 = 0; + int psx_taken_BFC2ADA0 = 0; + int psx_taken_BFC2ADA8 = 0; + int psx_taken_BFC2ADB0 = 0; + int psx_taken_BFC2ADBC = 0; + int psx_taken_BFC2ADC4 = 0; + int psx_taken_BFC2ADCC = 0; + int psx_taken_BFC2ADD8 = 0; + int psx_taken_BFC2ADE4 = 0; + int psx_taken_BFC2AE10 = 0; + int psx_taken_BFC2AE24 = 0; + int psx_taken_BFC2AE2C = 0; + int psx_taken_BFC2AE34 = 0; + int psx_taken_BFC2AE40 = 0; + int psx_taken_BFC2AE48 = 0; + int psx_taken_BFC2AE50 = 0; + int psx_taken_BFC2AE5C = 0; + int psx_taken_BFC2AE64 = 0; + int psx_taken_BFC2AE6C = 0; + int psx_taken_BFC2AE78 = 0; + int psx_taken_BFC2AE84 = 0; + int psx_taken_BFC2AE90 = 0; + int psx_taken_BFC2AE9C = 0; + int psx_taken_BFC2AEC8 = 0; + int psx_taken_BFC2AEDC = 0; + int psx_taken_BFC2AEE4 = 0; + int psx_taken_BFC2AEEC = 0; + int psx_taken_BFC2AEF8 = 0; + int psx_taken_BFC2AF00 = 0; + int psx_taken_BFC2AF08 = 0; + int psx_taken_BFC2AF14 = 0; + int psx_taken_BFC2AF1C = 0; + int psx_taken_BFC2AF24 = 0; + int psx_taken_BFC2AF30 = 0; + int psx_taken_BFC2AF3C = 0; + int psx_taken_BFC2AF48 = 0; + int psx_taken_BFC2AF54 = 0; + int psx_taken_BFC2AF80 = 0; + int psx_taken_BFC2AF94 = 0; + int psx_taken_BFC2AF9C = 0; + int psx_taken_BFC2AFA4 = 0; + int psx_taken_BFC2AFB0 = 0; + int psx_taken_BFC2AFB8 = 0; + int psx_taken_BFC2AFC0 = 0; + int psx_taken_BFC2AFCC = 0; + int psx_taken_BFC2AFD4 = 0; + int psx_taken_BFC2AFDC = 0; + int psx_taken_BFC2AFE8 = 0; + int psx_taken_BFC2AFF4 = 0; + int psx_taken_BFC2B000 = 0; + int psx_taken_BFC2B00C = 0; + int psx_taken_BFC2B038 = 0; + int psx_taken_BFC2B04C = 0; + int psx_taken_BFC2B054 = 0; + int psx_taken_BFC2B090 = 0; label_BFC2ACD0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -136981,7 +140927,7 @@ label_BFC2ACEC: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < 0x00000004u ? 1 : 0); /* 0xBFC2AD00: 102000CF beq $at, $zero, 0xBFC2B040 */ uint32_t psx_brA_BFC2AD00 = cpu->gpr[1]; uint32_t psx_brB_BFC2AD00 = cpu->gpr[0]; - int psx_taken_BFC2AD00 = (psx_brA_BFC2AD00 == psx_brB_BFC2AD00); + psx_taken_BFC2AD00 = (psx_brA_BFC2AD00 == psx_brB_BFC2AD00); /* 0xBFC2AD04: 00000000 nop */ /* nop */ if (psx_taken_BFC2AD00) goto label_BFC2B040; @@ -137024,7 +140970,7 @@ label_BFC2AD24: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000040u ? 1 : 0); /* 0xBFC2AD30: 14200005 bne $at, $zero, 0xBFC2AD48 */ uint32_t psx_brA_BFC2AD30 = cpu->gpr[1]; uint32_t psx_brB_BFC2AD30 = cpu->gpr[0]; - int psx_taken_BFC2AD30 = (psx_brA_BFC2AD30 != psx_brB_BFC2AD30); + psx_taken_BFC2AD30 = (psx_brA_BFC2AD30 != psx_brB_BFC2AD30); /* 0xBFC2AD34: 2C41007F sltiu $at, $v0, 127 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000007Fu ? 1 : 0); if (psx_taken_BFC2AD30) goto label_BFC2AD48; @@ -137035,7 +140981,7 @@ label_BFC2AD38: psx_check_interrupts(cpu); /* 0xBFC2AD38: 10200004 beq $at, $zero, 0xBFC2AD4C */ uint32_t psx_brA_BFC2AD38 = cpu->gpr[1]; uint32_t psx_brB_BFC2AD38 = cpu->gpr[0]; - int psx_taken_BFC2AD38 = (psx_brA_BFC2AD38 == psx_brB_BFC2AD38); + psx_taken_BFC2AD38 = (psx_brA_BFC2AD38 == psx_brB_BFC2AD38); /* 0xBFC2AD3C: 2C410080 sltiu $at, $v0, 128 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000080u ? 1 : 0); if (psx_taken_BFC2AD38) goto label_BFC2AD4C; @@ -137046,7 +140992,7 @@ label_BFC2AD40: psx_check_interrupts(cpu); /* 0xBFC2AD40: 1000002B beq $zero, $zero, 0xBFC2ADF0 */ uint32_t psx_brA_BFC2AD40 = cpu->gpr[0]; uint32_t psx_brB_BFC2AD40 = cpu->gpr[0]; - int psx_taken_BFC2AD40 = (psx_brA_BFC2AD40 == psx_brB_BFC2AD40); + psx_taken_BFC2AD40 = (psx_brA_BFC2AD40 == psx_brB_BFC2AD40); /* 0xBFC2AD44: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2AD40) goto label_BFC2ADF0; @@ -137064,7 +141010,7 @@ label_BFC2AD4C: psx_check_interrupts(cpu); /* 0xBFC2AD4C: 14200005 bne $at, $zero, 0xBFC2AD64 */ uint32_t psx_brA_BFC2AD4C = cpu->gpr[1]; uint32_t psx_brB_BFC2AD4C = cpu->gpr[0]; - int psx_taken_BFC2AD4C = (psx_brA_BFC2AD4C != psx_brB_BFC2AD4C); + psx_taken_BFC2AD4C = (psx_brA_BFC2AD4C != psx_brB_BFC2AD4C); /* 0xBFC2AD50: 2C4100AD sltiu $at, $v0, 173 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000ADu ? 1 : 0); if (psx_taken_BFC2AD4C) goto label_BFC2AD64; @@ -137075,7 +141021,7 @@ label_BFC2AD54: psx_check_interrupts(cpu); /* 0xBFC2AD54: 10200004 beq $at, $zero, 0xBFC2AD68 */ uint32_t psx_brA_BFC2AD54 = cpu->gpr[1]; uint32_t psx_brB_BFC2AD54 = cpu->gpr[0]; - int psx_taken_BFC2AD54 = (psx_brA_BFC2AD54 == psx_brB_BFC2AD54); + psx_taken_BFC2AD54 = (psx_brA_BFC2AD54 == psx_brB_BFC2AD54); /* 0xBFC2AD58: 2C4100B8 sltiu $at, $v0, 184 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000B8u ? 1 : 0); if (psx_taken_BFC2AD54) goto label_BFC2AD68; @@ -137086,7 +141032,7 @@ label_BFC2AD5C: psx_check_interrupts(cpu); /* 0xBFC2AD5C: 10000024 beq $zero, $zero, 0xBFC2ADF0 */ uint32_t psx_brA_BFC2AD5C = cpu->gpr[0]; uint32_t psx_brB_BFC2AD5C = cpu->gpr[0]; - int psx_taken_BFC2AD5C = (psx_brA_BFC2AD5C == psx_brB_BFC2AD5C); + psx_taken_BFC2AD5C = (psx_brA_BFC2AD5C == psx_brB_BFC2AD5C); /* 0xBFC2AD60: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC2AD5C) goto label_BFC2ADF0; @@ -137104,7 +141050,7 @@ label_BFC2AD68: psx_check_interrupts(cpu); /* 0xBFC2AD68: 14200005 bne $at, $zero, 0xBFC2AD80 */ uint32_t psx_brA_BFC2AD68 = cpu->gpr[1]; uint32_t psx_brB_BFC2AD68 = cpu->gpr[0]; - int psx_taken_BFC2AD68 = (psx_brA_BFC2AD68 != psx_brB_BFC2AD68); + psx_taken_BFC2AD68 = (psx_brA_BFC2AD68 != psx_brB_BFC2AD68); /* 0xBFC2AD6C: 2C4100C0 sltiu $at, $v0, 192 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000C0u ? 1 : 0); if (psx_taken_BFC2AD68) goto label_BFC2AD80; @@ -137115,7 +141061,7 @@ label_BFC2AD70: psx_check_interrupts(cpu); /* 0xBFC2AD70: 10200004 beq $at, $zero, 0xBFC2AD84 */ uint32_t psx_brA_BFC2AD70 = cpu->gpr[1]; uint32_t psx_brB_BFC2AD70 = cpu->gpr[0]; - int psx_taken_BFC2AD70 = (psx_brA_BFC2AD70 == psx_brB_BFC2AD70); + psx_taken_BFC2AD70 = (psx_brA_BFC2AD70 == psx_brB_BFC2AD70); /* 0xBFC2AD74: 2C4100C8 sltiu $at, $v0, 200 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000C8u ? 1 : 0); if (psx_taken_BFC2AD70) goto label_BFC2AD84; @@ -137126,7 +141072,7 @@ label_BFC2AD78: psx_check_interrupts(cpu); /* 0xBFC2AD78: 1000001D beq $zero, $zero, 0xBFC2ADF0 */ uint32_t psx_brA_BFC2AD78 = cpu->gpr[0]; uint32_t psx_brB_BFC2AD78 = cpu->gpr[0]; - int psx_taken_BFC2AD78 = (psx_brA_BFC2AD78 == psx_brB_BFC2AD78); + psx_taken_BFC2AD78 = (psx_brA_BFC2AD78 == psx_brB_BFC2AD78); /* 0xBFC2AD7C: 24030002 addiu $v1, $zero, 2 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC2AD78) goto label_BFC2ADF0; @@ -137144,7 +141090,7 @@ label_BFC2AD84: psx_check_interrupts(cpu); /* 0xBFC2AD84: 14200005 bne $at, $zero, 0xBFC2AD9C */ uint32_t psx_brA_BFC2AD84 = cpu->gpr[1]; uint32_t psx_brB_BFC2AD84 = cpu->gpr[0]; - int psx_taken_BFC2AD84 = (psx_brA_BFC2AD84 != psx_brB_BFC2AD84); + psx_taken_BFC2AD84 = (psx_brA_BFC2AD84 != psx_brB_BFC2AD84); /* 0xBFC2AD88: 2C4100CF sltiu $at, $v0, 207 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000CFu ? 1 : 0); if (psx_taken_BFC2AD84) goto label_BFC2AD9C; @@ -137155,7 +141101,7 @@ label_BFC2AD8C: psx_check_interrupts(cpu); /* 0xBFC2AD8C: 10200004 beq $at, $zero, 0xBFC2ADA0 */ uint32_t psx_brA_BFC2AD8C = cpu->gpr[1]; uint32_t psx_brB_BFC2AD8C = cpu->gpr[0]; - int psx_taken_BFC2AD8C = (psx_brA_BFC2AD8C == psx_brB_BFC2AD8C); + psx_taken_BFC2AD8C = (psx_brA_BFC2AD8C == psx_brB_BFC2AD8C); /* 0xBFC2AD90: 2C4100DA sltiu $at, $v0, 218 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000DAu ? 1 : 0); if (psx_taken_BFC2AD8C) goto label_BFC2ADA0; @@ -137166,7 +141112,7 @@ label_BFC2AD94: psx_check_interrupts(cpu); /* 0xBFC2AD94: 10000016 beq $zero, $zero, 0xBFC2ADF0 */ uint32_t psx_brA_BFC2AD94 = cpu->gpr[0]; uint32_t psx_brB_BFC2AD94 = cpu->gpr[0]; - int psx_taken_BFC2AD94 = (psx_brA_BFC2AD94 == psx_brB_BFC2AD94); + psx_taken_BFC2AD94 = (psx_brA_BFC2AD94 == psx_brB_BFC2AD94); /* 0xBFC2AD98: 24030003 addiu $v1, $zero, 3 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); if (psx_taken_BFC2AD94) goto label_BFC2ADF0; @@ -137184,7 +141130,7 @@ label_BFC2ADA0: psx_check_interrupts(cpu); /* 0xBFC2ADA0: 14200005 bne $at, $zero, 0xBFC2ADB8 */ uint32_t psx_brA_BFC2ADA0 = cpu->gpr[1]; uint32_t psx_brB_BFC2ADA0 = cpu->gpr[0]; - int psx_taken_BFC2ADA0 = (psx_brA_BFC2ADA0 != psx_brB_BFC2ADA0); + psx_taken_BFC2ADA0 = (psx_brA_BFC2ADA0 != psx_brB_BFC2ADA0); /* 0xBFC2ADA4: 2C4100E9 sltiu $at, $v0, 233 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000E9u ? 1 : 0); if (psx_taken_BFC2ADA0) goto label_BFC2ADB8; @@ -137195,7 +141141,7 @@ label_BFC2ADA8: psx_check_interrupts(cpu); /* 0xBFC2ADA8: 10200004 beq $at, $zero, 0xBFC2ADBC */ uint32_t psx_brA_BFC2ADA8 = cpu->gpr[1]; uint32_t psx_brB_BFC2ADA8 = cpu->gpr[0]; - int psx_taken_BFC2ADA8 = (psx_brA_BFC2ADA8 == psx_brB_BFC2ADA8); + psx_taken_BFC2ADA8 = (psx_brA_BFC2ADA8 == psx_brB_BFC2ADA8); /* 0xBFC2ADAC: 2C4100F0 sltiu $at, $v0, 240 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000F0u ? 1 : 0); if (psx_taken_BFC2ADA8) goto label_BFC2ADBC; @@ -137206,7 +141152,7 @@ label_BFC2ADB0: psx_check_interrupts(cpu); /* 0xBFC2ADB0: 1000000F beq $zero, $zero, 0xBFC2ADF0 */ uint32_t psx_brA_BFC2ADB0 = cpu->gpr[0]; uint32_t psx_brB_BFC2ADB0 = cpu->gpr[0]; - int psx_taken_BFC2ADB0 = (psx_brA_BFC2ADB0 == psx_brB_BFC2ADB0); + psx_taken_BFC2ADB0 = (psx_brA_BFC2ADB0 == psx_brB_BFC2ADB0); /* 0xBFC2ADB4: 24030004 addiu $v1, $zero, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC2ADB0) goto label_BFC2ADF0; @@ -137224,7 +141170,7 @@ label_BFC2ADBC: psx_check_interrupts(cpu); /* 0xBFC2ADBC: 14200005 bne $at, $zero, 0xBFC2ADD4 */ uint32_t psx_brA_BFC2ADBC = cpu->gpr[1]; uint32_t psx_brB_BFC2ADBC = cpu->gpr[0]; - int psx_taken_BFC2ADBC = (psx_brA_BFC2ADBC != psx_brB_BFC2ADBC); + psx_taken_BFC2ADBC = (psx_brA_BFC2ADBC != psx_brB_BFC2ADBC); /* 0xBFC2ADC0: 2C4100F8 sltiu $at, $v0, 248 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000F8u ? 1 : 0); if (psx_taken_BFC2ADBC) goto label_BFC2ADD4; @@ -137235,7 +141181,7 @@ label_BFC2ADC4: psx_check_interrupts(cpu); /* 0xBFC2ADC4: 10200004 beq $at, $zero, 0xBFC2ADD8 */ uint32_t psx_brA_BFC2ADC4 = cpu->gpr[1]; uint32_t psx_brB_BFC2ADC4 = cpu->gpr[0]; - int psx_taken_BFC2ADC4 = (psx_brA_BFC2ADC4 == psx_brB_BFC2ADC4); + psx_taken_BFC2ADC4 = (psx_brA_BFC2ADC4 == psx_brB_BFC2ADC4); /* 0xBFC2ADC8: 240100FC addiu $at, $zero, 252 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (252)); if (psx_taken_BFC2ADC4) goto label_BFC2ADD8; @@ -137246,7 +141192,7 @@ label_BFC2ADCC: psx_check_interrupts(cpu); /* 0xBFC2ADCC: 10000008 beq $zero, $zero, 0xBFC2ADF0 */ uint32_t psx_brA_BFC2ADCC = cpu->gpr[0]; uint32_t psx_brB_BFC2ADCC = cpu->gpr[0]; - int psx_taken_BFC2ADCC = (psx_brA_BFC2ADCC == psx_brB_BFC2ADCC); + psx_taken_BFC2ADCC = (psx_brA_BFC2ADCC == psx_brB_BFC2ADCC); /* 0xBFC2ADD0: 24030005 addiu $v1, $zero, 5 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC2ADCC) goto label_BFC2ADF0; @@ -137264,7 +141210,7 @@ label_BFC2ADD8: psx_check_interrupts(cpu); /* 0xBFC2ADD8: 10410005 beq $v0, $at, 0xBFC2ADF0 */ uint32_t psx_brA_BFC2ADD8 = cpu->gpr[2]; uint32_t psx_brB_BFC2ADD8 = cpu->gpr[1]; - int psx_taken_BFC2ADD8 = (psx_brA_BFC2ADD8 == psx_brB_BFC2ADD8); + psx_taken_BFC2ADD8 = (psx_brA_BFC2ADD8 == psx_brB_BFC2ADD8); /* 0xBFC2ADDC: 24030006 addiu $v1, $zero, 6 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (6)); if (psx_taken_BFC2ADD8) goto label_BFC2ADF0; @@ -137277,7 +141223,7 @@ label_BFC2ADE0: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC2ADE4: 10000002 beq $zero, $zero, 0xBFC2ADF0 */ uint32_t psx_brA_BFC2ADE4 = cpu->gpr[0]; uint32_t psx_brB_BFC2ADE4 = cpu->gpr[0]; - int psx_taken_BFC2ADE4 = (psx_brA_BFC2ADE4 == psx_brB_BFC2ADE4); + psx_taken_BFC2ADE4 = (psx_brA_BFC2ADE4 == psx_brB_BFC2ADE4); /* 0xBFC2ADE8: 00000000 nop */ /* nop */ if (psx_taken_BFC2ADE4) goto label_BFC2ADF0; @@ -137311,7 +141257,7 @@ label_BFC2ADF0: cpu->gpr[9] = cpu->gpr[25] - cpu->gpr[8]; /* 0xBFC2AE10: 100000A1 beq $zero, $zero, 0xBFC2B098 */ uint32_t psx_brA_BFC2AE10 = cpu->gpr[0]; uint32_t psx_brB_BFC2AE10 = cpu->gpr[0]; - int psx_taken_BFC2AE10 = (psx_brA_BFC2AE10 == psx_brB_BFC2AE10); + psx_taken_BFC2AE10 = (psx_brA_BFC2AE10 == psx_brB_BFC2AE10); /* 0xBFC2AE14: 012A2021 addu $a0, $t1, $t2 */ cpu->gpr[4] = cpu->gpr[9] + cpu->gpr[10]; if (psx_taken_BFC2AE10) goto label_BFC2B098; @@ -137328,7 +141274,7 @@ label_BFC2AE18: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000004Fu ? 1 : 0); /* 0xBFC2AE24: 14200005 bne $at, $zero, 0xBFC2AE3C */ uint32_t psx_brA_BFC2AE24 = cpu->gpr[1]; uint32_t psx_brB_BFC2AE24 = cpu->gpr[0]; - int psx_taken_BFC2AE24 = (psx_brA_BFC2AE24 != psx_brB_BFC2AE24); + psx_taken_BFC2AE24 = (psx_brA_BFC2AE24 != psx_brB_BFC2AE24); /* 0xBFC2AE28: 2C410059 sltiu $at, $v0, 89 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000059u ? 1 : 0); if (psx_taken_BFC2AE24) goto label_BFC2AE3C; @@ -137339,7 +141285,7 @@ label_BFC2AE2C: psx_check_interrupts(cpu); /* 0xBFC2AE2C: 10200004 beq $at, $zero, 0xBFC2AE40 */ uint32_t psx_brA_BFC2AE2C = cpu->gpr[1]; uint32_t psx_brB_BFC2AE2C = cpu->gpr[0]; - int psx_taken_BFC2AE2C = (psx_brA_BFC2AE2C == psx_brB_BFC2AE2C); + psx_taken_BFC2AE2C = (psx_brA_BFC2AE2C == psx_brB_BFC2AE2C); /* 0xBFC2AE30: 2C410060 sltiu $at, $v0, 96 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000060u ? 1 : 0); if (psx_taken_BFC2AE2C) goto label_BFC2AE40; @@ -137350,7 +141296,7 @@ label_BFC2AE34: psx_check_interrupts(cpu); /* 0xBFC2AE34: 1000001C beq $zero, $zero, 0xBFC2AEA8 */ uint32_t psx_brA_BFC2AE34 = cpu->gpr[0]; uint32_t psx_brB_BFC2AE34 = cpu->gpr[0]; - int psx_taken_BFC2AE34 = (psx_brA_BFC2AE34 == psx_brB_BFC2AE34); + psx_taken_BFC2AE34 = (psx_brA_BFC2AE34 == psx_brB_BFC2AE34); /* 0xBFC2AE38: 24030007 addiu $v1, $zero, 7 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (7)); if (psx_taken_BFC2AE34) goto label_BFC2AEA8; @@ -137368,7 +141314,7 @@ label_BFC2AE40: psx_check_interrupts(cpu); /* 0xBFC2AE40: 14200005 bne $at, $zero, 0xBFC2AE58 */ uint32_t psx_brA_BFC2AE40 = cpu->gpr[1]; uint32_t psx_brB_BFC2AE40 = cpu->gpr[0]; - int psx_taken_BFC2AE40 = (psx_brA_BFC2AE40 != psx_brB_BFC2AE40); + psx_taken_BFC2AE40 = (psx_brA_BFC2AE40 != psx_brB_BFC2AE40); /* 0xBFC2AE44: 2C41007A sltiu $at, $v0, 122 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000007Au ? 1 : 0); if (psx_taken_BFC2AE40) goto label_BFC2AE58; @@ -137379,7 +141325,7 @@ label_BFC2AE48: psx_check_interrupts(cpu); /* 0xBFC2AE48: 10200004 beq $at, $zero, 0xBFC2AE5C */ uint32_t psx_brA_BFC2AE48 = cpu->gpr[1]; uint32_t psx_brB_BFC2AE48 = cpu->gpr[0]; - int psx_taken_BFC2AE48 = (psx_brA_BFC2AE48 == psx_brB_BFC2AE48); + psx_taken_BFC2AE48 = (psx_brA_BFC2AE48 == psx_brB_BFC2AE48); /* 0xBFC2AE4C: 2C410081 sltiu $at, $v0, 129 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000081u ? 1 : 0); if (psx_taken_BFC2AE48) goto label_BFC2AE5C; @@ -137390,7 +141336,7 @@ label_BFC2AE50: psx_check_interrupts(cpu); /* 0xBFC2AE50: 10000015 beq $zero, $zero, 0xBFC2AEA8 */ uint32_t psx_brA_BFC2AE50 = cpu->gpr[0]; uint32_t psx_brB_BFC2AE50 = cpu->gpr[0]; - int psx_taken_BFC2AE50 = (psx_brA_BFC2AE50 == psx_brB_BFC2AE50); + psx_taken_BFC2AE50 = (psx_brA_BFC2AE50 == psx_brB_BFC2AE50); /* 0xBFC2AE54: 24030008 addiu $v1, $zero, 8 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); if (psx_taken_BFC2AE50) goto label_BFC2AEA8; @@ -137408,7 +141354,7 @@ label_BFC2AE5C: psx_check_interrupts(cpu); /* 0xBFC2AE5C: 14200005 bne $at, $zero, 0xBFC2AE74 */ uint32_t psx_brA_BFC2AE5C = cpu->gpr[1]; uint32_t psx_brB_BFC2AE5C = cpu->gpr[0]; - int psx_taken_BFC2AE5C = (psx_brA_BFC2AE5C != psx_brB_BFC2AE5C); + psx_taken_BFC2AE5C = (psx_brA_BFC2AE5C != psx_brB_BFC2AE5C); /* 0xBFC2AE60: 2C41009B sltiu $at, $v0, 155 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000009Bu ? 1 : 0); if (psx_taken_BFC2AE5C) goto label_BFC2AE74; @@ -137419,7 +141365,7 @@ label_BFC2AE64: psx_check_interrupts(cpu); /* 0xBFC2AE64: 10200004 beq $at, $zero, 0xBFC2AE78 */ uint32_t psx_brA_BFC2AE64 = cpu->gpr[1]; uint32_t psx_brB_BFC2AE64 = cpu->gpr[0]; - int psx_taken_BFC2AE64 = (psx_brA_BFC2AE64 == psx_brB_BFC2AE64); + psx_taken_BFC2AE64 = (psx_brA_BFC2AE64 == psx_brB_BFC2AE64); /* 0xBFC2AE68: 2C41009F sltiu $at, $v0, 159 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000009Fu ? 1 : 0); if (psx_taken_BFC2AE64) goto label_BFC2AE78; @@ -137430,7 +141376,7 @@ label_BFC2AE6C: psx_check_interrupts(cpu); /* 0xBFC2AE6C: 1000000E beq $zero, $zero, 0xBFC2AEA8 */ uint32_t psx_brA_BFC2AE6C = cpu->gpr[0]; uint32_t psx_brB_BFC2AE6C = cpu->gpr[0]; - int psx_taken_BFC2AE6C = (psx_brA_BFC2AE6C == psx_brB_BFC2AE6C); + psx_taken_BFC2AE6C = (psx_brA_BFC2AE6C == psx_brB_BFC2AE6C); /* 0xBFC2AE70: 24030009 addiu $v1, $zero, 9 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); if (psx_taken_BFC2AE6C) goto label_BFC2AEA8; @@ -137448,7 +141394,7 @@ label_BFC2AE78: psx_check_interrupts(cpu); /* 0xBFC2AE78: 10200005 beq $at, $zero, 0xBFC2AE90 */ uint32_t psx_brA_BFC2AE78 = cpu->gpr[1]; uint32_t psx_brB_BFC2AE78 = cpu->gpr[0]; - int psx_taken_BFC2AE78 = (psx_brA_BFC2AE78 == psx_brB_BFC2AE78); + psx_taken_BFC2AE78 = (psx_brA_BFC2AE78 == psx_brB_BFC2AE78); /* 0xBFC2AE7C: 2C4100F2 sltiu $at, $v0, 242 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000F2u ? 1 : 0); if (psx_taken_BFC2AE78) goto label_BFC2AE90; @@ -137461,7 +141407,7 @@ label_BFC2AE80: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC2AE84: 10000008 beq $zero, $zero, 0xBFC2AEA8 */ uint32_t psx_brA_BFC2AE84 = cpu->gpr[0]; uint32_t psx_brB_BFC2AE84 = cpu->gpr[0]; - int psx_taken_BFC2AE84 = (psx_brA_BFC2AE84 == psx_brB_BFC2AE84); + psx_taken_BFC2AE84 = (psx_brA_BFC2AE84 == psx_brB_BFC2AE84); /* 0xBFC2AE88: 00000000 nop */ /* nop */ if (psx_taken_BFC2AE84) goto label_BFC2AEA8; @@ -137479,7 +141425,7 @@ label_BFC2AE90: psx_check_interrupts(cpu); /* 0xBFC2AE90: 14200005 bne $at, $zero, 0xBFC2AEA8 */ uint32_t psx_brA_BFC2AE90 = cpu->gpr[1]; uint32_t psx_brB_BFC2AE90 = cpu->gpr[0]; - int psx_taken_BFC2AE90 = (psx_brA_BFC2AE90 != psx_brB_BFC2AE90); + psx_taken_BFC2AE90 = (psx_brA_BFC2AE90 != psx_brB_BFC2AE90); /* 0xBFC2AE94: 2403000A addiu $v1, $zero, 10 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); if (psx_taken_BFC2AE90) goto label_BFC2AEA8; @@ -137492,7 +141438,7 @@ label_BFC2AE98: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC2AE9C: 10000002 beq $zero, $zero, 0xBFC2AEA8 */ uint32_t psx_brA_BFC2AE9C = cpu->gpr[0]; uint32_t psx_brB_BFC2AE9C = cpu->gpr[0]; - int psx_taken_BFC2AE9C = (psx_brA_BFC2AE9C == psx_brB_BFC2AE9C); + psx_taken_BFC2AE9C = (psx_brA_BFC2AE9C == psx_brB_BFC2AE9C); /* 0xBFC2AEA0: 00000000 nop */ /* nop */ if (psx_taken_BFC2AE9C) goto label_BFC2AEA8; @@ -137526,7 +141472,7 @@ label_BFC2AEA8: cpu->gpr[15] = cpu->gpr[13] - cpu->gpr[14]; /* 0xBFC2AEC8: 10000073 beq $zero, $zero, 0xBFC2B098 */ uint32_t psx_brA_BFC2AEC8 = cpu->gpr[0]; uint32_t psx_brB_BFC2AEC8 = cpu->gpr[0]; - int psx_taken_BFC2AEC8 = (psx_brA_BFC2AEC8 == psx_brB_BFC2AEC8); + psx_taken_BFC2AEC8 = (psx_brA_BFC2AEC8 == psx_brB_BFC2AEC8); /* 0xBFC2AECC: 01F82021 addu $a0, $t7, $t8 */ cpu->gpr[4] = cpu->gpr[15] + cpu->gpr[24]; if (psx_taken_BFC2AEC8) goto label_BFC2B098; @@ -137543,7 +141489,7 @@ label_BFC2AED0: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000040u ? 1 : 0); /* 0xBFC2AEDC: 14200005 bne $at, $zero, 0xBFC2AEF4 */ uint32_t psx_brA_BFC2AEDC = cpu->gpr[1]; uint32_t psx_brB_BFC2AEDC = cpu->gpr[0]; - int psx_taken_BFC2AEDC = (psx_brA_BFC2AEDC != psx_brB_BFC2AEDC); + psx_taken_BFC2AEDC = (psx_brA_BFC2AEDC != psx_brB_BFC2AEDC); /* 0xBFC2AEE0: 2C41007F sltiu $at, $v0, 127 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000007Fu ? 1 : 0); if (psx_taken_BFC2AEDC) goto label_BFC2AEF4; @@ -137554,7 +141500,7 @@ label_BFC2AEE4: psx_check_interrupts(cpu); /* 0xBFC2AEE4: 10200004 beq $at, $zero, 0xBFC2AEF8 */ uint32_t psx_brA_BFC2AEE4 = cpu->gpr[1]; uint32_t psx_brB_BFC2AEE4 = cpu->gpr[0]; - int psx_taken_BFC2AEE4 = (psx_brA_BFC2AEE4 == psx_brB_BFC2AEE4); + psx_taken_BFC2AEE4 = (psx_brA_BFC2AEE4 == psx_brB_BFC2AEE4); /* 0xBFC2AEE8: 2C410080 sltiu $at, $v0, 128 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000080u ? 1 : 0); if (psx_taken_BFC2AEE4) goto label_BFC2AEF8; @@ -137565,7 +141511,7 @@ label_BFC2AEEC: psx_check_interrupts(cpu); /* 0xBFC2AEEC: 1000001C beq $zero, $zero, 0xBFC2AF60 */ uint32_t psx_brA_BFC2AEEC = cpu->gpr[0]; uint32_t psx_brB_BFC2AEEC = cpu->gpr[0]; - int psx_taken_BFC2AEEC = (psx_brA_BFC2AEEC == psx_brB_BFC2AEEC); + psx_taken_BFC2AEEC = (psx_brA_BFC2AEEC == psx_brB_BFC2AEEC); /* 0xBFC2AEF0: 2403000B addiu $v1, $zero, 11 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (11)); if (psx_taken_BFC2AEEC) goto label_BFC2AF60; @@ -137583,7 +141529,7 @@ label_BFC2AEF8: psx_check_interrupts(cpu); /* 0xBFC2AEF8: 14200005 bne $at, $zero, 0xBFC2AF10 */ uint32_t psx_brA_BFC2AEF8 = cpu->gpr[1]; uint32_t psx_brB_BFC2AEF8 = cpu->gpr[0]; - int psx_taken_BFC2AEF8 = (psx_brA_BFC2AEF8 != psx_brB_BFC2AEF8); + psx_taken_BFC2AEF8 = (psx_brA_BFC2AEF8 != psx_brB_BFC2AEF8); /* 0xBFC2AEFC: 2C410097 sltiu $at, $v0, 151 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000097u ? 1 : 0); if (psx_taken_BFC2AEF8) goto label_BFC2AF10; @@ -137594,7 +141540,7 @@ label_BFC2AF00: psx_check_interrupts(cpu); /* 0xBFC2AF00: 10200004 beq $at, $zero, 0xBFC2AF14 */ uint32_t psx_brA_BFC2AF00 = cpu->gpr[1]; uint32_t psx_brB_BFC2AF00 = cpu->gpr[0]; - int psx_taken_BFC2AF00 = (psx_brA_BFC2AF00 == psx_brB_BFC2AF00); + psx_taken_BFC2AF00 = (psx_brA_BFC2AF00 == psx_brB_BFC2AF00); /* 0xBFC2AF04: 2C41009F sltiu $at, $v0, 159 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000009Fu ? 1 : 0); if (psx_taken_BFC2AF00) goto label_BFC2AF14; @@ -137605,7 +141551,7 @@ label_BFC2AF08: psx_check_interrupts(cpu); /* 0xBFC2AF08: 10000015 beq $zero, $zero, 0xBFC2AF60 */ uint32_t psx_brA_BFC2AF08 = cpu->gpr[0]; uint32_t psx_brB_BFC2AF08 = cpu->gpr[0]; - int psx_taken_BFC2AF08 = (psx_brA_BFC2AF08 == psx_brB_BFC2AF08); + psx_taken_BFC2AF08 = (psx_brA_BFC2AF08 == psx_brB_BFC2AF08); /* 0xBFC2AF0C: 2403000C addiu $v1, $zero, 12 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (12)); if (psx_taken_BFC2AF08) goto label_BFC2AF60; @@ -137623,7 +141569,7 @@ label_BFC2AF14: psx_check_interrupts(cpu); /* 0xBFC2AF14: 14200005 bne $at, $zero, 0xBFC2AF2C */ uint32_t psx_brA_BFC2AF14 = cpu->gpr[1]; uint32_t psx_brB_BFC2AF14 = cpu->gpr[0]; - int psx_taken_BFC2AF14 = (psx_brA_BFC2AF14 != psx_brB_BFC2AF14); + psx_taken_BFC2AF14 = (psx_brA_BFC2AF14 != psx_brB_BFC2AF14); /* 0xBFC2AF18: 2C4100B7 sltiu $at, $v0, 183 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000B7u ? 1 : 0); if (psx_taken_BFC2AF14) goto label_BFC2AF2C; @@ -137634,7 +141580,7 @@ label_BFC2AF1C: psx_check_interrupts(cpu); /* 0xBFC2AF1C: 10200004 beq $at, $zero, 0xBFC2AF30 */ uint32_t psx_brA_BFC2AF1C = cpu->gpr[1]; uint32_t psx_brB_BFC2AF1C = cpu->gpr[0]; - int psx_taken_BFC2AF1C = (psx_brA_BFC2AF1C == psx_brB_BFC2AF1C); + psx_taken_BFC2AF1C = (psx_brA_BFC2AF1C == psx_brB_BFC2AF1C); /* 0xBFC2AF20: 2C4100BF sltiu $at, $v0, 191 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000BFu ? 1 : 0); if (psx_taken_BFC2AF1C) goto label_BFC2AF30; @@ -137645,7 +141591,7 @@ label_BFC2AF24: psx_check_interrupts(cpu); /* 0xBFC2AF24: 1000000E beq $zero, $zero, 0xBFC2AF60 */ uint32_t psx_brA_BFC2AF24 = cpu->gpr[0]; uint32_t psx_brB_BFC2AF24 = cpu->gpr[0]; - int psx_taken_BFC2AF24 = (psx_brA_BFC2AF24 == psx_brB_BFC2AF24); + psx_taken_BFC2AF24 = (psx_brA_BFC2AF24 == psx_brB_BFC2AF24); /* 0xBFC2AF28: 2403000D addiu $v1, $zero, 13 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (13)); if (psx_taken_BFC2AF24) goto label_BFC2AF60; @@ -137663,7 +141609,7 @@ label_BFC2AF30: psx_check_interrupts(cpu); /* 0xBFC2AF30: 10200005 beq $at, $zero, 0xBFC2AF48 */ uint32_t psx_brA_BFC2AF30 = cpu->gpr[1]; uint32_t psx_brB_BFC2AF30 = cpu->gpr[0]; - int psx_taken_BFC2AF30 = (psx_brA_BFC2AF30 == psx_brB_BFC2AF30); + psx_taken_BFC2AF30 = (psx_brA_BFC2AF30 == psx_brB_BFC2AF30); /* 0xBFC2AF34: 2C4100D7 sltiu $at, $v0, 215 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000D7u ? 1 : 0); if (psx_taken_BFC2AF30) goto label_BFC2AF48; @@ -137676,7 +141622,7 @@ label_BFC2AF38: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC2AF3C: 10000008 beq $zero, $zero, 0xBFC2AF60 */ uint32_t psx_brA_BFC2AF3C = cpu->gpr[0]; uint32_t psx_brB_BFC2AF3C = cpu->gpr[0]; - int psx_taken_BFC2AF3C = (psx_brA_BFC2AF3C == psx_brB_BFC2AF3C); + psx_taken_BFC2AF3C = (psx_brA_BFC2AF3C == psx_brB_BFC2AF3C); /* 0xBFC2AF40: 00000000 nop */ /* nop */ if (psx_taken_BFC2AF3C) goto label_BFC2AF60; @@ -137694,7 +141640,7 @@ label_BFC2AF48: psx_check_interrupts(cpu); /* 0xBFC2AF48: 14200005 bne $at, $zero, 0xBFC2AF60 */ uint32_t psx_brA_BFC2AF48 = cpu->gpr[1]; uint32_t psx_brB_BFC2AF48 = cpu->gpr[0]; - int psx_taken_BFC2AF48 = (psx_brA_BFC2AF48 != psx_brB_BFC2AF48); + psx_taken_BFC2AF48 = (psx_brA_BFC2AF48 != psx_brB_BFC2AF48); /* 0xBFC2AF4C: 2403000E addiu $v1, $zero, 14 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (14)); if (psx_taken_BFC2AF48) goto label_BFC2AF60; @@ -137707,7 +141653,7 @@ label_BFC2AF50: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC2AF54: 10000002 beq $zero, $zero, 0xBFC2AF60 */ uint32_t psx_brA_BFC2AF54 = cpu->gpr[0]; uint32_t psx_brB_BFC2AF54 = cpu->gpr[0]; - int psx_taken_BFC2AF54 = (psx_brA_BFC2AF54 == psx_brB_BFC2AF54); + psx_taken_BFC2AF54 = (psx_brA_BFC2AF54 == psx_brB_BFC2AF54); /* 0xBFC2AF58: 00000000 nop */ /* nop */ if (psx_taken_BFC2AF54) goto label_BFC2AF60; @@ -137741,7 +141687,7 @@ label_BFC2AF60: cpu->gpr[11] = cpu->gpr[9] - cpu->gpr[10]; /* 0xBFC2AF80: 10000045 beq $zero, $zero, 0xBFC2B098 */ uint32_t psx_brA_BFC2AF80 = cpu->gpr[0]; uint32_t psx_brB_BFC2AF80 = cpu->gpr[0]; - int psx_taken_BFC2AF80 = (psx_brA_BFC2AF80 == psx_brB_BFC2AF80); + psx_taken_BFC2AF80 = (psx_brA_BFC2AF80 == psx_brB_BFC2AF80); /* 0xBFC2AF84: 016C2021 addu $a0, $t3, $t4 */ cpu->gpr[4] = cpu->gpr[11] + cpu->gpr[12]; if (psx_taken_BFC2AF80) goto label_BFC2B098; @@ -137758,7 +141704,7 @@ label_BFC2AF88: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000040u ? 1 : 0); /* 0xBFC2AF94: 14200005 bne $at, $zero, 0xBFC2AFAC */ uint32_t psx_brA_BFC2AF94 = cpu->gpr[1]; uint32_t psx_brB_BFC2AF94 = cpu->gpr[0]; - int psx_taken_BFC2AF94 = (psx_brA_BFC2AF94 != psx_brB_BFC2AF94); + psx_taken_BFC2AF94 = (psx_brA_BFC2AF94 != psx_brB_BFC2AF94); /* 0xBFC2AF98: 2C410061 sltiu $at, $v0, 97 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000061u ? 1 : 0); if (psx_taken_BFC2AF94) goto label_BFC2AFAC; @@ -137769,7 +141715,7 @@ label_BFC2AF9C: psx_check_interrupts(cpu); /* 0xBFC2AF9C: 10200004 beq $at, $zero, 0xBFC2AFB0 */ uint32_t psx_brA_BFC2AF9C = cpu->gpr[1]; uint32_t psx_brB_BFC2AF9C = cpu->gpr[0]; - int psx_taken_BFC2AF9C = (psx_brA_BFC2AF9C == psx_brB_BFC2AF9C); + psx_taken_BFC2AF9C = (psx_brA_BFC2AF9C == psx_brB_BFC2AF9C); /* 0xBFC2AFA0: 2C410070 sltiu $at, $v0, 112 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000070u ? 1 : 0); if (psx_taken_BFC2AF9C) goto label_BFC2AFB0; @@ -137780,7 +141726,7 @@ label_BFC2AFA4: psx_check_interrupts(cpu); /* 0xBFC2AFA4: 1000001C beq $zero, $zero, 0xBFC2B018 */ uint32_t psx_brA_BFC2AFA4 = cpu->gpr[0]; uint32_t psx_brB_BFC2AFA4 = cpu->gpr[0]; - int psx_taken_BFC2AFA4 = (psx_brA_BFC2AFA4 == psx_brB_BFC2AFA4); + psx_taken_BFC2AFA4 = (psx_brA_BFC2AFA4 == psx_brB_BFC2AFA4); /* 0xBFC2AFA8: 2403000F addiu $v1, $zero, 15 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (15)); if (psx_taken_BFC2AFA4) goto label_BFC2B018; @@ -137798,7 +141744,7 @@ label_BFC2AFB0: psx_check_interrupts(cpu); /* 0xBFC2AFB0: 14200005 bne $at, $zero, 0xBFC2AFC8 */ uint32_t psx_brA_BFC2AFB0 = cpu->gpr[1]; uint32_t psx_brB_BFC2AFB0 = cpu->gpr[0]; - int psx_taken_BFC2AFB0 = (psx_brA_BFC2AFB0 != psx_brB_BFC2AFB0); + psx_taken_BFC2AFB0 = (psx_brA_BFC2AFB0 != psx_brB_BFC2AFB0); /* 0xBFC2AFB4: 2C41007F sltiu $at, $v0, 127 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000007Fu ? 1 : 0); if (psx_taken_BFC2AFB0) goto label_BFC2AFC8; @@ -137809,7 +141755,7 @@ label_BFC2AFB8: psx_check_interrupts(cpu); /* 0xBFC2AFB8: 10200004 beq $at, $zero, 0xBFC2AFCC */ uint32_t psx_brA_BFC2AFB8 = cpu->gpr[1]; uint32_t psx_brB_BFC2AFB8 = cpu->gpr[0]; - int psx_taken_BFC2AFB8 = (psx_brA_BFC2AFB8 == psx_brB_BFC2AFB8); + psx_taken_BFC2AFB8 = (psx_brA_BFC2AFB8 == psx_brB_BFC2AFB8); /* 0xBFC2AFBC: 2C410080 sltiu $at, $v0, 128 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000080u ? 1 : 0); if (psx_taken_BFC2AFB8) goto label_BFC2AFCC; @@ -137820,7 +141766,7 @@ label_BFC2AFC0: psx_check_interrupts(cpu); /* 0xBFC2AFC0: 10000015 beq $zero, $zero, 0xBFC2B018 */ uint32_t psx_brA_BFC2AFC0 = cpu->gpr[0]; uint32_t psx_brB_BFC2AFC0 = cpu->gpr[0]; - int psx_taken_BFC2AFC0 = (psx_brA_BFC2AFC0 == psx_brB_BFC2AFC0); + psx_taken_BFC2AFC0 = (psx_brA_BFC2AFC0 == psx_brB_BFC2AFC0); /* 0xBFC2AFC4: 24030010 addiu $v1, $zero, 16 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); if (psx_taken_BFC2AFC0) goto label_BFC2B018; @@ -137838,7 +141784,7 @@ label_BFC2AFCC: psx_check_interrupts(cpu); /* 0xBFC2AFCC: 14200005 bne $at, $zero, 0xBFC2AFE4 */ uint32_t psx_brA_BFC2AFCC = cpu->gpr[1]; uint32_t psx_brB_BFC2AFCC = cpu->gpr[0]; - int psx_taken_BFC2AFCC = (psx_brA_BFC2AFCC != psx_brB_BFC2AFCC); + psx_taken_BFC2AFCC = (psx_brA_BFC2AFCC != psx_brB_BFC2AFCC); /* 0xBFC2AFD0: 2C410092 sltiu $at, $v0, 146 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000092u ? 1 : 0); if (psx_taken_BFC2AFCC) goto label_BFC2AFE4; @@ -137849,7 +141795,7 @@ label_BFC2AFD4: psx_check_interrupts(cpu); /* 0xBFC2AFD4: 10200004 beq $at, $zero, 0xBFC2AFE8 */ uint32_t psx_brA_BFC2AFD4 = cpu->gpr[1]; uint32_t psx_brB_BFC2AFD4 = cpu->gpr[0]; - int psx_taken_BFC2AFD4 = (psx_brA_BFC2AFD4 == psx_brB_BFC2AFD4); + psx_taken_BFC2AFD4 = (psx_brA_BFC2AFD4 == psx_brB_BFC2AFD4); /* 0xBFC2AFD8: 2C41009F sltiu $at, $v0, 159 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000009Fu ? 1 : 0); if (psx_taken_BFC2AFD4) goto label_BFC2AFE8; @@ -137860,7 +141806,7 @@ label_BFC2AFDC: psx_check_interrupts(cpu); /* 0xBFC2AFDC: 1000000E beq $zero, $zero, 0xBFC2B018 */ uint32_t psx_brA_BFC2AFDC = cpu->gpr[0]; uint32_t psx_brB_BFC2AFDC = cpu->gpr[0]; - int psx_taken_BFC2AFDC = (psx_brA_BFC2AFDC == psx_brB_BFC2AFDC); + psx_taken_BFC2AFDC = (psx_brA_BFC2AFDC == psx_brB_BFC2AFDC); /* 0xBFC2AFE0: 24030011 addiu $v1, $zero, 17 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (17)); if (psx_taken_BFC2AFDC) goto label_BFC2B018; @@ -137878,7 +141824,7 @@ label_BFC2AFE8: psx_check_interrupts(cpu); /* 0xBFC2AFE8: 10200005 beq $at, $zero, 0xBFC2B000 */ uint32_t psx_brA_BFC2AFE8 = cpu->gpr[1]; uint32_t psx_brB_BFC2AFE8 = cpu->gpr[0]; - int psx_taken_BFC2AFE8 = (psx_brA_BFC2AFE8 == psx_brB_BFC2AFE8); + psx_taken_BFC2AFE8 = (psx_brA_BFC2AFE8 == psx_brB_BFC2AFE8); /* 0xBFC2AFEC: 2C4100BF sltiu $at, $v0, 191 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x000000BFu ? 1 : 0); if (psx_taken_BFC2AFE8) goto label_BFC2B000; @@ -137891,7 +141837,7 @@ label_BFC2AFF0: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC2AFF4: 10000008 beq $zero, $zero, 0xBFC2B018 */ uint32_t psx_brA_BFC2AFF4 = cpu->gpr[0]; uint32_t psx_brB_BFC2AFF4 = cpu->gpr[0]; - int psx_taken_BFC2AFF4 = (psx_brA_BFC2AFF4 == psx_brB_BFC2AFF4); + psx_taken_BFC2AFF4 = (psx_brA_BFC2AFF4 == psx_brB_BFC2AFF4); /* 0xBFC2AFF8: 00000000 nop */ /* nop */ if (psx_taken_BFC2AFF4) goto label_BFC2B018; @@ -137909,7 +141855,7 @@ label_BFC2B000: psx_check_interrupts(cpu); /* 0xBFC2B000: 14200005 bne $at, $zero, 0xBFC2B018 */ uint32_t psx_brA_BFC2B000 = cpu->gpr[1]; uint32_t psx_brB_BFC2B000 = cpu->gpr[0]; - int psx_taken_BFC2B000 = (psx_brA_BFC2B000 != psx_brB_BFC2B000); + psx_taken_BFC2B000 = (psx_brA_BFC2B000 != psx_brB_BFC2B000); /* 0xBFC2B004: 24030012 addiu $v1, $zero, 18 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (18)); if (psx_taken_BFC2B000) goto label_BFC2B018; @@ -137922,7 +141868,7 @@ label_BFC2B008: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (28))); /* 0xBFC2B00C: 10000002 beq $zero, $zero, 0xBFC2B018 */ uint32_t psx_brA_BFC2B00C = cpu->gpr[0]; uint32_t psx_brB_BFC2B00C = cpu->gpr[0]; - int psx_taken_BFC2B00C = (psx_brA_BFC2B00C == psx_brB_BFC2B00C); + psx_taken_BFC2B00C = (psx_brA_BFC2B00C == psx_brB_BFC2B00C); /* 0xBFC2B010: 00000000 nop */ /* nop */ if (psx_taken_BFC2B00C) goto label_BFC2B018; @@ -137956,7 +141902,7 @@ label_BFC2B018: cpu->gpr[25] = cpu->gpr[15] - cpu->gpr[24]; /* 0xBFC2B038: 10000017 beq $zero, $zero, 0xBFC2B098 */ uint32_t psx_brA_BFC2B038 = cpu->gpr[0]; uint32_t psx_brB_BFC2B038 = cpu->gpr[0]; - int psx_taken_BFC2B038 = (psx_brA_BFC2B038 == psx_brB_BFC2B038); + psx_taken_BFC2B038 = (psx_brA_BFC2B038 == psx_brB_BFC2B038); /* 0xBFC2B03C: 03282021 addu $a0, $t9, $t0 */ cpu->gpr[4] = cpu->gpr[25] + cpu->gpr[8]; if (psx_taken_BFC2B038) goto label_BFC2B098; @@ -137973,7 +141919,7 @@ label_BFC2B040: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x0000007Fu ? 1 : 0); /* 0xBFC2B04C: 10200004 beq $at, $zero, 0xBFC2B060 */ uint32_t psx_brA_BFC2B04C = cpu->gpr[1]; uint32_t psx_brB_BFC2B04C = cpu->gpr[0]; - int psx_taken_BFC2B04C = (psx_brA_BFC2B04C == psx_brB_BFC2B04C); + psx_taken_BFC2B04C = (psx_brA_BFC2B04C == psx_brB_BFC2B04C); /* 0xBFC2B050: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC2B04C) goto label_BFC2B060; @@ -137984,7 +141930,7 @@ label_BFC2B054: psx_check_interrupts(cpu); /* 0xBFC2B054: 10000002 beq $zero, $zero, 0xBFC2B060 */ uint32_t psx_brA_BFC2B054 = cpu->gpr[0]; uint32_t psx_brB_BFC2B054 = cpu->gpr[0]; - int psx_taken_BFC2B054 = (psx_brA_BFC2B054 == psx_brB_BFC2B054); + psx_taken_BFC2B054 = (psx_brA_BFC2B054 == psx_brB_BFC2B054); /* 0xBFC2B058: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2B054) goto label_BFC2B060; @@ -138026,7 +141972,7 @@ label_BFC2B060: cpu->gpr[25] = cpu->gpr[15] - cpu->gpr[24]; /* 0xBFC2B090: 10000001 beq $zero, $zero, 0xBFC2B098 */ uint32_t psx_brA_BFC2B090 = cpu->gpr[0]; uint32_t psx_brB_BFC2B090 = cpu->gpr[0]; - int psx_taken_BFC2B090 = (psx_brA_BFC2B090 == psx_brB_BFC2B090); + psx_taken_BFC2B090 = (psx_brA_BFC2B090 == psx_brB_BFC2B090); /* 0xBFC2B094: 03282021 addu $a0, $t9, $t0 */ cpu->gpr[4] = cpu->gpr[25] + cpu->gpr[8]; if (psx_taken_BFC2B090) goto label_BFC2B098; @@ -138055,6 +142001,30 @@ void func_1FC2B0A8(CPUState* cpu) { default: break; } } + int psx_taken_BFC2B0B8 = 0; + int psx_taken_BFC2B0C4 = 0; + int psx_taken_BFC2B0CC = 0; + int psx_taken_BFC2B0D8 = 0; + int psx_taken_BFC2B0E0 = 0; + int psx_taken_BFC2B0E8 = 0; + int psx_taken_BFC2B0F4 = 0; + int psx_taken_BFC2B0FC = 0; + int psx_taken_BFC2B104 = 0; + int psx_taken_BFC2B110 = 0; + int psx_taken_BFC2B118 = 0; + int psx_taken_BFC2B124 = 0; + int psx_taken_BFC2B130 = 0; + int psx_taken_BFC2B138 = 0; + int psx_taken_BFC2B140 = 0; + int psx_taken_BFC2B14C = 0; + int psx_taken_BFC2B154 = 0; + int psx_taken_BFC2B160 = 0; + int psx_taken_BFC2B16C = 0; + int psx_taken_BFC2B174 = 0; + int psx_taken_BFC2B17C = 0; + int psx_taken_BFC2B190 = 0; + int psx_taken_BFC2B198 = 0; + int psx_taken_BFC2B1BC = 0; label_BFC2B0A8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -138070,7 +142040,7 @@ label_BFC2B0A8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2B0B4u); return; } g_debug_last_store_pc = 0xBFC2B0B4u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC2B0B8: 14200006 bne $at, $zero, 0xBFC2B0D4 */ uint32_t psx_brA_BFC2B0B8 = cpu->gpr[1]; uint32_t psx_brB_BFC2B0B8 = cpu->gpr[0]; - int psx_taken_BFC2B0B8 = (psx_brA_BFC2B0B8 != psx_brB_BFC2B0B8); + psx_taken_BFC2B0B8 = (psx_brA_BFC2B0B8 != psx_brB_BFC2B0B8); /* 0xBFC2B0BC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2B0B8) goto label_BFC2B0D4; @@ -138083,7 +142053,7 @@ label_BFC2B0C0: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000030u ? 1 : 0); /* 0xBFC2B0C4: 10200004 beq $at, $zero, 0xBFC2B0D8 */ uint32_t psx_brA_BFC2B0C4 = cpu->gpr[1]; uint32_t psx_brB_BFC2B0C4 = cpu->gpr[0]; - int psx_taken_BFC2B0C4 = (psx_brA_BFC2B0C4 == psx_brB_BFC2B0C4); + psx_taken_BFC2B0C4 = (psx_brA_BFC2B0C4 == psx_brB_BFC2B0C4); /* 0xBFC2B0C8: 2CA10030 sltiu $at, $a1, 48 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000030u ? 1 : 0); if (psx_taken_BFC2B0C4) goto label_BFC2B0D8; @@ -138094,7 +142064,7 @@ label_BFC2B0CC: psx_check_interrupts(cpu); /* 0xBFC2B0CC: 10000032 beq $zero, $zero, 0xBFC2B198 */ uint32_t psx_brA_BFC2B0CC = cpu->gpr[0]; uint32_t psx_brB_BFC2B0CC = cpu->gpr[0]; - int psx_taken_BFC2B0CC = (psx_brA_BFC2B0CC == psx_brB_BFC2B0CC); + psx_taken_BFC2B0CC = (psx_brA_BFC2B0CC == psx_brB_BFC2B0CC); /* 0xBFC2B0D0: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC2B0CC) goto label_BFC2B198; @@ -138112,7 +142082,7 @@ label_BFC2B0D8: psx_check_interrupts(cpu); /* 0xBFC2B0D8: 14200005 bne $at, $zero, 0xBFC2B0F0 */ uint32_t psx_brA_BFC2B0D8 = cpu->gpr[1]; uint32_t psx_brB_BFC2B0D8 = cpu->gpr[0]; - int psx_taken_BFC2B0D8 = (psx_brA_BFC2B0D8 != psx_brB_BFC2B0D8); + psx_taken_BFC2B0D8 = (psx_brA_BFC2B0D8 != psx_brB_BFC2B0D8); /* 0xBFC2B0DC: 2CA1003A sltiu $at, $a1, 58 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x0000003Au ? 1 : 0); if (psx_taken_BFC2B0D8) goto label_BFC2B0F0; @@ -138123,7 +142093,7 @@ label_BFC2B0E0: psx_check_interrupts(cpu); /* 0xBFC2B0E0: 10200004 beq $at, $zero, 0xBFC2B0F4 */ uint32_t psx_brA_BFC2B0E0 = cpu->gpr[1]; uint32_t psx_brB_BFC2B0E0 = cpu->gpr[0]; - int psx_taken_BFC2B0E0 = (psx_brA_BFC2B0E0 == psx_brB_BFC2B0E0); + psx_taken_BFC2B0E0 = (psx_brA_BFC2B0E0 == psx_brB_BFC2B0E0); /* 0xBFC2B0E4: 2CA1003A sltiu $at, $a1, 58 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x0000003Au ? 1 : 0); if (psx_taken_BFC2B0E0) goto label_BFC2B0F4; @@ -138134,7 +142104,7 @@ label_BFC2B0E8: psx_check_interrupts(cpu); /* 0xBFC2B0E8: 1000002B beq $zero, $zero, 0xBFC2B198 */ uint32_t psx_brA_BFC2B0E8 = cpu->gpr[0]; uint32_t psx_brB_BFC2B0E8 = cpu->gpr[0]; - int psx_taken_BFC2B0E8 = (psx_brA_BFC2B0E8 == psx_brB_BFC2B0E8); + psx_taken_BFC2B0E8 = (psx_brA_BFC2B0E8 == psx_brB_BFC2B0E8); /* 0xBFC2B0EC: A3A00020 sb $zero, 32($sp) */ g_debug_last_store_pc = 0xBFC2B0ECu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[29] + (32)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC2B0E8) goto label_BFC2B198; @@ -138152,7 +142122,7 @@ label_BFC2B0F4: psx_check_interrupts(cpu); /* 0xBFC2B0F4: 14200005 bne $at, $zero, 0xBFC2B10C */ uint32_t psx_brA_BFC2B0F4 = cpu->gpr[1]; uint32_t psx_brB_BFC2B0F4 = cpu->gpr[0]; - int psx_taken_BFC2B0F4 = (psx_brA_BFC2B0F4 != psx_brB_BFC2B0F4); + psx_taken_BFC2B0F4 = (psx_brA_BFC2B0F4 != psx_brB_BFC2B0F4); /* 0xBFC2B0F8: 2CA10041 sltiu $at, $a1, 65 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000041u ? 1 : 0); if (psx_taken_BFC2B0F4) goto label_BFC2B10C; @@ -138163,7 +142133,7 @@ label_BFC2B0FC: psx_check_interrupts(cpu); /* 0xBFC2B0FC: 10200004 beq $at, $zero, 0xBFC2B110 */ uint32_t psx_brA_BFC2B0FC = cpu->gpr[1]; uint32_t psx_brB_BFC2B0FC = cpu->gpr[0]; - int psx_taken_BFC2B0FC = (psx_brA_BFC2B0FC == psx_brB_BFC2B0FC); + psx_taken_BFC2B0FC = (psx_brA_BFC2B0FC == psx_brB_BFC2B0FC); /* 0xBFC2B100: 2CA10041 sltiu $at, $a1, 65 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000041u ? 1 : 0); if (psx_taken_BFC2B0FC) goto label_BFC2B110; @@ -138174,7 +142144,7 @@ label_BFC2B104: psx_check_interrupts(cpu); /* 0xBFC2B104: 10000024 beq $zero, $zero, 0xBFC2B198 */ uint32_t psx_brA_BFC2B104 = cpu->gpr[0]; uint32_t psx_brB_BFC2B104 = cpu->gpr[0]; - int psx_taken_BFC2B104 = (psx_brA_BFC2B104 == psx_brB_BFC2B104); + psx_taken_BFC2B104 = (psx_brA_BFC2B104 == psx_brB_BFC2B104); /* 0xBFC2B108: 2402000B addiu $v0, $zero, 11 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (11)); if (psx_taken_BFC2B104) goto label_BFC2B198; @@ -138192,7 +142162,7 @@ label_BFC2B110: psx_check_interrupts(cpu); /* 0xBFC2B110: 14200006 bne $at, $zero, 0xBFC2B12C */ uint32_t psx_brA_BFC2B110 = cpu->gpr[1]; uint32_t psx_brB_BFC2B110 = cpu->gpr[0]; - int psx_taken_BFC2B110 = (psx_brA_BFC2B110 != psx_brB_BFC2B110); + psx_taken_BFC2B110 = (psx_brA_BFC2B110 != psx_brB_BFC2B110); /* 0xBFC2B114: 2CA1005B sltiu $at, $a1, 91 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x0000005Bu ? 1 : 0); if (psx_taken_BFC2B110) goto label_BFC2B12C; @@ -138203,7 +142173,7 @@ label_BFC2B118: psx_check_interrupts(cpu); /* 0xBFC2B118: 10200005 beq $at, $zero, 0xBFC2B130 */ uint32_t psx_brA_BFC2B118 = cpu->gpr[1]; uint32_t psx_brB_BFC2B118 = cpu->gpr[0]; - int psx_taken_BFC2B118 = (psx_brA_BFC2B118 == psx_brB_BFC2B118); + psx_taken_BFC2B118 = (psx_brA_BFC2B118 == psx_brB_BFC2B118); /* 0xBFC2B11C: 2CA1005B sltiu $at, $a1, 91 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x0000005Bu ? 1 : 0); if (psx_taken_BFC2B118) goto label_BFC2B130; @@ -138216,7 +142186,7 @@ label_BFC2B120: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC2B124: 1000001C beq $zero, $zero, 0xBFC2B198 */ uint32_t psx_brA_BFC2B124 = cpu->gpr[0]; uint32_t psx_brB_BFC2B124 = cpu->gpr[0]; - int psx_taken_BFC2B124 = (psx_brA_BFC2B124 == psx_brB_BFC2B124); + psx_taken_BFC2B124 = (psx_brA_BFC2B124 == psx_brB_BFC2B124); /* 0xBFC2B128: A3AE0020 sb $t6, 32($sp) */ g_debug_last_store_pc = 0xBFC2B128u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[29] + (32)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC2B124) goto label_BFC2B198; @@ -138234,7 +142204,7 @@ label_BFC2B130: psx_check_interrupts(cpu); /* 0xBFC2B130: 14200005 bne $at, $zero, 0xBFC2B148 */ uint32_t psx_brA_BFC2B130 = cpu->gpr[1]; uint32_t psx_brB_BFC2B130 = cpu->gpr[0]; - int psx_taken_BFC2B130 = (psx_brA_BFC2B130 != psx_brB_BFC2B130); + psx_taken_BFC2B130 = (psx_brA_BFC2B130 != psx_brB_BFC2B130); /* 0xBFC2B134: 2CA10061 sltiu $at, $a1, 97 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000061u ? 1 : 0); if (psx_taken_BFC2B130) goto label_BFC2B148; @@ -138245,7 +142215,7 @@ label_BFC2B138: psx_check_interrupts(cpu); /* 0xBFC2B138: 10200004 beq $at, $zero, 0xBFC2B14C */ uint32_t psx_brA_BFC2B138 = cpu->gpr[1]; uint32_t psx_brB_BFC2B138 = cpu->gpr[0]; - int psx_taken_BFC2B138 = (psx_brA_BFC2B138 == psx_brB_BFC2B138); + psx_taken_BFC2B138 = (psx_brA_BFC2B138 == psx_brB_BFC2B138); /* 0xBFC2B13C: 2CA10061 sltiu $at, $a1, 97 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000061u ? 1 : 0); if (psx_taken_BFC2B138) goto label_BFC2B14C; @@ -138256,7 +142226,7 @@ label_BFC2B140: psx_check_interrupts(cpu); /* 0xBFC2B140: 10000015 beq $zero, $zero, 0xBFC2B198 */ uint32_t psx_brA_BFC2B140 = cpu->gpr[0]; uint32_t psx_brB_BFC2B140 = cpu->gpr[0]; - int psx_taken_BFC2B140 = (psx_brA_BFC2B140 == psx_brB_BFC2B140); + psx_taken_BFC2B140 = (psx_brA_BFC2B140 == psx_brB_BFC2B140); /* 0xBFC2B144: 24020025 addiu $v0, $zero, 37 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (37)); if (psx_taken_BFC2B140) goto label_BFC2B198; @@ -138274,7 +142244,7 @@ label_BFC2B14C: psx_check_interrupts(cpu); /* 0xBFC2B14C: 14200006 bne $at, $zero, 0xBFC2B168 */ uint32_t psx_brA_BFC2B14C = cpu->gpr[1]; uint32_t psx_brB_BFC2B14C = cpu->gpr[0]; - int psx_taken_BFC2B14C = (psx_brA_BFC2B14C != psx_brB_BFC2B14C); + psx_taken_BFC2B14C = (psx_brA_BFC2B14C != psx_brB_BFC2B14C); /* 0xBFC2B150: 2CA1007B sltiu $at, $a1, 123 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x0000007Bu ? 1 : 0); if (psx_taken_BFC2B14C) goto label_BFC2B168; @@ -138285,7 +142255,7 @@ label_BFC2B154: psx_check_interrupts(cpu); /* 0xBFC2B154: 10200005 beq $at, $zero, 0xBFC2B16C */ uint32_t psx_brA_BFC2B154 = cpu->gpr[1]; uint32_t psx_brB_BFC2B154 = cpu->gpr[0]; - int psx_taken_BFC2B154 = (psx_brA_BFC2B154 == psx_brB_BFC2B154); + psx_taken_BFC2B154 = (psx_brA_BFC2B154 == psx_brB_BFC2B154); /* 0xBFC2B158: 2CA1007B sltiu $at, $a1, 123 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x0000007Bu ? 1 : 0); if (psx_taken_BFC2B154) goto label_BFC2B16C; @@ -138298,7 +142268,7 @@ label_BFC2B15C: cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC2B160: 1000000D beq $zero, $zero, 0xBFC2B198 */ uint32_t psx_brA_BFC2B160 = cpu->gpr[0]; uint32_t psx_brB_BFC2B160 = cpu->gpr[0]; - int psx_taken_BFC2B160 = (psx_brA_BFC2B160 == psx_brB_BFC2B160); + psx_taken_BFC2B160 = (psx_brA_BFC2B160 == psx_brB_BFC2B160); /* 0xBFC2B164: A3AF0020 sb $t7, 32($sp) */ g_debug_last_store_pc = 0xBFC2B164u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[29] + (32)), (uint8_t)(cpu->gpr[15] & 0xFFu)); if (psx_taken_BFC2B160) goto label_BFC2B198; @@ -138316,7 +142286,7 @@ label_BFC2B16C: psx_check_interrupts(cpu); /* 0xBFC2B16C: 14200005 bne $at, $zero, 0xBFC2B184 */ uint32_t psx_brA_BFC2B16C = cpu->gpr[1]; uint32_t psx_brB_BFC2B16C = cpu->gpr[0]; - int psx_taken_BFC2B16C = (psx_brA_BFC2B16C != psx_brB_BFC2B16C); + psx_taken_BFC2B16C = (psx_brA_BFC2B16C != psx_brB_BFC2B16C); /* 0xBFC2B170: 2CA1007F sltiu $at, $a1, 127 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x0000007Fu ? 1 : 0); if (psx_taken_BFC2B16C) goto label_BFC2B184; @@ -138327,7 +142297,7 @@ label_BFC2B174: psx_check_interrupts(cpu); /* 0xBFC2B174: 10200003 beq $at, $zero, 0xBFC2B184 */ uint32_t psx_brA_BFC2B174 = cpu->gpr[1]; uint32_t psx_brB_BFC2B174 = cpu->gpr[0]; - int psx_taken_BFC2B174 = (psx_brA_BFC2B174 == psx_brB_BFC2B174); + psx_taken_BFC2B174 = (psx_brA_BFC2B174 == psx_brB_BFC2B174); /* 0xBFC2B178: 00000000 nop */ /* nop */ if (psx_taken_BFC2B174) goto label_BFC2B184; @@ -138338,7 +142308,7 @@ label_BFC2B17C: psx_check_interrupts(cpu); /* 0xBFC2B17C: 10000006 beq $zero, $zero, 0xBFC2B198 */ uint32_t psx_brA_BFC2B17C = cpu->gpr[0]; uint32_t psx_brB_BFC2B17C = cpu->gpr[0]; - int psx_taken_BFC2B17C = (psx_brA_BFC2B17C == psx_brB_BFC2B17C); + psx_taken_BFC2B17C = (psx_brA_BFC2B17C == psx_brB_BFC2B17C); /* 0xBFC2B180: 2402003F addiu $v0, $zero, 63 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (63)); if (psx_taken_BFC2B17C) goto label_BFC2B198; @@ -138361,7 +142331,7 @@ label_BFC2B190: psx_check_interrupts(cpu); /* 0xBFC2B190: 10000016 beq $zero, $zero, 0xBFC2B1EC */ uint32_t psx_brA_BFC2B190 = cpu->gpr[0]; uint32_t psx_brB_BFC2B190 = cpu->gpr[0]; - int psx_taken_BFC2B190 = (psx_brA_BFC2B190 == psx_brB_BFC2B190); + psx_taken_BFC2B190 = (psx_brA_BFC2B190 == psx_brB_BFC2B190); /* 0xBFC2B194: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2B190) goto label_BFC2B1EC; @@ -138372,7 +142342,7 @@ label_BFC2B198: psx_check_interrupts(cpu); /* 0xBFC2B198: 1040000B beq $v0, $zero, 0xBFC2B1C8 */ uint32_t psx_brA_BFC2B198 = cpu->gpr[2]; uint32_t psx_brB_BFC2B198 = cpu->gpr[0]; - int psx_taken_BFC2B198 = (psx_brA_BFC2B198 == psx_brB_BFC2B198); + psx_taken_BFC2B198 = (psx_brA_BFC2B198 == psx_brB_BFC2B198); /* 0xBFC2B19C: 93A90020 lbu $t1, 32($sp) */ cpu->gpr[9] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (32))); if (psx_taken_BFC2B198) goto label_BFC2B1C8; @@ -138397,7 +142367,7 @@ label_BFC2B1A0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-32414)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2B1B8u); return; } cpu->gpr[3] = (uint32_t)cpu->read_half(psx_addr); } /* 0xBFC2B1BC: 1000000B beq $zero, $zero, 0xBFC2B1EC */ uint32_t psx_brA_BFC2B1BC = cpu->gpr[0]; uint32_t psx_brB_BFC2B1BC = cpu->gpr[0]; - int psx_taken_BFC2B1BC = (psx_brA_BFC2B1BC == psx_brB_BFC2B1BC); + psx_taken_BFC2B1BC = (psx_brA_BFC2B1BC == psx_brB_BFC2B1BC); /* 0xBFC2B1C0: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC2B1BC) goto label_BFC2B1EC; @@ -138448,6 +142418,8 @@ label_BFC2B1EC: void func_1FC2B1FC(CPUState* cpu) { debug_server_log_call_entry(0x1FC2B1FCu); + int psx_taken_BFC2B200 = 0; + int psx_taken_BFC2B21C = 0; label_BFC2B1FC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -138457,7 +142429,7 @@ label_BFC2B1FC: cpu->gpr[2] = cpu->gpr[6] + cpu->gpr[0]; /* 0xBFC2B200: 10400008 beq $v0, $zero, 0xBFC2B224 */ uint32_t psx_brA_BFC2B200 = cpu->gpr[2]; uint32_t psx_brB_BFC2B200 = cpu->gpr[0]; - int psx_taken_BFC2B200 = (psx_brA_BFC2B200 == psx_brB_BFC2B200); + psx_taken_BFC2B200 = (psx_brA_BFC2B200 == psx_brB_BFC2B200); /* 0xBFC2B204: 24C6FFFF addiu $a2, $a2, -1 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); if (psx_taken_BFC2B200) goto label_BFC2B224; @@ -138478,7 +142450,7 @@ label_BFC2B208: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); /* 0xBFC2B21C: 1440FFFA bne $v0, $zero, 0xBFC2B208 */ uint32_t psx_brA_BFC2B21C = cpu->gpr[2]; uint32_t psx_brB_BFC2B21C = cpu->gpr[0]; - int psx_taken_BFC2B21C = (psx_brA_BFC2B21C != psx_brB_BFC2B21C); + psx_taken_BFC2B21C = (psx_brA_BFC2B21C != psx_brB_BFC2B21C); /* 0xBFC2B220: A0AEFFFF sb $t6, -1($a1) */ g_debug_last_store_pc = 0xBFC2B220u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[5] + (-1)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC2B21C) goto label_BFC2B208; @@ -138495,6 +142467,8 @@ label_BFC2B224: void func_1FC2B22C(CPUState* cpu) { debug_server_log_call_entry(0x1FC2B22Cu); + int psx_taken_BFC2B230 = 0; + int psx_taken_BFC2B244 = 0; label_BFC2B22C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -138504,7 +142478,7 @@ label_BFC2B22C: cpu->gpr[2] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC2B230: 10400006 beq $v0, $zero, 0xBFC2B24C */ uint32_t psx_brA_BFC2B230 = cpu->gpr[2]; uint32_t psx_brB_BFC2B230 = cpu->gpr[0]; - int psx_taken_BFC2B230 = (psx_brA_BFC2B230 == psx_brB_BFC2B230); + psx_taken_BFC2B230 = (psx_brA_BFC2B230 == psx_brB_BFC2B230); /* 0xBFC2B234: 24A5FFFF addiu $a1, $a1, -1 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-1)); if (psx_taken_BFC2B230) goto label_BFC2B24C; @@ -138521,7 +142495,7 @@ label_BFC2B238: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); /* 0xBFC2B244: 1440FFFC bne $v0, $zero, 0xBFC2B238 */ uint32_t psx_brA_BFC2B244 = cpu->gpr[2]; uint32_t psx_brB_BFC2B244 = cpu->gpr[0]; - int psx_taken_BFC2B244 = (psx_brA_BFC2B244 != psx_brB_BFC2B244); + psx_taken_BFC2B244 = (psx_brA_BFC2B244 != psx_brB_BFC2B244); /* 0xBFC2B248: 24A5FFFF addiu $a1, $a1, -1 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-1)); if (psx_taken_BFC2B244) goto label_BFC2B238; @@ -138554,6 +142528,59 @@ void func_1FC2B260(CPUState* cpu) { default: break; } } + int psx_taken_BFC2B2EC = 0; + int psx_taken_BFC2B304 = 0; + int psx_taken_BFC2B318 = 0; + int psx_taken_BFC2B330 = 0; + int psx_taken_BFC2B33C = 0; + int psx_taken_BFC2B344 = 0; + int psx_taken_BFC2B35C = 0; + int psx_taken_BFC2B370 = 0; + int psx_taken_BFC2B378 = 0; + int psx_taken_BFC2B38C = 0; + int psx_taken_BFC2B398 = 0; + int psx_taken_BFC2B3C4 = 0; + int psx_taken_BFC2B3D4 = 0; + int psx_taken_BFC2B3E0 = 0; + int psx_taken_BFC2B410 = 0; + int psx_taken_BFC2B424 = 0; + int psx_taken_BFC2B444 = 0; + int psx_taken_BFC2B450 = 0; + int psx_taken_BFC2B458 = 0; + int psx_taken_BFC2B678 = 0; + int psx_taken_BFC2B680 = 0; + int psx_taken_BFC2B688 = 0; + int psx_taken_BFC2B690 = 0; + int psx_taken_BFC2B8A8 = 0; + int psx_taken_BFC2B8B0 = 0; + int psx_taken_BFC2B8EC = 0; + int psx_taken_BFC2B900 = 0; + int psx_taken_BFC2B93C = 0; + int psx_taken_BFC2B944 = 0; + int psx_taken_BFC2B968 = 0; + int psx_taken_BFC2BAFC = 0; + int psx_taken_BFC2BC4C = 0; + int psx_taken_BFC2BC5C = 0; + int psx_taken_BFC2BC68 = 0; + int psx_taken_BFC2BC80 = 0; + int psx_taken_BFC2BC8C = 0; + int psx_taken_BFC2BC9C = 0; + int psx_taken_BFC2BCAC = 0; + int psx_taken_BFC2BCB8 = 0; + int psx_taken_BFC2BD88 = 0; + int psx_taken_BFC2BD90 = 0; + int psx_taken_BFC2BD98 = 0; + int psx_taken_BFC2BDA0 = 0; + int psx_taken_BFC2BDC8 = 0; + int psx_taken_BFC2BDD8 = 0; + int psx_taken_BFC2BDE8 = 0; + int psx_taken_BFC2BDF0 = 0; + int psx_taken_BFC2BE00 = 0; + int psx_taken_BFC2BE50 = 0; + int psx_taken_BFC2BE58 = 0; + int psx_taken_BFC2BE64 = 0; + int psx_taken_BFC2BE9C = 0; + int psx_taken_BFC2BEBC = 0; label_BFC2B260: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(30u); @@ -138643,7 +142670,7 @@ label_BFC2B2E4: /* nop */ /* 0xBFC2B2EC: 10800186 beq $a0, $zero, 0xBFC2B908 */ uint32_t psx_brA_BFC2B2EC = cpu->gpr[4]; uint32_t psx_brB_BFC2B2EC = cpu->gpr[0]; - int psx_taken_BFC2B2EC = (psx_brA_BFC2B2EC == psx_brB_BFC2B2EC); + psx_taken_BFC2B2EC = (psx_brA_BFC2B2EC == psx_brB_BFC2B2EC); /* 0xBFC2B2F0: 00000000 nop */ /* nop */ if (psx_taken_BFC2B2EC) goto label_BFC2B908; @@ -138667,7 +142694,7 @@ label_BFC2B304: psx_check_interrupts(cpu); /* 0xBFC2B304: 17C4000D bne $fp, $a0, 0xBFC2B33C */ uint32_t psx_brA_BFC2B304 = cpu->gpr[30]; uint32_t psx_brB_BFC2B304 = cpu->gpr[4]; - int psx_taken_BFC2B304 = (psx_brA_BFC2B304 != psx_brB_BFC2B304); + psx_taken_BFC2B304 = (psx_brA_BFC2B304 != psx_brB_BFC2B304); /* 0xBFC2B308: 2C810081 sltiu $at, $a0, 129 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < 0x00000081u ? 1 : 0); if (psx_taken_BFC2B304) goto label_BFC2B33C; @@ -138684,7 +142711,7 @@ label_BFC2B30C: /* nop */ /* 0xBFC2B318: 05C10002 bgez $t6, 0xBFC2B324 */ uint32_t psx_brA_BFC2B318 = cpu->gpr[14]; - int psx_taken_BFC2B318 = ((int32_t)psx_brA_BFC2B318 >= 0); + psx_taken_BFC2B318 = ((int32_t)psx_brA_BFC2B318 >= 0); /* 0xBFC2B31C: 01C00821 addu $at, $t6, $zero */ cpu->gpr[1] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC2B318) goto label_BFC2B324; @@ -138708,7 +142735,7 @@ label_BFC2B324: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[24] + (16)); /* 0xBFC2B330: 1000016C beq $zero, $zero, 0xBFC2B8E4 */ uint32_t psx_brA_BFC2B330 = cpu->gpr[0]; uint32_t psx_brB_BFC2B330 = cpu->gpr[0]; - int psx_taken_BFC2B330 = (psx_brA_BFC2B330 == psx_brB_BFC2B330); + psx_taken_BFC2B330 = (psx_brA_BFC2B330 == psx_brB_BFC2B330); /* 0xBFC2B334: AFB901C0 sw $t9, 448($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (448)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2B334u); return; } g_debug_last_store_pc = 0xBFC2B334u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC2B330) goto label_BFC2B8E4; @@ -138726,7 +142753,7 @@ label_BFC2B33C: psx_check_interrupts(cpu); /* 0xBFC2B33C: 14200009 bne $at, $zero, 0xBFC2B364 */ uint32_t psx_brA_BFC2B33C = cpu->gpr[1]; uint32_t psx_brB_BFC2B33C = cpu->gpr[0]; - int psx_taken_BFC2B33C = (psx_brA_BFC2B33C != psx_brB_BFC2B33C); + psx_taken_BFC2B33C = (psx_brA_BFC2B33C != psx_brB_BFC2B33C); /* 0xBFC2B340: 2C810099 sltiu $at, $a0, 153 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < 0x00000099u ? 1 : 0); if (psx_taken_BFC2B33C) goto label_BFC2B364; @@ -138737,7 +142764,7 @@ label_BFC2B344: psx_check_interrupts(cpu); /* 0xBFC2B344: 10200007 beq $at, $zero, 0xBFC2B364 */ uint32_t psx_brA_BFC2B344 = cpu->gpr[1]; uint32_t psx_brB_BFC2B344 = cpu->gpr[0]; - int psx_taken_BFC2B344 = (psx_brA_BFC2B344 == psx_brB_BFC2B344); + psx_taken_BFC2B344 = (psx_brA_BFC2B344 == psx_brB_BFC2B344); /* 0xBFC2B348: 00000000 nop */ /* nop */ if (psx_taken_BFC2B344) goto label_BFC2B364; @@ -138756,7 +142783,7 @@ label_BFC2B34C: cpu->gpr[5] = cpu->gpr[5] & 0xFFFFu; /* 0xBFC2B35C: 10000009 beq $zero, $zero, 0xBFC2B384 */ uint32_t psx_brA_BFC2B35C = cpu->gpr[0]; uint32_t psx_brB_BFC2B35C = cpu->gpr[0]; - int psx_taken_BFC2B35C = (psx_brA_BFC2B35C == psx_brB_BFC2B35C); + psx_taken_BFC2B35C = (psx_brA_BFC2B35C == psx_brB_BFC2B35C); /* 0xBFC2B360: 26D60002 addiu $s6, $s6, 2 */ cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[22] + (2)); if (psx_taken_BFC2B35C) goto label_BFC2B384; @@ -138779,7 +142806,7 @@ label_BFC2B36C: cpu->gpr[24] = cpu->gpr[2] & 0xFFFFu; /* 0xBFC2B370: 17000003 bne $t8, $zero, 0xBFC2B380 */ uint32_t psx_brA_BFC2B370 = cpu->gpr[24]; uint32_t psx_brB_BFC2B370 = cpu->gpr[0]; - int psx_taken_BFC2B370 = (psx_brA_BFC2B370 != psx_brB_BFC2B370); + psx_taken_BFC2B370 = (psx_brA_BFC2B370 != psx_brB_BFC2B370); /* 0xBFC2B374: 3045FFFF andi $a1, $v0, 0xFFFF */ cpu->gpr[5] = cpu->gpr[2] & 0xFFFFu; if (psx_taken_BFC2B370) goto label_BFC2B380; @@ -138790,7 +142817,7 @@ label_BFC2B378: psx_check_interrupts(cpu); /* 0xBFC2B378: 100002D3 beq $zero, $zero, 0xBFC2BEC8 */ uint32_t psx_brA_BFC2B378 = cpu->gpr[0]; uint32_t psx_brB_BFC2B378 = cpu->gpr[0]; - int psx_taken_BFC2B378 = (psx_brA_BFC2B378 == psx_brB_BFC2B378); + psx_taken_BFC2B378 = (psx_brA_BFC2B378 == psx_brB_BFC2B378); /* 0xBFC2B37C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC2B378) goto label_BFC2BEC8; @@ -138812,7 +142839,7 @@ label_BFC2B384: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[1] ? 1 : 0); /* 0xBFC2B38C: 1420000F bne $at, $zero, 0xBFC2B3CC */ uint32_t psx_brA_BFC2B38C = cpu->gpr[1]; uint32_t psx_brB_BFC2B38C = cpu->gpr[0]; - int psx_taken_BFC2B38C = (psx_brA_BFC2B38C != psx_brB_BFC2B38C); + psx_taken_BFC2B38C = (psx_brA_BFC2B38C != psx_brB_BFC2B38C); /* 0xBFC2B390: 340184BF ori $at, $zero, 0x84BF */ cpu->gpr[1] = cpu->gpr[0] | 0x84BFu; if (psx_taken_BFC2B38C) goto label_BFC2B3CC; @@ -138825,7 +142852,7 @@ label_BFC2B394: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[1] ? 1 : 0); /* 0xBFC2B398: 1020000C beq $at, $zero, 0xBFC2B3CC */ uint32_t psx_brA_BFC2B398 = cpu->gpr[1]; uint32_t psx_brB_BFC2B398 = cpu->gpr[0]; - int psx_taken_BFC2B398 = (psx_brA_BFC2B398 == psx_brB_BFC2B398); + psx_taken_BFC2B398 = (psx_brA_BFC2B398 == psx_brB_BFC2B398); /* 0xBFC2B39C: 3C010001 lui $at, 0x1 */ cpu->gpr[1] = 0x00010000u; if (psx_taken_BFC2B398) goto label_BFC2B3CC; @@ -138854,7 +142881,7 @@ label_BFC2B3A0: cpu->gpr[16] = cpu->gpr[23] + cpu->gpr[0]; /* 0xBFC2B3C4: 10000019 beq $zero, $zero, 0xBFC2B42C */ uint32_t psx_brA_BFC2B3C4 = cpu->gpr[0]; uint32_t psx_brB_BFC2B3C4 = cpu->gpr[0]; - int psx_taken_BFC2B3C4 = (psx_brA_BFC2B3C4 == psx_brB_BFC2B3C4); + psx_taken_BFC2B3C4 = (psx_brA_BFC2B3C4 == psx_brB_BFC2B3C4); /* 0xBFC2B3C8: 032EA021 addu $s4, $t9, $t6 */ cpu->gpr[20] = cpu->gpr[25] + cpu->gpr[14]; if (psx_taken_BFC2B3C4) goto label_BFC2B42C; @@ -138869,7 +142896,7 @@ label_BFC2B3CC: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[1] ? 1 : 0); /* 0xBFC2B3D4: 14200010 bne $at, $zero, 0xBFC2B418 */ uint32_t psx_brA_BFC2B3D4 = cpu->gpr[1]; uint32_t psx_brB_BFC2B3D4 = cpu->gpr[0]; - int psx_taken_BFC2B3D4 = (psx_brA_BFC2B3D4 != psx_brB_BFC2B3D4); + psx_taken_BFC2B3D4 = (psx_brA_BFC2B3D4 != psx_brB_BFC2B3D4); /* 0xBFC2B3D8: 34019873 ori $at, $zero, 0x9873 */ cpu->gpr[1] = cpu->gpr[0] | 0x9873u; if (psx_taken_BFC2B3D4) goto label_BFC2B418; @@ -138882,7 +142909,7 @@ label_BFC2B3DC: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[1] ? 1 : 0); /* 0xBFC2B3E0: 1020000D beq $at, $zero, 0xBFC2B418 */ uint32_t psx_brA_BFC2B3E0 = cpu->gpr[1]; uint32_t psx_brB_BFC2B3E0 = cpu->gpr[0]; - int psx_taken_BFC2B3E0 = (psx_brA_BFC2B3E0 == psx_brB_BFC2B3E0); + psx_taken_BFC2B3E0 = (psx_brA_BFC2B3E0 == psx_brB_BFC2B3E0); /* 0xBFC2B3E4: 3C010001 lui $at, 0x1 */ cpu->gpr[1] = 0x00010000u; if (psx_taken_BFC2B3E0) goto label_BFC2B418; @@ -138913,7 +142940,7 @@ label_BFC2B3E8: cpu->gpr[16] = cpu->gpr[16] | 0x9D68u; /* 0xBFC2B410: 10000006 beq $zero, $zero, 0xBFC2B42C */ uint32_t psx_brA_BFC2B410 = cpu->gpr[0]; uint32_t psx_brB_BFC2B410 = cpu->gpr[0]; - int psx_taken_BFC2B410 = (psx_brA_BFC2B410 == psx_brB_BFC2B410); + psx_taken_BFC2B410 = (psx_brA_BFC2B410 == psx_brB_BFC2B410); /* 0xBFC2B414: 004EA021 addu $s4, $v0, $t6 */ cpu->gpr[20] = cpu->gpr[2] + cpu->gpr[14]; if (psx_taken_BFC2B410) goto label_BFC2B42C; @@ -138936,7 +142963,7 @@ label_BFC2B424: psx_check_interrupts(cpu); /* 0xBFC2B424: 100002A8 beq $zero, $zero, 0xBFC2BEC8 */ uint32_t psx_brA_BFC2B424 = cpu->gpr[0]; uint32_t psx_brB_BFC2B424 = cpu->gpr[0]; - int psx_taken_BFC2B424 = (psx_brA_BFC2B424 == psx_brB_BFC2B424); + psx_taken_BFC2B424 = (psx_brA_BFC2B424 == psx_brB_BFC2B424); /* 0xBFC2B428: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC2B424) goto label_BFC2BEC8; @@ -138965,7 +142992,7 @@ label_BFC2B434: cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; /* 0xBFC2B444: 16170090 bne $s0, $s7, 0xBFC2B688 */ uint32_t psx_brA_BFC2B444 = cpu->gpr[16]; uint32_t psx_brB_BFC2B444 = cpu->gpr[23]; - int psx_taken_BFC2B444 = (psx_brA_BFC2B444 != psx_brB_BFC2B444); + psx_taken_BFC2B444 = (psx_brA_BFC2B444 != psx_brB_BFC2B444); /* 0xBFC2B448: 02182021 addu $a0, $s0, $t8 */ cpu->gpr[4] = cpu->gpr[16] + cpu->gpr[24]; if (psx_taken_BFC2B444) goto label_BFC2B688; @@ -138978,7 +143005,7 @@ label_BFC2B44C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (147) ? 1 : 0); /* 0xBFC2B450: 1420008D bne $at, $zero, 0xBFC2B688 */ uint32_t psx_brA_BFC2B450 = cpu->gpr[1]; uint32_t psx_brB_BFC2B450 = cpu->gpr[0]; - int psx_taken_BFC2B450 = (psx_brA_BFC2B450 != psx_brB_BFC2B450); + psx_taken_BFC2B450 = (psx_brA_BFC2B450 != psx_brB_BFC2B450); /* 0xBFC2B454: 284100D1 slti $at, $v0, 209 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (209) ? 1 : 0); if (psx_taken_BFC2B450) goto label_BFC2B688; @@ -138989,7 +143016,7 @@ label_BFC2B458: psx_check_interrupts(cpu); /* 0xBFC2B458: 1020008B beq $at, $zero, 0xBFC2B688 */ uint32_t psx_brA_BFC2B458 = cpu->gpr[1]; uint32_t psx_brB_BFC2B458 = cpu->gpr[0]; - int psx_taken_BFC2B458 = (psx_brA_BFC2B458 == psx_brB_BFC2B458); + psx_taken_BFC2B458 = (psx_brA_BFC2B458 == psx_brB_BFC2B458); /* 0xBFC2B45C: 00000000 nop */ /* nop */ if (psx_taken_BFC2B458) goto label_BFC2B688; @@ -139279,7 +143306,7 @@ label_BFC2B574: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-8198)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2B674u); return; } g_debug_last_store_pc = 0xBFC2B674u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[14] & 0xFFFFu)); } /* 0xBFC2B678: 1692FFBE bne $s4, $s2, 0xBFC2B574 */ uint32_t psx_brA_BFC2B678 = cpu->gpr[20]; uint32_t psx_brB_BFC2B678 = cpu->gpr[18]; - int psx_taken_BFC2B678 = (psx_brA_BFC2B678 != psx_brB_BFC2B678); + psx_taken_BFC2B678 = (psx_brA_BFC2B678 != psx_brB_BFC2B678); /* 0xBFC2B67C: 24630008 addiu $v1, $v1, 8 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (8)); if (psx_taken_BFC2B678) goto label_BFC2B574; @@ -139290,7 +143317,7 @@ label_BFC2B680: psx_check_interrupts(cpu); /* 0xBFC2B680: 10000095 beq $zero, $zero, 0xBFC2B8D8 */ uint32_t psx_brA_BFC2B680 = cpu->gpr[0]; uint32_t psx_brB_BFC2B680 = cpu->gpr[0]; - int psx_taken_BFC2B680 = (psx_brA_BFC2B680 == psx_brB_BFC2B680); + psx_taken_BFC2B680 = (psx_brA_BFC2B680 == psx_brB_BFC2B680); /* 0xBFC2B684: 8FB901C0 lw $t9, 448($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (448)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2B684u); return; } cpu->gpr[25] = cpu->read_word(psx_addr); } if (psx_taken_BFC2B680) goto label_BFC2B8D8; @@ -139301,7 +143328,7 @@ label_BFC2B688: psx_check_interrupts(cpu); /* 0xBFC2B688: 1617008C bne $s0, $s7, 0xBFC2B8BC */ uint32_t psx_brA_BFC2B688 = cpu->gpr[16]; uint32_t psx_brB_BFC2B688 = cpu->gpr[23]; - int psx_taken_BFC2B688 = (psx_brA_BFC2B688 != psx_brB_BFC2B688); + psx_taken_BFC2B688 = (psx_brA_BFC2B688 != psx_brB_BFC2B688); /* 0xBFC2B68C: 3C01FFFF lui $at, 0xFFFF */ cpu->gpr[1] = 0xFFFF0000u; if (psx_taken_BFC2B688) goto label_BFC2B8BC; @@ -139312,7 +143339,7 @@ label_BFC2B690: psx_check_interrupts(cpu); /* 0xBFC2B690: 1440008A bne $v0, $zero, 0xBFC2B8BC */ uint32_t psx_brA_BFC2B690 = cpu->gpr[2]; uint32_t psx_brB_BFC2B690 = cpu->gpr[0]; - int psx_taken_BFC2B690 = (psx_brA_BFC2B690 != psx_brB_BFC2B690); + psx_taken_BFC2B690 = (psx_brA_BFC2B690 != psx_brB_BFC2B690); /* 0xBFC2B694: 3C01FFFF lui $at, 0xFFFF */ cpu->gpr[1] = 0xFFFF0000u; if (psx_taken_BFC2B690) goto label_BFC2B8BC; @@ -139598,7 +143625,7 @@ label_BFC2B7A4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-8198)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2B8A4u); return; } g_debug_last_store_pc = 0xBFC2B8A4u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[24] & 0xFFFFu)); } /* 0xBFC2B8A8: 1692FFBE bne $s4, $s2, 0xBFC2B7A4 */ uint32_t psx_brA_BFC2B8A8 = cpu->gpr[20]; uint32_t psx_brB_BFC2B8A8 = cpu->gpr[18]; - int psx_taken_BFC2B8A8 = (psx_brA_BFC2B8A8 != psx_brB_BFC2B8A8); + psx_taken_BFC2B8A8 = (psx_brA_BFC2B8A8 != psx_brB_BFC2B8A8); /* 0xBFC2B8AC: 24630008 addiu $v1, $v1, 8 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (8)); if (psx_taken_BFC2B8A8) goto label_BFC2B7A4; @@ -139609,7 +143636,7 @@ label_BFC2B8B0: psx_check_interrupts(cpu); /* 0xBFC2B8B0: 10000009 beq $zero, $zero, 0xBFC2B8D8 */ uint32_t psx_brA_BFC2B8B0 = cpu->gpr[0]; uint32_t psx_brB_BFC2B8B0 = cpu->gpr[0]; - int psx_taken_BFC2B8B0 = (psx_brA_BFC2B8B0 == psx_brB_BFC2B8B0); + psx_taken_BFC2B8B0 = (psx_brA_BFC2B8B0 == psx_brB_BFC2B8B0); /* 0xBFC2B8B4: 8FB901C0 lw $t9, 448($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (448)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2B8B4u); return; } cpu->gpr[25] = cpu->read_word(psx_addr); } if (psx_taken_BFC2B8B0) goto label_BFC2B8D8; @@ -139667,7 +143694,7 @@ label_BFC2B8E4: /* nop */ /* 0xBFC2B8EC: 10800006 beq $a0, $zero, 0xBFC2B908 */ uint32_t psx_brA_BFC2B8EC = cpu->gpr[4]; uint32_t psx_brB_BFC2B8EC = cpu->gpr[0]; - int psx_taken_BFC2B8EC = (psx_brA_BFC2B8EC == psx_brB_BFC2B8EC); + psx_taken_BFC2B8EC = (psx_brA_BFC2B8EC == psx_brB_BFC2B8EC); /* 0xBFC2B8F0: 00000000 nop */ /* nop */ if (psx_taken_BFC2B8EC) goto label_BFC2B908; @@ -139684,7 +143711,7 @@ label_BFC2B8F4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[24] < (256) ? 1 : 0); /* 0xBFC2B900: 1420FE80 bne $at, $zero, 0xBFC2B304 */ uint32_t psx_brA_BFC2B900 = cpu->gpr[1]; uint32_t psx_brB_BFC2B900 = cpu->gpr[0]; - int psx_taken_BFC2B900 = (psx_brA_BFC2B900 != psx_brB_BFC2B900); + psx_taken_BFC2B900 = (psx_brA_BFC2B900 != psx_brB_BFC2B900); /* 0xBFC2B904: 00000000 nop */ /* nop */ if (psx_taken_BFC2B900) goto label_BFC2B304; @@ -139736,7 +143763,7 @@ label_BFC2B938: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[31] < (int32_t)cpu->gpr[4] ? 1 : 0); /* 0xBFC2B93C: 14200003 bne $at, $zero, 0xBFC2B94C */ uint32_t psx_brA_BFC2B93C = cpu->gpr[1]; uint32_t psx_brB_BFC2B93C = cpu->gpr[0]; - int psx_taken_BFC2B93C = (psx_brA_BFC2B93C != psx_brB_BFC2B93C); + psx_taken_BFC2B93C = (psx_brA_BFC2B93C != psx_brB_BFC2B93C); /* 0xBFC2B940: 03E0A821 addu $s5, $ra, $zero */ cpu->gpr[21] = cpu->gpr[31] + cpu->gpr[0]; if (psx_taken_BFC2B93C) goto label_BFC2B94C; @@ -139747,7 +143774,7 @@ label_BFC2B944: psx_check_interrupts(cpu); /* 0xBFC2B944: 100000C0 beq $zero, $zero, 0xBFC2BC48 */ uint32_t psx_brA_BFC2B944 = cpu->gpr[0]; uint32_t psx_brB_BFC2B944 = cpu->gpr[0]; - int psx_taken_BFC2B944 = (psx_brA_BFC2B944 == psx_brB_BFC2B944); + psx_taken_BFC2B944 = (psx_brA_BFC2B944 == psx_brB_BFC2B944); /* 0xBFC2B948: 26730004 addiu $s3, $s3, 4 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (4)); if (psx_taken_BFC2B944) goto label_BFC2BC48; @@ -139772,7 +143799,7 @@ label_BFC2B94C: cpu->gpr[13] = cpu->gpr[15] + cpu->gpr[24]; /* 0xBFC2B968: 12C00066 beq $s6, $zero, 0xBFC2BB04 */ uint32_t psx_brA_BFC2B968 = cpu->gpr[22]; uint32_t psx_brB_BFC2B968 = cpu->gpr[0]; - int psx_taken_BFC2B968 = (psx_brA_BFC2B968 == psx_brB_BFC2B968); + psx_taken_BFC2B968 = (psx_brA_BFC2B968 == psx_brB_BFC2B968); /* 0xBFC2B96C: 03F88021 addu $s0, $ra, $t8 */ cpu->gpr[16] = cpu->gpr[31] + cpu->gpr[24]; if (psx_taken_BFC2B968) goto label_BFC2BB04; @@ -139981,7 +144008,7 @@ label_BFC2B970: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (448)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2BAF8u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC2BAFC: 1000004B beq $zero, $zero, 0xBFC2BC2C */ uint32_t psx_brA_BFC2BAFC = cpu->gpr[0]; uint32_t psx_brB_BFC2BAFC = cpu->gpr[0]; - int psx_taken_BFC2BAFC = (psx_brA_BFC2BAFC == psx_brB_BFC2BAFC); + psx_taken_BFC2BAFC = (psx_brA_BFC2BAFC == psx_brB_BFC2BAFC); /* 0xBFC2BB00: 3C02FFFF lui $v0, 0xFFFF */ cpu->gpr[2] = 0xFFFF0000u; if (psx_taken_BFC2BAFC) goto label_BFC2BC2C; @@ -140166,7 +144193,7 @@ label_BFC2BC48: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC2BC4C: 1637FF3A bne $s1, $s7, 0xBFC2B938 */ uint32_t psx_brA_BFC2BC4C = cpu->gpr[17]; uint32_t psx_brB_BFC2BC4C = cpu->gpr[23]; - int psx_taken_BFC2BC4C = (psx_brA_BFC2BC4C != psx_brB_BFC2BC4C); + psx_taken_BFC2BC4C = (psx_brA_BFC2BC4C != psx_brB_BFC2BC4C); /* 0xBFC2BC50: 27FF0001 addiu $ra, $ra, 1 */ cpu->gpr[31] = (uint32_t)((int32_t)cpu->gpr[31] + (1)); if (psx_taken_BFC2BC4C) goto label_BFC2B938; @@ -140181,7 +144208,7 @@ label_BFC2BC54: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[20] < (16) ? 1 : 0); /* 0xBFC2BC5C: 1420FF33 bne $at, $zero, 0xBFC2B92C */ uint32_t psx_brA_BFC2BC5C = cpu->gpr[1]; uint32_t psx_brB_BFC2BC5C = cpu->gpr[0]; - int psx_taken_BFC2BC5C = (psx_brA_BFC2BC5C != psx_brB_BFC2BC5C); + psx_taken_BFC2BC5C = (psx_brA_BFC2BC5C != psx_brB_BFC2BC5C); /* 0xBFC2BC60: 02729821 addu $s3, $s3, $s2 */ cpu->gpr[19] = cpu->gpr[19] + cpu->gpr[18]; if (psx_taken_BFC2BC5C) goto label_BFC2B92C; @@ -140194,7 +144221,7 @@ label_BFC2BC64: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[21] < (int32_t)cpu->gpr[4] ? 1 : 0); /* 0xBFC2BC68: 10200008 beq $at, $zero, 0xBFC2BC8C */ uint32_t psx_brA_BFC2BC68 = cpu->gpr[1]; uint32_t psx_brB_BFC2BC68 = cpu->gpr[0]; - int psx_taken_BFC2BC68 = (psx_brA_BFC2BC68 == psx_brB_BFC2BC68); + psx_taken_BFC2BC68 = (psx_brA_BFC2BC68 == psx_brB_BFC2BC68); /* 0xBFC2BC6C: 28810010 slti $at, $a0, 16 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (16) ? 1 : 0); if (psx_taken_BFC2BC68) goto label_BFC2BC8C; @@ -140213,7 +144240,7 @@ label_BFC2BC70: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (256) ? 1 : 0); /* 0xBFC2BC80: 1420FF28 bne $at, $zero, 0xBFC2B924 */ uint32_t psx_brA_BFC2BC80 = cpu->gpr[1]; uint32_t psx_brB_BFC2BC80 = cpu->gpr[0]; - int psx_taken_BFC2BC80 = (psx_brA_BFC2BC80 != psx_brB_BFC2BC80); + psx_taken_BFC2BC80 = (psx_brA_BFC2BC80 != psx_brB_BFC2BC80); /* 0xBFC2BC84: AFAE008C sw $t6, 140($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (140)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2BC84u); return; } g_debug_last_store_pc = 0xBFC2BC84u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC2BC80) goto label_BFC2B924; @@ -140231,7 +144258,7 @@ label_BFC2BC8C: psx_check_interrupts(cpu); /* 0xBFC2BC8C: 1020000A beq $at, $zero, 0xBFC2BCB8 */ uint32_t psx_brA_BFC2BC8C = cpu->gpr[1]; uint32_t psx_brB_BFC2BC8C = cpu->gpr[0]; - int psx_taken_BFC2BC8C = (psx_brA_BFC2BC8C == psx_brB_BFC2BC8C); + psx_taken_BFC2BC8C = (psx_brA_BFC2BC8C == psx_brB_BFC2BC8C); /* 0xBFC2BC90: 2491FFFF addiu $s1, $a0, -1 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[4] + (-1)); if (psx_taken_BFC2BC8C) goto label_BFC2BCB8; @@ -140246,7 +144273,7 @@ label_BFC2BC94: cpu->gpr[22] = cpu->gpr[4] << 5u; /* 0xBFC2BC9C: 06210002 bgez $s1, 0xBFC2BCA8 */ uint32_t psx_brA_BFC2BC9C = cpu->gpr[17]; - int psx_taken_BFC2BC9C = ((int32_t)psx_brA_BFC2BC9C >= 0); + psx_taken_BFC2BC9C = ((int32_t)psx_brA_BFC2BC9C >= 0); /* 0xBFC2BCA0: 02200821 addu $at, $s1, $zero */ cpu->gpr[1] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC2BC9C) goto label_BFC2BCA8; @@ -140266,7 +144293,7 @@ label_BFC2BCA8: cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[1] >> 4u); /* 0xBFC2BCAC: 10000009 beq $zero, $zero, 0xBFC2BCD4 */ uint32_t psx_brA_BFC2BCAC = cpu->gpr[0]; uint32_t psx_brB_BFC2BCAC = cpu->gpr[0]; - int psx_taken_BFC2BCAC = (psx_brA_BFC2BCAC == psx_brB_BFC2BCAC); + psx_taken_BFC2BCAC = (psx_brA_BFC2BCAC == psx_brB_BFC2BCAC); /* 0xBFC2BCB0: 3C120001 lui $s2, 0x1 */ cpu->gpr[18] = 0x00010000u; if (psx_taken_BFC2BCAC) goto label_BFC2BCD4; @@ -140284,7 +144311,7 @@ label_BFC2BCB8: psx_check_interrupts(cpu); /* 0xBFC2BCB8: 06210002 bgez $s1, 0xBFC2BCC4 */ uint32_t psx_brA_BFC2BCB8 = cpu->gpr[17]; - int psx_taken_BFC2BCB8 = ((int32_t)psx_brA_BFC2BCB8 >= 0); + psx_taken_BFC2BCB8 = ((int32_t)psx_brA_BFC2BCB8 >= 0); /* 0xBFC2BCBC: 02200821 addu $at, $s1, $zero */ cpu->gpr[1] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC2BCB8) goto label_BFC2BCC4; @@ -140411,7 +144438,7 @@ label_BFC2BCEC: cpu->gpr[25] = cpu->gpr[24] | cpu->gpr[14]; /* 0xBFC2BD88: 14200003 bne $at, $zero, 0xBFC2BD98 */ uint32_t psx_brA_BFC2BD88 = cpu->gpr[1]; uint32_t psx_brB_BFC2BD88 = cpu->gpr[0]; - int psx_taken_BFC2BD88 = (psx_brA_BFC2BD88 != psx_brB_BFC2BD88); + psx_taken_BFC2BD88 = (psx_brA_BFC2BD88 != psx_brB_BFC2BD88); /* 0xBFC2BD8C: AE590038 sw $t9, 56($s2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[18] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2BD8Cu); return; } g_debug_last_store_pc = 0xBFC2BD8Cu; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC2BD88) goto label_BFC2BD98; @@ -140422,7 +144449,7 @@ label_BFC2BD90: psx_check_interrupts(cpu); /* 0xBFC2BD90: 10000008 beq $zero, $zero, 0xBFC2BDB4 */ uint32_t psx_brA_BFC2BD90 = cpu->gpr[0]; uint32_t psx_brB_BFC2BD90 = cpu->gpr[0]; - int psx_taken_BFC2BD90 = (psx_brA_BFC2BD90 == psx_brB_BFC2BD90); + psx_taken_BFC2BD90 = (psx_brA_BFC2BD90 == psx_brB_BFC2BD90); /* 0xBFC2BD94: 24020040 addiu $v0, $zero, 64 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (64)); if (psx_taken_BFC2BD90) goto label_BFC2BDB4; @@ -140433,7 +144460,7 @@ label_BFC2BD98: psx_check_interrupts(cpu); /* 0xBFC2BD98: 06210004 bgez $s1, 0xBFC2BDAC */ uint32_t psx_brA_BFC2BD98 = cpu->gpr[17]; - int psx_taken_BFC2BD98 = ((int32_t)psx_brA_BFC2BD98 >= 0); + psx_taken_BFC2BD98 = ((int32_t)psx_brA_BFC2BD98 >= 0); /* 0xBFC2BD9C: 3222000F andi $v0, $s1, 0xF */ cpu->gpr[2] = cpu->gpr[17] & 0xFu; if (psx_taken_BFC2BD98) goto label_BFC2BDAC; @@ -140444,7 +144471,7 @@ label_BFC2BDA0: psx_check_interrupts(cpu); /* 0xBFC2BDA0: 10400002 beq $v0, $zero, 0xBFC2BDAC */ uint32_t psx_brA_BFC2BDA0 = cpu->gpr[2]; uint32_t psx_brB_BFC2BDA0 = cpu->gpr[0]; - int psx_taken_BFC2BDA0 = (psx_brA_BFC2BDA0 == psx_brB_BFC2BDA0); + psx_taken_BFC2BDA0 = (psx_brA_BFC2BDA0 == psx_brB_BFC2BDA0); /* 0xBFC2BDA4: 00000000 nop */ /* nop */ if (psx_taken_BFC2BDA0) goto label_BFC2BDAC; @@ -140481,7 +144508,7 @@ label_BFC2BDB4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (16) ? 1 : 0); /* 0xBFC2BDC8: 10200025 beq $at, $zero, 0xBFC2BE60 */ uint32_t psx_brA_BFC2BDC8 = cpu->gpr[1]; uint32_t psx_brB_BFC2BDC8 = cpu->gpr[0]; - int psx_taken_BFC2BDC8 = (psx_brA_BFC2BDC8 == psx_brB_BFC2BDC8); + psx_taken_BFC2BDC8 = (psx_brA_BFC2BDC8 == psx_brB_BFC2BDC8); /* 0xBFC2BDCC: AE59003C sw $t9, 60($s2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[18] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2BDCCu); return; } g_debug_last_store_pc = 0xBFC2BDCCu; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC2BDC8) goto label_BFC2BE60; @@ -140496,7 +144523,7 @@ label_BFC2BDD0: cpu->gpr[21] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC2BDD8: 1AC0003A blez $s6, 0xBFC2BEC4 */ uint32_t psx_brA_BFC2BDD8 = cpu->gpr[22]; - int psx_taken_BFC2BDD8 = ((int32_t)psx_brA_BFC2BDD8 <= 0); + psx_taken_BFC2BDD8 = ((int32_t)psx_brA_BFC2BDD8 <= 0); /* 0xBFC2BDDC: 00002821 addu $a1, $zero, $zero */ cpu->gpr[5] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2BDD8) goto label_BFC2BEC4; @@ -140516,7 +144543,7 @@ label_BFC2BDE8: psx_check_interrupts(cpu); /* 0xBFC2BDE8: 06A10004 bgez $s5, 0xBFC2BDFC */ uint32_t psx_brA_BFC2BDE8 = cpu->gpr[21]; - int psx_taken_BFC2BDE8 = ((int32_t)psx_brA_BFC2BDE8 >= 0); + psx_taken_BFC2BDE8 = ((int32_t)psx_brA_BFC2BDE8 >= 0); /* 0xBFC2BDEC: 32AF003F andi $t7, $s5, 0x3F */ cpu->gpr[15] = cpu->gpr[21] & 0x3Fu; if (psx_taken_BFC2BDE8) goto label_BFC2BDFC; @@ -140527,7 +144554,7 @@ label_BFC2BDF0: psx_check_interrupts(cpu); /* 0xBFC2BDF0: 11E00002 beq $t7, $zero, 0xBFC2BDFC */ uint32_t psx_brA_BFC2BDF0 = cpu->gpr[15]; uint32_t psx_brB_BFC2BDF0 = cpu->gpr[0]; - int psx_taken_BFC2BDF0 = (psx_brA_BFC2BDF0 == psx_brB_BFC2BDF0); + psx_taken_BFC2BDF0 = (psx_brA_BFC2BDF0 == psx_brB_BFC2BDF0); /* 0xBFC2BDF4: 00000000 nop */ /* nop */ if (psx_taken_BFC2BDF0) goto label_BFC2BDFC; @@ -140547,7 +144574,7 @@ label_BFC2BDFC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[15] < (int32_t)cpu->gpr[4] ? 1 : 0); /* 0xBFC2BE00: 14200004 bne $at, $zero, 0xBFC2BE14 */ uint32_t psx_brA_BFC2BE00 = cpu->gpr[1]; uint32_t psx_brB_BFC2BE00 = cpu->gpr[0]; - int psx_taken_BFC2BE00 = (psx_brA_BFC2BE00 != psx_brB_BFC2BE00); + psx_taken_BFC2BE00 = (psx_brA_BFC2BE00 != psx_brB_BFC2BE00); /* 0xBFC2BE04: 3C010001 lui $at, 0x1 */ cpu->gpr[1] = 0x00010000u; if (psx_taken_BFC2BE00) goto label_BFC2BE14; @@ -140599,7 +144626,7 @@ label_BFC2BE14: cpu->gpr[21] = (uint32_t)((int32_t)cpu->gpr[21] + (2)); /* 0xBFC2BE50: 1696FFE5 bne $s4, $s6, 0xBFC2BDE8 */ uint32_t psx_brA_BFC2BE50 = cpu->gpr[20]; uint32_t psx_brB_BFC2BE50 = cpu->gpr[22]; - int psx_taken_BFC2BE50 = (psx_brA_BFC2BE50 != psx_brB_BFC2BE50); + psx_taken_BFC2BE50 = (psx_brA_BFC2BE50 != psx_brB_BFC2BE50); /* 0xBFC2BE54: 24420004 addiu $v0, $v0, 4 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); if (psx_taken_BFC2BE50) goto label_BFC2BDE8; @@ -140610,7 +144637,7 @@ label_BFC2BE58: psx_check_interrupts(cpu); /* 0xBFC2BE58: 1000001B beq $zero, $zero, 0xBFC2BEC8 */ uint32_t psx_brA_BFC2BE58 = cpu->gpr[0]; uint32_t psx_brB_BFC2BE58 = cpu->gpr[0]; - int psx_taken_BFC2BE58 = (psx_brA_BFC2BE58 == psx_brB_BFC2BE58); + psx_taken_BFC2BE58 = (psx_brA_BFC2BE58 == psx_brB_BFC2BE58); /* 0xBFC2BE5C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2BE58) goto label_BFC2BEC8; @@ -140623,7 +144650,7 @@ label_BFC2BE60: cpu->gpr[2] = cpu->gpr[22] << 1u; /* 0xBFC2BE64: 18400017 blez $v0, 0xBFC2BEC4 */ uint32_t psx_brA_BFC2BE64 = cpu->gpr[2]; - int psx_taken_BFC2BE64 = ((int32_t)psx_brA_BFC2BE64 <= 0); + psx_taken_BFC2BE64 = ((int32_t)psx_brA_BFC2BE64 <= 0); /* 0xBFC2BE68: 0000A021 addu $s4, $zero, $zero */ cpu->gpr[20] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2BE64) goto label_BFC2BEC4; @@ -140663,7 +144690,7 @@ label_BFC2BE78: cpu->gpr[14] = cpu->gpr[15] | cpu->gpr[24]; /* 0xBFC2BE9C: 06810002 bgez $s4, 0xBFC2BEA8 */ uint32_t psx_brA_BFC2BE9C = cpu->gpr[20]; - int psx_taken_BFC2BE9C = ((int32_t)psx_brA_BFC2BE9C >= 0); + psx_taken_BFC2BE9C = ((int32_t)psx_brA_BFC2BE9C >= 0); /* 0xBFC2BEA0: 02800821 addu $at, $s4, $zero */ cpu->gpr[1] = cpu->gpr[20] + cpu->gpr[0]; if (psx_taken_BFC2BE9C) goto label_BFC2BEA8; @@ -140691,7 +144718,7 @@ label_BFC2BEA8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[20] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC2BEBC: 1420FFEE bne $at, $zero, 0xBFC2BE78 */ uint32_t psx_brA_BFC2BEBC = cpu->gpr[1]; uint32_t psx_brB_BFC2BEBC = cpu->gpr[0]; - int psx_taken_BFC2BEBC = (psx_brA_BFC2BEBC != psx_brB_BFC2BEBC); + psx_taken_BFC2BEBC = (psx_brA_BFC2BEBC != psx_brB_BFC2BEBC); /* 0xBFC2BEC0: AF0E0040 sw $t6, 64($t8) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2BEC0u); return; } g_debug_last_store_pc = 0xBFC2BEC0u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC2BEBC) goto label_BFC2BE78; @@ -140852,6 +144879,20 @@ void func_1FC2BF74(CPUState* cpu) { default: break; } } + int psx_taken_BFC2BF90 = 0; + int psx_taken_BFC2BF98 = 0; + int psx_taken_BFC2BFB8 = 0; + int psx_taken_BFC2BFF8 = 0; + int psx_taken_BFC2C028 = 0; + int psx_taken_BFC2C038 = 0; + int psx_taken_BFC2C060 = 0; + int psx_taken_BFC2C068 = 0; + int psx_taken_BFC2C0A8 = 0; + int psx_taken_BFC2C0B0 = 0; + int psx_taken_BFC2C0CC = 0; + int psx_taken_BFC2C0D4 = 0; + int psx_taken_BFC2C0F0 = 0; + int psx_taken_BFC2C164 = 0; label_BFC2BF74: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -140873,7 +144914,7 @@ label_BFC2BF74: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); /* 0xBFC2BF90: 11C10003 beq $t6, $at, 0xBFC2BFA0 */ uint32_t psx_brA_BFC2BF90 = cpu->gpr[14]; uint32_t psx_brB_BFC2BF90 = cpu->gpr[1]; - int psx_taken_BFC2BF90 = (psx_brA_BFC2BF90 == psx_brB_BFC2BF90); + psx_taken_BFC2BF90 = (psx_brA_BFC2BF90 == psx_brB_BFC2BF90); /* 0xBFC2BF94: 00A08021 addu $s0, $a1, $zero */ cpu->gpr[16] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC2BF90) goto label_BFC2BFA0; @@ -140884,7 +144925,7 @@ label_BFC2BF98: psx_check_interrupts(cpu); /* 0xBFC2BF98: 10000086 beq $zero, $zero, 0xBFC2C1B4 */ uint32_t psx_brA_BFC2BF98 = cpu->gpr[0]; uint32_t psx_brB_BFC2BF98 = cpu->gpr[0]; - int psx_taken_BFC2BF98 = (psx_brA_BFC2BF98 == psx_brB_BFC2BF98); + psx_taken_BFC2BF98 = (psx_brA_BFC2BF98 == psx_brB_BFC2BF98); /* 0xBFC2BF9C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC2BF98) goto label_BFC2C1B4; @@ -140913,7 +144954,7 @@ label_BFC2BFAC: cpu->gpr[15] = cpu->gpr[2] & 0x8u; /* 0xBFC2BFB8: 15E00005 bne $t7, $zero, 0xBFC2BFD0 */ uint32_t psx_brA_BFC2BFB8 = cpu->gpr[15]; uint32_t psx_brB_BFC2BFB8 = cpu->gpr[0]; - int psx_taken_BFC2BFB8 = (psx_brA_BFC2BFB8 != psx_brB_BFC2BFB8); + psx_taken_BFC2BFB8 = (psx_brA_BFC2BFB8 != psx_brB_BFC2BFB8); /* 0xBFC2BFBC: 30580003 andi $t8, $v0, 0x3 */ cpu->gpr[24] = cpu->gpr[2] & 0x3u; if (psx_taken_BFC2BFB8) goto label_BFC2BFD0; @@ -140963,7 +145004,7 @@ label_BFC2BFF8: psx_check_interrupts(cpu); /* 0xBFC2BFF8: 1040001B beq $v0, $zero, 0xBFC2C068 */ uint32_t psx_brA_BFC2BFF8 = cpu->gpr[2]; uint32_t psx_brB_BFC2BFF8 = cpu->gpr[0]; - int psx_taken_BFC2BFF8 = (psx_brA_BFC2BFF8 == psx_brB_BFC2BFF8); + psx_taken_BFC2BFF8 = (psx_brA_BFC2BFF8 == psx_brB_BFC2BFF8); /* 0xBFC2BFFC: 00000000 nop */ /* nop */ if (psx_taken_BFC2BFF8) goto label_BFC2C068; @@ -141000,7 +145041,7 @@ label_BFC2C020: /* nop */ /* 0xBFC2C028: 11600011 beq $t3, $zero, 0xBFC2C070 */ uint32_t psx_brA_BFC2C028 = cpu->gpr[11]; uint32_t psx_brB_BFC2C028 = cpu->gpr[0]; - int psx_taken_BFC2C028 = (psx_brA_BFC2C028 == psx_brB_BFC2C028); + psx_taken_BFC2C028 = (psx_brA_BFC2C028 == psx_brB_BFC2C028); /* 0xBFC2C02C: 00000000 nop */ /* nop */ if (psx_taken_BFC2C028) goto label_BFC2C070; @@ -141015,7 +145056,7 @@ label_BFC2C030: /* nop */ /* 0xBFC2C038: 1180000D beq $t4, $zero, 0xBFC2C070 */ uint32_t psx_brA_BFC2C038 = cpu->gpr[12]; uint32_t psx_brB_BFC2C038 = cpu->gpr[0]; - int psx_taken_BFC2C038 = (psx_brA_BFC2C038 == psx_brB_BFC2C038); + psx_taken_BFC2C038 = (psx_brA_BFC2C038 == psx_brB_BFC2C038); /* 0xBFC2C03C: 00000000 nop */ /* nop */ if (psx_taken_BFC2C038) goto label_BFC2C070; @@ -141048,7 +145089,7 @@ label_BFC2C060: psx_check_interrupts(cpu); /* 0xBFC2C060: 10000004 beq $zero, $zero, 0xBFC2C074 */ uint32_t psx_brA_BFC2C060 = cpu->gpr[0]; uint32_t psx_brB_BFC2C060 = cpu->gpr[0]; - int psx_taken_BFC2C060 = (psx_brA_BFC2C060 == psx_brB_BFC2C060); + psx_taken_BFC2C060 = (psx_brA_BFC2C060 == psx_brB_BFC2C060); /* 0xBFC2C064: 8E040000 lw $a0, 0($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C064u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC2C060) goto label_BFC2C074; @@ -141059,7 +145100,7 @@ label_BFC2C068: psx_check_interrupts(cpu); /* 0xBFC2C068: 10000052 beq $zero, $zero, 0xBFC2C1B4 */ uint32_t psx_brA_BFC2C068 = cpu->gpr[0]; uint32_t psx_brB_BFC2C068 = cpu->gpr[0]; - int psx_taken_BFC2C068 = (psx_brA_BFC2C068 == psx_brB_BFC2C068); + psx_taken_BFC2C068 = (psx_brA_BFC2C068 == psx_brB_BFC2C068); /* 0xBFC2C06C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC2C068) goto label_BFC2C1B4; @@ -141109,7 +145150,7 @@ label_BFC2C090: /* nop */ /* 0xBFC2C0A8: 05A10004 bgez $t5, 0xBFC2C0BC */ uint32_t psx_brA_BFC2C0A8 = cpu->gpr[13]; - int psx_taken_BFC2C0A8 = ((int32_t)psx_brA_BFC2C0A8 >= 0); + psx_taken_BFC2C0A8 = ((int32_t)psx_brA_BFC2C0A8 >= 0); /* 0xBFC2C0AC: 31AE003F andi $t6, $t5, 0x3F */ cpu->gpr[14] = cpu->gpr[13] & 0x3Fu; if (psx_taken_BFC2C0A8) goto label_BFC2C0BC; @@ -141120,7 +145161,7 @@ label_BFC2C0B0: psx_check_interrupts(cpu); /* 0xBFC2C0B0: 11C00002 beq $t6, $zero, 0xBFC2C0BC */ uint32_t psx_brA_BFC2C0B0 = cpu->gpr[14]; uint32_t psx_brB_BFC2C0B0 = cpu->gpr[0]; - int psx_taken_BFC2C0B0 = (psx_brA_BFC2C0B0 == psx_brB_BFC2C0B0); + psx_taken_BFC2C0B0 = (psx_brA_BFC2C0B0 == psx_brB_BFC2C0B0); /* 0xBFC2C0B4: 00000000 nop */ /* nop */ if (psx_taken_BFC2C0B0) goto label_BFC2C0BC; @@ -141146,7 +145187,7 @@ label_BFC2C0BC: /* nop */ /* 0xBFC2C0CC: 05E10004 bgez $t7, 0xBFC2C0E0 */ uint32_t psx_brA_BFC2C0CC = cpu->gpr[15]; - int psx_taken_BFC2C0CC = ((int32_t)psx_brA_BFC2C0CC >= 0); + psx_taken_BFC2C0CC = ((int32_t)psx_brA_BFC2C0CC >= 0); /* 0xBFC2C0D0: 31F800FF andi $t8, $t7, 0xFF */ cpu->gpr[24] = cpu->gpr[15] & 0xFFu; if (psx_taken_BFC2C0CC) goto label_BFC2C0E0; @@ -141157,7 +145198,7 @@ label_BFC2C0D4: psx_check_interrupts(cpu); /* 0xBFC2C0D4: 13000002 beq $t8, $zero, 0xBFC2C0E0 */ uint32_t psx_brA_BFC2C0D4 = cpu->gpr[24]; uint32_t psx_brB_BFC2C0D4 = cpu->gpr[0]; - int psx_taken_BFC2C0D4 = (psx_brA_BFC2C0D4 == psx_brB_BFC2C0D4); + psx_taken_BFC2C0D4 = (psx_brA_BFC2C0D4 == psx_brB_BFC2C0D4); /* 0xBFC2C0D8: 00000000 nop */ /* nop */ if (psx_taken_BFC2C0D4) goto label_BFC2C0E0; @@ -141183,7 +145224,7 @@ label_BFC2C0E0: cpu->gpr[1] = (uint32_t)(cpu->gpr[25] < 0x00000002u ? 1 : 0); /* 0xBFC2C0F0: 14200005 bne $at, $zero, 0xBFC2C108 */ uint32_t psx_brA_BFC2C0F0 = cpu->gpr[1]; uint32_t psx_brB_BFC2C0F0 = cpu->gpr[0]; - int psx_taken_BFC2C0F0 = (psx_brA_BFC2C0F0 != psx_brB_BFC2C0F0); + psx_taken_BFC2C0F0 = (psx_brA_BFC2C0F0 != psx_brB_BFC2C0F0); /* 0xBFC2C0F4: 00000000 nop */ /* nop */ if (psx_taken_BFC2C0F0) goto label_BFC2C108; @@ -141259,7 +145300,7 @@ label_BFC2C158: cpu->gpr[1] = (uint32_t)(cpu->gpr[14] < 0x00000002u ? 1 : 0); /* 0xBFC2C164: 10200013 beq $at, $zero, 0xBFC2C1B4 */ uint32_t psx_brA_BFC2C164 = cpu->gpr[1]; uint32_t psx_brB_BFC2C164 = cpu->gpr[0]; - int psx_taken_BFC2C164 = (psx_brA_BFC2C164 == psx_brB_BFC2C164); + psx_taken_BFC2C164 = (psx_brA_BFC2C164 == psx_brB_BFC2C164); /* 0xBFC2C168: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2C164) goto label_BFC2C1B4; @@ -141327,6 +145368,7 @@ label_BFC2C1B4: void func_1FC2C1C4(CPUState* cpu) { debug_server_log_call_entry(0x1FC2C1C4u); + int psx_taken_BFC2C1E0 = 0; label_BFC2C1C4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -141348,7 +145390,7 @@ label_BFC2C1C4: cpu->gpr[25] = cpu->gpr[24] & 0x1u; /* 0xBFC2C1E0: 1320002B beq $t9, $zero, 0xBFC2C290 */ uint32_t psx_brA_BFC2C1E0 = cpu->gpr[25]; uint32_t psx_brB_BFC2C1E0 = cpu->gpr[0]; - int psx_taken_BFC2C1E0 = (psx_brA_BFC2C1E0 == psx_brB_BFC2C1E0); + psx_taken_BFC2C1E0 = (psx_brA_BFC2C1E0 == psx_brB_BFC2C1E0); /* 0xBFC2C1E4: 00000000 nop */ /* nop */ if (psx_taken_BFC2C1E0) goto label_BFC2C290; @@ -141501,6 +145543,12 @@ void func_1FC2C2F0(CPUState* cpu) { default: break; } } + int psx_taken_BFC2C318 = 0; + int psx_taken_BFC2C320 = 0; + int psx_taken_BFC2C340 = 0; + int psx_taken_BFC2C368 = 0; + int psx_taken_BFC2C394 = 0; + int psx_taken_BFC2C3B4 = 0; label_BFC2C2F0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -141534,7 +145582,7 @@ label_BFC2C314: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (112)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C314u); return; } cpu->gpr[10] = cpu->read_word(psx_addr); } /* 0xBFC2C318: 1440002D bne $v0, $zero, 0xBFC2C3D0 */ uint32_t psx_brA_BFC2C318 = cpu->gpr[2]; uint32_t psx_brB_BFC2C318 = cpu->gpr[0]; - int psx_taken_BFC2C318 = (psx_brA_BFC2C318 != psx_brB_BFC2C318); + psx_taken_BFC2C318 = (psx_brA_BFC2C318 != psx_brB_BFC2C318); /* 0xBFC2C31C: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC2C318) goto label_BFC2C3D0; @@ -141545,7 +145593,7 @@ label_BFC2C320: psx_check_interrupts(cpu); /* 0xBFC2C320: 15410027 bne $t2, $at, 0xBFC2C3C0 */ uint32_t psx_brA_BFC2C320 = cpu->gpr[10]; uint32_t psx_brB_BFC2C320 = cpu->gpr[1]; - int psx_taken_BFC2C320 = (psx_brA_BFC2C320 != psx_brB_BFC2C320); + psx_taken_BFC2C320 = (psx_brA_BFC2C320 != psx_brB_BFC2C320); /* 0xBFC2C324: 8FA40068 lw $a0, 104($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (104)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C324u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC2C320) goto label_BFC2C3C0; @@ -141568,7 +145616,7 @@ label_BFC2C328: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[8] ? 1 : 0); /* 0xBFC2C340: 1020001E beq $at, $zero, 0xBFC2C3BC */ uint32_t psx_brA_BFC2C340 = cpu->gpr[1]; uint32_t psx_brB_BFC2C340 = cpu->gpr[0]; - int psx_taken_BFC2C340 = (psx_brA_BFC2C340 == psx_brB_BFC2C340); + psx_taken_BFC2C340 = (psx_brA_BFC2C340 == psx_brB_BFC2C340); /* 0xBFC2C344: 01203821 addu $a3, $t1, $zero */ cpu->gpr[7] = cpu->gpr[9] + cpu->gpr[0]; if (psx_taken_BFC2C340) goto label_BFC2C3BC; @@ -141600,7 +145648,7 @@ label_BFC2C364: cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < cpu->gpr[5] ? 1 : 0); /* 0xBFC2C368: 10200010 beq $at, $zero, 0xBFC2C3AC */ uint32_t psx_brA_BFC2C368 = cpu->gpr[1]; uint32_t psx_brB_BFC2C368 = cpu->gpr[0]; - int psx_taken_BFC2C368 = (psx_brA_BFC2C368 == psx_brB_BFC2C368); + psx_taken_BFC2C368 = (psx_brA_BFC2C368 == psx_brB_BFC2C368); /* 0xBFC2C36C: 00000000 nop */ /* nop */ if (psx_taken_BFC2C368) goto label_BFC2C3AC; @@ -141629,7 +145677,7 @@ label_BFC2C370: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[5] ? 1 : 0); /* 0xBFC2C394: 1420FFF6 bne $at, $zero, 0xBFC2C370 */ uint32_t psx_brA_BFC2C394 = cpu->gpr[1]; uint32_t psx_brB_BFC2C394 = cpu->gpr[0]; - int psx_taken_BFC2C394 = (psx_brA_BFC2C394 != psx_brB_BFC2C394); + psx_taken_BFC2C394 = (psx_brA_BFC2C394 != psx_brB_BFC2C394); /* 0xBFC2C398: 24630004 addiu $v1, $v1, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); if (psx_taken_BFC2C394) goto label_BFC2C370; @@ -141657,7 +145705,7 @@ label_BFC2C3AC: cpu->gpr[1] = (uint32_t)(cpu->gpr[7] < cpu->gpr[8] ? 1 : 0); /* 0xBFC2C3B4: 1420FFEB bne $at, $zero, 0xBFC2C364 */ uint32_t psx_brA_BFC2C3B4 = cpu->gpr[1]; uint32_t psx_brB_BFC2C3B4 = cpu->gpr[0]; - int psx_taken_BFC2C3B4 = (psx_brA_BFC2C3B4 != psx_brB_BFC2C3B4); + psx_taken_BFC2C3B4 = (psx_brA_BFC2C3B4 != psx_brB_BFC2C3B4); /* 0xBFC2C3B8: 87A20040 lh $v0, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C3B8u); return; } cpu->gpr[2] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } if (psx_taken_BFC2C3B4) goto label_BFC2C364; @@ -141714,6 +145762,23 @@ void func_1FC2C3E0(CPUState* cpu) { default: break; } } + int psx_taken_BFC2C418 = 0; + int psx_taken_BFC2C454 = 0; + int psx_taken_BFC2C460 = 0; + int psx_taken_BFC2C474 = 0; + int psx_taken_BFC2C484 = 0; + int psx_taken_BFC2C4B4 = 0; + int psx_taken_BFC2C4BC = 0; + int psx_taken_BFC2C4D0 = 0; + int psx_taken_BFC2C60C = 0; + int psx_taken_BFC2C618 = 0; + int psx_taken_BFC2C624 = 0; + int psx_taken_BFC2C6A8 = 0; + int psx_taken_BFC2C6C0 = 0; + int psx_taken_BFC2C6D0 = 0; + int psx_taken_BFC2C758 = 0; + int psx_taken_BFC2C7A0 = 0; + int psx_taken_BFC2C7B8 = 0; label_BFC2C3E0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -141754,7 +145819,7 @@ label_BFC2C3FC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C414u); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC2C418: 170FFFF8 bne $t8, $t7, 0xBFC2C3FC */ uint32_t psx_brA_BFC2C418 = cpu->gpr[24]; uint32_t psx_brB_BFC2C418 = cpu->gpr[15]; - int psx_taken_BFC2C418 = (psx_brA_BFC2C418 != psx_brB_BFC2C418); + psx_taken_BFC2C418 = (psx_brA_BFC2C418 != psx_brB_BFC2C418); /* 0xBFC2C41C: ADC1FFFC sw $at, -4($t6) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[14] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C41Cu); return; } g_debug_last_store_pc = 0xBFC2C41Cu; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC2C418) goto label_BFC2C3FC; @@ -141791,7 +145856,7 @@ label_BFC2C420: /* nop */ /* 0xBFC2C454: 11200005 beq $t1, $zero, 0xBFC2C46C */ uint32_t psx_brA_BFC2C454 = cpu->gpr[9]; uint32_t psx_brB_BFC2C454 = cpu->gpr[0]; - int psx_taken_BFC2C454 = (psx_brA_BFC2C454 == psx_brB_BFC2C454); + psx_taken_BFC2C454 = (psx_brA_BFC2C454 == psx_brB_BFC2C454); /* 0xBFC2C458: 24030004 addiu $v1, $zero, 4 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC2C454) goto label_BFC2C46C; @@ -141804,7 +145869,7 @@ label_BFC2C45C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (108)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C45Cu); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC2C460: 10000003 beq $zero, $zero, 0xBFC2C470 */ uint32_t psx_brA_BFC2C460 = cpu->gpr[0]; uint32_t psx_brB_BFC2C460 = cpu->gpr[0]; - int psx_taken_BFC2C460 = (psx_brA_BFC2C460 == psx_brB_BFC2C460); + psx_taken_BFC2C460 = (psx_brA_BFC2C460 == psx_brB_BFC2C460); /* 0xBFC2C464: 8FA20044 lw $v0, 68($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C464u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC2C460) goto label_BFC2C470; @@ -141831,7 +145896,7 @@ label_BFC2C470: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC2C474: 14410003 bne $v0, $at, 0xBFC2C484 */ uint32_t psx_brA_BFC2C474 = cpu->gpr[2]; uint32_t psx_brB_BFC2C474 = cpu->gpr[1]; - int psx_taken_BFC2C474 = (psx_brA_BFC2C474 != psx_brB_BFC2C474); + psx_taken_BFC2C474 = (psx_brA_BFC2C474 != psx_brB_BFC2C474); /* 0xBFC2C478: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC2C474) goto label_BFC2C484; @@ -141851,7 +145916,7 @@ label_BFC2C484: psx_check_interrupts(cpu); /* 0xBFC2C484: 14410003 bne $v0, $at, 0xBFC2C494 */ uint32_t psx_brA_BFC2C484 = cpu->gpr[2]; uint32_t psx_brB_BFC2C484 = cpu->gpr[1]; - int psx_taken_BFC2C484 = (psx_brA_BFC2C484 != psx_brB_BFC2C484); + psx_taken_BFC2C484 = (psx_brA_BFC2C484 != psx_brB_BFC2C484); /* 0xBFC2C488: 97AA004C lhu $t2, 76($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C488u); return; } cpu->gpr[10] = (uint32_t)cpu->read_half(psx_addr); } if (psx_taken_BFC2C484) goto label_BFC2C494; @@ -141893,7 +145958,7 @@ label_BFC2C4B0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (124)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C4B0u); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } /* 0xBFC2C4B4: 10400004 beq $v0, $zero, 0xBFC2C4C8 */ uint32_t psx_brA_BFC2C4B4 = cpu->gpr[2]; uint32_t psx_brB_BFC2C4B4 = cpu->gpr[0]; - int psx_taken_BFC2C4B4 = (psx_brA_BFC2C4B4 == psx_brB_BFC2C4B4); + psx_taken_BFC2C4B4 = (psx_brA_BFC2C4B4 == psx_brB_BFC2C4B4); /* 0xBFC2C4B8: 24030002 addiu $v1, $zero, 2 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC2C4B4) goto label_BFC2C4C8; @@ -141904,7 +145969,7 @@ label_BFC2C4BC: psx_check_interrupts(cpu); /* 0xBFC2C4BC: 10000002 beq $zero, $zero, 0xBFC2C4C8 */ uint32_t psx_brA_BFC2C4BC = cpu->gpr[0]; uint32_t psx_brB_BFC2C4BC = cpu->gpr[0]; - int psx_taken_BFC2C4BC = (psx_brA_BFC2C4BC == psx_brB_BFC2C4BC); + psx_taken_BFC2C4BC = (psx_brA_BFC2C4BC == psx_brB_BFC2C4BC); /* 0xBFC2C4C0: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC2C4BC) goto label_BFC2C4C8; @@ -141926,7 +145991,7 @@ label_BFC2C4C8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (0)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C4CCu); return; } g_debug_last_store_pc = 0xBFC2C4CCu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[7] & 0xFFFFu)); } /* 0xBFC2C4D0: 10E00081 beq $a3, $zero, 0xBFC2C6D8 */ uint32_t psx_brA_BFC2C4D0 = cpu->gpr[7]; uint32_t psx_brB_BFC2C4D0 = cpu->gpr[0]; - int psx_taken_BFC2C4D0 = (psx_brA_BFC2C4D0 == psx_brB_BFC2C4D0); + psx_taken_BFC2C4D0 = (psx_brA_BFC2C4D0 == psx_brB_BFC2C4D0); /* 0xBFC2C4D4: AE0D006C sw $t5, 108($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (108)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C4D4u); return; } g_debug_last_store_pc = 0xBFC2C4D4u; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC2C4D0) goto label_BFC2C6D8; @@ -142097,7 +146162,7 @@ label_BFC2C4E4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (84)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C608u); return; } cpu->gpr[4] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC2C60C: 14600002 bne $v1, $zero, 0xBFC2C618 */ uint32_t psx_brA_BFC2C60C = cpu->gpr[3]; uint32_t psx_brB_BFC2C60C = cpu->gpr[0]; - int psx_taken_BFC2C60C = (psx_brA_BFC2C60C != psx_brB_BFC2C60C); + psx_taken_BFC2C60C = (psx_brA_BFC2C60C != psx_brB_BFC2C60C); /* 0xBFC2C610: 00000000 nop */ /* nop */ if (psx_taken_BFC2C60C) goto label_BFC2C618; @@ -142115,7 +146180,7 @@ label_BFC2C618: psx_check_interrupts(cpu); /* 0xBFC2C618: 14600002 bne $v1, $zero, 0xBFC2C624 */ uint32_t psx_brA_BFC2C618 = cpu->gpr[3]; uint32_t psx_brB_BFC2C618 = cpu->gpr[0]; - int psx_taken_BFC2C618 = (psx_brA_BFC2C618 != psx_brB_BFC2C618); + psx_taken_BFC2C618 = (psx_brA_BFC2C618 != psx_brB_BFC2C618); /* 0xBFC2C61C: 00000000 nop */ /* nop */ if (psx_taken_BFC2C618) goto label_BFC2C624; @@ -142133,7 +146198,7 @@ label_BFC2C624: psx_check_interrupts(cpu); /* 0xBFC2C624: 14600002 bne $v1, $zero, 0xBFC2C630 */ uint32_t psx_brA_BFC2C624 = cpu->gpr[3]; uint32_t psx_brB_BFC2C624 = cpu->gpr[0]; - int psx_taken_BFC2C624 = (psx_brA_BFC2C624 != psx_brB_BFC2C624); + psx_taken_BFC2C624 = (psx_brA_BFC2C624 != psx_brB_BFC2C624); /* 0xBFC2C628: 00000000 nop */ /* nop */ if (psx_taken_BFC2C624) goto label_BFC2C630; @@ -142223,7 +146288,7 @@ label_BFC2C69C: /* nop */ /* 0xBFC2C6A8: 05610002 bgez $t3, 0xBFC2C6B4 */ uint32_t psx_brA_BFC2C6A8 = cpu->gpr[11]; - int psx_taken_BFC2C6A8 = ((int32_t)psx_brA_BFC2C6A8 >= 0); + psx_taken_BFC2C6A8 = ((int32_t)psx_brA_BFC2C6A8 >= 0); /* 0xBFC2C6AC: 01600821 addu $at, $t3, $zero */ cpu->gpr[1] = cpu->gpr[11] + cpu->gpr[0]; if (psx_taken_BFC2C6A8) goto label_BFC2C6B4; @@ -142247,7 +146312,7 @@ label_BFC2C6B4: /* nop */ /* 0xBFC2C6C0: 05A10002 bgez $t5, 0xBFC2C6CC */ uint32_t psx_brA_BFC2C6C0 = cpu->gpr[13]; - int psx_taken_BFC2C6C0 = ((int32_t)psx_brA_BFC2C6C0 >= 0); + psx_taken_BFC2C6C0 = ((int32_t)psx_brA_BFC2C6C0 >= 0); /* 0xBFC2C6C4: 01A00821 addu $at, $t5, $zero */ cpu->gpr[1] = cpu->gpr[13] + cpu->gpr[0]; if (psx_taken_BFC2C6C0) goto label_BFC2C6CC; @@ -142267,7 +146332,7 @@ label_BFC2C6CC: cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[1] >> 1u); /* 0xBFC2C6D0: 10000044 beq $zero, $zero, 0xBFC2C7E4 */ uint32_t psx_brA_BFC2C6D0 = cpu->gpr[0]; uint32_t psx_brB_BFC2C6D0 = cpu->gpr[0]; - int psx_taken_BFC2C6D0 = (psx_brA_BFC2C6D0 == psx_brB_BFC2C6D0); + psx_taken_BFC2C6D0 = (psx_brA_BFC2C6D0 == psx_brB_BFC2C6D0); /* 0xBFC2C6D4: A60F005C sh $t7, 92($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (92)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C6D4u); return; } g_debug_last_store_pc = 0xBFC2C6D4u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[15] & 0xFFFFu)); } if (psx_taken_BFC2C6D0) goto label_BFC2C7E4; @@ -142348,7 +146413,7 @@ label_BFC2C6E4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (84)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C754u); return; } cpu->gpr[4] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC2C758: 14600002 bne $v1, $zero, 0xBFC2C764 */ uint32_t psx_brA_BFC2C758 = cpu->gpr[3]; uint32_t psx_brB_BFC2C758 = cpu->gpr[0]; - int psx_taken_BFC2C758 = (psx_brA_BFC2C758 != psx_brB_BFC2C758); + psx_taken_BFC2C758 = (psx_brA_BFC2C758 != psx_brB_BFC2C758); /* 0xBFC2C75C: 00000000 nop */ /* nop */ if (psx_taken_BFC2C758) goto label_BFC2C764; @@ -142408,7 +146473,7 @@ label_BFC2C794: /* nop */ /* 0xBFC2C7A0: 07010002 bgez $t8, 0xBFC2C7AC */ uint32_t psx_brA_BFC2C7A0 = cpu->gpr[24]; - int psx_taken_BFC2C7A0 = ((int32_t)psx_brA_BFC2C7A0 >= 0); + psx_taken_BFC2C7A0 = ((int32_t)psx_brA_BFC2C7A0 >= 0); /* 0xBFC2C7A4: 03000821 addu $at, $t8, $zero */ cpu->gpr[1] = cpu->gpr[24] + cpu->gpr[0]; if (psx_taken_BFC2C7A0) goto label_BFC2C7AC; @@ -142432,7 +146497,7 @@ label_BFC2C7AC: /* nop */ /* 0xBFC2C7B8: 07210002 bgez $t9, 0xBFC2C7C4 */ uint32_t psx_brA_BFC2C7B8 = cpu->gpr[25]; - int psx_taken_BFC2C7B8 = ((int32_t)psx_brA_BFC2C7B8 >= 0); + psx_taken_BFC2C7B8 = ((int32_t)psx_brA_BFC2C7B8 >= 0); /* 0xBFC2C7BC: 03200821 addu $at, $t9, $zero */ cpu->gpr[1] = cpu->gpr[25] + cpu->gpr[0]; if (psx_taken_BFC2C7B8) goto label_BFC2C7C4; @@ -142482,6 +146547,7 @@ label_BFC2C7E4: void func_1FC2C7F4(CPUState* cpu) { debug_server_log_call_entry(0x1FC2C7F4u); + int psx_taken_BFC2C80C = 0; label_BFC2C7F4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -142501,7 +146567,7 @@ label_BFC2C7F4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (66)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C808u); return; } g_debug_last_store_pc = 0xBFC2C808u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[5] & 0xFFFFu)); } /* 0xBFC2C80C: 11C0001C beq $t6, $zero, 0xBFC2C880 */ uint32_t psx_brA_BFC2C80C = cpu->gpr[14]; uint32_t psx_brB_BFC2C80C = cpu->gpr[0]; - int psx_taken_BFC2C80C = (psx_brA_BFC2C80C == psx_brB_BFC2C80C); + psx_taken_BFC2C80C = (psx_brA_BFC2C80C == psx_brB_BFC2C80C); /* 0xBFC2C810: A4860044 sh $a2, 68($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (68)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C810u); return; } g_debug_last_store_pc = 0xBFC2C810u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[6] & 0xFFFFu)); } if (psx_taken_BFC2C80C) goto label_BFC2C880; @@ -142593,6 +146659,11 @@ label_BFC2C880: void func_1FC2C8A8(CPUState* cpu) { debug_server_log_call_entry(0x1FC2C8A8u); + int psx_taken_BFC2C8B0 = 0; + int psx_taken_BFC2C8E0 = 0; + int psx_taken_BFC2C8F0 = 0; + int psx_taken_BFC2C900 = 0; + int psx_taken_BFC2C918 = 0; label_BFC2C8A8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -142604,7 +146675,7 @@ label_BFC2C8A8: /* nop */ /* 0xBFC2C8B0: 11C00033 beq $t6, $zero, 0xBFC2C980 */ uint32_t psx_brA_BFC2C8B0 = cpu->gpr[14]; uint32_t psx_brB_BFC2C8B0 = cpu->gpr[0]; - int psx_taken_BFC2C8B0 = (psx_brA_BFC2C8B0 == psx_brB_BFC2C8B0); + psx_taken_BFC2C8B0 = (psx_brA_BFC2C8B0 == psx_brB_BFC2C8B0); /* 0xBFC2C8B4: 00000000 nop */ /* nop */ if (psx_taken_BFC2C8B0) goto label_BFC2C980; @@ -142635,7 +146706,7 @@ label_BFC2C8B8: cpu->gpr[6] = cpu->lo; /* 0xBFC2C8E0: 04A10002 bgez $a1, 0xBFC2C8EC */ uint32_t psx_brA_BFC2C8E0 = cpu->gpr[5]; - int psx_taken_BFC2C8E0 = ((int32_t)psx_brA_BFC2C8E0 >= 0); + psx_taken_BFC2C8E0 = ((int32_t)psx_brA_BFC2C8E0 >= 0); /* 0xBFC2C8E4: 00A00821 addu $at, $a1, $zero */ cpu->gpr[1] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC2C8E0) goto label_BFC2C8EC; @@ -142655,7 +146726,7 @@ label_BFC2C8EC: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[1] >> 12u); /* 0xBFC2C8F0: 04C10002 bgez $a2, 0xBFC2C8FC */ uint32_t psx_brA_BFC2C8F0 = cpu->gpr[6]; - int psx_taken_BFC2C8F0 = ((int32_t)psx_brA_BFC2C8F0 >= 0); + psx_taken_BFC2C8F0 = ((int32_t)psx_brA_BFC2C8F0 >= 0); /* 0xBFC2C8F4: 00C00821 addu $at, $a2, $zero */ cpu->gpr[1] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC2C8F0) goto label_BFC2C8FC; @@ -142675,7 +146746,7 @@ label_BFC2C8FC: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[1] >> 12u); /* 0xBFC2C900: 04A10002 bgez $a1, 0xBFC2C90C */ uint32_t psx_brA_BFC2C900 = cpu->gpr[5]; - int psx_taken_BFC2C900 = ((int32_t)psx_brA_BFC2C900 >= 0); + psx_taken_BFC2C900 = ((int32_t)psx_brA_BFC2C900 >= 0); /* 0xBFC2C904: 00A00821 addu $at, $a1, $zero */ cpu->gpr[1] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC2C900) goto label_BFC2C90C; @@ -142699,7 +146770,7 @@ label_BFC2C90C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (32)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2C914u); return; } g_debug_last_store_pc = 0xBFC2C914u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[2] & 0xFFFFu)); } /* 0xBFC2C918: 04C10002 bgez $a2, 0xBFC2C924 */ uint32_t psx_brA_BFC2C918 = cpu->gpr[6]; - int psx_taken_BFC2C918 = ((int32_t)psx_brA_BFC2C918 >= 0); + psx_taken_BFC2C918 = ((int32_t)psx_brA_BFC2C918 >= 0); /* 0xBFC2C91C: 00C00821 addu $at, $a2, $zero */ cpu->gpr[1] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC2C918) goto label_BFC2C924; @@ -142774,6 +146845,9 @@ label_BFC2C980: void func_1FC2C988(CPUState* cpu) { debug_server_log_call_entry(0x1FC2C988u); + int psx_taken_BFC2C990 = 0; + int psx_taken_BFC2C9B0 = 0; + int psx_taken_BFC2C9C8 = 0; label_BFC2C988: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -142785,7 +146859,7 @@ label_BFC2C988: /* nop */ /* 0xBFC2C990: 11C0002D beq $t6, $zero, 0xBFC2CA48 */ uint32_t psx_brA_BFC2C990 = cpu->gpr[14]; uint32_t psx_brB_BFC2C990 = cpu->gpr[0]; - int psx_taken_BFC2C990 = (psx_brA_BFC2C990 == psx_brB_BFC2C990); + psx_taken_BFC2C990 = (psx_brA_BFC2C990 == psx_brB_BFC2C990); /* 0xBFC2C994: 00000000 nop */ /* nop */ if (psx_taken_BFC2C990) goto label_BFC2CA48; @@ -142808,7 +146882,7 @@ label_BFC2C998: /* nop */ /* 0xBFC2C9B0: 05E10002 bgez $t7, 0xBFC2C9BC */ uint32_t psx_brA_BFC2C9B0 = cpu->gpr[15]; - int psx_taken_BFC2C9B0 = ((int32_t)psx_brA_BFC2C9B0 >= 0); + psx_taken_BFC2C9B0 = ((int32_t)psx_brA_BFC2C9B0 >= 0); /* 0xBFC2C9B4: 01E00821 addu $at, $t7, $zero */ cpu->gpr[1] = cpu->gpr[15] + cpu->gpr[0]; if (psx_taken_BFC2C9B0) goto label_BFC2C9BC; @@ -142832,7 +146906,7 @@ label_BFC2C9BC: /* nop */ /* 0xBFC2C9C8: 07210002 bgez $t9, 0xBFC2C9D4 */ uint32_t psx_brA_BFC2C9C8 = cpu->gpr[25]; - int psx_taken_BFC2C9C8 = ((int32_t)psx_brA_BFC2C9C8 >= 0); + psx_taken_BFC2C9C8 = ((int32_t)psx_brA_BFC2C9C8 >= 0); /* 0xBFC2C9CC: 03200821 addu $at, $t9, $zero */ cpu->gpr[1] = cpu->gpr[25] + cpu->gpr[0]; if (psx_taken_BFC2C9C8) goto label_BFC2C9D4; @@ -142932,6 +147006,7 @@ label_BFC2CA50: void func_1FC2CA58(CPUState* cpu) { debug_server_log_call_entry(0x1FC2CA58u); + int psx_taken_BFC2CA70 = 0; label_BFC2CA58: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -142951,7 +147026,7 @@ label_BFC2CA58: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] >> 16u); /* 0xBFC2CA70: 11C00005 beq $t6, $zero, 0xBFC2CA88 */ uint32_t psx_brA_BFC2CA70 = cpu->gpr[14]; uint32_t psx_brB_BFC2CA70 = cpu->gpr[0]; - int psx_taken_BFC2CA70 = (psx_brA_BFC2CA70 == psx_brB_BFC2CA70); + psx_taken_BFC2CA70 = (psx_brA_BFC2CA70 == psx_brB_BFC2CA70); /* 0xBFC2CA74: 00052C03 sra $a1, $a1, 16 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] >> 16u); if (psx_taken_BFC2CA70) goto label_BFC2CA88; @@ -142996,6 +147071,8 @@ void func_1FC2CA9C(CPUState* cpu) { default: break; } } + int psx_taken_BFC2CAB0 = 0; + int psx_taken_BFC2CAC0 = 0; label_BFC2CA9C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -143013,7 +147090,7 @@ label_BFC2CA9C: /* nop */ /* 0xBFC2CAB0: 11C00005 beq $t6, $zero, 0xBFC2CAC8 */ uint32_t psx_brA_BFC2CAB0 = cpu->gpr[14]; uint32_t psx_brB_BFC2CAB0 = cpu->gpr[0]; - int psx_taken_BFC2CAB0 = (psx_brA_BFC2CAB0 == psx_brB_BFC2CAB0); + psx_taken_BFC2CAB0 = (psx_brA_BFC2CAB0 == psx_brB_BFC2CAB0); /* 0xBFC2CAB4: 00000000 nop */ /* nop */ if (psx_taken_BFC2CAB0) goto label_BFC2CAC8; @@ -143034,7 +147111,7 @@ label_BFC2CAC0: psx_check_interrupts(cpu); /* 0xBFC2CAC0: 10000004 beq $zero, $zero, 0xBFC2CAD4 */ uint32_t psx_brA_BFC2CAC0 = cpu->gpr[0]; uint32_t psx_brB_BFC2CAC0 = cpu->gpr[0]; - int psx_taken_BFC2CAC0 = (psx_brA_BFC2CAC0 == psx_brB_BFC2CAC0); + psx_taken_BFC2CAC0 = (psx_brA_BFC2CAC0 == psx_brB_BFC2CAC0); /* 0xBFC2CAC4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CAC4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2CAC0) goto label_BFC2CAD4; @@ -143079,6 +147156,8 @@ void func_1FC2CAE0(CPUState* cpu) { default: break; } } + int psx_taken_BFC2CAF4 = 0; + int psx_taken_BFC2CB04 = 0; label_BFC2CAE0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -143096,7 +147175,7 @@ label_BFC2CAE0: /* nop */ /* 0xBFC2CAF4: 11C00005 beq $t6, $zero, 0xBFC2CB0C */ uint32_t psx_brA_BFC2CAF4 = cpu->gpr[14]; uint32_t psx_brB_BFC2CAF4 = cpu->gpr[0]; - int psx_taken_BFC2CAF4 = (psx_brA_BFC2CAF4 == psx_brB_BFC2CAF4); + psx_taken_BFC2CAF4 = (psx_brA_BFC2CAF4 == psx_brB_BFC2CAF4); /* 0xBFC2CAF8: 00000000 nop */ /* nop */ if (psx_taken_BFC2CAF4) goto label_BFC2CB0C; @@ -143117,7 +147196,7 @@ label_BFC2CB04: psx_check_interrupts(cpu); /* 0xBFC2CB04: 10000004 beq $zero, $zero, 0xBFC2CB18 */ uint32_t psx_brA_BFC2CB04 = cpu->gpr[0]; uint32_t psx_brB_BFC2CB04 = cpu->gpr[0]; - int psx_taken_BFC2CB04 = (psx_brA_BFC2CB04 == psx_brB_BFC2CB04); + psx_taken_BFC2CB04 = (psx_brA_BFC2CB04 == psx_brB_BFC2CB04); /* 0xBFC2CB08: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CB08u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2CB04) goto label_BFC2CB18; @@ -143163,6 +147242,8 @@ void func_1FC2CB24(CPUState* cpu) { default: break; } } + int psx_taken_BFC2CB38 = 0; + int psx_taken_BFC2CB48 = 0; label_BFC2CB24: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -143180,7 +147261,7 @@ label_BFC2CB24: /* nop */ /* 0xBFC2CB38: 11C00005 beq $t6, $zero, 0xBFC2CB50 */ uint32_t psx_brA_BFC2CB38 = cpu->gpr[14]; uint32_t psx_brB_BFC2CB38 = cpu->gpr[0]; - int psx_taken_BFC2CB38 = (psx_brA_BFC2CB38 == psx_brB_BFC2CB38); + psx_taken_BFC2CB38 = (psx_brA_BFC2CB38 == psx_brB_BFC2CB38); /* 0xBFC2CB3C: 00000000 nop */ /* nop */ if (psx_taken_BFC2CB38) goto label_BFC2CB50; @@ -143201,7 +147282,7 @@ label_BFC2CB48: psx_check_interrupts(cpu); /* 0xBFC2CB48: 1000000A beq $zero, $zero, 0xBFC2CB74 */ uint32_t psx_brA_BFC2CB48 = cpu->gpr[0]; uint32_t psx_brB_BFC2CB48 = cpu->gpr[0]; - int psx_taken_BFC2CB48 = (psx_brA_BFC2CB48 == psx_brB_BFC2CB48); + psx_taken_BFC2CB48 = (psx_brA_BFC2CB48 == psx_brB_BFC2CB48); /* 0xBFC2CB4C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CB4Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2CB48) goto label_BFC2CB74; @@ -143265,6 +147346,8 @@ void func_1FC2CB80(CPUState* cpu) { default: break; } } + int psx_taken_BFC2CB94 = 0; + int psx_taken_BFC2CBB4 = 0; label_BFC2CB80: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -143282,7 +147365,7 @@ label_BFC2CB80: cpu->gpr[6] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC2CB94: 11C00009 beq $t6, $zero, 0xBFC2CBBC */ uint32_t psx_brA_BFC2CB94 = cpu->gpr[14]; uint32_t psx_brB_BFC2CB94 = cpu->gpr[0]; - int psx_taken_BFC2CB94 = (psx_brA_BFC2CB94 == psx_brB_BFC2CB94); + psx_taken_BFC2CB94 = (psx_brA_BFC2CB94 == psx_brB_BFC2CB94); /* 0xBFC2CB98: 00000000 nop */ /* nop */ if (psx_taken_BFC2CB94) goto label_BFC2CBBC; @@ -143311,7 +147394,7 @@ label_BFC2CBB4: psx_check_interrupts(cpu); /* 0xBFC2CBB4: 10000012 beq $zero, $zero, 0xBFC2CC00 */ uint32_t psx_brA_BFC2CBB4 = cpu->gpr[0]; uint32_t psx_brB_BFC2CBB4 = cpu->gpr[0]; - int psx_taken_BFC2CBB4 = (psx_brA_BFC2CBB4 == psx_brB_BFC2CBB4); + psx_taken_BFC2CBB4 = (psx_brA_BFC2CBB4 == psx_brB_BFC2CBB4); /* 0xBFC2CBB8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CBB8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2CBB4) goto label_BFC2CC00; @@ -143389,6 +147472,8 @@ void func_1FC2CC10(CPUState* cpu) { default: break; } } + int psx_taken_BFC2CC54 = 0; + int psx_taken_BFC2CC80 = 0; label_BFC2CC10: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -143441,7 +147526,7 @@ label_BFC2CC4C: g_debug_last_store_pc = 0xBFC2CC50u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[16] + (-1)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC2CC54: 1612FFFA bne $s0, $s2, 0xBFC2CC40 */ uint32_t psx_brA_BFC2CC54 = cpu->gpr[16]; uint32_t psx_brB_BFC2CC54 = cpu->gpr[18]; - int psx_taken_BFC2CC54 = (psx_brA_BFC2CC54 != psx_brB_BFC2CC54); + psx_taken_BFC2CC54 = (psx_brA_BFC2CC54 != psx_brB_BFC2CC54); /* 0xBFC2CC58: 26310018 addiu $s1, $s1, 24 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (24)); if (psx_taken_BFC2CC54) goto label_BFC2CC40; @@ -143475,7 +147560,7 @@ label_BFC2CC70: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-3340)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CC7Cu); return; } g_debug_last_store_pc = 0xBFC2CC7Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC2CC80: 1443FFFB bne $v0, $v1, 0xBFC2CC70 */ uint32_t psx_brA_BFC2CC80 = cpu->gpr[2]; uint32_t psx_brB_BFC2CC80 = cpu->gpr[3]; - int psx_taken_BFC2CC80 = (psx_brA_BFC2CC80 != psx_brB_BFC2CC80); + psx_taken_BFC2CC80 = (psx_brA_BFC2CC80 != psx_brB_BFC2CC80); /* 0xBFC2CC84: AC40F97C sw $zero, -1668($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-1668)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CC84u); return; } g_debug_last_store_pc = 0xBFC2CC84u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC2CC80) goto label_BFC2CC70; @@ -143526,6 +147611,9 @@ void func_1FC2CCC4(CPUState* cpu) { default: break; } } + int psx_taken_BFC2CCE0 = 0; + int psx_taken_BFC2CCE8 = 0; + int psx_taken_BFC2CD44 = 0; label_BFC2CCC4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -143553,7 +147641,7 @@ label_BFC2CCDC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (48)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CCDCu); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC2CCE0: 04410003 bgez $v0, 0xBFC2CCF0 */ uint32_t psx_brA_BFC2CCE0 = cpu->gpr[2]; - int psx_taken_BFC2CCE0 = ((int32_t)psx_brA_BFC2CCE0 >= 0); + psx_taken_BFC2CCE0 = ((int32_t)psx_brA_BFC2CCE0 >= 0); /* 0xBFC2CCE4: 00408821 addu $s1, $v0, $zero */ cpu->gpr[17] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC2CCE0) goto label_BFC2CCF0; @@ -143564,7 +147652,7 @@ label_BFC2CCE8: psx_check_interrupts(cpu); /* 0xBFC2CCE8: 10000043 beq $zero, $zero, 0xBFC2CDF8 */ uint32_t psx_brA_BFC2CCE8 = cpu->gpr[0]; uint32_t psx_brB_BFC2CCE8 = cpu->gpr[0]; - int psx_taken_BFC2CCE8 = (psx_brA_BFC2CCE8 == psx_brB_BFC2CCE8); + psx_taken_BFC2CCE8 = (psx_brA_BFC2CCE8 == psx_brB_BFC2CCE8); /* 0xBFC2CCEC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC2CCE8) goto label_BFC2CDF8; @@ -143622,7 +147710,7 @@ label_BFC2CD28: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[25] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CD40u); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC2CD44: 1738FFF8 bne $t9, $t8, 0xBFC2CD28 */ uint32_t psx_brA_BFC2CD44 = cpu->gpr[25]; uint32_t psx_brB_BFC2CD44 = cpu->gpr[24]; - int psx_taken_BFC2CD44 = (psx_brA_BFC2CD44 != psx_brB_BFC2CD44); + psx_taken_BFC2CD44 = (psx_brA_BFC2CD44 != psx_brB_BFC2CD44); /* 0xBFC2CD48: AD01FFFC sw $at, -4($t0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[8] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CD48u); return; } g_debug_last_store_pc = 0xBFC2CD48u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC2CD44) goto label_BFC2CD28; @@ -143770,6 +147858,9 @@ void func_1FC2CE08(CPUState* cpu) { default: break; } } + int psx_taken_BFC2CE28 = 0; + int psx_taken_BFC2CE30 = 0; + int psx_taken_BFC2CE8C = 0; label_BFC2CE08: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -143799,7 +147890,7 @@ label_BFC2CE28: psx_check_interrupts(cpu); /* 0xBFC2CE28: 04410003 bgez $v0, 0xBFC2CE38 */ uint32_t psx_brA_BFC2CE28 = cpu->gpr[2]; - int psx_taken_BFC2CE28 = ((int32_t)psx_brA_BFC2CE28 >= 0); + psx_taken_BFC2CE28 = ((int32_t)psx_brA_BFC2CE28 >= 0); /* 0xBFC2CE2C: 00408821 addu $s1, $v0, $zero */ cpu->gpr[17] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC2CE28) goto label_BFC2CE38; @@ -143810,7 +147901,7 @@ label_BFC2CE30: psx_check_interrupts(cpu); /* 0xBFC2CE30: 10000044 beq $zero, $zero, 0xBFC2CF44 */ uint32_t psx_brA_BFC2CE30 = cpu->gpr[0]; uint32_t psx_brB_BFC2CE30 = cpu->gpr[0]; - int psx_taken_BFC2CE30 = (psx_brA_BFC2CE30 == psx_brB_BFC2CE30); + psx_taken_BFC2CE30 = (psx_brA_BFC2CE30 == psx_brB_BFC2CE30); /* 0xBFC2CE34: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC2CE30) goto label_BFC2CF44; @@ -143868,7 +147959,7 @@ label_BFC2CE70: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CE88u); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC2CE8C: 1719FFF8 bne $t8, $t9, 0xBFC2CE70 */ uint32_t psx_brA_BFC2CE8C = cpu->gpr[24]; uint32_t psx_brB_BFC2CE8C = cpu->gpr[25]; - int psx_taken_BFC2CE8C = (psx_brA_BFC2CE8C != psx_brB_BFC2CE8C); + psx_taken_BFC2CE8C = (psx_brA_BFC2CE8C != psx_brB_BFC2CE8C); /* 0xBFC2CE90: AD01FFFC sw $at, -4($t0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[8] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CE90u); return; } g_debug_last_store_pc = 0xBFC2CE90u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC2CE8C) goto label_BFC2CE70; @@ -144015,6 +148106,10 @@ void func_1FC2CF54(CPUState* cpu) { default: break; } } + int psx_taken_BFC2CF6C = 0; + int psx_taken_BFC2CF74 = 0; + int psx_taken_BFC2CFCC = 0; + int psx_taken_BFC2CFFC = 0; label_BFC2CF54: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -144040,7 +148135,7 @@ label_BFC2CF6C: psx_check_interrupts(cpu); /* 0xBFC2CF6C: 04410003 bgez $v0, 0xBFC2CF7C */ uint32_t psx_brA_BFC2CF6C = cpu->gpr[2]; - int psx_taken_BFC2CF6C = ((int32_t)psx_brA_BFC2CF6C >= 0); + psx_taken_BFC2CF6C = ((int32_t)psx_brA_BFC2CF6C >= 0); /* 0xBFC2CF70: 00403821 addu $a3, $v0, $zero */ cpu->gpr[7] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC2CF6C) goto label_BFC2CF7C; @@ -144051,7 +148146,7 @@ label_BFC2CF74: psx_check_interrupts(cpu); /* 0xBFC2CF74: 10000047 beq $zero, $zero, 0xBFC2D094 */ uint32_t psx_brA_BFC2CF74 = cpu->gpr[0]; uint32_t psx_brB_BFC2CF74 = cpu->gpr[0]; - int psx_taken_BFC2CF74 = (psx_brA_BFC2CF74 == psx_brB_BFC2CF74); + psx_taken_BFC2CF74 = (psx_brA_BFC2CF74 == psx_brB_BFC2CF74); /* 0xBFC2CF78: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC2CF74) goto label_BFC2D094; @@ -144107,7 +148202,7 @@ label_BFC2CFB0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CFC8u); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC2CFCC: 1719FFF8 bne $t8, $t9, 0xBFC2CFB0 */ uint32_t psx_brA_BFC2CFCC = cpu->gpr[24]; uint32_t psx_brB_BFC2CFCC = cpu->gpr[25]; - int psx_taken_BFC2CFCC = (psx_brA_BFC2CFCC != psx_brB_BFC2CFCC); + psx_taken_BFC2CFCC = (psx_brA_BFC2CFCC != psx_brB_BFC2CFCC); /* 0xBFC2CFD0: AD01FFFC sw $at, -4($t0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[8] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CFD0u); return; } g_debug_last_store_pc = 0xBFC2CFD0u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC2CFCC) goto label_BFC2CFB0; @@ -144143,7 +148238,7 @@ label_BFC2CFE0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2CFF8u); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC2CFFC: 152AFFF8 bne $t1, $t2, 0xBFC2CFE0 */ uint32_t psx_brA_BFC2CFFC = cpu->gpr[9]; uint32_t psx_brB_BFC2CFFC = cpu->gpr[10]; - int psx_taken_BFC2CFFC = (psx_brA_BFC2CFFC != psx_brB_BFC2CFFC); + psx_taken_BFC2CFFC = (psx_brA_BFC2CFFC != psx_brB_BFC2CFFC); /* 0xBFC2D000: AD610038 sw $at, 56($t3) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[11] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D000u); return; } g_debug_last_store_pc = 0xBFC2D000u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC2CFFC) goto label_BFC2CFE0; @@ -144247,6 +148342,8 @@ label_BFC2D094: void func_1FC2D0A4(CPUState* cpu) { debug_server_log_call_entry(0x1FC2D0A4u); + int psx_taken_BFC2D0C0 = 0; + int psx_taken_BFC2D0D0 = 0; label_BFC2D0A4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -144273,7 +148370,7 @@ label_BFC2D0B8: /* nop */ /* 0xBFC2D0C0: 148E0002 bne $a0, $t6, 0xBFC2D0CC */ uint32_t psx_brA_BFC2D0C0 = cpu->gpr[4]; uint32_t psx_brB_BFC2D0C0 = cpu->gpr[14]; - int psx_taken_BFC2D0C0 = (psx_brA_BFC2D0C0 != psx_brB_BFC2D0C0); + psx_taken_BFC2D0C0 = (psx_brA_BFC2D0C0 != psx_brB_BFC2D0C0); /* 0xBFC2D0C4: 00000000 nop */ /* nop */ if (psx_taken_BFC2D0C0) goto label_BFC2D0CC; @@ -144293,7 +148390,7 @@ label_BFC2D0CC: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1672)); /* 0xBFC2D0D0: 1462FFF9 bne $v1, $v0, 0xBFC2D0B8 */ uint32_t psx_brA_BFC2D0D0 = cpu->gpr[3]; uint32_t psx_brB_BFC2D0D0 = cpu->gpr[2]; - int psx_taken_BFC2D0D0 = (psx_brA_BFC2D0D0 != psx_brB_BFC2D0D0); + psx_taken_BFC2D0D0 = (psx_brA_BFC2D0D0 != psx_brB_BFC2D0D0); /* 0xBFC2D0D4: 00000000 nop */ /* nop */ if (psx_taken_BFC2D0D0) goto label_BFC2D0B8; @@ -144351,6 +148448,124 @@ void func_1FC2D0E0(CPUState* cpu) { default: break; } } + int psx_taken_BFC2D13C = 0; + int psx_taken_BFC2D14C = 0; + int psx_taken_BFC2D1B0 = 0; + int psx_taken_BFC2D1C4 = 0; + int psx_taken_BFC2D1D8 = 0; + int psx_taken_BFC2D1E4 = 0; + int psx_taken_BFC2D20C = 0; + int psx_taken_BFC2D21C = 0; + int psx_taken_BFC2D224 = 0; + int psx_taken_BFC2D238 = 0; + int psx_taken_BFC2D2A8 = 0; + int psx_taken_BFC2D2F0 = 0; + int psx_taken_BFC2D314 = 0; + int psx_taken_BFC2D384 = 0; + int psx_taken_BFC2D414 = 0; + int psx_taken_BFC2D448 = 0; + int psx_taken_BFC2D450 = 0; + int psx_taken_BFC2D45C = 0; + int psx_taken_BFC2D464 = 0; + int psx_taken_BFC2D4C4 = 0; + int psx_taken_BFC2D4D8 = 0; + int psx_taken_BFC2D528 = 0; + int psx_taken_BFC2D538 = 0; + int psx_taken_BFC2D540 = 0; + int psx_taken_BFC2D554 = 0; + int psx_taken_BFC2D5C4 = 0; + int psx_taken_BFC2D60C = 0; + int psx_taken_BFC2D63C = 0; + int psx_taken_BFC2D66C = 0; + int psx_taken_BFC2D684 = 0; + int psx_taken_BFC2D6A4 = 0; + int psx_taken_BFC2D6B4 = 0; + int psx_taken_BFC2D6BC = 0; + int psx_taken_BFC2D6DC = 0; + int psx_taken_BFC2D72C = 0; + int psx_taken_BFC2D740 = 0; + int psx_taken_BFC2D75C = 0; + int psx_taken_BFC2D774 = 0; + int psx_taken_BFC2D79C = 0; + int psx_taken_BFC2D7B0 = 0; + int psx_taken_BFC2D7C4 = 0; + int psx_taken_BFC2D868 = 0; + int psx_taken_BFC2D870 = 0; + int psx_taken_BFC2D88C = 0; + int psx_taken_BFC2D894 = 0; + int psx_taken_BFC2D8B0 = 0; + int psx_taken_BFC2D8C4 = 0; + int psx_taken_BFC2D8CC = 0; + int psx_taken_BFC2D8E8 = 0; + int psx_taken_BFC2D904 = 0; + int psx_taken_BFC2D990 = 0; + int psx_taken_BFC2D9C4 = 0; + int psx_taken_BFC2D9E4 = 0; + int psx_taken_BFC2DA10 = 0; + int psx_taken_BFC2DA24 = 0; + int psx_taken_BFC2DA2C = 0; + int psx_taken_BFC2DA4C = 0; + int psx_taken_BFC2DA54 = 0; + int psx_taken_BFC2DA64 = 0; + int psx_taken_BFC2DAC0 = 0; + int psx_taken_BFC2DAE4 = 0; + int psx_taken_BFC2DB0C = 0; + int psx_taken_BFC2DB1C = 0; + int psx_taken_BFC2DB24 = 0; + int psx_taken_BFC2DB58 = 0; + int psx_taken_BFC2DB64 = 0; + int psx_taken_BFC2DB8C = 0; + int psx_taken_BFC2DBAC = 0; + int psx_taken_BFC2DBEC = 0; + int psx_taken_BFC2DC00 = 0; + int psx_taken_BFC2DC18 = 0; + int psx_taken_BFC2DC2C = 0; + int psx_taken_BFC2DC88 = 0; + int psx_taken_BFC2DCA0 = 0; + int psx_taken_BFC2DCB8 = 0; + int psx_taken_BFC2DCC0 = 0; + int psx_taken_BFC2DCD8 = 0; + int psx_taken_BFC2DCE8 = 0; + int psx_taken_BFC2DD00 = 0; + int psx_taken_BFC2DD18 = 0; + int psx_taken_BFC2DD20 = 0; + int psx_taken_BFC2DD38 = 0; + int psx_taken_BFC2DDCC = 0; + int psx_taken_BFC2DE38 = 0; + int psx_taken_BFC2DEB4 = 0; + int psx_taken_BFC2DEC8 = 0; + int psx_taken_BFC2DED8 = 0; + int psx_taken_BFC2DEE0 = 0; + int psx_taken_BFC2DEEC = 0; + int psx_taken_BFC2DF40 = 0; + int psx_taken_BFC2DF58 = 0; + int psx_taken_BFC2DF70 = 0; + int psx_taken_BFC2DF78 = 0; + int psx_taken_BFC2DF90 = 0; + int psx_taken_BFC2DFA0 = 0; + int psx_taken_BFC2DFB8 = 0; + int psx_taken_BFC2DFD0 = 0; + int psx_taken_BFC2DFD8 = 0; + int psx_taken_BFC2DFF0 = 0; + int psx_taken_BFC2E08C = 0; + int psx_taken_BFC2E108 = 0; + int psx_taken_BFC2E110 = 0; + int psx_taken_BFC2E1A0 = 0; + int psx_taken_BFC2E1A8 = 0; + int psx_taken_BFC2E1B0 = 0; + int psx_taken_BFC2E1FC = 0; + int psx_taken_BFC2E230 = 0; + int psx_taken_BFC2E24C = 0; + int psx_taken_BFC2E2C0 = 0; + int psx_taken_BFC2E2E0 = 0; + int psx_taken_BFC2E304 = 0; + int psx_taken_BFC2E324 = 0; + int psx_taken_BFC2E388 = 0; + int psx_taken_BFC2E39C = 0; + int psx_taken_BFC2E3AC = 0; + int psx_taken_BFC2E3E4 = 0; + int psx_taken_BFC2E3EC = 0; + int psx_taken_BFC2E408 = 0; label_BFC2D0E0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(21u); @@ -144409,7 +148624,7 @@ label_BFC2D134: /* nop */ /* 0xBFC2D13C: 10600465 beq $v1, $zero, 0xBFC2E2D4 */ uint32_t psx_brA_BFC2D13C = cpu->gpr[3]; uint32_t psx_brB_BFC2D13C = cpu->gpr[0]; - int psx_taken_BFC2D13C = (psx_brA_BFC2D13C == psx_brB_BFC2D13C); + psx_taken_BFC2D13C = (psx_brA_BFC2D13C == psx_brB_BFC2D13C); /* 0xBFC2D140: 8FAC00AC lw $t4, 172($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (172)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D140u); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } if (psx_taken_BFC2D13C) goto label_BFC2E2D4; @@ -144424,7 +148639,7 @@ label_BFC2D144: /* nop */ /* 0xBFC2D14C: 1040001A beq $v0, $zero, 0xBFC2D1B8 */ uint32_t psx_brA_BFC2D14C = cpu->gpr[2]; uint32_t psx_brB_BFC2D14C = cpu->gpr[0]; - int psx_taken_BFC2D14C = (psx_brA_BFC2D14C == psx_brB_BFC2D14C); + psx_taken_BFC2D14C = (psx_brA_BFC2D14C == psx_brB_BFC2D14C); /* 0xBFC2D150: 00000000 nop */ /* nop */ if (psx_taken_BFC2D14C) goto label_BFC2D1B8; @@ -144487,7 +148702,7 @@ label_BFC2D1A4: cpu->gpr[6] = 0x80140000u; /* 0xBFC2D1B0: 10000447 beq $zero, $zero, 0xBFC2E2D0 */ uint32_t psx_brA_BFC2D1B0 = cpu->gpr[0]; uint32_t psx_brB_BFC2D1B0 = cpu->gpr[0]; - int psx_taken_BFC2D1B0 = (psx_brA_BFC2D1B0 == psx_brB_BFC2D1B0); + psx_taken_BFC2D1B0 = (psx_brA_BFC2D1B0 == psx_brB_BFC2D1B0); /* 0xBFC2D1B4: 24C681C8 addiu $a2, $a2, -32312 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-32312)); if (psx_taken_BFC2D1B0) goto label_BFC2E2D0; @@ -144504,7 +148719,7 @@ label_BFC2D1B8: /* nop */ /* 0xBFC2D1C4: 154300C1 bne $t2, $v1, 0xBFC2D4CC */ uint32_t psx_brA_BFC2D1C4 = cpu->gpr[10]; uint32_t psx_brB_BFC2D1C4 = cpu->gpr[3]; - int psx_taken_BFC2D1C4 = (psx_brA_BFC2D1C4 != psx_brB_BFC2D1C4); + psx_taken_BFC2D1C4 = (psx_brA_BFC2D1C4 != psx_brB_BFC2D1C4); /* 0xBFC2D1C8: 00000000 nop */ /* nop */ if (psx_taken_BFC2D1C4) goto label_BFC2D4CC; @@ -144521,7 +148736,7 @@ label_BFC2D1CC: cpu->gpr[11] = cpu->gpr[2] & 0xF0u; /* 0xBFC2D1D8: 156000BC bne $t3, $zero, 0xBFC2D4CC */ uint32_t psx_brA_BFC2D1D8 = cpu->gpr[11]; uint32_t psx_brB_BFC2D1D8 = cpu->gpr[0]; - int psx_taken_BFC2D1D8 = (psx_brA_BFC2D1D8 != psx_brB_BFC2D1D8); + psx_taken_BFC2D1D8 = (psx_brA_BFC2D1D8 != psx_brB_BFC2D1D8); /* 0xBFC2D1DC: 00000000 nop */ /* nop */ if (psx_taken_BFC2D1D8) goto label_BFC2D4CC; @@ -144534,7 +148749,7 @@ label_BFC2D1E0: cpu->gpr[12] = cpu->gpr[2] & 0x4u; /* 0xBFC2D1E4: 1180004A beq $t4, $zero, 0xBFC2D310 */ uint32_t psx_brA_BFC2D1E4 = cpu->gpr[12]; uint32_t psx_brB_BFC2D1E4 = cpu->gpr[0]; - int psx_taken_BFC2D1E4 = (psx_brA_BFC2D1E4 == psx_brB_BFC2D1E4); + psx_taken_BFC2D1E4 = (psx_brA_BFC2D1E4 == psx_brB_BFC2D1E4); /* 0xBFC2D1E8: 00009021 addu $s2, $zero, $zero */ cpu->gpr[18] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2D1E4) goto label_BFC2D310; @@ -144561,7 +148776,7 @@ label_BFC2D1EC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[30] + (1660)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D208u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } /* 0xBFC2D20C: 14400002 bne $v0, $zero, 0xBFC2D218 */ uint32_t psx_brA_BFC2D20C = cpu->gpr[2]; uint32_t psx_brB_BFC2D20C = cpu->gpr[0]; - int psx_taken_BFC2D20C = (psx_brA_BFC2D20C != psx_brB_BFC2D20C); + psx_taken_BFC2D20C = (psx_brA_BFC2D20C != psx_brB_BFC2D20C); /* 0xBFC2D210: 00000000 nop */ /* nop */ if (psx_taken_BFC2D20C) goto label_BFC2D218; @@ -144581,7 +148796,7 @@ label_BFC2D218: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2D21C: 14410004 bne $v0, $at, 0xBFC2D230 */ uint32_t psx_brA_BFC2D21C = cpu->gpr[2]; uint32_t psx_brB_BFC2D21C = cpu->gpr[1]; - int psx_taken_BFC2D21C = (psx_brA_BFC2D21C != psx_brB_BFC2D21C); + psx_taken_BFC2D21C = (psx_brA_BFC2D21C != psx_brB_BFC2D21C); /* 0xBFC2D220: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC2D21C) goto label_BFC2D230; @@ -144592,7 +148807,7 @@ label_BFC2D224: psx_check_interrupts(cpu); /* 0xBFC2D224: 17010002 bne $t8, $at, 0xBFC2D230 */ uint32_t psx_brA_BFC2D224 = cpu->gpr[24]; uint32_t psx_brB_BFC2D224 = cpu->gpr[1]; - int psx_taken_BFC2D224 = (psx_brA_BFC2D224 != psx_brB_BFC2D224); + psx_taken_BFC2D224 = (psx_brA_BFC2D224 != psx_brB_BFC2D224); /* 0xBFC2D228: 00000000 nop */ /* nop */ if (psx_taken_BFC2D224) goto label_BFC2D230; @@ -144614,7 +148829,7 @@ label_BFC2D230: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[25] < (int32_t)cpu->gpr[15] ? 1 : 0); /* 0xBFC2D238: 10200033 beq $at, $zero, 0xBFC2D308 */ uint32_t psx_brA_BFC2D238 = cpu->gpr[1]; uint32_t psx_brB_BFC2D238 = cpu->gpr[0]; - int psx_taken_BFC2D238 = (psx_brA_BFC2D238 == psx_brB_BFC2D238); + psx_taken_BFC2D238 = (psx_brA_BFC2D238 == psx_brB_BFC2D238); /* 0xBFC2D23C: 00000000 nop */ /* nop */ if (psx_taken_BFC2D238) goto label_BFC2D308; @@ -144677,7 +148892,7 @@ label_BFC2D240: cpu->gpr[5] = cpu->gpr[14] + cpu->gpr[24]; /* 0xBFC2D2A8: 14200004 bne $at, $zero, 0xBFC2D2BC */ uint32_t psx_brA_BFC2D2A8 = cpu->gpr[1]; uint32_t psx_brB_BFC2D2A8 = cpu->gpr[0]; - int psx_taken_BFC2D2A8 = (psx_brA_BFC2D2A8 != psx_brB_BFC2D2A8); + psx_taken_BFC2D2A8 = (psx_brA_BFC2D2A8 != psx_brB_BFC2D2A8); /* 0xBFC2D2AC: 2484003C addiu $a0, $a0, 60 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (60)); if (psx_taken_BFC2D2A8) goto label_BFC2D2BC; @@ -144730,7 +148945,7 @@ label_BFC2D2D4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[25] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D2ECu); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC2D2F0: 1728FFF8 bne $t9, $t0, 0xBFC2D2D4 */ uint32_t psx_brA_BFC2D2F0 = cpu->gpr[25]; uint32_t psx_brB_BFC2D2F0 = cpu->gpr[8]; - int psx_taken_BFC2D2F0 = (psx_brA_BFC2D2F0 != psx_brB_BFC2D2F0); + psx_taken_BFC2D2F0 = (psx_brA_BFC2D2F0 != psx_brB_BFC2D2F0); /* 0xBFC2D2F4: AD21FFFC sw $at, -4($t1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D2F4u); return; } g_debug_last_store_pc = 0xBFC2D2F4u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC2D2F0) goto label_BFC2D2D4; @@ -144765,7 +148980,7 @@ label_BFC2D310: cpu->gpr[10] = cpu->gpr[2] & 0x2u; /* 0xBFC2D314: 1140001B beq $t2, $zero, 0xBFC2D384 */ uint32_t psx_brA_BFC2D314 = cpu->gpr[10]; uint32_t psx_brB_BFC2D314 = cpu->gpr[0]; - int psx_taken_BFC2D314 = (psx_brA_BFC2D314 == psx_brB_BFC2D314); + psx_taken_BFC2D314 = (psx_brA_BFC2D314 == psx_brB_BFC2D314); /* 0xBFC2D318: 304F0001 andi $t7, $v0, 0x1 */ cpu->gpr[15] = cpu->gpr[2] & 0x1u; if (psx_taken_BFC2D314) goto label_BFC2D384; @@ -144839,7 +149054,7 @@ label_BFC2D384: psx_check_interrupts(cpu); /* 0xBFC2D384: 11E00023 beq $t7, $zero, 0xBFC2D414 */ uint32_t psx_brA_BFC2D384 = cpu->gpr[15]; uint32_t psx_brB_BFC2D384 = cpu->gpr[0]; - int psx_taken_BFC2D384 = (psx_brA_BFC2D384 == psx_brB_BFC2D384); + psx_taken_BFC2D384 = (psx_brA_BFC2D384 == psx_brB_BFC2D384); /* 0xBFC2D388: 304C0008 andi $t4, $v0, 0x8 */ cpu->gpr[12] = cpu->gpr[2] & 0x8u; if (psx_taken_BFC2D384) goto label_BFC2D414; @@ -144935,7 +149150,7 @@ label_BFC2D414: psx_check_interrupts(cpu); /* 0xBFC2D414: 1180001F beq $t4, $zero, 0xBFC2D494 */ uint32_t psx_brA_BFC2D414 = cpu->gpr[12]; uint32_t psx_brB_BFC2D414 = cpu->gpr[0]; - int psx_taken_BFC2D414 = (psx_brA_BFC2D414 == psx_brB_BFC2D414); + psx_taken_BFC2D414 = (psx_brA_BFC2D414 == psx_brB_BFC2D414); /* 0xBFC2D418: 00000000 nop */ /* nop */ if (psx_taken_BFC2D414) goto label_BFC2D494; @@ -144968,7 +149183,7 @@ label_BFC2D41C: cpu->gpr[3] = cpu->gpr[2] & 0x80u; /* 0xBFC2D448: 10600003 beq $v1, $zero, 0xBFC2D458 */ uint32_t psx_brA_BFC2D448 = cpu->gpr[3]; uint32_t psx_brB_BFC2D448 = cpu->gpr[0]; - int psx_taken_BFC2D448 = (psx_brA_BFC2D448 == psx_brB_BFC2D448); + psx_taken_BFC2D448 = (psx_brA_BFC2D448 == psx_brB_BFC2D448); /* 0xBFC2D44C: 01D8A021 addu $s4, $t6, $t8 */ cpu->gpr[20] = cpu->gpr[14] + cpu->gpr[24]; if (psx_taken_BFC2D448) goto label_BFC2D458; @@ -144979,7 +149194,7 @@ label_BFC2D450: psx_check_interrupts(cpu); /* 0xBFC2D450: 10000002 beq $zero, $zero, 0xBFC2D45C */ uint32_t psx_brA_BFC2D450 = cpu->gpr[0]; uint32_t psx_brB_BFC2D450 = cpu->gpr[0]; - int psx_taken_BFC2D450 = (psx_brA_BFC2D450 == psx_brB_BFC2D450); + psx_taken_BFC2D450 = (psx_brA_BFC2D450 == psx_brB_BFC2D450); /* 0xBFC2D454: 240600FF addiu $a2, $zero, 255 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[0] + (255)); if (psx_taken_BFC2D450) goto label_BFC2D45C; @@ -144997,7 +149212,7 @@ label_BFC2D45C: psx_check_interrupts(cpu); /* 0xBFC2D45C: 10600004 beq $v1, $zero, 0xBFC2D470 */ uint32_t psx_brA_BFC2D45C = cpu->gpr[3]; uint32_t psx_brB_BFC2D45C = cpu->gpr[0]; - int psx_taken_BFC2D45C = (psx_brA_BFC2D45C == psx_brB_BFC2D45C); + psx_taken_BFC2D45C = (psx_brA_BFC2D45C == psx_brB_BFC2D45C); /* 0xBFC2D460: 240700FF addiu $a3, $zero, 255 */ cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (255)); if (psx_taken_BFC2D45C) goto label_BFC2D470; @@ -145008,7 +149223,7 @@ label_BFC2D464: psx_check_interrupts(cpu); /* 0xBFC2D464: 10000002 beq $zero, $zero, 0xBFC2D470 */ uint32_t psx_brA_BFC2D464 = cpu->gpr[0]; uint32_t psx_brB_BFC2D464 = cpu->gpr[0]; - int psx_taken_BFC2D464 = (psx_brA_BFC2D464 == psx_brB_BFC2D464); + psx_taken_BFC2D464 = (psx_brA_BFC2D464 == psx_brB_BFC2D464); /* 0xBFC2D468: 00003821 addu $a3, $zero, $zero */ cpu->gpr[7] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2D464) goto label_BFC2D470; @@ -145079,7 +149294,7 @@ label_BFC2D494: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (3784)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D4C0u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC2D4C4: 10000335 beq $zero, $zero, 0xBFC2E19C */ uint32_t psx_brA_BFC2D4C4 = cpu->gpr[0]; uint32_t psx_brB_BFC2D4C4 = cpu->gpr[0]; - int psx_taken_BFC2D4C4 = (psx_brA_BFC2D4C4 == psx_brB_BFC2D4C4); + psx_taken_BFC2D4C4 = (psx_brA_BFC2D4C4 == psx_brB_BFC2D4C4); /* 0xBFC2D4C8: 8FC20000 lw $v0, 0($fp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[30] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D4C8u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC2D4C4) goto label_BFC2E19C; @@ -145096,7 +149311,7 @@ label_BFC2D4CC: cpu->gpr[9] = cpu->gpr[2] & 0x4u; /* 0xBFC2D4D8: 11200064 beq $t1, $zero, 0xBFC2D66C */ uint32_t psx_brA_BFC2D4D8 = cpu->gpr[9]; uint32_t psx_brB_BFC2D4D8 = cpu->gpr[0]; - int psx_taken_BFC2D4D8 = (psx_brA_BFC2D4D8 == psx_brB_BFC2D4D8); + psx_taken_BFC2D4D8 = (psx_brA_BFC2D4D8 == psx_brB_BFC2D4D8); /* 0xBFC2D4DC: 304B0010 andi $t3, $v0, 0x10 */ cpu->gpr[11] = cpu->gpr[2] & 0x10u; if (psx_taken_BFC2D4D8) goto label_BFC2D66C; @@ -145143,7 +149358,7 @@ label_BFC2D4E0: cpu->gpr[20] = cpu->gpr[13] + cpu->gpr[14]; /* 0xBFC2D528: 14400002 bne $v0, $zero, 0xBFC2D534 */ uint32_t psx_brA_BFC2D528 = cpu->gpr[2]; uint32_t psx_brB_BFC2D528 = cpu->gpr[0]; - int psx_taken_BFC2D528 = (psx_brA_BFC2D528 != psx_brB_BFC2D528); + psx_taken_BFC2D528 = (psx_brA_BFC2D528 != psx_brB_BFC2D528); /* 0xBFC2D52C: 00000000 nop */ /* nop */ if (psx_taken_BFC2D528) goto label_BFC2D534; @@ -145163,7 +149378,7 @@ label_BFC2D534: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2D538: 14410004 bne $v0, $at, 0xBFC2D54C */ uint32_t psx_brA_BFC2D538 = cpu->gpr[2]; uint32_t psx_brB_BFC2D538 = cpu->gpr[1]; - int psx_taken_BFC2D538 = (psx_brA_BFC2D538 != psx_brB_BFC2D538); + psx_taken_BFC2D538 = (psx_brA_BFC2D538 != psx_brB_BFC2D538); /* 0xBFC2D53C: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC2D538) goto label_BFC2D54C; @@ -145174,7 +149389,7 @@ label_BFC2D540: psx_check_interrupts(cpu); /* 0xBFC2D540: 15E10002 bne $t7, $at, 0xBFC2D54C */ uint32_t psx_brA_BFC2D540 = cpu->gpr[15]; uint32_t psx_brB_BFC2D540 = cpu->gpr[1]; - int psx_taken_BFC2D540 = (psx_brA_BFC2D540 != psx_brB_BFC2D540); + psx_taken_BFC2D540 = (psx_brA_BFC2D540 != psx_brB_BFC2D540); /* 0xBFC2D544: 00000000 nop */ /* nop */ if (psx_taken_BFC2D540) goto label_BFC2D54C; @@ -145196,7 +149411,7 @@ label_BFC2D54C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (int32_t)cpu->gpr[24] ? 1 : 0); /* 0xBFC2D554: 10200033 beq $at, $zero, 0xBFC2D624 */ uint32_t psx_brA_BFC2D554 = cpu->gpr[1]; uint32_t psx_brB_BFC2D554 = cpu->gpr[0]; - int psx_taken_BFC2D554 = (psx_brA_BFC2D554 == psx_brB_BFC2D554); + psx_taken_BFC2D554 = (psx_brA_BFC2D554 == psx_brB_BFC2D554); /* 0xBFC2D558: 00000000 nop */ /* nop */ if (psx_taken_BFC2D554) goto label_BFC2D624; @@ -145259,7 +149474,7 @@ label_BFC2D55C: cpu->gpr[5] = cpu->gpr[14] + cpu->gpr[15]; /* 0xBFC2D5C4: 14200004 bne $at, $zero, 0xBFC2D5D8 */ uint32_t psx_brA_BFC2D5C4 = cpu->gpr[1]; uint32_t psx_brB_BFC2D5C4 = cpu->gpr[0]; - int psx_taken_BFC2D5C4 = (psx_brA_BFC2D5C4 != psx_brB_BFC2D5C4); + psx_taken_BFC2D5C4 = (psx_brA_BFC2D5C4 != psx_brB_BFC2D5C4); /* 0xBFC2D5C8: 2484003C addiu $a0, $a0, 60 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (60)); if (psx_taken_BFC2D5C4) goto label_BFC2D5D8; @@ -145312,7 +149527,7 @@ label_BFC2D5F0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[8] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D608u); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC2D60C: 1519FFF8 bne $t0, $t9, 0xBFC2D5F0 */ uint32_t psx_brA_BFC2D60C = cpu->gpr[8]; uint32_t psx_brB_BFC2D60C = cpu->gpr[25]; - int psx_taken_BFC2D60C = (psx_brA_BFC2D60C != psx_brB_BFC2D60C); + psx_taken_BFC2D60C = (psx_brA_BFC2D60C != psx_brB_BFC2D60C); /* 0xBFC2D610: AD21FFFC sw $at, -4($t1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D610u); return; } g_debug_last_store_pc = 0xBFC2D610u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC2D60C) goto label_BFC2D5F0; @@ -145348,7 +149563,7 @@ label_BFC2D624: /* nop */ /* 0xBFC2D63C: 04A10002 bgez $a1, 0xBFC2D648 */ uint32_t psx_brA_BFC2D63C = cpu->gpr[5]; - int psx_taken_BFC2D63C = ((int32_t)psx_brA_BFC2D63C >= 0); + psx_taken_BFC2D63C = ((int32_t)psx_brA_BFC2D63C >= 0); /* 0xBFC2D640: 00A00821 addu $at, $a1, $zero */ cpu->gpr[1] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC2D63C) goto label_BFC2D648; @@ -145395,7 +149610,7 @@ label_BFC2D66C: psx_check_interrupts(cpu); /* 0xBFC2D66C: 116000CB beq $t3, $zero, 0xBFC2D99C */ uint32_t psx_brA_BFC2D66C = cpu->gpr[11]; uint32_t psx_brB_BFC2D66C = cpu->gpr[0]; - int psx_taken_BFC2D66C = (psx_brA_BFC2D66C == psx_brB_BFC2D66C); + psx_taken_BFC2D66C = (psx_brA_BFC2D66C == psx_brB_BFC2D66C); /* 0xBFC2D670: 8FAE00AC lw $t6, 172($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (172)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D670u); return; } cpu->gpr[14] = cpu->read_word(psx_addr); } if (psx_taken_BFC2D66C) goto label_BFC2D99C; @@ -145420,7 +149635,7 @@ label_BFC2D684: psx_check_interrupts(cpu); /* 0xBFC2D684: 18400012 blez $v0, 0xBFC2D6D0 */ uint32_t psx_brA_BFC2D684 = cpu->gpr[2]; - int psx_taken_BFC2D684 = ((int32_t)psx_brA_BFC2D684 <= 0); + psx_taken_BFC2D684 = ((int32_t)psx_brA_BFC2D684 <= 0); /* 0xBFC2D688: 00000000 nop */ /* nop */ if (psx_taken_BFC2D684) goto label_BFC2D6D0; @@ -145443,7 +149658,7 @@ label_BFC2D68C: cpu->gpr[15] = cpu->gpr[12] - cpu->gpr[14]; /* 0xBFC2D6A4: 14400002 bne $v0, $zero, 0xBFC2D6B0 */ uint32_t psx_brA_BFC2D6A4 = cpu->gpr[2]; uint32_t psx_brB_BFC2D6A4 = cpu->gpr[0]; - int psx_taken_BFC2D6A4 = (psx_brA_BFC2D6A4 != psx_brB_BFC2D6A4); + psx_taken_BFC2D6A4 = (psx_brA_BFC2D6A4 != psx_brB_BFC2D6A4); /* 0xBFC2D6A8: 00000000 nop */ /* nop */ if (psx_taken_BFC2D6A4) goto label_BFC2D6B0; @@ -145463,7 +149678,7 @@ label_BFC2D6B0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2D6B4: 14410004 bne $v0, $at, 0xBFC2D6C8 */ uint32_t psx_brA_BFC2D6B4 = cpu->gpr[2]; uint32_t psx_brB_BFC2D6B4 = cpu->gpr[1]; - int psx_taken_BFC2D6B4 = (psx_brA_BFC2D6B4 != psx_brB_BFC2D6B4); + psx_taken_BFC2D6B4 = (psx_brA_BFC2D6B4 != psx_brB_BFC2D6B4); /* 0xBFC2D6B8: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC2D6B4) goto label_BFC2D6C8; @@ -145474,7 +149689,7 @@ label_BFC2D6BC: psx_check_interrupts(cpu); /* 0xBFC2D6BC: 15A10002 bne $t5, $at, 0xBFC2D6C8 */ uint32_t psx_brA_BFC2D6BC = cpu->gpr[13]; uint32_t psx_brB_BFC2D6BC = cpu->gpr[1]; - int psx_taken_BFC2D6BC = (psx_brA_BFC2D6BC != psx_brB_BFC2D6BC); + psx_taken_BFC2D6BC = (psx_brA_BFC2D6BC != psx_brB_BFC2D6BC); /* 0xBFC2D6C0: 00000000 nop */ /* nop */ if (psx_taken_BFC2D6BC) goto label_BFC2D6C8; @@ -145507,7 +149722,7 @@ label_BFC2D6D0: /* nop */ /* 0xBFC2D6DC: 0701008C bgez $t8, 0xBFC2D910 */ uint32_t psx_brA_BFC2D6DC = cpu->gpr[24]; - int psx_taken_BFC2D6DC = ((int32_t)psx_brA_BFC2D6DC >= 0); + psx_taken_BFC2D6DC = ((int32_t)psx_brA_BFC2D6DC >= 0); /* 0xBFC2D6E0: 8FA800AC lw $t0, 172($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (172)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D6E0u); return; } cpu->gpr[8] = cpu->read_word(psx_addr); } if (psx_taken_BFC2D6DC) goto label_BFC2D910; @@ -145554,7 +149769,7 @@ label_BFC2D6E4: cpu->gpr[10] = cpu->gpr[8] + cpu->gpr[9]; /* 0xBFC2D72C: 10200006 beq $at, $zero, 0xBFC2D748 */ uint32_t psx_brA_BFC2D72C = cpu->gpr[1]; uint32_t psx_brB_BFC2D72C = cpu->gpr[0]; - int psx_taken_BFC2D72C = (psx_brA_BFC2D72C == psx_brB_BFC2D72C); + psx_taken_BFC2D72C = (psx_brA_BFC2D72C == psx_brB_BFC2D72C); /* 0xBFC2D730: AFAA0054 sw $t2, 84($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (84)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D730u); return; } g_debug_last_store_pc = 0xBFC2D730u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC2D72C) goto label_BFC2D748; @@ -145571,7 +149786,7 @@ label_BFC2D734: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (30)); /* 0xBFC2D740: 10000005 beq $zero, $zero, 0xBFC2D758 */ uint32_t psx_brA_BFC2D740 = cpu->gpr[0]; uint32_t psx_brB_BFC2D740 = cpu->gpr[0]; - int psx_taken_BFC2D740 = (psx_brA_BFC2D740 == psx_brB_BFC2D740); + psx_taken_BFC2D740 = (psx_brA_BFC2D740 == psx_brB_BFC2D740); /* 0xBFC2D744: 0000A021 addu $s4, $zero, $zero */ cpu->gpr[20] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2D740) goto label_BFC2D758; @@ -145597,7 +149812,7 @@ label_BFC2D758: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[16] ? 1 : 0); /* 0xBFC2D75C: 10200009 beq $at, $zero, 0xBFC2D784 */ uint32_t psx_brA_BFC2D75C = cpu->gpr[1]; uint32_t psx_brB_BFC2D75C = cpu->gpr[0]; - int psx_taken_BFC2D75C = (psx_brA_BFC2D75C == psx_brB_BFC2D75C); + psx_taken_BFC2D75C = (psx_brA_BFC2D75C == psx_brB_BFC2D75C); /* 0xBFC2D760: 00408821 addu $s1, $v0, $zero */ cpu->gpr[17] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC2D75C) goto label_BFC2D784; @@ -145622,7 +149837,7 @@ label_BFC2D76C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[16] ? 1 : 0); /* 0xBFC2D774: 1420FFFB bne $at, $zero, 0xBFC2D764 */ uint32_t psx_brA_BFC2D774 = cpu->gpr[1]; uint32_t psx_brB_BFC2D774 = cpu->gpr[0]; - int psx_taken_BFC2D774 = (psx_brA_BFC2D774 != psx_brB_BFC2D774); + psx_taken_BFC2D774 = (psx_brA_BFC2D774 != psx_brB_BFC2D774); /* 0xBFC2D778: 02429021 addu $s2, $s2, $v0 */ cpu->gpr[18] = cpu->gpr[18] + cpu->gpr[2]; if (psx_taken_BFC2D774) goto label_BFC2D764; @@ -145660,7 +149875,7 @@ label_BFC2D78C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[15] ? 1 : 0); /* 0xBFC2D79C: 1020004B beq $at, $zero, 0xBFC2D8CC */ uint32_t psx_brA_BFC2D79C = cpu->gpr[1]; uint32_t psx_brB_BFC2D79C = cpu->gpr[0]; - int psx_taken_BFC2D79C = (psx_brA_BFC2D79C == psx_brB_BFC2D79C); + psx_taken_BFC2D79C = (psx_brA_BFC2D79C == psx_brB_BFC2D79C); /* 0xBFC2D7A0: 00000000 nop */ /* nop */ if (psx_taken_BFC2D79C) goto label_BFC2D8CC; @@ -145688,7 +149903,7 @@ label_BFC2D7B0: psx_check_interrupts(cpu); /* 0xBFC2D7B0: 18400041 blez $v0, 0xBFC2D8B8 */ uint32_t psx_brA_BFC2D7B0 = cpu->gpr[2]; - int psx_taken_BFC2D7B0 = ((int32_t)psx_brA_BFC2D7B0 <= 0); + psx_taken_BFC2D7B0 = ((int32_t)psx_brA_BFC2D7B0 <= 0); /* 0xBFC2D7B4: 00409821 addu $s3, $v0, $zero */ cpu->gpr[19] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC2D7B0) goto label_BFC2D8B8; @@ -145711,7 +149926,7 @@ label_BFC2D7C0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2D7C4: 1041003D beq $v0, $at, 0xBFC2D8BC */ uint32_t psx_brA_BFC2D7C4 = cpu->gpr[2]; uint32_t psx_brB_BFC2D7C4 = cpu->gpr[1]; - int psx_taken_BFC2D7C4 = (psx_brA_BFC2D7C4 == psx_brB_BFC2D7C4); + psx_taken_BFC2D7C4 = (psx_brA_BFC2D7C4 == psx_brB_BFC2D7C4); /* 0xBFC2D7C8: 8FAF0094 lw $t7, 148($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (148)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D7C8u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC2D7C4) goto label_BFC2D8BC; @@ -145800,7 +150015,7 @@ label_BFC2D7CC: cpu->gpr[21] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC2D868: 10200003 beq $at, $zero, 0xBFC2D878 */ uint32_t psx_brA_BFC2D868 = cpu->gpr[1]; uint32_t psx_brB_BFC2D868 = cpu->gpr[0]; - int psx_taken_BFC2D868 = (psx_brA_BFC2D868 == psx_brB_BFC2D868); + psx_taken_BFC2D868 = (psx_brA_BFC2D868 == psx_brB_BFC2D868); /* 0xBFC2D86C: ACAB0004 sw $t3, 4($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D86Cu); return; } g_debug_last_store_pc = 0xBFC2D86Cu; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC2D868) goto label_BFC2D878; @@ -145811,7 +150026,7 @@ label_BFC2D870: psx_check_interrupts(cpu); /* 0xBFC2D870: 10000002 beq $zero, $zero, 0xBFC2D87C */ uint32_t psx_brA_BFC2D870 = cpu->gpr[0]; uint32_t psx_brB_BFC2D870 = cpu->gpr[0]; - int psx_taken_BFC2D870 = (psx_brA_BFC2D870 == psx_brB_BFC2D870); + psx_taken_BFC2D870 = (psx_brA_BFC2D870 == psx_brB_BFC2D870); /* 0xBFC2D874: ACB60010 sw $s6, 16($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (16)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D874u); return; } g_debug_last_store_pc = 0xBFC2D874u; cpu->write_word(psx_addr, cpu->gpr[22]); } if (psx_taken_BFC2D870) goto label_BFC2D87C; @@ -145837,7 +150052,7 @@ label_BFC2D87C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[13] < (int32_t)cpu->gpr[11] ? 1 : 0); /* 0xBFC2D88C: 10200003 beq $at, $zero, 0xBFC2D89C */ uint32_t psx_brA_BFC2D88C = cpu->gpr[1]; uint32_t psx_brB_BFC2D88C = cpu->gpr[0]; - int psx_taken_BFC2D88C = (psx_brA_BFC2D88C == psx_brB_BFC2D88C); + psx_taken_BFC2D88C = (psx_brA_BFC2D88C == psx_brB_BFC2D88C); /* 0xBFC2D890: 00000000 nop */ /* nop */ if (psx_taken_BFC2D88C) goto label_BFC2D89C; @@ -145848,7 +150063,7 @@ label_BFC2D894: psx_check_interrupts(cpu); /* 0xBFC2D894: 10000002 beq $zero, $zero, 0xBFC2D8A0 */ uint32_t psx_brA_BFC2D894 = cpu->gpr[0]; uint32_t psx_brB_BFC2D894 = cpu->gpr[0]; - int psx_taken_BFC2D894 = (psx_brA_BFC2D894 == psx_brB_BFC2D894); + psx_taken_BFC2D894 = (psx_brA_BFC2D894 == psx_brB_BFC2D894); /* 0xBFC2D898: ACB60014 sw $s6, 20($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D898u); return; } g_debug_last_store_pc = 0xBFC2D898u; cpu->write_word(psx_addr, cpu->gpr[22]); } if (psx_taken_BFC2D894) goto label_BFC2D8A0; @@ -145874,7 +150089,7 @@ label_BFC2D8A0: cpu->gpr[14] = cpu->gpr[12] | 0x40u; /* 0xBFC2D8B0: 1420FFC1 bne $at, $zero, 0xBFC2D7B8 */ uint32_t psx_brA_BFC2D8B0 = cpu->gpr[1]; uint32_t psx_brB_BFC2D8B0 = cpu->gpr[0]; - int psx_taken_BFC2D8B0 = (psx_brA_BFC2D8B0 != psx_brB_BFC2D8B0); + psx_taken_BFC2D8B0 = (psx_brA_BFC2D8B0 != psx_brB_BFC2D8B0); /* 0xBFC2D8B4: ACCE002C sw $t6, 44($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2D8B4u); return; } g_debug_last_store_pc = 0xBFC2D8B4u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC2D8B0) goto label_BFC2D7B8; @@ -145896,7 +150111,7 @@ label_BFC2D8BC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[15] ? 1 : 0); /* 0xBFC2D8C4: 1420FFB8 bne $at, $zero, 0xBFC2D7A8 */ uint32_t psx_brA_BFC2D8C4 = cpu->gpr[1]; uint32_t psx_brB_BFC2D8C4 = cpu->gpr[0]; - int psx_taken_BFC2D8C4 = (psx_brA_BFC2D8C4 != psx_brB_BFC2D8C4); + psx_taken_BFC2D8C4 = (psx_brA_BFC2D8C4 != psx_brB_BFC2D8C4); /* 0xBFC2D8C8: 02202021 addu $a0, $s1, $zero */ cpu->gpr[4] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC2D8C4) goto label_BFC2D7A8; @@ -145907,7 +150122,7 @@ label_BFC2D8CC: psx_check_interrupts(cpu); /* 0xBFC2D8CC: 16A00002 bne $s5, $zero, 0xBFC2D8D8 */ uint32_t psx_brA_BFC2D8CC = cpu->gpr[21]; uint32_t psx_brB_BFC2D8CC = cpu->gpr[0]; - int psx_taken_BFC2D8CC = (psx_brA_BFC2D8CC != psx_brB_BFC2D8CC); + psx_taken_BFC2D8CC = (psx_brA_BFC2D8CC != psx_brB_BFC2D8CC); /* 0xBFC2D8D0: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC2D8CC) goto label_BFC2D8D8; @@ -145933,7 +150148,7 @@ label_BFC2D8D8: /* nop */ /* 0xBFC2D8E8: 17200003 bne $t9, $zero, 0xBFC2D8F8 */ uint32_t psx_brA_BFC2D8E8 = cpu->gpr[25]; uint32_t psx_brB_BFC2D8E8 = cpu->gpr[0]; - int psx_taken_BFC2D8E8 = (psx_brA_BFC2D8E8 != psx_brB_BFC2D8E8); + psx_taken_BFC2D8E8 = (psx_brA_BFC2D8E8 != psx_brB_BFC2D8E8); /* 0xBFC2D8EC: 00000000 nop */ /* nop */ if (psx_taken_BFC2D8E8) goto label_BFC2D8F8; @@ -145960,7 +150175,7 @@ label_BFC2D8F8: cpu->gpr[6] = 0x80140000u; /* 0xBFC2D904: 10000272 beq $zero, $zero, 0xBFC2E2D0 */ uint32_t psx_brA_BFC2D904 = cpu->gpr[0]; uint32_t psx_brB_BFC2D904 = cpu->gpr[0]; - int psx_taken_BFC2D904 = (psx_brA_BFC2D904 == psx_brB_BFC2D904); + psx_taken_BFC2D904 = (psx_brA_BFC2D904 == psx_brB_BFC2D904); /* 0xBFC2D908: 24C681C8 addiu $a2, $a2, -32312 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-32312)); if (psx_taken_BFC2D904) goto label_BFC2E2D0; @@ -146054,7 +150269,7 @@ label_BFC2D990: psx_check_interrupts(cpu); /* 0xBFC2D990: 100001F2 beq $zero, $zero, 0xBFC2E15C */ uint32_t psx_brA_BFC2D990 = cpu->gpr[0]; uint32_t psx_brB_BFC2D990 = cpu->gpr[0]; - int psx_taken_BFC2D990 = (psx_brA_BFC2D990 == psx_brB_BFC2D990); + psx_taken_BFC2D990 = (psx_brA_BFC2D990 == psx_brB_BFC2D990); /* 0xBFC2D994: 00000000 nop */ /* nop */ if (psx_taken_BFC2D990) goto label_BFC2E15C; @@ -146092,7 +150307,7 @@ label_BFC2D99C: cpu->gpr[25] = cpu->gpr[2] & 0x20u; /* 0xBFC2D9C4: 13200148 beq $t9, $zero, 0xBFC2DEE8 */ uint32_t psx_brA_BFC2D9C4 = cpu->gpr[25]; uint32_t psx_brB_BFC2D9C4 = cpu->gpr[0]; - int psx_taken_BFC2D9C4 = (psx_brA_BFC2D9C4 == psx_brB_BFC2D9C4); + psx_taken_BFC2D9C4 = (psx_brA_BFC2D9C4 == psx_brB_BFC2D9C4); /* 0xBFC2D9C8: 01F8A021 addu $s4, $t7, $t8 */ cpu->gpr[20] = cpu->gpr[15] + cpu->gpr[24]; if (psx_taken_BFC2D9C4) goto label_BFC2DEE8; @@ -146115,7 +150330,7 @@ label_BFC2D9CC: /* nop */ /* 0xBFC2D9E4: 04A10002 bgez $a1, 0xBFC2D9F0 */ uint32_t psx_brA_BFC2D9E4 = cpu->gpr[5]; - int psx_taken_BFC2D9E4 = ((int32_t)psx_brA_BFC2D9E4 >= 0); + psx_taken_BFC2D9E4 = ((int32_t)psx_brA_BFC2D9E4 >= 0); /* 0xBFC2D9E8: 00A00821 addu $at, $a1, $zero */ cpu->gpr[1] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC2D9E4) goto label_BFC2D9F0; @@ -146155,7 +150370,7 @@ label_BFC2DA00: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2DA10: 1521007D bne $t1, $at, 0xBFC2DC08 */ uint32_t psx_brA_BFC2DA10 = cpu->gpr[9]; uint32_t psx_brB_BFC2DA10 = cpu->gpr[1]; - int psx_taken_BFC2DA10 = (psx_brA_BFC2DA10 != psx_brB_BFC2DA10); + psx_taken_BFC2DA10 = (psx_brA_BFC2DA10 != psx_brB_BFC2DA10); /* 0xBFC2DA14: 00000000 nop */ /* nop */ if (psx_taken_BFC2DA10) goto label_BFC2DC08; @@ -146172,7 +150387,7 @@ label_BFC2DA18: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2DA24: 11410004 beq $t2, $at, 0xBFC2DA38 */ uint32_t psx_brA_BFC2DA24 = cpu->gpr[10]; uint32_t psx_brB_BFC2DA24 = cpu->gpr[1]; - int psx_taken_BFC2DA24 = (psx_brA_BFC2DA24 == psx_brB_BFC2DA24); + psx_taken_BFC2DA24 = (psx_brA_BFC2DA24 == psx_brB_BFC2DA24); /* 0xBFC2DA28: 240B0001 addiu $t3, $zero, 1 */ cpu->gpr[11] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC2DA24) goto label_BFC2DA38; @@ -146183,7 +150398,7 @@ label_BFC2DA2C: psx_check_interrupts(cpu); /* 0xBFC2DA2C: 15500076 bne $t2, $s0, 0xBFC2DC08 */ uint32_t psx_brA_BFC2DA2C = cpu->gpr[10]; uint32_t psx_brB_BFC2DA2C = cpu->gpr[16]; - int psx_taken_BFC2DA2C = (psx_brA_BFC2DA2C != psx_brB_BFC2DA2C); + psx_taken_BFC2DA2C = (psx_brA_BFC2DA2C != psx_brB_BFC2DA2C); /* 0xBFC2DA30: 00000000 nop */ /* nop */ if (psx_taken_BFC2DA2C) goto label_BFC2DC08; @@ -146211,7 +150426,7 @@ label_BFC2DA38: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2DA4C: 15A10054 bne $t5, $at, 0xBFC2DBA0 */ uint32_t psx_brA_BFC2DA4C = cpu->gpr[13]; uint32_t psx_brB_BFC2DA4C = cpu->gpr[1]; - int psx_taken_BFC2DA4C = (psx_brA_BFC2DA4C != psx_brB_BFC2DA4C); + psx_taken_BFC2DA4C = (psx_brA_BFC2DA4C != psx_brB_BFC2DA4C); /* 0xBFC2DA50: 2A01003C slti $at, $s0, 60 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (60) ? 1 : 0); if (psx_taken_BFC2DA4C) goto label_BFC2DBA0; @@ -146222,7 +150437,7 @@ label_BFC2DA54: psx_check_interrupts(cpu); /* 0xBFC2DA54: 10200006 beq $at, $zero, 0xBFC2DA70 */ uint32_t psx_brA_BFC2DA54 = cpu->gpr[1]; uint32_t psx_brB_BFC2DA54 = cpu->gpr[0]; - int psx_taken_BFC2DA54 = (psx_brA_BFC2DA54 == psx_brB_BFC2DA54); + psx_taken_BFC2DA54 = (psx_brA_BFC2DA54 == psx_brB_BFC2DA54); /* 0xBFC2DA58: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC2DA54) goto label_BFC2DA70; @@ -146237,7 +150452,7 @@ label_BFC2DA5C: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC2DA64: 10000004 beq $zero, $zero, 0xBFC2DA78 */ uint32_t psx_brA_BFC2DA64 = cpu->gpr[0]; uint32_t psx_brB_BFC2DA64 = cpu->gpr[0]; - int psx_taken_BFC2DA64 = (psx_brA_BFC2DA64 == psx_brB_BFC2DA64); + psx_taken_BFC2DA64 = (psx_brA_BFC2DA64 == psx_brB_BFC2DA64); /* 0xBFC2DA68: 2612FFE2 addiu $s2, $s0, -30 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[16] + (-30)); if (psx_taken_BFC2DA64) goto label_BFC2DA78; @@ -146306,7 +150521,7 @@ label_BFC2DABC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2DAC0: 1041000A beq $v0, $at, 0xBFC2DAEC */ uint32_t psx_brA_BFC2DAC0 = cpu->gpr[2]; uint32_t psx_brB_BFC2DAC0 = cpu->gpr[1]; - int psx_taken_BFC2DAC0 = (psx_brA_BFC2DAC0 == psx_brB_BFC2DAC0); + psx_taken_BFC2DAC0 = (psx_brA_BFC2DAC0 == psx_brB_BFC2DAC0); /* 0xBFC2DAC4: 00000000 nop */ /* nop */ if (psx_taken_BFC2DAC0) goto label_BFC2DAEC; @@ -146343,7 +150558,7 @@ label_BFC2DAE4: psx_check_interrupts(cpu); /* 0xBFC2DAE4: 1000002C beq $zero, $zero, 0xBFC2DB98 */ uint32_t psx_brA_BFC2DAE4 = cpu->gpr[0]; uint32_t psx_brB_BFC2DAE4 = cpu->gpr[0]; - int psx_taken_BFC2DAE4 = (psx_brA_BFC2DAE4 == psx_brB_BFC2DAE4); + psx_taken_BFC2DAE4 = (psx_brA_BFC2DAE4 == psx_brB_BFC2DAE4); /* 0xBFC2DAE8: 8FAA00AC lw $t2, 172($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (172)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2DAE8u); return; } cpu->gpr[10] = cpu->read_word(psx_addr); } if (psx_taken_BFC2DAE4) goto label_BFC2DB98; @@ -146375,7 +150590,7 @@ label_BFC2DB00: cpu->gpr[25] = cpu->gpr[24] & 0x20u; /* 0xBFC2DB0C: 13200002 beq $t9, $zero, 0xBFC2DB18 */ uint32_t psx_brA_BFC2DB0C = cpu->gpr[25]; uint32_t psx_brB_BFC2DB0C = cpu->gpr[0]; - int psx_taken_BFC2DB0C = (psx_brA_BFC2DB0C == psx_brB_BFC2DB0C); + psx_taken_BFC2DB0C = (psx_brA_BFC2DB0C == psx_brB_BFC2DB0C); /* 0xBFC2DB10: 00000000 nop */ /* nop */ if (psx_taken_BFC2DB0C) goto label_BFC2DB18; @@ -146395,7 +150610,7 @@ label_BFC2DB18: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1672)); /* 0xBFC2DB1C: 1446FFF8 bne $v0, $a2, 0xBFC2DB00 */ uint32_t psx_brA_BFC2DB1C = cpu->gpr[2]; uint32_t psx_brB_BFC2DB1C = cpu->gpr[6]; - int psx_taken_BFC2DB1C = (psx_brA_BFC2DB1C != psx_brB_BFC2DB1C); + psx_taken_BFC2DB1C = (psx_brA_BFC2DB1C != psx_brB_BFC2DB1C); /* 0xBFC2DB20: 2A41000F slti $at, $s2, 15 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (15) ? 1 : 0); if (psx_taken_BFC2DB1C) goto label_BFC2DB00; @@ -146406,7 +150621,7 @@ label_BFC2DB24: psx_check_interrupts(cpu); /* 0xBFC2DB24: 10200013 beq $at, $zero, 0xBFC2DB74 */ uint32_t psx_brA_BFC2DB24 = cpu->gpr[1]; uint32_t psx_brB_BFC2DB24 = cpu->gpr[0]; - int psx_taken_BFC2DB24 = (psx_brA_BFC2DB24 == psx_brB_BFC2DB24); + psx_taken_BFC2DB24 = (psx_brA_BFC2DB24 == psx_brB_BFC2DB24); /* 0xBFC2DB28: 26510001 addiu $s1, $s2, 1 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[18] + (1)); if (psx_taken_BFC2DB24) goto label_BFC2DB74; @@ -146450,7 +150665,7 @@ label_BFC2DB50: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (16) ? 1 : 0); /* 0xBFC2DB58: 10200004 beq $at, $zero, 0xBFC2DB6C */ uint32_t psx_brA_BFC2DB58 = cpu->gpr[1]; uint32_t psx_brB_BFC2DB58 = cpu->gpr[0]; - int psx_taken_BFC2DB58 = (psx_brA_BFC2DB58 == psx_brB_BFC2DB58); + psx_taken_BFC2DB58 = (psx_brA_BFC2DB58 == psx_brB_BFC2DB58); /* 0xBFC2DB5C: 2610005C addiu $s0, $s0, 92 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (92)); if (psx_taken_BFC2DB58) goto label_BFC2DB6C; @@ -146463,7 +150678,7 @@ label_BFC2DB60: cpu->gpr[6] = 0x80140000u; /* 0xBFC2DB64: 1000FFF7 beq $zero, $zero, 0xBFC2DB44 */ uint32_t psx_brA_BFC2DB64 = cpu->gpr[0]; uint32_t psx_brB_BFC2DB64 = cpu->gpr[0]; - int psx_taken_BFC2DB64 = (psx_brA_BFC2DB64 == psx_brB_BFC2DB64); + psx_taken_BFC2DB64 = (psx_brA_BFC2DB64 == psx_brB_BFC2DB64); /* 0xBFC2DB68: 24C681C8 addiu $a2, $a2, -32312 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-32312)); if (psx_taken_BFC2DB64) goto label_BFC2DB44; @@ -146495,7 +150710,7 @@ label_BFC2DB74: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[21] + (-25052)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2DB88u); return; } cpu->gpr[21] = cpu->read_word(psx_addr); } /* 0xBFC2DB8C: 100001D0 beq $zero, $zero, 0xBFC2E2D0 */ uint32_t psx_brA_BFC2DB8C = cpu->gpr[0]; uint32_t psx_brB_BFC2DB8C = cpu->gpr[0]; - int psx_taken_BFC2DB8C = (psx_brA_BFC2DB8C == psx_brB_BFC2DB8C); + psx_taken_BFC2DB8C = (psx_brA_BFC2DB8C == psx_brB_BFC2DB8C); /* 0xBFC2DB90: AC299ECC sw $t1, -24884($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24884)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2DB90u); return; } g_debug_last_store_pc = 0xBFC2DB90u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC2DB8C) goto label_BFC2E2D0; @@ -146528,7 +150743,7 @@ label_BFC2DBA0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2DBAC: 15610011 bne $t3, $at, 0xBFC2DBF4 */ uint32_t psx_brA_BFC2DBAC = cpu->gpr[11]; uint32_t psx_brB_BFC2DBAC = cpu->gpr[1]; - int psx_taken_BFC2DBAC = (psx_brA_BFC2DBAC != psx_brB_BFC2DBAC); + psx_taken_BFC2DBAC = (psx_brA_BFC2DBAC != psx_brB_BFC2DBAC); /* 0xBFC2DBB0: 00000000 nop */ /* nop */ if (psx_taken_BFC2DBAC) goto label_BFC2DBF4; @@ -146567,7 +150782,7 @@ label_BFC2DBB4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24876)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2DBE8u); return; } g_debug_last_store_pc = 0xBFC2DBE8u; cpu->write_word(psx_addr, cpu->gpr[13]); } /* 0xBFC2DBEC: 1000001C beq $zero, $zero, 0xBFC2DC60 */ uint32_t psx_brA_BFC2DBEC = cpu->gpr[0]; uint32_t psx_brB_BFC2DBEC = cpu->gpr[0]; - int psx_taken_BFC2DBEC = (psx_brA_BFC2DBEC == psx_brB_BFC2DBEC); + psx_taken_BFC2DBEC = (psx_brA_BFC2DBEC == psx_brB_BFC2DBEC); /* 0xBFC2DBF0: 01AC9821 addu $s3, $t5, $t4 */ cpu->gpr[19] = cpu->gpr[13] + cpu->gpr[12]; if (psx_taken_BFC2DBEC) goto label_BFC2DC60; @@ -146584,7 +150799,7 @@ label_BFC2DBF4: cpu->gpr[6] = 0x80140000u; /* 0xBFC2DC00: 100001B3 beq $zero, $zero, 0xBFC2E2D0 */ uint32_t psx_brA_BFC2DC00 = cpu->gpr[0]; uint32_t psx_brB_BFC2DC00 = cpu->gpr[0]; - int psx_taken_BFC2DC00 = (psx_brA_BFC2DC00 == psx_brB_BFC2DC00); + psx_taken_BFC2DC00 = (psx_brA_BFC2DC00 == psx_brB_BFC2DC00); /* 0xBFC2DC04: 24C681C8 addiu $a2, $a2, -32312 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-32312)); if (psx_taken_BFC2DC00) goto label_BFC2E2D0; @@ -146603,7 +150818,7 @@ label_BFC2DC08: /* nop */ /* 0xBFC2DC18: 13190007 beq $t8, $t9, 0xBFC2DC38 */ uint32_t psx_brA_BFC2DC18 = cpu->gpr[24]; uint32_t psx_brB_BFC2DC18 = cpu->gpr[25]; - int psx_taken_BFC2DC18 = (psx_brA_BFC2DC18 == psx_brB_BFC2DC18); + psx_taken_BFC2DC18 = (psx_brA_BFC2DC18 == psx_brB_BFC2DC18); /* 0xBFC2DC1C: 8FA800AC lw $t0, 172($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (172)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2DC1Cu); return; } cpu->gpr[8] = cpu->read_word(psx_addr); } if (psx_taken_BFC2DC18) goto label_BFC2DC38; @@ -146620,7 +150835,7 @@ label_BFC2DC20: cpu->gpr[6] = 0x80140000u; /* 0xBFC2DC2C: 100001A8 beq $zero, $zero, 0xBFC2E2D0 */ uint32_t psx_brA_BFC2DC2C = cpu->gpr[0]; uint32_t psx_brB_BFC2DC2C = cpu->gpr[0]; - int psx_taken_BFC2DC2C = (psx_brA_BFC2DC2C == psx_brB_BFC2DC2C); + psx_taken_BFC2DC2C = (psx_brA_BFC2DC2C == psx_brB_BFC2DC2C); /* 0xBFC2DC30: 24C681C8 addiu $a2, $a2, -32312 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-32312)); if (psx_taken_BFC2DC2C) goto label_BFC2E2D0; @@ -146683,7 +150898,7 @@ label_BFC2DC60: /* nop */ /* 0xBFC2DC88: 15E00019 bne $t7, $zero, 0xBFC2DCF0 */ uint32_t psx_brA_BFC2DC88 = cpu->gpr[15]; uint32_t psx_brB_BFC2DC88 = cpu->gpr[0]; - int psx_taken_BFC2DC88 = (psx_brA_BFC2DC88 != psx_brB_BFC2DC88); + psx_taken_BFC2DC88 = (psx_brA_BFC2DC88 != psx_brB_BFC2DC88); /* 0xBFC2DC8C: 00000000 nop */ /* nop */ if (psx_taken_BFC2DC88) goto label_BFC2DCF0; @@ -146702,7 +150917,7 @@ label_BFC2DC90: cpu->gpr[25] = cpu->gpr[24] + cpu->gpr[3]; /* 0xBFC2DCA0: 04600007 bltz $v1, 0xBFC2DCC0 */ uint32_t psx_brA_BFC2DCA0 = cpu->gpr[3]; - int psx_taken_BFC2DCA0 = ((int32_t)psx_brA_BFC2DCA0 < 0); + psx_taken_BFC2DCA0 = ((int32_t)psx_brA_BFC2DCA0 < 0); /* 0xBFC2DCA4: AFD9000C sw $t9, 12($fp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[30] + (12)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2DCA4u); return; } g_debug_last_store_pc = 0xBFC2DCA4u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC2DCA0) goto label_BFC2DCC0; @@ -146721,7 +150936,7 @@ label_BFC2DCA8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC2DCB8: 10200009 beq $at, $zero, 0xBFC2DCE0 */ uint32_t psx_brA_BFC2DCB8 = cpu->gpr[1]; uint32_t psx_brB_BFC2DCB8 = cpu->gpr[0]; - int psx_taken_BFC2DCB8 = (psx_brA_BFC2DCB8 == psx_brB_BFC2DCB8); + psx_taken_BFC2DCB8 = (psx_brA_BFC2DCB8 == psx_brB_BFC2DCB8); /* 0xBFC2DCBC: 00000000 nop */ /* nop */ if (psx_taken_BFC2DCB8) goto label_BFC2DCE0; @@ -146732,7 +150947,7 @@ label_BFC2DCC0: psx_check_interrupts(cpu); /* 0xBFC2DCC0: 0461004A bgez $v1, 0xBFC2DDEC */ uint32_t psx_brA_BFC2DCC0 = cpu->gpr[3]; - int psx_taken_BFC2DCC0 = ((int32_t)psx_brA_BFC2DCC0 >= 0); + psx_taken_BFC2DCC0 = ((int32_t)psx_brA_BFC2DCC0 >= 0); /* 0xBFC2DCC4: 00000000 nop */ /* nop */ if (psx_taken_BFC2DCC0) goto label_BFC2DDEC; @@ -146751,7 +150966,7 @@ label_BFC2DCC8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC2DCD8: 10200044 beq $at, $zero, 0xBFC2DDEC */ uint32_t psx_brA_BFC2DCD8 = cpu->gpr[1]; uint32_t psx_brB_BFC2DCD8 = cpu->gpr[0]; - int psx_taken_BFC2DCD8 = (psx_brA_BFC2DCD8 == psx_brB_BFC2DCD8); + psx_taken_BFC2DCD8 = (psx_brA_BFC2DCD8 == psx_brB_BFC2DCD8); /* 0xBFC2DCDC: 00000000 nop */ /* nop */ if (psx_taken_BFC2DCD8) goto label_BFC2DDEC; @@ -146766,7 +150981,7 @@ label_BFC2DCE0: cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC2DCE8: 10000040 beq $zero, $zero, 0xBFC2DDEC */ uint32_t psx_brA_BFC2DCE8 = cpu->gpr[0]; uint32_t psx_brB_BFC2DCE8 = cpu->gpr[0]; - int psx_taken_BFC2DCE8 = (psx_brA_BFC2DCE8 == psx_brB_BFC2DCE8); + psx_taken_BFC2DCE8 = (psx_brA_BFC2DCE8 == psx_brB_BFC2DCE8); /* 0xBFC2DCEC: A26A0000 sb $t2, 0($s3) */ g_debug_last_store_pc = 0xBFC2DCECu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[19] + (0)), (uint8_t)(cpu->gpr[10] & 0xFFu)); if (psx_taken_BFC2DCE8) goto label_BFC2DDEC; @@ -146785,7 +151000,7 @@ label_BFC2DCF0: cpu->gpr[13] = cpu->gpr[11] + cpu->gpr[3]; /* 0xBFC2DD00: 04600007 bltz $v1, 0xBFC2DD20 */ uint32_t psx_brA_BFC2DD00 = cpu->gpr[3]; - int psx_taken_BFC2DD00 = ((int32_t)psx_brA_BFC2DD00 < 0); + psx_taken_BFC2DD00 = ((int32_t)psx_brA_BFC2DD00 < 0); /* 0xBFC2DD04: AFCD0010 sw $t5, 16($fp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[30] + (16)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2DD04u); return; } g_debug_last_store_pc = 0xBFC2DD04u; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC2DD00) goto label_BFC2DD20; @@ -146804,7 +151019,7 @@ label_BFC2DD08: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[12] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC2DD18: 10200009 beq $at, $zero, 0xBFC2DD40 */ uint32_t psx_brA_BFC2DD18 = cpu->gpr[1]; uint32_t psx_brB_BFC2DD18 = cpu->gpr[0]; - int psx_taken_BFC2DD18 = (psx_brA_BFC2DD18 == psx_brB_BFC2DD18); + psx_taken_BFC2DD18 = (psx_brA_BFC2DD18 == psx_brB_BFC2DD18); /* 0xBFC2DD1C: 00000000 nop */ /* nop */ if (psx_taken_BFC2DD18) goto label_BFC2DD40; @@ -146815,7 +151030,7 @@ label_BFC2DD20: psx_check_interrupts(cpu); /* 0xBFC2DD20: 04610032 bgez $v1, 0xBFC2DDEC */ uint32_t psx_brA_BFC2DD20 = cpu->gpr[3]; - int psx_taken_BFC2DD20 = ((int32_t)psx_brA_BFC2DD20 >= 0); + psx_taken_BFC2DD20 = ((int32_t)psx_brA_BFC2DD20 >= 0); /* 0xBFC2DD24: 00000000 nop */ /* nop */ if (psx_taken_BFC2DD20) goto label_BFC2DDEC; @@ -146834,7 +151049,7 @@ label_BFC2DD28: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC2DD38: 1020002C beq $at, $zero, 0xBFC2DDEC */ uint32_t psx_brA_BFC2DD38 = cpu->gpr[1]; uint32_t psx_brB_BFC2DD38 = cpu->gpr[0]; - int psx_taken_BFC2DD38 = (psx_brA_BFC2DD38 == psx_brB_BFC2DD38); + psx_taken_BFC2DD38 = (psx_brA_BFC2DD38 == psx_brB_BFC2DD38); /* 0xBFC2DD3C: 00000000 nop */ /* nop */ if (psx_taken_BFC2DD38) goto label_BFC2DDEC; @@ -146921,7 +151136,7 @@ label_BFC2DD6C: /* nop */ /* 0xBFC2DDCC: 15C10004 bne $t6, $at, 0xBFC2DDE0 */ uint32_t psx_brA_BFC2DDCC = cpu->gpr[14]; uint32_t psx_brB_BFC2DDCC = cpu->gpr[1]; - int psx_taken_BFC2DDCC = (psx_brA_BFC2DDCC != psx_brB_BFC2DDCC); + psx_taken_BFC2DDCC = (psx_brA_BFC2DDCC != psx_brB_BFC2DDCC); /* 0xBFC2DDD0: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC2DDCC) goto label_BFC2DDE0; @@ -147005,7 +151220,7 @@ label_BFC2DE30: /* nop */ /* 0xBFC2DE38: 1B200020 blez $t9, 0xBFC2DEBC */ uint32_t psx_brA_BFC2DE38 = cpu->gpr[25]; - int psx_taken_BFC2DE38 = ((int32_t)psx_brA_BFC2DE38 <= 0); + psx_taken_BFC2DE38 = ((int32_t)psx_brA_BFC2DE38 <= 0); /* 0xBFC2DE3C: 00000000 nop */ /* nop */ if (psx_taken_BFC2DE38) goto label_BFC2DEBC; @@ -147085,7 +151300,7 @@ label_BFC2DEA8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[14] ? 1 : 0); /* 0xBFC2DEB4: 1420FFED bne $at, $zero, 0xBFC2DE6C */ uint32_t psx_brA_BFC2DEB4 = cpu->gpr[1]; uint32_t psx_brB_BFC2DEB4 = cpu->gpr[0]; - int psx_taken_BFC2DEB4 = (psx_brA_BFC2DEB4 != psx_brB_BFC2DEB4); + psx_taken_BFC2DEB4 = (psx_brA_BFC2DEB4 != psx_brB_BFC2DEB4); /* 0xBFC2DEB8: 00000000 nop */ /* nop */ if (psx_taken_BFC2DEB4) goto label_BFC2DE6C; @@ -147102,7 +151317,7 @@ label_BFC2DEBC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2DEC8: 15E10005 bne $t7, $at, 0xBFC2DEE0 */ uint32_t psx_brA_BFC2DEC8 = cpu->gpr[15]; uint32_t psx_brB_BFC2DEC8 = cpu->gpr[1]; - int psx_taken_BFC2DEC8 = (psx_brA_BFC2DEC8 != psx_brB_BFC2DEC8); + psx_taken_BFC2DEC8 = (psx_brA_BFC2DEC8 != psx_brB_BFC2DEC8); /* 0xBFC2DECC: 00000000 nop */ /* nop */ if (psx_taken_BFC2DEC8) goto label_BFC2DEE0; @@ -147117,7 +151332,7 @@ label_BFC2DED0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[21] + (-25052)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2DED4u); return; } cpu->gpr[21] = cpu->read_word(psx_addr); } /* 0xBFC2DED8: 10000104 beq $zero, $zero, 0xBFC2E2EC */ uint32_t psx_brA_BFC2DED8 = cpu->gpr[0]; uint32_t psx_brB_BFC2DED8 = cpu->gpr[0]; - int psx_taken_BFC2DED8 = (psx_brA_BFC2DED8 == psx_brB_BFC2DED8); + psx_taken_BFC2DED8 = (psx_brA_BFC2DED8 == psx_brB_BFC2DED8); /* 0xBFC2DEDC: AFA000AC sw $zero, 172($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (172)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2DEDCu); return; } g_debug_last_store_pc = 0xBFC2DEDCu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC2DED8) goto label_BFC2E2EC; @@ -147128,7 +151343,7 @@ label_BFC2DEE0: psx_check_interrupts(cpu); /* 0xBFC2DEE0: 1000009E beq $zero, $zero, 0xBFC2E15C */ uint32_t psx_brA_BFC2DEE0 = cpu->gpr[0]; uint32_t psx_brB_BFC2DEE0 = cpu->gpr[0]; - int psx_taken_BFC2DEE0 = (psx_brA_BFC2DEE0 == psx_brB_BFC2DEE0); + psx_taken_BFC2DEE0 = (psx_brA_BFC2DEE0 == psx_brB_BFC2DEE0); /* 0xBFC2DEE4: 00009021 addu $s2, $zero, $zero */ cpu->gpr[18] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2DEE0) goto label_BFC2E15C; @@ -147141,7 +151356,7 @@ label_BFC2DEE8: cpu->gpr[24] = cpu->gpr[2] & 0x40u; /* 0xBFC2DEEC: 1300008A beq $t8, $zero, 0xBFC2E118 */ uint32_t psx_brA_BFC2DEEC = cpu->gpr[24]; uint32_t psx_brB_BFC2DEEC = cpu->gpr[0]; - int psx_taken_BFC2DEEC = (psx_brA_BFC2DEEC == psx_brB_BFC2DEEC); + psx_taken_BFC2DEEC = (psx_brA_BFC2DEEC == psx_brB_BFC2DEEC); /* 0xBFC2DEF0: 00009021 addu $s2, $zero, $zero */ cpu->gpr[18] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2DEEC) goto label_BFC2E118; @@ -147196,7 +151411,7 @@ label_BFC2DF38: /* nop */ /* 0xBFC2DF40: 15A00019 bne $t5, $zero, 0xBFC2DFA8 */ uint32_t psx_brA_BFC2DF40 = cpu->gpr[13]; uint32_t psx_brB_BFC2DF40 = cpu->gpr[0]; - int psx_taken_BFC2DF40 = (psx_brA_BFC2DF40 != psx_brB_BFC2DF40); + psx_taken_BFC2DF40 = (psx_brA_BFC2DF40 != psx_brB_BFC2DF40); /* 0xBFC2DF44: 00000000 nop */ /* nop */ if (psx_taken_BFC2DF40) goto label_BFC2DFA8; @@ -147215,7 +151430,7 @@ label_BFC2DF48: cpu->gpr[14] = cpu->gpr[12] + cpu->gpr[3]; /* 0xBFC2DF58: 04600007 bltz $v1, 0xBFC2DF78 */ uint32_t psx_brA_BFC2DF58 = cpu->gpr[3]; - int psx_taken_BFC2DF58 = ((int32_t)psx_brA_BFC2DF58 < 0); + psx_taken_BFC2DF58 = ((int32_t)psx_brA_BFC2DF58 < 0); /* 0xBFC2DF5C: AFCE000C sw $t6, 12($fp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[30] + (12)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2DF5Cu); return; } g_debug_last_store_pc = 0xBFC2DF5Cu; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC2DF58) goto label_BFC2DF78; @@ -147234,7 +151449,7 @@ label_BFC2DF60: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[15] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC2DF70: 10200009 beq $at, $zero, 0xBFC2DF98 */ uint32_t psx_brA_BFC2DF70 = cpu->gpr[1]; uint32_t psx_brB_BFC2DF70 = cpu->gpr[0]; - int psx_taken_BFC2DF70 = (psx_brA_BFC2DF70 == psx_brB_BFC2DF70); + psx_taken_BFC2DF70 = (psx_brA_BFC2DF70 == psx_brB_BFC2DF70); /* 0xBFC2DF74: 00000000 nop */ /* nop */ if (psx_taken_BFC2DF70) goto label_BFC2DF98; @@ -147245,7 +151460,7 @@ label_BFC2DF78: psx_check_interrupts(cpu); /* 0xBFC2DF78: 0461002F bgez $v1, 0xBFC2E038 */ uint32_t psx_brA_BFC2DF78 = cpu->gpr[3]; - int psx_taken_BFC2DF78 = ((int32_t)psx_brA_BFC2DF78 >= 0); + psx_taken_BFC2DF78 = ((int32_t)psx_brA_BFC2DF78 >= 0); /* 0xBFC2DF7C: 00000000 nop */ /* nop */ if (psx_taken_BFC2DF78) goto label_BFC2E038; @@ -147264,7 +151479,7 @@ label_BFC2DF80: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[24] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC2DF90: 10200029 beq $at, $zero, 0xBFC2E038 */ uint32_t psx_brA_BFC2DF90 = cpu->gpr[1]; uint32_t psx_brB_BFC2DF90 = cpu->gpr[0]; - int psx_taken_BFC2DF90 = (psx_brA_BFC2DF90 == psx_brB_BFC2DF90); + psx_taken_BFC2DF90 = (psx_brA_BFC2DF90 == psx_brB_BFC2DF90); /* 0xBFC2DF94: 00000000 nop */ /* nop */ if (psx_taken_BFC2DF90) goto label_BFC2E038; @@ -147279,7 +151494,7 @@ label_BFC2DF98: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC2DFA0: 10000025 beq $zero, $zero, 0xBFC2E038 */ uint32_t psx_brA_BFC2DFA0 = cpu->gpr[0]; uint32_t psx_brB_BFC2DFA0 = cpu->gpr[0]; - int psx_taken_BFC2DFA0 = (psx_brA_BFC2DFA0 == psx_brB_BFC2DFA0); + psx_taken_BFC2DFA0 = (psx_brA_BFC2DFA0 == psx_brB_BFC2DFA0); /* 0xBFC2DFA4: A2790000 sb $t9, 0($s3) */ g_debug_last_store_pc = 0xBFC2DFA4u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[19] + (0)), (uint8_t)(cpu->gpr[25] & 0xFFu)); if (psx_taken_BFC2DFA0) goto label_BFC2E038; @@ -147298,7 +151513,7 @@ label_BFC2DFA8: cpu->gpr[9] = cpu->gpr[8] + cpu->gpr[3]; /* 0xBFC2DFB8: 04600007 bltz $v1, 0xBFC2DFD8 */ uint32_t psx_brA_BFC2DFB8 = cpu->gpr[3]; - int psx_taken_BFC2DFB8 = ((int32_t)psx_brA_BFC2DFB8 < 0); + psx_taken_BFC2DFB8 = ((int32_t)psx_brA_BFC2DFB8 < 0); /* 0xBFC2DFBC: AFC90010 sw $t1, 16($fp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[30] + (16)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2DFBCu); return; } g_debug_last_store_pc = 0xBFC2DFBCu; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC2DFB8) goto label_BFC2DFD8; @@ -147317,7 +151532,7 @@ label_BFC2DFC0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[10] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC2DFD0: 10200009 beq $at, $zero, 0xBFC2DFF8 */ uint32_t psx_brA_BFC2DFD0 = cpu->gpr[1]; uint32_t psx_brB_BFC2DFD0 = cpu->gpr[0]; - int psx_taken_BFC2DFD0 = (psx_brA_BFC2DFD0 == psx_brB_BFC2DFD0); + psx_taken_BFC2DFD0 = (psx_brA_BFC2DFD0 == psx_brB_BFC2DFD0); /* 0xBFC2DFD4: 00000000 nop */ /* nop */ if (psx_taken_BFC2DFD0) goto label_BFC2DFF8; @@ -147328,7 +151543,7 @@ label_BFC2DFD8: psx_check_interrupts(cpu); /* 0xBFC2DFD8: 04610017 bgez $v1, 0xBFC2E038 */ uint32_t psx_brA_BFC2DFD8 = cpu->gpr[3]; - int psx_taken_BFC2DFD8 = ((int32_t)psx_brA_BFC2DFD8 >= 0); + psx_taken_BFC2DFD8 = ((int32_t)psx_brA_BFC2DFD8 >= 0); /* 0xBFC2DFDC: 00000000 nop */ /* nop */ if (psx_taken_BFC2DFD8) goto label_BFC2E038; @@ -147347,7 +151562,7 @@ label_BFC2DFE0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[11] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC2DFF0: 10200011 beq $at, $zero, 0xBFC2E038 */ uint32_t psx_brA_BFC2DFF0 = cpu->gpr[1]; uint32_t psx_brB_BFC2DFF0 = cpu->gpr[0]; - int psx_taken_BFC2DFF0 = (psx_brA_BFC2DFF0 == psx_brB_BFC2DFF0); + psx_taken_BFC2DFF0 = (psx_brA_BFC2DFF0 == psx_brB_BFC2DFF0); /* 0xBFC2DFF4: 00000000 nop */ /* nop */ if (psx_taken_BFC2DFF0) goto label_BFC2E038; @@ -147455,7 +151670,7 @@ label_BFC2E084: /* nop */ /* 0xBFC2E08C: 1B200033 blez $t9, 0xBFC2E15C */ uint32_t psx_brA_BFC2E08C = cpu->gpr[25]; - int psx_taken_BFC2E08C = ((int32_t)psx_brA_BFC2E08C <= 0); + psx_taken_BFC2E08C = ((int32_t)psx_brA_BFC2E08C <= 0); /* 0xBFC2E090: 00000000 nop */ /* nop */ if (psx_taken_BFC2E08C) goto label_BFC2E15C; @@ -147535,7 +151750,7 @@ label_BFC2E0FC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[14] ? 1 : 0); /* 0xBFC2E108: 1420FFED bne $at, $zero, 0xBFC2E0C0 */ uint32_t psx_brA_BFC2E108 = cpu->gpr[1]; uint32_t psx_brB_BFC2E108 = cpu->gpr[0]; - int psx_taken_BFC2E108 = (psx_brA_BFC2E108 != psx_brB_BFC2E108); + psx_taken_BFC2E108 = (psx_brA_BFC2E108 != psx_brB_BFC2E108); /* 0xBFC2E10C: 00000000 nop */ /* nop */ if (psx_taken_BFC2E108) goto label_BFC2E0C0; @@ -147546,7 +151761,7 @@ label_BFC2E110: psx_check_interrupts(cpu); /* 0xBFC2E110: 10000012 beq $zero, $zero, 0xBFC2E15C */ uint32_t psx_brA_BFC2E110 = cpu->gpr[0]; uint32_t psx_brB_BFC2E110 = cpu->gpr[0]; - int psx_taken_BFC2E110 = (psx_brA_BFC2E110 == psx_brB_BFC2E110); + psx_taken_BFC2E110 = (psx_brA_BFC2E110 == psx_brB_BFC2E110); /* 0xBFC2E114: 00000000 nop */ /* nop */ if (psx_taken_BFC2E110) goto label_BFC2E15C; @@ -147642,7 +151857,7 @@ label_BFC2E19C: /* nop */ /* 0xBFC2E1A0: 10620020 beq $v1, $v0, 0xBFC2E224 */ uint32_t psx_brA_BFC2E1A0 = cpu->gpr[3]; uint32_t psx_brB_BFC2E1A0 = cpu->gpr[2]; - int psx_taken_BFC2E1A0 = (psx_brA_BFC2E1A0 == psx_brB_BFC2E1A0); + psx_taken_BFC2E1A0 = (psx_brA_BFC2E1A0 == psx_brB_BFC2E1A0); /* 0xBFC2E1A4: 00000000 nop */ /* nop */ if (psx_taken_BFC2E1A0) goto label_BFC2E224; @@ -147653,7 +151868,7 @@ label_BFC2E1A8: psx_check_interrupts(cpu); /* 0xBFC2E1A8: 1040001E beq $v0, $zero, 0xBFC2E224 */ uint32_t psx_brA_BFC2E1A8 = cpu->gpr[2]; uint32_t psx_brB_BFC2E1A8 = cpu->gpr[0]; - int psx_taken_BFC2E1A8 = (psx_brA_BFC2E1A8 == psx_brB_BFC2E1A8); + psx_taken_BFC2E1A8 = (psx_brA_BFC2E1A8 == psx_brB_BFC2E1A8); /* 0xBFC2E1AC: 24010064 addiu $at, $zero, 100 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (100)); if (psx_taken_BFC2E1A8) goto label_BFC2E224; @@ -147664,7 +151879,7 @@ label_BFC2E1B0: psx_check_interrupts(cpu); /* 0xBFC2E1B0: 1041001C beq $v0, $at, 0xBFC2E224 */ uint32_t psx_brA_BFC2E1B0 = cpu->gpr[2]; uint32_t psx_brB_BFC2E1B0 = cpu->gpr[1]; - int psx_taken_BFC2E1B0 = (psx_brA_BFC2E1B0 == psx_brB_BFC2E1B0); + psx_taken_BFC2E1B0 = (psx_brA_BFC2E1B0 == psx_brB_BFC2E1B0); /* 0xBFC2E1B4: 00000000 nop */ /* nop */ if (psx_taken_BFC2E1B0) goto label_BFC2E224; @@ -147709,7 +151924,7 @@ label_BFC2E1B8: /* nop */ /* 0xBFC2E1FC: 04A10002 bgez $a1, 0xBFC2E208 */ uint32_t psx_brA_BFC2E1FC = cpu->gpr[5]; - int psx_taken_BFC2E1FC = ((int32_t)psx_brA_BFC2E1FC >= 0); + psx_taken_BFC2E1FC = ((int32_t)psx_brA_BFC2E1FC >= 0); /* 0xBFC2E200: 00A00821 addu $at, $a1, $zero */ cpu->gpr[1] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC2E1FC) goto label_BFC2E208; @@ -147758,7 +151973,7 @@ label_BFC2E224: /* nop */ /* 0xBFC2E230: 19C00025 blez $t6, 0xBFC2E2C8 */ uint32_t psx_brA_BFC2E230 = cpu->gpr[14]; - int psx_taken_BFC2E230 = ((int32_t)psx_brA_BFC2E230 <= 0); + psx_taken_BFC2E230 = ((int32_t)psx_brA_BFC2E230 <= 0); /* 0xBFC2E234: 00000000 nop */ /* nop */ if (psx_taken_BFC2E230) goto label_BFC2E2C8; @@ -147784,7 +151999,7 @@ label_BFC2E240: /* nop */ /* 0xBFC2E24C: 15F80018 bne $t7, $t8, 0xBFC2E2B0 */ uint32_t psx_brA_BFC2E24C = cpu->gpr[15]; uint32_t psx_brB_BFC2E24C = cpu->gpr[24]; - int psx_taken_BFC2E24C = (psx_brA_BFC2E24C != psx_brB_BFC2E24C); + psx_taken_BFC2E24C = (psx_brA_BFC2E24C != psx_brB_BFC2E24C); /* 0xBFC2E250: 00000000 nop */ /* nop */ if (psx_taken_BFC2E24C) goto label_BFC2E2B0; @@ -147860,7 +152075,7 @@ label_BFC2E2B0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (int32_t)cpu->gpr[13] ? 1 : 0); /* 0xBFC2E2C0: 1420FFDF bne $at, $zero, 0xBFC2E240 */ uint32_t psx_brA_BFC2E2C0 = cpu->gpr[1]; uint32_t psx_brB_BFC2E2C0 = cpu->gpr[0]; - int psx_taken_BFC2E2C0 = (psx_brA_BFC2E2C0 != psx_brB_BFC2E2C0); + psx_taken_BFC2E2C0 = (psx_brA_BFC2E2C0 != psx_brB_BFC2E2C0); /* 0xBFC2E2C4: 26100004 addiu $s0, $s0, 4 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (4)); if (psx_taken_BFC2E2C0) goto label_BFC2E240; @@ -147893,7 +152108,7 @@ label_BFC2E2D4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (96) ? 1 : 0); /* 0xBFC2E2E0: 1420FB94 bne $at, $zero, 0xBFC2D134 */ uint32_t psx_brA_BFC2E2E0 = cpu->gpr[1]; uint32_t psx_brB_BFC2E2E0 = cpu->gpr[0]; - int psx_taken_BFC2E2E0 = (psx_brA_BFC2E2E0 != psx_brB_BFC2E2E0); + psx_taken_BFC2E2E0 = (psx_brA_BFC2E2E0 != psx_brB_BFC2E2E0); /* 0xBFC2E2E4: AFAE00AC sw $t6, 172($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (172)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2E2E4u); return; } g_debug_last_store_pc = 0xBFC2E2E4u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC2E2E0) goto label_BFC2D134; @@ -147928,7 +152143,7 @@ label_BFC2E2FC: /* nop */ /* 0xBFC2E304: 11E0001E beq $t7, $zero, 0xBFC2E380 */ uint32_t psx_brA_BFC2E304 = cpu->gpr[15]; uint32_t psx_brB_BFC2E304 = cpu->gpr[0]; - int psx_taken_BFC2E304 = (psx_brA_BFC2E304 == psx_brB_BFC2E304); + psx_taken_BFC2E304 = (psx_brA_BFC2E304 == psx_brB_BFC2E304); /* 0xBFC2E308: 8FAE00AC lw $t6, 172($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (172)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2E308u); return; } cpu->gpr[14] = cpu->read_word(psx_addr); } if (psx_taken_BFC2E304) goto label_BFC2E380; @@ -147951,7 +152166,7 @@ label_BFC2E30C: /* nop */ /* 0xBFC2E324: 12280016 beq $s1, $t0, 0xBFC2E380 */ uint32_t psx_brA_BFC2E324 = cpu->gpr[17]; uint32_t psx_brB_BFC2E324 = cpu->gpr[8]; - int psx_taken_BFC2E324 = (psx_brA_BFC2E324 == psx_brB_BFC2E324); + psx_taken_BFC2E324 = (psx_brA_BFC2E324 == psx_brB_BFC2E324); /* 0xBFC2E328: 8FAE00AC lw $t6, 172($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (172)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2E328u); return; } cpu->gpr[14] = cpu->read_word(psx_addr); } if (psx_taken_BFC2E324) goto label_BFC2E380; @@ -148019,7 +152234,7 @@ label_BFC2E380: cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[14] + (1)); /* 0xBFC2E388: 15F0FFDC bne $t7, $s0, 0xBFC2E2FC */ uint32_t psx_brA_BFC2E388 = cpu->gpr[15]; uint32_t psx_brB_BFC2E388 = cpu->gpr[16]; - int psx_taken_BFC2E388 = (psx_brA_BFC2E388 != psx_brB_BFC2E388); + psx_taken_BFC2E388 = (psx_brA_BFC2E388 != psx_brB_BFC2E388); /* 0xBFC2E38C: AFAF00AC sw $t7, 172($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (172)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2E38Cu); return; } g_debug_last_store_pc = 0xBFC2E38Cu; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC2E388) goto label_BFC2E2FC; @@ -148036,7 +152251,7 @@ label_BFC2E390: /* nop */ /* 0xBFC2E39C: 13000005 beq $t8, $zero, 0xBFC2E3B4 */ uint32_t psx_brA_BFC2E39C = cpu->gpr[24]; uint32_t psx_brB_BFC2E39C = cpu->gpr[0]; - int psx_taken_BFC2E39C = (psx_brA_BFC2E39C == psx_brB_BFC2E39C); + psx_taken_BFC2E39C = (psx_brA_BFC2E39C == psx_brB_BFC2E39C); /* 0xBFC2E3A0: 00000000 nop */ /* nop */ if (psx_taken_BFC2E39C) goto label_BFC2E3B4; @@ -148051,7 +152266,7 @@ label_BFC2E3A4: cpu->gpr[1] = 0x80080000u; /* 0xBFC2E3AC: 10000005 beq $zero, $zero, 0xBFC2E3C4 */ uint32_t psx_brA_BFC2E3AC = cpu->gpr[0]; uint32_t psx_brB_BFC2E3AC = cpu->gpr[0]; - int psx_taken_BFC2E3AC = (psx_brA_BFC2E3AC == psx_brB_BFC2E3AC); + psx_taken_BFC2E3AC = (psx_brA_BFC2E3AC == psx_brB_BFC2E3AC); /* 0xBFC2E3B0: AC258338 sw $a1, -31944($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31944)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2E3B0u); return; } g_debug_last_store_pc = 0xBFC2E3B0u; cpu->write_word(psx_addr, cpu->gpr[5]); } if (psx_taken_BFC2E3AC) goto label_BFC2E3C4; @@ -148091,7 +152306,7 @@ label_BFC2E3C4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (int32_t)cpu->gpr[5] ? 1 : 0); /* 0xBFC2E3E4: 14200003 bne $at, $zero, 0xBFC2E3F4 */ uint32_t psx_brA_BFC2E3E4 = cpu->gpr[1]; uint32_t psx_brB_BFC2E3E4 = cpu->gpr[0]; - int psx_taken_BFC2E3E4 = (psx_brA_BFC2E3E4 != psx_brB_BFC2E3E4); + psx_taken_BFC2E3E4 = (psx_brA_BFC2E3E4 != psx_brB_BFC2E3E4); /* 0xBFC2E3E8: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC2E3E4) goto label_BFC2E3F4; @@ -148102,7 +152317,7 @@ label_BFC2E3EC: psx_check_interrupts(cpu); /* 0xBFC2E3EC: 10000008 beq $zero, $zero, 0xBFC2E410 */ uint32_t psx_brA_BFC2E3EC = cpu->gpr[0]; uint32_t psx_brB_BFC2E3EC = cpu->gpr[0]; - int psx_taken_BFC2E3EC = (psx_brA_BFC2E3EC == psx_brB_BFC2E3EC); + psx_taken_BFC2E3EC = (psx_brA_BFC2E3EC == psx_brB_BFC2E3EC); /* 0xBFC2E3F0: AC238328 sw $v1, -31960($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31960)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2E3F0u); return; } g_debug_last_store_pc = 0xBFC2E3F0u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC2E3EC) goto label_BFC2E410; @@ -148123,7 +152338,7 @@ label_BFC2E3F4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[25] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC2E408: 14200005 bne $at, $zero, 0xBFC2E420 */ uint32_t psx_brA_BFC2E408 = cpu->gpr[1]; uint32_t psx_brB_BFC2E408 = cpu->gpr[0]; - int psx_taken_BFC2E408 = (psx_brA_BFC2E408 != psx_brB_BFC2E408); + psx_taken_BFC2E408 = (psx_brA_BFC2E408 != psx_brB_BFC2E408); /* 0xBFC2E40C: 8FBF004C lw $ra, 76($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2E40Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2E408) goto label_BFC2E420; @@ -148179,6 +152394,10 @@ void func_1FC2E44C(CPUState* cpu) { default: break; } } + int psx_taken_BFC2E450 = 0; + int psx_taken_BFC2E458 = 0; + int psx_taken_BFC2E46C = 0; + int psx_taken_BFC2E474 = 0; label_BFC2E44C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -148188,7 +152407,7 @@ label_BFC2E44C: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC2E450: 1C800003 bgtz $a0, 0xBFC2E460 */ uint32_t psx_brA_BFC2E450 = cpu->gpr[4]; - int psx_taken_BFC2E450 = ((int32_t)psx_brA_BFC2E450 > 0); + psx_taken_BFC2E450 = ((int32_t)psx_brA_BFC2E450 > 0); /* 0xBFC2E454: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2E454u); return; } g_debug_last_store_pc = 0xBFC2E454u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC2E450) goto label_BFC2E460; @@ -148199,7 +152418,7 @@ label_BFC2E458: psx_check_interrupts(cpu); /* 0xBFC2E458: 10000019 beq $zero, $zero, 0xBFC2E4C0 */ uint32_t psx_brA_BFC2E458 = cpu->gpr[0]; uint32_t psx_brB_BFC2E458 = cpu->gpr[0]; - int psx_taken_BFC2E458 = (psx_brA_BFC2E458 == psx_brB_BFC2E458); + psx_taken_BFC2E458 = (psx_brA_BFC2E458 == psx_brB_BFC2E458); /* 0xBFC2E45C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC2E458) goto label_BFC2E4C0; @@ -148222,7 +152441,7 @@ label_BFC2E468: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2E468u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC2E46C: 04410003 bgez $v0, 0xBFC2E47C */ uint32_t psx_brA_BFC2E46C = cpu->gpr[2]; - int psx_taken_BFC2E46C = ((int32_t)psx_brA_BFC2E46C >= 0); + psx_taken_BFC2E46C = ((int32_t)psx_brA_BFC2E46C >= 0); /* 0xBFC2E470: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC2E46C) goto label_BFC2E47C; @@ -148233,7 +152452,7 @@ label_BFC2E474: psx_check_interrupts(cpu); /* 0xBFC2E474: 10000012 beq $zero, $zero, 0xBFC2E4C0 */ uint32_t psx_brA_BFC2E474 = cpu->gpr[0]; uint32_t psx_brB_BFC2E474 = cpu->gpr[0]; - int psx_taken_BFC2E474 = (psx_brA_BFC2E474 == psx_brB_BFC2E474); + psx_taken_BFC2E474 = (psx_brA_BFC2E474 == psx_brB_BFC2E474); /* 0xBFC2E478: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC2E474) goto label_BFC2E4C0; @@ -148363,6 +152582,7 @@ label_BFC2E544: void func_1FC2E574(CPUState* cpu) { debug_server_log_call_entry(0x1FC2E574u); + int psx_taken_BFC2E580 = 0; label_BFC2E574: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -148376,7 +152596,7 @@ label_BFC2E574: /* nop */ /* 0xBFC2E580: 1C600003 bgtz $v1, 0xBFC2E590 */ uint32_t psx_brA_BFC2E580 = cpu->gpr[3]; - int psx_taken_BFC2E580 = ((int32_t)psx_brA_BFC2E580 > 0); + psx_taken_BFC2E580 = ((int32_t)psx_brA_BFC2E580 > 0); /* 0xBFC2E584: 00000000 nop */ /* nop */ if (psx_taken_BFC2E580) goto label_BFC2E590; @@ -148431,6 +152651,8 @@ label_BFC2E5B4: void func_1FC2E5C0(CPUState* cpu) { debug_server_log_call_entry(0x1FC2E5C0u); + int psx_taken_BFC2E5D8 = 0; + int psx_taken_BFC2E5EC = 0; label_BFC2E5C0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -148455,7 +152677,7 @@ label_BFC2E5D0: /* nop */ /* 0xBFC2E5D8: 148E0003 bne $a0, $t6, 0xBFC2E5E8 */ uint32_t psx_brA_BFC2E5D8 = cpu->gpr[4]; uint32_t psx_brB_BFC2E5D8 = cpu->gpr[14]; - int psx_taken_BFC2E5D8 = (psx_brA_BFC2E5D8 != psx_brB_BFC2E5D8); + psx_taken_BFC2E5D8 = (psx_brA_BFC2E5D8 != psx_brB_BFC2E5D8); /* 0xBFC2E5DC: 00000000 nop */ /* nop */ if (psx_taken_BFC2E5D8) goto label_BFC2E5E8; @@ -148477,7 +152699,7 @@ label_BFC2E5E8: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC2E5EC: 1465FFF8 bne $v1, $a1, 0xBFC2E5D0 */ uint32_t psx_brA_BFC2E5EC = cpu->gpr[3]; uint32_t psx_brB_BFC2E5EC = cpu->gpr[5]; - int psx_taken_BFC2E5EC = (psx_brA_BFC2E5EC != psx_brB_BFC2E5EC); + psx_taken_BFC2E5EC = (psx_brA_BFC2E5EC != psx_brB_BFC2E5EC); /* 0xBFC2E5F0: 24420688 addiu $v0, $v0, 1672 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1672)); if (psx_taken_BFC2E5EC) goto label_BFC2E5D0; @@ -148646,6 +152868,17 @@ void func_1FC2E6B8(CPUState* cpu) { default: break; } } + int psx_taken_BFC2E6FC = 0; + int psx_taken_BFC2E70C = 0; + int psx_taken_BFC2E744 = 0; + int psx_taken_BFC2E758 = 0; + int psx_taken_BFC2E768 = 0; + int psx_taken_BFC2E7BC = 0; + int psx_taken_BFC2E7EC = 0; + int psx_taken_BFC2E81C = 0; + int psx_taken_BFC2E84C = 0; + int psx_taken_BFC2E87C = 0; + int psx_taken_BFC2E8AC = 0; label_BFC2E6B8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(19u); @@ -148687,7 +152920,7 @@ label_BFC2E6B8: cpu->gpr[24] = cpu->gpr[5] & cpu->gpr[15]; /* 0xBFC2E6FC: 13000013 beq $t8, $zero, 0xBFC2E74C */ uint32_t psx_brA_BFC2E6FC = cpu->gpr[24]; uint32_t psx_brB_BFC2E6FC = cpu->gpr[0]; - int psx_taken_BFC2E6FC = (psx_brA_BFC2E6FC == psx_brB_BFC2E6FC); + psx_taken_BFC2E6FC = (psx_brA_BFC2E6FC == psx_brB_BFC2E6FC); /* 0xBFC2E700: 00603021 addu $a2, $v1, $zero */ cpu->gpr[6] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC2E6FC) goto label_BFC2E74C; @@ -148702,7 +152935,7 @@ label_BFC2E704: /* nop */ /* 0xBFC2E70C: 13200010 beq $t9, $zero, 0xBFC2E750 */ uint32_t psx_brA_BFC2E70C = cpu->gpr[25]; uint32_t psx_brB_BFC2E70C = cpu->gpr[0]; - int psx_taken_BFC2E70C = (psx_brA_BFC2E70C == psx_brB_BFC2E70C); + psx_taken_BFC2E70C = (psx_brA_BFC2E70C == psx_brB_BFC2E70C); /* 0xBFC2E710: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC2E70C) goto label_BFC2E750; @@ -148743,7 +152976,7 @@ label_BFC2E744: psx_check_interrupts(cpu); /* 0xBFC2E744: 1000005E beq $zero, $zero, 0xBFC2E8C0 */ uint32_t psx_brA_BFC2E744 = cpu->gpr[0]; uint32_t psx_brB_BFC2E744 = cpu->gpr[0]; - int psx_taken_BFC2E744 = (psx_brA_BFC2E744 == psx_brB_BFC2E744); + psx_taken_BFC2E744 = (psx_brA_BFC2E744 == psx_brB_BFC2E744); /* 0xBFC2E748: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2E748u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2E744) goto label_BFC2E8C0; @@ -148765,7 +152998,7 @@ label_BFC2E750: cpu->gpr[11] = cpu->gpr[5] & cpu->gpr[1]; /* 0xBFC2E758: 11600016 beq $t3, $zero, 0xBFC2E7B4 */ uint32_t psx_brA_BFC2E758 = cpu->gpr[11]; uint32_t psx_brB_BFC2E758 = cpu->gpr[0]; - int psx_taken_BFC2E758 = (psx_brA_BFC2E758 == psx_brB_BFC2E758); + psx_taken_BFC2E758 = (psx_brA_BFC2E758 == psx_brB_BFC2E758); /* 0xBFC2E75C: 3C012000 lui $at, 0x2000 */ cpu->gpr[1] = 0x20000000u; if (psx_taken_BFC2E758) goto label_BFC2E7B4; @@ -148780,7 +153013,7 @@ label_BFC2E760: /* nop */ /* 0xBFC2E768: 11800012 beq $t4, $zero, 0xBFC2E7B4 */ uint32_t psx_brA_BFC2E768 = cpu->gpr[12]; uint32_t psx_brB_BFC2E768 = cpu->gpr[0]; - int psx_taken_BFC2E768 = (psx_brA_BFC2E768 == psx_brB_BFC2E768); + psx_taken_BFC2E768 = (psx_brA_BFC2E768 == psx_brB_BFC2E768); /* 0xBFC2E76C: 3C012000 lui $at, 0x2000 */ cpu->gpr[1] = 0x20000000u; if (psx_taken_BFC2E768) goto label_BFC2E7B4; @@ -148840,7 +153073,7 @@ label_BFC2E7B4: cpu->gpr[15] = cpu->gpr[5] & cpu->gpr[1]; /* 0xBFC2E7BC: 11E00015 beq $t7, $zero, 0xBFC2E814 */ uint32_t psx_brA_BFC2E7BC = cpu->gpr[15]; uint32_t psx_brB_BFC2E7BC = cpu->gpr[0]; - int psx_taken_BFC2E7BC = (psx_brA_BFC2E7BC == psx_brB_BFC2E7BC); + psx_taken_BFC2E7BC = (psx_brA_BFC2E7BC == psx_brB_BFC2E7BC); /* 0xBFC2E7C0: 3C011000 lui $at, 0x1000 */ cpu->gpr[1] = 0x10000000u; if (psx_taken_BFC2E7BC) goto label_BFC2E814; @@ -148871,7 +153104,7 @@ label_BFC2E7C4: /* nop */ /* 0xBFC2E7EC: 10800009 beq $a0, $zero, 0xBFC2E814 */ uint32_t psx_brA_BFC2E7EC = cpu->gpr[4]; uint32_t psx_brB_BFC2E7EC = cpu->gpr[0]; - int psx_taken_BFC2E7EC = (psx_brA_BFC2E7EC == psx_brB_BFC2E7EC); + psx_taken_BFC2E7EC = (psx_brA_BFC2E7EC == psx_brB_BFC2E7EC); /* 0xBFC2E7F0: 3C011000 lui $at, 0x1000 */ cpu->gpr[1] = 0x10000000u; if (psx_taken_BFC2E7EC) goto label_BFC2E814; @@ -148913,7 +153146,7 @@ label_BFC2E814: cpu->gpr[8] = cpu->gpr[5] & cpu->gpr[1]; /* 0xBFC2E81C: 11000015 beq $t0, $zero, 0xBFC2E874 */ uint32_t psx_brA_BFC2E81C = cpu->gpr[8]; uint32_t psx_brB_BFC2E81C = cpu->gpr[0]; - int psx_taken_BFC2E81C = (psx_brA_BFC2E81C == psx_brB_BFC2E81C); + psx_taken_BFC2E81C = (psx_brA_BFC2E81C == psx_brB_BFC2E81C); /* 0xBFC2E820: 3C014000 lui $at, 0x4000 */ cpu->gpr[1] = 0x40000000u; if (psx_taken_BFC2E81C) goto label_BFC2E874; @@ -148944,7 +153177,7 @@ label_BFC2E824: /* nop */ /* 0xBFC2E84C: 10800009 beq $a0, $zero, 0xBFC2E874 */ uint32_t psx_brA_BFC2E84C = cpu->gpr[4]; uint32_t psx_brB_BFC2E84C = cpu->gpr[0]; - int psx_taken_BFC2E84C = (psx_brA_BFC2E84C == psx_brB_BFC2E84C); + psx_taken_BFC2E84C = (psx_brA_BFC2E84C == psx_brB_BFC2E84C); /* 0xBFC2E850: 3C014000 lui $at, 0x4000 */ cpu->gpr[1] = 0x40000000u; if (psx_taken_BFC2E84C) goto label_BFC2E874; @@ -148986,7 +153219,7 @@ label_BFC2E874: cpu->gpr[11] = cpu->gpr[5] & cpu->gpr[1]; /* 0xBFC2E87C: 11600010 beq $t3, $zero, 0xBFC2E8C0 */ uint32_t psx_brA_BFC2E87C = cpu->gpr[11]; uint32_t psx_brB_BFC2E87C = cpu->gpr[0]; - int psx_taken_BFC2E87C = (psx_brA_BFC2E87C == psx_brB_BFC2E87C); + psx_taken_BFC2E87C = (psx_brA_BFC2E87C == psx_brB_BFC2E87C); /* 0xBFC2E880: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2E880u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2E87C) goto label_BFC2E8C0; @@ -149017,7 +153250,7 @@ label_BFC2E884: /* nop */ /* 0xBFC2E8AC: 10800004 beq $a0, $zero, 0xBFC2E8C0 */ uint32_t psx_brA_BFC2E8AC = cpu->gpr[4]; uint32_t psx_brB_BFC2E8AC = cpu->gpr[0]; - int psx_taken_BFC2E8AC = (psx_brA_BFC2E8AC == psx_brB_BFC2E8AC); + psx_taken_BFC2E8AC = (psx_brA_BFC2E8AC == psx_brB_BFC2E8AC); /* 0xBFC2E8B0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2E8B0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2E8AC) goto label_BFC2E8C0; @@ -149064,6 +153297,15 @@ void func_1FC2E8CC(CPUState* cpu) { default: break; } } + int psx_taken_BFC2E8EC = 0; + int psx_taken_BFC2E8F8 = 0; + int psx_taken_BFC2E930 = 0; + int psx_taken_BFC2E984 = 0; + int psx_taken_BFC2E9B4 = 0; + int psx_taken_BFC2E9E4 = 0; + int psx_taken_BFC2EA14 = 0; + int psx_taken_BFC2EA44 = 0; + int psx_taken_BFC2EA74 = 0; label_BFC2E8CC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -149087,7 +153329,7 @@ label_BFC2E8CC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2E8E8u); return; } g_debug_last_store_pc = 0xBFC2E8E8u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC2E8EC: 15C00004 bne $t6, $zero, 0xBFC2E900 */ uint32_t psx_brA_BFC2E8EC = cpu->gpr[14]; uint32_t psx_brB_BFC2E8EC = cpu->gpr[0]; - int psx_taken_BFC2E8EC = (psx_brA_BFC2E8EC != psx_brB_BFC2E8EC); + psx_taken_BFC2E8EC = (psx_brA_BFC2E8EC != psx_brB_BFC2E8EC); /* 0xBFC2E8F0: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC2E8EC) goto label_BFC2E900; @@ -149100,7 +153342,7 @@ label_BFC2E8F4: cpu->gpr[6] = 0x80110000u; /* 0xBFC2E8F8: 1000001F beq $zero, $zero, 0xBFC2E978 */ uint32_t psx_brA_BFC2E8F8 = cpu->gpr[0]; uint32_t psx_brB_BFC2E8F8 = cpu->gpr[0]; - int psx_taken_BFC2E8F8 = (psx_brA_BFC2E8F8 == psx_brB_BFC2E8F8); + psx_taken_BFC2E8F8 = (psx_brA_BFC2E8F8 == psx_brB_BFC2E8F8); /* 0xBFC2E8FC: 24C60EC8 addiu $a2, $a2, 3784 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (3784)); if (psx_taken_BFC2E8F8) goto label_BFC2E978; @@ -149135,7 +153377,7 @@ label_BFC2E900: /* nop */ /* 0xBFC2E930: 13200012 beq $t9, $zero, 0xBFC2E97C */ uint32_t psx_brA_BFC2E930 = cpu->gpr[25]; uint32_t psx_brB_BFC2E930 = cpu->gpr[0]; - int psx_taken_BFC2E930 = (psx_brA_BFC2E930 == psx_brB_BFC2E930); + psx_taken_BFC2E930 = (psx_brA_BFC2E930 == psx_brB_BFC2E930); /* 0xBFC2E934: 3C012000 lui $at, 0x2000 */ cpu->gpr[1] = 0x20000000u; if (psx_taken_BFC2E930) goto label_BFC2E97C; @@ -149200,7 +153442,7 @@ label_BFC2E97C: cpu->gpr[10] = cpu->gpr[5] & cpu->gpr[1]; /* 0xBFC2E984: 11400015 beq $t2, $zero, 0xBFC2E9DC */ uint32_t psx_brA_BFC2E984 = cpu->gpr[10]; uint32_t psx_brB_BFC2E984 = cpu->gpr[0]; - int psx_taken_BFC2E984 = (psx_brA_BFC2E984 == psx_brB_BFC2E984); + psx_taken_BFC2E984 = (psx_brA_BFC2E984 == psx_brB_BFC2E984); /* 0xBFC2E988: 3C011000 lui $at, 0x1000 */ cpu->gpr[1] = 0x10000000u; if (psx_taken_BFC2E984) goto label_BFC2E9DC; @@ -149231,7 +153473,7 @@ label_BFC2E98C: /* nop */ /* 0xBFC2E9B4: 10800009 beq $a0, $zero, 0xBFC2E9DC */ uint32_t psx_brA_BFC2E9B4 = cpu->gpr[4]; uint32_t psx_brB_BFC2E9B4 = cpu->gpr[0]; - int psx_taken_BFC2E9B4 = (psx_brA_BFC2E9B4 == psx_brB_BFC2E9B4); + psx_taken_BFC2E9B4 = (psx_brA_BFC2E9B4 == psx_brB_BFC2E9B4); /* 0xBFC2E9B8: 3C011000 lui $at, 0x1000 */ cpu->gpr[1] = 0x10000000u; if (psx_taken_BFC2E9B4) goto label_BFC2E9DC; @@ -149273,7 +153515,7 @@ label_BFC2E9DC: cpu->gpr[13] = cpu->gpr[5] & cpu->gpr[1]; /* 0xBFC2E9E4: 11A00015 beq $t5, $zero, 0xBFC2EA3C */ uint32_t psx_brA_BFC2E9E4 = cpu->gpr[13]; uint32_t psx_brB_BFC2E9E4 = cpu->gpr[0]; - int psx_taken_BFC2E9E4 = (psx_brA_BFC2E9E4 == psx_brB_BFC2E9E4); + psx_taken_BFC2E9E4 = (psx_brA_BFC2E9E4 == psx_brB_BFC2E9E4); /* 0xBFC2E9E8: 3C014000 lui $at, 0x4000 */ cpu->gpr[1] = 0x40000000u; if (psx_taken_BFC2E9E4) goto label_BFC2EA3C; @@ -149304,7 +153546,7 @@ label_BFC2E9EC: /* nop */ /* 0xBFC2EA14: 10800009 beq $a0, $zero, 0xBFC2EA3C */ uint32_t psx_brA_BFC2EA14 = cpu->gpr[4]; uint32_t psx_brB_BFC2EA14 = cpu->gpr[0]; - int psx_taken_BFC2EA14 = (psx_brA_BFC2EA14 == psx_brB_BFC2EA14); + psx_taken_BFC2EA14 = (psx_brA_BFC2EA14 == psx_brB_BFC2EA14); /* 0xBFC2EA18: 3C014000 lui $at, 0x4000 */ cpu->gpr[1] = 0x40000000u; if (psx_taken_BFC2EA14) goto label_BFC2EA3C; @@ -149346,7 +153588,7 @@ label_BFC2EA3C: cpu->gpr[24] = cpu->gpr[5] & cpu->gpr[1]; /* 0xBFC2EA44: 13000010 beq $t8, $zero, 0xBFC2EA88 */ uint32_t psx_brA_BFC2EA44 = cpu->gpr[24]; uint32_t psx_brB_BFC2EA44 = cpu->gpr[0]; - int psx_taken_BFC2EA44 = (psx_brA_BFC2EA44 == psx_brB_BFC2EA44); + psx_taken_BFC2EA44 = (psx_brA_BFC2EA44 == psx_brB_BFC2EA44); /* 0xBFC2EA48: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2EA48u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2EA44) goto label_BFC2EA88; @@ -149377,7 +153619,7 @@ label_BFC2EA4C: /* nop */ /* 0xBFC2EA74: 10800004 beq $a0, $zero, 0xBFC2EA88 */ uint32_t psx_brA_BFC2EA74 = cpu->gpr[4]; uint32_t psx_brB_BFC2EA74 = cpu->gpr[0]; - int psx_taken_BFC2EA74 = (psx_brA_BFC2EA74 == psx_brB_BFC2EA74); + psx_taken_BFC2EA74 = (psx_brA_BFC2EA74 == psx_brB_BFC2EA74); /* 0xBFC2EA78: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2EA78u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2EA74) goto label_BFC2EA88; @@ -149421,6 +153663,9 @@ void func_1FC2EA94(CPUState* cpu) { default: break; } } + int psx_taken_BFC2EAD0 = 0; + int psx_taken_BFC2EB50 = 0; + int psx_taken_BFC2EBDC = 0; label_BFC2EA94: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(17u); @@ -149458,7 +153703,7 @@ label_BFC2EA94: cpu->gpr[9] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC2EAD0: 14E0002D bne $a3, $zero, 0xBFC2EB88 */ uint32_t psx_brA_BFC2EAD0 = cpu->gpr[7]; uint32_t psx_brB_BFC2EAD0 = cpu->gpr[0]; - int psx_taken_BFC2EAD0 = (psx_brA_BFC2EAD0 != psx_brB_BFC2EAD0); + psx_taken_BFC2EAD0 = (psx_brA_BFC2EAD0 != psx_brB_BFC2EAD0); /* 0xBFC2EAD4: 00000000 nop */ /* nop */ if (psx_taken_BFC2EAD0) goto label_BFC2EB88; @@ -149534,7 +153779,7 @@ label_BFC2EB34: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[14] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2EB4Cu); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC2EB50: 15CFFFF8 bne $t6, $t7, 0xBFC2EB34 */ uint32_t psx_brA_BFC2EB50 = cpu->gpr[14]; uint32_t psx_brB_BFC2EB50 = cpu->gpr[15]; - int psx_taken_BFC2EB50 = (psx_brA_BFC2EB50 != psx_brB_BFC2EB50); + psx_taken_BFC2EB50 = (psx_brA_BFC2EB50 != psx_brB_BFC2EB50); /* 0xBFC2EB54: AF210118 sw $at, 280($t9) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[25] + (280)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2EB54u); return; } g_debug_last_store_pc = 0xBFC2EB54u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC2EB50) goto label_BFC2EB34; @@ -149621,7 +153866,7 @@ label_BFC2EBC0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[11] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2EBD8u); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC2EBDC: 156AFFF8 bne $t3, $t2, 0xBFC2EBC0 */ uint32_t psx_brA_BFC2EBDC = cpu->gpr[11]; uint32_t psx_brB_BFC2EBDC = cpu->gpr[10]; - int psx_taken_BFC2EBDC = (psx_brA_BFC2EBDC != psx_brB_BFC2EBDC); + psx_taken_BFC2EBDC = (psx_brA_BFC2EBDC != psx_brB_BFC2EBDC); /* 0xBFC2EBE0: AF010118 sw $at, 280($t8) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (280)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2EBE0u); return; } g_debug_last_store_pc = 0xBFC2EBE0u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC2EBDC) goto label_BFC2EBC0; @@ -149726,6 +153971,8 @@ label_BFC2EC68: void func_1FC2EC90(CPUState* cpu) { debug_server_log_call_entry(0x1FC2EC90u); + int psx_taken_BFC2ECAC = 0; + int psx_taken_BFC2ECC8 = 0; label_BFC2EC90: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -149752,7 +153999,7 @@ label_BFC2ECA4: /* nop */ /* 0xBFC2ECAC: 148E0005 bne $a0, $t6, 0xBFC2ECC4 */ uint32_t psx_brA_BFC2ECAC = cpu->gpr[4]; uint32_t psx_brB_BFC2ECAC = cpu->gpr[14]; - int psx_taken_BFC2ECAC = (psx_brA_BFC2ECAC != psx_brB_BFC2ECAC); + psx_taken_BFC2ECAC = (psx_brA_BFC2ECAC != psx_brB_BFC2ECAC); /* 0xBFC2ECB0: 00000000 nop */ /* nop */ if (psx_taken_BFC2ECAC) goto label_BFC2ECC4; @@ -149778,7 +154025,7 @@ label_BFC2ECC4: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1672)); /* 0xBFC2ECC8: 1462FFF6 bne $v1, $v0, 0xBFC2ECA4 */ uint32_t psx_brA_BFC2ECC8 = cpu->gpr[3]; uint32_t psx_brB_BFC2ECC8 = cpu->gpr[2]; - int psx_taken_BFC2ECC8 = (psx_brA_BFC2ECC8 != psx_brB_BFC2ECC8); + psx_taken_BFC2ECC8 = (psx_brA_BFC2ECC8 != psx_brB_BFC2ECC8); /* 0xBFC2ECCC: 00000000 nop */ /* nop */ if (psx_taken_BFC2ECC8) goto label_BFC2ECA4; @@ -149846,6 +154093,7 @@ void func_1FC2ED1C(CPUState* cpu) { default: break; } } + int psx_taken_BFC2ED90 = 0; label_BFC2ED1C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -149922,7 +154170,7 @@ label_BFC2ED74: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[10] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2ED8Cu); return; } cpu->gpr[1] = cpu->read_word(psx_addr); } /* 0xBFC2ED90: 154BFFF8 bne $t2, $t3, 0xBFC2ED74 */ uint32_t psx_brA_BFC2ED90 = cpu->gpr[10]; uint32_t psx_brB_BFC2ED90 = cpu->gpr[11]; - int psx_taken_BFC2ED90 = (psx_brA_BFC2ED90 != psx_brB_BFC2ED90); + psx_taken_BFC2ED90 = (psx_brA_BFC2ED90 != psx_brB_BFC2ED90); /* 0xBFC2ED94: AD21FFFC sw $at, -4($t1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2ED94u); return; } g_debug_last_store_pc = 0xBFC2ED94u; cpu->write_word(psx_addr, cpu->gpr[1]); } if (psx_taken_BFC2ED90) goto label_BFC2ED74; @@ -149949,6 +154197,9 @@ label_BFC2ED98: void func_1FC2EE6C(CPUState* cpu) { debug_server_log_call_entry(0x1FC2EE6Cu); + int psx_taken_BFC2EE88 = 0; + int psx_taken_BFC2EE98 = 0; + int psx_taken_BFC2EEAC = 0; label_BFC2EE6C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -149975,7 +154226,7 @@ label_BFC2EE80: /* nop */ /* 0xBFC2EE88: 148E0007 bne $a0, $t6, 0xBFC2EEA8 */ uint32_t psx_brA_BFC2EE88 = cpu->gpr[4]; uint32_t psx_brB_BFC2EE88 = cpu->gpr[14]; - int psx_taken_BFC2EE88 = (psx_brA_BFC2EE88 != psx_brB_BFC2EE88); + psx_taken_BFC2EE88 = (psx_brA_BFC2EE88 != psx_brB_BFC2EE88); /* 0xBFC2EE8C: 00000000 nop */ /* nop */ if (psx_taken_BFC2EE88) goto label_BFC2EEA8; @@ -149990,7 +154241,7 @@ label_BFC2EE90: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[5] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC2EE98: 10200003 beq $at, $zero, 0xBFC2EEA8 */ uint32_t psx_brA_BFC2EE98 = cpu->gpr[1]; uint32_t psx_brB_BFC2EE98 = cpu->gpr[0]; - int psx_taken_BFC2EE98 = (psx_brA_BFC2EE98 == psx_brB_BFC2EE98); + psx_taken_BFC2EE98 = (psx_brA_BFC2EE98 == psx_brB_BFC2EE98); /* 0xBFC2EE9C: 00000000 nop */ /* nop */ if (psx_taken_BFC2EE98) goto label_BFC2EEA8; @@ -150012,7 +154263,7 @@ label_BFC2EEA8: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC2EEAC: 1467FFF4 bne $v1, $a3, 0xBFC2EE80 */ uint32_t psx_brA_BFC2EEAC = cpu->gpr[3]; uint32_t psx_brB_BFC2EEAC = cpu->gpr[7]; - int psx_taken_BFC2EEAC = (psx_brA_BFC2EEAC != psx_brB_BFC2EEAC); + psx_taken_BFC2EEAC = (psx_brA_BFC2EEAC != psx_brB_BFC2EEAC); /* 0xBFC2EEB0: 24C60688 addiu $a2, $a2, 1672 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (1672)); if (psx_taken_BFC2EEAC) goto label_BFC2EE80; @@ -150031,6 +154282,8 @@ label_BFC2EEB4: void func_1FC2EEC0(CPUState* cpu) { debug_server_log_call_entry(0x1FC2EEC0u); + int psx_taken_BFC2EEE0 = 0; + int psx_taken_BFC2EEF0 = 0; label_BFC2EEC0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -150059,7 +154312,7 @@ label_BFC2EED8: /* nop */ /* 0xBFC2EEE0: 148E0002 bne $a0, $t6, 0xBFC2EEEC */ uint32_t psx_brA_BFC2EEE0 = cpu->gpr[4]; uint32_t psx_brB_BFC2EEE0 = cpu->gpr[14]; - int psx_taken_BFC2EEE0 = (psx_brA_BFC2EEE0 != psx_brB_BFC2EEE0); + psx_taken_BFC2EEE0 = (psx_brA_BFC2EEE0 != psx_brB_BFC2EEE0); /* 0xBFC2EEE4: 00000000 nop */ /* nop */ if (psx_taken_BFC2EEE0) goto label_BFC2EEEC; @@ -150079,7 +154332,7 @@ label_BFC2EEEC: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1672)); /* 0xBFC2EEF0: 14A2FFF9 bne $a1, $v0, 0xBFC2EED8 */ uint32_t psx_brA_BFC2EEF0 = cpu->gpr[5]; uint32_t psx_brB_BFC2EEF0 = cpu->gpr[2]; - int psx_taken_BFC2EEF0 = (psx_brA_BFC2EEF0 != psx_brB_BFC2EEF0); + psx_taken_BFC2EEF0 = (psx_brA_BFC2EEF0 != psx_brB_BFC2EEF0); /* 0xBFC2EEF4: 00000000 nop */ /* nop */ if (psx_taken_BFC2EEF0) goto label_BFC2EED8; @@ -150096,6 +154349,8 @@ label_BFC2EEF8: void func_1FC2EF00(CPUState* cpu) { debug_server_log_call_entry(0x1FC2EF00u); + int psx_taken_BFC2EF20 = 0; + int psx_taken_BFC2EF30 = 0; label_BFC2EF00: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -150124,7 +154379,7 @@ label_BFC2EF18: /* nop */ /* 0xBFC2EF20: 148E0002 bne $a0, $t6, 0xBFC2EF2C */ uint32_t psx_brA_BFC2EF20 = cpu->gpr[4]; uint32_t psx_brB_BFC2EF20 = cpu->gpr[14]; - int psx_taken_BFC2EF20 = (psx_brA_BFC2EF20 != psx_brB_BFC2EF20); + psx_taken_BFC2EF20 = (psx_brA_BFC2EF20 != psx_brB_BFC2EF20); /* 0xBFC2EF24: 00000000 nop */ /* nop */ if (psx_taken_BFC2EF20) goto label_BFC2EF2C; @@ -150144,7 +154399,7 @@ label_BFC2EF2C: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1672)); /* 0xBFC2EF30: 14A2FFF9 bne $a1, $v0, 0xBFC2EF18 */ uint32_t psx_brA_BFC2EF30 = cpu->gpr[5]; uint32_t psx_brB_BFC2EF30 = cpu->gpr[2]; - int psx_taken_BFC2EF30 = (psx_brA_BFC2EF30 != psx_brB_BFC2EF30); + psx_taken_BFC2EF30 = (psx_brA_BFC2EF30 != psx_brB_BFC2EF30); /* 0xBFC2EF34: 00000000 nop */ /* nop */ if (psx_taken_BFC2EF30) goto label_BFC2EF18; @@ -150172,6 +154427,11 @@ void func_1FC2EF40(CPUState* cpu) { default: break; } } + int psx_taken_BFC2EF70 = 0; + int psx_taken_BFC2EF80 = 0; + int psx_taken_BFC2F018 = 0; + int psx_taken_BFC2F028 = 0; + int psx_taken_BFC2F068 = 0; label_BFC2EF40: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -150209,7 +154469,7 @@ label_BFC2EF6C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2EF6Cu); return; } g_debug_last_store_pc = 0xBFC2EF6Cu; cpu->write_word(psx_addr, cpu->gpr[2]); } /* 0xBFC2EF70: 1C400005 bgtz $v0, 0xBFC2EF88 */ uint32_t psx_brA_BFC2EF70 = cpu->gpr[2]; - int psx_taken_BFC2EF70 = ((int32_t)psx_brA_BFC2EF70 > 0); + psx_taken_BFC2EF70 = ((int32_t)psx_brA_BFC2EF70 > 0); /* 0xBFC2EF74: 00008821 addu $s1, $zero, $zero */ cpu->gpr[17] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2EF70) goto label_BFC2EF88; @@ -150224,7 +154484,7 @@ label_BFC2EF78: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (84)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2EF7Cu); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC2EF80: 10000040 beq $zero, $zero, 0xBFC2F084 */ uint32_t psx_brA_BFC2EF80 = cpu->gpr[0]; uint32_t psx_brB_BFC2EF80 = cpu->gpr[0]; - int psx_taken_BFC2EF80 = (psx_brA_BFC2EF80 == psx_brB_BFC2EF80); + psx_taken_BFC2EF80 = (psx_brA_BFC2EF80 == psx_brB_BFC2EF80); /* 0xBFC2EF84: 26730EC8 addiu $s3, $s3, 3784 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (3784)); if (psx_taken_BFC2EF80) goto label_BFC2F084; @@ -150330,7 +154590,7 @@ label_BFC2F014: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[20] < (60) ? 1 : 0); /* 0xBFC2F018: 10200006 beq $at, $zero, 0xBFC2F034 */ uint32_t psx_brA_BFC2F018 = cpu->gpr[1]; uint32_t psx_brB_BFC2F018 = cpu->gpr[0]; - int psx_taken_BFC2F018 = (psx_brA_BFC2F018 == psx_brB_BFC2F018); + psx_taken_BFC2F018 = (psx_brA_BFC2F018 == psx_brB_BFC2F018); /* 0xBFC2F01C: 26B9001E addiu $t9, $s5, 30 */ cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[21] + (30)); if (psx_taken_BFC2F018) goto label_BFC2F034; @@ -150345,7 +154605,7 @@ label_BFC2F020: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F024u); return; } g_debug_last_store_pc = 0xBFC2F024u; cpu->write_word(psx_addr, cpu->gpr[22]); } /* 0xBFC2F028: 10000004 beq $zero, $zero, 0xBFC2F03C */ uint32_t psx_brA_BFC2F028 = cpu->gpr[0]; uint32_t psx_brB_BFC2F028 = cpu->gpr[0]; - int psx_taken_BFC2F028 = (psx_brA_BFC2F028 == psx_brB_BFC2F028); + psx_taken_BFC2F028 = (psx_brA_BFC2F028 == psx_brB_BFC2F028); /* 0xBFC2F02C: AE180004 sw $t8, 4($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F02Cu); return; } g_debug_last_store_pc = 0xBFC2F02Cu; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC2F028) goto label_BFC2F03C; @@ -150394,7 +154654,7 @@ label_BFC2F03C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[11] ? 1 : 0); /* 0xBFC2F068: 1420FFD1 bne $at, $zero, 0xBFC2EFB0 */ uint32_t psx_brA_BFC2F068 = cpu->gpr[1]; uint32_t psx_brB_BFC2F068 = cpu->gpr[0]; - int psx_taken_BFC2F068 = (psx_brA_BFC2F068 != psx_brB_BFC2F068); + psx_taken_BFC2F068 = (psx_brA_BFC2F068 != psx_brB_BFC2F068); /* 0xBFC2F06C: 00000000 nop */ /* nop */ if (psx_taken_BFC2F068) goto label_BFC2EFB0; @@ -150456,6 +154716,8 @@ label_BFC2F084: void func_1FC2F1D4(CPUState* cpu) { debug_server_log_call_entry(0x1FC2F1D4u); + int psx_taken_BFC2F1D8 = 0; + int psx_taken_BFC2F1F4 = 0; label_BFC2F1D4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -150465,7 +154727,7 @@ label_BFC2F1D4: cpu->gpr[2] = cpu->gpr[6] + cpu->gpr[0]; /* 0xBFC2F1D8: 10400008 beq $v0, $zero, 0xBFC2F1FC */ uint32_t psx_brA_BFC2F1D8 = cpu->gpr[2]; uint32_t psx_brB_BFC2F1D8 = cpu->gpr[0]; - int psx_taken_BFC2F1D8 = (psx_brA_BFC2F1D8 == psx_brB_BFC2F1D8); + psx_taken_BFC2F1D8 = (psx_brA_BFC2F1D8 == psx_brB_BFC2F1D8); /* 0xBFC2F1DC: 24C6FFFF addiu $a2, $a2, -1 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); if (psx_taken_BFC2F1D8) goto label_BFC2F1FC; @@ -150486,7 +154748,7 @@ label_BFC2F1E0: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); /* 0xBFC2F1F4: 1440FFFA bne $v0, $zero, 0xBFC2F1E0 */ uint32_t psx_brA_BFC2F1F4 = cpu->gpr[2]; uint32_t psx_brB_BFC2F1F4 = cpu->gpr[0]; - int psx_taken_BFC2F1F4 = (psx_brA_BFC2F1F4 != psx_brB_BFC2F1F4); + psx_taken_BFC2F1F4 = (psx_brA_BFC2F1F4 != psx_brB_BFC2F1F4); /* 0xBFC2F1F8: A0AEFFFF sb $t6, -1($a1) */ g_debug_last_store_pc = 0xBFC2F1F8u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[5] + (-1)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC2F1F4) goto label_BFC2F1E0; @@ -150523,6 +154785,13 @@ void func_1FC2F210(CPUState* cpu) { default: break; } } + int psx_taken_BFC2F220 = 0; + int psx_taken_BFC2F238 = 0; + int psx_taken_BFC2F25C = 0; + int psx_taken_BFC2F328 = 0; + int psx_taken_BFC2F398 = 0; + int psx_taken_BFC2F3BC = 0; + int psx_taken_BFC2F488 = 0; label_BFC2F210: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -150538,7 +154807,7 @@ label_BFC2F210: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F21Cu); return; } g_debug_last_store_pc = 0xBFC2F21Cu; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC2F220: 11C00007 beq $t6, $zero, 0xBFC2F240 */ uint32_t psx_brA_BFC2F220 = cpu->gpr[14]; uint32_t psx_brB_BFC2F220 = cpu->gpr[0]; - int psx_taken_BFC2F220 = (psx_brA_BFC2F220 == psx_brB_BFC2F220); + psx_taken_BFC2F220 = (psx_brA_BFC2F220 == psx_brB_BFC2F220); /* 0xBFC2F224: AFA40028 sw $a0, 40($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (40)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F224u); return; } g_debug_last_store_pc = 0xBFC2F224u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC2F220) goto label_BFC2F240; @@ -150563,7 +154832,7 @@ label_BFC2F230: /* nop */ /* 0xBFC2F238: 104F00F4 beq $v0, $t7, 0xBFC2F60C */ uint32_t psx_brA_BFC2F238 = cpu->gpr[2]; uint32_t psx_brB_BFC2F238 = cpu->gpr[15]; - int psx_taken_BFC2F238 = (psx_brA_BFC2F238 == psx_brB_BFC2F238); + psx_taken_BFC2F238 = (psx_brA_BFC2F238 == psx_brB_BFC2F238); /* 0xBFC2F23C: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F23Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2F238) goto label_BFC2F60C; @@ -150600,7 +154869,7 @@ label_BFC2F254: /* nop */ /* 0xBFC2F25C: 1300005A beq $t8, $zero, 0xBFC2F3C8 */ uint32_t psx_brA_BFC2F25C = cpu->gpr[24]; uint32_t psx_brB_BFC2F25C = cpu->gpr[0]; - int psx_taken_BFC2F25C = (psx_brA_BFC2F25C == psx_brB_BFC2F25C); + psx_taken_BFC2F25C = (psx_brA_BFC2F25C == psx_brB_BFC2F25C); /* 0xBFC2F260: 240C0280 addiu $t4, $zero, 640 */ cpu->gpr[12] = (uint32_t)((int32_t)cpu->gpr[0] + (640)); if (psx_taken_BFC2F25C) goto label_BFC2F3C8; @@ -150733,7 +155002,7 @@ label_BFC2F31C: /* nop */ /* 0xBFC2F328: 11E00017 beq $t7, $zero, 0xBFC2F388 */ uint32_t psx_brA_BFC2F328 = cpu->gpr[15]; uint32_t psx_brB_BFC2F328 = cpu->gpr[0]; - int psx_taken_BFC2F328 = (psx_brA_BFC2F328 == psx_brB_BFC2F328); + psx_taken_BFC2F328 = (psx_brA_BFC2F328 == psx_brB_BFC2F328); /* 0xBFC2F32C: 00000000 nop */ /* nop */ if (psx_taken_BFC2F328) goto label_BFC2F388; @@ -150801,7 +155070,7 @@ label_BFC2F388: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (-2)); /* 0xBFC2F398: 04410002 bgez $v0, 0xBFC2F3A4 */ uint32_t psx_brA_BFC2F398 = cpu->gpr[2]; - int psx_taken_BFC2F398 = ((int32_t)psx_brA_BFC2F398 >= 0); + psx_taken_BFC2F398 = ((int32_t)psx_brA_BFC2F398 >= 0); /* 0xBFC2F39C: 00400821 addu $at, $v0, $zero */ cpu->gpr[1] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC2F398) goto label_BFC2F3A4; @@ -150831,7 +155100,7 @@ label_BFC2F3A4: cpu->gpr[1] = 0x800F0000u; /* 0xBFC2F3BC: 10000053 beq $zero, $zero, 0xBFC2F50C */ uint32_t psx_brA_BFC2F3BC = cpu->gpr[0]; uint32_t psx_brB_BFC2F3BC = cpu->gpr[0]; - int psx_taken_BFC2F3BC = (psx_brA_BFC2F3BC == psx_brB_BFC2F3BC); + psx_taken_BFC2F3BC = (psx_brA_BFC2F3BC == psx_brB_BFC2F3BC); /* 0xBFC2F3C0: A422BCF2 sh $v0, -17166($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-17166)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F3C0u); return; } g_debug_last_store_pc = 0xBFC2F3C0u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[2] & 0xFFFFu)); } if (psx_taken_BFC2F3BC) goto label_BFC2F50C; @@ -150969,7 +155238,7 @@ label_BFC2F47C: /* nop */ /* 0xBFC2F488: 11400017 beq $t2, $zero, 0xBFC2F4E8 */ uint32_t psx_brA_BFC2F488 = cpu->gpr[10]; uint32_t psx_brB_BFC2F488 = cpu->gpr[0]; - int psx_taken_BFC2F488 = (psx_brA_BFC2F488 == psx_brB_BFC2F488); + psx_taken_BFC2F488 = (psx_brA_BFC2F488 == psx_brB_BFC2F488); /* 0xBFC2F48C: 00000000 nop */ /* nop */ if (psx_taken_BFC2F488) goto label_BFC2F4E8; @@ -151214,6 +155483,8 @@ void func_1FC2F618(CPUState* cpu) { default: break; } } + int psx_taken_BFC2F624 = 0; + int psx_taken_BFC2F634 = 0; label_BFC2F618: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -151227,7 +155498,7 @@ label_BFC2F618: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC2F624: 10400002 beq $v0, $zero, 0xBFC2F630 */ uint32_t psx_brA_BFC2F624 = cpu->gpr[2]; uint32_t psx_brB_BFC2F624 = cpu->gpr[0]; - int psx_taken_BFC2F624 = (psx_brA_BFC2F624 == psx_brB_BFC2F624); + psx_taken_BFC2F624 = (psx_brA_BFC2F624 == psx_brB_BFC2F624); /* 0xBFC2F628: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F628u); return; } g_debug_last_store_pc = 0xBFC2F628u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC2F624) goto label_BFC2F630; @@ -151247,7 +155518,7 @@ label_BFC2F630: cpu->gpr[1] = 0x80080000u; /* 0xBFC2F634: 14400005 bne $v0, $zero, 0xBFC2F64C */ uint32_t psx_brA_BFC2F634 = cpu->gpr[2]; uint32_t psx_brB_BFC2F634 = cpu->gpr[0]; - int psx_taken_BFC2F634 = (psx_brA_BFC2F634 != psx_brB_BFC2F634); + psx_taken_BFC2F634 = (psx_brA_BFC2F634 != psx_brB_BFC2F634); /* 0xBFC2F638: AC228374 sw $v0, -31884($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31884)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F638u); return; } g_debug_last_store_pc = 0xBFC2F638u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC2F634) goto label_BFC2F64C; @@ -151297,6 +155568,8 @@ void func_1FC2F65C(CPUState* cpu) { default: break; } } + int psx_taken_BFC2F668 = 0; + int psx_taken_BFC2F678 = 0; label_BFC2F65C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -151310,7 +155583,7 @@ label_BFC2F65C: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC2F668: 10400002 beq $v0, $zero, 0xBFC2F674 */ uint32_t psx_brA_BFC2F668 = cpu->gpr[2]; uint32_t psx_brB_BFC2F668 = cpu->gpr[0]; - int psx_taken_BFC2F668 = (psx_brA_BFC2F668 == psx_brB_BFC2F668); + psx_taken_BFC2F668 = (psx_brA_BFC2F668 == psx_brB_BFC2F668); /* 0xBFC2F66C: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F66Cu); return; } g_debug_last_store_pc = 0xBFC2F66Cu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC2F668) goto label_BFC2F674; @@ -151330,7 +155603,7 @@ label_BFC2F674: cpu->gpr[1] = 0x80080000u; /* 0xBFC2F678: 14400005 bne $v0, $zero, 0xBFC2F690 */ uint32_t psx_brA_BFC2F678 = cpu->gpr[2]; uint32_t psx_brB_BFC2F678 = cpu->gpr[0]; - int psx_taken_BFC2F678 = (psx_brA_BFC2F678 != psx_brB_BFC2F678); + psx_taken_BFC2F678 = (psx_brA_BFC2F678 != psx_brB_BFC2F678); /* 0xBFC2F67C: AC228374 sw $v0, -31884($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-31884)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F67Cu); return; } g_debug_last_store_pc = 0xBFC2F67Cu; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC2F678) goto label_BFC2F690; @@ -151379,6 +155652,10 @@ void func_1FC2F6A0(CPUState* cpu) { default: break; } } + int psx_taken_BFC2F6B4 = 0; + int psx_taken_BFC2F6C0 = 0; + int psx_taken_BFC2F6F0 = 0; + int psx_taken_BFC2F6F8 = 0; label_BFC2F6A0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -151396,7 +155673,7 @@ label_BFC2F6A0: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC2F6B4: 14430004 bne $v0, $v1, 0xBFC2F6C8 */ uint32_t psx_brA_BFC2F6B4 = cpu->gpr[2]; uint32_t psx_brB_BFC2F6B4 = cpu->gpr[3]; - int psx_taken_BFC2F6B4 = (psx_brA_BFC2F6B4 != psx_brB_BFC2F6B4); + psx_taken_BFC2F6B4 = (psx_brA_BFC2F6B4 != psx_brB_BFC2F6B4); /* 0xBFC2F6B8: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F6B8u); return; } g_debug_last_store_pc = 0xBFC2F6B8u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC2F6B4) goto label_BFC2F6C8; @@ -151409,7 +155686,7 @@ label_BFC2F6BC: cpu->gpr[2] = 0x800F0000u; /* 0xBFC2F6C0: 10000002 beq $zero, $zero, 0xBFC2F6CC */ uint32_t psx_brA_BFC2F6C0 = cpu->gpr[0]; uint32_t psx_brB_BFC2F6C0 = cpu->gpr[0]; - int psx_taken_BFC2F6C0 = (psx_brA_BFC2F6C0 == psx_brB_BFC2F6C0); + psx_taken_BFC2F6C0 = (psx_brA_BFC2F6C0 == psx_brB_BFC2F6C0); /* 0xBFC2F6C4: 2442BC88 addiu $v0, $v0, -17272 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (-17272)); if (psx_taken_BFC2F6C0) goto label_BFC2F6CC; @@ -151451,7 +155728,7 @@ label_BFC2F6E0: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (-22424)); /* 0xBFC2F6F0: 14430004 bne $v0, $v1, 0xBFC2F704 */ uint32_t psx_brA_BFC2F6F0 = cpu->gpr[2]; uint32_t psx_brB_BFC2F6F0 = cpu->gpr[3]; - int psx_taken_BFC2F6F0 = (psx_brA_BFC2F6F0 != psx_brB_BFC2F6F0); + psx_taken_BFC2F6F0 = (psx_brA_BFC2F6F0 != psx_brB_BFC2F6F0); /* 0xBFC2F6F4: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC2F6F0) goto label_BFC2F704; @@ -151462,7 +155739,7 @@ label_BFC2F6F8: psx_check_interrupts(cpu); /* 0xBFC2F6F8: 10000002 beq $zero, $zero, 0xBFC2F704 */ uint32_t psx_brA_BFC2F6F8 = cpu->gpr[0]; uint32_t psx_brB_BFC2F6F8 = cpu->gpr[0]; - int psx_taken_BFC2F6F8 = (psx_brA_BFC2F6F8 == psx_brB_BFC2F6F8); + psx_taken_BFC2F6F8 = (psx_brA_BFC2F6F8 == psx_brB_BFC2F6F8); /* 0xBFC2F6FC: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC2F6F8) goto label_BFC2F704; @@ -151504,6 +155781,8 @@ void func_1FC2F718(CPUState* cpu) { default: break; } } + int psx_taken_BFC2F76C = 0; + int psx_taken_BFC2F77C = 0; label_BFC2F718: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -151583,7 +155862,7 @@ label_BFC2F760: /* nop */ /* 0xBFC2F76C: 15C00005 bne $t6, $zero, 0xBFC2F784 */ uint32_t psx_brA_BFC2F76C = cpu->gpr[14]; uint32_t psx_brB_BFC2F76C = cpu->gpr[0]; - int psx_taken_BFC2F76C = (psx_brA_BFC2F76C != psx_brB_BFC2F76C); + psx_taken_BFC2F76C = (psx_brA_BFC2F76C != psx_brB_BFC2F76C); /* 0xBFC2F770: 00000000 nop */ /* nop */ if (psx_taken_BFC2F76C) goto label_BFC2F784; @@ -151598,7 +155877,7 @@ label_BFC2F774: cpu->gpr[1] = 0x80080000u; /* 0xBFC2F77C: 10000003 beq $zero, $zero, 0xBFC2F78C */ uint32_t psx_brA_BFC2F77C = cpu->gpr[0]; uint32_t psx_brB_BFC2F77C = cpu->gpr[0]; - int psx_taken_BFC2F77C = (psx_brA_BFC2F77C == psx_brB_BFC2F77C); + psx_taken_BFC2F77C = (psx_brA_BFC2F77C == psx_brB_BFC2F77C); /* 0xBFC2F780: AC2F9E24 sw $t7, -25052($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25052)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F780u); return; } g_debug_last_store_pc = 0xBFC2F780u; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC2F77C) goto label_BFC2F78C; @@ -151713,6 +155992,8 @@ void func_1FC2F808(CPUState* cpu) { default: break; } } + int psx_taken_BFC2F828 = 0; + int psx_taken_BFC2F838 = 0; label_BFC2F808: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -151742,7 +156023,7 @@ label_BFC2F81C: cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; /* 0xBFC2F828: 144E0005 bne $v0, $t6, 0xBFC2F840 */ uint32_t psx_brA_BFC2F828 = cpu->gpr[2]; uint32_t psx_brB_BFC2F828 = cpu->gpr[14]; - int psx_taken_BFC2F828 = (psx_brA_BFC2F828 != psx_brB_BFC2F828); + psx_taken_BFC2F828 = (psx_brA_BFC2F828 != psx_brB_BFC2F828); /* 0xBFC2F82C: 00000000 nop */ /* nop */ if (psx_taken_BFC2F828) goto label_BFC2F840; @@ -151757,7 +156038,7 @@ label_BFC2F830: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[15] + (-31888)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F834u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } /* 0xBFC2F838: 10000004 beq $zero, $zero, 0xBFC2F84C */ uint32_t psx_brA_BFC2F838 = cpu->gpr[0]; uint32_t psx_brB_BFC2F838 = cpu->gpr[0]; - int psx_taken_BFC2F838 = (psx_brA_BFC2F838 == psx_brB_BFC2F838); + psx_taken_BFC2F838 = (psx_brA_BFC2F838 == psx_brB_BFC2F838); /* 0xBFC2F83C: 006F1024 and $v0, $v1, $t7 */ cpu->gpr[2] = cpu->gpr[3] & cpu->gpr[15]; if (psx_taken_BFC2F838) goto label_BFC2F84C; @@ -151799,6 +156080,7 @@ void func_1FC2F85C(CPUState* cpu) { default: break; } } + int psx_taken_BFC2F890 = 0; label_BFC2F85C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -151855,7 +156137,7 @@ label_BFC2F88C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC2F890: 1611FFF8 bne $s0, $s1, 0xBFC2F874 */ uint32_t psx_brA_BFC2F890 = cpu->gpr[16]; uint32_t psx_brB_BFC2F890 = cpu->gpr[17]; - int psx_taken_BFC2F890 = (psx_brA_BFC2F890 != psx_brB_BFC2F890); + psx_taken_BFC2F890 = (psx_brA_BFC2F890 != psx_brB_BFC2F890); /* 0xBFC2F894: 00000000 nop */ /* nop */ if (psx_taken_BFC2F890) goto label_BFC2F874; @@ -151889,6 +156171,20 @@ void func_1FC2F8AC(CPUState* cpu) { default: break; } } + int psx_taken_BFC2F91C = 0; + int psx_taken_BFC2F92C = 0; + int psx_taken_BFC2F934 = 0; + int psx_taken_BFC2F940 = 0; + int psx_taken_BFC2F950 = 0; + int psx_taken_BFC2F958 = 0; + int psx_taken_BFC2F964 = 0; + int psx_taken_BFC2F974 = 0; + int psx_taken_BFC2F97C = 0; + int psx_taken_BFC2F988 = 0; + int psx_taken_BFC2F99C = 0; + int psx_taken_BFC2F9B8 = 0; + int psx_taken_BFC2FA20 = 0; + int psx_taken_BFC2FA40 = 0; label_BFC2F8AC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(30u); @@ -151952,7 +156248,7 @@ label_BFC2F8AC: cpu->gpr[23] = (uint32_t)((int32_t)cpu->gpr[23] >> 16u); /* 0xBFC2F91C: 16800002 bne $s4, $zero, 0xBFC2F928 */ uint32_t psx_brA_BFC2F91C = cpu->gpr[20]; uint32_t psx_brB_BFC2F91C = cpu->gpr[0]; - int psx_taken_BFC2F91C = (psx_brA_BFC2F91C != psx_brB_BFC2F91C); + psx_taken_BFC2F91C = (psx_brA_BFC2F91C != psx_brB_BFC2F91C); /* 0xBFC2F920: 00000000 nop */ /* nop */ if (psx_taken_BFC2F91C) goto label_BFC2F928; @@ -151972,7 +156268,7 @@ label_BFC2F928: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2F92C: 16810004 bne $s4, $at, 0xBFC2F940 */ uint32_t psx_brA_BFC2F92C = cpu->gpr[20]; uint32_t psx_brB_BFC2F92C = cpu->gpr[1]; - int psx_taken_BFC2F92C = (psx_brA_BFC2F92C != psx_brB_BFC2F92C); + psx_taken_BFC2F92C = (psx_brA_BFC2F92C != psx_brB_BFC2F92C); /* 0xBFC2F930: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC2F92C) goto label_BFC2F940; @@ -151983,7 +156279,7 @@ label_BFC2F934: psx_check_interrupts(cpu); /* 0xBFC2F934: 14410002 bne $v0, $at, 0xBFC2F940 */ uint32_t psx_brA_BFC2F934 = cpu->gpr[2]; uint32_t psx_brB_BFC2F934 = cpu->gpr[1]; - int psx_taken_BFC2F934 = (psx_brA_BFC2F934 != psx_brB_BFC2F934); + psx_taken_BFC2F934 = (psx_brA_BFC2F934 != psx_brB_BFC2F934); /* 0xBFC2F938: 00000000 nop */ /* nop */ if (psx_taken_BFC2F934) goto label_BFC2F940; @@ -152001,7 +156297,7 @@ label_BFC2F940: psx_check_interrupts(cpu); /* 0xBFC2F940: 16800002 bne $s4, $zero, 0xBFC2F94C */ uint32_t psx_brA_BFC2F940 = cpu->gpr[20]; uint32_t psx_brB_BFC2F940 = cpu->gpr[0]; - int psx_taken_BFC2F940 = (psx_brA_BFC2F940 != psx_brB_BFC2F940); + psx_taken_BFC2F940 = (psx_brA_BFC2F940 != psx_brB_BFC2F940); /* 0xBFC2F944: 00000000 nop */ /* nop */ if (psx_taken_BFC2F940) goto label_BFC2F94C; @@ -152021,7 +156317,7 @@ label_BFC2F94C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2F950: 16810004 bne $s4, $at, 0xBFC2F964 */ uint32_t psx_brA_BFC2F950 = cpu->gpr[20]; uint32_t psx_brB_BFC2F950 = cpu->gpr[1]; - int psx_taken_BFC2F950 = (psx_brA_BFC2F950 != psx_brB_BFC2F950); + psx_taken_BFC2F950 = (psx_brA_BFC2F950 != psx_brB_BFC2F950); /* 0xBFC2F954: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC2F950) goto label_BFC2F964; @@ -152032,7 +156328,7 @@ label_BFC2F958: psx_check_interrupts(cpu); /* 0xBFC2F958: 14610002 bne $v1, $at, 0xBFC2F964 */ uint32_t psx_brA_BFC2F958 = cpu->gpr[3]; uint32_t psx_brB_BFC2F958 = cpu->gpr[1]; - int psx_taken_BFC2F958 = (psx_brA_BFC2F958 != psx_brB_BFC2F958); + psx_taken_BFC2F958 = (psx_brA_BFC2F958 != psx_brB_BFC2F958); /* 0xBFC2F95C: 00000000 nop */ /* nop */ if (psx_taken_BFC2F958) goto label_BFC2F964; @@ -152050,7 +156346,7 @@ label_BFC2F964: psx_check_interrupts(cpu); /* 0xBFC2F964: 16800002 bne $s4, $zero, 0xBFC2F970 */ uint32_t psx_brA_BFC2F964 = cpu->gpr[20]; uint32_t psx_brB_BFC2F964 = cpu->gpr[0]; - int psx_taken_BFC2F964 = (psx_brA_BFC2F964 != psx_brB_BFC2F964); + psx_taken_BFC2F964 = (psx_brA_BFC2F964 != psx_brB_BFC2F964); /* 0xBFC2F968: 00000000 nop */ /* nop */ if (psx_taken_BFC2F964) goto label_BFC2F970; @@ -152070,7 +156366,7 @@ label_BFC2F970: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2F974: 16810004 bne $s4, $at, 0xBFC2F988 */ uint32_t psx_brA_BFC2F974 = cpu->gpr[20]; uint32_t psx_brB_BFC2F974 = cpu->gpr[1]; - int psx_taken_BFC2F974 = (psx_brA_BFC2F974 != psx_brB_BFC2F974); + psx_taken_BFC2F974 = (psx_brA_BFC2F974 != psx_brB_BFC2F974); /* 0xBFC2F978: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC2F974) goto label_BFC2F988; @@ -152081,7 +156377,7 @@ label_BFC2F97C: psx_check_interrupts(cpu); /* 0xBFC2F97C: 14A10002 bne $a1, $at, 0xBFC2F988 */ uint32_t psx_brA_BFC2F97C = cpu->gpr[5]; uint32_t psx_brB_BFC2F97C = cpu->gpr[1]; - int psx_taken_BFC2F97C = (psx_brA_BFC2F97C != psx_brB_BFC2F97C); + psx_taken_BFC2F97C = (psx_brA_BFC2F97C != psx_brB_BFC2F97C); /* 0xBFC2F980: 00000000 nop */ /* nop */ if (psx_taken_BFC2F97C) goto label_BFC2F988; @@ -152099,7 +156395,7 @@ label_BFC2F988: psx_check_interrupts(cpu); /* 0xBFC2F988: 06800034 bltz $s4, 0xBFC2FA5C */ uint32_t psx_brA_BFC2F988 = cpu->gpr[20]; - int psx_taken_BFC2F988 = ((int32_t)psx_brA_BFC2F988 < 0); + psx_taken_BFC2F988 = ((int32_t)psx_brA_BFC2F988 < 0); /* 0xBFC2F98C: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2F98Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2F988) goto label_BFC2FA5C; @@ -152121,7 +156417,7 @@ label_BFC2F99C: psx_check_interrupts(cpu); /* 0xBFC2F99C: 16740008 bne $s3, $s4, 0xBFC2F9C0 */ uint32_t psx_brA_BFC2F99C = cpu->gpr[19]; uint32_t psx_brB_BFC2F99C = cpu->gpr[20]; - int psx_taken_BFC2F99C = (psx_brA_BFC2F99C != psx_brB_BFC2F99C); + psx_taken_BFC2F99C = (psx_brA_BFC2F99C != psx_brB_BFC2F99C); /* 0xBFC2F9A0: 00000000 nop */ /* nop */ if (psx_taken_BFC2F99C) goto label_BFC2F9C0; @@ -152142,7 +156438,7 @@ label_BFC2F9A4: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] >> 16u); /* 0xBFC2F9B8: 1000000D beq $zero, $zero, 0xBFC2F9F0 */ uint32_t psx_brA_BFC2F9B8 = cpu->gpr[0]; uint32_t psx_brB_BFC2F9B8 = cpu->gpr[0]; - int psx_taken_BFC2F9B8 = (psx_brA_BFC2F9B8 == psx_brB_BFC2F9B8); + psx_taken_BFC2F9B8 = (psx_brA_BFC2F9B8 == psx_brB_BFC2F9B8); /* 0xBFC2F9BC: 00129403 sra $s2, $s2, 16 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] >> 16u); if (psx_taken_BFC2F9B8) goto label_BFC2F9F0; @@ -152230,7 +156526,7 @@ label_BFC2FA18: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[20] < (int32_t)cpu->gpr[19] ? 1 : 0); /* 0xBFC2FA20: 1420000A bne $at, $zero, 0xBFC2FA4C */ uint32_t psx_brA_BFC2FA20 = cpu->gpr[1]; uint32_t psx_brB_BFC2FA20 = cpu->gpr[0]; - int psx_taken_BFC2FA20 = (psx_brA_BFC2FA20 != psx_brB_BFC2FA20); + psx_taken_BFC2FA20 = (psx_brA_BFC2FA20 != psx_brB_BFC2FA20); /* 0xBFC2FA24: 8FB00038 lw $s0, 56($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2FA24u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC2FA20) goto label_BFC2FA4C; @@ -152253,7 +156549,7 @@ label_BFC2FA28: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (-31908)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2FA3Cu); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC2FA40: 1000FFD6 beq $zero, $zero, 0xBFC2F99C */ uint32_t psx_brA_BFC2FA40 = cpu->gpr[0]; uint32_t psx_brB_BFC2FA40 = cpu->gpr[0]; - int psx_taken_BFC2FA40 = (psx_brA_BFC2FA40 == psx_brB_BFC2FA40); + psx_taken_BFC2FA40 = (psx_brA_BFC2FA40 == psx_brB_BFC2FA40); /* 0xBFC2FA44: 00000000 nop */ /* nop */ if (psx_taken_BFC2FA40) goto label_BFC2F99C; @@ -152312,6 +156608,17 @@ void func_1FC2FA78(CPUState* cpu) { default: break; } } + int psx_taken_BFC2FAE4 = 0; + int psx_taken_BFC2FAF4 = 0; + int psx_taken_BFC2FAFC = 0; + int psx_taken_BFC2FB08 = 0; + int psx_taken_BFC2FB18 = 0; + int psx_taken_BFC2FB20 = 0; + int psx_taken_BFC2FB2C = 0; + int psx_taken_BFC2FB3C = 0; + int psx_taken_BFC2FB44 = 0; + int psx_taken_BFC2FB50 = 0; + int psx_taken_BFC2FBD4 = 0; label_BFC2FA78: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(29u); @@ -152373,7 +156680,7 @@ label_BFC2FA78: cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[22] >> 16u); /* 0xBFC2FAE4: 14800002 bne $a0, $zero, 0xBFC2FAF0 */ uint32_t psx_brA_BFC2FAE4 = cpu->gpr[4]; uint32_t psx_brB_BFC2FAE4 = cpu->gpr[0]; - int psx_taken_BFC2FAE4 = (psx_brA_BFC2FAE4 != psx_brB_BFC2FAE4); + psx_taken_BFC2FAE4 = (psx_brA_BFC2FAE4 != psx_brB_BFC2FAE4); /* 0xBFC2FAE8: 00000000 nop */ /* nop */ if (psx_taken_BFC2FAE4) goto label_BFC2FAF0; @@ -152393,7 +156700,7 @@ label_BFC2FAF0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2FAF4: 14810004 bne $a0, $at, 0xBFC2FB08 */ uint32_t psx_brA_BFC2FAF4 = cpu->gpr[4]; uint32_t psx_brB_BFC2FAF4 = cpu->gpr[1]; - int psx_taken_BFC2FAF4 = (psx_brA_BFC2FAF4 != psx_brB_BFC2FAF4); + psx_taken_BFC2FAF4 = (psx_brA_BFC2FAF4 != psx_brB_BFC2FAF4); /* 0xBFC2FAF8: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC2FAF4) goto label_BFC2FB08; @@ -152404,7 +156711,7 @@ label_BFC2FAFC: psx_check_interrupts(cpu); /* 0xBFC2FAFC: 15C10002 bne $t6, $at, 0xBFC2FB08 */ uint32_t psx_brA_BFC2FAFC = cpu->gpr[14]; uint32_t psx_brB_BFC2FAFC = cpu->gpr[1]; - int psx_taken_BFC2FAFC = (psx_brA_BFC2FAFC != psx_brB_BFC2FAFC); + psx_taken_BFC2FAFC = (psx_brA_BFC2FAFC != psx_brB_BFC2FAFC); /* 0xBFC2FB00: 00000000 nop */ /* nop */ if (psx_taken_BFC2FAFC) goto label_BFC2FB08; @@ -152422,7 +156729,7 @@ label_BFC2FB08: psx_check_interrupts(cpu); /* 0xBFC2FB08: 14800002 bne $a0, $zero, 0xBFC2FB14 */ uint32_t psx_brA_BFC2FB08 = cpu->gpr[4]; uint32_t psx_brB_BFC2FB08 = cpu->gpr[0]; - int psx_taken_BFC2FB08 = (psx_brA_BFC2FB08 != psx_brB_BFC2FB08); + psx_taken_BFC2FB08 = (psx_brA_BFC2FB08 != psx_brB_BFC2FB08); /* 0xBFC2FB0C: 00000000 nop */ /* nop */ if (psx_taken_BFC2FB08) goto label_BFC2FB14; @@ -152442,7 +156749,7 @@ label_BFC2FB14: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2FB18: 14810004 bne $a0, $at, 0xBFC2FB2C */ uint32_t psx_brA_BFC2FB18 = cpu->gpr[4]; uint32_t psx_brB_BFC2FB18 = cpu->gpr[1]; - int psx_taken_BFC2FB18 = (psx_brA_BFC2FB18 != psx_brB_BFC2FB18); + psx_taken_BFC2FB18 = (psx_brA_BFC2FB18 != psx_brB_BFC2FB18); /* 0xBFC2FB1C: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC2FB18) goto label_BFC2FB2C; @@ -152453,7 +156760,7 @@ label_BFC2FB20: psx_check_interrupts(cpu); /* 0xBFC2FB20: 15E10002 bne $t7, $at, 0xBFC2FB2C */ uint32_t psx_brA_BFC2FB20 = cpu->gpr[15]; uint32_t psx_brB_BFC2FB20 = cpu->gpr[1]; - int psx_taken_BFC2FB20 = (psx_brA_BFC2FB20 != psx_brB_BFC2FB20); + psx_taken_BFC2FB20 = (psx_brA_BFC2FB20 != psx_brB_BFC2FB20); /* 0xBFC2FB24: 00000000 nop */ /* nop */ if (psx_taken_BFC2FB20) goto label_BFC2FB2C; @@ -152471,7 +156778,7 @@ label_BFC2FB2C: psx_check_interrupts(cpu); /* 0xBFC2FB2C: 14800002 bne $a0, $zero, 0xBFC2FB38 */ uint32_t psx_brA_BFC2FB2C = cpu->gpr[4]; uint32_t psx_brB_BFC2FB2C = cpu->gpr[0]; - int psx_taken_BFC2FB2C = (psx_brA_BFC2FB2C != psx_brB_BFC2FB2C); + psx_taken_BFC2FB2C = (psx_brA_BFC2FB2C != psx_brB_BFC2FB2C); /* 0xBFC2FB30: 00000000 nop */ /* nop */ if (psx_taken_BFC2FB2C) goto label_BFC2FB38; @@ -152491,7 +156798,7 @@ label_BFC2FB38: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC2FB3C: 14810004 bne $a0, $at, 0xBFC2FB50 */ uint32_t psx_brA_BFC2FB3C = cpu->gpr[4]; uint32_t psx_brB_BFC2FB3C = cpu->gpr[1]; - int psx_taken_BFC2FB3C = (psx_brA_BFC2FB3C != psx_brB_BFC2FB3C); + psx_taken_BFC2FB3C = (psx_brA_BFC2FB3C != psx_brB_BFC2FB3C); /* 0xBFC2FB40: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC2FB3C) goto label_BFC2FB50; @@ -152502,7 +156809,7 @@ label_BFC2FB44: psx_check_interrupts(cpu); /* 0xBFC2FB44: 17010002 bne $t8, $at, 0xBFC2FB50 */ uint32_t psx_brA_BFC2FB44 = cpu->gpr[24]; uint32_t psx_brB_BFC2FB44 = cpu->gpr[1]; - int psx_taken_BFC2FB44 = (psx_brA_BFC2FB44 != psx_brB_BFC2FB44); + psx_taken_BFC2FB44 = (psx_brA_BFC2FB44 != psx_brB_BFC2FB44); /* 0xBFC2FB48: 00000000 nop */ /* nop */ if (psx_taken_BFC2FB44) goto label_BFC2FB50; @@ -152520,7 +156827,7 @@ label_BFC2FB50: psx_check_interrupts(cpu); /* 0xBFC2FB50: 18800026 blez $a0, 0xBFC2FBEC */ uint32_t psx_brA_BFC2FB50 = cpu->gpr[4]; - int psx_taken_BFC2FB50 = ((int32_t)psx_brA_BFC2FB50 <= 0); + psx_taken_BFC2FB50 = ((int32_t)psx_brA_BFC2FB50 <= 0); /* 0xBFC2FB54: 00000000 nop */ /* nop */ if (psx_taken_BFC2FB50) goto label_BFC2FBEC; @@ -152622,7 +156929,7 @@ label_BFC2FBC8: cpu->gpr[17] = cpu->gpr[17] - cpu->gpr[21]; /* 0xBFC2FBD4: 1E60FFEF bgtz $s3, 0xBFC2FB94 */ uint32_t psx_brA_BFC2FBD4 = cpu->gpr[19]; - int psx_taken_BFC2FBD4 = ((int32_t)psx_brA_BFC2FBD4 > 0); + psx_taken_BFC2FBD4 = ((int32_t)psx_brA_BFC2FBD4 > 0); /* 0xBFC2FBD8: 02569023 subu $s2, $s2, $s6 */ cpu->gpr[18] = cpu->gpr[18] - cpu->gpr[22]; if (psx_taken_BFC2FBD4) goto label_BFC2FB94; @@ -152719,6 +157026,13 @@ void func_1FC2FCC4(CPUState* cpu) { default: break; } } + int psx_taken_BFC2FCD4 = 0; + int psx_taken_BFC2FD64 = 0; + int psx_taken_BFC2FDF4 = 0; + int psx_taken_BFC2FE38 = 0; + int psx_taken_BFC2FE40 = 0; + int psx_taken_BFC2FE4C = 0; + int psx_taken_BFC2FE54 = 0; label_BFC2FCC4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -152734,7 +157048,7 @@ label_BFC2FCC4: cpu->gpr[8] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC2FCD4: 1000005A beq $zero, $zero, 0xBFC2FE40 */ uint32_t psx_brA_BFC2FCD4 = cpu->gpr[0]; uint32_t psx_brB_BFC2FCD4 = cpu->gpr[0]; - int psx_taken_BFC2FCD4 = (psx_brA_BFC2FCD4 == psx_brB_BFC2FCD4); + psx_taken_BFC2FCD4 = (psx_brA_BFC2FCD4 == psx_brB_BFC2FCD4); /* 0xBFC2FCD8: 00C04821 addu $t1, $a2, $zero */ cpu->gpr[9] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC2FCD4) goto label_BFC2FE40; @@ -152825,7 +157139,7 @@ label_BFC2FD64: psx_check_interrupts(cpu); /* 0xBFC2FD64: 1000003E beq $zero, $zero, 0xBFC2FE60 */ uint32_t psx_brA_BFC2FD64 = cpu->gpr[0]; uint32_t psx_brB_BFC2FD64 = cpu->gpr[0]; - int psx_taken_BFC2FD64 = (psx_brA_BFC2FD64 == psx_brB_BFC2FD64); + psx_taken_BFC2FD64 = (psx_brA_BFC2FD64 == psx_brB_BFC2FD64); /* 0xBFC2FD68: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2FD68u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2FD64) goto label_BFC2FE60; @@ -152916,7 +157230,7 @@ label_BFC2FDF4: psx_check_interrupts(cpu); /* 0xBFC2FDF4: 1000001A beq $zero, $zero, 0xBFC2FE60 */ uint32_t psx_brA_BFC2FDF4 = cpu->gpr[0]; uint32_t psx_brB_BFC2FDF4 = cpu->gpr[0]; - int psx_taken_BFC2FDF4 = (psx_brA_BFC2FDF4 == psx_brB_BFC2FDF4); + psx_taken_BFC2FDF4 = (psx_brA_BFC2FDF4 == psx_brB_BFC2FDF4); /* 0xBFC2FDF8: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2FDF8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2FDF4) goto label_BFC2FE60; @@ -152963,7 +157277,7 @@ label_BFC2FE38: psx_check_interrupts(cpu); /* 0xBFC2FE38: 10000009 beq $zero, $zero, 0xBFC2FE60 */ uint32_t psx_brA_BFC2FE38 = cpu->gpr[0]; uint32_t psx_brB_BFC2FE38 = cpu->gpr[0]; - int psx_taken_BFC2FE38 = (psx_brA_BFC2FE38 == psx_brB_BFC2FE38); + psx_taken_BFC2FE38 = (psx_brA_BFC2FE38 == psx_brB_BFC2FE38); /* 0xBFC2FE3C: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2FE3Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2FE38) goto label_BFC2FE60; @@ -152974,7 +157288,7 @@ label_BFC2FE40: psx_check_interrupts(cpu); /* 0xBFC2FE40: 10E0FFA6 beq $a3, $zero, 0xBFC2FCDC */ uint32_t psx_brA_BFC2FE40 = cpu->gpr[7]; uint32_t psx_brB_BFC2FE40 = cpu->gpr[0]; - int psx_taken_BFC2FE40 = (psx_brA_BFC2FE40 == psx_brB_BFC2FE40); + psx_taken_BFC2FE40 = (psx_brA_BFC2FE40 == psx_brB_BFC2FE40); /* 0xBFC2FE44: 00000000 nop */ /* nop */ if (psx_taken_BFC2FE40) goto label_BFC2FCDC; @@ -152987,7 +157301,7 @@ label_BFC2FE48: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC2FE4C: 10E2FFC7 beq $a3, $v0, 0xBFC2FD6C */ uint32_t psx_brA_BFC2FE4C = cpu->gpr[7]; uint32_t psx_brB_BFC2FE4C = cpu->gpr[2]; - int psx_taken_BFC2FE4C = (psx_brA_BFC2FE4C == psx_brB_BFC2FE4C); + psx_taken_BFC2FE4C = (psx_brA_BFC2FE4C == psx_brB_BFC2FE4C); /* 0xBFC2FE50: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC2FE4C) goto label_BFC2FD6C; @@ -152998,7 +157312,7 @@ label_BFC2FE54: psx_check_interrupts(cpu); /* 0xBFC2FE54: 10E1FFE9 beq $a3, $at, 0xBFC2FDFC */ uint32_t psx_brA_BFC2FE54 = cpu->gpr[7]; uint32_t psx_brB_BFC2FE54 = cpu->gpr[1]; - int psx_taken_BFC2FE54 = (psx_brA_BFC2FE54 == psx_brB_BFC2FE54); + psx_taken_BFC2FE54 = (psx_brA_BFC2FE54 == psx_brB_BFC2FE54); /* 0xBFC2FE58: 00000000 nop */ /* nop */ if (psx_taken_BFC2FE54) goto label_BFC2FDFC; @@ -153033,6 +157347,9 @@ void func_1FC2FE6C(CPUState* cpu) { default: break; } } + int psx_taken_BFC2FEAC = 0; + int psx_taken_BFC2FED8 = 0; + int psx_taken_BFC2FF18 = 0; label_BFC2FE6C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -153078,7 +157395,7 @@ label_BFC2FEAC: psx_check_interrupts(cpu); /* 0xBFC2FEAC: 10400005 beq $v0, $zero, 0xBFC2FEC4 */ uint32_t psx_brA_BFC2FEAC = cpu->gpr[2]; uint32_t psx_brB_BFC2FEAC = cpu->gpr[0]; - int psx_taken_BFC2FEAC = (psx_brA_BFC2FEAC == psx_brB_BFC2FEAC); + psx_taken_BFC2FEAC = (psx_brA_BFC2FEAC == psx_brB_BFC2FEAC); /* 0xBFC2FEB0: 00000000 nop */ /* nop */ if (psx_taken_BFC2FEAC) goto label_BFC2FEC4; @@ -153112,7 +157429,7 @@ label_BFC2FEC4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[10] < (int32_t)cpu->gpr[13] ? 1 : 0); /* 0xBFC2FED8: 10200012 beq $at, $zero, 0xBFC2FF24 */ uint32_t psx_brA_BFC2FED8 = cpu->gpr[1]; uint32_t psx_brB_BFC2FED8 = cpu->gpr[0]; - int psx_taken_BFC2FED8 = (psx_brA_BFC2FED8 == psx_brB_BFC2FED8); + psx_taken_BFC2FED8 = (psx_brA_BFC2FED8 == psx_brB_BFC2FED8); /* 0xBFC2FEDC: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC2FEDCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC2FED8) goto label_BFC2FF24; @@ -153157,7 +157474,7 @@ label_BFC2FEEC: cpu->gpr[15] = cpu->gpr[14] << 2u; /* 0xBFC2FF18: 1420FFF1 bne $at, $zero, 0xBFC2FEE0 */ uint32_t psx_brA_BFC2FF18 = cpu->gpr[1]; uint32_t psx_brB_BFC2FF18 = cpu->gpr[0]; - int psx_taken_BFC2FF18 = (psx_brA_BFC2FF18 != psx_brB_BFC2FF18); + psx_taken_BFC2FF18 = (psx_brA_BFC2FF18 != psx_brB_BFC2FF18); /* 0xBFC2FF1C: 022F8821 addu $s1, $s1, $t7 */ cpu->gpr[17] = cpu->gpr[17] + cpu->gpr[15]; if (psx_taken_BFC2FF18) goto label_BFC2FEE0; @@ -153185,6 +157502,8 @@ label_BFC2FF24: void func_1FC2FF34(CPUState* cpu) { debug_server_log_call_entry(0x1FC2FF34u); + int psx_taken_BFC2FF38 = 0; + int psx_taken_BFC2FF54 = 0; label_BFC2FF34: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -153194,7 +157513,7 @@ label_BFC2FF34: cpu->gpr[2] = cpu->gpr[6] + cpu->gpr[0]; /* 0xBFC2FF38: 10400008 beq $v0, $zero, 0xBFC2FF5C */ uint32_t psx_brA_BFC2FF38 = cpu->gpr[2]; uint32_t psx_brB_BFC2FF38 = cpu->gpr[0]; - int psx_taken_BFC2FF38 = (psx_brA_BFC2FF38 == psx_brB_BFC2FF38); + psx_taken_BFC2FF38 = (psx_brA_BFC2FF38 == psx_brB_BFC2FF38); /* 0xBFC2FF3C: 24C6FFFF addiu $a2, $a2, -1 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); if (psx_taken_BFC2FF38) goto label_BFC2FF5C; @@ -153215,7 +157534,7 @@ label_BFC2FF40: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); /* 0xBFC2FF54: 1440FFFA bne $v0, $zero, 0xBFC2FF40 */ uint32_t psx_brA_BFC2FF54 = cpu->gpr[2]; uint32_t psx_brB_BFC2FF54 = cpu->gpr[0]; - int psx_taken_BFC2FF54 = (psx_brA_BFC2FF54 != psx_brB_BFC2FF54); + psx_taken_BFC2FF54 = (psx_brA_BFC2FF54 != psx_brB_BFC2FF54); /* 0xBFC2FF58: A0AEFFFF sb $t6, -1($a1) */ g_debug_last_store_pc = 0xBFC2FF58u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[5] + (-1)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC2FF54) goto label_BFC2FF40; @@ -153381,6 +157700,11 @@ void func_1FC301AC(CPUState* cpu) { default: break; } } + int psx_taken_BFC301D0 = 0; + int psx_taken_BFC301E8 = 0; + int psx_taken_BFC30200 = 0; + int psx_taken_BFC3020C = 0; + int psx_taken_BFC30214 = 0; label_BFC301AC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -153406,7 +157730,7 @@ label_BFC301AC: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] >> 16u); /* 0xBFC301D0: 1000000D beq $zero, $zero, 0xBFC30208 */ uint32_t psx_brA_BFC301D0 = cpu->gpr[0]; uint32_t psx_brB_BFC301D0 = cpu->gpr[0]; - int psx_taken_BFC301D0 = (psx_brA_BFC301D0 == psx_brB_BFC301D0); + psx_taken_BFC301D0 = (psx_brA_BFC301D0 == psx_brB_BFC301D0); /* 0xBFC301D4: 00052C03 sra $a1, $a1, 16 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] >> 16u); if (psx_taken_BFC301D0) goto label_BFC30208; @@ -153431,7 +157755,7 @@ label_BFC301E8: psx_check_interrupts(cpu); /* 0xBFC301E8: 1000000D beq $zero, $zero, 0xBFC30220 */ uint32_t psx_brA_BFC301E8 = cpu->gpr[0]; uint32_t psx_brB_BFC301E8 = cpu->gpr[0]; - int psx_taken_BFC301E8 = (psx_brA_BFC301E8 == psx_brB_BFC301E8); + psx_taken_BFC301E8 = (psx_brA_BFC301E8 == psx_brB_BFC301E8); /* 0xBFC301EC: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC301ECu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC301E8) goto label_BFC30220; @@ -153461,7 +157785,7 @@ label_BFC30200: psx_check_interrupts(cpu); /* 0xBFC30200: 10000007 beq $zero, $zero, 0xBFC30220 */ uint32_t psx_brA_BFC30200 = cpu->gpr[0]; uint32_t psx_brB_BFC30200 = cpu->gpr[0]; - int psx_taken_BFC30200 = (psx_brA_BFC30200 == psx_brB_BFC30200); + psx_taken_BFC30200 = (psx_brA_BFC30200 == psx_brB_BFC30200); /* 0xBFC30204: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC30204u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC30200) goto label_BFC30220; @@ -153474,7 +157798,7 @@ label_BFC30208: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (13)); /* 0xBFC3020C: 1041FFF2 beq $v0, $at, 0xBFC301D8 */ uint32_t psx_brA_BFC3020C = cpu->gpr[2]; uint32_t psx_brB_BFC3020C = cpu->gpr[1]; - int psx_taken_BFC3020C = (psx_brA_BFC3020C == psx_brB_BFC3020C); + psx_taken_BFC3020C = (psx_brA_BFC3020C == psx_brB_BFC3020C); /* 0xBFC30210: 2401000E addiu $at, $zero, 14 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (14)); if (psx_taken_BFC3020C) goto label_BFC301D8; @@ -153485,7 +157809,7 @@ label_BFC30214: psx_check_interrupts(cpu); /* 0xBFC30214: 1041FFF7 beq $v0, $at, 0xBFC301F4 */ uint32_t psx_brA_BFC30214 = cpu->gpr[2]; uint32_t psx_brB_BFC30214 = cpu->gpr[1]; - int psx_taken_BFC30214 = (psx_brA_BFC30214 == psx_brB_BFC30214); + psx_taken_BFC30214 = (psx_brA_BFC30214 == psx_brB_BFC30214); /* 0xBFC30218: 87AF0038 lh $t7, 56($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC30218u); return; } cpu->gpr[15] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } if (psx_taken_BFC30214) goto label_BFC301F4; @@ -153520,6 +157844,11 @@ void func_1FC3022C(CPUState* cpu) { default: break; } } + int psx_taken_BFC30250 = 0; + int psx_taken_BFC30260 = 0; + int psx_taken_BFC30270 = 0; + int psx_taken_BFC3027C = 0; + int psx_taken_BFC30284 = 0; label_BFC3022C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -153545,7 +157874,7 @@ label_BFC3022C: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] >> 16u); /* 0xBFC30250: 10000009 beq $zero, $zero, 0xBFC30278 */ uint32_t psx_brA_BFC30250 = cpu->gpr[0]; uint32_t psx_brB_BFC30250 = cpu->gpr[0]; - int psx_taken_BFC30250 = (psx_brA_BFC30250 == psx_brB_BFC30250); + psx_taken_BFC30250 = (psx_brA_BFC30250 == psx_brB_BFC30250); /* 0xBFC30254: 00052C03 sra $a1, $a1, 16 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] >> 16u); if (psx_taken_BFC30250) goto label_BFC30278; @@ -153566,7 +157895,7 @@ label_BFC30260: psx_check_interrupts(cpu); /* 0xBFC30260: 1000000B beq $zero, $zero, 0xBFC30290 */ uint32_t psx_brA_BFC30260 = cpu->gpr[0]; uint32_t psx_brB_BFC30260 = cpu->gpr[0]; - int psx_taken_BFC30260 = (psx_brA_BFC30260 == psx_brB_BFC30260); + psx_taken_BFC30260 = (psx_brA_BFC30260 == psx_brB_BFC30260); /* 0xBFC30264: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC30264u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC30260) goto label_BFC30290; @@ -153587,7 +157916,7 @@ label_BFC30270: psx_check_interrupts(cpu); /* 0xBFC30270: 10000007 beq $zero, $zero, 0xBFC30290 */ uint32_t psx_brA_BFC30270 = cpu->gpr[0]; uint32_t psx_brB_BFC30270 = cpu->gpr[0]; - int psx_taken_BFC30270 = (psx_brA_BFC30270 == psx_brB_BFC30270); + psx_taken_BFC30270 = (psx_brA_BFC30270 == psx_brB_BFC30270); /* 0xBFC30274: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC30274u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC30270) goto label_BFC30290; @@ -153600,7 +157929,7 @@ label_BFC30278: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (13)); /* 0xBFC3027C: 1041FFF6 beq $v0, $at, 0xBFC30258 */ uint32_t psx_brA_BFC3027C = cpu->gpr[2]; uint32_t psx_brB_BFC3027C = cpu->gpr[1]; - int psx_taken_BFC3027C = (psx_brA_BFC3027C == psx_brB_BFC3027C); + psx_taken_BFC3027C = (psx_brA_BFC3027C == psx_brB_BFC3027C); /* 0xBFC30280: 2401000E addiu $at, $zero, 14 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (14)); if (psx_taken_BFC3027C) goto label_BFC30258; @@ -153611,7 +157940,7 @@ label_BFC30284: psx_check_interrupts(cpu); /* 0xBFC30284: 1041FFF8 beq $v0, $at, 0xBFC30268 */ uint32_t psx_brA_BFC30284 = cpu->gpr[2]; uint32_t psx_brB_BFC30284 = cpu->gpr[1]; - int psx_taken_BFC30284 = (psx_brA_BFC30284 == psx_brB_BFC30284); + psx_taken_BFC30284 = (psx_brA_BFC30284 == psx_brB_BFC30284); /* 0xBFC30288: 00000000 nop */ /* nop */ if (psx_taken_BFC30284) goto label_BFC30268; @@ -153685,6 +158014,11 @@ void func_1FC302BC(CPUState* cpu) { default: break; } } + int psx_taken_BFC302C8 = 0; + int psx_taken_BFC302DC = 0; + int psx_taken_BFC302F0 = 0; + int psx_taken_BFC302FC = 0; + int psx_taken_BFC30304 = 0; label_BFC302BC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -153698,7 +158032,7 @@ label_BFC302BC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (0)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC302C4u); return; } cpu->gpr[2] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC302C8: 1000000C beq $zero, $zero, 0xBFC302FC */ uint32_t psx_brA_BFC302C8 = cpu->gpr[0]; uint32_t psx_brB_BFC302C8 = cpu->gpr[0]; - int psx_taken_BFC302C8 = (psx_brA_BFC302C8 == psx_brB_BFC302C8); + psx_taken_BFC302C8 = (psx_brA_BFC302C8 == psx_brB_BFC302C8); /* 0xBFC302CC: 2401000D addiu $at, $zero, 13 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (13)); if (psx_taken_BFC302C8) goto label_BFC302FC; @@ -153721,7 +158055,7 @@ label_BFC302DC: psx_check_interrupts(cpu); /* 0xBFC302DC: 1000000C beq $zero, $zero, 0xBFC30310 */ uint32_t psx_brA_BFC302DC = cpu->gpr[0]; uint32_t psx_brB_BFC302DC = cpu->gpr[0]; - int psx_taken_BFC302DC = (psx_brA_BFC302DC == psx_brB_BFC302DC); + psx_taken_BFC302DC = (psx_brA_BFC302DC == psx_brB_BFC302DC); /* 0xBFC302E0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC302E0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC302DC) goto label_BFC30310; @@ -153749,7 +158083,7 @@ label_BFC302F0: psx_check_interrupts(cpu); /* 0xBFC302F0: 10000007 beq $zero, $zero, 0xBFC30310 */ uint32_t psx_brA_BFC302F0 = cpu->gpr[0]; uint32_t psx_brB_BFC302F0 = cpu->gpr[0]; - int psx_taken_BFC302F0 = (psx_brA_BFC302F0 == psx_brB_BFC302F0); + psx_taken_BFC302F0 = (psx_brA_BFC302F0 == psx_brB_BFC302F0); /* 0xBFC302F4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC302F4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC302F0) goto label_BFC30310; @@ -153767,7 +158101,7 @@ label_BFC302FC: psx_check_interrupts(cpu); /* 0xBFC302FC: 1041FFF4 beq $v0, $at, 0xBFC302D0 */ uint32_t psx_brA_BFC302FC = cpu->gpr[2]; uint32_t psx_brB_BFC302FC = cpu->gpr[1]; - int psx_taken_BFC302FC = (psx_brA_BFC302FC == psx_brB_BFC302FC); + psx_taken_BFC302FC = (psx_brA_BFC302FC == psx_brB_BFC302FC); /* 0xBFC30300: 2401000E addiu $at, $zero, 14 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (14)); if (psx_taken_BFC302FC) goto label_BFC302D0; @@ -153778,7 +158112,7 @@ label_BFC30304: psx_check_interrupts(cpu); /* 0xBFC30304: 1041FFF8 beq $v0, $at, 0xBFC302E8 */ uint32_t psx_brA_BFC30304 = cpu->gpr[2]; uint32_t psx_brB_BFC30304 = cpu->gpr[1]; - int psx_taken_BFC30304 = (psx_brA_BFC30304 == psx_brB_BFC30304); + psx_taken_BFC30304 = (psx_brA_BFC30304 == psx_brB_BFC30304); /* 0xBFC30308: 24850030 addiu $a1, $a0, 48 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[4] + (48)); if (psx_taken_BFC30304) goto label_BFC302E8; @@ -153910,6 +158244,10 @@ label_BFC30384: void func_1FC303A4(CPUState* cpu) { debug_server_log_call_entry(0x1FC303A4u); + int psx_taken_BFC303B8 = 0; + int psx_taken_BFC303FC = 0; + int psx_taken_BFC30404 = 0; + int psx_taken_BFC3040C = 0; label_BFC303A4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -153927,7 +158265,7 @@ label_BFC303A4: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] >> 16u); /* 0xBFC303B8: 10000010 beq $zero, $zero, 0xBFC303FC */ uint32_t psx_brA_BFC303B8 = cpu->gpr[0]; uint32_t psx_brB_BFC303B8 = cpu->gpr[0]; - int psx_taken_BFC303B8 = (psx_brA_BFC303B8 == psx_brB_BFC303B8); + psx_taken_BFC303B8 = (psx_brA_BFC303B8 == psx_brB_BFC303B8); /* 0xBFC303BC: 00052C03 sra $a1, $a1, 16 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] >> 16u); if (psx_taken_BFC303B8) goto label_BFC303FC; @@ -153983,7 +158321,7 @@ label_BFC303FC: psx_check_interrupts(cpu); /* 0xBFC303FC: 10A0FFF0 beq $a1, $zero, 0xBFC303C0 */ uint32_t psx_brA_BFC303FC = cpu->gpr[5]; uint32_t psx_brB_BFC303FC = cpu->gpr[0]; - int psx_taken_BFC303FC = (psx_brA_BFC303FC == psx_brB_BFC303FC); + psx_taken_BFC303FC = (psx_brA_BFC303FC == psx_brB_BFC303FC); /* 0xBFC30400: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC303FC) goto label_BFC303C0; @@ -153994,7 +158332,7 @@ label_BFC30404: psx_check_interrupts(cpu); /* 0xBFC30404: 10A1FFF3 beq $a1, $at, 0xBFC303D4 */ uint32_t psx_brA_BFC30404 = cpu->gpr[5]; uint32_t psx_brB_BFC30404 = cpu->gpr[1]; - int psx_taken_BFC30404 = (psx_brA_BFC30404 == psx_brB_BFC30404); + psx_taken_BFC30404 = (psx_brA_BFC30404 == psx_brB_BFC30404); /* 0xBFC30408: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC30404) goto label_BFC303D4; @@ -154005,7 +158343,7 @@ label_BFC3040C: psx_check_interrupts(cpu); /* 0xBFC3040C: 10A1FFF6 beq $a1, $at, 0xBFC303E8 */ uint32_t psx_brA_BFC3040C = cpu->gpr[5]; uint32_t psx_brB_BFC3040C = cpu->gpr[1]; - int psx_taken_BFC3040C = (psx_brA_BFC3040C == psx_brB_BFC3040C); + psx_taken_BFC3040C = (psx_brA_BFC3040C == psx_brB_BFC3040C); /* 0xBFC30410: 00000000 nop */ /* nop */ if (psx_taken_BFC3040C) goto label_BFC303E8; @@ -154022,6 +158360,7 @@ label_BFC30414: void func_1FC3041C(CPUState* cpu) { debug_server_log_call_entry(0x1FC3041Cu); + int psx_taken_BFC30438 = 0; label_BFC3041C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -154043,7 +158382,7 @@ label_BFC3041C: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[7] >> 16u); /* 0xBFC30438: 1020001C beq $at, $zero, 0xBFC304AC */ uint32_t psx_brA_BFC30438 = cpu->gpr[1]; uint32_t psx_brB_BFC30438 = cpu->gpr[0]; - int psx_taken_BFC30438 = (psx_brA_BFC30438 == psx_brB_BFC30438); + psx_taken_BFC30438 = (psx_brA_BFC30438 == psx_brB_BFC30438); /* 0xBFC3043C: 00063403 sra $a2, $a2, 16 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] >> 16u); if (psx_taken_BFC30438) { cpu->pc = 0xBFC304ACu; return; } @@ -154146,6 +158485,10 @@ label_BFC30498: void func_1FC304B4(CPUState* cpu) { debug_server_log_call_entry(0x1FC304B4u); + int psx_taken_BFC304C8 = 0; + int psx_taken_BFC304F4 = 0; + int psx_taken_BFC304FC = 0; + int psx_taken_BFC30504 = 0; label_BFC304B4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -154163,7 +158506,7 @@ label_BFC304B4: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] >> 16u); /* 0xBFC304C8: 1000000A beq $zero, $zero, 0xBFC304F4 */ uint32_t psx_brA_BFC304C8 = cpu->gpr[0]; uint32_t psx_brB_BFC304C8 = cpu->gpr[0]; - int psx_taken_BFC304C8 = (psx_brA_BFC304C8 == psx_brB_BFC304C8); + psx_taken_BFC304C8 = (psx_brA_BFC304C8 == psx_brB_BFC304C8); /* 0xBFC304CC: 00052C03 sra $a1, $a1, 16 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] >> 16u); if (psx_taken_BFC304C8) goto label_BFC304F4; @@ -154207,7 +158550,7 @@ label_BFC304F4: psx_check_interrupts(cpu); /* 0xBFC304F4: 10A0FFF6 beq $a1, $zero, 0xBFC304D0 */ uint32_t psx_brA_BFC304F4 = cpu->gpr[5]; uint32_t psx_brB_BFC304F4 = cpu->gpr[0]; - int psx_taken_BFC304F4 = (psx_brA_BFC304F4 == psx_brB_BFC304F4); + psx_taken_BFC304F4 = (psx_brA_BFC304F4 == psx_brB_BFC304F4); /* 0xBFC304F8: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC304F4) goto label_BFC304D0; @@ -154218,7 +158561,7 @@ label_BFC304FC: psx_check_interrupts(cpu); /* 0xBFC304FC: 10A1FFF7 beq $a1, $at, 0xBFC304DC */ uint32_t psx_brA_BFC304FC = cpu->gpr[5]; uint32_t psx_brB_BFC304FC = cpu->gpr[1]; - int psx_taken_BFC304FC = (psx_brA_BFC304FC == psx_brB_BFC304FC); + psx_taken_BFC304FC = (psx_brA_BFC304FC == psx_brB_BFC304FC); /* 0xBFC30500: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC304FC) goto label_BFC304DC; @@ -154229,7 +158572,7 @@ label_BFC30504: psx_check_interrupts(cpu); /* 0xBFC30504: 10A1FFF8 beq $a1, $at, 0xBFC304E8 */ uint32_t psx_brA_BFC30504 = cpu->gpr[5]; uint32_t psx_brB_BFC30504 = cpu->gpr[1]; - int psx_taken_BFC30504 = (psx_brA_BFC30504 == psx_brB_BFC30504); + psx_taken_BFC30504 = (psx_brA_BFC30504 == psx_brB_BFC30504); /* 0xBFC30508: 00000000 nop */ /* nop */ if (psx_taken_BFC30504) goto label_BFC304E8; @@ -154246,6 +158589,7 @@ label_BFC3050C: void func_1FC30514(CPUState* cpu) { debug_server_log_call_entry(0x1FC30514u); + int psx_taken_BFC30530 = 0; label_BFC30514: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -154267,7 +158611,7 @@ label_BFC30514: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[7] >> 16u); /* 0xBFC30530: 10200014 beq $at, $zero, 0xBFC30584 */ uint32_t psx_brA_BFC30530 = cpu->gpr[1]; uint32_t psx_brB_BFC30530 = cpu->gpr[0]; - int psx_taken_BFC30530 = (psx_brA_BFC30530 == psx_brB_BFC30530); + psx_taken_BFC30530 = (psx_brA_BFC30530 == psx_brB_BFC30530); /* 0xBFC30534: 00063403 sra $a2, $a2, 16 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] >> 16u); if (psx_taken_BFC30530) { cpu->pc = 0xBFC30584u; return; } @@ -154354,6 +158698,12 @@ label_BFC30578: void func_1FC3058C(CPUState* cpu) { debug_server_log_call_entry(0x1FC3058Cu); + int psx_taken_BFC305D4 = 0; + int psx_taken_BFC305F8 = 0; + int psx_taken_BFC3061C = 0; + int psx_taken_BFC30630 = 0; + int psx_taken_BFC30644 = 0; + int psx_taken_BFC30658 = 0; label_BFC3058C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(20u); @@ -154397,7 +158747,7 @@ label_BFC3058C: cpu->gpr[14] = cpu->lo; /* 0xBFC305D4: 05E10002 bgez $t7, 0xBFC305E0 */ uint32_t psx_brA_BFC305D4 = cpu->gpr[15]; - int psx_taken_BFC305D4 = ((int32_t)psx_brA_BFC305D4 >= 0); + psx_taken_BFC305D4 = ((int32_t)psx_brA_BFC305D4 >= 0); /* 0xBFC305D8: 01E00821 addu $at, $t7, $zero */ cpu->gpr[1] = cpu->gpr[15] + cpu->gpr[0]; if (psx_taken_BFC305D4) goto label_BFC305E0; @@ -154427,7 +158777,7 @@ label_BFC305E0: cpu->gpr[25] = cpu->lo; /* 0xBFC305F8: 05010002 bgez $t0, 0xBFC30604 */ uint32_t psx_brA_BFC305F8 = cpu->gpr[8]; - int psx_taken_BFC305F8 = ((int32_t)psx_brA_BFC305F8 >= 0); + psx_taken_BFC305F8 = ((int32_t)psx_brA_BFC305F8 >= 0); /* 0xBFC305FC: 01000821 addu $at, $t0, $zero */ cpu->gpr[1] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC305F8) goto label_BFC30604; @@ -154457,7 +158807,7 @@ label_BFC30604: cpu->gpr[10] = cpu->lo; /* 0xBFC3061C: 05610002 bgez $t3, 0xBFC30628 */ uint32_t psx_brA_BFC3061C = cpu->gpr[11]; - int psx_taken_BFC3061C = ((int32_t)psx_brA_BFC3061C >= 0); + psx_taken_BFC3061C = ((int32_t)psx_brA_BFC3061C >= 0); /* 0xBFC30620: 01600821 addu $at, $t3, $zero */ cpu->gpr[1] = cpu->gpr[11] + cpu->gpr[0]; if (psx_taken_BFC3061C) goto label_BFC30628; @@ -154479,7 +158829,7 @@ label_BFC30628: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (16)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3062Cu); return; } g_debug_last_store_pc = 0xBFC3062Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[12] & 0xFFFFu)); } /* 0xBFC30630: 05C10002 bgez $t6, 0xBFC3063C */ uint32_t psx_brA_BFC30630 = cpu->gpr[14]; - int psx_taken_BFC30630 = ((int32_t)psx_brA_BFC30630 >= 0); + psx_taken_BFC30630 = ((int32_t)psx_brA_BFC30630 >= 0); /* 0xBFC30634: 01C00821 addu $at, $t6, $zero */ cpu->gpr[1] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC30630) goto label_BFC3063C; @@ -154501,7 +158851,7 @@ label_BFC3063C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (18)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC30640u); return; } g_debug_last_store_pc = 0xBFC30640u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[15] & 0xFFFFu)); } /* 0xBFC30644: 07210002 bgez $t9, 0xBFC30650 */ uint32_t psx_brA_BFC30644 = cpu->gpr[25]; - int psx_taken_BFC30644 = ((int32_t)psx_brA_BFC30644 >= 0); + psx_taken_BFC30644 = ((int32_t)psx_brA_BFC30644 >= 0); /* 0xBFC30648: 03200821 addu $at, $t9, $zero */ cpu->gpr[1] = cpu->gpr[25] + cpu->gpr[0]; if (psx_taken_BFC30644) goto label_BFC30650; @@ -154523,7 +158873,7 @@ label_BFC30650: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (24)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC30654u); return; } g_debug_last_store_pc = 0xBFC30654u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[8] & 0xFFFFu)); } /* 0xBFC30658: 05410002 bgez $t2, 0xBFC30664 */ uint32_t psx_brA_BFC30658 = cpu->gpr[10]; - int psx_taken_BFC30658 = ((int32_t)psx_brA_BFC30658 >= 0); + psx_taken_BFC30658 = ((int32_t)psx_brA_BFC30658 >= 0); /* 0xBFC3065C: 01400821 addu $at, $t2, $zero */ cpu->gpr[1] = cpu->gpr[10] + cpu->gpr[0]; if (psx_taken_BFC30658) goto label_BFC30664; @@ -154549,6 +158899,14 @@ label_BFC30664: void func_1FC30670(CPUState* cpu) { debug_server_log_call_entry(0x1FC30670u); + int psx_taken_BFC306B8 = 0; + int psx_taken_BFC306DC = 0; + int psx_taken_BFC30700 = 0; + int psx_taken_BFC30724 = 0; + int psx_taken_BFC30748 = 0; + int psx_taken_BFC3075C = 0; + int psx_taken_BFC30770 = 0; + int psx_taken_BFC30784 = 0; label_BFC30670: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(20u); @@ -154592,7 +158950,7 @@ label_BFC30670: cpu->gpr[14] = cpu->lo; /* 0xBFC306B8: 05E10002 bgez $t7, 0xBFC306C4 */ uint32_t psx_brA_BFC306B8 = cpu->gpr[15]; - int psx_taken_BFC306B8 = ((int32_t)psx_brA_BFC306B8 >= 0); + psx_taken_BFC306B8 = ((int32_t)psx_brA_BFC306B8 >= 0); /* 0xBFC306BC: 01E00821 addu $at, $t7, $zero */ cpu->gpr[1] = cpu->gpr[15] + cpu->gpr[0]; if (psx_taken_BFC306B8) goto label_BFC306C4; @@ -154622,7 +158980,7 @@ label_BFC306C4: cpu->gpr[25] = cpu->lo; /* 0xBFC306DC: 05010002 bgez $t0, 0xBFC306E8 */ uint32_t psx_brA_BFC306DC = cpu->gpr[8]; - int psx_taken_BFC306DC = ((int32_t)psx_brA_BFC306DC >= 0); + psx_taken_BFC306DC = ((int32_t)psx_brA_BFC306DC >= 0); /* 0xBFC306E0: 01000821 addu $at, $t0, $zero */ cpu->gpr[1] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC306DC) goto label_BFC306E8; @@ -154652,7 +159010,7 @@ label_BFC306E8: cpu->gpr[10] = cpu->lo; /* 0xBFC30700: 05610002 bgez $t3, 0xBFC3070C */ uint32_t psx_brA_BFC30700 = cpu->gpr[11]; - int psx_taken_BFC30700 = ((int32_t)psx_brA_BFC30700 >= 0); + psx_taken_BFC30700 = ((int32_t)psx_brA_BFC30700 >= 0); /* 0xBFC30704: 01600821 addu $at, $t3, $zero */ cpu->gpr[1] = cpu->gpr[11] + cpu->gpr[0]; if (psx_taken_BFC30700) goto label_BFC3070C; @@ -154682,7 +159040,7 @@ label_BFC3070C: cpu->gpr[13] = cpu->lo; /* 0xBFC30724: 05C10002 bgez $t6, 0xBFC30730 */ uint32_t psx_brA_BFC30724 = cpu->gpr[14]; - int psx_taken_BFC30724 = ((int32_t)psx_brA_BFC30724 >= 0); + psx_taken_BFC30724 = ((int32_t)psx_brA_BFC30724 >= 0); /* 0xBFC30728: 01C00821 addu $at, $t6, $zero */ cpu->gpr[1] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC30724) goto label_BFC30730; @@ -154712,7 +159070,7 @@ label_BFC30730: cpu->gpr[24] = cpu->lo; /* 0xBFC30748: 07210002 bgez $t9, 0xBFC30754 */ uint32_t psx_brA_BFC30748 = cpu->gpr[25]; - int psx_taken_BFC30748 = ((int32_t)psx_brA_BFC30748 >= 0); + psx_taken_BFC30748 = ((int32_t)psx_brA_BFC30748 >= 0); /* 0xBFC3074C: 03200821 addu $at, $t9, $zero */ cpu->gpr[1] = cpu->gpr[25] + cpu->gpr[0]; if (psx_taken_BFC30748) goto label_BFC30754; @@ -154734,7 +159092,7 @@ label_BFC30754: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (24)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC30758u); return; } g_debug_last_store_pc = 0xBFC30758u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[8] & 0xFFFFu)); } /* 0xBFC3075C: 05410002 bgez $t2, 0xBFC30768 */ uint32_t psx_brA_BFC3075C = cpu->gpr[10]; - int psx_taken_BFC3075C = ((int32_t)psx_brA_BFC3075C >= 0); + psx_taken_BFC3075C = ((int32_t)psx_brA_BFC3075C >= 0); /* 0xBFC30760: 01400821 addu $at, $t2, $zero */ cpu->gpr[1] = cpu->gpr[10] + cpu->gpr[0]; if (psx_taken_BFC3075C) goto label_BFC30768; @@ -154756,7 +159114,7 @@ label_BFC30768: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (26)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3076Cu); return; } g_debug_last_store_pc = 0xBFC3076Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[11] & 0xFFFFu)); } /* 0xBFC30770: 05A10002 bgez $t5, 0xBFC3077C */ uint32_t psx_brA_BFC30770 = cpu->gpr[13]; - int psx_taken_BFC30770 = ((int32_t)psx_brA_BFC30770 >= 0); + psx_taken_BFC30770 = ((int32_t)psx_brA_BFC30770 >= 0); /* 0xBFC30774: 01A00821 addu $at, $t5, $zero */ cpu->gpr[1] = cpu->gpr[13] + cpu->gpr[0]; if (psx_taken_BFC30770) goto label_BFC3077C; @@ -154778,7 +159136,7 @@ label_BFC3077C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (32)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC30780u); return; } g_debug_last_store_pc = 0xBFC30780u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[14] & 0xFFFFu)); } /* 0xBFC30784: 07010002 bgez $t8, 0xBFC30790 */ uint32_t psx_brA_BFC30784 = cpu->gpr[24]; - int psx_taken_BFC30784 = ((int32_t)psx_brA_BFC30784 >= 0); + psx_taken_BFC30784 = ((int32_t)psx_brA_BFC30784 >= 0); /* 0xBFC30788: 03000821 addu $at, $t8, $zero */ cpu->gpr[1] = cpu->gpr[24] + cpu->gpr[0]; if (psx_taken_BFC30784) goto label_BFC30790; @@ -155857,6 +160215,35 @@ void func_1FC30DF0(CPUState* cpu) { default: break; } } + int psx_taken_BFC30F3C = 0; + int psx_taken_BFC30F60 = 0; + int psx_taken_BFC30F70 = 0; + int psx_taken_BFC30F78 = 0; + int psx_taken_BFC30F84 = 0; + int psx_taken_BFC30FA0 = 0; + int psx_taken_BFC30FB0 = 0; + int psx_taken_BFC30FB8 = 0; + int psx_taken_BFC30FC4 = 0; + int psx_taken_BFC30FDC = 0; + int psx_taken_BFC30FEC = 0; + int psx_taken_BFC30FF4 = 0; + int psx_taken_BFC31010 = 0; + int psx_taken_BFC31020 = 0; + int psx_taken_BFC31028 = 0; + int psx_taken_BFC31034 = 0; + int psx_taken_BFC31050 = 0; + int psx_taken_BFC31060 = 0; + int psx_taken_BFC31068 = 0; + int psx_taken_BFC31074 = 0; + int psx_taken_BFC3108C = 0; + int psx_taken_BFC3109C = 0; + int psx_taken_BFC310A4 = 0; + int psx_taken_BFC310C8 = 0; + int psx_taken_BFC310D8 = 0; + int psx_taken_BFC310E0 = 0; + int psx_taken_BFC310F8 = 0; + int psx_taken_BFC31120 = 0; + int psx_taken_BFC31130 = 0; label_BFC30DF0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(19u); @@ -156084,7 +160471,7 @@ label_BFC30F38: cpu->gpr[16] = cpu->gpr[21] + cpu->gpr[0]; /* 0xBFC30F3C: 12000066 beq $s0, $zero, 0xBFC310D8 */ uint32_t psx_brA_BFC30F3C = cpu->gpr[16]; uint32_t psx_brB_BFC30F3C = cpu->gpr[0]; - int psx_taken_BFC30F3C = (psx_brA_BFC30F3C == psx_brB_BFC30F3C); + psx_taken_BFC30F3C = (psx_brA_BFC30F3C == psx_brB_BFC30F3C); /* 0xBFC30F40: 26B5FFFF addiu $s5, $s5, -1 */ cpu->gpr[21] = (uint32_t)((int32_t)cpu->gpr[21] + (-1)); if (psx_taken_BFC30F3C) goto label_BFC310D8; @@ -156120,7 +160507,7 @@ label_BFC30F58: cpu->gpr[9] = cpu->hi; /* 0xBFC30F60: 16200002 bne $s1, $zero, 0xBFC30F6C */ uint32_t psx_brA_BFC30F60 = cpu->gpr[17]; uint32_t psx_brB_BFC30F60 = cpu->gpr[0]; - int psx_taken_BFC30F60 = (psx_brA_BFC30F60 != psx_brB_BFC30F60); + psx_taken_BFC30F60 = (psx_brA_BFC30F60 != psx_brB_BFC30F60); /* 0xBFC30F64: 00000000 nop */ /* nop */ if (psx_taken_BFC30F60) goto label_BFC30F6C; @@ -156140,7 +160527,7 @@ label_BFC30F6C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC30F70: 16210004 bne $s1, $at, 0xBFC30F84 */ uint32_t psx_brA_BFC30F70 = cpu->gpr[17]; uint32_t psx_brB_BFC30F70 = cpu->gpr[1]; - int psx_taken_BFC30F70 = (psx_brA_BFC30F70 != psx_brB_BFC30F70); + psx_taken_BFC30F70 = (psx_brA_BFC30F70 != psx_brB_BFC30F70); /* 0xBFC30F74: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC30F70) goto label_BFC30F84; @@ -156151,7 +160538,7 @@ label_BFC30F78: psx_check_interrupts(cpu); /* 0xBFC30F78: 14410002 bne $v0, $at, 0xBFC30F84 */ uint32_t psx_brA_BFC30F78 = cpu->gpr[2]; uint32_t psx_brB_BFC30F78 = cpu->gpr[1]; - int psx_taken_BFC30F78 = (psx_brA_BFC30F78 != psx_brB_BFC30F78); + psx_taken_BFC30F78 = (psx_brA_BFC30F78 != psx_brB_BFC30F78); /* 0xBFC30F7C: 00000000 nop */ /* nop */ if (psx_taken_BFC30F78) goto label_BFC30F84; @@ -156169,7 +160556,7 @@ label_BFC30F84: psx_check_interrupts(cpu); /* 0xBFC30F84: 05210011 bgez $t1, 0xBFC30FCC */ uint32_t psx_brA_BFC30F84 = cpu->gpr[9]; - int psx_taken_BFC30F84 = ((int32_t)psx_brA_BFC30F84 >= 0); + psx_taken_BFC30F84 = ((int32_t)psx_brA_BFC30F84 >= 0); /* 0xBFC30F88: 00000000 nop */ /* nop */ if (psx_taken_BFC30F84) goto label_BFC30FCC; @@ -156196,7 +160583,7 @@ label_BFC30F94: cpu->gpr[16] = cpu->gpr[0] - cpu->gpr[16]; /* 0xBFC30FA0: 16200002 bne $s1, $zero, 0xBFC30FAC */ uint32_t psx_brA_BFC30FA0 = cpu->gpr[17]; uint32_t psx_brB_BFC30FA0 = cpu->gpr[0]; - int psx_taken_BFC30FA0 = (psx_brA_BFC30FA0 != psx_brB_BFC30FA0); + psx_taken_BFC30FA0 = (psx_brA_BFC30FA0 != psx_brB_BFC30FA0); /* 0xBFC30FA4: 00000000 nop */ /* nop */ if (psx_taken_BFC30FA0) goto label_BFC30FAC; @@ -156216,7 +160603,7 @@ label_BFC30FAC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC30FB0: 16210004 bne $s1, $at, 0xBFC30FC4 */ uint32_t psx_brA_BFC30FB0 = cpu->gpr[17]; uint32_t psx_brB_BFC30FB0 = cpu->gpr[1]; - int psx_taken_BFC30FB0 = (psx_brA_BFC30FB0 != psx_brB_BFC30FB0); + psx_taken_BFC30FB0 = (psx_brA_BFC30FB0 != psx_brB_BFC30FB0); /* 0xBFC30FB4: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC30FB0) goto label_BFC30FC4; @@ -156227,7 +160614,7 @@ label_BFC30FB8: psx_check_interrupts(cpu); /* 0xBFC30FB8: 14410002 bne $v0, $at, 0xBFC30FC4 */ uint32_t psx_brA_BFC30FB8 = cpu->gpr[2]; uint32_t psx_brB_BFC30FB8 = cpu->gpr[1]; - int psx_taken_BFC30FB8 = (psx_brA_BFC30FB8 != psx_brB_BFC30FB8); + psx_taken_BFC30FB8 = (psx_brA_BFC30FB8 != psx_brB_BFC30FB8); /* 0xBFC30FBC: 00000000 nop */ /* nop */ if (psx_taken_BFC30FB8) goto label_BFC30FC4; @@ -156245,7 +160632,7 @@ label_BFC30FC4: psx_check_interrupts(cpu); /* 0xBFC30FC4: 1000000E beq $zero, $zero, 0xBFC31000 */ uint32_t psx_brA_BFC30FC4 = cpu->gpr[0]; uint32_t psx_brB_BFC30FC4 = cpu->gpr[0]; - int psx_taken_BFC30FC4 = (psx_brA_BFC30FC4 == psx_brB_BFC30FC4); + psx_taken_BFC30FC4 = (psx_brA_BFC30FC4 == psx_brB_BFC30FC4); /* 0xBFC30FC8: 00000000 nop */ /* nop */ if (psx_taken_BFC30FC4) goto label_BFC31000; @@ -156270,7 +160657,7 @@ label_BFC30FD4: cpu->gpr[16] = cpu->hi; /* 0xBFC30FDC: 16200002 bne $s1, $zero, 0xBFC30FE8 */ uint32_t psx_brA_BFC30FDC = cpu->gpr[17]; uint32_t psx_brB_BFC30FDC = cpu->gpr[0]; - int psx_taken_BFC30FDC = (psx_brA_BFC30FDC != psx_brB_BFC30FDC); + psx_taken_BFC30FDC = (psx_brA_BFC30FDC != psx_brB_BFC30FDC); /* 0xBFC30FE0: 00000000 nop */ /* nop */ if (psx_taken_BFC30FDC) goto label_BFC30FE8; @@ -156290,7 +160677,7 @@ label_BFC30FE8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC30FEC: 16210004 bne $s1, $at, 0xBFC31000 */ uint32_t psx_brA_BFC30FEC = cpu->gpr[17]; uint32_t psx_brB_BFC30FEC = cpu->gpr[1]; - int psx_taken_BFC30FEC = (psx_brA_BFC30FEC != psx_brB_BFC30FEC); + psx_taken_BFC30FEC = (psx_brA_BFC30FEC != psx_brB_BFC30FEC); /* 0xBFC30FF0: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC30FEC) goto label_BFC31000; @@ -156301,7 +160688,7 @@ label_BFC30FF4: psx_check_interrupts(cpu); /* 0xBFC30FF4: 14410002 bne $v0, $at, 0xBFC31000 */ uint32_t psx_brA_BFC30FF4 = cpu->gpr[2]; uint32_t psx_brB_BFC30FF4 = cpu->gpr[1]; - int psx_taken_BFC30FF4 = (psx_brA_BFC30FF4 != psx_brB_BFC30FF4); + psx_taken_BFC30FF4 = (psx_brA_BFC30FF4 != psx_brB_BFC30FF4); /* 0xBFC30FF8: 00000000 nop */ /* nop */ if (psx_taken_BFC30FF4) goto label_BFC31000; @@ -156333,7 +160720,7 @@ label_BFC31008: cpu->gpr[10] = cpu->hi; /* 0xBFC31010: 16800002 bne $s4, $zero, 0xBFC3101C */ uint32_t psx_brA_BFC31010 = cpu->gpr[20]; uint32_t psx_brB_BFC31010 = cpu->gpr[0]; - int psx_taken_BFC31010 = (psx_brA_BFC31010 != psx_brB_BFC31010); + psx_taken_BFC31010 = (psx_brA_BFC31010 != psx_brB_BFC31010); /* 0xBFC31014: 00000000 nop */ /* nop */ if (psx_taken_BFC31010) goto label_BFC3101C; @@ -156353,7 +160740,7 @@ label_BFC3101C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC31020: 16810004 bne $s4, $at, 0xBFC31034 */ uint32_t psx_brA_BFC31020 = cpu->gpr[20]; uint32_t psx_brB_BFC31020 = cpu->gpr[1]; - int psx_taken_BFC31020 = (psx_brA_BFC31020 != psx_brB_BFC31020); + psx_taken_BFC31020 = (psx_brA_BFC31020 != psx_brB_BFC31020); /* 0xBFC31024: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC31020) goto label_BFC31034; @@ -156364,7 +160751,7 @@ label_BFC31028: psx_check_interrupts(cpu); /* 0xBFC31028: 14410002 bne $v0, $at, 0xBFC31034 */ uint32_t psx_brA_BFC31028 = cpu->gpr[2]; uint32_t psx_brB_BFC31028 = cpu->gpr[1]; - int psx_taken_BFC31028 = (psx_brA_BFC31028 != psx_brB_BFC31028); + psx_taken_BFC31028 = (psx_brA_BFC31028 != psx_brB_BFC31028); /* 0xBFC3102C: 00000000 nop */ /* nop */ if (psx_taken_BFC31028) goto label_BFC31034; @@ -156382,7 +160769,7 @@ label_BFC31034: psx_check_interrupts(cpu); /* 0xBFC31034: 05410011 bgez $t2, 0xBFC3107C */ uint32_t psx_brA_BFC31034 = cpu->gpr[10]; - int psx_taken_BFC31034 = ((int32_t)psx_brA_BFC31034 >= 0); + psx_taken_BFC31034 = ((int32_t)psx_brA_BFC31034 >= 0); /* 0xBFC31038: 00000000 nop */ /* nop */ if (psx_taken_BFC31034) goto label_BFC3107C; @@ -156409,7 +160796,7 @@ label_BFC31044: cpu->gpr[3] = cpu->gpr[0] - cpu->gpr[3]; /* 0xBFC31050: 16800002 bne $s4, $zero, 0xBFC3105C */ uint32_t psx_brA_BFC31050 = cpu->gpr[20]; uint32_t psx_brB_BFC31050 = cpu->gpr[0]; - int psx_taken_BFC31050 = (psx_brA_BFC31050 != psx_brB_BFC31050); + psx_taken_BFC31050 = (psx_brA_BFC31050 != psx_brB_BFC31050); /* 0xBFC31054: 00000000 nop */ /* nop */ if (psx_taken_BFC31050) goto label_BFC3105C; @@ -156429,7 +160816,7 @@ label_BFC3105C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC31060: 16810004 bne $s4, $at, 0xBFC31074 */ uint32_t psx_brA_BFC31060 = cpu->gpr[20]; uint32_t psx_brB_BFC31060 = cpu->gpr[1]; - int psx_taken_BFC31060 = (psx_brA_BFC31060 != psx_brB_BFC31060); + psx_taken_BFC31060 = (psx_brA_BFC31060 != psx_brB_BFC31060); /* 0xBFC31064: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC31060) goto label_BFC31074; @@ -156440,7 +160827,7 @@ label_BFC31068: psx_check_interrupts(cpu); /* 0xBFC31068: 14410002 bne $v0, $at, 0xBFC31074 */ uint32_t psx_brA_BFC31068 = cpu->gpr[2]; uint32_t psx_brB_BFC31068 = cpu->gpr[1]; - int psx_taken_BFC31068 = (psx_brA_BFC31068 != psx_brB_BFC31068); + psx_taken_BFC31068 = (psx_brA_BFC31068 != psx_brB_BFC31068); /* 0xBFC3106C: 00000000 nop */ /* nop */ if (psx_taken_BFC31068) goto label_BFC31074; @@ -156458,7 +160845,7 @@ label_BFC31074: psx_check_interrupts(cpu); /* 0xBFC31074: 1000000F beq $zero, $zero, 0xBFC310B4 */ uint32_t psx_brA_BFC31074 = cpu->gpr[0]; uint32_t psx_brB_BFC31074 = cpu->gpr[0]; - int psx_taken_BFC31074 = (psx_brA_BFC31074 == psx_brB_BFC31074); + psx_taken_BFC31074 = (psx_brA_BFC31074 == psx_brB_BFC31074); /* 0xBFC31078: 27A40094 addiu $a0, $sp, 148 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[29] + (148)); if (psx_taken_BFC31074) goto label_BFC310B4; @@ -156483,7 +160870,7 @@ label_BFC31084: cpu->gpr[3] = cpu->hi; /* 0xBFC3108C: 16800002 bne $s4, $zero, 0xBFC31098 */ uint32_t psx_brA_BFC3108C = cpu->gpr[20]; uint32_t psx_brB_BFC3108C = cpu->gpr[0]; - int psx_taken_BFC3108C = (psx_brA_BFC3108C != psx_brB_BFC3108C); + psx_taken_BFC3108C = (psx_brA_BFC3108C != psx_brB_BFC3108C); /* 0xBFC31090: 00000000 nop */ /* nop */ if (psx_taken_BFC3108C) goto label_BFC31098; @@ -156503,7 +160890,7 @@ label_BFC31098: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC3109C: 16810004 bne $s4, $at, 0xBFC310B0 */ uint32_t psx_brA_BFC3109C = cpu->gpr[20]; uint32_t psx_brB_BFC3109C = cpu->gpr[1]; - int psx_taken_BFC3109C = (psx_brA_BFC3109C != psx_brB_BFC3109C); + psx_taken_BFC3109C = (psx_brA_BFC3109C != psx_brB_BFC3109C); /* 0xBFC310A0: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC3109C) goto label_BFC310B0; @@ -156514,7 +160901,7 @@ label_BFC310A4: psx_check_interrupts(cpu); /* 0xBFC310A4: 14410002 bne $v0, $at, 0xBFC310B0 */ uint32_t psx_brA_BFC310A4 = cpu->gpr[2]; uint32_t psx_brB_BFC310A4 = cpu->gpr[1]; - int psx_taken_BFC310A4 = (psx_brA_BFC310A4 != psx_brB_BFC310A4); + psx_taken_BFC310A4 = (psx_brA_BFC310A4 != psx_brB_BFC310A4); /* 0xBFC310A8: 00000000 nop */ /* nop */ if (psx_taken_BFC310A4) goto label_BFC310B0; @@ -156555,7 +160942,7 @@ label_BFC310C4: cpu->gpr[16] = cpu->gpr[21] + cpu->gpr[0]; /* 0xBFC310C8: 1600FFA1 bne $s0, $zero, 0xBFC30F50 */ uint32_t psx_brA_BFC310C8 = cpu->gpr[16]; uint32_t psx_brB_BFC310C8 = cpu->gpr[0]; - int psx_taken_BFC310C8 = (psx_brA_BFC310C8 != psx_brB_BFC310C8); + psx_taken_BFC310C8 = (psx_brA_BFC310C8 != psx_brB_BFC310C8); /* 0xBFC310CC: 26B5FFFF addiu $s5, $s5, -1 */ cpu->gpr[21] = (uint32_t)((int32_t)cpu->gpr[21] + (-1)); if (psx_taken_BFC310C8) goto label_BFC30F50; @@ -156575,7 +160962,7 @@ label_BFC310D8: psx_check_interrupts(cpu); /* 0xBFC310D8: 1AC00017 blez $s6, 0xBFC31138 */ uint32_t psx_brA_BFC310D8 = cpu->gpr[22]; - int psx_taken_BFC310D8 = ((int32_t)psx_brA_BFC310D8 <= 0); + psx_taken_BFC310D8 = ((int32_t)psx_brA_BFC310D8 <= 0); /* 0xBFC310DC: 00008821 addu $s1, $zero, $zero */ cpu->gpr[17] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC310D8) goto label_BFC31138; @@ -156586,7 +160973,7 @@ label_BFC310E0: psx_check_interrupts(cpu); /* 0xBFC310E0: 1A400011 blez $s2, 0xBFC31128 */ uint32_t psx_brA_BFC310E0 = cpu->gpr[18]; - int psx_taken_BFC310E0 = ((int32_t)psx_brA_BFC310E0 <= 0); + psx_taken_BFC310E0 = ((int32_t)psx_brA_BFC310E0 <= 0); /* 0xBFC310E4: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC310E0) goto label_BFC31128; @@ -156616,7 +161003,7 @@ label_BFC310F8: psx_check_interrupts(cpu); /* 0xBFC310F8: 10400008 beq $v0, $zero, 0xBFC3111C */ uint32_t psx_brA_BFC310F8 = cpu->gpr[2]; uint32_t psx_brB_BFC310F8 = cpu->gpr[0]; - int psx_taken_BFC310F8 = (psx_brA_BFC310F8 == psx_brB_BFC310F8); + psx_taken_BFC310F8 = (psx_brA_BFC310F8 == psx_brB_BFC310F8); /* 0xBFC310FC: 00000000 nop */ /* nop */ if (psx_taken_BFC310F8) goto label_BFC3111C; @@ -156648,7 +161035,7 @@ label_BFC3111C: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC31120: 1612FFF2 bne $s0, $s2, 0xBFC310EC */ uint32_t psx_brA_BFC31120 = cpu->gpr[16]; uint32_t psx_brB_BFC31120 = cpu->gpr[18]; - int psx_taken_BFC31120 = (psx_brA_BFC31120 != psx_brB_BFC31120); + psx_taken_BFC31120 = (psx_brA_BFC31120 != psx_brB_BFC31120); /* 0xBFC31124: 27A40094 addiu $a0, $sp, 148 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[29] + (148)); if (psx_taken_BFC31120) goto label_BFC310EC; @@ -156663,7 +161050,7 @@ label_BFC31128: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (int32_t)cpu->gpr[22] ? 1 : 0); /* 0xBFC31130: 1420FFEB bne $at, $zero, 0xBFC310E0 */ uint32_t psx_brA_BFC31130 = cpu->gpr[1]; uint32_t psx_brB_BFC31130 = cpu->gpr[0]; - int psx_taken_BFC31130 = (psx_brA_BFC31130 != psx_brB_BFC31130); + psx_taken_BFC31130 = (psx_brA_BFC31130 != psx_brB_BFC31130); /* 0xBFC31134: 00000000 nop */ /* nop */ if (psx_taken_BFC31130) goto label_BFC310E0; @@ -156738,6 +161125,11 @@ void func_1FC31194(CPUState* cpu) { default: break; } } + int psx_taken_BFC3123C = 0; + int psx_taken_BFC31288 = 0; + int psx_taken_BFC312CC = 0; + int psx_taken_BFC312DC = 0; + int psx_taken_BFC312F4 = 0; label_BFC31194: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -156859,7 +161251,7 @@ label_BFC3123C: psx_check_interrupts(cpu); /* 0xBFC3123C: 10400015 beq $v0, $zero, 0xBFC31294 */ uint32_t psx_brA_BFC3123C = cpu->gpr[2]; uint32_t psx_brB_BFC3123C = cpu->gpr[0]; - int psx_taken_BFC3123C = (psx_brA_BFC3123C == psx_brB_BFC3123C); + psx_taken_BFC3123C = (psx_brA_BFC3123C == psx_brB_BFC3123C); /* 0xBFC31240: 8FA7047C lw $a3, 1148($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (1148)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC31240u); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } if (psx_taken_BFC3123C) goto label_BFC31294; @@ -156910,7 +161302,7 @@ label_BFC31288: psx_check_interrupts(cpu); /* 0xBFC31288: 10000020 beq $zero, $zero, 0xBFC3130C */ uint32_t psx_brA_BFC31288 = cpu->gpr[0]; uint32_t psx_brB_BFC31288 = cpu->gpr[0]; - int psx_taken_BFC31288 = (psx_brA_BFC31288 == psx_brB_BFC31288); + psx_taken_BFC31288 = (psx_brA_BFC31288 == psx_brB_BFC31288); /* 0xBFC3128C: 00000000 nop */ /* nop */ if (psx_taken_BFC31288) goto label_BFC3130C; @@ -156956,7 +161348,7 @@ label_BFC31294: /* nop */ /* 0xBFC312CC: 04E10002 bgez $a3, 0xBFC312D8 */ uint32_t psx_brA_BFC312CC = cpu->gpr[7]; - int psx_taken_BFC312CC = ((int32_t)psx_brA_BFC312CC >= 0); + psx_taken_BFC312CC = ((int32_t)psx_brA_BFC312CC >= 0); /* 0xBFC312D0: 00E00821 addu $at, $a3, $zero */ cpu->gpr[1] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC312CC) goto label_BFC312D8; @@ -156976,7 +161368,7 @@ label_BFC312D8: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[1] >> 1u); /* 0xBFC312DC: 04410002 bgez $v0, 0xBFC312E8 */ uint32_t psx_brA_BFC312DC = cpu->gpr[2]; - int psx_taken_BFC312DC = ((int32_t)psx_brA_BFC312DC >= 0); + psx_taken_BFC312DC = ((int32_t)psx_brA_BFC312DC >= 0); /* 0xBFC312E0: 00400821 addu $at, $v0, $zero */ cpu->gpr[1] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC312DC) goto label_BFC312E8; @@ -157000,7 +161392,7 @@ label_BFC312E8: /* nop */ /* 0xBFC312F4: 05210002 bgez $t1, 0xBFC31300 */ uint32_t psx_brA_BFC312F4 = cpu->gpr[9]; - int psx_taken_BFC312F4 = ((int32_t)psx_brA_BFC312F4 >= 0); + psx_taken_BFC312F4 = ((int32_t)psx_brA_BFC312F4 >= 0); /* 0xBFC312F8: 01200821 addu $at, $t1, $zero */ cpu->gpr[1] = cpu->gpr[9] + cpu->gpr[0]; if (psx_taken_BFC312F4) goto label_BFC31300; @@ -157110,6 +161502,7 @@ void func_1FC31380(CPUState* cpu) { default: break; } } + int psx_taken_BFC313C8 = 0; label_BFC31380: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -157164,7 +161557,7 @@ label_BFC313B8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (4096) ? 1 : 0); /* 0xBFC313C8: 1420FFF8 bne $at, $zero, 0xBFC313AC */ uint32_t psx_brA_BFC313C8 = cpu->gpr[1]; uint32_t psx_brB_BFC313C8 = cpu->gpr[0]; - int psx_taken_BFC313C8 = (psx_brA_BFC313C8 != psx_brB_BFC313C8); + psx_taken_BFC313C8 = (psx_brA_BFC313C8 != psx_brB_BFC313C8); /* 0xBFC313CC: 02002821 addu $a1, $s0, $zero */ cpu->gpr[5] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC313C8) goto label_BFC313AC; @@ -157199,6 +161592,7 @@ void func_1FC313EC(CPUState* cpu) { default: break; } } + int psx_taken_BFC31428 = 0; label_BFC313EC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -157247,7 +161641,7 @@ label_BFC31418: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (4096) ? 1 : 0); /* 0xBFC31428: 1420FFF9 bne $at, $zero, 0xBFC31410 */ uint32_t psx_brA_BFC31428 = cpu->gpr[1]; uint32_t psx_brB_BFC31428 = cpu->gpr[0]; - int psx_taken_BFC31428 = (psx_brA_BFC31428 != psx_brB_BFC31428); + psx_taken_BFC31428 = (psx_brA_BFC31428 != psx_brB_BFC31428); /* 0xBFC3142C: 02002021 addu $a0, $s0, $zero */ cpu->gpr[4] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC31428) goto label_BFC31410; @@ -157280,6 +161674,8 @@ void func_1FC31448(CPUState* cpu) { default: break; } } + int psx_taken_BFC31538 = 0; + int psx_taken_BFC31548 = 0; label_BFC31448: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(46u); @@ -157418,7 +161814,7 @@ label_BFC31530: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (4096) ? 1 : 0); /* 0xBFC31538: 10200006 beq $at, $zero, 0xBFC31554 */ uint32_t psx_brA_BFC31538 = cpu->gpr[1]; uint32_t psx_brB_BFC31538 = cpu->gpr[0]; - int psx_taken_BFC31538 = (psx_brA_BFC31538 == psx_brB_BFC31538); + psx_taken_BFC31538 = (psx_brA_BFC31538 == psx_brB_BFC31538); /* 0xBFC3153C: 8FBF005C lw $ra, 92($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (92)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3153Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC31538) goto label_BFC31554; @@ -157433,7 +161829,7 @@ label_BFC31540: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (112)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC31544u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC31548: 1000FFED beq $zero, $zero, 0xBFC31500 */ uint32_t psx_brA_BFC31548 = cpu->gpr[0]; uint32_t psx_brB_BFC31548 = cpu->gpr[0]; - int psx_taken_BFC31548 = (psx_brA_BFC31548 == psx_brB_BFC31548); + psx_taken_BFC31548 = (psx_brA_BFC31548 == psx_brB_BFC31548); /* 0xBFC3154C: AFA30010 sw $v1, 16($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (16)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3154Cu); return; } g_debug_last_store_pc = 0xBFC3154Cu; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC31548) goto label_BFC31500; @@ -157483,6 +161879,7 @@ void func_1FC31580(CPUState* cpu) { default: break; } } + int psx_taken_BFC3160C = 0; label_BFC31580: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -157571,7 +161968,7 @@ label_BFC315FC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[17] < (4096) ? 1 : 0); /* 0xBFC3160C: 1420FFEA bne $at, $zero, 0xBFC315B8 */ uint32_t psx_brA_BFC3160C = cpu->gpr[1]; uint32_t psx_brB_BFC3160C = cpu->gpr[0]; - int psx_taken_BFC3160C = (psx_brA_BFC3160C != psx_brB_BFC3160C); + psx_taken_BFC3160C = (psx_brA_BFC3160C != psx_brB_BFC3160C); /* 0xBFC31610: 00000000 nop */ /* nop */ if (psx_taken_BFC3160C) goto label_BFC315B8; @@ -157861,6 +162258,18 @@ void func_1FC317D0(CPUState* cpu) { default: break; } } + int psx_taken_BFC31820 = 0; + int psx_taken_BFC31850 = 0; + int psx_taken_BFC31858 = 0; + int psx_taken_BFC31864 = 0; + int psx_taken_BFC3186C = 0; + int psx_taken_BFC31878 = 0; + int psx_taken_BFC318D8 = 0; + int psx_taken_BFC31908 = 0; + int psx_taken_BFC31910 = 0; + int psx_taken_BFC3191C = 0; + int psx_taken_BFC31924 = 0; + int psx_taken_BFC31930 = 0; label_BFC317D0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -157914,7 +162323,7 @@ label_BFC3180C: /* nop */ /* 0xBFC31820: 05E10002 bgez $t7, 0xBFC3182C */ uint32_t psx_brA_BFC31820 = cpu->gpr[15]; - int psx_taken_BFC31820 = ((int32_t)psx_brA_BFC31820 >= 0); + psx_taken_BFC31820 = ((int32_t)psx_brA_BFC31820 >= 0); /* 0xBFC31824: 01E00821 addu $at, $t7, $zero */ cpu->gpr[1] = cpu->gpr[15] + cpu->gpr[0]; if (psx_taken_BFC31820) goto label_BFC3182C; @@ -157950,7 +162359,7 @@ label_BFC3182C: /* nop */ /* 0xBFC31850: 05010004 bgez $t0, 0xBFC31864 */ uint32_t psx_brA_BFC31850 = cpu->gpr[8]; - int psx_taken_BFC31850 = ((int32_t)psx_brA_BFC31850 >= 0); + psx_taken_BFC31850 = ((int32_t)psx_brA_BFC31850 >= 0); /* 0xBFC31854: 310A003F andi $t2, $t0, 0x3F */ cpu->gpr[10] = cpu->gpr[8] & 0x3Fu; if (psx_taken_BFC31850) goto label_BFC31864; @@ -157961,7 +162370,7 @@ label_BFC31858: psx_check_interrupts(cpu); /* 0xBFC31858: 11400002 beq $t2, $zero, 0xBFC31864 */ uint32_t psx_brA_BFC31858 = cpu->gpr[10]; uint32_t psx_brB_BFC31858 = cpu->gpr[0]; - int psx_taken_BFC31858 = (psx_brA_BFC31858 == psx_brB_BFC31858); + psx_taken_BFC31858 = (psx_brA_BFC31858 == psx_brB_BFC31858); /* 0xBFC3185C: 00000000 nop */ /* nop */ if (psx_taken_BFC31858) goto label_BFC31864; @@ -157979,7 +162388,7 @@ label_BFC31864: psx_check_interrupts(cpu); /* 0xBFC31864: 11400004 beq $t2, $zero, 0xBFC31878 */ uint32_t psx_brA_BFC31864 = cpu->gpr[10]; uint32_t psx_brB_BFC31864 = cpu->gpr[0]; - int psx_taken_BFC31864 = (psx_brA_BFC31864 == psx_brB_BFC31864); + psx_taken_BFC31864 = (psx_brA_BFC31864 == psx_brB_BFC31864); /* 0xBFC31868: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC31864) goto label_BFC31878; @@ -157990,7 +162399,7 @@ label_BFC3186C: psx_check_interrupts(cpu); /* 0xBFC3186C: 10000002 beq $zero, $zero, 0xBFC31878 */ uint32_t psx_brA_BFC3186C = cpu->gpr[0]; uint32_t psx_brB_BFC3186C = cpu->gpr[0]; - int psx_taken_BFC3186C = (psx_brA_BFC3186C == psx_brB_BFC3186C); + psx_taken_BFC3186C = (psx_brA_BFC3186C == psx_brB_BFC3186C); /* 0xBFC31870: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3186C) goto label_BFC31878; @@ -158008,7 +162417,7 @@ label_BFC31878: psx_check_interrupts(cpu); /* 0xBFC31878: 05010002 bgez $t0, 0xBFC31884 */ uint32_t psx_brA_BFC31878 = cpu->gpr[8]; - int psx_taken_BFC31878 = ((int32_t)psx_brA_BFC31878 >= 0); + psx_taken_BFC31878 = ((int32_t)psx_brA_BFC31878 >= 0); /* 0xBFC3187C: 01000821 addu $at, $t0, $zero */ cpu->gpr[1] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC31878) goto label_BFC31884; @@ -158074,7 +162483,7 @@ label_BFC318C4: /* nop */ /* 0xBFC318D8: 05E10002 bgez $t7, 0xBFC318E4 */ uint32_t psx_brA_BFC318D8 = cpu->gpr[15]; - int psx_taken_BFC318D8 = ((int32_t)psx_brA_BFC318D8 >= 0); + psx_taken_BFC318D8 = ((int32_t)psx_brA_BFC318D8 >= 0); /* 0xBFC318DC: 01E00821 addu $at, $t7, $zero */ cpu->gpr[1] = cpu->gpr[15] + cpu->gpr[0]; if (psx_taken_BFC318D8) goto label_BFC318E4; @@ -158110,7 +162519,7 @@ label_BFC318E4: /* nop */ /* 0xBFC31908: 04610004 bgez $v1, 0xBFC3191C */ uint32_t psx_brA_BFC31908 = cpu->gpr[3]; - int psx_taken_BFC31908 = ((int32_t)psx_brA_BFC31908 >= 0); + psx_taken_BFC31908 = ((int32_t)psx_brA_BFC31908 >= 0); /* 0xBFC3190C: 306A003F andi $t2, $v1, 0x3F */ cpu->gpr[10] = cpu->gpr[3] & 0x3Fu; if (psx_taken_BFC31908) goto label_BFC3191C; @@ -158121,7 +162530,7 @@ label_BFC31910: psx_check_interrupts(cpu); /* 0xBFC31910: 11400002 beq $t2, $zero, 0xBFC3191C */ uint32_t psx_brA_BFC31910 = cpu->gpr[10]; uint32_t psx_brB_BFC31910 = cpu->gpr[0]; - int psx_taken_BFC31910 = (psx_brA_BFC31910 == psx_brB_BFC31910); + psx_taken_BFC31910 = (psx_brA_BFC31910 == psx_brB_BFC31910); /* 0xBFC31914: 00000000 nop */ /* nop */ if (psx_taken_BFC31910) goto label_BFC3191C; @@ -158139,7 +162548,7 @@ label_BFC3191C: psx_check_interrupts(cpu); /* 0xBFC3191C: 11400004 beq $t2, $zero, 0xBFC31930 */ uint32_t psx_brA_BFC3191C = cpu->gpr[10]; uint32_t psx_brB_BFC3191C = cpu->gpr[0]; - int psx_taken_BFC3191C = (psx_brA_BFC3191C == psx_brB_BFC3191C); + psx_taken_BFC3191C = (psx_brA_BFC3191C == psx_brB_BFC3191C); /* 0xBFC31920: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3191C) goto label_BFC31930; @@ -158150,7 +162559,7 @@ label_BFC31924: psx_check_interrupts(cpu); /* 0xBFC31924: 10000002 beq $zero, $zero, 0xBFC31930 */ uint32_t psx_brA_BFC31924 = cpu->gpr[0]; uint32_t psx_brB_BFC31924 = cpu->gpr[0]; - int psx_taken_BFC31924 = (psx_brA_BFC31924 == psx_brB_BFC31924); + psx_taken_BFC31924 = (psx_brA_BFC31924 == psx_brB_BFC31924); /* 0xBFC31928: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC31924) goto label_BFC31930; @@ -158168,7 +162577,7 @@ label_BFC31930: psx_check_interrupts(cpu); /* 0xBFC31930: 04610002 bgez $v1, 0xBFC3193C */ uint32_t psx_brA_BFC31930 = cpu->gpr[3]; - int psx_taken_BFC31930 = ((int32_t)psx_brA_BFC31930 >= 0); + psx_taken_BFC31930 = ((int32_t)psx_brA_BFC31930 >= 0); /* 0xBFC31934: 00600821 addu $at, $v1, $zero */ cpu->gpr[1] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC31930) goto label_BFC3193C; @@ -158351,6 +162760,21 @@ void func_1FC319EC(CPUState* cpu) { default: break; } } + int psx_taken_BFC31A10 = 0; + int psx_taken_BFC31A18 = 0; + int psx_taken_BFC31A24 = 0; + int psx_taken_BFC31A2C = 0; + int psx_taken_BFC31A44 = 0; + int psx_taken_BFC31AA0 = 0; + int psx_taken_BFC31B20 = 0; + int psx_taken_BFC31B30 = 0; + int psx_taken_BFC31B38 = 0; + int psx_taken_BFC31B40 = 0; + int psx_taken_BFC31B4C = 0; + int psx_taken_BFC31B54 = 0; + int psx_taken_BFC31B6C = 0; + int psx_taken_BFC31BC4 = 0; + int psx_taken_BFC31C44 = 0; label_BFC319EC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -158376,7 +162800,7 @@ label_BFC319EC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (100)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC31A0Cu); return; } g_debug_last_store_pc = 0xBFC31A0Cu; cpu->write_word(psx_addr, cpu->gpr[7]); } /* 0xBFC31A10: 04610004 bgez $v1, 0xBFC31A24 */ uint32_t psx_brA_BFC31A10 = cpu->gpr[3]; - int psx_taken_BFC31A10 = ((int32_t)psx_brA_BFC31A10 >= 0); + psx_taken_BFC31A10 = ((int32_t)psx_brA_BFC31A10 >= 0); /* 0xBFC31A14: 306E003F andi $t6, $v1, 0x3F */ cpu->gpr[14] = cpu->gpr[3] & 0x3Fu; if (psx_taken_BFC31A10) goto label_BFC31A24; @@ -158387,7 +162811,7 @@ label_BFC31A18: psx_check_interrupts(cpu); /* 0xBFC31A18: 11C00002 beq $t6, $zero, 0xBFC31A24 */ uint32_t psx_brA_BFC31A18 = cpu->gpr[14]; uint32_t psx_brB_BFC31A18 = cpu->gpr[0]; - int psx_taken_BFC31A18 = (psx_brA_BFC31A18 == psx_brB_BFC31A18); + psx_taken_BFC31A18 = (psx_brA_BFC31A18 == psx_brB_BFC31A18); /* 0xBFC31A1C: 00000000 nop */ /* nop */ if (psx_taken_BFC31A18) goto label_BFC31A24; @@ -158405,7 +162829,7 @@ label_BFC31A24: psx_check_interrupts(cpu); /* 0xBFC31A24: 11C00004 beq $t6, $zero, 0xBFC31A38 */ uint32_t psx_brA_BFC31A24 = cpu->gpr[14]; uint32_t psx_brB_BFC31A24 = cpu->gpr[0]; - int psx_taken_BFC31A24 = (psx_brA_BFC31A24 == psx_brB_BFC31A24); + psx_taken_BFC31A24 = (psx_brA_BFC31A24 == psx_brB_BFC31A24); /* 0xBFC31A28: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC31A24) goto label_BFC31A38; @@ -158416,7 +162840,7 @@ label_BFC31A2C: psx_check_interrupts(cpu); /* 0xBFC31A2C: 10000002 beq $zero, $zero, 0xBFC31A38 */ uint32_t psx_brA_BFC31A2C = cpu->gpr[0]; uint32_t psx_brB_BFC31A2C = cpu->gpr[0]; - int psx_taken_BFC31A2C = (psx_brA_BFC31A2C == psx_brB_BFC31A2C); + psx_taken_BFC31A2C = (psx_brA_BFC31A2C == psx_brB_BFC31A2C); /* 0xBFC31A30: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC31A2C) goto label_BFC31A38; @@ -158440,7 +162864,7 @@ label_BFC31A38: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC31A40u); return; } g_debug_last_store_pc = 0xBFC31A40u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC31A44: 04610002 bgez $v1, 0xBFC31A50 */ uint32_t psx_brA_BFC31A44 = cpu->gpr[3]; - int psx_taken_BFC31A44 = ((int32_t)psx_brA_BFC31A44 >= 0); + psx_taken_BFC31A44 = ((int32_t)psx_brA_BFC31A44 >= 0); /* 0xBFC31A48: 00600821 addu $at, $v1, $zero */ cpu->gpr[1] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC31A44) goto label_BFC31A50; @@ -158504,7 +162928,7 @@ label_BFC31A9C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (88)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC31A9Cu); return; } cpu->gpr[3] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC31AA0: 14400016 bne $v0, $zero, 0xBFC31AFC */ uint32_t psx_brA_BFC31AA0 = cpu->gpr[2]; uint32_t psx_brB_BFC31AA0 = cpu->gpr[0]; - int psx_taken_BFC31AA0 = (psx_brA_BFC31AA0 != psx_brB_BFC31AA0); + psx_taken_BFC31AA0 = (psx_brA_BFC31AA0 != psx_brB_BFC31AA0); /* 0xBFC31AA4: 00404021 addu $t0, $v0, $zero */ cpu->gpr[8] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC31AA0) goto label_BFC31AFC; @@ -158586,7 +163010,7 @@ label_BFC31AFC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (92)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC31B1Cu); return; } cpu->gpr[11] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC31B20: 1A00004A blez $s0, 0xBFC31C4C */ uint32_t psx_brA_BFC31B20 = cpu->gpr[16]; - int psx_taken_BFC31B20 = ((int32_t)psx_brA_BFC31B20 <= 0); + psx_taken_BFC31B20 = ((int32_t)psx_brA_BFC31B20 <= 0); /* 0xBFC31B24: A44B0006 sh $t3, 6($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (6)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC31B24u); return; } g_debug_last_store_pc = 0xBFC31B24u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[11] & 0xFFFFu)); } if (psx_taken_BFC31B20) goto label_BFC31C4C; @@ -158601,7 +163025,7 @@ label_BFC31B28: /* nop */ /* 0xBFC31B30: 18E00047 blez $a3, 0xBFC31C50 */ uint32_t psx_brA_BFC31B30 = cpu->gpr[7]; - int psx_taken_BFC31B30 = ((int32_t)psx_brA_BFC31B30 <= 0); + psx_taken_BFC31B30 = ((int32_t)psx_brA_BFC31B30 <= 0); /* 0xBFC31B34: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC31B30) goto label_BFC31C50; @@ -158612,7 +163036,7 @@ label_BFC31B38: psx_check_interrupts(cpu); /* 0xBFC31B38: 06010004 bgez $s0, 0xBFC31B4C */ uint32_t psx_brA_BFC31B38 = cpu->gpr[16]; - int psx_taken_BFC31B38 = ((int32_t)psx_brA_BFC31B38 >= 0); + psx_taken_BFC31B38 = ((int32_t)psx_brA_BFC31B38 >= 0); /* 0xBFC31B3C: 320C003F andi $t4, $s0, 0x3F */ cpu->gpr[12] = cpu->gpr[16] & 0x3Fu; if (psx_taken_BFC31B38) goto label_BFC31B4C; @@ -158623,7 +163047,7 @@ label_BFC31B40: psx_check_interrupts(cpu); /* 0xBFC31B40: 11800002 beq $t4, $zero, 0xBFC31B4C */ uint32_t psx_brA_BFC31B40 = cpu->gpr[12]; uint32_t psx_brB_BFC31B40 = cpu->gpr[0]; - int psx_taken_BFC31B40 = (psx_brA_BFC31B40 == psx_brB_BFC31B40); + psx_taken_BFC31B40 = (psx_brA_BFC31B40 == psx_brB_BFC31B40); /* 0xBFC31B44: 00000000 nop */ /* nop */ if (psx_taken_BFC31B40) goto label_BFC31B4C; @@ -158641,7 +163065,7 @@ label_BFC31B4C: psx_check_interrupts(cpu); /* 0xBFC31B4C: 11800004 beq $t4, $zero, 0xBFC31B60 */ uint32_t psx_brA_BFC31B4C = cpu->gpr[12]; uint32_t psx_brB_BFC31B4C = cpu->gpr[0]; - int psx_taken_BFC31B4C = (psx_brA_BFC31B4C == psx_brB_BFC31B4C); + psx_taken_BFC31B4C = (psx_brA_BFC31B4C == psx_brB_BFC31B4C); /* 0xBFC31B50: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC31B4C) goto label_BFC31B60; @@ -158652,7 +163076,7 @@ label_BFC31B54: psx_check_interrupts(cpu); /* 0xBFC31B54: 10000002 beq $zero, $zero, 0xBFC31B60 */ uint32_t psx_brA_BFC31B54 = cpu->gpr[0]; uint32_t psx_brB_BFC31B54 = cpu->gpr[0]; - int psx_taken_BFC31B54 = (psx_brA_BFC31B54 == psx_brB_BFC31B54); + psx_taken_BFC31B54 = (psx_brA_BFC31B54 == psx_brB_BFC31B54); /* 0xBFC31B58: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC31B54) goto label_BFC31B60; @@ -158676,7 +163100,7 @@ label_BFC31B60: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC31B68u); return; } g_debug_last_store_pc = 0xBFC31B68u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC31B6C: 06010002 bgez $s0, 0xBFC31B78 */ uint32_t psx_brA_BFC31B6C = cpu->gpr[16]; - int psx_taken_BFC31B6C = ((int32_t)psx_brA_BFC31B6C >= 0); + psx_taken_BFC31B6C = ((int32_t)psx_brA_BFC31B6C >= 0); /* 0xBFC31B70: 02000821 addu $at, $s0, $zero */ cpu->gpr[1] = cpu->gpr[16] + cpu->gpr[0]; if (psx_taken_BFC31B6C) goto label_BFC31B78; @@ -158738,7 +163162,7 @@ label_BFC31BC0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC31BC0u); return; } cpu->gpr[8] = cpu->read_word(psx_addr); } /* 0xBFC31BC4: 14400016 bne $v0, $zero, 0xBFC31C20 */ uint32_t psx_brA_BFC31BC4 = cpu->gpr[2]; uint32_t psx_brB_BFC31BC4 = cpu->gpr[0]; - int psx_taken_BFC31BC4 = (psx_brA_BFC31BC4 != psx_brB_BFC31BC4); + psx_taken_BFC31BC4 = (psx_brA_BFC31BC4 != psx_brB_BFC31BC4); /* 0xBFC31BC8: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC31BC4) goto label_BFC31C20; @@ -158820,7 +163244,7 @@ label_BFC31C20: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (100)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC31C40u); return; } cpu->gpr[9] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC31C44: 10000002 beq $zero, $zero, 0xBFC31C50 */ uint32_t psx_brA_BFC31C44 = cpu->gpr[0]; uint32_t psx_brB_BFC31C44 = cpu->gpr[0]; - int psx_taken_BFC31C44 = (psx_brA_BFC31C44 == psx_brB_BFC31C44); + psx_taken_BFC31C44 = (psx_brA_BFC31C44 == psx_brB_BFC31C44); /* 0xBFC31C48: A4490006 sh $t1, 6($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (6)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC31C48u); return; } g_debug_last_store_pc = 0xBFC31C48u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[9] & 0xFFFFu)); } if (psx_taken_BFC31C44) goto label_BFC31C50; @@ -158858,6 +163282,12 @@ void func_1FC31C64(CPUState* cpu) { default: break; } } + int psx_taken_BFC31C7C = 0; + int psx_taken_BFC31CA8 = 0; + int psx_taken_BFC31CB0 = 0; + int psx_taken_BFC31CBC = 0; + int psx_taken_BFC31CC4 = 0; + int psx_taken_BFC31CD0 = 0; label_BFC31C64: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -158877,7 +163307,7 @@ label_BFC31C64: /* nop */ /* 0xBFC31C7C: 05C10002 bgez $t6, 0xBFC31C88 */ uint32_t psx_brA_BFC31C7C = cpu->gpr[14]; - int psx_taken_BFC31C7C = ((int32_t)psx_brA_BFC31C7C >= 0); + psx_taken_BFC31C7C = ((int32_t)psx_brA_BFC31C7C >= 0); /* 0xBFC31C80: 01C00821 addu $at, $t6, $zero */ cpu->gpr[1] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC31C7C) goto label_BFC31C88; @@ -158911,7 +163341,7 @@ label_BFC31C88: /* nop */ /* 0xBFC31CA8: 04E10004 bgez $a3, 0xBFC31CBC */ uint32_t psx_brA_BFC31CA8 = cpu->gpr[7]; - int psx_taken_BFC31CA8 = ((int32_t)psx_brA_BFC31CA8 >= 0); + psx_taken_BFC31CA8 = ((int32_t)psx_brA_BFC31CA8 >= 0); /* 0xBFC31CAC: 30F9003F andi $t9, $a3, 0x3F */ cpu->gpr[25] = cpu->gpr[7] & 0x3Fu; if (psx_taken_BFC31CA8) goto label_BFC31CBC; @@ -158922,7 +163352,7 @@ label_BFC31CB0: psx_check_interrupts(cpu); /* 0xBFC31CB0: 13200002 beq $t9, $zero, 0xBFC31CBC */ uint32_t psx_brA_BFC31CB0 = cpu->gpr[25]; uint32_t psx_brB_BFC31CB0 = cpu->gpr[0]; - int psx_taken_BFC31CB0 = (psx_brA_BFC31CB0 == psx_brB_BFC31CB0); + psx_taken_BFC31CB0 = (psx_brA_BFC31CB0 == psx_brB_BFC31CB0); /* 0xBFC31CB4: 00000000 nop */ /* nop */ if (psx_taken_BFC31CB0) goto label_BFC31CBC; @@ -158940,7 +163370,7 @@ label_BFC31CBC: psx_check_interrupts(cpu); /* 0xBFC31CBC: 13200004 beq $t9, $zero, 0xBFC31CD0 */ uint32_t psx_brA_BFC31CBC = cpu->gpr[25]; uint32_t psx_brB_BFC31CBC = cpu->gpr[0]; - int psx_taken_BFC31CBC = (psx_brA_BFC31CBC == psx_brB_BFC31CBC); + psx_taken_BFC31CBC = (psx_brA_BFC31CBC == psx_brB_BFC31CBC); /* 0xBFC31CC0: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC31CBC) goto label_BFC31CD0; @@ -158951,7 +163381,7 @@ label_BFC31CC4: psx_check_interrupts(cpu); /* 0xBFC31CC4: 10000002 beq $zero, $zero, 0xBFC31CD0 */ uint32_t psx_brA_BFC31CC4 = cpu->gpr[0]; uint32_t psx_brB_BFC31CC4 = cpu->gpr[0]; - int psx_taken_BFC31CC4 = (psx_brA_BFC31CC4 == psx_brB_BFC31CC4); + psx_taken_BFC31CC4 = (psx_brA_BFC31CC4 == psx_brB_BFC31CC4); /* 0xBFC31CC8: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC31CC4) goto label_BFC31CD0; @@ -158969,7 +163399,7 @@ label_BFC31CD0: psx_check_interrupts(cpu); /* 0xBFC31CD0: 04E10002 bgez $a3, 0xBFC31CDC */ uint32_t psx_brA_BFC31CD0 = cpu->gpr[7]; - int psx_taken_BFC31CD0 = ((int32_t)psx_brA_BFC31CD0 >= 0); + psx_taken_BFC31CD0 = ((int32_t)psx_brA_BFC31CD0 >= 0); /* 0xBFC31CD4: 00E00821 addu $at, $a3, $zero */ cpu->gpr[1] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC31CD0) goto label_BFC31CDC; @@ -159031,6 +163461,12 @@ void func_1FC31D14(CPUState* cpu) { default: break; } } + int psx_taken_BFC31D2C = 0; + int psx_taken_BFC31D58 = 0; + int psx_taken_BFC31D60 = 0; + int psx_taken_BFC31D6C = 0; + int psx_taken_BFC31D74 = 0; + int psx_taken_BFC31D80 = 0; label_BFC31D14: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -159050,7 +163486,7 @@ label_BFC31D14: /* nop */ /* 0xBFC31D2C: 05C10002 bgez $t6, 0xBFC31D38 */ uint32_t psx_brA_BFC31D2C = cpu->gpr[14]; - int psx_taken_BFC31D2C = ((int32_t)psx_brA_BFC31D2C >= 0); + psx_taken_BFC31D2C = ((int32_t)psx_brA_BFC31D2C >= 0); /* 0xBFC31D30: 01C00821 addu $at, $t6, $zero */ cpu->gpr[1] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC31D2C) goto label_BFC31D38; @@ -159084,7 +163520,7 @@ label_BFC31D38: /* nop */ /* 0xBFC31D58: 04E10004 bgez $a3, 0xBFC31D6C */ uint32_t psx_brA_BFC31D58 = cpu->gpr[7]; - int psx_taken_BFC31D58 = ((int32_t)psx_brA_BFC31D58 >= 0); + psx_taken_BFC31D58 = ((int32_t)psx_brA_BFC31D58 >= 0); /* 0xBFC31D5C: 30F9003F andi $t9, $a3, 0x3F */ cpu->gpr[25] = cpu->gpr[7] & 0x3Fu; if (psx_taken_BFC31D58) goto label_BFC31D6C; @@ -159095,7 +163531,7 @@ label_BFC31D60: psx_check_interrupts(cpu); /* 0xBFC31D60: 13200002 beq $t9, $zero, 0xBFC31D6C */ uint32_t psx_brA_BFC31D60 = cpu->gpr[25]; uint32_t psx_brB_BFC31D60 = cpu->gpr[0]; - int psx_taken_BFC31D60 = (psx_brA_BFC31D60 == psx_brB_BFC31D60); + psx_taken_BFC31D60 = (psx_brA_BFC31D60 == psx_brB_BFC31D60); /* 0xBFC31D64: 00000000 nop */ /* nop */ if (psx_taken_BFC31D60) goto label_BFC31D6C; @@ -159113,7 +163549,7 @@ label_BFC31D6C: psx_check_interrupts(cpu); /* 0xBFC31D6C: 13200004 beq $t9, $zero, 0xBFC31D80 */ uint32_t psx_brA_BFC31D6C = cpu->gpr[25]; uint32_t psx_brB_BFC31D6C = cpu->gpr[0]; - int psx_taken_BFC31D6C = (psx_brA_BFC31D6C == psx_brB_BFC31D6C); + psx_taken_BFC31D6C = (psx_brA_BFC31D6C == psx_brB_BFC31D6C); /* 0xBFC31D70: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC31D6C) goto label_BFC31D80; @@ -159124,7 +163560,7 @@ label_BFC31D74: psx_check_interrupts(cpu); /* 0xBFC31D74: 10000002 beq $zero, $zero, 0xBFC31D80 */ uint32_t psx_brA_BFC31D74 = cpu->gpr[0]; uint32_t psx_brB_BFC31D74 = cpu->gpr[0]; - int psx_taken_BFC31D74 = (psx_brA_BFC31D74 == psx_brB_BFC31D74); + psx_taken_BFC31D74 = (psx_brA_BFC31D74 == psx_brB_BFC31D74); /* 0xBFC31D78: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC31D74) goto label_BFC31D80; @@ -159142,7 +163578,7 @@ label_BFC31D80: psx_check_interrupts(cpu); /* 0xBFC31D80: 04E10002 bgez $a3, 0xBFC31D8C */ uint32_t psx_brA_BFC31D80 = cpu->gpr[7]; - int psx_taken_BFC31D80 = ((int32_t)psx_brA_BFC31D80 >= 0); + psx_taken_BFC31D80 = ((int32_t)psx_brA_BFC31D80 >= 0); /* 0xBFC31D84: 00E00821 addu $at, $a3, $zero */ cpu->gpr[1] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC31D80) goto label_BFC31D8C; @@ -159204,6 +163640,12 @@ void func_1FC31DC4(CPUState* cpu) { default: break; } } + int psx_taken_BFC31DDC = 0; + int psx_taken_BFC31E08 = 0; + int psx_taken_BFC31E10 = 0; + int psx_taken_BFC31E1C = 0; + int psx_taken_BFC31E24 = 0; + int psx_taken_BFC31E30 = 0; label_BFC31DC4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -159223,7 +163665,7 @@ label_BFC31DC4: /* nop */ /* 0xBFC31DDC: 05C10002 bgez $t6, 0xBFC31DE8 */ uint32_t psx_brA_BFC31DDC = cpu->gpr[14]; - int psx_taken_BFC31DDC = ((int32_t)psx_brA_BFC31DDC >= 0); + psx_taken_BFC31DDC = ((int32_t)psx_brA_BFC31DDC >= 0); /* 0xBFC31DE0: 01C00821 addu $at, $t6, $zero */ cpu->gpr[1] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC31DDC) goto label_BFC31DE8; @@ -159257,7 +163699,7 @@ label_BFC31DE8: /* nop */ /* 0xBFC31E08: 04E10004 bgez $a3, 0xBFC31E1C */ uint32_t psx_brA_BFC31E08 = cpu->gpr[7]; - int psx_taken_BFC31E08 = ((int32_t)psx_brA_BFC31E08 >= 0); + psx_taken_BFC31E08 = ((int32_t)psx_brA_BFC31E08 >= 0); /* 0xBFC31E0C: 30F9003F andi $t9, $a3, 0x3F */ cpu->gpr[25] = cpu->gpr[7] & 0x3Fu; if (psx_taken_BFC31E08) goto label_BFC31E1C; @@ -159268,7 +163710,7 @@ label_BFC31E10: psx_check_interrupts(cpu); /* 0xBFC31E10: 13200002 beq $t9, $zero, 0xBFC31E1C */ uint32_t psx_brA_BFC31E10 = cpu->gpr[25]; uint32_t psx_brB_BFC31E10 = cpu->gpr[0]; - int psx_taken_BFC31E10 = (psx_brA_BFC31E10 == psx_brB_BFC31E10); + psx_taken_BFC31E10 = (psx_brA_BFC31E10 == psx_brB_BFC31E10); /* 0xBFC31E14: 00000000 nop */ /* nop */ if (psx_taken_BFC31E10) goto label_BFC31E1C; @@ -159286,7 +163728,7 @@ label_BFC31E1C: psx_check_interrupts(cpu); /* 0xBFC31E1C: 13200004 beq $t9, $zero, 0xBFC31E30 */ uint32_t psx_brA_BFC31E1C = cpu->gpr[25]; uint32_t psx_brB_BFC31E1C = cpu->gpr[0]; - int psx_taken_BFC31E1C = (psx_brA_BFC31E1C == psx_brB_BFC31E1C); + psx_taken_BFC31E1C = (psx_brA_BFC31E1C == psx_brB_BFC31E1C); /* 0xBFC31E20: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC31E1C) goto label_BFC31E30; @@ -159297,7 +163739,7 @@ label_BFC31E24: psx_check_interrupts(cpu); /* 0xBFC31E24: 10000002 beq $zero, $zero, 0xBFC31E30 */ uint32_t psx_brA_BFC31E24 = cpu->gpr[0]; uint32_t psx_brB_BFC31E24 = cpu->gpr[0]; - int psx_taken_BFC31E24 = (psx_brA_BFC31E24 == psx_brB_BFC31E24); + psx_taken_BFC31E24 = (psx_brA_BFC31E24 == psx_brB_BFC31E24); /* 0xBFC31E28: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC31E24) goto label_BFC31E30; @@ -159315,7 +163757,7 @@ label_BFC31E30: psx_check_interrupts(cpu); /* 0xBFC31E30: 04E10002 bgez $a3, 0xBFC31E3C */ uint32_t psx_brA_BFC31E30 = cpu->gpr[7]; - int psx_taken_BFC31E30 = ((int32_t)psx_brA_BFC31E30 >= 0); + psx_taken_BFC31E30 = ((int32_t)psx_brA_BFC31E30 >= 0); /* 0xBFC31E34: 00E00821 addu $at, $a3, $zero */ cpu->gpr[1] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC31E30) goto label_BFC31E3C; @@ -159377,6 +163819,12 @@ void func_1FC31E74(CPUState* cpu) { default: break; } } + int psx_taken_BFC31E8C = 0; + int psx_taken_BFC31EB8 = 0; + int psx_taken_BFC31EC0 = 0; + int psx_taken_BFC31ECC = 0; + int psx_taken_BFC31ED4 = 0; + int psx_taken_BFC31EE0 = 0; label_BFC31E74: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -159396,7 +163844,7 @@ label_BFC31E74: /* nop */ /* 0xBFC31E8C: 05C10002 bgez $t6, 0xBFC31E98 */ uint32_t psx_brA_BFC31E8C = cpu->gpr[14]; - int psx_taken_BFC31E8C = ((int32_t)psx_brA_BFC31E8C >= 0); + psx_taken_BFC31E8C = ((int32_t)psx_brA_BFC31E8C >= 0); /* 0xBFC31E90: 01C00821 addu $at, $t6, $zero */ cpu->gpr[1] = cpu->gpr[14] + cpu->gpr[0]; if (psx_taken_BFC31E8C) goto label_BFC31E98; @@ -159430,7 +163878,7 @@ label_BFC31E98: /* nop */ /* 0xBFC31EB8: 04E10004 bgez $a3, 0xBFC31ECC */ uint32_t psx_brA_BFC31EB8 = cpu->gpr[7]; - int psx_taken_BFC31EB8 = ((int32_t)psx_brA_BFC31EB8 >= 0); + psx_taken_BFC31EB8 = ((int32_t)psx_brA_BFC31EB8 >= 0); /* 0xBFC31EBC: 30F9003F andi $t9, $a3, 0x3F */ cpu->gpr[25] = cpu->gpr[7] & 0x3Fu; if (psx_taken_BFC31EB8) goto label_BFC31ECC; @@ -159441,7 +163889,7 @@ label_BFC31EC0: psx_check_interrupts(cpu); /* 0xBFC31EC0: 13200002 beq $t9, $zero, 0xBFC31ECC */ uint32_t psx_brA_BFC31EC0 = cpu->gpr[25]; uint32_t psx_brB_BFC31EC0 = cpu->gpr[0]; - int psx_taken_BFC31EC0 = (psx_brA_BFC31EC0 == psx_brB_BFC31EC0); + psx_taken_BFC31EC0 = (psx_brA_BFC31EC0 == psx_brB_BFC31EC0); /* 0xBFC31EC4: 00000000 nop */ /* nop */ if (psx_taken_BFC31EC0) goto label_BFC31ECC; @@ -159459,7 +163907,7 @@ label_BFC31ECC: psx_check_interrupts(cpu); /* 0xBFC31ECC: 13200004 beq $t9, $zero, 0xBFC31EE0 */ uint32_t psx_brA_BFC31ECC = cpu->gpr[25]; uint32_t psx_brB_BFC31ECC = cpu->gpr[0]; - int psx_taken_BFC31ECC = (psx_brA_BFC31ECC == psx_brB_BFC31ECC); + psx_taken_BFC31ECC = (psx_brA_BFC31ECC == psx_brB_BFC31ECC); /* 0xBFC31ED0: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC31ECC) goto label_BFC31EE0; @@ -159470,7 +163918,7 @@ label_BFC31ED4: psx_check_interrupts(cpu); /* 0xBFC31ED4: 10000002 beq $zero, $zero, 0xBFC31EE0 */ uint32_t psx_brA_BFC31ED4 = cpu->gpr[0]; uint32_t psx_brB_BFC31ED4 = cpu->gpr[0]; - int psx_taken_BFC31ED4 = (psx_brA_BFC31ED4 == psx_brB_BFC31ED4); + psx_taken_BFC31ED4 = (psx_brA_BFC31ED4 == psx_brB_BFC31ED4); /* 0xBFC31ED8: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC31ED4) goto label_BFC31EE0; @@ -159488,7 +163936,7 @@ label_BFC31EE0: psx_check_interrupts(cpu); /* 0xBFC31EE0: 04E10002 bgez $a3, 0xBFC31EEC */ uint32_t psx_brA_BFC31EE0 = cpu->gpr[7]; - int psx_taken_BFC31EE0 = ((int32_t)psx_brA_BFC31EE0 >= 0); + psx_taken_BFC31EE0 = ((int32_t)psx_brA_BFC31EE0 >= 0); /* 0xBFC31EE4: 00E00821 addu $at, $a3, $zero */ cpu->gpr[1] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC31EE0) goto label_BFC31EEC; @@ -159542,6 +163990,8 @@ label_BFC31F14: void func_1FC32010(CPUState* cpu) { debug_server_log_call_entry(0x1FC32010u); + int psx_taken_BFC3201C = 0; + int psx_taken_BFC32030 = 0; label_BFC32010: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -159555,7 +164005,7 @@ label_BFC32010: cpu->gpr[5] = cpu->gpr[3] + cpu->gpr[0]; /* 0xBFC3201C: 10A00006 beq $a1, $zero, 0xBFC32038 */ uint32_t psx_brA_BFC3201C = cpu->gpr[5]; uint32_t psx_brB_BFC3201C = cpu->gpr[0]; - int psx_taken_BFC3201C = (psx_brA_BFC3201C == psx_brB_BFC3201C); + psx_taken_BFC3201C = (psx_brA_BFC3201C == psx_brB_BFC3201C); /* 0xBFC32020: 2463FFFF addiu $v1, $v1, -1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (-1)); if (psx_taken_BFC3201C) goto label_BFC32038; @@ -159572,7 +164022,7 @@ label_BFC32024: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); /* 0xBFC32030: 14A0FFFC bne $a1, $zero, 0xBFC32024 */ uint32_t psx_brA_BFC32030 = cpu->gpr[5]; uint32_t psx_brB_BFC32030 = cpu->gpr[0]; - int psx_taken_BFC32030 = (psx_brA_BFC32030 != psx_brB_BFC32030); + psx_taken_BFC32030 = (psx_brA_BFC32030 != psx_brB_BFC32030); /* 0xBFC32034: 2463FFFF addiu $v1, $v1, -1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (-1)); if (psx_taken_BFC32030) goto label_BFC32024; @@ -159589,6 +164039,8 @@ label_BFC32038: void func_1FC32040(CPUState* cpu) { debug_server_log_call_entry(0x1FC32040u); + int psx_taken_BFC3204C = 0; + int psx_taken_BFC32068 = 0; label_BFC32040: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -159602,7 +164054,7 @@ label_BFC32040: cpu->gpr[5] = cpu->gpr[3] + cpu->gpr[0]; /* 0xBFC3204C: 10A00008 beq $a1, $zero, 0xBFC32070 */ uint32_t psx_brA_BFC3204C = cpu->gpr[5]; uint32_t psx_brB_BFC3204C = cpu->gpr[0]; - int psx_taken_BFC3204C = (psx_brA_BFC3204C == psx_brB_BFC3204C); + psx_taken_BFC3204C = (psx_brA_BFC3204C == psx_brB_BFC3204C); /* 0xBFC32050: 2463FFFF addiu $v1, $v1, -1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (-1)); if (psx_taken_BFC3204C) goto label_BFC32070; @@ -159623,7 +164075,7 @@ label_BFC32054: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); /* 0xBFC32068: 14A0FFFA bne $a1, $zero, 0xBFC32054 */ uint32_t psx_brA_BFC32068 = cpu->gpr[5]; uint32_t psx_brB_BFC32068 = cpu->gpr[0]; - int psx_taken_BFC32068 = (psx_brA_BFC32068 != psx_brB_BFC32068); + psx_taken_BFC32068 = (psx_brA_BFC32068 != psx_brB_BFC32068); /* 0xBFC3206C: 2463FFFF addiu $v1, $v1, -1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (-1)); if (psx_taken_BFC32068) goto label_BFC32054; @@ -159640,6 +164092,8 @@ label_BFC32070: void func_1FC32078(CPUState* cpu) { debug_server_log_call_entry(0x1FC32078u); + int psx_taken_BFC32088 = 0; + int psx_taken_BFC320A4 = 0; label_BFC32078: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -159655,7 +164109,7 @@ label_BFC32078: cpu->gpr[7] = cpu->gpr[6] + cpu->gpr[0]; /* 0xBFC32088: 10E00008 beq $a3, $zero, 0xBFC320AC */ uint32_t psx_brA_BFC32088 = cpu->gpr[7]; uint32_t psx_brB_BFC32088 = cpu->gpr[0]; - int psx_taken_BFC32088 = (psx_brA_BFC32088 == psx_brB_BFC32088); + psx_taken_BFC32088 = (psx_brA_BFC32088 == psx_brB_BFC32088); /* 0xBFC3208C: 24C6FFFF addiu $a2, $a2, -1 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); if (psx_taken_BFC32088) goto label_BFC320AC; @@ -159676,7 +164130,7 @@ label_BFC32090: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); /* 0xBFC320A4: 14E0FFFA bne $a3, $zero, 0xBFC32090 */ uint32_t psx_brA_BFC320A4 = cpu->gpr[7]; uint32_t psx_brB_BFC320A4 = cpu->gpr[0]; - int psx_taken_BFC320A4 = (psx_brA_BFC320A4 != psx_brB_BFC320A4); + psx_taken_BFC320A4 = (psx_brA_BFC320A4 != psx_brB_BFC320A4); /* 0xBFC320A8: AC6EFFFC sw $t6, -4($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC320A8u); return; } g_debug_last_store_pc = 0xBFC320A8u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC320A4) goto label_BFC32090; @@ -159693,6 +164147,8 @@ label_BFC320AC: void func_1FC320B4(CPUState* cpu) { debug_server_log_call_entry(0x1FC320B4u); + int psx_taken_BFC320C8 = 0; + int psx_taken_BFC320F0 = 0; label_BFC320B4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -159710,7 +164166,7 @@ label_BFC320B4: cpu->gpr[9] = cpu->gpr[8] + cpu->gpr[0]; /* 0xBFC320C8: 1120000B beq $t1, $zero, 0xBFC320F8 */ uint32_t psx_brA_BFC320C8 = cpu->gpr[9]; uint32_t psx_brB_BFC320C8 = cpu->gpr[0]; - int psx_taken_BFC320C8 = (psx_brA_BFC320C8 == psx_brB_BFC320C8); + psx_taken_BFC320C8 = (psx_brA_BFC320C8 == psx_brB_BFC320C8); /* 0xBFC320CC: 2508FFFF addiu $t0, $t0, -1 */ cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[8] + (-1)); if (psx_taken_BFC320C8) goto label_BFC320F8; @@ -159737,7 +164193,7 @@ label_BFC320D0: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[7] + (4)); /* 0xBFC320F0: 1520FFF7 bne $t1, $zero, 0xBFC320D0 */ uint32_t psx_brA_BFC320F0 = cpu->gpr[9]; uint32_t psx_brB_BFC320F0 = cpu->gpr[0]; - int psx_taken_BFC320F0 = (psx_brA_BFC320F0 != psx_brB_BFC320F0); + psx_taken_BFC320F0 = (psx_brA_BFC320F0 != psx_brB_BFC320F0); /* 0xBFC320F4: 2508FFFF addiu $t0, $t0, -1 */ cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[8] + (-1)); if (psx_taken_BFC320F0) goto label_BFC320D0; @@ -159754,6 +164210,13 @@ label_BFC320F8: void func_1FC32100(CPUState* cpu) { debug_server_log_call_entry(0x1FC32100u); + int psx_taken_BFC3210C = 0; + int psx_taken_BFC32114 = 0; + int psx_taken_BFC32128 = 0; + int psx_taken_BFC3213C = 0; + int psx_taken_BFC321C4 = 0; + int psx_taken_BFC321D0 = 0; + int psx_taken_BFC321DC = 0; label_BFC32100: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -159767,7 +164230,7 @@ label_BFC32100: cpu->gpr[6] = cpu->gpr[6] << 16u; /* 0xBFC3210C: 04A0000D bltz $a1, 0xBFC32144 */ uint32_t psx_brA_BFC3210C = cpu->gpr[5]; - int psx_taken_BFC3210C = ((int32_t)psx_brA_BFC3210C < 0); + psx_taken_BFC3210C = ((int32_t)psx_brA_BFC3210C < 0); /* 0xBFC32110: 00063403 sra $a2, $a2, 16 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] >> 16u); if (psx_taken_BFC3210C) goto label_BFC32144; @@ -159778,7 +164241,7 @@ label_BFC32114: psx_check_interrupts(cpu); /* 0xBFC32114: 04C0000B bltz $a2, 0xBFC32144 */ uint32_t psx_brA_BFC32114 = cpu->gpr[6]; - int psx_taken_BFC32114 = ((int32_t)psx_brA_BFC32114 < 0); + psx_taken_BFC32114 = ((int32_t)psx_brA_BFC32114 < 0); /* 0xBFC32118: 00000000 nop */ /* nop */ if (psx_taken_BFC32114) goto label_BFC32144; @@ -159795,7 +164258,7 @@ label_BFC3211C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[5] < (int32_t)cpu->gpr[14] ? 1 : 0); /* 0xBFC32128: 10200006 beq $at, $zero, 0xBFC32144 */ uint32_t psx_brA_BFC32128 = cpu->gpr[1]; uint32_t psx_brB_BFC32128 = cpu->gpr[0]; - int psx_taken_BFC32128 = (psx_brA_BFC32128 == psx_brB_BFC32128); + psx_taken_BFC32128 = (psx_brA_BFC32128 == psx_brB_BFC32128); /* 0xBFC3212C: 00000000 nop */ /* nop */ if (psx_taken_BFC32128) goto label_BFC32144; @@ -159812,7 +164275,7 @@ label_BFC32130: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[6] < (int32_t)cpu->gpr[15] ? 1 : 0); /* 0xBFC3213C: 14200003 bne $at, $zero, 0xBFC3214C */ uint32_t psx_brA_BFC3213C = cpu->gpr[1]; uint32_t psx_brB_BFC3213C = cpu->gpr[0]; - int psx_taken_BFC3213C = (psx_brA_BFC3213C != psx_brB_BFC3213C); + psx_taken_BFC3213C = (psx_brA_BFC3213C != psx_brB_BFC3213C); /* 0xBFC32140: 00000000 nop */ /* nop */ if (psx_taken_BFC3213C) goto label_BFC3214C; @@ -159892,7 +164355,7 @@ label_BFC3214C: cpu->gpr[2] = cpu->gpr[15] >> (cpu->gpr[13] & 0x1Fu); /* 0xBFC321C4: 15000002 bne $t0, $zero, 0xBFC321D0 */ uint32_t psx_brA_BFC321C4 = cpu->gpr[8]; uint32_t psx_brB_BFC321C4 = cpu->gpr[0]; - int psx_taken_BFC321C4 = (psx_brA_BFC321C4 != psx_brB_BFC321C4); + psx_taken_BFC321C4 = (psx_brA_BFC321C4 != psx_brB_BFC321C4); /* 0xBFC321C8: 00000000 nop */ /* nop */ if (psx_taken_BFC321C4) goto label_BFC321D0; @@ -159910,7 +164373,7 @@ label_BFC321D0: psx_check_interrupts(cpu); /* 0xBFC321D0: 15200002 bne $t1, $zero, 0xBFC321DC */ uint32_t psx_brA_BFC321D0 = cpu->gpr[9]; uint32_t psx_brB_BFC321D0 = cpu->gpr[0]; - int psx_taken_BFC321D0 = (psx_brA_BFC321D0 != psx_brB_BFC321D0); + psx_taken_BFC321D0 = (psx_brA_BFC321D0 != psx_brB_BFC321D0); /* 0xBFC321D4: 00000000 nop */ /* nop */ if (psx_taken_BFC321D0) goto label_BFC321DC; @@ -159928,7 +164391,7 @@ label_BFC321DC: psx_check_interrupts(cpu); /* 0xBFC321DC: 15200002 bne $t1, $zero, 0xBFC321E8 */ uint32_t psx_brA_BFC321DC = cpu->gpr[9]; uint32_t psx_brB_BFC321DC = cpu->gpr[0]; - int psx_taken_BFC321DC = (psx_brA_BFC321DC != psx_brB_BFC321DC); + psx_taken_BFC321DC = (psx_brA_BFC321DC != psx_brB_BFC321DC); /* 0xBFC321E0: 00000000 nop */ /* nop */ if (psx_taken_BFC321DC) goto label_BFC321E8; @@ -159952,6 +164415,13 @@ label_BFC321E8: void func_1FC321F0(CPUState* cpu) { debug_server_log_call_entry(0x1FC321F0u); + int psx_taken_BFC32200 = 0; + int psx_taken_BFC32208 = 0; + int psx_taken_BFC3221C = 0; + int psx_taken_BFC32230 = 0; + int psx_taken_BFC322B8 = 0; + int psx_taken_BFC322C4 = 0; + int psx_taken_BFC322D0 = 0; label_BFC321F0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -159967,7 +164437,7 @@ label_BFC321F0: cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] >> 16u); /* 0xBFC32200: 04A00036 bltz $a1, 0xBFC322DC */ uint32_t psx_brA_BFC32200 = cpu->gpr[5]; - int psx_taken_BFC32200 = ((int32_t)psx_brA_BFC32200 < 0); + psx_taken_BFC32200 = ((int32_t)psx_brA_BFC32200 < 0); /* 0xBFC32204: 00E05821 addu $t3, $a3, $zero */ cpu->gpr[11] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC32200) goto label_BFC322DC; @@ -159978,7 +164448,7 @@ label_BFC32208: psx_check_interrupts(cpu); /* 0xBFC32208: 04C00034 bltz $a2, 0xBFC322DC */ uint32_t psx_brA_BFC32208 = cpu->gpr[6]; - int psx_taken_BFC32208 = ((int32_t)psx_brA_BFC32208 < 0); + psx_taken_BFC32208 = ((int32_t)psx_brA_BFC32208 < 0); /* 0xBFC3220C: 00000000 nop */ /* nop */ if (psx_taken_BFC32208) goto label_BFC322DC; @@ -159995,7 +164465,7 @@ label_BFC32210: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[5] < (int32_t)cpu->gpr[14] ? 1 : 0); /* 0xBFC3221C: 1020002F beq $at, $zero, 0xBFC322DC */ uint32_t psx_brA_BFC3221C = cpu->gpr[1]; uint32_t psx_brB_BFC3221C = cpu->gpr[0]; - int psx_taken_BFC3221C = (psx_brA_BFC3221C == psx_brB_BFC3221C); + psx_taken_BFC3221C = (psx_brA_BFC3221C == psx_brB_BFC3221C); /* 0xBFC32220: 00000000 nop */ /* nop */ if (psx_taken_BFC3221C) goto label_BFC322DC; @@ -160012,7 +164482,7 @@ label_BFC32224: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[6] < (int32_t)cpu->gpr[15] ? 1 : 0); /* 0xBFC32230: 1020002A beq $at, $zero, 0xBFC322DC */ uint32_t psx_brA_BFC32230 = cpu->gpr[1]; uint32_t psx_brB_BFC32230 = cpu->gpr[0]; - int psx_taken_BFC32230 = (psx_brA_BFC32230 == psx_brB_BFC32230); + psx_taken_BFC32230 = (psx_brA_BFC32230 == psx_brB_BFC32230); /* 0xBFC32234: 00000000 nop */ /* nop */ if (psx_taken_BFC32230) goto label_BFC322DC; @@ -160087,7 +164557,7 @@ label_BFC32238: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[12] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC322B4u); return; } g_debug_last_store_pc = 0xBFC322B4u; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC322B8: 14E00002 bne $a3, $zero, 0xBFC322C4 */ uint32_t psx_brA_BFC322B8 = cpu->gpr[7]; uint32_t psx_brB_BFC322B8 = cpu->gpr[0]; - int psx_taken_BFC322B8 = (psx_brA_BFC322B8 != psx_brB_BFC322B8); + psx_taken_BFC322B8 = (psx_brA_BFC322B8 != psx_brB_BFC322B8); /* 0xBFC322BC: 00000000 nop */ /* nop */ if (psx_taken_BFC322B8) goto label_BFC322C4; @@ -160105,7 +164575,7 @@ label_BFC322C4: psx_check_interrupts(cpu); /* 0xBFC322C4: 15000002 bne $t0, $zero, 0xBFC322D0 */ uint32_t psx_brA_BFC322C4 = cpu->gpr[8]; uint32_t psx_brB_BFC322C4 = cpu->gpr[0]; - int psx_taken_BFC322C4 = (psx_brA_BFC322C4 != psx_brB_BFC322C4); + psx_taken_BFC322C4 = (psx_brA_BFC322C4 != psx_brB_BFC322C4); /* 0xBFC322C8: 00000000 nop */ /* nop */ if (psx_taken_BFC322C4) goto label_BFC322D0; @@ -160123,7 +164593,7 @@ label_BFC322D0: psx_check_interrupts(cpu); /* 0xBFC322D0: 15000002 bne $t0, $zero, 0xBFC322DC */ uint32_t psx_brA_BFC322D0 = cpu->gpr[8]; uint32_t psx_brB_BFC322D0 = cpu->gpr[0]; - int psx_taken_BFC322D0 = (psx_brA_BFC322D0 != psx_brB_BFC322D0); + psx_taken_BFC322D0 = (psx_brA_BFC322D0 != psx_brB_BFC322D0); /* 0xBFC322D4: 00000000 nop */ /* nop */ if (psx_taken_BFC322D0) goto label_BFC322DC; @@ -160250,6 +164720,15 @@ label_BFC32354: void func_1FC32368(CPUState* cpu) { debug_server_log_call_entry(0x1FC32368u); + int psx_taken_BFC32394 = 0; + int psx_taken_BFC323A0 = 0; + int psx_taken_BFC323B0 = 0; + int psx_taken_BFC323B8 = 0; + int psx_taken_BFC323C4 = 0; + int psx_taken_BFC323CC = 0; + int psx_taken_BFC323E4 = 0; + int psx_taken_BFC323F4 = 0; + int psx_taken_BFC323FC = 0; label_BFC32368: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -160279,7 +164758,7 @@ label_BFC32368: cpu->gpr[15] = cpu->hi; /* 0xBFC32394: 14A00002 bne $a1, $zero, 0xBFC323A0 */ uint32_t psx_brA_BFC32394 = cpu->gpr[5]; uint32_t psx_brB_BFC32394 = cpu->gpr[0]; - int psx_taken_BFC32394 = (psx_brA_BFC32394 != psx_brB_BFC32394); + psx_taken_BFC32394 = (psx_brA_BFC32394 != psx_brB_BFC32394); /* 0xBFC32398: 00000000 nop */ /* nop */ if (psx_taken_BFC32394) goto label_BFC323A0; @@ -160297,7 +164776,7 @@ label_BFC323A0: psx_check_interrupts(cpu); /* 0xBFC323A0: 14600002 bne $v1, $zero, 0xBFC323AC */ uint32_t psx_brA_BFC323A0 = cpu->gpr[3]; uint32_t psx_brB_BFC323A0 = cpu->gpr[0]; - int psx_taken_BFC323A0 = (psx_brA_BFC323A0 != psx_brB_BFC323A0); + psx_taken_BFC323A0 = (psx_brA_BFC323A0 != psx_brB_BFC323A0); /* 0xBFC323A4: 00000000 nop */ /* nop */ if (psx_taken_BFC323A0) goto label_BFC323AC; @@ -160317,7 +164796,7 @@ label_BFC323AC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC323B0: 14610004 bne $v1, $at, 0xBFC323C4 */ uint32_t psx_brA_BFC323B0 = cpu->gpr[3]; uint32_t psx_brB_BFC323B0 = cpu->gpr[1]; - int psx_taken_BFC323B0 = (psx_brA_BFC323B0 != psx_brB_BFC323B0); + psx_taken_BFC323B0 = (psx_brA_BFC323B0 != psx_brB_BFC323B0); /* 0xBFC323B4: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC323B0) goto label_BFC323C4; @@ -160328,7 +164807,7 @@ label_BFC323B8: psx_check_interrupts(cpu); /* 0xBFC323B8: 14810002 bne $a0, $at, 0xBFC323C4 */ uint32_t psx_brA_BFC323B8 = cpu->gpr[4]; uint32_t psx_brB_BFC323B8 = cpu->gpr[1]; - int psx_taken_BFC323B8 = (psx_brA_BFC323B8 != psx_brB_BFC323B8); + psx_taken_BFC323B8 = (psx_brA_BFC323B8 != psx_brB_BFC323B8); /* 0xBFC323BC: 00000000 nop */ /* nop */ if (psx_taken_BFC323B8) goto label_BFC323C4; @@ -160346,7 +164825,7 @@ label_BFC323C4: psx_check_interrupts(cpu); /* 0xBFC323C4: 11E00004 beq $t7, $zero, 0xBFC323D8 */ uint32_t psx_brA_BFC323C4 = cpu->gpr[15]; uint32_t psx_brB_BFC323C4 = cpu->gpr[0]; - int psx_taken_BFC323C4 = (psx_brA_BFC323C4 == psx_brB_BFC323C4); + psx_taken_BFC323C4 = (psx_brA_BFC323C4 == psx_brB_BFC323C4); /* 0xBFC323C8: 00002821 addu $a1, $zero, $zero */ cpu->gpr[5] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC323C4) goto label_BFC323D8; @@ -160357,7 +164836,7 @@ label_BFC323CC: psx_check_interrupts(cpu); /* 0xBFC323CC: 10000002 beq $zero, $zero, 0xBFC323D8 */ uint32_t psx_brA_BFC323CC = cpu->gpr[0]; uint32_t psx_brB_BFC323CC = cpu->gpr[0]; - int psx_taken_BFC323CC = (psx_brA_BFC323CC == psx_brB_BFC323CC); + psx_taken_BFC323CC = (psx_brA_BFC323CC == psx_brB_BFC323CC); /* 0xBFC323D0: 24050001 addiu $a1, $zero, 1 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC323CC) goto label_BFC323D8; @@ -160381,7 +164860,7 @@ label_BFC323D8: cpu->gpr[2] = cpu->gpr[24] + cpu->gpr[5]; /* 0xBFC323E4: 14600002 bne $v1, $zero, 0xBFC323F0 */ uint32_t psx_brA_BFC323E4 = cpu->gpr[3]; uint32_t psx_brB_BFC323E4 = cpu->gpr[0]; - int psx_taken_BFC323E4 = (psx_brA_BFC323E4 != psx_brB_BFC323E4); + psx_taken_BFC323E4 = (psx_brA_BFC323E4 != psx_brB_BFC323E4); /* 0xBFC323E8: 00000000 nop */ /* nop */ if (psx_taken_BFC323E4) goto label_BFC323F0; @@ -160401,7 +164880,7 @@ label_BFC323F0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC323F4: 14610004 bne $v1, $at, 0xBFC32408 */ uint32_t psx_brA_BFC323F4 = cpu->gpr[3]; uint32_t psx_brB_BFC323F4 = cpu->gpr[1]; - int psx_taken_BFC323F4 = (psx_brA_BFC323F4 != psx_brB_BFC323F4); + psx_taken_BFC323F4 = (psx_brA_BFC323F4 != psx_brB_BFC323F4); /* 0xBFC323F8: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC323F4) goto label_BFC32408; @@ -160412,7 +164891,7 @@ label_BFC323FC: psx_check_interrupts(cpu); /* 0xBFC323FC: 14810002 bne $a0, $at, 0xBFC32408 */ uint32_t psx_brA_BFC323FC = cpu->gpr[4]; uint32_t psx_brB_BFC323FC = cpu->gpr[1]; - int psx_taken_BFC323FC = (psx_brA_BFC323FC != psx_brB_BFC323FC); + psx_taken_BFC323FC = (psx_brA_BFC323FC != psx_brB_BFC323FC); /* 0xBFC32400: 00000000 nop */ /* nop */ if (psx_taken_BFC323FC) goto label_BFC32408; @@ -160499,6 +164978,12 @@ void func_1FC32450(CPUState* cpu) { default: break; } } + int psx_taken_BFC32488 = 0; + int psx_taken_BFC324A4 = 0; + int psx_taken_BFC324C8 = 0; + int psx_taken_BFC324F0 = 0; + int psx_taken_BFC3250C = 0; + int psx_taken_BFC3252C = 0; label_BFC32450: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -160534,7 +165019,7 @@ label_BFC32450: cpu->gpr[20] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC32488: 1860002D blez $v1, 0xBFC32540 */ uint32_t psx_brA_BFC32488 = cpu->gpr[3]; - int psx_taken_BFC32488 = ((int32_t)psx_brA_BFC32488 <= 0); + psx_taken_BFC32488 = ((int32_t)psx_brA_BFC32488 <= 0); /* 0xBFC3248C: 00009821 addu $s3, $zero, $zero */ cpu->gpr[19] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC32488) goto label_BFC32540; @@ -160560,7 +165045,7 @@ label_BFC324A4: psx_check_interrupts(cpu); /* 0xBFC324A4: 1840001D blez $v0, 0xBFC3251C */ uint32_t psx_brA_BFC324A4 = cpu->gpr[2]; - int psx_taken_BFC324A4 = ((int32_t)psx_brA_BFC324A4 <= 0); + psx_taken_BFC324A4 = ((int32_t)psx_brA_BFC324A4 <= 0); /* 0xBFC324A8: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC324A4) goto label_BFC3251C; @@ -160591,7 +165076,7 @@ label_BFC324C8: psx_check_interrupts(cpu); /* 0xBFC324C8: 1440000B bne $v0, $zero, 0xBFC324F8 */ uint32_t psx_brA_BFC324C8 = cpu->gpr[2]; uint32_t psx_brB_BFC324C8 = cpu->gpr[0]; - int psx_taken_BFC324C8 = (psx_brA_BFC324C8 != psx_brB_BFC324C8); + psx_taken_BFC324C8 = (psx_brA_BFC324C8 != psx_brB_BFC324C8); /* 0xBFC324CC: 00000000 nop */ /* nop */ if (psx_taken_BFC324C8) goto label_BFC324F8; @@ -160618,7 +165103,7 @@ label_BFC324D0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC324ECu); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC324F0: 10000015 beq $zero, $zero, 0xBFC32548 */ uint32_t psx_brA_BFC324F0 = cpu->gpr[0]; uint32_t psx_brB_BFC324F0 = cpu->gpr[0]; - int psx_taken_BFC324F0 = (psx_brA_BFC324F0 == psx_brB_BFC324F0); + psx_taken_BFC324F0 = (psx_brA_BFC324F0 == psx_brB_BFC324F0); /* 0xBFC324F4: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC324F4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC324F0) goto label_BFC32548; @@ -160639,7 +165124,7 @@ label_BFC324F8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC3250C: 1420FFE7 bne $at, $zero, 0xBFC324AC */ uint32_t psx_brA_BFC3250C = cpu->gpr[1]; uint32_t psx_brB_BFC3250C = cpu->gpr[0]; - int psx_taken_BFC3250C = (psx_brA_BFC3250C != psx_brB_BFC3250C); + psx_taken_BFC3250C = (psx_brA_BFC3250C != psx_brB_BFC3250C); /* 0xBFC32510: 00000000 nop */ /* nop */ if (psx_taken_BFC3250C) goto label_BFC324AC; @@ -160667,7 +165152,7 @@ label_BFC3251C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC3252C: 1420FFDD bne $at, $zero, 0xBFC324A4 */ uint32_t psx_brA_BFC3252C = cpu->gpr[1]; uint32_t psx_brB_BFC3252C = cpu->gpr[0]; - int psx_taken_BFC3252C = (psx_brA_BFC3252C != psx_brB_BFC3252C); + psx_taken_BFC3252C = (psx_brA_BFC3252C != psx_brB_BFC3252C); /* 0xBFC32530: 00000000 nop */ /* nop */ if (psx_taken_BFC3252C) goto label_BFC324A4; @@ -160718,6 +165203,24 @@ void func_1FC3255C(CPUState* cpu) { default: break; } } + int psx_taken_BFC32584 = 0; + int psx_taken_BFC325A0 = 0; + int psx_taken_BFC325A8 = 0; + int psx_taken_BFC325C0 = 0; + int psx_taken_BFC325DC = 0; + int psx_taken_BFC325E4 = 0; + int psx_taken_BFC325FC = 0; + int psx_taken_BFC32604 = 0; + int psx_taken_BFC3261C = 0; + int psx_taken_BFC32624 = 0; + int psx_taken_BFC3263C = 0; + int psx_taken_BFC32654 = 0; + int psx_taken_BFC3266C = 0; + int psx_taken_BFC32674 = 0; + int psx_taken_BFC32684 = 0; + int psx_taken_BFC32694 = 0; + int psx_taken_BFC326B8 = 0; + int psx_taken_BFC326E0 = 0; label_BFC3255C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -160745,7 +165248,7 @@ label_BFC3255C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (int32_t)cpu->gpr[8] ? 1 : 0); /* 0xBFC32584: 14200008 bne $at, $zero, 0xBFC325A8 */ uint32_t psx_brA_BFC32584 = cpu->gpr[1]; uint32_t psx_brB_BFC32584 = cpu->gpr[0]; - int psx_taken_BFC32584 = (psx_brA_BFC32584 != psx_brB_BFC32584); + psx_taken_BFC32584 = (psx_brA_BFC32584 != psx_brB_BFC32584); /* 0xBFC32588: 00E0A021 addu $s4, $a3, $zero */ cpu->gpr[20] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC32584) goto label_BFC325A8; @@ -160766,7 +165269,7 @@ label_BFC3258C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[15] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC325A0: 10200003 beq $at, $zero, 0xBFC325B0 */ uint32_t psx_brA_BFC325A0 = cpu->gpr[1]; uint32_t psx_brB_BFC325A0 = cpu->gpr[0]; - int psx_taken_BFC325A0 = (psx_brA_BFC325A0 == psx_brB_BFC325A0); + psx_taken_BFC325A0 = (psx_brA_BFC325A0 == psx_brB_BFC325A0); /* 0xBFC325A4: 00000000 nop */ /* nop */ if (psx_taken_BFC325A0) goto label_BFC325B0; @@ -160777,7 +165280,7 @@ label_BFC325A8: psx_check_interrupts(cpu); /* 0xBFC325A8: 10000053 beq $zero, $zero, 0xBFC326F8 */ uint32_t psx_brA_BFC325A8 = cpu->gpr[0]; uint32_t psx_brB_BFC325A8 = cpu->gpr[0]; - int psx_taken_BFC325A8 = (psx_brA_BFC325A8 == psx_brB_BFC325A8); + psx_taken_BFC325A8 = (psx_brA_BFC325A8 == psx_brB_BFC325A8); /* 0xBFC325AC: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC325A8) goto label_BFC326F8; @@ -160796,7 +165299,7 @@ label_BFC325B0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[7] < (int32_t)cpu->gpr[5] ? 1 : 0); /* 0xBFC325C0: 14200008 bne $at, $zero, 0xBFC325E4 */ uint32_t psx_brA_BFC325C0 = cpu->gpr[1]; uint32_t psx_brB_BFC325C0 = cpu->gpr[0]; - int psx_taken_BFC325C0 = (psx_brA_BFC325C0 != psx_brB_BFC325C0); + psx_taken_BFC325C0 = (psx_brA_BFC325C0 != psx_brB_BFC325C0); /* 0xBFC325C4: 00000000 nop */ /* nop */ if (psx_taken_BFC325C0) goto label_BFC325E4; @@ -160817,7 +165320,7 @@ label_BFC325C8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[25] < (int32_t)cpu->gpr[4] ? 1 : 0); /* 0xBFC325DC: 10200003 beq $at, $zero, 0xBFC325EC */ uint32_t psx_brA_BFC325DC = cpu->gpr[1]; uint32_t psx_brB_BFC325DC = cpu->gpr[0]; - int psx_taken_BFC325DC = (psx_brA_BFC325DC == psx_brB_BFC325DC); + psx_taken_BFC325DC = (psx_brA_BFC325DC == psx_brB_BFC325DC); /* 0xBFC325E0: 00000000 nop */ /* nop */ if (psx_taken_BFC325DC) goto label_BFC325EC; @@ -160828,7 +165331,7 @@ label_BFC325E4: psx_check_interrupts(cpu); /* 0xBFC325E4: 10000044 beq $zero, $zero, 0xBFC326F8 */ uint32_t psx_brA_BFC325E4 = cpu->gpr[0]; uint32_t psx_brB_BFC325E4 = cpu->gpr[0]; - int psx_taken_BFC325E4 = (psx_brA_BFC325E4 == psx_brB_BFC325E4); + psx_taken_BFC325E4 = (psx_brA_BFC325E4 == psx_brB_BFC325E4); /* 0xBFC325E8: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC325E4) goto label_BFC326F8; @@ -160847,7 +165350,7 @@ label_BFC325EC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[11] < (int32_t)cpu->gpr[9] ? 1 : 0); /* 0xBFC325FC: 10200003 beq $at, $zero, 0xBFC3260C */ uint32_t psx_brA_BFC325FC = cpu->gpr[1]; uint32_t psx_brB_BFC325FC = cpu->gpr[0]; - int psx_taken_BFC325FC = (psx_brA_BFC325FC == psx_brB_BFC325FC); + psx_taken_BFC325FC = (psx_brA_BFC325FC == psx_brB_BFC325FC); /* 0xBFC32600: 00000000 nop */ /* nop */ if (psx_taken_BFC325FC) goto label_BFC3260C; @@ -160858,7 +165361,7 @@ label_BFC32604: psx_check_interrupts(cpu); /* 0xBFC32604: 1000003C beq $zero, $zero, 0xBFC326F8 */ uint32_t psx_brA_BFC32604 = cpu->gpr[0]; uint32_t psx_brB_BFC32604 = cpu->gpr[0]; - int psx_taken_BFC32604 = (psx_brA_BFC32604 == psx_brB_BFC32604); + psx_taken_BFC32604 = (psx_brA_BFC32604 == psx_brB_BFC32604); /* 0xBFC32608: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC32604) goto label_BFC326F8; @@ -160877,7 +165380,7 @@ label_BFC3260C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[13] < (int32_t)cpu->gpr[8] ? 1 : 0); /* 0xBFC3261C: 10200003 beq $at, $zero, 0xBFC3262C */ uint32_t psx_brA_BFC3261C = cpu->gpr[1]; uint32_t psx_brB_BFC3261C = cpu->gpr[0]; - int psx_taken_BFC3261C = (psx_brA_BFC3261C == psx_brB_BFC3261C); + psx_taken_BFC3261C = (psx_brA_BFC3261C == psx_brB_BFC3261C); /* 0xBFC32620: 00000000 nop */ /* nop */ if (psx_taken_BFC3261C) goto label_BFC3262C; @@ -160888,7 +165391,7 @@ label_BFC32624: psx_check_interrupts(cpu); /* 0xBFC32624: 10000034 beq $zero, $zero, 0xBFC326F8 */ uint32_t psx_brA_BFC32624 = cpu->gpr[0]; uint32_t psx_brB_BFC32624 = cpu->gpr[0]; - int psx_taken_BFC32624 = (psx_brA_BFC32624 == psx_brB_BFC32624); + psx_taken_BFC32624 = (psx_brA_BFC32624 == psx_brB_BFC32624); /* 0xBFC32628: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC32624) goto label_BFC326F8; @@ -160907,7 +165410,7 @@ label_BFC3262C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (int32_t)cpu->gpr[4] ? 1 : 0); /* 0xBFC3263C: 1020002C beq $at, $zero, 0xBFC326F0 */ uint32_t psx_brA_BFC3263C = cpu->gpr[1]; uint32_t psx_brB_BFC3263C = cpu->gpr[0]; - int psx_taken_BFC3263C = (psx_brA_BFC3263C == psx_brB_BFC3263C); + psx_taken_BFC3263C = (psx_brA_BFC3263C == psx_brB_BFC3263C); /* 0xBFC32640: 00000000 nop */ /* nop */ if (psx_taken_BFC3263C) goto label_BFC326F0; @@ -160931,7 +165434,7 @@ label_BFC3264C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC32654: 1020001E beq $at, $zero, 0xBFC326D0 */ uint32_t psx_brA_BFC32654 = cpu->gpr[1]; uint32_t psx_brB_BFC32654 = cpu->gpr[0]; - int psx_taken_BFC32654 = (psx_brA_BFC32654 == psx_brB_BFC32654); + psx_taken_BFC32654 = (psx_brA_BFC32654 == psx_brB_BFC32654); /* 0xBFC32658: 00000000 nop */ /* nop */ if (psx_taken_BFC32654) goto label_BFC326D0; @@ -160961,7 +165464,7 @@ label_BFC3266C: psx_check_interrupts(cpu); /* 0xBFC3266C: 1054000B beq $v0, $s4, 0xBFC3269C */ uint32_t psx_brA_BFC3266C = cpu->gpr[2]; uint32_t psx_brB_BFC3266C = cpu->gpr[20]; - int psx_taken_BFC3266C = (psx_brA_BFC3266C == psx_brB_BFC3266C); + psx_taken_BFC3266C = (psx_brA_BFC3266C == psx_brB_BFC3266C); /* 0xBFC32670: 00000000 nop */ /* nop */ if (psx_taken_BFC3266C) goto label_BFC3269C; @@ -160972,7 +165475,7 @@ label_BFC32674: psx_check_interrupts(cpu); /* 0xBFC32674: 16400006 bne $s2, $zero, 0xBFC32690 */ uint32_t psx_brA_BFC32674 = cpu->gpr[18]; uint32_t psx_brB_BFC32674 = cpu->gpr[0]; - int psx_taken_BFC32674 = (psx_brA_BFC32674 != psx_brB_BFC32674); + psx_taken_BFC32674 = (psx_brA_BFC32674 != psx_brB_BFC32674); /* 0xBFC32678: 8FB0002C lw $s0, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC32678u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC32674) goto label_BFC32690; @@ -160987,7 +165490,7 @@ label_BFC3267C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC32680u); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC32684: 1000001C beq $zero, $zero, 0xBFC326F8 */ uint32_t psx_brA_BFC32684 = cpu->gpr[0]; uint32_t psx_brB_BFC32684 = cpu->gpr[0]; - int psx_taken_BFC32684 = (psx_brA_BFC32684 == psx_brB_BFC32684); + psx_taken_BFC32684 = (psx_brA_BFC32684 == psx_brB_BFC32684); /* 0xBFC32688: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC32684) goto label_BFC326F8; @@ -161007,7 +165510,7 @@ label_BFC32690: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC32690u); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC32694: 10000018 beq $zero, $zero, 0xBFC326F8 */ uint32_t psx_brA_BFC32694 = cpu->gpr[0]; uint32_t psx_brB_BFC32694 = cpu->gpr[0]; - int psx_taken_BFC32694 = (psx_brA_BFC32694 == psx_brB_BFC32694); + psx_taken_BFC32694 = (psx_brA_BFC32694 == psx_brB_BFC32694); /* 0xBFC32698: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC32694) goto label_BFC326F8; @@ -161032,7 +165535,7 @@ label_BFC3269C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC326B8: 1420FFE9 bne $at, $zero, 0xBFC32660 */ uint32_t psx_brA_BFC326B8 = cpu->gpr[1]; uint32_t psx_brB_BFC326B8 = cpu->gpr[0]; - int psx_taken_BFC326B8 = (psx_brA_BFC326B8 != psx_brB_BFC326B8); + psx_taken_BFC326B8 = (psx_brA_BFC326B8 != psx_brB_BFC326B8); /* 0xBFC326BC: 02602021 addu $a0, $s3, $zero */ cpu->gpr[4] = cpu->gpr[19] + cpu->gpr[0]; if (psx_taken_BFC326B8) goto label_BFC32660; @@ -161064,7 +165567,7 @@ label_BFC326D0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (int32_t)cpu->gpr[4] ? 1 : 0); /* 0xBFC326E0: 1420FFDA bne $at, $zero, 0xBFC3264C */ uint32_t psx_brA_BFC326E0 = cpu->gpr[1]; uint32_t psx_brB_BFC326E0 = cpu->gpr[0]; - int psx_taken_BFC326E0 = (psx_brA_BFC326E0 != psx_brB_BFC326E0); + psx_taken_BFC326E0 = (psx_brA_BFC326E0 != psx_brB_BFC326E0); /* 0xBFC326E4: 00038400 sll $s0, $v1, 16 */ cpu->gpr[16] = cpu->gpr[3] << 16u; if (psx_taken_BFC326E0) goto label_BFC3264C; @@ -161137,6 +165640,9 @@ void func_1FC32724(CPUState* cpu) { default: break; } } + int psx_taken_BFC3275C = 0; + int psx_taken_BFC327C4 = 0; + int psx_taken_BFC327F8 = 0; label_BFC32724: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -161178,7 +165684,7 @@ label_BFC32758: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC3275C: 1041002A beq $v0, $at, 0xBFC32808 */ uint32_t psx_brA_BFC3275C = cpu->gpr[2]; uint32_t psx_brB_BFC3275C = cpu->gpr[1]; - int psx_taken_BFC3275C = (psx_brA_BFC3275C == psx_brB_BFC3275C); + psx_taken_BFC3275C = (psx_brA_BFC3275C == psx_brB_BFC3275C); /* 0xBFC32760: 00409021 addu $s2, $v0, $zero */ cpu->gpr[18] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC3275C) goto label_BFC32808; @@ -161248,7 +165754,7 @@ label_BFC327C4: psx_check_interrupts(cpu); /* 0xBFC327C4: 1452000C bne $v0, $s2, 0xBFC327F8 */ uint32_t psx_brA_BFC327C4 = cpu->gpr[2]; uint32_t psx_brB_BFC327C4 = cpu->gpr[18]; - int psx_taken_BFC327C4 = (psx_brA_BFC327C4 != psx_brB_BFC327C4); + psx_taken_BFC327C4 = (psx_brA_BFC327C4 != psx_brB_BFC327C4); /* 0xBFC327C8: 00000000 nop */ /* nop */ if (psx_taken_BFC327C4) goto label_BFC327F8; @@ -161298,7 +165804,7 @@ label_BFC327F8: psx_check_interrupts(cpu); /* 0xBFC327F8: 1E00FFE4 bgtz $s0, 0xBFC3278C */ uint32_t psx_brA_BFC327F8 = cpu->gpr[16]; - int psx_taken_BFC327F8 = ((int32_t)psx_brA_BFC327F8 > 0); + psx_taken_BFC327F8 = ((int32_t)psx_brA_BFC327F8 > 0); /* 0xBFC327FC: 00000000 nop */ /* nop */ if (psx_taken_BFC327F8) goto label_BFC3278C; @@ -161340,6 +165846,9 @@ void func_1FC32820(CPUState* cpu) { default: break; } } + int psx_taken_BFC3286C = 0; + int psx_taken_BFC328B4 = 0; + int psx_taken_BFC328C4 = 0; label_BFC32820: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -161396,7 +165905,7 @@ label_BFC3286C: psx_check_interrupts(cpu); /* 0xBFC3286C: 14550014 bne $v0, $s5, 0xBFC328C0 */ uint32_t psx_brA_BFC3286C = cpu->gpr[2]; uint32_t psx_brB_BFC3286C = cpu->gpr[21]; - int psx_taken_BFC3286C = (psx_brA_BFC3286C != psx_brB_BFC3286C); + psx_taken_BFC3286C = (psx_brA_BFC3286C != psx_brB_BFC3286C); /* 0xBFC32870: 00000000 nop */ /* nop */ if (psx_taken_BFC3286C) goto label_BFC328C0; @@ -161439,7 +165948,7 @@ label_BFC32874: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[12] ? 1 : 0); /* 0xBFC328B4: 14200002 bne $at, $zero, 0xBFC328C0 */ uint32_t psx_brA_BFC328B4 = cpu->gpr[1]; uint32_t psx_brB_BFC328B4 = cpu->gpr[0]; - int psx_taken_BFC328B4 = (psx_brA_BFC328B4 != psx_brB_BFC328B4); + psx_taken_BFC328B4 = (psx_brA_BFC328B4 != psx_brB_BFC328B4); /* 0xBFC328B8: 00000000 nop */ /* nop */ if (psx_taken_BFC328B4) goto label_BFC328C0; @@ -161459,7 +165968,7 @@ label_BFC328C0: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC328C4: 1632FFE5 bne $s1, $s2, 0xBFC3285C */ uint32_t psx_brA_BFC328C4 = cpu->gpr[17]; uint32_t psx_brB_BFC328C4 = cpu->gpr[18]; - int psx_taken_BFC328C4 = (psx_brA_BFC328C4 != psx_brB_BFC328C4); + psx_taken_BFC328C4 = (psx_brA_BFC328C4 != psx_brB_BFC328C4); /* 0xBFC328C8: 02602021 addu $a0, $s3, $zero */ cpu->gpr[4] = cpu->gpr[19] + cpu->gpr[0]; if (psx_taken_BFC328C4) goto label_BFC3285C; @@ -161562,6 +166071,10 @@ label_BFC32934: void func_1FC32944(CPUState* cpu) { debug_server_log_call_entry(0x1FC32944u); + int psx_taken_BFC32944 = 0; + int psx_taken_BFC329A8 = 0; + int psx_taken_BFC329B0 = 0; + int psx_taken_BFC329B8 = 0; label_BFC32944: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -161569,7 +166082,7 @@ label_BFC32944: psx_check_interrupts(cpu); /* 0xBFC32944: 10000018 beq $zero, $zero, 0xBFC329A8 */ uint32_t psx_brA_BFC32944 = cpu->gpr[0]; uint32_t psx_brB_BFC32944 = cpu->gpr[0]; - int psx_taken_BFC32944 = (psx_brA_BFC32944 == psx_brB_BFC32944); + psx_taken_BFC32944 = (psx_brA_BFC32944 == psx_brB_BFC32944); /* 0xBFC32948: 00000000 nop */ /* nop */ if (psx_taken_BFC32944) goto label_BFC329A8; @@ -161641,7 +166154,7 @@ label_BFC329A8: psx_check_interrupts(cpu); /* 0xBFC329A8: 10C0FFE8 beq $a2, $zero, 0xBFC3294C */ uint32_t psx_brA_BFC329A8 = cpu->gpr[6]; uint32_t psx_brB_BFC329A8 = cpu->gpr[0]; - int psx_taken_BFC329A8 = (psx_brA_BFC329A8 == psx_brB_BFC329A8); + psx_taken_BFC329A8 = (psx_brA_BFC329A8 == psx_brB_BFC329A8); /* 0xBFC329AC: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC329A8) goto label_BFC3294C; @@ -161652,7 +166165,7 @@ label_BFC329B0: psx_check_interrupts(cpu); /* 0xBFC329B0: 10C1FFEE beq $a2, $at, 0xBFC3296C */ uint32_t psx_brA_BFC329B0 = cpu->gpr[6]; uint32_t psx_brB_BFC329B0 = cpu->gpr[1]; - int psx_taken_BFC329B0 = (psx_brA_BFC329B0 == psx_brB_BFC329B0); + psx_taken_BFC329B0 = (psx_brA_BFC329B0 == psx_brB_BFC329B0); /* 0xBFC329B4: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC329B0) goto label_BFC3296C; @@ -161663,7 +166176,7 @@ label_BFC329B8: psx_check_interrupts(cpu); /* 0xBFC329B8: 10C1FFF3 beq $a2, $at, 0xBFC32988 */ uint32_t psx_brA_BFC329B8 = cpu->gpr[6]; uint32_t psx_brB_BFC329B8 = cpu->gpr[1]; - int psx_taken_BFC329B8 = (psx_brA_BFC329B8 == psx_brB_BFC329B8); + psx_taken_BFC329B8 = (psx_brA_BFC329B8 == psx_brB_BFC329B8); /* 0xBFC329BC: 00000000 nop */ /* nop */ if (psx_taken_BFC329B8) goto label_BFC32988; @@ -161704,6 +166217,15 @@ void func_1FC329F0(CPUState* cpu) { default: break; } } + int psx_taken_BFC32A54 = 0; + int psx_taken_BFC32A64 = 0; + int psx_taken_BFC32A9C = 0; + int psx_taken_BFC32AB0 = 0; + int psx_taken_BFC32AE4 = 0; + int psx_taken_BFC32B10 = 0; + int psx_taken_BFC32C48 = 0; + int psx_taken_BFC32C88 = 0; + int psx_taken_BFC32C94 = 0; label_BFC329F0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(21u); @@ -161777,7 +166299,7 @@ label_BFC32A50: cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (1)); /* 0xBFC32A54: 1651FFFC bne $s2, $s1, 0xBFC32A48 */ uint32_t psx_brA_BFC32A54 = cpu->gpr[18]; uint32_t psx_brB_BFC32A54 = cpu->gpr[17]; - int psx_taken_BFC32A54 = (psx_brA_BFC32A54 != psx_brB_BFC32A54); + psx_taken_BFC32A54 = (psx_brA_BFC32A54 != psx_brB_BFC32A54); /* 0xBFC32A58: 26100004 addiu $s0, $s0, 4 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (4)); if (psx_taken_BFC32A54) goto label_BFC32A48; @@ -161792,7 +166314,7 @@ label_BFC32A5C: cpu->gpr[1] = (uint32_t)(cpu->gpr[19] < cpu->gpr[20] ? 1 : 0); /* 0xBFC32A64: 1420FFF7 bne $at, $zero, 0xBFC32A44 */ uint32_t psx_brA_BFC32A64 = cpu->gpr[1]; uint32_t psx_brB_BFC32A64 = cpu->gpr[0]; - int psx_taken_BFC32A64 = (psx_brA_BFC32A64 != psx_brB_BFC32A64); + psx_taken_BFC32A64 = (psx_brA_BFC32A64 != psx_brB_BFC32A64); /* 0xBFC32A68: 00009021 addu $s2, $zero, $zero */ cpu->gpr[18] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC32A64) goto label_BFC32A44; @@ -161827,7 +166349,7 @@ label_BFC32A6C: cpu->gpr[7] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC32A9C: 04810002 bgez $a0, 0xBFC32AA8 */ uint32_t psx_brA_BFC32A9C = cpu->gpr[4]; - int psx_taken_BFC32A9C = ((int32_t)psx_brA_BFC32A9C >= 0); + psx_taken_BFC32A9C = ((int32_t)psx_brA_BFC32A9C >= 0); /* 0xBFC32AA0: 00800821 addu $at, $a0, $zero */ cpu->gpr[1] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC32A9C) goto label_BFC32AA8; @@ -161849,7 +166371,7 @@ label_BFC32AA8: /* nop */ /* 0xBFC32AB0: 07C10002 bgez $fp, 0xBFC32ABC */ uint32_t psx_brA_BFC32AB0 = cpu->gpr[30]; - int psx_taken_BFC32AB0 = ((int32_t)psx_brA_BFC32AB0 >= 0); + psx_taken_BFC32AB0 = ((int32_t)psx_brA_BFC32AB0 >= 0); /* 0xBFC32AB4: 03C00821 addu $at, $fp, $zero */ cpu->gpr[1] = cpu->gpr[30] + cpu->gpr[0]; if (psx_taken_BFC32AB0) goto label_BFC32ABC; @@ -161892,7 +166414,7 @@ label_BFC32AC4: cpu->gpr[16] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC32AE4: 04C10002 bgez $a2, 0xBFC32AF0 */ uint32_t psx_brA_BFC32AE4 = cpu->gpr[6]; - int psx_taken_BFC32AE4 = ((int32_t)psx_brA_BFC32AE4 >= 0); + psx_taken_BFC32AE4 = ((int32_t)psx_brA_BFC32AE4 >= 0); /* 0xBFC32AE8: 00C00821 addu $at, $a2, $zero */ cpu->gpr[1] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC32AE4) goto label_BFC32AF0; @@ -161937,7 +166459,7 @@ label_BFC32B0C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[21] + (0)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC32B0Cu); return; } cpu->gpr[25] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC32B10: 06C10002 bgez $s6, 0xBFC32B1C */ uint32_t psx_brA_BFC32B10 = cpu->gpr[22]; - int psx_taken_BFC32B10 = ((int32_t)psx_brA_BFC32B10 >= 0); + psx_taken_BFC32B10 = ((int32_t)psx_brA_BFC32B10 >= 0); /* 0xBFC32B14: 02C00821 addu $at, $s6, $zero */ cpu->gpr[1] = cpu->gpr[22] + cpu->gpr[0]; if (psx_taken_BFC32B10) goto label_BFC32B1C; @@ -162111,7 +166633,7 @@ label_BFC32C30: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (4)); /* 0xBFC32C48: 1641FFAA bne $s2, $at, 0xBFC32AF4 */ uint32_t psx_brA_BFC32C48 = cpu->gpr[18]; uint32_t psx_brB_BFC32C48 = cpu->gpr[1]; - int psx_taken_BFC32C48 = (psx_brA_BFC32C48 != psx_brB_BFC32C48); + psx_taken_BFC32C48 = (psx_brA_BFC32C48 != psx_brB_BFC32C48); /* 0xBFC32C4C: 02CEB021 addu $s6, $s6, $t6 */ cpu->gpr[22] = cpu->gpr[22] + cpu->gpr[14]; if (psx_taken_BFC32C48) goto label_BFC32AF4; @@ -162150,7 +166672,7 @@ label_BFC32C50: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (124)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC32C84u); return; } g_debug_last_store_pc = 0xBFC32C84u; cpu->write_word(psx_addr, cpu->gpr[8]); } /* 0xBFC32C88: 10200004 beq $at, $zero, 0xBFC32C9C */ uint32_t psx_brA_BFC32C88 = cpu->gpr[1]; uint32_t psx_brB_BFC32C88 = cpu->gpr[0]; - int psx_taken_BFC32C88 = (psx_brA_BFC32C88 == psx_brB_BFC32C88); + psx_taken_BFC32C88 = (psx_brA_BFC32C88 == psx_brB_BFC32C88); /* 0xBFC32C8C: AFB80084 sw $t8, 132($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (132)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC32C8Cu); return; } g_debug_last_store_pc = 0xBFC32C8Cu; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC32C88) goto label_BFC32C9C; @@ -162163,7 +166685,7 @@ label_BFC32C90: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (176)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC32C90u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } /* 0xBFC32C94: 1000FF8B beq $zero, $zero, 0xBFC32AC4 */ uint32_t psx_brA_BFC32C94 = cpu->gpr[0]; uint32_t psx_brB_BFC32C94 = cpu->gpr[0]; - int psx_taken_BFC32C94 = (psx_brA_BFC32C94 == psx_brB_BFC32C94); + psx_taken_BFC32C94 = (psx_brA_BFC32C94 == psx_brB_BFC32C94); /* 0xBFC32C98: 8FA6006C lw $a2, 108($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (108)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC32C98u); return; } cpu->gpr[6] = cpu->read_word(psx_addr); } if (psx_taken_BFC32C94) goto label_BFC32AC4; @@ -162228,6 +166750,58 @@ void func_1FC32CCC(CPUState* cpu) { default: break; } } + int psx_taken_BFC32D18 = 0; + int psx_taken_BFC32D4C = 0; + int psx_taken_BFC32D5C = 0; + int psx_taken_BFC32D64 = 0; + int psx_taken_BFC32D70 = 0; + int psx_taken_BFC32D8C = 0; + int psx_taken_BFC32D9C = 0; + int psx_taken_BFC32DA4 = 0; + int psx_taken_BFC32DB0 = 0; + int psx_taken_BFC32DC8 = 0; + int psx_taken_BFC32DD8 = 0; + int psx_taken_BFC32DE0 = 0; + int psx_taken_BFC32DFC = 0; + int psx_taken_BFC32E0C = 0; + int psx_taken_BFC32E14 = 0; + int psx_taken_BFC32E20 = 0; + int psx_taken_BFC32E3C = 0; + int psx_taken_BFC32E4C = 0; + int psx_taken_BFC32E54 = 0; + int psx_taken_BFC32E60 = 0; + int psx_taken_BFC32E78 = 0; + int psx_taken_BFC32E88 = 0; + int psx_taken_BFC32E90 = 0; + int psx_taken_BFC32EB4 = 0; + int psx_taken_BFC32ECC = 0; + int psx_taken_BFC32F04 = 0; + int psx_taken_BFC32F14 = 0; + int psx_taken_BFC32F24 = 0; + int psx_taken_BFC32F34 = 0; + int psx_taken_BFC32F54 = 0; + int psx_taken_BFC32F64 = 0; + int psx_taken_BFC32F6C = 0; + int psx_taken_BFC32F78 = 0; + int psx_taken_BFC32F94 = 0; + int psx_taken_BFC32FA4 = 0; + int psx_taken_BFC32FAC = 0; + int psx_taken_BFC32FB8 = 0; + int psx_taken_BFC32FD0 = 0; + int psx_taken_BFC32FE0 = 0; + int psx_taken_BFC32FE8 = 0; + int psx_taken_BFC33004 = 0; + int psx_taken_BFC33014 = 0; + int psx_taken_BFC3301C = 0; + int psx_taken_BFC33028 = 0; + int psx_taken_BFC33044 = 0; + int psx_taken_BFC33054 = 0; + int psx_taken_BFC3305C = 0; + int psx_taken_BFC33068 = 0; + int psx_taken_BFC33080 = 0; + int psx_taken_BFC33090 = 0; + int psx_taken_BFC33098 = 0; + int psx_taken_BFC330BC = 0; label_BFC32CCC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -162285,7 +166859,7 @@ label_BFC32D18: psx_check_interrupts(cpu); /* 0xBFC32D18: 1A80006C blez $s4, 0xBFC32ECC */ uint32_t psx_brA_BFC32D18 = cpu->gpr[20]; - int psx_taken_BFC32D18 = ((int32_t)psx_brA_BFC32D18 <= 0); + psx_taken_BFC32D18 = ((int32_t)psx_brA_BFC32D18 <= 0); /* 0xBFC32D1C: 00009821 addu $s3, $zero, $zero */ cpu->gpr[19] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC32D18) goto label_BFC32ECC; @@ -162329,7 +166903,7 @@ label_BFC32D44: cpu->gpr[24] = cpu->hi; /* 0xBFC32D4C: 16200002 bne $s1, $zero, 0xBFC32D58 */ uint32_t psx_brA_BFC32D4C = cpu->gpr[17]; uint32_t psx_brB_BFC32D4C = cpu->gpr[0]; - int psx_taken_BFC32D4C = (psx_brA_BFC32D4C != psx_brB_BFC32D4C); + psx_taken_BFC32D4C = (psx_brA_BFC32D4C != psx_brB_BFC32D4C); /* 0xBFC32D50: 00000000 nop */ /* nop */ if (psx_taken_BFC32D4C) goto label_BFC32D58; @@ -162349,7 +166923,7 @@ label_BFC32D58: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC32D5C: 16210004 bne $s1, $at, 0xBFC32D70 */ uint32_t psx_brA_BFC32D5C = cpu->gpr[17]; uint32_t psx_brB_BFC32D5C = cpu->gpr[1]; - int psx_taken_BFC32D5C = (psx_brA_BFC32D5C != psx_brB_BFC32D5C); + psx_taken_BFC32D5C = (psx_brA_BFC32D5C != psx_brB_BFC32D5C); /* 0xBFC32D60: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC32D5C) goto label_BFC32D70; @@ -162360,7 +166934,7 @@ label_BFC32D64: psx_check_interrupts(cpu); /* 0xBFC32D64: 14410002 bne $v0, $at, 0xBFC32D70 */ uint32_t psx_brA_BFC32D64 = cpu->gpr[2]; uint32_t psx_brB_BFC32D64 = cpu->gpr[1]; - int psx_taken_BFC32D64 = (psx_brA_BFC32D64 != psx_brB_BFC32D64); + psx_taken_BFC32D64 = (psx_brA_BFC32D64 != psx_brB_BFC32D64); /* 0xBFC32D68: 00000000 nop */ /* nop */ if (psx_taken_BFC32D64) goto label_BFC32D70; @@ -162378,7 +166952,7 @@ label_BFC32D70: psx_check_interrupts(cpu); /* 0xBFC32D70: 07010011 bgez $t8, 0xBFC32DB8 */ uint32_t psx_brA_BFC32D70 = cpu->gpr[24]; - int psx_taken_BFC32D70 = ((int32_t)psx_brA_BFC32D70 >= 0); + psx_taken_BFC32D70 = ((int32_t)psx_brA_BFC32D70 >= 0); /* 0xBFC32D74: 00000000 nop */ /* nop */ if (psx_taken_BFC32D70) goto label_BFC32DB8; @@ -162405,7 +166979,7 @@ label_BFC32D80: cpu->gpr[16] = cpu->gpr[0] - cpu->gpr[16]; /* 0xBFC32D8C: 16200002 bne $s1, $zero, 0xBFC32D98 */ uint32_t psx_brA_BFC32D8C = cpu->gpr[17]; uint32_t psx_brB_BFC32D8C = cpu->gpr[0]; - int psx_taken_BFC32D8C = (psx_brA_BFC32D8C != psx_brB_BFC32D8C); + psx_taken_BFC32D8C = (psx_brA_BFC32D8C != psx_brB_BFC32D8C); /* 0xBFC32D90: 00000000 nop */ /* nop */ if (psx_taken_BFC32D8C) goto label_BFC32D98; @@ -162425,7 +166999,7 @@ label_BFC32D98: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC32D9C: 16210004 bne $s1, $at, 0xBFC32DB0 */ uint32_t psx_brA_BFC32D9C = cpu->gpr[17]; uint32_t psx_brB_BFC32D9C = cpu->gpr[1]; - int psx_taken_BFC32D9C = (psx_brA_BFC32D9C != psx_brB_BFC32D9C); + psx_taken_BFC32D9C = (psx_brA_BFC32D9C != psx_brB_BFC32D9C); /* 0xBFC32DA0: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC32D9C) goto label_BFC32DB0; @@ -162436,7 +167010,7 @@ label_BFC32DA4: psx_check_interrupts(cpu); /* 0xBFC32DA4: 14410002 bne $v0, $at, 0xBFC32DB0 */ uint32_t psx_brA_BFC32DA4 = cpu->gpr[2]; uint32_t psx_brB_BFC32DA4 = cpu->gpr[1]; - int psx_taken_BFC32DA4 = (psx_brA_BFC32DA4 != psx_brB_BFC32DA4); + psx_taken_BFC32DA4 = (psx_brA_BFC32DA4 != psx_brB_BFC32DA4); /* 0xBFC32DA8: 00000000 nop */ /* nop */ if (psx_taken_BFC32DA4) goto label_BFC32DB0; @@ -162454,7 +167028,7 @@ label_BFC32DB0: psx_check_interrupts(cpu); /* 0xBFC32DB0: 1000000E beq $zero, $zero, 0xBFC32DEC */ uint32_t psx_brA_BFC32DB0 = cpu->gpr[0]; uint32_t psx_brB_BFC32DB0 = cpu->gpr[0]; - int psx_taken_BFC32DB0 = (psx_brA_BFC32DB0 == psx_brB_BFC32DB0); + psx_taken_BFC32DB0 = (psx_brA_BFC32DB0 == psx_brB_BFC32DB0); /* 0xBFC32DB4: 00000000 nop */ /* nop */ if (psx_taken_BFC32DB0) goto label_BFC32DEC; @@ -162479,7 +167053,7 @@ label_BFC32DC0: cpu->gpr[16] = cpu->hi; /* 0xBFC32DC8: 16200002 bne $s1, $zero, 0xBFC32DD4 */ uint32_t psx_brA_BFC32DC8 = cpu->gpr[17]; uint32_t psx_brB_BFC32DC8 = cpu->gpr[0]; - int psx_taken_BFC32DC8 = (psx_brA_BFC32DC8 != psx_brB_BFC32DC8); + psx_taken_BFC32DC8 = (psx_brA_BFC32DC8 != psx_brB_BFC32DC8); /* 0xBFC32DCC: 00000000 nop */ /* nop */ if (psx_taken_BFC32DC8) goto label_BFC32DD4; @@ -162499,7 +167073,7 @@ label_BFC32DD4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC32DD8: 16210004 bne $s1, $at, 0xBFC32DEC */ uint32_t psx_brA_BFC32DD8 = cpu->gpr[17]; uint32_t psx_brB_BFC32DD8 = cpu->gpr[1]; - int psx_taken_BFC32DD8 = (psx_brA_BFC32DD8 != psx_brB_BFC32DD8); + psx_taken_BFC32DD8 = (psx_brA_BFC32DD8 != psx_brB_BFC32DD8); /* 0xBFC32DDC: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC32DD8) goto label_BFC32DEC; @@ -162510,7 +167084,7 @@ label_BFC32DE0: psx_check_interrupts(cpu); /* 0xBFC32DE0: 14410002 bne $v0, $at, 0xBFC32DEC */ uint32_t psx_brA_BFC32DE0 = cpu->gpr[2]; uint32_t psx_brB_BFC32DE0 = cpu->gpr[1]; - int psx_taken_BFC32DE0 = (psx_brA_BFC32DE0 != psx_brB_BFC32DE0); + psx_taken_BFC32DE0 = (psx_brA_BFC32DE0 != psx_brB_BFC32DE0); /* 0xBFC32DE4: 00000000 nop */ /* nop */ if (psx_taken_BFC32DE0) goto label_BFC32DEC; @@ -162542,7 +167116,7 @@ label_BFC32DF4: cpu->gpr[25] = cpu->hi; /* 0xBFC32DFC: 16400002 bne $s2, $zero, 0xBFC32E08 */ uint32_t psx_brA_BFC32DFC = cpu->gpr[18]; uint32_t psx_brB_BFC32DFC = cpu->gpr[0]; - int psx_taken_BFC32DFC = (psx_brA_BFC32DFC != psx_brB_BFC32DFC); + psx_taken_BFC32DFC = (psx_brA_BFC32DFC != psx_brB_BFC32DFC); /* 0xBFC32E00: 00000000 nop */ /* nop */ if (psx_taken_BFC32DFC) goto label_BFC32E08; @@ -162562,7 +167136,7 @@ label_BFC32E08: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC32E0C: 16410004 bne $s2, $at, 0xBFC32E20 */ uint32_t psx_brA_BFC32E0C = cpu->gpr[18]; uint32_t psx_brB_BFC32E0C = cpu->gpr[1]; - int psx_taken_BFC32E0C = (psx_brA_BFC32E0C != psx_brB_BFC32E0C); + psx_taken_BFC32E0C = (psx_brA_BFC32E0C != psx_brB_BFC32E0C); /* 0xBFC32E10: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC32E0C) goto label_BFC32E20; @@ -162573,7 +167147,7 @@ label_BFC32E14: psx_check_interrupts(cpu); /* 0xBFC32E14: 14410002 bne $v0, $at, 0xBFC32E20 */ uint32_t psx_brA_BFC32E14 = cpu->gpr[2]; uint32_t psx_brB_BFC32E14 = cpu->gpr[1]; - int psx_taken_BFC32E14 = (psx_brA_BFC32E14 != psx_brB_BFC32E14); + psx_taken_BFC32E14 = (psx_brA_BFC32E14 != psx_brB_BFC32E14); /* 0xBFC32E18: 00000000 nop */ /* nop */ if (psx_taken_BFC32E14) goto label_BFC32E20; @@ -162591,7 +167165,7 @@ label_BFC32E20: psx_check_interrupts(cpu); /* 0xBFC32E20: 07210011 bgez $t9, 0xBFC32E68 */ uint32_t psx_brA_BFC32E20 = cpu->gpr[25]; - int psx_taken_BFC32E20 = ((int32_t)psx_brA_BFC32E20 >= 0); + psx_taken_BFC32E20 = ((int32_t)psx_brA_BFC32E20 >= 0); /* 0xBFC32E24: 00000000 nop */ /* nop */ if (psx_taken_BFC32E20) goto label_BFC32E68; @@ -162618,7 +167192,7 @@ label_BFC32E30: cpu->gpr[3] = cpu->gpr[0] - cpu->gpr[3]; /* 0xBFC32E3C: 16400002 bne $s2, $zero, 0xBFC32E48 */ uint32_t psx_brA_BFC32E3C = cpu->gpr[18]; uint32_t psx_brB_BFC32E3C = cpu->gpr[0]; - int psx_taken_BFC32E3C = (psx_brA_BFC32E3C != psx_brB_BFC32E3C); + psx_taken_BFC32E3C = (psx_brA_BFC32E3C != psx_brB_BFC32E3C); /* 0xBFC32E40: 00000000 nop */ /* nop */ if (psx_taken_BFC32E3C) goto label_BFC32E48; @@ -162638,7 +167212,7 @@ label_BFC32E48: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC32E4C: 16410004 bne $s2, $at, 0xBFC32E60 */ uint32_t psx_brA_BFC32E4C = cpu->gpr[18]; uint32_t psx_brB_BFC32E4C = cpu->gpr[1]; - int psx_taken_BFC32E4C = (psx_brA_BFC32E4C != psx_brB_BFC32E4C); + psx_taken_BFC32E4C = (psx_brA_BFC32E4C != psx_brB_BFC32E4C); /* 0xBFC32E50: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC32E4C) goto label_BFC32E60; @@ -162649,7 +167223,7 @@ label_BFC32E54: psx_check_interrupts(cpu); /* 0xBFC32E54: 14410002 bne $v0, $at, 0xBFC32E60 */ uint32_t psx_brA_BFC32E54 = cpu->gpr[2]; uint32_t psx_brB_BFC32E54 = cpu->gpr[1]; - int psx_taken_BFC32E54 = (psx_brA_BFC32E54 != psx_brB_BFC32E54); + psx_taken_BFC32E54 = (psx_brA_BFC32E54 != psx_brB_BFC32E54); /* 0xBFC32E58: 00000000 nop */ /* nop */ if (psx_taken_BFC32E54) goto label_BFC32E60; @@ -162667,7 +167241,7 @@ label_BFC32E60: psx_check_interrupts(cpu); /* 0xBFC32E60: 1000000F beq $zero, $zero, 0xBFC32EA0 */ uint32_t psx_brA_BFC32E60 = cpu->gpr[0]; uint32_t psx_brB_BFC32E60 = cpu->gpr[0]; - int psx_taken_BFC32E60 = (psx_brA_BFC32E60 == psx_brB_BFC32E60); + psx_taken_BFC32E60 = (psx_brA_BFC32E60 == psx_brB_BFC32E60); /* 0xBFC32E64: 02C02021 addu $a0, $s6, $zero */ cpu->gpr[4] = cpu->gpr[22] + cpu->gpr[0]; if (psx_taken_BFC32E60) goto label_BFC32EA0; @@ -162692,7 +167266,7 @@ label_BFC32E70: cpu->gpr[3] = cpu->hi; /* 0xBFC32E78: 16400002 bne $s2, $zero, 0xBFC32E84 */ uint32_t psx_brA_BFC32E78 = cpu->gpr[18]; uint32_t psx_brB_BFC32E78 = cpu->gpr[0]; - int psx_taken_BFC32E78 = (psx_brA_BFC32E78 != psx_brB_BFC32E78); + psx_taken_BFC32E78 = (psx_brA_BFC32E78 != psx_brB_BFC32E78); /* 0xBFC32E7C: 00000000 nop */ /* nop */ if (psx_taken_BFC32E78) goto label_BFC32E84; @@ -162712,7 +167286,7 @@ label_BFC32E84: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC32E88: 16410004 bne $s2, $at, 0xBFC32E9C */ uint32_t psx_brA_BFC32E88 = cpu->gpr[18]; uint32_t psx_brB_BFC32E88 = cpu->gpr[1]; - int psx_taken_BFC32E88 = (psx_brA_BFC32E88 != psx_brB_BFC32E88); + psx_taken_BFC32E88 = (psx_brA_BFC32E88 != psx_brB_BFC32E88); /* 0xBFC32E8C: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC32E88) goto label_BFC32E9C; @@ -162723,7 +167297,7 @@ label_BFC32E90: psx_check_interrupts(cpu); /* 0xBFC32E90: 14410002 bne $v0, $at, 0xBFC32E9C */ uint32_t psx_brA_BFC32E90 = cpu->gpr[2]; uint32_t psx_brB_BFC32E90 = cpu->gpr[1]; - int psx_taken_BFC32E90 = (psx_brA_BFC32E90 != psx_brB_BFC32E90); + psx_taken_BFC32E90 = (psx_brA_BFC32E90 != psx_brB_BFC32E90); /* 0xBFC32E94: 00000000 nop */ /* nop */ if (psx_taken_BFC32E90) goto label_BFC32E9C; @@ -162764,7 +167338,7 @@ label_BFC32EB0: cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (1)); /* 0xBFC32EB4: 1674FFA1 bne $s3, $s4, 0xBFC32D3C */ uint32_t psx_brA_BFC32EB4 = cpu->gpr[19]; uint32_t psx_brB_BFC32EB4 = cpu->gpr[20]; - int psx_taken_BFC32EB4 = (psx_brA_BFC32EB4 != psx_brB_BFC32EB4); + psx_taken_BFC32EB4 = (psx_brA_BFC32EB4 != psx_brB_BFC32EB4); /* 0xBFC32EB8: 00000000 nop */ /* nop */ if (psx_taken_BFC32EB4) goto label_BFC32D3C; @@ -162788,7 +167362,7 @@ label_BFC32ECC: psx_check_interrupts(cpu); /* 0xBFC32ECC: 1AE00082 blez $s7, 0xBFC330D8 */ uint32_t psx_brA_BFC32ECC = cpu->gpr[23]; - int psx_taken_BFC32ECC = ((int32_t)psx_brA_BFC32ECC <= 0); + psx_taken_BFC32ECC = ((int32_t)psx_brA_BFC32ECC <= 0); /* 0xBFC32ED0: 00000000 nop */ /* nop */ if (psx_taken_BFC32ECC) goto label_BFC330D8; @@ -162823,7 +167397,7 @@ label_BFC32ED4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC32F00u); return; } g_debug_last_store_pc = 0xBFC32F00u; cpu->write_word(psx_addr, cpu->gpr[16]); } /* 0xBFC32F04: 06210002 bgez $s1, 0xBFC32F10 */ uint32_t psx_brA_BFC32F04 = cpu->gpr[17]; - int psx_taken_BFC32F04 = ((int32_t)psx_brA_BFC32F04 >= 0); + psx_taken_BFC32F04 = ((int32_t)psx_brA_BFC32F04 >= 0); /* 0xBFC32F08: 02200821 addu $at, $s1, $zero */ cpu->gpr[1] = cpu->gpr[17] + cpu->gpr[0]; if (psx_taken_BFC32F04) goto label_BFC32F10; @@ -162843,7 +167417,7 @@ label_BFC32F10: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[1] >> 3u); /* 0xBFC32F14: 06410002 bgez $s2, 0xBFC32F20 */ uint32_t psx_brA_BFC32F14 = cpu->gpr[18]; - int psx_taken_BFC32F14 = ((int32_t)psx_brA_BFC32F14 >= 0); + psx_taken_BFC32F14 = ((int32_t)psx_brA_BFC32F14 >= 0); /* 0xBFC32F18: 02400821 addu $at, $s2, $zero */ cpu->gpr[1] = cpu->gpr[18] + cpu->gpr[0]; if (psx_taken_BFC32F14) goto label_BFC32F20; @@ -162863,7 +167437,7 @@ label_BFC32F20: cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[1] >> 3u); /* 0xBFC32F24: 05010002 bgez $t0, 0xBFC32F30 */ uint32_t psx_brA_BFC32F24 = cpu->gpr[8]; - int psx_taken_BFC32F24 = ((int32_t)psx_brA_BFC32F24 >= 0); + psx_taken_BFC32F24 = ((int32_t)psx_brA_BFC32F24 >= 0); /* 0xBFC32F28: 01000821 addu $at, $t0, $zero */ cpu->gpr[1] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC32F24) goto label_BFC32F30; @@ -162883,7 +167457,7 @@ label_BFC32F30: cpu->gpr[20] = (uint32_t)((int32_t)cpu->gpr[1] >> 3u); /* 0xBFC32F34: 05210002 bgez $t1, 0xBFC32F40 */ uint32_t psx_brA_BFC32F34 = cpu->gpr[9]; - int psx_taken_BFC32F34 = ((int32_t)psx_brA_BFC32F34 >= 0); + psx_taken_BFC32F34 = ((int32_t)psx_brA_BFC32F34 >= 0); /* 0xBFC32F38: 01200821 addu $at, $t1, $zero */ cpu->gpr[1] = cpu->gpr[9] + cpu->gpr[0]; if (psx_taken_BFC32F34) goto label_BFC32F40; @@ -162922,7 +167496,7 @@ label_BFC32F4C: cpu->gpr[10] = cpu->hi; /* 0xBFC32F54: 16200002 bne $s1, $zero, 0xBFC32F60 */ uint32_t psx_brA_BFC32F54 = cpu->gpr[17]; uint32_t psx_brB_BFC32F54 = cpu->gpr[0]; - int psx_taken_BFC32F54 = (psx_brA_BFC32F54 != psx_brB_BFC32F54); + psx_taken_BFC32F54 = (psx_brA_BFC32F54 != psx_brB_BFC32F54); /* 0xBFC32F58: 00000000 nop */ /* nop */ if (psx_taken_BFC32F54) goto label_BFC32F60; @@ -162942,7 +167516,7 @@ label_BFC32F60: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC32F64: 16210004 bne $s1, $at, 0xBFC32F78 */ uint32_t psx_brA_BFC32F64 = cpu->gpr[17]; uint32_t psx_brB_BFC32F64 = cpu->gpr[1]; - int psx_taken_BFC32F64 = (psx_brA_BFC32F64 != psx_brB_BFC32F64); + psx_taken_BFC32F64 = (psx_brA_BFC32F64 != psx_brB_BFC32F64); /* 0xBFC32F68: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC32F64) goto label_BFC32F78; @@ -162953,7 +167527,7 @@ label_BFC32F6C: psx_check_interrupts(cpu); /* 0xBFC32F6C: 14410002 bne $v0, $at, 0xBFC32F78 */ uint32_t psx_brA_BFC32F6C = cpu->gpr[2]; uint32_t psx_brB_BFC32F6C = cpu->gpr[1]; - int psx_taken_BFC32F6C = (psx_brA_BFC32F6C != psx_brB_BFC32F6C); + psx_taken_BFC32F6C = (psx_brA_BFC32F6C != psx_brB_BFC32F6C); /* 0xBFC32F70: 00000000 nop */ /* nop */ if (psx_taken_BFC32F6C) goto label_BFC32F78; @@ -162971,7 +167545,7 @@ label_BFC32F78: psx_check_interrupts(cpu); /* 0xBFC32F78: 05410011 bgez $t2, 0xBFC32FC0 */ uint32_t psx_brA_BFC32F78 = cpu->gpr[10]; - int psx_taken_BFC32F78 = ((int32_t)psx_brA_BFC32F78 >= 0); + psx_taken_BFC32F78 = ((int32_t)psx_brA_BFC32F78 >= 0); /* 0xBFC32F7C: 00000000 nop */ /* nop */ if (psx_taken_BFC32F78) goto label_BFC32FC0; @@ -162998,7 +167572,7 @@ label_BFC32F88: cpu->gpr[16] = cpu->gpr[0] - cpu->gpr[16]; /* 0xBFC32F94: 16200002 bne $s1, $zero, 0xBFC32FA0 */ uint32_t psx_brA_BFC32F94 = cpu->gpr[17]; uint32_t psx_brB_BFC32F94 = cpu->gpr[0]; - int psx_taken_BFC32F94 = (psx_brA_BFC32F94 != psx_brB_BFC32F94); + psx_taken_BFC32F94 = (psx_brA_BFC32F94 != psx_brB_BFC32F94); /* 0xBFC32F98: 00000000 nop */ /* nop */ if (psx_taken_BFC32F94) goto label_BFC32FA0; @@ -163018,7 +167592,7 @@ label_BFC32FA0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC32FA4: 16210004 bne $s1, $at, 0xBFC32FB8 */ uint32_t psx_brA_BFC32FA4 = cpu->gpr[17]; uint32_t psx_brB_BFC32FA4 = cpu->gpr[1]; - int psx_taken_BFC32FA4 = (psx_brA_BFC32FA4 != psx_brB_BFC32FA4); + psx_taken_BFC32FA4 = (psx_brA_BFC32FA4 != psx_brB_BFC32FA4); /* 0xBFC32FA8: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC32FA4) goto label_BFC32FB8; @@ -163029,7 +167603,7 @@ label_BFC32FAC: psx_check_interrupts(cpu); /* 0xBFC32FAC: 14410002 bne $v0, $at, 0xBFC32FB8 */ uint32_t psx_brA_BFC32FAC = cpu->gpr[2]; uint32_t psx_brB_BFC32FAC = cpu->gpr[1]; - int psx_taken_BFC32FAC = (psx_brA_BFC32FAC != psx_brB_BFC32FAC); + psx_taken_BFC32FAC = (psx_brA_BFC32FAC != psx_brB_BFC32FAC); /* 0xBFC32FB0: 00000000 nop */ /* nop */ if (psx_taken_BFC32FAC) goto label_BFC32FB8; @@ -163047,7 +167621,7 @@ label_BFC32FB8: psx_check_interrupts(cpu); /* 0xBFC32FB8: 1000000E beq $zero, $zero, 0xBFC32FF4 */ uint32_t psx_brA_BFC32FB8 = cpu->gpr[0]; uint32_t psx_brB_BFC32FB8 = cpu->gpr[0]; - int psx_taken_BFC32FB8 = (psx_brA_BFC32FB8 == psx_brB_BFC32FB8); + psx_taken_BFC32FB8 = (psx_brA_BFC32FB8 == psx_brB_BFC32FB8); /* 0xBFC32FBC: 00000000 nop */ /* nop */ if (psx_taken_BFC32FB8) goto label_BFC32FF4; @@ -163072,7 +167646,7 @@ label_BFC32FC8: cpu->gpr[16] = cpu->hi; /* 0xBFC32FD0: 16200002 bne $s1, $zero, 0xBFC32FDC */ uint32_t psx_brA_BFC32FD0 = cpu->gpr[17]; uint32_t psx_brB_BFC32FD0 = cpu->gpr[0]; - int psx_taken_BFC32FD0 = (psx_brA_BFC32FD0 != psx_brB_BFC32FD0); + psx_taken_BFC32FD0 = (psx_brA_BFC32FD0 != psx_brB_BFC32FD0); /* 0xBFC32FD4: 00000000 nop */ /* nop */ if (psx_taken_BFC32FD0) goto label_BFC32FDC; @@ -163092,7 +167666,7 @@ label_BFC32FDC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC32FE0: 16210004 bne $s1, $at, 0xBFC32FF4 */ uint32_t psx_brA_BFC32FE0 = cpu->gpr[17]; uint32_t psx_brB_BFC32FE0 = cpu->gpr[1]; - int psx_taken_BFC32FE0 = (psx_brA_BFC32FE0 != psx_brB_BFC32FE0); + psx_taken_BFC32FE0 = (psx_brA_BFC32FE0 != psx_brB_BFC32FE0); /* 0xBFC32FE4: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC32FE0) goto label_BFC32FF4; @@ -163103,7 +167677,7 @@ label_BFC32FE8: psx_check_interrupts(cpu); /* 0xBFC32FE8: 14410002 bne $v0, $at, 0xBFC32FF4 */ uint32_t psx_brA_BFC32FE8 = cpu->gpr[2]; uint32_t psx_brB_BFC32FE8 = cpu->gpr[1]; - int psx_taken_BFC32FE8 = (psx_brA_BFC32FE8 != psx_brB_BFC32FE8); + psx_taken_BFC32FE8 = (psx_brA_BFC32FE8 != psx_brB_BFC32FE8); /* 0xBFC32FEC: 00000000 nop */ /* nop */ if (psx_taken_BFC32FE8) goto label_BFC32FF4; @@ -163135,7 +167709,7 @@ label_BFC32FFC: cpu->gpr[11] = cpu->hi; /* 0xBFC33004: 16400002 bne $s2, $zero, 0xBFC33010 */ uint32_t psx_brA_BFC33004 = cpu->gpr[18]; uint32_t psx_brB_BFC33004 = cpu->gpr[0]; - int psx_taken_BFC33004 = (psx_brA_BFC33004 != psx_brB_BFC33004); + psx_taken_BFC33004 = (psx_brA_BFC33004 != psx_brB_BFC33004); /* 0xBFC33008: 00000000 nop */ /* nop */ if (psx_taken_BFC33004) goto label_BFC33010; @@ -163155,7 +167729,7 @@ label_BFC33010: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC33014: 16410004 bne $s2, $at, 0xBFC33028 */ uint32_t psx_brA_BFC33014 = cpu->gpr[18]; uint32_t psx_brB_BFC33014 = cpu->gpr[1]; - int psx_taken_BFC33014 = (psx_brA_BFC33014 != psx_brB_BFC33014); + psx_taken_BFC33014 = (psx_brA_BFC33014 != psx_brB_BFC33014); /* 0xBFC33018: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC33014) goto label_BFC33028; @@ -163166,7 +167740,7 @@ label_BFC3301C: psx_check_interrupts(cpu); /* 0xBFC3301C: 14410002 bne $v0, $at, 0xBFC33028 */ uint32_t psx_brA_BFC3301C = cpu->gpr[2]; uint32_t psx_brB_BFC3301C = cpu->gpr[1]; - int psx_taken_BFC3301C = (psx_brA_BFC3301C != psx_brB_BFC3301C); + psx_taken_BFC3301C = (psx_brA_BFC3301C != psx_brB_BFC3301C); /* 0xBFC33020: 00000000 nop */ /* nop */ if (psx_taken_BFC3301C) goto label_BFC33028; @@ -163184,7 +167758,7 @@ label_BFC33028: psx_check_interrupts(cpu); /* 0xBFC33028: 05610011 bgez $t3, 0xBFC33070 */ uint32_t psx_brA_BFC33028 = cpu->gpr[11]; - int psx_taken_BFC33028 = ((int32_t)psx_brA_BFC33028 >= 0); + psx_taken_BFC33028 = ((int32_t)psx_brA_BFC33028 >= 0); /* 0xBFC3302C: 00000000 nop */ /* nop */ if (psx_taken_BFC33028) goto label_BFC33070; @@ -163211,7 +167785,7 @@ label_BFC33038: cpu->gpr[3] = cpu->gpr[0] - cpu->gpr[3]; /* 0xBFC33044: 16400002 bne $s2, $zero, 0xBFC33050 */ uint32_t psx_brA_BFC33044 = cpu->gpr[18]; uint32_t psx_brB_BFC33044 = cpu->gpr[0]; - int psx_taken_BFC33044 = (psx_brA_BFC33044 != psx_brB_BFC33044); + psx_taken_BFC33044 = (psx_brA_BFC33044 != psx_brB_BFC33044); /* 0xBFC33048: 00000000 nop */ /* nop */ if (psx_taken_BFC33044) goto label_BFC33050; @@ -163231,7 +167805,7 @@ label_BFC33050: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC33054: 16410004 bne $s2, $at, 0xBFC33068 */ uint32_t psx_brA_BFC33054 = cpu->gpr[18]; uint32_t psx_brB_BFC33054 = cpu->gpr[1]; - int psx_taken_BFC33054 = (psx_brA_BFC33054 != psx_brB_BFC33054); + psx_taken_BFC33054 = (psx_brA_BFC33054 != psx_brB_BFC33054); /* 0xBFC33058: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC33054) goto label_BFC33068; @@ -163242,7 +167816,7 @@ label_BFC3305C: psx_check_interrupts(cpu); /* 0xBFC3305C: 14410002 bne $v0, $at, 0xBFC33068 */ uint32_t psx_brA_BFC3305C = cpu->gpr[2]; uint32_t psx_brB_BFC3305C = cpu->gpr[1]; - int psx_taken_BFC3305C = (psx_brA_BFC3305C != psx_brB_BFC3305C); + psx_taken_BFC3305C = (psx_brA_BFC3305C != psx_brB_BFC3305C); /* 0xBFC33060: 00000000 nop */ /* nop */ if (psx_taken_BFC3305C) goto label_BFC33068; @@ -163260,7 +167834,7 @@ label_BFC33068: psx_check_interrupts(cpu); /* 0xBFC33068: 1000000F beq $zero, $zero, 0xBFC330A8 */ uint32_t psx_brA_BFC33068 = cpu->gpr[0]; uint32_t psx_brB_BFC33068 = cpu->gpr[0]; - int psx_taken_BFC33068 = (psx_brA_BFC33068 == psx_brB_BFC33068); + psx_taken_BFC33068 = (psx_brA_BFC33068 == psx_brB_BFC33068); /* 0xBFC3306C: 02C02021 addu $a0, $s6, $zero */ cpu->gpr[4] = cpu->gpr[22] + cpu->gpr[0]; if (psx_taken_BFC33068) goto label_BFC330A8; @@ -163285,7 +167859,7 @@ label_BFC33078: cpu->gpr[3] = cpu->hi; /* 0xBFC33080: 16400002 bne $s2, $zero, 0xBFC3308C */ uint32_t psx_brA_BFC33080 = cpu->gpr[18]; uint32_t psx_brB_BFC33080 = cpu->gpr[0]; - int psx_taken_BFC33080 = (psx_brA_BFC33080 != psx_brB_BFC33080); + psx_taken_BFC33080 = (psx_brA_BFC33080 != psx_brB_BFC33080); /* 0xBFC33084: 00000000 nop */ /* nop */ if (psx_taken_BFC33080) goto label_BFC3308C; @@ -163305,7 +167879,7 @@ label_BFC3308C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC33090: 16410004 bne $s2, $at, 0xBFC330A4 */ uint32_t psx_brA_BFC33090 = cpu->gpr[18]; uint32_t psx_brB_BFC33090 = cpu->gpr[1]; - int psx_taken_BFC33090 = (psx_brA_BFC33090 != psx_brB_BFC33090); + psx_taken_BFC33090 = (psx_brA_BFC33090 != psx_brB_BFC33090); /* 0xBFC33094: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC33090) goto label_BFC330A4; @@ -163316,7 +167890,7 @@ label_BFC33098: psx_check_interrupts(cpu); /* 0xBFC33098: 14410002 bne $v0, $at, 0xBFC330A4 */ uint32_t psx_brA_BFC33098 = cpu->gpr[2]; uint32_t psx_brB_BFC33098 = cpu->gpr[1]; - int psx_taken_BFC33098 = (psx_brA_BFC33098 != psx_brB_BFC33098); + psx_taken_BFC33098 = (psx_brA_BFC33098 != psx_brB_BFC33098); /* 0xBFC3309C: 00000000 nop */ /* nop */ if (psx_taken_BFC33098) goto label_BFC330A4; @@ -163357,7 +167931,7 @@ label_BFC330B8: cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[19] + (1)); /* 0xBFC330BC: 1677FFA1 bne $s3, $s7, 0xBFC32F44 */ uint32_t psx_brA_BFC330BC = cpu->gpr[19]; uint32_t psx_brB_BFC330BC = cpu->gpr[23]; - int psx_taken_BFC330BC = (psx_brA_BFC330BC != psx_brB_BFC330BC); + psx_taken_BFC330BC = (psx_brA_BFC330BC != psx_brB_BFC330BC); /* 0xBFC330C0: 00000000 nop */ /* nop */ if (psx_taken_BFC330BC) goto label_BFC32F44; @@ -163545,6 +168119,22 @@ void func_1FC331A0(CPUState* cpu) { default: break; } } + int psx_taken_BFC331E0 = 0; + int psx_taken_BFC331E8 = 0; + int psx_taken_BFC33200 = 0; + int psx_taken_BFC33208 = 0; + int psx_taken_BFC33218 = 0; + int psx_taken_BFC33220 = 0; + int psx_taken_BFC33230 = 0; + int psx_taken_BFC33238 = 0; + int psx_taken_BFC33248 = 0; + int psx_taken_BFC33254 = 0; + int psx_taken_BFC33284 = 0; + int psx_taken_BFC332AC = 0; + int psx_taken_BFC332B8 = 0; + int psx_taken_BFC332C4 = 0; + int psx_taken_BFC332F4 = 0; + int psx_taken_BFC3331C = 0; label_BFC331A0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(18u); @@ -163584,7 +168174,7 @@ label_BFC331A0: cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[22] >> 16u); /* 0xBFC331E0: 10200003 beq $at, $zero, 0xBFC331F0 */ uint32_t psx_brA_BFC331E0 = cpu->gpr[1]; uint32_t psx_brB_BFC331E0 = cpu->gpr[0]; - int psx_taken_BFC331E0 = (psx_brA_BFC331E0 == psx_brB_BFC331E0); + psx_taken_BFC331E0 = (psx_brA_BFC331E0 == psx_brB_BFC331E0); /* 0xBFC331E4: AFB00014 sw $s0, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC331E4u); return; } g_debug_last_store_pc = 0xBFC331E4u; cpu->write_word(psx_addr, cpu->gpr[16]); } if (psx_taken_BFC331E0) goto label_BFC331F0; @@ -163595,7 +168185,7 @@ label_BFC331E8: psx_check_interrupts(cpu); /* 0xBFC331E8: 10000002 beq $zero, $zero, 0xBFC331F4 */ uint32_t psx_brA_BFC331E8 = cpu->gpr[0]; uint32_t psx_brB_BFC331E8 = cpu->gpr[0]; - int psx_taken_BFC331E8 = (psx_brA_BFC331E8 == psx_brB_BFC331E8); + psx_taken_BFC331E8 = (psx_brA_BFC331E8 == psx_brB_BFC331E8); /* 0xBFC331EC: 241E0001 addiu $fp, $zero, 1 */ cpu->gpr[30] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC331E8) goto label_BFC331F4; @@ -163619,7 +168209,7 @@ label_BFC331F4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[22] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC33200: 10200004 beq $at, $zero, 0xBFC33214 */ uint32_t psx_brA_BFC33200 = cpu->gpr[1]; uint32_t psx_brB_BFC33200 = cpu->gpr[0]; - int psx_taken_BFC33200 = (psx_brA_BFC33200 == psx_brB_BFC33200); + psx_taken_BFC33200 = (psx_brA_BFC33200 == psx_brB_BFC33200); /* 0xBFC33204: 2417FFFF addiu $s7, $zero, -1 */ cpu->gpr[23] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC33200) goto label_BFC33214; @@ -163630,7 +168220,7 @@ label_BFC33208: psx_check_interrupts(cpu); /* 0xBFC33208: 10000002 beq $zero, $zero, 0xBFC33214 */ uint32_t psx_brA_BFC33208 = cpu->gpr[0]; uint32_t psx_brB_BFC33208 = cpu->gpr[0]; - int psx_taken_BFC33208 = (psx_brA_BFC33208 == psx_brB_BFC33208); + psx_taken_BFC33208 = (psx_brA_BFC33208 == psx_brB_BFC33208); /* 0xBFC3320C: 24170001 addiu $s7, $zero, 1 */ cpu->gpr[23] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC33208) goto label_BFC33214; @@ -163650,7 +168240,7 @@ label_BFC33214: cpu->gpr[2] = cpu->gpr[7] - cpu->gpr[21]; /* 0xBFC33218: 04410004 bgez $v0, 0xBFC3322C */ uint32_t psx_brA_BFC33218 = cpu->gpr[2]; - int psx_taken_BFC33218 = ((int32_t)psx_brA_BFC33218 >= 0); + psx_taken_BFC33218 = ((int32_t)psx_brA_BFC33218 >= 0); /* 0xBFC3321C: 00409821 addu $s3, $v0, $zero */ cpu->gpr[19] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC33218) goto label_BFC3322C; @@ -163661,7 +168251,7 @@ label_BFC33220: psx_check_interrupts(cpu); /* 0xBFC33220: 10000002 beq $zero, $zero, 0xBFC3322C */ uint32_t psx_brA_BFC33220 = cpu->gpr[0]; uint32_t psx_brB_BFC33220 = cpu->gpr[0]; - int psx_taken_BFC33220 = (psx_brA_BFC33220 == psx_brB_BFC33220); + psx_taken_BFC33220 = (psx_brA_BFC33220 == psx_brB_BFC33220); /* 0xBFC33224: 00029823 subu $s3, $zero, $v0 */ cpu->gpr[19] = cpu->gpr[0] - cpu->gpr[2]; if (psx_taken_BFC33220) goto label_BFC3322C; @@ -163681,7 +168271,7 @@ label_BFC3322C: cpu->gpr[2] = cpu->gpr[3] - cpu->gpr[22]; /* 0xBFC33230: 04410004 bgez $v0, 0xBFC33244 */ uint32_t psx_brA_BFC33230 = cpu->gpr[2]; - int psx_taken_BFC33230 = ((int32_t)psx_brA_BFC33230 >= 0); + psx_taken_BFC33230 = ((int32_t)psx_brA_BFC33230 >= 0); /* 0xBFC33234: 00409021 addu $s2, $v0, $zero */ cpu->gpr[18] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC33230) goto label_BFC33244; @@ -163692,7 +168282,7 @@ label_BFC33238: psx_check_interrupts(cpu); /* 0xBFC33238: 10000002 beq $zero, $zero, 0xBFC33244 */ uint32_t psx_brA_BFC33238 = cpu->gpr[0]; uint32_t psx_brB_BFC33238 = cpu->gpr[0]; - int psx_taken_BFC33238 = (psx_brA_BFC33238 == psx_brB_BFC33238); + psx_taken_BFC33238 = (psx_brA_BFC33238 == psx_brB_BFC33238); /* 0xBFC3323C: 00029023 subu $s2, $zero, $v0 */ cpu->gpr[18] = cpu->gpr[0] - cpu->gpr[2]; if (psx_taken_BFC33238) goto label_BFC33244; @@ -163712,7 +168302,7 @@ label_BFC33244: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (int32_t)cpu->gpr[19] ? 1 : 0); /* 0xBFC33248: 1020001E beq $at, $zero, 0xBFC332C4 */ uint32_t psx_brA_BFC33248 = cpu->gpr[1]; uint32_t psx_brB_BFC33248 = cpu->gpr[0]; - int psx_taken_BFC33248 = (psx_brA_BFC33248 == psx_brB_BFC33248); + psx_taken_BFC33248 = (psx_brA_BFC33248 == psx_brB_BFC33248); /* 0xBFC3324C: 00128043 sra $s0, $s2, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[18] >> 1u); if (psx_taken_BFC33248) goto label_BFC332C4; @@ -163725,7 +168315,7 @@ label_BFC33250: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[19] >> 1u); /* 0xBFC33254: 06600035 bltz $s3, 0xBFC3332C */ uint32_t psx_brA_BFC33254 = cpu->gpr[19]; - int psx_taken_BFC33254 = ((int32_t)psx_brA_BFC33254 < 0); + psx_taken_BFC33254 = ((int32_t)psx_brA_BFC33254 < 0); /* 0xBFC33258: 00008821 addu $s1, $zero, $zero */ cpu->gpr[17] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC33254) goto label_BFC3332C; @@ -163767,7 +168357,7 @@ label_BFC3327C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (int32_t)cpu->gpr[16] ? 1 : 0); /* 0xBFC33284: 10200005 beq $at, $zero, 0xBFC3329C */ uint32_t psx_brA_BFC33284 = cpu->gpr[1]; uint32_t psx_brB_BFC33284 = cpu->gpr[0]; - int psx_taken_BFC33284 = (psx_brA_BFC33284 == psx_brB_BFC33284); + psx_taken_BFC33284 = (psx_brA_BFC33284 == psx_brB_BFC33284); /* 0xBFC33288: 00000000 nop */ /* nop */ if (psx_taken_BFC33284) goto label_BFC3329C; @@ -163799,7 +168389,7 @@ label_BFC3329C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC332AC: 1020FFEE beq $at, $zero, 0xBFC33268 */ uint32_t psx_brA_BFC332AC = cpu->gpr[1]; uint32_t psx_brB_BFC332AC = cpu->gpr[0]; - int psx_taken_BFC332AC = (psx_brA_BFC332AC == psx_brB_BFC332AC); + psx_taken_BFC332AC = (psx_brA_BFC332AC == psx_brB_BFC332AC); /* 0xBFC332B0: 0015AC03 sra $s5, $s5, 16 */ cpu->gpr[21] = (uint32_t)((int32_t)cpu->gpr[21] >> 16u); if (psx_taken_BFC332AC) goto label_BFC33268; @@ -163812,7 +168402,7 @@ label_BFC332B4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC332B4u); return; } cpu->gpr[20] = cpu->read_word(psx_addr); } /* 0xBFC332B8: 1000001D beq $zero, $zero, 0xBFC33330 */ uint32_t psx_brA_BFC332B8 = cpu->gpr[0]; uint32_t psx_brB_BFC332B8 = cpu->gpr[0]; - int psx_taken_BFC332B8 = (psx_brA_BFC332B8 == psx_brB_BFC332B8); + psx_taken_BFC332B8 = (psx_brA_BFC332B8 == psx_brB_BFC332B8); /* 0xBFC332BC: 8FBF0034 lw $ra, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC332BCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC332B8) goto label_BFC33330; @@ -163830,7 +168420,7 @@ label_BFC332C4: psx_check_interrupts(cpu); /* 0xBFC332C4: 06400019 bltz $s2, 0xBFC3332C */ uint32_t psx_brA_BFC332C4 = cpu->gpr[18]; - int psx_taken_BFC332C4 = ((int32_t)psx_brA_BFC332C4 < 0); + psx_taken_BFC332C4 = ((int32_t)psx_brA_BFC332C4 < 0); /* 0xBFC332C8: 00008821 addu $s1, $zero, $zero */ cpu->gpr[17] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC332C4) goto label_BFC3332C; @@ -163872,7 +168462,7 @@ label_BFC332EC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (int32_t)cpu->gpr[16] ? 1 : 0); /* 0xBFC332F4: 10200005 beq $at, $zero, 0xBFC3330C */ uint32_t psx_brA_BFC332F4 = cpu->gpr[1]; uint32_t psx_brB_BFC332F4 = cpu->gpr[0]; - int psx_taken_BFC332F4 = (psx_brA_BFC332F4 == psx_brB_BFC332F4); + psx_taken_BFC332F4 = (psx_brA_BFC332F4 == psx_brB_BFC332F4); /* 0xBFC332F8: 00000000 nop */ /* nop */ if (psx_taken_BFC332F4) goto label_BFC3330C; @@ -163904,7 +168494,7 @@ label_BFC3330C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC3331C: 1020FFEE beq $at, $zero, 0xBFC332D8 */ uint32_t psx_brA_BFC3331C = cpu->gpr[1]; uint32_t psx_brB_BFC3331C = cpu->gpr[0]; - int psx_taken_BFC3331C = (psx_brA_BFC3331C == psx_brB_BFC3331C); + psx_taken_BFC3331C = (psx_brA_BFC3331C == psx_brB_BFC3331C); /* 0xBFC33320: 0016B403 sra $s6, $s6, 16 */ cpu->gpr[22] = (uint32_t)((int32_t)cpu->gpr[22] >> 16u); if (psx_taken_BFC3331C) goto label_BFC332D8; @@ -163961,6 +168551,8 @@ void func_1FC33358(CPUState* cpu) { default: break; } } + int psx_taken_BFC33390 = 0; + int psx_taken_BFC333D8 = 0; label_BFC33358: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -163996,7 +168588,7 @@ label_BFC33358: cpu->gpr[18] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC33390: 10200013 beq $at, $zero, 0xBFC333E0 */ uint32_t psx_brA_BFC33390 = cpu->gpr[1]; uint32_t psx_brB_BFC33390 = cpu->gpr[0]; - int psx_taken_BFC33390 = (psx_brA_BFC33390 == psx_brB_BFC33390); + psx_taken_BFC33390 = (psx_brA_BFC33390 == psx_brB_BFC33390); /* 0xBFC33394: 00C09821 addu $s3, $a2, $zero */ cpu->gpr[19] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC33390) goto label_BFC333E0; @@ -164045,7 +168637,7 @@ label_BFC333BC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[16] < (int32_t)cpu->gpr[9] ? 1 : 0); /* 0xBFC333D8: 1420FFEF bne $at, $zero, 0xBFC33398 */ uint32_t psx_brA_BFC333D8 = cpu->gpr[1]; uint32_t psx_brB_BFC333D8 = cpu->gpr[0]; - int psx_taken_BFC333D8 = (psx_brA_BFC333D8 != psx_brB_BFC333D8); + psx_taken_BFC333D8 = (psx_brA_BFC333D8 != psx_brB_BFC333D8); /* 0xBFC333DC: 00000000 nop */ /* nop */ if (psx_taken_BFC333D8) goto label_BFC33398; @@ -164082,6 +168674,14 @@ void func_1FC33400(CPUState* cpu) { default: break; } } + int psx_taken_BFC33430 = 0; + int psx_taken_BFC33460 = 0; + int psx_taken_BFC33494 = 0; + int psx_taken_BFC334A4 = 0; + int psx_taken_BFC334BC = 0; + int psx_taken_BFC334C4 = 0; + int psx_taken_BFC334E8 = 0; + int psx_taken_BFC334FC = 0; label_BFC33400: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -164113,7 +168713,7 @@ label_BFC33400: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[15] < (2) ? 1 : 0); /* 0xBFC33430: 1420003D bne $at, $zero, 0xBFC33528 */ uint32_t psx_brA_BFC33430 = cpu->gpr[1]; uint32_t psx_brB_BFC33430 = cpu->gpr[0]; - int psx_taken_BFC33430 = (psx_brA_BFC33430 != psx_brB_BFC33430); + psx_taken_BFC33430 = (psx_brA_BFC33430 != psx_brB_BFC33430); /* 0xBFC33434: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC33434u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC33430) goto label_BFC33528; @@ -164149,7 +168749,7 @@ label_BFC33460: psx_check_interrupts(cpu); /* 0xBFC33460: 14200023 bne $at, $zero, 0xBFC334F0 */ uint32_t psx_brA_BFC33460 = cpu->gpr[1]; uint32_t psx_brB_BFC33460 = cpu->gpr[0]; - int psx_taken_BFC33460 = (psx_brA_BFC33460 != psx_brB_BFC33460); + psx_taken_BFC33460 = (psx_brA_BFC33460 != psx_brB_BFC33460); /* 0xBFC33464: 24130001 addiu $s3, $zero, 1 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC33460) goto label_BFC334F0; @@ -164198,7 +168798,7 @@ label_BFC3348C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (-64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC33490u); return; } g_debug_last_store_pc = 0xBFC33490u; cpu->write_word(psx_addr, cpu->gpr[2]); } /* 0xBFC33494: 1615FFF9 bne $s0, $s5, 0xBFC3347C */ uint32_t psx_brA_BFC33494 = cpu->gpr[16]; uint32_t psx_brB_BFC33494 = cpu->gpr[21]; - int psx_taken_BFC33494 = (psx_brA_BFC33494 != psx_brB_BFC33494); + psx_taken_BFC33494 = (psx_brA_BFC33494 != psx_brB_BFC33494); /* 0xBFC33498: 26310004 addiu $s1, $s1, 4 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (4)); if (psx_taken_BFC33494) goto label_BFC3347C; @@ -164213,7 +168813,7 @@ label_BFC3349C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[20] < (2) ? 1 : 0); /* 0xBFC334A4: 1420FFF4 bne $at, $zero, 0xBFC33478 */ uint32_t psx_brA_BFC334A4 = cpu->gpr[1]; uint32_t psx_brB_BFC334A4 = cpu->gpr[0]; - int psx_taken_BFC334A4 = (psx_brA_BFC334A4 != psx_brB_BFC334A4); + psx_taken_BFC334A4 = (psx_brA_BFC334A4 != psx_brB_BFC334A4); /* 0xBFC334A8: 2410FFFF addiu $s0, $zero, -1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC334A4) goto label_BFC33478; @@ -164238,7 +168838,7 @@ label_BFC334BC: psx_check_interrupts(cpu); /* 0xBFC334BC: 10400004 beq $v0, $zero, 0xBFC334D0 */ uint32_t psx_brA_BFC334BC = cpu->gpr[2]; uint32_t psx_brB_BFC334BC = cpu->gpr[0]; - int psx_taken_BFC334BC = (psx_brA_BFC334BC == psx_brB_BFC334BC); + psx_taken_BFC334BC = (psx_brA_BFC334BC == psx_brB_BFC334BC); /* 0xBFC334C0: 00003821 addu $a3, $zero, $zero */ cpu->gpr[7] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC334BC) goto label_BFC334D0; @@ -164249,7 +168849,7 @@ label_BFC334C4: psx_check_interrupts(cpu); /* 0xBFC334C4: 10000002 beq $zero, $zero, 0xBFC334D0 */ uint32_t psx_brA_BFC334C4 = cpu->gpr[0]; uint32_t psx_brB_BFC334C4 = cpu->gpr[0]; - int psx_taken_BFC334C4 = (psx_brA_BFC334C4 == psx_brB_BFC334C4); + psx_taken_BFC334C4 = (psx_brA_BFC334C4 == psx_brB_BFC334C4); /* 0xBFC334C8: 24070001 addiu $a3, $zero, 1 */ cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC334C4) goto label_BFC334D0; @@ -164285,7 +168885,7 @@ label_BFC334E0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[19] < (int32_t)cpu->gpr[30] ? 1 : 0); /* 0xBFC334E8: 1420FFDF bne $at, $zero, 0xBFC33468 */ uint32_t psx_brA_BFC334E8 = cpu->gpr[1]; uint32_t psx_brB_BFC334E8 = cpu->gpr[0]; - int psx_taken_BFC334E8 = (psx_brA_BFC334E8 != psx_brB_BFC334E8); + psx_taken_BFC334E8 = (psx_brA_BFC334E8 != psx_brB_BFC334E8); /* 0xBFC334EC: 00000000 nop */ /* nop */ if (psx_taken_BFC334E8) goto label_BFC33468; @@ -164302,7 +168902,7 @@ label_BFC334F0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[23] < (int32_t)cpu->gpr[24] ? 1 : 0); /* 0xBFC334FC: 1420FFD8 bne $at, $zero, 0xBFC33460 */ uint32_t psx_brA_BFC334FC = cpu->gpr[1]; uint32_t psx_brB_BFC334FC = cpu->gpr[0]; - int psx_taken_BFC334FC = (psx_brA_BFC334FC != psx_brB_BFC334FC); + psx_taken_BFC334FC = (psx_brA_BFC334FC != psx_brB_BFC334FC); /* 0xBFC33500: 2BC10002 slti $at, $fp, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[30] < (2) ? 1 : 0); if (psx_taken_BFC334FC) goto label_BFC33460; @@ -164346,6 +168946,26 @@ label_BFC33528: void func_1FC33538(CPUState* cpu) { debug_server_log_call_entry(0x1FC33538u); + int psx_taken_BFC33564 = 0; + int psx_taken_BFC33578 = 0; + int psx_taken_BFC3358C = 0; + int psx_taken_BFC335A0 = 0; + int psx_taken_BFC335B4 = 0; + int psx_taken_BFC335C4 = 0; + int psx_taken_BFC335D8 = 0; + int psx_taken_BFC335F0 = 0; + int psx_taken_BFC33604 = 0; + int psx_taken_BFC33618 = 0; + int psx_taken_BFC3362C = 0; + int psx_taken_BFC3363C = 0; + int psx_taken_BFC33654 = 0; + int psx_taken_BFC3366C = 0; + int psx_taken_BFC3367C = 0; + int psx_taken_BFC33690 = 0; + int psx_taken_BFC336A0 = 0; + int psx_taken_BFC336B4 = 0; + int psx_taken_BFC336C8 = 0; + int psx_taken_BFC336D8 = 0; label_BFC33538: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -164375,7 +168995,7 @@ label_BFC33538: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (4)); /* 0xBFC33564: 05810003 bgez $t4, 0xBFC33574 */ uint32_t psx_brA_BFC33564 = cpu->gpr[12]; - int psx_taken_BFC33564 = ((int32_t)psx_brA_BFC33564 >= 0); + psx_taken_BFC33564 = ((int32_t)psx_brA_BFC33564 >= 0); /* 0xBFC33568: 01805821 addu $t3, $t4, $zero */ cpu->gpr[11] = cpu->gpr[12] + cpu->gpr[0]; if (psx_taken_BFC33564) goto label_BFC33574; @@ -164397,7 +169017,7 @@ label_BFC33574: cpu->gpr[5] = cpu->gpr[9] - cpu->gpr[3]; /* 0xBFC33578: 04A10003 bgez $a1, 0xBFC33588 */ uint32_t psx_brA_BFC33578 = cpu->gpr[5]; - int psx_taken_BFC33578 = ((int32_t)psx_brA_BFC33578 >= 0); + psx_taken_BFC33578 = ((int32_t)psx_brA_BFC33578 >= 0); /* 0xBFC3357C: 00A02021 addu $a0, $a1, $zero */ cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC33578) goto label_BFC33588; @@ -164419,7 +169039,7 @@ label_BFC33588: cpu->gpr[5] = cpu->gpr[8] - cpu->gpr[7]; /* 0xBFC3358C: 04A10003 bgez $a1, 0xBFC3359C */ uint32_t psx_brA_BFC3358C = cpu->gpr[5]; - int psx_taken_BFC3358C = ((int32_t)psx_brA_BFC3358C >= 0); + psx_taken_BFC3358C = ((int32_t)psx_brA_BFC3358C >= 0); /* 0xBFC33590: 00A02021 addu $a0, $a1, $zero */ cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC3358C) goto label_BFC3359C; @@ -164441,7 +169061,7 @@ label_BFC3359C: cpu->gpr[5] = cpu->gpr[3] - cpu->gpr[2]; /* 0xBFC335A0: 04A10003 bgez $a1, 0xBFC335B0 */ uint32_t psx_brA_BFC335A0 = cpu->gpr[5]; - int psx_taken_BFC335A0 = ((int32_t)psx_brA_BFC335A0 >= 0); + psx_taken_BFC335A0 = ((int32_t)psx_brA_BFC335A0 >= 0); /* 0xBFC335A4: 00A02021 addu $a0, $a1, $zero */ cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC335A0) goto label_BFC335B0; @@ -164463,7 +169083,7 @@ label_BFC335B0: cpu->gpr[5] = cpu->gpr[7] - cpu->gpr[2]; /* 0xBFC335B4: 04A10002 bgez $a1, 0xBFC335C0 */ uint32_t psx_brA_BFC335B4 = cpu->gpr[5]; - int psx_taken_BFC335B4 = ((int32_t)psx_brA_BFC335B4 >= 0); + psx_taken_BFC335B4 = ((int32_t)psx_brA_BFC335B4 >= 0); /* 0xBFC335B8: 00A02021 addu $a0, $a1, $zero */ cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC335B4) goto label_BFC335C0; @@ -164483,7 +169103,7 @@ label_BFC335C0: cpu->gpr[4] = cpu->gpr[8] - cpu->gpr[9]; /* 0xBFC335C4: 04810003 bgez $a0, 0xBFC335D4 */ uint32_t psx_brA_BFC335C4 = cpu->gpr[4]; - int psx_taken_BFC335C4 = ((int32_t)psx_brA_BFC335C4 >= 0); + psx_taken_BFC335C4 = ((int32_t)psx_brA_BFC335C4 >= 0); /* 0xBFC335C8: 00801021 addu $v0, $a0, $zero */ cpu->gpr[2] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC335C4) goto label_BFC335D4; @@ -164505,7 +169125,7 @@ label_BFC335D4: cpu->gpr[4] = cpu->gpr[8] - cpu->gpr[10]; /* 0xBFC335D8: 04810002 bgez $a0, 0xBFC335E4 */ uint32_t psx_brA_BFC335D8 = cpu->gpr[4]; - int psx_taken_BFC335D8 = ((int32_t)psx_brA_BFC335D8 >= 0); + psx_taken_BFC335D8 = ((int32_t)psx_brA_BFC335D8 >= 0); /* 0xBFC335DC: 00801021 addu $v0, $a0, $zero */ cpu->gpr[2] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC335D8) goto label_BFC335E4; @@ -164529,7 +169149,7 @@ label_BFC335E4: cpu->gpr[5] = cpu->gpr[3] - cpu->gpr[2]; /* 0xBFC335F0: 04A10003 bgez $a1, 0xBFC33600 */ uint32_t psx_brA_BFC335F0 = cpu->gpr[5]; - int psx_taken_BFC335F0 = ((int32_t)psx_brA_BFC335F0 >= 0); + psx_taken_BFC335F0 = ((int32_t)psx_brA_BFC335F0 >= 0); /* 0xBFC335F4: 00A02021 addu $a0, $a1, $zero */ cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC335F0) goto label_BFC33600; @@ -164551,7 +169171,7 @@ label_BFC33600: cpu->gpr[8] = cpu->gpr[10] - cpu->gpr[7]; /* 0xBFC33604: 05010003 bgez $t0, 0xBFC33614 */ uint32_t psx_brA_BFC33604 = cpu->gpr[8]; - int psx_taken_BFC33604 = ((int32_t)psx_brA_BFC33604 >= 0); + psx_taken_BFC33604 = ((int32_t)psx_brA_BFC33604 >= 0); /* 0xBFC33608: 01002021 addu $a0, $t0, $zero */ cpu->gpr[4] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC33604) goto label_BFC33614; @@ -164573,7 +169193,7 @@ label_BFC33614: cpu->gpr[5] = cpu->gpr[7] - cpu->gpr[2]; /* 0xBFC33618: 04A10003 bgez $a1, 0xBFC33628 */ uint32_t psx_brA_BFC33618 = cpu->gpr[5]; - int psx_taken_BFC33618 = ((int32_t)psx_brA_BFC33618 >= 0); + psx_taken_BFC33618 = ((int32_t)psx_brA_BFC33618 >= 0); /* 0xBFC3361C: 00A02021 addu $a0, $a1, $zero */ cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC33618) goto label_BFC33628; @@ -164595,7 +169215,7 @@ label_BFC33628: cpu->gpr[5] = cpu->gpr[9] - cpu->gpr[2]; /* 0xBFC3362C: 04A10002 bgez $a1, 0xBFC33638 */ uint32_t psx_brA_BFC3362C = cpu->gpr[5]; - int psx_taken_BFC3362C = ((int32_t)psx_brA_BFC3362C >= 0); + psx_taken_BFC3362C = ((int32_t)psx_brA_BFC3362C >= 0); /* 0xBFC33630: 00A02021 addu $a0, $a1, $zero */ cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC3362C) goto label_BFC33638; @@ -164615,7 +169235,7 @@ label_BFC33638: cpu->gpr[4] = cpu->gpr[9] - cpu->gpr[10]; /* 0xBFC3363C: 04810003 bgez $a0, 0xBFC3364C */ uint32_t psx_brA_BFC3363C = cpu->gpr[4]; - int psx_taken_BFC3363C = ((int32_t)psx_brA_BFC3363C >= 0); + psx_taken_BFC3363C = ((int32_t)psx_brA_BFC3363C >= 0); /* 0xBFC33640: 00801021 addu $v0, $a0, $zero */ cpu->gpr[2] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC3363C) goto label_BFC3364C; @@ -164639,7 +169259,7 @@ label_BFC3364C: cpu->gpr[2] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC33654: 04A10002 bgez $a1, 0xBFC33660 */ uint32_t psx_brA_BFC33654 = cpu->gpr[5]; - int psx_taken_BFC33654 = ((int32_t)psx_brA_BFC33654 >= 0); + psx_taken_BFC33654 = ((int32_t)psx_brA_BFC33654 >= 0); /* 0xBFC33658: 01474023 subu $t0, $t2, $a3 */ cpu->gpr[8] = cpu->gpr[10] - cpu->gpr[7]; if (psx_taken_BFC33654) goto label_BFC33660; @@ -164663,7 +169283,7 @@ label_BFC33660: cpu->gpr[5] = cpu->gpr[3] - cpu->gpr[2]; /* 0xBFC3366C: 04A10003 bgez $a1, 0xBFC3367C */ uint32_t psx_brA_BFC3366C = cpu->gpr[5]; - int psx_taken_BFC3366C = ((int32_t)psx_brA_BFC3366C >= 0); + psx_taken_BFC3366C = ((int32_t)psx_brA_BFC3366C >= 0); /* 0xBFC33670: 00A02021 addu $a0, $a1, $zero */ cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC3366C) goto label_BFC3367C; @@ -164683,7 +169303,7 @@ label_BFC3367C: psx_check_interrupts(cpu); /* 0xBFC3367C: 05010003 bgez $t0, 0xBFC3368C */ uint32_t psx_brA_BFC3367C = cpu->gpr[8]; - int psx_taken_BFC3367C = ((int32_t)psx_brA_BFC3367C >= 0); + psx_taken_BFC3367C = ((int32_t)psx_brA_BFC3367C >= 0); /* 0xBFC33680: 01002021 addu $a0, $t0, $zero */ cpu->gpr[4] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC3367C) goto label_BFC3368C; @@ -164705,7 +169325,7 @@ label_BFC3368C: cpu->gpr[5] = cpu->gpr[7] - cpu->gpr[2]; /* 0xBFC33690: 04A10002 bgez $a1, 0xBFC3369C */ uint32_t psx_brA_BFC33690 = cpu->gpr[5]; - int psx_taken_BFC33690 = ((int32_t)psx_brA_BFC33690 >= 0); + psx_taken_BFC33690 = ((int32_t)psx_brA_BFC33690 >= 0); /* 0xBFC33694: 00A02021 addu $a0, $a1, $zero */ cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC33690) goto label_BFC3369C; @@ -164725,7 +169345,7 @@ label_BFC3369C: cpu->gpr[4] = cpu->gpr[10] - cpu->gpr[3]; /* 0xBFC336A0: 04810002 bgez $a0, 0xBFC336AC */ uint32_t psx_brA_BFC336A0 = cpu->gpr[4]; - int psx_taken_BFC336A0 = ((int32_t)psx_brA_BFC336A0 >= 0); + psx_taken_BFC336A0 = ((int32_t)psx_brA_BFC336A0 >= 0); /* 0xBFC336A4: 00801021 addu $v0, $a0, $zero */ cpu->gpr[2] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC336A0) goto label_BFC336AC; @@ -164747,7 +169367,7 @@ label_BFC336AC: cpu->gpr[5] = cpu->gpr[7] - cpu->gpr[3]; /* 0xBFC336B4: 04A10003 bgez $a1, 0xBFC336C4 */ uint32_t psx_brA_BFC336B4 = cpu->gpr[5]; - int psx_taken_BFC336B4 = ((int32_t)psx_brA_BFC336B4 >= 0); + psx_taken_BFC336B4 = ((int32_t)psx_brA_BFC336B4 >= 0); /* 0xBFC336B8: 00A02021 addu $a0, $a1, $zero */ cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC336B4) goto label_BFC336C4; @@ -164769,7 +169389,7 @@ label_BFC336C4: cpu->gpr[5] = cpu->gpr[7] - cpu->gpr[2]; /* 0xBFC336C8: 04A10002 bgez $a1, 0xBFC336D4 */ uint32_t psx_brA_BFC336C8 = cpu->gpr[5]; - int psx_taken_BFC336C8 = ((int32_t)psx_brA_BFC336C8 >= 0); + psx_taken_BFC336C8 = ((int32_t)psx_brA_BFC336C8 >= 0); /* 0xBFC336CC: 00A02021 addu $a0, $a1, $zero */ cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC336C8) goto label_BFC336D4; @@ -164789,7 +169409,7 @@ label_BFC336D4: cpu->gpr[5] = cpu->gpr[3] - cpu->gpr[2]; /* 0xBFC336D8: 04A10002 bgez $a1, 0xBFC336E4 */ uint32_t psx_brA_BFC336D8 = cpu->gpr[5]; - int psx_taken_BFC336D8 = ((int32_t)psx_brA_BFC336D8 >= 0); + psx_taken_BFC336D8 = ((int32_t)psx_brA_BFC336D8 >= 0); /* 0xBFC336DC: 00A02021 addu $a0, $a1, $zero */ cpu->gpr[4] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC336D8) goto label_BFC336E4; @@ -165506,6 +170126,9 @@ label_BFC33B20: void func_1FC33B80(CPUState* cpu) { debug_server_log_call_entry(0x1FC33B80u); + int psx_taken_BFC33B94 = 0; + int psx_taken_BFC33BB8 = 0; + int psx_taken_BFC33BC4 = 0; label_BFC33B80: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -165523,7 +170146,7 @@ label_BFC33B80: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (32)); /* 0xBFC33B94: 10410019 beq $v0, $at, 0xBFC33BFC */ uint32_t psx_brA_BFC33B94 = cpu->gpr[2]; uint32_t psx_brB_BFC33B94 = cpu->gpr[1]; - int psx_taken_BFC33B94 = (psx_brA_BFC33B94 == psx_brB_BFC33B94); + psx_taken_BFC33B94 = (psx_brA_BFC33B94 == psx_brB_BFC33B94); /* 0xBFC33B98: 00000000 nop */ /* nop */ if (psx_taken_BFC33B94) goto label_BFC33BFC; @@ -165548,7 +170171,7 @@ label_BFC33B9C: { int32_t psx_a = (int32_t)cpu->gpr[10]; int32_t psx_b = (-24); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[11] = (uint32_t)(int32_t)psx_r; } /* 0xBFC33BB8: 05600003 bltz $t3, 0xBFC33BC8 */ uint32_t psx_brA_BFC33BB8 = cpu->gpr[11]; - int psx_taken_BFC33BB8 = ((int32_t)psx_brA_BFC33BB8 < 0); + psx_taken_BFC33BB8 = ((int32_t)psx_brA_BFC33BB8 < 0); /* 0xBFC33BBC: 00000000 nop */ /* nop */ if (psx_taken_BFC33BB8) goto label_BFC33BC8; @@ -165561,7 +170184,7 @@ label_BFC33BC0: cpu->gpr[12] = cpu->gpr[4] << (cpu->gpr[11] & 0x1Fu); /* 0xBFC33BC4: 10000003 beq $zero, $zero, 0xBFC33BD4 */ uint32_t psx_brA_BFC33BC4 = cpu->gpr[0]; uint32_t psx_brB_BFC33BC4 = cpu->gpr[0]; - int psx_taken_BFC33BC4 = (psx_brA_BFC33BC4 == psx_brB_BFC33BC4); + psx_taken_BFC33BC4 = (psx_brA_BFC33BC4 == psx_brB_BFC33BC4); label_BFC33BC8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -165617,6 +170240,10 @@ label_BFC33BFC: void func_1FC33C04(CPUState* cpu) { debug_server_log_call_entry(0x1FC33C04u); + int psx_taken_BFC33C18 = 0; + int psx_taken_BFC33C3C = 0; + int psx_taken_BFC33C48 = 0; + int psx_taken_BFC33C70 = 0; label_BFC33C04: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -165634,7 +170261,7 @@ label_BFC33C04: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (32)); /* 0xBFC33C18: 1041001D beq $v0, $at, 0xBFC33C90 */ uint32_t psx_brA_BFC33C18 = cpu->gpr[2]; uint32_t psx_brB_BFC33C18 = cpu->gpr[1]; - int psx_taken_BFC33C18 = (psx_brA_BFC33C18 == psx_brB_BFC33C18); + psx_taken_BFC33C18 = (psx_brA_BFC33C18 == psx_brB_BFC33C18); /* 0xBFC33C1C: 00000000 nop */ /* nop */ if (psx_taken_BFC33C18) { cpu->pc = 0xBFC33C90u; return; } @@ -165659,7 +170286,7 @@ label_BFC33C20: { int32_t psx_a = (int32_t)cpu->gpr[10]; int32_t psx_b = (-24); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[11] = (uint32_t)(int32_t)psx_r; } /* 0xBFC33C3C: 05600003 bltz $t3, 0xBFC33C4C */ uint32_t psx_brA_BFC33C3C = cpu->gpr[11]; - int psx_taken_BFC33C3C = ((int32_t)psx_brA_BFC33C3C < 0); + psx_taken_BFC33C3C = ((int32_t)psx_brA_BFC33C3C < 0); /* 0xBFC33C40: 00000000 nop */ /* nop */ if (psx_taken_BFC33C3C) goto label_BFC33C4C; @@ -165672,7 +170299,7 @@ label_BFC33C44: cpu->gpr[12] = cpu->gpr[4] << (cpu->gpr[11] & 0x1Fu); /* 0xBFC33C48: 10000003 beq $zero, $zero, 0xBFC33C58 */ uint32_t psx_brA_BFC33C48 = cpu->gpr[0]; uint32_t psx_brB_BFC33C48 = cpu->gpr[0]; - int psx_taken_BFC33C48 = (psx_brA_BFC33C48 == psx_brB_BFC33C48); + psx_taken_BFC33C48 = (psx_brA_BFC33C48 == psx_brB_BFC33C48); label_BFC33C4C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -165709,7 +170336,7 @@ label_BFC33C58: /* nop */ /* 0xBFC33C70: 05200004 bltz $t1, 0xBFC33C84 */ uint32_t psx_brA_BFC33C70 = cpu->gpr[9]; - int psx_taken_BFC33C70 = ((int32_t)psx_brA_BFC33C70 < 0); + psx_taken_BFC33C70 = ((int32_t)psx_brA_BFC33C70 < 0); /* 0xBFC33C74: 00000000 nop */ /* nop */ if (psx_taken_BFC33C70) { cpu->pc = 0xBFC33C84u; return; } @@ -165743,6 +170370,8 @@ label_BFC33C84: void func_1FC33C98(CPUState* cpu) { debug_server_log_call_entry(0x1FC33C98u); + int psx_taken_BFC33CAC = 0; + int psx_taken_BFC33CB4 = 0; label_BFC33C98: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -165760,7 +170389,7 @@ label_BFC33C98: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (32)); /* 0xBFC33CAC: 1041001B beq $v0, $at, 0xBFC33D1C */ uint32_t psx_brA_BFC33CAC = cpu->gpr[2]; uint32_t psx_brB_BFC33CAC = cpu->gpr[1]; - int psx_taken_BFC33CAC = (psx_brA_BFC33CAC == psx_brB_BFC33CAC); + psx_taken_BFC33CAC = (psx_brA_BFC33CAC == psx_brB_BFC33CAC); /* 0xBFC33CB0: 00000000 nop */ /* nop */ if (psx_taken_BFC33CAC) { cpu->pc = 0xBFC33D1Cu; return; } @@ -165771,7 +170400,7 @@ label_BFC33CB4: psx_check_interrupts(cpu); /* 0xBFC33CB4: 10400019 beq $v0, $zero, 0xBFC33D1C */ uint32_t psx_brA_BFC33CB4 = cpu->gpr[2]; uint32_t psx_brB_BFC33CB4 = cpu->gpr[0]; - int psx_taken_BFC33CB4 = (psx_brA_BFC33CB4 == psx_brB_BFC33CB4); + psx_taken_BFC33CB4 = (psx_brA_BFC33CB4 == psx_brB_BFC33CB4); /* 0xBFC33CB8: 00000000 nop */ /* nop */ if (psx_taken_BFC33CB4) { cpu->pc = 0xBFC33D1Cu; return; } @@ -165787,6 +170416,8 @@ label_BFC33CBC: void func_1FC33CC0(CPUState* cpu) { debug_server_log_call_entry(0x1FC33CC0u); + int psx_taken_BFC33CD8 = 0; + int psx_taken_BFC33CE4 = 0; label_BFC33CC0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -165806,7 +170437,7 @@ label_BFC33CC0: { int32_t psx_a = (int32_t)cpu->gpr[10]; int32_t psx_b = (-24); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[11] = (uint32_t)(int32_t)psx_r; } /* 0xBFC33CD8: 05600003 bltz $t3, 0xBFC33CE8 */ uint32_t psx_brA_BFC33CD8 = cpu->gpr[11]; - int psx_taken_BFC33CD8 = ((int32_t)psx_brA_BFC33CD8 < 0); + psx_taken_BFC33CD8 = ((int32_t)psx_brA_BFC33CD8 < 0); /* 0xBFC33CDC: 00000000 nop */ /* nop */ if (psx_taken_BFC33CD8) goto label_BFC33CE8; @@ -165819,7 +170450,7 @@ label_BFC33CE0: cpu->gpr[12] = cpu->gpr[4] << (cpu->gpr[11] & 0x1Fu); /* 0xBFC33CE4: 10000003 beq $zero, $zero, 0xBFC33CF4 */ uint32_t psx_brA_BFC33CE4 = cpu->gpr[0]; uint32_t psx_brB_BFC33CE4 = cpu->gpr[0]; - int psx_taken_BFC33CE4 = (psx_brA_BFC33CE4 == psx_brB_BFC33CE4); + psx_taken_BFC33CE4 = (psx_brA_BFC33CE4 == psx_brB_BFC33CE4); label_BFC33CE8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -165866,6 +170497,7 @@ label_BFC33CF4: void func_1FC33D24(CPUState* cpu) { debug_server_log_call_entry(0x1FC33D24u); + int psx_taken_BFC33D94 = 0; label_BFC33D24: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -165934,7 +170566,7 @@ label_BFC33D30: { int32_t psx_a = (int32_t)cpu->gpr[4]; int32_t psx_b = (8); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[4] = (uint32_t)(int32_t)psx_r; } /* 0xBFC33D94: 14A6FFE6 bne $a1, $a2, 0xBFC33D30 */ uint32_t psx_brA_BFC33D94 = cpu->gpr[5]; uint32_t psx_brB_BFC33D94 = cpu->gpr[6]; - int psx_taken_BFC33D94 = (psx_brA_BFC33D94 != psx_brB_BFC33D94); + psx_taken_BFC33D94 = (psx_brA_BFC33D94 != psx_brB_BFC33D94); /* 0xBFC33D98: 00000000 nop */ /* nop */ if (psx_taken_BFC33D94) goto label_BFC33D30; @@ -166703,6 +171335,8 @@ label_BFC34104: void func_1FC34110(CPUState* cpu) { debug_server_log_call_entry(0x1FC34110u); + int psx_taken_BFC34140 = 0; + int psx_taken_BFC34150 = 0; label_BFC34110: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -166744,7 +171378,7 @@ label_BFC34130: cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[8] + (6)); /* 0xBFC34140: 1469FFFB bne $v1, $t1, 0xBFC34130 */ uint32_t psx_brA_BFC34140 = cpu->gpr[3]; uint32_t psx_brB_BFC34140 = cpu->gpr[9]; - int psx_taken_BFC34140 = (psx_brA_BFC34140 != psx_brB_BFC34140); + psx_taken_BFC34140 = (psx_brA_BFC34140 != psx_brB_BFC34140); /* 0xBFC34144: A48FFFFE sh $t7, -2($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (-2)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC34144u); return; } g_debug_last_store_pc = 0xBFC34144u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[15] & 0xFFFFu)); } if (psx_taken_BFC34140) goto label_BFC34130; @@ -166759,7 +171393,7 @@ label_BFC34148: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (3) ? 1 : 0); /* 0xBFC34150: 1420FFF3 bne $at, $zero, 0xBFC34120 */ uint32_t psx_brA_BFC34150 = cpu->gpr[1]; uint32_t psx_brB_BFC34150 = cpu->gpr[0]; - int psx_taken_BFC34150 = (psx_brA_BFC34150 != psx_brB_BFC34150); + psx_taken_BFC34150 = (psx_brA_BFC34150 != psx_brB_BFC34150); /* 0xBFC34154: 24C60006 addiu $a2, $a2, 6 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (6)); if (psx_taken_BFC34150) goto label_BFC34120; @@ -167915,6 +172549,12 @@ void func_1FC34898(CPUState* cpu) { default: break; } } + int psx_taken_BFC348A0 = 0; + int psx_taken_BFC348AC = 0; + int psx_taken_BFC348B4 = 0; + int psx_taken_BFC348C8 = 0; + int psx_taken_BFC348D0 = 0; + int psx_taken_BFC348D8 = 0; label_BFC34898: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -167926,7 +172566,7 @@ label_BFC34898: cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC348A0: 0461000B bgez $v1, 0xBFC348D0 */ uint32_t psx_brA_BFC348A0 = cpu->gpr[3]; - int psx_taken_BFC348A0 = ((int32_t)psx_brA_BFC348A0 >= 0); + psx_taken_BFC348A0 = ((int32_t)psx_brA_BFC348A0 >= 0); /* 0xBFC348A4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC348A4u); return; } g_debug_last_store_pc = 0xBFC348A4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC348A0) goto label_BFC348D0; @@ -167939,7 +172579,7 @@ label_BFC348A8: cpu->gpr[3] = cpu->gpr[0] - cpu->gpr[3]; /* 0xBFC348AC: 04610004 bgez $v1, 0xBFC348C0 */ uint32_t psx_brA_BFC348AC = cpu->gpr[3]; - int psx_taken_BFC348AC = ((int32_t)psx_brA_BFC348AC >= 0); + psx_taken_BFC348AC = ((int32_t)psx_brA_BFC348AC >= 0); /* 0xBFC348B0: 30630FFF andi $v1, $v1, 0xFFF */ cpu->gpr[3] = cpu->gpr[3] & 0xFFFu; if (psx_taken_BFC348AC) goto label_BFC348C0; @@ -167950,7 +172590,7 @@ label_BFC348B4: psx_check_interrupts(cpu); /* 0xBFC348B4: 10600002 beq $v1, $zero, 0xBFC348C0 */ uint32_t psx_brA_BFC348B4 = cpu->gpr[3]; uint32_t psx_brB_BFC348B4 = cpu->gpr[0]; - int psx_taken_BFC348B4 = (psx_brA_BFC348B4 == psx_brB_BFC348B4); + psx_taken_BFC348B4 = (psx_brA_BFC348B4 == psx_brB_BFC348B4); /* 0xBFC348B8: 00000000 nop */ /* nop */ if (psx_taken_BFC348B4) goto label_BFC348C0; @@ -167978,7 +172618,7 @@ label_BFC348C8: psx_check_interrupts(cpu); /* 0xBFC348C8: 10000008 beq $zero, $zero, 0xBFC348EC */ uint32_t psx_brA_BFC348C8 = cpu->gpr[0]; uint32_t psx_brB_BFC348C8 = cpu->gpr[0]; - int psx_taken_BFC348C8 = (psx_brA_BFC348C8 == psx_brB_BFC348C8); + psx_taken_BFC348C8 = (psx_brA_BFC348C8 == psx_brB_BFC348C8); /* 0xBFC348CC: 00021023 subu $v0, $zero, $v0 */ cpu->gpr[2] = cpu->gpr[0] - cpu->gpr[2]; if (psx_taken_BFC348C8) goto label_BFC348EC; @@ -167989,7 +172629,7 @@ label_BFC348D0: psx_check_interrupts(cpu); /* 0xBFC348D0: 04610004 bgez $v1, 0xBFC348E4 */ uint32_t psx_brA_BFC348D0 = cpu->gpr[3]; - int psx_taken_BFC348D0 = ((int32_t)psx_brA_BFC348D0 >= 0); + psx_taken_BFC348D0 = ((int32_t)psx_brA_BFC348D0 >= 0); /* 0xBFC348D4: 30630FFF andi $v1, $v1, 0xFFF */ cpu->gpr[3] = cpu->gpr[3] & 0xFFFu; if (psx_taken_BFC348D0) goto label_BFC348E4; @@ -168000,7 +172640,7 @@ label_BFC348D8: psx_check_interrupts(cpu); /* 0xBFC348D8: 10600002 beq $v1, $zero, 0xBFC348E4 */ uint32_t psx_brA_BFC348D8 = cpu->gpr[3]; uint32_t psx_brB_BFC348D8 = cpu->gpr[0]; - int psx_taken_BFC348D8 = (psx_brA_BFC348D8 == psx_brB_BFC348D8); + psx_taken_BFC348D8 = (psx_brA_BFC348D8 == psx_brB_BFC348D8); /* 0xBFC348DC: 00000000 nop */ /* nop */ if (psx_taken_BFC348D8) goto label_BFC348E4; @@ -168038,6 +172678,8 @@ label_BFC348EC: void func_1FC348FC(CPUState* cpu) { debug_server_log_call_entry(0x1FC348FCu); + int psx_taken_BFC348FC = 0; + int psx_taken_BFC34904 = 0; label_BFC348FC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -168045,7 +172687,7 @@ label_BFC348FC: psx_check_interrupts(cpu); /* 0xBFC348FC: 04800009 bltz $a0, 0xBFC34924 */ uint32_t psx_brA_BFC348FC = cpu->gpr[4]; - int psx_taken_BFC348FC = ((int32_t)psx_brA_BFC348FC < 0); + psx_taken_BFC348FC = ((int32_t)psx_brA_BFC348FC < 0); /* 0xBFC34900: 28810400 slti $at, $a0, 1024 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (1024) ? 1 : 0); if (psx_taken_BFC348FC) { cpu->pc = 0xBFC34924u; return; } @@ -168056,7 +172698,7 @@ label_BFC34904: psx_check_interrupts(cpu); /* 0xBFC34904: 10200008 beq $at, $zero, 0xBFC34928 */ uint32_t psx_brA_BFC34904 = cpu->gpr[1]; uint32_t psx_brB_BFC34904 = cpu->gpr[0]; - int psx_taken_BFC34904 = (psx_brA_BFC34904 == psx_brB_BFC34904); + psx_taken_BFC34904 = (psx_brA_BFC34904 == psx_brB_BFC34904); /* 0xBFC34908: 28810400 slti $at, $a0, 1024 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (1024) ? 1 : 0); if (psx_taken_BFC34904) { cpu->pc = 0xBFC34928u; return; } @@ -168093,6 +172735,8 @@ label_BFC34924: void func_1FC34928(CPUState* cpu) { debug_server_log_call_entry(0x1FC34928u); + int psx_taken_BFC34928 = 0; + int psx_taken_BFC34930 = 0; label_BFC34928: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -168100,7 +172744,7 @@ label_BFC34928: psx_check_interrupts(cpu); /* 0xBFC34928: 1420000A bne $at, $zero, 0xBFC34954 */ uint32_t psx_brA_BFC34928 = cpu->gpr[1]; uint32_t psx_brB_BFC34928 = cpu->gpr[0]; - int psx_taken_BFC34928 = (psx_brA_BFC34928 != psx_brB_BFC34928); + psx_taken_BFC34928 = (psx_brA_BFC34928 != psx_brB_BFC34928); /* 0xBFC3492C: 28810800 slti $at, $a0, 2048 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (2048) ? 1 : 0); if (psx_taken_BFC34928) { cpu->pc = 0xBFC34954u; return; } @@ -168111,7 +172755,7 @@ label_BFC34930: psx_check_interrupts(cpu); /* 0xBFC34930: 10200009 beq $at, $zero, 0xBFC34958 */ uint32_t psx_brA_BFC34930 = cpu->gpr[1]; uint32_t psx_brB_BFC34930 = cpu->gpr[0]; - int psx_taken_BFC34930 = (psx_brA_BFC34930 == psx_brB_BFC34930); + psx_taken_BFC34930 = (psx_brA_BFC34930 == psx_brB_BFC34930); /* 0xBFC34934: 28810800 slti $at, $a0, 2048 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (2048) ? 1 : 0); if (psx_taken_BFC34930) { cpu->pc = 0xBFC34958u; return; } @@ -168150,6 +172794,8 @@ label_BFC34954: void func_1FC34958(CPUState* cpu) { debug_server_log_call_entry(0x1FC34958u); + int psx_taken_BFC34958 = 0; + int psx_taken_BFC34960 = 0; label_BFC34958: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -168157,7 +172803,7 @@ label_BFC34958: psx_check_interrupts(cpu); /* 0xBFC34958: 14200009 bne $at, $zero, 0xBFC34980 */ uint32_t psx_brA_BFC34958 = cpu->gpr[1]; uint32_t psx_brB_BFC34958 = cpu->gpr[0]; - int psx_taken_BFC34958 = (psx_brA_BFC34958 != psx_brB_BFC34958); + psx_taken_BFC34958 = (psx_brA_BFC34958 != psx_brB_BFC34958); /* 0xBFC3495C: 28810C00 slti $at, $a0, 3072 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (3072) ? 1 : 0); if (psx_taken_BFC34958) { cpu->pc = 0xBFC34980u; return; } @@ -168168,7 +172814,7 @@ label_BFC34960: psx_check_interrupts(cpu); /* 0xBFC34960: 10200008 beq $at, $zero, 0xBFC34984 */ uint32_t psx_brA_BFC34960 = cpu->gpr[1]; uint32_t psx_brB_BFC34960 = cpu->gpr[0]; - int psx_taken_BFC34960 = (psx_brA_BFC34960 == psx_brB_BFC34960); + psx_taken_BFC34960 = (psx_brA_BFC34960 == psx_brB_BFC34960); /* 0xBFC34964: 28810C00 slti $at, $a0, 3072 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (3072) ? 1 : 0); if (psx_taken_BFC34960) { cpu->pc = 0xBFC34984u; return; } @@ -168205,6 +172851,8 @@ label_BFC34980: void func_1FC34984(CPUState* cpu) { debug_server_log_call_entry(0x1FC34984u); + int psx_taken_BFC34984 = 0; + int psx_taken_BFC3498C = 0; label_BFC34984: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -168212,7 +172860,7 @@ label_BFC34984: psx_check_interrupts(cpu); /* 0xBFC34984: 1420000A bne $at, $zero, 0xBFC349B0 */ uint32_t psx_brA_BFC34984 = cpu->gpr[1]; uint32_t psx_brB_BFC34984 = cpu->gpr[0]; - int psx_taken_BFC34984 = (psx_brA_BFC34984 != psx_brB_BFC34984); + psx_taken_BFC34984 = (psx_brA_BFC34984 != psx_brB_BFC34984); /* 0xBFC34988: 28811000 slti $at, $a0, 4096 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (4096) ? 1 : 0); if (psx_taken_BFC34984) goto label_BFC349B0; @@ -168223,7 +172871,7 @@ label_BFC3498C: psx_check_interrupts(cpu); /* 0xBFC3498C: 10200008 beq $at, $zero, 0xBFC349B0 */ uint32_t psx_brA_BFC3498C = cpu->gpr[1]; uint32_t psx_brB_BFC3498C = cpu->gpr[0]; - int psx_taken_BFC3498C = (psx_brA_BFC3498C == psx_brB_BFC3498C); + psx_taken_BFC3498C = (psx_brA_BFC3498C == psx_brB_BFC3498C); /* 0xBFC34990: 00000000 nop */ /* nop */ if (psx_taken_BFC3498C) goto label_BFC349B0; @@ -168259,6 +172907,11 @@ label_BFC349B0: void func_1FC349B8(CPUState* cpu) { debug_server_log_call_entry(0x1FC349B8u); + int psx_taken_BFC349B8 = 0; + int psx_taken_BFC349C4 = 0; + int psx_taken_BFC349CC = 0; + int psx_taken_BFC349D8 = 0; + int psx_taken_BFC349E0 = 0; label_BFC349B8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -168266,7 +172919,7 @@ label_BFC349B8: psx_check_interrupts(cpu); /* 0xBFC349B8: 04810002 bgez $a0, 0xBFC349C4 */ uint32_t psx_brA_BFC349B8 = cpu->gpr[4]; - int psx_taken_BFC349B8 = ((int32_t)psx_brA_BFC349B8 >= 0); + psx_taken_BFC349B8 = ((int32_t)psx_brA_BFC349B8 >= 0); /* 0xBFC349BC: 00000000 nop */ /* nop */ if (psx_taken_BFC349B8) goto label_BFC349C4; @@ -168284,7 +172937,7 @@ label_BFC349C4: psx_check_interrupts(cpu); /* 0xBFC349C4: 04810004 bgez $a0, 0xBFC349D8 */ uint32_t psx_brA_BFC349C4 = cpu->gpr[4]; - int psx_taken_BFC349C4 = ((int32_t)psx_brA_BFC349C4 >= 0); + psx_taken_BFC349C4 = ((int32_t)psx_brA_BFC349C4 >= 0); /* 0xBFC349C8: 30840FFF andi $a0, $a0, 0xFFF */ cpu->gpr[4] = cpu->gpr[4] & 0xFFFu; if (psx_taken_BFC349C4) goto label_BFC349D8; @@ -168295,7 +172948,7 @@ label_BFC349CC: psx_check_interrupts(cpu); /* 0xBFC349CC: 10800002 beq $a0, $zero, 0xBFC349D8 */ uint32_t psx_brA_BFC349CC = cpu->gpr[4]; uint32_t psx_brB_BFC349CC = cpu->gpr[0]; - int psx_taken_BFC349CC = (psx_brA_BFC349CC == psx_brB_BFC349CC); + psx_taken_BFC349CC = (psx_brA_BFC349CC == psx_brB_BFC349CC); /* 0xBFC349D0: 00000000 nop */ /* nop */ if (psx_taken_BFC349CC) goto label_BFC349D8; @@ -168313,7 +172966,7 @@ label_BFC349D8: psx_check_interrupts(cpu); /* 0xBFC349D8: 0480000A bltz $a0, 0xBFC34A04 */ uint32_t psx_brA_BFC349D8 = cpu->gpr[4]; - int psx_taken_BFC349D8 = ((int32_t)psx_brA_BFC349D8 < 0); + psx_taken_BFC349D8 = ((int32_t)psx_brA_BFC349D8 < 0); /* 0xBFC349DC: 28810400 slti $at, $a0, 1024 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (1024) ? 1 : 0); if (psx_taken_BFC349D8) { cpu->pc = 0xBFC34A04u; return; } @@ -168324,7 +172977,7 @@ label_BFC349E0: psx_check_interrupts(cpu); /* 0xBFC349E0: 10200009 beq $at, $zero, 0xBFC34A08 */ uint32_t psx_brA_BFC349E0 = cpu->gpr[1]; uint32_t psx_brB_BFC349E0 = cpu->gpr[0]; - int psx_taken_BFC349E0 = (psx_brA_BFC349E0 == psx_brB_BFC349E0); + psx_taken_BFC349E0 = (psx_brA_BFC349E0 == psx_brB_BFC349E0); /* 0xBFC349E4: 28810400 slti $at, $a0, 1024 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (1024) ? 1 : 0); if (psx_taken_BFC349E0) { cpu->pc = 0xBFC34A08u; return; } @@ -168363,6 +173016,8 @@ label_BFC34A04: void func_1FC34A08(CPUState* cpu) { debug_server_log_call_entry(0x1FC34A08u); + int psx_taken_BFC34A08 = 0; + int psx_taken_BFC34A10 = 0; label_BFC34A08: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -168370,7 +173025,7 @@ label_BFC34A08: psx_check_interrupts(cpu); /* 0xBFC34A08: 14200009 bne $at, $zero, 0xBFC34A30 */ uint32_t psx_brA_BFC34A08 = cpu->gpr[1]; uint32_t psx_brB_BFC34A08 = cpu->gpr[0]; - int psx_taken_BFC34A08 = (psx_brA_BFC34A08 != psx_brB_BFC34A08); + psx_taken_BFC34A08 = (psx_brA_BFC34A08 != psx_brB_BFC34A08); /* 0xBFC34A0C: 28810800 slti $at, $a0, 2048 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (2048) ? 1 : 0); if (psx_taken_BFC34A08) { cpu->pc = 0xBFC34A30u; return; } @@ -168381,7 +173036,7 @@ label_BFC34A10: psx_check_interrupts(cpu); /* 0xBFC34A10: 10200008 beq $at, $zero, 0xBFC34A34 */ uint32_t psx_brA_BFC34A10 = cpu->gpr[1]; uint32_t psx_brB_BFC34A10 = cpu->gpr[0]; - int psx_taken_BFC34A10 = (psx_brA_BFC34A10 == psx_brB_BFC34A10); + psx_taken_BFC34A10 = (psx_brA_BFC34A10 == psx_brB_BFC34A10); /* 0xBFC34A14: 28810800 slti $at, $a0, 2048 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (2048) ? 1 : 0); if (psx_taken_BFC34A10) { cpu->pc = 0xBFC34A34u; return; } @@ -168418,6 +173073,8 @@ label_BFC34A30: void func_1FC34A34(CPUState* cpu) { debug_server_log_call_entry(0x1FC34A34u); + int psx_taken_BFC34A34 = 0; + int psx_taken_BFC34A3C = 0; label_BFC34A34: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -168425,7 +173082,7 @@ label_BFC34A34: psx_check_interrupts(cpu); /* 0xBFC34A34: 1420000A bne $at, $zero, 0xBFC34A60 */ uint32_t psx_brA_BFC34A34 = cpu->gpr[1]; uint32_t psx_brB_BFC34A34 = cpu->gpr[0]; - int psx_taken_BFC34A34 = (psx_brA_BFC34A34 != psx_brB_BFC34A34); + psx_taken_BFC34A34 = (psx_brA_BFC34A34 != psx_brB_BFC34A34); /* 0xBFC34A38: 28810C00 slti $at, $a0, 3072 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (3072) ? 1 : 0); if (psx_taken_BFC34A34) { cpu->pc = 0xBFC34A60u; return; } @@ -168436,7 +173093,7 @@ label_BFC34A3C: psx_check_interrupts(cpu); /* 0xBFC34A3C: 10200009 beq $at, $zero, 0xBFC34A64 */ uint32_t psx_brA_BFC34A3C = cpu->gpr[1]; uint32_t psx_brB_BFC34A3C = cpu->gpr[0]; - int psx_taken_BFC34A3C = (psx_brA_BFC34A3C == psx_brB_BFC34A3C); + psx_taken_BFC34A3C = (psx_brA_BFC34A3C == psx_brB_BFC34A3C); /* 0xBFC34A40: 28810C00 slti $at, $a0, 3072 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (3072) ? 1 : 0); if (psx_taken_BFC34A3C) { cpu->pc = 0xBFC34A64u; return; } @@ -168475,6 +173132,8 @@ label_BFC34A60: void func_1FC34A64(CPUState* cpu) { debug_server_log_call_entry(0x1FC34A64u); + int psx_taken_BFC34A64 = 0; + int psx_taken_BFC34A6C = 0; label_BFC34A64: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -168482,7 +173141,7 @@ label_BFC34A64: psx_check_interrupts(cpu); /* 0xBFC34A64: 14200008 bne $at, $zero, 0xBFC34A88 */ uint32_t psx_brA_BFC34A64 = cpu->gpr[1]; uint32_t psx_brB_BFC34A64 = cpu->gpr[0]; - int psx_taken_BFC34A64 = (psx_brA_BFC34A64 != psx_brB_BFC34A64); + psx_taken_BFC34A64 = (psx_brA_BFC34A64 != psx_brB_BFC34A64); /* 0xBFC34A68: 28811000 slti $at, $a0, 4096 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (4096) ? 1 : 0); if (psx_taken_BFC34A64) goto label_BFC34A88; @@ -168493,7 +173152,7 @@ label_BFC34A6C: psx_check_interrupts(cpu); /* 0xBFC34A6C: 10200006 beq $at, $zero, 0xBFC34A88 */ uint32_t psx_brA_BFC34A6C = cpu->gpr[1]; uint32_t psx_brB_BFC34A6C = cpu->gpr[0]; - int psx_taken_BFC34A6C = (psx_brA_BFC34A6C == psx_brB_BFC34A6C); + psx_taken_BFC34A6C = (psx_brA_BFC34A6C == psx_brB_BFC34A6C); /* 0xBFC34A70: 00000000 nop */ /* nop */ if (psx_taken_BFC34A6C) goto label_BFC34A88; @@ -168552,6 +173211,9 @@ void func_1FC34AA0(CPUState* cpu) { default: break; } } + int psx_taken_BFC34AAC = 0; + int psx_taken_BFC34ABC = 0; + int psx_taken_BFC34AC4 = 0; label_BFC34AA0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -168565,7 +173227,7 @@ label_BFC34AA0: cpu->gpr[4] = cpu->lo; /* 0xBFC34AAC: 14A00002 bne $a1, $zero, 0xBFC34AB8 */ uint32_t psx_brA_BFC34AAC = cpu->gpr[5]; uint32_t psx_brB_BFC34AAC = cpu->gpr[0]; - int psx_taken_BFC34AAC = (psx_brA_BFC34AAC != psx_brB_BFC34AAC); + psx_taken_BFC34AAC = (psx_brA_BFC34AAC != psx_brB_BFC34AAC); /* 0xBFC34AB0: 00000000 nop */ /* nop */ if (psx_taken_BFC34AAC) goto label_BFC34AB8; @@ -168585,7 +173247,7 @@ label_BFC34AB8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC34ABC: 14A10004 bne $a1, $at, 0xBFC34AD0 */ uint32_t psx_brA_BFC34ABC = cpu->gpr[5]; uint32_t psx_brB_BFC34ABC = cpu->gpr[1]; - int psx_taken_BFC34ABC = (psx_brA_BFC34ABC != psx_brB_BFC34ABC); + psx_taken_BFC34ABC = (psx_brA_BFC34ABC != psx_brB_BFC34ABC); /* 0xBFC34AC0: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC34ABC) goto label_BFC34AD0; @@ -168596,7 +173258,7 @@ label_BFC34AC4: psx_check_interrupts(cpu); /* 0xBFC34AC4: 15E10002 bne $t7, $at, 0xBFC34AD0 */ uint32_t psx_brA_BFC34AC4 = cpu->gpr[15]; uint32_t psx_brB_BFC34AC4 = cpu->gpr[1]; - int psx_taken_BFC34AC4 = (psx_brA_BFC34AC4 != psx_brB_BFC34AC4); + psx_taken_BFC34AC4 = (psx_brA_BFC34AC4 != psx_brB_BFC34AC4); /* 0xBFC34AC8: 00000000 nop */ /* nop */ if (psx_taken_BFC34AC4) goto label_BFC34AD0; @@ -168675,6 +173337,9 @@ void func_1FC34B08(CPUState* cpu) { default: break; } } + int psx_taken_BFC34B14 = 0; + int psx_taken_BFC34B24 = 0; + int psx_taken_BFC34B2C = 0; label_BFC34B08: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -168688,7 +173353,7 @@ label_BFC34B08: cpu->gpr[4] = cpu->lo; /* 0xBFC34B14: 14A00002 bne $a1, $zero, 0xBFC34B20 */ uint32_t psx_brA_BFC34B14 = cpu->gpr[5]; uint32_t psx_brB_BFC34B14 = cpu->gpr[0]; - int psx_taken_BFC34B14 = (psx_brA_BFC34B14 != psx_brB_BFC34B14); + psx_taken_BFC34B14 = (psx_brA_BFC34B14 != psx_brB_BFC34B14); /* 0xBFC34B18: 00000000 nop */ /* nop */ if (psx_taken_BFC34B14) goto label_BFC34B20; @@ -168708,7 +173373,7 @@ label_BFC34B20: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC34B24: 14A10004 bne $a1, $at, 0xBFC34B38 */ uint32_t psx_brA_BFC34B24 = cpu->gpr[5]; uint32_t psx_brB_BFC34B24 = cpu->gpr[1]; - int psx_taken_BFC34B24 = (psx_brA_BFC34B24 != psx_brB_BFC34B24); + psx_taken_BFC34B24 = (psx_brA_BFC34B24 != psx_brB_BFC34B24); /* 0xBFC34B28: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC34B24) goto label_BFC34B38; @@ -168719,7 +173384,7 @@ label_BFC34B2C: psx_check_interrupts(cpu); /* 0xBFC34B2C: 15C10002 bne $t6, $at, 0xBFC34B38 */ uint32_t psx_brA_BFC34B2C = cpu->gpr[14]; uint32_t psx_brB_BFC34B2C = cpu->gpr[1]; - int psx_taken_BFC34B2C = (psx_brA_BFC34B2C != psx_brB_BFC34B2C); + psx_taken_BFC34B2C = (psx_brA_BFC34B2C != psx_brB_BFC34B2C); /* 0xBFC34B30: 00000000 nop */ /* nop */ if (psx_taken_BFC34B2C) goto label_BFC34B38; @@ -168767,6 +173432,15 @@ label_BFC34B48: void func_1FC34B58(CPUState* cpu) { debug_server_log_call_entry(0x1FC34B58u); + int psx_taken_BFC34CD8 = 0; + int psx_taken_BFC34CEC = 0; + int psx_taken_BFC34CFC = 0; + int psx_taken_BFC34D38 = 0; + int psx_taken_BFC34D58 = 0; + int psx_taken_BFC34D68 = 0; + int psx_taken_BFC34D78 = 0; + int psx_taken_BFC34DC0 = 0; + int psx_taken_BFC34DE8 = 0; label_BFC34B58: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(92u); @@ -168976,7 +173650,7 @@ label_BFC34CD0: /* nop */ /* 0xBFC34CD8: 04410003 bgez $v0, 0xBFC34CE8 */ uint32_t psx_brA_BFC34CD8 = cpu->gpr[2]; - int psx_taken_BFC34CD8 = ((int32_t)psx_brA_BFC34CD8 >= 0); + psx_taken_BFC34CD8 = ((int32_t)psx_brA_BFC34CD8 >= 0); /* 0xBFC34CDC: 00000000 nop */ /* nop */ if (psx_taken_BFC34CD8) goto label_BFC34CE8; @@ -168998,7 +173672,7 @@ label_BFC34CE8: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC34CEC: 1467FFF8 bne $v1, $a3, 0xBFC34CD0 */ uint32_t psx_brA_BFC34CEC = cpu->gpr[3]; uint32_t psx_brB_BFC34CEC = cpu->gpr[7]; - int psx_taken_BFC34CEC = (psx_brA_BFC34CEC != psx_brB_BFC34CEC); + psx_taken_BFC34CEC = (psx_brA_BFC34CEC != psx_brB_BFC34CEC); /* 0xBFC34CF0: 24840004 addiu $a0, $a0, 4 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (4)); if (psx_taken_BFC34CEC) goto label_BFC34CD0; @@ -169013,7 +173687,7 @@ label_BFC34CF4: cpu->gpr[1] = (uint32_t)(cpu->gpr[9] < cpu->gpr[5] ? 1 : 0); /* 0xBFC34CFC: 1420FFF2 bne $at, $zero, 0xBFC34CC8 */ uint32_t psx_brA_BFC34CFC = cpu->gpr[1]; uint32_t psx_brB_BFC34CFC = cpu->gpr[0]; - int psx_taken_BFC34CFC = (psx_brA_BFC34CFC != psx_brB_BFC34CFC); + psx_taken_BFC34CFC = (psx_brA_BFC34CFC != psx_brB_BFC34CFC); /* 0xBFC34D00: 87AA00E8 lh $t2, 232($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (232)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC34D00u); return; } cpu->gpr[10] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } if (psx_taken_BFC34CFC) goto label_BFC34CC8; @@ -169060,7 +173734,7 @@ label_BFC34D2C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[5] < (int32_t)cpu->gpr[24] ? 1 : 0); /* 0xBFC34D38: 10200006 beq $at, $zero, 0xBFC34D54 */ uint32_t psx_brA_BFC34D38 = cpu->gpr[1]; uint32_t psx_brB_BFC34D38 = cpu->gpr[0]; - int psx_taken_BFC34D38 = (psx_brA_BFC34D38 == psx_brB_BFC34D38); + psx_taken_BFC34D38 = (psx_brA_BFC34D38 == psx_brB_BFC34D38); /* 0xBFC34D3C: 00000000 nop */ /* nop */ if (psx_taken_BFC34D38) goto label_BFC34D54; @@ -169088,7 +173762,7 @@ label_BFC34D54: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC34D58: 1467FFF4 bne $v1, $a3, 0xBFC34D2C */ uint32_t psx_brA_BFC34D58 = cpu->gpr[3]; uint32_t psx_brB_BFC34D58 = cpu->gpr[7]; - int psx_taken_BFC34D58 = (psx_brA_BFC34D58 != psx_brB_BFC34D58); + psx_taken_BFC34D58 = (psx_brA_BFC34D58 != psx_brB_BFC34D58); /* 0xBFC34D5C: 24840004 addiu $a0, $a0, 4 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (4)); if (psx_taken_BFC34D58) goto label_BFC34D2C; @@ -169103,7 +173777,7 @@ label_BFC34D60: cpu->gpr[1] = (uint32_t)(cpu->gpr[9] < cpu->gpr[10] ? 1 : 0); /* 0xBFC34D68: 1420FFEE bne $at, $zero, 0xBFC34D24 */ uint32_t psx_brA_BFC34D68 = cpu->gpr[1]; uint32_t psx_brB_BFC34D68 = cpu->gpr[0]; - int psx_taken_BFC34D68 = (psx_brA_BFC34D68 != psx_brB_BFC34D68); + psx_taken_BFC34D68 = (psx_brA_BFC34D68 != psx_brB_BFC34D68); /* 0xBFC34D6C: 24C60003 addiu $a2, $a2, 3 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (3)); if (psx_taken_BFC34D68) goto label_BFC34D24; @@ -169118,7 +173792,7 @@ label_BFC34D70: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000009u ? 1 : 0); /* 0xBFC34D78: 10200027 beq $at, $zero, 0xBFC34E18 */ uint32_t psx_brA_BFC34D78 = cpu->gpr[1]; uint32_t psx_brB_BFC34D78 = cpu->gpr[0]; - int psx_taken_BFC34D78 = (psx_brA_BFC34D78 == psx_brB_BFC34D78); + psx_taken_BFC34D78 = (psx_brA_BFC34D78 == psx_brB_BFC34D78); /* 0xBFC34D7C: 00000000 nop */ /* nop */ if (psx_taken_BFC34D78) { cpu->pc = 0xBFC34E18u; return; } @@ -169172,7 +173846,7 @@ label_BFC34D9C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (168)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC34DBCu); return; } g_debug_last_store_pc = 0xBFC34DBCu; cpu->write_word(psx_addr, cpu->gpr[15]); } /* 0xBFC34DC0: 10000015 beq $zero, $zero, 0xBFC34E18 */ uint32_t psx_brA_BFC34DC0 = cpu->gpr[0]; uint32_t psx_brB_BFC34DC0 = cpu->gpr[0]; - int psx_taken_BFC34DC0 = (psx_brA_BFC34DC0 == psx_brB_BFC34DC0); + psx_taken_BFC34DC0 = (psx_brA_BFC34DC0 == psx_brB_BFC34DC0); /* 0xBFC34DC4: AFB900AC sw $t9, 172($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (172)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC34DC4u); return; } g_debug_last_store_pc = 0xBFC34DC4u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC34DC0) { cpu->pc = 0xBFC34E18u; return; } @@ -169199,7 +173873,7 @@ label_BFC34DC8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (156)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC34DE4u); return; } g_debug_last_store_pc = 0xBFC34DE4u; cpu->write_word(psx_addr, cpu->gpr[24]); } /* 0xBFC34DE8: 1000000B beq $zero, $zero, 0xBFC34E18 */ uint32_t psx_brA_BFC34DE8 = cpu->gpr[0]; uint32_t psx_brB_BFC34DE8 = cpu->gpr[0]; - int psx_taken_BFC34DE8 = (psx_brA_BFC34DE8 == psx_brB_BFC34DE8); + psx_taken_BFC34DE8 = (psx_brA_BFC34DE8 == psx_brB_BFC34DE8); /* 0xBFC34DEC: AFAF00A4 sw $t7, 164($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (164)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC34DECu); return; } g_debug_last_store_pc = 0xBFC34DECu; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC34DE8) { cpu->pc = 0xBFC34E18u; return; } @@ -169234,6 +173908,7 @@ void func_1FC34E00(CPUState* cpu) { default: break; } } + int psx_taken_BFC34E10 = 0; label_BFC34E00: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -169249,7 +173924,7 @@ label_BFC34E00: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (156)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC34E0Cu); return; } g_debug_last_store_pc = 0xBFC34E0Cu; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC34E10: 10000001 beq $zero, $zero, 0xBFC34E18 */ uint32_t psx_brA_BFC34E10 = cpu->gpr[0]; uint32_t psx_brB_BFC34E10 = cpu->gpr[0]; - int psx_taken_BFC34E10 = (psx_brA_BFC34E10 == psx_brB_BFC34E10); + psx_taken_BFC34E10 = (psx_brA_BFC34E10 == psx_brB_BFC34E10); /* 0xBFC34E14: AFB800A4 sw $t8, 164($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (164)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC34E14u); return; } g_debug_last_store_pc = 0xBFC34E14u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC34E10) goto label_BFC34E18; @@ -169388,6 +174063,11 @@ label_BFC34EC0: void func_1FC34EC4(CPUState* cpu) { debug_server_log_call_entry(0x1FC34EC4u); + int psx_taken_BFC34F48 = 0; + int psx_taken_BFC34F68 = 0; + int psx_taken_BFC34F78 = 0; + int psx_taken_BFC34F80 = 0; + int psx_taken_BFC34F88 = 0; label_BFC34EC4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(29u); @@ -169471,7 +174151,7 @@ label_BFC34F40: /* nop */ /* 0xBFC34F48: 04C10005 bgez $a2, 0xBFC34F60 */ uint32_t psx_brA_BFC34F48 = cpu->gpr[6]; - int psx_taken_BFC34F48 = ((int32_t)psx_brA_BFC34F48 >= 0); + psx_taken_BFC34F48 = ((int32_t)psx_brA_BFC34F48 >= 0); /* 0xBFC34F4C: 00000000 nop */ /* nop */ if (psx_taken_BFC34F48) goto label_BFC34F60; @@ -169499,7 +174179,7 @@ label_BFC34F60: cpu->gpr[2] = cpu->gpr[2] + cpu->gpr[6]; /* 0xBFC34F68: 1467FFF5 bne $v1, $a3, 0xBFC34F40 */ uint32_t psx_brA_BFC34F68 = cpu->gpr[3]; uint32_t psx_brB_BFC34F68 = cpu->gpr[7]; - int psx_taken_BFC34F68 = (psx_brA_BFC34F68 != psx_brB_BFC34F68); + psx_taken_BFC34F68 = (psx_brA_BFC34F68 != psx_brB_BFC34F68); /* 0xBFC34F6C: 24840004 addiu $a0, $a0, 4 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (4)); if (psx_taken_BFC34F68) goto label_BFC34F40; @@ -169514,7 +174194,7 @@ label_BFC34F70: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[8] ? 1 : 0); /* 0xBFC34F78: 1420FFEF bne $at, $zero, 0xBFC34F38 */ uint32_t psx_brA_BFC34F78 = cpu->gpr[1]; uint32_t psx_brB_BFC34F78 = cpu->gpr[0]; - int psx_taken_BFC34F78 = (psx_brA_BFC34F78 != psx_brB_BFC34F78); + psx_taken_BFC34F78 = (psx_brA_BFC34F78 != psx_brB_BFC34F78); /* 0xBFC34F7C: 28410014 slti $at, $v0, 20 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (20) ? 1 : 0); if (psx_taken_BFC34F78) goto label_BFC34F38; @@ -169525,7 +174205,7 @@ label_BFC34F80: psx_check_interrupts(cpu); /* 0xBFC34F80: 10200004 beq $at, $zero, 0xBFC34F94 */ uint32_t psx_brA_BFC34F80 = cpu->gpr[1]; uint32_t psx_brB_BFC34F80 = cpu->gpr[0]; - int psx_taken_BFC34F80 = (psx_brA_BFC34F80 == psx_brB_BFC34F80); + psx_taken_BFC34F80 = (psx_brA_BFC34F80 == psx_brB_BFC34F80); /* 0xBFC34F84: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC34F80) goto label_BFC34F94; @@ -169536,7 +174216,7 @@ label_BFC34F88: psx_check_interrupts(cpu); /* 0xBFC34F88: 10000002 beq $zero, $zero, 0xBFC34F94 */ uint32_t psx_brA_BFC34F88 = cpu->gpr[0]; uint32_t psx_brB_BFC34F88 = cpu->gpr[0]; - int psx_taken_BFC34F88 = (psx_brA_BFC34F88 == psx_brB_BFC34F88); + psx_taken_BFC34F88 = (psx_brA_BFC34F88 == psx_brB_BFC34F88); /* 0xBFC34F8C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC34F88) goto label_BFC34F94; @@ -171031,6 +175711,7 @@ void func_1FC35B88(CPUState* cpu) { default: break; } } + int psx_taken_BFC35B98 = 0; label_BFC35B88: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -171046,7 +175727,7 @@ label_BFC35B88: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (640) ? 1 : 0); /* 0xBFC35B98: 1420000A bne $at, $zero, 0xBFC35BC4 */ uint32_t psx_brA_BFC35B98 = cpu->gpr[1]; uint32_t psx_brB_BFC35B98 = cpu->gpr[0]; - int psx_taken_BFC35B98 = (psx_brA_BFC35B98 != psx_brB_BFC35B98); + psx_taken_BFC35B98 = (psx_brA_BFC35B98 != psx_brB_BFC35B98); /* 0xBFC35B9C: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC35B98) { cpu->pc = 0xBFC35BC4u; return; } @@ -171150,6 +175831,7 @@ void func_1FC35C28(CPUState* cpu) { default: break; } } + int psx_taken_BFC35C34 = 0; label_BFC35C28: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -171163,7 +175845,7 @@ label_BFC35C28: /* nop */ /* 0xBFC35C34: 1DC0000A bgtz $t6, 0xBFC35C60 */ uint32_t psx_brA_BFC35C34 = cpu->gpr[14]; - int psx_taken_BFC35C34 = ((int32_t)psx_brA_BFC35C34 > 0); + psx_taken_BFC35C34 = ((int32_t)psx_brA_BFC35C34 > 0); /* 0xBFC35C38: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC35C34) { cpu->pc = 0xBFC35C60u; return; } @@ -172452,6 +177134,7 @@ label_BFC36388: void func_1FC363A0(CPUState* cpu) { debug_server_log_call_entry(0x1FC363A0u); + int psx_taken_BFC363E0 = 0; label_BFC363A0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -172496,7 +177179,7 @@ label_BFC363A8: { int32_t psx_a = (int32_t)cpu->gpr[8]; int32_t psx_b = (-1); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[8] = (uint32_t)(int32_t)psx_r; } /* 0xBFC363E0: 1D00FFF1 bgtz $t0, 0xBFC363A8 */ uint32_t psx_brA_BFC363E0 = cpu->gpr[8]; - int psx_taken_BFC363E0 = ((int32_t)psx_brA_BFC363E0 > 0); + psx_taken_BFC363E0 = ((int32_t)psx_brA_BFC363E0 > 0); /* 0xBFC363E4: 00000000 nop */ /* nop */ if (psx_taken_BFC363E0) goto label_BFC363A8; @@ -172513,6 +177196,7 @@ label_BFC363E8: void func_1FC363F0(CPUState* cpu) { debug_server_log_call_entry(0x1FC363F0u); + int psx_taken_BFC36448 = 0; label_BFC363F0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -172569,7 +177253,7 @@ label_BFC363F8: { int32_t psx_a = (int32_t)cpu->gpr[8]; int32_t psx_b = (-1); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[8] = (uint32_t)(int32_t)psx_r; } /* 0xBFC36448: 1D00FFEB bgtz $t0, 0xBFC363F8 */ uint32_t psx_brA_BFC36448 = cpu->gpr[8]; - int psx_taken_BFC36448 = ((int32_t)psx_brA_BFC36448 > 0); + psx_taken_BFC36448 = ((int32_t)psx_brA_BFC36448 > 0); /* 0xBFC3644C: 00000000 nop */ /* nop */ if (psx_taken_BFC36448) goto label_BFC363F8; @@ -172830,6 +177514,8 @@ label_BFC365C4: void func_1FC365F8(CPUState* cpu) { debug_server_log_call_entry(0x1FC365F8u); + int psx_taken_BFC3664C = 0; + int psx_taken_BFC36654 = 0; label_BFC365F8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(23u); @@ -172879,7 +177565,7 @@ label_BFC365F8: /* nop */ /* 0xBFC3664C: 1C400003 bgtz $v0, 0xBFC3665C */ uint32_t psx_brA_BFC3664C = cpu->gpr[2]; - int psx_taken_BFC3664C = ((int32_t)psx_brA_BFC3664C > 0); + psx_taken_BFC3664C = ((int32_t)psx_brA_BFC3664C > 0); /* 0xBFC36650: 00000000 nop */ /* nop */ if (psx_taken_BFC3664C) goto label_BFC3665C; @@ -172890,7 +177576,7 @@ label_BFC36654: psx_check_interrupts(cpu); /* 0xBFC36654: 10000009 beq $zero, $zero, 0xBFC3667C */ uint32_t psx_brA_BFC36654 = cpu->gpr[0]; uint32_t psx_brB_BFC36654 = cpu->gpr[0]; - int psx_taken_BFC36654 = (psx_brA_BFC36654 == psx_brB_BFC36654); + psx_taken_BFC36654 = (psx_brA_BFC36654 == psx_brB_BFC36654); /* 0xBFC36658: 00000000 nop */ /* nop */ if (psx_taken_BFC36654) goto label_BFC3667C; @@ -172928,6 +177614,8 @@ label_BFC3667C: void func_1FC36684(CPUState* cpu) { debug_server_log_call_entry(0x1FC36684u); + int psx_taken_BFC366D8 = 0; + int psx_taken_BFC366E0 = 0; label_BFC36684: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(23u); @@ -172977,7 +177665,7 @@ label_BFC36684: /* nop */ /* 0xBFC366D8: 1C400003 bgtz $v0, 0xBFC366E8 */ uint32_t psx_brA_BFC366D8 = cpu->gpr[2]; - int psx_taken_BFC366D8 = ((int32_t)psx_brA_BFC366D8 > 0); + psx_taken_BFC366D8 = ((int32_t)psx_brA_BFC366D8 > 0); /* 0xBFC366DC: 00000000 nop */ /* nop */ if (psx_taken_BFC366D8) goto label_BFC366E8; @@ -172988,7 +177676,7 @@ label_BFC366E0: psx_check_interrupts(cpu); /* 0xBFC366E0: 10000015 beq $zero, $zero, 0xBFC36738 */ uint32_t psx_brA_BFC366E0 = cpu->gpr[0]; uint32_t psx_brB_BFC366E0 = cpu->gpr[0]; - int psx_taken_BFC366E0 = (psx_brA_BFC366E0 == psx_brB_BFC366E0); + psx_taken_BFC366E0 = (psx_brA_BFC366E0 == psx_brB_BFC366E0); /* 0xBFC366E4: 00000000 nop */ /* nop */ if (psx_taken_BFC366E0) goto label_BFC36738; @@ -173050,6 +177738,8 @@ label_BFC36738: void func_1FC36740(CPUState* cpu) { debug_server_log_call_entry(0x1FC36740u); + int psx_taken_BFC36790 = 0; + int psx_taken_BFC36798 = 0; label_BFC36740: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(22u); @@ -173097,7 +177787,7 @@ label_BFC36740: /* nop */ /* 0xBFC36790: 1C400003 bgtz $v0, 0xBFC367A0 */ uint32_t psx_brA_BFC36790 = cpu->gpr[2]; - int psx_taken_BFC36790 = ((int32_t)psx_brA_BFC36790 > 0); + psx_taken_BFC36790 = ((int32_t)psx_brA_BFC36790 > 0); /* 0xBFC36794: 00000000 nop */ /* nop */ if (psx_taken_BFC36790) goto label_BFC367A0; @@ -173108,7 +177798,7 @@ label_BFC36798: psx_check_interrupts(cpu); /* 0xBFC36798: 1000000C beq $zero, $zero, 0xBFC367CC */ uint32_t psx_brA_BFC36798 = cpu->gpr[0]; uint32_t psx_brB_BFC36798 = cpu->gpr[0]; - int psx_taken_BFC36798 = (psx_brA_BFC36798 == psx_brB_BFC36798); + psx_taken_BFC36798 = (psx_brA_BFC36798 == psx_brB_BFC36798); /* 0xBFC3679C: 00000000 nop */ /* nop */ if (psx_taken_BFC36798) goto label_BFC367CC; @@ -173152,6 +177842,8 @@ label_BFC367CC: void func_1FC367D4(CPUState* cpu) { debug_server_log_call_entry(0x1FC367D4u); + int psx_taken_BFC36820 = 0; + int psx_taken_BFC3682C = 0; label_BFC367D4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(21u); @@ -173197,7 +177889,7 @@ label_BFC367D4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[8] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3681Cu); return; } g_debug_last_store_pc = 0xBFC3681Cu; cpu->write_word(psx_addr, cpu->gpr[9]); } /* 0xBFC36820: 05200003 bltz $t1, 0xBFC36830 */ uint32_t psx_brA_BFC36820 = cpu->gpr[9]; - int psx_taken_BFC36820 = ((int32_t)psx_brA_BFC36820 < 0); + psx_taken_BFC36820 = ((int32_t)psx_brA_BFC36820 < 0); /* 0xBFC36824: 00000000 nop */ /* nop */ if (psx_taken_BFC36820) goto label_BFC36830; @@ -173210,7 +177902,7 @@ label_BFC36828: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC3682C: 10000012 beq $zero, $zero, 0xBFC36878 */ uint32_t psx_brA_BFC3682C = cpu->gpr[0]; uint32_t psx_brB_BFC3682C = cpu->gpr[0]; - int psx_taken_BFC3682C = (psx_brA_BFC3682C == psx_brB_BFC3682C); + psx_taken_BFC3682C = (psx_brA_BFC3682C == psx_brB_BFC3682C); label_BFC36830: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -173271,6 +177963,8 @@ label_BFC36878: void func_1FC36880(CPUState* cpu) { debug_server_log_call_entry(0x1FC36880u); + int psx_taken_BFC368D0 = 0; + int psx_taken_BFC368D8 = 0; label_BFC36880: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(22u); @@ -173318,7 +178012,7 @@ label_BFC36880: /* nop */ /* 0xBFC368D0: 1C400003 bgtz $v0, 0xBFC368E0 */ uint32_t psx_brA_BFC368D0 = cpu->gpr[2]; - int psx_taken_BFC368D0 = ((int32_t)psx_brA_BFC368D0 > 0); + psx_taken_BFC368D0 = ((int32_t)psx_brA_BFC368D0 > 0); /* 0xBFC368D4: 00000000 nop */ /* nop */ if (psx_taken_BFC368D0) goto label_BFC368E0; @@ -173329,7 +178023,7 @@ label_BFC368D8: psx_check_interrupts(cpu); /* 0xBFC368D8: 10000017 beq $zero, $zero, 0xBFC36938 */ uint32_t psx_brA_BFC368D8 = cpu->gpr[0]; uint32_t psx_brB_BFC368D8 = cpu->gpr[0]; - int psx_taken_BFC368D8 = (psx_brA_BFC368D8 == psx_brB_BFC368D8); + psx_taken_BFC368D8 = (psx_brA_BFC368D8 == psx_brB_BFC368D8); /* 0xBFC368DC: 00000000 nop */ /* nop */ if (psx_taken_BFC368D8) goto label_BFC36938; @@ -173539,6 +178233,8 @@ label_BFC36998: void func_1FC36A3C(CPUState* cpu) { debug_server_log_call_entry(0x1FC36A3Cu); + int psx_taken_BFC36A8C = 0; + int psx_taken_BFC36A94 = 0; label_BFC36A3C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(22u); @@ -173586,7 +178282,7 @@ label_BFC36A3C: /* nop */ /* 0xBFC36A8C: 1C400002 bgtz $v0, 0xBFC36A98 */ uint32_t psx_brA_BFC36A8C = cpu->gpr[2]; - int psx_taken_BFC36A8C = ((int32_t)psx_brA_BFC36A8C > 0); + psx_taken_BFC36A8C = ((int32_t)psx_brA_BFC36A8C > 0); /* 0xBFC36A90: 00000000 nop */ /* nop */ if (psx_taken_BFC36A8C) goto label_BFC36A98; @@ -173597,7 +178293,7 @@ label_BFC36A94: psx_check_interrupts(cpu); /* 0xBFC36A94: 1000001D beq $zero, $zero, 0xBFC36B0C */ uint32_t psx_brA_BFC36A94 = cpu->gpr[0]; uint32_t psx_brB_BFC36A94 = cpu->gpr[0]; - int psx_taken_BFC36A94 = (psx_brA_BFC36A94 == psx_brB_BFC36A94); + psx_taken_BFC36A94 = (psx_brA_BFC36A94 == psx_brB_BFC36A94); label_BFC36A98: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -173680,6 +178376,8 @@ label_BFC36B0C: void func_1FC36B14(CPUState* cpu) { debug_server_log_call_entry(0x1FC36B14u); + int psx_taken_BFC36B64 = 0; + int psx_taken_BFC36B6C = 0; label_BFC36B14: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(22u); @@ -173727,7 +178425,7 @@ label_BFC36B14: /* nop */ /* 0xBFC36B64: 1C400002 bgtz $v0, 0xBFC36B70 */ uint32_t psx_brA_BFC36B64 = cpu->gpr[2]; - int psx_taken_BFC36B64 = ((int32_t)psx_brA_BFC36B64 > 0); + psx_taken_BFC36B64 = ((int32_t)psx_brA_BFC36B64 > 0); /* 0xBFC36B68: 00000000 nop */ /* nop */ if (psx_taken_BFC36B64) goto label_BFC36B70; @@ -173738,7 +178436,7 @@ label_BFC36B6C: psx_check_interrupts(cpu); /* 0xBFC36B6C: 1000001D beq $zero, $zero, 0xBFC36BE4 */ uint32_t psx_brA_BFC36B6C = cpu->gpr[0]; uint32_t psx_brB_BFC36B6C = cpu->gpr[0]; - int psx_taken_BFC36B6C = (psx_brA_BFC36B6C == psx_brB_BFC36B6C); + psx_taken_BFC36B6C = (psx_brA_BFC36B6C == psx_brB_BFC36B6C); label_BFC36B70: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -173821,6 +178519,7 @@ label_BFC36BE4: void func_1FC36BEC(CPUState* cpu) { debug_server_log_call_entry(0x1FC36BECu); + int psx_taken_BFC36C2C = 0; label_BFC36BEC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -173865,7 +178564,7 @@ label_BFC36C24: { int32_t psx_a = (int32_t)cpu->gpr[8]; int32_t psx_b = (-1); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[8] = (uint32_t)(int32_t)psx_r; } /* 0xBFC36C2C: 1D00FFFD bgtz $t0, 0xBFC36C24 */ uint32_t psx_brA_BFC36C2C = cpu->gpr[8]; - int psx_taken_BFC36C2C = ((int32_t)psx_brA_BFC36C2C > 0); + psx_taken_BFC36C2C = ((int32_t)psx_brA_BFC36C2C > 0); /* 0xBFC36C30: 00000000 nop */ /* nop */ if (psx_taken_BFC36C2C) goto label_BFC36C24; @@ -173900,6 +178599,7 @@ label_BFC36C34: void func_1FC36C60(CPUState* cpu) { debug_server_log_call_entry(0x1FC36C60u); + int psx_taken_BFC36C7C = 0; label_BFC36C60: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -173926,7 +178626,7 @@ label_BFC36C74: { int32_t psx_a = (int32_t)cpu->gpr[8]; int32_t psx_b = (-1); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[8] = (uint32_t)(int32_t)psx_r; } /* 0xBFC36C7C: 1D00FFFD bgtz $t0, 0xBFC36C74 */ uint32_t psx_brA_BFC36C7C = cpu->gpr[8]; - int psx_taken_BFC36C7C = ((int32_t)psx_brA_BFC36C7C > 0); + psx_taken_BFC36C7C = ((int32_t)psx_brA_BFC36C7C > 0); /* 0xBFC36C80: 00000000 nop */ /* nop */ if (psx_taken_BFC36C7C) goto label_BFC36C74; @@ -173955,6 +178655,7 @@ label_BFC36C84: void func_1FC36CA4(CPUState* cpu) { debug_server_log_call_entry(0x1FC36CA4u); + int psx_taken_BFC36CC0 = 0; label_BFC36CA4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -173981,7 +178682,7 @@ label_BFC36CB8: { int32_t psx_a = (int32_t)cpu->gpr[8]; int32_t psx_b = (-1); int64_t psx_r = (int64_t)psx_a + (int64_t)psx_b; if (psx_r < (int64_t)INT32_MIN || psx_r > (int64_t)INT32_MAX) { psx_arith_overflow(cpu); return; } cpu->gpr[8] = (uint32_t)(int32_t)psx_r; } /* 0xBFC36CC0: 1D00FFFD bgtz $t0, 0xBFC36CB8 */ uint32_t psx_brA_BFC36CC0 = cpu->gpr[8]; - int psx_taken_BFC36CC0 = ((int32_t)psx_brA_BFC36CC0 > 0); + psx_taken_BFC36CC0 = ((int32_t)psx_brA_BFC36CC0 > 0); /* 0xBFC36CC4: 00000000 nop */ /* nop */ if (psx_taken_BFC36CC0) goto label_BFC36CB8; @@ -174097,6 +178798,8 @@ void func_1FC36D48(CPUState* cpu) { default: break; } } + int psx_taken_BFC36DA0 = 0; + int psx_taken_BFC36DC8 = 0; label_BFC36D48: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -174178,7 +178881,7 @@ label_BFC36DA0: psx_check_interrupts(cpu); /* 0xBFC36DA0: 10000015 beq $zero, $zero, 0xBFC36DF8 */ uint32_t psx_brA_BFC36DA0 = cpu->gpr[0]; uint32_t psx_brB_BFC36DA0 = cpu->gpr[0]; - int psx_taken_BFC36DA0 = (psx_brA_BFC36DA0 == psx_brB_BFC36DA0); + psx_taken_BFC36DA0 = (psx_brA_BFC36DA0 == psx_brB_BFC36DA0); /* 0xBFC36DA4: 00000000 nop */ /* nop */ if (psx_taken_BFC36DA0) { cpu->pc = 0xBFC36DF8u; return; } @@ -174211,7 +178914,7 @@ label_BFC36DC4: cpu->gpr[1] = 0x80080000u; /* 0xBFC36DC8: 1000000B beq $zero, $zero, 0xBFC36DF8 */ uint32_t psx_brA_BFC36DC8 = cpu->gpr[0]; uint32_t psx_brB_BFC36DC8 = cpu->gpr[0]; - int psx_taken_BFC36DC8 = (psx_brA_BFC36DC8 == psx_brB_BFC36DC8); + psx_taken_BFC36DC8 = (psx_brA_BFC36DC8 == psx_brB_BFC36DC8); /* 0xBFC36DCC: AC229254 sw $v0, -28076($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28076)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC36DCCu); return; } g_debug_last_store_pc = 0xBFC36DCCu; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC36DC8) { cpu->pc = 0xBFC36DF8u; return; } @@ -174228,6 +178931,7 @@ void func_1FC36DD0(CPUState* cpu) { default: break; } } + int psx_taken_BFC36DF0 = 0; label_BFC36DD0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -174257,7 +178961,7 @@ label_BFC36DEC: cpu->gpr[1] = 0x80080000u; /* 0xBFC36DF0: 10000001 beq $zero, $zero, 0xBFC36DF8 */ uint32_t psx_brA_BFC36DF0 = cpu->gpr[0]; uint32_t psx_brB_BFC36DF0 = cpu->gpr[0]; - int psx_taken_BFC36DF0 = (psx_brA_BFC36DF0 == psx_brB_BFC36DF0); + psx_taken_BFC36DF0 = (psx_brA_BFC36DF0 == psx_brB_BFC36DF0); /* 0xBFC36DF4: AC229254 sw $v0, -28076($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28076)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC36DF4u); return; } g_debug_last_store_pc = 0xBFC36DF4u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC36DF0) { cpu->pc = 0xBFC36DF8u; return; } @@ -174276,6 +178980,11 @@ void func_1FC36DF8(CPUState* cpu) { default: break; } } + int psx_taken_BFC36E04 = 0; + int psx_taken_BFC36E0C = 0; + int psx_taken_BFC36E60 = 0; + int psx_taken_BFC36E78 = 0; + int psx_taken_BFC36E84 = 0; label_BFC36DF8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -174289,7 +178998,7 @@ label_BFC36DF8: /* nop */ /* 0xBFC36E04: 11800004 beq $t4, $zero, 0xBFC36E18 */ uint32_t psx_brA_BFC36E04 = cpu->gpr[12]; uint32_t psx_brB_BFC36E04 = cpu->gpr[0]; - int psx_taken_BFC36E04 = (psx_brA_BFC36E04 == psx_brB_BFC36E04); + psx_taken_BFC36E04 = (psx_brA_BFC36E04 == psx_brB_BFC36E04); /* 0xBFC36E08: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC36E04) goto label_BFC36E18; @@ -174300,7 +179009,7 @@ label_BFC36E0C: psx_check_interrupts(cpu); /* 0xBFC36E0C: 10000002 beq $zero, $zero, 0xBFC36E18 */ uint32_t psx_brA_BFC36E0C = cpu->gpr[0]; uint32_t psx_brB_BFC36E0C = cpu->gpr[0]; - int psx_taken_BFC36E0C = (psx_brA_BFC36E0C == psx_brB_BFC36E0C); + psx_taken_BFC36E0C = (psx_brA_BFC36E0C == psx_brB_BFC36E0C); /* 0xBFC36E10: 24030080 addiu $v1, $zero, 128 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (128)); if (psx_taken_BFC36E0C) goto label_BFC36E18; @@ -174366,7 +179075,7 @@ label_BFC36E54: cpu->gpr[8] = cpu->gpr[25] & 0x8u; /* 0xBFC36E60: 11000014 beq $t0, $zero, 0xBFC36EB4 */ uint32_t psx_brA_BFC36E60 = cpu->gpr[8]; uint32_t psx_brB_BFC36E60 = cpu->gpr[0]; - int psx_taken_BFC36E60 = (psx_brA_BFC36E60 == psx_brB_BFC36E60); + psx_taken_BFC36E60 = (psx_brA_BFC36E60 == psx_brB_BFC36E60); /* 0xBFC36E64: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC36E64u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC36E60) goto label_BFC36EB4; @@ -174385,7 +179094,7 @@ label_BFC36E68: cpu->gpr[1] = 0x80080000u; /* 0xBFC36E78: 11400004 beq $t2, $zero, 0xBFC36E8C */ uint32_t psx_brA_BFC36E78 = cpu->gpr[10]; uint32_t psx_brB_BFC36E78 = cpu->gpr[0]; - int psx_taken_BFC36E78 = (psx_brA_BFC36E78 == psx_brB_BFC36E78); + psx_taken_BFC36E78 = (psx_brA_BFC36E78 == psx_brB_BFC36E78); /* 0xBFC36E7C: AC299254 sw $t1, -28076($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28076)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC36E7Cu); return; } g_debug_last_store_pc = 0xBFC36E7Cu; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC36E78) goto label_BFC36E8C; @@ -174398,7 +179107,7 @@ label_BFC36E80: cpu->gpr[3] = 0x20000000u; /* 0xBFC36E84: 10000003 beq $zero, $zero, 0xBFC36E94 */ uint32_t psx_brA_BFC36E84 = cpu->gpr[0]; uint32_t psx_brB_BFC36E84 = cpu->gpr[0]; - int psx_taken_BFC36E84 = (psx_brA_BFC36E84 == psx_brB_BFC36E84); + psx_taken_BFC36E84 = (psx_brA_BFC36E84 == psx_brB_BFC36E84); /* 0xBFC36E88: 34630501 ori $v1, $v1, 0x501 */ cpu->gpr[3] = cpu->gpr[3] | 0x501u; if (psx_taken_BFC36E84) goto label_BFC36E94; @@ -174463,6 +179172,11 @@ void func_1FC36EC0(CPUState* cpu) { default: break; } } + int psx_taken_BFC36ED8 = 0; + int psx_taken_BFC36EE0 = 0; + int psx_taken_BFC36F34 = 0; + int psx_taken_BFC36F48 = 0; + int psx_taken_BFC36F54 = 0; label_BFC36EC0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -174482,7 +179196,7 @@ label_BFC36EC0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28072)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC36ED4u); return; } g_debug_last_store_pc = 0xBFC36ED4u; cpu->write_word(psx_addr, cpu->gpr[4]); } /* 0xBFC36ED8: 10800003 beq $a0, $zero, 0xBFC36EE8 */ uint32_t psx_brA_BFC36ED8 = cpu->gpr[4]; uint32_t psx_brB_BFC36ED8 = cpu->gpr[0]; - int psx_taken_BFC36ED8 = (psx_brA_BFC36ED8 == psx_brB_BFC36ED8); + psx_taken_BFC36ED8 = (psx_brA_BFC36ED8 == psx_brB_BFC36ED8); /* 0xBFC36EDC: AFAE0024 sw $t6, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC36EDCu); return; } g_debug_last_store_pc = 0xBFC36EDCu; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC36ED8) goto label_BFC36EE8; @@ -174493,7 +179207,7 @@ label_BFC36EE0: psx_check_interrupts(cpu); /* 0xBFC36EE0: 10000002 beq $zero, $zero, 0xBFC36EEC */ uint32_t psx_brA_BFC36EE0 = cpu->gpr[0]; uint32_t psx_brB_BFC36EE0 = cpu->gpr[0]; - int psx_taken_BFC36EE0 = (psx_brA_BFC36EE0 == psx_brB_BFC36EE0); + psx_taken_BFC36EE0 = (psx_brA_BFC36EE0 == psx_brB_BFC36EE0); /* 0xBFC36EE4: 24030080 addiu $v1, $zero, 128 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (128)); if (psx_taken_BFC36EE0) goto label_BFC36EEC; @@ -174559,7 +179273,7 @@ label_BFC36F28: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC36F34: 15210013 bne $t1, $at, 0xBFC36F84 */ uint32_t psx_brA_BFC36F34 = cpu->gpr[9]; uint32_t psx_brB_BFC36F34 = cpu->gpr[1]; - int psx_taken_BFC36F34 = (psx_brA_BFC36F34 != psx_brB_BFC36F34); + psx_taken_BFC36F34 = (psx_brA_BFC36F34 != psx_brB_BFC36F34); /* 0xBFC36F38: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC36F38u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC36F34) goto label_BFC36F84; @@ -174576,7 +179290,7 @@ label_BFC36F3C: /* nop */ /* 0xBFC36F48: 11400005 beq $t2, $zero, 0xBFC36F60 */ uint32_t psx_brA_BFC36F48 = cpu->gpr[10]; uint32_t psx_brB_BFC36F48 = cpu->gpr[0]; - int psx_taken_BFC36F48 = (psx_brA_BFC36F48 == psx_brB_BFC36F48); + psx_taken_BFC36F48 = (psx_brA_BFC36F48 == psx_brB_BFC36F48); /* 0xBFC36F4C: 3C032000 lui $v1, 0x2000 */ cpu->gpr[3] = 0x20000000u; if (psx_taken_BFC36F48) goto label_BFC36F60; @@ -174589,7 +179303,7 @@ label_BFC36F50: cpu->gpr[3] = 0x20000000u; /* 0xBFC36F54: 10000003 beq $zero, $zero, 0xBFC36F64 */ uint32_t psx_brA_BFC36F54 = cpu->gpr[0]; uint32_t psx_brB_BFC36F54 = cpu->gpr[0]; - int psx_taken_BFC36F54 = (psx_brA_BFC36F54 == psx_brB_BFC36F54); + psx_taken_BFC36F54 = (psx_brA_BFC36F54 == psx_brB_BFC36F54); /* 0xBFC36F58: 34630501 ori $v1, $v1, 0x501 */ cpu->gpr[3] = cpu->gpr[3] | 0x501u; if (psx_taken_BFC36F54) goto label_BFC36F64; @@ -174657,6 +179371,7 @@ void func_1FC36F90(CPUState* cpu) { default: break; } } + int psx_taken_BFC36FA8 = 0; label_BFC36F90: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -174676,7 +179391,7 @@ label_BFC36F90: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC36FA4u); return; } g_debug_last_store_pc = 0xBFC36FA4u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC36FA8: 10A0000D beq $a1, $zero, 0xBFC36FE0 */ uint32_t psx_brA_BFC36FA8 = cpu->gpr[5]; uint32_t psx_brB_BFC36FA8 = cpu->gpr[0]; - int psx_taken_BFC36FA8 = (psx_brA_BFC36FA8 == psx_brB_BFC36FA8); + psx_taken_BFC36FA8 = (psx_brA_BFC36FA8 == psx_brB_BFC36FA8); /* 0xBFC36FAC: AC259250 sw $a1, -28080($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28080)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC36FACu); return; } g_debug_last_store_pc = 0xBFC36FACu; cpu->write_word(psx_addr, cpu->gpr[5]); } if (psx_taken_BFC36FA8) goto label_BFC36FE0; @@ -174757,6 +179472,8 @@ void func_1FC37028(CPUState* cpu) { default: break; } } + int psx_taken_BFC3702C = 0; + int psx_taken_BFC37034 = 0; label_BFC37028: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -174766,7 +179483,7 @@ label_BFC37028: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC3702C: 10800003 beq $a0, $zero, 0xBFC3703C */ uint32_t psx_brA_BFC3702C = cpu->gpr[4]; uint32_t psx_brB_BFC3702C = cpu->gpr[0]; - int psx_taken_BFC3702C = (psx_brA_BFC3702C == psx_brB_BFC3702C); + psx_taken_BFC3702C = (psx_brA_BFC3702C == psx_brB_BFC3702C); /* 0xBFC37030: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC37030u); return; } g_debug_last_store_pc = 0xBFC37030u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3702C) goto label_BFC3703C; @@ -174777,7 +179494,7 @@ label_BFC37034: psx_check_interrupts(cpu); /* 0xBFC37034: 10000003 beq $zero, $zero, 0xBFC37044 */ uint32_t psx_brA_BFC37034 = cpu->gpr[0]; uint32_t psx_brB_BFC37034 = cpu->gpr[0]; - int psx_taken_BFC37034 = (psx_brA_BFC37034 == psx_brB_BFC37034); + psx_taken_BFC37034 = (psx_brA_BFC37034 == psx_brB_BFC37034); /* 0xBFC37038: 3C040300 lui $a0, 0x300 */ cpu->gpr[4] = 0x03000000u; if (psx_taken_BFC37034) goto label_BFC37044; @@ -175187,6 +179904,7 @@ void func_1FC37368(CPUState* cpu) { default: break; } } + int psx_taken_BFC37378 = 0; label_BFC37368: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -175202,7 +179920,7 @@ label_BFC37368: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC37374u); return; } g_debug_last_store_pc = 0xBFC37374u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC37378: 11C00005 beq $t6, $zero, 0xBFC37390 */ uint32_t psx_brA_BFC37378 = cpu->gpr[14]; uint32_t psx_brB_BFC37378 = cpu->gpr[0]; - int psx_taken_BFC37378 = (psx_brA_BFC37378 == psx_brB_BFC37378); + psx_taken_BFC37378 = (psx_brA_BFC37378 == psx_brB_BFC37378); /* 0xBFC3737C: AFA40020 sw $a0, 32($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3737Cu); return; } g_debug_last_store_pc = 0xBFC3737Cu; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC37378) goto label_BFC37390; @@ -175290,6 +180008,8 @@ void func_1FC373E0(CPUState* cpu) { default: break; } } + int psx_taken_BFC373F0 = 0; + int psx_taken_BFC37400 = 0; label_BFC373E0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -175305,7 +180025,7 @@ label_BFC373E0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC373ECu); return; } g_debug_last_store_pc = 0xBFC373ECu; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC373F0: 11C00005 beq $t6, $zero, 0xBFC37408 */ uint32_t psx_brA_BFC373F0 = cpu->gpr[14]; uint32_t psx_brB_BFC373F0 = cpu->gpr[0]; - int psx_taken_BFC373F0 = (psx_brA_BFC373F0 == psx_brB_BFC373F0); + psx_taken_BFC373F0 = (psx_brA_BFC373F0 == psx_brB_BFC373F0); /* 0xBFC373F4: 00802821 addu $a1, $a0, $zero */ cpu->gpr[5] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC373F0) goto label_BFC37408; @@ -175326,7 +180046,7 @@ label_BFC37400: psx_check_interrupts(cpu); /* 0xBFC37400: 10000009 beq $zero, $zero, 0xBFC37428 */ uint32_t psx_brA_BFC37400 = cpu->gpr[0]; uint32_t psx_brB_BFC37400 = cpu->gpr[0]; - int psx_taken_BFC37400 = (psx_brA_BFC37400 == psx_brB_BFC37400); + psx_taken_BFC37400 = (psx_brA_BFC37400 == psx_brB_BFC37400); /* 0xBFC37404: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC37404u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC37400) goto label_BFC37428; @@ -175537,6 +180257,44 @@ void func_1FC374EC(CPUState* cpu) { default: break; } } + int psx_taken_BFC37500 = 0; + int psx_taken_BFC37530 = 0; + int psx_taken_BFC37598 = 0; + int psx_taken_BFC375A0 = 0; + int psx_taken_BFC375BC = 0; + int psx_taken_BFC375C4 = 0; + int psx_taken_BFC375D4 = 0; + int psx_taken_BFC375DC = 0; + int psx_taken_BFC375E8 = 0; + int psx_taken_BFC375F0 = 0; + int psx_taken_BFC37608 = 0; + int psx_taken_BFC37610 = 0; + int psx_taken_BFC3761C = 0; + int psx_taken_BFC37624 = 0; + int psx_taken_BFC37634 = 0; + int psx_taken_BFC3763C = 0; + int psx_taken_BFC37648 = 0; + int psx_taken_BFC37650 = 0; + int psx_taken_BFC37664 = 0; + int psx_taken_BFC3766C = 0; + int psx_taken_BFC37678 = 0; + int psx_taken_BFC37680 = 0; + int psx_taken_BFC37710 = 0; + int psx_taken_BFC37728 = 0; + int psx_taken_BFC3773C = 0; + int psx_taken_BFC37754 = 0; + int psx_taken_BFC3776C = 0; + int psx_taken_BFC37774 = 0; + int psx_taken_BFC37780 = 0; + int psx_taken_BFC37788 = 0; + int psx_taken_BFC37794 = 0; + int psx_taken_BFC3779C = 0; + int psx_taken_BFC377A8 = 0; + int psx_taken_BFC377B0 = 0; + int psx_taken_BFC377BC = 0; + int psx_taken_BFC377C4 = 0; + int psx_taken_BFC377DC = 0; + int psx_taken_BFC377E4 = 0; label_BFC374EC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -175554,7 +180312,7 @@ label_BFC374EC: cpu->gpr[10] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC37500: 11C0000D beq $t6, $zero, 0xBFC37538 */ uint32_t psx_brA_BFC37500 = cpu->gpr[14]; uint32_t psx_brB_BFC37500 = cpu->gpr[0]; - int psx_taken_BFC37500 = (psx_brA_BFC37500 == psx_brB_BFC37500); + psx_taken_BFC37500 = (psx_brA_BFC37500 == psx_brB_BFC37500); /* 0xBFC37504: 3C050800 lui $a1, 0x800 */ cpu->gpr[5] = 0x08000000u; if (psx_taken_BFC37500) goto label_BFC37538; @@ -175591,7 +180349,7 @@ label_BFC37518: cpu->gpr[25] = cpu->gpr[24] << 12u; /* 0xBFC37530: 10000007 beq $zero, $zero, 0xBFC37550 */ uint32_t psx_brA_BFC37530 = cpu->gpr[0]; uint32_t psx_brB_BFC37530 = cpu->gpr[0]; - int psx_taken_BFC37530 = (psx_brA_BFC37530 == psx_brB_BFC37530); + psx_taken_BFC37530 = (psx_brA_BFC37530 == psx_brB_BFC37530); /* 0xBFC37534: 032B1825 or $v1, $t9, $t3 */ cpu->gpr[3] = cpu->gpr[25] | cpu->gpr[11]; if (psx_taken_BFC37530) goto label_BFC37550; @@ -175661,7 +180419,7 @@ label_BFC37570: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[7] + (608)); /* 0xBFC37598: 10400003 beq $v0, $zero, 0xBFC375A8 */ uint32_t psx_brA_BFC37598 = cpu->gpr[2]; uint32_t psx_brB_BFC37598 = cpu->gpr[0]; - int psx_taken_BFC37598 = (psx_brA_BFC37598 == psx_brB_BFC37598); + psx_taken_BFC37598 = (psx_brA_BFC37598 == psx_brB_BFC37598); /* 0xBFC3759C: 24C60010 addiu $a2, $a2, 16 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (16)); if (psx_taken_BFC37598) goto label_BFC375A8; @@ -175672,7 +180430,7 @@ label_BFC375A0: psx_check_interrupts(cpu); /* 0xBFC375A0: 10000002 beq $zero, $zero, 0xBFC375AC */ uint32_t psx_brA_BFC375A0 = cpu->gpr[0]; uint32_t psx_brB_BFC375A0 = cpu->gpr[0]; - int psx_taken_BFC375A0 = (psx_brA_BFC375A0 == psx_brB_BFC375A0); + psx_taken_BFC375A0 = (psx_brA_BFC375A0 == psx_brB_BFC375A0); /* 0xBFC375A4: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC375A0) goto label_BFC375AC; @@ -175698,7 +180456,7 @@ label_BFC375AC: cpu->gpr[12] = cpu->gpr[12] << 1u; /* 0xBFC375BC: 10400003 beq $v0, $zero, 0xBFC375CC */ uint32_t psx_brA_BFC375BC = cpu->gpr[2]; uint32_t psx_brB_BFC375BC = cpu->gpr[0]; - int psx_taken_BFC375BC = (psx_brA_BFC375BC == psx_brB_BFC375BC); + psx_taken_BFC375BC = (psx_brA_BFC375BC == psx_brB_BFC375BC); /* 0xBFC375C0: 00EC4821 addu $t1, $a3, $t4 */ cpu->gpr[9] = cpu->gpr[7] + cpu->gpr[12]; if (psx_taken_BFC375BC) goto label_BFC375CC; @@ -175709,7 +180467,7 @@ label_BFC375C4: psx_check_interrupts(cpu); /* 0xBFC375C4: 10000002 beq $zero, $zero, 0xBFC375D0 */ uint32_t psx_brA_BFC375C4 = cpu->gpr[0]; uint32_t psx_brB_BFC375C4 = cpu->gpr[0]; - int psx_taken_BFC375C4 = (psx_brA_BFC375C4 == psx_brB_BFC375C4); + psx_taken_BFC375C4 = (psx_brA_BFC375C4 == psx_brB_BFC375C4); /* 0xBFC375C8: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC375C4) goto label_BFC375D0; @@ -175729,7 +180487,7 @@ label_BFC375D0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[7] < (500) ? 1 : 0); /* 0xBFC375D4: 10200003 beq $at, $zero, 0xBFC375E4 */ uint32_t psx_brA_BFC375D4 = cpu->gpr[1]; uint32_t psx_brB_BFC375D4 = cpu->gpr[0]; - int psx_taken_BFC375D4 = (psx_brA_BFC375D4 == psx_brB_BFC375D4); + psx_taken_BFC375D4 = (psx_brA_BFC375D4 == psx_brB_BFC375D4); /* 0xBFC375D8: 00C34021 addu $t0, $a2, $v1 */ cpu->gpr[8] = cpu->gpr[6] + cpu->gpr[3]; if (psx_taken_BFC375D4) goto label_BFC375E4; @@ -175740,7 +180498,7 @@ label_BFC375DC: psx_check_interrupts(cpu); /* 0xBFC375DC: 10000008 beq $zero, $zero, 0xBFC37600 */ uint32_t psx_brA_BFC375DC = cpu->gpr[0]; uint32_t psx_brB_BFC375DC = cpu->gpr[0]; - int psx_taken_BFC375DC = (psx_brA_BFC375DC == psx_brB_BFC375DC); + psx_taken_BFC375DC = (psx_brA_BFC375DC == psx_brB_BFC375DC); /* 0xBFC375E0: 240701F4 addiu $a3, $zero, 500 */ cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (500)); if (psx_taken_BFC375DC) goto label_BFC37600; @@ -175753,7 +180511,7 @@ label_BFC375E4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[7] < (3291) ? 1 : 0); /* 0xBFC375E8: 14200004 bne $at, $zero, 0xBFC375FC */ uint32_t psx_brA_BFC375E8 = cpu->gpr[1]; uint32_t psx_brB_BFC375E8 = cpu->gpr[0]; - int psx_taken_BFC375E8 = (psx_brA_BFC375E8 != psx_brB_BFC375E8); + psx_taken_BFC375E8 = (psx_brA_BFC375E8 != psx_brB_BFC375E8); /* 0xBFC375EC: 00E01821 addu $v1, $a3, $zero */ cpu->gpr[3] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC375E8) goto label_BFC375FC; @@ -175764,7 +180522,7 @@ label_BFC375F0: psx_check_interrupts(cpu); /* 0xBFC375F0: 10000002 beq $zero, $zero, 0xBFC375FC */ uint32_t psx_brA_BFC375F0 = cpu->gpr[0]; uint32_t psx_brB_BFC375F0 = cpu->gpr[0]; - int psx_taken_BFC375F0 = (psx_brA_BFC375F0 == psx_brB_BFC375F0); + psx_taken_BFC375F0 = (psx_brA_BFC375F0 == psx_brB_BFC375F0); /* 0xBFC375F4: 24030CDA addiu $v1, $zero, 3290 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (3290)); if (psx_taken_BFC375F0) goto label_BFC375FC; @@ -175793,7 +180551,7 @@ label_BFC37600: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC37608: 10200004 beq $at, $zero, 0xBFC3761C */ uint32_t psx_brA_BFC37608 = cpu->gpr[1]; uint32_t psx_brB_BFC37608 = cpu->gpr[0]; - int psx_taken_BFC37608 = (psx_brA_BFC37608 == psx_brB_BFC37608); + psx_taken_BFC37608 = (psx_brA_BFC37608 == psx_brB_BFC37608); /* 0xBFC3760C: 29210CDB slti $at, $t1, 3291 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (3291) ? 1 : 0); if (psx_taken_BFC37608) goto label_BFC3761C; @@ -175804,7 +180562,7 @@ label_BFC37610: psx_check_interrupts(cpu); /* 0xBFC37610: 10000008 beq $zero, $zero, 0xBFC37634 */ uint32_t psx_brA_BFC37610 = cpu->gpr[0]; uint32_t psx_brB_BFC37610 = cpu->gpr[0]; - int psx_taken_BFC37610 = (psx_brA_BFC37610 == psx_brB_BFC37610); + psx_taken_BFC37610 = (psx_brA_BFC37610 == psx_brB_BFC37610); /* 0xBFC37614: 00404821 addu $t1, $v0, $zero */ cpu->gpr[9] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC37610) goto label_BFC37634; @@ -175822,7 +180580,7 @@ label_BFC3761C: psx_check_interrupts(cpu); /* 0xBFC3761C: 14200004 bne $at, $zero, 0xBFC37630 */ uint32_t psx_brA_BFC3761C = cpu->gpr[1]; uint32_t psx_brB_BFC3761C = cpu->gpr[0]; - int psx_taken_BFC3761C = (psx_brA_BFC3761C != psx_brB_BFC3761C); + psx_taken_BFC3761C = (psx_brA_BFC3761C != psx_brB_BFC3761C); /* 0xBFC37620: 01201821 addu $v1, $t1, $zero */ cpu->gpr[3] = cpu->gpr[9] + cpu->gpr[0]; if (psx_taken_BFC3761C) goto label_BFC37630; @@ -175833,7 +180591,7 @@ label_BFC37624: psx_check_interrupts(cpu); /* 0xBFC37624: 10000002 beq $zero, $zero, 0xBFC37630 */ uint32_t psx_brA_BFC37624 = cpu->gpr[0]; uint32_t psx_brB_BFC37624 = cpu->gpr[0]; - int psx_taken_BFC37624 = (psx_brA_BFC37624 == psx_brB_BFC37624); + psx_taken_BFC37624 = (psx_brA_BFC37624 == psx_brB_BFC37624); /* 0xBFC37628: 24030CDA addiu $v1, $zero, 3290 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (3290)); if (psx_taken_BFC37624) goto label_BFC37630; @@ -175858,7 +180616,7 @@ label_BFC37634: psx_check_interrupts(cpu); /* 0xBFC37634: 04C10004 bgez $a2, 0xBFC37648 */ uint32_t psx_brA_BFC37634 = cpu->gpr[6]; - int psx_taken_BFC37634 = ((int32_t)psx_brA_BFC37634 >= 0); + psx_taken_BFC37634 = ((int32_t)psx_brA_BFC37634 >= 0); /* 0xBFC37638: 28C10138 slti $at, $a2, 312 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[6] < (312) ? 1 : 0); if (psx_taken_BFC37634) goto label_BFC37648; @@ -175869,7 +180627,7 @@ label_BFC3763C: psx_check_interrupts(cpu); /* 0xBFC3763C: 10000008 beq $zero, $zero, 0xBFC37660 */ uint32_t psx_brA_BFC3763C = cpu->gpr[0]; uint32_t psx_brB_BFC3763C = cpu->gpr[0]; - int psx_taken_BFC3763C = (psx_brA_BFC3763C == psx_brB_BFC3763C); + psx_taken_BFC3763C = (psx_brA_BFC3763C == psx_brB_BFC3763C); /* 0xBFC37640: 00003021 addu $a2, $zero, $zero */ cpu->gpr[6] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3763C) goto label_BFC37660; @@ -175887,7 +180645,7 @@ label_BFC37648: psx_check_interrupts(cpu); /* 0xBFC37648: 14200004 bne $at, $zero, 0xBFC3765C */ uint32_t psx_brA_BFC37648 = cpu->gpr[1]; uint32_t psx_brB_BFC37648 = cpu->gpr[0]; - int psx_taken_BFC37648 = (psx_brA_BFC37648 != psx_brB_BFC37648); + psx_taken_BFC37648 = (psx_brA_BFC37648 != psx_brB_BFC37648); /* 0xBFC3764C: 00C01821 addu $v1, $a2, $zero */ cpu->gpr[3] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC37648) goto label_BFC3765C; @@ -175898,7 +180656,7 @@ label_BFC37650: psx_check_interrupts(cpu); /* 0xBFC37650: 10000002 beq $zero, $zero, 0xBFC3765C */ uint32_t psx_brA_BFC37650 = cpu->gpr[0]; uint32_t psx_brB_BFC37650 = cpu->gpr[0]; - int psx_taken_BFC37650 = (psx_brA_BFC37650 == psx_brB_BFC37650); + psx_taken_BFC37650 = (psx_brA_BFC37650 == psx_brB_BFC37650); /* 0xBFC37654: 24030137 addiu $v1, $zero, 311 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (311)); if (psx_taken_BFC37650) goto label_BFC3765C; @@ -175925,7 +180683,7 @@ label_BFC37660: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (int32_t)cpu->gpr[6] ? 1 : 0); /* 0xBFC37664: 10200004 beq $at, $zero, 0xBFC37678 */ uint32_t psx_brA_BFC37664 = cpu->gpr[1]; uint32_t psx_brB_BFC37664 = cpu->gpr[0]; - int psx_taken_BFC37664 = (psx_brA_BFC37664 == psx_brB_BFC37664); + psx_taken_BFC37664 = (psx_brA_BFC37664 == psx_brB_BFC37664); /* 0xBFC37668: 29010138 slti $at, $t0, 312 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (312) ? 1 : 0); if (psx_taken_BFC37664) goto label_BFC37678; @@ -175936,7 +180694,7 @@ label_BFC3766C: psx_check_interrupts(cpu); /* 0xBFC3766C: 10000008 beq $zero, $zero, 0xBFC37690 */ uint32_t psx_brA_BFC3766C = cpu->gpr[0]; uint32_t psx_brB_BFC3766C = cpu->gpr[0]; - int psx_taken_BFC3766C = (psx_brA_BFC3766C == psx_brB_BFC3766C); + psx_taken_BFC3766C = (psx_brA_BFC3766C == psx_brB_BFC3766C); /* 0xBFC37670: 00C04021 addu $t0, $a2, $zero */ cpu->gpr[8] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC3766C) goto label_BFC37690; @@ -175954,7 +180712,7 @@ label_BFC37678: psx_check_interrupts(cpu); /* 0xBFC37678: 14200004 bne $at, $zero, 0xBFC3768C */ uint32_t psx_brA_BFC37678 = cpu->gpr[1]; uint32_t psx_brB_BFC37678 = cpu->gpr[0]; - int psx_taken_BFC37678 = (psx_brA_BFC37678 != psx_brB_BFC37678); + psx_taken_BFC37678 = (psx_brA_BFC37678 != psx_brB_BFC37678); /* 0xBFC3767C: 01001821 addu $v1, $t0, $zero */ cpu->gpr[3] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC37678) goto label_BFC3768C; @@ -175965,7 +180723,7 @@ label_BFC37680: psx_check_interrupts(cpu); /* 0xBFC37680: 10000002 beq $zero, $zero, 0xBFC3768C */ uint32_t psx_brA_BFC37680 = cpu->gpr[0]; uint32_t psx_brB_BFC37680 = cpu->gpr[0]; - int psx_taken_BFC37680 = (psx_brA_BFC37680 == psx_brB_BFC37680); + psx_taken_BFC37680 = (psx_brA_BFC37680 == psx_brB_BFC37680); /* 0xBFC37684: 24030137 addiu $v1, $zero, 311 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (311)); if (psx_taken_BFC37680) goto label_BFC3768C; @@ -176066,7 +180824,7 @@ label_BFC37700: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC37710: 14610003 bne $v1, $at, 0xBFC37720 */ uint32_t psx_brA_BFC37710 = cpu->gpr[3]; uint32_t psx_brB_BFC37710 = cpu->gpr[1]; - int psx_taken_BFC37710 = (psx_brA_BFC37710 != psx_brB_BFC37710); + psx_taken_BFC37710 = (psx_brA_BFC37710 != psx_brB_BFC37710); /* 0xBFC37714: 00000000 nop */ /* nop */ if (psx_taken_BFC37710) goto label_BFC37720; @@ -176090,7 +180848,7 @@ label_BFC37720: /* nop */ /* 0xBFC37728: 11600002 beq $t3, $zero, 0xBFC37734 */ uint32_t psx_brA_BFC37728 = cpu->gpr[11]; uint32_t psx_brB_BFC37728 = cpu->gpr[0]; - int psx_taken_BFC37728 = (psx_brA_BFC37728 == psx_brB_BFC37728); + psx_taken_BFC37728 = (psx_brA_BFC37728 == psx_brB_BFC37728); /* 0xBFC3772C: 00000000 nop */ /* nop */ if (psx_taken_BFC37728) goto label_BFC37734; @@ -176112,7 +180870,7 @@ label_BFC37734: /* nop */ /* 0xBFC3773C: 11800002 beq $t4, $zero, 0xBFC37748 */ uint32_t psx_brA_BFC3773C = cpu->gpr[12]; uint32_t psx_brB_BFC3773C = cpu->gpr[0]; - int psx_taken_BFC3773C = (psx_brA_BFC3773C == psx_brB_BFC3773C); + psx_taken_BFC3773C = (psx_brA_BFC3773C == psx_brB_BFC3773C); /* 0xBFC37740: 00000000 nop */ /* nop */ if (psx_taken_BFC3773C) goto label_BFC37748; @@ -176136,7 +180894,7 @@ label_BFC37748: /* nop */ /* 0xBFC37754: 11A00002 beq $t5, $zero, 0xBFC37760 */ uint32_t psx_brA_BFC37754 = cpu->gpr[13]; uint32_t psx_brB_BFC37754 = cpu->gpr[0]; - int psx_taken_BFC37754 = (psx_brA_BFC37754 == psx_brB_BFC37754); + psx_taken_BFC37754 = (psx_brA_BFC37754 == psx_brB_BFC37754); /* 0xBFC37758: 00000000 nop */ /* nop */ if (psx_taken_BFC37754) goto label_BFC37760; @@ -176160,7 +180918,7 @@ label_BFC37760: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (281) ? 1 : 0); /* 0xBFC3776C: 10200004 beq $at, $zero, 0xBFC37780 */ uint32_t psx_brA_BFC3776C = cpu->gpr[1]; uint32_t psx_brB_BFC3776C = cpu->gpr[0]; - int psx_taken_BFC3776C = (psx_brA_BFC3776C == psx_brB_BFC3776C); + psx_taken_BFC3776C = (psx_brA_BFC3776C == psx_brB_BFC3776C); /* 0xBFC37770: 28410161 slti $at, $v0, 353 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (353) ? 1 : 0); if (psx_taken_BFC3776C) goto label_BFC37780; @@ -176171,7 +180929,7 @@ label_BFC37774: psx_check_interrupts(cpu); /* 0xBFC37774: 10000011 beq $zero, $zero, 0xBFC377BC */ uint32_t psx_brA_BFC37774 = cpu->gpr[0]; uint32_t psx_brB_BFC37774 = cpu->gpr[0]; - int psx_taken_BFC37774 = (psx_brA_BFC37774 == psx_brB_BFC37774); + psx_taken_BFC37774 = (psx_brA_BFC37774 == psx_brB_BFC37774); /* 0xBFC37778: 00000000 nop */ /* nop */ if (psx_taken_BFC37774) goto label_BFC377BC; @@ -176189,7 +180947,7 @@ label_BFC37780: psx_check_interrupts(cpu); /* 0xBFC37780: 10200004 beq $at, $zero, 0xBFC37794 */ uint32_t psx_brA_BFC37780 = cpu->gpr[1]; uint32_t psx_brB_BFC37780 = cpu->gpr[0]; - int psx_taken_BFC37780 = (psx_brA_BFC37780 == psx_brB_BFC37780); + psx_taken_BFC37780 = (psx_brA_BFC37780 == psx_brB_BFC37780); /* 0xBFC37784: 28410191 slti $at, $v0, 401 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (401) ? 1 : 0); if (psx_taken_BFC37780) goto label_BFC37794; @@ -176200,7 +180958,7 @@ label_BFC37788: psx_check_interrupts(cpu); /* 0xBFC37788: 1000000C beq $zero, $zero, 0xBFC377BC */ uint32_t psx_brA_BFC37788 = cpu->gpr[0]; uint32_t psx_brB_BFC37788 = cpu->gpr[0]; - int psx_taken_BFC37788 = (psx_brA_BFC37788 == psx_brB_BFC37788); + psx_taken_BFC37788 = (psx_brA_BFC37788 == psx_brB_BFC37788); /* 0xBFC3778C: 34A50001 ori $a1, $a1, 0x1 */ cpu->gpr[5] = cpu->gpr[5] | 0x1u; if (psx_taken_BFC37788) goto label_BFC377BC; @@ -176218,7 +180976,7 @@ label_BFC37794: psx_check_interrupts(cpu); /* 0xBFC37794: 10200004 beq $at, $zero, 0xBFC377A8 */ uint32_t psx_brA_BFC37794 = cpu->gpr[1]; uint32_t psx_brB_BFC37794 = cpu->gpr[0]; - int psx_taken_BFC37794 = (psx_brA_BFC37794 == psx_brB_BFC37794); + psx_taken_BFC37794 = (psx_brA_BFC37794 == psx_brB_BFC37794); /* 0xBFC37798: 28410231 slti $at, $v0, 561 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (561) ? 1 : 0); if (psx_taken_BFC37794) goto label_BFC377A8; @@ -176229,7 +180987,7 @@ label_BFC3779C: psx_check_interrupts(cpu); /* 0xBFC3779C: 10000007 beq $zero, $zero, 0xBFC377BC */ uint32_t psx_brA_BFC3779C = cpu->gpr[0]; uint32_t psx_brB_BFC3779C = cpu->gpr[0]; - int psx_taken_BFC3779C = (psx_brA_BFC3779C == psx_brB_BFC3779C); + psx_taken_BFC3779C = (psx_brA_BFC3779C == psx_brB_BFC3779C); /* 0xBFC377A0: 34A50040 ori $a1, $a1, 0x40 */ cpu->gpr[5] = cpu->gpr[5] | 0x40u; if (psx_taken_BFC3779C) goto label_BFC377BC; @@ -176247,7 +181005,7 @@ label_BFC377A8: psx_check_interrupts(cpu); /* 0xBFC377A8: 10200003 beq $at, $zero, 0xBFC377B8 */ uint32_t psx_brA_BFC377A8 = cpu->gpr[1]; uint32_t psx_brB_BFC377A8 = cpu->gpr[0]; - int psx_taken_BFC377A8 = (psx_brA_BFC377A8 == psx_brB_BFC377A8); + psx_taken_BFC377A8 = (psx_brA_BFC377A8 == psx_brB_BFC377A8); /* 0xBFC377AC: 00000000 nop */ /* nop */ if (psx_taken_BFC377A8) goto label_BFC377B8; @@ -176258,7 +181016,7 @@ label_BFC377B0: psx_check_interrupts(cpu); /* 0xBFC377B0: 10000002 beq $zero, $zero, 0xBFC377BC */ uint32_t psx_brA_BFC377B0 = cpu->gpr[0]; uint32_t psx_brB_BFC377B0 = cpu->gpr[0]; - int psx_taken_BFC377B0 = (psx_brA_BFC377B0 == psx_brB_BFC377B0); + psx_taken_BFC377B0 = (psx_brA_BFC377B0 == psx_brB_BFC377B0); /* 0xBFC377B4: 34A50002 ori $a1, $a1, 0x2 */ cpu->gpr[5] = cpu->gpr[5] | 0x2u; if (psx_taken_BFC377B0) goto label_BFC377BC; @@ -176276,7 +181034,7 @@ label_BFC377BC: psx_check_interrupts(cpu); /* 0xBFC377BC: 10600004 beq $v1, $zero, 0xBFC377D0 */ uint32_t psx_brA_BFC377BC = cpu->gpr[3]; uint32_t psx_brB_BFC377BC = cpu->gpr[0]; - int psx_taken_BFC377BC = (psx_brA_BFC377BC == psx_brB_BFC377BC); + psx_taken_BFC377BC = (psx_brA_BFC377BC == psx_brB_BFC377BC); /* 0xBFC377C0: 24030100 addiu $v1, $zero, 256 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (256)); if (psx_taken_BFC377BC) goto label_BFC377D0; @@ -176287,7 +181045,7 @@ label_BFC377C4: psx_check_interrupts(cpu); /* 0xBFC377C4: 10000002 beq $zero, $zero, 0xBFC377D0 */ uint32_t psx_brA_BFC377C4 = cpu->gpr[0]; uint32_t psx_brB_BFC377C4 = cpu->gpr[0]; - int psx_taken_BFC377C4 = (psx_brA_BFC377C4 == psx_brB_BFC377C4); + psx_taken_BFC377C4 = (psx_brA_BFC377C4 == psx_brB_BFC377C4); /* 0xBFC377C8: 24030120 addiu $v1, $zero, 288 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (288)); if (psx_taken_BFC377C4) goto label_BFC377D0; @@ -176311,7 +181069,7 @@ label_BFC377D0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (int32_t)cpu->gpr[15] ? 1 : 0); /* 0xBFC377DC: 14200003 bne $at, $zero, 0xBFC377EC */ uint32_t psx_brA_BFC377DC = cpu->gpr[1]; uint32_t psx_brB_BFC377DC = cpu->gpr[0]; - int psx_taken_BFC377DC = (psx_brA_BFC377DC != psx_brB_BFC377DC); + psx_taken_BFC377DC = (psx_brA_BFC377DC != psx_brB_BFC377DC); /* 0xBFC377E0: 00000000 nop */ /* nop */ if (psx_taken_BFC377DC) goto label_BFC377EC; @@ -176322,7 +181080,7 @@ label_BFC377E4: psx_check_interrupts(cpu); /* 0xBFC377E4: 10000002 beq $zero, $zero, 0xBFC377F0 */ uint32_t psx_brA_BFC377E4 = cpu->gpr[0]; uint32_t psx_brB_BFC377E4 = cpu->gpr[0]; - int psx_taken_BFC377E4 = (psx_brA_BFC377E4 == psx_brB_BFC377E4); + psx_taken_BFC377E4 = (psx_brA_BFC377E4 == psx_brB_BFC377E4); /* 0xBFC377E8: 00000000 nop */ /* nop */ if (psx_taken_BFC377E4) goto label_BFC377F0; @@ -176445,6 +181203,8 @@ void func_1FC37868(CPUState* cpu) { default: break; } } + int psx_taken_BFC37890 = 0; + int psx_taken_BFC37898 = 0; label_BFC37868: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -176478,7 +181238,7 @@ label_BFC37888: cpu->gpr[24] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC37890: 13000004 beq $t8, $zero, 0xBFC378A4 */ uint32_t psx_brA_BFC37890 = cpu->gpr[24]; uint32_t psx_brB_BFC37890 = cpu->gpr[0]; - int psx_taken_BFC37890 = (psx_brA_BFC37890 == psx_brB_BFC37890); + psx_taken_BFC37890 = (psx_brA_BFC37890 == psx_brB_BFC37890); /* 0xBFC37894: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC37890) goto label_BFC378A4; @@ -176489,7 +181249,7 @@ label_BFC37898: psx_check_interrupts(cpu); /* 0xBFC37898: 10000002 beq $zero, $zero, 0xBFC378A4 */ uint32_t psx_brA_BFC37898 = cpu->gpr[0]; uint32_t psx_brB_BFC37898 = cpu->gpr[0]; - int psx_taken_BFC37898 = (psx_brA_BFC37898 == psx_brB_BFC37898); + psx_taken_BFC37898 = (psx_brA_BFC37898 == psx_brB_BFC37898); /* 0xBFC3789C: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC37898) goto label_BFC378A4; @@ -176855,6 +181615,22 @@ void func_1FC37AC4(CPUState* cpu) { default: break; } } + int psx_taken_BFC37BA0 = 0; + int psx_taken_BFC37BD8 = 0; + int psx_taken_BFC37BE0 = 0; + int psx_taken_BFC37BF4 = 0; + int psx_taken_BFC37BFC = 0; + int psx_taken_BFC37C18 = 0; + int psx_taken_BFC37C20 = 0; + int psx_taken_BFC37C34 = 0; + int psx_taken_BFC37C3C = 0; + int psx_taken_BFC37C54 = 0; + int psx_taken_BFC37C5C = 0; + int psx_taken_BFC37C64 = 0; + int psx_taken_BFC37C70 = 0; + int psx_taken_BFC37C90 = 0; + int psx_taken_BFC37CA4 = 0; + int psx_taken_BFC37D38 = 0; label_BFC37AC4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -177002,7 +181778,7 @@ label_BFC37B80: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); /* 0xBFC37BA0: 1140007B beq $t2, $zero, 0xBFC37D90 */ uint32_t psx_brA_BFC37BA0 = cpu->gpr[10]; uint32_t psx_brB_BFC37BA0 = cpu->gpr[0]; - int psx_taken_BFC37BA0 = (psx_brA_BFC37BA0 == psx_brB_BFC37BA0); + psx_taken_BFC37BA0 = (psx_brA_BFC37BA0 == psx_brB_BFC37BA0); /* 0xBFC37BA4: 26310001 addiu $s1, $s1, 1 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); if (psx_taken_BFC37BA0) goto label_BFC37D90; @@ -177037,7 +181813,7 @@ label_BFC37BA8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (66)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC37BD4u); return; } g_debug_last_store_pc = 0xBFC37BD4u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[14] & 0xFFFFu)); } /* 0xBFC37BD8: 05E10004 bgez $t7, 0xBFC37BEC */ uint32_t psx_brA_BFC37BD8 = cpu->gpr[15]; - int psx_taken_BFC37BD8 = ((int32_t)psx_brA_BFC37BD8 >= 0); + psx_taken_BFC37BD8 = ((int32_t)psx_brA_BFC37BD8 >= 0); /* 0xBFC37BDC: 87B80040 lh $t8, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC37BDCu); return; } cpu->gpr[24] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } if (psx_taken_BFC37BD8) goto label_BFC37BEC; @@ -177048,7 +181824,7 @@ label_BFC37BE0: psx_check_interrupts(cpu); /* 0xBFC37BE0: 1000000B beq $zero, $zero, 0xBFC37C10 */ uint32_t psx_brA_BFC37BE0 = cpu->gpr[0]; uint32_t psx_brB_BFC37BE0 = cpu->gpr[0]; - int psx_taken_BFC37BE0 = (psx_brA_BFC37BE0 == psx_brB_BFC37BE0); + psx_taken_BFC37BE0 = (psx_brA_BFC37BE0 == psx_brB_BFC37BE0); /* 0xBFC37BE4: A7A00040 sh $zero, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC37BE4u); return; } g_debug_last_store_pc = 0xBFC37BE4u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[0] & 0xFFFFu)); } if (psx_taken_BFC37BE0) goto label_BFC37C10; @@ -177070,7 +181846,7 @@ label_BFC37BEC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[24] < (1024) ? 1 : 0); /* 0xBFC37BF4: 14200004 bne $at, $zero, 0xBFC37C08 */ uint32_t psx_brA_BFC37BF4 = cpu->gpr[1]; uint32_t psx_brB_BFC37BF4 = cpu->gpr[0]; - int psx_taken_BFC37BF4 = (psx_brA_BFC37BF4 != psx_brB_BFC37BF4); + psx_taken_BFC37BF4 = (psx_brA_BFC37BF4 != psx_brB_BFC37BF4); /* 0xBFC37BF8: 87A20040 lh $v0, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC37BF8u); return; } cpu->gpr[2] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } if (psx_taken_BFC37BF4) goto label_BFC37C08; @@ -177081,7 +181857,7 @@ label_BFC37BFC: psx_check_interrupts(cpu); /* 0xBFC37BFC: 10000003 beq $zero, $zero, 0xBFC37C0C */ uint32_t psx_brA_BFC37BFC = cpu->gpr[0]; uint32_t psx_brB_BFC37BFC = cpu->gpr[0]; - int psx_taken_BFC37BFC = (psx_brA_BFC37BFC == psx_brB_BFC37BFC); + psx_taken_BFC37BFC = (psx_brA_BFC37BFC == psx_brB_BFC37BFC); /* 0xBFC37C00: 240203FF addiu $v0, $zero, 1023 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC37BFC) goto label_BFC37C0C; @@ -177117,7 +181893,7 @@ label_BFC37C10: /* nop */ /* 0xBFC37C18: 07210003 bgez $t9, 0xBFC37C28 */ uint32_t psx_brA_BFC37C18 = cpu->gpr[25]; - int psx_taken_BFC37C18 = ((int32_t)psx_brA_BFC37C18 >= 0); + psx_taken_BFC37C18 = ((int32_t)psx_brA_BFC37C18 >= 0); /* 0xBFC37C1C: 00000000 nop */ /* nop */ if (psx_taken_BFC37C18) goto label_BFC37C28; @@ -177128,7 +181904,7 @@ label_BFC37C20: psx_check_interrupts(cpu); /* 0xBFC37C20: 10000018 beq $zero, $zero, 0xBFC37C84 */ uint32_t psx_brA_BFC37C20 = cpu->gpr[0]; uint32_t psx_brB_BFC37C20 = cpu->gpr[0]; - int psx_taken_BFC37C20 = (psx_brA_BFC37C20 == psx_brB_BFC37C20); + psx_taken_BFC37C20 = (psx_brA_BFC37C20 == psx_brB_BFC37C20); /* 0xBFC37C24: A7A00042 sh $zero, 66($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (66)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC37C24u); return; } g_debug_last_store_pc = 0xBFC37C24u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[0] & 0xFFFFu)); } if (psx_taken_BFC37C20) goto label_BFC37C84; @@ -177145,7 +181921,7 @@ label_BFC37C28: /* nop */ /* 0xBFC37C34: 10800004 beq $a0, $zero, 0xBFC37C48 */ uint32_t psx_brA_BFC37C34 = cpu->gpr[4]; uint32_t psx_brB_BFC37C34 = cpu->gpr[0]; - int psx_taken_BFC37C34 = (psx_brA_BFC37C34 == psx_brB_BFC37C34); + psx_taken_BFC37C34 = (psx_brA_BFC37C34 == psx_brB_BFC37C34); /* 0xBFC37C38: 240201FF addiu $v0, $zero, 511 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (511)); if (psx_taken_BFC37C34) goto label_BFC37C48; @@ -177156,7 +181932,7 @@ label_BFC37C3C: psx_check_interrupts(cpu); /* 0xBFC37C3C: 10000002 beq $zero, $zero, 0xBFC37C48 */ uint32_t psx_brA_BFC37C3C = cpu->gpr[0]; uint32_t psx_brB_BFC37C3C = cpu->gpr[0]; - int psx_taken_BFC37C3C = (psx_brA_BFC37C3C == psx_brB_BFC37C3C); + psx_taken_BFC37C3C = (psx_brA_BFC37C3C == psx_brB_BFC37C3C); /* 0xBFC37C40: 240203FF addiu $v0, $zero, 1023 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC37C3C) goto label_BFC37C48; @@ -177180,7 +181956,7 @@ label_BFC37C48: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[8] ? 1 : 0); /* 0xBFC37C54: 10200008 beq $at, $zero, 0xBFC37C78 */ uint32_t psx_brA_BFC37C54 = cpu->gpr[1]; uint32_t psx_brB_BFC37C54 = cpu->gpr[0]; - int psx_taken_BFC37C54 = (psx_brA_BFC37C54 == psx_brB_BFC37C54); + psx_taken_BFC37C54 = (psx_brA_BFC37C54 == psx_brB_BFC37C54); /* 0xBFC37C58: 00000000 nop */ /* nop */ if (psx_taken_BFC37C54) goto label_BFC37C78; @@ -177191,7 +181967,7 @@ label_BFC37C5C: psx_check_interrupts(cpu); /* 0xBFC37C5C: 10800004 beq $a0, $zero, 0xBFC37C70 */ uint32_t psx_brA_BFC37C5C = cpu->gpr[4]; uint32_t psx_brB_BFC37C5C = cpu->gpr[0]; - int psx_taken_BFC37C5C = (psx_brA_BFC37C5C == psx_brB_BFC37C5C); + psx_taken_BFC37C5C = (psx_brA_BFC37C5C == psx_brB_BFC37C5C); /* 0xBFC37C60: 240201FF addiu $v0, $zero, 511 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (511)); if (psx_taken_BFC37C5C) goto label_BFC37C70; @@ -177202,7 +181978,7 @@ label_BFC37C64: psx_check_interrupts(cpu); /* 0xBFC37C64: 10000002 beq $zero, $zero, 0xBFC37C70 */ uint32_t psx_brA_BFC37C64 = cpu->gpr[0]; uint32_t psx_brB_BFC37C64 = cpu->gpr[0]; - int psx_taken_BFC37C64 = (psx_brA_BFC37C64 == psx_brB_BFC37C64); + psx_taken_BFC37C64 = (psx_brA_BFC37C64 == psx_brB_BFC37C64); /* 0xBFC37C68: 240203FF addiu $v0, $zero, 1023 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC37C64) goto label_BFC37C70; @@ -177220,7 +181996,7 @@ label_BFC37C70: psx_check_interrupts(cpu); /* 0xBFC37C70: 10000003 beq $zero, $zero, 0xBFC37C80 */ uint32_t psx_brA_BFC37C70 = cpu->gpr[0]; uint32_t psx_brB_BFC37C70 = cpu->gpr[0]; - int psx_taken_BFC37C70 = (psx_brA_BFC37C70 == psx_brB_BFC37C70); + psx_taken_BFC37C70 = (psx_brA_BFC37C70 == psx_brB_BFC37C70); /* 0xBFC37C74: 00402021 addu $a0, $v0, $zero */ cpu->gpr[4] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC37C70) goto label_BFC37C80; @@ -177253,7 +182029,7 @@ label_BFC37C84: cpu->gpr[10] = cpu->gpr[9] & 0x3Fu; /* 0xBFC37C90: 15400007 bne $t2, $zero, 0xBFC37CB0 */ uint32_t psx_brA_BFC37C90 = cpu->gpr[10]; uint32_t psx_brB_BFC37C90 = cpu->gpr[0]; - int psx_taken_BFC37C90 = (psx_brA_BFC37C90 != psx_brB_BFC37C90); + psx_taken_BFC37C90 = (psx_brA_BFC37C90 != psx_brB_BFC37C90); /* 0xBFC37C94: 87AD003C lh $t5, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC37C94u); return; } cpu->gpr[13] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } if (psx_taken_BFC37C90) goto label_BFC37CB0; @@ -177270,7 +182046,7 @@ label_BFC37C98: cpu->gpr[12] = cpu->gpr[11] & 0x3Fu; /* 0xBFC37CA4: 11800026 beq $t4, $zero, 0xBFC37D40 */ uint32_t psx_brA_BFC37CA4 = cpu->gpr[12]; uint32_t psx_brB_BFC37CA4 = cpu->gpr[0]; - int psx_taken_BFC37CA4 = (psx_brA_BFC37CA4 == psx_brB_BFC37CA4); + psx_taken_BFC37CA4 = (psx_brA_BFC37CA4 == psx_brB_BFC37CA4); /* 0xBFC37CA8: 00000000 nop */ /* nop */ if (psx_taken_BFC37CA4) goto label_BFC37D40; @@ -177356,7 +182132,7 @@ label_BFC37CB0: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (4)); /* 0xBFC37D38: 10000015 beq $zero, $zero, 0xBFC37D90 */ uint32_t psx_brA_BFC37D38 = cpu->gpr[0]; uint32_t psx_brB_BFC37D38 = cpu->gpr[0]; - int psx_taken_BFC37D38 = (psx_brA_BFC37D38 == psx_brB_BFC37D38); + psx_taken_BFC37D38 = (psx_brA_BFC37D38 == psx_brB_BFC37D38); /* 0xBFC37D3C: A7AE003E sh $t6, 62($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (62)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC37D3Cu); return; } g_debug_last_store_pc = 0xBFC37D3Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[14] & 0xFFFFu)); } if (psx_taken_BFC37D38) goto label_BFC37D90; @@ -177442,6 +182218,15 @@ label_BFC37D90: void func_1FC37DC8(CPUState* cpu) { debug_server_log_call_entry(0x1FC37DC8u); + int psx_taken_BFC37DD4 = 0; + int psx_taken_BFC37DDC = 0; + int psx_taken_BFC37DE4 = 0; + int psx_taken_BFC37DF0 = 0; + int psx_taken_BFC37DF8 = 0; + int psx_taken_BFC37E1C = 0; + int psx_taken_BFC37E24 = 0; + int psx_taken_BFC37E30 = 0; + int psx_taken_BFC37E38 = 0; label_BFC37DC8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -177455,7 +182240,7 @@ label_BFC37DC8: cpu->gpr[6] = cpu->gpr[6] & 0xFFFFu; /* 0xBFC37DD4: 11C00011 beq $t6, $zero, 0xBFC37E1C */ uint32_t psx_brA_BFC37DD4 = cpu->gpr[14]; uint32_t psx_brB_BFC37DD4 = cpu->gpr[0]; - int psx_taken_BFC37DD4 = (psx_brA_BFC37DD4 == psx_brB_BFC37DD4); + psx_taken_BFC37DD4 = (psx_brA_BFC37DD4 == psx_brB_BFC37DD4); /* 0xBFC37DD8: 00000000 nop */ /* nop */ if (psx_taken_BFC37DD4) goto label_BFC37E1C; @@ -177466,7 +182251,7 @@ label_BFC37DDC: psx_check_interrupts(cpu); /* 0xBFC37DDC: 10A00004 beq $a1, $zero, 0xBFC37DF0 */ uint32_t psx_brA_BFC37DDC = cpu->gpr[5]; uint32_t psx_brB_BFC37DDC = cpu->gpr[0]; - int psx_taken_BFC37DDC = (psx_brA_BFC37DDC == psx_brB_BFC37DDC); + psx_taken_BFC37DDC = (psx_brA_BFC37DDC == psx_brB_BFC37DDC); /* 0xBFC37DE0: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC37DDC) goto label_BFC37DF0; @@ -177477,7 +182262,7 @@ label_BFC37DE4: psx_check_interrupts(cpu); /* 0xBFC37DE4: 10000002 beq $zero, $zero, 0xBFC37DF0 */ uint32_t psx_brA_BFC37DE4 = cpu->gpr[0]; uint32_t psx_brB_BFC37DE4 = cpu->gpr[0]; - int psx_taken_BFC37DE4 = (psx_brA_BFC37DE4 == psx_brB_BFC37DE4); + psx_taken_BFC37DE4 = (psx_brA_BFC37DE4 == psx_brB_BFC37DE4); /* 0xBFC37DE8: 24030800 addiu $v1, $zero, 2048 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (2048)); if (psx_taken_BFC37DE4) goto label_BFC37DF0; @@ -177495,7 +182280,7 @@ label_BFC37DF0: psx_check_interrupts(cpu); /* 0xBFC37DF0: 10800004 beq $a0, $zero, 0xBFC37E04 */ uint32_t psx_brA_BFC37DF0 = cpu->gpr[4]; uint32_t psx_brB_BFC37DF0 = cpu->gpr[0]; - int psx_taken_BFC37DF0 = (psx_brA_BFC37DF0 == psx_brB_BFC37DF0); + psx_taken_BFC37DF0 = (psx_brA_BFC37DF0 == psx_brB_BFC37DF0); /* 0xBFC37DF4: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC37DF0) goto label_BFC37E04; @@ -177506,7 +182291,7 @@ label_BFC37DF8: psx_check_interrupts(cpu); /* 0xBFC37DF8: 10000002 beq $zero, $zero, 0xBFC37E04 */ uint32_t psx_brA_BFC37DF8 = cpu->gpr[0]; uint32_t psx_brB_BFC37DF8 = cpu->gpr[0]; - int psx_taken_BFC37DF8 = (psx_brA_BFC37DF8 == psx_brB_BFC37DF8); + psx_taken_BFC37DF8 = (psx_brA_BFC37DF8 == psx_brB_BFC37DF8); /* 0xBFC37DFC: 24041000 addiu $a0, $zero, 4096 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (4096)); if (psx_taken_BFC37DF8) goto label_BFC37E04; @@ -177541,7 +182326,7 @@ label_BFC37E1C: psx_check_interrupts(cpu); /* 0xBFC37E1C: 10A00004 beq $a1, $zero, 0xBFC37E30 */ uint32_t psx_brA_BFC37E1C = cpu->gpr[5]; uint32_t psx_brB_BFC37E1C = cpu->gpr[0]; - int psx_taken_BFC37E1C = (psx_brA_BFC37E1C == psx_brB_BFC37E1C); + psx_taken_BFC37E1C = (psx_brA_BFC37E1C == psx_brB_BFC37E1C); /* 0xBFC37E20: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC37E1C) goto label_BFC37E30; @@ -177552,7 +182337,7 @@ label_BFC37E24: psx_check_interrupts(cpu); /* 0xBFC37E24: 10000002 beq $zero, $zero, 0xBFC37E30 */ uint32_t psx_brA_BFC37E24 = cpu->gpr[0]; uint32_t psx_brB_BFC37E24 = cpu->gpr[0]; - int psx_taken_BFC37E24 = (psx_brA_BFC37E24 == psx_brB_BFC37E24); + psx_taken_BFC37E24 = (psx_brA_BFC37E24 == psx_brB_BFC37E24); /* 0xBFC37E28: 24030200 addiu $v1, $zero, 512 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (512)); if (psx_taken_BFC37E24) goto label_BFC37E30; @@ -177570,7 +182355,7 @@ label_BFC37E30: psx_check_interrupts(cpu); /* 0xBFC37E30: 10800004 beq $a0, $zero, 0xBFC37E44 */ uint32_t psx_brA_BFC37E30 = cpu->gpr[4]; uint32_t psx_brB_BFC37E30 = cpu->gpr[0]; - int psx_taken_BFC37E30 = (psx_brA_BFC37E30 == psx_brB_BFC37E30); + psx_taken_BFC37E30 = (psx_brA_BFC37E30 == psx_brB_BFC37E30); /* 0xBFC37E34: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC37E30) goto label_BFC37E44; @@ -177581,7 +182366,7 @@ label_BFC37E38: psx_check_interrupts(cpu); /* 0xBFC37E38: 10000002 beq $zero, $zero, 0xBFC37E44 */ uint32_t psx_brA_BFC37E38 = cpu->gpr[0]; uint32_t psx_brB_BFC37E38 = cpu->gpr[0]; - int psx_taken_BFC37E38 = (psx_brA_BFC37E38 == psx_brB_BFC37E38); + psx_taken_BFC37E38 = (psx_brA_BFC37E38 == psx_brB_BFC37E38); /* 0xBFC37E3C: 24040400 addiu $a0, $zero, 1024 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (1024)); if (psx_taken_BFC37E38) goto label_BFC37E44; @@ -177615,6 +182400,19 @@ label_BFC37E44: void func_1FC37E60(CPUState* cpu) { debug_server_log_call_entry(0x1FC37E60u); + int psx_taken_BFC37E6C = 0; + int psx_taken_BFC37E74 = 0; + int psx_taken_BFC37E80 = 0; + int psx_taken_BFC37E88 = 0; + int psx_taken_BFC37E9C = 0; + int psx_taken_BFC37EAC = 0; + int psx_taken_BFC37EC0 = 0; + int psx_taken_BFC37EC8 = 0; + int psx_taken_BFC37ED8 = 0; + int psx_taken_BFC37EE0 = 0; + int psx_taken_BFC37EE8 = 0; + int psx_taken_BFC37EF4 = 0; + int psx_taken_BFC37F08 = 0; label_BFC37E60: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -177628,7 +182426,7 @@ label_BFC37E60: cpu->gpr[5] = cpu->gpr[5] << 16u; /* 0xBFC37E6C: 04810003 bgez $a0, 0xBFC37E7C */ uint32_t psx_brA_BFC37E6C = cpu->gpr[4]; - int psx_taken_BFC37E6C = ((int32_t)psx_brA_BFC37E6C >= 0); + psx_taken_BFC37E6C = ((int32_t)psx_brA_BFC37E6C >= 0); /* 0xBFC37E70: 00052C03 sra $a1, $a1, 16 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] >> 16u); if (psx_taken_BFC37E6C) goto label_BFC37E7C; @@ -177639,7 +182437,7 @@ label_BFC37E74: psx_check_interrupts(cpu); /* 0xBFC37E74: 10000009 beq $zero, $zero, 0xBFC37E9C */ uint32_t psx_brA_BFC37E74 = cpu->gpr[0]; uint32_t psx_brB_BFC37E74 = cpu->gpr[0]; - int psx_taken_BFC37E74 = (psx_brA_BFC37E74 == psx_brB_BFC37E74); + psx_taken_BFC37E74 = (psx_brA_BFC37E74 == psx_brB_BFC37E74); /* 0xBFC37E78: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC37E74) goto label_BFC37E9C; @@ -177652,7 +182450,7 @@ label_BFC37E7C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (1024) ? 1 : 0); /* 0xBFC37E80: 14200004 bne $at, $zero, 0xBFC37E94 */ uint32_t psx_brA_BFC37E80 = cpu->gpr[1]; uint32_t psx_brB_BFC37E80 = cpu->gpr[0]; - int psx_taken_BFC37E80 = (psx_brA_BFC37E80 != psx_brB_BFC37E80); + psx_taken_BFC37E80 = (psx_brA_BFC37E80 != psx_brB_BFC37E80); /* 0xBFC37E84: 00801021 addu $v0, $a0, $zero */ cpu->gpr[2] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC37E80) goto label_BFC37E94; @@ -177663,7 +182461,7 @@ label_BFC37E88: psx_check_interrupts(cpu); /* 0xBFC37E88: 10000002 beq $zero, $zero, 0xBFC37E94 */ uint32_t psx_brA_BFC37E88 = cpu->gpr[0]; uint32_t psx_brB_BFC37E88 = cpu->gpr[0]; - int psx_taken_BFC37E88 = (psx_brA_BFC37E88 == psx_brB_BFC37E88); + psx_taken_BFC37E88 = (psx_brA_BFC37E88 == psx_brB_BFC37E88); /* 0xBFC37E8C: 240203FF addiu $v0, $zero, 1023 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC37E88) goto label_BFC37E94; @@ -177690,7 +182488,7 @@ label_BFC37E9C: psx_check_interrupts(cpu); /* 0xBFC37E9C: 04A10005 bgez $a1, 0xBFC37EB4 */ uint32_t psx_brA_BFC37E9C = cpu->gpr[5]; - int psx_taken_BFC37E9C = ((int32_t)psx_brA_BFC37E9C >= 0); + psx_taken_BFC37E9C = ((int32_t)psx_brA_BFC37E9C >= 0); /* 0xBFC37EA0: 00000000 nop */ /* nop */ if (psx_taken_BFC37E9C) goto label_BFC37EB4; @@ -177705,7 +182503,7 @@ label_BFC37EA4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-28076)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC37EA8u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } /* 0xBFC37EAC: 10000016 beq $zero, $zero, 0xBFC37F08 */ uint32_t psx_brA_BFC37EAC = cpu->gpr[0]; uint32_t psx_brB_BFC37EAC = cpu->gpr[0]; - int psx_taken_BFC37EAC = (psx_brA_BFC37EAC == psx_brB_BFC37EAC); + psx_taken_BFC37EAC = (psx_brA_BFC37EAC == psx_brB_BFC37EAC); /* 0xBFC37EB0: 00002821 addu $a1, $zero, $zero */ cpu->gpr[5] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC37EAC) goto label_BFC37F08; @@ -177722,7 +182520,7 @@ label_BFC37EB4: /* nop */ /* 0xBFC37EC0: 10400004 beq $v0, $zero, 0xBFC37ED4 */ uint32_t psx_brA_BFC37EC0 = cpu->gpr[2]; uint32_t psx_brB_BFC37EC0 = cpu->gpr[0]; - int psx_taken_BFC37EC0 = (psx_brA_BFC37EC0 == psx_brB_BFC37EC0); + psx_taken_BFC37EC0 = (psx_brA_BFC37EC0 == psx_brB_BFC37EC0); /* 0xBFC37EC4: 240301FF addiu $v1, $zero, 511 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (511)); if (psx_taken_BFC37EC0) goto label_BFC37ED4; @@ -177733,7 +182531,7 @@ label_BFC37EC8: psx_check_interrupts(cpu); /* 0xBFC37EC8: 10000002 beq $zero, $zero, 0xBFC37ED4 */ uint32_t psx_brA_BFC37EC8 = cpu->gpr[0]; uint32_t psx_brB_BFC37EC8 = cpu->gpr[0]; - int psx_taken_BFC37EC8 = (psx_brA_BFC37EC8 == psx_brB_BFC37EC8); + psx_taken_BFC37EC8 = (psx_brA_BFC37EC8 == psx_brB_BFC37EC8); /* 0xBFC37ECC: 240303FF addiu $v1, $zero, 1023 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC37EC8) goto label_BFC37ED4; @@ -177753,7 +182551,7 @@ label_BFC37ED4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (int32_t)cpu->gpr[5] ? 1 : 0); /* 0xBFC37ED8: 10200009 beq $at, $zero, 0xBFC37F00 */ uint32_t psx_brA_BFC37ED8 = cpu->gpr[1]; uint32_t psx_brB_BFC37ED8 = cpu->gpr[0]; - int psx_taken_BFC37ED8 = (psx_brA_BFC37ED8 == psx_brB_BFC37ED8); + psx_taken_BFC37ED8 = (psx_brA_BFC37ED8 == psx_brB_BFC37ED8); /* 0xBFC37EDC: 00A03021 addu $a2, $a1, $zero */ cpu->gpr[6] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC37ED8) goto label_BFC37F00; @@ -177764,7 +182562,7 @@ label_BFC37EE0: psx_check_interrupts(cpu); /* 0xBFC37EE0: 10400004 beq $v0, $zero, 0xBFC37EF4 */ uint32_t psx_brA_BFC37EE0 = cpu->gpr[2]; uint32_t psx_brB_BFC37EE0 = cpu->gpr[0]; - int psx_taken_BFC37EE0 = (psx_brA_BFC37EE0 == psx_brB_BFC37EE0); + psx_taken_BFC37EE0 = (psx_brA_BFC37EE0 == psx_brB_BFC37EE0); /* 0xBFC37EE4: 240301FF addiu $v1, $zero, 511 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (511)); if (psx_taken_BFC37EE0) goto label_BFC37EF4; @@ -177775,7 +182573,7 @@ label_BFC37EE8: psx_check_interrupts(cpu); /* 0xBFC37EE8: 10000002 beq $zero, $zero, 0xBFC37EF4 */ uint32_t psx_brA_BFC37EE8 = cpu->gpr[0]; uint32_t psx_brB_BFC37EE8 = cpu->gpr[0]; - int psx_taken_BFC37EE8 = (psx_brA_BFC37EE8 == psx_brB_BFC37EE8); + psx_taken_BFC37EE8 = (psx_brA_BFC37EE8 == psx_brB_BFC37EE8); /* 0xBFC37EEC: 240303FF addiu $v1, $zero, 1023 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC37EE8) goto label_BFC37EF4; @@ -177793,7 +182591,7 @@ label_BFC37EF4: psx_check_interrupts(cpu); /* 0xBFC37EF4: 10000002 beq $zero, $zero, 0xBFC37F00 */ uint32_t psx_brA_BFC37EF4 = cpu->gpr[0]; uint32_t psx_brB_BFC37EF4 = cpu->gpr[0]; - int psx_taken_BFC37EF4 = (psx_brA_BFC37EF4 == psx_brB_BFC37EF4); + psx_taken_BFC37EF4 = (psx_brA_BFC37EF4 == psx_brB_BFC37EF4); /* 0xBFC37EF8: 00603021 addu $a2, $v1, $zero */ cpu->gpr[6] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC37EF4) goto label_BFC37F00; @@ -177820,7 +182618,7 @@ label_BFC37F08: psx_check_interrupts(cpu); /* 0xBFC37F08: 10400009 beq $v0, $zero, 0xBFC37F30 */ uint32_t psx_brA_BFC37F08 = cpu->gpr[2]; uint32_t psx_brB_BFC37F08 = cpu->gpr[0]; - int psx_taken_BFC37F08 = (psx_brA_BFC37F08 == psx_brB_BFC37F08); + psx_taken_BFC37F08 = (psx_brA_BFC37F08 == psx_brB_BFC37F08); /* 0xBFC37F0C: 30A803FF andi $t0, $a1, 0x3FF */ cpu->gpr[8] = cpu->gpr[5] & 0x3FFu; if (psx_taken_BFC37F08) goto label_BFC37F30; @@ -177866,6 +182664,19 @@ label_BFC37F30: void func_1FC37F4C(CPUState* cpu) { debug_server_log_call_entry(0x1FC37F4Cu); + int psx_taken_BFC37F58 = 0; + int psx_taken_BFC37F60 = 0; + int psx_taken_BFC37F6C = 0; + int psx_taken_BFC37F74 = 0; + int psx_taken_BFC37F88 = 0; + int psx_taken_BFC37F98 = 0; + int psx_taken_BFC37FAC = 0; + int psx_taken_BFC37FB4 = 0; + int psx_taken_BFC37FC4 = 0; + int psx_taken_BFC37FCC = 0; + int psx_taken_BFC37FD4 = 0; + int psx_taken_BFC37FE0 = 0; + int psx_taken_BFC37FF4 = 0; label_BFC37F4C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -177879,7 +182690,7 @@ label_BFC37F4C: cpu->gpr[5] = cpu->gpr[5] << 16u; /* 0xBFC37F58: 04810003 bgez $a0, 0xBFC37F68 */ uint32_t psx_brA_BFC37F58 = cpu->gpr[4]; - int psx_taken_BFC37F58 = ((int32_t)psx_brA_BFC37F58 >= 0); + psx_taken_BFC37F58 = ((int32_t)psx_brA_BFC37F58 >= 0); /* 0xBFC37F5C: 00052C03 sra $a1, $a1, 16 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] >> 16u); if (psx_taken_BFC37F58) goto label_BFC37F68; @@ -177890,7 +182701,7 @@ label_BFC37F60: psx_check_interrupts(cpu); /* 0xBFC37F60: 10000009 beq $zero, $zero, 0xBFC37F88 */ uint32_t psx_brA_BFC37F60 = cpu->gpr[0]; uint32_t psx_brB_BFC37F60 = cpu->gpr[0]; - int psx_taken_BFC37F60 = (psx_brA_BFC37F60 == psx_brB_BFC37F60); + psx_taken_BFC37F60 = (psx_brA_BFC37F60 == psx_brB_BFC37F60); /* 0xBFC37F64: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC37F60) goto label_BFC37F88; @@ -177903,7 +182714,7 @@ label_BFC37F68: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (1024) ? 1 : 0); /* 0xBFC37F6C: 14200004 bne $at, $zero, 0xBFC37F80 */ uint32_t psx_brA_BFC37F6C = cpu->gpr[1]; uint32_t psx_brB_BFC37F6C = cpu->gpr[0]; - int psx_taken_BFC37F6C = (psx_brA_BFC37F6C != psx_brB_BFC37F6C); + psx_taken_BFC37F6C = (psx_brA_BFC37F6C != psx_brB_BFC37F6C); /* 0xBFC37F70: 00801021 addu $v0, $a0, $zero */ cpu->gpr[2] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC37F6C) goto label_BFC37F80; @@ -177914,7 +182725,7 @@ label_BFC37F74: psx_check_interrupts(cpu); /* 0xBFC37F74: 10000002 beq $zero, $zero, 0xBFC37F80 */ uint32_t psx_brA_BFC37F74 = cpu->gpr[0]; uint32_t psx_brB_BFC37F74 = cpu->gpr[0]; - int psx_taken_BFC37F74 = (psx_brA_BFC37F74 == psx_brB_BFC37F74); + psx_taken_BFC37F74 = (psx_brA_BFC37F74 == psx_brB_BFC37F74); /* 0xBFC37F78: 240203FF addiu $v0, $zero, 1023 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC37F74) goto label_BFC37F80; @@ -177941,7 +182752,7 @@ label_BFC37F88: psx_check_interrupts(cpu); /* 0xBFC37F88: 04A10005 bgez $a1, 0xBFC37FA0 */ uint32_t psx_brA_BFC37F88 = cpu->gpr[5]; - int psx_taken_BFC37F88 = ((int32_t)psx_brA_BFC37F88 >= 0); + psx_taken_BFC37F88 = ((int32_t)psx_brA_BFC37F88 >= 0); /* 0xBFC37F8C: 00000000 nop */ /* nop */ if (psx_taken_BFC37F88) goto label_BFC37FA0; @@ -177956,7 +182767,7 @@ label_BFC37F90: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-28076)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC37F94u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } /* 0xBFC37F98: 10000016 beq $zero, $zero, 0xBFC37FF4 */ uint32_t psx_brA_BFC37F98 = cpu->gpr[0]; uint32_t psx_brB_BFC37F98 = cpu->gpr[0]; - int psx_taken_BFC37F98 = (psx_brA_BFC37F98 == psx_brB_BFC37F98); + psx_taken_BFC37F98 = (psx_brA_BFC37F98 == psx_brB_BFC37F98); /* 0xBFC37F9C: 00002821 addu $a1, $zero, $zero */ cpu->gpr[5] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC37F98) goto label_BFC37FF4; @@ -177973,7 +182784,7 @@ label_BFC37FA0: /* nop */ /* 0xBFC37FAC: 10400004 beq $v0, $zero, 0xBFC37FC0 */ uint32_t psx_brA_BFC37FAC = cpu->gpr[2]; uint32_t psx_brB_BFC37FAC = cpu->gpr[0]; - int psx_taken_BFC37FAC = (psx_brA_BFC37FAC == psx_brB_BFC37FAC); + psx_taken_BFC37FAC = (psx_brA_BFC37FAC == psx_brB_BFC37FAC); /* 0xBFC37FB0: 240301FF addiu $v1, $zero, 511 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (511)); if (psx_taken_BFC37FAC) goto label_BFC37FC0; @@ -177984,7 +182795,7 @@ label_BFC37FB4: psx_check_interrupts(cpu); /* 0xBFC37FB4: 10000002 beq $zero, $zero, 0xBFC37FC0 */ uint32_t psx_brA_BFC37FB4 = cpu->gpr[0]; uint32_t psx_brB_BFC37FB4 = cpu->gpr[0]; - int psx_taken_BFC37FB4 = (psx_brA_BFC37FB4 == psx_brB_BFC37FB4); + psx_taken_BFC37FB4 = (psx_brA_BFC37FB4 == psx_brB_BFC37FB4); /* 0xBFC37FB8: 240303FF addiu $v1, $zero, 1023 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC37FB4) goto label_BFC37FC0; @@ -178004,7 +182815,7 @@ label_BFC37FC0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (int32_t)cpu->gpr[5] ? 1 : 0); /* 0xBFC37FC4: 10200009 beq $at, $zero, 0xBFC37FEC */ uint32_t psx_brA_BFC37FC4 = cpu->gpr[1]; uint32_t psx_brB_BFC37FC4 = cpu->gpr[0]; - int psx_taken_BFC37FC4 = (psx_brA_BFC37FC4 == psx_brB_BFC37FC4); + psx_taken_BFC37FC4 = (psx_brA_BFC37FC4 == psx_brB_BFC37FC4); /* 0xBFC37FC8: 00A03021 addu $a2, $a1, $zero */ cpu->gpr[6] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC37FC4) goto label_BFC37FEC; @@ -178015,7 +182826,7 @@ label_BFC37FCC: psx_check_interrupts(cpu); /* 0xBFC37FCC: 10400004 beq $v0, $zero, 0xBFC37FE0 */ uint32_t psx_brA_BFC37FCC = cpu->gpr[2]; uint32_t psx_brB_BFC37FCC = cpu->gpr[0]; - int psx_taken_BFC37FCC = (psx_brA_BFC37FCC == psx_brB_BFC37FCC); + psx_taken_BFC37FCC = (psx_brA_BFC37FCC == psx_brB_BFC37FCC); /* 0xBFC37FD0: 240301FF addiu $v1, $zero, 511 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (511)); if (psx_taken_BFC37FCC) goto label_BFC37FE0; @@ -178026,7 +182837,7 @@ label_BFC37FD4: psx_check_interrupts(cpu); /* 0xBFC37FD4: 10000002 beq $zero, $zero, 0xBFC37FE0 */ uint32_t psx_brA_BFC37FD4 = cpu->gpr[0]; uint32_t psx_brB_BFC37FD4 = cpu->gpr[0]; - int psx_taken_BFC37FD4 = (psx_brA_BFC37FD4 == psx_brB_BFC37FD4); + psx_taken_BFC37FD4 = (psx_brA_BFC37FD4 == psx_brB_BFC37FD4); /* 0xBFC37FD8: 240303FF addiu $v1, $zero, 1023 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC37FD4) goto label_BFC37FE0; @@ -178044,7 +182855,7 @@ label_BFC37FE0: psx_check_interrupts(cpu); /* 0xBFC37FE0: 10000002 beq $zero, $zero, 0xBFC37FEC */ uint32_t psx_brA_BFC37FE0 = cpu->gpr[0]; uint32_t psx_brB_BFC37FE0 = cpu->gpr[0]; - int psx_taken_BFC37FE0 = (psx_brA_BFC37FE0 == psx_brB_BFC37FE0); + psx_taken_BFC37FE0 = (psx_brA_BFC37FE0 == psx_brB_BFC37FE0); /* 0xBFC37FE4: 00603021 addu $a2, $v1, $zero */ cpu->gpr[6] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC37FE0) goto label_BFC37FEC; @@ -178071,7 +182882,7 @@ label_BFC37FF4: psx_check_interrupts(cpu); /* 0xBFC37FF4: 10400009 beq $v0, $zero, 0xBFC3801C */ uint32_t psx_brA_BFC37FF4 = cpu->gpr[2]; uint32_t psx_brB_BFC37FF4 = cpu->gpr[0]; - int psx_taken_BFC37FF4 = (psx_brA_BFC37FF4 == psx_brB_BFC37FF4); + psx_taken_BFC37FF4 = (psx_brA_BFC37FF4 == psx_brB_BFC37FF4); /* 0xBFC37FF8: 30A801FF andi $t0, $a1, 0x1FF */ cpu->gpr[8] = cpu->gpr[5] & 0x1FFu; if (psx_taken_BFC37FF4) goto label_BFC3801C; @@ -178117,6 +182928,7 @@ label_BFC3801C: void func_1FC38038(CPUState* cpu) { debug_server_log_call_entry(0x1FC38038u); + int psx_taken_BFC3804C = 0; label_BFC38038: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -178134,7 +182946,7 @@ label_BFC38038: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] >> 16u); /* 0xBFC3804C: 11C00008 beq $t6, $zero, 0xBFC38070 */ uint32_t psx_brA_BFC3804C = cpu->gpr[14]; uint32_t psx_brB_BFC3804C = cpu->gpr[0]; - int psx_taken_BFC3804C = (psx_brA_BFC3804C == psx_brB_BFC3804C); + psx_taken_BFC3804C = (psx_brA_BFC3804C == psx_brB_BFC3804C); /* 0xBFC38050: 00042403 sra $a0, $a0, 16 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] >> 16u); if (psx_taken_BFC3804C) goto label_BFC38070; @@ -178182,6 +182994,7 @@ label_BFC38070: void func_1FC38090(CPUState* cpu) { debug_server_log_call_entry(0x1FC38090u); + int psx_taken_BFC38090 = 0; label_BFC38090: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -178189,7 +183002,7 @@ label_BFC38090: psx_check_interrupts(cpu); /* 0xBFC38090: 1080001B beq $a0, $zero, 0xBFC38100 */ uint32_t psx_brA_BFC38090 = cpu->gpr[4]; uint32_t psx_brB_BFC38090 = cpu->gpr[0]; - int psx_taken_BFC38090 = (psx_brA_BFC38090 == psx_brB_BFC38090); + psx_taken_BFC38090 = (psx_brA_BFC38090 == psx_brB_BFC38090); /* 0xBFC38094: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC38090) goto label_BFC38100; @@ -178261,6 +183074,16 @@ label_BFC38100: void func_1FC38108(CPUState* cpu) { debug_server_log_call_entry(0x1FC38108u); + int psx_taken_BFC38108 = 0; + int psx_taken_BFC38128 = 0; + int psx_taken_BFC38140 = 0; + int psx_taken_BFC38164 = 0; + int psx_taken_BFC38180 = 0; + int psx_taken_BFC38194 = 0; + int psx_taken_BFC381A8 = 0; + int psx_taken_BFC381CC = 0; + int psx_taken_BFC381D4 = 0; + int psx_taken_BFC381DC = 0; label_BFC38108: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -178268,7 +183091,7 @@ label_BFC38108: psx_check_interrupts(cpu); /* 0xBFC38108: 1000002D beq $zero, $zero, 0xBFC381C0 */ uint32_t psx_brA_BFC38108 = cpu->gpr[0]; uint32_t psx_brB_BFC38108 = cpu->gpr[0]; - int psx_taken_BFC38108 = (psx_brA_BFC38108 == psx_brB_BFC38108); + psx_taken_BFC38108 = (psx_brA_BFC38108 == psx_brB_BFC38108); /* 0xBFC3810C: 00000000 nop */ /* nop */ if (psx_taken_BFC38108) goto label_BFC381C0; @@ -178296,7 +183119,7 @@ label_BFC3811C: /* nop */ /* 0xBFC38128: 11C00007 beq $t6, $zero, 0xBFC38148 */ uint32_t psx_brA_BFC38128 = cpu->gpr[14]; uint32_t psx_brB_BFC38128 = cpu->gpr[0]; - int psx_taken_BFC38128 = (psx_brA_BFC38128 == psx_brB_BFC38128); + psx_taken_BFC38128 = (psx_brA_BFC38128 == psx_brB_BFC38128); /* 0xBFC3812C: 00000000 nop */ /* nop */ if (psx_taken_BFC38128) goto label_BFC38148; @@ -178315,7 +183138,7 @@ label_BFC38130: cpu->gpr[3] = cpu->gpr[24] - cpu->gpr[25]; /* 0xBFC38140: 10000003 beq $zero, $zero, 0xBFC38150 */ uint32_t psx_brA_BFC38140 = cpu->gpr[0]; uint32_t psx_brB_BFC38140 = cpu->gpr[0]; - int psx_taken_BFC38140 = (psx_brA_BFC38140 == psx_brB_BFC38140); + psx_taken_BFC38140 = (psx_brA_BFC38140 == psx_brB_BFC38140); /* 0xBFC38144: 24630400 addiu $v1, $v1, 1024 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1024)); if (psx_taken_BFC38140) goto label_BFC38150; @@ -178350,7 +183173,7 @@ label_BFC38158: /* nop */ /* 0xBFC38164: 1100000D beq $t0, $zero, 0xBFC3819C */ uint32_t psx_brA_BFC38164 = cpu->gpr[8]; uint32_t psx_brB_BFC38164 = cpu->gpr[0]; - int psx_taken_BFC38164 = (psx_brA_BFC38164 == psx_brB_BFC38164); + psx_taken_BFC38164 = (psx_brA_BFC38164 == psx_brB_BFC38164); /* 0xBFC38168: 00000000 nop */ /* nop */ if (psx_taken_BFC38164) goto label_BFC3819C; @@ -178371,7 +183194,7 @@ label_BFC3816C: /* nop */ /* 0xBFC38180: 05610002 bgez $t3, 0xBFC3818C */ uint32_t psx_brA_BFC38180 = cpu->gpr[11]; - int psx_taken_BFC38180 = ((int32_t)psx_brA_BFC38180 >= 0); + psx_taken_BFC38180 = ((int32_t)psx_brA_BFC38180 >= 0); /* 0xBFC38184: 01600821 addu $at, $t3, $zero */ cpu->gpr[1] = cpu->gpr[11] + cpu->gpr[0]; if (psx_taken_BFC38180) goto label_BFC3818C; @@ -178393,7 +183216,7 @@ label_BFC3818C: cpu->gpr[3] = cpu->gpr[10] - cpu->gpr[12]; /* 0xBFC38194: 10000008 beq $zero, $zero, 0xBFC381B8 */ uint32_t psx_brA_BFC38194 = cpu->gpr[0]; uint32_t psx_brB_BFC38194 = cpu->gpr[0]; - int psx_taken_BFC38194 = (psx_brA_BFC38194 == psx_brB_BFC38194); + psx_taken_BFC38194 = (psx_brA_BFC38194 == psx_brB_BFC38194); /* 0xBFC38198: 24630400 addiu $v1, $v1, 1024 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1024)); if (psx_taken_BFC38194) goto label_BFC381B8; @@ -178410,7 +183233,7 @@ label_BFC3819C: /* nop */ /* 0xBFC381A8: 04610002 bgez $v1, 0xBFC381B4 */ uint32_t psx_brA_BFC381A8 = cpu->gpr[3]; - int psx_taken_BFC381A8 = ((int32_t)psx_brA_BFC381A8 >= 0); + psx_taken_BFC381A8 = ((int32_t)psx_brA_BFC381A8 >= 0); /* 0xBFC381AC: 00600821 addu $at, $v1, $zero */ cpu->gpr[1] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC381A8) goto label_BFC381B4; @@ -178450,7 +183273,7 @@ label_BFC381C0: /* nop */ /* 0xBFC381CC: 1040FFD0 beq $v0, $zero, 0xBFC38110 */ uint32_t psx_brA_BFC381CC = cpu->gpr[2]; uint32_t psx_brB_BFC381CC = cpu->gpr[0]; - int psx_taken_BFC381CC = (psx_brA_BFC381CC == psx_brB_BFC381CC); + psx_taken_BFC381CC = (psx_brA_BFC381CC == psx_brB_BFC381CC); /* 0xBFC381D0: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC381CC) goto label_BFC38110; @@ -178461,7 +183284,7 @@ label_BFC381D4: psx_check_interrupts(cpu); /* 0xBFC381D4: 1041FFD1 beq $v0, $at, 0xBFC3811C */ uint32_t psx_brA_BFC381D4 = cpu->gpr[2]; uint32_t psx_brB_BFC381D4 = cpu->gpr[1]; - int psx_taken_BFC381D4 = (psx_brA_BFC381D4 == psx_brB_BFC381D4); + psx_taken_BFC381D4 = (psx_brA_BFC381D4 == psx_brB_BFC381D4); /* 0xBFC381D8: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC381D4) goto label_BFC3811C; @@ -178472,7 +183295,7 @@ label_BFC381DC: psx_check_interrupts(cpu); /* 0xBFC381DC: 1041FFDE beq $v0, $at, 0xBFC38158 */ uint32_t psx_brA_BFC381DC = cpu->gpr[2]; uint32_t psx_brB_BFC381DC = cpu->gpr[1]; - int psx_taken_BFC381DC = (psx_brA_BFC381DC == psx_brB_BFC381DC); + psx_taken_BFC381DC = (psx_brA_BFC381DC == psx_brB_BFC381DC); /* 0xBFC381E0: 00000000 nop */ /* nop */ if (psx_taken_BFC381DC) goto label_BFC38158; @@ -178498,6 +183321,10 @@ void func_1FC38204(CPUState* cpu) { default: break; } } + int psx_taken_BFC38288 = 0; + int psx_taken_BFC38298 = 0; + int psx_taken_BFC382A0 = 0; + int psx_taken_BFC382C0 = 0; label_BFC38204: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(27u); @@ -178577,7 +183404,7 @@ label_BFC38270: cpu->gpr[14] = cpu->gpr[13] & cpu->gpr[16]; /* 0xBFC38288: 11C00010 beq $t6, $zero, 0xBFC382CC */ uint32_t psx_brA_BFC38288 = cpu->gpr[14]; uint32_t psx_brB_BFC38288 = cpu->gpr[0]; - int psx_taken_BFC38288 = (psx_brA_BFC38288 == psx_brB_BFC38288); + psx_taken_BFC38288 = (psx_brA_BFC38288 == psx_brB_BFC38288); /* 0xBFC3828C: 8FA20024 lw $v0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3828Cu); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } if (psx_taken_BFC38288) goto label_BFC382CC; @@ -178598,7 +183425,7 @@ label_BFC38298: psx_check_interrupts(cpu); /* 0xBFC38298: 10400003 beq $v0, $zero, 0xBFC382A8 */ uint32_t psx_brA_BFC38298 = cpu->gpr[2]; uint32_t psx_brB_BFC38298 = cpu->gpr[0]; - int psx_taken_BFC38298 = (psx_brA_BFC38298 == psx_brB_BFC38298); + psx_taken_BFC38298 = (psx_brA_BFC38298 == psx_brB_BFC38298); /* 0xBFC3829C: 00000000 nop */ /* nop */ if (psx_taken_BFC38298) goto label_BFC382A8; @@ -178609,7 +183436,7 @@ label_BFC382A0: psx_check_interrupts(cpu); /* 0xBFC382A0: 1000000B beq $zero, $zero, 0xBFC382D0 */ uint32_t psx_brA_BFC382A0 = cpu->gpr[0]; uint32_t psx_brB_BFC382A0 = cpu->gpr[0]; - int psx_taken_BFC382A0 = (psx_brA_BFC382A0 == psx_brB_BFC382A0); + psx_taken_BFC382A0 = (psx_brA_BFC382A0 == psx_brB_BFC382A0); /* 0xBFC382A4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC382A0) goto label_BFC382D0; @@ -178632,7 +183459,7 @@ label_BFC382A8: cpu->gpr[25] = cpu->gpr[24] & cpu->gpr[16]; /* 0xBFC382C0: 1720FFF3 bne $t9, $zero, 0xBFC38290 */ uint32_t psx_brA_BFC382C0 = cpu->gpr[25]; uint32_t psx_brB_BFC382C0 = cpu->gpr[0]; - int psx_taken_BFC382C0 = (psx_brA_BFC382C0 != psx_brB_BFC382C0); + psx_taken_BFC382C0 = (psx_brA_BFC382C0 != psx_brB_BFC382C0); /* 0xBFC382C4: 00000000 nop */ /* nop */ if (psx_taken_BFC382C0) goto label_BFC38290; @@ -178678,6 +183505,21 @@ void func_1FC382E0(CPUState* cpu) { default: break; } } + int psx_taken_BFC38318 = 0; + int psx_taken_BFC38320 = 0; + int psx_taken_BFC38334 = 0; + int psx_taken_BFC3833C = 0; + int psx_taken_BFC38358 = 0; + int psx_taken_BFC38360 = 0; + int psx_taken_BFC38374 = 0; + int psx_taken_BFC3837C = 0; + int psx_taken_BFC38394 = 0; + int psx_taken_BFC3839C = 0; + int psx_taken_BFC383A4 = 0; + int psx_taken_BFC383B0 = 0; + int psx_taken_BFC383D0 = 0; + int psx_taken_BFC383E4 = 0; + int psx_taken_BFC384B8 = 0; label_BFC382E0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(16u); @@ -178713,7 +183555,7 @@ label_BFC382E0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (30)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38314u); return; } g_debug_last_store_pc = 0xBFC38314u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[25] & 0xFFFFu)); } /* 0xBFC38318: 05010004 bgez $t0, 0xBFC3832C */ uint32_t psx_brA_BFC38318 = cpu->gpr[8]; - int psx_taken_BFC38318 = ((int32_t)psx_brA_BFC38318 >= 0); + psx_taken_BFC38318 = ((int32_t)psx_brA_BFC38318 >= 0); /* 0xBFC3831C: 87A9001C lh $t1, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3831Cu); return; } cpu->gpr[9] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } if (psx_taken_BFC38318) goto label_BFC3832C; @@ -178724,7 +183566,7 @@ label_BFC38320: psx_check_interrupts(cpu); /* 0xBFC38320: 1000000B beq $zero, $zero, 0xBFC38350 */ uint32_t psx_brA_BFC38320 = cpu->gpr[0]; uint32_t psx_brB_BFC38320 = cpu->gpr[0]; - int psx_taken_BFC38320 = (psx_brA_BFC38320 == psx_brB_BFC38320); + psx_taken_BFC38320 = (psx_brA_BFC38320 == psx_brB_BFC38320); /* 0xBFC38324: A7A0001C sh $zero, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38324u); return; } g_debug_last_store_pc = 0xBFC38324u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[0] & 0xFFFFu)); } if (psx_taken_BFC38320) goto label_BFC38350; @@ -178746,7 +183588,7 @@ label_BFC3832C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (1024) ? 1 : 0); /* 0xBFC38334: 14200004 bne $at, $zero, 0xBFC38348 */ uint32_t psx_brA_BFC38334 = cpu->gpr[1]; uint32_t psx_brB_BFC38334 = cpu->gpr[0]; - int psx_taken_BFC38334 = (psx_brA_BFC38334 != psx_brB_BFC38334); + psx_taken_BFC38334 = (psx_brA_BFC38334 != psx_brB_BFC38334); /* 0xBFC38338: 87A2001C lh $v0, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38338u); return; } cpu->gpr[2] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } if (psx_taken_BFC38334) goto label_BFC38348; @@ -178757,7 +183599,7 @@ label_BFC3833C: psx_check_interrupts(cpu); /* 0xBFC3833C: 10000003 beq $zero, $zero, 0xBFC3834C */ uint32_t psx_brA_BFC3833C = cpu->gpr[0]; uint32_t psx_brB_BFC3833C = cpu->gpr[0]; - int psx_taken_BFC3833C = (psx_brA_BFC3833C == psx_brB_BFC3833C); + psx_taken_BFC3833C = (psx_brA_BFC3833C == psx_brB_BFC3833C); /* 0xBFC38340: 240203FF addiu $v0, $zero, 1023 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC3833C) goto label_BFC3834C; @@ -178793,7 +183635,7 @@ label_BFC38350: /* nop */ /* 0xBFC38358: 05410003 bgez $t2, 0xBFC38368 */ uint32_t psx_brA_BFC38358 = cpu->gpr[10]; - int psx_taken_BFC38358 = ((int32_t)psx_brA_BFC38358 >= 0); + psx_taken_BFC38358 = ((int32_t)psx_brA_BFC38358 >= 0); /* 0xBFC3835C: 00000000 nop */ /* nop */ if (psx_taken_BFC38358) goto label_BFC38368; @@ -178804,7 +183646,7 @@ label_BFC38360: psx_check_interrupts(cpu); /* 0xBFC38360: 10000018 beq $zero, $zero, 0xBFC383C4 */ uint32_t psx_brA_BFC38360 = cpu->gpr[0]; uint32_t psx_brB_BFC38360 = cpu->gpr[0]; - int psx_taken_BFC38360 = (psx_brA_BFC38360 == psx_brB_BFC38360); + psx_taken_BFC38360 = (psx_brA_BFC38360 == psx_brB_BFC38360); /* 0xBFC38364: A7A0001E sh $zero, 30($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (30)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38364u); return; } g_debug_last_store_pc = 0xBFC38364u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[0] & 0xFFFFu)); } if (psx_taken_BFC38360) goto label_BFC383C4; @@ -178821,7 +183663,7 @@ label_BFC38368: /* nop */ /* 0xBFC38374: 10600004 beq $v1, $zero, 0xBFC38388 */ uint32_t psx_brA_BFC38374 = cpu->gpr[3]; uint32_t psx_brB_BFC38374 = cpu->gpr[0]; - int psx_taken_BFC38374 = (psx_brA_BFC38374 == psx_brB_BFC38374); + psx_taken_BFC38374 = (psx_brA_BFC38374 == psx_brB_BFC38374); /* 0xBFC38378: 240201FF addiu $v0, $zero, 511 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (511)); if (psx_taken_BFC38374) goto label_BFC38388; @@ -178832,7 +183674,7 @@ label_BFC3837C: psx_check_interrupts(cpu); /* 0xBFC3837C: 10000002 beq $zero, $zero, 0xBFC38388 */ uint32_t psx_brA_BFC3837C = cpu->gpr[0]; uint32_t psx_brB_BFC3837C = cpu->gpr[0]; - int psx_taken_BFC3837C = (psx_brA_BFC3837C == psx_brB_BFC3837C); + psx_taken_BFC3837C = (psx_brA_BFC3837C == psx_brB_BFC3837C); /* 0xBFC38380: 240203FF addiu $v0, $zero, 1023 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC3837C) goto label_BFC38388; @@ -178856,7 +183698,7 @@ label_BFC38388: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[11] ? 1 : 0); /* 0xBFC38394: 10200008 beq $at, $zero, 0xBFC383B8 */ uint32_t psx_brA_BFC38394 = cpu->gpr[1]; uint32_t psx_brB_BFC38394 = cpu->gpr[0]; - int psx_taken_BFC38394 = (psx_brA_BFC38394 == psx_brB_BFC38394); + psx_taken_BFC38394 = (psx_brA_BFC38394 == psx_brB_BFC38394); /* 0xBFC38398: 00000000 nop */ /* nop */ if (psx_taken_BFC38394) goto label_BFC383B8; @@ -178867,7 +183709,7 @@ label_BFC3839C: psx_check_interrupts(cpu); /* 0xBFC3839C: 10600004 beq $v1, $zero, 0xBFC383B0 */ uint32_t psx_brA_BFC3839C = cpu->gpr[3]; uint32_t psx_brB_BFC3839C = cpu->gpr[0]; - int psx_taken_BFC3839C = (psx_brA_BFC3839C == psx_brB_BFC3839C); + psx_taken_BFC3839C = (psx_brA_BFC3839C == psx_brB_BFC3839C); /* 0xBFC383A0: 240201FF addiu $v0, $zero, 511 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (511)); if (psx_taken_BFC3839C) goto label_BFC383B0; @@ -178878,7 +183720,7 @@ label_BFC383A4: psx_check_interrupts(cpu); /* 0xBFC383A4: 10000002 beq $zero, $zero, 0xBFC383B0 */ uint32_t psx_brA_BFC383A4 = cpu->gpr[0]; uint32_t psx_brB_BFC383A4 = cpu->gpr[0]; - int psx_taken_BFC383A4 = (psx_brA_BFC383A4 == psx_brB_BFC383A4); + psx_taken_BFC383A4 = (psx_brA_BFC383A4 == psx_brB_BFC383A4); /* 0xBFC383A8: 240203FF addiu $v0, $zero, 1023 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC383A4) goto label_BFC383B0; @@ -178896,7 +183738,7 @@ label_BFC383B0: psx_check_interrupts(cpu); /* 0xBFC383B0: 10000003 beq $zero, $zero, 0xBFC383C0 */ uint32_t psx_brA_BFC383B0 = cpu->gpr[0]; uint32_t psx_brB_BFC383B0 = cpu->gpr[0]; - int psx_taken_BFC383B0 = (psx_brA_BFC383B0 == psx_brB_BFC383B0); + psx_taken_BFC383B0 = (psx_brA_BFC383B0 == psx_brB_BFC383B0); /* 0xBFC383B4: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC383B0) goto label_BFC383C0; @@ -178929,7 +183771,7 @@ label_BFC383C4: cpu->gpr[13] = cpu->gpr[12] & 0x3Fu; /* 0xBFC383D0: 15A00007 bne $t5, $zero, 0xBFC383F0 */ uint32_t psx_brA_BFC383D0 = cpu->gpr[13]; uint32_t psx_brB_BFC383D0 = cpu->gpr[0]; - int psx_taken_BFC383D0 = (psx_brA_BFC383D0 != psx_brB_BFC383D0); + psx_taken_BFC383D0 = (psx_brA_BFC383D0 != psx_brB_BFC383D0); /* 0xBFC383D4: 3C0200FF lui $v0, 0xFF */ cpu->gpr[2] = 0x00FF0000u; if (psx_taken_BFC383D0) goto label_BFC383F0; @@ -178946,7 +183788,7 @@ label_BFC383D8: cpu->gpr[15] = cpu->gpr[14] & 0x3Fu; /* 0xBFC383E4: 11E00037 beq $t7, $zero, 0xBFC384C4 */ uint32_t psx_brA_BFC383E4 = cpu->gpr[15]; uint32_t psx_brB_BFC383E4 = cpu->gpr[0]; - int psx_taken_BFC383E4 = (psx_brA_BFC383E4 == psx_brB_BFC383E4); + psx_taken_BFC383E4 = (psx_brA_BFC383E4 == psx_brB_BFC383E4); /* 0xBFC383E8: 3C0B04FF lui $t3, 0x4FF */ cpu->gpr[11] = 0x04FF0000u; if (psx_taken_BFC383E4) goto label_BFC384C4; @@ -179082,7 +183924,7 @@ label_BFC384AC: cpu->gpr[1] = 0x800E0000u; /* 0xBFC384B8: 10000013 beq $zero, $zero, 0xBFC38508 */ uint32_t psx_brA_BFC384B8 = cpu->gpr[0]; uint32_t psx_brB_BFC384B8 = cpu->gpr[0]; - int psx_taken_BFC384B8 = (psx_brA_BFC384B8 == psx_brB_BFC384B8); + psx_taken_BFC384B8 = (psx_brA_BFC384B8 == psx_brB_BFC384B8); /* 0xBFC384BC: AC2AE9C4 sw $t2, -5692($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-5692)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC384BCu); return; } g_debug_last_store_pc = 0xBFC384BCu; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC384B8) goto label_BFC38508; @@ -179170,6 +184012,32 @@ void func_1FC38524(CPUState* cpu) { default: break; } } + int psx_taken_BFC38564 = 0; + int psx_taken_BFC3856C = 0; + int psx_taken_BFC38580 = 0; + int psx_taken_BFC38588 = 0; + int psx_taken_BFC385A4 = 0; + int psx_taken_BFC385AC = 0; + int psx_taken_BFC385C0 = 0; + int psx_taken_BFC385C8 = 0; + int psx_taken_BFC385E0 = 0; + int psx_taken_BFC385E8 = 0; + int psx_taken_BFC385F0 = 0; + int psx_taken_BFC385FC = 0; + int psx_taken_BFC3861C = 0; + int psx_taken_BFC38628 = 0; + int psx_taken_BFC38658 = 0; + int psx_taken_BFC38688 = 0; + int psx_taken_BFC38698 = 0; + int psx_taken_BFC386B8 = 0; + int psx_taken_BFC386D8 = 0; + int psx_taken_BFC386E4 = 0; + int psx_taken_BFC38710 = 0; + int psx_taken_BFC38718 = 0; + int psx_taken_BFC38728 = 0; + int psx_taken_BFC38740 = 0; + int psx_taken_BFC38748 = 0; + int psx_taken_BFC38758 = 0; label_BFC38524: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(18u); @@ -179209,7 +184077,7 @@ label_BFC38524: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (46)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38560u); return; } g_debug_last_store_pc = 0xBFC38560u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[25] & 0xFFFFu)); } /* 0xBFC38564: 05010004 bgez $t0, 0xBFC38578 */ uint32_t psx_brA_BFC38564 = cpu->gpr[8]; - int psx_taken_BFC38564 = ((int32_t)psx_brA_BFC38564 >= 0); + psx_taken_BFC38564 = ((int32_t)psx_brA_BFC38564 >= 0); /* 0xBFC38568: 87A9002C lh $t1, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38568u); return; } cpu->gpr[9] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } if (psx_taken_BFC38564) goto label_BFC38578; @@ -179220,7 +184088,7 @@ label_BFC3856C: psx_check_interrupts(cpu); /* 0xBFC3856C: 1000000B beq $zero, $zero, 0xBFC3859C */ uint32_t psx_brA_BFC3856C = cpu->gpr[0]; uint32_t psx_brB_BFC3856C = cpu->gpr[0]; - int psx_taken_BFC3856C = (psx_brA_BFC3856C == psx_brB_BFC3856C); + psx_taken_BFC3856C = (psx_brA_BFC3856C == psx_brB_BFC3856C); /* 0xBFC38570: A7A0002C sh $zero, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38570u); return; } g_debug_last_store_pc = 0xBFC38570u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[0] & 0xFFFFu)); } if (psx_taken_BFC3856C) goto label_BFC3859C; @@ -179242,7 +184110,7 @@ label_BFC38578: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (1024) ? 1 : 0); /* 0xBFC38580: 14200004 bne $at, $zero, 0xBFC38594 */ uint32_t psx_brA_BFC38580 = cpu->gpr[1]; uint32_t psx_brB_BFC38580 = cpu->gpr[0]; - int psx_taken_BFC38580 = (psx_brA_BFC38580 != psx_brB_BFC38580); + psx_taken_BFC38580 = (psx_brA_BFC38580 != psx_brB_BFC38580); /* 0xBFC38584: 87A3002C lh $v1, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38584u); return; } cpu->gpr[3] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } if (psx_taken_BFC38580) goto label_BFC38594; @@ -179253,7 +184121,7 @@ label_BFC38588: psx_check_interrupts(cpu); /* 0xBFC38588: 10000003 beq $zero, $zero, 0xBFC38598 */ uint32_t psx_brA_BFC38588 = cpu->gpr[0]; uint32_t psx_brB_BFC38588 = cpu->gpr[0]; - int psx_taken_BFC38588 = (psx_brA_BFC38588 == psx_brB_BFC38588); + psx_taken_BFC38588 = (psx_brA_BFC38588 == psx_brB_BFC38588); /* 0xBFC3858C: 240303FF addiu $v1, $zero, 1023 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC38588) goto label_BFC38598; @@ -179289,7 +184157,7 @@ label_BFC3859C: /* nop */ /* 0xBFC385A4: 05410003 bgez $t2, 0xBFC385B4 */ uint32_t psx_brA_BFC385A4 = cpu->gpr[10]; - int psx_taken_BFC385A4 = ((int32_t)psx_brA_BFC385A4 >= 0); + psx_taken_BFC385A4 = ((int32_t)psx_brA_BFC385A4 >= 0); /* 0xBFC385A8: 00000000 nop */ /* nop */ if (psx_taken_BFC385A4) goto label_BFC385B4; @@ -179300,7 +184168,7 @@ label_BFC385AC: psx_check_interrupts(cpu); /* 0xBFC385AC: 10000018 beq $zero, $zero, 0xBFC38610 */ uint32_t psx_brA_BFC385AC = cpu->gpr[0]; uint32_t psx_brB_BFC385AC = cpu->gpr[0]; - int psx_taken_BFC385AC = (psx_brA_BFC385AC == psx_brB_BFC385AC); + psx_taken_BFC385AC = (psx_brA_BFC385AC == psx_brB_BFC385AC); /* 0xBFC385B0: A7A0002E sh $zero, 46($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (46)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC385B0u); return; } g_debug_last_store_pc = 0xBFC385B0u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[0] & 0xFFFFu)); } if (psx_taken_BFC385AC) goto label_BFC38610; @@ -179317,7 +184185,7 @@ label_BFC385B4: /* nop */ /* 0xBFC385C0: 10600004 beq $v1, $zero, 0xBFC385D4 */ uint32_t psx_brA_BFC385C0 = cpu->gpr[3]; uint32_t psx_brB_BFC385C0 = cpu->gpr[0]; - int psx_taken_BFC385C0 = (psx_brA_BFC385C0 == psx_brB_BFC385C0); + psx_taken_BFC385C0 = (psx_brA_BFC385C0 == psx_brB_BFC385C0); /* 0xBFC385C4: 240201FF addiu $v0, $zero, 511 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (511)); if (psx_taken_BFC385C0) goto label_BFC385D4; @@ -179328,7 +184196,7 @@ label_BFC385C8: psx_check_interrupts(cpu); /* 0xBFC385C8: 10000002 beq $zero, $zero, 0xBFC385D4 */ uint32_t psx_brA_BFC385C8 = cpu->gpr[0]; uint32_t psx_brB_BFC385C8 = cpu->gpr[0]; - int psx_taken_BFC385C8 = (psx_brA_BFC385C8 == psx_brB_BFC385C8); + psx_taken_BFC385C8 = (psx_brA_BFC385C8 == psx_brB_BFC385C8); /* 0xBFC385CC: 240203FF addiu $v0, $zero, 1023 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC385C8) goto label_BFC385D4; @@ -179352,7 +184220,7 @@ label_BFC385D4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[11] ? 1 : 0); /* 0xBFC385E0: 10200008 beq $at, $zero, 0xBFC38604 */ uint32_t psx_brA_BFC385E0 = cpu->gpr[1]; uint32_t psx_brB_BFC385E0 = cpu->gpr[0]; - int psx_taken_BFC385E0 = (psx_brA_BFC385E0 == psx_brB_BFC385E0); + psx_taken_BFC385E0 = (psx_brA_BFC385E0 == psx_brB_BFC385E0); /* 0xBFC385E4: 00000000 nop */ /* nop */ if (psx_taken_BFC385E0) goto label_BFC38604; @@ -179363,7 +184231,7 @@ label_BFC385E8: psx_check_interrupts(cpu); /* 0xBFC385E8: 10600004 beq $v1, $zero, 0xBFC385FC */ uint32_t psx_brA_BFC385E8 = cpu->gpr[3]; uint32_t psx_brB_BFC385E8 = cpu->gpr[0]; - int psx_taken_BFC385E8 = (psx_brA_BFC385E8 == psx_brB_BFC385E8); + psx_taken_BFC385E8 = (psx_brA_BFC385E8 == psx_brB_BFC385E8); /* 0xBFC385EC: 240201FF addiu $v0, $zero, 511 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (511)); if (psx_taken_BFC385E8) goto label_BFC385FC; @@ -179374,7 +184242,7 @@ label_BFC385F0: psx_check_interrupts(cpu); /* 0xBFC385F0: 10000002 beq $zero, $zero, 0xBFC385FC */ uint32_t psx_brA_BFC385F0 = cpu->gpr[0]; uint32_t psx_brB_BFC385F0 = cpu->gpr[0]; - int psx_taken_BFC385F0 = (psx_brA_BFC385F0 == psx_brB_BFC385F0); + psx_taken_BFC385F0 = (psx_brA_BFC385F0 == psx_brB_BFC385F0); /* 0xBFC385F4: 240203FF addiu $v0, $zero, 1023 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC385F0) goto label_BFC385FC; @@ -179392,7 +184260,7 @@ label_BFC385FC: psx_check_interrupts(cpu); /* 0xBFC385FC: 10000003 beq $zero, $zero, 0xBFC3860C */ uint32_t psx_brA_BFC385FC = cpu->gpr[0]; uint32_t psx_brB_BFC385FC = cpu->gpr[0]; - int psx_taken_BFC385FC = (psx_brA_BFC385FC == psx_brB_BFC385FC); + psx_taken_BFC385FC = (psx_brA_BFC385FC == psx_brB_BFC385FC); /* 0xBFC38600: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC385FC) goto label_BFC3860C; @@ -179425,7 +184293,7 @@ label_BFC38610: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[12] < (1024) ? 1 : 0); /* 0xBFC3861C: 14200009 bne $at, $zero, 0xBFC38644 */ uint32_t psx_brA_BFC3861C = cpu->gpr[1]; uint32_t psx_brB_BFC3861C = cpu->gpr[0]; - int psx_taken_BFC3861C = (psx_brA_BFC3861C != psx_brB_BFC3861C); + psx_taken_BFC3861C = (psx_brA_BFC3861C != psx_brB_BFC3861C); /* 0xBFC38620: 87AF002C lh $t7, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38620u); return; } cpu->gpr[15] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } if (psx_taken_BFC3861C) goto label_BFC38644; @@ -179438,7 +184306,7 @@ label_BFC38624: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[12] + (-1024)); /* 0xBFC38628: 05A10002 bgez $t5, 0xBFC38634 */ uint32_t psx_brA_BFC38628 = cpu->gpr[13]; - int psx_taken_BFC38628 = ((int32_t)psx_brA_BFC38628 >= 0); + psx_taken_BFC38628 = ((int32_t)psx_brA_BFC38628 >= 0); /* 0xBFC3862C: 01A00821 addu $at, $t5, $zero */ cpu->gpr[1] = cpu->gpr[13] + cpu->gpr[0]; if (psx_taken_BFC38628) goto label_BFC38634; @@ -179479,7 +184347,7 @@ label_BFC38644: cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[25] + (1)); /* 0xBFC38658: 05010002 bgez $t0, 0xBFC38664 */ uint32_t psx_brA_BFC38658 = cpu->gpr[8]; - int psx_taken_BFC38658 = ((int32_t)psx_brA_BFC38658 >= 0); + psx_taken_BFC38658 = ((int32_t)psx_brA_BFC38658 >= 0); /* 0xBFC3865C: 01000821 addu $at, $t0, $zero */ cpu->gpr[1] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC38658) goto label_BFC38664; @@ -179521,7 +184389,7 @@ label_BFC38670: cpu->gpr[12] = cpu->gpr[11] & cpu->gpr[16]; /* 0xBFC38688: 1580000D bne $t4, $zero, 0xBFC386C0 */ uint32_t psx_brA_BFC38688 = cpu->gpr[12]; uint32_t psx_brB_BFC38688 = cpu->gpr[0]; - int psx_taken_BFC38688 = (psx_brA_BFC38688 != psx_brB_BFC38688); + psx_taken_BFC38688 = (psx_brA_BFC38688 != psx_brB_BFC38688); /* 0xBFC3868C: 00000000 nop */ /* nop */ if (psx_taken_BFC38688) goto label_BFC386C0; @@ -179542,7 +184410,7 @@ label_BFC38698: psx_check_interrupts(cpu); /* 0xBFC38698: 14400009 bne $v0, $zero, 0xBFC386C0 */ uint32_t psx_brA_BFC38698 = cpu->gpr[2]; uint32_t psx_brB_BFC38698 = cpu->gpr[0]; - int psx_taken_BFC38698 = (psx_brA_BFC38698 != psx_brB_BFC38698); + psx_taken_BFC38698 = (psx_brA_BFC38698 != psx_brB_BFC38698); /* 0xBFC3869C: 00000000 nop */ /* nop */ if (psx_taken_BFC38698) goto label_BFC386C0; @@ -179565,7 +184433,7 @@ label_BFC386A0: cpu->gpr[15] = cpu->gpr[14] & cpu->gpr[16]; /* 0xBFC386B8: 11E0FFF5 beq $t7, $zero, 0xBFC38690 */ uint32_t psx_brA_BFC386B8 = cpu->gpr[15]; uint32_t psx_brB_BFC386B8 = cpu->gpr[0]; - int psx_taken_BFC386B8 = (psx_brA_BFC386B8 == psx_brB_BFC386B8); + psx_taken_BFC386B8 = (psx_brA_BFC386B8 == psx_brB_BFC386B8); /* 0xBFC386BC: 00000000 nop */ /* nop */ if (psx_taken_BFC386B8) goto label_BFC38690; @@ -179588,7 +184456,7 @@ label_BFC386C0: /* nop */ /* 0xBFC386D8: 13200005 beq $t9, $zero, 0xBFC386F0 */ uint32_t psx_brA_BFC386D8 = cpu->gpr[25]; uint32_t psx_brB_BFC386D8 = cpu->gpr[0]; - int psx_taken_BFC386D8 = (psx_brA_BFC386D8 == psx_brB_BFC386D8); + psx_taken_BFC386D8 = (psx_brA_BFC386D8 == psx_brB_BFC386D8); /* 0xBFC386DC: 3C09A000 lui $t1, 0xA000 */ cpu->gpr[9] = 0xA0000000u; if (psx_taken_BFC386D8) goto label_BFC386F0; @@ -179601,7 +184469,7 @@ label_BFC386E0: cpu->gpr[8] = 0xB0000000u; /* 0xBFC386E4: 10000003 beq $zero, $zero, 0xBFC386F4 */ uint32_t psx_brA_BFC386E4 = cpu->gpr[0]; uint32_t psx_brB_BFC386E4 = cpu->gpr[0]; - int psx_taken_BFC386E4 = (psx_brA_BFC386E4 == psx_brB_BFC386E4); + psx_taken_BFC386E4 = (psx_brA_BFC386E4 == psx_brB_BFC386E4); /* 0xBFC386E8: ACA80000 sw $t0, 0($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC386E8u); return; } g_debug_last_store_pc = 0xBFC386E8u; cpu->write_word(psx_addr, cpu->gpr[8]); } if (psx_taken_BFC386E4) goto label_BFC386F4; @@ -179640,7 +184508,7 @@ label_BFC386F4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3870Cu); return; } g_debug_last_store_pc = 0xBFC3870Cu; cpu->write_word(psx_addr, cpu->gpr[11]); } /* 0xBFC38710: 04C10004 bgez $a2, 0xBFC38724 */ uint32_t psx_brA_BFC38710 = cpu->gpr[6]; - int psx_taken_BFC38710 = ((int32_t)psx_brA_BFC38710 >= 0); + psx_taken_BFC38710 = ((int32_t)psx_brA_BFC38710 >= 0); /* 0xBFC38714: 30C4000F andi $a0, $a2, 0xF */ cpu->gpr[4] = cpu->gpr[6] & 0xFu; if (psx_taken_BFC38710) goto label_BFC38724; @@ -179651,7 +184519,7 @@ label_BFC38718: psx_check_interrupts(cpu); /* 0xBFC38718: 10800002 beq $a0, $zero, 0xBFC38724 */ uint32_t psx_brA_BFC38718 = cpu->gpr[4]; uint32_t psx_brB_BFC38718 = cpu->gpr[0]; - int psx_taken_BFC38718 = (psx_brA_BFC38718 == psx_brB_BFC38718); + psx_taken_BFC38718 = (psx_brA_BFC38718 == psx_brB_BFC38718); /* 0xBFC3871C: 00000000 nop */ /* nop */ if (psx_taken_BFC38718) goto label_BFC38724; @@ -179671,7 +184539,7 @@ label_BFC38724: cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC38728: 10600007 beq $v1, $zero, 0xBFC38748 */ uint32_t psx_brA_BFC38728 = cpu->gpr[3]; uint32_t psx_brB_BFC38728 = cpu->gpr[0]; - int psx_taken_BFC38728 = (psx_brA_BFC38728 == psx_brB_BFC38728); + psx_taken_BFC38728 = (psx_brA_BFC38728 == psx_brB_BFC38728); /* 0xBFC3872C: 2482FFFF addiu $v0, $a0, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[4] + (-1)); if (psx_taken_BFC38728) goto label_BFC38748; @@ -179690,7 +184558,7 @@ label_BFC38730: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (4)); /* 0xBFC38740: 1460FFFB bne $v1, $zero, 0xBFC38730 */ uint32_t psx_brA_BFC38740 = cpu->gpr[3]; uint32_t psx_brB_BFC38740 = cpu->gpr[0]; - int psx_taken_BFC38740 = (psx_brA_BFC38740 != psx_brB_BFC38740); + psx_taken_BFC38740 = (psx_brA_BFC38740 != psx_brB_BFC38740); /* 0xBFC38744: ACAC0000 sw $t4, 0($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38744u); return; } g_debug_last_store_pc = 0xBFC38744u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC38740) goto label_BFC38730; @@ -179701,7 +184569,7 @@ label_BFC38748: psx_check_interrupts(cpu); /* 0xBFC38748: 04C10002 bgez $a2, 0xBFC38754 */ uint32_t psx_brA_BFC38748 = cpu->gpr[6]; - int psx_taken_BFC38748 = ((int32_t)psx_brA_BFC38748 >= 0); + psx_taken_BFC38748 = ((int32_t)psx_brA_BFC38748 >= 0); /* 0xBFC3874C: 00C00821 addu $at, $a2, $zero */ cpu->gpr[1] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC38748) goto label_BFC38754; @@ -179721,7 +184589,7 @@ label_BFC38754: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[1] >> 4u); /* 0xBFC38758: 10400019 beq $v0, $zero, 0xBFC387C0 */ uint32_t psx_brA_BFC38758 = cpu->gpr[2]; uint32_t psx_brB_BFC38758 = cpu->gpr[0]; - int psx_taken_BFC38758 = (psx_brA_BFC38758 == psx_brB_BFC38758); + psx_taken_BFC38758 = (psx_brA_BFC38758 == psx_brB_BFC38758); /* 0xBFC3875C: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3875Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC38758) goto label_BFC387C0; @@ -179805,6 +184673,33 @@ void func_1FC387D4(CPUState* cpu) { default: break; } } + int psx_taken_BFC38810 = 0; + int psx_taken_BFC38818 = 0; + int psx_taken_BFC3882C = 0; + int psx_taken_BFC38834 = 0; + int psx_taken_BFC38850 = 0; + int psx_taken_BFC38858 = 0; + int psx_taken_BFC3886C = 0; + int psx_taken_BFC38874 = 0; + int psx_taken_BFC3888C = 0; + int psx_taken_BFC38894 = 0; + int psx_taken_BFC3889C = 0; + int psx_taken_BFC388A8 = 0; + int psx_taken_BFC388D4 = 0; + int psx_taken_BFC388E4 = 0; + int psx_taken_BFC388EC = 0; + int psx_taken_BFC3890C = 0; + int psx_taken_BFC38924 = 0; + int psx_taken_BFC38938 = 0; + int psx_taken_BFC38958 = 0; + int psx_taken_BFC389A4 = 0; + int psx_taken_BFC389B8 = 0; + int psx_taken_BFC389C0 = 0; + int psx_taken_BFC389C8 = 0; + int psx_taken_BFC389D8 = 0; + int psx_taken_BFC389F0 = 0; + int psx_taken_BFC389F8 = 0; + int psx_taken_BFC38A08 = 0; label_BFC387D4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(17u); @@ -179842,7 +184737,7 @@ label_BFC387D4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (78)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3880Cu); return; } g_debug_last_store_pc = 0xBFC3880Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[25] & 0xFFFFu)); } /* 0xBFC38810: 05010004 bgez $t0, 0xBFC38824 */ uint32_t psx_brA_BFC38810 = cpu->gpr[8]; - int psx_taken_BFC38810 = ((int32_t)psx_brA_BFC38810 >= 0); + psx_taken_BFC38810 = ((int32_t)psx_brA_BFC38810 >= 0); /* 0xBFC38814: 87A9004C lh $t1, 76($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38814u); return; } cpu->gpr[9] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } if (psx_taken_BFC38810) goto label_BFC38824; @@ -179853,7 +184748,7 @@ label_BFC38818: psx_check_interrupts(cpu); /* 0xBFC38818: 1000000B beq $zero, $zero, 0xBFC38848 */ uint32_t psx_brA_BFC38818 = cpu->gpr[0]; uint32_t psx_brB_BFC38818 = cpu->gpr[0]; - int psx_taken_BFC38818 = (psx_brA_BFC38818 == psx_brB_BFC38818); + psx_taken_BFC38818 = (psx_brA_BFC38818 == psx_brB_BFC38818); /* 0xBFC3881C: A7A0004C sh $zero, 76($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3881Cu); return; } g_debug_last_store_pc = 0xBFC3881Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[0] & 0xFFFFu)); } if (psx_taken_BFC38818) goto label_BFC38848; @@ -179875,7 +184770,7 @@ label_BFC38824: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (1024) ? 1 : 0); /* 0xBFC3882C: 14200004 bne $at, $zero, 0xBFC38840 */ uint32_t psx_brA_BFC3882C = cpu->gpr[1]; uint32_t psx_brB_BFC3882C = cpu->gpr[0]; - int psx_taken_BFC3882C = (psx_brA_BFC3882C != psx_brB_BFC3882C); + psx_taken_BFC3882C = (psx_brA_BFC3882C != psx_brB_BFC3882C); /* 0xBFC38830: 87A3004C lh $v1, 76($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38830u); return; } cpu->gpr[3] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } if (psx_taken_BFC3882C) goto label_BFC38840; @@ -179886,7 +184781,7 @@ label_BFC38834: psx_check_interrupts(cpu); /* 0xBFC38834: 10000003 beq $zero, $zero, 0xBFC38844 */ uint32_t psx_brA_BFC38834 = cpu->gpr[0]; uint32_t psx_brB_BFC38834 = cpu->gpr[0]; - int psx_taken_BFC38834 = (psx_brA_BFC38834 == psx_brB_BFC38834); + psx_taken_BFC38834 = (psx_brA_BFC38834 == psx_brB_BFC38834); /* 0xBFC38838: 240303FF addiu $v1, $zero, 1023 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC38834) goto label_BFC38844; @@ -179922,7 +184817,7 @@ label_BFC38848: /* nop */ /* 0xBFC38850: 05410003 bgez $t2, 0xBFC38860 */ uint32_t psx_brA_BFC38850 = cpu->gpr[10]; - int psx_taken_BFC38850 = ((int32_t)psx_brA_BFC38850 >= 0); + psx_taken_BFC38850 = ((int32_t)psx_brA_BFC38850 >= 0); /* 0xBFC38854: 00000000 nop */ /* nop */ if (psx_taken_BFC38850) goto label_BFC38860; @@ -179933,7 +184828,7 @@ label_BFC38858: psx_check_interrupts(cpu); /* 0xBFC38858: 10000018 beq $zero, $zero, 0xBFC388BC */ uint32_t psx_brA_BFC38858 = cpu->gpr[0]; uint32_t psx_brB_BFC38858 = cpu->gpr[0]; - int psx_taken_BFC38858 = (psx_brA_BFC38858 == psx_brB_BFC38858); + psx_taken_BFC38858 = (psx_brA_BFC38858 == psx_brB_BFC38858); /* 0xBFC3885C: A7A0004E sh $zero, 78($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (78)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3885Cu); return; } g_debug_last_store_pc = 0xBFC3885Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[0] & 0xFFFFu)); } if (psx_taken_BFC38858) goto label_BFC388BC; @@ -179950,7 +184845,7 @@ label_BFC38860: /* nop */ /* 0xBFC3886C: 10600004 beq $v1, $zero, 0xBFC38880 */ uint32_t psx_brA_BFC3886C = cpu->gpr[3]; uint32_t psx_brB_BFC3886C = cpu->gpr[0]; - int psx_taken_BFC3886C = (psx_brA_BFC3886C == psx_brB_BFC3886C); + psx_taken_BFC3886C = (psx_brA_BFC3886C == psx_brB_BFC3886C); /* 0xBFC38870: 240201FF addiu $v0, $zero, 511 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (511)); if (psx_taken_BFC3886C) goto label_BFC38880; @@ -179961,7 +184856,7 @@ label_BFC38874: psx_check_interrupts(cpu); /* 0xBFC38874: 10000002 beq $zero, $zero, 0xBFC38880 */ uint32_t psx_brA_BFC38874 = cpu->gpr[0]; uint32_t psx_brB_BFC38874 = cpu->gpr[0]; - int psx_taken_BFC38874 = (psx_brA_BFC38874 == psx_brB_BFC38874); + psx_taken_BFC38874 = (psx_brA_BFC38874 == psx_brB_BFC38874); /* 0xBFC38878: 240203FF addiu $v0, $zero, 1023 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC38874) goto label_BFC38880; @@ -179985,7 +184880,7 @@ label_BFC38880: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[11] ? 1 : 0); /* 0xBFC3888C: 10200008 beq $at, $zero, 0xBFC388B0 */ uint32_t psx_brA_BFC3888C = cpu->gpr[1]; uint32_t psx_brB_BFC3888C = cpu->gpr[0]; - int psx_taken_BFC3888C = (psx_brA_BFC3888C == psx_brB_BFC3888C); + psx_taken_BFC3888C = (psx_brA_BFC3888C == psx_brB_BFC3888C); /* 0xBFC38890: 00000000 nop */ /* nop */ if (psx_taken_BFC3888C) goto label_BFC388B0; @@ -179996,7 +184891,7 @@ label_BFC38894: psx_check_interrupts(cpu); /* 0xBFC38894: 10600004 beq $v1, $zero, 0xBFC388A8 */ uint32_t psx_brA_BFC38894 = cpu->gpr[3]; uint32_t psx_brB_BFC38894 = cpu->gpr[0]; - int psx_taken_BFC38894 = (psx_brA_BFC38894 == psx_brB_BFC38894); + psx_taken_BFC38894 = (psx_brA_BFC38894 == psx_brB_BFC38894); /* 0xBFC38898: 240201FF addiu $v0, $zero, 511 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (511)); if (psx_taken_BFC38894) goto label_BFC388A8; @@ -180007,7 +184902,7 @@ label_BFC3889C: psx_check_interrupts(cpu); /* 0xBFC3889C: 10000002 beq $zero, $zero, 0xBFC388A8 */ uint32_t psx_brA_BFC3889C = cpu->gpr[0]; uint32_t psx_brB_BFC3889C = cpu->gpr[0]; - int psx_taken_BFC3889C = (psx_brA_BFC3889C == psx_brB_BFC3889C); + psx_taken_BFC3889C = (psx_brA_BFC3889C == psx_brB_BFC3889C); /* 0xBFC388A0: 240203FF addiu $v0, $zero, 1023 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1023)); if (psx_taken_BFC3889C) goto label_BFC388A8; @@ -180025,7 +184920,7 @@ label_BFC388A8: psx_check_interrupts(cpu); /* 0xBFC388A8: 10000003 beq $zero, $zero, 0xBFC388B8 */ uint32_t psx_brA_BFC388A8 = cpu->gpr[0]; uint32_t psx_brB_BFC388A8 = cpu->gpr[0]; - int psx_taken_BFC388A8 = (psx_brA_BFC388A8 == psx_brB_BFC388A8); + psx_taken_BFC388A8 = (psx_brA_BFC388A8 == psx_brB_BFC388A8); /* 0xBFC388AC: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC388A8) goto label_BFC388B8; @@ -180064,7 +184959,7 @@ label_BFC388BC: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[7] + (1)); /* 0xBFC388D4: 04E10002 bgez $a3, 0xBFC388E0 */ uint32_t psx_brA_BFC388D4 = cpu->gpr[7]; - int psx_taken_BFC388D4 = ((int32_t)psx_brA_BFC388D4 >= 0); + psx_taken_BFC388D4 = ((int32_t)psx_brA_BFC388D4 >= 0); /* 0xBFC388D8: 00E00821 addu $at, $a3, $zero */ cpu->gpr[1] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC388D4) goto label_BFC388E0; @@ -180084,7 +184979,7 @@ label_BFC388E0: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[1] >> 1u); /* 0xBFC388E4: 14E00003 bne $a3, $zero, 0xBFC388F4 */ uint32_t psx_brA_BFC388E4 = cpu->gpr[7]; uint32_t psx_brB_BFC388E4 = cpu->gpr[0]; - int psx_taken_BFC388E4 = (psx_brA_BFC388E4 != psx_brB_BFC388E4); + psx_taken_BFC388E4 = (psx_brA_BFC388E4 != psx_brB_BFC388E4); /* 0xBFC388E8: 00000000 nop */ /* nop */ if (psx_taken_BFC388E4) goto label_BFC388F4; @@ -180095,7 +184990,7 @@ label_BFC388EC: psx_check_interrupts(cpu); /* 0xBFC388EC: 1000005F beq $zero, $zero, 0xBFC38A6C */ uint32_t psx_brA_BFC388EC = cpu->gpr[0]; uint32_t psx_brB_BFC388EC = cpu->gpr[0]; - int psx_taken_BFC388EC = (psx_brA_BFC388EC == psx_brB_BFC388EC); + psx_taken_BFC388EC = (psx_brA_BFC388EC == psx_brB_BFC388EC); /* 0xBFC388F0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC388EC) goto label_BFC38A6C; @@ -180118,7 +185013,7 @@ label_BFC388F4: cpu->gpr[15] = cpu->gpr[14] & cpu->gpr[16]; /* 0xBFC3890C: 15E00016 bne $t7, $zero, 0xBFC38968 */ uint32_t psx_brA_BFC3890C = cpu->gpr[15]; uint32_t psx_brB_BFC3890C = cpu->gpr[0]; - int psx_taken_BFC3890C = (psx_brA_BFC3890C != psx_brB_BFC3890C); + psx_taken_BFC3890C = (psx_brA_BFC3890C != psx_brB_BFC3890C); /* 0xBFC38910: 00000000 nop */ /* nop */ if (psx_taken_BFC3890C) goto label_BFC38968; @@ -180148,7 +185043,7 @@ label_BFC38924: psx_check_interrupts(cpu); /* 0xBFC38924: 10400006 beq $v0, $zero, 0xBFC38940 */ uint32_t psx_brA_BFC38924 = cpu->gpr[2]; uint32_t psx_brB_BFC38924 = cpu->gpr[0]; - int psx_taken_BFC38924 = (psx_brA_BFC38924 == psx_brB_BFC38924); + psx_taken_BFC38924 = (psx_brA_BFC38924 == psx_brB_BFC38924); /* 0xBFC38928: 00000000 nop */ /* nop */ if (psx_taken_BFC38924) goto label_BFC38940; @@ -180165,7 +185060,7 @@ label_BFC3892C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38934u); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } /* 0xBFC38938: 1000000B beq $zero, $zero, 0xBFC38968 */ uint32_t psx_brA_BFC38938 = cpu->gpr[0]; uint32_t psx_brB_BFC38938 = cpu->gpr[0]; - int psx_taken_BFC38938 = (psx_brA_BFC38938 == psx_brB_BFC38938); + psx_taken_BFC38938 = (psx_brA_BFC38938 == psx_brB_BFC38938); /* 0xBFC3893C: 00000000 nop */ /* nop */ if (psx_taken_BFC38938) goto label_BFC38968; @@ -180188,7 +185083,7 @@ label_BFC38940: cpu->gpr[25] = cpu->gpr[24] & cpu->gpr[16]; /* 0xBFC38958: 1320FFF0 beq $t9, $zero, 0xBFC3891C */ uint32_t psx_brA_BFC38958 = cpu->gpr[25]; uint32_t psx_brB_BFC38958 = cpu->gpr[0]; - int psx_taken_BFC38958 = (psx_brA_BFC38958 == psx_brB_BFC38958); + psx_taken_BFC38958 = (psx_brA_BFC38958 == psx_brB_BFC38958); /* 0xBFC3895C: 8FA70044 lw $a3, 68($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (68)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3895Cu); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } if (psx_taken_BFC38958) goto label_BFC3891C; @@ -180238,7 +185133,7 @@ label_BFC38968: cpu->gpr[13] = cpu->gpr[12] & cpu->gpr[2]; /* 0xBFC389A4: 15A00006 bne $t5, $zero, 0xBFC389C0 */ uint32_t psx_brA_BFC389A4 = cpu->gpr[13]; uint32_t psx_brB_BFC389A4 = cpu->gpr[0]; - int psx_taken_BFC389A4 = (psx_brA_BFC389A4 != psx_brB_BFC389A4); + psx_taken_BFC389A4 = (psx_brA_BFC389A4 != psx_brB_BFC389A4); /* 0xBFC389A8: 00000000 nop */ /* nop */ if (psx_taken_BFC389A4) goto label_BFC389C0; @@ -180255,7 +185150,7 @@ label_BFC389AC: cpu->gpr[15] = cpu->gpr[14] & cpu->gpr[2]; /* 0xBFC389B8: 11E0FFFC beq $t7, $zero, 0xBFC389AC */ uint32_t psx_brA_BFC389B8 = cpu->gpr[15]; uint32_t psx_brB_BFC389B8 = cpu->gpr[0]; - int psx_taken_BFC389B8 = (psx_brA_BFC389B8 == psx_brB_BFC389B8); + psx_taken_BFC389B8 = (psx_brA_BFC389B8 == psx_brB_BFC389B8); /* 0xBFC389BC: 00000000 nop */ /* nop */ if (psx_taken_BFC389B8) goto label_BFC389AC; @@ -180266,7 +185161,7 @@ label_BFC389C0: psx_check_interrupts(cpu); /* 0xBFC389C0: 04E10004 bgez $a3, 0xBFC389D4 */ uint32_t psx_brA_BFC389C0 = cpu->gpr[7]; - int psx_taken_BFC389C0 = ((int32_t)psx_brA_BFC389C0 >= 0); + psx_taken_BFC389C0 = ((int32_t)psx_brA_BFC389C0 >= 0); /* 0xBFC389C4: 30E4000F andi $a0, $a3, 0xF */ cpu->gpr[4] = cpu->gpr[7] & 0xFu; if (psx_taken_BFC389C0) goto label_BFC389D4; @@ -180277,7 +185172,7 @@ label_BFC389C8: psx_check_interrupts(cpu); /* 0xBFC389C8: 10800002 beq $a0, $zero, 0xBFC389D4 */ uint32_t psx_brA_BFC389C8 = cpu->gpr[4]; uint32_t psx_brB_BFC389C8 = cpu->gpr[0]; - int psx_taken_BFC389C8 = (psx_brA_BFC389C8 == psx_brB_BFC389C8); + psx_taken_BFC389C8 = (psx_brA_BFC389C8 == psx_brB_BFC389C8); /* 0xBFC389CC: 00000000 nop */ /* nop */ if (psx_taken_BFC389C8) goto label_BFC389D4; @@ -180297,7 +185192,7 @@ label_BFC389D4: cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC389D8: 10600007 beq $v1, $zero, 0xBFC389F8 */ uint32_t psx_brA_BFC389D8 = cpu->gpr[3]; uint32_t psx_brB_BFC389D8 = cpu->gpr[0]; - int psx_taken_BFC389D8 = (psx_brA_BFC389D8 == psx_brB_BFC389D8); + psx_taken_BFC389D8 = (psx_brA_BFC389D8 == psx_brB_BFC389D8); /* 0xBFC389DC: 2482FFFF addiu $v0, $a0, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[4] + (-1)); if (psx_taken_BFC389D8) goto label_BFC389F8; @@ -180316,7 +185211,7 @@ label_BFC389E0: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (4)); /* 0xBFC389F0: 1460FFFB bne $v1, $zero, 0xBFC389E0 */ uint32_t psx_brA_BFC389F0 = cpu->gpr[3]; uint32_t psx_brB_BFC389F0 = cpu->gpr[0]; - int psx_taken_BFC389F0 = (psx_brA_BFC389F0 != psx_brB_BFC389F0); + psx_taken_BFC389F0 = (psx_brA_BFC389F0 != psx_brB_BFC389F0); /* 0xBFC389F4: AE38FFFC sw $t8, -4($s1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC389F4u); return; } g_debug_last_store_pc = 0xBFC389F4u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC389F0) goto label_BFC389E0; @@ -180327,7 +185222,7 @@ label_BFC389F8: psx_check_interrupts(cpu); /* 0xBFC389F8: 04E10002 bgez $a3, 0xBFC38A04 */ uint32_t psx_brA_BFC389F8 = cpu->gpr[7]; - int psx_taken_BFC389F8 = ((int32_t)psx_brA_BFC389F8 >= 0); + psx_taken_BFC389F8 = ((int32_t)psx_brA_BFC389F8 >= 0); /* 0xBFC389FC: 00E00821 addu $at, $a3, $zero */ cpu->gpr[1] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC389F8) goto label_BFC38A04; @@ -180347,7 +185242,7 @@ label_BFC38A04: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[1] >> 4u); /* 0xBFC38A08: 10400017 beq $v0, $zero, 0xBFC38A68 */ uint32_t psx_brA_BFC38A08 = cpu->gpr[2]; uint32_t psx_brB_BFC38A08 = cpu->gpr[0]; - int psx_taken_BFC38A08 = (psx_brA_BFC38A08 == psx_brB_BFC38A08); + psx_taken_BFC38A08 = (psx_brA_BFC38A08 == psx_brB_BFC38A08); /* 0xBFC38A0C: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38A0Cu); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC38A08) goto label_BFC38A68; @@ -180523,6 +185418,8 @@ label_BFC38AD4: void func_1FC38AF0(CPUState* cpu) { debug_server_log_call_entry(0x1FC38AF0u); + int psx_taken_BFC38AF4 = 0; + int psx_taken_BFC38B18 = 0; label_BFC38AF0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -180532,7 +185429,7 @@ label_BFC38AF0: cpu->gpr[2] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC38AF4: 1040000A beq $v0, $zero, 0xBFC38B20 */ uint32_t psx_brA_BFC38AF4 = cpu->gpr[2]; uint32_t psx_brB_BFC38AF4 = cpu->gpr[0]; - int psx_taken_BFC38AF4 = (psx_brA_BFC38AF4 == psx_brB_BFC38AF4); + psx_taken_BFC38AF4 = (psx_brA_BFC38AF4 == psx_brB_BFC38AF4); /* 0xBFC38AF8: 24A5FFFF addiu $a1, $a1, -1 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (-1)); if (psx_taken_BFC38AF4) goto label_BFC38B20; @@ -180562,7 +185459,7 @@ label_BFC38B08: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (4)); /* 0xBFC38B18: 1440FFFB bne $v0, $zero, 0xBFC38B08 */ uint32_t psx_brA_BFC38B18 = cpu->gpr[2]; uint32_t psx_brB_BFC38B18 = cpu->gpr[0]; - int psx_taken_BFC38B18 = (psx_brA_BFC38B18 != psx_brB_BFC38B18); + psx_taken_BFC38B18 = (psx_brA_BFC38B18 != psx_brB_BFC38B18); /* 0xBFC38B1C: AC6E0000 sw $t6, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38B1Cu); return; } g_debug_last_store_pc = 0xBFC38B1Cu; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC38B18) goto label_BFC38B08; @@ -180769,6 +185666,11 @@ void func_1FC38C68(CPUState* cpu) { default: break; } } + int psx_taken_BFC38CA0 = 0; + int psx_taken_BFC38CB0 = 0; + int psx_taken_BFC38CB8 = 0; + int psx_taken_BFC38CCC = 0; + int psx_taken_BFC38D70 = 0; label_BFC38C68: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -180810,7 +185712,7 @@ label_BFC38C94: /* nop */ /* 0xBFC38CA0: 160E000D bne $s0, $t6, 0xBFC38CD8 */ uint32_t psx_brA_BFC38CA0 = cpu->gpr[16]; uint32_t psx_brB_BFC38CA0 = cpu->gpr[14]; - int psx_taken_BFC38CA0 = (psx_brA_BFC38CA0 != psx_brB_BFC38CA0); + psx_taken_BFC38CA0 = (psx_brA_BFC38CA0 != psx_brB_BFC38CA0); /* 0xBFC38CA4: 8FB80020 lw $t8, 32($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38CA4u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC38CA0) goto label_BFC38CD8; @@ -180831,7 +185733,7 @@ label_BFC38CB0: psx_check_interrupts(cpu); /* 0xBFC38CB0: 10400003 beq $v0, $zero, 0xBFC38CC0 */ uint32_t psx_brA_BFC38CB0 = cpu->gpr[2]; uint32_t psx_brB_BFC38CB0 = cpu->gpr[0]; - int psx_taken_BFC38CB0 = (psx_brA_BFC38CB0 == psx_brB_BFC38CB0); + psx_taken_BFC38CB0 = (psx_brA_BFC38CB0 == psx_brB_BFC38CB0); /* 0xBFC38CB4: 00000000 nop */ /* nop */ if (psx_taken_BFC38CB0) goto label_BFC38CC0; @@ -180842,7 +185744,7 @@ label_BFC38CB8: psx_check_interrupts(cpu); /* 0xBFC38CB8: 10000038 beq $zero, $zero, 0xBFC38D9C */ uint32_t psx_brA_BFC38CB8 = cpu->gpr[0]; uint32_t psx_brB_BFC38CB8 = cpu->gpr[0]; - int psx_taken_BFC38CB8 = (psx_brA_BFC38CB8 == psx_brB_BFC38CB8); + psx_taken_BFC38CB8 = (psx_brA_BFC38CB8 == psx_brB_BFC38CB8); /* 0xBFC38CBC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC38CB8) goto label_BFC38D9C; @@ -180859,7 +185761,7 @@ label_BFC38CC0: /* nop */ /* 0xBFC38CCC: 120FFFF6 beq $s0, $t7, 0xBFC38CA8 */ uint32_t psx_brA_BFC38CCC = cpu->gpr[16]; uint32_t psx_brB_BFC38CCC = cpu->gpr[15]; - int psx_taken_BFC38CCC = (psx_brA_BFC38CCC == psx_brB_BFC38CCC); + psx_taken_BFC38CCC = (psx_brA_BFC38CCC == psx_brB_BFC38CCC); /* 0xBFC38CD0: 00000000 nop */ /* nop */ if (psx_taken_BFC38CCC) goto label_BFC38CA8; @@ -180953,7 +185855,7 @@ label_BFC38CD8: cpu->gpr[11] = cpu->gpr[9] & cpu->gpr[1]; /* 0xBFC38D70: 15600003 bne $t3, $zero, 0xBFC38D80 */ uint32_t psx_brA_BFC38D70 = cpu->gpr[11]; uint32_t psx_brB_BFC38D70 = cpu->gpr[0]; - int psx_taken_BFC38D70 = (psx_brA_BFC38D70 != psx_brB_BFC38D70); + psx_taken_BFC38D70 = (psx_brA_BFC38D70 != psx_brB_BFC38D70); /* 0xBFC38D74: 00000000 nop */ /* nop */ if (psx_taken_BFC38D70) goto label_BFC38D80; @@ -181014,6 +185916,18 @@ void func_1FC38DAC(CPUState* cpu) { default: break; } } + int psx_taken_BFC38DB8 = 0; + int psx_taken_BFC38DC0 = 0; + int psx_taken_BFC38E14 = 0; + int psx_taken_BFC38E1C = 0; + int psx_taken_BFC38E38 = 0; + int psx_taken_BFC38E40 = 0; + int psx_taken_BFC38E60 = 0; + int psx_taken_BFC38E70 = 0; + int psx_taken_BFC38E90 = 0; + int psx_taken_BFC38F34 = 0; + int psx_taken_BFC38F40 = 0; + int psx_taken_BFC38F54 = 0; label_BFC38DAC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -181027,7 +185941,7 @@ label_BFC38DAC: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-48)); /* 0xBFC38DB8: 11C00003 beq $t6, $zero, 0xBFC38DC8 */ uint32_t psx_brA_BFC38DB8 = cpu->gpr[14]; uint32_t psx_brB_BFC38DB8 = cpu->gpr[0]; - int psx_taken_BFC38DB8 = (psx_brA_BFC38DB8 == psx_brB_BFC38DB8); + psx_taken_BFC38DB8 = (psx_brA_BFC38DB8 == psx_brB_BFC38DB8); /* 0xBFC38DBC: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38DBCu); return; } g_debug_last_store_pc = 0xBFC38DBCu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC38DB8) goto label_BFC38DC8; @@ -181038,7 +185952,7 @@ label_BFC38DC0: psx_check_interrupts(cpu); /* 0xBFC38DC0: 1000006E beq $zero, $zero, 0xBFC38F7C */ uint32_t psx_brA_BFC38DC0 = cpu->gpr[0]; uint32_t psx_brB_BFC38DC0 = cpu->gpr[0]; - int psx_taken_BFC38DC0 = (psx_brA_BFC38DC0 == psx_brB_BFC38DC0); + psx_taken_BFC38DC0 = (psx_brA_BFC38DC0 == psx_brB_BFC38DC0); /* 0xBFC38DC4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC38DC0) goto label_BFC38F7C; @@ -181098,7 +186012,7 @@ label_BFC38DFC: cpu->gpr[8] = cpu->gpr[25] & cpu->gpr[18]; /* 0xBFC38E14: 11000003 beq $t0, $zero, 0xBFC38E24 */ uint32_t psx_brA_BFC38E14 = cpu->gpr[8]; uint32_t psx_brB_BFC38E14 = cpu->gpr[0]; - int psx_taken_BFC38E14 = (psx_brA_BFC38E14 == psx_brB_BFC38E14); + psx_taken_BFC38E14 = (psx_brA_BFC38E14 == psx_brB_BFC38E14); /* 0xBFC38E18: 00000000 nop */ /* nop */ if (psx_taken_BFC38E14) goto label_BFC38E24; @@ -181109,7 +186023,7 @@ label_BFC38E1C: psx_check_interrupts(cpu); /* 0xBFC38E1C: 10000047 beq $zero, $zero, 0xBFC38F3C */ uint32_t psx_brA_BFC38E1C = cpu->gpr[0]; uint32_t psx_brB_BFC38E1C = cpu->gpr[0]; - int psx_taken_BFC38E1C = (psx_brA_BFC38E1C == psx_brB_BFC38E1C); + psx_taken_BFC38E1C = (psx_brA_BFC38E1C == psx_brB_BFC38E1C); /* 0xBFC38E20: 24100001 addiu $s0, $zero, 1 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC38E1C) goto label_BFC38F3C; @@ -181130,7 +186044,7 @@ label_BFC38E24: /* nop */ /* 0xBFC38E38: 152A0003 bne $t1, $t2, 0xBFC38E48 */ uint32_t psx_brA_BFC38E38 = cpu->gpr[9]; uint32_t psx_brB_BFC38E38 = cpu->gpr[10]; - int psx_taken_BFC38E38 = (psx_brA_BFC38E38 != psx_brB_BFC38E38); + psx_taken_BFC38E38 = (psx_brA_BFC38E38 != psx_brB_BFC38E38); /* 0xBFC38E3C: 00000000 nop */ /* nop */ if (psx_taken_BFC38E38) goto label_BFC38E48; @@ -181141,7 +186055,7 @@ label_BFC38E40: psx_check_interrupts(cpu); /* 0xBFC38E40: 1000003E beq $zero, $zero, 0xBFC38F3C */ uint32_t psx_brA_BFC38E40 = cpu->gpr[0]; uint32_t psx_brB_BFC38E40 = cpu->gpr[0]; - int psx_taken_BFC38E40 = (psx_brA_BFC38E40 == psx_brB_BFC38E40); + psx_taken_BFC38E40 = (psx_brA_BFC38E40 == psx_brB_BFC38E40); /* 0xBFC38E44: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC38E40) goto label_BFC38F3C; @@ -181164,7 +186078,7 @@ label_BFC38E48: cpu->gpr[13] = cpu->gpr[12] & cpu->gpr[16]; /* 0xBFC38E60: 15A0000D bne $t5, $zero, 0xBFC38E98 */ uint32_t psx_brA_BFC38E60 = cpu->gpr[13]; uint32_t psx_brB_BFC38E60 = cpu->gpr[0]; - int psx_taken_BFC38E60 = (psx_brA_BFC38E60 != psx_brB_BFC38E60); + psx_taken_BFC38E60 = (psx_brA_BFC38E60 != psx_brB_BFC38E60); /* 0xBFC38E64: 00000000 nop */ /* nop */ if (psx_taken_BFC38E60) goto label_BFC38E98; @@ -181185,7 +186099,7 @@ label_BFC38E70: psx_check_interrupts(cpu); /* 0xBFC38E70: 14400009 bne $v0, $zero, 0xBFC38E98 */ uint32_t psx_brA_BFC38E70 = cpu->gpr[2]; uint32_t psx_brB_BFC38E70 = cpu->gpr[0]; - int psx_taken_BFC38E70 = (psx_brA_BFC38E70 != psx_brB_BFC38E70); + psx_taken_BFC38E70 = (psx_brA_BFC38E70 != psx_brB_BFC38E70); /* 0xBFC38E74: 00000000 nop */ /* nop */ if (psx_taken_BFC38E70) goto label_BFC38E98; @@ -181208,7 +186122,7 @@ label_BFC38E78: cpu->gpr[24] = cpu->gpr[15] & cpu->gpr[16]; /* 0xBFC38E90: 1300FFF5 beq $t8, $zero, 0xBFC38E68 */ uint32_t psx_brA_BFC38E90 = cpu->gpr[24]; uint32_t psx_brB_BFC38E90 = cpu->gpr[0]; - int psx_taken_BFC38E90 = (psx_brA_BFC38E90 == psx_brB_BFC38E90); + psx_taken_BFC38E90 = (psx_brA_BFC38E90 == psx_brB_BFC38E90); /* 0xBFC38E94: 00000000 nop */ /* nop */ if (psx_taken_BFC38E90) goto label_BFC38E68; @@ -181303,7 +186217,7 @@ label_BFC38F20: cpu->gpr[10] = cpu->gpr[9] & 0x3Fu; /* 0xBFC38F34: 1000FFB1 beq $zero, $zero, 0xBFC38DFC */ uint32_t psx_brA_BFC38F34 = cpu->gpr[0]; uint32_t psx_brB_BFC38F34 = cpu->gpr[0]; - int psx_taken_BFC38F34 = (psx_brA_BFC38F34 == psx_brB_BFC38F34); + psx_taken_BFC38F34 = (psx_brA_BFC38F34 == psx_brB_BFC38F34); /* 0xBFC38F38: AC2A929C sw $t2, -28004($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28004)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38F38u); return; } g_debug_last_store_pc = 0xBFC38F38u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC38F34) goto label_BFC38DFC; @@ -181316,7 +186230,7 @@ label_BFC38F3C: cpu->gpr[1] = 0x80080000u; /* 0xBFC38F40: 16000008 bne $s0, $zero, 0xBFC38F64 */ uint32_t psx_brA_BFC38F40 = cpu->gpr[16]; uint32_t psx_brB_BFC38F40 = cpu->gpr[0]; - int psx_taken_BFC38F40 = (psx_brA_BFC38F40 != psx_brB_BFC38F40); + psx_taken_BFC38F40 = (psx_brA_BFC38F40 != psx_brB_BFC38F40); /* 0xBFC38F44: AC2092C4 sw $zero, -27964($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-27964)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38F44u); return; } g_debug_last_store_pc = 0xBFC38F44u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC38F40) goto label_BFC38F64; @@ -181333,7 +186247,7 @@ label_BFC38F48: /* nop */ /* 0xBFC38F54: 10400003 beq $v0, $zero, 0xBFC38F64 */ uint32_t psx_brA_BFC38F54 = cpu->gpr[2]; uint32_t psx_brB_BFC38F54 = cpu->gpr[0]; - int psx_taken_BFC38F54 = (psx_brA_BFC38F54 == psx_brB_BFC38F54); + psx_taken_BFC38F54 = (psx_brA_BFC38F54 == psx_brB_BFC38F54); /* 0xBFC38F58: 00000000 nop */ /* nop */ if (psx_taken_BFC38F54) goto label_BFC38F64; @@ -181381,6 +186295,13 @@ label_BFC38F7C: void func_1FC38F8C(CPUState* cpu) { debug_server_log_call_entry(0x1FC38F8Cu); + int psx_taken_BFC38F8C = 0; + int psx_taken_BFC38FC4 = 0; + int psx_taken_BFC39010 = 0; + int psx_taken_BFC39018 = 0; + int psx_taken_BFC39020 = 0; + int psx_taken_BFC39064 = 0; + int psx_taken_BFC3906C = 0; label_BFC38F8C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -181388,7 +186309,7 @@ label_BFC38F8C: psx_check_interrupts(cpu); /* 0xBFC38F8C: 10000022 beq $zero, $zero, 0xBFC39018 */ uint32_t psx_brA_BFC38F8C = cpu->gpr[0]; uint32_t psx_brB_BFC38F8C = cpu->gpr[0]; - int psx_taken_BFC38F8C = (psx_brA_BFC38F8C == psx_brB_BFC38F8C); + psx_taken_BFC38F8C = (psx_brA_BFC38F8C == psx_brB_BFC38F8C); /* 0xBFC38F90: 00000000 nop */ /* nop */ if (psx_taken_BFC38F8C) goto label_BFC39018; @@ -181423,7 +186344,7 @@ label_BFC38F94: cpu->gpr[1] = 0x80080000u; /* 0xBFC38FC4: 1000001B beq $zero, $zero, 0xBFC39034 */ uint32_t psx_brA_BFC38FC4 = cpu->gpr[0]; uint32_t psx_brB_BFC38FC4 = cpu->gpr[0]; - int psx_taken_BFC38FC4 = (psx_brA_BFC38FC4 == psx_brB_BFC38FC4); + psx_taken_BFC38FC4 = (psx_brA_BFC38FC4 == psx_brB_BFC38FC4); /* 0xBFC38FC8: AC389298 sw $t8, -28008($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28008)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC38FC8u); return; } g_debug_last_store_pc = 0xBFC38FC8u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC38FC4) goto label_BFC39034; @@ -181468,7 +186389,7 @@ label_BFC38FCC: cpu->gpr[1] = 0x80080000u; /* 0xBFC39010: 10000008 beq $zero, $zero, 0xBFC39034 */ uint32_t psx_brA_BFC39010 = cpu->gpr[0]; uint32_t psx_brB_BFC39010 = cpu->gpr[0]; - int psx_taken_BFC39010 = (psx_brA_BFC39010 == psx_brB_BFC39010); + psx_taken_BFC39010 = (psx_brA_BFC39010 == psx_brB_BFC39010); /* 0xBFC39014: AC2C9298 sw $t4, -28008($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-28008)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC39014u); return; } g_debug_last_store_pc = 0xBFC39014u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC39010) goto label_BFC39034; @@ -181479,7 +186400,7 @@ label_BFC39018: psx_check_interrupts(cpu); /* 0xBFC39018: 1080FFDE beq $a0, $zero, 0xBFC38F94 */ uint32_t psx_brA_BFC39018 = cpu->gpr[4]; uint32_t psx_brB_BFC39018 = cpu->gpr[0]; - int psx_taken_BFC39018 = (psx_brA_BFC39018 == psx_brB_BFC39018); + psx_taken_BFC39018 = (psx_brA_BFC39018 == psx_brB_BFC39018); /* 0xBFC3901C: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC39018) goto label_BFC38F94; @@ -181490,7 +186411,7 @@ label_BFC39020: psx_check_interrupts(cpu); /* 0xBFC39020: 1081FFEA beq $a0, $at, 0xBFC38FCC */ uint32_t psx_brA_BFC39020 = cpu->gpr[4]; uint32_t psx_brB_BFC39020 = cpu->gpr[1]; - int psx_taken_BFC39020 = (psx_brA_BFC39020 == psx_brB_BFC39020); + psx_taken_BFC39020 = (psx_brA_BFC39020 == psx_brB_BFC39020); /* 0xBFC39024: 00000000 nop */ /* nop */ if (psx_taken_BFC39020) goto label_BFC38FCC; @@ -181536,7 +186457,7 @@ label_BFC39034: cpu->gpr[25] = cpu->gpr[24] & 0x1000u; /* 0xBFC39064: 13200004 beq $t9, $zero, 0xBFC39078 */ uint32_t psx_brA_BFC39064 = cpu->gpr[25]; uint32_t psx_brB_BFC39064 = cpu->gpr[0]; - int psx_taken_BFC39064 = (psx_brA_BFC39064 == psx_brB_BFC39064); + psx_taken_BFC39064 = (psx_brA_BFC39064 == psx_brB_BFC39064); /* 0xBFC39068: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC39064) goto label_BFC39078; @@ -181547,7 +186468,7 @@ label_BFC3906C: psx_check_interrupts(cpu); /* 0xBFC3906C: 10000002 beq $zero, $zero, 0xBFC39078 */ uint32_t psx_brA_BFC3906C = cpu->gpr[0]; uint32_t psx_brB_BFC3906C = cpu->gpr[0]; - int psx_taken_BFC3906C = (psx_brA_BFC3906C == psx_brB_BFC3906C); + psx_taken_BFC3906C = (psx_brA_BFC3906C == psx_brB_BFC3906C); /* 0xBFC39070: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3906C) goto label_BFC39078; @@ -181583,6 +186504,32 @@ void func_1FC39080(CPUState* cpu) { default: break; } } + int psx_taken_BFC39084 = 0; + int psx_taken_BFC390B0 = 0; + int psx_taken_BFC390C0 = 0; + int psx_taken_BFC390D4 = 0; + int psx_taken_BFC390E8 = 0; + int psx_taken_BFC39108 = 0; + int psx_taken_BFC3912C = 0; + int psx_taken_BFC39144 = 0; + int psx_taken_BFC39158 = 0; + int psx_taken_BFC39178 = 0; + int psx_taken_BFC3918C = 0; + int psx_taken_BFC39194 = 0; + int psx_taken_BFC391B4 = 0; + int psx_taken_BFC391C0 = 0; + int psx_taken_BFC391D4 = 0; + int psx_taken_BFC391E4 = 0; + int psx_taken_BFC391F8 = 0; + int psx_taken_BFC39218 = 0; + int psx_taken_BFC39220 = 0; + int psx_taken_BFC3923C = 0; + int psx_taken_BFC3925C = 0; + int psx_taken_BFC3927C = 0; + int psx_taken_BFC39288 = 0; + int psx_taken_BFC392A0 = 0; + int psx_taken_BFC392B0 = 0; + int psx_taken_BFC392C0 = 0; label_BFC39080: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -181592,7 +186539,7 @@ label_BFC39080: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-40)); /* 0xBFC39084: 14800068 bne $a0, $zero, 0xBFC39228 */ uint32_t psx_brA_BFC39084 = cpu->gpr[4]; uint32_t psx_brB_BFC39084 = cpu->gpr[0]; - int psx_taken_BFC39084 = (psx_brA_BFC39084 != psx_brB_BFC39084); + psx_taken_BFC39084 = (psx_brA_BFC39084 != psx_brB_BFC39084); /* 0xBFC39088: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC39088u); return; } g_debug_last_store_pc = 0xBFC39088u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC39084) goto label_BFC39228; @@ -181627,7 +186574,7 @@ label_BFC3909C: /* nop */ /* 0xBFC390B0: 15CF0006 bne $t6, $t7, 0xBFC390CC */ uint32_t psx_brA_BFC390B0 = cpu->gpr[14]; uint32_t psx_brB_BFC390B0 = cpu->gpr[15]; - int psx_taken_BFC390B0 = (psx_brA_BFC390B0 != psx_brB_BFC390B0); + psx_taken_BFC390B0 = (psx_brA_BFC390B0 != psx_brB_BFC390B0); /* 0xBFC390B4: 3C100100 lui $s0, 0x100 */ cpu->gpr[16] = 0x01000000u; if (psx_taken_BFC390B0) goto label_BFC390CC; @@ -181642,7 +186589,7 @@ label_BFC390B8: cpu->gpr[17] = 0x60000000u; /* 0xBFC390C0: 1000001E beq $zero, $zero, 0xBFC3913C */ uint32_t psx_brA_BFC390C0 = cpu->gpr[0]; uint32_t psx_brB_BFC390C0 = cpu->gpr[0]; - int psx_taken_BFC390C0 = (psx_brA_BFC390C0 == psx_brB_BFC390C0); + psx_taken_BFC390C0 = (psx_brA_BFC390C0 == psx_brB_BFC390C0); /* 0xBFC390C4: 3C100100 lui $s0, 0x100 */ cpu->gpr[16] = 0x01000000u; if (psx_taken_BFC390C0) goto label_BFC3913C; @@ -181670,7 +186617,7 @@ label_BFC390D4: psx_check_interrupts(cpu); /* 0xBFC390D4: 10400006 beq $v0, $zero, 0xBFC390F0 */ uint32_t psx_brA_BFC390D4 = cpu->gpr[2]; uint32_t psx_brB_BFC390D4 = cpu->gpr[0]; - int psx_taken_BFC390D4 = (psx_brA_BFC390D4 == psx_brB_BFC390D4); + psx_taken_BFC390D4 = (psx_brA_BFC390D4 == psx_brB_BFC390D4); /* 0xBFC390D8: 00000000 nop */ /* nop */ if (psx_taken_BFC390D4) goto label_BFC390F0; @@ -181687,7 +186634,7 @@ label_BFC390DC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC390E4u); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC390E8: 1000007B beq $zero, $zero, 0xBFC392D8 */ uint32_t psx_brA_BFC390E8 = cpu->gpr[0]; uint32_t psx_brB_BFC390E8 = cpu->gpr[0]; - int psx_taken_BFC390E8 = (psx_brA_BFC390E8 == psx_brB_BFC390E8); + psx_taken_BFC390E8 = (psx_brA_BFC390E8 == psx_brB_BFC390E8); /* 0xBFC390EC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC390E8) goto label_BFC392D8; @@ -181710,7 +186657,7 @@ label_BFC390F0: cpu->gpr[8] = cpu->gpr[25] & cpu->gpr[16]; /* 0xBFC39108: 15000003 bne $t0, $zero, 0xBFC39118 */ uint32_t psx_brA_BFC39108 = cpu->gpr[8]; uint32_t psx_brB_BFC39108 = cpu->gpr[0]; - int psx_taken_BFC39108 = (psx_brA_BFC39108 != psx_brB_BFC39108); + psx_taken_BFC39108 = (psx_brA_BFC39108 != psx_brB_BFC39108); /* 0xBFC3910C: 00000000 nop */ /* nop */ if (psx_taken_BFC39108) goto label_BFC39118; @@ -181741,7 +186688,7 @@ label_BFC39118: /* nop */ /* 0xBFC3912C: 152AFFE7 bne $t1, $t2, 0xBFC390CC */ uint32_t psx_brA_BFC3912C = cpu->gpr[9]; uint32_t psx_brB_BFC3912C = cpu->gpr[10]; - int psx_taken_BFC3912C = (psx_brA_BFC3912C != psx_brB_BFC3912C); + psx_taken_BFC3912C = (psx_brA_BFC3912C != psx_brB_BFC3912C); /* 0xBFC39130: 00000000 nop */ /* nop */ if (psx_taken_BFC3912C) goto label_BFC390CC; @@ -181771,7 +186718,7 @@ label_BFC39144: psx_check_interrupts(cpu); /* 0xBFC39144: 10400006 beq $v0, $zero, 0xBFC39160 */ uint32_t psx_brA_BFC39144 = cpu->gpr[2]; uint32_t psx_brB_BFC39144 = cpu->gpr[0]; - int psx_taken_BFC39144 = (psx_brA_BFC39144 == psx_brB_BFC39144); + psx_taken_BFC39144 = (psx_brA_BFC39144 == psx_brB_BFC39144); /* 0xBFC39148: 00000000 nop */ /* nop */ if (psx_taken_BFC39144) goto label_BFC39160; @@ -181788,7 +186735,7 @@ label_BFC3914C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC39154u); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC39158: 1000005F beq $zero, $zero, 0xBFC392D8 */ uint32_t psx_brA_BFC39158 = cpu->gpr[0]; uint32_t psx_brB_BFC39158 = cpu->gpr[0]; - int psx_taken_BFC39158 = (psx_brA_BFC39158 == psx_brB_BFC39158); + psx_taken_BFC39158 = (psx_brA_BFC39158 == psx_brB_BFC39158); /* 0xBFC3915C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC39158) goto label_BFC392D8; @@ -181811,7 +186758,7 @@ label_BFC39160: cpu->gpr[12] = cpu->gpr[11] & cpu->gpr[17]; /* 0xBFC39178: 15800008 bne $t4, $zero, 0xBFC3919C */ uint32_t psx_brA_BFC39178 = cpu->gpr[12]; uint32_t psx_brB_BFC39178 = cpu->gpr[0]; - int psx_taken_BFC39178 = (psx_brA_BFC39178 != psx_brB_BFC39178); + psx_taken_BFC39178 = (psx_brA_BFC39178 != psx_brB_BFC39178); /* 0xBFC3917C: 00000000 nop */ /* nop */ if (psx_taken_BFC39178) goto label_BFC3919C; @@ -181828,7 +186775,7 @@ label_BFC39180: cpu->gpr[14] = cpu->gpr[13] & cpu->gpr[18]; /* 0xBFC3918C: 11C0FFEB beq $t6, $zero, 0xBFC3913C */ uint32_t psx_brA_BFC3918C = cpu->gpr[14]; uint32_t psx_brB_BFC3918C = cpu->gpr[0]; - int psx_taken_BFC3918C = (psx_brA_BFC3918C == psx_brB_BFC3918C); + psx_taken_BFC3918C = (psx_brA_BFC3918C == psx_brB_BFC3918C); /* 0xBFC39190: 00000000 nop */ /* nop */ if (psx_taken_BFC3918C) goto label_BFC3913C; @@ -181839,7 +186786,7 @@ label_BFC39194: psx_check_interrupts(cpu); /* 0xBFC39194: 1000000C beq $zero, $zero, 0xBFC391C8 */ uint32_t psx_brA_BFC39194 = cpu->gpr[0]; uint32_t psx_brB_BFC39194 = cpu->gpr[0]; - int psx_taken_BFC39194 = (psx_brA_BFC39194 == psx_brB_BFC39194); + psx_taken_BFC39194 = (psx_brA_BFC39194 == psx_brB_BFC39194); /* 0xBFC39198: 3C100400 lui $s0, 0x400 */ cpu->gpr[16] = 0x04000000u; if (psx_taken_BFC39194) goto label_BFC391C8; @@ -181862,7 +186809,7 @@ label_BFC3919C: cpu->gpr[25] = cpu->gpr[24] & cpu->gpr[16]; /* 0xBFC391B4: 1720FFE1 bne $t9, $zero, 0xBFC3913C */ uint32_t psx_brA_BFC391B4 = cpu->gpr[25]; uint32_t psx_brB_BFC391B4 = cpu->gpr[0]; - int psx_taken_BFC391B4 = (psx_brA_BFC391B4 != psx_brB_BFC391B4); + psx_taken_BFC391B4 = (psx_brA_BFC391B4 != psx_brB_BFC391B4); /* 0xBFC391B8: 00000000 nop */ /* nop */ if (psx_taken_BFC391B4) goto label_BFC3913C; @@ -181875,7 +186822,7 @@ label_BFC391BC: cpu->gpr[16] = 0x04000000u; /* 0xBFC391C0: 10000001 beq $zero, $zero, 0xBFC391C8 */ uint32_t psx_brA_BFC391C0 = cpu->gpr[0]; uint32_t psx_brB_BFC391C0 = cpu->gpr[0]; - int psx_taken_BFC391C0 = (psx_brA_BFC391C0 == psx_brB_BFC391C0); + psx_taken_BFC391C0 = (psx_brA_BFC391C0 == psx_brB_BFC391C0); /* 0xBFC391C4: AC500000 sw $s0, 0($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC391C4u); return; } g_debug_last_store_pc = 0xBFC391C4u; cpu->write_word(psx_addr, cpu->gpr[16]); } if (psx_taken_BFC391C0) goto label_BFC391C8; @@ -181892,7 +186839,7 @@ label_BFC391C8: cpu->gpr[9] = cpu->gpr[8] & cpu->gpr[16]; /* 0xBFC391D4: 1520003C bne $t1, $zero, 0xBFC392C8 */ uint32_t psx_brA_BFC391D4 = cpu->gpr[9]; uint32_t psx_brB_BFC391D4 = cpu->gpr[0]; - int psx_taken_BFC391D4 = (psx_brA_BFC391D4 != psx_brB_BFC391D4); + psx_taken_BFC391D4 = (psx_brA_BFC391D4 != psx_brB_BFC391D4); /* 0xBFC391D8: 00000000 nop */ /* nop */ if (psx_taken_BFC391D4) goto label_BFC392C8; @@ -181913,7 +186860,7 @@ label_BFC391E4: psx_check_interrupts(cpu); /* 0xBFC391E4: 10400006 beq $v0, $zero, 0xBFC39200 */ uint32_t psx_brA_BFC391E4 = cpu->gpr[2]; uint32_t psx_brB_BFC391E4 = cpu->gpr[0]; - int psx_taken_BFC391E4 = (psx_brA_BFC391E4 == psx_brB_BFC391E4); + psx_taken_BFC391E4 = (psx_brA_BFC391E4 == psx_brB_BFC391E4); /* 0xBFC391E8: 00000000 nop */ /* nop */ if (psx_taken_BFC391E4) goto label_BFC39200; @@ -181930,7 +186877,7 @@ label_BFC391EC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC391F4u); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC391F8: 10000037 beq $zero, $zero, 0xBFC392D8 */ uint32_t psx_brA_BFC391F8 = cpu->gpr[0]; uint32_t psx_brB_BFC391F8 = cpu->gpr[0]; - int psx_taken_BFC391F8 = (psx_brA_BFC391F8 == psx_brB_BFC391F8); + psx_taken_BFC391F8 = (psx_brA_BFC391F8 == psx_brB_BFC391F8); /* 0xBFC391FC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC391F8) goto label_BFC392D8; @@ -181953,7 +186900,7 @@ label_BFC39200: cpu->gpr[11] = cpu->gpr[10] & cpu->gpr[16]; /* 0xBFC39218: 1160FFF0 beq $t3, $zero, 0xBFC391DC */ uint32_t psx_brA_BFC39218 = cpu->gpr[11]; uint32_t psx_brB_BFC39218 = cpu->gpr[0]; - int psx_taken_BFC39218 = (psx_brA_BFC39218 == psx_brB_BFC39218); + psx_taken_BFC39218 = (psx_brA_BFC39218 == psx_brB_BFC39218); /* 0xBFC3921C: 00000000 nop */ /* nop */ if (psx_taken_BFC39218) goto label_BFC391DC; @@ -181964,7 +186911,7 @@ label_BFC39220: psx_check_interrupts(cpu); /* 0xBFC39220: 1000002A beq $zero, $zero, 0xBFC392CC */ uint32_t psx_brA_BFC39220 = cpu->gpr[0]; uint32_t psx_brB_BFC39220 = cpu->gpr[0]; - int psx_taken_BFC39220 = (psx_brA_BFC39220 == psx_brB_BFC39220); + psx_taken_BFC39220 = (psx_brA_BFC39220 == psx_brB_BFC39220); /* 0xBFC39224: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC39224u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC39220) goto label_BFC392CC; @@ -181985,7 +186932,7 @@ label_BFC39228: /* nop */ /* 0xBFC3923C: 118D0009 beq $t4, $t5, 0xBFC39264 */ uint32_t psx_brA_BFC3923C = cpu->gpr[12]; uint32_t psx_brB_BFC3923C = cpu->gpr[13]; - int psx_taken_BFC3923C = (psx_brA_BFC3923C == psx_brB_BFC3923C); + psx_taken_BFC3923C = (psx_brA_BFC3923C == psx_brB_BFC3923C); /* 0xBFC39240: 00000000 nop */ /* nop */ if (psx_taken_BFC3923C) goto label_BFC39264; @@ -182008,7 +186955,7 @@ label_BFC39244: cpu->gpr[2] = cpu->gpr[14] - cpu->gpr[15]; /* 0xBFC3925C: 1000001E beq $zero, $zero, 0xBFC392D8 */ uint32_t psx_brA_BFC3925C = cpu->gpr[0]; uint32_t psx_brB_BFC3925C = cpu->gpr[0]; - int psx_taken_BFC3925C = (psx_brA_BFC3925C == psx_brB_BFC3925C); + psx_taken_BFC3925C = (psx_brA_BFC3925C == psx_brB_BFC3925C); /* 0xBFC39260: 3042003F andi $v0, $v0, 0x3F */ cpu->gpr[2] = cpu->gpr[2] & 0x3Fu; if (psx_taken_BFC3925C) goto label_BFC392D8; @@ -182031,7 +186978,7 @@ label_BFC39264: cpu->gpr[25] = cpu->gpr[24] & cpu->gpr[18]; /* 0xBFC3927C: 17200004 bne $t9, $zero, 0xBFC39290 */ uint32_t psx_brA_BFC3927C = cpu->gpr[25]; uint32_t psx_brB_BFC3927C = cpu->gpr[0]; - int psx_taken_BFC3927C = (psx_brA_BFC3927C != psx_brB_BFC3927C); + psx_taken_BFC3927C = (psx_brA_BFC3927C != psx_brB_BFC3927C); /* 0xBFC39280: 00000000 nop */ /* nop */ if (psx_taken_BFC3927C) goto label_BFC39290; @@ -182044,7 +186991,7 @@ label_BFC39284: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC39284u); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC39288: 10000013 beq $zero, $zero, 0xBFC392D8 */ uint32_t psx_brA_BFC39288 = cpu->gpr[0]; uint32_t psx_brB_BFC39288 = cpu->gpr[0]; - int psx_taken_BFC39288 = (psx_brA_BFC39288 == psx_brB_BFC39288); + psx_taken_BFC39288 = (psx_brA_BFC39288 == psx_brB_BFC39288); /* 0xBFC3928C: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC39288) goto label_BFC392D8; @@ -182063,7 +187010,7 @@ label_BFC39290: cpu->gpr[9] = cpu->gpr[8] & cpu->gpr[16]; /* 0xBFC392A0: 11200006 beq $t1, $zero, 0xBFC392BC */ uint32_t psx_brA_BFC392A0 = cpu->gpr[9]; uint32_t psx_brB_BFC392A0 = cpu->gpr[0]; - int psx_taken_BFC392A0 = (psx_brA_BFC392A0 == psx_brB_BFC392A0); + psx_taken_BFC392A0 = (psx_brA_BFC392A0 == psx_brB_BFC392A0); /* 0xBFC392A4: 8FB00024 lw $s0, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC392A4u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } if (psx_taken_BFC392A0) goto label_BFC392BC; @@ -182078,7 +187025,7 @@ label_BFC392A8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC392ACu); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC392B0: 10000009 beq $zero, $zero, 0xBFC392D8 */ uint32_t psx_brA_BFC392B0 = cpu->gpr[0]; uint32_t psx_brB_BFC392B0 = cpu->gpr[0]; - int psx_taken_BFC392B0 = (psx_brA_BFC392B0 == psx_brB_BFC392B0); + psx_taken_BFC392B0 = (psx_brA_BFC392B0 == psx_brB_BFC392B0); /* 0xBFC392B4: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC392B0) goto label_BFC392D8; @@ -182098,7 +187045,7 @@ label_BFC392BC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC392BCu); return; } cpu->gpr[18] = cpu->read_word(psx_addr); } /* 0xBFC392C0: 10000005 beq $zero, $zero, 0xBFC392D8 */ uint32_t psx_brA_BFC392C0 = cpu->gpr[0]; uint32_t psx_brB_BFC392C0 = cpu->gpr[0]; - int psx_taken_BFC392C0 = (psx_brA_BFC392C0 == psx_brB_BFC392C0); + psx_taken_BFC392C0 = (psx_brA_BFC392C0 == psx_brB_BFC392C0); /* 0xBFC392C4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC392C0) goto label_BFC392D8; @@ -182167,6 +187114,12 @@ void func_1FC39300(CPUState* cpu) { default: break; } } + int psx_taken_BFC39318 = 0; + int psx_taken_BFC39338 = 0; + int psx_taken_BFC39340 = 0; + int psx_taken_BFC39364 = 0; + int psx_taken_BFC3936C = 0; + int psx_taken_BFC393B0 = 0; label_BFC39300: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -182186,7 +187139,7 @@ label_BFC39300: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (int32_t)cpu->gpr[15] ? 1 : 0); /* 0xBFC39318: 10200027 beq $at, $zero, 0xBFC393B8 */ uint32_t psx_brA_BFC39318 = cpu->gpr[1]; uint32_t psx_brB_BFC39318 = cpu->gpr[0]; - int psx_taken_BFC39318 = (psx_brA_BFC39318 == psx_brB_BFC39318); + psx_taken_BFC39318 = (psx_brA_BFC39318 == psx_brB_BFC39318); /* 0xBFC3931C: AFBF001C sw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3931Cu); return; } g_debug_last_store_pc = 0xBFC3931Cu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC39318) goto label_BFC393B8; @@ -182209,7 +187162,7 @@ label_BFC39320: cpu->gpr[25] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC39338: 13200004 beq $t9, $zero, 0xBFC3934C */ uint32_t psx_brA_BFC39338 = cpu->gpr[25]; uint32_t psx_brB_BFC39338 = cpu->gpr[0]; - int psx_taken_BFC39338 = (psx_brA_BFC39338 == psx_brB_BFC39338); + psx_taken_BFC39338 = (psx_brA_BFC39338 == psx_brB_BFC39338); /* 0xBFC3933C: 00003821 addu $a3, $zero, $zero */ cpu->gpr[7] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC39338) goto label_BFC3934C; @@ -182220,7 +187173,7 @@ label_BFC39340: psx_check_interrupts(cpu); /* 0xBFC39340: 10000002 beq $zero, $zero, 0xBFC3934C */ uint32_t psx_brA_BFC39340 = cpu->gpr[0]; uint32_t psx_brB_BFC39340 = cpu->gpr[0]; - int psx_taken_BFC39340 = (psx_brA_BFC39340 == psx_brB_BFC39340); + psx_taken_BFC39340 = (psx_brA_BFC39340 == psx_brB_BFC39340); /* 0xBFC39344: 24070001 addiu $a3, $zero, 1 */ cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC39340) goto label_BFC3934C; @@ -182250,7 +187203,7 @@ label_BFC3934C: cpu->gpr[10] = cpu->gpr[9] & cpu->gpr[1]; /* 0xBFC39364: 11400004 beq $t2, $zero, 0xBFC39378 */ uint32_t psx_brA_BFC39364 = cpu->gpr[10]; uint32_t psx_brB_BFC39364 = cpu->gpr[0]; - int psx_taken_BFC39364 = (psx_brA_BFC39364 == psx_brB_BFC39364); + psx_taken_BFC39364 = (psx_brA_BFC39364 == psx_brB_BFC39364); /* 0xBFC39368: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC39364) goto label_BFC39378; @@ -182261,7 +187214,7 @@ label_BFC3936C: psx_check_interrupts(cpu); /* 0xBFC3936C: 10000002 beq $zero, $zero, 0xBFC39378 */ uint32_t psx_brA_BFC3936C = cpu->gpr[0]; uint32_t psx_brB_BFC3936C = cpu->gpr[0]; - int psx_taken_BFC3936C = (psx_brA_BFC3936C == psx_brB_BFC3936C); + psx_taken_BFC3936C = (psx_brA_BFC3936C == psx_brB_BFC3936C); /* 0xBFC39370: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3936C) goto label_BFC39378; @@ -182319,7 +187272,7 @@ label_BFC393B0: psx_check_interrupts(cpu); /* 0xBFC393B0: 10000002 beq $zero, $zero, 0xBFC393BC */ uint32_t psx_brA_BFC393B0 = cpu->gpr[0]; uint32_t psx_brB_BFC393B0 = cpu->gpr[0]; - int psx_taken_BFC393B0 = (psx_brA_BFC393B0 == psx_brB_BFC393B0); + psx_taken_BFC393B0 = (psx_brA_BFC393B0 == psx_brB_BFC393B0); /* 0xBFC393B4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC393B0) goto label_BFC393BC; @@ -182347,6 +187300,8 @@ label_BFC393BC: void func_1FC393CC(CPUState* cpu) { debug_server_log_call_entry(0x1FC393CCu); + int psx_taken_BFC393D0 = 0; + int psx_taken_BFC393EC = 0; label_BFC393CC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -182356,7 +187311,7 @@ label_BFC393CC: cpu->gpr[2] = cpu->gpr[6] + cpu->gpr[0]; /* 0xBFC393D0: 10400008 beq $v0, $zero, 0xBFC393F4 */ uint32_t psx_brA_BFC393D0 = cpu->gpr[2]; uint32_t psx_brB_BFC393D0 = cpu->gpr[0]; - int psx_taken_BFC393D0 = (psx_brA_BFC393D0 == psx_brB_BFC393D0); + psx_taken_BFC393D0 = (psx_brA_BFC393D0 == psx_brB_BFC393D0); /* 0xBFC393D4: 24C6FFFF addiu $a2, $a2, -1 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (-1)); if (psx_taken_BFC393D0) goto label_BFC393F4; @@ -182377,7 +187332,7 @@ label_BFC393D8: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (1)); /* 0xBFC393EC: 1440FFFA bne $v0, $zero, 0xBFC393D8 */ uint32_t psx_brA_BFC393EC = cpu->gpr[2]; uint32_t psx_brB_BFC393EC = cpu->gpr[0]; - int psx_taken_BFC393EC = (psx_brA_BFC393EC != psx_brB_BFC393EC); + psx_taken_BFC393EC = (psx_brA_BFC393EC != psx_brB_BFC393EC); /* 0xBFC393F0: A08EFFFF sb $t6, -1($a0) */ g_debug_last_store_pc = 0xBFC393F0u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[4] + (-1)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC393EC) goto label_BFC393D8; @@ -182403,6 +187358,15 @@ void func_1FC39410(CPUState* cpu) { default: break; } } + int psx_taken_BFC39438 = 0; + int psx_taken_BFC3944C = 0; + int psx_taken_BFC3945C = 0; + int psx_taken_BFC39470 = 0; + int psx_taken_BFC39480 = 0; + int psx_taken_BFC3948C = 0; + int psx_taken_BFC39494 = 0; + int psx_taken_BFC3949C = 0; + int psx_taken_BFC394A4 = 0; label_BFC39410: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -182430,7 +187394,7 @@ label_BFC39410: cpu->gpr[3] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC39438: 10000016 beq $zero, $zero, 0xBFC39494 */ uint32_t psx_brA_BFC39438 = cpu->gpr[0]; uint32_t psx_brB_BFC39438 = cpu->gpr[0]; - int psx_taken_BFC39438 = (psx_brA_BFC39438 == psx_brB_BFC39438); + psx_taken_BFC39438 = (psx_brA_BFC39438 == psx_brB_BFC39438); /* 0xBFC3943C: A7AF0036 sh $t7, 54($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (54)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3943Cu); return; } g_debug_last_store_pc = 0xBFC3943Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[15] & 0xFFFFu)); } if (psx_taken_BFC39438) goto label_BFC39494; @@ -182447,7 +187411,7 @@ label_BFC39440: /* nop */ /* 0xBFC3944C: 07010002 bgez $t8, 0xBFC39458 */ uint32_t psx_brA_BFC3944C = cpu->gpr[24]; - int psx_taken_BFC3944C = ((int32_t)psx_brA_BFC3944C >= 0); + psx_taken_BFC3944C = ((int32_t)psx_brA_BFC3944C >= 0); /* 0xBFC39450: 03000821 addu $at, $t8, $zero */ cpu->gpr[1] = cpu->gpr[24] + cpu->gpr[0]; if (psx_taken_BFC3944C) goto label_BFC39458; @@ -182467,7 +187431,7 @@ label_BFC39458: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[1] >> 2u); /* 0xBFC3945C: 10000013 beq $zero, $zero, 0xBFC394AC */ uint32_t psx_brA_BFC3945C = cpu->gpr[0]; uint32_t psx_brB_BFC3945C = cpu->gpr[0]; - int psx_taken_BFC3945C = (psx_brA_BFC3945C == psx_brB_BFC3945C); + psx_taken_BFC3945C = (psx_brA_BFC3945C == psx_brB_BFC3945C); /* 0xBFC39460: A7B90034 sh $t9, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC39460u); return; } g_debug_last_store_pc = 0xBFC39460u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[25] & 0xFFFFu)); } if (psx_taken_BFC3945C) goto label_BFC394AC; @@ -182484,7 +187448,7 @@ label_BFC39464: /* nop */ /* 0xBFC39470: 05410002 bgez $t2, 0xBFC3947C */ uint32_t psx_brA_BFC39470 = cpu->gpr[10]; - int psx_taken_BFC39470 = ((int32_t)psx_brA_BFC39470 >= 0); + psx_taken_BFC39470 = ((int32_t)psx_brA_BFC39470 >= 0); /* 0xBFC39474: 01400821 addu $at, $t2, $zero */ cpu->gpr[1] = cpu->gpr[10] + cpu->gpr[0]; if (psx_taken_BFC39470) goto label_BFC3947C; @@ -182504,7 +187468,7 @@ label_BFC3947C: cpu->gpr[11] = (uint32_t)((int32_t)cpu->gpr[1] >> 1u); /* 0xBFC39480: 1000000A beq $zero, $zero, 0xBFC394AC */ uint32_t psx_brA_BFC39480 = cpu->gpr[0]; uint32_t psx_brB_BFC39480 = cpu->gpr[0]; - int psx_taken_BFC39480 = (psx_brA_BFC39480 == psx_brB_BFC39480); + psx_taken_BFC39480 = (psx_brA_BFC39480 == psx_brB_BFC39480); /* 0xBFC39484: A7AB0034 sh $t3, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC39484u); return; } g_debug_last_store_pc = 0xBFC39484u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[11] & 0xFFFFu)); } if (psx_taken_BFC39480) goto label_BFC394AC; @@ -182522,7 +187486,7 @@ label_BFC3948C: psx_check_interrupts(cpu); /* 0xBFC3948C: 10000007 beq $zero, $zero, 0xBFC394AC */ uint32_t psx_brA_BFC3948C = cpu->gpr[0]; uint32_t psx_brB_BFC3948C = cpu->gpr[0]; - int psx_taken_BFC3948C = (psx_brA_BFC3948C == psx_brB_BFC3948C); + psx_taken_BFC3948C = (psx_brA_BFC3948C == psx_brB_BFC3948C); /* 0xBFC39490: A7AC0034 sh $t4, 52($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (52)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC39490u); return; } g_debug_last_store_pc = 0xBFC39490u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[12] & 0xFFFFu)); } if (psx_taken_BFC3948C) goto label_BFC394AC; @@ -182533,7 +187497,7 @@ label_BFC39494: psx_check_interrupts(cpu); /* 0xBFC39494: 1060FFEA beq $v1, $zero, 0xBFC39440 */ uint32_t psx_brA_BFC39494 = cpu->gpr[3]; uint32_t psx_brB_BFC39494 = cpu->gpr[0]; - int psx_taken_BFC39494 = (psx_brA_BFC39494 == psx_brB_BFC39494); + psx_taken_BFC39494 = (psx_brA_BFC39494 == psx_brB_BFC39494); /* 0xBFC39498: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC39494) goto label_BFC39440; @@ -182544,7 +187508,7 @@ label_BFC3949C: psx_check_interrupts(cpu); /* 0xBFC3949C: 1061FFF1 beq $v1, $at, 0xBFC39464 */ uint32_t psx_brA_BFC3949C = cpu->gpr[3]; uint32_t psx_brB_BFC3949C = cpu->gpr[1]; - int psx_taken_BFC3949C = (psx_brA_BFC3949C == psx_brB_BFC3949C); + psx_taken_BFC3949C = (psx_brA_BFC3949C == psx_brB_BFC3949C); /* 0xBFC394A0: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC3949C) goto label_BFC39464; @@ -182555,7 +187519,7 @@ label_BFC394A4: psx_check_interrupts(cpu); /* 0xBFC394A4: 1061FFF9 beq $v1, $at, 0xBFC3948C */ uint32_t psx_brA_BFC394A4 = cpu->gpr[3]; uint32_t psx_brB_BFC394A4 = cpu->gpr[1]; - int psx_taken_BFC394A4 = (psx_brA_BFC394A4 == psx_brB_BFC394A4); + psx_taken_BFC394A4 = (psx_brA_BFC394A4 == psx_brB_BFC394A4); /* 0xBFC394A8: 8FAC004C lw $t4, 76($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (76)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC394A8u); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } if (psx_taken_BFC394A4) goto label_BFC3948C; @@ -182698,6 +187662,8 @@ void func_1FC3954C(CPUState* cpu) { default: break; } } + int psx_taken_BFC39598 = 0; + int psx_taken_BFC395A0 = 0; label_BFC3954C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(21u); @@ -182743,7 +187709,7 @@ label_BFC3954C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC39594u); return; } g_debug_last_store_pc = 0xBFC39594u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[9] & 0xFFFFu)); } /* 0xBFC39598: 15010003 bne $t0, $at, 0xBFC395A8 */ uint32_t psx_brA_BFC39598 = cpu->gpr[8]; uint32_t psx_brB_BFC39598 = cpu->gpr[1]; - int psx_taken_BFC39598 = (psx_brA_BFC39598 != psx_brB_BFC39598); + psx_taken_BFC39598 = (psx_brA_BFC39598 != psx_brB_BFC39598); /* 0xBFC3959C: A0620016 sb $v0, 22($v1) */ g_debug_last_store_pc = 0xBFC3959Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[3] + (22)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC39598) goto label_BFC395A8; @@ -182754,7 +187720,7 @@ label_BFC395A0: psx_check_interrupts(cpu); /* 0xBFC395A0: 10000002 beq $zero, $zero, 0xBFC395AC */ uint32_t psx_brA_BFC395A0 = cpu->gpr[0]; uint32_t psx_brB_BFC395A0 = cpu->gpr[0]; - int psx_taken_BFC395A0 = (psx_brA_BFC395A0 == psx_brB_BFC395A0); + psx_taken_BFC395A0 = (psx_brA_BFC395A0 == psx_brB_BFC395A0); /* 0xBFC395A4: A0600017 sb $zero, 23($v1) */ g_debug_last_store_pc = 0xBFC395A4u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[3] + (23)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC395A0) goto label_BFC395AC; @@ -182859,6 +187825,8 @@ void func_1FC39630(CPUState* cpu) { default: break; } } + int psx_taken_BFC3965C = 0; + int psx_taken_BFC3968C = 0; label_BFC39630: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -182894,7 +187862,7 @@ label_BFC3964C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC39658u); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } /* 0xBFC3965C: 1040000E beq $v0, $zero, 0xBFC39698 */ uint32_t psx_brA_BFC3965C = cpu->gpr[2]; uint32_t psx_brB_BFC3965C = cpu->gpr[0]; - int psx_taken_BFC3965C = (psx_brA_BFC3965C == psx_brB_BFC3965C); + psx_taken_BFC3965C = (psx_brA_BFC3965C == psx_brB_BFC3965C); /* 0xBFC39660: 308E0003 andi $t6, $a0, 0x3 */ cpu->gpr[14] = cpu->gpr[4] & 0x3u; if (psx_taken_BFC3965C) goto label_BFC39698; @@ -182925,7 +187893,7 @@ label_BFC39664: cpu->gpr[11] = cpu->gpr[8] | cpu->gpr[10]; /* 0xBFC3968C: 1000000C beq $zero, $zero, 0xBFC396C0 */ uint32_t psx_brA_BFC3968C = cpu->gpr[0]; uint32_t psx_brB_BFC3968C = cpu->gpr[0]; - int psx_taken_BFC3968C = (psx_brA_BFC3968C == psx_brB_BFC3968C); + psx_taken_BFC3968C = (psx_brA_BFC3968C == psx_brB_BFC3968C); /* 0xBFC39690: 016D1825 or $v1, $t3, $t5 */ cpu->gpr[3] = cpu->gpr[11] | cpu->gpr[13]; if (psx_taken_BFC3968C) goto label_BFC396C0; @@ -183009,6 +187977,8 @@ void func_1FC396E8(CPUState* cpu) { default: break; } } + int psx_taken_BFC39700 = 0; + int psx_taken_BFC39740 = 0; label_BFC396E8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -183034,7 +188004,7 @@ label_BFC396FC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC396FCu); return; } cpu->gpr[3] = (uint32_t)cpu->read_half(psx_addr); } /* 0xBFC39700: 10400011 beq $v0, $zero, 0xBFC39748 */ uint32_t psx_brA_BFC39700 = cpu->gpr[2]; uint32_t psx_brB_BFC39700 = cpu->gpr[0]; - int psx_taken_BFC39700 = (psx_brA_BFC39700 == psx_brB_BFC39700); + psx_taken_BFC39700 = (psx_brA_BFC39700 == psx_brB_BFC39700); /* 0xBFC39704: 00000000 nop */ /* nop */ if (psx_taken_BFC39700) goto label_BFC39748; @@ -183079,7 +188049,7 @@ label_BFC39740: psx_check_interrupts(cpu); /* 0xBFC39740: 10000010 beq $zero, $zero, 0xBFC39784 */ uint32_t psx_brA_BFC39740 = cpu->gpr[0]; uint32_t psx_brB_BFC39740 = cpu->gpr[0]; - int psx_taken_BFC39740 = (psx_brA_BFC39740 == psx_brB_BFC39740); + psx_taken_BFC39740 = (psx_brA_BFC39740 == psx_brB_BFC39740); /* 0xBFC39744: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC39744u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC39740) goto label_BFC39784; @@ -183182,6 +188152,7 @@ label_BFC39804: void func_1FC398D4(CPUState* cpu) { debug_server_log_call_entry(0x1FC398D4u); + int psx_taken_BFC398D4 = 0; label_BFC398D4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -183189,7 +188160,7 @@ label_BFC398D4: psx_check_interrupts(cpu); /* 0xBFC398D4: 10A00007 beq $a1, $zero, 0xBFC398F4 */ uint32_t psx_brA_BFC398D4 = cpu->gpr[5]; uint32_t psx_brB_BFC398D4 = cpu->gpr[0]; - int psx_taken_BFC398D4 = (psx_brA_BFC398D4 == psx_brB_BFC398D4); + psx_taken_BFC398D4 = (psx_brA_BFC398D4 == psx_brB_BFC398D4); /* 0xBFC398D8: 00000000 nop */ /* nop */ if (psx_taken_BFC398D4) goto label_BFC398F4; @@ -183233,6 +188204,7 @@ label_BFC398F4: void func_1FC39910(CPUState* cpu) { debug_server_log_call_entry(0x1FC39910u); + int psx_taken_BFC39910 = 0; label_BFC39910: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -183240,7 +188212,7 @@ label_BFC39910: psx_check_interrupts(cpu); /* 0xBFC39910: 10A00007 beq $a1, $zero, 0xBFC39930 */ uint32_t psx_brA_BFC39910 = cpu->gpr[5]; uint32_t psx_brB_BFC39910 = cpu->gpr[0]; - int psx_taken_BFC39910 = (psx_brA_BFC39910 == psx_brB_BFC39910); + psx_taken_BFC39910 = (psx_brA_BFC39910 == psx_brB_BFC39910); /* 0xBFC39914: 00000000 nop */ /* nop */ if (psx_taken_BFC39910) goto label_BFC39930; @@ -183531,6 +188503,8 @@ void func_1FC39D38(CPUState* cpu) { default: break; } } + int psx_taken_BFC39DEC = 0; + int psx_taken_BFC39E30 = 0; label_BFC39D38: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -183664,7 +188638,7 @@ label_BFC39DEC: psx_check_interrupts(cpu); /* 0xBFC39DEC: 10400012 beq $v0, $zero, 0xBFC39E38 */ uint32_t psx_brA_BFC39DEC = cpu->gpr[2]; uint32_t psx_brB_BFC39DEC = cpu->gpr[0]; - int psx_taken_BFC39DEC = (psx_brA_BFC39DEC == psx_brB_BFC39DEC); + psx_taken_BFC39DEC = (psx_brA_BFC39DEC == psx_brB_BFC39DEC); /* 0xBFC39DF0: 00000000 nop */ /* nop */ if (psx_taken_BFC39DEC) goto label_BFC39E38; @@ -183711,7 +188685,7 @@ label_BFC39E30: psx_check_interrupts(cpu); /* 0xBFC39E30: 10000011 beq $zero, $zero, 0xBFC39E78 */ uint32_t psx_brA_BFC39E30 = cpu->gpr[0]; uint32_t psx_brB_BFC39E30 = cpu->gpr[0]; - int psx_taken_BFC39E30 = (psx_brA_BFC39E30 == psx_brB_BFC39E30); + psx_taken_BFC39E30 = (psx_brA_BFC39E30 == psx_brB_BFC39E30); /* 0xBFC39E34: 8FBF0024 lw $ra, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC39E34u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC39E30) goto label_BFC39E78; @@ -183897,6 +188871,9 @@ label_BFC39F14: void func_1FC39F30(CPUState* cpu) { debug_server_log_call_entry(0x1FC39F30u); + int psx_taken_BFC39F38 = 0; + int psx_taken_BFC39F50 = 0; + int psx_taken_BFC39F58 = 0; label_BFC39F30: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -183908,7 +188885,7 @@ label_BFC39F30: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC39F38: 14810005 bne $a0, $at, 0xBFC39F50 */ uint32_t psx_brA_BFC39F38 = cpu->gpr[4]; uint32_t psx_brB_BFC39F38 = cpu->gpr[1]; - int psx_taken_BFC39F38 = (psx_brA_BFC39F38 != psx_brB_BFC39F38); + psx_taken_BFC39F38 = (psx_brA_BFC39F38 != psx_brB_BFC39F38); /* 0xBFC39F3C: 2C810020 sltiu $at, $a0, 32 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < 0x00000020u ? 1 : 0); if (psx_taken_BFC39F38) goto label_BFC39F50; @@ -183930,7 +188907,7 @@ label_BFC39F50: psx_check_interrupts(cpu); /* 0xBFC39F50: 1420000B bne $at, $zero, 0xBFC39F80 */ uint32_t psx_brA_BFC39F50 = cpu->gpr[1]; uint32_t psx_brB_BFC39F50 = cpu->gpr[0]; - int psx_taken_BFC39F50 = (psx_brA_BFC39F50 != psx_brB_BFC39F50); + psx_taken_BFC39F50 = (psx_brA_BFC39F50 != psx_brB_BFC39F50); /* 0xBFC39F54: 2C810080 sltiu $at, $a0, 128 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < 0x00000080u ? 1 : 0); if (psx_taken_BFC39F50) goto label_BFC39F80; @@ -183941,7 +188918,7 @@ label_BFC39F58: psx_check_interrupts(cpu); /* 0xBFC39F58: 10200009 beq $at, $zero, 0xBFC39F80 */ uint32_t psx_brA_BFC39F58 = cpu->gpr[1]; uint32_t psx_brB_BFC39F58 = cpu->gpr[0]; - int psx_taken_BFC39F58 = (psx_brA_BFC39F58 == psx_brB_BFC39F58); + psx_taken_BFC39F58 = (psx_brA_BFC39F58 == psx_brB_BFC39F58); /* 0xBFC39F5C: 00000000 nop */ /* nop */ if (psx_taken_BFC39F58) goto label_BFC39F80; @@ -183983,6 +188960,9 @@ label_BFC39F80: void func_1FC39F90(CPUState* cpu) { debug_server_log_call_entry(0x1FC39F90u); + int psx_taken_BFC39F98 = 0; + int psx_taken_BFC39FAC = 0; + int psx_taken_BFC39FB4 = 0; label_BFC39F90: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -183994,7 +188974,7 @@ label_BFC39F90: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC39F98: 14810004 bne $a0, $at, 0xBFC39FAC */ uint32_t psx_brA_BFC39F98 = cpu->gpr[4]; uint32_t psx_brB_BFC39F98 = cpu->gpr[1]; - int psx_taken_BFC39F98 = (psx_brA_BFC39F98 != psx_brB_BFC39F98); + psx_taken_BFC39F98 = (psx_brA_BFC39F98 != psx_brB_BFC39F98); /* 0xBFC39F9C: 2C810020 sltiu $at, $a0, 32 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < 0x00000020u ? 1 : 0); if (psx_taken_BFC39F98) goto label_BFC39FAC; @@ -184014,7 +188994,7 @@ label_BFC39FAC: psx_check_interrupts(cpu); /* 0xBFC39FAC: 1420000A bne $at, $zero, 0xBFC39FD8 */ uint32_t psx_brA_BFC39FAC = cpu->gpr[1]; uint32_t psx_brB_BFC39FAC = cpu->gpr[0]; - int psx_taken_BFC39FAC = (psx_brA_BFC39FAC != psx_brB_BFC39FAC); + psx_taken_BFC39FAC = (psx_brA_BFC39FAC != psx_brB_BFC39FAC); /* 0xBFC39FB0: 2C810080 sltiu $at, $a0, 128 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < 0x00000080u ? 1 : 0); if (psx_taken_BFC39FAC) goto label_BFC39FD8; @@ -184025,7 +189005,7 @@ label_BFC39FB4: psx_check_interrupts(cpu); /* 0xBFC39FB4: 10200009 beq $at, $zero, 0xBFC39FDC */ uint32_t psx_brA_BFC39FB4 = cpu->gpr[1]; uint32_t psx_brB_BFC39FB4 = cpu->gpr[0]; - int psx_taken_BFC39FB4 = (psx_brA_BFC39FB4 == psx_brB_BFC39FB4); + psx_taken_BFC39FB4 = (psx_brA_BFC39FB4 == psx_brB_BFC39FB4); /* 0xBFC39FB8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC39FB4) goto label_BFC39FDC; @@ -184077,6 +189057,10 @@ void func_1FC39FE4(CPUState* cpu) { default: break; } } + int psx_taken_BFC3A00C = 0; + int psx_taken_BFC3A024 = 0; + int psx_taken_BFC3A058 = 0; + int psx_taken_BFC3A070 = 0; label_BFC39FE4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -184104,7 +189088,7 @@ label_BFC39FE4: cpu->gpr[2] = cpu->gpr[2] >> 8u; /* 0xBFC3A00C: 12420017 beq $s2, $v0, 0xBFC3A06C */ uint32_t psx_brA_BFC3A00C = cpu->gpr[18]; uint32_t psx_brB_BFC3A00C = cpu->gpr[2]; - int psx_taken_BFC3A00C = (psx_brA_BFC3A00C == psx_brB_BFC3A00C); + psx_taken_BFC3A00C = (psx_brA_BFC3A00C == psx_brB_BFC3A00C); /* 0xBFC3A010: 0003C602 srl $t8, $v1, 24 */ cpu->gpr[24] = cpu->gpr[3] >> 24u; if (psx_taken_BFC3A00C) goto label_BFC3A06C; @@ -184128,7 +189112,7 @@ label_BFC3A020: cpu->gpr[15] = cpu->gpr[14] & 0xFFu; /* 0xBFC3A024: 11E00007 beq $t7, $zero, 0xBFC3A044 */ uint32_t psx_brA_BFC3A024 = cpu->gpr[15]; uint32_t psx_brB_BFC3A024 = cpu->gpr[0]; - int psx_taken_BFC3A024 = (psx_brA_BFC3A024 == psx_brB_BFC3A024); + psx_taken_BFC3A024 = (psx_brA_BFC3A024 == psx_brB_BFC3A024); /* 0xBFC3A028: 00000000 nop */ /* nop */ if (psx_taken_BFC3A024) goto label_BFC3A044; @@ -184172,7 +189156,7 @@ label_BFC3A044: cpu->gpr[2] = cpu->gpr[2] >> 8u; /* 0xBFC3A058: 1642FFF1 bne $s2, $v0, 0xBFC3A020 */ uint32_t psx_brA_BFC3A058 = cpu->gpr[18]; uint32_t psx_brB_BFC3A058 = cpu->gpr[2]; - int psx_taken_BFC3A058 = (psx_brA_BFC3A058 != psx_brB_BFC3A058); + psx_taken_BFC3A058 = (psx_brA_BFC3A058 != psx_brB_BFC3A058); /* 0xBFC3A05C: 00037602 srl $t6, $v1, 24 */ cpu->gpr[14] = cpu->gpr[3] >> 24u; if (psx_taken_BFC3A058) goto label_BFC3A020; @@ -184196,7 +189180,7 @@ label_BFC3A06C: cpu->gpr[25] = cpu->gpr[24] & 0xFFu; /* 0xBFC3A070: 13200004 beq $t9, $zero, 0xBFC3A084 */ uint32_t psx_brA_BFC3A070 = cpu->gpr[25]; uint32_t psx_brB_BFC3A070 = cpu->gpr[0]; - int psx_taken_BFC3A070 = (psx_brA_BFC3A070 == psx_brB_BFC3A070); + psx_taken_BFC3A070 = (psx_brA_BFC3A070 == psx_brB_BFC3A070); /* 0xBFC3A074: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3A074u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3A070) goto label_BFC3A084; @@ -184249,6 +189233,11 @@ void func_1FC3A094(CPUState* cpu) { default: break; } } + int psx_taken_BFC3A0DC = 0; + int psx_taken_BFC3A118 = 0; + int psx_taken_BFC3A134 = 0; + int psx_taken_BFC3A164 = 0; + int psx_taken_BFC3A1C0 = 0; label_BFC3A094: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -184298,7 +189287,7 @@ label_BFC3A0C8: cpu->gpr[4] = cpu->gpr[4] >> 8u; /* 0xBFC3A0DC: 12C4003F beq $s6, $a0, 0xBFC3A1DC */ uint32_t psx_brA_BFC3A0DC = cpu->gpr[22]; uint32_t psx_brB_BFC3A0DC = cpu->gpr[4]; - int psx_taken_BFC3A0DC = (psx_brA_BFC3A0DC == psx_brB_BFC3A0DC); + psx_taken_BFC3A0DC = (psx_brA_BFC3A0DC == psx_brB_BFC3A0DC); /* 0xBFC3A0E0: 00000000 nop */ /* nop */ if (psx_taken_BFC3A0DC) goto label_BFC3A1DC; @@ -184340,7 +189329,7 @@ label_BFC3A114: cpu->gpr[24] = cpu->gpr[15] & 0xFFu; /* 0xBFC3A118: 17000014 bne $t8, $zero, 0xBFC3A16C */ uint32_t psx_brA_BFC3A118 = cpu->gpr[24]; uint32_t psx_brB_BFC3A118 = cpu->gpr[0]; - int psx_taken_BFC3A118 = (psx_brA_BFC3A118 != psx_brB_BFC3A118); + psx_taken_BFC3A118 = (psx_brA_BFC3A118 != psx_brB_BFC3A118); /* 0xBFC3A11C: 00000000 nop */ /* nop */ if (psx_taken_BFC3A118) goto label_BFC3A16C; @@ -184361,7 +189350,7 @@ label_BFC3A120: cpu->gpr[9] = cpu->gpr[8] & 0xFFu; /* 0xBFC3A134: 1120000B beq $t1, $zero, 0xBFC3A164 */ uint32_t psx_brA_BFC3A134 = cpu->gpr[9]; uint32_t psx_brB_BFC3A134 = cpu->gpr[0]; - int psx_taken_BFC3A134 = (psx_brA_BFC3A134 == psx_brB_BFC3A134); + psx_taken_BFC3A134 = (psx_brA_BFC3A134 == psx_brB_BFC3A134); /* 0xBFC3A138: 00000000 nop */ /* nop */ if (psx_taken_BFC3A134) goto label_BFC3A164; @@ -184403,7 +189392,7 @@ label_BFC3A164: psx_check_interrupts(cpu); /* 0xBFC3A164: 10000011 beq $zero, $zero, 0xBFC3A1AC */ uint32_t psx_brA_BFC3A164 = cpu->gpr[0]; uint32_t psx_brB_BFC3A164 = cpu->gpr[0]; - int psx_taken_BFC3A164 = (psx_brA_BFC3A164 == psx_brB_BFC3A164); + psx_taken_BFC3A164 = (psx_brA_BFC3A164 == psx_brB_BFC3A164); /* 0xBFC3A168: 26310001 addiu $s1, $s1, 1 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); if (psx_taken_BFC3A164) goto label_BFC3A1AC; @@ -184479,7 +189468,7 @@ label_BFC3A1AC: cpu->gpr[4] = cpu->gpr[4] >> 8u; /* 0xBFC3A1C0: 16C4FFD4 bne $s6, $a0, 0xBFC3A114 */ uint32_t psx_brA_BFC3A1C0 = cpu->gpr[22]; uint32_t psx_brB_BFC3A1C0 = cpu->gpr[4]; - int psx_taken_BFC3A1C0 = (psx_brA_BFC3A1C0 != psx_brB_BFC3A1C0); + psx_taken_BFC3A1C0 = (psx_brA_BFC3A1C0 != psx_brB_BFC3A1C0); /* 0xBFC3A1C4: 00037E02 srl $t7, $v1, 24 */ cpu->gpr[15] = cpu->gpr[3] >> 24u; if (psx_taken_BFC3A1C0) goto label_BFC3A114; @@ -184573,6 +189562,9 @@ void func_1FC3A228(CPUState* cpu) { default: break; } } + int psx_taken_BFC3A248 = 0; + int psx_taken_BFC3A260 = 0; + int psx_taken_BFC3A2A4 = 0; label_BFC3A228: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -184602,7 +189594,7 @@ label_BFC3A244: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3A244u); return; } cpu->gpr[6] = cpu->read_word(psx_addr); } /* 0xBFC3A248: 10400018 beq $v0, $zero, 0xBFC3A2AC */ uint32_t psx_brA_BFC3A248 = cpu->gpr[2]; uint32_t psx_brB_BFC3A248 = cpu->gpr[0]; - int psx_taken_BFC3A248 = (psx_brA_BFC3A248 == psx_brB_BFC3A248); + psx_taken_BFC3A248 = (psx_brA_BFC3A248 == psx_brB_BFC3A248); /* 0xBFC3A24C: 00000000 nop */ /* nop */ if (psx_taken_BFC3A248) goto label_BFC3A2AC; @@ -184621,7 +189613,7 @@ label_BFC3A250: cpu->gpr[24] = cpu->gpr[15] & 0xFFu; /* 0xBFC3A260: 10580013 beq $v0, $t8, 0xBFC3A2B0 */ uint32_t psx_brA_BFC3A260 = cpu->gpr[2]; uint32_t psx_brB_BFC3A260 = cpu->gpr[24]; - int psx_taken_BFC3A260 = (psx_brA_BFC3A260 == psx_brB_BFC3A260); + psx_taken_BFC3A260 = (psx_brA_BFC3A260 == psx_brB_BFC3A260); /* 0xBFC3A264: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3A260) goto label_BFC3A2B0; @@ -184674,7 +189666,7 @@ label_BFC3A2A4: psx_check_interrupts(cpu); /* 0xBFC3A2A4: 10000002 beq $zero, $zero, 0xBFC3A2B0 */ uint32_t psx_brA_BFC3A2A4 = cpu->gpr[0]; uint32_t psx_brB_BFC3A2A4 = cpu->gpr[0]; - int psx_taken_BFC3A2A4 = (psx_brA_BFC3A2A4 == psx_brB_BFC3A2A4); + psx_taken_BFC3A2A4 = (psx_brA_BFC3A2A4 == psx_brB_BFC3A2A4); /* 0xBFC3A2A8: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3A2A4) goto label_BFC3A2B0; @@ -184711,6 +189703,12 @@ void func_1FC3A2C0(CPUState* cpu) { default: break; } } + int psx_taken_BFC3A314 = 0; + int psx_taken_BFC3A32C = 0; + int psx_taken_BFC3A334 = 0; + int psx_taken_BFC3A350 = 0; + int psx_taken_BFC3A3B0 = 0; + int psx_taken_BFC3A3EC = 0; label_BFC3A2C0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -184777,7 +189775,7 @@ label_BFC3A308: cpu->gpr[4] = cpu->gpr[4] & 0xFFFFu; /* 0xBFC3A314: 1080FFFC beq $a0, $zero, 0xBFC3A308 */ uint32_t psx_brA_BFC3A314 = cpu->gpr[4]; uint32_t psx_brB_BFC3A314 = cpu->gpr[0]; - int psx_taken_BFC3A314 = (psx_brA_BFC3A314 == psx_brB_BFC3A314); + psx_taken_BFC3A314 = (psx_brA_BFC3A314 == psx_brB_BFC3A314); /* 0xBFC3A318: A1C00000 sb $zero, 0($t6) */ g_debug_last_store_pc = 0xBFC3A318u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[14] + (0)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC3A314) goto label_BFC3A308; @@ -184796,7 +189794,7 @@ label_BFC3A31C: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000018u ? 1 : 0); /* 0xBFC3A32C: 14200004 bne $at, $zero, 0xBFC3A340 */ uint32_t psx_brA_BFC3A32C = cpu->gpr[1]; uint32_t psx_brB_BFC3A32C = cpu->gpr[0]; - int psx_taken_BFC3A32C = (psx_brA_BFC3A32C != psx_brB_BFC3A32C); + psx_taken_BFC3A32C = (psx_brA_BFC3A32C != psx_brB_BFC3A32C); /* 0xBFC3A330: 00021E00 sll $v1, $v0, 24 */ cpu->gpr[3] = cpu->gpr[2] << 24u; if (psx_taken_BFC3A32C) goto label_BFC3A340; @@ -184807,7 +189805,7 @@ label_BFC3A334: psx_check_interrupts(cpu); /* 0xBFC3A334: 10000003 beq $zero, $zero, 0xBFC3A344 */ uint32_t psx_brA_BFC3A334 = cpu->gpr[0]; uint32_t psx_brB_BFC3A334 = cpu->gpr[0]; - int psx_taken_BFC3A334 = (psx_brA_BFC3A334 == psx_brB_BFC3A334); + psx_taken_BFC3A334 = (psx_brA_BFC3A334 == psx_brB_BFC3A334); /* 0xBFC3A338: 24030018 addiu $v1, $zero, 24 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (24)); if (psx_taken_BFC3A334) goto label_BFC3A344; @@ -184838,7 +189836,7 @@ label_BFC3A344: g_debug_last_store_pc = 0xBFC3A34Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[1] + (-5536)), (uint8_t)(cpu->gpr[3] & 0xFFu)); /* 0xBFC3A350: 10E0001A beq $a3, $zero, 0xBFC3A3BC */ uint32_t psx_brA_BFC3A350 = cpu->gpr[7]; uint32_t psx_brB_BFC3A350 = cpu->gpr[0]; - int psx_taken_BFC3A350 = (psx_brA_BFC3A350 == psx_brB_BFC3A350); + psx_taken_BFC3A350 = (psx_brA_BFC3A350 == psx_brB_BFC3A350); /* 0xBFC3A354: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3A350) goto label_BFC3A3BC; @@ -184898,7 +189896,7 @@ label_BFC3A36C: cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < cpu->gpr[7] ? 1 : 0); /* 0xBFC3A3B0: 1420FFEE bne $at, $zero, 0xBFC3A36C */ uint32_t psx_brA_BFC3A3B0 = cpu->gpr[1]; uint32_t psx_brB_BFC3A3B0 = cpu->gpr[0]; - int psx_taken_BFC3A3B0 = (psx_brA_BFC3A3B0 != psx_brB_BFC3A3B0); + psx_taken_BFC3A3B0 = (psx_brA_BFC3A3B0 != psx_brB_BFC3A3B0); /* 0xBFC3A3B4: 00047880 sll $t7, $a0, 2 */ cpu->gpr[15] = cpu->gpr[4] << 2u; if (psx_taken_BFC3A3B0) goto label_BFC3A36C; @@ -184945,7 +189943,7 @@ label_BFC3A3CC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (4)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3A3E8u); return; } g_debug_last_store_pc = 0xBFC3A3E8u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[3] & 0xFFFFu)); } /* 0xBFC3A3EC: 1420FFF7 bne $at, $zero, 0xBFC3A3CC */ uint32_t psx_brA_BFC3A3EC = cpu->gpr[1]; uint32_t psx_brB_BFC3A3EC = cpu->gpr[0]; - int psx_taken_BFC3A3EC = (psx_brA_BFC3A3EC != psx_brB_BFC3A3EC); + psx_taken_BFC3A3EC = (psx_brA_BFC3A3EC != psx_brB_BFC3A3EC); /* 0xBFC3A3F0: A4460006 sh $a2, 6($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (6)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3A3F0u); return; } g_debug_last_store_pc = 0xBFC3A3F0u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[6] & 0xFFFFu)); } if (psx_taken_BFC3A3EC) goto label_BFC3A3CC; @@ -185002,6 +190000,31 @@ label_BFC3A3F4: void func_1FC3A44C(CPUState* cpu) { debug_server_log_call_entry(0x1FC3A44Cu); + int psx_taken_BFC3A478 = 0; + int psx_taken_BFC3A490 = 0; + int psx_taken_BFC3A4C4 = 0; + int psx_taken_BFC3A4D4 = 0; + int psx_taken_BFC3A4DC = 0; + int psx_taken_BFC3A4F0 = 0; + int psx_taken_BFC3A500 = 0; + int psx_taken_BFC3A508 = 0; + int psx_taken_BFC3A510 = 0; + int psx_taken_BFC3A51C = 0; + int psx_taken_BFC3A524 = 0; + int psx_taken_BFC3A538 = 0; + int psx_taken_BFC3A548 = 0; + int psx_taken_BFC3A558 = 0; + int psx_taken_BFC3A560 = 0; + int psx_taken_BFC3A574 = 0; + int psx_taken_BFC3A598 = 0; + int psx_taken_BFC3A5A0 = 0; + int psx_taken_BFC3A5A8 = 0; + int psx_taken_BFC3A5B0 = 0; + int psx_taken_BFC3A5B8 = 0; + int psx_taken_BFC3A5C8 = 0; + int psx_taken_BFC3A5EC = 0; + int psx_taken_BFC3A600 = 0; + int psx_taken_BFC3A61C = 0; label_BFC3A44C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -185031,7 +190054,7 @@ label_BFC3A44C: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (99)); /* 0xBFC3A478: 15200007 bne $t1, $zero, 0xBFC3A498 */ uint32_t psx_brA_BFC3A478 = cpu->gpr[9]; uint32_t psx_brB_BFC3A478 = cpu->gpr[0]; - int psx_taken_BFC3A478 = (psx_brA_BFC3A478 != psx_brB_BFC3A478); + psx_taken_BFC3A478 = (psx_brA_BFC3A478 != psx_brB_BFC3A478); /* 0xBFC3A47C: 00004021 addu $t0, $zero, $zero */ cpu->gpr[8] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3A478) goto label_BFC3A498; @@ -185050,7 +190073,7 @@ label_BFC3A480: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (-5528)); /* 0xBFC3A490: 10000043 beq $zero, $zero, 0xBFC3A5A0 */ uint32_t psx_brA_BFC3A490 = cpu->gpr[0]; uint32_t psx_brB_BFC3A490 = cpu->gpr[0]; - int psx_taken_BFC3A490 = (psx_brA_BFC3A490 == psx_brB_BFC3A490); + psx_taken_BFC3A490 = (psx_brA_BFC3A490 == psx_brB_BFC3A490); /* 0xBFC3A494: 24110063 addiu $s1, $zero, 99 */ cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[0] + (99)); if (psx_taken_BFC3A490) goto label_BFC3A5A0; @@ -185088,7 +190111,7 @@ label_BFC3A4AC: /* nop */ /* 0xBFC3A4C4: 15E00017 bne $t7, $zero, 0xBFC3A524 */ uint32_t psx_brA_BFC3A4C4 = cpu->gpr[15]; uint32_t psx_brB_BFC3A4C4 = cpu->gpr[0]; - int psx_taken_BFC3A4C4 = (psx_brA_BFC3A4C4 != psx_brB_BFC3A4C4); + psx_taken_BFC3A4C4 = (psx_brA_BFC3A4C4 != psx_brB_BFC3A4C4); /* 0xBFC3A4C8: 00000000 nop */ /* nop */ if (psx_taken_BFC3A4C4) goto label_BFC3A524; @@ -185103,7 +190126,7 @@ label_BFC3A4CC: /* nop */ /* 0xBFC3A4D4: 15600003 bne $t3, $zero, 0xBFC3A4E4 */ uint32_t psx_brA_BFC3A4D4 = cpu->gpr[11]; uint32_t psx_brB_BFC3A4D4 = cpu->gpr[0]; - int psx_taken_BFC3A4D4 = (psx_brA_BFC3A4D4 != psx_brB_BFC3A4D4); + psx_taken_BFC3A4D4 = (psx_brA_BFC3A4D4 != psx_brB_BFC3A4D4); /* 0xBFC3A4D8: 00000000 nop */ /* nop */ if (psx_taken_BFC3A4D4) goto label_BFC3A4E4; @@ -185114,7 +190137,7 @@ label_BFC3A4DC: psx_check_interrupts(cpu); /* 0xBFC3A4DC: 10000052 beq $zero, $zero, 0xBFC3A628 */ uint32_t psx_brA_BFC3A4DC = cpu->gpr[0]; uint32_t psx_brB_BFC3A4DC = cpu->gpr[0]; - int psx_taken_BFC3A4DC = (psx_brA_BFC3A4DC == psx_brB_BFC3A4DC); + psx_taken_BFC3A4DC = (psx_brA_BFC3A4DC == psx_brB_BFC3A4DC); /* 0xBFC3A4E0: 01001021 addu $v0, $t0, $zero */ cpu->gpr[2] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC3A4DC) goto label_BFC3A628; @@ -185131,7 +190154,7 @@ label_BFC3A4E4: cpu->gpr[1] = (uint32_t)(cpu->gpr[12] < cpu->gpr[2] ? 1 : 0); /* 0xBFC3A4F0: 10200005 beq $at, $zero, 0xBFC3A508 */ uint32_t psx_brA_BFC3A4F0 = cpu->gpr[1]; uint32_t psx_brB_BFC3A4F0 = cpu->gpr[0]; - int psx_taken_BFC3A4F0 = (psx_brA_BFC3A4F0 == psx_brB_BFC3A4F0); + psx_taken_BFC3A4F0 = (psx_brA_BFC3A4F0 == psx_brB_BFC3A4F0); /* 0xBFC3A4F4: 00000000 nop */ /* nop */ if (psx_taken_BFC3A4F0) goto label_BFC3A508; @@ -185146,7 +190169,7 @@ label_BFC3A4F8: cpu->gpr[4] = cpu->gpr[11] & 0xFFFFu; /* 0xBFC3A500: 10000020 beq $zero, $zero, 0xBFC3A584 */ uint32_t psx_brA_BFC3A500 = cpu->gpr[0]; uint32_t psx_brB_BFC3A500 = cpu->gpr[0]; - int psx_taken_BFC3A500 = (psx_brA_BFC3A500 == psx_brB_BFC3A500); + psx_taken_BFC3A500 = (psx_brA_BFC3A500 == psx_brB_BFC3A500); /* 0xBFC3A504: 310600FF andi $a2, $t0, 0xFF */ cpu->gpr[6] = cpu->gpr[8] & 0xFFu; if (psx_taken_BFC3A500) goto label_BFC3A584; @@ -185157,7 +190180,7 @@ label_BFC3A508: psx_check_interrupts(cpu); /* 0xBFC3A508: 144C001E bne $v0, $t4, 0xBFC3A584 */ uint32_t psx_brA_BFC3A508 = cpu->gpr[2]; uint32_t psx_brB_BFC3A508 = cpu->gpr[12]; - int psx_taken_BFC3A508 = (psx_brA_BFC3A508 != psx_brB_BFC3A508); + psx_taken_BFC3A508 = (psx_brA_BFC3A508 != psx_brB_BFC3A508); /* 0xBFC3A50C: 0164082B sltu $at, $t3, $a0 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[11] < cpu->gpr[4] ? 1 : 0); if (psx_taken_BFC3A508) goto label_BFC3A584; @@ -185168,7 +190191,7 @@ label_BFC3A510: psx_check_interrupts(cpu); /* 0xBFC3A510: 1020001C beq $at, $zero, 0xBFC3A584 */ uint32_t psx_brA_BFC3A510 = cpu->gpr[1]; uint32_t psx_brB_BFC3A510 = cpu->gpr[0]; - int psx_taken_BFC3A510 = (psx_brA_BFC3A510 == psx_brB_BFC3A510); + psx_taken_BFC3A510 = (psx_brA_BFC3A510 == psx_brB_BFC3A510); /* 0xBFC3A514: 00000000 nop */ /* nop */ if (psx_taken_BFC3A510) goto label_BFC3A584; @@ -185181,7 +190204,7 @@ label_BFC3A518: cpu->gpr[4] = cpu->gpr[11] & 0xFFFFu; /* 0xBFC3A51C: 10000019 beq $zero, $zero, 0xBFC3A584 */ uint32_t psx_brA_BFC3A51C = cpu->gpr[0]; uint32_t psx_brB_BFC3A51C = cpu->gpr[0]; - int psx_taken_BFC3A51C = (psx_brA_BFC3A51C == psx_brB_BFC3A51C); + psx_taken_BFC3A51C = (psx_brA_BFC3A51C == psx_brB_BFC3A51C); /* 0xBFC3A520: 310600FF andi $a2, $t0, 0xFF */ cpu->gpr[6] = cpu->gpr[8] & 0xFFu; if (psx_taken_BFC3A51C) goto label_BFC3A584; @@ -185192,7 +190215,7 @@ label_BFC3A524: psx_check_interrupts(cpu); /* 0xBFC3A524: 14D10017 bne $a2, $s1, 0xBFC3A584 */ uint32_t psx_brA_BFC3A524 = cpu->gpr[6]; uint32_t psx_brB_BFC3A524 = cpu->gpr[17]; - int psx_taken_BFC3A524 = (psx_brA_BFC3A524 != psx_brB_BFC3A524); + psx_taken_BFC3A524 = (psx_brA_BFC3A524 != psx_brB_BFC3A524); /* 0xBFC3A528: 00000000 nop */ /* nop */ if (psx_taken_BFC3A524) goto label_BFC3A584; @@ -185209,7 +190232,7 @@ label_BFC3A52C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[13] < (int32_t)cpu->gpr[11] ? 1 : 0); /* 0xBFC3A538: 14200012 bne $at, $zero, 0xBFC3A584 */ uint32_t psx_brA_BFC3A538 = cpu->gpr[1]; uint32_t psx_brB_BFC3A538 = cpu->gpr[0]; - int psx_taken_BFC3A538 = (psx_brA_BFC3A538 != psx_brB_BFC3A538); + psx_taken_BFC3A538 = (psx_brA_BFC3A538 != psx_brB_BFC3A538); /* 0xBFC3A53C: 00000000 nop */ /* nop */ if (psx_taken_BFC3A538) goto label_BFC3A584; @@ -185224,7 +190247,7 @@ label_BFC3A540: cpu->gpr[1] = (uint32_t)(cpu->gpr[12] < cpu->gpr[3] ? 1 : 0); /* 0xBFC3A548: 10200005 beq $at, $zero, 0xBFC3A560 */ uint32_t psx_brA_BFC3A548 = cpu->gpr[1]; uint32_t psx_brB_BFC3A548 = cpu->gpr[0]; - int psx_taken_BFC3A548 = (psx_brA_BFC3A548 == psx_brB_BFC3A548); + psx_taken_BFC3A548 = (psx_brA_BFC3A548 == psx_brB_BFC3A548); /* 0xBFC3A54C: 00000000 nop */ /* nop */ if (psx_taken_BFC3A548) goto label_BFC3A560; @@ -185239,7 +190262,7 @@ label_BFC3A550: cpu->gpr[3] = cpu->gpr[12] & 0xFFFFu; /* 0xBFC3A558: 1000000A beq $zero, $zero, 0xBFC3A584 */ uint32_t psx_brA_BFC3A558 = cpu->gpr[0]; uint32_t psx_brB_BFC3A558 = cpu->gpr[0]; - int psx_taken_BFC3A558 = (psx_brA_BFC3A558 == psx_brB_BFC3A558); + psx_taken_BFC3A558 = (psx_brA_BFC3A558 == psx_brB_BFC3A558); /* 0xBFC3A55C: 310700FF andi $a3, $t0, 0xFF */ cpu->gpr[7] = cpu->gpr[8] & 0xFFu; if (psx_taken_BFC3A558) goto label_BFC3A584; @@ -185250,7 +190273,7 @@ label_BFC3A560: psx_check_interrupts(cpu); /* 0xBFC3A560: 146C0008 bne $v1, $t4, 0xBFC3A584 */ uint32_t psx_brA_BFC3A560 = cpu->gpr[3]; uint32_t psx_brB_BFC3A560 = cpu->gpr[12]; - int psx_taken_BFC3A560 = (psx_brA_BFC3A560 != psx_brB_BFC3A560); + psx_taken_BFC3A560 = (psx_brA_BFC3A560 != psx_brB_BFC3A560); /* 0xBFC3A564: 00000000 nop */ /* nop */ if (psx_taken_BFC3A560) goto label_BFC3A584; @@ -185267,7 +190290,7 @@ label_BFC3A568: cpu->gpr[1] = (uint32_t)(cpu->gpr[11] < cpu->gpr[5] ? 1 : 0); /* 0xBFC3A574: 10200003 beq $at, $zero, 0xBFC3A584 */ uint32_t psx_brA_BFC3A574 = cpu->gpr[1]; uint32_t psx_brB_BFC3A574 = cpu->gpr[0]; - int psx_taken_BFC3A574 = (psx_brA_BFC3A574 == psx_brB_BFC3A574); + psx_taken_BFC3A574 = (psx_brA_BFC3A574 == psx_brB_BFC3A574); /* 0xBFC3A578: 00000000 nop */ /* nop */ if (psx_taken_BFC3A574) goto label_BFC3A584; @@ -185297,7 +190320,7 @@ label_BFC3A584: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[24] + (1)); /* 0xBFC3A598: 1420FFC4 bne $at, $zero, 0xBFC3A4AC */ uint32_t psx_brA_BFC3A598 = cpu->gpr[1]; uint32_t psx_brB_BFC3A598 = cpu->gpr[0]; - int psx_taken_BFC3A598 = (psx_brA_BFC3A598 != psx_brB_BFC3A598); + psx_taken_BFC3A598 = (psx_brA_BFC3A598 != psx_brB_BFC3A598); /* 0xBFC3A59C: A5590002 sh $t9, 2($t2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[10] + (2)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3A59Cu); return; } g_debug_last_store_pc = 0xBFC3A59Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[25] & 0xFFFFu)); } if (psx_taken_BFC3A598) goto label_BFC3A4AC; @@ -185308,7 +190331,7 @@ label_BFC3A5A0: psx_check_interrupts(cpu); /* 0xBFC3A5A0: 10D10003 beq $a2, $s1, 0xBFC3A5B0 */ uint32_t psx_brA_BFC3A5A0 = cpu->gpr[6]; uint32_t psx_brB_BFC3A5A0 = cpu->gpr[17]; - int psx_taken_BFC3A5A0 = (psx_brA_BFC3A5A0 == psx_brB_BFC3A5A0); + psx_taken_BFC3A5A0 = (psx_brA_BFC3A5A0 == psx_brB_BFC3A5A0); /* 0xBFC3A5A4: 00000000 nop */ /* nop */ if (psx_taken_BFC3A5A0) goto label_BFC3A5B0; @@ -185319,7 +190342,7 @@ label_BFC3A5A8: psx_check_interrupts(cpu); /* 0xBFC3A5A8: 1000001F beq $zero, $zero, 0xBFC3A628 */ uint32_t psx_brA_BFC3A5A8 = cpu->gpr[0]; uint32_t psx_brB_BFC3A5A8 = cpu->gpr[0]; - int psx_taken_BFC3A5A8 = (psx_brA_BFC3A5A8 == psx_brB_BFC3A5A8); + psx_taken_BFC3A5A8 = (psx_brA_BFC3A5A8 == psx_brB_BFC3A5A8); /* 0xBFC3A5AC: 00C01021 addu $v0, $a2, $zero */ cpu->gpr[2] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC3A5A8) goto label_BFC3A628; @@ -185330,7 +190353,7 @@ label_BFC3A5B0: psx_check_interrupts(cpu); /* 0xBFC3A5B0: 10F10004 beq $a3, $s1, 0xBFC3A5C4 */ uint32_t psx_brA_BFC3A5B0 = cpu->gpr[7]; uint32_t psx_brB_BFC3A5B0 = cpu->gpr[17]; - int psx_taken_BFC3A5B0 = (psx_brA_BFC3A5B0 == psx_brB_BFC3A5B0); + psx_taken_BFC3A5B0 = (psx_brA_BFC3A5B0 == psx_brB_BFC3A5B0); /* 0xBFC3A5B4: 00002821 addu $a1, $zero, $zero */ cpu->gpr[5] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3A5B0) goto label_BFC3A5C4; @@ -185341,7 +190364,7 @@ label_BFC3A5B8: psx_check_interrupts(cpu); /* 0xBFC3A5B8: 1000001B beq $zero, $zero, 0xBFC3A628 */ uint32_t psx_brA_BFC3A5B8 = cpu->gpr[0]; uint32_t psx_brB_BFC3A5B8 = cpu->gpr[0]; - int psx_taken_BFC3A5B8 = (psx_brA_BFC3A5B8 == psx_brB_BFC3A5B8); + psx_taken_BFC3A5B8 = (psx_brA_BFC3A5B8 == psx_brB_BFC3A5B8); /* 0xBFC3A5BC: 00E01021 addu $v0, $a3, $zero */ cpu->gpr[2] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC3A5B8) goto label_BFC3A628; @@ -185361,7 +190384,7 @@ label_BFC3A5C4: cpu->gpr[7] = cpu->gpr[9] & 0xFFu; /* 0xBFC3A5C8: 11200016 beq $t1, $zero, 0xBFC3A624 */ uint32_t psx_brA_BFC3A5C8 = cpu->gpr[9]; uint32_t psx_brB_BFC3A5C8 = cpu->gpr[0]; - int psx_taken_BFC3A5C8 = (psx_brA_BFC3A5C8 == psx_brB_BFC3A5C8); + psx_taken_BFC3A5C8 = (psx_brA_BFC3A5C8 == psx_brB_BFC3A5C8); /* 0xBFC3A5CC: 00004021 addu $t0, $zero, $zero */ cpu->gpr[8] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3A5C8) goto label_BFC3A624; @@ -185391,7 +190414,7 @@ label_BFC3A5D4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[13] < (int32_t)cpu->gpr[15] ? 1 : 0); /* 0xBFC3A5EC: 14200008 bne $at, $zero, 0xBFC3A610 */ uint32_t psx_brA_BFC3A5EC = cpu->gpr[1]; uint32_t psx_brB_BFC3A5EC = cpu->gpr[0]; - int psx_taken_BFC3A5EC = (psx_brA_BFC3A5EC != psx_brB_BFC3A5EC); + psx_taken_BFC3A5EC = (psx_brA_BFC3A5EC != psx_brB_BFC3A5EC); /* 0xBFC3A5F0: 00000000 nop */ /* nop */ if (psx_taken_BFC3A5EC) goto label_BFC3A610; @@ -185408,7 +190431,7 @@ label_BFC3A5F4: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[2] ? 1 : 0); /* 0xBFC3A600: 10200003 beq $at, $zero, 0xBFC3A610 */ uint32_t psx_brA_BFC3A600 = cpu->gpr[1]; uint32_t psx_brB_BFC3A600 = cpu->gpr[0]; - int psx_taken_BFC3A600 = (psx_brA_BFC3A600 == psx_brB_BFC3A600); + psx_taken_BFC3A600 = (psx_brA_BFC3A600 == psx_brB_BFC3A600); /* 0xBFC3A604: 00000000 nop */ /* nop */ if (psx_taken_BFC3A600) goto label_BFC3A610; @@ -185434,7 +190457,7 @@ label_BFC3A610: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < cpu->gpr[9] ? 1 : 0); /* 0xBFC3A61C: 1420FFED bne $at, $zero, 0xBFC3A5D4 */ uint32_t psx_brA_BFC3A61C = cpu->gpr[1]; uint32_t psx_brB_BFC3A61C = cpu->gpr[0]; - int psx_taken_BFC3A61C = (psx_brA_BFC3A61C != psx_brB_BFC3A61C); + psx_taken_BFC3A61C = (psx_brA_BFC3A61C != psx_brB_BFC3A61C); /* 0xBFC3A620: 00087080 sll $t6, $t0, 2 */ cpu->gpr[14] = cpu->gpr[8] << 2u; if (psx_taken_BFC3A61C) goto label_BFC3A5D4; @@ -185462,6 +190485,19 @@ label_BFC3A628: void func_1FC3A638(CPUState* cpu) { debug_server_log_call_entry(0x1FC3A638u); + int psx_taken_BFC3A70C = 0; + int psx_taken_BFC3A728 = 0; + int psx_taken_BFC3A75C = 0; + int psx_taken_BFC3A770 = 0; + int psx_taken_BFC3A79C = 0; + int psx_taken_BFC3A7B0 = 0; + int psx_taken_BFC3A7D8 = 0; + int psx_taken_BFC3A7E0 = 0; + int psx_taken_BFC3A7E8 = 0; + int psx_taken_BFC3A88C = 0; + int psx_taken_BFC3A8A0 = 0; + int psx_taken_BFC3A8CC = 0; + int psx_taken_BFC3A8F8 = 0; label_BFC3A638: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(55u); @@ -185575,7 +190611,7 @@ label_BFC3A638: cpu->gpr[6] = cpu->lo; /* 0xBFC3A70C: 10200009 beq $at, $zero, 0xBFC3A734 */ uint32_t psx_brA_BFC3A70C = cpu->gpr[1]; uint32_t psx_brB_BFC3A70C = cpu->gpr[0]; - int psx_taken_BFC3A70C = (psx_brA_BFC3A70C == psx_brB_BFC3A70C); + psx_taken_BFC3A70C = (psx_brA_BFC3A70C == psx_brB_BFC3A70C); /* 0xBFC3A710: 2407007F addiu $a3, $zero, 127 */ cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[0] + (127)); if (psx_taken_BFC3A70C) goto label_BFC3A734; @@ -185596,7 +190632,7 @@ label_BFC3A714: cpu->gpr[4] = cpu->gpr[4] >> 6u; /* 0xBFC3A728: 10000008 beq $zero, $zero, 0xBFC3A74C */ uint32_t psx_brA_BFC3A728 = cpu->gpr[0]; uint32_t psx_brB_BFC3A728 = cpu->gpr[0]; - int psx_taken_BFC3A728 = (psx_brA_BFC3A728 == psx_brB_BFC3A728); + psx_taken_BFC3A728 = (psx_brA_BFC3A728 == psx_brB_BFC3A728); /* 0xBFC3A72C: 00000000 nop */ /* nop */ if (psx_taken_BFC3A728) goto label_BFC3A74C; @@ -185639,7 +190675,7 @@ label_BFC3A74C: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000040u ? 1 : 0); /* 0xBFC3A75C: 10200007 beq $at, $zero, 0xBFC3A77C */ uint32_t psx_brA_BFC3A75C = cpu->gpr[1]; uint32_t psx_brB_BFC3A75C = cpu->gpr[0]; - int psx_taken_BFC3A75C = (psx_brA_BFC3A75C == psx_brB_BFC3A75C); + psx_taken_BFC3A75C = (psx_brA_BFC3A75C == psx_brB_BFC3A75C); /* 0xBFC3A760: 00E26823 subu $t5, $a3, $v0 */ cpu->gpr[13] = cpu->gpr[7] - cpu->gpr[2]; if (psx_taken_BFC3A75C) goto label_BFC3A77C; @@ -185656,7 +190692,7 @@ label_BFC3A764: cpu->gpr[4] = cpu->gpr[4] >> 6u; /* 0xBFC3A770: 10000006 beq $zero, $zero, 0xBFC3A78C */ uint32_t psx_brA_BFC3A770 = cpu->gpr[0]; uint32_t psx_brB_BFC3A770 = cpu->gpr[0]; - int psx_taken_BFC3A770 = (psx_brA_BFC3A770 == psx_brB_BFC3A770); + psx_taken_BFC3A770 = (psx_brA_BFC3A770 == psx_brB_BFC3A770); /* 0xBFC3A774: 00000000 nop */ /* nop */ if (psx_taken_BFC3A770) goto label_BFC3A78C; @@ -185695,7 +190731,7 @@ label_BFC3A78C: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000040u ? 1 : 0); /* 0xBFC3A79C: 10200007 beq $at, $zero, 0xBFC3A7BC */ uint32_t psx_brA_BFC3A79C = cpu->gpr[1]; uint32_t psx_brB_BFC3A79C = cpu->gpr[0]; - int psx_taken_BFC3A79C = (psx_brA_BFC3A79C == psx_brB_BFC3A79C); + psx_taken_BFC3A79C = (psx_brA_BFC3A79C == psx_brB_BFC3A79C); /* 0xBFC3A7A0: 00E27023 subu $t6, $a3, $v0 */ cpu->gpr[14] = cpu->gpr[7] - cpu->gpr[2]; if (psx_taken_BFC3A79C) goto label_BFC3A7BC; @@ -185712,7 +190748,7 @@ label_BFC3A7A4: cpu->gpr[4] = cpu->gpr[4] >> 6u; /* 0xBFC3A7B0: 10000006 beq $zero, $zero, 0xBFC3A7CC */ uint32_t psx_brA_BFC3A7B0 = cpu->gpr[0]; uint32_t psx_brB_BFC3A7B0 = cpu->gpr[0]; - int psx_taken_BFC3A7B0 = (psx_brA_BFC3A7B0 == psx_brB_BFC3A7B0); + psx_taken_BFC3A7B0 = (psx_brA_BFC3A7B0 == psx_brB_BFC3A7B0); /* 0xBFC3A7B4: 00000000 nop */ /* nop */ if (psx_taken_BFC3A7B0) goto label_BFC3A7CC; @@ -185749,7 +190785,7 @@ label_BFC3A7CC: cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC3A7D8: 15E80006 bne $t7, $t0, 0xBFC3A7F4 */ uint32_t psx_brA_BFC3A7D8 = cpu->gpr[15]; uint32_t psx_brB_BFC3A7D8 = cpu->gpr[8]; - int psx_taken_BFC3A7D8 = (psx_brA_BFC3A7D8 != psx_brB_BFC3A7D8); + psx_taken_BFC3A7D8 = (psx_brA_BFC3A7D8 != psx_brB_BFC3A7D8); /* 0xBFC3A7DC: 0064082B sltu $at, $v1, $a0 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[4] ? 1 : 0); if (psx_taken_BFC3A7D8) goto label_BFC3A7F4; @@ -185760,7 +190796,7 @@ label_BFC3A7E0: psx_check_interrupts(cpu); /* 0xBFC3A7E0: 10200003 beq $at, $zero, 0xBFC3A7F0 */ uint32_t psx_brA_BFC3A7E0 = cpu->gpr[1]; uint32_t psx_brB_BFC3A7E0 = cpu->gpr[0]; - int psx_taken_BFC3A7E0 = (psx_brA_BFC3A7E0 == psx_brB_BFC3A7E0); + psx_taken_BFC3A7E0 = (psx_brA_BFC3A7E0 == psx_brB_BFC3A7E0); /* 0xBFC3A7E4: 00000000 nop */ /* nop */ if (psx_taken_BFC3A7E0) goto label_BFC3A7F0; @@ -185771,7 +190807,7 @@ label_BFC3A7E8: psx_check_interrupts(cpu); /* 0xBFC3A7E8: 10000002 beq $zero, $zero, 0xBFC3A7F4 */ uint32_t psx_brA_BFC3A7E8 = cpu->gpr[0]; uint32_t psx_brB_BFC3A7E8 = cpu->gpr[0]; - int psx_taken_BFC3A7E8 = (psx_brA_BFC3A7E8 == psx_brB_BFC3A7E8); + psx_taken_BFC3A7E8 = (psx_brA_BFC3A7E8 == psx_brB_BFC3A7E8); /* 0xBFC3A7EC: 00801821 addu $v1, $a0, $zero */ cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC3A7E8) goto label_BFC3A7F4; @@ -185865,7 +190901,7 @@ label_BFC3A7F4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (4)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3A888u); return; } g_debug_last_store_pc = 0xBFC3A888u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[5] & 0xFFFFu)); } /* 0xBFC3A88C: 10200006 beq $at, $zero, 0xBFC3A8A8 */ uint32_t psx_brA_BFC3A88C = cpu->gpr[1]; uint32_t psx_brB_BFC3A88C = cpu->gpr[0]; - int psx_taken_BFC3A88C = (psx_brA_BFC3A88C == psx_brB_BFC3A88C); + psx_taken_BFC3A88C = (psx_brA_BFC3A88C == psx_brB_BFC3A88C); /* 0xBFC3A890: A0C80017 sb $t0, 23($a2) */ g_debug_last_store_pc = 0xBFC3A890u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[6] + (23)), (uint8_t)(cpu->gpr[8] & 0xFFu)); if (psx_taken_BFC3A88C) goto label_BFC3A8A8; @@ -185882,7 +190918,7 @@ label_BFC3A894: cpu->gpr[3] = cpu->gpr[3] & 0xFFFFu; /* 0xBFC3A8A0: 10000006 beq $zero, $zero, 0xBFC3A8BC */ uint32_t psx_brA_BFC3A8A0 = cpu->gpr[0]; uint32_t psx_brB_BFC3A8A0 = cpu->gpr[0]; - int psx_taken_BFC3A8A0 = (psx_brA_BFC3A8A0 == psx_brB_BFC3A8A0); + psx_taken_BFC3A8A0 = (psx_brA_BFC3A8A0 == psx_brB_BFC3A8A0); /* 0xBFC3A8A4: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3A8A0) goto label_BFC3A8BC; @@ -185916,7 +190952,7 @@ label_BFC3A8BC: cpu->gpr[13] = cpu->gpr[12] & 0x4u; /* 0xBFC3A8CC: 11A0000C beq $t5, $zero, 0xBFC3A900 */ uint32_t psx_brA_BFC3A8CC = cpu->gpr[13]; uint32_t psx_brB_BFC3A8CC = cpu->gpr[0]; - int psx_taken_BFC3A8CC = (psx_brA_BFC3A8CC == psx_brB_BFC3A8CC); + psx_taken_BFC3A8CC = (psx_brA_BFC3A8CC == psx_brB_BFC3A8CC); /* 0xBFC3A8D0: 00000000 nop */ /* nop */ if (psx_taken_BFC3A8CC) goto label_BFC3A900; @@ -185945,7 +190981,7 @@ label_BFC3A8D4: cpu->gpr[25] = cpu->gpr[24] | cpu->gpr[4]; /* 0xBFC3A8F8: 1000000D beq $zero, $zero, 0xBFC3A930 */ uint32_t psx_brA_BFC3A8F8 = cpu->gpr[0]; uint32_t psx_brB_BFC3A8F8 = cpu->gpr[0]; - int psx_taken_BFC3A8F8 = (psx_brA_BFC3A8F8 == psx_brB_BFC3A8F8); + psx_taken_BFC3A8F8 = (psx_brA_BFC3A8F8 == psx_brB_BFC3A8F8); /* 0xBFC3A8FC: A4399F16 sh $t9, -24810($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24810)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3A8FCu); return; } g_debug_last_store_pc = 0xBFC3A8FCu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[25] & 0xFFFFu)); } if (psx_taken_BFC3A8F8) goto label_BFC3A930; @@ -186009,6 +191045,8 @@ label_BFC3A930: void func_1FC3A95C(CPUState* cpu) { debug_server_log_call_entry(0x1FC3A95Cu); + int psx_taken_BFC3A96C = 0; + int psx_taken_BFC3A980 = 0; label_BFC3A95C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -186024,7 +191062,7 @@ label_BFC3A95C: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < 0x00000010u ? 1 : 0); /* 0xBFC3A96C: 10200007 beq $at, $zero, 0xBFC3A98C */ uint32_t psx_brA_BFC3A96C = cpu->gpr[1]; uint32_t psx_brB_BFC3A96C = cpu->gpr[0]; - int psx_taken_BFC3A96C = (psx_brA_BFC3A96C == psx_brB_BFC3A96C); + psx_taken_BFC3A96C = (psx_brA_BFC3A96C == psx_brB_BFC3A96C); /* 0xBFC3A970: 244F0010 addiu $t7, $v0, 16 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[2] + (16)); if (psx_taken_BFC3A96C) goto label_BFC3A98C; @@ -186041,7 +191079,7 @@ label_BFC3A974: cpu->gpr[3] = cpu->gpr[3] & 0xFFFFu; /* 0xBFC3A980: 10000006 beq $zero, $zero, 0xBFC3A99C */ uint32_t psx_brA_BFC3A980 = cpu->gpr[0]; uint32_t psx_brB_BFC3A980 = cpu->gpr[0]; - int psx_taken_BFC3A980 = (psx_brA_BFC3A980 == psx_brB_BFC3A980); + psx_taken_BFC3A980 = (psx_brA_BFC3A980 == psx_brB_BFC3A980); /* 0xBFC3A984: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3A980) goto label_BFC3A99C; @@ -186114,6 +191152,11 @@ label_BFC3A99C: void func_1FC3A9EC(CPUState* cpu) { debug_server_log_call_entry(0x1FC3A9ECu); + int psx_taken_BFC3AA18 = 0; + int psx_taken_BFC3AA44 = 0; + int psx_taken_BFC3AA94 = 0; + int psx_taken_BFC3AAA0 = 0; + int psx_taken_BFC3AAA8 = 0; label_BFC3A9EC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -186143,7 +191186,7 @@ label_BFC3A9EC: /* nop */ /* 0xBFC3AA18: 04A10002 bgez $a1, 0xBFC3AA24 */ uint32_t psx_brA_BFC3AA18 = cpu->gpr[5]; - int psx_taken_BFC3AA18 = ((int32_t)psx_brA_BFC3AA18 >= 0); + psx_taken_BFC3AA18 = ((int32_t)psx_brA_BFC3AA18 >= 0); /* 0xBFC3AA1C: 00A00821 addu $at, $a1, $zero */ cpu->gpr[1] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC3AA18) goto label_BFC3AA24; @@ -186177,7 +191220,7 @@ label_BFC3AA24: cpu->gpr[4] = cpu->gpr[5] & 0xFFFFu; /* 0xBFC3AA44: 14200002 bne $at, $zero, 0xBFC3AA50 */ uint32_t psx_brA_BFC3AA44 = cpu->gpr[1]; uint32_t psx_brB_BFC3AA44 = cpu->gpr[0]; - int psx_taken_BFC3AA44 = (psx_brA_BFC3AA44 != psx_brB_BFC3AA44); + psx_taken_BFC3AA44 = (psx_brA_BFC3AA44 != psx_brB_BFC3AA44); /* 0xBFC3AA48: 00073C03 sra $a3, $a3, 16 */ cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[7] >> 16u); if (psx_taken_BFC3AA44) goto label_BFC3AA50; @@ -186229,7 +191272,7 @@ label_BFC3AA50: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (-27140)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3AA90u); return; } cpu->gpr[5] = (uint32_t)cpu->read_half(psx_addr); } /* 0xBFC3AA94: 18E00004 blez $a3, 0xBFC3AAA8 */ uint32_t psx_brA_BFC3AA94 = cpu->gpr[7]; - int psx_taken_BFC3AA94 = ((int32_t)psx_brA_BFC3AA94 <= 0); + psx_taken_BFC3AA94 = ((int32_t)psx_brA_BFC3AA94 <= 0); /* 0xBFC3AA98: 00000000 nop */ /* nop */ if (psx_taken_BFC3AA94) goto label_BFC3AAA8; @@ -186242,7 +191285,7 @@ label_BFC3AA9C: cpu->gpr[5] = cpu->gpr[5] << (cpu->gpr[7] & 0x1Fu); /* 0xBFC3AAA0: 10000006 beq $zero, $zero, 0xBFC3AABC */ uint32_t psx_brA_BFC3AAA0 = cpu->gpr[0]; uint32_t psx_brB_BFC3AAA0 = cpu->gpr[0]; - int psx_taken_BFC3AAA0 = (psx_brA_BFC3AAA0 == psx_brB_BFC3AAA0); + psx_taken_BFC3AAA0 = (psx_brA_BFC3AAA0 == psx_brB_BFC3AAA0); /* 0xBFC3AAA4: 30A5FFFF andi $a1, $a1, 0xFFFF */ cpu->gpr[5] = cpu->gpr[5] & 0xFFFFu; if (psx_taken_BFC3AAA0) goto label_BFC3AABC; @@ -186253,7 +191296,7 @@ label_BFC3AAA8: psx_check_interrupts(cpu); /* 0xBFC3AAA8: 04E10004 bgez $a3, 0xBFC3AABC */ uint32_t psx_brA_BFC3AAA8 = cpu->gpr[7]; - int psx_taken_BFC3AAA8 = ((int32_t)psx_brA_BFC3AAA8 >= 0); + psx_taken_BFC3AAA8 = ((int32_t)psx_brA_BFC3AAA8 >= 0); /* 0xBFC3AAAC: 00000000 nop */ /* nop */ if (psx_taken_BFC3AAA8) goto label_BFC3AABC; @@ -186281,6 +191324,10 @@ label_BFC3AABC: void func_1FC3AAC4(CPUState* cpu) { debug_server_log_call_entry(0x1FC3AAC4u); + int psx_taken_BFC3AAD8 = 0; + int psx_taken_BFC3AB18 = 0; + int psx_taken_BFC3AB2C = 0; + int psx_taken_BFC3AB60 = 0; label_BFC3AAC4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -186298,7 +191345,7 @@ label_BFC3AAC4: cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC3AAD8: 18C00023 blez $a2, 0xBFC3AB68 */ uint32_t psx_brA_BFC3AAD8 = cpu->gpr[6]; - int psx_taken_BFC3AAD8 = ((int32_t)psx_brA_BFC3AAD8 <= 0); + psx_taken_BFC3AAD8 = ((int32_t)psx_brA_BFC3AAD8 <= 0); /* 0xBFC3AADC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3AAD8) goto label_BFC3AB68; @@ -186342,7 +191389,7 @@ label_BFC3AAF4: cpu->gpr[1] = (uint32_t)(cpu->gpr[7] < cpu->gpr[10] ? 1 : 0); /* 0xBFC3AB18: 1420000D bne $at, $zero, 0xBFC3AB50 */ uint32_t psx_brA_BFC3AB18 = cpu->gpr[1]; uint32_t psx_brB_BFC3AB18 = cpu->gpr[0]; - int psx_taken_BFC3AB18 = (psx_brA_BFC3AB18 != psx_brB_BFC3AB18); + psx_taken_BFC3AB18 = (psx_brA_BFC3AB18 != psx_brB_BFC3AB18); /* 0xBFC3AB1C: 00000000 nop */ /* nop */ if (psx_taken_BFC3AB18) goto label_BFC3AB50; @@ -186359,7 +191406,7 @@ label_BFC3AB20: cpu->gpr[1] = (uint32_t)(cpu->gpr[11] < cpu->gpr[7] ? 1 : 0); /* 0xBFC3AB2C: 14200008 bne $at, $zero, 0xBFC3AB50 */ uint32_t psx_brA_BFC3AB2C = cpu->gpr[1]; uint32_t psx_brB_BFC3AB2C = cpu->gpr[0]; - int psx_taken_BFC3AB2C = (psx_brA_BFC3AB2C != psx_brB_BFC3AB2C); + psx_taken_BFC3AB2C = (psx_brA_BFC3AB2C != psx_brB_BFC3AB2C); /* 0xBFC3AB30: 00000000 nop */ /* nop */ if (psx_taken_BFC3AB2C) goto label_BFC3AB50; @@ -186397,7 +191444,7 @@ label_BFC3AB50: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[6] ? 1 : 0); /* 0xBFC3AB60: 1420FFE4 bne $at, $zero, 0xBFC3AAF4 */ uint32_t psx_brA_BFC3AB60 = cpu->gpr[1]; uint32_t psx_brB_BFC3AB60 = cpu->gpr[0]; - int psx_taken_BFC3AB60 = (psx_brA_BFC3AB60 != psx_brB_BFC3AB60); + psx_taken_BFC3AB60 = (psx_brA_BFC3AB60 != psx_brB_BFC3AB60); /* 0xBFC3AB64: 00000000 nop */ /* nop */ if (psx_taken_BFC3AB60) goto label_BFC3AAF4; @@ -186414,6 +191461,10 @@ label_BFC3AB68: void func_1FC3AB70(CPUState* cpu) { debug_server_log_call_entry(0x1FC3AB70u); + int psx_taken_BFC3ABAC = 0; + int psx_taken_BFC3ABD0 = 0; + int psx_taken_BFC3ABEC = 0; + int psx_taken_BFC3AC10 = 0; label_BFC3AB70: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(17u); @@ -186451,7 +191502,7 @@ label_BFC3AB70: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] >> 16u); /* 0xBFC3ABAC: 1B200011 blez $t9, 0xBFC3ABF4 */ uint32_t psx_brA_BFC3ABAC = cpu->gpr[25]; - int psx_taken_BFC3ABAC = ((int32_t)psx_brA_BFC3ABAC <= 0); + psx_taken_BFC3ABAC = ((int32_t)psx_brA_BFC3ABAC <= 0); /* 0xBFC3ABB0: A423EDF4 sh $v1, -4620($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4620)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3ABB0u); return; } g_debug_last_store_pc = 0xBFC3ABB0u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[3] & 0xFFFFu)); } if (psx_taken_BFC3ABAC) goto label_BFC3ABF4; @@ -186476,7 +191527,7 @@ label_BFC3ABB4: cpu->gpr[24] = cpu->gpr[14] + cpu->gpr[15]; /* 0xBFC3ABD0: 05210002 bgez $t1, 0xBFC3ABDC */ uint32_t psx_brA_BFC3ABD0 = cpu->gpr[9]; - int psx_taken_BFC3ABD0 = ((int32_t)psx_brA_BFC3ABD0 >= 0); + psx_taken_BFC3ABD0 = ((int32_t)psx_brA_BFC3ABD0 >= 0); /* 0xBFC3ABD4: 01200821 addu $at, $t1, $zero */ cpu->gpr[1] = cpu->gpr[9] + cpu->gpr[0]; if (psx_taken_BFC3ABD0) goto label_BFC3ABDC; @@ -186502,7 +191553,7 @@ label_BFC3ABDC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[12] + (12)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3ABE8u); return; } cpu->gpr[13] = (uint32_t)cpu->read_half(psx_addr); } /* 0xBFC3ABEC: 10000011 beq $zero, $zero, 0xBFC3AC34 */ uint32_t psx_brA_BFC3ABEC = cpu->gpr[0]; uint32_t psx_brB_BFC3ABEC = cpu->gpr[0]; - int psx_taken_BFC3ABEC = (psx_brA_BFC3ABEC == psx_brB_BFC3ABEC); + psx_taken_BFC3ABEC = (psx_brA_BFC3ABEC == psx_brB_BFC3ABEC); /* 0xBFC3ABF0: A70D0006 sh $t5, 6($t8) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (6)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3ABF0u); return; } g_debug_last_store_pc = 0xBFC3ABF0u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[13] & 0xFFFFu)); } if (psx_taken_BFC3ABEC) goto label_BFC3AC34; @@ -186527,7 +191578,7 @@ label_BFC3ABF4: cpu->gpr[13] = cpu->gpr[14] + cpu->gpr[15]; /* 0xBFC3AC10: 05210002 bgez $t1, 0xBFC3AC1C */ uint32_t psx_brA_BFC3AC10 = cpu->gpr[9]; - int psx_taken_BFC3AC10 = ((int32_t)psx_brA_BFC3AC10 >= 0); + psx_taken_BFC3AC10 = ((int32_t)psx_brA_BFC3AC10 >= 0); /* 0xBFC3AC14: 01200821 addu $at, $t1, $zero */ cpu->gpr[1] = cpu->gpr[9] + cpu->gpr[0]; if (psx_taken_BFC3AC10) goto label_BFC3AC1C; @@ -186616,6 +191667,10 @@ label_BFC3AC34: void func_1FC3AC9C(CPUState* cpu) { debug_server_log_call_entry(0x1FC3AC9Cu); + int psx_taken_BFC3ACA8 = 0; + int psx_taken_BFC3ACB0 = 0; + int psx_taken_BFC3ACC8 = 0; + int psx_taken_BFC3ACE0 = 0; label_BFC3AC9C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -186629,7 +191684,7 @@ label_BFC3AC9C: cpu->gpr[5] = cpu->gpr[5] << 16u; /* 0xBFC3ACA8: 1C80000F bgtz $a0, 0xBFC3ACE8 */ uint32_t psx_brA_BFC3ACA8 = cpu->gpr[4]; - int psx_taken_BFC3ACA8 = ((int32_t)psx_brA_BFC3ACA8 > 0); + psx_taken_BFC3ACA8 = ((int32_t)psx_brA_BFC3ACA8 > 0); /* 0xBFC3ACAC: 00052C03 sra $a1, $a1, 16 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] >> 16u); if (psx_taken_BFC3ACA8) goto label_BFC3ACE8; @@ -186640,7 +191695,7 @@ label_BFC3ACB0: psx_check_interrupts(cpu); /* 0xBFC3ACB0: 0480000D bltz $a0, 0xBFC3ACE8 */ uint32_t psx_brA_BFC3ACB0 = cpu->gpr[4]; - int psx_taken_BFC3ACB0 = ((int32_t)psx_brA_BFC3ACB0 < 0); + psx_taken_BFC3ACB0 = ((int32_t)psx_brA_BFC3ACB0 < 0); /* 0xBFC3ACB4: 00000000 nop */ /* nop */ if (psx_taken_BFC3ACB0) goto label_BFC3ACE8; @@ -186659,7 +191714,7 @@ label_BFC3ACB8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC3ACC8: 15C10007 bne $t6, $at, 0xBFC3ACE8 */ uint32_t psx_brA_BFC3ACC8 = cpu->gpr[14]; uint32_t psx_brB_BFC3ACC8 = cpu->gpr[1]; - int psx_taken_BFC3ACC8 = (psx_brA_BFC3ACC8 != psx_brB_BFC3ACC8); + psx_taken_BFC3ACC8 = (psx_brA_BFC3ACC8 != psx_brB_BFC3ACC8); /* 0xBFC3ACCC: 00000000 nop */ /* nop */ if (psx_taken_BFC3ACC8) goto label_BFC3ACE8; @@ -186678,7 +191733,7 @@ label_BFC3ACD0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[5] < (int32_t)cpu->gpr[15] ? 1 : 0); /* 0xBFC3ACE0: 14200004 bne $at, $zero, 0xBFC3ACF4 */ uint32_t psx_brA_BFC3ACE0 = cpu->gpr[1]; uint32_t psx_brB_BFC3ACE0 = cpu->gpr[0]; - int psx_taken_BFC3ACE0 = (psx_brA_BFC3ACE0 != psx_brB_BFC3ACE0); + psx_taken_BFC3ACE0 = (psx_brA_BFC3ACE0 != psx_brB_BFC3ACE0); /* 0xBFC3ACE4: 0004C080 sll $t8, $a0, 2 */ cpu->gpr[24] = cpu->gpr[4] << 2u; if (psx_taken_BFC3ACE0) goto label_BFC3ACF4; @@ -186772,6 +191827,16 @@ void func_1FC3AD68(CPUState* cpu) { default: break; } } + int psx_taken_BFC3ADA0 = 0; + int psx_taken_BFC3ADA8 = 0; + int psx_taken_BFC3AE2C = 0; + int psx_taken_BFC3AE40 = 0; + int psx_taken_BFC3AE48 = 0; + int psx_taken_BFC3AE60 = 0; + int psx_taken_BFC3AE7C = 0; + int psx_taken_BFC3AF60 = 0; + int psx_taken_BFC3AF68 = 0; + int psx_taken_BFC3B010 = 0; label_BFC3AD68: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -186813,7 +191878,7 @@ label_BFC3ADA0: psx_check_interrupts(cpu); /* 0xBFC3ADA0: 10400003 beq $v0, $zero, 0xBFC3ADB0 */ uint32_t psx_brA_BFC3ADA0 = cpu->gpr[2]; uint32_t psx_brB_BFC3ADA0 = cpu->gpr[0]; - int psx_taken_BFC3ADA0 = (psx_brA_BFC3ADA0 == psx_brB_BFC3ADA0); + psx_taken_BFC3ADA0 = (psx_brA_BFC3ADA0 == psx_brB_BFC3ADA0); /* 0xBFC3ADA4: 00000000 nop */ /* nop */ if (psx_taken_BFC3ADA0) goto label_BFC3ADB0; @@ -186824,7 +191889,7 @@ label_BFC3ADA8: psx_check_interrupts(cpu); /* 0xBFC3ADA8: 100000A4 beq $zero, $zero, 0xBFC3B03C */ uint32_t psx_brA_BFC3ADA8 = cpu->gpr[0]; uint32_t psx_brB_BFC3ADA8 = cpu->gpr[0]; - int psx_taken_BFC3ADA8 = (psx_brA_BFC3ADA8 == psx_brB_BFC3ADA8); + psx_taken_BFC3ADA8 = (psx_brA_BFC3ADA8 == psx_brB_BFC3ADA8); /* 0xBFC3ADAC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3ADA8) goto label_BFC3B03C; @@ -186897,7 +191962,7 @@ label_BFC3ADB0: cpu->gpr[1] = (uint32_t)(cpu->gpr[19] < cpu->gpr[11] ? 1 : 0); /* 0xBFC3AE2C: 14200006 bne $at, $zero, 0xBFC3AE48 */ uint32_t psx_brA_BFC3AE2C = cpu->gpr[1]; uint32_t psx_brB_BFC3AE2C = cpu->gpr[0]; - int psx_taken_BFC3AE2C = (psx_brA_BFC3AE2C != psx_brB_BFC3AE2C); + psx_taken_BFC3AE2C = (psx_brA_BFC3AE2C != psx_brB_BFC3AE2C); /* 0xBFC3AE30: 00000000 nop */ /* nop */ if (psx_taken_BFC3AE2C) goto label_BFC3AE48; @@ -186914,7 +191979,7 @@ label_BFC3AE34: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (72)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3AE3Cu); return; } cpu->gpr[30] = cpu->read_word(psx_addr); } /* 0xBFC3AE40: 1000007E beq $zero, $zero, 0xBFC3B03C */ uint32_t psx_brA_BFC3AE40 = cpu->gpr[0]; uint32_t psx_brB_BFC3AE40 = cpu->gpr[0]; - int psx_taken_BFC3AE40 = (psx_brA_BFC3AE40 == psx_brB_BFC3AE40); + psx_taken_BFC3AE40 = (psx_brA_BFC3AE40 == psx_brB_BFC3AE40); /* 0xBFC3AE44: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3AE40) goto label_BFC3B03C; @@ -186925,7 +191990,7 @@ label_BFC3AE48: psx_check_interrupts(cpu); /* 0xBFC3AE48: 14600008 bne $v1, $zero, 0xBFC3AE6C */ uint32_t psx_brA_BFC3AE48 = cpu->gpr[3]; uint32_t psx_brB_BFC3AE48 = cpu->gpr[0]; - int psx_taken_BFC3AE48 = (psx_brA_BFC3AE48 != psx_brB_BFC3AE48); + psx_taken_BFC3AE48 = (psx_brA_BFC3AE48 != psx_brB_BFC3AE48); /* 0xBFC3AE4C: 27A40068 addiu $a0, $sp, 104 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[29] + (104)); if (psx_taken_BFC3AE48) goto label_BFC3AE6C; @@ -186950,7 +192015,7 @@ label_BFC3AE60: psx_check_interrupts(cpu); /* 0xBFC3AE60: 10000072 beq $zero, $zero, 0xBFC3B02C */ uint32_t psx_brA_BFC3AE60 = cpu->gpr[0]; uint32_t psx_brB_BFC3AE60 = cpu->gpr[0]; - int psx_taken_BFC3AE60 = (psx_brA_BFC3AE60 == psx_brB_BFC3AE60); + psx_taken_BFC3AE60 = (psx_brA_BFC3AE60 == psx_brB_BFC3AE60); /* 0xBFC3AE64: 02E01021 addu $v0, $s7, $zero */ cpu->gpr[2] = cpu->gpr[23] + cpu->gpr[0]; if (psx_taken_BFC3AE60) goto label_BFC3B02C; @@ -186982,7 +192047,7 @@ label_BFC3AE74: cpu->gpr[18] = cpu->gpr[2] & 0xFFu; /* 0xBFC3AE7C: 1180006A beq $t4, $zero, 0xBFC3B028 */ uint32_t psx_brA_BFC3AE7C = cpu->gpr[12]; uint32_t psx_brB_BFC3AE7C = cpu->gpr[0]; - int psx_taken_BFC3AE7C = (psx_brA_BFC3AE7C == psx_brB_BFC3AE7C); + psx_taken_BFC3AE7C = (psx_brA_BFC3AE7C == psx_brB_BFC3AE7C); /* 0xBFC3AE80: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3AE7C) goto label_BFC3B028; @@ -187114,7 +192179,7 @@ label_BFC3AF44: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[11] < (int32_t)cpu->gpr[12] ? 1 : 0); /* 0xBFC3AF60: 14200003 bne $at, $zero, 0xBFC3AF70 */ uint32_t psx_brA_BFC3AF60 = cpu->gpr[1]; uint32_t psx_brB_BFC3AF60 = cpu->gpr[0]; - int psx_taken_BFC3AF60 = (psx_brA_BFC3AF60 != psx_brB_BFC3AF60); + psx_taken_BFC3AF60 = (psx_brA_BFC3AF60 != psx_brB_BFC3AF60); /* 0xBFC3AF64: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3AF60) goto label_BFC3AF70; @@ -187125,7 +192190,7 @@ label_BFC3AF68: psx_check_interrupts(cpu); /* 0xBFC3AF68: 10000026 beq $zero, $zero, 0xBFC3B004 */ uint32_t psx_brA_BFC3AF68 = cpu->gpr[0]; uint32_t psx_brB_BFC3AF68 = cpu->gpr[0]; - int psx_taken_BFC3AF68 = (psx_brA_BFC3AF68 == psx_brB_BFC3AF68); + psx_taken_BFC3AF68 = (psx_brA_BFC3AF68 == psx_brB_BFC3AF68); /* 0xBFC3AF6C: A031EDE5 sb $s1, -4635($at) */ g_debug_last_store_pc = 0xBFC3AF6Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[1] + (-4635)), (uint8_t)(cpu->gpr[17] & 0xFFu)); if (psx_taken_BFC3AF68) goto label_BFC3B004; @@ -187239,7 +192304,7 @@ label_BFC3B004: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[18] ? 1 : 0); /* 0xBFC3B010: 1420FFA7 bne $at, $zero, 0xBFC3AEB0 */ uint32_t psx_brA_BFC3B010 = cpu->gpr[1]; uint32_t psx_brB_BFC3B010 = cpu->gpr[0]; - int psx_taken_BFC3B010 = (psx_brA_BFC3B010 != psx_brB_BFC3B010); + psx_taken_BFC3B010 = (psx_brA_BFC3B010 != psx_brB_BFC3B010); /* 0xBFC3B014: 27AD0170 addiu $t5, $sp, 368 */ cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[29] + (368)); if (psx_taken_BFC3B010) goto label_BFC3AEB0; @@ -187305,6 +192370,12 @@ void func_1FC3B054(CPUState* cpu) { default: break; } } + int psx_taken_BFC3B0A0 = 0; + int psx_taken_BFC3B0CC = 0; + int psx_taken_BFC3B0DC = 0; + int psx_taken_BFC3B0EC = 0; + int psx_taken_BFC3B0FC = 0; + int psx_taken_BFC3B124 = 0; label_BFC3B054: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(21u); @@ -187350,7 +192421,7 @@ label_BFC3B054: cpu->gpr[17] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC3B0A0: 12400024 beq $s2, $zero, 0xBFC3B134 */ uint32_t psx_brA_BFC3B0A0 = cpu->gpr[18]; uint32_t psx_brB_BFC3B0A0 = cpu->gpr[0]; - int psx_taken_BFC3B0A0 = (psx_brA_BFC3B0A0 == psx_brB_BFC3B0A0); + psx_taken_BFC3B0A0 = (psx_brA_BFC3B0A0 == psx_brB_BFC3B0A0); /* 0xBFC3B0A4: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3B0A0) goto label_BFC3B134; @@ -187384,7 +192455,7 @@ label_BFC3B0B8: /* nop */ /* 0xBFC3B0CC: 168F0012 bne $s4, $t7, 0xBFC3B118 */ uint32_t psx_brA_BFC3B0CC = cpu->gpr[20]; uint32_t psx_brB_BFC3B0CC = cpu->gpr[15]; - int psx_taken_BFC3B0CC = (psx_brA_BFC3B0CC != psx_brB_BFC3B0CC); + psx_taken_BFC3B0CC = (psx_brA_BFC3B0CC != psx_brB_BFC3B0CC); /* 0xBFC3B0D0: 00000000 nop */ /* nop */ if (psx_taken_BFC3B0CC) goto label_BFC3B118; @@ -187399,7 +192470,7 @@ label_BFC3B0D4: /* nop */ /* 0xBFC3B0DC: 16B8000E bne $s5, $t8, 0xBFC3B118 */ uint32_t psx_brA_BFC3B0DC = cpu->gpr[21]; uint32_t psx_brB_BFC3B0DC = cpu->gpr[24]; - int psx_taken_BFC3B0DC = (psx_brA_BFC3B0DC != psx_brB_BFC3B0DC); + psx_taken_BFC3B0DC = (psx_brA_BFC3B0DC != psx_brB_BFC3B0DC); /* 0xBFC3B0E0: 00000000 nop */ /* nop */ if (psx_taken_BFC3B0DC) goto label_BFC3B118; @@ -187414,7 +192485,7 @@ label_BFC3B0E4: /* nop */ /* 0xBFC3B0EC: 16D9000A bne $s6, $t9, 0xBFC3B118 */ uint32_t psx_brA_BFC3B0EC = cpu->gpr[22]; uint32_t psx_brB_BFC3B0EC = cpu->gpr[25]; - int psx_taken_BFC3B0EC = (psx_brA_BFC3B0EC != psx_brB_BFC3B0EC); + psx_taken_BFC3B0EC = (psx_brA_BFC3B0EC != psx_brB_BFC3B0EC); /* 0xBFC3B0F0: 00000000 nop */ /* nop */ if (psx_taken_BFC3B0EC) goto label_BFC3B118; @@ -187429,7 +192500,7 @@ label_BFC3B0F4: /* nop */ /* 0xBFC3B0FC: 16E80006 bne $s7, $t0, 0xBFC3B118 */ uint32_t psx_brA_BFC3B0FC = cpu->gpr[23]; uint32_t psx_brB_BFC3B0FC = cpu->gpr[8]; - int psx_taken_BFC3B0FC = (psx_brA_BFC3B0FC != psx_brB_BFC3B0FC); + psx_taken_BFC3B0FC = (psx_brA_BFC3B0FC != psx_brB_BFC3B0FC); /* 0xBFC3B100: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3B0FC) goto label_BFC3B118; @@ -187467,7 +192538,7 @@ label_BFC3B118: cpu->gpr[1] = (uint32_t)(cpu->gpr[16] < cpu->gpr[18] ? 1 : 0); /* 0xBFC3B124: 1420FFE4 bne $at, $zero, 0xBFC3B0B8 */ uint32_t psx_brA_BFC3B124 = cpu->gpr[1]; uint32_t psx_brB_BFC3B124 = cpu->gpr[0]; - int psx_taken_BFC3B124 = (psx_brA_BFC3B124 != psx_brB_BFC3B124); + psx_taken_BFC3B124 = (psx_brA_BFC3B124 != psx_brB_BFC3B124); /* 0xBFC3B128: 00107080 sll $t6, $s0, 2 */ cpu->gpr[14] = cpu->gpr[16] << 2u; if (psx_taken_BFC3B124) goto label_BFC3B0B8; @@ -187511,6 +192582,8 @@ label_BFC3B134: void func_1FC3B160(CPUState* cpu) { debug_server_log_call_entry(0x1FC3B160u); + int psx_taken_BFC3B16C = 0; + int psx_taken_BFC3B1B0 = 0; label_BFC3B160: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -187524,7 +192597,7 @@ label_BFC3B160: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC3B16C: 10600012 beq $v1, $zero, 0xBFC3B1B8 */ uint32_t psx_brA_BFC3B16C = cpu->gpr[3]; uint32_t psx_brB_BFC3B16C = cpu->gpr[0]; - int psx_taken_BFC3B16C = (psx_brA_BFC3B16C == psx_brB_BFC3B16C); + psx_taken_BFC3B16C = (psx_brA_BFC3B16C == psx_brB_BFC3B16C); /* 0xBFC3B170: 00000000 nop */ /* nop */ if (psx_taken_BFC3B16C) goto label_BFC3B1B8; @@ -187570,7 +192643,7 @@ label_BFC3B17C: cpu->gpr[1] = (uint32_t)(cpu->gpr[2] < cpu->gpr[3] ? 1 : 0); /* 0xBFC3B1B0: 1420FFF2 bne $at, $zero, 0xBFC3B17C */ uint32_t psx_brA_BFC3B1B0 = cpu->gpr[1]; uint32_t psx_brB_BFC3B1B0 = cpu->gpr[0]; - int psx_taken_BFC3B1B0 = (psx_brA_BFC3B1B0 != psx_brB_BFC3B1B0); + psx_taken_BFC3B1B0 = (psx_brA_BFC3B1B0 != psx_brB_BFC3B1B0); /* 0xBFC3B1B4: A5480006 sh $t0, 6($t2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[10] + (6)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B1B4u); return; } g_debug_last_store_pc = 0xBFC3B1B4u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[8] & 0xFFFFu)); } if (psx_taken_BFC3B1B0) goto label_BFC3B17C; @@ -187700,6 +192773,7 @@ void func_1FC3B30C(CPUState* cpu) { default: break; } } + int psx_taken_BFC3B330 = 0; label_BFC3B30C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -187731,7 +192805,7 @@ label_BFC3B320: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC3B330: 11E10009 beq $t7, $at, 0xBFC3B358 */ uint32_t psx_brA_BFC3B330 = cpu->gpr[15]; uint32_t psx_brB_BFC3B330 = cpu->gpr[1]; - int psx_taken_BFC3B330 = (psx_brA_BFC3B330 == psx_brB_BFC3B330); + psx_taken_BFC3B330 = (psx_brA_BFC3B330 == psx_brB_BFC3B330); /* 0xBFC3B334: 00052C03 sra $a1, $a1, 16 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] >> 16u); if (psx_taken_BFC3B330) goto label_BFC3B358; @@ -187795,6 +192869,45 @@ void func_1FC3B368(CPUState* cpu) { default: break; } } + int psx_taken_BFC3B394 = 0; + int psx_taken_BFC3B39C = 0; + int psx_taken_BFC3B3BC = 0; + int psx_taken_BFC3B3CC = 0; + int psx_taken_BFC3B3D8 = 0; + int psx_taken_BFC3B3F4 = 0; + int psx_taken_BFC3B41C = 0; + int psx_taken_BFC3B428 = 0; + int psx_taken_BFC3B43C = 0; + int psx_taken_BFC3B458 = 0; + int psx_taken_BFC3B464 = 0; + int psx_taken_BFC3B490 = 0; + int psx_taken_BFC3B4BC = 0; + int psx_taken_BFC3B4E8 = 0; + int psx_taken_BFC3B4F4 = 0; + int psx_taken_BFC3B520 = 0; + int psx_taken_BFC3B528 = 0; + int psx_taken_BFC3B53C = 0; + int psx_taken_BFC3B54C = 0; + int psx_taken_BFC3B574 = 0; + int psx_taken_BFC3B5A0 = 0; + int psx_taken_BFC3B5D8 = 0; + int psx_taken_BFC3B608 = 0; + int psx_taken_BFC3B624 = 0; + int psx_taken_BFC3B66C = 0; + int psx_taken_BFC3B690 = 0; + int psx_taken_BFC3B69C = 0; + int psx_taken_BFC3B6BC = 0; + int psx_taken_BFC3B704 = 0; + int psx_taken_BFC3B730 = 0; + int psx_taken_BFC3B748 = 0; + int psx_taken_BFC3B774 = 0; + int psx_taken_BFC3B7A4 = 0; + int psx_taken_BFC3B7AC = 0; + int psx_taken_BFC3B7B8 = 0; + int psx_taken_BFC3B7D0 = 0; + int psx_taken_BFC3B7E8 = 0; + int psx_taken_BFC3B800 = 0; + int psx_taken_BFC3B824 = 0; label_BFC3B368: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -187830,7 +192943,7 @@ label_BFC3B388: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (1100)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B390u); return; } cpu->gpr[9] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC3B394: 14450003 bne $v0, $a1, 0xBFC3B3A4 */ uint32_t psx_brA_BFC3B394 = cpu->gpr[2]; uint32_t psx_brB_BFC3B394 = cpu->gpr[5]; - int psx_taken_BFC3B394 = (psx_brA_BFC3B394 != psx_brB_BFC3B394); + psx_taken_BFC3B394 = (psx_brA_BFC3B394 != psx_brB_BFC3B394); /* 0xBFC3B398: 00000000 nop */ /* nop */ if (psx_taken_BFC3B394) goto label_BFC3B3A4; @@ -187841,7 +192954,7 @@ label_BFC3B39C: psx_check_interrupts(cpu); /* 0xBFC3B39C: 1000012B beq $zero, $zero, 0xBFC3B84C */ uint32_t psx_brA_BFC3B39C = cpu->gpr[0]; uint32_t psx_brB_BFC3B39C = cpu->gpr[0]; - int psx_taken_BFC3B39C = (psx_brA_BFC3B39C == psx_brB_BFC3B39C); + psx_taken_BFC3B39C = (psx_brA_BFC3B39C == psx_brB_BFC3B39C); /* 0xBFC3B3A0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3B39C) goto label_BFC3B84C; @@ -187870,7 +192983,7 @@ label_BFC3B3B4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (1096)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B3B8u); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } /* 0xBFC3B3BC: 19200005 blez $t1, 0xBFC3B3D4 */ uint32_t psx_brA_BFC3B3BC = cpu->gpr[9]; - int psx_taken_BFC3B3BC = ((int32_t)psx_brA_BFC3B3BC <= 0); + psx_taken_BFC3B3BC = ((int32_t)psx_brA_BFC3B3BC <= 0); /* 0xBFC3B3C0: 24050001 addiu $a1, $zero, 1 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3B3BC) goto label_BFC3B3D4; @@ -187891,7 +193004,7 @@ label_BFC3B3CC: psx_check_interrupts(cpu); /* 0xBFC3B3CC: 1000011F beq $zero, $zero, 0xBFC3B84C */ uint32_t psx_brA_BFC3B3CC = cpu->gpr[0]; uint32_t psx_brB_BFC3B3CC = cpu->gpr[0]; - int psx_taken_BFC3B3CC = (psx_brA_BFC3B3CC == psx_brB_BFC3B3CC); + psx_taken_BFC3B3CC = (psx_brA_BFC3B3CC == psx_brB_BFC3B3CC); /* 0xBFC3B3D0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3B3CC) goto label_BFC3B84C; @@ -187904,7 +193017,7 @@ label_BFC3B3D4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC3B3D8: 1521001A bne $t1, $at, 0xBFC3B444 */ uint32_t psx_brA_BFC3B3D8 = cpu->gpr[9]; uint32_t psx_brB_BFC3B3D8 = cpu->gpr[1]; - int psx_taken_BFC3B3D8 = (psx_brA_BFC3B3D8 != psx_brB_BFC3B3D8); + psx_taken_BFC3B3D8 = (psx_brA_BFC3B3D8 != psx_brB_BFC3B3D8); /* 0xBFC3B3DC: 00000000 nop */ /* nop */ if (psx_taken_BFC3B3D8) goto label_BFC3B444; @@ -187930,7 +193043,7 @@ label_BFC3B3EC: /* nop */ /* 0xBFC3B3F4: 15C0000B bne $t6, $zero, 0xBFC3B424 */ uint32_t psx_brA_BFC3B3F4 = cpu->gpr[14]; uint32_t psx_brB_BFC3B3F4 = cpu->gpr[0]; - int psx_taken_BFC3B3F4 = (psx_brA_BFC3B3F4 != psx_brB_BFC3B3F4); + psx_taken_BFC3B3F4 = (psx_brA_BFC3B3F4 != psx_brB_BFC3B3F4); /* 0xBFC3B3F8: 00000000 nop */ /* nop */ if (psx_taken_BFC3B3F4) goto label_BFC3B424; @@ -187957,7 +193070,7 @@ label_BFC3B3FC: cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[10] >> 16u); /* 0xBFC3B41C: 10000006 beq $zero, $zero, 0xBFC3B438 */ uint32_t psx_brA_BFC3B41C = cpu->gpr[0]; uint32_t psx_brB_BFC3B41C = cpu->gpr[0]; - int psx_taken_BFC3B41C = (psx_brA_BFC3B41C == psx_brB_BFC3B41C); + psx_taken_BFC3B41C = (psx_brA_BFC3B41C == psx_brB_BFC3B41C); /* 0xBFC3B420: A439EDB0 sh $t9, -4688($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4688)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B420u); return; } g_debug_last_store_pc = 0xBFC3B420u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[25] & 0xFFFFu)); } if (psx_taken_BFC3B41C) goto label_BFC3B438; @@ -187970,7 +193083,7 @@ label_BFC3B424: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC3B428: 1465FFF0 bne $v1, $a1, 0xBFC3B3EC */ uint32_t psx_brA_BFC3B428 = cpu->gpr[3]; uint32_t psx_brB_BFC3B428 = cpu->gpr[5]; - int psx_taken_BFC3B428 = (psx_brA_BFC3B428 != psx_brB_BFC3B428); + psx_taken_BFC3B428 = (psx_brA_BFC3B428 != psx_brB_BFC3B428); /* 0xBFC3B42C: 24420001 addiu $v0, $v0, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); if (psx_taken_BFC3B428) goto label_BFC3B3EC; @@ -187992,7 +193105,7 @@ label_BFC3B438: cpu->gpr[11] = 0x800E0000u; /* 0xBFC3B43C: 10000014 beq $zero, $zero, 0xBFC3B490 */ uint32_t psx_brA_BFC3B43C = cpu->gpr[0]; uint32_t psx_brB_BFC3B43C = cpu->gpr[0]; - int psx_taken_BFC3B43C = (psx_brA_BFC3B43C == psx_brB_BFC3B43C); + psx_taken_BFC3B43C = (psx_brA_BFC3B43C == psx_brB_BFC3B43C); /* 0xBFC3B440: 256BEDB2 addiu $t3, $t3, -4686 */ cpu->gpr[11] = (uint32_t)((int32_t)cpu->gpr[11] + (-4686)); if (psx_taken_BFC3B43C) goto label_BFC3B490; @@ -188013,7 +193126,7 @@ label_BFC3B444: /* nop */ /* 0xBFC3B458: 11800005 beq $t4, $zero, 0xBFC3B470 */ uint32_t psx_brA_BFC3B458 = cpu->gpr[12]; uint32_t psx_brB_BFC3B458 = cpu->gpr[0]; - int psx_taken_BFC3B458 = (psx_brA_BFC3B458 == psx_brB_BFC3B458); + psx_taken_BFC3B458 = (psx_brA_BFC3B458 == psx_brB_BFC3B458); /* 0xBFC3B45C: 240D0001 addiu $t5, $zero, 1 */ cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3B458) goto label_BFC3B470; @@ -188026,7 +193139,7 @@ label_BFC3B460: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (1088)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B460u); return; } cpu->gpr[10] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC3B464: 1000000A beq $zero, $zero, 0xBFC3B490 */ uint32_t psx_brA_BFC3B464 = cpu->gpr[0]; uint32_t psx_brB_BFC3B464 = cpu->gpr[0]; - int psx_taken_BFC3B464 = (psx_brA_BFC3B464 == psx_brB_BFC3B464); + psx_taken_BFC3B464 = (psx_brA_BFC3B464 == psx_brB_BFC3B464); /* 0xBFC3B468: 00000000 nop */ /* nop */ if (psx_taken_BFC3B464) goto label_BFC3B490; @@ -188065,7 +193178,7 @@ label_BFC3B490: psx_check_interrupts(cpu); /* 0xBFC3B490: 1940000D blez $t2, 0xBFC3B4C8 */ uint32_t psx_brA_BFC3B490 = cpu->gpr[10]; - int psx_taken_BFC3B490 = ((int32_t)psx_brA_BFC3B490 <= 0); + psx_taken_BFC3B490 = ((int32_t)psx_brA_BFC3B490 <= 0); /* 0xBFC3B494: 000A6880 sll $t5, $t2, 2 */ cpu->gpr[13] = cpu->gpr[10] << 2u; if (psx_taken_BFC3B490) goto label_BFC3B4C8; @@ -188100,7 +193213,7 @@ label_BFC3B4A8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4688)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B4B8u); return; } g_debug_last_store_pc = 0xBFC3B4B8u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[12] & 0xFFFFu)); } /* 0xBFC3B4BC: 100000E3 beq $zero, $zero, 0xBFC3B84C */ uint32_t psx_brA_BFC3B4BC = cpu->gpr[0]; uint32_t psx_brB_BFC3B4BC = cpu->gpr[0]; - int psx_taken_BFC3B4BC = (psx_brA_BFC3B4BC == psx_brB_BFC3B4BC); + psx_taken_BFC3B4BC = (psx_brA_BFC3B4BC == psx_brB_BFC3B4BC); /* 0xBFC3B4C0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3B4BC) goto label_BFC3B84C; @@ -188134,7 +193247,7 @@ label_BFC3B4C8: cpu->gpr[3] = cpu->gpr[3] | 0x4220u; /* 0xBFC3B4E8: 1043000F beq $v0, $v1, 0xBFC3B528 */ uint32_t psx_brA_BFC3B4E8 = cpu->gpr[2]; uint32_t psx_brB_BFC3B4E8 = cpu->gpr[3]; - int psx_taken_BFC3B4E8 = (psx_brA_BFC3B4E8 == psx_brB_BFC3B4E8); + psx_taken_BFC3B4E8 = (psx_brA_BFC3B4E8 == psx_brB_BFC3B4E8); /* 0xBFC3B4EC: 3C015641 lui $at, 0x5641 */ cpu->gpr[1] = 0x56410000u; if (psx_taken_BFC3B4E8) goto label_BFC3B528; @@ -188147,7 +193260,7 @@ label_BFC3B4F0: cpu->gpr[1] = cpu->gpr[1] | 0x4270u; /* 0xBFC3B4F4: 1041000C beq $v0, $at, 0xBFC3B528 */ uint32_t psx_brA_BFC3B4F4 = cpu->gpr[2]; uint32_t psx_brB_BFC3B4F4 = cpu->gpr[1]; - int psx_taken_BFC3B4F4 = (psx_brA_BFC3B4F4 == psx_brB_BFC3B4F4); + psx_taken_BFC3B4F4 = (psx_brA_BFC3B4F4 == psx_brB_BFC3B4F4); /* 0xBFC3B4F8: 00000000 nop */ /* nop */ if (psx_taken_BFC3B4F4) goto label_BFC3B528; @@ -188182,7 +193295,7 @@ label_BFC3B50C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4688)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B51Cu); return; } g_debug_last_store_pc = 0xBFC3B51Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[24] & 0xFFFFu)); } /* 0xBFC3B520: 100000CA beq $zero, $zero, 0xBFC3B84C */ uint32_t psx_brA_BFC3B520 = cpu->gpr[0]; uint32_t psx_brB_BFC3B520 = cpu->gpr[0]; - int psx_taken_BFC3B520 = (psx_brA_BFC3B520 == psx_brB_BFC3B520); + psx_taken_BFC3B520 = (psx_brA_BFC3B520 == psx_brB_BFC3B520); /* 0xBFC3B524: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3B520) goto label_BFC3B84C; @@ -188193,7 +193306,7 @@ label_BFC3B528: psx_check_interrupts(cpu); /* 0xBFC3B528: 10430007 beq $v0, $v1, 0xBFC3B548 */ uint32_t psx_brA_BFC3B528 = cpu->gpr[2]; uint32_t psx_brB_BFC3B528 = cpu->gpr[3]; - int psx_taken_BFC3B528 = (psx_brA_BFC3B528 == psx_brB_BFC3B528); + psx_taken_BFC3B528 = (psx_brA_BFC3B528 == psx_brB_BFC3B528); /* 0xBFC3B52C: 240C0040 addiu $t4, $zero, 64 */ cpu->gpr[12] = (uint32_t)((int32_t)cpu->gpr[0] + (64)); if (psx_taken_BFC3B528) goto label_BFC3B548; @@ -188210,7 +193323,7 @@ label_BFC3B530: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[25] < (5) ? 1 : 0); /* 0xBFC3B53C: 10200006 beq $at, $zero, 0xBFC3B558 */ uint32_t psx_brA_BFC3B53C = cpu->gpr[1]; uint32_t psx_brB_BFC3B53C = cpu->gpr[0]; - int psx_taken_BFC3B53C = (psx_brA_BFC3B53C == psx_brB_BFC3B53C); + psx_taken_BFC3B53C = (psx_brA_BFC3B53C == psx_brB_BFC3B53C); /* 0xBFC3B540: 240D0080 addiu $t5, $zero, 128 */ cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (128)); if (psx_taken_BFC3B53C) goto label_BFC3B558; @@ -188230,7 +193343,7 @@ label_BFC3B548: cpu->gpr[1] = 0x80080000u; /* 0xBFC3B54C: 10000004 beq $zero, $zero, 0xBFC3B560 */ uint32_t psx_brA_BFC3B54C = cpu->gpr[0]; uint32_t psx_brB_BFC3B54C = cpu->gpr[0]; - int psx_taken_BFC3B54C = (psx_brA_BFC3B54C == psx_brB_BFC3B54C); + psx_taken_BFC3B54C = (psx_brA_BFC3B54C == psx_brB_BFC3B54C); /* 0xBFC3B550: A42C95F0 sh $t4, -27152($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-27152)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B550u); return; } g_debug_last_store_pc = 0xBFC3B550u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[12] & 0xFFFFu)); } if (psx_taken_BFC3B54C) goto label_BFC3B560; @@ -188267,7 +193380,7 @@ label_BFC3B560: cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < cpu->gpr[2] ? 1 : 0); /* 0xBFC3B574: 1020000D beq $at, $zero, 0xBFC3B5AC */ uint32_t psx_brA_BFC3B574 = cpu->gpr[1]; uint32_t psx_brB_BFC3B574 = cpu->gpr[0]; - int psx_taken_BFC3B574 = (psx_brA_BFC3B574 == psx_brB_BFC3B574); + psx_taken_BFC3B574 = (psx_brA_BFC3B574 == psx_brB_BFC3B574); /* 0xBFC3B578: 000AC880 sll $t9, $t2, 2 */ cpu->gpr[25] = cpu->gpr[10] << 2u; if (psx_taken_BFC3B574) goto label_BFC3B5AC; @@ -188302,7 +193415,7 @@ label_BFC3B58C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4688)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B59Cu); return; } g_debug_last_store_pc = 0xBFC3B59Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[24] & 0xFFFFu)); } /* 0xBFC3B5A0: 100000AA beq $zero, $zero, 0xBFC3B84C */ uint32_t psx_brA_BFC3B5A0 = cpu->gpr[0]; uint32_t psx_brB_BFC3B5A0 = cpu->gpr[0]; - int psx_taken_BFC3B5A0 = (psx_brA_BFC3B5A0 == psx_brB_BFC3B5A0); + psx_taken_BFC3B5A0 = (psx_brA_BFC3B5A0 == psx_brB_BFC3B5A0); /* 0xBFC3B5A4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3B5A0) goto label_BFC3B84C; @@ -188342,7 +193455,7 @@ label_BFC3B5AC: cpu->gpr[5] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC3B5D8: 19A00016 blez $t5, 0xBFC3B634 */ uint32_t psx_brA_BFC3B5D8 = cpu->gpr[13]; - int psx_taken_BFC3B5D8 = ((int32_t)psx_brA_BFC3B5D8 <= 0); + psx_taken_BFC3B5D8 = ((int32_t)psx_brA_BFC3B5D8 <= 0); /* 0xBFC3B5DC: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3B5D8) goto label_BFC3B634; @@ -188378,7 +193491,7 @@ label_BFC3B5EC: /* nop */ /* 0xBFC3B608: 13000002 beq $t8, $zero, 0xBFC3B614 */ uint32_t psx_brA_BFC3B608 = cpu->gpr[24]; uint32_t psx_brB_BFC3B608 = cpu->gpr[0]; - int psx_taken_BFC3B608 = (psx_brA_BFC3B608 == psx_brB_BFC3B608); + psx_taken_BFC3B608 = (psx_brA_BFC3B608 == psx_brB_BFC3B608); /* 0xBFC3B60C: 00000000 nop */ /* nop */ if (psx_taken_BFC3B608) goto label_BFC3B614; @@ -188404,7 +193517,7 @@ label_BFC3B614: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (int32_t)cpu->gpr[25] ? 1 : 0); /* 0xBFC3B624: 1420FFF1 bne $at, $zero, 0xBFC3B5EC */ uint32_t psx_brA_BFC3B624 = cpu->gpr[1]; uint32_t psx_brB_BFC3B624 = cpu->gpr[0]; - int psx_taken_BFC3B624 = (psx_brA_BFC3B624 != psx_brB_BFC3B624); + psx_taken_BFC3B624 = (psx_brA_BFC3B624 != psx_brB_BFC3B624); /* 0xBFC3B628: 24420010 addiu $v0, $v0, 16 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (16)); if (psx_taken_BFC3B624) goto label_BFC3B5EC; @@ -188457,7 +193570,7 @@ label_BFC3B668: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < cpu->gpr[3] ? 1 : 0); /* 0xBFC3B66C: 14200012 bne $at, $zero, 0xBFC3B6B8 */ uint32_t psx_brA_BFC3B66C = cpu->gpr[1]; uint32_t psx_brB_BFC3B66C = cpu->gpr[0]; - int psx_taken_BFC3B66C = (psx_brA_BFC3B66C != psx_brB_BFC3B66C); + psx_taken_BFC3B66C = (psx_brA_BFC3B66C != psx_brB_BFC3B66C); /* 0xBFC3B670: 00000000 nop */ /* nop */ if (psx_taken_BFC3B66C) goto label_BFC3B6B8; @@ -188482,7 +193595,7 @@ label_BFC3B674: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (5) ? 1 : 0); /* 0xBFC3B690: 10200004 beq $at, $zero, 0xBFC3B6A4 */ uint32_t psx_brA_BFC3B690 = cpu->gpr[1]; uint32_t psx_brB_BFC3B690 = cpu->gpr[0]; - int psx_taken_BFC3B690 = (psx_brA_BFC3B690 == psx_brB_BFC3B690); + psx_taken_BFC3B690 = (psx_brA_BFC3B690 == psx_brB_BFC3B690); /* 0xBFC3B694: 03192021 addu $a0, $t8, $t9 */ cpu->gpr[4] = cpu->gpr[24] + cpu->gpr[25]; if (psx_taken_BFC3B690) goto label_BFC3B6A4; @@ -188495,7 +193608,7 @@ label_BFC3B698: cpu->gpr[15] = cpu->gpr[2] << 2u; /* 0xBFC3B69C: 10000003 beq $zero, $zero, 0xBFC3B6AC */ uint32_t psx_brA_BFC3B69C = cpu->gpr[0]; uint32_t psx_brB_BFC3B69C = cpu->gpr[0]; - int psx_taken_BFC3B69C = (psx_brA_BFC3B69C == psx_brB_BFC3B69C); + psx_taken_BFC3B69C = (psx_brA_BFC3B69C == psx_brB_BFC3B69C); /* 0xBFC3B6A0: AC8FFBE8 sw $t7, -1048($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (-1048)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B6A0u); return; } g_debug_last_store_pc = 0xBFC3B6A0u; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC3B69C) goto label_BFC3B6AC; @@ -188528,7 +193641,7 @@ label_BFC3B6B8: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC3B6BC: 1467FFEA bne $v1, $a3, 0xBFC3B668 */ uint32_t psx_brA_BFC3B6BC = cpu->gpr[3]; uint32_t psx_brB_BFC3B6BC = cpu->gpr[7]; - int psx_taken_BFC3B6BC = (psx_brA_BFC3B6BC != psx_brB_BFC3B6BC); + psx_taken_BFC3B6BC = (psx_brA_BFC3B6BC != psx_brB_BFC3B6BC); /* 0xBFC3B6C0: 24C60002 addiu $a2, $a2, 2 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[6] + (2)); if (psx_taken_BFC3B6BC) goto label_BFC3B668; @@ -188577,7 +193690,7 @@ label_BFC3B6EC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC3B704: 1441000C bne $v0, $at, 0xBFC3B738 */ uint32_t psx_brA_BFC3B704 = cpu->gpr[2]; uint32_t psx_brB_BFC3B704 = cpu->gpr[1]; - int psx_taken_BFC3B704 = (psx_brA_BFC3B704 != psx_brB_BFC3B704); + psx_taken_BFC3B704 = (psx_brA_BFC3B704 != psx_brB_BFC3B704); /* 0xBFC3B708: 256BEDB2 addiu $t3, $t3, -4686 */ cpu->gpr[11] = (uint32_t)((int32_t)cpu->gpr[11] + (-4686)); if (psx_taken_BFC3B704) goto label_BFC3B738; @@ -188612,7 +193725,7 @@ label_BFC3B71C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4688)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B72Cu); return; } g_debug_last_store_pc = 0xBFC3B72Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[15] & 0xFFFFu)); } /* 0xBFC3B730: 10000046 beq $zero, $zero, 0xBFC3B84C */ uint32_t psx_brA_BFC3B730 = cpu->gpr[0]; uint32_t psx_brB_BFC3B730 = cpu->gpr[0]; - int psx_taken_BFC3B730 = (psx_brA_BFC3B730 == psx_brB_BFC3B730); + psx_taken_BFC3B730 = (psx_brA_BFC3B730 == psx_brB_BFC3B730); /* 0xBFC3B734: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3B730) goto label_BFC3B84C; @@ -188631,7 +193744,7 @@ label_BFC3B738: cpu->gpr[1] = (uint32_t)(cpu->gpr[13] < cpu->gpr[1] ? 1 : 0); /* 0xBFC3B748: 1420000D bne $at, $zero, 0xBFC3B780 */ uint32_t psx_brA_BFC3B748 = cpu->gpr[1]; uint32_t psx_brB_BFC3B748 = cpu->gpr[0]; - int psx_taken_BFC3B748 = (psx_brA_BFC3B748 != psx_brB_BFC3B748); + psx_taken_BFC3B748 = (psx_brA_BFC3B748 != psx_brB_BFC3B748); /* 0xBFC3B74C: 000A7080 sll $t6, $t2, 2 */ cpu->gpr[14] = cpu->gpr[10] << 2u; if (psx_taken_BFC3B748) goto label_BFC3B780; @@ -188666,7 +193779,7 @@ label_BFC3B760: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4688)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B770u); return; } g_debug_last_store_pc = 0xBFC3B770u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[12] & 0xFFFFu)); } /* 0xBFC3B774: 10000035 beq $zero, $zero, 0xBFC3B84C */ uint32_t psx_brA_BFC3B774 = cpu->gpr[0]; uint32_t psx_brB_BFC3B774 = cpu->gpr[0]; - int psx_taken_BFC3B774 = (psx_brA_BFC3B774 == psx_brB_BFC3B774); + psx_taken_BFC3B774 = (psx_brA_BFC3B774 == psx_brB_BFC3B774); /* 0xBFC3B778: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3B774) goto label_BFC3B84C; @@ -188707,7 +193820,7 @@ label_BFC3B798: cpu->gpr[5] = cpu->gpr[5] + cpu->gpr[15]; /* 0xBFC3B7A4: 04610004 bgez $v1, 0xBFC3B7B8 */ uint32_t psx_brA_BFC3B7A4 = cpu->gpr[3]; - int psx_taken_BFC3B7A4 = ((int32_t)psx_brA_BFC3B7A4 >= 0); + psx_taken_BFC3B7A4 = ((int32_t)psx_brA_BFC3B7A4 >= 0); /* 0xBFC3B7A8: 306D0001 andi $t5, $v1, 0x1 */ cpu->gpr[13] = cpu->gpr[3] & 0x1u; if (psx_taken_BFC3B7A4) goto label_BFC3B7B8; @@ -188718,7 +193831,7 @@ label_BFC3B7AC: psx_check_interrupts(cpu); /* 0xBFC3B7AC: 11A00002 beq $t5, $zero, 0xBFC3B7B8 */ uint32_t psx_brA_BFC3B7AC = cpu->gpr[13]; uint32_t psx_brB_BFC3B7AC = cpu->gpr[0]; - int psx_taken_BFC3B7AC = (psx_brA_BFC3B7AC == psx_brB_BFC3B7AC); + psx_taken_BFC3B7AC = (psx_brA_BFC3B7AC == psx_brB_BFC3B7AC); /* 0xBFC3B7B0: 00000000 nop */ /* nop */ if (psx_taken_BFC3B7AC) goto label_BFC3B7B8; @@ -188736,7 +193849,7 @@ label_BFC3B7B8: psx_check_interrupts(cpu); /* 0xBFC3B7B8: 15A0000D bne $t5, $zero, 0xBFC3B7F0 */ uint32_t psx_brA_BFC3B7B8 = cpu->gpr[13]; uint32_t psx_brB_BFC3B7B8 = cpu->gpr[0]; - int psx_taken_BFC3B7B8 = (psx_brA_BFC3B7B8 != psx_brB_BFC3B7B8); + psx_taken_BFC3B7B8 = (psx_brA_BFC3B7B8 != psx_brB_BFC3B7B8); /* 0xBFC3B7BC: 00000000 nop */ /* nop */ if (psx_taken_BFC3B7B8) goto label_BFC3B7F0; @@ -188755,7 +193868,7 @@ label_BFC3B7C0: cpu->gpr[25] = cpu->gpr[24] >> 3u; /* 0xBFC3B7D0: 04610002 bgez $v1, 0xBFC3B7DC */ uint32_t psx_brA_BFC3B7D0 = cpu->gpr[3]; - int psx_taken_BFC3B7D0 = ((int32_t)psx_brA_BFC3B7D0 >= 0); + psx_taken_BFC3B7D0 = ((int32_t)psx_brA_BFC3B7D0 >= 0); /* 0xBFC3B7D4: 00600821 addu $at, $v1, $zero */ cpu->gpr[1] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC3B7D0) goto label_BFC3B7DC; @@ -188779,7 +193892,7 @@ label_BFC3B7DC: cpu->gpr[13] = cpu->gpr[12] + cpu->gpr[15]; /* 0xBFC3B7E8: 1000000C beq $zero, $zero, 0xBFC3B81C */ uint32_t psx_brA_BFC3B7E8 = cpu->gpr[0]; uint32_t psx_brB_BFC3B7E8 = cpu->gpr[0]; - int psx_taken_BFC3B7E8 = (psx_brA_BFC3B7E8 == psx_brB_BFC3B7E8); + psx_taken_BFC3B7E8 = (psx_brA_BFC3B7E8 == psx_brB_BFC3B7E8); /* 0xBFC3B7EC: A5B9000C sh $t9, 12($t5) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[13] + (12)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B7ECu); return; } g_debug_last_store_pc = 0xBFC3B7ECu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[25] & 0xFFFFu)); } if (psx_taken_BFC3B7E8) goto label_BFC3B81C; @@ -188798,7 +193911,7 @@ label_BFC3B7F0: cpu->gpr[14] = cpu->gpr[24] >> 3u; /* 0xBFC3B800: 04610002 bgez $v1, 0xBFC3B80C */ uint32_t psx_brA_BFC3B800 = cpu->gpr[3]; - int psx_taken_BFC3B800 = ((int32_t)psx_brA_BFC3B800 >= 0); + psx_taken_BFC3B800 = ((int32_t)psx_brA_BFC3B800 >= 0); /* 0xBFC3B804: 00600821 addu $at, $v1, $zero */ cpu->gpr[1] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC3B800) goto label_BFC3B80C; @@ -188833,7 +193946,7 @@ label_BFC3B81C: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < cpu->gpr[3] ? 1 : 0); /* 0xBFC3B824: 1020FFDC beq $at, $zero, 0xBFC3B798 */ uint32_t psx_brA_BFC3B824 = cpu->gpr[1]; uint32_t psx_brB_BFC3B824 = cpu->gpr[0]; - int psx_taken_BFC3B824 = (psx_brA_BFC3B824 == psx_brB_BFC3B824); + psx_taken_BFC3B824 = (psx_brA_BFC3B824 == psx_brB_BFC3B824); /* 0xBFC3B828: 24840004 addiu $a0, $a0, 4 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (4)); if (psx_taken_BFC3B824) goto label_BFC3B798; @@ -188885,6 +193998,13 @@ void func_1FC3B85C(CPUState* cpu) { default: break; } } + int psx_taken_BFC3B874 = 0; + int psx_taken_BFC3B87C = 0; + int psx_taken_BFC3B884 = 0; + int psx_taken_BFC3B8A0 = 0; + int psx_taken_BFC3B8A8 = 0; + int psx_taken_BFC3B90C = 0; + int psx_taken_BFC3B914 = 0; label_BFC3B85C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -188904,7 +194024,7 @@ label_BFC3B85C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B870u); return; } g_debug_last_store_pc = 0xBFC3B870u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC3B874: 10200003 beq $at, $zero, 0xBFC3B884 */ uint32_t psx_brA_BFC3B874 = cpu->gpr[1]; uint32_t psx_brB_BFC3B874 = cpu->gpr[0]; - int psx_taken_BFC3B874 = (psx_brA_BFC3B874 == psx_brB_BFC3B874); + psx_taken_BFC3B874 = (psx_brA_BFC3B874 == psx_brB_BFC3B874); /* 0xBFC3B878: AFA40038 sw $a0, 56($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B878u); return; } g_debug_last_store_pc = 0xBFC3B878u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC3B874) goto label_BFC3B884; @@ -188915,7 +194035,7 @@ label_BFC3B87C: psx_check_interrupts(cpu); /* 0xBFC3B87C: 06010003 bgez $s0, 0xBFC3B88C */ uint32_t psx_brA_BFC3B87C = cpu->gpr[16]; - int psx_taken_BFC3B87C = ((int32_t)psx_brA_BFC3B87C >= 0); + psx_taken_BFC3B87C = ((int32_t)psx_brA_BFC3B87C >= 0); /* 0xBFC3B880: 00000000 nop */ /* nop */ if (psx_taken_BFC3B87C) goto label_BFC3B88C; @@ -188926,7 +194046,7 @@ label_BFC3B884: psx_check_interrupts(cpu); /* 0xBFC3B884: 10000029 beq $zero, $zero, 0xBFC3B92C */ uint32_t psx_brA_BFC3B884 = cpu->gpr[0]; uint32_t psx_brB_BFC3B884 = cpu->gpr[0]; - int psx_taken_BFC3B884 = (psx_brA_BFC3B884 == psx_brB_BFC3B884); + psx_taken_BFC3B884 = (psx_brA_BFC3B884 == psx_brB_BFC3B884); /* 0xBFC3B888: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3B884) goto label_BFC3B92C; @@ -188947,7 +194067,7 @@ label_BFC3B88C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC3B8A0: 11E10004 beq $t7, $at, 0xBFC3B8B4 */ uint32_t psx_brA_BFC3B8A0 = cpu->gpr[15]; uint32_t psx_brB_BFC3B8A0 = cpu->gpr[1]; - int psx_taken_BFC3B8A0 = (psx_brA_BFC3B8A0 == psx_brB_BFC3B8A0); + psx_taken_BFC3B8A0 = (psx_brA_BFC3B8A0 == psx_brB_BFC3B8A0); /* 0xBFC3B8A4: 0010C080 sll $t8, $s0, 2 */ cpu->gpr[24] = cpu->gpr[16] << 2u; if (psx_taken_BFC3B8A0) goto label_BFC3B8B4; @@ -188958,7 +194078,7 @@ label_BFC3B8A8: psx_check_interrupts(cpu); /* 0xBFC3B8A8: 10000020 beq $zero, $zero, 0xBFC3B92C */ uint32_t psx_brA_BFC3B8A8 = cpu->gpr[0]; uint32_t psx_brB_BFC3B8A8 = cpu->gpr[0]; - int psx_taken_BFC3B8A8 = (psx_brA_BFC3B8A8 == psx_brB_BFC3B8A8); + psx_taken_BFC3B8A8 = (psx_brA_BFC3B8A8 == psx_brB_BFC3B8A8); /* 0xBFC3B8AC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3B8A8) goto label_BFC3B92C; @@ -189038,7 +194158,7 @@ label_BFC3B8FC: /* nop */ /* 0xBFC3B90C: 104A0004 beq $v0, $t2, 0xBFC3B920 */ uint32_t psx_brA_BFC3B90C = cpu->gpr[2]; uint32_t psx_brB_BFC3B90C = cpu->gpr[10]; - int psx_taken_BFC3B90C = (psx_brA_BFC3B90C == psx_brB_BFC3B90C); + psx_taken_BFC3B90C = (psx_brA_BFC3B90C == psx_brB_BFC3B90C); /* 0xBFC3B910: 8FAC002C lw $t4, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3B910u); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } if (psx_taken_BFC3B90C) goto label_BFC3B920; @@ -189049,7 +194169,7 @@ label_BFC3B914: psx_check_interrupts(cpu); /* 0xBFC3B914: 10000005 beq $zero, $zero, 0xBFC3B92C */ uint32_t psx_brA_BFC3B914 = cpu->gpr[0]; uint32_t psx_brB_BFC3B914 = cpu->gpr[0]; - int psx_taken_BFC3B914 = (psx_brA_BFC3B914 == psx_brB_BFC3B914); + psx_taken_BFC3B914 = (psx_brA_BFC3B914 == psx_brB_BFC3B914); /* 0xBFC3B918: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3B914) goto label_BFC3B92C; @@ -189131,6 +194251,10 @@ label_BFC3B950: void func_1FC3B964(CPUState* cpu) { debug_server_log_call_entry(0x1FC3B964u); + int psx_taken_BFC3B9B4 = 0; + int psx_taken_BFC3BA44 = 0; + int psx_taken_BFC3BA50 = 0; + int psx_taken_BFC3BA58 = 0; label_BFC3B964: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(22u); @@ -189178,7 +194302,7 @@ label_BFC3B964: cpu->gpr[4] = cpu->gpr[4] & 0xFFFFu; /* 0xBFC3B9B4: 14200005 bne $at, $zero, 0xBFC3B9CC */ uint32_t psx_brA_BFC3B9B4 = cpu->gpr[1]; uint32_t psx_brB_BFC3B9B4 = cpu->gpr[0]; - int psx_taken_BFC3B9B4 = (psx_brA_BFC3B9B4 != psx_brB_BFC3B9B4); + psx_taken_BFC3B9B4 = (psx_brA_BFC3B9B4 != psx_brB_BFC3B9B4); /* 0xBFC3B9B8: 00003021 addu $a2, $zero, $zero */ cpu->gpr[6] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3B9B4) goto label_BFC3B9CC; @@ -189262,7 +194386,7 @@ label_BFC3B9CC: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[7] >> 16u); /* 0xBFC3BA44: 18E00004 blez $a3, 0xBFC3BA58 */ uint32_t psx_brA_BFC3BA44 = cpu->gpr[7]; - int psx_taken_BFC3BA44 = ((int32_t)psx_brA_BFC3BA44 <= 0); + psx_taken_BFC3BA44 = ((int32_t)psx_brA_BFC3BA44 <= 0); /* 0xBFC3BA48: 00000000 nop */ /* nop */ if (psx_taken_BFC3BA44) goto label_BFC3BA58; @@ -189275,7 +194399,7 @@ label_BFC3BA4C: cpu->gpr[5] = cpu->gpr[5] << (cpu->gpr[7] & 0x1Fu); /* 0xBFC3BA50: 10000006 beq $zero, $zero, 0xBFC3BA6C */ uint32_t psx_brA_BFC3BA50 = cpu->gpr[0]; uint32_t psx_brB_BFC3BA50 = cpu->gpr[0]; - int psx_taken_BFC3BA50 = (psx_brA_BFC3BA50 == psx_brB_BFC3BA50); + psx_taken_BFC3BA50 = (psx_brA_BFC3BA50 == psx_brB_BFC3BA50); /* 0xBFC3BA54: 30A5FFFF andi $a1, $a1, 0xFFFF */ cpu->gpr[5] = cpu->gpr[5] & 0xFFFFu; if (psx_taken_BFC3BA50) goto label_BFC3BA6C; @@ -189286,7 +194410,7 @@ label_BFC3BA58: psx_check_interrupts(cpu); /* 0xBFC3BA58: 04E10004 bgez $a3, 0xBFC3BA6C */ uint32_t psx_brA_BFC3BA58 = cpu->gpr[7]; - int psx_taken_BFC3BA58 = ((int32_t)psx_brA_BFC3BA58 >= 0); + psx_taken_BFC3BA58 = ((int32_t)psx_brA_BFC3BA58 >= 0); /* 0xBFC3BA5C: 00000000 nop */ /* nop */ if (psx_taken_BFC3BA58) goto label_BFC3BA6C; @@ -189326,6 +194450,22 @@ void func_1FC3BA74(CPUState* cpu) { default: break; } } + int psx_taken_BFC3BA9C = 0; + int psx_taken_BFC3BAA4 = 0; + int psx_taken_BFC3BAD4 = 0; + int psx_taken_BFC3BAE8 = 0; + int psx_taken_BFC3BAF4 = 0; + int psx_taken_BFC3BB08 = 0; + int psx_taken_BFC3BB18 = 0; + int psx_taken_BFC3BB20 = 0; + int psx_taken_BFC3BB34 = 0; + int psx_taken_BFC3BB58 = 0; + int psx_taken_BFC3BB68 = 0; + int psx_taken_BFC3BB70 = 0; + int psx_taken_BFC3BBCC = 0; + int psx_taken_BFC3BBD8 = 0; + int psx_taken_BFC3BC04 = 0; + int psx_taken_BFC3BC0C = 0; label_BFC3BA74: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -189359,7 +194499,7 @@ label_BFC3BA98: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3BA98u); return; } cpu->gpr[5] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC3BA9C: 10400003 beq $v0, $zero, 0xBFC3BAAC */ uint32_t psx_brA_BFC3BA9C = cpu->gpr[2]; uint32_t psx_brB_BFC3BA9C = cpu->gpr[0]; - int psx_taken_BFC3BA9C = (psx_brA_BFC3BA9C == psx_brB_BFC3BA9C); + psx_taken_BFC3BA9C = (psx_brA_BFC3BA9C == psx_brB_BFC3BA9C); /* 0xBFC3BAA0: 00000000 nop */ /* nop */ if (psx_taken_BFC3BA9C) goto label_BFC3BAAC; @@ -189370,7 +194510,7 @@ label_BFC3BAA4: psx_check_interrupts(cpu); /* 0xBFC3BAA4: 10000082 beq $zero, $zero, 0xBFC3BCB0 */ uint32_t psx_brA_BFC3BAA4 = cpu->gpr[0]; uint32_t psx_brB_BFC3BAA4 = cpu->gpr[0]; - int psx_taken_BFC3BAA4 = (psx_brA_BFC3BAA4 == psx_brB_BFC3BAA4); + psx_taken_BFC3BAA4 = (psx_brA_BFC3BAA4 == psx_brB_BFC3BAA4); /* 0xBFC3BAA8: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3BAA4) goto label_BFC3BCB0; @@ -189401,7 +194541,7 @@ label_BFC3BAAC: cpu->gpr[1] = 0x800E0000u; /* 0xBFC3BAD4: 14430006 bne $v0, $v1, 0xBFC3BAF0 */ uint32_t psx_brA_BFC3BAD4 = cpu->gpr[2]; uint32_t psx_brB_BFC3BAD4 = cpu->gpr[3]; - int psx_taken_BFC3BAD4 = (psx_brA_BFC3BAD4 != psx_brB_BFC3BAD4); + psx_taken_BFC3BAD4 = (psx_brA_BFC3BAD4 != psx_brB_BFC3BAD4); /* 0xBFC3BAD8: A025EDE5 sb $a1, -4635($at) */ g_debug_last_store_pc = 0xBFC3BAD8u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[1] + (-4635)), (uint8_t)(cpu->gpr[5] & 0xFFu)); if (psx_taken_BFC3BAD4) goto label_BFC3BAF0; @@ -189418,7 +194558,7 @@ label_BFC3BADC: g_debug_last_store_pc = 0xBFC3BAE4u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[1] + (-4643)), (uint8_t)(cpu->gpr[25] & 0xFFu)); /* 0xBFC3BAE8: 10000027 beq $zero, $zero, 0xBFC3BB88 */ uint32_t psx_brA_BFC3BAE8 = cpu->gpr[0]; uint32_t psx_brB_BFC3BAE8 = cpu->gpr[0]; - int psx_taken_BFC3BAE8 = (psx_brA_BFC3BAE8 == psx_brB_BFC3BAE8); + psx_taken_BFC3BAE8 = (psx_brA_BFC3BAE8 == psx_brB_BFC3BAE8); /* 0xBFC3BAEC: A022EDDC sb $v0, -4644($at) */ g_debug_last_store_pc = 0xBFC3BAECu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[1] + (-4644)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC3BAE8) goto label_BFC3BB88; @@ -189431,7 +194571,7 @@ label_BFC3BAF0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC3BAF4: 10200012 beq $at, $zero, 0xBFC3BB40 */ uint32_t psx_brA_BFC3BAF4 = cpu->gpr[1]; uint32_t psx_brB_BFC3BAF4 = cpu->gpr[0]; - int psx_taken_BFC3BAF4 = (psx_brA_BFC3BAF4 == psx_brB_BFC3BAF4); + psx_taken_BFC3BAF4 = (psx_brA_BFC3BAF4 == psx_brB_BFC3BAF4); /* 0xBFC3BAF8: 00025180 sll $t2, $v0, 6 */ cpu->gpr[10] = cpu->gpr[2] << 6u; if (psx_taken_BFC3BAF4) goto label_BFC3BB40; @@ -189448,7 +194588,7 @@ label_BFC3BAFC: cpu->gpr[9] = cpu->lo; /* 0xBFC3BB08: 14400002 bne $v0, $zero, 0xBFC3BB14 */ uint32_t psx_brA_BFC3BB08 = cpu->gpr[2]; uint32_t psx_brB_BFC3BB08 = cpu->gpr[0]; - int psx_taken_BFC3BB08 = (psx_brA_BFC3BB08 != psx_brB_BFC3BB08); + psx_taken_BFC3BB08 = (psx_brA_BFC3BB08 != psx_brB_BFC3BB08); /* 0xBFC3BB0C: 00000000 nop */ /* nop */ if (psx_taken_BFC3BB08) goto label_BFC3BB14; @@ -189468,7 +194608,7 @@ label_BFC3BB14: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC3BB18: 14410004 bne $v0, $at, 0xBFC3BB2C */ uint32_t psx_brA_BFC3BB18 = cpu->gpr[2]; uint32_t psx_brB_BFC3BB18 = cpu->gpr[1]; - int psx_taken_BFC3BB18 = (psx_brA_BFC3BB18 != psx_brB_BFC3BB18); + psx_taken_BFC3BB18 = (psx_brA_BFC3BB18 != psx_brB_BFC3BB18); /* 0xBFC3BB1C: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC3BB18) goto label_BFC3BB2C; @@ -189479,7 +194619,7 @@ label_BFC3BB20: psx_check_interrupts(cpu); /* 0xBFC3BB20: 15010002 bne $t0, $at, 0xBFC3BB2C */ uint32_t psx_brA_BFC3BB20 = cpu->gpr[8]; uint32_t psx_brB_BFC3BB20 = cpu->gpr[1]; - int psx_taken_BFC3BB20 = (psx_brA_BFC3BB20 != psx_brB_BFC3BB20); + psx_taken_BFC3BB20 = (psx_brA_BFC3BB20 != psx_brB_BFC3BB20); /* 0xBFC3BB24: 00000000 nop */ /* nop */ if (psx_taken_BFC3BB20) goto label_BFC3BB2C; @@ -189501,7 +194641,7 @@ label_BFC3BB2C: g_debug_last_store_pc = 0xBFC3BB30u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[1] + (-4643)), (uint8_t)(cpu->gpr[9] & 0xFFu)); /* 0xBFC3BB34: 10000014 beq $zero, $zero, 0xBFC3BB88 */ uint32_t psx_brA_BFC3BB34 = cpu->gpr[0]; uint32_t psx_brB_BFC3BB34 = cpu->gpr[0]; - int psx_taken_BFC3BB34 = (psx_brA_BFC3BB34 == psx_brB_BFC3BB34); + psx_taken_BFC3BB34 = (psx_brA_BFC3BB34 == psx_brB_BFC3BB34); /* 0xBFC3BB38: A022EDDC sb $v0, -4644($at) */ g_debug_last_store_pc = 0xBFC3BB38u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[1] + (-4644)), (uint8_t)(cpu->gpr[2] & 0xFFu)); if (psx_taken_BFC3BB34) goto label_BFC3BB88; @@ -189531,7 +194671,7 @@ label_BFC3BB40: cpu->gpr[15] = cpu->gpr[14] - cpu->gpr[13]; /* 0xBFC3BB58: 14600002 bne $v1, $zero, 0xBFC3BB64 */ uint32_t psx_brA_BFC3BB58 = cpu->gpr[3]; uint32_t psx_brB_BFC3BB58 = cpu->gpr[0]; - int psx_taken_BFC3BB58 = (psx_brA_BFC3BB58 != psx_brB_BFC3BB58); + psx_taken_BFC3BB58 = (psx_brA_BFC3BB58 != psx_brB_BFC3BB58); /* 0xBFC3BB5C: 00000000 nop */ /* nop */ if (psx_taken_BFC3BB58) goto label_BFC3BB64; @@ -189551,7 +194691,7 @@ label_BFC3BB64: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC3BB68: 14610004 bne $v1, $at, 0xBFC3BB7C */ uint32_t psx_brA_BFC3BB68 = cpu->gpr[3]; uint32_t psx_brB_BFC3BB68 = cpu->gpr[1]; - int psx_taken_BFC3BB68 = (psx_brA_BFC3BB68 != psx_brB_BFC3BB68); + psx_taken_BFC3BB68 = (psx_brA_BFC3BB68 != psx_brB_BFC3BB68); /* 0xBFC3BB6C: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC3BB68) goto label_BFC3BB7C; @@ -189562,7 +194702,7 @@ label_BFC3BB70: psx_check_interrupts(cpu); /* 0xBFC3BB70: 15410002 bne $t2, $at, 0xBFC3BB7C */ uint32_t psx_brA_BFC3BB70 = cpu->gpr[10]; uint32_t psx_brB_BFC3BB70 = cpu->gpr[1]; - int psx_taken_BFC3BB70 = (psx_brA_BFC3BB70 != psx_brB_BFC3BB70); + psx_taken_BFC3BB70 = (psx_brA_BFC3BB70 != psx_brB_BFC3BB70); /* 0xBFC3BB74: 00000000 nop */ /* nop */ if (psx_taken_BFC3BB70) goto label_BFC3BB7C; @@ -189625,7 +194765,7 @@ label_BFC3BB88: /* nop */ /* 0xBFC3BBCC: 14800004 bne $a0, $zero, 0xBFC3BBE0 */ uint32_t psx_brA_BFC3BBCC = cpu->gpr[4]; uint32_t psx_brB_BFC3BBCC = cpu->gpr[0]; - int psx_taken_BFC3BBCC = (psx_brA_BFC3BBCC != psx_brB_BFC3BBCC); + psx_taken_BFC3BBCC = (psx_brA_BFC3BBCC != psx_brB_BFC3BBCC); /* 0xBFC3BBD0: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3BBCC) goto label_BFC3BBE0; @@ -189638,7 +194778,7 @@ label_BFC3BBD4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4626)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3BBD4u); return; } g_debug_last_store_pc = 0xBFC3BBD4u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[4] & 0xFFFFu)); } /* 0xBFC3BBD8: 10000035 beq $zero, $zero, 0xBFC3BCB0 */ uint32_t psx_brA_BFC3BBD8 = cpu->gpr[0]; uint32_t psx_brB_BFC3BBD8 = cpu->gpr[0]; - int psx_taken_BFC3BBD8 = (psx_brA_BFC3BBD8 == psx_brB_BFC3BBD8); + psx_taken_BFC3BBD8 = (psx_brA_BFC3BBD8 == psx_brB_BFC3BBD8); /* 0xBFC3BBDC: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3BBD8) goto label_BFC3BCB0; @@ -189673,7 +194813,7 @@ label_BFC3BBEC: cpu->gpr[3] = cpu->gpr[2] << 16u; /* 0xBFC3BC04: 17190003 bne $t8, $t9, 0xBFC3BC14 */ uint32_t psx_brA_BFC3BC04 = cpu->gpr[24]; uint32_t psx_brB_BFC3BC04 = cpu->gpr[25]; - int psx_taken_BFC3BC04 = (psx_brA_BFC3BC04 != psx_brB_BFC3BC04); + psx_taken_BFC3BC04 = (psx_brA_BFC3BC04 != psx_brB_BFC3BC04); /* 0xBFC3BC08: 00031C03 sra $v1, $v1, 16 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] >> 16u); if (psx_taken_BFC3BC04) goto label_BFC3BC14; @@ -189684,7 +194824,7 @@ label_BFC3BC0C: psx_check_interrupts(cpu); /* 0xBFC3BC0C: 10000028 beq $zero, $zero, 0xBFC3BCB0 */ uint32_t psx_brA_BFC3BC0C = cpu->gpr[0]; uint32_t psx_brB_BFC3BC0C = cpu->gpr[0]; - int psx_taken_BFC3BC0C = (psx_brA_BFC3BC0C == psx_brB_BFC3BC0C); + psx_taken_BFC3BC0C = (psx_brA_BFC3BC0C == psx_brB_BFC3BC0C); /* 0xBFC3BC10: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3BC0C) goto label_BFC3BCB0; @@ -189892,6 +195032,9 @@ void func_1FC3BDB8(CPUState* cpu) { default: break; } } + int psx_taken_BFC3BDC4 = 0; + int psx_taken_BFC3BDD0 = 0; + int psx_taken_BFC3BDFC = 0; label_BFC3BDB8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -189905,7 +195048,7 @@ label_BFC3BDB8: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC3BDC4: 0460000F bltz $v1, 0xBFC3BE04 */ uint32_t psx_brA_BFC3BDC4 = cpu->gpr[3]; - int psx_taken_BFC3BDC4 = ((int32_t)psx_brA_BFC3BDC4 < 0); + psx_taken_BFC3BDC4 = ((int32_t)psx_brA_BFC3BDC4 < 0); /* 0xBFC3BDC8: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3BDC8u); return; } g_debug_last_store_pc = 0xBFC3BDC8u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3BDC4) goto label_BFC3BE04; @@ -189918,7 +195061,7 @@ label_BFC3BDCC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[3] < (10) ? 1 : 0); /* 0xBFC3BDD0: 1020000D beq $at, $zero, 0xBFC3BE08 */ uint32_t psx_brA_BFC3BDD0 = cpu->gpr[1]; uint32_t psx_brB_BFC3BDD0 = cpu->gpr[0]; - int psx_taken_BFC3BDD0 = (psx_brA_BFC3BDD0 == psx_brB_BFC3BDD0); + psx_taken_BFC3BDD0 = (psx_brA_BFC3BDD0 == psx_brB_BFC3BDD0); /* 0xBFC3BDD4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3BDD0) goto label_BFC3BE08; @@ -189953,7 +195096,7 @@ label_BFC3BDF8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (24)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3BDF8u); return; } cpu->gpr[3] = (uint32_t)(int32_t)(int16_t)cpu->read_half(psx_addr); } /* 0xBFC3BDFC: 10000002 beq $zero, $zero, 0xBFC3BE08 */ uint32_t psx_brA_BFC3BDFC = cpu->gpr[0]; uint32_t psx_brB_BFC3BDFC = cpu->gpr[0]; - int psx_taken_BFC3BDFC = (psx_brA_BFC3BDFC == psx_brB_BFC3BDFC); + psx_taken_BFC3BDFC = (psx_brA_BFC3BDFC == psx_brB_BFC3BDFC); /* 0xBFC3BE00: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC3BDFC) goto label_BFC3BE08; @@ -190207,6 +195350,13 @@ void func_1FC3BF40(CPUState* cpu) { default: break; } } + int psx_taken_BFC3BF5C = 0; + int psx_taken_BFC3BF64 = 0; + int psx_taken_BFC3BF6C = 0; + int psx_taken_BFC3BF84 = 0; + int psx_taken_BFC3BF98 = 0; + int psx_taken_BFC3BFA0 = 0; + int psx_taken_BFC3BFB4 = 0; label_BFC3BF40: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -190228,7 +195378,7 @@ label_BFC3BF40: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] >> 24u); /* 0xBFC3BF5C: 10800003 beq $a0, $zero, 0xBFC3BF6C */ uint32_t psx_brA_BFC3BF5C = cpu->gpr[4]; uint32_t psx_brB_BFC3BF5C = cpu->gpr[0]; - int psx_taken_BFC3BF5C = (psx_brA_BFC3BF5C == psx_brB_BFC3BF5C); + psx_taken_BFC3BF5C = (psx_brA_BFC3BF5C == psx_brB_BFC3BF5C); /* 0xBFC3BF60: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3BF60u); return; } g_debug_last_store_pc = 0xBFC3BF60u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3BF5C) goto label_BFC3BF6C; @@ -190239,7 +195389,7 @@ label_BFC3BF64: psx_check_interrupts(cpu); /* 0xBFC3BF64: 1000000C beq $zero, $zero, 0xBFC3BF98 */ uint32_t psx_brA_BFC3BF64 = cpu->gpr[0]; uint32_t psx_brB_BFC3BF64 = cpu->gpr[0]; - int psx_taken_BFC3BF64 = (psx_brA_BFC3BF64 == psx_brB_BFC3BF64); + psx_taken_BFC3BF64 = (psx_brA_BFC3BF64 == psx_brB_BFC3BF64); /* 0xBFC3BF68: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3BF64) goto label_BFC3BF98; @@ -190250,7 +195400,7 @@ label_BFC3BF6C: psx_check_interrupts(cpu); /* 0xBFC3BF6C: 14A00005 bne $a1, $zero, 0xBFC3BF84 */ uint32_t psx_brA_BFC3BF6C = cpu->gpr[5]; uint32_t psx_brB_BFC3BF6C = cpu->gpr[0]; - int psx_taken_BFC3BF6C = (psx_brA_BFC3BF6C != psx_brB_BFC3BF6C); + psx_taken_BFC3BF6C = (psx_brA_BFC3BF6C != psx_brB_BFC3BF6C); /* 0xBFC3BF70: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3BF6C) goto label_BFC3BF84; @@ -190274,7 +195424,7 @@ label_BFC3BF84: psx_check_interrupts(cpu); /* 0xBFC3BF84: 14A20004 bne $a1, $v0, 0xBFC3BF98 */ uint32_t psx_brA_BFC3BF84 = cpu->gpr[5]; uint32_t psx_brB_BFC3BF84 = cpu->gpr[2]; - int psx_taken_BFC3BF84 = (psx_brA_BFC3BF84 != psx_brB_BFC3BF84); + psx_taken_BFC3BF84 = (psx_brA_BFC3BF84 != psx_brB_BFC3BF84); /* 0xBFC3BF88: 00000000 nop */ /* nop */ if (psx_taken_BFC3BF84) goto label_BFC3BF98; @@ -190296,7 +195446,7 @@ label_BFC3BF98: psx_check_interrupts(cpu); /* 0xBFC3BF98: 1482000C bne $a0, $v0, 0xBFC3BFCC */ uint32_t psx_brA_BFC3BF98 = cpu->gpr[4]; uint32_t psx_brB_BFC3BF98 = cpu->gpr[2]; - int psx_taken_BFC3BF98 = (psx_brA_BFC3BF98 != psx_brB_BFC3BF98); + psx_taken_BFC3BF98 = (psx_brA_BFC3BF98 != psx_brB_BFC3BF98); /* 0xBFC3BF9C: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3BF98) goto label_BFC3BFCC; @@ -190307,7 +195457,7 @@ label_BFC3BFA0: psx_check_interrupts(cpu); /* 0xBFC3BFA0: 14A00004 bne $a1, $zero, 0xBFC3BFB4 */ uint32_t psx_brA_BFC3BFA0 = cpu->gpr[5]; uint32_t psx_brB_BFC3BFA0 = cpu->gpr[0]; - int psx_taken_BFC3BFA0 = (psx_brA_BFC3BFA0 != psx_brB_BFC3BFA0); + psx_taken_BFC3BFA0 = (psx_brA_BFC3BFA0 != psx_brB_BFC3BFA0); /* 0xBFC3BFA4: 00000000 nop */ /* nop */ if (psx_taken_BFC3BFA0) goto label_BFC3BFB4; @@ -190329,7 +195479,7 @@ label_BFC3BFB4: psx_check_interrupts(cpu); /* 0xBFC3BFB4: 14A20005 bne $a1, $v0, 0xBFC3BFCC */ uint32_t psx_brA_BFC3BFB4 = cpu->gpr[5]; uint32_t psx_brB_BFC3BFB4 = cpu->gpr[2]; - int psx_taken_BFC3BFB4 = (psx_brA_BFC3BFB4 != psx_brB_BFC3BFB4); + psx_taken_BFC3BFB4 = (psx_brA_BFC3BFB4 != psx_brB_BFC3BFB4); /* 0xBFC3BFB8: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3BFB4) goto label_BFC3BFCC; @@ -190383,6 +195533,8 @@ void func_1FC3BFF0(CPUState* cpu) { default: break; } } + int psx_taken_BFC3C00C = 0; + int psx_taken_BFC3C028 = 0; label_BFC3BFF0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -190404,7 +195556,7 @@ label_BFC3BFF0: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] >> 16u); /* 0xBFC3C00C: 14800005 bne $a0, $zero, 0xBFC3C024 */ uint32_t psx_brA_BFC3C00C = cpu->gpr[4]; uint32_t psx_brB_BFC3C00C = cpu->gpr[0]; - int psx_taken_BFC3C00C = (psx_brA_BFC3C00C != psx_brB_BFC3C00C); + psx_taken_BFC3C00C = (psx_brA_BFC3C00C != psx_brB_BFC3C00C); /* 0xBFC3C010: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C010u); return; } g_debug_last_store_pc = 0xBFC3C010u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3C00C) goto label_BFC3C024; @@ -190430,7 +195582,7 @@ label_BFC3C024: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC3C028: 14810006 bne $a0, $at, 0xBFC3C044 */ uint32_t psx_brA_BFC3C028 = cpu->gpr[4]; uint32_t psx_brB_BFC3C028 = cpu->gpr[1]; - int psx_taken_BFC3C028 = (psx_brA_BFC3C028 != psx_brB_BFC3C028); + psx_taken_BFC3C028 = (psx_brA_BFC3C028 != psx_brB_BFC3C028); /* 0xBFC3C02C: 00002021 addu $a0, $zero, $zero */ cpu->gpr[4] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3C028) goto label_BFC3C044; @@ -190492,6 +195644,7 @@ void func_1FC3C060(CPUState* cpu) { default: break; } } + int psx_taken_BFC3C0E8 = 0; label_BFC3C060: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -190585,7 +195738,7 @@ label_BFC3C0D8: cpu->gpr[1] = 0x80080000u; /* 0xBFC3C0E8: 17000011 bne $t8, $zero, 0xBFC3C130 */ uint32_t psx_brA_BFC3C0E8 = cpu->gpr[24]; uint32_t psx_brB_BFC3C0E8 = cpu->gpr[0]; - int psx_taken_BFC3C0E8 = (psx_brA_BFC3C0E8 != psx_brB_BFC3C0E8); + psx_taken_BFC3C0E8 = (psx_brA_BFC3C0E8 != psx_brB_BFC3C0E8); /* 0xBFC3C0EC: AC2F9F28 sw $t7, -24792($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24792)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C0ECu); return; } g_debug_last_store_pc = 0xBFC3C0ECu; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC3C0E8) goto label_BFC3C130; @@ -190662,6 +195815,8 @@ label_BFC3C130: void func_1FC3C140(CPUState* cpu) { debug_server_log_call_entry(0x1FC3C140u); + int psx_taken_BFC3C154 = 0; + int psx_taken_BFC3C18C = 0; label_BFC3C140: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -190679,7 +195834,7 @@ label_BFC3C140: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (240) ? 1 : 0); /* 0xBFC3C154: 1020000F beq $at, $zero, 0xBFC3C194 */ uint32_t psx_brA_BFC3C154 = cpu->gpr[1]; uint32_t psx_brB_BFC3C154 = cpu->gpr[0]; - int psx_taken_BFC3C154 = (psx_brA_BFC3C154 == psx_brB_BFC3C154); + psx_taken_BFC3C154 = (psx_brA_BFC3C154 == psx_brB_BFC3C154); /* 0xBFC3C158: 00000000 nop */ /* nop */ if (psx_taken_BFC3C154) goto label_BFC3C194; @@ -190719,7 +195874,7 @@ label_BFC3C160: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (240) ? 1 : 0); /* 0xBFC3C18C: 1420FFF4 bne $at, $zero, 0xBFC3C160 */ uint32_t psx_brA_BFC3C18C = cpu->gpr[1]; uint32_t psx_brB_BFC3C18C = cpu->gpr[0]; - int psx_taken_BFC3C18C = (psx_brA_BFC3C18C != psx_brB_BFC3C18C); + psx_taken_BFC3C18C = (psx_brA_BFC3C18C != psx_brB_BFC3C18C); /* 0xBFC3C190: 8FAF0000 lw $t7, 0($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C190u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } if (psx_taken_BFC3C18C) goto label_BFC3C160; @@ -190754,6 +195909,12 @@ void func_1FC3C19C(CPUState* cpu) { default: break; } } + int psx_taken_BFC3C1F8 = 0; + int psx_taken_BFC3C200 = 0; + int psx_taken_BFC3C210 = 0; + int psx_taken_BFC3C238 = 0; + int psx_taken_BFC3C24C = 0; + int psx_taken_BFC3C37C = 0; label_BFC3C19C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(20u); @@ -190813,7 +195974,7 @@ label_BFC3C1EC: cpu->gpr[10] = cpu->gpr[25] & 0x7FFu; /* 0xBFC3C1F8: 15400003 bne $t2, $zero, 0xBFC3C208 */ uint32_t psx_brA_BFC3C1F8 = cpu->gpr[10]; uint32_t psx_brB_BFC3C1F8 = cpu->gpr[0]; - int psx_taken_BFC3C1F8 = (psx_brA_BFC3C1F8 != psx_brB_BFC3C1F8); + psx_taken_BFC3C1F8 = (psx_brA_BFC3C1F8 != psx_brB_BFC3C1F8); /* 0xBFC3C1FC: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C1F8) goto label_BFC3C208; @@ -190824,7 +195985,7 @@ label_BFC3C200: psx_check_interrupts(cpu); /* 0xBFC3C200: 10000015 beq $zero, $zero, 0xBFC3C258 */ uint32_t psx_brA_BFC3C200 = cpu->gpr[0]; uint32_t psx_brB_BFC3C200 = cpu->gpr[0]; - int psx_taken_BFC3C200 = (psx_brA_BFC3C200 == psx_brB_BFC3C200); + psx_taken_BFC3C200 = (psx_brA_BFC3C200 == psx_brB_BFC3C200); /* 0xBFC3C204: AC22EE20 sw $v0, -4576($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4576)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C204u); return; } g_debug_last_store_pc = 0xBFC3C204u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC3C200) goto label_BFC3C258; @@ -190839,7 +196000,7 @@ label_BFC3C208: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (5001) ? 1 : 0); /* 0xBFC3C210: 1420000B bne $at, $zero, 0xBFC3C240 */ uint32_t psx_brA_BFC3C210 = cpu->gpr[1]; uint32_t psx_brB_BFC3C210 = cpu->gpr[0]; - int psx_taken_BFC3C210 = (psx_brA_BFC3C210 != psx_brB_BFC3C210); + psx_taken_BFC3C210 = (psx_brA_BFC3C210 != psx_brB_BFC3C210); /* 0xBFC3C214: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C210) goto label_BFC3C240; @@ -190872,7 +196033,7 @@ label_BFC3C230: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (-26720)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C234u); return; } cpu->gpr[16] = cpu->read_word(psx_addr); } /* 0xBFC3C238: 10000008 beq $zero, $zero, 0xBFC3C25C */ uint32_t psx_brA_BFC3C238 = cpu->gpr[0]; uint32_t psx_brB_BFC3C238 = cpu->gpr[0]; - int psx_taken_BFC3C238 = (psx_brA_BFC3C238 == psx_brB_BFC3C238); + psx_taken_BFC3C238 = (psx_brA_BFC3C238 == psx_brB_BFC3C238); /* 0xBFC3C23C: A6000180 sh $zero, 384($s0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[16] + (384)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C23Cu); return; } g_debug_last_store_pc = 0xBFC3C23Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[0] & 0xFFFFu)); } if (psx_taken_BFC3C238) goto label_BFC3C25C; @@ -190889,7 +196050,7 @@ label_BFC3C240: cpu->gpr[12] = cpu->gpr[11] & 0x7FFu; /* 0xBFC3C24C: 1580FFEE bne $t4, $zero, 0xBFC3C208 */ uint32_t psx_brA_BFC3C24C = cpu->gpr[12]; uint32_t psx_brB_BFC3C24C = cpu->gpr[0]; - int psx_taken_BFC3C24C = (psx_brA_BFC3C24C != psx_brB_BFC3C24C); + psx_taken_BFC3C24C = (psx_brA_BFC3C24C != psx_brB_BFC3C24C); /* 0xBFC3C250: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C24C) goto label_BFC3C208; @@ -191069,7 +196230,7 @@ label_BFC3C2E0: cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[8] + (4)); /* 0xBFC3C37C: 1509FFD8 bne $t0, $t1, 0xBFC3C2E0 */ uint32_t psx_brA_BFC3C37C = cpu->gpr[8]; uint32_t psx_brB_BFC3C37C = cpu->gpr[9]; - int psx_taken_BFC3C37C = (psx_brA_BFC3C37C != psx_brB_BFC3C37C); + psx_taken_BFC3C37C = (psx_brA_BFC3C37C != psx_brB_BFC3C37C); /* 0xBFC3C380: A4A70006 sh $a3, 6($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (6)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C380u); return; } g_debug_last_store_pc = 0xBFC3C380u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[7] & 0xFFFFu)); } if (psx_taken_BFC3C37C) goto label_BFC3C2E0; @@ -191230,6 +196391,11 @@ void func_1FC3C428(CPUState* cpu) { default: break; } } + int psx_taken_BFC3C464 = 0; + int psx_taken_BFC3C470 = 0; + int psx_taken_BFC3C480 = 0; + int psx_taken_BFC3C4A0 = 0; + int psx_taken_BFC3C4B4 = 0; label_BFC3C428: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(17u); @@ -191267,7 +196433,7 @@ label_BFC3C428: cpu->gpr[15] = cpu->gpr[14] & 0x7FFu; /* 0xBFC3C464: 14CF0004 bne $a2, $t7, 0xBFC3C478 */ uint32_t psx_brA_BFC3C464 = cpu->gpr[6]; uint32_t psx_brB_BFC3C464 = cpu->gpr[15]; - int psx_taken_BFC3C464 = (psx_brA_BFC3C464 != psx_brB_BFC3C464); + psx_taken_BFC3C464 = (psx_brA_BFC3C464 != psx_brB_BFC3C464); /* 0xBFC3C468: 00003821 addu $a3, $zero, $zero */ cpu->gpr[7] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3C464) goto label_BFC3C478; @@ -191280,7 +196446,7 @@ label_BFC3C46C: cpu->gpr[1] = 0x800E0000u; /* 0xBFC3C470: 10000013 beq $zero, $zero, 0xBFC3C4C0 */ uint32_t psx_brA_BFC3C470 = cpu->gpr[0]; uint32_t psx_brB_BFC3C470 = cpu->gpr[0]; - int psx_taken_BFC3C470 = (psx_brA_BFC3C470 == psx_brB_BFC3C470); + psx_taken_BFC3C470 = (psx_brA_BFC3C470 == psx_brB_BFC3C470); /* 0xBFC3C474: AC27EE20 sw $a3, -4576($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4576)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C474u); return; } g_debug_last_store_pc = 0xBFC3C474u; cpu->write_word(psx_addr, cpu->gpr[7]); } if (psx_taken_BFC3C470) goto label_BFC3C4C0; @@ -191295,7 +196461,7 @@ label_BFC3C478: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[7] < (5001) ? 1 : 0); /* 0xBFC3C480: 14200009 bne $at, $zero, 0xBFC3C4A8 */ uint32_t psx_brA_BFC3C480 = cpu->gpr[1]; uint32_t psx_brB_BFC3C480 = cpu->gpr[0]; - int psx_taken_BFC3C480 = (psx_brA_BFC3C480 != psx_brB_BFC3C480); + psx_taken_BFC3C480 = (psx_brA_BFC3C480 != psx_brB_BFC3C480); /* 0xBFC3C484: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C480) goto label_BFC3C4A8; @@ -191324,7 +196490,7 @@ label_BFC3C4A0: psx_check_interrupts(cpu); /* 0xBFC3C4A0: 10000008 beq $zero, $zero, 0xBFC3C4C4 */ uint32_t psx_brA_BFC3C4A0 = cpu->gpr[0]; uint32_t psx_brB_BFC3C4A0 = cpu->gpr[0]; - int psx_taken_BFC3C4A0 = (psx_brA_BFC3C4A0 == psx_brB_BFC3C4A0); + psx_taken_BFC3C4A0 = (psx_brA_BFC3C4A0 == psx_brB_BFC3C4A0); /* 0xBFC3C4A4: 8FA40020 lw $a0, 32($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C4A4u); return; } cpu->gpr[4] = cpu->read_word(psx_addr); } if (psx_taken_BFC3C4A0) goto label_BFC3C4C4; @@ -191341,7 +196507,7 @@ label_BFC3C4A8: cpu->gpr[25] = cpu->gpr[24] & 0x7FFu; /* 0xBFC3C4B4: 14D9FFF0 bne $a2, $t9, 0xBFC3C478 */ uint32_t psx_brA_BFC3C4B4 = cpu->gpr[6]; uint32_t psx_brB_BFC3C4B4 = cpu->gpr[25]; - int psx_taken_BFC3C4B4 = (psx_brA_BFC3C4B4 != psx_brB_BFC3C4B4); + psx_taken_BFC3C4B4 = (psx_brA_BFC3C4B4 != psx_brB_BFC3C4B4); /* 0xBFC3C4B8: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C4B4) goto label_BFC3C478; @@ -191402,6 +196568,25 @@ void func_1FC3C4E0(CPUState* cpu) { default: break; } } + int psx_taken_BFC3C534 = 0; + int psx_taken_BFC3C544 = 0; + int psx_taken_BFC3C56C = 0; + int psx_taken_BFC3C580 = 0; + int psx_taken_BFC3C58C = 0; + int psx_taken_BFC3C59C = 0; + int psx_taken_BFC3C5A4 = 0; + int psx_taken_BFC3C5B0 = 0; + int psx_taken_BFC3C5C8 = 0; + int psx_taken_BFC3C5FC = 0; + int psx_taken_BFC3C60C = 0; + int psx_taken_BFC3C634 = 0; + int psx_taken_BFC3C648 = 0; + int psx_taken_BFC3C668 = 0; + int psx_taken_BFC3C698 = 0; + int psx_taken_BFC3C6A0 = 0; + int psx_taken_BFC3C6B0 = 0; + int psx_taken_BFC3C6D0 = 0; + int psx_taken_BFC3C6E4 = 0; label_BFC3C4E0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(18u); @@ -191457,7 +196642,7 @@ label_BFC3C528: cpu->gpr[24] = cpu->gpr[15] & 0x7FFu; /* 0xBFC3C534: 12B80015 beq $s5, $t8, 0xBFC3C58C */ uint32_t psx_brA_BFC3C534 = cpu->gpr[21]; uint32_t psx_brB_BFC3C534 = cpu->gpr[24]; - int psx_taken_BFC3C534 = (psx_brA_BFC3C534 == psx_brB_BFC3C534); + psx_taken_BFC3C534 = (psx_brA_BFC3C534 == psx_brB_BFC3C534); /* 0xBFC3C538: 00000000 nop */ /* nop */ if (psx_taken_BFC3C534) goto label_BFC3C58C; @@ -191477,7 +196662,7 @@ label_BFC3C540: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (5001) ? 1 : 0); /* 0xBFC3C544: 1420000B bne $at, $zero, 0xBFC3C574 */ uint32_t psx_brA_BFC3C544 = cpu->gpr[1]; uint32_t psx_brB_BFC3C544 = cpu->gpr[0]; - int psx_taken_BFC3C544 = (psx_brA_BFC3C544 != psx_brB_BFC3C544); + psx_taken_BFC3C544 = (psx_brA_BFC3C544 != psx_brB_BFC3C544); /* 0xBFC3C548: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C544) goto label_BFC3C574; @@ -191510,7 +196695,7 @@ label_BFC3C564: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (-26720)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C568u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } /* 0xBFC3C56C: 10000007 beq $zero, $zero, 0xBFC3C58C */ uint32_t psx_brA_BFC3C56C = cpu->gpr[0]; uint32_t psx_brB_BFC3C56C = cpu->gpr[0]; - int psx_taken_BFC3C56C = (psx_brA_BFC3C56C == psx_brB_BFC3C56C); + psx_taken_BFC3C56C = (psx_brA_BFC3C56C == psx_brB_BFC3C56C); /* 0xBFC3C570: 00009021 addu $s2, $zero, $zero */ cpu->gpr[18] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3C56C) goto label_BFC3C58C; @@ -191527,7 +196712,7 @@ label_BFC3C574: cpu->gpr[8] = cpu->gpr[25] & 0x7FFu; /* 0xBFC3C580: 16A8FFEF bne $s5, $t0, 0xBFC3C540 */ uint32_t psx_brA_BFC3C580 = cpu->gpr[21]; uint32_t psx_brB_BFC3C580 = cpu->gpr[8]; - int psx_taken_BFC3C580 = (psx_brA_BFC3C580 != psx_brB_BFC3C580); + psx_taken_BFC3C580 = (psx_brA_BFC3C580 != psx_brB_BFC3C580); /* 0xBFC3C584: 26520001 addiu $s2, $s2, 1 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (1)); if (psx_taken_BFC3C580) goto label_BFC3C540; @@ -191545,7 +196730,7 @@ label_BFC3C58C: psx_check_interrupts(cpu); /* 0xBFC3C58C: 1280003A beq $s4, $zero, 0xBFC3C678 */ uint32_t psx_brA_BFC3C58C = cpu->gpr[20]; uint32_t psx_brB_BFC3C58C = cpu->gpr[0]; - int psx_taken_BFC3C58C = (psx_brA_BFC3C58C == psx_brB_BFC3C58C); + psx_taken_BFC3C58C = (psx_brA_BFC3C58C == psx_brB_BFC3C58C); /* 0xBFC3C590: 00000000 nop */ /* nop */ if (psx_taken_BFC3C58C) goto label_BFC3C678; @@ -191565,7 +196750,7 @@ label_BFC3C59C: psx_check_interrupts(cpu); /* 0xBFC3C59C: 14200003 bne $at, $zero, 0xBFC3C5AC */ uint32_t psx_brA_BFC3C59C = cpu->gpr[1]; uint32_t psx_brB_BFC3C59C = cpu->gpr[0]; - int psx_taken_BFC3C59C = (psx_brA_BFC3C59C != psx_brB_BFC3C59C); + psx_taken_BFC3C59C = (psx_brA_BFC3C59C != psx_brB_BFC3C59C); /* 0xBFC3C5A0: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3C59C) goto label_BFC3C5AC; @@ -191576,7 +196761,7 @@ label_BFC3C5A4: psx_check_interrupts(cpu); /* 0xBFC3C5A4: 10000002 beq $zero, $zero, 0xBFC3C5B0 */ uint32_t psx_brA_BFC3C5A4 = cpu->gpr[0]; uint32_t psx_brB_BFC3C5A4 = cpu->gpr[0]; - int psx_taken_BFC3C5A4 = (psx_brA_BFC3C5A4 == psx_brB_BFC3C5A4); + psx_taken_BFC3C5A4 = (psx_brA_BFC3C5A4 == psx_brB_BFC3C5A4); /* 0xBFC3C5A8: 24130040 addiu $s3, $zero, 64 */ cpu->gpr[19] = (uint32_t)((int32_t)cpu->gpr[0] + (64)); if (psx_taken_BFC3C5A4) goto label_BFC3C5B0; @@ -191594,7 +196779,7 @@ label_BFC3C5B0: psx_check_interrupts(cpu); /* 0xBFC3C5B0: 1A600007 blez $s3, 0xBFC3C5D0 */ uint32_t psx_brA_BFC3C5B0 = cpu->gpr[19]; - int psx_taken_BFC3C5B0 = ((int32_t)psx_brA_BFC3C5B0 <= 0); + psx_taken_BFC3C5B0 = ((int32_t)psx_brA_BFC3C5B0 <= 0); /* 0xBFC3C5B4: 00000000 nop */ /* nop */ if (psx_taken_BFC3C5B0) goto label_BFC3C5D0; @@ -191613,7 +196798,7 @@ label_BFC3C5B8: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (2)); /* 0xBFC3C5C8: 1420FFFB bne $at, $zero, 0xBFC3C5B8 */ uint32_t psx_brA_BFC3C5C8 = cpu->gpr[1]; uint32_t psx_brB_BFC3C5C8 = cpu->gpr[0]; - int psx_taken_BFC3C5C8 = (psx_brA_BFC3C5C8 != psx_brB_BFC3C5C8); + psx_taken_BFC3C5C8 = (psx_brA_BFC3C5C8 != psx_brB_BFC3C5C8); /* 0xBFC3C5CC: A62201A8 sh $v0, 424($s1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (424)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C5CCu); return; } g_debug_last_store_pc = 0xBFC3C5CCu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[2] & 0xFFFFu)); } if (psx_taken_BFC3C5C8) goto label_BFC3C5B8; @@ -191652,7 +196837,7 @@ label_BFC3C5F0: cpu->gpr[10] = cpu->gpr[9] & 0x400u; /* 0xBFC3C5FC: 11400015 beq $t2, $zero, 0xBFC3C654 */ uint32_t psx_brA_BFC3C5FC = cpu->gpr[10]; uint32_t psx_brB_BFC3C5FC = cpu->gpr[0]; - int psx_taken_BFC3C5FC = (psx_brA_BFC3C5FC == psx_brB_BFC3C5FC); + psx_taken_BFC3C5FC = (psx_brA_BFC3C5FC == psx_brB_BFC3C5FC); /* 0xBFC3C600: 00000000 nop */ /* nop */ if (psx_taken_BFC3C5FC) goto label_BFC3C654; @@ -191672,7 +196857,7 @@ label_BFC3C608: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (5001) ? 1 : 0); /* 0xBFC3C60C: 1420000B bne $at, $zero, 0xBFC3C63C */ uint32_t psx_brA_BFC3C60C = cpu->gpr[1]; uint32_t psx_brB_BFC3C60C = cpu->gpr[0]; - int psx_taken_BFC3C60C = (psx_brA_BFC3C60C != psx_brB_BFC3C60C); + psx_taken_BFC3C60C = (psx_brA_BFC3C60C != psx_brB_BFC3C60C); /* 0xBFC3C610: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C60C) goto label_BFC3C63C; @@ -191705,7 +196890,7 @@ label_BFC3C62C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[17] + (-26720)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C630u); return; } cpu->gpr[17] = cpu->read_word(psx_addr); } /* 0xBFC3C634: 10000007 beq $zero, $zero, 0xBFC3C654 */ uint32_t psx_brA_BFC3C634 = cpu->gpr[0]; uint32_t psx_brB_BFC3C634 = cpu->gpr[0]; - int psx_taken_BFC3C634 = (psx_brA_BFC3C634 == psx_brB_BFC3C634); + psx_taken_BFC3C634 = (psx_brA_BFC3C634 == psx_brB_BFC3C634); /* 0xBFC3C638: 00009021 addu $s2, $zero, $zero */ cpu->gpr[18] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3C634) goto label_BFC3C654; @@ -191722,7 +196907,7 @@ label_BFC3C63C: cpu->gpr[12] = cpu->gpr[11] & 0x400u; /* 0xBFC3C648: 1580FFEF bne $t4, $zero, 0xBFC3C608 */ uint32_t psx_brA_BFC3C648 = cpu->gpr[12]; uint32_t psx_brB_BFC3C648 = cpu->gpr[0]; - int psx_taken_BFC3C648 = (psx_brA_BFC3C648 != psx_brB_BFC3C648); + psx_taken_BFC3C648 = (psx_brA_BFC3C648 != psx_brB_BFC3C648); /* 0xBFC3C64C: 26520001 addiu $s2, $s2, 1 */ cpu->gpr[18] = (uint32_t)((int32_t)cpu->gpr[18] + (1)); if (psx_taken_BFC3C648) goto label_BFC3C608; @@ -191762,7 +196947,7 @@ label_BFC3C664: cpu->gpr[20] = cpu->gpr[20] - cpu->gpr[19]; /* 0xBFC3C668: 1680FFCC bne $s4, $zero, 0xBFC3C59C */ uint32_t psx_brA_BFC3C668 = cpu->gpr[20]; uint32_t psx_brB_BFC3C668 = cpu->gpr[0]; - int psx_taken_BFC3C668 = (psx_brA_BFC3C668 != psx_brB_BFC3C668); + psx_taken_BFC3C668 = (psx_brA_BFC3C668 != psx_brB_BFC3C668); /* 0xBFC3C66C: 2E810041 sltiu $at, $s4, 65 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[20] < 0x00000041u ? 1 : 0); if (psx_taken_BFC3C668) goto label_BFC3C59C; @@ -191798,7 +196983,7 @@ label_BFC3C678: cpu->gpr[14] = cpu->gpr[13] & 0x7FFu; /* 0xBFC3C698: 16AE0003 bne $s5, $t6, 0xBFC3C6A8 */ uint32_t psx_brA_BFC3C698 = cpu->gpr[21]; uint32_t psx_brB_BFC3C698 = cpu->gpr[14]; - int psx_taken_BFC3C698 = (psx_brA_BFC3C698 != psx_brB_BFC3C698); + psx_taken_BFC3C698 = (psx_brA_BFC3C698 != psx_brB_BFC3C698); /* 0xBFC3C69C: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C698) goto label_BFC3C6A8; @@ -191809,7 +196994,7 @@ label_BFC3C6A0: psx_check_interrupts(cpu); /* 0xBFC3C6A0: 10000013 beq $zero, $zero, 0xBFC3C6F0 */ uint32_t psx_brA_BFC3C6A0 = cpu->gpr[0]; uint32_t psx_brB_BFC3C6A0 = cpu->gpr[0]; - int psx_taken_BFC3C6A0 = (psx_brA_BFC3C6A0 == psx_brB_BFC3C6A0); + psx_taken_BFC3C6A0 = (psx_brA_BFC3C6A0 == psx_brB_BFC3C6A0); /* 0xBFC3C6A4: AC32EE20 sw $s2, -4576($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4576)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C6A4u); return; } g_debug_last_store_pc = 0xBFC3C6A4u; cpu->write_word(psx_addr, cpu->gpr[18]); } if (psx_taken_BFC3C6A0) goto label_BFC3C6F0; @@ -191824,7 +197009,7 @@ label_BFC3C6A8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[18] < (5001) ? 1 : 0); /* 0xBFC3C6B0: 14200009 bne $at, $zero, 0xBFC3C6D8 */ uint32_t psx_brA_BFC3C6B0 = cpu->gpr[1]; uint32_t psx_brB_BFC3C6B0 = cpu->gpr[0]; - int psx_taken_BFC3C6B0 = (psx_brA_BFC3C6B0 != psx_brB_BFC3C6B0); + psx_taken_BFC3C6B0 = (psx_brA_BFC3C6B0 != psx_brB_BFC3C6B0); /* 0xBFC3C6B4: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C6B0) goto label_BFC3C6D8; @@ -191853,7 +197038,7 @@ label_BFC3C6D0: psx_check_interrupts(cpu); /* 0xBFC3C6D0: 10000008 beq $zero, $zero, 0xBFC3C6F4 */ uint32_t psx_brA_BFC3C6D0 = cpu->gpr[0]; uint32_t psx_brB_BFC3C6D0 = cpu->gpr[0]; - int psx_taken_BFC3C6D0 = (psx_brA_BFC3C6D0 == psx_brB_BFC3C6D0); + psx_taken_BFC3C6D0 = (psx_brA_BFC3C6D0 == psx_brB_BFC3C6D0); /* 0xBFC3C6D4: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C6D4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3C6D0) goto label_BFC3C6F4; @@ -191870,7 +197055,7 @@ label_BFC3C6D8: cpu->gpr[24] = cpu->gpr[15] & 0x7FFu; /* 0xBFC3C6E4: 16B8FFF0 bne $s5, $t8, 0xBFC3C6A8 */ uint32_t psx_brA_BFC3C6E4 = cpu->gpr[21]; uint32_t psx_brB_BFC3C6E4 = cpu->gpr[24]; - int psx_taken_BFC3C6E4 = (psx_brA_BFC3C6E4 != psx_brB_BFC3C6E4); + psx_taken_BFC3C6E4 = (psx_brA_BFC3C6E4 != psx_brB_BFC3C6E4); /* 0xBFC3C6E8: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C6E4) goto label_BFC3C6A8; @@ -191931,6 +197116,130 @@ void func_1FC3C710(CPUState* cpu) { default: break; } } + int psx_taken_BFC3C738 = 0; + int psx_taken_BFC3C748 = 0; + int psx_taken_BFC3C750 = 0; + int psx_taken_BFC3C764 = 0; + int psx_taken_BFC3C778 = 0; + int psx_taken_BFC3C78C = 0; + int psx_taken_BFC3C794 = 0; + int psx_taken_BFC3C7A0 = 0; + int psx_taken_BFC3C7A8 = 0; + int psx_taken_BFC3C7C0 = 0; + int psx_taken_BFC3C7D8 = 0; + int psx_taken_BFC3C7EC = 0; + int psx_taken_BFC3C7F8 = 0; + int psx_taken_BFC3C800 = 0; + int psx_taken_BFC3C854 = 0; + int psx_taken_BFC3C85C = 0; + int psx_taken_BFC3C86C = 0; + int psx_taken_BFC3C88C = 0; + int psx_taken_BFC3C8A0 = 0; + int psx_taken_BFC3C8A8 = 0; + int psx_taken_BFC3C8B4 = 0; + int psx_taken_BFC3C8C4 = 0; + int psx_taken_BFC3C8D4 = 0; + int psx_taken_BFC3C8DC = 0; + int psx_taken_BFC3C8E8 = 0; + int psx_taken_BFC3C958 = 0; + int psx_taken_BFC3C960 = 0; + int psx_taken_BFC3C970 = 0; + int psx_taken_BFC3C990 = 0; + int psx_taken_BFC3C9A4 = 0; + int psx_taken_BFC3C9AC = 0; + int psx_taken_BFC3C9B8 = 0; + int psx_taken_BFC3C9C8 = 0; + int psx_taken_BFC3C9D8 = 0; + int psx_taken_BFC3C9E0 = 0; + int psx_taken_BFC3C9EC = 0; + int psx_taken_BFC3CA0C = 0; + int psx_taken_BFC3CA1C = 0; + int psx_taken_BFC3CA34 = 0; + int psx_taken_BFC3CA44 = 0; + int psx_taken_BFC3CA54 = 0; + int psx_taken_BFC3CA74 = 0; + int psx_taken_BFC3CA90 = 0; + int psx_taken_BFC3CAAC = 0; + int psx_taken_BFC3CAC4 = 0; + int psx_taken_BFC3CAEC = 0; + int psx_taken_BFC3CB00 = 0; + int psx_taken_BFC3CB0C = 0; + int psx_taken_BFC3CB14 = 0; + int psx_taken_BFC3CB28 = 0; + int psx_taken_BFC3CB34 = 0; + int psx_taken_BFC3CB44 = 0; + int psx_taken_BFC3CB54 = 0; + int psx_taken_BFC3CB5C = 0; + int psx_taken_BFC3CB68 = 0; + int psx_taken_BFC3CB80 = 0; + int psx_taken_BFC3CB94 = 0; + int psx_taken_BFC3CBB0 = 0; + int psx_taken_BFC3CBC0 = 0; + int psx_taken_BFC3CC00 = 0; + int psx_taken_BFC3CC20 = 0; + int psx_taken_BFC3CC68 = 0; + int psx_taken_BFC3CC78 = 0; + int psx_taken_BFC3CC88 = 0; + int psx_taken_BFC3CC94 = 0; + int psx_taken_BFC3CC9C = 0; + int psx_taken_BFC3CCA4 = 0; + int psx_taken_BFC3CCAC = 0; + int psx_taken_BFC3CCB4 = 0; + int psx_taken_BFC3CCBC = 0; + int psx_taken_BFC3CCC4 = 0; + int psx_taken_BFC3CCCC = 0; + int psx_taken_BFC3CCD4 = 0; + int psx_taken_BFC3CCDC = 0; + int psx_taken_BFC3CCE8 = 0; + int psx_taken_BFC3CCFC = 0; + int psx_taken_BFC3CD08 = 0; + int psx_taken_BFC3CD10 = 0; + int psx_taken_BFC3CD18 = 0; + int psx_taken_BFC3CD20 = 0; + int psx_taken_BFC3CD2C = 0; + int psx_taken_BFC3CD34 = 0; + int psx_taken_BFC3CD40 = 0; + int psx_taken_BFC3CD48 = 0; + int psx_taken_BFC3CD50 = 0; + int psx_taken_BFC3CD58 = 0; + int psx_taken_BFC3CD60 = 0; + int psx_taken_BFC3CD68 = 0; + int psx_taken_BFC3CD74 = 0; + int psx_taken_BFC3CD7C = 0; + int psx_taken_BFC3CD88 = 0; + int psx_taken_BFC3CD90 = 0; + int psx_taken_BFC3CD98 = 0; + int psx_taken_BFC3CDA0 = 0; + int psx_taken_BFC3CDAC = 0; + int psx_taken_BFC3CDB4 = 0; + int psx_taken_BFC3CDC0 = 0; + int psx_taken_BFC3CDC8 = 0; + int psx_taken_BFC3CDD0 = 0; + int psx_taken_BFC3CDD8 = 0; + int psx_taken_BFC3CDE0 = 0; + int psx_taken_BFC3CDE8 = 0; + int psx_taken_BFC3CDF0 = 0; + int psx_taken_BFC3CDF8 = 0; + int psx_taken_BFC3CE04 = 0; + int psx_taken_BFC3CE0C = 0; + int psx_taken_BFC3CE18 = 0; + int psx_taken_BFC3CE20 = 0; + int psx_taken_BFC3CE28 = 0; + int psx_taken_BFC3CE30 = 0; + int psx_taken_BFC3CE3C = 0; + int psx_taken_BFC3CE44 = 0; + int psx_taken_BFC3CE50 = 0; + int psx_taken_BFC3CE58 = 0; + int psx_taken_BFC3CE60 = 0; + int psx_taken_BFC3CE68 = 0; + int psx_taken_BFC3CE70 = 0; + int psx_taken_BFC3CE78 = 0; + int psx_taken_BFC3CE84 = 0; + int psx_taken_BFC3CE8C = 0; + int psx_taken_BFC3CE98 = 0; + int psx_taken_BFC3CEA0 = 0; + int psx_taken_BFC3CEA8 = 0; + int psx_taken_BFC3CEB0 = 0; label_BFC3C710: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -191958,7 +197267,7 @@ label_BFC3C710: cpu->gpr[7] = cpu->gpr[7] & 0xFFFFu; /* 0xBFC3C738: 10000155 beq $zero, $zero, 0xBFC3CC90 */ uint32_t psx_brA_BFC3C738 = cpu->gpr[0]; uint32_t psx_brB_BFC3C738 = cpu->gpr[0]; - int psx_taken_BFC3C738 = (psx_brA_BFC3C738 == psx_brB_BFC3C738); + psx_taken_BFC3C738 = (psx_brA_BFC3C738 == psx_brB_BFC3C738); /* 0xBFC3C73C: 00084042 srl $t0, $t0, 1 */ cpu->gpr[8] = cpu->gpr[8] >> 1u; if (psx_taken_BFC3C738) goto label_BFC3CC90; @@ -191979,7 +197288,7 @@ label_BFC3C748: psx_check_interrupts(cpu); /* 0xBFC3C748: 100001DC beq $zero, $zero, 0xBFC3CEBC */ uint32_t psx_brA_BFC3C748 = cpu->gpr[0]; uint32_t psx_brB_BFC3C748 = cpu->gpr[0]; - int psx_taken_BFC3C748 = (psx_brA_BFC3C748 == psx_brB_BFC3C748); + psx_taken_BFC3C748 = (psx_brA_BFC3C748 == psx_brB_BFC3C748); /* 0xBFC3C74C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C74Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3C748) goto label_BFC3CEBC; @@ -191990,7 +197299,7 @@ label_BFC3C750: psx_check_interrupts(cpu); /* 0xBFC3C750: 14C00006 bne $a2, $zero, 0xBFC3C76C */ uint32_t psx_brA_BFC3C750 = cpu->gpr[6]; uint32_t psx_brB_BFC3C750 = cpu->gpr[0]; - int psx_taken_BFC3C750 = (psx_brA_BFC3C750 != psx_brB_BFC3C750); + psx_taken_BFC3C750 = (psx_brA_BFC3C750 != psx_brB_BFC3C750); /* 0xBFC3C754: 00000000 nop */ /* nop */ if (psx_taken_BFC3C750) goto label_BFC3C76C; @@ -192007,7 +197316,7 @@ label_BFC3C758: cpu->gpr[15] = cpu->gpr[14] | 0x4000u; /* 0xBFC3C764: 100001D4 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3C764 = cpu->gpr[0]; uint32_t psx_brB_BFC3C764 = cpu->gpr[0]; - int psx_taken_BFC3C764 = (psx_brA_BFC3C764 == psx_brB_BFC3C764); + psx_taken_BFC3C764 = (psx_brA_BFC3C764 == psx_brB_BFC3C764); /* 0xBFC3C768: A48F01AA sh $t7, 426($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (426)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C768u); return; } g_debug_last_store_pc = 0xBFC3C768u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[15] & 0xFFFFu)); } if (psx_taken_BFC3C764) goto label_BFC3CEB8; @@ -192024,7 +197333,7 @@ label_BFC3C76C: cpu->gpr[25] = cpu->gpr[24] & 0xBFFFu; /* 0xBFC3C778: 100001CF beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3C778 = cpu->gpr[0]; uint32_t psx_brB_BFC3C778 = cpu->gpr[0]; - int psx_taken_BFC3C778 = (psx_brA_BFC3C778 == psx_brB_BFC3C778); + psx_taken_BFC3C778 = (psx_brA_BFC3C778 == psx_brB_BFC3C778); /* 0xBFC3C77C: A49901AA sh $t9, 426($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (426)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C77Cu); return; } g_debug_last_store_pc = 0xBFC3C77Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[25] & 0xFFFFu)); } if (psx_taken_BFC3C778) goto label_BFC3CEB8; @@ -192041,7 +197350,7 @@ label_BFC3C780: cpu->gpr[10] = cpu->gpr[9] & 0x4000u; /* 0xBFC3C78C: 11400004 beq $t2, $zero, 0xBFC3C7A0 */ uint32_t psx_brA_BFC3C78C = cpu->gpr[10]; uint32_t psx_brB_BFC3C78C = cpu->gpr[0]; - int psx_taken_BFC3C78C = (psx_brA_BFC3C78C == psx_brB_BFC3C78C); + psx_taken_BFC3C78C = (psx_brA_BFC3C78C == psx_brB_BFC3C78C); /* 0xBFC3C790: 240B0001 addiu $t3, $zero, 1 */ cpu->gpr[11] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3C78C) goto label_BFC3C7A0; @@ -192052,7 +197361,7 @@ label_BFC3C794: psx_check_interrupts(cpu); /* 0xBFC3C794: 100001C8 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3C794 = cpu->gpr[0]; uint32_t psx_brB_BFC3C794 = cpu->gpr[0]; - int psx_taken_BFC3C794 = (psx_brA_BFC3C794 == psx_brB_BFC3C794); + psx_taken_BFC3C794 = (psx_brA_BFC3C794 == psx_brB_BFC3C794); /* 0xBFC3C798: ACC00000 sw $zero, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C798u); return; } g_debug_last_store_pc = 0xBFC3C798u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC3C794) goto label_BFC3CEB8; @@ -192070,7 +197379,7 @@ label_BFC3C7A0: psx_check_interrupts(cpu); /* 0xBFC3C7A0: 100001C5 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3C7A0 = cpu->gpr[0]; uint32_t psx_brB_BFC3C7A0 = cpu->gpr[0]; - int psx_taken_BFC3C7A0 = (psx_brA_BFC3C7A0 == psx_brB_BFC3C7A0); + psx_taken_BFC3C7A0 = (psx_brA_BFC3C7A0 == psx_brB_BFC3C7A0); /* 0xBFC3C7A4: ACCB0000 sw $t3, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C7A4u); return; } g_debug_last_store_pc = 0xBFC3C7A4u; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC3C7A0) goto label_BFC3CEB8; @@ -192081,7 +197390,7 @@ label_BFC3C7A8: psx_check_interrupts(cpu); /* 0xBFC3C7A8: 14C00007 bne $a2, $zero, 0xBFC3C7C8 */ uint32_t psx_brA_BFC3C7A8 = cpu->gpr[6]; uint32_t psx_brB_BFC3C7A8 = cpu->gpr[0]; - int psx_taken_BFC3C7A8 = (psx_brA_BFC3C7A8 != psx_brB_BFC3C7A8); + psx_taken_BFC3C7A8 = (psx_brA_BFC3C7A8 != psx_brB_BFC3C7A8); /* 0xBFC3C7AC: 00000000 nop */ /* nop */ if (psx_taken_BFC3C7A8) goto label_BFC3C7C8; @@ -192100,7 +197409,7 @@ label_BFC3C7B0: cpu->gpr[2] = cpu->gpr[2] & 0xFFFFu; /* 0xBFC3C7C0: 100001BD beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3C7C0 = cpu->gpr[0]; uint32_t psx_brB_BFC3C7C0 = cpu->gpr[0]; - int psx_taken_BFC3C7C0 = (psx_brA_BFC3C7C0 == psx_brB_BFC3C7C0); + psx_taken_BFC3C7C0 = (psx_brA_BFC3C7C0 == psx_brB_BFC3C7C0); /* 0xBFC3C7C4: A48201AA sh $v0, 426($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (426)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C7C4u); return; } g_debug_last_store_pc = 0xBFC3C7C4u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[2] & 0xFFFFu)); } if (psx_taken_BFC3C7C0) goto label_BFC3CEB8; @@ -192119,7 +197428,7 @@ label_BFC3C7C8: cpu->gpr[2] = cpu->gpr[2] & 0xFFFFu; /* 0xBFC3C7D8: 100001B7 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3C7D8 = cpu->gpr[0]; uint32_t psx_brB_BFC3C7D8 = cpu->gpr[0]; - int psx_taken_BFC3C7D8 = (psx_brA_BFC3C7D8 == psx_brB_BFC3C7D8); + psx_taken_BFC3C7D8 = (psx_brA_BFC3C7D8 == psx_brB_BFC3C7D8); /* 0xBFC3C7DC: A48201AA sh $v0, 426($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (426)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C7DCu); return; } g_debug_last_store_pc = 0xBFC3C7DCu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[2] & 0xFFFFu)); } if (psx_taken_BFC3C7D8) goto label_BFC3CEB8; @@ -192136,7 +197445,7 @@ label_BFC3C7E0: cpu->gpr[13] = cpu->gpr[12] & 0x40u; /* 0xBFC3C7EC: 11A00004 beq $t5, $zero, 0xBFC3C800 */ uint32_t psx_brA_BFC3C7EC = cpu->gpr[13]; uint32_t psx_brB_BFC3C7EC = cpu->gpr[0]; - int psx_taken_BFC3C7EC = (psx_brA_BFC3C7EC == psx_brB_BFC3C7EC); + psx_taken_BFC3C7EC = (psx_brA_BFC3C7EC == psx_brB_BFC3C7EC); /* 0xBFC3C7F0: 00000000 nop */ /* nop */ if (psx_taken_BFC3C7EC) goto label_BFC3C800; @@ -192149,7 +197458,7 @@ label_BFC3C7F4: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC3C7F8: 100001AF beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3C7F8 = cpu->gpr[0]; uint32_t psx_brB_BFC3C7F8 = cpu->gpr[0]; - int psx_taken_BFC3C7F8 = (psx_brA_BFC3C7F8 == psx_brB_BFC3C7F8); + psx_taken_BFC3C7F8 = (psx_brA_BFC3C7F8 == psx_brB_BFC3C7F8); /* 0xBFC3C7FC: ACCE0000 sw $t6, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C7FCu); return; } g_debug_last_store_pc = 0xBFC3C7FCu; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC3C7F8) goto label_BFC3CEB8; @@ -192160,7 +197469,7 @@ label_BFC3C800: psx_check_interrupts(cpu); /* 0xBFC3C800: 100001AD beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3C800 = cpu->gpr[0]; uint32_t psx_brB_BFC3C800 = cpu->gpr[0]; - int psx_taken_BFC3C800 = (psx_brA_BFC3C800 == psx_brB_BFC3C800); + psx_taken_BFC3C800 = (psx_brA_BFC3C800 == psx_brB_BFC3C800); /* 0xBFC3C804: ACC00000 sw $zero, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C804u); return; } g_debug_last_store_pc = 0xBFC3C804u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC3C800) goto label_BFC3CEB8; @@ -192221,7 +197530,7 @@ label_BFC3C83C: cpu->gpr[24] = cpu->gpr[15] & 0x7FFu; /* 0xBFC3C854: 14F80003 bne $a3, $t8, 0xBFC3C864 */ uint32_t psx_brA_BFC3C854 = cpu->gpr[7]; uint32_t psx_brB_BFC3C854 = cpu->gpr[24]; - int psx_taken_BFC3C854 = (psx_brA_BFC3C854 != psx_brB_BFC3C854); + psx_taken_BFC3C854 = (psx_brA_BFC3C854 != psx_brB_BFC3C854); /* 0xBFC3C858: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C854) goto label_BFC3C864; @@ -192232,7 +197541,7 @@ label_BFC3C85C: psx_check_interrupts(cpu); /* 0xBFC3C85C: 10000196 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3C85C = cpu->gpr[0]; uint32_t psx_brB_BFC3C85C = cpu->gpr[0]; - int psx_taken_BFC3C85C = (psx_brA_BFC3C85C == psx_brB_BFC3C85C); + psx_taken_BFC3C85C = (psx_brA_BFC3C85C == psx_brB_BFC3C85C); /* 0xBFC3C860: AC22EE20 sw $v0, -4576($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4576)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C860u); return; } g_debug_last_store_pc = 0xBFC3C860u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC3C85C) goto label_BFC3CEB8; @@ -192247,7 +197556,7 @@ label_BFC3C864: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (5001) ? 1 : 0); /* 0xBFC3C86C: 14200009 bne $at, $zero, 0xBFC3C894 */ uint32_t psx_brA_BFC3C86C = cpu->gpr[1]; uint32_t psx_brB_BFC3C86C = cpu->gpr[0]; - int psx_taken_BFC3C86C = (psx_brA_BFC3C86C != psx_brB_BFC3C86C); + psx_taken_BFC3C86C = (psx_brA_BFC3C86C != psx_brB_BFC3C86C); /* 0xBFC3C870: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C86C) goto label_BFC3C894; @@ -192276,7 +197585,7 @@ label_BFC3C88C: psx_check_interrupts(cpu); /* 0xBFC3C88C: 1000018B beq $zero, $zero, 0xBFC3CEBC */ uint32_t psx_brA_BFC3C88C = cpu->gpr[0]; uint32_t psx_brB_BFC3C88C = cpu->gpr[0]; - int psx_taken_BFC3C88C = (psx_brA_BFC3C88C == psx_brB_BFC3C88C); + psx_taken_BFC3C88C = (psx_brA_BFC3C88C == psx_brB_BFC3C88C); /* 0xBFC3C890: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C890u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3C88C) goto label_BFC3CEBC; @@ -192293,7 +197602,7 @@ label_BFC3C894: cpu->gpr[9] = cpu->gpr[25] & 0x7FFu; /* 0xBFC3C8A0: 14E9FFF0 bne $a3, $t1, 0xBFC3C864 */ uint32_t psx_brA_BFC3C8A0 = cpu->gpr[7]; uint32_t psx_brB_BFC3C8A0 = cpu->gpr[9]; - int psx_taken_BFC3C8A0 = (psx_brA_BFC3C8A0 != psx_brB_BFC3C8A0); + psx_taken_BFC3C8A0 = (psx_brA_BFC3C8A0 != psx_brB_BFC3C8A0); /* 0xBFC3C8A4: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C8A0) goto label_BFC3C864; @@ -192304,7 +197613,7 @@ label_BFC3C8A8: psx_check_interrupts(cpu); /* 0xBFC3C8A8: 10000183 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3C8A8 = cpu->gpr[0]; uint32_t psx_brB_BFC3C8A8 = cpu->gpr[0]; - int psx_taken_BFC3C8A8 = (psx_brA_BFC3C8A8 == psx_brB_BFC3C8A8); + psx_taken_BFC3C8A8 = (psx_brA_BFC3C8A8 == psx_brB_BFC3C8A8); /* 0xBFC3C8AC: AC22EE20 sw $v0, -4576($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4576)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C8ACu); return; } g_debug_last_store_pc = 0xBFC3C8ACu; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC3C8A8) goto label_BFC3CEB8; @@ -192317,7 +197626,7 @@ label_BFC3C8B0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C8B0u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC3C8B4: 11000010 beq $t0, $zero, 0xBFC3C8F8 */ uint32_t psx_brA_BFC3C8B4 = cpu->gpr[8]; uint32_t psx_brB_BFC3C8B4 = cpu->gpr[0]; - int psx_taken_BFC3C8B4 = (psx_brA_BFC3C8B4 == psx_brB_BFC3C8B4); + psx_taken_BFC3C8B4 = (psx_brA_BFC3C8B4 == psx_brB_BFC3C8B4); /* 0xBFC3C8B8: 250B0001 addiu $t3, $t0, 1 */ cpu->gpr[11] = (uint32_t)((int32_t)cpu->gpr[8] + (1)); if (psx_taken_BFC3C8B4) goto label_BFC3C8F8; @@ -192332,7 +197641,7 @@ label_BFC3C8BC: cpu->gpr[10] = cpu->hi; /* 0xBFC3C8C4: 15000002 bne $t0, $zero, 0xBFC3C8D0 */ uint32_t psx_brA_BFC3C8C4 = cpu->gpr[8]; uint32_t psx_brB_BFC3C8C4 = cpu->gpr[0]; - int psx_taken_BFC3C8C4 = (psx_brA_BFC3C8C4 != psx_brB_BFC3C8C4); + psx_taken_BFC3C8C4 = (psx_brA_BFC3C8C4 != psx_brB_BFC3C8C4); /* 0xBFC3C8C8: 00000000 nop */ /* nop */ if (psx_taken_BFC3C8C4) goto label_BFC3C8D0; @@ -192352,7 +197661,7 @@ label_BFC3C8D0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC3C8D4: 15010004 bne $t0, $at, 0xBFC3C8E8 */ uint32_t psx_brA_BFC3C8D4 = cpu->gpr[8]; uint32_t psx_brB_BFC3C8D4 = cpu->gpr[1]; - int psx_taken_BFC3C8D4 = (psx_brA_BFC3C8D4 != psx_brB_BFC3C8D4); + psx_taken_BFC3C8D4 = (psx_brA_BFC3C8D4 != psx_brB_BFC3C8D4); /* 0xBFC3C8D8: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC3C8D4) goto label_BFC3C8E8; @@ -192363,7 +197672,7 @@ label_BFC3C8DC: psx_check_interrupts(cpu); /* 0xBFC3C8DC: 14610002 bne $v1, $at, 0xBFC3C8E8 */ uint32_t psx_brA_BFC3C8DC = cpu->gpr[3]; uint32_t psx_brB_BFC3C8DC = cpu->gpr[1]; - int psx_taken_BFC3C8DC = (psx_brA_BFC3C8DC != psx_brB_BFC3C8DC); + psx_taken_BFC3C8DC = (psx_brA_BFC3C8DC != psx_brB_BFC3C8DC); /* 0xBFC3C8E0: 00000000 nop */ /* nop */ if (psx_taken_BFC3C8DC) goto label_BFC3C8E8; @@ -192381,7 +197690,7 @@ label_BFC3C8E8: psx_check_interrupts(cpu); /* 0xBFC3C8E8: 11400003 beq $t2, $zero, 0xBFC3C8F8 */ uint32_t psx_brA_BFC3C8E8 = cpu->gpr[10]; uint32_t psx_brB_BFC3C8E8 = cpu->gpr[0]; - int psx_taken_BFC3C8E8 = (psx_brA_BFC3C8E8 == psx_brB_BFC3C8E8); + psx_taken_BFC3C8E8 = (psx_brA_BFC3C8E8 == psx_brB_BFC3C8E8); /* 0xBFC3C8EC: 250B0001 addiu $t3, $t0, 1 */ cpu->gpr[11] = (uint32_t)((int32_t)cpu->gpr[8] + (1)); if (psx_taken_BFC3C8E8) goto label_BFC3C8F8; @@ -192467,7 +197776,7 @@ label_BFC3C940: cpu->gpr[13] = cpu->gpr[12] & 0x7FFu; /* 0xBFC3C958: 14ED0003 bne $a3, $t5, 0xBFC3C968 */ uint32_t psx_brA_BFC3C958 = cpu->gpr[7]; uint32_t psx_brB_BFC3C958 = cpu->gpr[13]; - int psx_taken_BFC3C958 = (psx_brA_BFC3C958 != psx_brB_BFC3C958); + psx_taken_BFC3C958 = (psx_brA_BFC3C958 != psx_brB_BFC3C958); /* 0xBFC3C95C: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C958) goto label_BFC3C968; @@ -192478,7 +197787,7 @@ label_BFC3C960: psx_check_interrupts(cpu); /* 0xBFC3C960: 10000155 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3C960 = cpu->gpr[0]; uint32_t psx_brB_BFC3C960 = cpu->gpr[0]; - int psx_taken_BFC3C960 = (psx_brA_BFC3C960 == psx_brB_BFC3C960); + psx_taken_BFC3C960 = (psx_brA_BFC3C960 == psx_brB_BFC3C960); /* 0xBFC3C964: AC22EE20 sw $v0, -4576($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4576)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C964u); return; } g_debug_last_store_pc = 0xBFC3C964u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC3C960) goto label_BFC3CEB8; @@ -192493,7 +197802,7 @@ label_BFC3C968: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (5001) ? 1 : 0); /* 0xBFC3C970: 14200009 bne $at, $zero, 0xBFC3C998 */ uint32_t psx_brA_BFC3C970 = cpu->gpr[1]; uint32_t psx_brB_BFC3C970 = cpu->gpr[0]; - int psx_taken_BFC3C970 = (psx_brA_BFC3C970 != psx_brB_BFC3C970); + psx_taken_BFC3C970 = (psx_brA_BFC3C970 != psx_brB_BFC3C970); /* 0xBFC3C974: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C970) goto label_BFC3C998; @@ -192522,7 +197831,7 @@ label_BFC3C990: psx_check_interrupts(cpu); /* 0xBFC3C990: 1000014A beq $zero, $zero, 0xBFC3CEBC */ uint32_t psx_brA_BFC3C990 = cpu->gpr[0]; uint32_t psx_brB_BFC3C990 = cpu->gpr[0]; - int psx_taken_BFC3C990 = (psx_brA_BFC3C990 == psx_brB_BFC3C990); + psx_taken_BFC3C990 = (psx_brA_BFC3C990 == psx_brB_BFC3C990); /* 0xBFC3C994: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C994u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3C990) goto label_BFC3CEBC; @@ -192539,7 +197848,7 @@ label_BFC3C998: cpu->gpr[15] = cpu->gpr[14] & 0x7FFu; /* 0xBFC3C9A4: 14EFFFF0 bne $a3, $t7, 0xBFC3C968 */ uint32_t psx_brA_BFC3C9A4 = cpu->gpr[7]; uint32_t psx_brB_BFC3C9A4 = cpu->gpr[15]; - int psx_taken_BFC3C9A4 = (psx_brA_BFC3C9A4 != psx_brB_BFC3C9A4); + psx_taken_BFC3C9A4 = (psx_brA_BFC3C9A4 != psx_brB_BFC3C9A4); /* 0xBFC3C9A8: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3C9A4) goto label_BFC3C968; @@ -192550,7 +197859,7 @@ label_BFC3C9AC: psx_check_interrupts(cpu); /* 0xBFC3C9AC: 10000142 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3C9AC = cpu->gpr[0]; uint32_t psx_brB_BFC3C9AC = cpu->gpr[0]; - int psx_taken_BFC3C9AC = (psx_brA_BFC3C9AC == psx_brB_BFC3C9AC); + psx_taken_BFC3C9AC = (psx_brA_BFC3C9AC == psx_brB_BFC3C9AC); /* 0xBFC3C9B0: AC22EE20 sw $v0, -4576($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4576)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C9B0u); return; } g_debug_last_store_pc = 0xBFC3C9B0u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC3C9AC) goto label_BFC3CEB8; @@ -192563,7 +197872,7 @@ label_BFC3C9B4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3C9B4u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC3C9B8: 11000010 beq $t0, $zero, 0xBFC3C9FC */ uint32_t psx_brA_BFC3C9B8 = cpu->gpr[8]; uint32_t psx_brB_BFC3C9B8 = cpu->gpr[0]; - int psx_taken_BFC3C9B8 = (psx_brA_BFC3C9B8 == psx_brB_BFC3C9B8); + psx_taken_BFC3C9B8 = (psx_brA_BFC3C9B8 == psx_brB_BFC3C9B8); /* 0xBFC3C9BC: 25190001 addiu $t9, $t0, 1 */ cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[8] + (1)); if (psx_taken_BFC3C9B8) goto label_BFC3C9FC; @@ -192578,7 +197887,7 @@ label_BFC3C9C0: cpu->gpr[24] = cpu->hi; /* 0xBFC3C9C8: 15000002 bne $t0, $zero, 0xBFC3C9D4 */ uint32_t psx_brA_BFC3C9C8 = cpu->gpr[8]; uint32_t psx_brB_BFC3C9C8 = cpu->gpr[0]; - int psx_taken_BFC3C9C8 = (psx_brA_BFC3C9C8 != psx_brB_BFC3C9C8); + psx_taken_BFC3C9C8 = (psx_brA_BFC3C9C8 != psx_brB_BFC3C9C8); /* 0xBFC3C9CC: 00000000 nop */ /* nop */ if (psx_taken_BFC3C9C8) goto label_BFC3C9D4; @@ -192598,7 +197907,7 @@ label_BFC3C9D4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC3C9D8: 15010004 bne $t0, $at, 0xBFC3C9EC */ uint32_t psx_brA_BFC3C9D8 = cpu->gpr[8]; uint32_t psx_brB_BFC3C9D8 = cpu->gpr[1]; - int psx_taken_BFC3C9D8 = (psx_brA_BFC3C9D8 != psx_brB_BFC3C9D8); + psx_taken_BFC3C9D8 = (psx_brA_BFC3C9D8 != psx_brB_BFC3C9D8); /* 0xBFC3C9DC: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC3C9D8) goto label_BFC3C9EC; @@ -192609,7 +197918,7 @@ label_BFC3C9E0: psx_check_interrupts(cpu); /* 0xBFC3C9E0: 14610002 bne $v1, $at, 0xBFC3C9EC */ uint32_t psx_brA_BFC3C9E0 = cpu->gpr[3]; uint32_t psx_brB_BFC3C9E0 = cpu->gpr[1]; - int psx_taken_BFC3C9E0 = (psx_brA_BFC3C9E0 != psx_brB_BFC3C9E0); + psx_taken_BFC3C9E0 = (psx_brA_BFC3C9E0 != psx_brB_BFC3C9E0); /* 0xBFC3C9E4: 00000000 nop */ /* nop */ if (psx_taken_BFC3C9E0) goto label_BFC3C9EC; @@ -192627,7 +197936,7 @@ label_BFC3C9EC: psx_check_interrupts(cpu); /* 0xBFC3C9EC: 13000003 beq $t8, $zero, 0xBFC3C9FC */ uint32_t psx_brA_BFC3C9EC = cpu->gpr[24]; uint32_t psx_brB_BFC3C9EC = cpu->gpr[0]; - int psx_taken_BFC3C9EC = (psx_brA_BFC3C9EC == psx_brB_BFC3C9EC); + psx_taken_BFC3C9EC = (psx_brA_BFC3C9EC == psx_brB_BFC3C9EC); /* 0xBFC3C9F0: 25190001 addiu $t9, $t0, 1 */ cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[8] + (1)); if (psx_taken_BFC3C9EC) goto label_BFC3C9FC; @@ -192655,7 +197964,7 @@ label_BFC3C9FC: cpu->gpr[1] = 0x800E0000u; /* 0xBFC3CA0C: 1000012A beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CA0C = cpu->gpr[0]; uint32_t psx_brB_BFC3CA0C = cpu->gpr[0]; - int psx_taken_BFC3CA0C = (psx_brA_BFC3CA0C == psx_brB_BFC3CA0C); + psx_taken_BFC3CA0C = (psx_brA_BFC3CA0C == psx_brB_BFC3CA0C); /* 0xBFC3CA10: A425EE24 sh $a1, -4572($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4572)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CA10u); return; } g_debug_last_store_pc = 0xBFC3CA10u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[5] & 0xFFFFu)); } if (psx_taken_BFC3CA0C) goto label_BFC3CEB8; @@ -192670,7 +197979,7 @@ label_BFC3CA14: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (-4572)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CA18u); return; } cpu->gpr[5] = (uint32_t)cpu->read_half(psx_addr); } /* 0xBFC3CA1C: 10000126 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CA1C = cpu->gpr[0]; uint32_t psx_brB_BFC3CA1C = cpu->gpr[0]; - int psx_taken_BFC3CA1C = (psx_brA_BFC3CA1C == psx_brB_BFC3CA1C); + psx_taken_BFC3CA1C = (psx_brA_BFC3CA1C == psx_brB_BFC3CA1C); /* 0xBFC3CA20: A4C50000 sh $a1, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CA20u); return; } g_debug_last_store_pc = 0xBFC3CA20u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[5] & 0xFFFFu)); } if (psx_taken_BFC3CA1C) goto label_BFC3CEB8; @@ -192689,7 +197998,7 @@ label_BFC3CA24: cpu->gpr[10] = cpu->gpr[5] << (cpu->gpr[9] & 0x1Fu); /* 0xBFC3CA34: 10000120 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CA34 = cpu->gpr[0]; uint32_t psx_brB_BFC3CA34 = cpu->gpr[0]; - int psx_taken_BFC3CA34 = (psx_brA_BFC3CA34 == psx_brB_BFC3CA34); + psx_taken_BFC3CA34 = (psx_brA_BFC3CA34 == psx_brB_BFC3CA34); /* 0xBFC3CA38: ACCA0000 sw $t2, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CA38u); return; } g_debug_last_store_pc = 0xBFC3CA38u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC3CA34) goto label_BFC3CEB8; @@ -192704,7 +198013,7 @@ label_BFC3CA3C: cpu->gpr[1] = 0x800E0000u; /* 0xBFC3CA44: 1000011C beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CA44 = cpu->gpr[0]; uint32_t psx_brB_BFC3CA44 = cpu->gpr[0]; - int psx_taken_BFC3CA44 = (psx_brA_BFC3CA44 == psx_brB_BFC3CA44); + psx_taken_BFC3CA44 = (psx_brA_BFC3CA44 == psx_brB_BFC3CA44); /* 0xBFC3CA48: AC2BEE28 sw $t3, -4568($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4568)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CA48u); return; } g_debug_last_store_pc = 0xBFC3CA48u; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC3CA44) goto label_BFC3CEB8; @@ -192719,7 +198028,7 @@ label_BFC3CA4C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[12] + (-4568)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CA50u); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } /* 0xBFC3CA54: 10000118 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CA54 = cpu->gpr[0]; uint32_t psx_brB_BFC3CA54 = cpu->gpr[0]; - int psx_taken_BFC3CA54 = (psx_brA_BFC3CA54 == psx_brB_BFC3CA54); + psx_taken_BFC3CA54 = (psx_brA_BFC3CA54 == psx_brB_BFC3CA54); /* 0xBFC3CA58: ACCC0000 sw $t4, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CA58u); return; } g_debug_last_store_pc = 0xBFC3CA58u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC3CA54) goto label_BFC3CEB8; @@ -192748,7 +198057,7 @@ label_BFC3CA74: psx_check_interrupts(cpu); /* 0xBFC3CA74: 10000111 beq $zero, $zero, 0xBFC3CEBC */ uint32_t psx_brA_BFC3CA74 = cpu->gpr[0]; uint32_t psx_brB_BFC3CA74 = cpu->gpr[0]; - int psx_taken_BFC3CA74 = (psx_brA_BFC3CA74 == psx_brB_BFC3CA74); + psx_taken_BFC3CA74 = (psx_brA_BFC3CA74 == psx_brB_BFC3CA74); /* 0xBFC3CA78: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CA78u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3CA74) goto label_BFC3CEBC; @@ -192769,7 +198078,7 @@ label_BFC3CA7C: cpu->gpr[2] = cpu->gpr[2] & 0xFFFFu; /* 0xBFC3CA90: 1043010A beq $v0, $v1, 0xBFC3CEBC */ uint32_t psx_brA_BFC3CA90 = cpu->gpr[2]; uint32_t psx_brB_BFC3CA90 = cpu->gpr[3]; - int psx_taken_BFC3CA90 = (psx_brA_BFC3CA90 == psx_brB_BFC3CA90); + psx_taken_BFC3CA90 = (psx_brA_BFC3CA90 == psx_brB_BFC3CA90); /* 0xBFC3CA94: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CA94u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3CA90) goto label_BFC3CEBC; @@ -192790,7 +198099,7 @@ label_BFC3CA98: cpu->gpr[14] = cpu->gpr[13] | cpu->gpr[2]; /* 0xBFC3CAAC: 10000102 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CAAC = cpu->gpr[0]; uint32_t psx_brB_BFC3CAAC = cpu->gpr[0]; - int psx_taken_BFC3CAAC = (psx_brA_BFC3CAAC == psx_brB_BFC3CAAC); + psx_taken_BFC3CAAC = (psx_brA_BFC3CAAC == psx_brB_BFC3CAAC); /* 0xBFC3CAB0: A48E01AC sh $t6, 428($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (428)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CAB0u); return; } g_debug_last_store_pc = 0xBFC3CAB0u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[14] & 0xFFFFu)); } if (psx_taken_BFC3CAAC) goto label_BFC3CEB8; @@ -192809,7 +198118,7 @@ label_BFC3CAB4: cpu->gpr[25] = cpu->gpr[24] >> 1u; /* 0xBFC3CAC4: 100000FC beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CAC4 = cpu->gpr[0]; uint32_t psx_brB_BFC3CAC4 = cpu->gpr[0]; - int psx_taken_BFC3CAC4 = (psx_brA_BFC3CAC4 == psx_brB_BFC3CAC4); + psx_taken_BFC3CAC4 = (psx_brA_BFC3CAC4 == psx_brB_BFC3CAC4); /* 0xBFC3CAC8: A4D90000 sh $t9, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CAC8u); return; } g_debug_last_store_pc = 0xBFC3CAC8u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[25] & 0xFFFFu)); } if (psx_taken_BFC3CAC4) goto label_BFC3CEB8; @@ -192836,7 +198145,7 @@ label_BFC3CACC: cpu->gpr[2] = cpu->gpr[2] & 0xFFFFu; /* 0xBFC3CAEC: 100000F2 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CAEC = cpu->gpr[0]; uint32_t psx_brB_BFC3CAEC = cpu->gpr[0]; - int psx_taken_BFC3CAEC = (psx_brA_BFC3CAEC == psx_brB_BFC3CAEC); + psx_taken_BFC3CAEC = (psx_brA_BFC3CAEC == psx_brB_BFC3CAEC); /* 0xBFC3CAF0: A48201AA sh $v0, 426($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (426)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CAF0u); return; } g_debug_last_store_pc = 0xBFC3CAF0u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[2] & 0xFFFFu)); } if (psx_taken_BFC3CAEC) goto label_BFC3CEB8; @@ -192853,7 +198162,7 @@ label_BFC3CAF4: cpu->gpr[12] = cpu->gpr[2] & 0x80u; /* 0xBFC3CB00: 11800004 beq $t4, $zero, 0xBFC3CB14 */ uint32_t psx_brA_BFC3CB00 = cpu->gpr[12]; uint32_t psx_brB_BFC3CB00 = cpu->gpr[0]; - int psx_taken_BFC3CB00 = (psx_brA_BFC3CB00 == psx_brB_BFC3CB00); + psx_taken_BFC3CB00 = (psx_brA_BFC3CB00 == psx_brB_BFC3CB00); /* 0xBFC3CB04: 00000000 nop */ /* nop */ if (psx_taken_BFC3CB00) goto label_BFC3CB14; @@ -192866,7 +198175,7 @@ label_BFC3CB08: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC3CB0C: 100000EA beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CB0C = cpu->gpr[0]; uint32_t psx_brB_BFC3CB0C = cpu->gpr[0]; - int psx_taken_BFC3CB0C = (psx_brA_BFC3CB0C == psx_brB_BFC3CB0C); + psx_taken_BFC3CB0C = (psx_brA_BFC3CB0C == psx_brB_BFC3CB0C); /* 0xBFC3CB10: ACCD0000 sw $t5, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CB10u); return; } g_debug_last_store_pc = 0xBFC3CB10u; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC3CB0C) goto label_BFC3CEB8; @@ -192877,7 +198186,7 @@ label_BFC3CB14: psx_check_interrupts(cpu); /* 0xBFC3CB14: 100000E8 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CB14 = cpu->gpr[0]; uint32_t psx_brB_BFC3CB14 = cpu->gpr[0]; - int psx_taken_BFC3CB14 = (psx_brA_BFC3CB14 == psx_brB_BFC3CB14); + psx_taken_BFC3CB14 = (psx_brA_BFC3CB14 == psx_brB_BFC3CB14); /* 0xBFC3CB18: ACC00000 sw $zero, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CB18u); return; } g_debug_last_store_pc = 0xBFC3CB18u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC3CB14) goto label_BFC3CEB8; @@ -192894,7 +198203,7 @@ label_BFC3CB1C: cpu->gpr[15] = cpu->gpr[14] & 0xFFFFu; /* 0xBFC3CB28: 100000E3 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CB28 = cpu->gpr[0]; uint32_t psx_brB_BFC3CB28 = cpu->gpr[0]; - int psx_taken_BFC3CB28 = (psx_brA_BFC3CB28 == psx_brB_BFC3CB28); + psx_taken_BFC3CB28 = (psx_brA_BFC3CB28 == psx_brB_BFC3CB28); /* 0xBFC3CB2C: A48F01A2 sh $t7, 418($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (418)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CB2Cu); return; } g_debug_last_store_pc = 0xBFC3CB2Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[15] & 0xFFFFu)); } if (psx_taken_BFC3CB28) goto label_BFC3CEB8; @@ -192907,7 +198216,7 @@ label_BFC3CB30: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CB30u); return; } cpu->gpr[3] = cpu->read_word(psx_addr); } /* 0xBFC3CB34: 11000010 beq $t0, $zero, 0xBFC3CB78 */ uint32_t psx_brA_BFC3CB34 = cpu->gpr[8]; uint32_t psx_brB_BFC3CB34 = cpu->gpr[0]; - int psx_taken_BFC3CB34 = (psx_brA_BFC3CB34 == psx_brB_BFC3CB34); + psx_taken_BFC3CB34 = (psx_brA_BFC3CB34 == psx_brB_BFC3CB34); /* 0xBFC3CB38: 25190001 addiu $t9, $t0, 1 */ cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[8] + (1)); if (psx_taken_BFC3CB34) goto label_BFC3CB78; @@ -192922,7 +198231,7 @@ label_BFC3CB3C: cpu->gpr[24] = cpu->hi; /* 0xBFC3CB44: 15000002 bne $t0, $zero, 0xBFC3CB50 */ uint32_t psx_brA_BFC3CB44 = cpu->gpr[8]; uint32_t psx_brB_BFC3CB44 = cpu->gpr[0]; - int psx_taken_BFC3CB44 = (psx_brA_BFC3CB44 != psx_brB_BFC3CB44); + psx_taken_BFC3CB44 = (psx_brA_BFC3CB44 != psx_brB_BFC3CB44); /* 0xBFC3CB48: 00000000 nop */ /* nop */ if (psx_taken_BFC3CB44) goto label_BFC3CB50; @@ -192942,7 +198251,7 @@ label_BFC3CB50: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC3CB54: 15010004 bne $t0, $at, 0xBFC3CB68 */ uint32_t psx_brA_BFC3CB54 = cpu->gpr[8]; uint32_t psx_brB_BFC3CB54 = cpu->gpr[1]; - int psx_taken_BFC3CB54 = (psx_brA_BFC3CB54 != psx_brB_BFC3CB54); + psx_taken_BFC3CB54 = (psx_brA_BFC3CB54 != psx_brB_BFC3CB54); /* 0xBFC3CB58: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC3CB54) goto label_BFC3CB68; @@ -192953,7 +198262,7 @@ label_BFC3CB5C: psx_check_interrupts(cpu); /* 0xBFC3CB5C: 14610002 bne $v1, $at, 0xBFC3CB68 */ uint32_t psx_brA_BFC3CB5C = cpu->gpr[3]; uint32_t psx_brB_BFC3CB5C = cpu->gpr[1]; - int psx_taken_BFC3CB5C = (psx_brA_BFC3CB5C != psx_brB_BFC3CB5C); + psx_taken_BFC3CB5C = (psx_brA_BFC3CB5C != psx_brB_BFC3CB5C); /* 0xBFC3CB60: 00000000 nop */ /* nop */ if (psx_taken_BFC3CB5C) goto label_BFC3CB68; @@ -192971,7 +198280,7 @@ label_BFC3CB68: psx_check_interrupts(cpu); /* 0xBFC3CB68: 13000003 beq $t8, $zero, 0xBFC3CB78 */ uint32_t psx_brA_BFC3CB68 = cpu->gpr[24]; uint32_t psx_brB_BFC3CB68 = cpu->gpr[0]; - int psx_taken_BFC3CB68 = (psx_brA_BFC3CB68 == psx_brB_BFC3CB68); + psx_taken_BFC3CB68 = (psx_brA_BFC3CB68 == psx_brB_BFC3CB68); /* 0xBFC3CB6C: 25190001 addiu $t9, $t0, 1 */ cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[8] + (1)); if (psx_taken_BFC3CB68) goto label_BFC3CB78; @@ -192995,7 +198304,7 @@ label_BFC3CB78: cpu->gpr[10] = cpu->gpr[9] & 0xFFFFu; /* 0xBFC3CB80: 100000CD beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CB80 = cpu->gpr[0]; uint32_t psx_brB_BFC3CB80 = cpu->gpr[0]; - int psx_taken_BFC3CB80 = (psx_brA_BFC3CB80 == psx_brB_BFC3CB80); + psx_taken_BFC3CB80 = (psx_brA_BFC3CB80 == psx_brB_BFC3CB80); /* 0xBFC3CB84: A48A01A2 sh $t2, 418($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (418)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CB84u); return; } g_debug_last_store_pc = 0xBFC3CB84u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[10] & 0xFFFFu)); } if (psx_taken_BFC3CB80) goto label_BFC3CEB8; @@ -193012,7 +198321,7 @@ label_BFC3CB88: cpu->gpr[12] = cpu->gpr[11] & 0xFFFFu; /* 0xBFC3CB94: 100000C8 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CB94 = cpu->gpr[0]; uint32_t psx_brB_BFC3CB94 = cpu->gpr[0]; - int psx_taken_BFC3CB94 = (psx_brA_BFC3CB94 == psx_brB_BFC3CB94); + psx_taken_BFC3CB94 = (psx_brA_BFC3CB94 == psx_brB_BFC3CB94); /* 0xBFC3CB98: A4CC0000 sh $t4, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CB98u); return; } g_debug_last_store_pc = 0xBFC3CB98u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[12] & 0xFFFFu)); } if (psx_taken_BFC3CB94) goto label_BFC3CEB8; @@ -193033,7 +198342,7 @@ label_BFC3CB9C: cpu->gpr[14] = cpu->gpr[2] << (cpu->gpr[13] & 0x1Fu); /* 0xBFC3CBB0: 100000C1 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CBB0 = cpu->gpr[0]; uint32_t psx_brB_BFC3CBB0 = cpu->gpr[0]; - int psx_taken_BFC3CBB0 = (psx_brA_BFC3CBB0 == psx_brB_BFC3CBB0); + psx_taken_BFC3CBB0 = (psx_brA_BFC3CBB0 == psx_brB_BFC3CBB0); /* 0xBFC3CBB4: ACCE0000 sw $t6, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CBB4u); return; } g_debug_last_store_pc = 0xBFC3CBB4u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC3CBB0) goto label_BFC3CEB8; @@ -193054,7 +198363,7 @@ label_BFC3CBC0: psx_check_interrupts(cpu); /* 0xBFC3CBC0: 100000BE beq $zero, $zero, 0xBFC3CEBC */ uint32_t psx_brA_BFC3CBC0 = cpu->gpr[0]; uint32_t psx_brB_BFC3CBC0 = cpu->gpr[0]; - int psx_taken_BFC3CBC0 = (psx_brA_BFC3CBC0 == psx_brB_BFC3CBC0); + psx_taken_BFC3CBC0 = (psx_brA_BFC3CBC0 == psx_brB_BFC3CBC0); /* 0xBFC3CBC4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CBC4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3CBC0) goto label_BFC3CEBC; @@ -193093,7 +198402,7 @@ label_BFC3CBC8: cpu->gpr[2] = cpu->gpr[2] & 0xFFFFu; /* 0xBFC3CC00: 100000AD beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CC00 = cpu->gpr[0]; uint32_t psx_brB_BFC3CC00 = cpu->gpr[0]; - int psx_taken_BFC3CC00 = (psx_brA_BFC3CC00 == psx_brB_BFC3CC00); + psx_taken_BFC3CC00 = (psx_brA_BFC3CC00 == psx_brB_BFC3CC00); /* 0xBFC3CC04: A482019A sh $v0, 410($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (410)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CC04u); return; } g_debug_last_store_pc = 0xBFC3CC04u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[2] & 0xFFFFu)); } if (psx_taken_BFC3CC00) goto label_BFC3CEB8; @@ -193116,7 +198425,7 @@ label_BFC3CC08: cpu->gpr[9] = cpu->gpr[15] | cpu->gpr[25]; /* 0xBFC3CC20: 100000A5 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CC20 = cpu->gpr[0]; uint32_t psx_brB_BFC3CC20 = cpu->gpr[0]; - int psx_taken_BFC3CC20 = (psx_brA_BFC3CC20 == psx_brB_BFC3CC20); + psx_taken_BFC3CC20 = (psx_brA_BFC3CC20 == psx_brB_BFC3CC20); /* 0xBFC3CC24: ACC90000 sw $t1, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CC24u); return; } g_debug_last_store_pc = 0xBFC3CC24u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC3CC20) goto label_BFC3CEB8; @@ -193159,7 +198468,7 @@ label_BFC3CC28: cpu->gpr[2] = cpu->gpr[2] & 0xFFFFu; /* 0xBFC3CC68: 10000093 beq $zero, $zero, 0xBFC3CEB8 */ uint32_t psx_brA_BFC3CC68 = cpu->gpr[0]; uint32_t psx_brB_BFC3CC68 = cpu->gpr[0]; - int psx_taken_BFC3CC68 = (psx_brA_BFC3CC68 == psx_brB_BFC3CC68); + psx_taken_BFC3CC68 = (psx_brA_BFC3CC68 == psx_brB_BFC3CC68); /* 0xBFC3CC6C: A482019A sh $v0, 410($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (410)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CC6Cu); return; } g_debug_last_store_pc = 0xBFC3CC6Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[2] & 0xFFFFu)); } if (psx_taken_BFC3CC68) goto label_BFC3CEB8; @@ -193180,7 +198489,7 @@ label_BFC3CC78: psx_check_interrupts(cpu); /* 0xBFC3CC78: 10000090 beq $zero, $zero, 0xBFC3CEBC */ uint32_t psx_brA_BFC3CC78 = cpu->gpr[0]; uint32_t psx_brB_BFC3CC78 = cpu->gpr[0]; - int psx_taken_BFC3CC78 = (psx_brA_BFC3CC78 == psx_brB_BFC3CC78); + psx_taken_BFC3CC78 = (psx_brA_BFC3CC78 == psx_brB_BFC3CC78); /* 0xBFC3CC7C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CC7Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3CC78) goto label_BFC3CEBC; @@ -193201,7 +198510,7 @@ label_BFC3CC88: psx_check_interrupts(cpu); /* 0xBFC3CC88: 1000008C beq $zero, $zero, 0xBFC3CEBC */ uint32_t psx_brA_BFC3CC88 = cpu->gpr[0]; uint32_t psx_brB_BFC3CC88 = cpu->gpr[0]; - int psx_taken_BFC3CC88 = (psx_brA_BFC3CC88 == psx_brB_BFC3CC88); + psx_taken_BFC3CC88 = (psx_brA_BFC3CC88 == psx_brB_BFC3CC88); /* 0xBFC3CC8C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CC8Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3CC88) goto label_BFC3CEBC; @@ -193214,7 +198523,7 @@ label_BFC3CC90: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (45)); /* 0xBFC3CC94: 10A1FF63 beq $a1, $at, 0xBFC3CA24 */ uint32_t psx_brA_BFC3CC94 = cpu->gpr[5]; uint32_t psx_brB_BFC3CC94 = cpu->gpr[1]; - int psx_taken_BFC3CC94 = (psx_brA_BFC3CC94 == psx_brB_BFC3CC94); + psx_taken_BFC3CC94 = (psx_brA_BFC3CC94 == psx_brB_BFC3CC94); /* 0xBFC3CC98: 2CA1002E sltiu $at, $a1, 46 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x0000002Eu ? 1 : 0); if (psx_taken_BFC3CC94) goto label_BFC3CA24; @@ -193225,7 +198534,7 @@ label_BFC3CC9C: psx_check_interrupts(cpu); /* 0xBFC3CC9C: 10200047 beq $at, $zero, 0xBFC3CDBC */ uint32_t psx_brA_BFC3CC9C = cpu->gpr[1]; uint32_t psx_brB_BFC3CC9C = cpu->gpr[0]; - int psx_taken_BFC3CC9C = (psx_brA_BFC3CC9C == psx_brB_BFC3CC9C); + psx_taken_BFC3CC9C = (psx_brA_BFC3CC9C == psx_brB_BFC3CC9C); /* 0xBFC3CCA0: 24010022 addiu $at, $zero, 34 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (34)); if (psx_taken_BFC3CC9C) goto label_BFC3CDBC; @@ -193236,7 +198545,7 @@ label_BFC3CCA4: psx_check_interrupts(cpu); /* 0xBFC3CCA4: 10A1FF6D beq $a1, $at, 0xBFC3CA5C */ uint32_t psx_brA_BFC3CCA4 = cpu->gpr[5]; uint32_t psx_brB_BFC3CCA4 = cpu->gpr[1]; - int psx_taken_BFC3CCA4 = (psx_brA_BFC3CCA4 == psx_brB_BFC3CCA4); + psx_taken_BFC3CCA4 = (psx_brA_BFC3CCA4 == psx_brB_BFC3CCA4); /* 0xBFC3CCA8: 2CA10023 sltiu $at, $a1, 35 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000023u ? 1 : 0); if (psx_taken_BFC3CCA4) goto label_BFC3CA5C; @@ -193247,7 +198556,7 @@ label_BFC3CCAC: psx_check_interrupts(cpu); /* 0xBFC3CCAC: 10200023 beq $at, $zero, 0xBFC3CD3C */ uint32_t psx_brA_BFC3CCAC = cpu->gpr[1]; uint32_t psx_brB_BFC3CCAC = cpu->gpr[0]; - int psx_taken_BFC3CCAC = (psx_brA_BFC3CCAC == psx_brB_BFC3CCAC); + psx_taken_BFC3CCAC = (psx_brA_BFC3CCAC == psx_brB_BFC3CCAC); /* 0xBFC3CCB0: 24010010 addiu $at, $zero, 16 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); if (psx_taken_BFC3CCAC) goto label_BFC3CD3C; @@ -193258,7 +198567,7 @@ label_BFC3CCB4: psx_check_interrupts(cpu); /* 0xBFC3CCB4: 10A1FEBC beq $a1, $at, 0xBFC3C7A8 */ uint32_t psx_brA_BFC3CCB4 = cpu->gpr[5]; uint32_t psx_brB_BFC3CCB4 = cpu->gpr[1]; - int psx_taken_BFC3CCB4 = (psx_brA_BFC3CCB4 == psx_brB_BFC3CCB4); + psx_taken_BFC3CCB4 = (psx_brA_BFC3CCB4 == psx_brB_BFC3CCB4); /* 0xBFC3CCB8: 2CA10011 sltiu $at, $a1, 17 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000011u ? 1 : 0); if (psx_taken_BFC3CCB4) goto label_BFC3C7A8; @@ -193269,7 +198578,7 @@ label_BFC3CCBC: psx_check_interrupts(cpu); /* 0xBFC3CCBC: 10200011 beq $at, $zero, 0xBFC3CD04 */ uint32_t psx_brA_BFC3CCBC = cpu->gpr[1]; uint32_t psx_brB_BFC3CCBC = cpu->gpr[0]; - int psx_taken_BFC3CCBC = (psx_brA_BFC3CCBC == psx_brB_BFC3CCBC); + psx_taken_BFC3CCBC = (psx_brA_BFC3CCBC == psx_brB_BFC3CCBC); /* 0xBFC3CCC0: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3CCBC) goto label_BFC3CD04; @@ -193280,7 +198589,7 @@ label_BFC3CCC4: psx_check_interrupts(cpu); /* 0xBFC3CCC4: 10A1FEA2 beq $a1, $at, 0xBFC3C750 */ uint32_t psx_brA_BFC3CCC4 = cpu->gpr[5]; uint32_t psx_brB_BFC3CCC4 = cpu->gpr[1]; - int psx_taken_BFC3CCC4 = (psx_brA_BFC3CCC4 == psx_brB_BFC3CCC4); + psx_taken_BFC3CCC4 = (psx_brA_BFC3CCC4 == psx_brB_BFC3CCC4); /* 0xBFC3CCC8: 2CA10002 sltiu $at, $a1, 2 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000002u ? 1 : 0); if (psx_taken_BFC3CCC4) goto label_BFC3C750; @@ -193291,7 +198600,7 @@ label_BFC3CCCC: psx_check_interrupts(cpu); /* 0xBFC3CCCC: 10200006 beq $at, $zero, 0xBFC3CCE8 */ uint32_t psx_brA_BFC3CCCC = cpu->gpr[1]; uint32_t psx_brB_BFC3CCCC = cpu->gpr[0]; - int psx_taken_BFC3CCCC = (psx_brA_BFC3CCCC == psx_brB_BFC3CCCC); + psx_taken_BFC3CCCC = (psx_brA_BFC3CCCC == psx_brB_BFC3CCCC); /* 0xBFC3CCD0: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC3CCCC) goto label_BFC3CCE8; @@ -193302,7 +198611,7 @@ label_BFC3CCD4: psx_check_interrupts(cpu); /* 0xBFC3CCD4: 10A0FE9A beq $a1, $zero, 0xBFC3C740 */ uint32_t psx_brA_BFC3CCD4 = cpu->gpr[5]; uint32_t psx_brB_BFC3CCD4 = cpu->gpr[0]; - int psx_taken_BFC3CCD4 = (psx_brA_BFC3CCD4 == psx_brB_BFC3CCD4); + psx_taken_BFC3CCD4 = (psx_brA_BFC3CCD4 == psx_brB_BFC3CCD4); /* 0xBFC3CCD8: 00000000 nop */ /* nop */ if (psx_taken_BFC3CCD4) goto label_BFC3C740; @@ -193313,7 +198622,7 @@ label_BFC3CCDC: psx_check_interrupts(cpu); /* 0xBFC3CCDC: 10000004 beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CCDC = cpu->gpr[0]; uint32_t psx_brB_BFC3CCDC = cpu->gpr[0]; - int psx_taken_BFC3CCDC = (psx_brA_BFC3CCDC == psx_brB_BFC3CCDC); + psx_taken_BFC3CCDC = (psx_brA_BFC3CCDC == psx_brB_BFC3CCDC); /* 0xBFC3CCE0: 00000000 nop */ /* nop */ if (psx_taken_BFC3CCDC) goto label_BFC3CCF0; @@ -193331,7 +198640,7 @@ label_BFC3CCE8: psx_check_interrupts(cpu); /* 0xBFC3CCE8: 10A1FEA5 beq $a1, $at, 0xBFC3C780 */ uint32_t psx_brA_BFC3CCE8 = cpu->gpr[5]; uint32_t psx_brB_BFC3CCE8 = cpu->gpr[1]; - int psx_taken_BFC3CCE8 = (psx_brA_BFC3CCE8 == psx_brB_BFC3CCE8); + psx_taken_BFC3CCE8 = (psx_brA_BFC3CCE8 == psx_brB_BFC3CCE8); /* 0xBFC3CCEC: 00000000 nop */ /* nop */ if (psx_taken_BFC3CCE8) goto label_BFC3C780; @@ -193354,7 +198663,7 @@ label_BFC3CCFC: psx_check_interrupts(cpu); /* 0xBFC3CCFC: 1000006F beq $zero, $zero, 0xBFC3CEBC */ uint32_t psx_brA_BFC3CCFC = cpu->gpr[0]; uint32_t psx_brB_BFC3CCFC = cpu->gpr[0]; - int psx_taken_BFC3CCFC = (psx_brA_BFC3CCFC == psx_brB_BFC3CCFC); + psx_taken_BFC3CCFC = (psx_brA_BFC3CCFC == psx_brB_BFC3CCFC); /* 0xBFC3CD00: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CD00u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3CCFC) goto label_BFC3CEBC; @@ -193367,7 +198676,7 @@ label_BFC3CD04: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (32)); /* 0xBFC3CD08: 10A1FEBF beq $a1, $at, 0xBFC3C808 */ uint32_t psx_brA_BFC3CD08 = cpu->gpr[5]; uint32_t psx_brB_BFC3CD08 = cpu->gpr[1]; - int psx_taken_BFC3CD08 = (psx_brA_BFC3CD08 == psx_brB_BFC3CD08); + psx_taken_BFC3CD08 = (psx_brA_BFC3CD08 == psx_brB_BFC3CD08); /* 0xBFC3CD0C: 2CA10021 sltiu $at, $a1, 33 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000021u ? 1 : 0); if (psx_taken_BFC3CD08) goto label_BFC3C808; @@ -193378,7 +198687,7 @@ label_BFC3CD10: psx_check_interrupts(cpu); /* 0xBFC3CD10: 10200005 beq $at, $zero, 0xBFC3CD28 */ uint32_t psx_brA_BFC3CD10 = cpu->gpr[1]; uint32_t psx_brB_BFC3CD10 = cpu->gpr[0]; - int psx_taken_BFC3CD10 = (psx_brA_BFC3CD10 == psx_brB_BFC3CD10); + psx_taken_BFC3CD10 = (psx_brA_BFC3CD10 == psx_brB_BFC3CD10); /* 0xBFC3CD14: 24010016 addiu $at, $zero, 22 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (22)); if (psx_taken_BFC3CD10) goto label_BFC3CD28; @@ -193389,7 +198698,7 @@ label_BFC3CD18: psx_check_interrupts(cpu); /* 0xBFC3CD18: 10A1FEB1 beq $a1, $at, 0xBFC3C7E0 */ uint32_t psx_brA_BFC3CD18 = cpu->gpr[5]; uint32_t psx_brB_BFC3CD18 = cpu->gpr[1]; - int psx_taken_BFC3CD18 = (psx_brA_BFC3CD18 == psx_brB_BFC3CD18); + psx_taken_BFC3CD18 = (psx_brA_BFC3CD18 == psx_brB_BFC3CD18); /* 0xBFC3CD1C: 00000000 nop */ /* nop */ if (psx_taken_BFC3CD18) goto label_BFC3C7E0; @@ -193400,7 +198709,7 @@ label_BFC3CD20: psx_check_interrupts(cpu); /* 0xBFC3CD20: 1000FFF3 beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CD20 = cpu->gpr[0]; uint32_t psx_brB_BFC3CD20 = cpu->gpr[0]; - int psx_taken_BFC3CD20 = (psx_brA_BFC3CD20 == psx_brB_BFC3CD20); + psx_taken_BFC3CD20 = (psx_brA_BFC3CD20 == psx_brB_BFC3CD20); /* 0xBFC3CD24: 00000000 nop */ /* nop */ if (psx_taken_BFC3CD20) goto label_BFC3CCF0; @@ -193413,7 +198722,7 @@ label_BFC3CD28: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (33)); /* 0xBFC3CD2C: 10A1FF43 beq $a1, $at, 0xBFC3CA3C */ uint32_t psx_brA_BFC3CD2C = cpu->gpr[5]; uint32_t psx_brB_BFC3CD2C = cpu->gpr[1]; - int psx_taken_BFC3CD2C = (psx_brA_BFC3CD2C == psx_brB_BFC3CD2C); + psx_taken_BFC3CD2C = (psx_brA_BFC3CD2C == psx_brB_BFC3CD2C); /* 0xBFC3CD30: 00000000 nop */ /* nop */ if (psx_taken_BFC3CD2C) goto label_BFC3CA3C; @@ -193424,7 +198733,7 @@ label_BFC3CD34: psx_check_interrupts(cpu); /* 0xBFC3CD34: 1000FFEE beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CD34 = cpu->gpr[0]; uint32_t psx_brB_BFC3CD34 = cpu->gpr[0]; - int psx_taken_BFC3CD34 = (psx_brA_BFC3CD34 == psx_brB_BFC3CD34); + psx_taken_BFC3CD34 = (psx_brA_BFC3CD34 == psx_brB_BFC3CD34); /* 0xBFC3CD38: 00000000 nop */ /* nop */ if (psx_taken_BFC3CD34) goto label_BFC3CCF0; @@ -193437,7 +198746,7 @@ label_BFC3CD3C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (41)); /* 0xBFC3CD40: 10A1FEB1 beq $a1, $at, 0xBFC3C808 */ uint32_t psx_brA_BFC3CD40 = cpu->gpr[5]; uint32_t psx_brB_BFC3CD40 = cpu->gpr[1]; - int psx_taken_BFC3CD40 = (psx_brA_BFC3CD40 == psx_brB_BFC3CD40); + psx_taken_BFC3CD40 = (psx_brA_BFC3CD40 == psx_brB_BFC3CD40); /* 0xBFC3CD44: 2CA1002A sltiu $at, $a1, 42 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x0000002Au ? 1 : 0); if (psx_taken_BFC3CD40) goto label_BFC3C808; @@ -193448,7 +198757,7 @@ label_BFC3CD48: psx_check_interrupts(cpu); /* 0xBFC3CD48: 1020000E beq $at, $zero, 0xBFC3CD84 */ uint32_t psx_brA_BFC3CD48 = cpu->gpr[1]; uint32_t psx_brB_BFC3CD48 = cpu->gpr[0]; - int psx_taken_BFC3CD48 = (psx_brA_BFC3CD48 == psx_brB_BFC3CD48); + psx_taken_BFC3CD48 = (psx_brA_BFC3CD48 == psx_brB_BFC3CD48); /* 0xBFC3CD4C: 24010025 addiu $at, $zero, 37 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (37)); if (psx_taken_BFC3CD48) goto label_BFC3CD84; @@ -193459,7 +198768,7 @@ label_BFC3CD50: psx_check_interrupts(cpu); /* 0xBFC3CD50: 10A1FF58 beq $a1, $at, 0xBFC3CAB4 */ uint32_t psx_brA_BFC3CD50 = cpu->gpr[5]; uint32_t psx_brB_BFC3CD50 = cpu->gpr[1]; - int psx_taken_BFC3CD50 = (psx_brA_BFC3CD50 == psx_brB_BFC3CD50); + psx_taken_BFC3CD50 = (psx_brA_BFC3CD50 == psx_brB_BFC3CD50); /* 0xBFC3CD54: 2CA10026 sltiu $at, $a1, 38 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000026u ? 1 : 0); if (psx_taken_BFC3CD50) goto label_BFC3CAB4; @@ -193470,7 +198779,7 @@ label_BFC3CD58: psx_check_interrupts(cpu); /* 0xBFC3CD58: 10200005 beq $at, $zero, 0xBFC3CD70 */ uint32_t psx_brA_BFC3CD58 = cpu->gpr[1]; uint32_t psx_brB_BFC3CD58 = cpu->gpr[0]; - int psx_taken_BFC3CD58 = (psx_brA_BFC3CD58 == psx_brB_BFC3CD58); + psx_taken_BFC3CD58 = (psx_brA_BFC3CD58 == psx_brB_BFC3CD58); /* 0xBFC3CD5C: 24010024 addiu $at, $zero, 36 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (36)); if (psx_taken_BFC3CD58) goto label_BFC3CD70; @@ -193481,7 +198790,7 @@ label_BFC3CD60: psx_check_interrupts(cpu); /* 0xBFC3CD60: 10A1FF46 beq $a1, $at, 0xBFC3CA7C */ uint32_t psx_brA_BFC3CD60 = cpu->gpr[5]; uint32_t psx_brB_BFC3CD60 = cpu->gpr[1]; - int psx_taken_BFC3CD60 = (psx_brA_BFC3CD60 == psx_brB_BFC3CD60); + psx_taken_BFC3CD60 = (psx_brA_BFC3CD60 == psx_brB_BFC3CD60); /* 0xBFC3CD64: 00000000 nop */ /* nop */ if (psx_taken_BFC3CD60) goto label_BFC3CA7C; @@ -193492,7 +198801,7 @@ label_BFC3CD68: psx_check_interrupts(cpu); /* 0xBFC3CD68: 1000FFE1 beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CD68 = cpu->gpr[0]; uint32_t psx_brB_BFC3CD68 = cpu->gpr[0]; - int psx_taken_BFC3CD68 = (psx_brA_BFC3CD68 == psx_brB_BFC3CD68); + psx_taken_BFC3CD68 = (psx_brA_BFC3CD68 == psx_brB_BFC3CD68); /* 0xBFC3CD6C: 00000000 nop */ /* nop */ if (psx_taken_BFC3CD68) goto label_BFC3CCF0; @@ -193505,7 +198814,7 @@ label_BFC3CD70: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (40)); /* 0xBFC3CD74: 10A1FECE beq $a1, $at, 0xBFC3C8B0 */ uint32_t psx_brA_BFC3CD74 = cpu->gpr[5]; uint32_t psx_brB_BFC3CD74 = cpu->gpr[1]; - int psx_taken_BFC3CD74 = (psx_brA_BFC3CD74 == psx_brB_BFC3CD74); + psx_taken_BFC3CD74 = (psx_brA_BFC3CD74 == psx_brB_BFC3CD74); /* 0xBFC3CD78: 00000000 nop */ /* nop */ if (psx_taken_BFC3CD74) goto label_BFC3C8B0; @@ -193516,7 +198825,7 @@ label_BFC3CD7C: psx_check_interrupts(cpu); /* 0xBFC3CD7C: 1000FFDC beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CD7C = cpu->gpr[0]; uint32_t psx_brB_BFC3CD7C = cpu->gpr[0]; - int psx_taken_BFC3CD7C = (psx_brA_BFC3CD7C == psx_brB_BFC3CD7C); + psx_taken_BFC3CD7C = (psx_brA_BFC3CD7C == psx_brB_BFC3CD7C); /* 0xBFC3CD80: 00000000 nop */ /* nop */ if (psx_taken_BFC3CD7C) goto label_BFC3CCF0; @@ -193529,7 +198838,7 @@ label_BFC3CD84: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (43)); /* 0xBFC3CD88: 10A1FF0A beq $a1, $at, 0xBFC3C9B4 */ uint32_t psx_brA_BFC3CD88 = cpu->gpr[5]; uint32_t psx_brB_BFC3CD88 = cpu->gpr[1]; - int psx_taken_BFC3CD88 = (psx_brA_BFC3CD88 == psx_brB_BFC3CD88); + psx_taken_BFC3CD88 = (psx_brA_BFC3CD88 == psx_brB_BFC3CD88); /* 0xBFC3CD8C: 2CA1002C sltiu $at, $a1, 44 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x0000002Cu ? 1 : 0); if (psx_taken_BFC3CD88) goto label_BFC3C9B4; @@ -193540,7 +198849,7 @@ label_BFC3CD90: psx_check_interrupts(cpu); /* 0xBFC3CD90: 10200005 beq $at, $zero, 0xBFC3CDA8 */ uint32_t psx_brA_BFC3CD90 = cpu->gpr[1]; uint32_t psx_brB_BFC3CD90 = cpu->gpr[0]; - int psx_taken_BFC3CD90 = (psx_brA_BFC3CD90 == psx_brB_BFC3CD90); + psx_taken_BFC3CD90 = (psx_brA_BFC3CD90 == psx_brB_BFC3CD90); /* 0xBFC3CD94: 2401002A addiu $at, $zero, 42 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (42)); if (psx_taken_BFC3CD90) goto label_BFC3CDA8; @@ -193551,7 +198860,7 @@ label_BFC3CD98: psx_check_interrupts(cpu); /* 0xBFC3CD98: 10A1FEC5 beq $a1, $at, 0xBFC3C8B0 */ uint32_t psx_brA_BFC3CD98 = cpu->gpr[5]; uint32_t psx_brB_BFC3CD98 = cpu->gpr[1]; - int psx_taken_BFC3CD98 = (psx_brA_BFC3CD98 == psx_brB_BFC3CD98); + psx_taken_BFC3CD98 = (psx_brA_BFC3CD98 == psx_brB_BFC3CD98); /* 0xBFC3CD9C: 00000000 nop */ /* nop */ if (psx_taken_BFC3CD98) goto label_BFC3C8B0; @@ -193562,7 +198871,7 @@ label_BFC3CDA0: psx_check_interrupts(cpu); /* 0xBFC3CDA0: 1000FFD3 beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CDA0 = cpu->gpr[0]; uint32_t psx_brB_BFC3CDA0 = cpu->gpr[0]; - int psx_taken_BFC3CDA0 = (psx_brA_BFC3CDA0 == psx_brB_BFC3CDA0); + psx_taken_BFC3CDA0 = (psx_brA_BFC3CDA0 == psx_brB_BFC3CDA0); /* 0xBFC3CDA4: 00000000 nop */ /* nop */ if (psx_taken_BFC3CDA0) goto label_BFC3CCF0; @@ -193575,7 +198884,7 @@ label_BFC3CDA8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (44)); /* 0xBFC3CDAC: 10A1FF19 beq $a1, $at, 0xBFC3CA14 */ uint32_t psx_brA_BFC3CDAC = cpu->gpr[5]; uint32_t psx_brB_BFC3CDAC = cpu->gpr[1]; - int psx_taken_BFC3CDAC = (psx_brA_BFC3CDAC == psx_brB_BFC3CDAC); + psx_taken_BFC3CDAC = (psx_brA_BFC3CDAC == psx_brB_BFC3CDAC); /* 0xBFC3CDB0: 00000000 nop */ /* nop */ if (psx_taken_BFC3CDAC) goto label_BFC3CA14; @@ -193586,7 +198895,7 @@ label_BFC3CDB4: psx_check_interrupts(cpu); /* 0xBFC3CDB4: 1000FFCE beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CDB4 = cpu->gpr[0]; uint32_t psx_brB_BFC3CDB4 = cpu->gpr[0]; - int psx_taken_BFC3CDB4 = (psx_brA_BFC3CDB4 == psx_brB_BFC3CDB4); + psx_taken_BFC3CDB4 = (psx_brA_BFC3CDB4 == psx_brB_BFC3CDB4); /* 0xBFC3CDB8: 00000000 nop */ /* nop */ if (psx_taken_BFC3CDB4) goto label_BFC3CCF0; @@ -193599,7 +198908,7 @@ label_BFC3CDBC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (102)); /* 0xBFC3CDC0: 10A1FF91 beq $a1, $at, 0xBFC3CC08 */ uint32_t psx_brA_BFC3CDC0 = cpu->gpr[5]; uint32_t psx_brB_BFC3CDC0 = cpu->gpr[1]; - int psx_taken_BFC3CDC0 = (psx_brA_BFC3CDC0 == psx_brB_BFC3CDC0); + psx_taken_BFC3CDC0 = (psx_brA_BFC3CDC0 == psx_brB_BFC3CDC0); /* 0xBFC3CDC4: 2CA10067 sltiu $at, $a1, 103 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000067u ? 1 : 0); if (psx_taken_BFC3CDC0) goto label_BFC3CC08; @@ -193610,7 +198919,7 @@ label_BFC3CDC8: psx_check_interrupts(cpu); /* 0xBFC3CDC8: 10200020 beq $at, $zero, 0xBFC3CE4C */ uint32_t psx_brA_BFC3CDC8 = cpu->gpr[1]; uint32_t psx_brB_BFC3CDC8 = cpu->gpr[0]; - int psx_taken_BFC3CDC8 = (psx_brA_BFC3CDC8 == psx_brB_BFC3CDC8); + psx_taken_BFC3CDC8 = (psx_brA_BFC3CDC8 == psx_brB_BFC3CDC8); /* 0xBFC3CDCC: 24010061 addiu $at, $zero, 97 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (97)); if (psx_taken_BFC3CDC8) goto label_BFC3CE4C; @@ -193621,7 +198930,7 @@ label_BFC3CDD0: psx_check_interrupts(cpu); /* 0xBFC3CDD0: 10A1FF52 beq $a1, $at, 0xBFC3CB1C */ uint32_t psx_brA_BFC3CDD0 = cpu->gpr[5]; uint32_t psx_brB_BFC3CDD0 = cpu->gpr[1]; - int psx_taken_BFC3CDD0 = (psx_brA_BFC3CDD0 == psx_brB_BFC3CDD0); + psx_taken_BFC3CDD0 = (psx_brA_BFC3CDD0 == psx_brB_BFC3CDD0); /* 0xBFC3CDD4: 2CA10062 sltiu $at, $a1, 98 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000062u ? 1 : 0); if (psx_taken_BFC3CDD0) goto label_BFC3CB1C; @@ -193632,7 +198941,7 @@ label_BFC3CDD8: psx_check_interrupts(cpu); /* 0xBFC3CDD8: 1020000E beq $at, $zero, 0xBFC3CE14 */ uint32_t psx_brA_BFC3CDD8 = cpu->gpr[1]; uint32_t psx_brB_BFC3CDD8 = cpu->gpr[0]; - int psx_taken_BFC3CDD8 = (psx_brA_BFC3CDD8 == psx_brB_BFC3CDD8); + psx_taken_BFC3CDD8 = (psx_brA_BFC3CDD8 == psx_brB_BFC3CDD8); /* 0xBFC3CDDC: 2401002F addiu $at, $zero, 47 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (47)); if (psx_taken_BFC3CDD8) goto label_BFC3CE14; @@ -193643,7 +198952,7 @@ label_BFC3CDE0: psx_check_interrupts(cpu); /* 0xBFC3CDE0: 10A1FF1A beq $a1, $at, 0xBFC3CA4C */ uint32_t psx_brA_BFC3CDE0 = cpu->gpr[5]; uint32_t psx_brB_BFC3CDE0 = cpu->gpr[1]; - int psx_taken_BFC3CDE0 = (psx_brA_BFC3CDE0 == psx_brB_BFC3CDE0); + psx_taken_BFC3CDE0 = (psx_brA_BFC3CDE0 == psx_brB_BFC3CDE0); /* 0xBFC3CDE4: 2CA10030 sltiu $at, $a1, 48 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000030u ? 1 : 0); if (psx_taken_BFC3CDE0) goto label_BFC3CA4C; @@ -193654,7 +198963,7 @@ label_BFC3CDE8: psx_check_interrupts(cpu); /* 0xBFC3CDE8: 10200005 beq $at, $zero, 0xBFC3CE00 */ uint32_t psx_brA_BFC3CDE8 = cpu->gpr[1]; uint32_t psx_brB_BFC3CDE8 = cpu->gpr[0]; - int psx_taken_BFC3CDE8 = (psx_brA_BFC3CDE8 == psx_brB_BFC3CDE8); + psx_taken_BFC3CDE8 = (psx_brA_BFC3CDE8 == psx_brB_BFC3CDE8); /* 0xBFC3CDEC: 2401002E addiu $at, $zero, 46 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (46)); if (psx_taken_BFC3CDE8) goto label_BFC3CE00; @@ -193665,7 +198974,7 @@ label_BFC3CDF0: psx_check_interrupts(cpu); /* 0xBFC3CDF0: 10A1FF12 beq $a1, $at, 0xBFC3CA3C */ uint32_t psx_brA_BFC3CDF0 = cpu->gpr[5]; uint32_t psx_brB_BFC3CDF0 = cpu->gpr[1]; - int psx_taken_BFC3CDF0 = (psx_brA_BFC3CDF0 == psx_brB_BFC3CDF0); + psx_taken_BFC3CDF0 = (psx_brA_BFC3CDF0 == psx_brB_BFC3CDF0); /* 0xBFC3CDF4: 00000000 nop */ /* nop */ if (psx_taken_BFC3CDF0) goto label_BFC3CA3C; @@ -193676,7 +198985,7 @@ label_BFC3CDF8: psx_check_interrupts(cpu); /* 0xBFC3CDF8: 1000FFBD beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CDF8 = cpu->gpr[0]; uint32_t psx_brB_BFC3CDF8 = cpu->gpr[0]; - int psx_taken_BFC3CDF8 = (psx_brA_BFC3CDF8 == psx_brB_BFC3CDF8); + psx_taken_BFC3CDF8 = (psx_brA_BFC3CDF8 == psx_brB_BFC3CDF8); /* 0xBFC3CDFC: 00000000 nop */ /* nop */ if (psx_taken_BFC3CDF8) goto label_BFC3CCF0; @@ -193689,7 +198998,7 @@ label_BFC3CE00: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (96)); /* 0xBFC3CE04: 10A1FF31 beq $a1, $at, 0xBFC3CACC */ uint32_t psx_brA_BFC3CE04 = cpu->gpr[5]; uint32_t psx_brB_BFC3CE04 = cpu->gpr[1]; - int psx_taken_BFC3CE04 = (psx_brA_BFC3CE04 == psx_brB_BFC3CE04); + psx_taken_BFC3CE04 = (psx_brA_BFC3CE04 == psx_brB_BFC3CE04); /* 0xBFC3CE08: 00000000 nop */ /* nop */ if (psx_taken_BFC3CE04) goto label_BFC3CACC; @@ -193700,7 +199009,7 @@ label_BFC3CE0C: psx_check_interrupts(cpu); /* 0xBFC3CE0C: 1000FFB8 beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CE0C = cpu->gpr[0]; uint32_t psx_brB_BFC3CE0C = cpu->gpr[0]; - int psx_taken_BFC3CE0C = (psx_brA_BFC3CE0C == psx_brB_BFC3CE0C); + psx_taken_BFC3CE0C = (psx_brA_BFC3CE0C == psx_brB_BFC3CE0C); /* 0xBFC3CE10: 00000000 nop */ /* nop */ if (psx_taken_BFC3CE0C) goto label_BFC3CCF0; @@ -193713,7 +199022,7 @@ label_BFC3CE14: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (99)); /* 0xBFC3CE18: 10A1FF67 beq $a1, $at, 0xBFC3CBB8 */ uint32_t psx_brA_BFC3CE18 = cpu->gpr[5]; uint32_t psx_brB_BFC3CE18 = cpu->gpr[1]; - int psx_taken_BFC3CE18 = (psx_brA_BFC3CE18 == psx_brB_BFC3CE18); + psx_taken_BFC3CE18 = (psx_brA_BFC3CE18 == psx_brB_BFC3CE18); /* 0xBFC3CE1C: 2CA10064 sltiu $at, $a1, 100 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000064u ? 1 : 0); if (psx_taken_BFC3CE18) goto label_BFC3CBB8; @@ -193724,7 +199033,7 @@ label_BFC3CE20: psx_check_interrupts(cpu); /* 0xBFC3CE20: 10200005 beq $at, $zero, 0xBFC3CE38 */ uint32_t psx_brA_BFC3CE20 = cpu->gpr[1]; uint32_t psx_brB_BFC3CE20 = cpu->gpr[0]; - int psx_taken_BFC3CE20 = (psx_brA_BFC3CE20 == psx_brB_BFC3CE20); + psx_taken_BFC3CE20 = (psx_brA_BFC3CE20 == psx_brB_BFC3CE20); /* 0xBFC3CE24: 24010062 addiu $at, $zero, 98 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (98)); if (psx_taken_BFC3CE20) goto label_BFC3CE38; @@ -193735,7 +199044,7 @@ label_BFC3CE28: psx_check_interrupts(cpu); /* 0xBFC3CE28: 10A1FF57 beq $a1, $at, 0xBFC3CB88 */ uint32_t psx_brA_BFC3CE28 = cpu->gpr[5]; uint32_t psx_brB_BFC3CE28 = cpu->gpr[1]; - int psx_taken_BFC3CE28 = (psx_brA_BFC3CE28 == psx_brB_BFC3CE28); + psx_taken_BFC3CE28 = (psx_brA_BFC3CE28 == psx_brB_BFC3CE28); /* 0xBFC3CE2C: 00000000 nop */ /* nop */ if (psx_taken_BFC3CE28) goto label_BFC3CB88; @@ -193746,7 +199055,7 @@ label_BFC3CE30: psx_check_interrupts(cpu); /* 0xBFC3CE30: 1000FFAF beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CE30 = cpu->gpr[0]; uint32_t psx_brB_BFC3CE30 = cpu->gpr[0]; - int psx_taken_BFC3CE30 = (psx_brA_BFC3CE30 == psx_brB_BFC3CE30); + psx_taken_BFC3CE30 = (psx_brA_BFC3CE30 == psx_brB_BFC3CE30); /* 0xBFC3CE34: 00000000 nop */ /* nop */ if (psx_taken_BFC3CE30) goto label_BFC3CCF0; @@ -193759,7 +199068,7 @@ label_BFC3CE38: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (101)); /* 0xBFC3CE3C: 10A1FF62 beq $a1, $at, 0xBFC3CBC8 */ uint32_t psx_brA_BFC3CE3C = cpu->gpr[5]; uint32_t psx_brB_BFC3CE3C = cpu->gpr[1]; - int psx_taken_BFC3CE3C = (psx_brA_BFC3CE3C == psx_brB_BFC3CE3C); + psx_taken_BFC3CE3C = (psx_brA_BFC3CE3C == psx_brB_BFC3CE3C); /* 0xBFC3CE40: 00000000 nop */ /* nop */ if (psx_taken_BFC3CE3C) goto label_BFC3CBC8; @@ -193770,7 +199079,7 @@ label_BFC3CE44: psx_check_interrupts(cpu); /* 0xBFC3CE44: 1000FFAA beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CE44 = cpu->gpr[0]; uint32_t psx_brB_BFC3CE44 = cpu->gpr[0]; - int psx_taken_BFC3CE44 = (psx_brA_BFC3CE44 == psx_brB_BFC3CE44); + psx_taken_BFC3CE44 = (psx_brA_BFC3CE44 == psx_brB_BFC3CE44); /* 0xBFC3CE48: 00000000 nop */ /* nop */ if (psx_taken_BFC3CE44) goto label_BFC3CCF0; @@ -193783,7 +199092,7 @@ label_BFC3CE4C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (106)); /* 0xBFC3CE50: 10A1FF28 beq $a1, $at, 0xBFC3CAF4 */ uint32_t psx_brA_BFC3CE50 = cpu->gpr[5]; uint32_t psx_brB_BFC3CE50 = cpu->gpr[1]; - int psx_taken_BFC3CE50 = (psx_brA_BFC3CE50 == psx_brB_BFC3CE50); + psx_taken_BFC3CE50 = (psx_brA_BFC3CE50 == psx_brB_BFC3CE50); /* 0xBFC3CE54: 2CA1006B sltiu $at, $a1, 107 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x0000006Bu ? 1 : 0); if (psx_taken_BFC3CE50) goto label_BFC3CAF4; @@ -193794,7 +199103,7 @@ label_BFC3CE58: psx_check_interrupts(cpu); /* 0xBFC3CE58: 1020000E beq $at, $zero, 0xBFC3CE94 */ uint32_t psx_brA_BFC3CE58 = cpu->gpr[1]; uint32_t psx_brB_BFC3CE58 = cpu->gpr[0]; - int psx_taken_BFC3CE58 = (psx_brA_BFC3CE58 == psx_brB_BFC3CE58); + psx_taken_BFC3CE58 = (psx_brA_BFC3CE58 == psx_brB_BFC3CE58); /* 0xBFC3CE5C: 24010068 addiu $at, $zero, 104 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (104)); if (psx_taken_BFC3CE58) goto label_BFC3CE94; @@ -193805,7 +199114,7 @@ label_BFC3CE60: psx_check_interrupts(cpu); /* 0xBFC3CE60: 10A1FF33 beq $a1, $at, 0xBFC3CB30 */ uint32_t psx_brA_BFC3CE60 = cpu->gpr[5]; uint32_t psx_brB_BFC3CE60 = cpu->gpr[1]; - int psx_taken_BFC3CE60 = (psx_brA_BFC3CE60 == psx_brB_BFC3CE60); + psx_taken_BFC3CE60 = (psx_brA_BFC3CE60 == psx_brB_BFC3CE60); /* 0xBFC3CE64: 2CA10069 sltiu $at, $a1, 105 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000069u ? 1 : 0); if (psx_taken_BFC3CE60) goto label_BFC3CB30; @@ -193816,7 +199125,7 @@ label_BFC3CE68: psx_check_interrupts(cpu); /* 0xBFC3CE68: 10200005 beq $at, $zero, 0xBFC3CE80 */ uint32_t psx_brA_BFC3CE68 = cpu->gpr[1]; uint32_t psx_brB_BFC3CE68 = cpu->gpr[0]; - int psx_taken_BFC3CE68 = (psx_brA_BFC3CE68 == psx_brB_BFC3CE68); + psx_taken_BFC3CE68 = (psx_brA_BFC3CE68 == psx_brB_BFC3CE68); /* 0xBFC3CE6C: 24010067 addiu $at, $zero, 103 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (103)); if (psx_taken_BFC3CE68) goto label_BFC3CE80; @@ -193827,7 +199136,7 @@ label_BFC3CE70: psx_check_interrupts(cpu); /* 0xBFC3CE70: 10A1FF6D beq $a1, $at, 0xBFC3CC28 */ uint32_t psx_brA_BFC3CE70 = cpu->gpr[5]; uint32_t psx_brB_BFC3CE70 = cpu->gpr[1]; - int psx_taken_BFC3CE70 = (psx_brA_BFC3CE70 == psx_brB_BFC3CE70); + psx_taken_BFC3CE70 = (psx_brA_BFC3CE70 == psx_brB_BFC3CE70); /* 0xBFC3CE74: 00000000 nop */ /* nop */ if (psx_taken_BFC3CE70) goto label_BFC3CC28; @@ -193838,7 +199147,7 @@ label_BFC3CE78: psx_check_interrupts(cpu); /* 0xBFC3CE78: 1000FF9D beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CE78 = cpu->gpr[0]; uint32_t psx_brB_BFC3CE78 = cpu->gpr[0]; - int psx_taken_BFC3CE78 = (psx_brA_BFC3CE78 == psx_brB_BFC3CE78); + psx_taken_BFC3CE78 = (psx_brA_BFC3CE78 == psx_brB_BFC3CE78); /* 0xBFC3CE7C: 00000000 nop */ /* nop */ if (psx_taken_BFC3CE78) goto label_BFC3CCF0; @@ -193851,7 +199160,7 @@ label_BFC3CE80: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (105)); /* 0xBFC3CE84: 10A1FF45 beq $a1, $at, 0xBFC3CB9C */ uint32_t psx_brA_BFC3CE84 = cpu->gpr[5]; uint32_t psx_brB_BFC3CE84 = cpu->gpr[1]; - int psx_taken_BFC3CE84 = (psx_brA_BFC3CE84 == psx_brB_BFC3CE84); + psx_taken_BFC3CE84 = (psx_brA_BFC3CE84 == psx_brB_BFC3CE84); /* 0xBFC3CE88: 00000000 nop */ /* nop */ if (psx_taken_BFC3CE84) goto label_BFC3CB9C; @@ -193862,7 +199171,7 @@ label_BFC3CE8C: psx_check_interrupts(cpu); /* 0xBFC3CE8C: 1000FF98 beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CE8C = cpu->gpr[0]; uint32_t psx_brB_BFC3CE8C = cpu->gpr[0]; - int psx_taken_BFC3CE8C = (psx_brA_BFC3CE8C == psx_brB_BFC3CE8C); + psx_taken_BFC3CE8C = (psx_brA_BFC3CE8C == psx_brB_BFC3CE8C); /* 0xBFC3CE90: 00000000 nop */ /* nop */ if (psx_taken_BFC3CE8C) goto label_BFC3CCF0; @@ -193875,7 +199184,7 @@ label_BFC3CE94: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (257)); /* 0xBFC3CE98: 10A1FF79 beq $a1, $at, 0xBFC3CC80 */ uint32_t psx_brA_BFC3CE98 = cpu->gpr[5]; uint32_t psx_brB_BFC3CE98 = cpu->gpr[1]; - int psx_taken_BFC3CE98 = (psx_brA_BFC3CE98 == psx_brB_BFC3CE98); + psx_taken_BFC3CE98 = (psx_brA_BFC3CE98 == psx_brB_BFC3CE98); /* 0xBFC3CE9C: 2CA10102 sltiu $at, $a1, 258 */ cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < 0x00000102u ? 1 : 0); if (psx_taken_BFC3CE98) goto label_BFC3CC80; @@ -193886,7 +199195,7 @@ label_BFC3CEA0: psx_check_interrupts(cpu); /* 0xBFC3CEA0: 1020FF93 beq $at, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CEA0 = cpu->gpr[1]; uint32_t psx_brB_BFC3CEA0 = cpu->gpr[0]; - int psx_taken_BFC3CEA0 = (psx_brA_BFC3CEA0 == psx_brB_BFC3CEA0); + psx_taken_BFC3CEA0 = (psx_brA_BFC3CEA0 == psx_brB_BFC3CEA0); /* 0xBFC3CEA4: 24010100 addiu $at, $zero, 256 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (256)); if (psx_taken_BFC3CEA0) goto label_BFC3CCF0; @@ -193897,7 +199206,7 @@ label_BFC3CEA8: psx_check_interrupts(cpu); /* 0xBFC3CEA8: 10A1FF71 beq $a1, $at, 0xBFC3CC70 */ uint32_t psx_brA_BFC3CEA8 = cpu->gpr[5]; uint32_t psx_brB_BFC3CEA8 = cpu->gpr[1]; - int psx_taken_BFC3CEA8 = (psx_brA_BFC3CEA8 == psx_brB_BFC3CEA8); + psx_taken_BFC3CEA8 = (psx_brA_BFC3CEA8 == psx_brB_BFC3CEA8); /* 0xBFC3CEAC: 00000000 nop */ /* nop */ if (psx_taken_BFC3CEA8) goto label_BFC3CC70; @@ -193908,7 +199217,7 @@ label_BFC3CEB0: psx_check_interrupts(cpu); /* 0xBFC3CEB0: 1000FF8F beq $zero, $zero, 0xBFC3CCF0 */ uint32_t psx_brA_BFC3CEB0 = cpu->gpr[0]; uint32_t psx_brB_BFC3CEB0 = cpu->gpr[0]; - int psx_taken_BFC3CEB0 = (psx_brA_BFC3CEB0 == psx_brB_BFC3CEB0); + psx_taken_BFC3CEB0 = (psx_brA_BFC3CEB0 == psx_brB_BFC3CEB0); /* 0xBFC3CEB4: 00000000 nop */ /* nop */ if (psx_taken_BFC3CEB0) goto label_BFC3CCF0; @@ -193934,6 +199243,73 @@ label_BFC3CEBC: void func_1FC3CEC8(CPUState* cpu) { debug_server_log_call_entry(0x1FC3CEC8u); + int psx_taken_BFC3CED0 = 0; + int psx_taken_BFC3CED8 = 0; + int psx_taken_BFC3CEE4 = 0; + int psx_taken_BFC3CEF0 = 0; + int psx_taken_BFC3CF00 = 0; + int psx_taken_BFC3CF1C = 0; + int psx_taken_BFC3CF28 = 0; + int psx_taken_BFC3CF3C = 0; + int psx_taken_BFC3CF48 = 0; + int psx_taken_BFC3CF5C = 0; + int psx_taken_BFC3CF68 = 0; + int psx_taken_BFC3CF7C = 0; + int psx_taken_BFC3CF88 = 0; + int psx_taken_BFC3CF9C = 0; + int psx_taken_BFC3CFA8 = 0; + int psx_taken_BFC3CFBC = 0; + int psx_taken_BFC3CFC8 = 0; + int psx_taken_BFC3CFDC = 0; + int psx_taken_BFC3CFE8 = 0; + int psx_taken_BFC3CFFC = 0; + int psx_taken_BFC3D008 = 0; + int psx_taken_BFC3D01C = 0; + int psx_taken_BFC3D028 = 0; + int psx_taken_BFC3D03C = 0; + int psx_taken_BFC3D048 = 0; + int psx_taken_BFC3D05C = 0; + int psx_taken_BFC3D068 = 0; + int psx_taken_BFC3D07C = 0; + int psx_taken_BFC3D088 = 0; + int psx_taken_BFC3D09C = 0; + int psx_taken_BFC3D0A8 = 0; + int psx_taken_BFC3D0BC = 0; + int psx_taken_BFC3D0C8 = 0; + int psx_taken_BFC3D0DC = 0; + int psx_taken_BFC3D0E8 = 0; + int psx_taken_BFC3D0FC = 0; + int psx_taken_BFC3D108 = 0; + int psx_taken_BFC3D11C = 0; + int psx_taken_BFC3D128 = 0; + int psx_taken_BFC3D13C = 0; + int psx_taken_BFC3D148 = 0; + int psx_taken_BFC3D15C = 0; + int psx_taken_BFC3D168 = 0; + int psx_taken_BFC3D17C = 0; + int psx_taken_BFC3D188 = 0; + int psx_taken_BFC3D19C = 0; + int psx_taken_BFC3D1A8 = 0; + int psx_taken_BFC3D1BC = 0; + int psx_taken_BFC3D1C8 = 0; + int psx_taken_BFC3D1DC = 0; + int psx_taken_BFC3D1E8 = 0; + int psx_taken_BFC3D1FC = 0; + int psx_taken_BFC3D208 = 0; + int psx_taken_BFC3D21C = 0; + int psx_taken_BFC3D228 = 0; + int psx_taken_BFC3D23C = 0; + int psx_taken_BFC3D248 = 0; + int psx_taken_BFC3D25C = 0; + int psx_taken_BFC3D268 = 0; + int psx_taken_BFC3D27C = 0; + int psx_taken_BFC3D288 = 0; + int psx_taken_BFC3D29C = 0; + int psx_taken_BFC3D2A8 = 0; + int psx_taken_BFC3D2BC = 0; + int psx_taken_BFC3D2C8 = 0; + int psx_taken_BFC3D2DC = 0; + int psx_taken_BFC3D2E8 = 0; label_BFC3CEC8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -193945,7 +199321,7 @@ label_BFC3CEC8: /* nop */ /* 0xBFC3CED0: 14400004 bne $v0, $zero, 0xBFC3CEE4 */ uint32_t psx_brA_BFC3CED0 = cpu->gpr[2]; uint32_t psx_brB_BFC3CED0 = cpu->gpr[0]; - int psx_taken_BFC3CED0 = (psx_brA_BFC3CED0 != psx_brB_BFC3CED0); + psx_taken_BFC3CED0 = (psx_brA_BFC3CED0 != psx_brB_BFC3CED0); /* 0xBFC3CED4: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3CED0) goto label_BFC3CEE4; @@ -193956,7 +199332,7 @@ label_BFC3CED8: psx_check_interrupts(cpu); /* 0xBFC3CED8: 10000002 beq $zero, $zero, 0xBFC3CEE4 */ uint32_t psx_brA_BFC3CED8 = cpu->gpr[0]; uint32_t psx_brB_BFC3CED8 = cpu->gpr[0]; - int psx_taken_BFC3CED8 = (psx_brA_BFC3CED8 == psx_brB_BFC3CED8); + psx_taken_BFC3CED8 = (psx_brA_BFC3CED8 == psx_brB_BFC3CED8); /* 0xBFC3CEDC: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3CED8) goto label_BFC3CEE4; @@ -193974,7 +199350,7 @@ label_BFC3CEE4: psx_check_interrupts(cpu); /* 0xBFC3CEE4: 14600008 bne $v1, $zero, 0xBFC3CF08 */ uint32_t psx_brA_BFC3CEE4 = cpu->gpr[3]; uint32_t psx_brB_BFC3CEE4 = cpu->gpr[0]; - int psx_taken_BFC3CEE4 = (psx_brA_BFC3CEE4 != psx_brB_BFC3CEE4); + psx_taken_BFC3CEE4 = (psx_brA_BFC3CEE4 != psx_brB_BFC3CEE4); /* 0xBFC3CEE8: 00000000 nop */ /* nop */ if (psx_taken_BFC3CEE4) goto label_BFC3CF08; @@ -193987,7 +199363,7 @@ label_BFC3CEEC: cpu->gpr[14] = cpu->gpr[2] & 0x1u; /* 0xBFC3CEF0: 15C00005 bne $t6, $zero, 0xBFC3CF08 */ uint32_t psx_brA_BFC3CEF0 = cpu->gpr[14]; uint32_t psx_brB_BFC3CEF0 = cpu->gpr[0]; - int psx_taken_BFC3CEF0 = (psx_brA_BFC3CEF0 != psx_brB_BFC3CEF0); + psx_taken_BFC3CEF0 = (psx_brA_BFC3CEF0 != psx_brB_BFC3CEF0); /* 0xBFC3CEF4: 00000000 nop */ /* nop */ if (psx_taken_BFC3CEF0) goto label_BFC3CF08; @@ -194002,7 +199378,7 @@ label_BFC3CEF8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (-26720)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3CEFCu); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC3CF00: 10000006 beq $zero, $zero, 0xBFC3CF1C */ uint32_t psx_brA_BFC3CF00 = cpu->gpr[0]; uint32_t psx_brB_BFC3CF00 = cpu->gpr[0]; - int psx_taken_BFC3CF00 = (psx_brA_BFC3CF00 == psx_brB_BFC3CF00); + psx_taken_BFC3CF00 = (psx_brA_BFC3CF00 == psx_brB_BFC3CF00); /* 0xBFC3CF04: 00000000 nop */ /* nop */ if (psx_taken_BFC3CF00) goto label_BFC3CF1C; @@ -194028,7 +199404,7 @@ label_BFC3CF1C: psx_check_interrupts(cpu); /* 0xBFC3CF1C: 14600004 bne $v1, $zero, 0xBFC3CF30 */ uint32_t psx_brA_BFC3CF1C = cpu->gpr[3]; uint32_t psx_brB_BFC3CF1C = cpu->gpr[0]; - int psx_taken_BFC3CF1C = (psx_brA_BFC3CF1C != psx_brB_BFC3CF1C); + psx_taken_BFC3CF1C = (psx_brA_BFC3CF1C != psx_brB_BFC3CF1C); /* 0xBFC3CF20: 00000000 nop */ /* nop */ if (psx_taken_BFC3CF1C) goto label_BFC3CF30; @@ -194041,7 +199417,7 @@ label_BFC3CF24: cpu->gpr[24] = cpu->gpr[2] & 0x2u; /* 0xBFC3CF28: 13000004 beq $t8, $zero, 0xBFC3CF3C */ uint32_t psx_brA_BFC3CF28 = cpu->gpr[24]; uint32_t psx_brB_BFC3CF28 = cpu->gpr[0]; - int psx_taken_BFC3CF28 = (psx_brA_BFC3CF28 == psx_brB_BFC3CF28); + psx_taken_BFC3CF28 = (psx_brA_BFC3CF28 == psx_brB_BFC3CF28); /* 0xBFC3CF2C: 00000000 nop */ /* nop */ if (psx_taken_BFC3CF28) goto label_BFC3CF3C; @@ -194063,7 +199439,7 @@ label_BFC3CF3C: psx_check_interrupts(cpu); /* 0xBFC3CF3C: 14600004 bne $v1, $zero, 0xBFC3CF50 */ uint32_t psx_brA_BFC3CF3C = cpu->gpr[3]; uint32_t psx_brB_BFC3CF3C = cpu->gpr[0]; - int psx_taken_BFC3CF3C = (psx_brA_BFC3CF3C != psx_brB_BFC3CF3C); + psx_taken_BFC3CF3C = (psx_brA_BFC3CF3C != psx_brB_BFC3CF3C); /* 0xBFC3CF40: 00000000 nop */ /* nop */ if (psx_taken_BFC3CF3C) goto label_BFC3CF50; @@ -194076,7 +199452,7 @@ label_BFC3CF44: cpu->gpr[8] = cpu->gpr[2] & 0x4u; /* 0xBFC3CF48: 11000004 beq $t0, $zero, 0xBFC3CF5C */ uint32_t psx_brA_BFC3CF48 = cpu->gpr[8]; uint32_t psx_brB_BFC3CF48 = cpu->gpr[0]; - int psx_taken_BFC3CF48 = (psx_brA_BFC3CF48 == psx_brB_BFC3CF48); + psx_taken_BFC3CF48 = (psx_brA_BFC3CF48 == psx_brB_BFC3CF48); /* 0xBFC3CF4C: 00000000 nop */ /* nop */ if (psx_taken_BFC3CF48) goto label_BFC3CF5C; @@ -194098,7 +199474,7 @@ label_BFC3CF5C: psx_check_interrupts(cpu); /* 0xBFC3CF5C: 14600004 bne $v1, $zero, 0xBFC3CF70 */ uint32_t psx_brA_BFC3CF5C = cpu->gpr[3]; uint32_t psx_brB_BFC3CF5C = cpu->gpr[0]; - int psx_taken_BFC3CF5C = (psx_brA_BFC3CF5C != psx_brB_BFC3CF5C); + psx_taken_BFC3CF5C = (psx_brA_BFC3CF5C != psx_brB_BFC3CF5C); /* 0xBFC3CF60: 00000000 nop */ /* nop */ if (psx_taken_BFC3CF5C) goto label_BFC3CF70; @@ -194111,7 +199487,7 @@ label_BFC3CF64: cpu->gpr[10] = cpu->gpr[2] & 0x8u; /* 0xBFC3CF68: 11400004 beq $t2, $zero, 0xBFC3CF7C */ uint32_t psx_brA_BFC3CF68 = cpu->gpr[10]; uint32_t psx_brB_BFC3CF68 = cpu->gpr[0]; - int psx_taken_BFC3CF68 = (psx_brA_BFC3CF68 == psx_brB_BFC3CF68); + psx_taken_BFC3CF68 = (psx_brA_BFC3CF68 == psx_brB_BFC3CF68); /* 0xBFC3CF6C: 00000000 nop */ /* nop */ if (psx_taken_BFC3CF68) goto label_BFC3CF7C; @@ -194133,7 +199509,7 @@ label_BFC3CF7C: psx_check_interrupts(cpu); /* 0xBFC3CF7C: 14600004 bne $v1, $zero, 0xBFC3CF90 */ uint32_t psx_brA_BFC3CF7C = cpu->gpr[3]; uint32_t psx_brB_BFC3CF7C = cpu->gpr[0]; - int psx_taken_BFC3CF7C = (psx_brA_BFC3CF7C != psx_brB_BFC3CF7C); + psx_taken_BFC3CF7C = (psx_brA_BFC3CF7C != psx_brB_BFC3CF7C); /* 0xBFC3CF80: 00000000 nop */ /* nop */ if (psx_taken_BFC3CF7C) goto label_BFC3CF90; @@ -194146,7 +199522,7 @@ label_BFC3CF84: cpu->gpr[12] = cpu->gpr[2] & 0x10u; /* 0xBFC3CF88: 11800004 beq $t4, $zero, 0xBFC3CF9C */ uint32_t psx_brA_BFC3CF88 = cpu->gpr[12]; uint32_t psx_brB_BFC3CF88 = cpu->gpr[0]; - int psx_taken_BFC3CF88 = (psx_brA_BFC3CF88 == psx_brB_BFC3CF88); + psx_taken_BFC3CF88 = (psx_brA_BFC3CF88 == psx_brB_BFC3CF88); /* 0xBFC3CF8C: 00000000 nop */ /* nop */ if (psx_taken_BFC3CF88) goto label_BFC3CF9C; @@ -194168,7 +199544,7 @@ label_BFC3CF9C: psx_check_interrupts(cpu); /* 0xBFC3CF9C: 14600004 bne $v1, $zero, 0xBFC3CFB0 */ uint32_t psx_brA_BFC3CF9C = cpu->gpr[3]; uint32_t psx_brB_BFC3CF9C = cpu->gpr[0]; - int psx_taken_BFC3CF9C = (psx_brA_BFC3CF9C != psx_brB_BFC3CF9C); + psx_taken_BFC3CF9C = (psx_brA_BFC3CF9C != psx_brB_BFC3CF9C); /* 0xBFC3CFA0: 00000000 nop */ /* nop */ if (psx_taken_BFC3CF9C) goto label_BFC3CFB0; @@ -194181,7 +199557,7 @@ label_BFC3CFA4: cpu->gpr[14] = cpu->gpr[2] & 0x20u; /* 0xBFC3CFA8: 11C00004 beq $t6, $zero, 0xBFC3CFBC */ uint32_t psx_brA_BFC3CFA8 = cpu->gpr[14]; uint32_t psx_brB_BFC3CFA8 = cpu->gpr[0]; - int psx_taken_BFC3CFA8 = (psx_brA_BFC3CFA8 == psx_brB_BFC3CFA8); + psx_taken_BFC3CFA8 = (psx_brA_BFC3CFA8 == psx_brB_BFC3CFA8); /* 0xBFC3CFAC: 00000000 nop */ /* nop */ if (psx_taken_BFC3CFA8) goto label_BFC3CFBC; @@ -194203,7 +199579,7 @@ label_BFC3CFBC: psx_check_interrupts(cpu); /* 0xBFC3CFBC: 14600004 bne $v1, $zero, 0xBFC3CFD0 */ uint32_t psx_brA_BFC3CFBC = cpu->gpr[3]; uint32_t psx_brB_BFC3CFBC = cpu->gpr[0]; - int psx_taken_BFC3CFBC = (psx_brA_BFC3CFBC != psx_brB_BFC3CFBC); + psx_taken_BFC3CFBC = (psx_brA_BFC3CFBC != psx_brB_BFC3CFBC); /* 0xBFC3CFC0: 00000000 nop */ /* nop */ if (psx_taken_BFC3CFBC) goto label_BFC3CFD0; @@ -194216,7 +199592,7 @@ label_BFC3CFC4: cpu->gpr[24] = cpu->gpr[2] & 0x40u; /* 0xBFC3CFC8: 13000004 beq $t8, $zero, 0xBFC3CFDC */ uint32_t psx_brA_BFC3CFC8 = cpu->gpr[24]; uint32_t psx_brB_BFC3CFC8 = cpu->gpr[0]; - int psx_taken_BFC3CFC8 = (psx_brA_BFC3CFC8 == psx_brB_BFC3CFC8); + psx_taken_BFC3CFC8 = (psx_brA_BFC3CFC8 == psx_brB_BFC3CFC8); /* 0xBFC3CFCC: 00000000 nop */ /* nop */ if (psx_taken_BFC3CFC8) goto label_BFC3CFDC; @@ -194238,7 +199614,7 @@ label_BFC3CFDC: psx_check_interrupts(cpu); /* 0xBFC3CFDC: 14600004 bne $v1, $zero, 0xBFC3CFF0 */ uint32_t psx_brA_BFC3CFDC = cpu->gpr[3]; uint32_t psx_brB_BFC3CFDC = cpu->gpr[0]; - int psx_taken_BFC3CFDC = (psx_brA_BFC3CFDC != psx_brB_BFC3CFDC); + psx_taken_BFC3CFDC = (psx_brA_BFC3CFDC != psx_brB_BFC3CFDC); /* 0xBFC3CFE0: 00000000 nop */ /* nop */ if (psx_taken_BFC3CFDC) goto label_BFC3CFF0; @@ -194251,7 +199627,7 @@ label_BFC3CFE4: cpu->gpr[8] = cpu->gpr[2] & 0x80u; /* 0xBFC3CFE8: 11000004 beq $t0, $zero, 0xBFC3CFFC */ uint32_t psx_brA_BFC3CFE8 = cpu->gpr[8]; uint32_t psx_brB_BFC3CFE8 = cpu->gpr[0]; - int psx_taken_BFC3CFE8 = (psx_brA_BFC3CFE8 == psx_brB_BFC3CFE8); + psx_taken_BFC3CFE8 = (psx_brA_BFC3CFE8 == psx_brB_BFC3CFE8); /* 0xBFC3CFEC: 00000000 nop */ /* nop */ if (psx_taken_BFC3CFE8) goto label_BFC3CFFC; @@ -194273,7 +199649,7 @@ label_BFC3CFFC: psx_check_interrupts(cpu); /* 0xBFC3CFFC: 14600004 bne $v1, $zero, 0xBFC3D010 */ uint32_t psx_brA_BFC3CFFC = cpu->gpr[3]; uint32_t psx_brB_BFC3CFFC = cpu->gpr[0]; - int psx_taken_BFC3CFFC = (psx_brA_BFC3CFFC != psx_brB_BFC3CFFC); + psx_taken_BFC3CFFC = (psx_brA_BFC3CFFC != psx_brB_BFC3CFFC); /* 0xBFC3D000: 00000000 nop */ /* nop */ if (psx_taken_BFC3CFFC) goto label_BFC3D010; @@ -194286,7 +199662,7 @@ label_BFC3D004: cpu->gpr[10] = cpu->gpr[2] & 0x100u; /* 0xBFC3D008: 11400004 beq $t2, $zero, 0xBFC3D01C */ uint32_t psx_brA_BFC3D008 = cpu->gpr[10]; uint32_t psx_brB_BFC3D008 = cpu->gpr[0]; - int psx_taken_BFC3D008 = (psx_brA_BFC3D008 == psx_brB_BFC3D008); + psx_taken_BFC3D008 = (psx_brA_BFC3D008 == psx_brB_BFC3D008); /* 0xBFC3D00C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D008) goto label_BFC3D01C; @@ -194308,7 +199684,7 @@ label_BFC3D01C: psx_check_interrupts(cpu); /* 0xBFC3D01C: 14600004 bne $v1, $zero, 0xBFC3D030 */ uint32_t psx_brA_BFC3D01C = cpu->gpr[3]; uint32_t psx_brB_BFC3D01C = cpu->gpr[0]; - int psx_taken_BFC3D01C = (psx_brA_BFC3D01C != psx_brB_BFC3D01C); + psx_taken_BFC3D01C = (psx_brA_BFC3D01C != psx_brB_BFC3D01C); /* 0xBFC3D020: 00000000 nop */ /* nop */ if (psx_taken_BFC3D01C) goto label_BFC3D030; @@ -194321,7 +199697,7 @@ label_BFC3D024: cpu->gpr[12] = cpu->gpr[2] & 0x200u; /* 0xBFC3D028: 11800004 beq $t4, $zero, 0xBFC3D03C */ uint32_t psx_brA_BFC3D028 = cpu->gpr[12]; uint32_t psx_brB_BFC3D028 = cpu->gpr[0]; - int psx_taken_BFC3D028 = (psx_brA_BFC3D028 == psx_brB_BFC3D028); + psx_taken_BFC3D028 = (psx_brA_BFC3D028 == psx_brB_BFC3D028); /* 0xBFC3D02C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D028) goto label_BFC3D03C; @@ -194343,7 +199719,7 @@ label_BFC3D03C: psx_check_interrupts(cpu); /* 0xBFC3D03C: 14600004 bne $v1, $zero, 0xBFC3D050 */ uint32_t psx_brA_BFC3D03C = cpu->gpr[3]; uint32_t psx_brB_BFC3D03C = cpu->gpr[0]; - int psx_taken_BFC3D03C = (psx_brA_BFC3D03C != psx_brB_BFC3D03C); + psx_taken_BFC3D03C = (psx_brA_BFC3D03C != psx_brB_BFC3D03C); /* 0xBFC3D040: 00000000 nop */ /* nop */ if (psx_taken_BFC3D03C) goto label_BFC3D050; @@ -194356,7 +199732,7 @@ label_BFC3D044: cpu->gpr[14] = cpu->gpr[2] & 0x400u; /* 0xBFC3D048: 11C00004 beq $t6, $zero, 0xBFC3D05C */ uint32_t psx_brA_BFC3D048 = cpu->gpr[14]; uint32_t psx_brB_BFC3D048 = cpu->gpr[0]; - int psx_taken_BFC3D048 = (psx_brA_BFC3D048 == psx_brB_BFC3D048); + psx_taken_BFC3D048 = (psx_brA_BFC3D048 == psx_brB_BFC3D048); /* 0xBFC3D04C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D048) goto label_BFC3D05C; @@ -194378,7 +199754,7 @@ label_BFC3D05C: psx_check_interrupts(cpu); /* 0xBFC3D05C: 14600004 bne $v1, $zero, 0xBFC3D070 */ uint32_t psx_brA_BFC3D05C = cpu->gpr[3]; uint32_t psx_brB_BFC3D05C = cpu->gpr[0]; - int psx_taken_BFC3D05C = (psx_brA_BFC3D05C != psx_brB_BFC3D05C); + psx_taken_BFC3D05C = (psx_brA_BFC3D05C != psx_brB_BFC3D05C); /* 0xBFC3D060: 00000000 nop */ /* nop */ if (psx_taken_BFC3D05C) goto label_BFC3D070; @@ -194391,7 +199767,7 @@ label_BFC3D064: cpu->gpr[24] = cpu->gpr[2] & 0x800u; /* 0xBFC3D068: 13000004 beq $t8, $zero, 0xBFC3D07C */ uint32_t psx_brA_BFC3D068 = cpu->gpr[24]; uint32_t psx_brB_BFC3D068 = cpu->gpr[0]; - int psx_taken_BFC3D068 = (psx_brA_BFC3D068 == psx_brB_BFC3D068); + psx_taken_BFC3D068 = (psx_brA_BFC3D068 == psx_brB_BFC3D068); /* 0xBFC3D06C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D068) goto label_BFC3D07C; @@ -194413,7 +199789,7 @@ label_BFC3D07C: psx_check_interrupts(cpu); /* 0xBFC3D07C: 14600004 bne $v1, $zero, 0xBFC3D090 */ uint32_t psx_brA_BFC3D07C = cpu->gpr[3]; uint32_t psx_brB_BFC3D07C = cpu->gpr[0]; - int psx_taken_BFC3D07C = (psx_brA_BFC3D07C != psx_brB_BFC3D07C); + psx_taken_BFC3D07C = (psx_brA_BFC3D07C != psx_brB_BFC3D07C); /* 0xBFC3D080: 00000000 nop */ /* nop */ if (psx_taken_BFC3D07C) goto label_BFC3D090; @@ -194426,7 +199802,7 @@ label_BFC3D084: cpu->gpr[8] = cpu->gpr[2] & 0x1000u; /* 0xBFC3D088: 11000004 beq $t0, $zero, 0xBFC3D09C */ uint32_t psx_brA_BFC3D088 = cpu->gpr[8]; uint32_t psx_brB_BFC3D088 = cpu->gpr[0]; - int psx_taken_BFC3D088 = (psx_brA_BFC3D088 == psx_brB_BFC3D088); + psx_taken_BFC3D088 = (psx_brA_BFC3D088 == psx_brB_BFC3D088); /* 0xBFC3D08C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D088) goto label_BFC3D09C; @@ -194448,7 +199824,7 @@ label_BFC3D09C: psx_check_interrupts(cpu); /* 0xBFC3D09C: 14600004 bne $v1, $zero, 0xBFC3D0B0 */ uint32_t psx_brA_BFC3D09C = cpu->gpr[3]; uint32_t psx_brB_BFC3D09C = cpu->gpr[0]; - int psx_taken_BFC3D09C = (psx_brA_BFC3D09C != psx_brB_BFC3D09C); + psx_taken_BFC3D09C = (psx_brA_BFC3D09C != psx_brB_BFC3D09C); /* 0xBFC3D0A0: 00000000 nop */ /* nop */ if (psx_taken_BFC3D09C) goto label_BFC3D0B0; @@ -194461,7 +199837,7 @@ label_BFC3D0A4: cpu->gpr[10] = cpu->gpr[2] & 0x2000u; /* 0xBFC3D0A8: 11400004 beq $t2, $zero, 0xBFC3D0BC */ uint32_t psx_brA_BFC3D0A8 = cpu->gpr[10]; uint32_t psx_brB_BFC3D0A8 = cpu->gpr[0]; - int psx_taken_BFC3D0A8 = (psx_brA_BFC3D0A8 == psx_brB_BFC3D0A8); + psx_taken_BFC3D0A8 = (psx_brA_BFC3D0A8 == psx_brB_BFC3D0A8); /* 0xBFC3D0AC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D0A8) goto label_BFC3D0BC; @@ -194483,7 +199859,7 @@ label_BFC3D0BC: psx_check_interrupts(cpu); /* 0xBFC3D0BC: 14600004 bne $v1, $zero, 0xBFC3D0D0 */ uint32_t psx_brA_BFC3D0BC = cpu->gpr[3]; uint32_t psx_brB_BFC3D0BC = cpu->gpr[0]; - int psx_taken_BFC3D0BC = (psx_brA_BFC3D0BC != psx_brB_BFC3D0BC); + psx_taken_BFC3D0BC = (psx_brA_BFC3D0BC != psx_brB_BFC3D0BC); /* 0xBFC3D0C0: 00000000 nop */ /* nop */ if (psx_taken_BFC3D0BC) goto label_BFC3D0D0; @@ -194496,7 +199872,7 @@ label_BFC3D0C4: cpu->gpr[12] = cpu->gpr[2] & 0x4000u; /* 0xBFC3D0C8: 11800004 beq $t4, $zero, 0xBFC3D0DC */ uint32_t psx_brA_BFC3D0C8 = cpu->gpr[12]; uint32_t psx_brB_BFC3D0C8 = cpu->gpr[0]; - int psx_taken_BFC3D0C8 = (psx_brA_BFC3D0C8 == psx_brB_BFC3D0C8); + psx_taken_BFC3D0C8 = (psx_brA_BFC3D0C8 == psx_brB_BFC3D0C8); /* 0xBFC3D0CC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D0C8) goto label_BFC3D0DC; @@ -194518,7 +199894,7 @@ label_BFC3D0DC: psx_check_interrupts(cpu); /* 0xBFC3D0DC: 14600004 bne $v1, $zero, 0xBFC3D0F0 */ uint32_t psx_brA_BFC3D0DC = cpu->gpr[3]; uint32_t psx_brB_BFC3D0DC = cpu->gpr[0]; - int psx_taken_BFC3D0DC = (psx_brA_BFC3D0DC != psx_brB_BFC3D0DC); + psx_taken_BFC3D0DC = (psx_brA_BFC3D0DC != psx_brB_BFC3D0DC); /* 0xBFC3D0E0: 00000000 nop */ /* nop */ if (psx_taken_BFC3D0DC) goto label_BFC3D0F0; @@ -194531,7 +199907,7 @@ label_BFC3D0E4: cpu->gpr[14] = cpu->gpr[2] & 0x8000u; /* 0xBFC3D0E8: 11C00004 beq $t6, $zero, 0xBFC3D0FC */ uint32_t psx_brA_BFC3D0E8 = cpu->gpr[14]; uint32_t psx_brB_BFC3D0E8 = cpu->gpr[0]; - int psx_taken_BFC3D0E8 = (psx_brA_BFC3D0E8 == psx_brB_BFC3D0E8); + psx_taken_BFC3D0E8 = (psx_brA_BFC3D0E8 == psx_brB_BFC3D0E8); /* 0xBFC3D0EC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D0E8) goto label_BFC3D0FC; @@ -194553,7 +199929,7 @@ label_BFC3D0FC: psx_check_interrupts(cpu); /* 0xBFC3D0FC: 14600004 bne $v1, $zero, 0xBFC3D110 */ uint32_t psx_brA_BFC3D0FC = cpu->gpr[3]; uint32_t psx_brB_BFC3D0FC = cpu->gpr[0]; - int psx_taken_BFC3D0FC = (psx_brA_BFC3D0FC != psx_brB_BFC3D0FC); + psx_taken_BFC3D0FC = (psx_brA_BFC3D0FC != psx_brB_BFC3D0FC); /* 0xBFC3D100: 3C010001 lui $at, 0x1 */ cpu->gpr[1] = 0x00010000u; if (psx_taken_BFC3D0FC) goto label_BFC3D110; @@ -194566,7 +199942,7 @@ label_BFC3D104: cpu->gpr[24] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D108: 13000004 beq $t8, $zero, 0xBFC3D11C */ uint32_t psx_brA_BFC3D108 = cpu->gpr[24]; uint32_t psx_brB_BFC3D108 = cpu->gpr[0]; - int psx_taken_BFC3D108 = (psx_brA_BFC3D108 == psx_brB_BFC3D108); + psx_taken_BFC3D108 = (psx_brA_BFC3D108 == psx_brB_BFC3D108); /* 0xBFC3D10C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D108) goto label_BFC3D11C; @@ -194588,7 +199964,7 @@ label_BFC3D11C: psx_check_interrupts(cpu); /* 0xBFC3D11C: 14600004 bne $v1, $zero, 0xBFC3D130 */ uint32_t psx_brA_BFC3D11C = cpu->gpr[3]; uint32_t psx_brB_BFC3D11C = cpu->gpr[0]; - int psx_taken_BFC3D11C = (psx_brA_BFC3D11C != psx_brB_BFC3D11C); + psx_taken_BFC3D11C = (psx_brA_BFC3D11C != psx_brB_BFC3D11C); /* 0xBFC3D120: 3C010002 lui $at, 0x2 */ cpu->gpr[1] = 0x00020000u; if (psx_taken_BFC3D11C) goto label_BFC3D130; @@ -194601,7 +199977,7 @@ label_BFC3D124: cpu->gpr[8] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D128: 11000004 beq $t0, $zero, 0xBFC3D13C */ uint32_t psx_brA_BFC3D128 = cpu->gpr[8]; uint32_t psx_brB_BFC3D128 = cpu->gpr[0]; - int psx_taken_BFC3D128 = (psx_brA_BFC3D128 == psx_brB_BFC3D128); + psx_taken_BFC3D128 = (psx_brA_BFC3D128 == psx_brB_BFC3D128); /* 0xBFC3D12C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D128) goto label_BFC3D13C; @@ -194623,7 +199999,7 @@ label_BFC3D13C: psx_check_interrupts(cpu); /* 0xBFC3D13C: 14600004 bne $v1, $zero, 0xBFC3D150 */ uint32_t psx_brA_BFC3D13C = cpu->gpr[3]; uint32_t psx_brB_BFC3D13C = cpu->gpr[0]; - int psx_taken_BFC3D13C = (psx_brA_BFC3D13C != psx_brB_BFC3D13C); + psx_taken_BFC3D13C = (psx_brA_BFC3D13C != psx_brB_BFC3D13C); /* 0xBFC3D140: 3C010004 lui $at, 0x4 */ cpu->gpr[1] = 0x00040000u; if (psx_taken_BFC3D13C) goto label_BFC3D150; @@ -194636,7 +200012,7 @@ label_BFC3D144: cpu->gpr[10] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D148: 11400004 beq $t2, $zero, 0xBFC3D15C */ uint32_t psx_brA_BFC3D148 = cpu->gpr[10]; uint32_t psx_brB_BFC3D148 = cpu->gpr[0]; - int psx_taken_BFC3D148 = (psx_brA_BFC3D148 == psx_brB_BFC3D148); + psx_taken_BFC3D148 = (psx_brA_BFC3D148 == psx_brB_BFC3D148); /* 0xBFC3D14C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D148) goto label_BFC3D15C; @@ -194658,7 +200034,7 @@ label_BFC3D15C: psx_check_interrupts(cpu); /* 0xBFC3D15C: 14600004 bne $v1, $zero, 0xBFC3D170 */ uint32_t psx_brA_BFC3D15C = cpu->gpr[3]; uint32_t psx_brB_BFC3D15C = cpu->gpr[0]; - int psx_taken_BFC3D15C = (psx_brA_BFC3D15C != psx_brB_BFC3D15C); + psx_taken_BFC3D15C = (psx_brA_BFC3D15C != psx_brB_BFC3D15C); /* 0xBFC3D160: 3C010008 lui $at, 0x8 */ cpu->gpr[1] = 0x00080000u; if (psx_taken_BFC3D15C) goto label_BFC3D170; @@ -194671,7 +200047,7 @@ label_BFC3D164: cpu->gpr[12] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D168: 11800004 beq $t4, $zero, 0xBFC3D17C */ uint32_t psx_brA_BFC3D168 = cpu->gpr[12]; uint32_t psx_brB_BFC3D168 = cpu->gpr[0]; - int psx_taken_BFC3D168 = (psx_brA_BFC3D168 == psx_brB_BFC3D168); + psx_taken_BFC3D168 = (psx_brA_BFC3D168 == psx_brB_BFC3D168); /* 0xBFC3D16C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D168) goto label_BFC3D17C; @@ -194693,7 +200069,7 @@ label_BFC3D17C: psx_check_interrupts(cpu); /* 0xBFC3D17C: 14600004 bne $v1, $zero, 0xBFC3D190 */ uint32_t psx_brA_BFC3D17C = cpu->gpr[3]; uint32_t psx_brB_BFC3D17C = cpu->gpr[0]; - int psx_taken_BFC3D17C = (psx_brA_BFC3D17C != psx_brB_BFC3D17C); + psx_taken_BFC3D17C = (psx_brA_BFC3D17C != psx_brB_BFC3D17C); /* 0xBFC3D180: 3C010010 lui $at, 0x10 */ cpu->gpr[1] = 0x00100000u; if (psx_taken_BFC3D17C) goto label_BFC3D190; @@ -194706,7 +200082,7 @@ label_BFC3D184: cpu->gpr[14] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D188: 11C00004 beq $t6, $zero, 0xBFC3D19C */ uint32_t psx_brA_BFC3D188 = cpu->gpr[14]; uint32_t psx_brB_BFC3D188 = cpu->gpr[0]; - int psx_taken_BFC3D188 = (psx_brA_BFC3D188 == psx_brB_BFC3D188); + psx_taken_BFC3D188 = (psx_brA_BFC3D188 == psx_brB_BFC3D188); /* 0xBFC3D18C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D188) goto label_BFC3D19C; @@ -194728,7 +200104,7 @@ label_BFC3D19C: psx_check_interrupts(cpu); /* 0xBFC3D19C: 14600004 bne $v1, $zero, 0xBFC3D1B0 */ uint32_t psx_brA_BFC3D19C = cpu->gpr[3]; uint32_t psx_brB_BFC3D19C = cpu->gpr[0]; - int psx_taken_BFC3D19C = (psx_brA_BFC3D19C != psx_brB_BFC3D19C); + psx_taken_BFC3D19C = (psx_brA_BFC3D19C != psx_brB_BFC3D19C); /* 0xBFC3D1A0: 3C010020 lui $at, 0x20 */ cpu->gpr[1] = 0x00200000u; if (psx_taken_BFC3D19C) goto label_BFC3D1B0; @@ -194741,7 +200117,7 @@ label_BFC3D1A4: cpu->gpr[24] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D1A8: 13000004 beq $t8, $zero, 0xBFC3D1BC */ uint32_t psx_brA_BFC3D1A8 = cpu->gpr[24]; uint32_t psx_brB_BFC3D1A8 = cpu->gpr[0]; - int psx_taken_BFC3D1A8 = (psx_brA_BFC3D1A8 == psx_brB_BFC3D1A8); + psx_taken_BFC3D1A8 = (psx_brA_BFC3D1A8 == psx_brB_BFC3D1A8); /* 0xBFC3D1AC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D1A8) goto label_BFC3D1BC; @@ -194763,7 +200139,7 @@ label_BFC3D1BC: psx_check_interrupts(cpu); /* 0xBFC3D1BC: 14600004 bne $v1, $zero, 0xBFC3D1D0 */ uint32_t psx_brA_BFC3D1BC = cpu->gpr[3]; uint32_t psx_brB_BFC3D1BC = cpu->gpr[0]; - int psx_taken_BFC3D1BC = (psx_brA_BFC3D1BC != psx_brB_BFC3D1BC); + psx_taken_BFC3D1BC = (psx_brA_BFC3D1BC != psx_brB_BFC3D1BC); /* 0xBFC3D1C0: 3C010040 lui $at, 0x40 */ cpu->gpr[1] = 0x00400000u; if (psx_taken_BFC3D1BC) goto label_BFC3D1D0; @@ -194776,7 +200152,7 @@ label_BFC3D1C4: cpu->gpr[8] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D1C8: 11000004 beq $t0, $zero, 0xBFC3D1DC */ uint32_t psx_brA_BFC3D1C8 = cpu->gpr[8]; uint32_t psx_brB_BFC3D1C8 = cpu->gpr[0]; - int psx_taken_BFC3D1C8 = (psx_brA_BFC3D1C8 == psx_brB_BFC3D1C8); + psx_taken_BFC3D1C8 = (psx_brA_BFC3D1C8 == psx_brB_BFC3D1C8); /* 0xBFC3D1CC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D1C8) goto label_BFC3D1DC; @@ -194798,7 +200174,7 @@ label_BFC3D1DC: psx_check_interrupts(cpu); /* 0xBFC3D1DC: 14600004 bne $v1, $zero, 0xBFC3D1F0 */ uint32_t psx_brA_BFC3D1DC = cpu->gpr[3]; uint32_t psx_brB_BFC3D1DC = cpu->gpr[0]; - int psx_taken_BFC3D1DC = (psx_brA_BFC3D1DC != psx_brB_BFC3D1DC); + psx_taken_BFC3D1DC = (psx_brA_BFC3D1DC != psx_brB_BFC3D1DC); /* 0xBFC3D1E0: 3C010080 lui $at, 0x80 */ cpu->gpr[1] = 0x00800000u; if (psx_taken_BFC3D1DC) goto label_BFC3D1F0; @@ -194811,7 +200187,7 @@ label_BFC3D1E4: cpu->gpr[10] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D1E8: 11400004 beq $t2, $zero, 0xBFC3D1FC */ uint32_t psx_brA_BFC3D1E8 = cpu->gpr[10]; uint32_t psx_brB_BFC3D1E8 = cpu->gpr[0]; - int psx_taken_BFC3D1E8 = (psx_brA_BFC3D1E8 == psx_brB_BFC3D1E8); + psx_taken_BFC3D1E8 = (psx_brA_BFC3D1E8 == psx_brB_BFC3D1E8); /* 0xBFC3D1EC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D1E8) goto label_BFC3D1FC; @@ -194833,7 +200209,7 @@ label_BFC3D1FC: psx_check_interrupts(cpu); /* 0xBFC3D1FC: 14600004 bne $v1, $zero, 0xBFC3D210 */ uint32_t psx_brA_BFC3D1FC = cpu->gpr[3]; uint32_t psx_brB_BFC3D1FC = cpu->gpr[0]; - int psx_taken_BFC3D1FC = (psx_brA_BFC3D1FC != psx_brB_BFC3D1FC); + psx_taken_BFC3D1FC = (psx_brA_BFC3D1FC != psx_brB_BFC3D1FC); /* 0xBFC3D200: 3C010100 lui $at, 0x100 */ cpu->gpr[1] = 0x01000000u; if (psx_taken_BFC3D1FC) goto label_BFC3D210; @@ -194846,7 +200222,7 @@ label_BFC3D204: cpu->gpr[12] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D208: 11800004 beq $t4, $zero, 0xBFC3D21C */ uint32_t psx_brA_BFC3D208 = cpu->gpr[12]; uint32_t psx_brB_BFC3D208 = cpu->gpr[0]; - int psx_taken_BFC3D208 = (psx_brA_BFC3D208 == psx_brB_BFC3D208); + psx_taken_BFC3D208 = (psx_brA_BFC3D208 == psx_brB_BFC3D208); /* 0xBFC3D20C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D208) goto label_BFC3D21C; @@ -194868,7 +200244,7 @@ label_BFC3D21C: psx_check_interrupts(cpu); /* 0xBFC3D21C: 14600004 bne $v1, $zero, 0xBFC3D230 */ uint32_t psx_brA_BFC3D21C = cpu->gpr[3]; uint32_t psx_brB_BFC3D21C = cpu->gpr[0]; - int psx_taken_BFC3D21C = (psx_brA_BFC3D21C != psx_brB_BFC3D21C); + psx_taken_BFC3D21C = (psx_brA_BFC3D21C != psx_brB_BFC3D21C); /* 0xBFC3D220: 3C010200 lui $at, 0x200 */ cpu->gpr[1] = 0x02000000u; if (psx_taken_BFC3D21C) goto label_BFC3D230; @@ -194881,7 +200257,7 @@ label_BFC3D224: cpu->gpr[14] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D228: 11C00004 beq $t6, $zero, 0xBFC3D23C */ uint32_t psx_brA_BFC3D228 = cpu->gpr[14]; uint32_t psx_brB_BFC3D228 = cpu->gpr[0]; - int psx_taken_BFC3D228 = (psx_brA_BFC3D228 == psx_brB_BFC3D228); + psx_taken_BFC3D228 = (psx_brA_BFC3D228 == psx_brB_BFC3D228); /* 0xBFC3D22C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D228) goto label_BFC3D23C; @@ -194903,7 +200279,7 @@ label_BFC3D23C: psx_check_interrupts(cpu); /* 0xBFC3D23C: 14600004 bne $v1, $zero, 0xBFC3D250 */ uint32_t psx_brA_BFC3D23C = cpu->gpr[3]; uint32_t psx_brB_BFC3D23C = cpu->gpr[0]; - int psx_taken_BFC3D23C = (psx_brA_BFC3D23C != psx_brB_BFC3D23C); + psx_taken_BFC3D23C = (psx_brA_BFC3D23C != psx_brB_BFC3D23C); /* 0xBFC3D240: 3C010400 lui $at, 0x400 */ cpu->gpr[1] = 0x04000000u; if (psx_taken_BFC3D23C) goto label_BFC3D250; @@ -194916,7 +200292,7 @@ label_BFC3D244: cpu->gpr[24] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D248: 13000004 beq $t8, $zero, 0xBFC3D25C */ uint32_t psx_brA_BFC3D248 = cpu->gpr[24]; uint32_t psx_brB_BFC3D248 = cpu->gpr[0]; - int psx_taken_BFC3D248 = (psx_brA_BFC3D248 == psx_brB_BFC3D248); + psx_taken_BFC3D248 = (psx_brA_BFC3D248 == psx_brB_BFC3D248); /* 0xBFC3D24C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D248) goto label_BFC3D25C; @@ -194938,7 +200314,7 @@ label_BFC3D25C: psx_check_interrupts(cpu); /* 0xBFC3D25C: 14600004 bne $v1, $zero, 0xBFC3D270 */ uint32_t psx_brA_BFC3D25C = cpu->gpr[3]; uint32_t psx_brB_BFC3D25C = cpu->gpr[0]; - int psx_taken_BFC3D25C = (psx_brA_BFC3D25C != psx_brB_BFC3D25C); + psx_taken_BFC3D25C = (psx_brA_BFC3D25C != psx_brB_BFC3D25C); /* 0xBFC3D260: 3C010800 lui $at, 0x800 */ cpu->gpr[1] = 0x08000000u; if (psx_taken_BFC3D25C) goto label_BFC3D270; @@ -194951,7 +200327,7 @@ label_BFC3D264: cpu->gpr[8] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D268: 11000004 beq $t0, $zero, 0xBFC3D27C */ uint32_t psx_brA_BFC3D268 = cpu->gpr[8]; uint32_t psx_brB_BFC3D268 = cpu->gpr[0]; - int psx_taken_BFC3D268 = (psx_brA_BFC3D268 == psx_brB_BFC3D268); + psx_taken_BFC3D268 = (psx_brA_BFC3D268 == psx_brB_BFC3D268); /* 0xBFC3D26C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D268) goto label_BFC3D27C; @@ -194973,7 +200349,7 @@ label_BFC3D27C: psx_check_interrupts(cpu); /* 0xBFC3D27C: 14600004 bne $v1, $zero, 0xBFC3D290 */ uint32_t psx_brA_BFC3D27C = cpu->gpr[3]; uint32_t psx_brB_BFC3D27C = cpu->gpr[0]; - int psx_taken_BFC3D27C = (psx_brA_BFC3D27C != psx_brB_BFC3D27C); + psx_taken_BFC3D27C = (psx_brA_BFC3D27C != psx_brB_BFC3D27C); /* 0xBFC3D280: 3C011000 lui $at, 0x1000 */ cpu->gpr[1] = 0x10000000u; if (psx_taken_BFC3D27C) goto label_BFC3D290; @@ -194986,7 +200362,7 @@ label_BFC3D284: cpu->gpr[10] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D288: 11400004 beq $t2, $zero, 0xBFC3D29C */ uint32_t psx_brA_BFC3D288 = cpu->gpr[10]; uint32_t psx_brB_BFC3D288 = cpu->gpr[0]; - int psx_taken_BFC3D288 = (psx_brA_BFC3D288 == psx_brB_BFC3D288); + psx_taken_BFC3D288 = (psx_brA_BFC3D288 == psx_brB_BFC3D288); /* 0xBFC3D28C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D288) goto label_BFC3D29C; @@ -195008,7 +200384,7 @@ label_BFC3D29C: psx_check_interrupts(cpu); /* 0xBFC3D29C: 14600004 bne $v1, $zero, 0xBFC3D2B0 */ uint32_t psx_brA_BFC3D29C = cpu->gpr[3]; uint32_t psx_brB_BFC3D29C = cpu->gpr[0]; - int psx_taken_BFC3D29C = (psx_brA_BFC3D29C != psx_brB_BFC3D29C); + psx_taken_BFC3D29C = (psx_brA_BFC3D29C != psx_brB_BFC3D29C); /* 0xBFC3D2A0: 3C012000 lui $at, 0x2000 */ cpu->gpr[1] = 0x20000000u; if (psx_taken_BFC3D29C) goto label_BFC3D2B0; @@ -195021,7 +200397,7 @@ label_BFC3D2A4: cpu->gpr[12] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D2A8: 11800004 beq $t4, $zero, 0xBFC3D2BC */ uint32_t psx_brA_BFC3D2A8 = cpu->gpr[12]; uint32_t psx_brB_BFC3D2A8 = cpu->gpr[0]; - int psx_taken_BFC3D2A8 = (psx_brA_BFC3D2A8 == psx_brB_BFC3D2A8); + psx_taken_BFC3D2A8 = (psx_brA_BFC3D2A8 == psx_brB_BFC3D2A8); /* 0xBFC3D2AC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D2A8) goto label_BFC3D2BC; @@ -195043,7 +200419,7 @@ label_BFC3D2BC: psx_check_interrupts(cpu); /* 0xBFC3D2BC: 14600004 bne $v1, $zero, 0xBFC3D2D0 */ uint32_t psx_brA_BFC3D2BC = cpu->gpr[3]; uint32_t psx_brB_BFC3D2BC = cpu->gpr[0]; - int psx_taken_BFC3D2BC = (psx_brA_BFC3D2BC != psx_brB_BFC3D2BC); + psx_taken_BFC3D2BC = (psx_brA_BFC3D2BC != psx_brB_BFC3D2BC); /* 0xBFC3D2C0: 3C014000 lui $at, 0x4000 */ cpu->gpr[1] = 0x40000000u; if (psx_taken_BFC3D2BC) goto label_BFC3D2D0; @@ -195056,7 +200432,7 @@ label_BFC3D2C4: cpu->gpr[14] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D2C8: 11C00004 beq $t6, $zero, 0xBFC3D2DC */ uint32_t psx_brA_BFC3D2C8 = cpu->gpr[14]; uint32_t psx_brB_BFC3D2C8 = cpu->gpr[0]; - int psx_taken_BFC3D2C8 = (psx_brA_BFC3D2C8 == psx_brB_BFC3D2C8); + psx_taken_BFC3D2C8 = (psx_brA_BFC3D2C8 == psx_brB_BFC3D2C8); /* 0xBFC3D2CC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D2C8) goto label_BFC3D2DC; @@ -195078,7 +200454,7 @@ label_BFC3D2DC: psx_check_interrupts(cpu); /* 0xBFC3D2DC: 14600004 bne $v1, $zero, 0xBFC3D2F0 */ uint32_t psx_brA_BFC3D2DC = cpu->gpr[3]; uint32_t psx_brB_BFC3D2DC = cpu->gpr[0]; - int psx_taken_BFC3D2DC = (psx_brA_BFC3D2DC != psx_brB_BFC3D2DC); + psx_taken_BFC3D2DC = (psx_brA_BFC3D2DC != psx_brB_BFC3D2DC); /* 0xBFC3D2E0: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC3D2DC) goto label_BFC3D2F0; @@ -195091,7 +200467,7 @@ label_BFC3D2E4: cpu->gpr[24] = cpu->gpr[2] & cpu->gpr[1]; /* 0xBFC3D2E8: 13000004 beq $t8, $zero, 0xBFC3D2FC */ uint32_t psx_brA_BFC3D2E8 = cpu->gpr[24]; uint32_t psx_brB_BFC3D2E8 = cpu->gpr[0]; - int psx_taken_BFC3D2E8 = (psx_brA_BFC3D2E8 == psx_brB_BFC3D2E8); + psx_taken_BFC3D2E8 = (psx_brA_BFC3D2E8 == psx_brB_BFC3D2E8); /* 0xBFC3D2EC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D2E8) goto label_BFC3D2FC; @@ -195119,6 +200495,49 @@ label_BFC3D2FC: void func_1FC3D304(CPUState* cpu) { debug_server_log_call_entry(0x1FC3D304u); + int psx_taken_BFC3D30C = 0; + int psx_taken_BFC3D314 = 0; + int psx_taken_BFC3D320 = 0; + int psx_taken_BFC3D32C = 0; + int psx_taken_BFC3D33C = 0; + int psx_taken_BFC3D358 = 0; + int psx_taken_BFC3D364 = 0; + int psx_taken_BFC3D378 = 0; + int psx_taken_BFC3D384 = 0; + int psx_taken_BFC3D398 = 0; + int psx_taken_BFC3D3A4 = 0; + int psx_taken_BFC3D3B8 = 0; + int psx_taken_BFC3D3C4 = 0; + int psx_taken_BFC3D3D8 = 0; + int psx_taken_BFC3D3E4 = 0; + int psx_taken_BFC3D3F8 = 0; + int psx_taken_BFC3D404 = 0; + int psx_taken_BFC3D414 = 0; + int psx_taken_BFC3D428 = 0; + int psx_taken_BFC3D440 = 0; + int psx_taken_BFC3D44C = 0; + int psx_taken_BFC3D45C = 0; + int psx_taken_BFC3D470 = 0; + int psx_taken_BFC3D488 = 0; + int psx_taken_BFC3D494 = 0; + int psx_taken_BFC3D4A8 = 0; + int psx_taken_BFC3D4B4 = 0; + int psx_taken_BFC3D4C8 = 0; + int psx_taken_BFC3D4D4 = 0; + int psx_taken_BFC3D4E4 = 0; + int psx_taken_BFC3D4F8 = 0; + int psx_taken_BFC3D510 = 0; + int psx_taken_BFC3D51C = 0; + int psx_taken_BFC3D52C = 0; + int psx_taken_BFC3D540 = 0; + int psx_taken_BFC3D558 = 0; + int psx_taken_BFC3D564 = 0; + int psx_taken_BFC3D598 = 0; + int psx_taken_BFC3D5A4 = 0; + int psx_taken_BFC3D5D8 = 0; + int psx_taken_BFC3D5E4 = 0; + int psx_taken_BFC3D618 = 0; + int psx_taken_BFC3D624 = 0; label_BFC3D304: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -195130,7 +200549,7 @@ label_BFC3D304: /* nop */ /* 0xBFC3D30C: 14400004 bne $v0, $zero, 0xBFC3D320 */ uint32_t psx_brA_BFC3D30C = cpu->gpr[2]; uint32_t psx_brB_BFC3D30C = cpu->gpr[0]; - int psx_taken_BFC3D30C = (psx_brA_BFC3D30C != psx_brB_BFC3D30C); + psx_taken_BFC3D30C = (psx_brA_BFC3D30C != psx_brB_BFC3D30C); /* 0xBFC3D310: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3D30C) goto label_BFC3D320; @@ -195141,7 +200560,7 @@ label_BFC3D314: psx_check_interrupts(cpu); /* 0xBFC3D314: 10000002 beq $zero, $zero, 0xBFC3D320 */ uint32_t psx_brA_BFC3D314 = cpu->gpr[0]; uint32_t psx_brB_BFC3D314 = cpu->gpr[0]; - int psx_taken_BFC3D314 = (psx_brA_BFC3D314 == psx_brB_BFC3D314); + psx_taken_BFC3D314 = (psx_brA_BFC3D314 == psx_brB_BFC3D314); /* 0xBFC3D318: 24030001 addiu $v1, $zero, 1 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3D314) goto label_BFC3D320; @@ -195159,7 +200578,7 @@ label_BFC3D320: psx_check_interrupts(cpu); /* 0xBFC3D320: 14600008 bne $v1, $zero, 0xBFC3D344 */ uint32_t psx_brA_BFC3D320 = cpu->gpr[3]; uint32_t psx_brB_BFC3D320 = cpu->gpr[0]; - int psx_taken_BFC3D320 = (psx_brA_BFC3D320 != psx_brB_BFC3D320); + psx_taken_BFC3D320 = (psx_brA_BFC3D320 != psx_brB_BFC3D320); /* 0xBFC3D324: 00000000 nop */ /* nop */ if (psx_taken_BFC3D320) goto label_BFC3D344; @@ -195172,7 +200591,7 @@ label_BFC3D328: cpu->gpr[14] = cpu->gpr[2] & 0x1u; /* 0xBFC3D32C: 15C00005 bne $t6, $zero, 0xBFC3D344 */ uint32_t psx_brA_BFC3D32C = cpu->gpr[14]; uint32_t psx_brB_BFC3D32C = cpu->gpr[0]; - int psx_taken_BFC3D32C = (psx_brA_BFC3D32C != psx_brB_BFC3D32C); + psx_taken_BFC3D32C = (psx_brA_BFC3D32C != psx_brB_BFC3D32C); /* 0xBFC3D330: 00000000 nop */ /* nop */ if (psx_taken_BFC3D32C) goto label_BFC3D344; @@ -195187,7 +200606,7 @@ label_BFC3D334: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (-26720)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D338u); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC3D33C: 10000006 beq $zero, $zero, 0xBFC3D358 */ uint32_t psx_brA_BFC3D33C = cpu->gpr[0]; uint32_t psx_brB_BFC3D33C = cpu->gpr[0]; - int psx_taken_BFC3D33C = (psx_brA_BFC3D33C == psx_brB_BFC3D33C); + psx_taken_BFC3D33C = (psx_brA_BFC3D33C == psx_brB_BFC3D33C); /* 0xBFC3D340: 00000000 nop */ /* nop */ if (psx_taken_BFC3D33C) goto label_BFC3D358; @@ -195213,7 +200632,7 @@ label_BFC3D358: psx_check_interrupts(cpu); /* 0xBFC3D358: 14600004 bne $v1, $zero, 0xBFC3D36C */ uint32_t psx_brA_BFC3D358 = cpu->gpr[3]; uint32_t psx_brB_BFC3D358 = cpu->gpr[0]; - int psx_taken_BFC3D358 = (psx_brA_BFC3D358 != psx_brB_BFC3D358); + psx_taken_BFC3D358 = (psx_brA_BFC3D358 != psx_brB_BFC3D358); /* 0xBFC3D35C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D358) goto label_BFC3D36C; @@ -195226,7 +200645,7 @@ label_BFC3D360: cpu->gpr[24] = cpu->gpr[2] & 0x2u; /* 0xBFC3D364: 13000004 beq $t8, $zero, 0xBFC3D378 */ uint32_t psx_brA_BFC3D364 = cpu->gpr[24]; uint32_t psx_brB_BFC3D364 = cpu->gpr[0]; - int psx_taken_BFC3D364 = (psx_brA_BFC3D364 == psx_brB_BFC3D364); + psx_taken_BFC3D364 = (psx_brA_BFC3D364 == psx_brB_BFC3D364); /* 0xBFC3D368: 00000000 nop */ /* nop */ if (psx_taken_BFC3D364) goto label_BFC3D378; @@ -195248,7 +200667,7 @@ label_BFC3D378: psx_check_interrupts(cpu); /* 0xBFC3D378: 14600004 bne $v1, $zero, 0xBFC3D38C */ uint32_t psx_brA_BFC3D378 = cpu->gpr[3]; uint32_t psx_brB_BFC3D378 = cpu->gpr[0]; - int psx_taken_BFC3D378 = (psx_brA_BFC3D378 != psx_brB_BFC3D378); + psx_taken_BFC3D378 = (psx_brA_BFC3D378 != psx_brB_BFC3D378); /* 0xBFC3D37C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D378) goto label_BFC3D38C; @@ -195261,7 +200680,7 @@ label_BFC3D380: cpu->gpr[8] = cpu->gpr[2] & 0x4u; /* 0xBFC3D384: 11000004 beq $t0, $zero, 0xBFC3D398 */ uint32_t psx_brA_BFC3D384 = cpu->gpr[8]; uint32_t psx_brB_BFC3D384 = cpu->gpr[0]; - int psx_taken_BFC3D384 = (psx_brA_BFC3D384 == psx_brB_BFC3D384); + psx_taken_BFC3D384 = (psx_brA_BFC3D384 == psx_brB_BFC3D384); /* 0xBFC3D388: 00000000 nop */ /* nop */ if (psx_taken_BFC3D384) goto label_BFC3D398; @@ -195283,7 +200702,7 @@ label_BFC3D398: psx_check_interrupts(cpu); /* 0xBFC3D398: 14600004 bne $v1, $zero, 0xBFC3D3AC */ uint32_t psx_brA_BFC3D398 = cpu->gpr[3]; uint32_t psx_brB_BFC3D398 = cpu->gpr[0]; - int psx_taken_BFC3D398 = (psx_brA_BFC3D398 != psx_brB_BFC3D398); + psx_taken_BFC3D398 = (psx_brA_BFC3D398 != psx_brB_BFC3D398); /* 0xBFC3D39C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D398) goto label_BFC3D3AC; @@ -195296,7 +200715,7 @@ label_BFC3D3A0: cpu->gpr[10] = cpu->gpr[2] & 0x8u; /* 0xBFC3D3A4: 11400004 beq $t2, $zero, 0xBFC3D3B8 */ uint32_t psx_brA_BFC3D3A4 = cpu->gpr[10]; uint32_t psx_brB_BFC3D3A4 = cpu->gpr[0]; - int psx_taken_BFC3D3A4 = (psx_brA_BFC3D3A4 == psx_brB_BFC3D3A4); + psx_taken_BFC3D3A4 = (psx_brA_BFC3D3A4 == psx_brB_BFC3D3A4); /* 0xBFC3D3A8: 00000000 nop */ /* nop */ if (psx_taken_BFC3D3A4) goto label_BFC3D3B8; @@ -195318,7 +200737,7 @@ label_BFC3D3B8: psx_check_interrupts(cpu); /* 0xBFC3D3B8: 14600004 bne $v1, $zero, 0xBFC3D3CC */ uint32_t psx_brA_BFC3D3B8 = cpu->gpr[3]; uint32_t psx_brB_BFC3D3B8 = cpu->gpr[0]; - int psx_taken_BFC3D3B8 = (psx_brA_BFC3D3B8 != psx_brB_BFC3D3B8); + psx_taken_BFC3D3B8 = (psx_brA_BFC3D3B8 != psx_brB_BFC3D3B8); /* 0xBFC3D3BC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D3B8) goto label_BFC3D3CC; @@ -195331,7 +200750,7 @@ label_BFC3D3C0: cpu->gpr[12] = cpu->gpr[2] & 0x10u; /* 0xBFC3D3C4: 11800004 beq $t4, $zero, 0xBFC3D3D8 */ uint32_t psx_brA_BFC3D3C4 = cpu->gpr[12]; uint32_t psx_brB_BFC3D3C4 = cpu->gpr[0]; - int psx_taken_BFC3D3C4 = (psx_brA_BFC3D3C4 == psx_brB_BFC3D3C4); + psx_taken_BFC3D3C4 = (psx_brA_BFC3D3C4 == psx_brB_BFC3D3C4); /* 0xBFC3D3C8: 00000000 nop */ /* nop */ if (psx_taken_BFC3D3C4) goto label_BFC3D3D8; @@ -195353,7 +200772,7 @@ label_BFC3D3D8: psx_check_interrupts(cpu); /* 0xBFC3D3D8: 14600004 bne $v1, $zero, 0xBFC3D3EC */ uint32_t psx_brA_BFC3D3D8 = cpu->gpr[3]; uint32_t psx_brB_BFC3D3D8 = cpu->gpr[0]; - int psx_taken_BFC3D3D8 = (psx_brA_BFC3D3D8 != psx_brB_BFC3D3D8); + psx_taken_BFC3D3D8 = (psx_brA_BFC3D3D8 != psx_brB_BFC3D3D8); /* 0xBFC3D3DC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D3D8) goto label_BFC3D3EC; @@ -195366,7 +200785,7 @@ label_BFC3D3E0: cpu->gpr[14] = cpu->gpr[2] & 0x20u; /* 0xBFC3D3E4: 11C00004 beq $t6, $zero, 0xBFC3D3F8 */ uint32_t psx_brA_BFC3D3E4 = cpu->gpr[14]; uint32_t psx_brB_BFC3D3E4 = cpu->gpr[0]; - int psx_taken_BFC3D3E4 = (psx_brA_BFC3D3E4 == psx_brB_BFC3D3E4); + psx_taken_BFC3D3E4 = (psx_brA_BFC3D3E4 == psx_brB_BFC3D3E4); /* 0xBFC3D3E8: 00000000 nop */ /* nop */ if (psx_taken_BFC3D3E4) goto label_BFC3D3F8; @@ -195388,7 +200807,7 @@ label_BFC3D3F8: psx_check_interrupts(cpu); /* 0xBFC3D3F8: 14600004 bne $v1, $zero, 0xBFC3D40C */ uint32_t psx_brA_BFC3D3F8 = cpu->gpr[3]; uint32_t psx_brB_BFC3D3F8 = cpu->gpr[0]; - int psx_taken_BFC3D3F8 = (psx_brA_BFC3D3F8 != psx_brB_BFC3D3F8); + psx_taken_BFC3D3F8 = (psx_brA_BFC3D3F8 != psx_brB_BFC3D3F8); /* 0xBFC3D3FC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D3F8) goto label_BFC3D40C; @@ -195401,7 +200820,7 @@ label_BFC3D400: cpu->gpr[24] = cpu->gpr[2] & 0x100u; /* 0xBFC3D404: 1300000E beq $t8, $zero, 0xBFC3D440 */ uint32_t psx_brA_BFC3D404 = cpu->gpr[24]; uint32_t psx_brB_BFC3D404 = cpu->gpr[0]; - int psx_taken_BFC3D404 = (psx_brA_BFC3D404 == psx_brB_BFC3D404); + psx_taken_BFC3D404 = (psx_brA_BFC3D404 == psx_brB_BFC3D404); /* 0xBFC3D408: 00000000 nop */ /* nop */ if (psx_taken_BFC3D404) goto label_BFC3D440; @@ -195416,7 +200835,7 @@ label_BFC3D40C: /* nop */ /* 0xBFC3D414: 17200006 bne $t9, $zero, 0xBFC3D430 */ uint32_t psx_brA_BFC3D414 = cpu->gpr[25]; uint32_t psx_brB_BFC3D414 = cpu->gpr[0]; - int psx_taken_BFC3D414 = (psx_brA_BFC3D414 != psx_brB_BFC3D414); + psx_taken_BFC3D414 = (psx_brA_BFC3D414 != psx_brB_BFC3D414); /* 0xBFC3D418: 00000000 nop */ /* nop */ if (psx_taken_BFC3D414) goto label_BFC3D430; @@ -195433,7 +200852,7 @@ label_BFC3D41C: cpu->gpr[9] = cpu->gpr[8] & 0xFFFBu; /* 0xBFC3D428: 10000005 beq $zero, $zero, 0xBFC3D440 */ uint32_t psx_brA_BFC3D428 = cpu->gpr[0]; uint32_t psx_brB_BFC3D428 = cpu->gpr[0]; - int psx_taken_BFC3D428 = (psx_brA_BFC3D428 == psx_brB_BFC3D428); + psx_taken_BFC3D428 = (psx_brA_BFC3D428 == psx_brB_BFC3D428); /* 0xBFC3D42C: A4A901AA sh $t1, 426($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (426)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D42Cu); return; } g_debug_last_store_pc = 0xBFC3D42Cu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[9] & 0xFFFFu)); } if (psx_taken_BFC3D428) goto label_BFC3D440; @@ -195457,7 +200876,7 @@ label_BFC3D440: psx_check_interrupts(cpu); /* 0xBFC3D440: 14600004 bne $v1, $zero, 0xBFC3D454 */ uint32_t psx_brA_BFC3D440 = cpu->gpr[3]; uint32_t psx_brB_BFC3D440 = cpu->gpr[0]; - int psx_taken_BFC3D440 = (psx_brA_BFC3D440 != psx_brB_BFC3D440); + psx_taken_BFC3D440 = (psx_brA_BFC3D440 != psx_brB_BFC3D440); /* 0xBFC3D444: 00000000 nop */ /* nop */ if (psx_taken_BFC3D440) goto label_BFC3D454; @@ -195470,7 +200889,7 @@ label_BFC3D448: cpu->gpr[12] = cpu->gpr[2] & 0x400u; /* 0xBFC3D44C: 1180000E beq $t4, $zero, 0xBFC3D488 */ uint32_t psx_brA_BFC3D44C = cpu->gpr[12]; uint32_t psx_brB_BFC3D44C = cpu->gpr[0]; - int psx_taken_BFC3D44C = (psx_brA_BFC3D44C == psx_brB_BFC3D44C); + psx_taken_BFC3D44C = (psx_brA_BFC3D44C == psx_brB_BFC3D44C); /* 0xBFC3D450: 00000000 nop */ /* nop */ if (psx_taken_BFC3D44C) goto label_BFC3D488; @@ -195485,7 +200904,7 @@ label_BFC3D454: /* nop */ /* 0xBFC3D45C: 15A00006 bne $t5, $zero, 0xBFC3D478 */ uint32_t psx_brA_BFC3D45C = cpu->gpr[13]; uint32_t psx_brB_BFC3D45C = cpu->gpr[0]; - int psx_taken_BFC3D45C = (psx_brA_BFC3D45C != psx_brB_BFC3D45C); + psx_taken_BFC3D45C = (psx_brA_BFC3D45C != psx_brB_BFC3D45C); /* 0xBFC3D460: 00000000 nop */ /* nop */ if (psx_taken_BFC3D45C) goto label_BFC3D478; @@ -195502,7 +200921,7 @@ label_BFC3D464: cpu->gpr[15] = cpu->gpr[14] & 0xFFFEu; /* 0xBFC3D470: 10000005 beq $zero, $zero, 0xBFC3D488 */ uint32_t psx_brA_BFC3D470 = cpu->gpr[0]; uint32_t psx_brB_BFC3D470 = cpu->gpr[0]; - int psx_taken_BFC3D470 = (psx_brA_BFC3D470 == psx_brB_BFC3D470); + psx_taken_BFC3D470 = (psx_brA_BFC3D470 == psx_brB_BFC3D470); /* 0xBFC3D474: A4AF01AA sh $t7, 426($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (426)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D474u); return; } g_debug_last_store_pc = 0xBFC3D474u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[15] & 0xFFFFu)); } if (psx_taken_BFC3D470) goto label_BFC3D488; @@ -195526,7 +200945,7 @@ label_BFC3D488: psx_check_interrupts(cpu); /* 0xBFC3D488: 14600004 bne $v1, $zero, 0xBFC3D49C */ uint32_t psx_brA_BFC3D488 = cpu->gpr[3]; uint32_t psx_brB_BFC3D488 = cpu->gpr[0]; - int psx_taken_BFC3D488 = (psx_brA_BFC3D488 != psx_brB_BFC3D488); + psx_taken_BFC3D488 = (psx_brA_BFC3D488 != psx_brB_BFC3D488); /* 0xBFC3D48C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D488) goto label_BFC3D49C; @@ -195539,7 +200958,7 @@ label_BFC3D490: cpu->gpr[8] = cpu->gpr[2] & 0x40u; /* 0xBFC3D494: 11000004 beq $t0, $zero, 0xBFC3D4A8 */ uint32_t psx_brA_BFC3D494 = cpu->gpr[8]; uint32_t psx_brB_BFC3D494 = cpu->gpr[0]; - int psx_taken_BFC3D494 = (psx_brA_BFC3D494 == psx_brB_BFC3D494); + psx_taken_BFC3D494 = (psx_brA_BFC3D494 == psx_brB_BFC3D494); /* 0xBFC3D498: 00000000 nop */ /* nop */ if (psx_taken_BFC3D494) goto label_BFC3D4A8; @@ -195561,7 +200980,7 @@ label_BFC3D4A8: psx_check_interrupts(cpu); /* 0xBFC3D4A8: 14600004 bne $v1, $zero, 0xBFC3D4BC */ uint32_t psx_brA_BFC3D4A8 = cpu->gpr[3]; uint32_t psx_brB_BFC3D4A8 = cpu->gpr[0]; - int psx_taken_BFC3D4A8 = (psx_brA_BFC3D4A8 != psx_brB_BFC3D4A8); + psx_taken_BFC3D4A8 = (psx_brA_BFC3D4A8 != psx_brB_BFC3D4A8); /* 0xBFC3D4AC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D4A8) goto label_BFC3D4BC; @@ -195574,7 +200993,7 @@ label_BFC3D4B0: cpu->gpr[10] = cpu->gpr[2] & 0x80u; /* 0xBFC3D4B4: 11400004 beq $t2, $zero, 0xBFC3D4C8 */ uint32_t psx_brA_BFC3D4B4 = cpu->gpr[10]; uint32_t psx_brB_BFC3D4B4 = cpu->gpr[0]; - int psx_taken_BFC3D4B4 = (psx_brA_BFC3D4B4 == psx_brB_BFC3D4B4); + psx_taken_BFC3D4B4 = (psx_brA_BFC3D4B4 == psx_brB_BFC3D4B4); /* 0xBFC3D4B8: 00000000 nop */ /* nop */ if (psx_taken_BFC3D4B4) goto label_BFC3D4C8; @@ -195596,7 +201015,7 @@ label_BFC3D4C8: psx_check_interrupts(cpu); /* 0xBFC3D4C8: 14600004 bne $v1, $zero, 0xBFC3D4DC */ uint32_t psx_brA_BFC3D4C8 = cpu->gpr[3]; uint32_t psx_brB_BFC3D4C8 = cpu->gpr[0]; - int psx_taken_BFC3D4C8 = (psx_brA_BFC3D4C8 != psx_brB_BFC3D4C8); + psx_taken_BFC3D4C8 = (psx_brA_BFC3D4C8 != psx_brB_BFC3D4C8); /* 0xBFC3D4CC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D4C8) goto label_BFC3D4DC; @@ -195609,7 +201028,7 @@ label_BFC3D4D0: cpu->gpr[12] = cpu->gpr[2] & 0x200u; /* 0xBFC3D4D4: 1180000E beq $t4, $zero, 0xBFC3D510 */ uint32_t psx_brA_BFC3D4D4 = cpu->gpr[12]; uint32_t psx_brB_BFC3D4D4 = cpu->gpr[0]; - int psx_taken_BFC3D4D4 = (psx_brA_BFC3D4D4 == psx_brB_BFC3D4D4); + psx_taken_BFC3D4D4 = (psx_brA_BFC3D4D4 == psx_brB_BFC3D4D4); /* 0xBFC3D4D8: 00000000 nop */ /* nop */ if (psx_taken_BFC3D4D4) goto label_BFC3D510; @@ -195624,7 +201043,7 @@ label_BFC3D4DC: /* nop */ /* 0xBFC3D4E4: 15A00006 bne $t5, $zero, 0xBFC3D500 */ uint32_t psx_brA_BFC3D4E4 = cpu->gpr[13]; uint32_t psx_brB_BFC3D4E4 = cpu->gpr[0]; - int psx_taken_BFC3D4E4 = (psx_brA_BFC3D4E4 != psx_brB_BFC3D4E4); + psx_taken_BFC3D4E4 = (psx_brA_BFC3D4E4 != psx_brB_BFC3D4E4); /* 0xBFC3D4E8: 00000000 nop */ /* nop */ if (psx_taken_BFC3D4E4) goto label_BFC3D500; @@ -195641,7 +201060,7 @@ label_BFC3D4EC: cpu->gpr[15] = cpu->gpr[14] & 0xFFF7u; /* 0xBFC3D4F8: 10000005 beq $zero, $zero, 0xBFC3D510 */ uint32_t psx_brA_BFC3D4F8 = cpu->gpr[0]; uint32_t psx_brB_BFC3D4F8 = cpu->gpr[0]; - int psx_taken_BFC3D4F8 = (psx_brA_BFC3D4F8 == psx_brB_BFC3D4F8); + psx_taken_BFC3D4F8 = (psx_brA_BFC3D4F8 == psx_brB_BFC3D4F8); /* 0xBFC3D4FC: A4AF01AA sh $t7, 426($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (426)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D4FCu); return; } g_debug_last_store_pc = 0xBFC3D4FCu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[15] & 0xFFFFu)); } if (psx_taken_BFC3D4F8) goto label_BFC3D510; @@ -195665,7 +201084,7 @@ label_BFC3D510: psx_check_interrupts(cpu); /* 0xBFC3D510: 14600004 bne $v1, $zero, 0xBFC3D524 */ uint32_t psx_brA_BFC3D510 = cpu->gpr[3]; uint32_t psx_brB_BFC3D510 = cpu->gpr[0]; - int psx_taken_BFC3D510 = (psx_brA_BFC3D510 != psx_brB_BFC3D510); + psx_taken_BFC3D510 = (psx_brA_BFC3D510 != psx_brB_BFC3D510); /* 0xBFC3D514: 00000000 nop */ /* nop */ if (psx_taken_BFC3D510) goto label_BFC3D524; @@ -195678,7 +201097,7 @@ label_BFC3D518: cpu->gpr[8] = cpu->gpr[2] & 0x800u; /* 0xBFC3D51C: 1100000E beq $t0, $zero, 0xBFC3D558 */ uint32_t psx_brA_BFC3D51C = cpu->gpr[8]; uint32_t psx_brB_BFC3D51C = cpu->gpr[0]; - int psx_taken_BFC3D51C = (psx_brA_BFC3D51C == psx_brB_BFC3D51C); + psx_taken_BFC3D51C = (psx_brA_BFC3D51C == psx_brB_BFC3D51C); /* 0xBFC3D520: 00000000 nop */ /* nop */ if (psx_taken_BFC3D51C) goto label_BFC3D558; @@ -195693,7 +201112,7 @@ label_BFC3D524: /* nop */ /* 0xBFC3D52C: 15200006 bne $t1, $zero, 0xBFC3D548 */ uint32_t psx_brA_BFC3D52C = cpu->gpr[9]; uint32_t psx_brB_BFC3D52C = cpu->gpr[0]; - int psx_taken_BFC3D52C = (psx_brA_BFC3D52C != psx_brB_BFC3D52C); + psx_taken_BFC3D52C = (psx_brA_BFC3D52C != psx_brB_BFC3D52C); /* 0xBFC3D530: 00000000 nop */ /* nop */ if (psx_taken_BFC3D52C) goto label_BFC3D548; @@ -195710,7 +201129,7 @@ label_BFC3D534: cpu->gpr[11] = cpu->gpr[10] & 0xFFFDu; /* 0xBFC3D540: 10000005 beq $zero, $zero, 0xBFC3D558 */ uint32_t psx_brA_BFC3D540 = cpu->gpr[0]; uint32_t psx_brB_BFC3D540 = cpu->gpr[0]; - int psx_taken_BFC3D540 = (psx_brA_BFC3D540 == psx_brB_BFC3D540); + psx_taken_BFC3D540 = (psx_brA_BFC3D540 == psx_brB_BFC3D540); /* 0xBFC3D544: A4AB01AA sh $t3, 426($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (426)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D544u); return; } g_debug_last_store_pc = 0xBFC3D544u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[11] & 0xFFFFu)); } if (psx_taken_BFC3D540) goto label_BFC3D558; @@ -195734,7 +201153,7 @@ label_BFC3D558: psx_check_interrupts(cpu); /* 0xBFC3D558: 14600004 bne $v1, $zero, 0xBFC3D56C */ uint32_t psx_brA_BFC3D558 = cpu->gpr[3]; uint32_t psx_brB_BFC3D558 = cpu->gpr[0]; - int psx_taken_BFC3D558 = (psx_brA_BFC3D558 != psx_brB_BFC3D558); + psx_taken_BFC3D558 = (psx_brA_BFC3D558 != psx_brB_BFC3D558); /* 0xBFC3D55C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D558) goto label_BFC3D56C; @@ -195747,7 +201166,7 @@ label_BFC3D560: cpu->gpr[14] = cpu->gpr[2] & 0x1000u; /* 0xBFC3D564: 11C0000C beq $t6, $zero, 0xBFC3D598 */ uint32_t psx_brA_BFC3D564 = cpu->gpr[14]; uint32_t psx_brB_BFC3D564 = cpu->gpr[0]; - int psx_taken_BFC3D564 = (psx_brA_BFC3D564 == psx_brB_BFC3D564); + psx_taken_BFC3D564 = (psx_brA_BFC3D564 == psx_brB_BFC3D564); /* 0xBFC3D568: 00000000 nop */ /* nop */ if (psx_taken_BFC3D564) goto label_BFC3D598; @@ -195785,7 +201204,7 @@ label_BFC3D598: psx_check_interrupts(cpu); /* 0xBFC3D598: 14600004 bne $v1, $zero, 0xBFC3D5AC */ uint32_t psx_brA_BFC3D598 = cpu->gpr[3]; uint32_t psx_brB_BFC3D598 = cpu->gpr[0]; - int psx_taken_BFC3D598 = (psx_brA_BFC3D598 != psx_brB_BFC3D598); + psx_taken_BFC3D598 = (psx_brA_BFC3D598 != psx_brB_BFC3D598); /* 0xBFC3D59C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D598) goto label_BFC3D5AC; @@ -195798,7 +201217,7 @@ label_BFC3D5A0: cpu->gpr[13] = cpu->gpr[2] & 0x2000u; /* 0xBFC3D5A4: 11A0000C beq $t5, $zero, 0xBFC3D5D8 */ uint32_t psx_brA_BFC3D5A4 = cpu->gpr[13]; uint32_t psx_brB_BFC3D5A4 = cpu->gpr[0]; - int psx_taken_BFC3D5A4 = (psx_brA_BFC3D5A4 == psx_brB_BFC3D5A4); + psx_taken_BFC3D5A4 = (psx_brA_BFC3D5A4 == psx_brB_BFC3D5A4); /* 0xBFC3D5A8: 00000000 nop */ /* nop */ if (psx_taken_BFC3D5A4) goto label_BFC3D5D8; @@ -195836,7 +201255,7 @@ label_BFC3D5D8: psx_check_interrupts(cpu); /* 0xBFC3D5D8: 14600004 bne $v1, $zero, 0xBFC3D5EC */ uint32_t psx_brA_BFC3D5D8 = cpu->gpr[3]; uint32_t psx_brB_BFC3D5D8 = cpu->gpr[0]; - int psx_taken_BFC3D5D8 = (psx_brA_BFC3D5D8 != psx_brB_BFC3D5D8); + psx_taken_BFC3D5D8 = (psx_brA_BFC3D5D8 != psx_brB_BFC3D5D8); /* 0xBFC3D5DC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D5D8) goto label_BFC3D5EC; @@ -195849,7 +201268,7 @@ label_BFC3D5E0: cpu->gpr[12] = cpu->gpr[2] & 0x4000u; /* 0xBFC3D5E4: 1180000C beq $t4, $zero, 0xBFC3D618 */ uint32_t psx_brA_BFC3D5E4 = cpu->gpr[12]; uint32_t psx_brB_BFC3D5E4 = cpu->gpr[0]; - int psx_taken_BFC3D5E4 = (psx_brA_BFC3D5E4 == psx_brB_BFC3D5E4); + psx_taken_BFC3D5E4 = (psx_brA_BFC3D5E4 == psx_brB_BFC3D5E4); /* 0xBFC3D5E8: 00000000 nop */ /* nop */ if (psx_taken_BFC3D5E4) goto label_BFC3D618; @@ -195887,7 +201306,7 @@ label_BFC3D618: psx_check_interrupts(cpu); /* 0xBFC3D618: 14600004 bne $v1, $zero, 0xBFC3D62C */ uint32_t psx_brA_BFC3D618 = cpu->gpr[3]; uint32_t psx_brB_BFC3D618 = cpu->gpr[0]; - int psx_taken_BFC3D618 = (psx_brA_BFC3D618 != psx_brB_BFC3D618); + psx_taken_BFC3D618 = (psx_brA_BFC3D618 != psx_brB_BFC3D618); /* 0xBFC3D61C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D618) goto label_BFC3D62C; @@ -195900,7 +201319,7 @@ label_BFC3D620: cpu->gpr[11] = cpu->gpr[2] & 0x8000u; /* 0xBFC3D624: 1160000B beq $t3, $zero, 0xBFC3D654 */ uint32_t psx_brA_BFC3D624 = cpu->gpr[11]; uint32_t psx_brB_BFC3D624 = cpu->gpr[0]; - int psx_taken_BFC3D624 = (psx_brA_BFC3D624 == psx_brB_BFC3D624); + psx_taken_BFC3D624 = (psx_brA_BFC3D624 == psx_brB_BFC3D624); /* 0xBFC3D628: 00000000 nop */ /* nop */ if (psx_taken_BFC3D624) goto label_BFC3D654; @@ -195942,6 +201361,18 @@ label_BFC3D654: void func_1FC3D65C(CPUState* cpu) { debug_server_log_call_entry(0x1FC3D65Cu); + int psx_taken_BFC3D6D4 = 0; + int psx_taken_BFC3D6E0 = 0; + int psx_taken_BFC3D6FC = 0; + int psx_taken_BFC3D704 = 0; + int psx_taken_BFC3D73C = 0; + int psx_taken_BFC3D744 = 0; + int psx_taken_BFC3D75C = 0; + int psx_taken_BFC3D764 = 0; + int psx_taken_BFC3D790 = 0; + int psx_taken_BFC3D79C = 0; + int psx_taken_BFC3D7C8 = 0; + int psx_taken_BFC3D7D4 = 0; label_BFC3D65C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(32u); @@ -196009,7 +201440,7 @@ label_BFC3D65C: cpu->gpr[25] = cpu->gpr[24] & 0x4u; /* 0xBFC3D6D4: 13200004 beq $t9, $zero, 0xBFC3D6E8 */ uint32_t psx_brA_BFC3D6D4 = cpu->gpr[25]; uint32_t psx_brB_BFC3D6D4 = cpu->gpr[0]; - int psx_taken_BFC3D6D4 = (psx_brA_BFC3D6D4 == psx_brB_BFC3D6D4); + psx_taken_BFC3D6D4 = (psx_brA_BFC3D6D4 == psx_brB_BFC3D6D4); /* 0xBFC3D6D8: 00000000 nop */ /* nop */ if (psx_taken_BFC3D6D4) goto label_BFC3D6E8; @@ -196022,7 +201453,7 @@ label_BFC3D6DC: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC3D6E0: 10000003 beq $zero, $zero, 0xBFC3D6F0 */ uint32_t psx_brA_BFC3D6E0 = cpu->gpr[0]; uint32_t psx_brB_BFC3D6E0 = cpu->gpr[0]; - int psx_taken_BFC3D6E0 = (psx_brA_BFC3D6E0 == psx_brB_BFC3D6E0); + psx_taken_BFC3D6E0 = (psx_brA_BFC3D6E0 == psx_brB_BFC3D6E0); /* 0xBFC3D6E4: AC820010 sw $v0, 16($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (16)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D6E4u); return; } g_debug_last_store_pc = 0xBFC3D6E4u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC3D6E0) goto label_BFC3D6F0; @@ -196048,7 +201479,7 @@ label_BFC3D6F0: cpu->gpr[9] = cpu->gpr[8] & 0x1u; /* 0xBFC3D6FC: 11200003 beq $t1, $zero, 0xBFC3D70C */ uint32_t psx_brA_BFC3D6FC = cpu->gpr[9]; uint32_t psx_brB_BFC3D6FC = cpu->gpr[0]; - int psx_taken_BFC3D6FC = (psx_brA_BFC3D6FC == psx_brB_BFC3D6FC); + psx_taken_BFC3D6FC = (psx_brA_BFC3D6FC == psx_brB_BFC3D6FC); /* 0xBFC3D700: 00000000 nop */ /* nop */ if (psx_taken_BFC3D6FC) goto label_BFC3D70C; @@ -196059,7 +201490,7 @@ label_BFC3D704: psx_check_interrupts(cpu); /* 0xBFC3D704: 10000002 beq $zero, $zero, 0xBFC3D710 */ uint32_t psx_brA_BFC3D704 = cpu->gpr[0]; uint32_t psx_brB_BFC3D704 = cpu->gpr[0]; - int psx_taken_BFC3D704 = (psx_brA_BFC3D704 == psx_brB_BFC3D704); + psx_taken_BFC3D704 = (psx_brA_BFC3D704 == psx_brB_BFC3D704); /* 0xBFC3D708: AC820014 sw $v0, 20($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D708u); return; } g_debug_last_store_pc = 0xBFC3D708u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC3D704) goto label_BFC3D710; @@ -196099,7 +201530,7 @@ label_BFC3D710: cpu->gpr[15] = cpu->gpr[14] & 0x8u; /* 0xBFC3D73C: 11E00003 beq $t7, $zero, 0xBFC3D74C */ uint32_t psx_brA_BFC3D73C = cpu->gpr[15]; uint32_t psx_brB_BFC3D73C = cpu->gpr[0]; - int psx_taken_BFC3D73C = (psx_brA_BFC3D73C == psx_brB_BFC3D73C); + psx_taken_BFC3D73C = (psx_brA_BFC3D73C == psx_brB_BFC3D73C); /* 0xBFC3D740: 00000000 nop */ /* nop */ if (psx_taken_BFC3D73C) goto label_BFC3D74C; @@ -196110,7 +201541,7 @@ label_BFC3D744: psx_check_interrupts(cpu); /* 0xBFC3D744: 10000002 beq $zero, $zero, 0xBFC3D750 */ uint32_t psx_brA_BFC3D744 = cpu->gpr[0]; uint32_t psx_brB_BFC3D744 = cpu->gpr[0]; - int psx_taken_BFC3D744 = (psx_brA_BFC3D744 == psx_brB_BFC3D744); + psx_taken_BFC3D744 = (psx_brA_BFC3D744 == psx_brB_BFC3D744); /* 0xBFC3D748: AC82001C sw $v0, 28($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D748u); return; } g_debug_last_store_pc = 0xBFC3D748u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC3D744) goto label_BFC3D750; @@ -196134,7 +201565,7 @@ label_BFC3D750: cpu->gpr[25] = cpu->gpr[24] & 0x2u; /* 0xBFC3D75C: 13200003 beq $t9, $zero, 0xBFC3D76C */ uint32_t psx_brA_BFC3D75C = cpu->gpr[25]; uint32_t psx_brB_BFC3D75C = cpu->gpr[0]; - int psx_taken_BFC3D75C = (psx_brA_BFC3D75C == psx_brB_BFC3D75C); + psx_taken_BFC3D75C = (psx_brA_BFC3D75C == psx_brB_BFC3D75C); /* 0xBFC3D760: 00000000 nop */ /* nop */ if (psx_taken_BFC3D75C) goto label_BFC3D76C; @@ -196145,7 +201576,7 @@ label_BFC3D764: psx_check_interrupts(cpu); /* 0xBFC3D764: 10000002 beq $zero, $zero, 0xBFC3D770 */ uint32_t psx_brA_BFC3D764 = cpu->gpr[0]; uint32_t psx_brB_BFC3D764 = cpu->gpr[0]; - int psx_taken_BFC3D764 = (psx_brA_BFC3D764 == psx_brB_BFC3D764); + psx_taken_BFC3D764 = (psx_brA_BFC3D764 == psx_brB_BFC3D764); /* 0xBFC3D768: AC820020 sw $v0, 32($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D768u); return; } g_debug_last_store_pc = 0xBFC3D768u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC3D764) goto label_BFC3D770; @@ -196179,7 +201610,7 @@ label_BFC3D770: cpu->gpr[12] = cpu->gpr[11] & 0x80u; /* 0xBFC3D790: 11800004 beq $t4, $zero, 0xBFC3D7A4 */ uint32_t psx_brA_BFC3D790 = cpu->gpr[12]; uint32_t psx_brB_BFC3D790 = cpu->gpr[0]; - int psx_taken_BFC3D790 = (psx_brA_BFC3D790 == psx_brB_BFC3D790); + psx_taken_BFC3D790 = (psx_brA_BFC3D790 == psx_brB_BFC3D790); /* 0xBFC3D794: 00000000 nop */ /* nop */ if (psx_taken_BFC3D790) goto label_BFC3D7A4; @@ -196192,7 +201623,7 @@ label_BFC3D798: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC3D79C: 10000002 beq $zero, $zero, 0xBFC3D7A8 */ uint32_t psx_brA_BFC3D79C = cpu->gpr[0]; uint32_t psx_brB_BFC3D79C = cpu->gpr[0]; - int psx_taken_BFC3D79C = (psx_brA_BFC3D79C == psx_brB_BFC3D79C); + psx_taken_BFC3D79C = (psx_brA_BFC3D79C == psx_brB_BFC3D79C); /* 0xBFC3D7A0: A48D0026 sh $t5, 38($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (38)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D7A0u); return; } g_debug_last_store_pc = 0xBFC3D7A0u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[13] & 0xFFFFu)); } if (psx_taken_BFC3D79C) goto label_BFC3D7A8; @@ -196226,7 +201657,7 @@ label_BFC3D7A8: cpu->gpr[8] = cpu->gpr[25] & 0x1u; /* 0xBFC3D7C8: 11000004 beq $t0, $zero, 0xBFC3D7DC */ uint32_t psx_brA_BFC3D7C8 = cpu->gpr[8]; uint32_t psx_brB_BFC3D7C8 = cpu->gpr[0]; - int psx_taken_BFC3D7C8 = (psx_brA_BFC3D7C8 == psx_brB_BFC3D7C8); + psx_taken_BFC3D7C8 = (psx_brA_BFC3D7C8 == psx_brB_BFC3D7C8); /* 0xBFC3D7CC: 00000000 nop */ /* nop */ if (psx_taken_BFC3D7C8) goto label_BFC3D7DC; @@ -196239,7 +201670,7 @@ label_BFC3D7D0: cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC3D7D4: 10000002 beq $zero, $zero, 0xBFC3D7E0 */ uint32_t psx_brA_BFC3D7D4 = cpu->gpr[0]; uint32_t psx_brB_BFC3D7D4 = cpu->gpr[0]; - int psx_taken_BFC3D7D4 = (psx_brA_BFC3D7D4 == psx_brB_BFC3D7D4); + psx_taken_BFC3D7D4 = (psx_brA_BFC3D7D4 == psx_brB_BFC3D7D4); /* 0xBFC3D7D8: A489002A sh $t1, 42($a0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[4] + (42)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D7D8u); return; } g_debug_last_store_pc = 0xBFC3D7D8u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[9] & 0xFFFFu)); } if (psx_taken_BFC3D7D4) goto label_BFC3D7E0; @@ -196291,6 +201722,8 @@ void func_1FC3D810(CPUState* cpu) { default: break; } } + int psx_taken_BFC3D834 = 0; + int psx_taken_BFC3D83C = 0; label_BFC3D810: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -196321,7 +201754,7 @@ label_BFC3D828: cpu->gpr[15] = cpu->gpr[14] & 0x1u; /* 0xBFC3D834: 15E00004 bne $t7, $zero, 0xBFC3D848 */ uint32_t psx_brA_BFC3D834 = cpu->gpr[15]; uint32_t psx_brB_BFC3D834 = cpu->gpr[0]; - int psx_taken_BFC3D834 = (psx_brA_BFC3D834 != psx_brB_BFC3D834); + psx_taken_BFC3D834 = (psx_brA_BFC3D834 != psx_brB_BFC3D834); /* 0xBFC3D838: 00602821 addu $a1, $v1, $zero */ cpu->gpr[5] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC3D834) goto label_BFC3D848; @@ -196332,7 +201765,7 @@ label_BFC3D83C: psx_check_interrupts(cpu); /* 0xBFC3D83C: 1000FFFA beq $zero, $zero, 0xBFC3D828 */ uint32_t psx_brA_BFC3D83C = cpu->gpr[0]; uint32_t psx_brB_BFC3D83C = cpu->gpr[0]; - int psx_taken_BFC3D83C = (psx_brA_BFC3D83C == psx_brB_BFC3D83C); + psx_taken_BFC3D83C = (psx_brA_BFC3D83C == psx_brB_BFC3D83C); /* 0xBFC3D840: 24420010 addiu $v0, $v0, 16 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (16)); if (psx_taken_BFC3D83C) goto label_BFC3D828; @@ -196447,6 +201880,47 @@ void func_1FC3D8C0(CPUState* cpu) { default: break; } } + int psx_taken_BFC3D8D4 = 0; + int psx_taken_BFC3D8DC = 0; + int psx_taken_BFC3D948 = 0; + int psx_taken_BFC3D984 = 0; + int psx_taken_BFC3D998 = 0; + int psx_taken_BFC3D9B4 = 0; + int psx_taken_BFC3D9BC = 0; + int psx_taken_BFC3D9E4 = 0; + int psx_taken_BFC3DA04 = 0; + int psx_taken_BFC3DA8C = 0; + int psx_taken_BFC3DA94 = 0; + int psx_taken_BFC3DAB0 = 0; + int psx_taken_BFC3DAC8 = 0; + int psx_taken_BFC3DADC = 0; + int psx_taken_BFC3DAE4 = 0; + int psx_taken_BFC3DAEC = 0; + int psx_taken_BFC3DB18 = 0; + int psx_taken_BFC3DB2C = 0; + int psx_taken_BFC3DB34 = 0; + int psx_taken_BFC3DB44 = 0; + int psx_taken_BFC3DC00 = 0; + int psx_taken_BFC3DC14 = 0; + int psx_taken_BFC3DC1C = 0; + int psx_taken_BFC3DC30 = 0; + int psx_taken_BFC3DC44 = 0; + int psx_taken_BFC3DC4C = 0; + int psx_taken_BFC3DC5C = 0; + int psx_taken_BFC3DC6C = 0; + int psx_taken_BFC3DCAC = 0; + int psx_taken_BFC3DCF4 = 0; + int psx_taken_BFC3DD08 = 0; + int psx_taken_BFC3DD10 = 0; + int psx_taken_BFC3DD24 = 0; + int psx_taken_BFC3DD34 = 0; + int psx_taken_BFC3DD44 = 0; + int psx_taken_BFC3DD74 = 0; + int psx_taken_BFC3DD84 = 0; + int psx_taken_BFC3DD98 = 0; + int psx_taken_BFC3DDC8 = 0; + int psx_taken_BFC3DDDC = 0; + int psx_taken_BFC3DE0C = 0; label_BFC3D8C0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -196464,7 +201938,7 @@ label_BFC3D8C0: /* nop */ /* 0xBFC3D8D4: 15000004 bne $t0, $zero, 0xBFC3D8E8 */ uint32_t psx_brA_BFC3D8D4 = cpu->gpr[8]; uint32_t psx_brB_BFC3D8D4 = cpu->gpr[0]; - int psx_taken_BFC3D8D4 = (psx_brA_BFC3D8D4 != psx_brB_BFC3D8D4); + psx_taken_BFC3D8D4 = (psx_brA_BFC3D8D4 != psx_brB_BFC3D8D4); /* 0xBFC3D8D8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3D8D4) goto label_BFC3D8E8; @@ -196475,7 +201949,7 @@ label_BFC3D8DC: psx_check_interrupts(cpu); /* 0xBFC3D8DC: 10000002 beq $zero, $zero, 0xBFC3D8E8 */ uint32_t psx_brA_BFC3D8DC = cpu->gpr[0]; uint32_t psx_brB_BFC3D8DC = cpu->gpr[0]; - int psx_taken_BFC3D8DC = (psx_brA_BFC3D8DC == psx_brB_BFC3D8DC); + psx_taken_BFC3D8DC = (psx_brA_BFC3D8DC == psx_brB_BFC3D8DC); /* 0xBFC3D8E0: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3D8DC) goto label_BFC3D8E8; @@ -196547,7 +202021,7 @@ label_BFC3D938: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (176)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D944u); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } /* 0xBFC3D948: 11E0000E beq $t7, $zero, 0xBFC3D984 */ uint32_t psx_brA_BFC3D948 = cpu->gpr[15]; uint32_t psx_brB_BFC3D948 = cpu->gpr[0]; - int psx_taken_BFC3D948 = (psx_brA_BFC3D948 == psx_brB_BFC3D948); + psx_taken_BFC3D948 = (psx_brA_BFC3D948 == psx_brB_BFC3D948); /* 0xBFC3D94C: 00000000 nop */ /* nop */ if (psx_taken_BFC3D948) goto label_BFC3D984; @@ -196595,7 +202069,7 @@ label_BFC3D984: psx_check_interrupts(cpu); /* 0xBFC3D984: 14400007 bne $v0, $zero, 0xBFC3D9A4 */ uint32_t psx_brA_BFC3D984 = cpu->gpr[2]; uint32_t psx_brB_BFC3D984 = cpu->gpr[0]; - int psx_taken_BFC3D984 = (psx_brA_BFC3D984 != psx_brB_BFC3D984); + psx_taken_BFC3D984 = (psx_brA_BFC3D984 != psx_brB_BFC3D984); /* 0xBFC3D988: 24090001 addiu $t1, $zero, 1 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3D984) goto label_BFC3D9A4; @@ -196612,7 +202086,7 @@ label_BFC3D98C: cpu->gpr[25] = cpu->gpr[24] & 0x1u; /* 0xBFC3D998: 1320005E beq $t9, $zero, 0xBFC3DB14 */ uint32_t psx_brA_BFC3D998 = cpu->gpr[25]; uint32_t psx_brB_BFC3D998 = cpu->gpr[0]; - int psx_taken_BFC3D998 = (psx_brA_BFC3D998 == psx_brB_BFC3D998); + psx_taken_BFC3D998 = (psx_brA_BFC3D998 == psx_brB_BFC3D998); /* 0xBFC3D99C: 8FA90064 lw $t1, 100($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (100)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D99Cu); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } if (psx_taken_BFC3D998) goto label_BFC3DB14; @@ -196638,7 +202112,7 @@ label_BFC3D9A4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (10) ? 1 : 0); /* 0xBFC3D9B4: 1020000D beq $at, $zero, 0xBFC3D9EC */ uint32_t psx_brA_BFC3D9B4 = cpu->gpr[1]; uint32_t psx_brB_BFC3D9B4 = cpu->gpr[0]; - int psx_taken_BFC3D9B4 = (psx_brA_BFC3D9B4 == psx_brB_BFC3D9B4); + psx_taken_BFC3D9B4 = (psx_brA_BFC3D9B4 == psx_brB_BFC3D9B4); /* 0xBFC3D9B8: 00000000 nop */ /* nop */ if (psx_taken_BFC3D9B4) goto label_BFC3D9EC; @@ -196649,7 +202123,7 @@ label_BFC3D9BC: psx_check_interrupts(cpu); /* 0xBFC3D9BC: 0440000B bltz $v0, 0xBFC3D9EC */ uint32_t psx_brA_BFC3D9BC = cpu->gpr[2]; - int psx_taken_BFC3D9BC = ((int32_t)psx_brA_BFC3D9BC < 0); + psx_taken_BFC3D9BC = ((int32_t)psx_brA_BFC3D9BC < 0); /* 0xBFC3D9C0: 00000000 nop */ /* nop */ if (psx_taken_BFC3D9BC) goto label_BFC3D9EC; @@ -196682,7 +202156,7 @@ label_BFC3D9E0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (176)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3D9E0u); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } /* 0xBFC3D9E4: 10400009 beq $v0, $zero, 0xBFC3DA0C */ uint32_t psx_brA_BFC3D9E4 = cpu->gpr[2]; uint32_t psx_brB_BFC3D9E4 = cpu->gpr[0]; - int psx_taken_BFC3D9E4 = (psx_brA_BFC3D9E4 == psx_brB_BFC3D9E4); + psx_taken_BFC3D9E4 = (psx_brA_BFC3D9E4 == psx_brB_BFC3D9E4); /* 0xBFC3D9E8: 00000000 nop */ /* nop */ if (psx_taken_BFC3D9E4) goto label_BFC3DA0C; @@ -196705,7 +202179,7 @@ label_BFC3D9EC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (84)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DA00u); return; } g_debug_last_store_pc = 0xBFC3DA00u; cpu->write_word(psx_addr, cpu->gpr[12]); } /* 0xBFC3DA04: 10000005 beq $zero, $zero, 0xBFC3DA1C */ uint32_t psx_brA_BFC3DA04 = cpu->gpr[0]; uint32_t psx_brB_BFC3DA04 = cpu->gpr[0]; - int psx_taken_BFC3DA04 = (psx_brA_BFC3DA04 == psx_brB_BFC3DA04); + psx_taken_BFC3DA04 = (psx_brA_BFC3DA04 == psx_brB_BFC3DA04); /* 0xBFC3DA08: AFAD0064 sw $t5, 100($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (100)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DA08u); return; } g_debug_last_store_pc = 0xBFC3DA08u; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC3DA04) goto label_BFC3DA1C; @@ -196797,7 +202271,7 @@ label_BFC3DA88: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (176)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DA88u); return; } cpu->gpr[7] = cpu->read_word(psx_addr); } /* 0xBFC3DA8C: 10000010 beq $zero, $zero, 0xBFC3DAD0 */ uint32_t psx_brA_BFC3DA8C = cpu->gpr[0]; uint32_t psx_brB_BFC3DA8C = cpu->gpr[0]; - int psx_taken_BFC3DA8C = (psx_brA_BFC3DA8C == psx_brB_BFC3DA8C); + psx_taken_BFC3DA8C = (psx_brA_BFC3DA8C == psx_brB_BFC3DA8C); /* 0xBFC3DA90: 00000000 nop */ /* nop */ if (psx_taken_BFC3DA8C) goto label_BFC3DAD0; @@ -196808,7 +202282,7 @@ label_BFC3DA94: psx_check_interrupts(cpu); /* 0xBFC3DA94: 10000017 beq $zero, $zero, 0xBFC3DAF4 */ uint32_t psx_brA_BFC3DA94 = cpu->gpr[0]; uint32_t psx_brB_BFC3DA94 = cpu->gpr[0]; - int psx_taken_BFC3DA94 = (psx_brA_BFC3DA94 == psx_brB_BFC3DA94); + psx_taken_BFC3DA94 = (psx_brA_BFC3DA94 == psx_brB_BFC3DA94); /* 0xBFC3DA98: AFA00050 sw $zero, 80($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (80)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DA98u); return; } g_debug_last_store_pc = 0xBFC3DA98u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC3DA94) goto label_BFC3DAF4; @@ -196829,7 +202303,7 @@ label_BFC3DA9C: cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (255)); /* 0xBFC3DAB0: 10000010 beq $zero, $zero, 0xBFC3DAF4 */ uint32_t psx_brA_BFC3DAB0 = cpu->gpr[0]; uint32_t psx_brB_BFC3DAB0 = cpu->gpr[0]; - int psx_taken_BFC3DAB0 = (psx_brA_BFC3DAB0 == psx_brB_BFC3DAB0); + psx_taken_BFC3DAB0 = (psx_brA_BFC3DAB0 == psx_brB_BFC3DAB0); /* 0xBFC3DAB4: AC2DE414 sw $t5, -7148($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-7148)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DAB4u); return; } g_debug_last_store_pc = 0xBFC3DAB4u; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC3DAB0) goto label_BFC3DAF4; @@ -196848,7 +202322,7 @@ label_BFC3DAB8: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[0] + (255)); /* 0xBFC3DAC8: 1000000A beq $zero, $zero, 0xBFC3DAF4 */ uint32_t psx_brA_BFC3DAC8 = cpu->gpr[0]; uint32_t psx_brB_BFC3DAC8 = cpu->gpr[0]; - int psx_taken_BFC3DAC8 = (psx_brA_BFC3DAC8 == psx_brB_BFC3DAC8); + psx_taken_BFC3DAC8 = (psx_brA_BFC3DAC8 == psx_brB_BFC3DAC8); /* 0xBFC3DACC: AC2EE414 sw $t6, -7148($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-7148)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DACCu); return; } g_debug_last_store_pc = 0xBFC3DACCu; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC3DAC8) goto label_BFC3DAF4; @@ -196865,7 +202339,7 @@ label_BFC3DAD0: /* nop */ /* 0xBFC3DADC: 11E0FFED beq $t7, $zero, 0xBFC3DA94 */ uint32_t psx_brA_BFC3DADC = cpu->gpr[15]; uint32_t psx_brB_BFC3DADC = cpu->gpr[0]; - int psx_taken_BFC3DADC = (psx_brA_BFC3DADC == psx_brB_BFC3DADC); + psx_taken_BFC3DADC = (psx_brA_BFC3DADC == psx_brB_BFC3DADC); /* 0xBFC3DAE0: 24010007 addiu $at, $zero, 7 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (7)); if (psx_taken_BFC3DADC) goto label_BFC3DA94; @@ -196876,7 +202350,7 @@ label_BFC3DAE4: psx_check_interrupts(cpu); /* 0xBFC3DAE4: 11E1FFED beq $t7, $at, 0xBFC3DA9C */ uint32_t psx_brA_BFC3DAE4 = cpu->gpr[15]; uint32_t psx_brB_BFC3DAE4 = cpu->gpr[1]; - int psx_taken_BFC3DAE4 = (psx_brA_BFC3DAE4 == psx_brB_BFC3DAE4); + psx_taken_BFC3DAE4 = (psx_brA_BFC3DAE4 == psx_brB_BFC3DAE4); /* 0xBFC3DAE8: 24010008 addiu $at, $zero, 8 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); if (psx_taken_BFC3DAE4) goto label_BFC3DA9C; @@ -196887,7 +202361,7 @@ label_BFC3DAEC: psx_check_interrupts(cpu); /* 0xBFC3DAEC: 11E1FFF2 beq $t7, $at, 0xBFC3DAB8 */ uint32_t psx_brA_BFC3DAEC = cpu->gpr[15]; uint32_t psx_brB_BFC3DAEC = cpu->gpr[1]; - int psx_taken_BFC3DAEC = (psx_brA_BFC3DAEC == psx_brB_BFC3DAEC); + psx_taken_BFC3DAEC = (psx_brA_BFC3DAEC == psx_brB_BFC3DAEC); /* 0xBFC3DAF0: 00000000 nop */ /* nop */ if (psx_taken_BFC3DAEC) goto label_BFC3DAB8; @@ -196921,7 +202395,7 @@ label_BFC3DB14: /* nop */ /* 0xBFC3DB18: 1520003B bne $t1, $zero, 0xBFC3DC08 */ uint32_t psx_brA_BFC3DB18 = cpu->gpr[9]; uint32_t psx_brB_BFC3DB18 = cpu->gpr[0]; - int psx_taken_BFC3DB18 = (psx_brA_BFC3DB18 != psx_brB_BFC3DB18); + psx_taken_BFC3DB18 = (psx_brA_BFC3DB18 != psx_brB_BFC3DB18); /* 0xBFC3DB1C: 00000000 nop */ /* nop */ if (psx_taken_BFC3DB18) goto label_BFC3DC08; @@ -196938,7 +202412,7 @@ label_BFC3DB20: cpu->gpr[11] = cpu->gpr[10] & 0x8u; /* 0xBFC3DB2C: 1160003F beq $t3, $zero, 0xBFC3DC2C */ uint32_t psx_brA_BFC3DB2C = cpu->gpr[11]; uint32_t psx_brB_BFC3DB2C = cpu->gpr[0]; - int psx_taken_BFC3DB2C = (psx_brA_BFC3DB2C == psx_brB_BFC3DB2C); + psx_taken_BFC3DB2C = (psx_brA_BFC3DB2C == psx_brB_BFC3DB2C); /* 0xBFC3DB30: 8FB90064 lw $t9, 100($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (100)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DB30u); return; } cpu->gpr[25] = cpu->read_word(psx_addr); } if (psx_taken_BFC3DB2C) goto label_BFC3DC2C; @@ -196949,7 +202423,7 @@ label_BFC3DB34: psx_check_interrupts(cpu); /* 0xBFC3DB34: 10000034 beq $zero, $zero, 0xBFC3DC08 */ uint32_t psx_brA_BFC3DB34 = cpu->gpr[0]; uint32_t psx_brB_BFC3DB34 = cpu->gpr[0]; - int psx_taken_BFC3DB34 = (psx_brA_BFC3DB34 == psx_brB_BFC3DB34); + psx_taken_BFC3DB34 = (psx_brA_BFC3DB34 == psx_brB_BFC3DB34); /* 0xBFC3DB38: 00000000 nop */ /* nop */ if (psx_taken_BFC3DB34) goto label_BFC3DC08; @@ -196964,7 +202438,7 @@ label_BFC3DB3C: cpu->gpr[12] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC3DB44: 15A00011 bne $t5, $zero, 0xBFC3DB8C */ uint32_t psx_brA_BFC3DB44 = cpu->gpr[13]; uint32_t psx_brB_BFC3DB44 = cpu->gpr[0]; - int psx_taken_BFC3DB44 = (psx_brA_BFC3DB44 != psx_brB_BFC3DB44); + psx_taken_BFC3DB44 = (psx_brA_BFC3DB44 != psx_brB_BFC3DB44); /* 0xBFC3DB48: AFAC003C sw $t4, 60($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (60)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DB48u); return; } g_debug_last_store_pc = 0xBFC3DB48u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC3DB44) goto label_BFC3DB8C; @@ -197076,7 +202550,7 @@ label_BFC3DB8C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (164)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DBFCu); return; } g_debug_last_store_pc = 0xBFC3DBFCu; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[14] & 0xFFFFu)); } /* 0xBFC3DC00: 10000009 beq $zero, $zero, 0xBFC3DC28 */ uint32_t psx_brA_BFC3DC00 = cpu->gpr[0]; uint32_t psx_brB_BFC3DC00 = cpu->gpr[0]; - int psx_taken_BFC3DC00 = (psx_brA_BFC3DC00 == psx_brB_BFC3DC00); + psx_taken_BFC3DC00 = (psx_brA_BFC3DC00 == psx_brB_BFC3DC00); /* 0xBFC3DC04: A7AF00A6 sh $t7, 166($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (166)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DC04u); return; } g_debug_last_store_pc = 0xBFC3DC04u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[15] & 0xFFFFu)); } if (psx_taken_BFC3DC00) goto label_BFC3DC28; @@ -197093,7 +202567,7 @@ label_BFC3DC08: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (7)); /* 0xBFC3DC14: 1301FFC9 beq $t8, $at, 0xBFC3DB3C */ uint32_t psx_brA_BFC3DC14 = cpu->gpr[24]; uint32_t psx_brB_BFC3DC14 = cpu->gpr[1]; - int psx_taken_BFC3DC14 = (psx_brA_BFC3DC14 == psx_brB_BFC3DC14); + psx_taken_BFC3DC14 = (psx_brA_BFC3DC14 == psx_brB_BFC3DC14); /* 0xBFC3DC18: 24010008 addiu $at, $zero, 8 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); if (psx_taken_BFC3DC14) goto label_BFC3DB3C; @@ -197104,7 +202578,7 @@ label_BFC3DC1C: psx_check_interrupts(cpu); /* 0xBFC3DC1C: 1301FFC7 beq $t8, $at, 0xBFC3DB3C */ uint32_t psx_brA_BFC3DC1C = cpu->gpr[24]; uint32_t psx_brB_BFC3DC1C = cpu->gpr[1]; - int psx_taken_BFC3DC1C = (psx_brA_BFC3DC1C == psx_brB_BFC3DC1C); + psx_taken_BFC3DC1C = (psx_brA_BFC3DC1C == psx_brB_BFC3DC1C); /* 0xBFC3DC20: 3C018014 lui $at, 0x8014 */ cpu->gpr[1] = 0x80140000u; if (psx_taken_BFC3DC1C) goto label_BFC3DB3C; @@ -197131,7 +202605,7 @@ label_BFC3DC2C: /* nop */ /* 0xBFC3DC30: 17200032 bne $t9, $zero, 0xBFC3DCFC */ uint32_t psx_brA_BFC3DC30 = cpu->gpr[25]; uint32_t psx_brB_BFC3DC30 = cpu->gpr[0]; - int psx_taken_BFC3DC30 = (psx_brA_BFC3DC30 != psx_brB_BFC3DC30); + psx_taken_BFC3DC30 = (psx_brA_BFC3DC30 != psx_brB_BFC3DC30); /* 0xBFC3DC34: 00000000 nop */ /* nop */ if (psx_taken_BFC3DC30) goto label_BFC3DCFC; @@ -197148,7 +202622,7 @@ label_BFC3DC38: cpu->gpr[11] = cpu->gpr[9] & 0x10u; /* 0xBFC3DC44: 11600036 beq $t3, $zero, 0xBFC3DD20 */ uint32_t psx_brA_BFC3DC44 = cpu->gpr[11]; uint32_t psx_brB_BFC3DC44 = cpu->gpr[0]; - int psx_taken_BFC3DC44 = (psx_brA_BFC3DC44 == psx_brB_BFC3DC44); + psx_taken_BFC3DC44 = (psx_brA_BFC3DC44 == psx_brB_BFC3DC44); /* 0xBFC3DC48: 8FB80040 lw $t8, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DC48u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC3DC44) goto label_BFC3DD20; @@ -197159,7 +202633,7 @@ label_BFC3DC4C: psx_check_interrupts(cpu); /* 0xBFC3DC4C: 1000002B beq $zero, $zero, 0xBFC3DCFC */ uint32_t psx_brA_BFC3DC4C = cpu->gpr[0]; uint32_t psx_brB_BFC3DC4C = cpu->gpr[0]; - int psx_taken_BFC3DC4C = (psx_brA_BFC3DC4C == psx_brB_BFC3DC4C); + psx_taken_BFC3DC4C = (psx_brA_BFC3DC4C == psx_brB_BFC3DC4C); /* 0xBFC3DC50: 00000000 nop */ /* nop */ if (psx_taken_BFC3DC4C) goto label_BFC3DCFC; @@ -197174,7 +202648,7 @@ label_BFC3DC54: cpu->gpr[12] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC3DC5C: 15A00019 bne $t5, $zero, 0xBFC3DCC4 */ uint32_t psx_brA_BFC3DC5C = cpu->gpr[13]; uint32_t psx_brB_BFC3DC5C = cpu->gpr[0]; - int psx_taken_BFC3DC5C = (psx_brA_BFC3DC5C != psx_brB_BFC3DC5C); + psx_taken_BFC3DC5C = (psx_brA_BFC3DC5C != psx_brB_BFC3DC5C); /* 0xBFC3DC60: AFAC0038 sw $t4, 56($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (56)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DC60u); return; } g_debug_last_store_pc = 0xBFC3DC60u; cpu->write_word(psx_addr, cpu->gpr[12]); } if (psx_taken_BFC3DC5C) goto label_BFC3DCC4; @@ -197189,7 +202663,7 @@ label_BFC3DC64: /* nop */ /* 0xBFC3DC6C: 15C00012 bne $t6, $zero, 0xBFC3DCB8 */ uint32_t psx_brA_BFC3DC6C = cpu->gpr[14]; uint32_t psx_brB_BFC3DC6C = cpu->gpr[0]; - int psx_taken_BFC3DC6C = (psx_brA_BFC3DC6C != psx_brB_BFC3DC6C); + psx_taken_BFC3DC6C = (psx_brA_BFC3DC6C != psx_brB_BFC3DC6C); /* 0xBFC3DC70: 8FA9006C lw $t1, 108($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (108)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DC70u); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } if (psx_taken_BFC3DC6C) goto label_BFC3DCB8; @@ -197234,7 +202708,7 @@ label_BFC3DCA4: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[0] + (128)); /* 0xBFC3DCAC: 10000005 beq $zero, $zero, 0xBFC3DCC4 */ uint32_t psx_brA_BFC3DCAC = cpu->gpr[0]; uint32_t psx_brB_BFC3DCAC = cpu->gpr[0]; - int psx_taken_BFC3DCAC = (psx_brA_BFC3DCAC == psx_brB_BFC3DCAC); + psx_taken_BFC3DCAC = (psx_brA_BFC3DCAC == psx_brB_BFC3DCAC); /* 0xBFC3DCB0: AFB9006C sw $t9, 108($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (108)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DCB0u); return; } g_debug_last_store_pc = 0xBFC3DCB0u; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC3DCAC) goto label_BFC3DCC4; @@ -197287,7 +202761,7 @@ label_BFC3DCC4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (126)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DCF0u); return; } g_debug_last_store_pc = 0xBFC3DCF0u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[10] & 0xFFFFu)); } /* 0xBFC3DCF4: 1000000A beq $zero, $zero, 0xBFC3DD20 */ uint32_t psx_brA_BFC3DCF4 = cpu->gpr[0]; uint32_t psx_brB_BFC3DCF4 = cpu->gpr[0]; - int psx_taken_BFC3DCF4 = (psx_brA_BFC3DCF4 == psx_brB_BFC3DCF4); + psx_taken_BFC3DCF4 = (psx_brA_BFC3DCF4 == psx_brB_BFC3DCF4); /* 0xBFC3DCF8: 8FB80040 lw $t8, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DCF8u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } if (psx_taken_BFC3DCF4) goto label_BFC3DD20; @@ -197304,7 +202778,7 @@ label_BFC3DCFC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (7)); /* 0xBFC3DD08: 11E1FFD2 beq $t7, $at, 0xBFC3DC54 */ uint32_t psx_brA_BFC3DD08 = cpu->gpr[15]; uint32_t psx_brB_BFC3DD08 = cpu->gpr[1]; - int psx_taken_BFC3DD08 = (psx_brA_BFC3DD08 == psx_brB_BFC3DD08); + psx_taken_BFC3DD08 = (psx_brA_BFC3DD08 == psx_brB_BFC3DD08); /* 0xBFC3DD0C: 24010008 addiu $at, $zero, 8 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); if (psx_taken_BFC3DD08) goto label_BFC3DC54; @@ -197315,7 +202789,7 @@ label_BFC3DD10: psx_check_interrupts(cpu); /* 0xBFC3DD10: 11E1FFD0 beq $t7, $at, 0xBFC3DC54 */ uint32_t psx_brA_BFC3DD10 = cpu->gpr[15]; uint32_t psx_brB_BFC3DD10 = cpu->gpr[1]; - int psx_taken_BFC3DD10 = (psx_brA_BFC3DD10 == psx_brB_BFC3DD10); + psx_taken_BFC3DD10 = (psx_brA_BFC3DD10 == psx_brB_BFC3DD10); /* 0xBFC3DD14: 3C018014 lui $at, 0x8014 */ cpu->gpr[1] = 0x80140000u; if (psx_taken_BFC3DD10) goto label_BFC3DC54; @@ -197337,7 +202811,7 @@ label_BFC3DD20: /* nop */ /* 0xBFC3DD24: 17000009 bne $t8, $zero, 0xBFC3DD4C */ uint32_t psx_brA_BFC3DD24 = cpu->gpr[24]; uint32_t psx_brB_BFC3DD24 = cpu->gpr[0]; - int psx_taken_BFC3DD24 = (psx_brA_BFC3DD24 != psx_brB_BFC3DD24); + psx_taken_BFC3DD24 = (psx_brA_BFC3DD24 != psx_brB_BFC3DD24); /* 0xBFC3DD28: 00000000 nop */ /* nop */ if (psx_taken_BFC3DD24) goto label_BFC3DD4C; @@ -197352,7 +202826,7 @@ label_BFC3DD2C: /* nop */ /* 0xBFC3DD34: 17200005 bne $t9, $zero, 0xBFC3DD4C */ uint32_t psx_brA_BFC3DD34 = cpu->gpr[25]; uint32_t psx_brB_BFC3DD34 = cpu->gpr[0]; - int psx_taken_BFC3DD34 = (psx_brA_BFC3DD34 != psx_brB_BFC3DD34); + psx_taken_BFC3DD34 = (psx_brA_BFC3DD34 != psx_brB_BFC3DD34); /* 0xBFC3DD38: 00000000 nop */ /* nop */ if (psx_taken_BFC3DD34) goto label_BFC3DD4C; @@ -197367,7 +202841,7 @@ label_BFC3DD3C: /* nop */ /* 0xBFC3DD44: 1120000A beq $t1, $zero, 0xBFC3DD70 */ uint32_t psx_brA_BFC3DD44 = cpu->gpr[9]; uint32_t psx_brB_BFC3DD44 = cpu->gpr[0]; - int psx_taken_BFC3DD44 = (psx_brA_BFC3DD44 == psx_brB_BFC3DD44); + psx_taken_BFC3DD44 = (psx_brA_BFC3DD44 == psx_brB_BFC3DD44); /* 0xBFC3DD48: 8FAB0040 lw $t3, 64($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (64)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DD48u); return; } cpu->gpr[11] = cpu->read_word(psx_addr); } if (psx_taken_BFC3DD44) goto label_BFC3DD70; @@ -197409,7 +202883,7 @@ label_BFC3DD70: /* nop */ /* 0xBFC3DD74: 15600024 bne $t3, $zero, 0xBFC3DE08 */ uint32_t psx_brA_BFC3DD74 = cpu->gpr[11]; uint32_t psx_brB_BFC3DD74 = cpu->gpr[0]; - int psx_taken_BFC3DD74 = (psx_brA_BFC3DD74 != psx_brB_BFC3DD74); + psx_taken_BFC3DD74 = (psx_brA_BFC3DD74 != psx_brB_BFC3DD74); /* 0xBFC3DD78: 8FAA0050 lw $t2, 80($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (80)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DD78u); return; } cpu->gpr[10] = cpu->read_word(psx_addr); } if (psx_taken_BFC3DD74) goto label_BFC3DE08; @@ -197424,7 +202898,7 @@ label_BFC3DD7C: /* nop */ /* 0xBFC3DD84: 15800006 bne $t4, $zero, 0xBFC3DDA0 */ uint32_t psx_brA_BFC3DD84 = cpu->gpr[12]; uint32_t psx_brB_BFC3DD84 = cpu->gpr[0]; - int psx_taken_BFC3DD84 = (psx_brA_BFC3DD84 != psx_brB_BFC3DD84); + psx_taken_BFC3DD84 = (psx_brA_BFC3DD84 != psx_brB_BFC3DD84); /* 0xBFC3DD88: 00000000 nop */ /* nop */ if (psx_taken_BFC3DD84) goto label_BFC3DDA0; @@ -197441,7 +202915,7 @@ label_BFC3DD8C: cpu->gpr[14] = cpu->gpr[13] & 0x2u; /* 0xBFC3DD98: 11C0000A beq $t6, $zero, 0xBFC3DDC4 */ uint32_t psx_brA_BFC3DD98 = cpu->gpr[14]; uint32_t psx_brB_BFC3DD98 = cpu->gpr[0]; - int psx_taken_BFC3DD98 = (psx_brA_BFC3DD98 == psx_brB_BFC3DD98); + psx_taken_BFC3DD98 = (psx_brA_BFC3DD98 == psx_brB_BFC3DD98); /* 0xBFC3DD9C: 8FB90064 lw $t9, 100($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (100)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DD9Cu); return; } cpu->gpr[25] = cpu->read_word(psx_addr); } if (psx_taken_BFC3DD98) goto label_BFC3DDC4; @@ -197477,7 +202951,7 @@ label_BFC3DDC4: /* nop */ /* 0xBFC3DDC8: 17200006 bne $t9, $zero, 0xBFC3DDE4 */ uint32_t psx_brA_BFC3DDC8 = cpu->gpr[25]; uint32_t psx_brB_BFC3DDC8 = cpu->gpr[0]; - int psx_taken_BFC3DDC8 = (psx_brA_BFC3DDC8 != psx_brB_BFC3DDC8); + psx_taken_BFC3DDC8 = (psx_brA_BFC3DDC8 != psx_brB_BFC3DDC8); /* 0xBFC3DDCC: 00000000 nop */ /* nop */ if (psx_taken_BFC3DDC8) goto label_BFC3DDE4; @@ -197494,7 +202968,7 @@ label_BFC3DDD0: cpu->gpr[11] = cpu->gpr[9] & 0x4u; /* 0xBFC3DDDC: 1160000A beq $t3, $zero, 0xBFC3DE08 */ uint32_t psx_brA_BFC3DDDC = cpu->gpr[11]; uint32_t psx_brB_BFC3DDDC = cpu->gpr[0]; - int psx_taken_BFC3DDDC = (psx_brA_BFC3DDDC == psx_brB_BFC3DDDC); + psx_taken_BFC3DDDC = (psx_brA_BFC3DDDC == psx_brB_BFC3DDDC); /* 0xBFC3DDE0: 8FAA0050 lw $t2, 80($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (80)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DDE0u); return; } cpu->gpr[10] = cpu->read_word(psx_addr); } if (psx_taken_BFC3DDDC) goto label_BFC3DE08; @@ -197530,7 +203004,7 @@ label_BFC3DE08: /* nop */ /* 0xBFC3DE0C: 11400007 beq $t2, $zero, 0xBFC3DE2C */ uint32_t psx_brA_BFC3DE0C = cpu->gpr[10]; uint32_t psx_brB_BFC3DE0C = cpu->gpr[0]; - int psx_taken_BFC3DE0C = (psx_brA_BFC3DE0C == psx_brB_BFC3DE0C); + psx_taken_BFC3DE0C = (psx_brA_BFC3DE0C == psx_brB_BFC3DE0C); /* 0xBFC3DE10: 8FBF002C lw $ra, 44($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (44)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DE10u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3DE0C) goto label_BFC3DE2C; @@ -197580,6 +203054,7 @@ void func_1FC3DED0(CPUState* cpu) { default: break; } } + int psx_taken_BFC3DEE0 = 0; label_BFC3DED0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -197595,7 +203070,7 @@ label_BFC3DED0: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[1] ? 1 : 0); /* 0xBFC3DEE0: 14200003 bne $at, $zero, 0xBFC3DEF0 */ uint32_t psx_brA_BFC3DEE0 = cpu->gpr[1]; uint32_t psx_brB_BFC3DEE0 = cpu->gpr[0]; - int psx_taken_BFC3DEE0 = (psx_brA_BFC3DEE0 != psx_brB_BFC3DEE0); + psx_taken_BFC3DEE0 = (psx_brA_BFC3DEE0 != psx_brB_BFC3DEE0); /* 0xBFC3DEE4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DEE4u); return; } g_debug_last_store_pc = 0xBFC3DEE4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3DEE0) goto label_BFC3DEF0; @@ -197649,6 +203124,11 @@ void func_1FC3DF20(CPUState* cpu) { default: break; } } + int psx_taken_BFC3DF28 = 0; + int psx_taken_BFC3DF34 = 0; + int psx_taken_BFC3DF3C = 0; + int psx_taken_BFC3DF44 = 0; + int psx_taken_BFC3DF4C = 0; label_BFC3DF20: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -197660,7 +203140,7 @@ label_BFC3DF20: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DF24u); return; } g_debug_last_store_pc = 0xBFC3DF24u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC3DF28: 10000006 beq $zero, $zero, 0xBFC3DF44 */ uint32_t psx_brA_BFC3DF28 = cpu->gpr[0]; uint32_t psx_brB_BFC3DF28 = cpu->gpr[0]; - int psx_taken_BFC3DF28 = (psx_brA_BFC3DF28 == psx_brB_BFC3DF28); + psx_taken_BFC3DF28 = (psx_brA_BFC3DF28 == psx_brB_BFC3DF28); /* 0xBFC3DF2C: 00801821 addu $v1, $a0, $zero */ cpu->gpr[3] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC3DF28) goto label_BFC3DF44; @@ -197673,7 +203153,7 @@ label_BFC3DF30: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC3DF34: 10000009 beq $zero, $zero, 0xBFC3DF5C */ uint32_t psx_brA_BFC3DF34 = cpu->gpr[0]; uint32_t psx_brB_BFC3DF34 = cpu->gpr[0]; - int psx_taken_BFC3DF34 = (psx_brA_BFC3DF34 == psx_brB_BFC3DF34); + psx_taken_BFC3DF34 = (psx_brA_BFC3DF34 == psx_brB_BFC3DF34); /* 0xBFC3DF38: AFAE001C sw $t6, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DF38u); return; } g_debug_last_store_pc = 0xBFC3DF38u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC3DF34) goto label_BFC3DF5C; @@ -197684,7 +203164,7 @@ label_BFC3DF3C: psx_check_interrupts(cpu); /* 0xBFC3DF3C: 10000007 beq $zero, $zero, 0xBFC3DF5C */ uint32_t psx_brA_BFC3DF3C = cpu->gpr[0]; uint32_t psx_brB_BFC3DF3C = cpu->gpr[0]; - int psx_taken_BFC3DF3C = (psx_brA_BFC3DF3C == psx_brB_BFC3DF3C); + psx_taken_BFC3DF3C = (psx_brA_BFC3DF3C == psx_brB_BFC3DF3C); /* 0xBFC3DF40: AFA0001C sw $zero, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DF40u); return; } g_debug_last_store_pc = 0xBFC3DF40u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC3DF3C) goto label_BFC3DF5C; @@ -197695,7 +203175,7 @@ label_BFC3DF44: psx_check_interrupts(cpu); /* 0xBFC3DF44: 1060FFFA beq $v1, $zero, 0xBFC3DF30 */ uint32_t psx_brA_BFC3DF44 = cpu->gpr[3]; uint32_t psx_brB_BFC3DF44 = cpu->gpr[0]; - int psx_taken_BFC3DF44 = (psx_brA_BFC3DF44 == psx_brB_BFC3DF44); + psx_taken_BFC3DF44 = (psx_brA_BFC3DF44 == psx_brB_BFC3DF44); /* 0xBFC3DF48: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3DF44) goto label_BFC3DF30; @@ -197706,7 +203186,7 @@ label_BFC3DF4C: psx_check_interrupts(cpu); /* 0xBFC3DF4C: 1061FFFB beq $v1, $at, 0xBFC3DF3C */ uint32_t psx_brA_BFC3DF4C = cpu->gpr[3]; uint32_t psx_brB_BFC3DF4C = cpu->gpr[1]; - int psx_taken_BFC3DF4C = (psx_brA_BFC3DF4C == psx_brB_BFC3DF4C); + psx_taken_BFC3DF4C = (psx_brA_BFC3DF4C == psx_brB_BFC3DF4C); /* 0xBFC3DF50: 00000000 nop */ /* nop */ if (psx_taken_BFC3DF4C) goto label_BFC3DF3C; @@ -197764,6 +203244,12 @@ void func_1FC3DF90(CPUState* cpu) { default: break; } } + int psx_taken_BFC3DFA0 = 0; + int psx_taken_BFC3DFA8 = 0; + int psx_taken_BFC3DFB4 = 0; + int psx_taken_BFC3DFBC = 0; + int psx_taken_BFC3DFC8 = 0; + int psx_taken_BFC3DFD0 = 0; label_BFC3DF90: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -197779,7 +203265,7 @@ label_BFC3DF90: cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < cpu->gpr[1] ? 1 : 0); /* 0xBFC3DFA0: 14200003 bne $at, $zero, 0xBFC3DFB0 */ uint32_t psx_brA_BFC3DFA0 = cpu->gpr[1]; uint32_t psx_brB_BFC3DFA0 = cpu->gpr[0]; - int psx_taken_BFC3DFA0 = (psx_brA_BFC3DFA0 != psx_brB_BFC3DFA0); + psx_taken_BFC3DFA0 = (psx_brA_BFC3DFA0 != psx_brB_BFC3DFA0); /* 0xBFC3DFA4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DFA4u); return; } g_debug_last_store_pc = 0xBFC3DFA4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3DFA0) goto label_BFC3DFB0; @@ -197790,7 +203276,7 @@ label_BFC3DFA8: psx_check_interrupts(cpu); /* 0xBFC3DFA8: 10000017 beq $zero, $zero, 0xBFC3E008 */ uint32_t psx_brA_BFC3DFA8 = cpu->gpr[0]; uint32_t psx_brB_BFC3DFA8 = cpu->gpr[0]; - int psx_taken_BFC3DFA8 = (psx_brA_BFC3DFA8 == psx_brB_BFC3DFA8); + psx_taken_BFC3DFA8 = (psx_brA_BFC3DFA8 == psx_brB_BFC3DFA8); /* 0xBFC3DFAC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3DFA8) goto label_BFC3E008; @@ -197803,7 +203289,7 @@ label_BFC3DFB0: cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < 0x00001000u ? 1 : 0); /* 0xBFC3DFB4: 10200004 beq $at, $zero, 0xBFC3DFC8 */ uint32_t psx_brA_BFC3DFB4 = cpu->gpr[1]; uint32_t psx_brB_BFC3DFB4 = cpu->gpr[0]; - int psx_taken_BFC3DFB4 = (psx_brA_BFC3DFB4 == psx_brB_BFC3DFB4); + psx_taken_BFC3DFB4 = (psx_brA_BFC3DFB4 == psx_brB_BFC3DFB4); /* 0xBFC3DFB8: 308E0007 andi $t6, $a0, 0x7 */ cpu->gpr[14] = cpu->gpr[4] & 0x7u; if (psx_taken_BFC3DFB4) goto label_BFC3DFC8; @@ -197814,7 +203300,7 @@ label_BFC3DFBC: psx_check_interrupts(cpu); /* 0xBFC3DFBC: 10000012 beq $zero, $zero, 0xBFC3E008 */ uint32_t psx_brA_BFC3DFBC = cpu->gpr[0]; uint32_t psx_brB_BFC3DFBC = cpu->gpr[0]; - int psx_taken_BFC3DFBC = (psx_brA_BFC3DFBC == psx_brB_BFC3DFBC); + psx_taken_BFC3DFBC = (psx_brA_BFC3DFBC == psx_brB_BFC3DFBC); /* 0xBFC3DFC0: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3DFBC) goto label_BFC3E008; @@ -197832,7 +203318,7 @@ label_BFC3DFC8: psx_check_interrupts(cpu); /* 0xBFC3DFC8: 15C00003 bne $t6, $zero, 0xBFC3DFD8 */ uint32_t psx_brA_BFC3DFC8 = cpu->gpr[14]; uint32_t psx_brB_BFC3DFC8 = cpu->gpr[0]; - int psx_taken_BFC3DFC8 = (psx_brA_BFC3DFC8 != psx_brB_BFC3DFC8); + psx_taken_BFC3DFC8 = (psx_brA_BFC3DFC8 != psx_brB_BFC3DFC8); /* 0xBFC3DFCC: 00000000 nop */ /* nop */ if (psx_taken_BFC3DFC8) goto label_BFC3DFD8; @@ -197843,7 +203329,7 @@ label_BFC3DFD0: psx_check_interrupts(cpu); /* 0xBFC3DFD0: 10000005 beq $zero, $zero, 0xBFC3DFE8 */ uint32_t psx_brA_BFC3DFD0 = cpu->gpr[0]; uint32_t psx_brB_BFC3DFD0 = cpu->gpr[0]; - int psx_taken_BFC3DFD0 = (psx_brA_BFC3DFD0 == psx_brB_BFC3DFD0); + psx_taken_BFC3DFD0 = (psx_brA_BFC3DFD0 == psx_brB_BFC3DFD0); /* 0xBFC3DFD4: AFA40018 sw $a0, 24($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3DFD4u); return; } g_debug_last_store_pc = 0xBFC3DFD4u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC3DFD0) goto label_BFC3DFE8; @@ -197913,6 +203399,13 @@ void func_1FC3E020(CPUState* cpu) { default: break; } } + int psx_taken_BFC3E034 = 0; + int psx_taken_BFC3E03C = 0; + int psx_taken_BFC3E05C = 0; + int psx_taken_BFC3E064 = 0; + int psx_taken_BFC3E07C = 0; + int psx_taken_BFC3E090 = 0; + int psx_taken_BFC3E098 = 0; label_BFC3E020: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -197930,7 +203423,7 @@ label_BFC3E020: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E030u); return; } g_debug_last_store_pc = 0xBFC3E030u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC3E034: 15C50003 bne $t6, $a1, 0xBFC3E044 */ uint32_t psx_brA_BFC3E034 = cpu->gpr[14]; uint32_t psx_brB_BFC3E034 = cpu->gpr[5]; - int psx_taken_BFC3E034 = (psx_brA_BFC3E034 != psx_brB_BFC3E034); + psx_taken_BFC3E034 = (psx_brA_BFC3E034 != psx_brB_BFC3E034); /* 0xBFC3E038: AFA40020 sw $a0, 32($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E038u); return; } g_debug_last_store_pc = 0xBFC3E038u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC3E034) goto label_BFC3E044; @@ -197941,7 +203434,7 @@ label_BFC3E03C: psx_check_interrupts(cpu); /* 0xBFC3E03C: 1000001C beq $zero, $zero, 0xBFC3E0B0 */ uint32_t psx_brA_BFC3E03C = cpu->gpr[0]; uint32_t psx_brB_BFC3E03C = cpu->gpr[0]; - int psx_taken_BFC3E03C = (psx_brA_BFC3E03C == psx_brB_BFC3E03C); + psx_taken_BFC3E03C = (psx_brA_BFC3E03C == psx_brB_BFC3E03C); /* 0xBFC3E040: 24020001 addiu $v0, $zero, 1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3E03C) goto label_BFC3E0B0; @@ -197970,7 +203463,7 @@ label_BFC3E054: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC3E05C: 15E5000E bne $t7, $a1, 0xBFC3E098 */ uint32_t psx_brA_BFC3E05C = cpu->gpr[15]; uint32_t psx_brB_BFC3E05C = cpu->gpr[5]; - int psx_taken_BFC3E05C = (psx_brA_BFC3E05C != psx_brB_BFC3E05C); + psx_taken_BFC3E05C = (psx_brA_BFC3E05C != psx_brB_BFC3E05C); /* 0xBFC3E060: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC3E05C) goto label_BFC3E098; @@ -197981,7 +203474,7 @@ label_BFC3E064: psx_check_interrupts(cpu); /* 0xBFC3E064: 14400008 bne $v0, $zero, 0xBFC3E088 */ uint32_t psx_brA_BFC3E064 = cpu->gpr[2]; uint32_t psx_brB_BFC3E064 = cpu->gpr[0]; - int psx_taken_BFC3E064 = (psx_brA_BFC3E064 != psx_brB_BFC3E064); + psx_taken_BFC3E064 = (psx_brA_BFC3E064 != psx_brB_BFC3E064); /* 0xBFC3E068: 24180001 addiu $t8, $zero, 1 */ cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3E064) goto label_BFC3E088; @@ -198006,7 +203499,7 @@ label_BFC3E07C: psx_check_interrupts(cpu); /* 0xBFC3E07C: 1040FFFB beq $v0, $zero, 0xBFC3E06C */ uint32_t psx_brA_BFC3E07C = cpu->gpr[2]; uint32_t psx_brB_BFC3E07C = cpu->gpr[0]; - int psx_taken_BFC3E07C = (psx_brA_BFC3E07C == psx_brB_BFC3E07C); + psx_taken_BFC3E07C = (psx_brA_BFC3E07C == psx_brB_BFC3E07C); /* 0xBFC3E080: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC3E07C) goto label_BFC3E06C; @@ -198028,7 +203521,7 @@ label_BFC3E088: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-24792)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E08Cu); return; } g_debug_last_store_pc = 0xBFC3E08Cu; cpu->write_word(psx_addr, cpu->gpr[24]); } /* 0xBFC3E090: 10000007 beq $zero, $zero, 0xBFC3E0B0 */ uint32_t psx_brA_BFC3E090 = cpu->gpr[0]; uint32_t psx_brB_BFC3E090 = cpu->gpr[0]; - int psx_taken_BFC3E090 = (psx_brA_BFC3E090 == psx_brB_BFC3E090); + psx_taken_BFC3E090 = (psx_brA_BFC3E090 == psx_brB_BFC3E090); /* 0xBFC3E094: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC3E090) goto label_BFC3E0B0; @@ -198039,7 +203532,7 @@ label_BFC3E098: psx_check_interrupts(cpu); /* 0xBFC3E098: 14450005 bne $v0, $a1, 0xBFC3E0B0 */ uint32_t psx_brA_BFC3E098 = cpu->gpr[2]; uint32_t psx_brB_BFC3E098 = cpu->gpr[5]; - int psx_taken_BFC3E098 = (psx_brA_BFC3E098 != psx_brB_BFC3E098); + psx_taken_BFC3E098 = (psx_brA_BFC3E098 != psx_brB_BFC3E098); /* 0xBFC3E09C: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC3E098) goto label_BFC3E0B0; @@ -198073,6 +203566,7 @@ label_BFC3E0B0: void func_1FC3E0C0(CPUState* cpu) { debug_server_log_call_entry(0x1FC3E0C0u); + int psx_taken_BFC3E0C4 = 0; label_BFC3E0C0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -198082,7 +203576,7 @@ label_BFC3E0C0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC3E0C4: 14810003 bne $a0, $at, 0xBFC3E0D4 */ uint32_t psx_brA_BFC3E0C4 = cpu->gpr[4]; uint32_t psx_brB_BFC3E0C4 = cpu->gpr[1]; - int psx_taken_BFC3E0C4 = (psx_brA_BFC3E0C4 != psx_brB_BFC3E0C4); + psx_taken_BFC3E0C4 = (psx_brA_BFC3E0C4 != psx_brB_BFC3E0C4); /* 0xBFC3E0C8: 3C018008 lui $at, 0x8008 */ cpu->gpr[1] = 0x80080000u; if (psx_taken_BFC3E0C4) goto label_BFC3E0D4; @@ -198114,6 +203608,7 @@ label_BFC3E0D4: void func_1FC3E0E8(CPUState* cpu) { debug_server_log_call_entry(0x1FC3E0E8u); + int psx_taken_BFC3E0F4 = 0; label_BFC3E0E8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -198127,7 +203622,7 @@ label_BFC3E0E8: /* nop */ /* 0xBFC3E0F4: 15C00004 bne $t6, $zero, 0xBFC3E108 */ uint32_t psx_brA_BFC3E0F4 = cpu->gpr[14]; uint32_t psx_brB_BFC3E0F4 = cpu->gpr[0]; - int psx_taken_BFC3E0F4 = (psx_brA_BFC3E0F4 != psx_brB_BFC3E0F4); + psx_taken_BFC3E0F4 = (psx_brA_BFC3E0F4 != psx_brB_BFC3E0F4); /* 0xBFC3E0F8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3E0F4) goto label_BFC3E108; @@ -198153,6 +203648,29 @@ label_BFC3E108: void func_1FC3E110(CPUState* cpu) { debug_server_log_call_entry(0x1FC3E110u); + int psx_taken_BFC3E120 = 0; + int psx_taken_BFC3E13C = 0; + int psx_taken_BFC3E170 = 0; + int psx_taken_BFC3E18C = 0; + int psx_taken_BFC3E194 = 0; + int psx_taken_BFC3E1A0 = 0; + int psx_taken_BFC3E1B8 = 0; + int psx_taken_BFC3E1D4 = 0; + int psx_taken_BFC3E1E8 = 0; + int psx_taken_BFC3E1F4 = 0; + int psx_taken_BFC3E1FC = 0; + int psx_taken_BFC3E218 = 0; + int psx_taken_BFC3E220 = 0; + int psx_taken_BFC3E234 = 0; + int psx_taken_BFC3E250 = 0; + int psx_taken_BFC3E268 = 0; + int psx_taken_BFC3E294 = 0; + int psx_taken_BFC3E2A4 = 0; + int psx_taken_BFC3E2B0 = 0; + int psx_taken_BFC3E2C8 = 0; + int psx_taken_BFC3E2D0 = 0; + int psx_taken_BFC3E304 = 0; + int psx_taken_BFC3E310 = 0; label_BFC3E110: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -198168,7 +203686,7 @@ label_BFC3E110: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E11Cu); return; } g_debug_last_store_pc = 0xBFC3E11Cu; cpu->write_word(psx_addr, cpu->gpr[16]); } /* 0xBFC3E120: 1C600008 bgtz $v1, 0xBFC3E144 */ uint32_t psx_brA_BFC3E120 = cpu->gpr[3]; - int psx_taken_BFC3E120 = ((int32_t)psx_brA_BFC3E120 > 0); + psx_taken_BFC3E120 = ((int32_t)psx_brA_BFC3E120 > 0); /* 0xBFC3E124: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3E120) goto label_BFC3E144; @@ -198189,7 +203707,7 @@ label_BFC3E128: cpu->gpr[12] = cpu->gpr[12] | 0xFFFFu; /* 0xBFC3E13C: 1000002D beq $zero, $zero, 0xBFC3E1F4 */ uint32_t psx_brA_BFC3E13C = cpu->gpr[0]; uint32_t psx_brB_BFC3E13C = cpu->gpr[0]; - int psx_taken_BFC3E13C = (psx_brA_BFC3E13C == psx_brB_BFC3E13C); + psx_taken_BFC3E13C = (psx_brA_BFC3E13C == psx_brB_BFC3E13C); /* 0xBFC3E140: 35ADFFFF ori $t5, $t5, 0xFFFF */ cpu->gpr[13] = cpu->gpr[13] | 0xFFFFu; if (psx_taken_BFC3E13C) goto label_BFC3E1F4; @@ -198227,7 +203745,7 @@ label_BFC3E164: cpu->gpr[14] = cpu->gpr[6] & cpu->gpr[11]; /* 0xBFC3E170: 11C0001A beq $t6, $zero, 0xBFC3E1DC */ uint32_t psx_brA_BFC3E170 = cpu->gpr[14]; uint32_t psx_brB_BFC3E170 = cpu->gpr[0]; - int psx_taken_BFC3E170 = (psx_brA_BFC3E170 == psx_brB_BFC3E170); + psx_taken_BFC3E170 = (psx_brA_BFC3E170 == psx_brB_BFC3E170); /* 0xBFC3E174: 00000000 nop */ /* nop */ if (psx_taken_BFC3E170) goto label_BFC3E1DC; @@ -198253,7 +203771,7 @@ label_BFC3E184: /* nop */ /* 0xBFC3E18C: 158A0004 bne $t4, $t2, 0xBFC3E1A0 */ uint32_t psx_brA_BFC3E18C = cpu->gpr[12]; uint32_t psx_brB_BFC3E18C = cpu->gpr[10]; - int psx_taken_BFC3E18C = (psx_brA_BFC3E18C != psx_brB_BFC3E18C); + psx_taken_BFC3E18C = (psx_brA_BFC3E18C != psx_brB_BFC3E18C); /* 0xBFC3E190: 014BC024 and $t8, $t2, $t3 */ cpu->gpr[24] = cpu->gpr[10] & cpu->gpr[11]; if (psx_taken_BFC3E18C) goto label_BFC3E1A0; @@ -198264,7 +203782,7 @@ label_BFC3E194: psx_check_interrupts(cpu); /* 0xBFC3E194: 1000FFFB beq $zero, $zero, 0xBFC3E184 */ uint32_t psx_brA_BFC3E194 = cpu->gpr[0]; uint32_t psx_brB_BFC3E194 = cpu->gpr[0]; - int psx_taken_BFC3E194 = (psx_brA_BFC3E194 == psx_brB_BFC3E194); + psx_taken_BFC3E194 = (psx_brA_BFC3E194 == psx_brB_BFC3E194); /* 0xBFC3E198: 25290008 addiu $t1, $t1, 8 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[9] + (8)); if (psx_taken_BFC3E194) goto label_BFC3E184; @@ -198282,7 +203800,7 @@ label_BFC3E1A0: psx_check_interrupts(cpu); /* 0xBFC3E1A0: 1300000E beq $t8, $zero, 0xBFC3E1DC */ uint32_t psx_brA_BFC3E1A0 = cpu->gpr[24]; uint32_t psx_brB_BFC3E1A0 = cpu->gpr[0]; - int psx_taken_BFC3E1A0 = (psx_brA_BFC3E1A0 == psx_brB_BFC3E1A0); + psx_taken_BFC3E1A0 = (psx_brA_BFC3E1A0 == psx_brB_BFC3E1A0); /* 0xBFC3E1A4: 00000000 nop */ /* nop */ if (psx_taken_BFC3E1A0) goto label_BFC3E1DC; @@ -198301,7 +203819,7 @@ label_BFC3E1A8: cpu->gpr[15] = cpu->gpr[25] + cpu->gpr[14]; /* 0xBFC3E1B8: 15F80008 bne $t7, $t8, 0xBFC3E1DC */ uint32_t psx_brA_BFC3E1B8 = cpu->gpr[15]; uint32_t psx_brB_BFC3E1B8 = cpu->gpr[24]; - int psx_taken_BFC3E1B8 = (psx_brA_BFC3E1B8 != psx_brB_BFC3E1B8); + psx_taken_BFC3E1B8 = (psx_brA_BFC3E1B8 != psx_brB_BFC3E1B8); /* 0xBFC3E1BC: 00000000 nop */ /* nop */ if (psx_taken_BFC3E1B8) goto label_BFC3E1DC; @@ -198322,7 +203840,7 @@ label_BFC3E1C0: cpu->gpr[15] = cpu->gpr[25] + cpu->gpr[14]; /* 0xBFC3E1D4: 10000003 beq $zero, $zero, 0xBFC3E1E4 */ uint32_t psx_brA_BFC3E1D4 = cpu->gpr[0]; uint32_t psx_brB_BFC3E1D4 = cpu->gpr[0]; - int psx_taken_BFC3E1D4 = (psx_brA_BFC3E1D4 == psx_brB_BFC3E1D4); + psx_taken_BFC3E1D4 = (psx_brA_BFC3E1D4 == psx_brB_BFC3E1D4); /* 0xBFC3E1D8: ACAF0004 sw $t7, 4($a1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E1D8u); return; } g_debug_last_store_pc = 0xBFC3E1D8u; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC3E1D4) goto label_BFC3E1E4; @@ -198344,7 +203862,7 @@ label_BFC3E1E4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC3E1E8: 1420FFDE bne $at, $zero, 0xBFC3E164 */ uint32_t psx_brA_BFC3E1E8 = cpu->gpr[1]; uint32_t psx_brB_BFC3E1E8 = cpu->gpr[0]; - int psx_taken_BFC3E1E8 = (psx_brA_BFC3E1E8 != psx_brB_BFC3E1E8); + psx_taken_BFC3E1E8 = (psx_brA_BFC3E1E8 != psx_brB_BFC3E1E8); /* 0xBFC3E1EC: 00000000 nop */ /* nop */ if (psx_taken_BFC3E1E8) goto label_BFC3E164; @@ -198362,7 +203880,7 @@ label_BFC3E1F4: psx_check_interrupts(cpu); /* 0xBFC3E1F4: 1C600004 bgtz $v1, 0xBFC3E208 */ uint32_t psx_brA_BFC3E1F4 = cpu->gpr[3]; - int psx_taken_BFC3E1F4 = ((int32_t)psx_brA_BFC3E1F4 > 0); + psx_taken_BFC3E1F4 = ((int32_t)psx_brA_BFC3E1F4 > 0); /* 0xBFC3E1F8: 00802821 addu $a1, $a0, $zero */ cpu->gpr[5] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC3E1F4) goto label_BFC3E208; @@ -198373,7 +203891,7 @@ label_BFC3E1FC: psx_check_interrupts(cpu); /* 0xBFC3E1FC: 1000002C beq $zero, $zero, 0xBFC3E2B0 */ uint32_t psx_brA_BFC3E1FC = cpu->gpr[0]; uint32_t psx_brB_BFC3E1FC = cpu->gpr[0]; - int psx_taken_BFC3E1FC = (psx_brA_BFC3E1FC == psx_brB_BFC3E1FC); + psx_taken_BFC3E1FC = (psx_brA_BFC3E1FC == psx_brB_BFC3E1FC); /* 0xBFC3E200: 3C104000 lui $s0, 0x4000 */ cpu->gpr[16] = 0x40000000u; if (psx_taken_BFC3E1FC) goto label_BFC3E2B0; @@ -198404,7 +203922,7 @@ label_BFC3E20C: cpu->gpr[25] = cpu->gpr[24] & cpu->gpr[16]; /* 0xBFC3E218: 13200004 beq $t9, $zero, 0xBFC3E22C */ uint32_t psx_brA_BFC3E218 = cpu->gpr[25]; uint32_t psx_brB_BFC3E218 = cpu->gpr[0]; - int psx_taken_BFC3E218 = (psx_brA_BFC3E218 == psx_brB_BFC3E218); + psx_taken_BFC3E218 = (psx_brA_BFC3E218 == psx_brB_BFC3E218); /* 0xBFC3E21C: 246EFFFF addiu $t6, $v1, -1 */ cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[3] + (-1)); if (psx_taken_BFC3E218) goto label_BFC3E22C; @@ -198415,7 +203933,7 @@ label_BFC3E220: psx_check_interrupts(cpu); /* 0xBFC3E220: 10000023 beq $zero, $zero, 0xBFC3E2B0 */ uint32_t psx_brA_BFC3E220 = cpu->gpr[0]; uint32_t psx_brB_BFC3E220 = cpu->gpr[0]; - int psx_taken_BFC3E220 = (psx_brA_BFC3E220 == psx_brB_BFC3E220); + psx_taken_BFC3E220 = (psx_brA_BFC3E220 == psx_brB_BFC3E220); /* 0xBFC3E224: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3E220) goto label_BFC3E2B0; @@ -198437,7 +203955,7 @@ label_BFC3E22C: cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC3E234: 10200019 beq $at, $zero, 0xBFC3E29C */ uint32_t psx_brA_BFC3E234 = cpu->gpr[1]; uint32_t psx_brB_BFC3E234 = cpu->gpr[0]; - int psx_taken_BFC3E234 = (psx_brA_BFC3E234 == psx_brB_BFC3E234); + psx_taken_BFC3E234 = (psx_brA_BFC3E234 == psx_brB_BFC3E234); /* 0xBFC3E238: 01003821 addu $a3, $t0, $zero */ cpu->gpr[7] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC3E234) goto label_BFC3E29C; @@ -198463,7 +203981,7 @@ label_BFC3E244: cpu->gpr[24] = cpu->gpr[10] & cpu->gpr[16]; /* 0xBFC3E250: 17000013 bne $t8, $zero, 0xBFC3E2A0 */ uint32_t psx_brA_BFC3E250 = cpu->gpr[24]; uint32_t psx_brB_BFC3E250 = cpu->gpr[0]; - int psx_taken_BFC3E250 = (psx_brA_BFC3E250 != psx_brB_BFC3E250); + psx_taken_BFC3E250 = (psx_brA_BFC3E250 != psx_brB_BFC3E250); /* 0xBFC3E254: 01001021 addu $v0, $t0, $zero */ cpu->gpr[2] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC3E250) goto label_BFC3E2A0; @@ -198482,7 +204000,7 @@ label_BFC3E258: cpu->gpr[1] = (uint32_t)(cpu->gpr[25] < cpu->gpr[14] ? 1 : 0); /* 0xBFC3E268: 10200008 beq $at, $zero, 0xBFC3E28C */ uint32_t psx_brA_BFC3E268 = cpu->gpr[1]; uint32_t psx_brB_BFC3E268 = cpu->gpr[0]; - int psx_taken_BFC3E268 = (psx_brA_BFC3E268 == psx_brB_BFC3E268); + psx_taken_BFC3E268 = (psx_brA_BFC3E268 == psx_brB_BFC3E268); /* 0xBFC3E26C: 00000000 nop */ /* nop */ if (psx_taken_BFC3E268) goto label_BFC3E28C; @@ -198516,7 +204034,7 @@ label_BFC3E28C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[7] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC3E294: 1420FFEB bne $at, $zero, 0xBFC3E244 */ uint32_t psx_brA_BFC3E294 = cpu->gpr[1]; uint32_t psx_brB_BFC3E294 = cpu->gpr[0]; - int psx_taken_BFC3E294 = (psx_brA_BFC3E294 != psx_brB_BFC3E294); + psx_taken_BFC3E294 = (psx_brA_BFC3E294 != psx_brB_BFC3E294); /* 0xBFC3E298: 25290008 addiu $t1, $t1, 8 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[9] + (8)); if (psx_taken_BFC3E294) goto label_BFC3E244; @@ -198536,7 +204054,7 @@ label_BFC3E2A0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (int32_t)cpu->gpr[3] ? 1 : 0); /* 0xBFC3E2A4: 1420FFD9 bne $at, $zero, 0xBFC3E20C */ uint32_t psx_brA_BFC3E2A4 = cpu->gpr[1]; uint32_t psx_brB_BFC3E2A4 = cpu->gpr[0]; - int psx_taken_BFC3E2A4 = (psx_brA_BFC3E2A4 != psx_brB_BFC3E2A4); + psx_taken_BFC3E2A4 = (psx_brA_BFC3E2A4 != psx_brB_BFC3E2A4); /* 0xBFC3E2A8: 24A50008 addiu $a1, $a1, 8 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (8)); if (psx_taken_BFC3E2A4) goto label_BFC3E20C; @@ -198554,7 +204072,7 @@ label_BFC3E2B0: psx_check_interrupts(cpu); /* 0xBFC3E2B0: 18600019 blez $v1, 0xBFC3E318 */ uint32_t psx_brA_BFC3E2B0 = cpu->gpr[3]; - int psx_taken_BFC3E2B0 = ((int32_t)psx_brA_BFC3E2B0 <= 0); + psx_taken_BFC3E2B0 = ((int32_t)psx_brA_BFC3E2B0 <= 0); /* 0xBFC3E2B4: 00000000 nop */ /* nop */ if (psx_taken_BFC3E2B0) goto label_BFC3E318; @@ -198578,7 +204096,7 @@ label_BFC3E2BC: cpu->gpr[24] = cpu->gpr[6] & cpu->gpr[16]; /* 0xBFC3E2C8: 17000013 bne $t8, $zero, 0xBFC3E318 */ uint32_t psx_brA_BFC3E2C8 = cpu->gpr[24]; uint32_t psx_brB_BFC3E2C8 = cpu->gpr[0]; - int psx_taken_BFC3E2C8 = (psx_brA_BFC3E2C8 != psx_brB_BFC3E2C8); + psx_taken_BFC3E2C8 = (psx_brA_BFC3E2C8 != psx_brB_BFC3E2C8); /* 0xBFC3E2CC: 00000000 nop */ /* nop */ if (psx_taken_BFC3E2C8) goto label_BFC3E318; @@ -198589,7 +204107,7 @@ label_BFC3E2D0: psx_check_interrupts(cpu); /* 0xBFC3E2D0: 1586000E bne $t4, $a2, 0xBFC3E30C */ uint32_t psx_brA_BFC3E2D0 = cpu->gpr[12]; uint32_t psx_brB_BFC3E2D0 = cpu->gpr[6]; - int psx_taken_BFC3E2D0 = (psx_brA_BFC3E2D0 != psx_brB_BFC3E2D0); + psx_taken_BFC3E2D0 = (psx_brA_BFC3E2D0 != psx_brB_BFC3E2D0); /* 0xBFC3E2D4: 00000000 nop */ /* nop */ if (psx_taken_BFC3E2D0) goto label_BFC3E30C; @@ -198622,7 +204140,7 @@ label_BFC3E2D8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E300u); return; } g_debug_last_store_pc = 0xBFC3E300u; cpu->write_word(psx_addr, cpu->gpr[24]); } /* 0xBFC3E304: 10000004 beq $zero, $zero, 0xBFC3E318 */ uint32_t psx_brA_BFC3E304 = cpu->gpr[0]; uint32_t psx_brB_BFC3E304 = cpu->gpr[0]; - int psx_taken_BFC3E304 = (psx_brA_BFC3E304 == psx_brB_BFC3E304); + psx_taken_BFC3E304 = (psx_brA_BFC3E304 == psx_brB_BFC3E304); /* 0xBFC3E308: AC229BF8 sw $v0, -25608($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25608)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E308u); return; } g_debug_last_store_pc = 0xBFC3E308u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC3E304) goto label_BFC3E318; @@ -198635,7 +204153,7 @@ label_BFC3E30C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC3E310: 1443FFEA bne $v0, $v1, 0xBFC3E2BC */ uint32_t psx_brA_BFC3E310 = cpu->gpr[2]; uint32_t psx_brB_BFC3E310 = cpu->gpr[3]; - int psx_taken_BFC3E310 = (psx_brA_BFC3E310 != psx_brB_BFC3E310); + psx_taken_BFC3E310 = (psx_brA_BFC3E310 != psx_brB_BFC3E310); /* 0xBFC3E314: 24A50008 addiu $a1, $a1, 8 */ cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (8)); if (psx_taken_BFC3E310) goto label_BFC3E2BC; @@ -198654,6 +204172,7 @@ label_BFC3E318: void func_1FC3E324(CPUState* cpu) { debug_server_log_call_entry(0x1FC3E324u); + int psx_taken_BFC3E324 = 0; label_BFC3E324: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -198661,7 +204180,7 @@ label_BFC3E324: psx_check_interrupts(cpu); /* 0xBFC3E324: 18800017 blez $a0, 0xBFC3E384 */ uint32_t psx_brA_BFC3E324 = cpu->gpr[4]; - int psx_taken_BFC3E324 = ((int32_t)psx_brA_BFC3E324 <= 0); + psx_taken_BFC3E324 = ((int32_t)psx_brA_BFC3E324 <= 0); /* 0xBFC3E328: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC3E324) goto label_BFC3E384; @@ -198737,6 +204256,30 @@ void func_1FC3E390(CPUState* cpu) { default: break; } } + int psx_taken_BFC3E3BC = 0; + int psx_taken_BFC3E3C4 = 0; + int psx_taken_BFC3E3FC = 0; + int psx_taken_BFC3E404 = 0; + int psx_taken_BFC3E42C = 0; + int psx_taken_BFC3E43C = 0; + int psx_taken_BFC3E470 = 0; + int psx_taken_BFC3E480 = 0; + int psx_taken_BFC3E4A8 = 0; + int psx_taken_BFC3E4B4 = 0; + int psx_taken_BFC3E4C8 = 0; + int psx_taken_BFC3E4D0 = 0; + int psx_taken_BFC3E4D8 = 0; + int psx_taken_BFC3E4E8 = 0; + int psx_taken_BFC3E4F4 = 0; + int psx_taken_BFC3E4FC = 0; + int psx_taken_BFC3E518 = 0; + int psx_taken_BFC3E520 = 0; + int psx_taken_BFC3E538 = 0; + int psx_taken_BFC3E588 = 0; + int psx_taken_BFC3E590 = 0; + int psx_taken_BFC3E598 = 0; + int psx_taken_BFC3E5AC = 0; + int psx_taken_BFC3E5C4 = 0; label_BFC3E390: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(13u); @@ -198766,7 +204309,7 @@ label_BFC3E390: cpu->gpr[11] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); /* 0xBFC3E3BC: 15E00003 bne $t7, $zero, 0xBFC3E3CC */ uint32_t psx_brA_BFC3E3BC = cpu->gpr[15]; uint32_t psx_brB_BFC3E3BC = cpu->gpr[0]; - int psx_taken_BFC3E3BC = (psx_brA_BFC3E3BC != psx_brB_BFC3E3BC); + psx_taken_BFC3E3BC = (psx_brA_BFC3E3BC != psx_brB_BFC3E3BC); /* 0xBFC3E3C0: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC3E3BC) goto label_BFC3E3CC; @@ -198777,7 +204320,7 @@ label_BFC3E3C4: psx_check_interrupts(cpu); /* 0xBFC3E3C4: 1000000A beq $zero, $zero, 0xBFC3E3F0 */ uint32_t psx_brA_BFC3E3C4 = cpu->gpr[0]; uint32_t psx_brB_BFC3E3C4 = cpu->gpr[0]; - int psx_taken_BFC3E3C4 = (psx_brA_BFC3E3C4 == psx_brB_BFC3E3C4); + psx_taken_BFC3E3C4 = (psx_brA_BFC3E3C4 == psx_brB_BFC3E3C4); /* 0xBFC3E3C8: 00006021 addu $t4, $zero, $zero */ cpu->gpr[12] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3E3C4) goto label_BFC3E3F0; @@ -198817,7 +204360,7 @@ label_BFC3E3F0: cpu->gpr[15] = cpu->gpr[8] & cpu->gpr[25]; /* 0xBFC3E3FC: 11E00004 beq $t7, $zero, 0xBFC3E410 */ uint32_t psx_brA_BFC3E3FC = cpu->gpr[15]; uint32_t psx_brB_BFC3E3FC = cpu->gpr[0]; - int psx_taken_BFC3E3FC = (psx_brA_BFC3E3FC == psx_brB_BFC3E3FC); + psx_taken_BFC3E3FC = (psx_brA_BFC3E3FC == psx_brB_BFC3E3FC); /* 0xBFC3E400: 00001821 addu $v1, $zero, $zero */ cpu->gpr[3] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3E3FC) goto label_BFC3E410; @@ -198828,7 +204371,7 @@ label_BFC3E404: psx_check_interrupts(cpu); /* 0xBFC3E404: 10000002 beq $zero, $zero, 0xBFC3E410 */ uint32_t psx_brA_BFC3E404 = cpu->gpr[0]; uint32_t psx_brB_BFC3E404 = cpu->gpr[0]; - int psx_taken_BFC3E404 = (psx_brA_BFC3E404 == psx_brB_BFC3E404); + psx_taken_BFC3E404 = (psx_brA_BFC3E404 == psx_brB_BFC3E404); /* 0xBFC3E408: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC3E404) goto label_BFC3E410; @@ -198860,7 +204403,7 @@ label_BFC3E410: cpu->gpr[24] = cpu->gpr[14] & cpu->gpr[6]; /* 0xBFC3E42C: 13000005 beq $t8, $zero, 0xBFC3E444 */ uint32_t psx_brA_BFC3E42C = cpu->gpr[24]; uint32_t psx_brB_BFC3E42C = cpu->gpr[0]; - int psx_taken_BFC3E42C = (psx_brA_BFC3E42C == psx_brB_BFC3E42C); + psx_taken_BFC3E42C = (psx_brA_BFC3E42C == psx_brB_BFC3E42C); /* 0xBFC3E430: 00E84004 sllv $t0, $t0, $a3 */ cpu->gpr[8] = cpu->gpr[8] << (cpu->gpr[7] & 0x1Fu); if (psx_taken_BFC3E42C) goto label_BFC3E444; @@ -198875,7 +204418,7 @@ label_BFC3E434: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[10] + (-25612)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E438u); return; } cpu->gpr[10] = cpu->read_word(psx_addr); } /* 0xBFC3E43C: 1000002C beq $zero, $zero, 0xBFC3E4F0 */ uint32_t psx_brA_BFC3E43C = cpu->gpr[0]; uint32_t psx_brB_BFC3E43C = cpu->gpr[0]; - int psx_taken_BFC3E43C = (psx_brA_BFC3E43C == psx_brB_BFC3E43C); + psx_taken_BFC3E43C = (psx_brA_BFC3E43C == psx_brB_BFC3E43C); /* 0xBFC3E440: 00005821 addu $t3, $zero, $zero */ cpu->gpr[11] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3E43C) goto label_BFC3E4F0; @@ -198914,7 +204457,7 @@ label_BFC3E458: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (24)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E46Cu); return; } cpu->gpr[12] = cpu->read_word(psx_addr); } /* 0xBFC3E470: 1D400005 bgtz $t2, 0xBFC3E488 */ uint32_t psx_brA_BFC3E470 = cpu->gpr[10]; - int psx_taken_BFC3E470 = ((int32_t)psx_brA_BFC3E470 > 0); + psx_taken_BFC3E470 = ((int32_t)psx_brA_BFC3E470 > 0); /* 0xBFC3E474: 3C064000 lui $a2, 0x4000 */ cpu->gpr[6] = 0x40000000u; if (psx_taken_BFC3E470) goto label_BFC3E488; @@ -198929,7 +204472,7 @@ label_BFC3E478: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[13] + (-4540)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E47Cu); return; } cpu->gpr[13] = cpu->read_word(psx_addr); } /* 0xBFC3E480: 1000001C beq $zero, $zero, 0xBFC3E4F4 */ uint32_t psx_brA_BFC3E480 = cpu->gpr[0]; uint32_t psx_brB_BFC3E480 = cpu->gpr[0]; - int psx_taken_BFC3E480 = (psx_brA_BFC3E480 == psx_brB_BFC3E480); + psx_taken_BFC3E480 = (psx_brA_BFC3E480 == psx_brB_BFC3E480); /* 0xBFC3E484: 2401FFFF addiu $at, $zero, -1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3E480) goto label_BFC3E4F4; @@ -198961,7 +204504,7 @@ label_BFC3E49C: cpu->gpr[15] = cpu->gpr[2] & cpu->gpr[6]; /* 0xBFC3E4A8: 15E0000B bne $t7, $zero, 0xBFC3E4D8 */ uint32_t psx_brA_BFC3E4A8 = cpu->gpr[15]; uint32_t psx_brB_BFC3E4A8 = cpu->gpr[0]; - int psx_taken_BFC3E4A8 = (psx_brA_BFC3E4A8 != psx_brB_BFC3E4A8); + psx_taken_BFC3E4A8 = (psx_brA_BFC3E4A8 != psx_brB_BFC3E4A8); /* 0xBFC3E4AC: 00000000 nop */ /* nop */ if (psx_taken_BFC3E4A8) goto label_BFC3E4D8; @@ -198974,7 +204517,7 @@ label_BFC3E4B0: cpu->gpr[14] = cpu->gpr[2] & cpu->gpr[4]; /* 0xBFC3E4B4: 11C0000A beq $t6, $zero, 0xBFC3E4E0 */ uint32_t psx_brA_BFC3E4B4 = cpu->gpr[14]; uint32_t psx_brB_BFC3E4B4 = cpu->gpr[0]; - int psx_taken_BFC3E4B4 = (psx_brA_BFC3E4B4 == psx_brB_BFC3E4B4); + psx_taken_BFC3E4B4 = (psx_brA_BFC3E4B4 == psx_brB_BFC3E4B4); /* 0xBFC3E4B8: 00000000 nop */ /* nop */ if (psx_taken_BFC3E4B4) goto label_BFC3E4E0; @@ -198991,7 +204534,7 @@ label_BFC3E4BC: cpu->gpr[1] = (uint32_t)(cpu->gpr[24] < cpu->gpr[8] ? 1 : 0); /* 0xBFC3E4C8: 14200005 bne $at, $zero, 0xBFC3E4E0 */ uint32_t psx_brA_BFC3E4C8 = cpu->gpr[1]; uint32_t psx_brB_BFC3E4C8 = cpu->gpr[0]; - int psx_taken_BFC3E4C8 = (psx_brA_BFC3E4C8 != psx_brB_BFC3E4C8); + psx_taken_BFC3E4C8 = (psx_brA_BFC3E4C8 != psx_brB_BFC3E4C8); /* 0xBFC3E4CC: 00000000 nop */ /* nop */ if (psx_taken_BFC3E4C8) goto label_BFC3E4E0; @@ -199002,7 +204545,7 @@ label_BFC3E4D0: psx_check_interrupts(cpu); /* 0xBFC3E4D0: 10000007 beq $zero, $zero, 0xBFC3E4F0 */ uint32_t psx_brA_BFC3E4D0 = cpu->gpr[0]; uint32_t psx_brB_BFC3E4D0 = cpu->gpr[0]; - int psx_taken_BFC3E4D0 = (psx_brA_BFC3E4D0 == psx_brB_BFC3E4D0); + psx_taken_BFC3E4D0 = (psx_brA_BFC3E4D0 == psx_brB_BFC3E4D0); /* 0xBFC3E4D4: 00A05821 addu $t3, $a1, $zero */ cpu->gpr[11] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC3E4D0) goto label_BFC3E4F0; @@ -199013,7 +204556,7 @@ label_BFC3E4D8: psx_check_interrupts(cpu); /* 0xBFC3E4D8: 10000005 beq $zero, $zero, 0xBFC3E4F0 */ uint32_t psx_brA_BFC3E4D8 = cpu->gpr[0]; uint32_t psx_brB_BFC3E4D8 = cpu->gpr[0]; - int psx_taken_BFC3E4D8 = (psx_brA_BFC3E4D8 == psx_brB_BFC3E4D8); + psx_taken_BFC3E4D8 = (psx_brA_BFC3E4D8 == psx_brB_BFC3E4D8); /* 0xBFC3E4DC: 00A05821 addu $t3, $a1, $zero */ cpu->gpr[11] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC3E4D8) goto label_BFC3E4F0; @@ -199028,7 +204571,7 @@ label_BFC3E4E0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[5] < (int32_t)cpu->gpr[10] ? 1 : 0); /* 0xBFC3E4E8: 1420FFEC bne $at, $zero, 0xBFC3E49C */ uint32_t psx_brA_BFC3E4E8 = cpu->gpr[1]; uint32_t psx_brB_BFC3E4E8 = cpu->gpr[0]; - int psx_taken_BFC3E4E8 = (psx_brA_BFC3E4E8 != psx_brB_BFC3E4E8); + psx_taken_BFC3E4E8 = (psx_brA_BFC3E4E8 != psx_brB_BFC3E4E8); /* 0xBFC3E4EC: 24630008 addiu $v1, $v1, 8 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (8)); if (psx_taken_BFC3E4E8) goto label_BFC3E49C; @@ -199046,7 +204589,7 @@ label_BFC3E4F4: psx_check_interrupts(cpu); /* 0xBFC3E4F4: 15610004 bne $t3, $at, 0xBFC3E508 */ uint32_t psx_brA_BFC3E4F4 = cpu->gpr[11]; uint32_t psx_brB_BFC3E4F4 = cpu->gpr[1]; - int psx_taken_BFC3E4F4 = (psx_brA_BFC3E4F4 != psx_brB_BFC3E4F4); + psx_taken_BFC3E4F4 = (psx_brA_BFC3E4F4 != psx_brB_BFC3E4F4); /* 0xBFC3E4F8: 000BC8C0 sll $t9, $t3, 3 */ cpu->gpr[25] = cpu->gpr[11] << 3u; if (psx_taken_BFC3E4F4) goto label_BFC3E508; @@ -199057,7 +204600,7 @@ label_BFC3E4FC: psx_check_interrupts(cpu); /* 0xBFC3E4FC: 10000049 beq $zero, $zero, 0xBFC3E624 */ uint32_t psx_brA_BFC3E4FC = cpu->gpr[0]; uint32_t psx_brB_BFC3E4FC = cpu->gpr[0]; - int psx_taken_BFC3E4FC = (psx_brA_BFC3E4FC == psx_brB_BFC3E4FC); + psx_taken_BFC3E4FC = (psx_brA_BFC3E4FC == psx_brB_BFC3E4FC); /* 0xBFC3E500: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3E4FC) goto label_BFC3E624; @@ -199083,7 +204626,7 @@ label_BFC3E508: cpu->gpr[15] = cpu->gpr[9] & cpu->gpr[6]; /* 0xBFC3E518: 11E00021 beq $t7, $zero, 0xBFC3E5A0 */ uint32_t psx_brA_BFC3E518 = cpu->gpr[15]; uint32_t psx_brB_BFC3E518 = cpu->gpr[0]; - int psx_taken_BFC3E518 = (psx_brA_BFC3E518 == psx_brB_BFC3E518); + psx_taken_BFC3E518 = (psx_brA_BFC3E518 == psx_brB_BFC3E518); /* 0xBFC3E51C: 016A082A slt $at, $t3, $t2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[11] < (int32_t)cpu->gpr[10] ? 1 : 0); if (psx_taken_BFC3E518) goto label_BFC3E5A0; @@ -199094,7 +204637,7 @@ label_BFC3E520: psx_check_interrupts(cpu); /* 0xBFC3E520: 1020001D beq $at, $zero, 0xBFC3E598 */ uint32_t psx_brA_BFC3E520 = cpu->gpr[1]; uint32_t psx_brB_BFC3E520 = cpu->gpr[0]; - int psx_taken_BFC3E520 = (psx_brA_BFC3E520 == psx_brB_BFC3E520); + psx_taken_BFC3E520 = (psx_brA_BFC3E520 == psx_brB_BFC3E520); /* 0xBFC3E524: 00000000 nop */ /* nop */ if (psx_taken_BFC3E520) goto label_BFC3E598; @@ -199113,7 +204656,7 @@ label_BFC3E528: cpu->gpr[1] = (uint32_t)(cpu->gpr[24] < cpu->gpr[8] ? 1 : 0); /* 0xBFC3E538: 14200015 bne $at, $zero, 0xBFC3E590 */ uint32_t psx_brA_BFC3E538 = cpu->gpr[1]; uint32_t psx_brB_BFC3E538 = cpu->gpr[0]; - int psx_taken_BFC3E538 = (psx_brA_BFC3E538 != psx_brB_BFC3E538); + psx_taken_BFC3E538 = (psx_brA_BFC3E538 != psx_brB_BFC3E538); /* 0xBFC3E53C: 00000000 nop */ /* nop */ if (psx_taken_BFC3E538) goto label_BFC3E590; @@ -199160,7 +204703,7 @@ label_BFC3E540: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E584u); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } /* 0xBFC3E588: 10000026 beq $zero, $zero, 0xBFC3E624 */ uint32_t psx_brA_BFC3E588 = cpu->gpr[0]; uint32_t psx_brB_BFC3E588 = cpu->gpr[0]; - int psx_taken_BFC3E588 = (psx_brA_BFC3E588 == psx_brB_BFC3E588); + psx_taken_BFC3E588 = (psx_brA_BFC3E588 == psx_brB_BFC3E588); /* 0xBFC3E58C: AC279BF8 sw $a3, -25608($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25608)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E58Cu); return; } g_debug_last_store_pc = 0xBFC3E58Cu; cpu->write_word(psx_addr, cpu->gpr[7]); } if (psx_taken_BFC3E588) goto label_BFC3E624; @@ -199171,7 +204714,7 @@ label_BFC3E590: psx_check_interrupts(cpu); /* 0xBFC3E590: 10000024 beq $zero, $zero, 0xBFC3E624 */ uint32_t psx_brA_BFC3E590 = cpu->gpr[0]; uint32_t psx_brB_BFC3E590 = cpu->gpr[0]; - int psx_taken_BFC3E590 = (psx_brA_BFC3E590 == psx_brB_BFC3E590); + psx_taken_BFC3E590 = (psx_brA_BFC3E590 == psx_brB_BFC3E590); /* 0xBFC3E594: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3E590) goto label_BFC3E624; @@ -199182,7 +204725,7 @@ label_BFC3E598: psx_check_interrupts(cpu); /* 0xBFC3E598: 10000022 beq $zero, $zero, 0xBFC3E624 */ uint32_t psx_brA_BFC3E598 = cpu->gpr[0]; uint32_t psx_brB_BFC3E598 = cpu->gpr[0]; - int psx_taken_BFC3E598 = (psx_brA_BFC3E598 == psx_brB_BFC3E598); + psx_taken_BFC3E598 = (psx_brA_BFC3E598 == psx_brB_BFC3E598); /* 0xBFC3E59C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3E598) goto label_BFC3E624; @@ -199199,7 +204742,7 @@ label_BFC3E5A0: cpu->gpr[1] = (uint32_t)(cpu->gpr[8] < cpu->gpr[6] ? 1 : 0); /* 0xBFC3E5AC: 10200018 beq $at, $zero, 0xBFC3E610 */ uint32_t psx_brA_BFC3E5AC = cpu->gpr[1]; uint32_t psx_brB_BFC3E5AC = cpu->gpr[0]; - int psx_taken_BFC3E5AC = (psx_brA_BFC3E5AC == psx_brB_BFC3E5AC); + psx_taken_BFC3E5AC = (psx_brA_BFC3E5AC == psx_brB_BFC3E5AC); /* 0xBFC3E5B0: 3C040FFF lui $a0, 0xFFF */ cpu->gpr[4] = 0x0FFF0000u; if (psx_taken_BFC3E5AC) goto label_BFC3E610; @@ -199218,7 +204761,7 @@ label_BFC3E5B4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[7] < (int32_t)cpu->gpr[10] ? 1 : 0); /* 0xBFC3E5C4: 10200012 beq $at, $zero, 0xBFC3E610 */ uint32_t psx_brA_BFC3E5C4 = cpu->gpr[1]; uint32_t psx_brB_BFC3E5C4 = cpu->gpr[0]; - int psx_taken_BFC3E5C4 = (psx_brA_BFC3E5C4 == psx_brB_BFC3E5C4); + psx_taken_BFC3E5C4 = (psx_brA_BFC3E5C4 == psx_brB_BFC3E5C4); /* 0xBFC3E5C8: 3C040FFF lui $a0, 0xFFF */ cpu->gpr[4] = 0x0FFF0000u; if (psx_taken_BFC3E5C4) goto label_BFC3E610; @@ -199293,6 +204836,34 @@ label_BFC3E624: void func_1FC3E634(CPUState* cpu) { debug_server_log_call_entry(0x1FC3E634u); + int psx_taken_BFC3E658 = 0; + int psx_taken_BFC3E660 = 0; + int psx_taken_BFC3E69C = 0; + int psx_taken_BFC3E6BC = 0; + int psx_taken_BFC3E6E8 = 0; + int psx_taken_BFC3E6F0 = 0; + int psx_taken_BFC3E6F8 = 0; + int psx_taken_BFC3E700 = 0; + int psx_taken_BFC3E720 = 0; + int psx_taken_BFC3E728 = 0; + int psx_taken_BFC3E774 = 0; + int psx_taken_BFC3E794 = 0; + int psx_taken_BFC3E79C = 0; + int psx_taken_BFC3E7F0 = 0; + int psx_taken_BFC3E7F8 = 0; + int psx_taken_BFC3E800 = 0; + int psx_taken_BFC3E820 = 0; + int psx_taken_BFC3E828 = 0; + int psx_taken_BFC3E848 = 0; + int psx_taken_BFC3E850 = 0; + int psx_taken_BFC3E884 = 0; + int psx_taken_BFC3E890 = 0; + int psx_taken_BFC3E8D0 = 0; + int psx_taken_BFC3E8DC = 0; + int psx_taken_BFC3E8EC = 0; + int psx_taken_BFC3E90C = 0; + int psx_taken_BFC3E914 = 0; + int psx_taken_BFC3E930 = 0; label_BFC3E634: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -199318,7 +204889,7 @@ label_BFC3E634: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-48)); /* 0xBFC3E658: 15E00003 bne $t7, $zero, 0xBFC3E668 */ uint32_t psx_brA_BFC3E658 = cpu->gpr[15]; uint32_t psx_brB_BFC3E658 = cpu->gpr[0]; - int psx_taken_BFC3E658 = (psx_brA_BFC3E658 != psx_brB_BFC3E658); + psx_taken_BFC3E658 = (psx_brA_BFC3E658 != psx_brB_BFC3E658); /* 0xBFC3E65C: 00E01821 addu $v1, $a3, $zero */ cpu->gpr[3] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC3E658) goto label_BFC3E668; @@ -199329,7 +204900,7 @@ label_BFC3E660: psx_check_interrupts(cpu); /* 0xBFC3E660: 1000000C beq $zero, $zero, 0xBFC3E694 */ uint32_t psx_brA_BFC3E660 = cpu->gpr[0]; uint32_t psx_brB_BFC3E660 = cpu->gpr[0]; - int psx_taken_BFC3E660 = (psx_brA_BFC3E660 == psx_brB_BFC3E660); + psx_taken_BFC3E660 = (psx_brA_BFC3E660 == psx_brB_BFC3E660); /* 0xBFC3E664: 00005821 addu $t3, $zero, $zero */ cpu->gpr[11] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3E660) goto label_BFC3E694; @@ -199371,7 +204942,7 @@ label_BFC3E694: cpu->gpr[12] = cpu->gpr[3] & cpu->gpr[1]; /* 0xBFC3E69C: 11800009 beq $t4, $zero, 0xBFC3E6C4 */ uint32_t psx_brA_BFC3E69C = cpu->gpr[12]; uint32_t psx_brB_BFC3E69C = cpu->gpr[0]; - int psx_taken_BFC3E69C = (psx_brA_BFC3E69C == psx_brB_BFC3E69C); + psx_taken_BFC3E69C = (psx_brA_BFC3E69C == psx_brB_BFC3E69C); /* 0xBFC3E6A0: 3C010FFF lui $at, 0xFFF */ cpu->gpr[1] = 0x0FFF0000u; if (psx_taken_BFC3E69C) goto label_BFC3E6C4; @@ -199394,7 +204965,7 @@ label_BFC3E6A4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E6B8u); return; } cpu->gpr[14] = cpu->read_word(psx_addr); } /* 0xBFC3E6BC: 10000009 beq $zero, $zero, 0xBFC3E6E4 */ uint32_t psx_brA_BFC3E6BC = cpu->gpr[0]; uint32_t psx_brB_BFC3E6BC = cpu->gpr[0]; - int psx_taken_BFC3E6BC = (psx_brA_BFC3E6BC == psx_brB_BFC3E6BC); + psx_taken_BFC3E6BC = (psx_brA_BFC3E6BC == psx_brB_BFC3E6BC); /* 0xBFC3E6C0: 01CB6823 subu $t5, $t6, $t3 */ cpu->gpr[13] = cpu->gpr[14] - cpu->gpr[11]; if (psx_taken_BFC3E6BC) goto label_BFC3E6E4; @@ -199428,7 +204999,7 @@ label_BFC3E6E4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[13] < (int32_t)cpu->gpr[6] ? 1 : 0); /* 0xBFC3E6E8: 10200003 beq $at, $zero, 0xBFC3E6F8 */ uint32_t psx_brA_BFC3E6E8 = cpu->gpr[1]; uint32_t psx_brB_BFC3E6E8 = cpu->gpr[0]; - int psx_taken_BFC3E6E8 = (psx_brA_BFC3E6E8 == psx_brB_BFC3E6E8); + psx_taken_BFC3E6E8 = (psx_brA_BFC3E6E8 == psx_brB_BFC3E6E8); /* 0xBFC3E6EC: 00000000 nop */ /* nop */ if (psx_taken_BFC3E6E8) goto label_BFC3E6F8; @@ -199439,7 +205010,7 @@ label_BFC3E6F0: psx_check_interrupts(cpu); /* 0xBFC3E6F0: 100000A1 beq $zero, $zero, 0xBFC3E978 */ uint32_t psx_brA_BFC3E6F0 = cpu->gpr[0]; uint32_t psx_brB_BFC3E6F0 = cpu->gpr[0]; - int psx_taken_BFC3E6F0 = (psx_brA_BFC3E6F0 == psx_brB_BFC3E6F0); + psx_taken_BFC3E6F0 = (psx_brA_BFC3E6F0 == psx_brB_BFC3E6F0); /* 0xBFC3E6F4: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3E6F0) goto label_BFC3E978; @@ -199450,7 +205021,7 @@ label_BFC3E6F8: psx_check_interrupts(cpu); /* 0xBFC3E6F8: 1180003F beq $t4, $zero, 0xBFC3E7F8 */ uint32_t psx_brA_BFC3E6F8 = cpu->gpr[12]; uint32_t psx_brB_BFC3E6F8 = cpu->gpr[0]; - int psx_taken_BFC3E6F8 = (psx_brA_BFC3E6F8 == psx_brB_BFC3E6F8); + psx_taken_BFC3E6F8 = (psx_brA_BFC3E6F8 == psx_brB_BFC3E6F8); /* 0xBFC3E6FC: 00000000 nop */ /* nop */ if (psx_taken_BFC3E6F8) goto label_BFC3E7F8; @@ -199461,7 +205032,7 @@ label_BFC3E700: psx_check_interrupts(cpu); /* 0xBFC3E700: 1940001E blez $t2, 0xBFC3E77C */ uint32_t psx_brA_BFC3E700 = cpu->gpr[10]; - int psx_taken_BFC3E700 = ((int32_t)psx_brA_BFC3E700 <= 0); + psx_taken_BFC3E700 = ((int32_t)psx_brA_BFC3E700 <= 0); /* 0xBFC3E704: 00000000 nop */ /* nop */ if (psx_taken_BFC3E700) goto label_BFC3E77C; @@ -199484,7 +205055,7 @@ label_BFC3E708: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[15] < (int32_t)cpu->gpr[9] ? 1 : 0); /* 0xBFC3E720: 10200004 beq $at, $zero, 0xBFC3E734 */ uint32_t psx_brA_BFC3E720 = cpu->gpr[1]; uint32_t psx_brB_BFC3E720 = cpu->gpr[0]; - int psx_taken_BFC3E720 = (psx_brA_BFC3E720 == psx_brB_BFC3E720); + psx_taken_BFC3E720 = (psx_brA_BFC3E720 == psx_brB_BFC3E720); /* 0xBFC3E724: 000970C0 sll $t6, $t1, 3 */ cpu->gpr[14] = cpu->gpr[9] << 3u; if (psx_taken_BFC3E720) goto label_BFC3E734; @@ -199495,7 +205066,7 @@ label_BFC3E728: psx_check_interrupts(cpu); /* 0xBFC3E728: 10000093 beq $zero, $zero, 0xBFC3E978 */ uint32_t psx_brA_BFC3E728 = cpu->gpr[0]; uint32_t psx_brB_BFC3E728 = cpu->gpr[0]; - int psx_taken_BFC3E728 = (psx_brA_BFC3E728 == psx_brB_BFC3E728); + psx_taken_BFC3E728 = (psx_brA_BFC3E728 == psx_brB_BFC3E728); /* 0xBFC3E72C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3E728) goto label_BFC3E978; @@ -199545,7 +205116,7 @@ label_BFC3E734: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[7] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E770u); return; } g_debug_last_store_pc = 0xBFC3E770u; cpu->write_word(psx_addr, cpu->gpr[5]); } /* 0xBFC3E774: 10000013 beq $zero, $zero, 0xBFC3E7C4 */ uint32_t psx_brA_BFC3E774 = cpu->gpr[0]; uint32_t psx_brB_BFC3E774 = cpu->gpr[0]; - int psx_taken_BFC3E774 = (psx_brA_BFC3E774 == psx_brB_BFC3E774); + psx_taken_BFC3E774 = (psx_brA_BFC3E774 == psx_brB_BFC3E774); /* 0xBFC3E778: ACE60004 sw $a2, 4($a3) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[7] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E778u); return; } g_debug_last_store_pc = 0xBFC3E778u; cpu->write_word(psx_addr, cpu->gpr[6]); } if (psx_taken_BFC3E774) goto label_BFC3E7C4; @@ -199568,7 +205139,7 @@ label_BFC3E77C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (int32_t)cpu->gpr[25] ? 1 : 0); /* 0xBFC3E794: 14200004 bne $at, $zero, 0xBFC3E7A8 */ uint32_t psx_brA_BFC3E794 = cpu->gpr[1]; uint32_t psx_brB_BFC3E794 = cpu->gpr[0]; - int psx_taken_BFC3E794 = (psx_brA_BFC3E794 != psx_brB_BFC3E794); + psx_taken_BFC3E794 = (psx_brA_BFC3E794 != psx_brB_BFC3E794); /* 0xBFC3E798: 000978C0 sll $t7, $t1, 3 */ cpu->gpr[15] = cpu->gpr[9] << 3u; if (psx_taken_BFC3E794) goto label_BFC3E7A8; @@ -199579,7 +205150,7 @@ label_BFC3E79C: psx_check_interrupts(cpu); /* 0xBFC3E79C: 10000076 beq $zero, $zero, 0xBFC3E978 */ uint32_t psx_brA_BFC3E79C = cpu->gpr[0]; uint32_t psx_brB_BFC3E79C = cpu->gpr[0]; - int psx_taken_BFC3E79C = (psx_brA_BFC3E79C == psx_brB_BFC3E79C); + psx_taken_BFC3E79C = (psx_brA_BFC3E79C == psx_brB_BFC3E79C); /* 0xBFC3E7A0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3E79C) goto label_BFC3E978; @@ -199638,7 +205209,7 @@ label_BFC3E7C4: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[7] + (8)); /* 0xBFC3E7F0: 10000060 beq $zero, $zero, 0xBFC3E974 */ uint32_t psx_brA_BFC3E7F0 = cpu->gpr[0]; uint32_t psx_brB_BFC3E7F0 = cpu->gpr[0]; - int psx_taken_BFC3E7F0 = (psx_brA_BFC3E7F0 == psx_brB_BFC3E7F0); + psx_taken_BFC3E7F0 = (psx_brA_BFC3E7F0 == psx_brB_BFC3E7F0); /* 0xBFC3E7F4: AC299BF8 sw $t1, -25608($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25608)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E7F4u); return; } g_debug_last_store_pc = 0xBFC3E7F4u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC3E7F0) goto label_BFC3E974; @@ -199649,7 +205220,7 @@ label_BFC3E7F8: psx_check_interrupts(cpu); /* 0xBFC3E7F8: 19400038 blez $t2, 0xBFC3E8DC */ uint32_t psx_brA_BFC3E7F8 = cpu->gpr[10]; - int psx_taken_BFC3E7F8 = ((int32_t)psx_brA_BFC3E7F8 <= 0); + psx_taken_BFC3E7F8 = ((int32_t)psx_brA_BFC3E7F8 <= 0); /* 0xBFC3E7FC: 00CD082A slt $at, $a2, $t5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[6] < (int32_t)cpu->gpr[13] ? 1 : 0); if (psx_taken_BFC3E7F8) goto label_BFC3E8DC; @@ -199660,7 +205231,7 @@ label_BFC3E800: psx_check_interrupts(cpu); /* 0xBFC3E800: 15A6000B bne $t5, $a2, 0xBFC3E830 */ uint32_t psx_brA_BFC3E800 = cpu->gpr[13]; uint32_t psx_brB_BFC3E800 = cpu->gpr[6]; - int psx_taken_BFC3E800 = (psx_brA_BFC3E800 != psx_brB_BFC3E800); + psx_taken_BFC3E800 = (psx_brA_BFC3E800 != psx_brB_BFC3E800); /* 0xBFC3E804: 00000000 nop */ /* nop */ if (psx_taken_BFC3E800) goto label_BFC3E830; @@ -199683,7 +205254,7 @@ label_BFC3E808: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[14] < (int32_t)cpu->gpr[9] ? 1 : 0); /* 0xBFC3E820: 1020000E beq $at, $zero, 0xBFC3E85C */ uint32_t psx_brA_BFC3E820 = cpu->gpr[1]; uint32_t psx_brB_BFC3E820 = cpu->gpr[0]; - int psx_taken_BFC3E820 = (psx_brA_BFC3E820 == psx_brB_BFC3E820); + psx_taken_BFC3E820 = (psx_brA_BFC3E820 == psx_brB_BFC3E820); /* 0xBFC3E824: 0009C8C0 sll $t9, $t1, 3 */ cpu->gpr[25] = cpu->gpr[9] << 3u; if (psx_taken_BFC3E820) goto label_BFC3E85C; @@ -199694,7 +205265,7 @@ label_BFC3E828: psx_check_interrupts(cpu); /* 0xBFC3E828: 10000053 beq $zero, $zero, 0xBFC3E978 */ uint32_t psx_brA_BFC3E828 = cpu->gpr[0]; uint32_t psx_brB_BFC3E828 = cpu->gpr[0]; - int psx_taken_BFC3E828 = (psx_brA_BFC3E828 == psx_brB_BFC3E828); + psx_taken_BFC3E828 = (psx_brA_BFC3E828 == psx_brB_BFC3E828); /* 0xBFC3E82C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3E828) goto label_BFC3E978; @@ -199717,7 +205288,7 @@ label_BFC3E830: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (int32_t)cpu->gpr[24] ? 1 : 0); /* 0xBFC3E848: 14200004 bne $at, $zero, 0xBFC3E85C */ uint32_t psx_brA_BFC3E848 = cpu->gpr[1]; uint32_t psx_brB_BFC3E848 = cpu->gpr[0]; - int psx_taken_BFC3E848 = (psx_brA_BFC3E848 != psx_brB_BFC3E848); + psx_taken_BFC3E848 = (psx_brA_BFC3E848 != psx_brB_BFC3E848); /* 0xBFC3E84C: 0009C8C0 sll $t9, $t1, 3 */ cpu->gpr[25] = cpu->gpr[9] << 3u; if (psx_taken_BFC3E848) goto label_BFC3E85C; @@ -199728,7 +205299,7 @@ label_BFC3E850: psx_check_interrupts(cpu); /* 0xBFC3E850: 10000049 beq $zero, $zero, 0xBFC3E978 */ uint32_t psx_brA_BFC3E850 = cpu->gpr[0]; uint32_t psx_brB_BFC3E850 = cpu->gpr[0]; - int psx_taken_BFC3E850 = (psx_brA_BFC3E850 == psx_brB_BFC3E850); + psx_taken_BFC3E850 = (psx_brA_BFC3E850 == psx_brB_BFC3E850); /* 0xBFC3E854: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3E850) goto label_BFC3E978; @@ -199766,7 +205337,7 @@ label_BFC3E85C: cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[9] + (1)); /* 0xBFC3E884: 10200004 beq $at, $zero, 0xBFC3E898 */ uint32_t psx_brA_BFC3E884 = cpu->gpr[1]; uint32_t psx_brB_BFC3E884 = cpu->gpr[0]; - int psx_taken_BFC3E884 = (psx_brA_BFC3E884 == psx_brB_BFC3E884); + psx_taken_BFC3E884 = (psx_brA_BFC3E884 == psx_brB_BFC3E884); /* 0xBFC3E888: ACEE0004 sw $t6, 4($a3) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[7] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E888u); return; } g_debug_last_store_pc = 0xBFC3E888u; cpu->write_word(psx_addr, cpu->gpr[14]); } if (psx_taken_BFC3E884) goto label_BFC3E898; @@ -199779,7 +205350,7 @@ label_BFC3E88C: cpu->gpr[1] = 0x80080000u; /* 0xBFC3E890: 10000038 beq $zero, $zero, 0xBFC3E974 */ uint32_t psx_brA_BFC3E890 = cpu->gpr[0]; uint32_t psx_brB_BFC3E890 = cpu->gpr[0]; - int psx_taken_BFC3E890 = (psx_brA_BFC3E890 == psx_brB_BFC3E890); + psx_taken_BFC3E890 = (psx_brA_BFC3E890 == psx_brB_BFC3E890); /* 0xBFC3E894: AC299BF8 sw $t1, -25608($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25608)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E894u); return; } g_debug_last_store_pc = 0xBFC3E894u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC3E890) goto label_BFC3E974; @@ -199818,7 +205389,7 @@ label_BFC3E898: cpu->gpr[7] = (uint32_t)((int32_t)cpu->gpr[7] + (8)); /* 0xBFC3E8D0: 10000028 beq $zero, $zero, 0xBFC3E974 */ uint32_t psx_brA_BFC3E8D0 = cpu->gpr[0]; uint32_t psx_brB_BFC3E8D0 = cpu->gpr[0]; - int psx_taken_BFC3E8D0 = (psx_brA_BFC3E8D0 == psx_brB_BFC3E8D0); + psx_taken_BFC3E8D0 = (psx_brA_BFC3E8D0 == psx_brB_BFC3E8D0); /* 0xBFC3E8D4: AC299BF8 sw $t1, -25608($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25608)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E8D4u); return; } g_debug_last_store_pc = 0xBFC3E8D4u; cpu->write_word(psx_addr, cpu->gpr[9]); } if (psx_taken_BFC3E8D0) goto label_BFC3E974; @@ -199836,7 +205407,7 @@ label_BFC3E8DC: psx_check_interrupts(cpu); /* 0xBFC3E8DC: 14200005 bne $at, $zero, 0xBFC3E8F4 */ uint32_t psx_brA_BFC3E8DC = cpu->gpr[1]; uint32_t psx_brB_BFC3E8DC = cpu->gpr[0]; - int psx_taken_BFC3E8DC = (psx_brA_BFC3E8DC != psx_brB_BFC3E8DC); + psx_taken_BFC3E8DC = (psx_brA_BFC3E8DC != psx_brB_BFC3E8DC); /* 0xBFC3E8E0: 00000000 nop */ /* nop */ if (psx_taken_BFC3E8DC) goto label_BFC3E8F4; @@ -199851,7 +205422,7 @@ label_BFC3E8E4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[9] + (-25608)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E8E8u); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } /* 0xBFC3E8EC: 1000000C beq $zero, $zero, 0xBFC3E920 */ uint32_t psx_brA_BFC3E8EC = cpu->gpr[0]; uint32_t psx_brB_BFC3E8EC = cpu->gpr[0]; - int psx_taken_BFC3E8EC = (psx_brA_BFC3E8EC == psx_brB_BFC3E8EC); + psx_taken_BFC3E8EC = (psx_brA_BFC3E8EC == psx_brB_BFC3E8EC); /* 0xBFC3E8F0: 3C010FFF lui $at, 0xFFF */ cpu->gpr[1] = 0x0FFF0000u; if (psx_taken_BFC3E8EC) goto label_BFC3E920; @@ -199874,7 +205445,7 @@ label_BFC3E8F4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (int32_t)cpu->gpr[15] ? 1 : 0); /* 0xBFC3E90C: 14200004 bne $at, $zero, 0xBFC3E920 */ uint32_t psx_brA_BFC3E90C = cpu->gpr[1]; uint32_t psx_brB_BFC3E90C = cpu->gpr[0]; - int psx_taken_BFC3E90C = (psx_brA_BFC3E90C != psx_brB_BFC3E90C); + psx_taken_BFC3E90C = (psx_brA_BFC3E90C != psx_brB_BFC3E90C); /* 0xBFC3E910: 3C010FFF lui $at, 0xFFF */ cpu->gpr[1] = 0x0FFF0000u; if (psx_taken_BFC3E90C) goto label_BFC3E920; @@ -199885,7 +205456,7 @@ label_BFC3E914: psx_check_interrupts(cpu); /* 0xBFC3E914: 10000018 beq $zero, $zero, 0xBFC3E978 */ uint32_t psx_brA_BFC3E914 = cpu->gpr[0]; uint32_t psx_brB_BFC3E914 = cpu->gpr[0]; - int psx_taken_BFC3E914 = (psx_brA_BFC3E914 == psx_brB_BFC3E914); + psx_taken_BFC3E914 = (psx_brA_BFC3E914 == psx_brB_BFC3E914); /* 0xBFC3E918: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3E914) goto label_BFC3E978; @@ -199911,7 +205482,7 @@ label_BFC3E920: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E92Cu); return; } g_debug_last_store_pc = 0xBFC3E92Cu; cpu->write_word(psx_addr, cpu->gpr[14]); } /* 0xBFC3E930: 10200010 beq $at, $zero, 0xBFC3E974 */ uint32_t psx_brA_BFC3E930 = cpu->gpr[1]; uint32_t psx_brB_BFC3E930 = cpu->gpr[0]; - int psx_taken_BFC3E930 = (psx_brA_BFC3E930 == psx_brB_BFC3E930); + psx_taken_BFC3E930 = (psx_brA_BFC3E930 == psx_brB_BFC3E930); /* 0xBFC3E934: AC460004 sw $a2, 4($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3E934u); return; } g_debug_last_store_pc = 0xBFC3E934u; cpu->write_word(psx_addr, cpu->gpr[6]); } if (psx_taken_BFC3E930) goto label_BFC3E974; @@ -199981,6 +205552,39 @@ void func_1FC3E980(CPUState* cpu) { default: break; } } + int psx_taken_BFC3E9A8 = 0; + int psx_taken_BFC3E9B0 = 0; + int psx_taken_BFC3E9E8 = 0; + int psx_taken_BFC3E9F0 = 0; + int psx_taken_BFC3EA0C = 0; + int psx_taken_BFC3EA14 = 0; + int psx_taken_BFC3EA30 = 0; + int psx_taken_BFC3EA38 = 0; + int psx_taken_BFC3EA54 = 0; + int psx_taken_BFC3EA5C = 0; + int psx_taken_BFC3EA7C = 0; + int psx_taken_BFC3EA94 = 0; + int psx_taken_BFC3EAB4 = 0; + int psx_taken_BFC3EABC = 0; + int psx_taken_BFC3EAF8 = 0; + int psx_taken_BFC3EB18 = 0; + int psx_taken_BFC3EB20 = 0; + int psx_taken_BFC3EB4C = 0; + int psx_taken_BFC3EB9C = 0; + int psx_taken_BFC3EBAC = 0; + int psx_taken_BFC3EBC4 = 0; + int psx_taken_BFC3EBD8 = 0; + int psx_taken_BFC3EBE4 = 0; + int psx_taken_BFC3EBF8 = 0; + int psx_taken_BFC3EC04 = 0; + int psx_taken_BFC3EC18 = 0; + int psx_taken_BFC3EC2C = 0; + int psx_taken_BFC3EC38 = 0; + int psx_taken_BFC3EC50 = 0; + int psx_taken_BFC3EC5C = 0; + int psx_taken_BFC3EC68 = 0; + int psx_taken_BFC3EC80 = 0; + int psx_taken_BFC3EC88 = 0; label_BFC3E980: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -200008,7 +205612,7 @@ label_BFC3E980: cpu->gpr[9] = cpu->gpr[5] + cpu->gpr[0]; /* 0xBFC3E9A8: 15E00003 bne $t7, $zero, 0xBFC3E9B8 */ uint32_t psx_brA_BFC3E9A8 = cpu->gpr[15]; uint32_t psx_brB_BFC3E9A8 = cpu->gpr[0]; - int psx_taken_BFC3E9A8 = (psx_brA_BFC3E9A8 != psx_brB_BFC3E9A8); + psx_taken_BFC3E9A8 = (psx_brA_BFC3E9A8 != psx_brB_BFC3E9A8); /* 0xBFC3E9AC: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC3E9A8) goto label_BFC3E9B8; @@ -200019,7 +205623,7 @@ label_BFC3E9B0: psx_check_interrupts(cpu); /* 0xBFC3E9B0: 1000000A beq $zero, $zero, 0xBFC3E9DC */ uint32_t psx_brA_BFC3E9B0 = cpu->gpr[0]; uint32_t psx_brB_BFC3E9B0 = cpu->gpr[0]; - int psx_taken_BFC3E9B0 = (psx_brA_BFC3E9B0 == psx_brB_BFC3E9B0); + psx_taken_BFC3E9B0 = (psx_brA_BFC3E9B0 == psx_brB_BFC3E9B0); /* 0xBFC3E9B4: 00006021 addu $t4, $zero, $zero */ cpu->gpr[12] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3E9B0) goto label_BFC3E9DC; @@ -200059,7 +205663,7 @@ label_BFC3E9DC: cpu->gpr[24] = cpu->gpr[9] & cpu->gpr[4]; /* 0xBFC3E9E8: 13000004 beq $t8, $zero, 0xBFC3E9FC */ uint32_t psx_brA_BFC3E9E8 = cpu->gpr[24]; uint32_t psx_brB_BFC3E9E8 = cpu->gpr[0]; - int psx_taken_BFC3E9E8 = (psx_brA_BFC3E9E8 == psx_brB_BFC3E9E8); + psx_taken_BFC3E9E8 = (psx_brA_BFC3E9E8 == psx_brB_BFC3E9E8); /* 0xBFC3E9EC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3E9E8) goto label_BFC3E9FC; @@ -200070,7 +205674,7 @@ label_BFC3E9F0: psx_check_interrupts(cpu); /* 0xBFC3E9F0: 10000002 beq $zero, $zero, 0xBFC3E9FC */ uint32_t psx_brA_BFC3E9F0 = cpu->gpr[0]; uint32_t psx_brB_BFC3E9F0 = cpu->gpr[0]; - int psx_taken_BFC3E9F0 = (psx_brA_BFC3E9F0 == psx_brB_BFC3E9F0); + psx_taken_BFC3E9F0 = (psx_brA_BFC3E9F0 == psx_brB_BFC3E9F0); /* 0xBFC3E9F4: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC3E9F0) goto label_BFC3E9FC; @@ -200096,7 +205700,7 @@ label_BFC3E9FC: cpu->gpr[9] = cpu->gpr[9] << (cpu->gpr[6] & 0x1Fu); /* 0xBFC3EA0C: 13200003 beq $t9, $zero, 0xBFC3EA1C */ uint32_t psx_brA_BFC3EA0C = cpu->gpr[25]; uint32_t psx_brB_BFC3EA0C = cpu->gpr[0]; - int psx_taken_BFC3EA0C = (psx_brA_BFC3EA0C == psx_brB_BFC3EA0C); + psx_taken_BFC3EA0C = (psx_brA_BFC3EA0C == psx_brB_BFC3EA0C); /* 0xBFC3EA10: 00E02821 addu $a1, $a3, $zero */ cpu->gpr[5] = cpu->gpr[7] + cpu->gpr[0]; if (psx_taken_BFC3EA0C) goto label_BFC3EA1C; @@ -200107,7 +205711,7 @@ label_BFC3EA14: psx_check_interrupts(cpu); /* 0xBFC3EA14: 10000002 beq $zero, $zero, 0xBFC3EA20 */ uint32_t psx_brA_BFC3EA14 = cpu->gpr[0]; uint32_t psx_brB_BFC3EA14 = cpu->gpr[0]; - int psx_taken_BFC3EA14 = (psx_brA_BFC3EA14 == psx_brB_BFC3EA14); + psx_taken_BFC3EA14 = (psx_brA_BFC3EA14 == psx_brB_BFC3EA14); /* 0xBFC3EA18: 00601021 addu $v0, $v1, $zero */ cpu->gpr[2] = cpu->gpr[3] + cpu->gpr[0]; if (psx_taken_BFC3EA14) goto label_BFC3EA20; @@ -200133,7 +205737,7 @@ label_BFC3EA20: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[5] < (4096) ? 1 : 0); /* 0xBFC3EA30: 10200004 beq $at, $zero, 0xBFC3EA44 */ uint32_t psx_brA_BFC3EA30 = cpu->gpr[1]; uint32_t psx_brB_BFC3EA30 = cpu->gpr[0]; - int psx_taken_BFC3EA30 = (psx_brA_BFC3EA30 == psx_brB_BFC3EA30); + psx_taken_BFC3EA30 = (psx_brA_BFC3EA30 == psx_brB_BFC3EA30); /* 0xBFC3EA34: 3C0E0001 lui $t6, 0x1 */ cpu->gpr[14] = 0x00010000u; if (psx_taken_BFC3EA30) goto label_BFC3EA44; @@ -200144,7 +205748,7 @@ label_BFC3EA38: psx_check_interrupts(cpu); /* 0xBFC3EA38: 1000009B beq $zero, $zero, 0xBFC3ECA8 */ uint32_t psx_brA_BFC3EA38 = cpu->gpr[0]; uint32_t psx_brB_BFC3EA38 = cpu->gpr[0]; - int psx_taken_BFC3EA38 = (psx_brA_BFC3EA38 == psx_brB_BFC3EA38); + psx_taken_BFC3EA38 = (psx_brA_BFC3EA38 == psx_brB_BFC3EA38); /* 0xBFC3EA3C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3EA38) goto label_BFC3ECA8; @@ -200170,7 +205774,7 @@ label_BFC3EA44: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[15] < (int32_t)cpu->gpr[2] ? 1 : 0); /* 0xBFC3EA54: 10200003 beq $at, $zero, 0xBFC3EA64 */ uint32_t psx_brA_BFC3EA54 = cpu->gpr[1]; uint32_t psx_brB_BFC3EA54 = cpu->gpr[0]; - int psx_taken_BFC3EA54 = (psx_brA_BFC3EA54 == psx_brB_BFC3EA54); + psx_taken_BFC3EA54 = (psx_brA_BFC3EA54 == psx_brB_BFC3EA54); /* 0xBFC3EA58: 00000000 nop */ /* nop */ if (psx_taken_BFC3EA54) goto label_BFC3EA64; @@ -200181,7 +205785,7 @@ label_BFC3EA5C: psx_check_interrupts(cpu); /* 0xBFC3EA5C: 10000092 beq $zero, $zero, 0xBFC3ECA8 */ uint32_t psx_brA_BFC3EA5C = cpu->gpr[0]; uint32_t psx_brB_BFC3EA5C = cpu->gpr[0]; - int psx_taken_BFC3EA5C = (psx_brA_BFC3EA5C == psx_brB_BFC3EA5C); + psx_taken_BFC3EA5C = (psx_brA_BFC3EA5C == psx_brB_BFC3EA5C); /* 0xBFC3EA60: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3EA5C) goto label_BFC3ECA8; @@ -200204,7 +205808,7 @@ label_BFC3EA64: cpu->gpr[25] = cpu->gpr[24] & cpu->gpr[6]; /* 0xBFC3EA7C: 13200035 beq $t9, $zero, 0xBFC3EB54 */ uint32_t psx_brA_BFC3EA7C = cpu->gpr[25]; uint32_t psx_brB_BFC3EA7C = cpu->gpr[0]; - int psx_taken_BFC3EA7C = (psx_brA_BFC3EA7C == psx_brB_BFC3EA7C); + psx_taken_BFC3EA7C = (psx_brA_BFC3EA7C == psx_brB_BFC3EA7C); /* 0xBFC3EA80: 00000000 nop */ /* nop */ if (psx_taken_BFC3EA7C) goto label_BFC3EB54; @@ -200223,7 +205827,7 @@ label_BFC3EA84: cpu->gpr[4] = cpu->gpr[13] - cpu->gpr[9]; /* 0xBFC3EA94: 1420001A bne $at, $zero, 0xBFC3EB00 */ uint32_t psx_brA_BFC3EA94 = cpu->gpr[1]; uint32_t psx_brB_BFC3EA94 = cpu->gpr[0]; - int psx_taken_BFC3EA94 = (psx_brA_BFC3EA94 != psx_brB_BFC3EA94); + psx_taken_BFC3EA94 = (psx_brA_BFC3EA94 != psx_brB_BFC3EA94); /* 0xBFC3EA98: 24841000 addiu $a0, $a0, 4096 */ cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (4096)); if (psx_taken_BFC3EA94) goto label_BFC3EB00; @@ -200246,7 +205850,7 @@ label_BFC3EA9C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[25] < (int32_t)cpu->gpr[15] ? 1 : 0); /* 0xBFC3EAB4: 10200003 beq $at, $zero, 0xBFC3EAC4 */ uint32_t psx_brA_BFC3EAB4 = cpu->gpr[1]; uint32_t psx_brB_BFC3EAB4 = cpu->gpr[0]; - int psx_taken_BFC3EAB4 = (psx_brA_BFC3EAB4 == psx_brB_BFC3EAB4); + psx_taken_BFC3EAB4 = (psx_brA_BFC3EAB4 == psx_brB_BFC3EAB4); /* 0xBFC3EAB8: 00000000 nop */ /* nop */ if (psx_taken_BFC3EAB4) goto label_BFC3EAC4; @@ -200257,7 +205861,7 @@ label_BFC3EABC: psx_check_interrupts(cpu); /* 0xBFC3EABC: 1000007A beq $zero, $zero, 0xBFC3ECA8 */ uint32_t psx_brA_BFC3EABC = cpu->gpr[0]; uint32_t psx_brB_BFC3EABC = cpu->gpr[0]; - int psx_taken_BFC3EABC = (psx_brA_BFC3EABC == psx_brB_BFC3EABC); + psx_taken_BFC3EABC = (psx_brA_BFC3EABC == psx_brB_BFC3EABC); /* 0xBFC3EAC0: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3EABC) goto label_BFC3ECA8; @@ -200294,7 +205898,7 @@ label_BFC3EAC4: cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); /* 0xBFC3EAF8: 10000014 beq $zero, $zero, 0xBFC3EB4C */ uint32_t psx_brA_BFC3EAF8 = cpu->gpr[0]; uint32_t psx_brB_BFC3EAF8 = cpu->gpr[0]; - int psx_taken_BFC3EAF8 = (psx_brA_BFC3EAF8 == psx_brB_BFC3EAF8); + psx_taken_BFC3EAF8 = (psx_brA_BFC3EAF8 == psx_brB_BFC3EAF8); /* 0xBFC3EAFC: AC2F9BF8 sw $t7, -25608($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25608)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3EAFCu); return; } g_debug_last_store_pc = 0xBFC3EAFCu; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC3EAF8) goto label_BFC3EB4C; @@ -200317,7 +205921,7 @@ label_BFC3EB00: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[25] < (int32_t)cpu->gpr[14] ? 1 : 0); /* 0xBFC3EB18: 14200004 bne $at, $zero, 0xBFC3EB2C */ uint32_t psx_brA_BFC3EB18 = cpu->gpr[1]; uint32_t psx_brB_BFC3EB18 = cpu->gpr[0]; - int psx_taken_BFC3EB18 = (psx_brA_BFC3EB18 != psx_brB_BFC3EB18); + psx_taken_BFC3EB18 = (psx_brA_BFC3EB18 != psx_brB_BFC3EB18); /* 0xBFC3EB1C: 3C014000 lui $at, 0x4000 */ cpu->gpr[1] = 0x40000000u; if (psx_taken_BFC3EB18) goto label_BFC3EB2C; @@ -200328,7 +205932,7 @@ label_BFC3EB20: psx_check_interrupts(cpu); /* 0xBFC3EB20: 10000061 beq $zero, $zero, 0xBFC3ECA8 */ uint32_t psx_brA_BFC3EB20 = cpu->gpr[0]; uint32_t psx_brB_BFC3EB20 = cpu->gpr[0]; - int psx_taken_BFC3EB20 = (psx_brA_BFC3EB20 == psx_brB_BFC3EB20); + psx_taken_BFC3EB20 = (psx_brA_BFC3EB20 == psx_brB_BFC3EB20); /* 0xBFC3EB24: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3EB20) goto label_BFC3ECA8; @@ -200367,7 +205971,7 @@ label_BFC3EB4C: psx_check_interrupts(cpu); /* 0xBFC3EB4C: 10000056 beq $zero, $zero, 0xBFC3ECA8 */ uint32_t psx_brA_BFC3EB4C = cpu->gpr[0]; uint32_t psx_brB_BFC3EB4C = cpu->gpr[0]; - int psx_taken_BFC3EB4C = (psx_brA_BFC3EB4C == psx_brB_BFC3EB4C); + psx_taken_BFC3EB4C = (psx_brA_BFC3EB4C == psx_brB_BFC3EB4C); /* 0xBFC3EB50: 00A01021 addu $v0, $a1, $zero */ cpu->gpr[2] = cpu->gpr[5] + cpu->gpr[0]; if (psx_taken_BFC3EB4C) goto label_BFC3ECA8; @@ -200425,7 +206029,7 @@ label_BFC3EB90: cpu->gpr[15] = cpu->gpr[3] & cpu->gpr[10]; /* 0xBFC3EB9C: 11E0002F beq $t7, $zero, 0xBFC3EC5C */ uint32_t psx_brA_BFC3EB9C = cpu->gpr[15]; uint32_t psx_brB_BFC3EB9C = cpu->gpr[0]; - int psx_taken_BFC3EB9C = (psx_brA_BFC3EB9C == psx_brB_BFC3EB9C); + psx_taken_BFC3EB9C = (psx_brA_BFC3EB9C == psx_brB_BFC3EB9C); /* 0xBFC3EBA0: 00667824 and $t7, $v1, $a2 */ cpu->gpr[15] = cpu->gpr[3] & cpu->gpr[6]; if (psx_taken_BFC3EB9C) goto label_BFC3EC5C; @@ -200440,7 +206044,7 @@ label_BFC3EBA4: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[7] ? 1 : 0); /* 0xBFC3EBAC: 1420001C bne $at, $zero, 0xBFC3EC20 */ uint32_t psx_brA_BFC3EBAC = cpu->gpr[1]; uint32_t psx_brB_BFC3EBAC = cpu->gpr[0]; - int psx_taken_BFC3EBAC = (psx_brA_BFC3EBAC != psx_brB_BFC3EBAC); + psx_taken_BFC3EBAC = (psx_brA_BFC3EBAC != psx_brB_BFC3EBAC); /* 0xBFC3EBB0: 00000000 nop */ /* nop */ if (psx_taken_BFC3EBAC) goto label_BFC3EC20; @@ -200459,7 +206063,7 @@ label_BFC3EBB4: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[25] ? 1 : 0); /* 0xBFC3EBC4: 1420000A bne $at, $zero, 0xBFC3EBF0 */ uint32_t psx_brA_BFC3EBC4 = cpu->gpr[1]; uint32_t psx_brB_BFC3EBC4 = cpu->gpr[0]; - int psx_taken_BFC3EBC4 = (psx_brA_BFC3EBC4 != psx_brB_BFC3EBC4); + psx_taken_BFC3EBC4 = (psx_brA_BFC3EBC4 != psx_brB_BFC3EBC4); /* 0xBFC3EBC8: 0065C023 subu $t8, $v1, $a1 */ cpu->gpr[24] = cpu->gpr[3] - cpu->gpr[5]; if (psx_taken_BFC3EBC4) goto label_BFC3EBF0; @@ -200476,7 +206080,7 @@ label_BFC3EBCC: cpu->gpr[13] = cpu->gpr[14] & cpu->gpr[6]; /* 0xBFC3EBD8: 15A00005 bne $t5, $zero, 0xBFC3EBF0 */ uint32_t psx_brA_BFC3EBD8 = cpu->gpr[13]; uint32_t psx_brB_BFC3EBD8 = cpu->gpr[0]; - int psx_taken_BFC3EBD8 = (psx_brA_BFC3EBD8 != psx_brB_BFC3EBD8); + psx_taken_BFC3EBD8 = (psx_brA_BFC3EBD8 != psx_brB_BFC3EBD8); /* 0xBFC3EBDC: 0065C023 subu $t8, $v1, $a1 */ cpu->gpr[24] = cpu->gpr[3] - cpu->gpr[5]; if (psx_taken_BFC3EBD8) goto label_BFC3EBF0; @@ -200489,7 +206093,7 @@ label_BFC3EBE0: cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[8] + (1)); /* 0xBFC3EBE4: 1000FFEA beq $zero, $zero, 0xBFC3EB90 */ uint32_t psx_brA_BFC3EBE4 = cpu->gpr[0]; uint32_t psx_brB_BFC3EBE4 = cpu->gpr[0]; - int psx_taken_BFC3EBE4 = (psx_brA_BFC3EBE4 == psx_brB_BFC3EBE4); + psx_taken_BFC3EBE4 = (psx_brA_BFC3EBE4 == psx_brB_BFC3EBE4); /* 0xBFC3EBE8: 24420008 addiu $v0, $v0, 8 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (8)); if (psx_taken_BFC3EBE4) goto label_BFC3EB90; @@ -200511,7 +206115,7 @@ label_BFC3EBF0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (int32_t)cpu->gpr[9] ? 1 : 0); /* 0xBFC3EBF8: 10200005 beq $at, $zero, 0xBFC3EC10 */ uint32_t psx_brA_BFC3EBF8 = cpu->gpr[1]; uint32_t psx_brB_BFC3EBF8 = cpu->gpr[0]; - int psx_taken_BFC3EBF8 = (psx_brA_BFC3EBF8 == psx_brB_BFC3EBF8); + psx_taken_BFC3EBF8 = (psx_brA_BFC3EBF8 == psx_brB_BFC3EBF8); /* 0xBFC3EBFC: 01002021 addu $a0, $t0, $zero */ cpu->gpr[4] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC3EBF8) goto label_BFC3EC10; @@ -200524,7 +206128,7 @@ label_BFC3EC00: cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[8] + (1)); /* 0xBFC3EC04: 1000FFE2 beq $zero, $zero, 0xBFC3EB90 */ uint32_t psx_brA_BFC3EC04 = cpu->gpr[0]; uint32_t psx_brB_BFC3EC04 = cpu->gpr[0]; - int psx_taken_BFC3EC04 = (psx_brA_BFC3EC04 == psx_brB_BFC3EC04); + psx_taken_BFC3EC04 = (psx_brA_BFC3EC04 == psx_brB_BFC3EC04); /* 0xBFC3EC08: 24420008 addiu $v0, $v0, 8 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (8)); if (psx_taken_BFC3EC04) goto label_BFC3EB90; @@ -200552,7 +206156,7 @@ label_BFC3EC18: psx_check_interrupts(cpu); /* 0xBFC3EC18: 10000022 beq $zero, $zero, 0xBFC3ECA4 */ uint32_t psx_brA_BFC3EC18 = cpu->gpr[0]; uint32_t psx_brB_BFC3EC18 = cpu->gpr[0]; - int psx_taken_BFC3EC18 = (psx_brA_BFC3EC18 == psx_brB_BFC3EC18); + psx_taken_BFC3EC18 = (psx_brA_BFC3EC18 == psx_brB_BFC3EC18); /* 0xBFC3EC1C: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC3EC18) goto label_BFC3ECA4; @@ -200569,7 +206173,7 @@ label_BFC3EC20: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (int32_t)cpu->gpr[9] ? 1 : 0); /* 0xBFC3EC2C: 10200005 beq $at, $zero, 0xBFC3EC44 */ uint32_t psx_brA_BFC3EC2C = cpu->gpr[1]; uint32_t psx_brB_BFC3EC2C = cpu->gpr[0]; - int psx_taken_BFC3EC2C = (psx_brA_BFC3EC2C == psx_brB_BFC3EC2C); + psx_taken_BFC3EC2C = (psx_brA_BFC3EC2C == psx_brB_BFC3EC2C); /* 0xBFC3EC30: 01002021 addu $a0, $t0, $zero */ cpu->gpr[4] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC3EC2C) goto label_BFC3EC44; @@ -200582,7 +206186,7 @@ label_BFC3EC34: cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[8] + (1)); /* 0xBFC3EC38: 1000FFD5 beq $zero, $zero, 0xBFC3EB90 */ uint32_t psx_brA_BFC3EC38 = cpu->gpr[0]; uint32_t psx_brB_BFC3EC38 = cpu->gpr[0]; - int psx_taken_BFC3EC38 = (psx_brA_BFC3EC38 == psx_brB_BFC3EC38); + psx_taken_BFC3EC38 = (psx_brA_BFC3EC38 == psx_brB_BFC3EC38); /* 0xBFC3EC3C: 24420008 addiu $v0, $v0, 8 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (8)); if (psx_taken_BFC3EC38) goto label_BFC3EB90; @@ -200612,7 +206216,7 @@ label_BFC3EC50: psx_check_interrupts(cpu); /* 0xBFC3EC50: 10000014 beq $zero, $zero, 0xBFC3ECA4 */ uint32_t psx_brA_BFC3EC50 = cpu->gpr[0]; uint32_t psx_brB_BFC3EC50 = cpu->gpr[0]; - int psx_taken_BFC3EC50 = (psx_brA_BFC3EC50 == psx_brB_BFC3EC50); + psx_taken_BFC3EC50 = (psx_brA_BFC3EC50 == psx_brB_BFC3EC50); /* 0xBFC3EC54: 00401821 addu $v1, $v0, $zero */ cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; if (psx_taken_BFC3EC50) goto label_BFC3ECA4; @@ -200630,7 +206234,7 @@ label_BFC3EC5C: psx_check_interrupts(cpu); /* 0xBFC3EC5C: 15E00004 bne $t7, $zero, 0xBFC3EC70 */ uint32_t psx_brA_BFC3EC5C = cpu->gpr[15]; uint32_t psx_brB_BFC3EC5C = cpu->gpr[0]; - int psx_taken_BFC3EC5C = (psx_brA_BFC3EC5C != psx_brB_BFC3EC5C); + psx_taken_BFC3EC5C = (psx_brA_BFC3EC5C != psx_brB_BFC3EC5C); /* 0xBFC3EC60: 00000000 nop */ /* nop */ if (psx_taken_BFC3EC5C) goto label_BFC3EC70; @@ -200643,7 +206247,7 @@ label_BFC3EC64: cpu->gpr[8] = (uint32_t)((int32_t)cpu->gpr[8] + (1)); /* 0xBFC3EC68: 1000FFC9 beq $zero, $zero, 0xBFC3EB90 */ uint32_t psx_brA_BFC3EC68 = cpu->gpr[0]; uint32_t psx_brB_BFC3EC68 = cpu->gpr[0]; - int psx_taken_BFC3EC68 = (psx_brA_BFC3EC68 == psx_brB_BFC3EC68); + psx_taken_BFC3EC68 = (psx_brA_BFC3EC68 == psx_brB_BFC3EC68); /* 0xBFC3EC6C: 24420008 addiu $v0, $v0, 8 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (8)); if (psx_taken_BFC3EC68) goto label_BFC3EB90; @@ -200662,7 +206266,7 @@ label_BFC3EC70: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (int32_t)cpu->gpr[9] ? 1 : 0); /* 0xBFC3EC80: 10200004 beq $at, $zero, 0xBFC3EC94 */ uint32_t psx_brA_BFC3EC80 = cpu->gpr[1]; uint32_t psx_brB_BFC3EC80 = cpu->gpr[0]; - int psx_taken_BFC3EC80 = (psx_brA_BFC3EC80 == psx_brB_BFC3EC80); + psx_taken_BFC3EC80 = (psx_brA_BFC3EC80 == psx_brB_BFC3EC80); /* 0xBFC3EC84: 01002021 addu $a0, $t0, $zero */ cpu->gpr[4] = cpu->gpr[8] + cpu->gpr[0]; if (psx_taken_BFC3EC80) goto label_BFC3EC94; @@ -200673,7 +206277,7 @@ label_BFC3EC88: psx_check_interrupts(cpu); /* 0xBFC3EC88: 10000007 beq $zero, $zero, 0xBFC3ECA8 */ uint32_t psx_brA_BFC3EC88 = cpu->gpr[0]; uint32_t psx_brB_BFC3EC88 = cpu->gpr[0]; - int psx_taken_BFC3EC88 = (psx_brA_BFC3EC88 == psx_brB_BFC3EC88); + psx_taken_BFC3EC88 = (psx_brA_BFC3EC88 == psx_brB_BFC3EC88); /* 0xBFC3EC8C: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3EC88) goto label_BFC3ECA8; @@ -200727,6 +206331,11 @@ label_BFC3ECA8: void func_1FC3ECB8(CPUState* cpu) { debug_server_log_call_entry(0x1FC3ECB8u); + int psx_taken_BFC3ECE0 = 0; + int psx_taken_BFC3ECEC = 0; + int psx_taken_BFC3ECFC = 0; + int psx_taken_BFC3ED1C = 0; + int psx_taken_BFC3ED2C = 0; label_BFC3ECB8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -200759,7 +206368,7 @@ label_BFC3ECD4: cpu->gpr[14] = cpu->gpr[2] & cpu->gpr[6]; /* 0xBFC3ECE0: 15C00012 bne $t6, $zero, 0xBFC3ED2C */ uint32_t psx_brA_BFC3ECE0 = cpu->gpr[14]; uint32_t psx_brB_BFC3ECE0 = cpu->gpr[0]; - int psx_taken_BFC3ECE0 = (psx_brA_BFC3ECE0 != psx_brB_BFC3ECE0); + psx_taken_BFC3ECE0 = (psx_brA_BFC3ECE0 != psx_brB_BFC3ECE0); /* 0xBFC3ECE4: 00000000 nop */ /* nop */ if (psx_taken_BFC3ECE0) goto label_BFC3ED2C; @@ -200772,7 +206381,7 @@ label_BFC3ECE8: cpu->gpr[15] = cpu->gpr[2] & cpu->gpr[7]; /* 0xBFC3ECEC: 15E00011 bne $t7, $zero, 0xBFC3ED34 */ uint32_t psx_brA_BFC3ECEC = cpu->gpr[15]; uint32_t psx_brB_BFC3ECEC = cpu->gpr[0]; - int psx_taken_BFC3ECEC = (psx_brA_BFC3ECEC != psx_brB_BFC3ECEC); + psx_taken_BFC3ECEC = (psx_brA_BFC3ECEC != psx_brB_BFC3ECEC); /* 0xBFC3ECF0: 00000000 nop */ /* nop */ if (psx_taken_BFC3ECEC) goto label_BFC3ED34; @@ -200787,7 +206396,7 @@ label_BFC3ECF4: cpu->gpr[1] = (uint32_t)(cpu->gpr[5] < cpu->gpr[4] ? 1 : 0); /* 0xBFC3ECFC: 14200003 bne $at, $zero, 0xBFC3ED0C */ uint32_t psx_brA_BFC3ECFC = cpu->gpr[1]; uint32_t psx_brB_BFC3ECFC = cpu->gpr[0]; - int psx_taken_BFC3ECFC = (psx_brA_BFC3ECFC != psx_brB_BFC3ECFC); + psx_taken_BFC3ECFC = (psx_brA_BFC3ECFC != psx_brB_BFC3ECFC); /* 0xBFC3ED00: 00000000 nop */ /* nop */ if (psx_taken_BFC3ECFC) goto label_BFC3ED0C; @@ -200815,7 +206424,7 @@ label_BFC3ED0C: cpu->gpr[1] = (uint32_t)(cpu->gpr[4] < cpu->gpr[25] ? 1 : 0); /* 0xBFC3ED1C: 10200003 beq $at, $zero, 0xBFC3ED2C */ uint32_t psx_brA_BFC3ED1C = cpu->gpr[1]; uint32_t psx_brB_BFC3ED1C = cpu->gpr[0]; - int psx_taken_BFC3ED1C = (psx_brA_BFC3ED1C == psx_brB_BFC3ED1C); + psx_taken_BFC3ED1C = (psx_brA_BFC3ED1C == psx_brB_BFC3ED1C); /* 0xBFC3ED20: 00000000 nop */ /* nop */ if (psx_taken_BFC3ED1C) goto label_BFC3ED2C; @@ -200835,7 +206444,7 @@ label_BFC3ED2C: psx_check_interrupts(cpu); /* 0xBFC3ED2C: 1000FFE9 beq $zero, $zero, 0xBFC3ECD4 */ uint32_t psx_brA_BFC3ED2C = cpu->gpr[0]; uint32_t psx_brB_BFC3ED2C = cpu->gpr[0]; - int psx_taken_BFC3ED2C = (psx_brA_BFC3ED2C == psx_brB_BFC3ED2C); + psx_taken_BFC3ED2C = (psx_brA_BFC3ED2C == psx_brB_BFC3ED2C); /* 0xBFC3ED30: 24630008 addiu $v1, $v1, 8 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (8)); if (psx_taken_BFC3ED2C) goto label_BFC3ECD4; @@ -200862,6 +206471,11 @@ void func_1FC3ED40(CPUState* cpu) { default: break; } } + int psx_taken_BFC3ED54 = 0; + int psx_taken_BFC3ED74 = 0; + int psx_taken_BFC3ED7C = 0; + int psx_taken_BFC3ED88 = 0; + int psx_taken_BFC3ED94 = 0; label_BFC3ED40: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -200879,7 +206493,7 @@ label_BFC3ED40: cpu->gpr[6] = cpu->gpr[4] + cpu->gpr[0]; /* 0xBFC3ED54: 18E00011 blez $a3, 0xBFC3ED9C */ uint32_t psx_brA_BFC3ED54 = cpu->gpr[7]; - int psx_taken_BFC3ED54 = ((int32_t)psx_brA_BFC3ED54 <= 0); + psx_taken_BFC3ED54 = ((int32_t)psx_brA_BFC3ED54 <= 0); /* 0xBFC3ED58: 00002821 addu $a1, $zero, $zero */ cpu->gpr[5] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3ED54) goto label_BFC3ED9C; @@ -200907,7 +206521,7 @@ label_BFC3ED68: cpu->gpr[14] = cpu->gpr[2] & cpu->gpr[4]; /* 0xBFC3ED74: 15C00009 bne $t6, $zero, 0xBFC3ED9C */ uint32_t psx_brA_BFC3ED74 = cpu->gpr[14]; uint32_t psx_brB_BFC3ED74 = cpu->gpr[0]; - int psx_taken_BFC3ED74 = (psx_brA_BFC3ED74 != psx_brB_BFC3ED74); + psx_taken_BFC3ED74 = (psx_brA_BFC3ED74 != psx_brB_BFC3ED74); /* 0xBFC3ED78: 00000000 nop */ /* nop */ if (psx_taken_BFC3ED74) goto label_BFC3ED9C; @@ -200918,7 +206532,7 @@ label_BFC3ED7C: psx_check_interrupts(cpu); /* 0xBFC3ED7C: 14C20004 bne $a2, $v0, 0xBFC3ED90 */ uint32_t psx_brA_BFC3ED7C = cpu->gpr[6]; uint32_t psx_brB_BFC3ED7C = cpu->gpr[2]; - int psx_taken_BFC3ED7C = (psx_brA_BFC3ED7C != psx_brB_BFC3ED7C); + psx_taken_BFC3ED7C = (psx_brA_BFC3ED7C != psx_brB_BFC3ED7C); /* 0xBFC3ED80: 3C018000 lui $at, 0x8000 */ cpu->gpr[1] = 0x80000000u; if (psx_taken_BFC3ED7C) goto label_BFC3ED90; @@ -200931,7 +206545,7 @@ label_BFC3ED84: cpu->gpr[15] = cpu->gpr[2] | cpu->gpr[1]; /* 0xBFC3ED88: 10000004 beq $zero, $zero, 0xBFC3ED9C */ uint32_t psx_brA_BFC3ED88 = cpu->gpr[0]; uint32_t psx_brB_BFC3ED88 = cpu->gpr[0]; - int psx_taken_BFC3ED88 = (psx_brA_BFC3ED88 == psx_brB_BFC3ED88); + psx_taken_BFC3ED88 = (psx_brA_BFC3ED88 == psx_brB_BFC3ED88); /* 0xBFC3ED8C: AC6F0000 sw $t7, 0($v1) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3ED8Cu); return; } g_debug_last_store_pc = 0xBFC3ED8Cu; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC3ED88) goto label_BFC3ED9C; @@ -200944,7 +206558,7 @@ label_BFC3ED90: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[5] + (1)); /* 0xBFC3ED94: 14A7FFF4 bne $a1, $a3, 0xBFC3ED68 */ uint32_t psx_brA_BFC3ED94 = cpu->gpr[5]; uint32_t psx_brB_BFC3ED94 = cpu->gpr[7]; - int psx_taken_BFC3ED94 = (psx_brA_BFC3ED94 != psx_brB_BFC3ED94); + psx_taken_BFC3ED94 = (psx_brA_BFC3ED94 != psx_brB_BFC3ED94); /* 0xBFC3ED98: 24630008 addiu $v1, $v1, 8 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (8)); if (psx_taken_BFC3ED94) goto label_BFC3ED68; @@ -200984,6 +206598,10 @@ void func_1FC3EDB4(CPUState* cpu) { default: break; } } + int psx_taken_BFC3EDD0 = 0; + int psx_taken_BFC3EE28 = 0; + int psx_taken_BFC3EE3C = 0; + int psx_taken_BFC3EE54 = 0; label_BFC3EDB4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -201011,7 +206629,7 @@ label_BFC3EDC4: cpu->gpr[17] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC3EDD0: 05C00027 bltz $t6, 0xBFC3EE70 */ uint32_t psx_brA_BFC3EDD0 = cpu->gpr[14]; - int psx_taken_BFC3EDD0 = ((int32_t)psx_brA_BFC3EDD0 < 0); + psx_taken_BFC3EDD0 = ((int32_t)psx_brA_BFC3EDD0 < 0); /* 0xBFC3EDD4: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3EDD4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3EDD0) goto label_BFC3EE70; @@ -201073,7 +206691,7 @@ label_BFC3EE0C: cpu->gpr[8] = cpu->gpr[25] & cpu->gpr[19]; /* 0xBFC3EE28: 11000006 beq $t0, $zero, 0xBFC3EE44 */ uint32_t psx_brA_BFC3EE28 = cpu->gpr[8]; uint32_t psx_brB_BFC3EE28 = cpu->gpr[0]; - int psx_taken_BFC3EE28 = (psx_brA_BFC3EE28 == psx_brB_BFC3EE28); + psx_taken_BFC3EE28 = (psx_brA_BFC3EE28 == psx_brB_BFC3EE28); /* 0xBFC3EE2C: 00000000 nop */ /* nop */ if (psx_taken_BFC3EE28) goto label_BFC3EE44; @@ -201090,7 +206708,7 @@ label_BFC3EE30: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3EE38u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC3EE3C: 1000000C beq $zero, $zero, 0xBFC3EE70 */ uint32_t psx_brA_BFC3EE3C = cpu->gpr[0]; uint32_t psx_brB_BFC3EE3C = cpu->gpr[0]; - int psx_taken_BFC3EE3C = (psx_brA_BFC3EE3C == psx_brB_BFC3EE3C); + psx_taken_BFC3EE3C = (psx_brA_BFC3EE3C == psx_brB_BFC3EE3C); /* 0xBFC3EE40: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3EE40u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC3EE3C) goto label_BFC3EE70; @@ -201109,7 +206727,7 @@ label_BFC3EE44: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (int32_t)cpu->gpr[17] ? 1 : 0); /* 0xBFC3EE54: 1020FFE8 beq $at, $zero, 0xBFC3EDF8 */ uint32_t psx_brA_BFC3EE54 = cpu->gpr[1]; uint32_t psx_brB_BFC3EE54 = cpu->gpr[0]; - int psx_taken_BFC3EE54 = (psx_brA_BFC3EE54 == psx_brB_BFC3EE54); + psx_taken_BFC3EE54 = (psx_brA_BFC3EE54 == psx_brB_BFC3EE54); /* 0xBFC3EE58: 26100008 addiu $s0, $s0, 8 */ cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (8)); if (psx_taken_BFC3EE54) goto label_BFC3EDF8; @@ -201143,6 +206761,7 @@ label_BFC3EE70: void func_1FC3EE80(CPUState* cpu) { debug_server_log_call_entry(0x1FC3EE80u); + int psx_taken_BFC3EEB0 = 0; label_BFC3EE80: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -201179,7 +206798,7 @@ label_BFC3EEA8: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); /* 0xBFC3EEB0: 1443FFFD bne $v0, $v1, 0xBFC3EEA8 */ uint32_t psx_brA_BFC3EEB0 = cpu->gpr[2]; uint32_t psx_brB_BFC3EEB0 = cpu->gpr[3]; - int psx_taken_BFC3EEB0 = (psx_brA_BFC3EEB0 != psx_brB_BFC3EEB0); + psx_taken_BFC3EEB0 = (psx_brA_BFC3EEB0 != psx_brB_BFC3EEB0); /* 0xBFC3EEB4: AC080000 sw $t0, 0($zero) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[0] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3EEB4u); return; } g_debug_last_store_pc = 0xBFC3EEB4u; cpu->write_word(psx_addr, cpu->gpr[8]); } if (psx_taken_BFC3EEB0) goto label_BFC3EEA8; @@ -201258,6 +206877,9 @@ void func_1FC3EF08(CPUState* cpu) { default: break; } } + int psx_taken_BFC3EF34 = 0; + int psx_taken_BFC3EF58 = 0; + int psx_taken_BFC3EF60 = 0; label_BFC3EF08: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -201292,7 +206914,7 @@ label_BFC3EF24: cpu->gpr[3] = cpu->gpr[2] & 0x7u; /* 0xBFC3EF34: 1060FFFB beq $v1, $zero, 0xBFC3EF24 */ uint32_t psx_brA_BFC3EF34 = cpu->gpr[3]; uint32_t psx_brB_BFC3EF34 = cpu->gpr[0]; - int psx_taken_BFC3EF34 = (psx_brA_BFC3EF34 == psx_brB_BFC3EF34); + psx_taken_BFC3EF34 = (psx_brA_BFC3EF34 == psx_brB_BFC3EF34); /* 0xBFC3EF38: 00000000 nop */ /* nop */ if (psx_taken_BFC3EF34) goto label_BFC3EF24; @@ -201323,7 +206945,7 @@ label_BFC3EF44: cpu->gpr[4] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[14] + (0))); /* 0xBFC3EF58: 14610004 bne $v1, $at, 0xBFC3EF6C */ uint32_t psx_brA_BFC3EF58 = cpu->gpr[3]; uint32_t psx_brB_BFC3EF58 = cpu->gpr[1]; - int psx_taken_BFC3EF58 = (psx_brA_BFC3EF58 != psx_brB_BFC3EF58); + psx_taken_BFC3EF58 = (psx_brA_BFC3EF58 != psx_brB_BFC3EF58); /* 0xBFC3EF5C: 00801021 addu $v0, $a0, $zero */ cpu->gpr[2] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC3EF58) goto label_BFC3EF6C; @@ -201334,7 +206956,7 @@ label_BFC3EF60: psx_check_interrupts(cpu); /* 0xBFC3EF60: 10000002 beq $zero, $zero, 0xBFC3EF6C */ uint32_t psx_brA_BFC3EF60 = cpu->gpr[0]; uint32_t psx_brB_BFC3EF60 = cpu->gpr[0]; - int psx_taken_BFC3EF60 = (psx_brA_BFC3EF60 == psx_brB_BFC3EF60); + psx_taken_BFC3EF60 = (psx_brA_BFC3EF60 == psx_brB_BFC3EF60); /* 0xBFC3EF64: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3EF60) goto label_BFC3EF6C; @@ -201370,6 +206992,9 @@ void func_1FC3EF7C(CPUState* cpu) { default: break; } } + int psx_taken_BFC3EFA8 = 0; + int psx_taken_BFC3EFCC = 0; + int psx_taken_BFC3EFD4 = 0; label_BFC3EF7C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -201404,7 +207029,7 @@ label_BFC3EF98: cpu->gpr[3] = cpu->gpr[2] & 0x7u; /* 0xBFC3EFA8: 1060FFFB beq $v1, $zero, 0xBFC3EF98 */ uint32_t psx_brA_BFC3EFA8 = cpu->gpr[3]; uint32_t psx_brB_BFC3EFA8 = cpu->gpr[0]; - int psx_taken_BFC3EFA8 = (psx_brA_BFC3EFA8 == psx_brB_BFC3EFA8); + psx_taken_BFC3EFA8 = (psx_brA_BFC3EFA8 == psx_brB_BFC3EFA8); /* 0xBFC3EFAC: 00000000 nop */ /* nop */ if (psx_taken_BFC3EFA8) goto label_BFC3EF98; @@ -201435,7 +207060,7 @@ label_BFC3EFB8: cpu->gpr[4] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[14] + (0))); /* 0xBFC3EFCC: 14610004 bne $v1, $at, 0xBFC3EFE0 */ uint32_t psx_brA_BFC3EFCC = cpu->gpr[3]; uint32_t psx_brB_BFC3EFCC = cpu->gpr[1]; - int psx_taken_BFC3EFCC = (psx_brA_BFC3EFCC != psx_brB_BFC3EFCC); + psx_taken_BFC3EFCC = (psx_brA_BFC3EFCC != psx_brB_BFC3EFCC); /* 0xBFC3EFD0: 00801021 addu $v0, $a0, $zero */ cpu->gpr[2] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC3EFCC) goto label_BFC3EFE0; @@ -201446,7 +207071,7 @@ label_BFC3EFD4: psx_check_interrupts(cpu); /* 0xBFC3EFD4: 10000002 beq $zero, $zero, 0xBFC3EFE0 */ uint32_t psx_brA_BFC3EFD4 = cpu->gpr[0]; uint32_t psx_brB_BFC3EFD4 = cpu->gpr[0]; - int psx_taken_BFC3EFD4 = (psx_brA_BFC3EFD4 == psx_brB_BFC3EFD4); + psx_taken_BFC3EFD4 = (psx_brA_BFC3EFD4 == psx_brB_BFC3EFD4); /* 0xBFC3EFD8: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3EFD4) goto label_BFC3EFE0; @@ -201488,6 +207113,12 @@ void func_1FC3EFF0(CPUState* cpu) { default: break; } } + int psx_taken_BFC3F020 = 0; + int psx_taken_BFC3F030 = 0; + int psx_taken_BFC3F040 = 0; + int psx_taken_BFC3F050 = 0; + int psx_taken_BFC3F05C = 0; + int psx_taken_BFC3F06C = 0; label_BFC3EFF0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -201531,7 +207162,7 @@ label_BFC3F020: psx_check_interrupts(cpu); /* 0xBFC3F020: 04410005 bgez $v0, 0xBFC3F038 */ uint32_t psx_brA_BFC3F020 = cpu->gpr[2]; - int psx_taken_BFC3F020 = ((int32_t)psx_brA_BFC3F020 >= 0); + psx_taken_BFC3F020 = ((int32_t)psx_brA_BFC3F020 >= 0); /* 0xBFC3F024: 00000000 nop */ /* nop */ if (psx_taken_BFC3F020) goto label_BFC3F038; @@ -201552,7 +207183,7 @@ label_BFC3F030: psx_check_interrupts(cpu); /* 0xBFC3F030: 10000013 beq $zero, $zero, 0xBFC3F080 */ uint32_t psx_brA_BFC3F030 = cpu->gpr[0]; uint32_t psx_brB_BFC3F030 = cpu->gpr[0]; - int psx_taken_BFC3F030 = (psx_brA_BFC3F030 == psx_brB_BFC3F030); + psx_taken_BFC3F030 = (psx_brA_BFC3F030 == psx_brB_BFC3F030); /* 0xBFC3F034: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3F030) goto label_BFC3F080; @@ -201573,7 +207204,7 @@ label_BFC3F040: psx_check_interrupts(cpu); /* 0xBFC3F040: 04410006 bgez $v0, 0xBFC3F05C */ uint32_t psx_brA_BFC3F040 = cpu->gpr[2]; - int psx_taken_BFC3F040 = ((int32_t)psx_brA_BFC3F040 >= 0); + psx_taken_BFC3F040 = ((int32_t)psx_brA_BFC3F040 >= 0); /* 0xBFC3F044: 3059001D andi $t9, $v0, 0x1D */ cpu->gpr[25] = cpu->gpr[2] & 0x1Du; if (psx_taken_BFC3F040) goto label_BFC3F05C; @@ -201594,7 +207225,7 @@ label_BFC3F050: psx_check_interrupts(cpu); /* 0xBFC3F050: 1000000B beq $zero, $zero, 0xBFC3F080 */ uint32_t psx_brA_BFC3F050 = cpu->gpr[0]; uint32_t psx_brB_BFC3F050 = cpu->gpr[0]; - int psx_taken_BFC3F050 = (psx_brA_BFC3F050 == psx_brB_BFC3F050); + psx_taken_BFC3F050 = (psx_brA_BFC3F050 == psx_brB_BFC3F050); /* 0xBFC3F054: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3F050) goto label_BFC3F080; @@ -201612,7 +207243,7 @@ label_BFC3F05C: psx_check_interrupts(cpu); /* 0xBFC3F05C: 13200005 beq $t9, $zero, 0xBFC3F074 */ uint32_t psx_brA_BFC3F05C = cpu->gpr[25]; uint32_t psx_brB_BFC3F05C = cpu->gpr[0]; - int psx_taken_BFC3F05C = (psx_brA_BFC3F05C == psx_brB_BFC3F05C); + psx_taken_BFC3F05C = (psx_brA_BFC3F05C == psx_brB_BFC3F05C); /* 0xBFC3F060: 00000000 nop */ /* nop */ if (psx_taken_BFC3F05C) goto label_BFC3F074; @@ -201633,7 +207264,7 @@ label_BFC3F06C: psx_check_interrupts(cpu); /* 0xBFC3F06C: 10000004 beq $zero, $zero, 0xBFC3F080 */ uint32_t psx_brA_BFC3F06C = cpu->gpr[0]; uint32_t psx_brB_BFC3F06C = cpu->gpr[0]; - int psx_taken_BFC3F06C = (psx_brA_BFC3F06C == psx_brB_BFC3F06C); + psx_taken_BFC3F06C = (psx_brA_BFC3F06C == psx_brB_BFC3F06C); /* 0xBFC3F070: 2402FFFF addiu $v0, $zero, -1 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (-1)); if (psx_taken_BFC3F06C) goto label_BFC3F080; @@ -201873,6 +207504,17 @@ void func_1FC3F1B8(CPUState* cpu) { default: break; } } + int psx_taken_BFC3F1C0 = 0; + int psx_taken_BFC3F1D4 = 0; + int psx_taken_BFC3F1DC = 0; + int psx_taken_BFC3F1E4 = 0; + int psx_taken_BFC3F1F8 = 0; + int psx_taken_BFC3F200 = 0; + int psx_taken_BFC3F208 = 0; + int psx_taken_BFC3F228 = 0; + int psx_taken_BFC3F230 = 0; + int psx_taken_BFC3F238 = 0; + int psx_taken_BFC3F240 = 0; label_BFC3F1B8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -201884,7 +207526,7 @@ label_BFC3F1B8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F1BCu); return; } g_debug_last_store_pc = 0xBFC3F1BCu; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC3F1C0: 1000000A beq $zero, $zero, 0xBFC3F1EC */ uint32_t psx_brA_BFC3F1C0 = cpu->gpr[0]; uint32_t psx_brB_BFC3F1C0 = cpu->gpr[0]; - int psx_taken_BFC3F1C0 = (psx_brA_BFC3F1C0 == psx_brB_BFC3F1C0); + psx_taken_BFC3F1C0 = (psx_brA_BFC3F1C0 == psx_brB_BFC3F1C0); /* 0xBFC3F1C4: 00802821 addu $a1, $a0, $zero */ cpu->gpr[5] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC3F1C0) goto label_BFC3F1EC; @@ -201901,7 +207543,7 @@ label_BFC3F1C8: /* nop */ /* 0xBFC3F1D4: 15C0000E bne $t6, $zero, 0xBFC3F210 */ uint32_t psx_brA_BFC3F1D4 = cpu->gpr[14]; uint32_t psx_brB_BFC3F1D4 = cpu->gpr[0]; - int psx_taken_BFC3F1D4 = (psx_brA_BFC3F1D4 != psx_brB_BFC3F1D4); + psx_taken_BFC3F1D4 = (psx_brA_BFC3F1D4 != psx_brB_BFC3F1D4); /* 0xBFC3F1D8: 00000000 nop */ /* nop */ if (psx_taken_BFC3F1D4) goto label_BFC3F210; @@ -201912,7 +207554,7 @@ label_BFC3F1DC: psx_check_interrupts(cpu); /* 0xBFC3F1DC: 10000031 beq $zero, $zero, 0xBFC3F2A4 */ uint32_t psx_brA_BFC3F1DC = cpu->gpr[0]; uint32_t psx_brB_BFC3F1DC = cpu->gpr[0]; - int psx_taken_BFC3F1DC = (psx_brA_BFC3F1DC == psx_brB_BFC3F1DC); + psx_taken_BFC3F1DC = (psx_brA_BFC3F1DC == psx_brB_BFC3F1DC); /* 0xBFC3F1E0: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F1DC) goto label_BFC3F2A4; @@ -201923,7 +207565,7 @@ label_BFC3F1E4: psx_check_interrupts(cpu); /* 0xBFC3F1E4: 1000002F beq $zero, $zero, 0xBFC3F2A4 */ uint32_t psx_brA_BFC3F1E4 = cpu->gpr[0]; uint32_t psx_brB_BFC3F1E4 = cpu->gpr[0]; - int psx_taken_BFC3F1E4 = (psx_brA_BFC3F1E4 == psx_brB_BFC3F1E4); + psx_taken_BFC3F1E4 = (psx_brA_BFC3F1E4 == psx_brB_BFC3F1E4); /* 0xBFC3F1E8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F1E4) goto label_BFC3F2A4; @@ -201940,7 +207582,7 @@ label_BFC3F1EC: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC3F1F8: 1083FFF3 beq $a0, $v1, 0xBFC3F1C8 */ uint32_t psx_brA_BFC3F1F8 = cpu->gpr[4]; uint32_t psx_brB_BFC3F1F8 = cpu->gpr[3]; - int psx_taken_BFC3F1F8 = (psx_brA_BFC3F1F8 == psx_brB_BFC3F1F8); + psx_taken_BFC3F1F8 = (psx_brA_BFC3F1F8 == psx_brB_BFC3F1F8); /* 0xBFC3F1FC: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC3F1F8) goto label_BFC3F1C8; @@ -201951,7 +207593,7 @@ label_BFC3F200: psx_check_interrupts(cpu); /* 0xBFC3F200: 1081FFF1 beq $a0, $at, 0xBFC3F1C8 */ uint32_t psx_brA_BFC3F200 = cpu->gpr[4]; uint32_t psx_brB_BFC3F200 = cpu->gpr[1]; - int psx_taken_BFC3F200 = (psx_brA_BFC3F200 == psx_brB_BFC3F200); + psx_taken_BFC3F200 = (psx_brA_BFC3F200 == psx_brB_BFC3F200); /* 0xBFC3F204: 3401FFFF ori $at, $zero, 0xFFFF */ cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC3F200) goto label_BFC3F1C8; @@ -201962,7 +207604,7 @@ label_BFC3F208: psx_check_interrupts(cpu); /* 0xBFC3F208: 1481FFF6 bne $a0, $at, 0xBFC3F1E4 */ uint32_t psx_brA_BFC3F208 = cpu->gpr[4]; uint32_t psx_brB_BFC3F208 = cpu->gpr[1]; - int psx_taken_BFC3F208 = (psx_brA_BFC3F208 != psx_brB_BFC3F208); + psx_taken_BFC3F208 = (psx_brA_BFC3F208 != psx_brB_BFC3F208); /* 0xBFC3F20C: 00000000 nop */ /* nop */ if (psx_taken_BFC3F208) goto label_BFC3F1E4; @@ -201985,7 +207627,7 @@ label_BFC3F210: cpu->gpr[24] = cpu->gpr[2] & 0x8u; /* 0xBFC3F228: 13010003 beq $t8, $at, 0xBFC3F238 */ uint32_t psx_brA_BFC3F228 = cpu->gpr[24]; uint32_t psx_brB_BFC3F228 = cpu->gpr[1]; - int psx_taken_BFC3F228 = (psx_brA_BFC3F228 == psx_brB_BFC3F228); + psx_taken_BFC3F228 = (psx_brA_BFC3F228 == psx_brB_BFC3F228); /* 0xBFC3F22C: 00000000 nop */ /* nop */ if (psx_taken_BFC3F228) goto label_BFC3F238; @@ -201996,7 +207638,7 @@ label_BFC3F230: psx_check_interrupts(cpu); /* 0xBFC3F230: 1000001C beq $zero, $zero, 0xBFC3F2A4 */ uint32_t psx_brA_BFC3F230 = cpu->gpr[0]; uint32_t psx_brB_BFC3F230 = cpu->gpr[0]; - int psx_taken_BFC3F230 = (psx_brA_BFC3F230 == psx_brB_BFC3F230); + psx_taken_BFC3F230 = (psx_brA_BFC3F230 == psx_brB_BFC3F230); /* 0xBFC3F234: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F230) goto label_BFC3F2A4; @@ -202007,7 +207649,7 @@ label_BFC3F238: psx_check_interrupts(cpu); /* 0xBFC3F238: 10830002 beq $a0, $v1, 0xBFC3F244 */ uint32_t psx_brA_BFC3F238 = cpu->gpr[4]; uint32_t psx_brB_BFC3F238 = cpu->gpr[3]; - int psx_taken_BFC3F238 = (psx_brA_BFC3F238 == psx_brB_BFC3F238); + psx_taken_BFC3F238 = (psx_brA_BFC3F238 == psx_brB_BFC3F238); /* 0xBFC3F23C: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC3F238) goto label_BFC3F244; @@ -202018,7 +207660,7 @@ label_BFC3F240: psx_check_interrupts(cpu); /* 0xBFC3F240: 14810002 bne $a0, $at, 0xBFC3F24C */ uint32_t psx_brA_BFC3F240 = cpu->gpr[4]; uint32_t psx_brB_BFC3F240 = cpu->gpr[1]; - int psx_taken_BFC3F240 = (psx_brA_BFC3F240 != psx_brB_BFC3F240); + psx_taken_BFC3F240 = (psx_brA_BFC3F240 != psx_brB_BFC3F240); label_BFC3F244: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -202114,6 +207756,23 @@ void func_1FC3F2B4(CPUState* cpu) { default: break; } } + int psx_taken_BFC3F2BC = 0; + int psx_taken_BFC3F2D0 = 0; + int psx_taken_BFC3F2D8 = 0; + int psx_taken_BFC3F2E0 = 0; + int psx_taken_BFC3F2F4 = 0; + int psx_taken_BFC3F2FC = 0; + int psx_taken_BFC3F304 = 0; + int psx_taken_BFC3F30C = 0; + int psx_taken_BFC3F314 = 0; + int psx_taken_BFC3F31C = 0; + int psx_taken_BFC3F33C = 0; + int psx_taken_BFC3F344 = 0; + int psx_taken_BFC3F350 = 0; + int psx_taken_BFC3F358 = 0; + int psx_taken_BFC3F360 = 0; + int psx_taken_BFC3F368 = 0; + int psx_taken_BFC3F370 = 0; label_BFC3F2B4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -202125,7 +207784,7 @@ label_BFC3F2B4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F2B8u); return; } g_debug_last_store_pc = 0xBFC3F2B8u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC3F2BC: 1000000A beq $zero, $zero, 0xBFC3F2E8 */ uint32_t psx_brA_BFC3F2BC = cpu->gpr[0]; uint32_t psx_brB_BFC3F2BC = cpu->gpr[0]; - int psx_taken_BFC3F2BC = (psx_brA_BFC3F2BC == psx_brB_BFC3F2BC); + psx_taken_BFC3F2BC = (psx_brA_BFC3F2BC == psx_brB_BFC3F2BC); /* 0xBFC3F2C0: 00802821 addu $a1, $a0, $zero */ cpu->gpr[5] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC3F2BC) goto label_BFC3F2E8; @@ -202142,7 +207801,7 @@ label_BFC3F2C4: /* nop */ /* 0xBFC3F2D0: 15C00014 bne $t6, $zero, 0xBFC3F324 */ uint32_t psx_brA_BFC3F2D0 = cpu->gpr[14]; uint32_t psx_brB_BFC3F2D0 = cpu->gpr[0]; - int psx_taken_BFC3F2D0 = (psx_brA_BFC3F2D0 != psx_brB_BFC3F2D0); + psx_taken_BFC3F2D0 = (psx_brA_BFC3F2D0 != psx_brB_BFC3F2D0); /* 0xBFC3F2D4: 00000000 nop */ /* nop */ if (psx_taken_BFC3F2D0) goto label_BFC3F324; @@ -202153,7 +207812,7 @@ label_BFC3F2D8: psx_check_interrupts(cpu); /* 0xBFC3F2D8: 1000003E beq $zero, $zero, 0xBFC3F3D4 */ uint32_t psx_brA_BFC3F2D8 = cpu->gpr[0]; uint32_t psx_brB_BFC3F2D8 = cpu->gpr[0]; - int psx_taken_BFC3F2D8 = (psx_brA_BFC3F2D8 == psx_brB_BFC3F2D8); + psx_taken_BFC3F2D8 = (psx_brA_BFC3F2D8 == psx_brB_BFC3F2D8); /* 0xBFC3F2DC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F2D8) goto label_BFC3F3D4; @@ -202164,7 +207823,7 @@ label_BFC3F2E0: psx_check_interrupts(cpu); /* 0xBFC3F2E0: 1000003C beq $zero, $zero, 0xBFC3F3D4 */ uint32_t psx_brA_BFC3F2E0 = cpu->gpr[0]; uint32_t psx_brB_BFC3F2E0 = cpu->gpr[0]; - int psx_taken_BFC3F2E0 = (psx_brA_BFC3F2E0 == psx_brB_BFC3F2E0); + psx_taken_BFC3F2E0 = (psx_brA_BFC3F2E0 == psx_brB_BFC3F2E0); /* 0xBFC3F2E4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F2E0) goto label_BFC3F3D4; @@ -202181,7 +207840,7 @@ label_BFC3F2E8: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC3F2F4: 1083FFF3 beq $a0, $v1, 0xBFC3F2C4 */ uint32_t psx_brA_BFC3F2F4 = cpu->gpr[4]; uint32_t psx_brB_BFC3F2F4 = cpu->gpr[3]; - int psx_taken_BFC3F2F4 = (psx_brA_BFC3F2F4 == psx_brB_BFC3F2F4); + psx_taken_BFC3F2F4 = (psx_brA_BFC3F2F4 == psx_brB_BFC3F2F4); /* 0xBFC3F2F8: 24010004 addiu $at, $zero, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC3F2F4) goto label_BFC3F2C4; @@ -202192,7 +207851,7 @@ label_BFC3F2FC: psx_check_interrupts(cpu); /* 0xBFC3F2FC: 1081FFF1 beq $a0, $at, 0xBFC3F2C4 */ uint32_t psx_brA_BFC3F2FC = cpu->gpr[4]; uint32_t psx_brB_BFC3F2FC = cpu->gpr[1]; - int psx_taken_BFC3F2FC = (psx_brA_BFC3F2FC == psx_brB_BFC3F2FC); + psx_taken_BFC3F2FC = (psx_brA_BFC3F2FC == psx_brB_BFC3F2FC); /* 0xBFC3F300: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC3F2FC) goto label_BFC3F2C4; @@ -202203,7 +207862,7 @@ label_BFC3F304: psx_check_interrupts(cpu); /* 0xBFC3F304: 1081FFEF beq $a0, $at, 0xBFC3F2C4 */ uint32_t psx_brA_BFC3F304 = cpu->gpr[4]; uint32_t psx_brB_BFC3F304 = cpu->gpr[1]; - int psx_taken_BFC3F304 = (psx_brA_BFC3F304 == psx_brB_BFC3F304); + psx_taken_BFC3F304 = (psx_brA_BFC3F304 == psx_brB_BFC3F304); /* 0xBFC3F308: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3F304) goto label_BFC3F2C4; @@ -202214,7 +207873,7 @@ label_BFC3F30C: psx_check_interrupts(cpu); /* 0xBFC3F30C: 1081FFED beq $a0, $at, 0xBFC3F2C4 */ uint32_t psx_brA_BFC3F30C = cpu->gpr[4]; uint32_t psx_brB_BFC3F30C = cpu->gpr[1]; - int psx_taken_BFC3F30C = (psx_brA_BFC3F30C == psx_brB_BFC3F30C); + psx_taken_BFC3F30C = (psx_brA_BFC3F30C == psx_brB_BFC3F30C); /* 0xBFC3F310: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC3F30C) goto label_BFC3F2C4; @@ -202225,7 +207884,7 @@ label_BFC3F314: psx_check_interrupts(cpu); /* 0xBFC3F314: 1081FFEB beq $a0, $at, 0xBFC3F2C4 */ uint32_t psx_brA_BFC3F314 = cpu->gpr[4]; uint32_t psx_brB_BFC3F314 = cpu->gpr[1]; - int psx_taken_BFC3F314 = (psx_brA_BFC3F314 == psx_brB_BFC3F314); + psx_taken_BFC3F314 = (psx_brA_BFC3F314 == psx_brB_BFC3F314); /* 0xBFC3F318: 3401FFFF ori $at, $zero, 0xFFFF */ cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC3F314) goto label_BFC3F2C4; @@ -202236,7 +207895,7 @@ label_BFC3F31C: psx_check_interrupts(cpu); /* 0xBFC3F31C: 1481FFF0 bne $a0, $at, 0xBFC3F2E0 */ uint32_t psx_brA_BFC3F31C = cpu->gpr[4]; uint32_t psx_brB_BFC3F31C = cpu->gpr[1]; - int psx_taken_BFC3F31C = (psx_brA_BFC3F31C != psx_brB_BFC3F31C); + psx_taken_BFC3F31C = (psx_brA_BFC3F31C != psx_brB_BFC3F31C); /* 0xBFC3F320: 00000000 nop */ /* nop */ if (psx_taken_BFC3F31C) goto label_BFC3F2E0; @@ -202259,7 +207918,7 @@ label_BFC3F324: cpu->gpr[24] = cpu->gpr[2] & 0x8u; /* 0xBFC3F33C: 13010004 beq $t8, $at, 0xBFC3F350 */ uint32_t psx_brA_BFC3F33C = cpu->gpr[24]; uint32_t psx_brB_BFC3F33C = cpu->gpr[1]; - int psx_taken_BFC3F33C = (psx_brA_BFC3F33C == psx_brB_BFC3F33C); + psx_taken_BFC3F33C = (psx_brA_BFC3F33C == psx_brB_BFC3F33C); /* 0xBFC3F340: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3F33C) goto label_BFC3F350; @@ -202270,7 +207929,7 @@ label_BFC3F344: psx_check_interrupts(cpu); /* 0xBFC3F344: 10000023 beq $zero, $zero, 0xBFC3F3D4 */ uint32_t psx_brA_BFC3F344 = cpu->gpr[0]; uint32_t psx_brB_BFC3F344 = cpu->gpr[0]; - int psx_taken_BFC3F344 = (psx_brA_BFC3F344 == psx_brB_BFC3F344); + psx_taken_BFC3F344 = (psx_brA_BFC3F344 == psx_brB_BFC3F344); /* 0xBFC3F348: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F344) goto label_BFC3F3D4; @@ -202288,7 +207947,7 @@ label_BFC3F350: psx_check_interrupts(cpu); /* 0xBFC3F350: 10810008 beq $a0, $at, 0xBFC3F374 */ uint32_t psx_brA_BFC3F350 = cpu->gpr[4]; uint32_t psx_brB_BFC3F350 = cpu->gpr[1]; - int psx_taken_BFC3F350 = (psx_brA_BFC3F350 == psx_brB_BFC3F350); + psx_taken_BFC3F350 = (psx_brA_BFC3F350 == psx_brB_BFC3F350); /* 0xBFC3F354: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC3F350) goto label_BFC3F374; @@ -202299,7 +207958,7 @@ label_BFC3F358: psx_check_interrupts(cpu); /* 0xBFC3F358: 10810006 beq $a0, $at, 0xBFC3F374 */ uint32_t psx_brA_BFC3F358 = cpu->gpr[4]; uint32_t psx_brB_BFC3F358 = cpu->gpr[1]; - int psx_taken_BFC3F358 = (psx_brA_BFC3F358 == psx_brB_BFC3F358); + psx_taken_BFC3F358 = (psx_brA_BFC3F358 == psx_brB_BFC3F358); /* 0xBFC3F35C: 00000000 nop */ /* nop */ if (psx_taken_BFC3F358) goto label_BFC3F374; @@ -202310,7 +207969,7 @@ label_BFC3F360: psx_check_interrupts(cpu); /* 0xBFC3F360: 10830004 beq $a0, $v1, 0xBFC3F374 */ uint32_t psx_brA_BFC3F360 = cpu->gpr[4]; uint32_t psx_brB_BFC3F360 = cpu->gpr[3]; - int psx_taken_BFC3F360 = (psx_brA_BFC3F360 == psx_brB_BFC3F360); + psx_taken_BFC3F360 = (psx_brA_BFC3F360 == psx_brB_BFC3F360); /* 0xBFC3F364: 24010004 addiu $at, $zero, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC3F360) goto label_BFC3F374; @@ -202321,7 +207980,7 @@ label_BFC3F368: psx_check_interrupts(cpu); /* 0xBFC3F368: 10810002 beq $a0, $at, 0xBFC3F374 */ uint32_t psx_brA_BFC3F368 = cpu->gpr[4]; uint32_t psx_brB_BFC3F368 = cpu->gpr[1]; - int psx_taken_BFC3F368 = (psx_brA_BFC3F368 == psx_brB_BFC3F368); + psx_taken_BFC3F368 = (psx_brA_BFC3F368 == psx_brB_BFC3F368); /* 0xBFC3F36C: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC3F368) goto label_BFC3F374; @@ -202332,7 +207991,7 @@ label_BFC3F370: psx_check_interrupts(cpu); /* 0xBFC3F370: 14810002 bne $a0, $at, 0xBFC3F37C */ uint32_t psx_brA_BFC3F370 = cpu->gpr[4]; uint32_t psx_brB_BFC3F370 = cpu->gpr[1]; - int psx_taken_BFC3F370 = (psx_brA_BFC3F370 != psx_brB_BFC3F370); + psx_taken_BFC3F370 = (psx_brA_BFC3F370 != psx_brB_BFC3F370); label_BFC3F374: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -202428,6 +208087,8 @@ void func_1FC3F484(CPUState* cpu) { default: break; } } + int psx_taken_BFC3F494 = 0; + int psx_taken_BFC3F4A0 = 0; label_BFC3F484: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -202443,7 +208104,7 @@ label_BFC3F484: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC3F494: 10610003 beq $v1, $at, 0xBFC3F4A4 */ uint32_t psx_brA_BFC3F494 = cpu->gpr[3]; uint32_t psx_brB_BFC3F494 = cpu->gpr[1]; - int psx_taken_BFC3F494 = (psx_brA_BFC3F494 == psx_brB_BFC3F494); + psx_taken_BFC3F494 = (psx_brA_BFC3F494 == psx_brB_BFC3F494); /* 0xBFC3F498: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F498u); return; } g_debug_last_store_pc = 0xBFC3F498u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3F494) goto label_BFC3F4A4; @@ -202456,7 +208117,7 @@ label_BFC3F49C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); /* 0xBFC3F4A0: 14610002 bne $v1, $at, 0xBFC3F4AC */ uint32_t psx_brA_BFC3F4A0 = cpu->gpr[3]; uint32_t psx_brB_BFC3F4A0 = cpu->gpr[1]; - int psx_taken_BFC3F4A0 = (psx_brA_BFC3F4A0 != psx_brB_BFC3F4A0); + psx_taken_BFC3F4A0 = (psx_brA_BFC3F4A0 != psx_brB_BFC3F4A0); label_BFC3F4A4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -202529,6 +208190,9 @@ void func_1FC3F4F0(CPUState* cpu) { default: break; } } + int psx_taken_BFC3F500 = 0; + int psx_taken_BFC3F50C = 0; + int psx_taken_BFC3F520 = 0; label_BFC3F4F0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -202544,7 +208208,7 @@ label_BFC3F4F0: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC3F500: 10610009 beq $v1, $at, 0xBFC3F528 */ uint32_t psx_brA_BFC3F500 = cpu->gpr[3]; uint32_t psx_brB_BFC3F500 = cpu->gpr[1]; - int psx_taken_BFC3F500 = (psx_brA_BFC3F500 == psx_brB_BFC3F500); + psx_taken_BFC3F500 = (psx_brA_BFC3F500 == psx_brB_BFC3F500); /* 0xBFC3F504: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F504u); return; } g_debug_last_store_pc = 0xBFC3F504u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3F500) goto label_BFC3F528; @@ -202557,7 +208221,7 @@ label_BFC3F508: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC3F50C: 10610006 beq $v1, $at, 0xBFC3F528 */ uint32_t psx_brA_BFC3F50C = cpu->gpr[3]; uint32_t psx_brB_BFC3F50C = cpu->gpr[1]; - int psx_taken_BFC3F50C = (psx_brA_BFC3F50C == psx_brB_BFC3F50C); + psx_taken_BFC3F50C = (psx_brA_BFC3F50C == psx_brB_BFC3F50C); /* 0xBFC3F510: 00000000 nop */ /* nop */ if (psx_taken_BFC3F50C) goto label_BFC3F528; @@ -202574,7 +208238,7 @@ label_BFC3F514: cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; /* 0xBFC3F520: 1000000F beq $zero, $zero, 0xBFC3F560 */ uint32_t psx_brA_BFC3F520 = cpu->gpr[0]; uint32_t psx_brB_BFC3F520 = cpu->gpr[0]; - int psx_taken_BFC3F520 = (psx_brA_BFC3F520 == psx_brB_BFC3F520); + psx_taken_BFC3F520 = (psx_brA_BFC3F520 == psx_brB_BFC3F520); /* 0xBFC3F524: A08E0000 sb $t6, 0($a0) */ g_debug_last_store_pc = 0xBFC3F524u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[4] + (0)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC3F520) goto label_BFC3F560; @@ -202642,6 +208306,8 @@ void func_1FC3F570(CPUState* cpu) { default: break; } } + int psx_taken_BFC3F580 = 0; + int psx_taken_BFC3F588 = 0; label_BFC3F570: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -202657,7 +208323,7 @@ label_BFC3F570: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC3F580: 11C10003 beq $t6, $at, 0xBFC3F590 */ uint32_t psx_brA_BFC3F580 = cpu->gpr[14]; uint32_t psx_brB_BFC3F580 = cpu->gpr[1]; - int psx_taken_BFC3F580 = (psx_brA_BFC3F580 == psx_brB_BFC3F580); + psx_taken_BFC3F580 = (psx_brA_BFC3F580 == psx_brB_BFC3F580); /* 0xBFC3F584: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F584u); return; } g_debug_last_store_pc = 0xBFC3F584u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3F580) goto label_BFC3F590; @@ -202668,7 +208334,7 @@ label_BFC3F588: psx_check_interrupts(cpu); /* 0xBFC3F588: 1000000F beq $zero, $zero, 0xBFC3F5C8 */ uint32_t psx_brA_BFC3F588 = cpu->gpr[0]; uint32_t psx_brB_BFC3F588 = cpu->gpr[0]; - int psx_taken_BFC3F588 = (psx_brA_BFC3F588 == psx_brB_BFC3F588); + psx_taken_BFC3F588 = (psx_brA_BFC3F588 == psx_brB_BFC3F588); /* 0xBFC3F58C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F588) goto label_BFC3F5C8; @@ -202736,6 +208402,15 @@ void func_1FC3F5D8(CPUState* cpu) { default: break; } } + int psx_taken_BFC3F5EC = 0; + int psx_taken_BFC3F5F4 = 0; + int psx_taken_BFC3F5FC = 0; + int psx_taken_BFC3F630 = 0; + int psx_taken_BFC3F640 = 0; + int psx_taken_BFC3F64C = 0; + int psx_taken_BFC3F65C = 0; + int psx_taken_BFC3F688 = 0; + int psx_taken_BFC3F690 = 0; label_BFC3F5D8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -202753,7 +208428,7 @@ label_BFC3F5D8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F5E8u); return; } g_debug_last_store_pc = 0xBFC3F5E8u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC3F5EC: 15C10003 bne $t6, $at, 0xBFC3F5FC */ uint32_t psx_brA_BFC3F5EC = cpu->gpr[14]; uint32_t psx_brB_BFC3F5EC = cpu->gpr[1]; - int psx_taken_BFC3F5EC = (psx_brA_BFC3F5EC != psx_brB_BFC3F5EC); + psx_taken_BFC3F5EC = (psx_brA_BFC3F5EC != psx_brB_BFC3F5EC); /* 0xBFC3F5F0: 308400FF andi $a0, $a0, 0xFF */ cpu->gpr[4] = cpu->gpr[4] & 0xFFu; if (psx_taken_BFC3F5EC) goto label_BFC3F5FC; @@ -202764,7 +208439,7 @@ label_BFC3F5F4: psx_check_interrupts(cpu); /* 0xBFC3F5F4: 14800004 bne $a0, $zero, 0xBFC3F608 */ uint32_t psx_brA_BFC3F5F4 = cpu->gpr[4]; uint32_t psx_brB_BFC3F5F4 = cpu->gpr[0]; - int psx_taken_BFC3F5F4 = (psx_brA_BFC3F5F4 != psx_brB_BFC3F5F4); + psx_taken_BFC3F5F4 = (psx_brA_BFC3F5F4 != psx_brB_BFC3F5F4); /* 0xBFC3F5F8: 00801021 addu $v0, $a0, $zero */ cpu->gpr[2] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC3F5F4) goto label_BFC3F608; @@ -202775,7 +208450,7 @@ label_BFC3F5FC: psx_check_interrupts(cpu); /* 0xBFC3F5FC: 10000038 beq $zero, $zero, 0xBFC3F6E0 */ uint32_t psx_brA_BFC3F5FC = cpu->gpr[0]; uint32_t psx_brB_BFC3F5FC = cpu->gpr[0]; - int psx_taken_BFC3F5FC = (psx_brA_BFC3F5FC == psx_brB_BFC3F5FC); + psx_taken_BFC3F5FC = (psx_brA_BFC3F5FC == psx_brB_BFC3F5FC); /* 0xBFC3F600: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F5FC) goto label_BFC3F6E0; @@ -202813,7 +208488,7 @@ label_BFC3F608: cpu->gpr[15] = cpu->gpr[6] & 0x10u; /* 0xBFC3F630: 11E00005 beq $t7, $zero, 0xBFC3F648 */ uint32_t psx_brA_BFC3F630 = cpu->gpr[15]; uint32_t psx_brB_BFC3F630 = cpu->gpr[0]; - int psx_taken_BFC3F630 = (psx_brA_BFC3F630 == psx_brB_BFC3F630); + psx_taken_BFC3F630 = (psx_brA_BFC3F630 == psx_brB_BFC3F630); /* 0xBFC3F634: AC22EE78 sw $v0, -4488($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4488)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F634u); return; } g_debug_last_store_pc = 0xBFC3F634u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC3F630) goto label_BFC3F648; @@ -202828,7 +208503,7 @@ label_BFC3F638: cpu->gpr[1] = 0x800E0000u; /* 0xBFC3F640: 1000000B beq $zero, $zero, 0xBFC3F670 */ uint32_t psx_brA_BFC3F640 = cpu->gpr[0]; uint32_t psx_brB_BFC3F640 = cpu->gpr[0]; - int psx_taken_BFC3F640 = (psx_brA_BFC3F640 == psx_brB_BFC3F640); + psx_taken_BFC3F640 = (psx_brA_BFC3F640 == psx_brB_BFC3F640); /* 0xBFC3F644: AC38EE88 sw $t8, -4472($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4472)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F644u); return; } g_debug_last_store_pc = 0xBFC3F644u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC3F640) goto label_BFC3F670; @@ -202841,7 +208516,7 @@ label_BFC3F648: cpu->gpr[25] = cpu->gpr[6] & 0x20u; /* 0xBFC3F64C: 13200006 beq $t9, $zero, 0xBFC3F668 */ uint32_t psx_brA_BFC3F64C = cpu->gpr[25]; uint32_t psx_brB_BFC3F64C = cpu->gpr[0]; - int psx_taken_BFC3F64C = (psx_brA_BFC3F64C == psx_brB_BFC3F64C); + psx_taken_BFC3F64C = (psx_brA_BFC3F64C == psx_brB_BFC3F64C); /* 0xBFC3F650: 24090200 addiu $t1, $zero, 512 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (512)); if (psx_taken_BFC3F64C) goto label_BFC3F668; @@ -202856,7 +208531,7 @@ label_BFC3F654: cpu->gpr[1] = 0x800E0000u; /* 0xBFC3F65C: 10000004 beq $zero, $zero, 0xBFC3F670 */ uint32_t psx_brA_BFC3F65C = cpu->gpr[0]; uint32_t psx_brB_BFC3F65C = cpu->gpr[0]; - int psx_taken_BFC3F65C = (psx_brA_BFC3F65C == psx_brB_BFC3F65C); + psx_taken_BFC3F65C = (psx_brA_BFC3F65C == psx_brB_BFC3F65C); /* 0xBFC3F660: AC28EE88 sw $t0, -4472($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4472)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F660u); return; } g_debug_last_store_pc = 0xBFC3F660u; cpu->write_word(psx_addr, cpu->gpr[8]); } if (psx_taken_BFC3F65C) goto label_BFC3F670; @@ -202895,7 +208570,7 @@ label_BFC3F670: cpu->gpr[11] = cpu->gpr[2] & 0x8u; /* 0xBFC3F688: 11610003 beq $t3, $at, 0xBFC3F698 */ uint32_t psx_brA_BFC3F688 = cpu->gpr[11]; uint32_t psx_brB_BFC3F688 = cpu->gpr[1]; - int psx_taken_BFC3F688 = (psx_brA_BFC3F688 == psx_brB_BFC3F688); + psx_taken_BFC3F688 = (psx_brA_BFC3F688 == psx_brB_BFC3F688); /* 0xBFC3F68C: 00000000 nop */ /* nop */ if (psx_taken_BFC3F688) goto label_BFC3F698; @@ -202906,7 +208581,7 @@ label_BFC3F690: psx_check_interrupts(cpu); /* 0xBFC3F690: 10000013 beq $zero, $zero, 0xBFC3F6E0 */ uint32_t psx_brA_BFC3F690 = cpu->gpr[0]; uint32_t psx_brB_BFC3F690 = cpu->gpr[0]; - int psx_taken_BFC3F690 = (psx_brA_BFC3F690 == psx_brB_BFC3F690); + psx_taken_BFC3F690 = (psx_brA_BFC3F690 == psx_brB_BFC3F690); /* 0xBFC3F694: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F690) goto label_BFC3F6E0; @@ -202982,6 +208657,14 @@ void func_1FC3F6F0(CPUState* cpu) { default: break; } } + int psx_taken_BFC3F700 = 0; + int psx_taken_BFC3F708 = 0; + int psx_taken_BFC3F728 = 0; + int psx_taken_BFC3F738 = 0; + int psx_taken_BFC3F744 = 0; + int psx_taken_BFC3F754 = 0; + int psx_taken_BFC3F780 = 0; + int psx_taken_BFC3F788 = 0; label_BFC3F6F0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -202997,7 +208680,7 @@ label_BFC3F6F0: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC3F700: 11C10003 beq $t6, $at, 0xBFC3F710 */ uint32_t psx_brA_BFC3F700 = cpu->gpr[14]; uint32_t psx_brB_BFC3F700 = cpu->gpr[1]; - int psx_taken_BFC3F700 = (psx_brA_BFC3F700 == psx_brB_BFC3F700); + psx_taken_BFC3F700 = (psx_brA_BFC3F700 == psx_brB_BFC3F700); /* 0xBFC3F704: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F704u); return; } g_debug_last_store_pc = 0xBFC3F704u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3F700) goto label_BFC3F710; @@ -203008,7 +208691,7 @@ label_BFC3F708: psx_check_interrupts(cpu); /* 0xBFC3F708: 10000033 beq $zero, $zero, 0xBFC3F7D8 */ uint32_t psx_brA_BFC3F708 = cpu->gpr[0]; uint32_t psx_brB_BFC3F708 = cpu->gpr[0]; - int psx_taken_BFC3F708 = (psx_brA_BFC3F708 == psx_brB_BFC3F708); + psx_taken_BFC3F708 = (psx_brA_BFC3F708 == psx_brB_BFC3F708); /* 0xBFC3F70C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F708) goto label_BFC3F7D8; @@ -203031,7 +208714,7 @@ label_BFC3F710: cpu->gpr[15] = cpu->gpr[4] & 0x10u; /* 0xBFC3F728: 11E00005 beq $t7, $zero, 0xBFC3F740 */ uint32_t psx_brA_BFC3F728 = cpu->gpr[15]; uint32_t psx_brB_BFC3F728 = cpu->gpr[0]; - int psx_taken_BFC3F728 = (psx_brA_BFC3F728 == psx_brB_BFC3F728); + psx_taken_BFC3F728 = (psx_brA_BFC3F728 == psx_brB_BFC3F728); /* 0xBFC3F72C: AC20EE5C sw $zero, -4516($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4516)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F72Cu); return; } g_debug_last_store_pc = 0xBFC3F72Cu; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC3F728) goto label_BFC3F740; @@ -203046,7 +208729,7 @@ label_BFC3F730: cpu->gpr[1] = 0x800E0000u; /* 0xBFC3F738: 1000000B beq $zero, $zero, 0xBFC3F768 */ uint32_t psx_brA_BFC3F738 = cpu->gpr[0]; uint32_t psx_brB_BFC3F738 = cpu->gpr[0]; - int psx_taken_BFC3F738 = (psx_brA_BFC3F738 == psx_brB_BFC3F738); + psx_taken_BFC3F738 = (psx_brA_BFC3F738 == psx_brB_BFC3F738); /* 0xBFC3F73C: AC38EE88 sw $t8, -4472($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4472)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F73Cu); return; } g_debug_last_store_pc = 0xBFC3F73Cu; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC3F738) goto label_BFC3F768; @@ -203059,7 +208742,7 @@ label_BFC3F740: cpu->gpr[25] = cpu->gpr[4] & 0x20u; /* 0xBFC3F744: 13200006 beq $t9, $zero, 0xBFC3F760 */ uint32_t psx_brA_BFC3F744 = cpu->gpr[25]; uint32_t psx_brB_BFC3F744 = cpu->gpr[0]; - int psx_taken_BFC3F744 = (psx_brA_BFC3F744 == psx_brB_BFC3F744); + psx_taken_BFC3F744 = (psx_brA_BFC3F744 == psx_brB_BFC3F744); /* 0xBFC3F748: 24090200 addiu $t1, $zero, 512 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (512)); if (psx_taken_BFC3F744) goto label_BFC3F760; @@ -203074,7 +208757,7 @@ label_BFC3F74C: cpu->gpr[1] = 0x800E0000u; /* 0xBFC3F754: 10000004 beq $zero, $zero, 0xBFC3F768 */ uint32_t psx_brA_BFC3F754 = cpu->gpr[0]; uint32_t psx_brB_BFC3F754 = cpu->gpr[0]; - int psx_taken_BFC3F754 = (psx_brA_BFC3F754 == psx_brB_BFC3F754); + psx_taken_BFC3F754 = (psx_brA_BFC3F754 == psx_brB_BFC3F754); /* 0xBFC3F758: AC28EE88 sw $t0, -4472($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4472)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F758u); return; } g_debug_last_store_pc = 0xBFC3F758u; cpu->write_word(psx_addr, cpu->gpr[8]); } if (psx_taken_BFC3F754) goto label_BFC3F768; @@ -203113,7 +208796,7 @@ label_BFC3F768: cpu->gpr[11] = cpu->gpr[2] & 0x8u; /* 0xBFC3F780: 11610003 beq $t3, $at, 0xBFC3F790 */ uint32_t psx_brA_BFC3F780 = cpu->gpr[11]; uint32_t psx_brB_BFC3F780 = cpu->gpr[1]; - int psx_taken_BFC3F780 = (psx_brA_BFC3F780 == psx_brB_BFC3F780); + psx_taken_BFC3F780 = (psx_brA_BFC3F780 == psx_brB_BFC3F780); /* 0xBFC3F784: 00000000 nop */ /* nop */ if (psx_taken_BFC3F780) goto label_BFC3F790; @@ -203124,7 +208807,7 @@ label_BFC3F788: psx_check_interrupts(cpu); /* 0xBFC3F788: 10000013 beq $zero, $zero, 0xBFC3F7D8 */ uint32_t psx_brA_BFC3F788 = cpu->gpr[0]; uint32_t psx_brB_BFC3F788 = cpu->gpr[0]; - int psx_taken_BFC3F788 = (psx_brA_BFC3F788 == psx_brB_BFC3F788); + psx_taken_BFC3F788 = (psx_brA_BFC3F788 == psx_brB_BFC3F788); /* 0xBFC3F78C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F788) goto label_BFC3F7D8; @@ -203201,6 +208884,13 @@ void func_1FC3F7E8(CPUState* cpu) { default: break; } } + int psx_taken_BFC3F7FC = 0; + int psx_taken_BFC3F808 = 0; + int psx_taken_BFC3F81C = 0; + int psx_taken_BFC3F824 = 0; + int psx_taken_BFC3F82C = 0; + int psx_taken_BFC3F840 = 0; + int psx_taken_BFC3F848 = 0; label_BFC3F7E8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -203218,7 +208908,7 @@ label_BFC3F7E8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F7F8u); return; } g_debug_last_store_pc = 0xBFC3F7F8u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC3F7FC: 1043000D beq $v0, $v1, 0xBFC3F834 */ uint32_t psx_brA_BFC3F7FC = cpu->gpr[2]; uint32_t psx_brB_BFC3F7FC = cpu->gpr[3]; - int psx_taken_BFC3F7FC = (psx_brA_BFC3F7FC == psx_brB_BFC3F7FC); + psx_taken_BFC3F7FC = (psx_brA_BFC3F7FC == psx_brB_BFC3F7FC); /* 0xBFC3F800: AFA40020 sw $a0, 32($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F800u); return; } g_debug_last_store_pc = 0xBFC3F800u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC3F7FC) goto label_BFC3F834; @@ -203231,7 +208921,7 @@ label_BFC3F804: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC3F808: 1044000A beq $v0, $a0, 0xBFC3F834 */ uint32_t psx_brA_BFC3F808 = cpu->gpr[2]; uint32_t psx_brB_BFC3F808 = cpu->gpr[4]; - int psx_taken_BFC3F808 = (psx_brA_BFC3F808 == psx_brB_BFC3F808); + psx_taken_BFC3F808 = (psx_brA_BFC3F808 == psx_brB_BFC3F808); /* 0xBFC3F80C: 00000000 nop */ /* nop */ if (psx_taken_BFC3F808) goto label_BFC3F834; @@ -203248,7 +208938,7 @@ label_BFC3F810: /* nop */ /* 0xBFC3F81C: 10430005 beq $v0, $v1, 0xBFC3F834 */ uint32_t psx_brA_BFC3F81C = cpu->gpr[2]; uint32_t psx_brB_BFC3F81C = cpu->gpr[3]; - int psx_taken_BFC3F81C = (psx_brA_BFC3F81C == psx_brB_BFC3F81C); + psx_taken_BFC3F81C = (psx_brA_BFC3F81C == psx_brB_BFC3F81C); /* 0xBFC3F820: 00000000 nop */ /* nop */ if (psx_taken_BFC3F81C) goto label_BFC3F834; @@ -203259,7 +208949,7 @@ label_BFC3F824: psx_check_interrupts(cpu); /* 0xBFC3F824: 10440003 beq $v0, $a0, 0xBFC3F834 */ uint32_t psx_brA_BFC3F824 = cpu->gpr[2]; uint32_t psx_brB_BFC3F824 = cpu->gpr[4]; - int psx_taken_BFC3F824 = (psx_brA_BFC3F824 == psx_brB_BFC3F824); + psx_taken_BFC3F824 = (psx_brA_BFC3F824 == psx_brB_BFC3F824); /* 0xBFC3F828: 00000000 nop */ /* nop */ if (psx_taken_BFC3F824) goto label_BFC3F834; @@ -203270,7 +208960,7 @@ label_BFC3F82C: psx_check_interrupts(cpu); /* 0xBFC3F82C: 10000029 beq $zero, $zero, 0xBFC3F8D4 */ uint32_t psx_brA_BFC3F82C = cpu->gpr[0]; uint32_t psx_brB_BFC3F82C = cpu->gpr[0]; - int psx_taken_BFC3F82C = (psx_brA_BFC3F82C == psx_brB_BFC3F82C); + psx_taken_BFC3F82C = (psx_brA_BFC3F82C == psx_brB_BFC3F82C); /* 0xBFC3F830: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F82C) goto label_BFC3F8D4; @@ -203287,7 +208977,7 @@ label_BFC3F834: /* nop */ /* 0xBFC3F840: 11C00004 beq $t6, $zero, 0xBFC3F854 */ uint32_t psx_brA_BFC3F840 = cpu->gpr[14]; uint32_t psx_brB_BFC3F840 = cpu->gpr[0]; - int psx_taken_BFC3F840 = (psx_brA_BFC3F840 == psx_brB_BFC3F840); + psx_taken_BFC3F840 = (psx_brA_BFC3F840 == psx_brB_BFC3F840); /* 0xBFC3F844: 240F0001 addiu $t7, $zero, 1 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC3F840) goto label_BFC3F854; @@ -203298,7 +208988,7 @@ label_BFC3F848: psx_check_interrupts(cpu); /* 0xBFC3F848: 10000022 beq $zero, $zero, 0xBFC3F8D4 */ uint32_t psx_brA_BFC3F848 = cpu->gpr[0]; uint32_t psx_brB_BFC3F848 = cpu->gpr[0]; - int psx_taken_BFC3F848 = (psx_brA_BFC3F848 == psx_brB_BFC3F848); + psx_taken_BFC3F848 = (psx_brA_BFC3F848 == psx_brB_BFC3F848); /* 0xBFC3F84C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F848) goto label_BFC3F8D4; @@ -203415,6 +209105,11 @@ void func_1FC3F8E4(CPUState* cpu) { default: break; } } + int psx_taken_BFC3F8F4 = 0; + int psx_taken_BFC3F900 = 0; + int psx_taken_BFC3F908 = 0; + int psx_taken_BFC3F92C = 0; + int psx_taken_BFC3F934 = 0; label_BFC3F8E4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -203430,7 +209125,7 @@ label_BFC3F8E4: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC3F8F4: 10610006 beq $v1, $at, 0xBFC3F910 */ uint32_t psx_brA_BFC3F8F4 = cpu->gpr[3]; uint32_t psx_brB_BFC3F8F4 = cpu->gpr[1]; - int psx_taken_BFC3F8F4 = (psx_brA_BFC3F8F4 == psx_brB_BFC3F8F4); + psx_taken_BFC3F8F4 = (psx_brA_BFC3F8F4 == psx_brB_BFC3F8F4); /* 0xBFC3F8F8: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F8F8u); return; } g_debug_last_store_pc = 0xBFC3F8F8u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3F8F4) goto label_BFC3F910; @@ -203443,7 +209138,7 @@ label_BFC3F8FC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC3F900: 10610003 beq $v1, $at, 0xBFC3F910 */ uint32_t psx_brA_BFC3F900 = cpu->gpr[3]; uint32_t psx_brB_BFC3F900 = cpu->gpr[1]; - int psx_taken_BFC3F900 = (psx_brA_BFC3F900 == psx_brB_BFC3F900); + psx_taken_BFC3F900 = (psx_brA_BFC3F900 == psx_brB_BFC3F900); /* 0xBFC3F904: 00000000 nop */ /* nop */ if (psx_taken_BFC3F900) goto label_BFC3F910; @@ -203454,7 +209149,7 @@ label_BFC3F908: psx_check_interrupts(cpu); /* 0xBFC3F908: 10000024 beq $zero, $zero, 0xBFC3F99C */ uint32_t psx_brA_BFC3F908 = cpu->gpr[0]; uint32_t psx_brB_BFC3F908 = cpu->gpr[0]; - int psx_taken_BFC3F908 = (psx_brA_BFC3F908 == psx_brB_BFC3F908); + psx_taken_BFC3F908 = (psx_brA_BFC3F908 == psx_brB_BFC3F908); /* 0xBFC3F90C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F908) goto label_BFC3F99C; @@ -203479,7 +209174,7 @@ label_BFC3F910: cpu->gpr[15] = cpu->gpr[2] & 0x8u; /* 0xBFC3F92C: 11E10003 beq $t7, $at, 0xBFC3F93C */ uint32_t psx_brA_BFC3F92C = cpu->gpr[15]; uint32_t psx_brB_BFC3F92C = cpu->gpr[1]; - int psx_taken_BFC3F92C = (psx_brA_BFC3F92C == psx_brB_BFC3F92C); + psx_taken_BFC3F92C = (psx_brA_BFC3F92C == psx_brB_BFC3F92C); /* 0xBFC3F930: 00000000 nop */ /* nop */ if (psx_taken_BFC3F92C) goto label_BFC3F93C; @@ -203490,7 +209185,7 @@ label_BFC3F934: psx_check_interrupts(cpu); /* 0xBFC3F934: 10000019 beq $zero, $zero, 0xBFC3F99C */ uint32_t psx_brA_BFC3F934 = cpu->gpr[0]; uint32_t psx_brB_BFC3F934 = cpu->gpr[0]; - int psx_taken_BFC3F934 = (psx_brA_BFC3F934 == psx_brB_BFC3F934); + psx_taken_BFC3F934 = (psx_brA_BFC3F934 == psx_brB_BFC3F934); /* 0xBFC3F938: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F934) goto label_BFC3F99C; @@ -203578,6 +209273,8 @@ void func_1FC3F9AC(CPUState* cpu) { default: break; } } + int psx_taken_BFC3F9BC = 0; + int psx_taken_BFC3F9C4 = 0; label_BFC3F9AC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -203593,7 +209290,7 @@ label_BFC3F9AC: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC3F9BC: 11C10003 beq $t6, $at, 0xBFC3F9CC */ uint32_t psx_brA_BFC3F9BC = cpu->gpr[14]; uint32_t psx_brB_BFC3F9BC = cpu->gpr[1]; - int psx_taken_BFC3F9BC = (psx_brA_BFC3F9BC == psx_brB_BFC3F9BC); + psx_taken_BFC3F9BC = (psx_brA_BFC3F9BC == psx_brB_BFC3F9BC); /* 0xBFC3F9C0: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3F9C0u); return; } g_debug_last_store_pc = 0xBFC3F9C0u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3F9BC) goto label_BFC3F9CC; @@ -203604,7 +209301,7 @@ label_BFC3F9C4: psx_check_interrupts(cpu); /* 0xBFC3F9C4: 1000000E beq $zero, $zero, 0xBFC3FA00 */ uint32_t psx_brA_BFC3F9C4 = cpu->gpr[0]; uint32_t psx_brB_BFC3F9C4 = cpu->gpr[0]; - int psx_taken_BFC3F9C4 = (psx_brA_BFC3F9C4 == psx_brB_BFC3F9C4); + psx_taken_BFC3F9C4 = (psx_brA_BFC3F9C4 == psx_brB_BFC3F9C4); /* 0xBFC3F9C8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3F9C4) goto label_BFC3FA00; @@ -203670,6 +209367,21 @@ void func_1FC3FA10(CPUState* cpu) { default: break; } } + int psx_taken_BFC3FA14 = 0; + int psx_taken_BFC3FA28 = 0; + int psx_taken_BFC3FA30 = 0; + int psx_taken_BFC3FA38 = 0; + int psx_taken_BFC3FA4C = 0; + int psx_taken_BFC3FA54 = 0; + int psx_taken_BFC3FA5C = 0; + int psx_taken_BFC3FA64 = 0; + int psx_taken_BFC3FA6C = 0; + int psx_taken_BFC3FA74 = 0; + int psx_taken_BFC3FA7C = 0; + int psx_taken_BFC3FA84 = 0; + int psx_taken_BFC3FA8C = 0; + int psx_taken_BFC3FA94 = 0; + int psx_taken_BFC3FA9C = 0; label_BFC3FA10: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -203679,7 +209391,7 @@ label_BFC3FA10: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC3FA14: 1000000A beq $zero, $zero, 0xBFC3FA40 */ uint32_t psx_brA_BFC3FA14 = cpu->gpr[0]; uint32_t psx_brB_BFC3FA14 = cpu->gpr[0]; - int psx_taken_BFC3FA14 = (psx_brA_BFC3FA14 == psx_brB_BFC3FA14); + psx_taken_BFC3FA14 = (psx_brA_BFC3FA14 == psx_brB_BFC3FA14); /* 0xBFC3FA18: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3FA18u); return; } g_debug_last_store_pc = 0xBFC3FA18u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3FA14) goto label_BFC3FA40; @@ -203696,7 +209408,7 @@ label_BFC3FA1C: /* nop */ /* 0xBFC3FA28: 15C00014 bne $t6, $zero, 0xBFC3FA7C */ uint32_t psx_brA_BFC3FA28 = cpu->gpr[14]; uint32_t psx_brB_BFC3FA28 = cpu->gpr[0]; - int psx_taken_BFC3FA28 = (psx_brA_BFC3FA28 != psx_brB_BFC3FA28); + psx_taken_BFC3FA28 = (psx_brA_BFC3FA28 != psx_brB_BFC3FA28); /* 0xBFC3FA2C: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3FA28) goto label_BFC3FA7C; @@ -203707,7 +209419,7 @@ label_BFC3FA30: psx_check_interrupts(cpu); /* 0xBFC3FA30: 1000002A beq $zero, $zero, 0xBFC3FADC */ uint32_t psx_brA_BFC3FA30 = cpu->gpr[0]; uint32_t psx_brB_BFC3FA30 = cpu->gpr[0]; - int psx_taken_BFC3FA30 = (psx_brA_BFC3FA30 == psx_brB_BFC3FA30); + psx_taken_BFC3FA30 = (psx_brA_BFC3FA30 == psx_brB_BFC3FA30); /* 0xBFC3FA34: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FA30) goto label_BFC3FADC; @@ -203718,7 +209430,7 @@ label_BFC3FA38: psx_check_interrupts(cpu); /* 0xBFC3FA38: 10000028 beq $zero, $zero, 0xBFC3FADC */ uint32_t psx_brA_BFC3FA38 = cpu->gpr[0]; uint32_t psx_brB_BFC3FA38 = cpu->gpr[0]; - int psx_taken_BFC3FA38 = (psx_brA_BFC3FA38 == psx_brB_BFC3FA38); + psx_taken_BFC3FA38 = (psx_brA_BFC3FA38 == psx_brB_BFC3FA38); /* 0xBFC3FA3C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FA38) goto label_BFC3FADC; @@ -203735,7 +209447,7 @@ label_BFC3FA40: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC3FA4C: 1062FFF3 beq $v1, $v0, 0xBFC3FA1C */ uint32_t psx_brA_BFC3FA4C = cpu->gpr[3]; uint32_t psx_brB_BFC3FA4C = cpu->gpr[2]; - int psx_taken_BFC3FA4C = (psx_brA_BFC3FA4C == psx_brB_BFC3FA4C); + psx_taken_BFC3FA4C = (psx_brA_BFC3FA4C == psx_brB_BFC3FA4C); /* 0xBFC3FA50: 24010004 addiu $at, $zero, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC3FA4C) goto label_BFC3FA1C; @@ -203746,7 +209458,7 @@ label_BFC3FA54: psx_check_interrupts(cpu); /* 0xBFC3FA54: 1061FFF1 beq $v1, $at, 0xBFC3FA1C */ uint32_t psx_brA_BFC3FA54 = cpu->gpr[3]; uint32_t psx_brB_BFC3FA54 = cpu->gpr[1]; - int psx_taken_BFC3FA54 = (psx_brA_BFC3FA54 == psx_brB_BFC3FA54); + psx_taken_BFC3FA54 = (psx_brA_BFC3FA54 == psx_brB_BFC3FA54); /* 0xBFC3FA58: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC3FA54) goto label_BFC3FA1C; @@ -203757,7 +209469,7 @@ label_BFC3FA5C: psx_check_interrupts(cpu); /* 0xBFC3FA5C: 1061FFEF beq $v1, $at, 0xBFC3FA1C */ uint32_t psx_brA_BFC3FA5C = cpu->gpr[3]; uint32_t psx_brB_BFC3FA5C = cpu->gpr[1]; - int psx_taken_BFC3FA5C = (psx_brA_BFC3FA5C == psx_brB_BFC3FA5C); + psx_taken_BFC3FA5C = (psx_brA_BFC3FA5C == psx_brB_BFC3FA5C); /* 0xBFC3FA60: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3FA5C) goto label_BFC3FA1C; @@ -203768,7 +209480,7 @@ label_BFC3FA64: psx_check_interrupts(cpu); /* 0xBFC3FA64: 1061FFED beq $v1, $at, 0xBFC3FA1C */ uint32_t psx_brA_BFC3FA64 = cpu->gpr[3]; uint32_t psx_brB_BFC3FA64 = cpu->gpr[1]; - int psx_taken_BFC3FA64 = (psx_brA_BFC3FA64 == psx_brB_BFC3FA64); + psx_taken_BFC3FA64 = (psx_brA_BFC3FA64 == psx_brB_BFC3FA64); /* 0xBFC3FA68: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC3FA64) goto label_BFC3FA1C; @@ -203779,7 +209491,7 @@ label_BFC3FA6C: psx_check_interrupts(cpu); /* 0xBFC3FA6C: 1061FFEB beq $v1, $at, 0xBFC3FA1C */ uint32_t psx_brA_BFC3FA6C = cpu->gpr[3]; uint32_t psx_brB_BFC3FA6C = cpu->gpr[1]; - int psx_taken_BFC3FA6C = (psx_brA_BFC3FA6C == psx_brB_BFC3FA6C); + psx_taken_BFC3FA6C = (psx_brA_BFC3FA6C == psx_brB_BFC3FA6C); /* 0xBFC3FA70: 3401FFFF ori $at, $zero, 0xFFFF */ cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC3FA6C) goto label_BFC3FA1C; @@ -203790,7 +209502,7 @@ label_BFC3FA74: psx_check_interrupts(cpu); /* 0xBFC3FA74: 1461FFF0 bne $v1, $at, 0xBFC3FA38 */ uint32_t psx_brA_BFC3FA74 = cpu->gpr[3]; uint32_t psx_brB_BFC3FA74 = cpu->gpr[1]; - int psx_taken_BFC3FA74 = (psx_brA_BFC3FA74 != psx_brB_BFC3FA74); + psx_taken_BFC3FA74 = (psx_brA_BFC3FA74 != psx_brB_BFC3FA74); /* 0xBFC3FA78: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3FA74) goto label_BFC3FA38; @@ -203801,7 +209513,7 @@ label_BFC3FA7C: psx_check_interrupts(cpu); /* 0xBFC3FA7C: 10610008 beq $v1, $at, 0xBFC3FAA0 */ uint32_t psx_brA_BFC3FA7C = cpu->gpr[3]; uint32_t psx_brB_BFC3FA7C = cpu->gpr[1]; - int psx_taken_BFC3FA7C = (psx_brA_BFC3FA7C == psx_brB_BFC3FA7C); + psx_taken_BFC3FA7C = (psx_brA_BFC3FA7C == psx_brB_BFC3FA7C); /* 0xBFC3FA80: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC3FA7C) goto label_BFC3FAA0; @@ -203812,7 +209524,7 @@ label_BFC3FA84: psx_check_interrupts(cpu); /* 0xBFC3FA84: 10610006 beq $v1, $at, 0xBFC3FAA0 */ uint32_t psx_brA_BFC3FA84 = cpu->gpr[3]; uint32_t psx_brB_BFC3FA84 = cpu->gpr[1]; - int psx_taken_BFC3FA84 = (psx_brA_BFC3FA84 == psx_brB_BFC3FA84); + psx_taken_BFC3FA84 = (psx_brA_BFC3FA84 == psx_brB_BFC3FA84); /* 0xBFC3FA88: 00000000 nop */ /* nop */ if (psx_taken_BFC3FA84) goto label_BFC3FAA0; @@ -203823,7 +209535,7 @@ label_BFC3FA8C: psx_check_interrupts(cpu); /* 0xBFC3FA8C: 10620004 beq $v1, $v0, 0xBFC3FAA0 */ uint32_t psx_brA_BFC3FA8C = cpu->gpr[3]; uint32_t psx_brB_BFC3FA8C = cpu->gpr[2]; - int psx_taken_BFC3FA8C = (psx_brA_BFC3FA8C == psx_brB_BFC3FA8C); + psx_taken_BFC3FA8C = (psx_brA_BFC3FA8C == psx_brB_BFC3FA8C); /* 0xBFC3FA90: 24010004 addiu $at, $zero, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC3FA8C) goto label_BFC3FAA0; @@ -203834,7 +209546,7 @@ label_BFC3FA94: psx_check_interrupts(cpu); /* 0xBFC3FA94: 10610002 beq $v1, $at, 0xBFC3FAA0 */ uint32_t psx_brA_BFC3FA94 = cpu->gpr[3]; uint32_t psx_brB_BFC3FA94 = cpu->gpr[1]; - int psx_taken_BFC3FA94 = (psx_brA_BFC3FA94 == psx_brB_BFC3FA94); + psx_taken_BFC3FA94 = (psx_brA_BFC3FA94 == psx_brB_BFC3FA94); /* 0xBFC3FA98: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC3FA94) goto label_BFC3FAA0; @@ -203845,7 +209557,7 @@ label_BFC3FA9C: psx_check_interrupts(cpu); /* 0xBFC3FA9C: 14610002 bne $v1, $at, 0xBFC3FAA8 */ uint32_t psx_brA_BFC3FA9C = cpu->gpr[3]; uint32_t psx_brB_BFC3FA9C = cpu->gpr[1]; - int psx_taken_BFC3FA9C = (psx_brA_BFC3FA9C != psx_brB_BFC3FA9C); + psx_taken_BFC3FA9C = (psx_brA_BFC3FA9C != psx_brB_BFC3FA9C); label_BFC3FAA0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -203923,6 +209635,12 @@ void func_1FC3FAEC(CPUState* cpu) { default: break; } } + int psx_taken_BFC3FAFC = 0; + int psx_taken_BFC3FB08 = 0; + int psx_taken_BFC3FB10 = 0; + int psx_taken_BFC3FB18 = 0; + int psx_taken_BFC3FB20 = 0; + int psx_taken_BFC3FB28 = 0; label_BFC3FAEC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -203938,7 +209656,7 @@ label_BFC3FAEC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC3FAFC: 10410006 beq $v0, $at, 0xBFC3FB18 */ uint32_t psx_brA_BFC3FAFC = cpu->gpr[2]; uint32_t psx_brB_BFC3FAFC = cpu->gpr[1]; - int psx_taken_BFC3FAFC = (psx_brA_BFC3FAFC == psx_brB_BFC3FAFC); + psx_taken_BFC3FAFC = (psx_brA_BFC3FAFC == psx_brB_BFC3FAFC); /* 0xBFC3FB00: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3FB00u); return; } g_debug_last_store_pc = 0xBFC3FB00u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3FAFC) goto label_BFC3FB18; @@ -203951,7 +209669,7 @@ label_BFC3FB04: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); /* 0xBFC3FB08: 10410005 beq $v0, $at, 0xBFC3FB20 */ uint32_t psx_brA_BFC3FB08 = cpu->gpr[2]; uint32_t psx_brB_BFC3FB08 = cpu->gpr[1]; - int psx_taken_BFC3FB08 = (psx_brA_BFC3FB08 == psx_brB_BFC3FB08); + psx_taken_BFC3FB08 = (psx_brA_BFC3FB08 == psx_brB_BFC3FB08); /* 0xBFC3FB0C: 00000000 nop */ /* nop */ if (psx_taken_BFC3FB08) goto label_BFC3FB20; @@ -203962,7 +209680,7 @@ label_BFC3FB10: psx_check_interrupts(cpu); /* 0xBFC3FB10: 10000005 beq $zero, $zero, 0xBFC3FB28 */ uint32_t psx_brA_BFC3FB10 = cpu->gpr[0]; uint32_t psx_brB_BFC3FB10 = cpu->gpr[0]; - int psx_taken_BFC3FB10 = (psx_brA_BFC3FB10 == psx_brB_BFC3FB10); + psx_taken_BFC3FB10 = (psx_brA_BFC3FB10 == psx_brB_BFC3FB10); /* 0xBFC3FB14: 00000000 nop */ /* nop */ if (psx_taken_BFC3FB10) goto label_BFC3FB28; @@ -203973,7 +209691,7 @@ label_BFC3FB18: psx_check_interrupts(cpu); /* 0xBFC3FB18: 10000005 beq $zero, $zero, 0xBFC3FB30 */ uint32_t psx_brA_BFC3FB18 = cpu->gpr[0]; uint32_t psx_brB_BFC3FB18 = cpu->gpr[0]; - int psx_taken_BFC3FB18 = (psx_brA_BFC3FB18 == psx_brB_BFC3FB18); + psx_taken_BFC3FB18 = (psx_brA_BFC3FB18 == psx_brB_BFC3FB18); /* 0xBFC3FB1C: 24030006 addiu $v1, $zero, 6 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (6)); if (psx_taken_BFC3FB18) goto label_BFC3FB30; @@ -203984,7 +209702,7 @@ label_BFC3FB20: psx_check_interrupts(cpu); /* 0xBFC3FB20: 10000003 beq $zero, $zero, 0xBFC3FB30 */ uint32_t psx_brA_BFC3FB20 = cpu->gpr[0]; uint32_t psx_brB_BFC3FB20 = cpu->gpr[0]; - int psx_taken_BFC3FB20 = (psx_brA_BFC3FB20 == psx_brB_BFC3FB20); + psx_taken_BFC3FB20 = (psx_brA_BFC3FB20 == psx_brB_BFC3FB20); /* 0xBFC3FB24: 2403001B addiu $v1, $zero, 27 */ cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[0] + (27)); if (psx_taken_BFC3FB20) goto label_BFC3FB30; @@ -203995,7 +209713,7 @@ label_BFC3FB28: psx_check_interrupts(cpu); /* 0xBFC3FB28: 1000000E beq $zero, $zero, 0xBFC3FB64 */ uint32_t psx_brA_BFC3FB28 = cpu->gpr[0]; uint32_t psx_brB_BFC3FB28 = cpu->gpr[0]; - int psx_taken_BFC3FB28 = (psx_brA_BFC3FB28 == psx_brB_BFC3FB28); + psx_taken_BFC3FB28 = (psx_brA_BFC3FB28 == psx_brB_BFC3FB28); /* 0xBFC3FB2C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FB28) goto label_BFC3FB64; @@ -204061,6 +209779,21 @@ void func_1FC3FB74(CPUState* cpu) { default: break; } } + int psx_taken_BFC3FB78 = 0; + int psx_taken_BFC3FB8C = 0; + int psx_taken_BFC3FB94 = 0; + int psx_taken_BFC3FB9C = 0; + int psx_taken_BFC3FBB0 = 0; + int psx_taken_BFC3FBB8 = 0; + int psx_taken_BFC3FBC0 = 0; + int psx_taken_BFC3FBC8 = 0; + int psx_taken_BFC3FBD0 = 0; + int psx_taken_BFC3FBD8 = 0; + int psx_taken_BFC3FBE0 = 0; + int psx_taken_BFC3FBE8 = 0; + int psx_taken_BFC3FBF0 = 0; + int psx_taken_BFC3FBF8 = 0; + int psx_taken_BFC3FC00 = 0; label_BFC3FB74: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -204070,7 +209803,7 @@ label_BFC3FB74: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC3FB78: 1000000A beq $zero, $zero, 0xBFC3FBA4 */ uint32_t psx_brA_BFC3FB78 = cpu->gpr[0]; uint32_t psx_brB_BFC3FB78 = cpu->gpr[0]; - int psx_taken_BFC3FB78 = (psx_brA_BFC3FB78 == psx_brB_BFC3FB78); + psx_taken_BFC3FB78 = (psx_brA_BFC3FB78 == psx_brB_BFC3FB78); /* 0xBFC3FB7C: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3FB7Cu); return; } g_debug_last_store_pc = 0xBFC3FB7Cu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3FB78) goto label_BFC3FBA4; @@ -204087,7 +209820,7 @@ label_BFC3FB80: /* nop */ /* 0xBFC3FB8C: 15C00014 bne $t6, $zero, 0xBFC3FBE0 */ uint32_t psx_brA_BFC3FB8C = cpu->gpr[14]; uint32_t psx_brB_BFC3FB8C = cpu->gpr[0]; - int psx_taken_BFC3FB8C = (psx_brA_BFC3FB8C != psx_brB_BFC3FB8C); + psx_taken_BFC3FB8C = (psx_brA_BFC3FB8C != psx_brB_BFC3FB8C); /* 0xBFC3FB90: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3FB8C) goto label_BFC3FBE0; @@ -204098,7 +209831,7 @@ label_BFC3FB94: psx_check_interrupts(cpu); /* 0xBFC3FB94: 1000002A beq $zero, $zero, 0xBFC3FC40 */ uint32_t psx_brA_BFC3FB94 = cpu->gpr[0]; uint32_t psx_brB_BFC3FB94 = cpu->gpr[0]; - int psx_taken_BFC3FB94 = (psx_brA_BFC3FB94 == psx_brB_BFC3FB94); + psx_taken_BFC3FB94 = (psx_brA_BFC3FB94 == psx_brB_BFC3FB94); /* 0xBFC3FB98: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FB94) goto label_BFC3FC40; @@ -204109,7 +209842,7 @@ label_BFC3FB9C: psx_check_interrupts(cpu); /* 0xBFC3FB9C: 10000028 beq $zero, $zero, 0xBFC3FC40 */ uint32_t psx_brA_BFC3FB9C = cpu->gpr[0]; uint32_t psx_brB_BFC3FB9C = cpu->gpr[0]; - int psx_taken_BFC3FB9C = (psx_brA_BFC3FB9C == psx_brB_BFC3FB9C); + psx_taken_BFC3FB9C = (psx_brA_BFC3FB9C == psx_brB_BFC3FB9C); /* 0xBFC3FBA0: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FB9C) goto label_BFC3FC40; @@ -204126,7 +209859,7 @@ label_BFC3FBA4: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC3FBB0: 1062FFF3 beq $v1, $v0, 0xBFC3FB80 */ uint32_t psx_brA_BFC3FBB0 = cpu->gpr[3]; uint32_t psx_brB_BFC3FBB0 = cpu->gpr[2]; - int psx_taken_BFC3FBB0 = (psx_brA_BFC3FBB0 == psx_brB_BFC3FBB0); + psx_taken_BFC3FBB0 = (psx_brA_BFC3FBB0 == psx_brB_BFC3FBB0); /* 0xBFC3FBB4: 24010004 addiu $at, $zero, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC3FBB0) goto label_BFC3FB80; @@ -204137,7 +209870,7 @@ label_BFC3FBB8: psx_check_interrupts(cpu); /* 0xBFC3FBB8: 1061FFF1 beq $v1, $at, 0xBFC3FB80 */ uint32_t psx_brA_BFC3FBB8 = cpu->gpr[3]; uint32_t psx_brB_BFC3FBB8 = cpu->gpr[1]; - int psx_taken_BFC3FBB8 = (psx_brA_BFC3FBB8 == psx_brB_BFC3FBB8); + psx_taken_BFC3FBB8 = (psx_brA_BFC3FBB8 == psx_brB_BFC3FBB8); /* 0xBFC3FBBC: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC3FBB8) goto label_BFC3FB80; @@ -204148,7 +209881,7 @@ label_BFC3FBC0: psx_check_interrupts(cpu); /* 0xBFC3FBC0: 1061FFEF beq $v1, $at, 0xBFC3FB80 */ uint32_t psx_brA_BFC3FBC0 = cpu->gpr[3]; uint32_t psx_brB_BFC3FBC0 = cpu->gpr[1]; - int psx_taken_BFC3FBC0 = (psx_brA_BFC3FBC0 == psx_brB_BFC3FBC0); + psx_taken_BFC3FBC0 = (psx_brA_BFC3FBC0 == psx_brB_BFC3FBC0); /* 0xBFC3FBC4: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3FBC0) goto label_BFC3FB80; @@ -204159,7 +209892,7 @@ label_BFC3FBC8: psx_check_interrupts(cpu); /* 0xBFC3FBC8: 1061FFED beq $v1, $at, 0xBFC3FB80 */ uint32_t psx_brA_BFC3FBC8 = cpu->gpr[3]; uint32_t psx_brB_BFC3FBC8 = cpu->gpr[1]; - int psx_taken_BFC3FBC8 = (psx_brA_BFC3FBC8 == psx_brB_BFC3FBC8); + psx_taken_BFC3FBC8 = (psx_brA_BFC3FBC8 == psx_brB_BFC3FBC8); /* 0xBFC3FBCC: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC3FBC8) goto label_BFC3FB80; @@ -204170,7 +209903,7 @@ label_BFC3FBD0: psx_check_interrupts(cpu); /* 0xBFC3FBD0: 1061FFEB beq $v1, $at, 0xBFC3FB80 */ uint32_t psx_brA_BFC3FBD0 = cpu->gpr[3]; uint32_t psx_brB_BFC3FBD0 = cpu->gpr[1]; - int psx_taken_BFC3FBD0 = (psx_brA_BFC3FBD0 == psx_brB_BFC3FBD0); + psx_taken_BFC3FBD0 = (psx_brA_BFC3FBD0 == psx_brB_BFC3FBD0); /* 0xBFC3FBD4: 3401FFFF ori $at, $zero, 0xFFFF */ cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC3FBD0) goto label_BFC3FB80; @@ -204181,7 +209914,7 @@ label_BFC3FBD8: psx_check_interrupts(cpu); /* 0xBFC3FBD8: 1461FFF0 bne $v1, $at, 0xBFC3FB9C */ uint32_t psx_brA_BFC3FBD8 = cpu->gpr[3]; uint32_t psx_brB_BFC3FBD8 = cpu->gpr[1]; - int psx_taken_BFC3FBD8 = (psx_brA_BFC3FBD8 != psx_brB_BFC3FBD8); + psx_taken_BFC3FBD8 = (psx_brA_BFC3FBD8 != psx_brB_BFC3FBD8); /* 0xBFC3FBDC: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3FBD8) goto label_BFC3FB9C; @@ -204192,7 +209925,7 @@ label_BFC3FBE0: psx_check_interrupts(cpu); /* 0xBFC3FBE0: 10610008 beq $v1, $at, 0xBFC3FC04 */ uint32_t psx_brA_BFC3FBE0 = cpu->gpr[3]; uint32_t psx_brB_BFC3FBE0 = cpu->gpr[1]; - int psx_taken_BFC3FBE0 = (psx_brA_BFC3FBE0 == psx_brB_BFC3FBE0); + psx_taken_BFC3FBE0 = (psx_brA_BFC3FBE0 == psx_brB_BFC3FBE0); /* 0xBFC3FBE4: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC3FBE0) goto label_BFC3FC04; @@ -204203,7 +209936,7 @@ label_BFC3FBE8: psx_check_interrupts(cpu); /* 0xBFC3FBE8: 10610006 beq $v1, $at, 0xBFC3FC04 */ uint32_t psx_brA_BFC3FBE8 = cpu->gpr[3]; uint32_t psx_brB_BFC3FBE8 = cpu->gpr[1]; - int psx_taken_BFC3FBE8 = (psx_brA_BFC3FBE8 == psx_brB_BFC3FBE8); + psx_taken_BFC3FBE8 = (psx_brA_BFC3FBE8 == psx_brB_BFC3FBE8); /* 0xBFC3FBEC: 00000000 nop */ /* nop */ if (psx_taken_BFC3FBE8) goto label_BFC3FC04; @@ -204214,7 +209947,7 @@ label_BFC3FBF0: psx_check_interrupts(cpu); /* 0xBFC3FBF0: 10620004 beq $v1, $v0, 0xBFC3FC04 */ uint32_t psx_brA_BFC3FBF0 = cpu->gpr[3]; uint32_t psx_brB_BFC3FBF0 = cpu->gpr[2]; - int psx_taken_BFC3FBF0 = (psx_brA_BFC3FBF0 == psx_brB_BFC3FBF0); + psx_taken_BFC3FBF0 = (psx_brA_BFC3FBF0 == psx_brB_BFC3FBF0); /* 0xBFC3FBF4: 24010004 addiu $at, $zero, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC3FBF0) goto label_BFC3FC04; @@ -204225,7 +209958,7 @@ label_BFC3FBF8: psx_check_interrupts(cpu); /* 0xBFC3FBF8: 10610002 beq $v1, $at, 0xBFC3FC04 */ uint32_t psx_brA_BFC3FBF8 = cpu->gpr[3]; uint32_t psx_brB_BFC3FBF8 = cpu->gpr[1]; - int psx_taken_BFC3FBF8 = (psx_brA_BFC3FBF8 == psx_brB_BFC3FBF8); + psx_taken_BFC3FBF8 = (psx_brA_BFC3FBF8 == psx_brB_BFC3FBF8); /* 0xBFC3FBFC: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC3FBF8) goto label_BFC3FC04; @@ -204236,7 +209969,7 @@ label_BFC3FC00: psx_check_interrupts(cpu); /* 0xBFC3FC00: 14610002 bne $v1, $at, 0xBFC3FC0C */ uint32_t psx_brA_BFC3FC00 = cpu->gpr[3]; uint32_t psx_brB_BFC3FC00 = cpu->gpr[1]; - int psx_taken_BFC3FC00 = (psx_brA_BFC3FC00 != psx_brB_BFC3FC00); + psx_taken_BFC3FC00 = (psx_brA_BFC3FC00 != psx_brB_BFC3FC00); label_BFC3FC04: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -204314,6 +210047,17 @@ void func_1FC3FC50(CPUState* cpu) { default: break; } } + int psx_taken_BFC3FC54 = 0; + int psx_taken_BFC3FC68 = 0; + int psx_taken_BFC3FC70 = 0; + int psx_taken_BFC3FC78 = 0; + int psx_taken_BFC3FC8C = 0; + int psx_taken_BFC3FC94 = 0; + int psx_taken_BFC3FC9C = 0; + int psx_taken_BFC3FCA4 = 0; + int psx_taken_BFC3FCAC = 0; + int psx_taken_BFC3FCB4 = 0; + int psx_taken_BFC3FCBC = 0; label_BFC3FC50: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -204323,7 +210067,7 @@ label_BFC3FC50: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC3FC54: 1000000A beq $zero, $zero, 0xBFC3FC80 */ uint32_t psx_brA_BFC3FC54 = cpu->gpr[0]; uint32_t psx_brB_BFC3FC54 = cpu->gpr[0]; - int psx_taken_BFC3FC54 = (psx_brA_BFC3FC54 == psx_brB_BFC3FC54); + psx_taken_BFC3FC54 = (psx_brA_BFC3FC54 == psx_brB_BFC3FC54); /* 0xBFC3FC58: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3FC58u); return; } g_debug_last_store_pc = 0xBFC3FC58u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3FC54) goto label_BFC3FC80; @@ -204340,7 +210084,7 @@ label_BFC3FC5C: /* nop */ /* 0xBFC3FC68: 15C00010 bne $t6, $zero, 0xBFC3FCAC */ uint32_t psx_brA_BFC3FC68 = cpu->gpr[14]; uint32_t psx_brB_BFC3FC68 = cpu->gpr[0]; - int psx_taken_BFC3FC68 = (psx_brA_BFC3FC68 != psx_brB_BFC3FC68); + psx_taken_BFC3FC68 = (psx_brA_BFC3FC68 != psx_brB_BFC3FC68); /* 0xBFC3FC6C: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3FC68) goto label_BFC3FCAC; @@ -204351,7 +210095,7 @@ label_BFC3FC70: psx_check_interrupts(cpu); /* 0xBFC3FC70: 10000022 beq $zero, $zero, 0xBFC3FCFC */ uint32_t psx_brA_BFC3FC70 = cpu->gpr[0]; uint32_t psx_brB_BFC3FC70 = cpu->gpr[0]; - int psx_taken_BFC3FC70 = (psx_brA_BFC3FC70 == psx_brB_BFC3FC70); + psx_taken_BFC3FC70 = (psx_brA_BFC3FC70 == psx_brB_BFC3FC70); /* 0xBFC3FC74: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FC70) goto label_BFC3FCFC; @@ -204362,7 +210106,7 @@ label_BFC3FC78: psx_check_interrupts(cpu); /* 0xBFC3FC78: 10000020 beq $zero, $zero, 0xBFC3FCFC */ uint32_t psx_brA_BFC3FC78 = cpu->gpr[0]; uint32_t psx_brB_BFC3FC78 = cpu->gpr[0]; - int psx_taken_BFC3FC78 = (psx_brA_BFC3FC78 == psx_brB_BFC3FC78); + psx_taken_BFC3FC78 = (psx_brA_BFC3FC78 == psx_brB_BFC3FC78); /* 0xBFC3FC7C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FC78) goto label_BFC3FCFC; @@ -204379,7 +210123,7 @@ label_BFC3FC80: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC3FC8C: 1062FFF3 beq $v1, $v0, 0xBFC3FC5C */ uint32_t psx_brA_BFC3FC8C = cpu->gpr[3]; uint32_t psx_brB_BFC3FC8C = cpu->gpr[2]; - int psx_taken_BFC3FC8C = (psx_brA_BFC3FC8C == psx_brB_BFC3FC8C); + psx_taken_BFC3FC8C = (psx_brA_BFC3FC8C == psx_brB_BFC3FC8C); /* 0xBFC3FC90: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3FC8C) goto label_BFC3FC5C; @@ -204390,7 +210134,7 @@ label_BFC3FC94: psx_check_interrupts(cpu); /* 0xBFC3FC94: 1061FFF1 beq $v1, $at, 0xBFC3FC5C */ uint32_t psx_brA_BFC3FC94 = cpu->gpr[3]; uint32_t psx_brB_BFC3FC94 = cpu->gpr[1]; - int psx_taken_BFC3FC94 = (psx_brA_BFC3FC94 == psx_brB_BFC3FC94); + psx_taken_BFC3FC94 = (psx_brA_BFC3FC94 == psx_brB_BFC3FC94); /* 0xBFC3FC98: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC3FC94) goto label_BFC3FC5C; @@ -204401,7 +210145,7 @@ label_BFC3FC9C: psx_check_interrupts(cpu); /* 0xBFC3FC9C: 1061FFEF beq $v1, $at, 0xBFC3FC5C */ uint32_t psx_brA_BFC3FC9C = cpu->gpr[3]; uint32_t psx_brB_BFC3FC9C = cpu->gpr[1]; - int psx_taken_BFC3FC9C = (psx_brA_BFC3FC9C == psx_brB_BFC3FC9C); + psx_taken_BFC3FC9C = (psx_brA_BFC3FC9C == psx_brB_BFC3FC9C); /* 0xBFC3FCA0: 3401FFFF ori $at, $zero, 0xFFFF */ cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC3FC9C) goto label_BFC3FC5C; @@ -204412,7 +210156,7 @@ label_BFC3FCA4: psx_check_interrupts(cpu); /* 0xBFC3FCA4: 1461FFF4 bne $v1, $at, 0xBFC3FC78 */ uint32_t psx_brA_BFC3FCA4 = cpu->gpr[3]; uint32_t psx_brB_BFC3FCA4 = cpu->gpr[1]; - int psx_taken_BFC3FCA4 = (psx_brA_BFC3FCA4 != psx_brB_BFC3FCA4); + psx_taken_BFC3FCA4 = (psx_brA_BFC3FCA4 != psx_brB_BFC3FCA4); /* 0xBFC3FCA8: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3FCA4) goto label_BFC3FC78; @@ -204423,7 +210167,7 @@ label_BFC3FCAC: psx_check_interrupts(cpu); /* 0xBFC3FCAC: 10610004 beq $v1, $at, 0xBFC3FCC0 */ uint32_t psx_brA_BFC3FCAC = cpu->gpr[3]; uint32_t psx_brB_BFC3FCAC = cpu->gpr[1]; - int psx_taken_BFC3FCAC = (psx_brA_BFC3FCAC == psx_brB_BFC3FCAC); + psx_taken_BFC3FCAC = (psx_brA_BFC3FCAC == psx_brB_BFC3FCAC); /* 0xBFC3FCB0: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC3FCAC) goto label_BFC3FCC0; @@ -204434,7 +210178,7 @@ label_BFC3FCB4: psx_check_interrupts(cpu); /* 0xBFC3FCB4: 10610002 beq $v1, $at, 0xBFC3FCC0 */ uint32_t psx_brA_BFC3FCB4 = cpu->gpr[3]; uint32_t psx_brB_BFC3FCB4 = cpu->gpr[1]; - int psx_taken_BFC3FCB4 = (psx_brA_BFC3FCB4 == psx_brB_BFC3FCB4); + psx_taken_BFC3FCB4 = (psx_brA_BFC3FCB4 == psx_brB_BFC3FCB4); /* 0xBFC3FCB8: 00000000 nop */ /* nop */ if (psx_taken_BFC3FCB4) goto label_BFC3FCC0; @@ -204445,7 +210189,7 @@ label_BFC3FCBC: psx_check_interrupts(cpu); /* 0xBFC3FCBC: 14620002 bne $v1, $v0, 0xBFC3FCC8 */ uint32_t psx_brA_BFC3FCBC = cpu->gpr[3]; uint32_t psx_brB_BFC3FCBC = cpu->gpr[2]; - int psx_taken_BFC3FCBC = (psx_brA_BFC3FCBC != psx_brB_BFC3FCBC); + psx_taken_BFC3FCBC = (psx_brA_BFC3FCBC != psx_brB_BFC3FCBC); label_BFC3FCC0: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -204523,6 +210267,17 @@ void func_1FC3FD0C(CPUState* cpu) { default: break; } } + int psx_taken_BFC3FD10 = 0; + int psx_taken_BFC3FD24 = 0; + int psx_taken_BFC3FD2C = 0; + int psx_taken_BFC3FD34 = 0; + int psx_taken_BFC3FD48 = 0; + int psx_taken_BFC3FD50 = 0; + int psx_taken_BFC3FD58 = 0; + int psx_taken_BFC3FD60 = 0; + int psx_taken_BFC3FD68 = 0; + int psx_taken_BFC3FD70 = 0; + int psx_taken_BFC3FD78 = 0; label_BFC3FD0C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -204532,7 +210287,7 @@ label_BFC3FD0C: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC3FD10: 1000000A beq $zero, $zero, 0xBFC3FD3C */ uint32_t psx_brA_BFC3FD10 = cpu->gpr[0]; uint32_t psx_brB_BFC3FD10 = cpu->gpr[0]; - int psx_taken_BFC3FD10 = (psx_brA_BFC3FD10 == psx_brB_BFC3FD10); + psx_taken_BFC3FD10 = (psx_brA_BFC3FD10 == psx_brB_BFC3FD10); /* 0xBFC3FD14: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3FD14u); return; } g_debug_last_store_pc = 0xBFC3FD14u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3FD10) goto label_BFC3FD3C; @@ -204549,7 +210304,7 @@ label_BFC3FD18: /* nop */ /* 0xBFC3FD24: 15C00010 bne $t6, $zero, 0xBFC3FD68 */ uint32_t psx_brA_BFC3FD24 = cpu->gpr[14]; uint32_t psx_brB_BFC3FD24 = cpu->gpr[0]; - int psx_taken_BFC3FD24 = (psx_brA_BFC3FD24 != psx_brB_BFC3FD24); + psx_taken_BFC3FD24 = (psx_brA_BFC3FD24 != psx_brB_BFC3FD24); /* 0xBFC3FD28: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3FD24) goto label_BFC3FD68; @@ -204560,7 +210315,7 @@ label_BFC3FD2C: psx_check_interrupts(cpu); /* 0xBFC3FD2C: 10000022 beq $zero, $zero, 0xBFC3FDB8 */ uint32_t psx_brA_BFC3FD2C = cpu->gpr[0]; uint32_t psx_brB_BFC3FD2C = cpu->gpr[0]; - int psx_taken_BFC3FD2C = (psx_brA_BFC3FD2C == psx_brB_BFC3FD2C); + psx_taken_BFC3FD2C = (psx_brA_BFC3FD2C == psx_brB_BFC3FD2C); /* 0xBFC3FD30: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FD2C) goto label_BFC3FDB8; @@ -204571,7 +210326,7 @@ label_BFC3FD34: psx_check_interrupts(cpu); /* 0xBFC3FD34: 10000020 beq $zero, $zero, 0xBFC3FDB8 */ uint32_t psx_brA_BFC3FD34 = cpu->gpr[0]; uint32_t psx_brB_BFC3FD34 = cpu->gpr[0]; - int psx_taken_BFC3FD34 = (psx_brA_BFC3FD34 == psx_brB_BFC3FD34); + psx_taken_BFC3FD34 = (psx_brA_BFC3FD34 == psx_brB_BFC3FD34); /* 0xBFC3FD38: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FD34) goto label_BFC3FDB8; @@ -204588,7 +210343,7 @@ label_BFC3FD3C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC3FD48: 1062FFF3 beq $v1, $v0, 0xBFC3FD18 */ uint32_t psx_brA_BFC3FD48 = cpu->gpr[3]; uint32_t psx_brB_BFC3FD48 = cpu->gpr[2]; - int psx_taken_BFC3FD48 = (psx_brA_BFC3FD48 == psx_brB_BFC3FD48); + psx_taken_BFC3FD48 = (psx_brA_BFC3FD48 == psx_brB_BFC3FD48); /* 0xBFC3FD4C: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3FD48) goto label_BFC3FD18; @@ -204599,7 +210354,7 @@ label_BFC3FD50: psx_check_interrupts(cpu); /* 0xBFC3FD50: 1061FFF1 beq $v1, $at, 0xBFC3FD18 */ uint32_t psx_brA_BFC3FD50 = cpu->gpr[3]; uint32_t psx_brB_BFC3FD50 = cpu->gpr[1]; - int psx_taken_BFC3FD50 = (psx_brA_BFC3FD50 == psx_brB_BFC3FD50); + psx_taken_BFC3FD50 = (psx_brA_BFC3FD50 == psx_brB_BFC3FD50); /* 0xBFC3FD54: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC3FD50) goto label_BFC3FD18; @@ -204610,7 +210365,7 @@ label_BFC3FD58: psx_check_interrupts(cpu); /* 0xBFC3FD58: 1061FFEF beq $v1, $at, 0xBFC3FD18 */ uint32_t psx_brA_BFC3FD58 = cpu->gpr[3]; uint32_t psx_brB_BFC3FD58 = cpu->gpr[1]; - int psx_taken_BFC3FD58 = (psx_brA_BFC3FD58 == psx_brB_BFC3FD58); + psx_taken_BFC3FD58 = (psx_brA_BFC3FD58 == psx_brB_BFC3FD58); /* 0xBFC3FD5C: 3401FFFF ori $at, $zero, 0xFFFF */ cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC3FD58) goto label_BFC3FD18; @@ -204621,7 +210376,7 @@ label_BFC3FD60: psx_check_interrupts(cpu); /* 0xBFC3FD60: 1461FFF4 bne $v1, $at, 0xBFC3FD34 */ uint32_t psx_brA_BFC3FD60 = cpu->gpr[3]; uint32_t psx_brB_BFC3FD60 = cpu->gpr[1]; - int psx_taken_BFC3FD60 = (psx_brA_BFC3FD60 != psx_brB_BFC3FD60); + psx_taken_BFC3FD60 = (psx_brA_BFC3FD60 != psx_brB_BFC3FD60); /* 0xBFC3FD64: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC3FD60) goto label_BFC3FD34; @@ -204632,7 +210387,7 @@ label_BFC3FD68: psx_check_interrupts(cpu); /* 0xBFC3FD68: 10610004 beq $v1, $at, 0xBFC3FD7C */ uint32_t psx_brA_BFC3FD68 = cpu->gpr[3]; uint32_t psx_brB_BFC3FD68 = cpu->gpr[1]; - int psx_taken_BFC3FD68 = (psx_brA_BFC3FD68 == psx_brB_BFC3FD68); + psx_taken_BFC3FD68 = (psx_brA_BFC3FD68 == psx_brB_BFC3FD68); /* 0xBFC3FD6C: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC3FD68) goto label_BFC3FD7C; @@ -204643,7 +210398,7 @@ label_BFC3FD70: psx_check_interrupts(cpu); /* 0xBFC3FD70: 10610002 beq $v1, $at, 0xBFC3FD7C */ uint32_t psx_brA_BFC3FD70 = cpu->gpr[3]; uint32_t psx_brB_BFC3FD70 = cpu->gpr[1]; - int psx_taken_BFC3FD70 = (psx_brA_BFC3FD70 == psx_brB_BFC3FD70); + psx_taken_BFC3FD70 = (psx_brA_BFC3FD70 == psx_brB_BFC3FD70); /* 0xBFC3FD74: 00000000 nop */ /* nop */ if (psx_taken_BFC3FD70) goto label_BFC3FD7C; @@ -204654,7 +210409,7 @@ label_BFC3FD78: psx_check_interrupts(cpu); /* 0xBFC3FD78: 14620002 bne $v1, $v0, 0xBFC3FD84 */ uint32_t psx_brA_BFC3FD78 = cpu->gpr[3]; uint32_t psx_brB_BFC3FD78 = cpu->gpr[2]; - int psx_taken_BFC3FD78 = (psx_brA_BFC3FD78 != psx_brB_BFC3FD78); + psx_taken_BFC3FD78 = (psx_brA_BFC3FD78 != psx_brB_BFC3FD78); label_BFC3FD7C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(1u); @@ -204732,6 +210487,8 @@ void func_1FC3FDC8(CPUState* cpu) { default: break; } } + int psx_taken_BFC3FDD8 = 0; + int psx_taken_BFC3FDE0 = 0; label_BFC3FDC8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -204747,7 +210504,7 @@ label_BFC3FDC8: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC3FDD8: 11C10003 beq $t6, $at, 0xBFC3FDE8 */ uint32_t psx_brA_BFC3FDD8 = cpu->gpr[14]; uint32_t psx_brB_BFC3FDD8 = cpu->gpr[1]; - int psx_taken_BFC3FDD8 = (psx_brA_BFC3FDD8 == psx_brB_BFC3FDD8); + psx_taken_BFC3FDD8 = (psx_brA_BFC3FDD8 == psx_brB_BFC3FDD8); /* 0xBFC3FDDC: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3FDDCu); return; } g_debug_last_store_pc = 0xBFC3FDDCu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC3FDD8) goto label_BFC3FDE8; @@ -204758,7 +210515,7 @@ label_BFC3FDE0: psx_check_interrupts(cpu); /* 0xBFC3FDE0: 1000001B beq $zero, $zero, 0xBFC3FE50 */ uint32_t psx_brA_BFC3FDE0 = cpu->gpr[0]; uint32_t psx_brB_BFC3FDE0 = cpu->gpr[0]; - int psx_taken_BFC3FDE0 = (psx_brA_BFC3FDE0 == psx_brB_BFC3FDE0); + psx_taken_BFC3FDE0 = (psx_brA_BFC3FDE0 == psx_brB_BFC3FDE0); /* 0xBFC3FDE4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FDE0) goto label_BFC3FE50; @@ -204850,6 +210607,11 @@ void func_1FC3FE60(CPUState* cpu) { default: break; } } + int psx_taken_BFC3FE74 = 0; + int psx_taken_BFC3FE7C = 0; + int psx_taken_BFC3FE9C = 0; + int psx_taken_BFC3FEA4 = 0; + int psx_taken_BFC3FEF4 = 0; label_BFC3FE60: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -204867,7 +210629,7 @@ label_BFC3FE60: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3FE70u); return; } g_debug_last_store_pc = 0xBFC3FE70u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC3FE74: 11C10003 beq $t6, $at, 0xBFC3FE84 */ uint32_t psx_brA_BFC3FE74 = cpu->gpr[14]; uint32_t psx_brB_BFC3FE74 = cpu->gpr[1]; - int psx_taken_BFC3FE74 = (psx_brA_BFC3FE74 == psx_brB_BFC3FE74); + psx_taken_BFC3FE74 = (psx_brA_BFC3FE74 == psx_brB_BFC3FE74); /* 0xBFC3FE78: 00802821 addu $a1, $a0, $zero */ cpu->gpr[5] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC3FE74) goto label_BFC3FE84; @@ -204878,7 +210640,7 @@ label_BFC3FE7C: psx_check_interrupts(cpu); /* 0xBFC3FE7C: 1000002C beq $zero, $zero, 0xBFC3FF30 */ uint32_t psx_brA_BFC3FE7C = cpu->gpr[0]; uint32_t psx_brB_BFC3FE7C = cpu->gpr[0]; - int psx_taken_BFC3FE7C = (psx_brA_BFC3FE7C == psx_brB_BFC3FE7C); + psx_taken_BFC3FE7C = (psx_brA_BFC3FE7C == psx_brB_BFC3FE7C); /* 0xBFC3FE80: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FE7C) goto label_BFC3FF30; @@ -204901,7 +210663,7 @@ label_BFC3FE84: cpu->gpr[24] = cpu->gpr[2] & 0x8u; /* 0xBFC3FE9C: 13010003 beq $t8, $at, 0xBFC3FEAC */ uint32_t psx_brA_BFC3FE9C = cpu->gpr[24]; uint32_t psx_brB_BFC3FE9C = cpu->gpr[1]; - int psx_taken_BFC3FE9C = (psx_brA_BFC3FE9C == psx_brB_BFC3FE9C); + psx_taken_BFC3FE9C = (psx_brA_BFC3FE9C == psx_brB_BFC3FE9C); /* 0xBFC3FEA0: 00000000 nop */ /* nop */ if (psx_taken_BFC3FE9C) goto label_BFC3FEAC; @@ -204912,7 +210674,7 @@ label_BFC3FEA4: psx_check_interrupts(cpu); /* 0xBFC3FEA4: 10000022 beq $zero, $zero, 0xBFC3FF30 */ uint32_t psx_brA_BFC3FEA4 = cpu->gpr[0]; uint32_t psx_brB_BFC3FEA4 = cpu->gpr[0]; - int psx_taken_BFC3FEA4 = (psx_brA_BFC3FEA4 == psx_brB_BFC3FEA4); + psx_taken_BFC3FEA4 = (psx_brA_BFC3FEA4 == psx_brB_BFC3FEA4); /* 0xBFC3FEA8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FEA4) goto label_BFC3FF30; @@ -204964,7 +210726,7 @@ label_BFC3FEC0: g_debug_last_store_pc = 0xBFC3FEF0u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (11)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC3FEF4: 1464FFF2 bne $v1, $a0, 0xBFC3FEC0 */ uint32_t psx_brA_BFC3FEF4 = cpu->gpr[3]; uint32_t psx_brB_BFC3FEF4 = cpu->gpr[4]; - int psx_taken_BFC3FEF4 = (psx_brA_BFC3FEF4 != psx_brB_BFC3FEF4); + psx_taken_BFC3FEF4 = (psx_brA_BFC3FEF4 != psx_brB_BFC3FEF4); /* 0xBFC3FEF8: 2442000C addiu $v0, $v0, 12 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (12)); if (psx_taken_BFC3FEF4) goto label_BFC3FEC0; @@ -205030,6 +210792,11 @@ void func_1FC3FF40(CPUState* cpu) { default: break; } } + int psx_taken_BFC3FF54 = 0; + int psx_taken_BFC3FF5C = 0; + int psx_taken_BFC3FF7C = 0; + int psx_taken_BFC3FF84 = 0; + int psx_taken_BFC3FFD4 = 0; label_BFC3FF40: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -205047,7 +210814,7 @@ label_BFC3FF40: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3FF50u); return; } g_debug_last_store_pc = 0xBFC3FF50u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC3FF54: 11C10003 beq $t6, $at, 0xBFC3FF64 */ uint32_t psx_brA_BFC3FF54 = cpu->gpr[14]; uint32_t psx_brB_BFC3FF54 = cpu->gpr[1]; - int psx_taken_BFC3FF54 = (psx_brA_BFC3FF54 == psx_brB_BFC3FF54); + psx_taken_BFC3FF54 = (psx_brA_BFC3FF54 == psx_brB_BFC3FF54); /* 0xBFC3FF58: AFA40020 sw $a0, 32($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (32)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC3FF58u); return; } g_debug_last_store_pc = 0xBFC3FF58u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC3FF54) goto label_BFC3FF64; @@ -205058,7 +210825,7 @@ label_BFC3FF5C: psx_check_interrupts(cpu); /* 0xBFC3FF5C: 10000031 beq $zero, $zero, 0xBFC40024 */ uint32_t psx_brA_BFC3FF5C = cpu->gpr[0]; uint32_t psx_brB_BFC3FF5C = cpu->gpr[0]; - int psx_taken_BFC3FF5C = (psx_brA_BFC3FF5C == psx_brB_BFC3FF5C); + psx_taken_BFC3FF5C = (psx_brA_BFC3FF5C == psx_brB_BFC3FF5C); /* 0xBFC3FF60: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FF5C) goto label_BFC40024; @@ -205081,7 +210848,7 @@ label_BFC3FF64: cpu->gpr[24] = cpu->gpr[2] & 0x8u; /* 0xBFC3FF7C: 13010003 beq $t8, $at, 0xBFC3FF8C */ uint32_t psx_brA_BFC3FF7C = cpu->gpr[24]; uint32_t psx_brB_BFC3FF7C = cpu->gpr[1]; - int psx_taken_BFC3FF7C = (psx_brA_BFC3FF7C == psx_brB_BFC3FF7C); + psx_taken_BFC3FF7C = (psx_brA_BFC3FF7C == psx_brB_BFC3FF7C); /* 0xBFC3FF80: 00000000 nop */ /* nop */ if (psx_taken_BFC3FF7C) goto label_BFC3FF8C; @@ -205092,7 +210859,7 @@ label_BFC3FF84: psx_check_interrupts(cpu); /* 0xBFC3FF84: 10000027 beq $zero, $zero, 0xBFC40024 */ uint32_t psx_brA_BFC3FF84 = cpu->gpr[0]; uint32_t psx_brB_BFC3FF84 = cpu->gpr[0]; - int psx_taken_BFC3FF84 = (psx_brA_BFC3FF84 == psx_brB_BFC3FF84); + psx_taken_BFC3FF84 = (psx_brA_BFC3FF84 == psx_brB_BFC3FF84); /* 0xBFC3FF88: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC3FF84) goto label_BFC40024; @@ -205144,7 +210911,7 @@ label_BFC3FFA0: g_debug_last_store_pc = 0xBFC3FFD0u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (11)), (uint8_t)(cpu->gpr[0] & 0xFFu)); /* 0xBFC3FFD4: 1464FFF2 bne $v1, $a0, 0xBFC3FFA0 */ uint32_t psx_brA_BFC3FFD4 = cpu->gpr[3]; uint32_t psx_brB_BFC3FFD4 = cpu->gpr[4]; - int psx_taken_BFC3FFD4 = (psx_brA_BFC3FFD4 != psx_brB_BFC3FFD4); + psx_taken_BFC3FFD4 = (psx_brA_BFC3FFD4 != psx_brB_BFC3FFD4); /* 0xBFC3FFD8: 2442000C addiu $v0, $v0, 12 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (12)); if (psx_taken_BFC3FFD4) goto label_BFC3FFA0; @@ -205220,6 +210987,15 @@ void func_1FC40034(CPUState* cpu) { default: break; } } + int psx_taken_BFC40038 = 0; + int psx_taken_BFC4004C = 0; + int psx_taken_BFC40054 = 0; + int psx_taken_BFC4005C = 0; + int psx_taken_BFC40070 = 0; + int psx_taken_BFC40078 = 0; + int psx_taken_BFC40080 = 0; + int psx_taken_BFC40088 = 0; + int psx_taken_BFC40090 = 0; label_BFC40034: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -205229,7 +211005,7 @@ label_BFC40034: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC40038: 1000000A beq $zero, $zero, 0xBFC40064 */ uint32_t psx_brA_BFC40038 = cpu->gpr[0]; uint32_t psx_brB_BFC40038 = cpu->gpr[0]; - int psx_taken_BFC40038 = (psx_brA_BFC40038 == psx_brB_BFC40038); + psx_taken_BFC40038 = (psx_brA_BFC40038 == psx_brB_BFC40038); /* 0xBFC4003C: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC4003Cu); return; } g_debug_last_store_pc = 0xBFC4003Cu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC40038) goto label_BFC40064; @@ -205246,7 +211022,7 @@ label_BFC40040: /* nop */ /* 0xBFC4004C: 15C00012 bne $t6, $zero, 0xBFC40098 */ uint32_t psx_brA_BFC4004C = cpu->gpr[14]; uint32_t psx_brB_BFC4004C = cpu->gpr[0]; - int psx_taken_BFC4004C = (psx_brA_BFC4004C != psx_brB_BFC4004C); + psx_taken_BFC4004C = (psx_brA_BFC4004C != psx_brB_BFC4004C); /* 0xBFC40050: 00000000 nop */ /* nop */ if (psx_taken_BFC4004C) goto label_BFC40098; @@ -205257,7 +211033,7 @@ label_BFC40054: psx_check_interrupts(cpu); /* 0xBFC40054: 1000001D beq $zero, $zero, 0xBFC400CC */ uint32_t psx_brA_BFC40054 = cpu->gpr[0]; uint32_t psx_brB_BFC40054 = cpu->gpr[0]; - int psx_taken_BFC40054 = (psx_brA_BFC40054 == psx_brB_BFC40054); + psx_taken_BFC40054 = (psx_brA_BFC40054 == psx_brB_BFC40054); /* 0xBFC40058: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC40054) goto label_BFC400CC; @@ -205268,7 +211044,7 @@ label_BFC4005C: psx_check_interrupts(cpu); /* 0xBFC4005C: 1000001B beq $zero, $zero, 0xBFC400CC */ uint32_t psx_brA_BFC4005C = cpu->gpr[0]; uint32_t psx_brB_BFC4005C = cpu->gpr[0]; - int psx_taken_BFC4005C = (psx_brA_BFC4005C == psx_brB_BFC4005C); + psx_taken_BFC4005C = (psx_brA_BFC4005C == psx_brB_BFC4005C); /* 0xBFC40060: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC4005C) goto label_BFC400CC; @@ -205285,7 +211061,7 @@ label_BFC40064: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC40070: 1061FFF3 beq $v1, $at, 0xBFC40040 */ uint32_t psx_brA_BFC40070 = cpu->gpr[3]; uint32_t psx_brB_BFC40070 = cpu->gpr[1]; - int psx_taken_BFC40070 = (psx_brA_BFC40070 == psx_brB_BFC40070); + psx_taken_BFC40070 = (psx_brA_BFC40070 == psx_brB_BFC40070); /* 0xBFC40074: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC40070) goto label_BFC40040; @@ -205296,7 +211072,7 @@ label_BFC40078: psx_check_interrupts(cpu); /* 0xBFC40078: 1061FFF1 beq $v1, $at, 0xBFC40040 */ uint32_t psx_brA_BFC40078 = cpu->gpr[3]; uint32_t psx_brB_BFC40078 = cpu->gpr[1]; - int psx_taken_BFC40078 = (psx_brA_BFC40078 == psx_brB_BFC40078); + psx_taken_BFC40078 = (psx_brA_BFC40078 == psx_brB_BFC40078); /* 0xBFC4007C: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC40078) goto label_BFC40040; @@ -205307,7 +211083,7 @@ label_BFC40080: psx_check_interrupts(cpu); /* 0xBFC40080: 1061FFEF beq $v1, $at, 0xBFC40040 */ uint32_t psx_brA_BFC40080 = cpu->gpr[3]; uint32_t psx_brB_BFC40080 = cpu->gpr[1]; - int psx_taken_BFC40080 = (psx_brA_BFC40080 == psx_brB_BFC40080); + psx_taken_BFC40080 = (psx_brA_BFC40080 == psx_brB_BFC40080); /* 0xBFC40084: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC40080) goto label_BFC40040; @@ -205318,7 +211094,7 @@ label_BFC40088: psx_check_interrupts(cpu); /* 0xBFC40088: 1061FFED beq $v1, $at, 0xBFC40040 */ uint32_t psx_brA_BFC40088 = cpu->gpr[3]; uint32_t psx_brB_BFC40088 = cpu->gpr[1]; - int psx_taken_BFC40088 = (psx_brA_BFC40088 == psx_brB_BFC40088); + psx_taken_BFC40088 = (psx_brA_BFC40088 == psx_brB_BFC40088); /* 0xBFC4008C: 3401FFFF ori $at, $zero, 0xFFFF */ cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC40088) goto label_BFC40040; @@ -205329,7 +211105,7 @@ label_BFC40090: psx_check_interrupts(cpu); /* 0xBFC40090: 1461FFF2 bne $v1, $at, 0xBFC4005C */ uint32_t psx_brA_BFC40090 = cpu->gpr[3]; uint32_t psx_brB_BFC40090 = cpu->gpr[1]; - int psx_taken_BFC40090 = (psx_brA_BFC40090 != psx_brB_BFC40090); + psx_taken_BFC40090 = (psx_brA_BFC40090 != psx_brB_BFC40090); /* 0xBFC40094: 00000000 nop */ /* nop */ if (psx_taken_BFC40090) goto label_BFC4005C; @@ -205395,6 +211171,15 @@ void func_1FC400DC(CPUState* cpu) { default: break; } } + int psx_taken_BFC400E0 = 0; + int psx_taken_BFC400F4 = 0; + int psx_taken_BFC400FC = 0; + int psx_taken_BFC40104 = 0; + int psx_taken_BFC40118 = 0; + int psx_taken_BFC40120 = 0; + int psx_taken_BFC40128 = 0; + int psx_taken_BFC40130 = 0; + int psx_taken_BFC40138 = 0; label_BFC400DC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -205404,7 +211189,7 @@ label_BFC400DC: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC400E0: 1000000A beq $zero, $zero, 0xBFC4010C */ uint32_t psx_brA_BFC400E0 = cpu->gpr[0]; uint32_t psx_brB_BFC400E0 = cpu->gpr[0]; - int psx_taken_BFC400E0 = (psx_brA_BFC400E0 == psx_brB_BFC400E0); + psx_taken_BFC400E0 = (psx_brA_BFC400E0 == psx_brB_BFC400E0); /* 0xBFC400E4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC400E4u); return; } g_debug_last_store_pc = 0xBFC400E4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC400E0) goto label_BFC4010C; @@ -205421,7 +211206,7 @@ label_BFC400E8: /* nop */ /* 0xBFC400F4: 15C00012 bne $t6, $zero, 0xBFC40140 */ uint32_t psx_brA_BFC400F4 = cpu->gpr[14]; uint32_t psx_brB_BFC400F4 = cpu->gpr[0]; - int psx_taken_BFC400F4 = (psx_brA_BFC400F4 != psx_brB_BFC400F4); + psx_taken_BFC400F4 = (psx_brA_BFC400F4 != psx_brB_BFC400F4); /* 0xBFC400F8: 00000000 nop */ /* nop */ if (psx_taken_BFC400F4) goto label_BFC40140; @@ -205432,7 +211217,7 @@ label_BFC400FC: psx_check_interrupts(cpu); /* 0xBFC400FC: 1000001D beq $zero, $zero, 0xBFC40174 */ uint32_t psx_brA_BFC400FC = cpu->gpr[0]; uint32_t psx_brB_BFC400FC = cpu->gpr[0]; - int psx_taken_BFC400FC = (psx_brA_BFC400FC == psx_brB_BFC400FC); + psx_taken_BFC400FC = (psx_brA_BFC400FC == psx_brB_BFC400FC); /* 0xBFC40100: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC400FC) goto label_BFC40174; @@ -205443,7 +211228,7 @@ label_BFC40104: psx_check_interrupts(cpu); /* 0xBFC40104: 1000001B beq $zero, $zero, 0xBFC40174 */ uint32_t psx_brA_BFC40104 = cpu->gpr[0]; uint32_t psx_brB_BFC40104 = cpu->gpr[0]; - int psx_taken_BFC40104 = (psx_brA_BFC40104 == psx_brB_BFC40104); + psx_taken_BFC40104 = (psx_brA_BFC40104 == psx_brB_BFC40104); /* 0xBFC40108: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC40104) goto label_BFC40174; @@ -205460,7 +211245,7 @@ label_BFC4010C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC40118: 1061FFF3 beq $v1, $at, 0xBFC400E8 */ uint32_t psx_brA_BFC40118 = cpu->gpr[3]; uint32_t psx_brB_BFC40118 = cpu->gpr[1]; - int psx_taken_BFC40118 = (psx_brA_BFC40118 == psx_brB_BFC40118); + psx_taken_BFC40118 = (psx_brA_BFC40118 == psx_brB_BFC40118); /* 0xBFC4011C: 24010004 addiu $at, $zero, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC40118) goto label_BFC400E8; @@ -205471,7 +211256,7 @@ label_BFC40120: psx_check_interrupts(cpu); /* 0xBFC40120: 1061FFF1 beq $v1, $at, 0xBFC400E8 */ uint32_t psx_brA_BFC40120 = cpu->gpr[3]; uint32_t psx_brB_BFC40120 = cpu->gpr[1]; - int psx_taken_BFC40120 = (psx_brA_BFC40120 == psx_brB_BFC40120); + psx_taken_BFC40120 = (psx_brA_BFC40120 == psx_brB_BFC40120); /* 0xBFC40124: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC40120) goto label_BFC400E8; @@ -205482,7 +211267,7 @@ label_BFC40128: psx_check_interrupts(cpu); /* 0xBFC40128: 1061FFEF beq $v1, $at, 0xBFC400E8 */ uint32_t psx_brA_BFC40128 = cpu->gpr[3]; uint32_t psx_brB_BFC40128 = cpu->gpr[1]; - int psx_taken_BFC40128 = (psx_brA_BFC40128 == psx_brB_BFC40128); + psx_taken_BFC40128 = (psx_brA_BFC40128 == psx_brB_BFC40128); /* 0xBFC4012C: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC40128) goto label_BFC400E8; @@ -205493,7 +211278,7 @@ label_BFC40130: psx_check_interrupts(cpu); /* 0xBFC40130: 1061FFED beq $v1, $at, 0xBFC400E8 */ uint32_t psx_brA_BFC40130 = cpu->gpr[3]; uint32_t psx_brB_BFC40130 = cpu->gpr[1]; - int psx_taken_BFC40130 = (psx_brA_BFC40130 == psx_brB_BFC40130); + psx_taken_BFC40130 = (psx_brA_BFC40130 == psx_brB_BFC40130); /* 0xBFC40134: 3401FFFF ori $at, $zero, 0xFFFF */ cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC40130) goto label_BFC400E8; @@ -205504,7 +211289,7 @@ label_BFC40138: psx_check_interrupts(cpu); /* 0xBFC40138: 1461FFF2 bne $v1, $at, 0xBFC40104 */ uint32_t psx_brA_BFC40138 = cpu->gpr[3]; uint32_t psx_brB_BFC40138 = cpu->gpr[1]; - int psx_taken_BFC40138 = (psx_brA_BFC40138 != psx_brB_BFC40138); + psx_taken_BFC40138 = (psx_brA_BFC40138 != psx_brB_BFC40138); /* 0xBFC4013C: 00000000 nop */ /* nop */ if (psx_taken_BFC40138) goto label_BFC40104; @@ -205570,6 +211355,18 @@ void func_1FC40184(CPUState* cpu) { default: break; } } + int psx_taken_BFC4018C = 0; + int psx_taken_BFC401A0 = 0; + int psx_taken_BFC401A8 = 0; + int psx_taken_BFC401B0 = 0; + int psx_taken_BFC401C4 = 0; + int psx_taken_BFC401CC = 0; + int psx_taken_BFC401D4 = 0; + int psx_taken_BFC401DC = 0; + int psx_taken_BFC401E4 = 0; + int psx_taken_BFC401EC = 0; + int psx_taken_BFC40208 = 0; + int psx_taken_BFC40218 = 0; label_BFC40184: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -205581,7 +211378,7 @@ label_BFC40184: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40188u); return; } g_debug_last_store_pc = 0xBFC40188u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC4018C: 1000000A beq $zero, $zero, 0xBFC401B8 */ uint32_t psx_brA_BFC4018C = cpu->gpr[0]; uint32_t psx_brB_BFC4018C = cpu->gpr[0]; - int psx_taken_BFC4018C = (psx_brA_BFC4018C == psx_brB_BFC4018C); + psx_taken_BFC4018C = (psx_brA_BFC4018C == psx_brB_BFC4018C); /* 0xBFC40190: 308400FF andi $a0, $a0, 0xFF */ cpu->gpr[4] = cpu->gpr[4] & 0xFFu; if (psx_taken_BFC4018C) goto label_BFC401B8; @@ -205598,7 +211395,7 @@ label_BFC40194: /* nop */ /* 0xBFC401A0: 15C00014 bne $t6, $zero, 0xBFC401F4 */ uint32_t psx_brA_BFC401A0 = cpu->gpr[14]; uint32_t psx_brB_BFC401A0 = cpu->gpr[0]; - int psx_taken_BFC401A0 = (psx_brA_BFC401A0 != psx_brB_BFC401A0); + psx_taken_BFC401A0 = (psx_brA_BFC401A0 != psx_brB_BFC401A0); /* 0xBFC401A4: 00000000 nop */ /* nop */ if (psx_taken_BFC401A0) goto label_BFC401F4; @@ -205609,7 +211406,7 @@ label_BFC401A8: psx_check_interrupts(cpu); /* 0xBFC401A8: 10000029 beq $zero, $zero, 0xBFC40250 */ uint32_t psx_brA_BFC401A8 = cpu->gpr[0]; uint32_t psx_brB_BFC401A8 = cpu->gpr[0]; - int psx_taken_BFC401A8 = (psx_brA_BFC401A8 == psx_brB_BFC401A8); + psx_taken_BFC401A8 = (psx_brA_BFC401A8 == psx_brB_BFC401A8); /* 0xBFC401AC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC401A8) goto label_BFC40250; @@ -205620,7 +211417,7 @@ label_BFC401B0: psx_check_interrupts(cpu); /* 0xBFC401B0: 10000027 beq $zero, $zero, 0xBFC40250 */ uint32_t psx_brA_BFC401B0 = cpu->gpr[0]; uint32_t psx_brB_BFC401B0 = cpu->gpr[0]; - int psx_taken_BFC401B0 = (psx_brA_BFC401B0 == psx_brB_BFC401B0); + psx_taken_BFC401B0 = (psx_brA_BFC401B0 == psx_brB_BFC401B0); /* 0xBFC401B4: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC401B0) goto label_BFC40250; @@ -205637,7 +211434,7 @@ label_BFC401B8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC401C4: 1061000B beq $v1, $at, 0xBFC401F4 */ uint32_t psx_brA_BFC401C4 = cpu->gpr[3]; uint32_t psx_brB_BFC401C4 = cpu->gpr[1]; - int psx_taken_BFC401C4 = (psx_brA_BFC401C4 == psx_brB_BFC401C4); + psx_taken_BFC401C4 = (psx_brA_BFC401C4 == psx_brB_BFC401C4); /* 0xBFC401C8: 24010004 addiu $at, $zero, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC401C4) goto label_BFC401F4; @@ -205648,7 +211445,7 @@ label_BFC401CC: psx_check_interrupts(cpu); /* 0xBFC401CC: 1061FFF1 beq $v1, $at, 0xBFC40194 */ uint32_t psx_brA_BFC401CC = cpu->gpr[3]; uint32_t psx_brB_BFC401CC = cpu->gpr[1]; - int psx_taken_BFC401CC = (psx_brA_BFC401CC == psx_brB_BFC401CC); + psx_taken_BFC401CC = (psx_brA_BFC401CC == psx_brB_BFC401CC); /* 0xBFC401D0: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC401CC) goto label_BFC40194; @@ -205659,7 +211456,7 @@ label_BFC401D4: psx_check_interrupts(cpu); /* 0xBFC401D4: 1061FFEF beq $v1, $at, 0xBFC40194 */ uint32_t psx_brA_BFC401D4 = cpu->gpr[3]; uint32_t psx_brB_BFC401D4 = cpu->gpr[1]; - int psx_taken_BFC401D4 = (psx_brA_BFC401D4 == psx_brB_BFC401D4); + psx_taken_BFC401D4 = (psx_brA_BFC401D4 == psx_brB_BFC401D4); /* 0xBFC401D8: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC401D4) goto label_BFC40194; @@ -205670,7 +211467,7 @@ label_BFC401DC: psx_check_interrupts(cpu); /* 0xBFC401DC: 1061FFED beq $v1, $at, 0xBFC40194 */ uint32_t psx_brA_BFC401DC = cpu->gpr[3]; uint32_t psx_brB_BFC401DC = cpu->gpr[1]; - int psx_taken_BFC401DC = (psx_brA_BFC401DC == psx_brB_BFC401DC); + psx_taken_BFC401DC = (psx_brA_BFC401DC == psx_brB_BFC401DC); /* 0xBFC401E0: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC401DC) goto label_BFC40194; @@ -205681,7 +211478,7 @@ label_BFC401E4: psx_check_interrupts(cpu); /* 0xBFC401E4: 1061FFEB beq $v1, $at, 0xBFC40194 */ uint32_t psx_brA_BFC401E4 = cpu->gpr[3]; uint32_t psx_brB_BFC401E4 = cpu->gpr[1]; - int psx_taken_BFC401E4 = (psx_brA_BFC401E4 == psx_brB_BFC401E4); + psx_taken_BFC401E4 = (psx_brA_BFC401E4 == psx_brB_BFC401E4); /* 0xBFC401E8: 3401FFFF ori $at, $zero, 0xFFFF */ cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC401E4) goto label_BFC40194; @@ -205692,7 +211489,7 @@ label_BFC401EC: psx_check_interrupts(cpu); /* 0xBFC401EC: 1461FFF0 bne $v1, $at, 0xBFC401B0 */ uint32_t psx_brA_BFC401EC = cpu->gpr[3]; uint32_t psx_brB_BFC401EC = cpu->gpr[1]; - int psx_taken_BFC401EC = (psx_brA_BFC401EC != psx_brB_BFC401EC); + psx_taken_BFC401EC = (psx_brA_BFC401EC != psx_brB_BFC401EC); /* 0xBFC401F0: 00000000 nop */ /* nop */ if (psx_taken_BFC401EC) goto label_BFC401B0; @@ -205719,7 +211516,7 @@ label_BFC401FC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[15] + (-25560)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40204u); return; } cpu->gpr[15] = cpu->read_word(psx_addr); } /* 0xBFC40208: 10800005 beq $a0, $zero, 0xBFC40220 */ uint32_t psx_brA_BFC40208 = cpu->gpr[4]; uint32_t psx_brB_BFC40208 = cpu->gpr[0]; - int psx_taken_BFC40208 = (psx_brA_BFC40208 == psx_brB_BFC40208); + psx_taken_BFC40208 = (psx_brA_BFC40208 == psx_brB_BFC40208); /* 0xBFC4020C: A1E00000 sb $zero, 0($t7) */ g_debug_last_store_pc = 0xBFC4020Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[15] + (0)), (uint8_t)(cpu->gpr[0] & 0xFFu)); if (psx_taken_BFC40208) goto label_BFC40220; @@ -205734,7 +211531,7 @@ label_BFC40210: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[24] + (-25552)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40214u); return; } cpu->gpr[24] = cpu->read_word(psx_addr); } /* 0xBFC40218: 10000005 beq $zero, $zero, 0xBFC40230 */ uint32_t psx_brA_BFC40218 = cpu->gpr[0]; uint32_t psx_brB_BFC40218 = cpu->gpr[0]; - int psx_taken_BFC40218 = (psx_brA_BFC40218 == psx_brB_BFC40218); + psx_taken_BFC40218 = (psx_brA_BFC40218 == psx_brB_BFC40218); /* 0xBFC4021C: A3040000 sb $a0, 0($t8) */ g_debug_last_store_pc = 0xBFC4021Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[24] + (0)), (uint8_t)(cpu->gpr[4] & 0xFFu)); if (psx_taken_BFC40218) goto label_BFC40230; @@ -205797,6 +211594,9 @@ void func_1FC40260(CPUState* cpu) { default: break; } } + int psx_taken_BFC40270 = 0; + int psx_taken_BFC4027C = 0; + int psx_taken_BFC40284 = 0; label_BFC40260: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -205812,7 +211612,7 @@ label_BFC40260: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC40270: 10610006 beq $v1, $at, 0xBFC4028C */ uint32_t psx_brA_BFC40270 = cpu->gpr[3]; uint32_t psx_brB_BFC40270 = cpu->gpr[1]; - int psx_taken_BFC40270 = (psx_brA_BFC40270 == psx_brB_BFC40270); + psx_taken_BFC40270 = (psx_brA_BFC40270 == psx_brB_BFC40270); /* 0xBFC40274: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40274u); return; } g_debug_last_store_pc = 0xBFC40274u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC40270) goto label_BFC4028C; @@ -205825,7 +211625,7 @@ label_BFC40278: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC4027C: 10610003 beq $v1, $at, 0xBFC4028C */ uint32_t psx_brA_BFC4027C = cpu->gpr[3]; uint32_t psx_brB_BFC4027C = cpu->gpr[1]; - int psx_taken_BFC4027C = (psx_brA_BFC4027C == psx_brB_BFC4027C); + psx_taken_BFC4027C = (psx_brA_BFC4027C == psx_brB_BFC4027C); /* 0xBFC40280: 00000000 nop */ /* nop */ if (psx_taken_BFC4027C) goto label_BFC4028C; @@ -205836,7 +211636,7 @@ label_BFC40284: psx_check_interrupts(cpu); /* 0xBFC40284: 10000011 beq $zero, $zero, 0xBFC402CC */ uint32_t psx_brA_BFC40284 = cpu->gpr[0]; uint32_t psx_brB_BFC40284 = cpu->gpr[0]; - int psx_taken_BFC40284 = (psx_brA_BFC40284 == psx_brB_BFC40284); + psx_taken_BFC40284 = (psx_brA_BFC40284 == psx_brB_BFC40284); /* 0xBFC40288: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC40284) goto label_BFC402CC; @@ -205908,6 +211708,12 @@ void func_1FC402DC(CPUState* cpu) { default: break; } } + int psx_taken_BFC402F0 = 0; + int psx_taken_BFC402F8 = 0; + int psx_taken_BFC40318 = 0; + int psx_taken_BFC40320 = 0; + int psx_taken_BFC40370 = 0; + int psx_taken_BFC4038C = 0; label_BFC402DC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -205925,7 +211731,7 @@ label_BFC402DC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC402ECu); return; } g_debug_last_store_pc = 0xBFC402ECu; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC402F0: 11C10003 beq $t6, $at, 0xBFC40300 */ uint32_t psx_brA_BFC402F0 = cpu->gpr[14]; uint32_t psx_brB_BFC402F0 = cpu->gpr[1]; - int psx_taken_BFC402F0 = (psx_brA_BFC402F0 == psx_brB_BFC402F0); + psx_taken_BFC402F0 = (psx_brA_BFC402F0 == psx_brB_BFC402F0); /* 0xBFC402F4: 00803021 addu $a2, $a0, $zero */ cpu->gpr[6] = cpu->gpr[4] + cpu->gpr[0]; if (psx_taken_BFC402F0) goto label_BFC40300; @@ -205936,7 +211742,7 @@ label_BFC402F8: psx_check_interrupts(cpu); /* 0xBFC402F8: 1000002E beq $zero, $zero, 0xBFC403B4 */ uint32_t psx_brA_BFC402F8 = cpu->gpr[0]; uint32_t psx_brB_BFC402F8 = cpu->gpr[0]; - int psx_taken_BFC402F8 = (psx_brA_BFC402F8 == psx_brB_BFC402F8); + psx_taken_BFC402F8 = (psx_brA_BFC402F8 == psx_brB_BFC402F8); /* 0xBFC402FC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC402F8) goto label_BFC403B4; @@ -205959,7 +211765,7 @@ label_BFC40300: cpu->gpr[24] = cpu->gpr[2] & 0x8u; /* 0xBFC40318: 13010003 beq $t8, $at, 0xBFC40328 */ uint32_t psx_brA_BFC40318 = cpu->gpr[24]; uint32_t psx_brB_BFC40318 = cpu->gpr[1]; - int psx_taken_BFC40318 = (psx_brA_BFC40318 == psx_brB_BFC40318); + psx_taken_BFC40318 = (psx_brA_BFC40318 == psx_brB_BFC40318); /* 0xBFC4031C: 00000000 nop */ /* nop */ if (psx_taken_BFC40318) goto label_BFC40328; @@ -205970,7 +211776,7 @@ label_BFC40320: psx_check_interrupts(cpu); /* 0xBFC40320: 10000024 beq $zero, $zero, 0xBFC403B4 */ uint32_t psx_brA_BFC40320 = cpu->gpr[0]; uint32_t psx_brB_BFC40320 = cpu->gpr[0]; - int psx_taken_BFC40320 = (psx_brA_BFC40320 == psx_brB_BFC40320); + psx_taken_BFC40320 = (psx_brA_BFC40320 == psx_brB_BFC40320); /* 0xBFC40324: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC40320) goto label_BFC403B4; @@ -206028,7 +211834,7 @@ label_BFC40370: psx_check_interrupts(cpu); /* 0xBFC40370: 10600008 beq $v1, $zero, 0xBFC40394 */ uint32_t psx_brA_BFC40370 = cpu->gpr[3]; uint32_t psx_brB_BFC40370 = cpu->gpr[0]; - int psx_taken_BFC40370 = (psx_brA_BFC40370 == psx_brB_BFC40370); + psx_taken_BFC40370 = (psx_brA_BFC40370 == psx_brB_BFC40370); /* 0xBFC40374: 00000000 nop */ /* nop */ if (psx_taken_BFC40370) goto label_BFC40394; @@ -206049,7 +211855,7 @@ label_BFC40378: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC4038C: 1000FFF8 beq $zero, $zero, 0xBFC40370 */ uint32_t psx_brA_BFC4038C = cpu->gpr[0]; uint32_t psx_brB_BFC4038C = cpu->gpr[0]; - int psx_taken_BFC4038C = (psx_brA_BFC4038C == psx_brB_BFC4038C); + psx_taken_BFC4038C = (psx_brA_BFC4038C == psx_brB_BFC4038C); /* 0xBFC40390: A08A0000 sb $t2, 0($a0) */ g_debug_last_store_pc = 0xBFC40390u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[4] + (0)), (uint8_t)(cpu->gpr[10] & 0xFFu)); if (psx_taken_BFC4038C) goto label_BFC40370; @@ -206091,6 +211897,7 @@ label_BFC403B4: void func_1FC403C4(CPUState* cpu) { debug_server_log_call_entry(0x1FC403C4u); + int psx_taken_BFC403D0 = 0; label_BFC403C4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -206104,7 +211911,7 @@ label_BFC403C4: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC403D0: 11C10003 beq $t6, $at, 0xBFC403E0 */ uint32_t psx_brA_BFC403D0 = cpu->gpr[14]; uint32_t psx_brB_BFC403D0 = cpu->gpr[1]; - int psx_taken_BFC403D0 = (psx_brA_BFC403D0 == psx_brB_BFC403D0); + psx_taken_BFC403D0 = (psx_brA_BFC403D0 == psx_brB_BFC403D0); /* 0xBFC403D4: 00000000 nop */ /* nop */ if (psx_taken_BFC403D0) goto label_BFC403E0; @@ -206144,6 +211951,10 @@ label_BFC403E0: void func_1FC40404(CPUState* cpu) { debug_server_log_call_entry(0x1FC40404u); + int psx_taken_BFC40410 = 0; + int psx_taken_BFC40418 = 0; + int psx_taken_BFC40420 = 0; + int psx_taken_BFC40470 = 0; label_BFC40404: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -206157,7 +211968,7 @@ label_BFC40404: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC40410: 10410007 beq $v0, $at, 0xBFC40430 */ uint32_t psx_brA_BFC40410 = cpu->gpr[2]; uint32_t psx_brB_BFC40410 = cpu->gpr[1]; - int psx_taken_BFC40410 = (psx_brA_BFC40410 == psx_brB_BFC40410); + psx_taken_BFC40410 = (psx_brA_BFC40410 == psx_brB_BFC40410); /* 0xBFC40414: 24010004 addiu $at, $zero, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC40410) goto label_BFC40430; @@ -206168,7 +211979,7 @@ label_BFC40418: psx_check_interrupts(cpu); /* 0xBFC40418: 10410005 beq $v0, $at, 0xBFC40430 */ uint32_t psx_brA_BFC40418 = cpu->gpr[2]; uint32_t psx_brB_BFC40418 = cpu->gpr[1]; - int psx_taken_BFC40418 = (psx_brA_BFC40418 == psx_brB_BFC40418); + psx_taken_BFC40418 = (psx_brA_BFC40418 == psx_brB_BFC40418); /* 0xBFC4041C: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC40418) goto label_BFC40430; @@ -206179,7 +211990,7 @@ label_BFC40420: psx_check_interrupts(cpu); /* 0xBFC40420: 10410004 beq $v0, $at, 0xBFC40434 */ uint32_t psx_brA_BFC40420 = cpu->gpr[2]; uint32_t psx_brB_BFC40420 = cpu->gpr[1]; - int psx_taken_BFC40420 = (psx_brA_BFC40420 == psx_brB_BFC40420); + psx_taken_BFC40420 = (psx_brA_BFC40420 == psx_brB_BFC40420); /* 0xBFC40424: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC40420) goto label_BFC40434; @@ -206241,7 +212052,7 @@ label_BFC40448: cpu->gpr[25] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[5] + (-1))); /* 0xBFC40470: 14A2FFF5 bne $a1, $v0, 0xBFC40448 */ uint32_t psx_brA_BFC40470 = cpu->gpr[5]; uint32_t psx_brB_BFC40470 = cpu->gpr[2]; - int psx_taken_BFC40470 = (psx_brA_BFC40470 != psx_brB_BFC40470); + psx_taken_BFC40470 = (psx_brA_BFC40470 != psx_brB_BFC40470); /* 0xBFC40474: A079FFFF sb $t9, -1($v1) */ g_debug_last_store_pc = 0xBFC40474u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[3] + (-1)), (uint8_t)(cpu->gpr[25] & 0xFFu)); if (psx_taken_BFC40470) goto label_BFC40448; @@ -206272,6 +212083,18 @@ void func_1FC40484(CPUState* cpu) { default: break; } } + int psx_taken_BFC404A0 = 0; + int psx_taken_BFC404A8 = 0; + int psx_taken_BFC404BC = 0; + int psx_taken_BFC404C4 = 0; + int psx_taken_BFC40510 = 0; + int psx_taken_BFC40544 = 0; + int psx_taken_BFC4055C = 0; + int psx_taken_BFC40574 = 0; + int psx_taken_BFC4058C = 0; + int psx_taken_BFC405A4 = 0; + int psx_taken_BFC405D4 = 0; + int psx_taken_BFC40604 = 0; label_BFC40484: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -206293,7 +212116,7 @@ label_BFC40484: cpu->gpr[15] = cpu->gpr[14] & 0x4u; /* 0xBFC404A0: 15E00003 bne $t7, $zero, 0xBFC404B0 */ uint32_t psx_brA_BFC404A0 = cpu->gpr[15]; uint32_t psx_brB_BFC404A0 = cpu->gpr[0]; - int psx_taken_BFC404A0 = (psx_brA_BFC404A0 != psx_brB_BFC404A0); + psx_taken_BFC404A0 = (psx_brA_BFC404A0 != psx_brB_BFC404A0); /* 0xBFC404A4: 00000000 nop */ /* nop */ if (psx_taken_BFC404A0) goto label_BFC404B0; @@ -206304,7 +212127,7 @@ label_BFC404A8: psx_check_interrupts(cpu); /* 0xBFC404A8: 1000005B beq $zero, $zero, 0xBFC40618 */ uint32_t psx_brA_BFC404A8 = cpu->gpr[0]; uint32_t psx_brB_BFC404A8 = cpu->gpr[0]; - int psx_taken_BFC404A8 = (psx_brA_BFC404A8 == psx_brB_BFC404A8); + psx_taken_BFC404A8 = (psx_brA_BFC404A8 == psx_brB_BFC404A8); /* 0xBFC404AC: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC404A8) goto label_BFC40618; @@ -206321,7 +212144,7 @@ label_BFC404B0: cpu->gpr[24] = cpu->gpr[2] & 0x4u; /* 0xBFC404BC: 17000003 bne $t8, $zero, 0xBFC404CC */ uint32_t psx_brA_BFC404BC = cpu->gpr[24]; uint32_t psx_brB_BFC404BC = cpu->gpr[0]; - int psx_taken_BFC404BC = (psx_brA_BFC404BC != psx_brB_BFC404BC); + psx_taken_BFC404BC = (psx_brA_BFC404BC != psx_brB_BFC404BC); /* 0xBFC404C0: AC22EE50 sw $v0, -4528($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4528)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC404C0u); return; } g_debug_last_store_pc = 0xBFC404C0u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC404BC) goto label_BFC404CC; @@ -206332,7 +212155,7 @@ label_BFC404C4: psx_check_interrupts(cpu); /* 0xBFC404C4: 10000054 beq $zero, $zero, 0xBFC40618 */ uint32_t psx_brA_BFC404C4 = cpu->gpr[0]; uint32_t psx_brB_BFC404C4 = cpu->gpr[0]; - int psx_taken_BFC404C4 = (psx_brA_BFC404C4 == psx_brB_BFC404C4); + psx_taken_BFC404C4 = (psx_brA_BFC404C4 == psx_brB_BFC404C4); /* 0xBFC404C8: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC404C4) goto label_BFC40618; @@ -206377,7 +212200,7 @@ label_BFC404CC: cpu->gpr[1] = (uint32_t)(cpu->gpr[12] < 0x00000005u ? 1 : 0); /* 0xBFC40510: 10200026 beq $at, $zero, 0xBFC405AC */ uint32_t psx_brA_BFC40510 = cpu->gpr[1]; uint32_t psx_brB_BFC40510 = cpu->gpr[0]; - int psx_taken_BFC40510 = (psx_brA_BFC40510 == psx_brB_BFC40510); + psx_taken_BFC40510 = (psx_brA_BFC40510 == psx_brB_BFC40510); /* 0xBFC40514: 00000000 nop */ /* nop */ if (psx_taken_BFC40510) goto label_BFC405AC; @@ -206429,7 +212252,7 @@ label_BFC4053C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (-25560)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40540u); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC40544: 1000001A beq $zero, $zero, 0xBFC405B0 */ uint32_t psx_brA_BFC40544 = cpu->gpr[0]; uint32_t psx_brB_BFC40544 = cpu->gpr[0]; - int psx_taken_BFC40544 = (psx_brA_BFC40544 == psx_brB_BFC40544); + psx_taken_BFC40544 = (psx_brA_BFC40544 == psx_brB_BFC40544); /* 0xBFC40548: 240D0001 addiu $t5, $zero, 1 */ cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC40544) goto label_BFC405B0; @@ -206454,7 +212277,7 @@ label_BFC40554: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (-25560)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40558u); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC4055C: 10000014 beq $zero, $zero, 0xBFC405B0 */ uint32_t psx_brA_BFC4055C = cpu->gpr[0]; uint32_t psx_brB_BFC4055C = cpu->gpr[0]; - int psx_taken_BFC4055C = (psx_brA_BFC4055C == psx_brB_BFC4055C); + psx_taken_BFC4055C = (psx_brA_BFC4055C == psx_brB_BFC4055C); /* 0xBFC40560: 240D0001 addiu $t5, $zero, 1 */ cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC4055C) goto label_BFC405B0; @@ -206479,7 +212302,7 @@ label_BFC4056C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (-25560)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40570u); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC40574: 1000000E beq $zero, $zero, 0xBFC405B0 */ uint32_t psx_brA_BFC40574 = cpu->gpr[0]; uint32_t psx_brB_BFC40574 = cpu->gpr[0]; - int psx_taken_BFC40574 = (psx_brA_BFC40574 == psx_brB_BFC40574); + psx_taken_BFC40574 = (psx_brA_BFC40574 == psx_brB_BFC40574); /* 0xBFC40578: 240D0001 addiu $t5, $zero, 1 */ cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC40574) goto label_BFC405B0; @@ -206504,7 +212327,7 @@ label_BFC40584: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (-25560)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40588u); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC4058C: 10000008 beq $zero, $zero, 0xBFC405B0 */ uint32_t psx_brA_BFC4058C = cpu->gpr[0]; uint32_t psx_brB_BFC4058C = cpu->gpr[0]; - int psx_taken_BFC4058C = (psx_brA_BFC4058C == psx_brB_BFC4058C); + psx_taken_BFC4058C = (psx_brA_BFC4058C == psx_brB_BFC4058C); /* 0xBFC40590: 240D0001 addiu $t5, $zero, 1 */ cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC4058C) goto label_BFC405B0; @@ -206529,7 +212352,7 @@ label_BFC4059C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[5] + (-25560)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC405A0u); return; } cpu->gpr[5] = cpu->read_word(psx_addr); } /* 0xBFC405A4: 10000002 beq $zero, $zero, 0xBFC405B0 */ uint32_t psx_brA_BFC405A4 = cpu->gpr[0]; uint32_t psx_brB_BFC405A4 = cpu->gpr[0]; - int psx_taken_BFC405A4 = (psx_brA_BFC405A4 == psx_brB_BFC405A4); + psx_taken_BFC405A4 = (psx_brA_BFC405A4 == psx_brB_BFC405A4); /* 0xBFC405A8: 240D0001 addiu $t5, $zero, 1 */ cpu->gpr[13] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC405A4) goto label_BFC405B0; @@ -206565,7 +212388,7 @@ label_BFC405B0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[24] < (4) ? 1 : 0); /* 0xBFC405D4: 1020000E beq $at, $zero, 0xBFC40610 */ uint32_t psx_brA_BFC405D4 = cpu->gpr[1]; uint32_t psx_brB_BFC405D4 = cpu->gpr[0]; - int psx_taken_BFC405D4 = (psx_brA_BFC405D4 == psx_brB_BFC405D4); + psx_taken_BFC405D4 = (psx_brA_BFC405D4 == psx_brB_BFC405D4); /* 0xBFC405D8: 93AB0028 lbu $t3, 40($sp) */ cpu->gpr[11] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[29] + (40))); if (psx_taken_BFC405D4) goto label_BFC40610; @@ -206601,7 +212424,7 @@ label_BFC405E0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[10] < (4) ? 1 : 0); /* 0xBFC40604: 1420FFF6 bne $at, $zero, 0xBFC405E0 */ uint32_t psx_brA_BFC40604 = cpu->gpr[1]; uint32_t psx_brB_BFC40604 = cpu->gpr[0]; - int psx_taken_BFC40604 = (psx_brA_BFC40604 != psx_brB_BFC40604); + psx_taken_BFC40604 = (psx_brA_BFC40604 != psx_brB_BFC40604); /* 0xBFC40608: 8FB90024 lw $t9, 36($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (36)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40608u); return; } cpu->gpr[25] = cpu->read_word(psx_addr); } if (psx_taken_BFC40604) goto label_BFC405E0; @@ -206646,6 +212469,11 @@ void func_1FC40628(CPUState* cpu) { default: break; } } + int psx_taken_BFC40644 = 0; + int psx_taken_BFC4064C = 0; + int psx_taken_BFC40660 = 0; + int psx_taken_BFC40668 = 0; + int psx_taken_BFC406AC = 0; label_BFC40628: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -206667,7 +212495,7 @@ label_BFC40628: cpu->gpr[15] = cpu->gpr[14] & 0x8u; /* 0xBFC40644: 15E00003 bne $t7, $zero, 0xBFC40654 */ uint32_t psx_brA_BFC40644 = cpu->gpr[15]; uint32_t psx_brB_BFC40644 = cpu->gpr[0]; - int psx_taken_BFC40644 = (psx_brA_BFC40644 != psx_brB_BFC40644); + psx_taken_BFC40644 = (psx_brA_BFC40644 != psx_brB_BFC40644); /* 0xBFC40648: 00000000 nop */ /* nop */ if (psx_taken_BFC40644) goto label_BFC40654; @@ -206678,7 +212506,7 @@ label_BFC4064C: psx_check_interrupts(cpu); /* 0xBFC4064C: 10000020 beq $zero, $zero, 0xBFC406D0 */ uint32_t psx_brA_BFC4064C = cpu->gpr[0]; uint32_t psx_brB_BFC4064C = cpu->gpr[0]; - int psx_taken_BFC4064C = (psx_brA_BFC4064C == psx_brB_BFC4064C); + psx_taken_BFC4064C = (psx_brA_BFC4064C == psx_brB_BFC4064C); /* 0xBFC40650: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC4064C) goto label_BFC406D0; @@ -206695,7 +212523,7 @@ label_BFC40654: cpu->gpr[24] = cpu->gpr[2] & 0x8u; /* 0xBFC40660: 17000003 bne $t8, $zero, 0xBFC40670 */ uint32_t psx_brA_BFC40660 = cpu->gpr[24]; uint32_t psx_brB_BFC40660 = cpu->gpr[0]; - int psx_taken_BFC40660 = (psx_brA_BFC40660 != psx_brB_BFC40660); + psx_taken_BFC40660 = (psx_brA_BFC40660 != psx_brB_BFC40660); /* 0xBFC40664: AC22EE50 sw $v0, -4528($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4528)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40664u); return; } g_debug_last_store_pc = 0xBFC40664u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC40660) goto label_BFC40670; @@ -206706,7 +212534,7 @@ label_BFC40668: psx_check_interrupts(cpu); /* 0xBFC40668: 10000019 beq $zero, $zero, 0xBFC406D0 */ uint32_t psx_brA_BFC40668 = cpu->gpr[0]; uint32_t psx_brB_BFC40668 = cpu->gpr[0]; - int psx_taken_BFC40668 = (psx_brA_BFC40668 == psx_brB_BFC40668); + psx_taken_BFC40668 = (psx_brA_BFC40668 == psx_brB_BFC40668); /* 0xBFC4066C: 00001021 addu $v0, $zero, $zero */ cpu->gpr[2] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC40668) goto label_BFC406D0; @@ -206747,7 +212575,7 @@ label_BFC40670: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[4] + (-1)); /* 0xBFC406AC: 14800005 bne $a0, $zero, 0xBFC406C4 */ uint32_t psx_brA_BFC406AC = cpu->gpr[4]; uint32_t psx_brB_BFC406AC = cpu->gpr[0]; - int psx_taken_BFC406AC = (psx_brA_BFC406AC != psx_brB_BFC406AC); + psx_taken_BFC406AC = (psx_brA_BFC406AC != psx_brB_BFC406AC); /* 0xBFC406B0: AC24EE78 sw $a0, -4488($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4488)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC406B0u); return; } g_debug_last_store_pc = 0xBFC406B0u; cpu->write_word(psx_addr, cpu->gpr[4]); } if (psx_taken_BFC406AC) goto label_BFC406C4; @@ -206898,6 +212726,8 @@ label_BFC40720: void func_1FC40744(CPUState* cpu) { debug_server_log_call_entry(0x1FC40744u); + int psx_taken_BFC40778 = 0; + int psx_taken_BFC407A8 = 0; label_BFC40744: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -206931,7 +212761,7 @@ label_BFC40744: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (4) ? 1 : 0); /* 0xBFC40778: 1020000D beq $at, $zero, 0xBFC407B0 */ uint32_t psx_brA_BFC40778 = cpu->gpr[1]; uint32_t psx_brB_BFC40778 = cpu->gpr[0]; - int psx_taken_BFC40778 = (psx_brA_BFC40778 == psx_brB_BFC40778); + psx_taken_BFC40778 = (psx_brA_BFC40778 == psx_brB_BFC40778); /* 0xBFC4077C: 00000000 nop */ /* nop */ if (psx_taken_BFC40778) goto label_BFC407B0; @@ -206967,7 +212797,7 @@ label_BFC40784: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[12] < (4) ? 1 : 0); /* 0xBFC407A8: 1420FFF6 bne $at, $zero, 0xBFC40784 */ uint32_t psx_brA_BFC407A8 = cpu->gpr[1]; uint32_t psx_brB_BFC407A8 = cpu->gpr[0]; - int psx_taken_BFC407A8 = (psx_brA_BFC407A8 != psx_brB_BFC407A8); + psx_taken_BFC407A8 = (psx_brA_BFC407A8 != psx_brB_BFC407A8); /* 0xBFC407AC: 8FA90004 lw $t1, 4($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC407ACu); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } if (psx_taken_BFC407A8) goto label_BFC40784; @@ -207006,6 +212836,91 @@ void func_1FC407B8(CPUState* cpu) { default: break; } } + int psx_taken_BFC407C8 = 0; + int psx_taken_BFC407D8 = 0; + int psx_taken_BFC407E4 = 0; + int psx_taken_BFC407F4 = 0; + int psx_taken_BFC4080C = 0; + int psx_taken_BFC4081C = 0; + int psx_taken_BFC4082C = 0; + int psx_taken_BFC4083C = 0; + int psx_taken_BFC4084C = 0; + int psx_taken_BFC4085C = 0; + int psx_taken_BFC4086C = 0; + int psx_taken_BFC4087C = 0; + int psx_taken_BFC4088C = 0; + int psx_taken_BFC4089C = 0; + int psx_taken_BFC408AC = 0; + int psx_taken_BFC408BC = 0; + int psx_taken_BFC408CC = 0; + int psx_taken_BFC408DC = 0; + int psx_taken_BFC408EC = 0; + int psx_taken_BFC40904 = 0; + int psx_taken_BFC40910 = 0; + int psx_taken_BFC40918 = 0; + int psx_taken_BFC40920 = 0; + int psx_taken_BFC40928 = 0; + int psx_taken_BFC40930 = 0; + int psx_taken_BFC40938 = 0; + int psx_taken_BFC40940 = 0; + int psx_taken_BFC40948 = 0; + int psx_taken_BFC40950 = 0; + int psx_taken_BFC40958 = 0; + int psx_taken_BFC40960 = 0; + int psx_taken_BFC40968 = 0; + int psx_taken_BFC40974 = 0; + int psx_taken_BFC4097C = 0; + int psx_taken_BFC40988 = 0; + int psx_taken_BFC40990 = 0; + int psx_taken_BFC4099C = 0; + int psx_taken_BFC409A4 = 0; + int psx_taken_BFC409AC = 0; + int psx_taken_BFC409B4 = 0; + int psx_taken_BFC409C0 = 0; + int psx_taken_BFC409C8 = 0; + int psx_taken_BFC409D4 = 0; + int psx_taken_BFC409DC = 0; + int psx_taken_BFC409E4 = 0; + int psx_taken_BFC409EC = 0; + int psx_taken_BFC409F4 = 0; + int psx_taken_BFC409FC = 0; + int psx_taken_BFC40A08 = 0; + int psx_taken_BFC40A10 = 0; + int psx_taken_BFC40A1C = 0; + int psx_taken_BFC40A24 = 0; + int psx_taken_BFC40A2C = 0; + int psx_taken_BFC40A34 = 0; + int psx_taken_BFC40A40 = 0; + int psx_taken_BFC40A48 = 0; + int psx_taken_BFC40A54 = 0; + int psx_taken_BFC40A5C = 0; + int psx_taken_BFC40A64 = 0; + int psx_taken_BFC40A6C = 0; + int psx_taken_BFC40A74 = 0; + int psx_taken_BFC40A7C = 0; + int psx_taken_BFC40A84 = 0; + int psx_taken_BFC40A8C = 0; + int psx_taken_BFC40A98 = 0; + int psx_taken_BFC40AA0 = 0; + int psx_taken_BFC40AAC = 0; + int psx_taken_BFC40AB4 = 0; + int psx_taken_BFC40ABC = 0; + int psx_taken_BFC40AC4 = 0; + int psx_taken_BFC40AD0 = 0; + int psx_taken_BFC40AD8 = 0; + int psx_taken_BFC40AE4 = 0; + int psx_taken_BFC40AEC = 0; + int psx_taken_BFC40AF4 = 0; + int psx_taken_BFC40AFC = 0; + int psx_taken_BFC40B04 = 0; + int psx_taken_BFC40B0C = 0; + int psx_taken_BFC40B18 = 0; + int psx_taken_BFC40B20 = 0; + int psx_taken_BFC40B2C = 0; + int psx_taken_BFC40B34 = 0; + int psx_taken_BFC40B3C = 0; + int psx_taken_BFC40B44 = 0; + int psx_taken_BFC40B50 = 0; label_BFC407B8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -207021,7 +212936,7 @@ label_BFC407B8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (16)); /* 0xBFC407C8: 14410005 bne $v0, $at, 0xBFC407E0 */ uint32_t psx_brA_BFC407C8 = cpu->gpr[2]; uint32_t psx_brB_BFC407C8 = cpu->gpr[1]; - int psx_taken_BFC407C8 = (psx_brA_BFC407C8 != psx_brB_BFC407C8); + psx_taken_BFC407C8 = (psx_brA_BFC407C8 != psx_brB_BFC407C8); /* 0xBFC407CC: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC407CCu); return; } g_debug_last_store_pc = 0xBFC407CCu; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC407C8) goto label_BFC407E0; @@ -207042,7 +212957,7 @@ label_BFC407D8: psx_check_interrupts(cpu); /* 0xBFC407D8: 100000E0 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC407D8 = cpu->gpr[0]; uint32_t psx_brB_BFC407D8 = cpu->gpr[0]; - int psx_taken_BFC407D8 = (psx_brA_BFC407D8 == psx_brB_BFC407D8); + psx_taken_BFC407D8 = (psx_brA_BFC407D8 == psx_brB_BFC407D8); /* 0xBFC407DC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC407DCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC407D8) goto label_BFC40B5C; @@ -207055,7 +212970,7 @@ label_BFC407E0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (17)); /* 0xBFC407E4: 14410005 bne $v0, $at, 0xBFC407FC */ uint32_t psx_brA_BFC407E4 = cpu->gpr[2]; uint32_t psx_brB_BFC407E4 = cpu->gpr[1]; - int psx_taken_BFC407E4 = (psx_brA_BFC407E4 != psx_brB_BFC407E4); + psx_taken_BFC407E4 = (psx_brA_BFC407E4 != psx_brB_BFC407E4); /* 0xBFC407E8: 00000000 nop */ /* nop */ if (psx_taken_BFC407E4) goto label_BFC407FC; @@ -207076,7 +212991,7 @@ label_BFC407F4: psx_check_interrupts(cpu); /* 0xBFC407F4: 100000D9 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC407F4 = cpu->gpr[0]; uint32_t psx_brB_BFC407F4 = cpu->gpr[0]; - int psx_taken_BFC407F4 = (psx_brA_BFC407F4 == psx_brB_BFC407F4); + psx_taken_BFC407F4 = (psx_brA_BFC407F4 == psx_brB_BFC407F4); /* 0xBFC407F8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC407F8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC407F4) goto label_BFC40B5C; @@ -207095,7 +213010,7 @@ label_BFC407FC: cpu->gpr[4] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[14] + (0))); /* 0xBFC4080C: 1000003F beq $zero, $zero, 0xBFC4090C */ uint32_t psx_brA_BFC4080C = cpu->gpr[0]; uint32_t psx_brB_BFC4080C = cpu->gpr[0]; - int psx_taken_BFC4080C = (psx_brA_BFC4080C == psx_brB_BFC4080C); + psx_taken_BFC4080C = (psx_brA_BFC4080C == psx_brB_BFC4080C); /* 0xBFC40810: A024EEC0 sb $a0, -4416($at) */ g_debug_last_store_pc = 0xBFC40810u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[1] + (-4416)), (uint8_t)(cpu->gpr[4] & 0xFFu)); if (psx_taken_BFC4080C) goto label_BFC4090C; @@ -207116,7 +213031,7 @@ label_BFC4081C: psx_check_interrupts(cpu); /* 0xBFC4081C: 100000CF beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC4081C = cpu->gpr[0]; uint32_t psx_brB_BFC4081C = cpu->gpr[0]; - int psx_taken_BFC4081C = (psx_brA_BFC4081C == psx_brB_BFC4081C); + psx_taken_BFC4081C = (psx_brA_BFC4081C == psx_brB_BFC4081C); /* 0xBFC40820: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40820u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC4081C) goto label_BFC40B5C; @@ -207137,7 +213052,7 @@ label_BFC4082C: psx_check_interrupts(cpu); /* 0xBFC4082C: 100000CB beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC4082C = cpu->gpr[0]; uint32_t psx_brB_BFC4082C = cpu->gpr[0]; - int psx_taken_BFC4082C = (psx_brA_BFC4082C == psx_brB_BFC4082C); + psx_taken_BFC4082C = (psx_brA_BFC4082C == psx_brB_BFC4082C); /* 0xBFC40830: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40830u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC4082C) goto label_BFC40B5C; @@ -207157,7 +213072,7 @@ label_BFC40838: cpu->gpr[1] = 0x800E0000u; /* 0xBFC4083C: 100000C6 beq $zero, $zero, 0xBFC40B58 */ uint32_t psx_brA_BFC4083C = cpu->gpr[0]; uint32_t psx_brB_BFC4083C = cpu->gpr[0]; - int psx_taken_BFC4083C = (psx_brA_BFC4083C == psx_brB_BFC4083C); + psx_taken_BFC4083C = (psx_brA_BFC4083C == psx_brB_BFC4083C); /* 0xBFC40840: AC2FEE5C sw $t7, -4516($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4516)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40840u); return; } g_debug_last_store_pc = 0xBFC40840u; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC4083C) goto label_BFC40B58; @@ -207177,7 +213092,7 @@ label_BFC40848: cpu->gpr[1] = 0x800E0000u; /* 0xBFC4084C: 100000C2 beq $zero, $zero, 0xBFC40B58 */ uint32_t psx_brA_BFC4084C = cpu->gpr[0]; uint32_t psx_brB_BFC4084C = cpu->gpr[0]; - int psx_taken_BFC4084C = (psx_brA_BFC4084C == psx_brB_BFC4084C); + psx_taken_BFC4084C = (psx_brA_BFC4084C == psx_brB_BFC4084C); /* 0xBFC40850: AC38EE5C sw $t8, -4516($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4516)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40850u); return; } g_debug_last_store_pc = 0xBFC40850u; cpu->write_word(psx_addr, cpu->gpr[24]); } if (psx_taken_BFC4084C) goto label_BFC40B58; @@ -207198,7 +213113,7 @@ label_BFC4085C: psx_check_interrupts(cpu); /* 0xBFC4085C: 100000BF beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC4085C = cpu->gpr[0]; uint32_t psx_brB_BFC4085C = cpu->gpr[0]; - int psx_taken_BFC4085C = (psx_brA_BFC4085C == psx_brB_BFC4085C); + psx_taken_BFC4085C = (psx_brA_BFC4085C == psx_brB_BFC4085C); /* 0xBFC40860: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40860u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC4085C) goto label_BFC40B5C; @@ -207219,7 +213134,7 @@ label_BFC4086C: psx_check_interrupts(cpu); /* 0xBFC4086C: 100000BB beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC4086C = cpu->gpr[0]; uint32_t psx_brB_BFC4086C = cpu->gpr[0]; - int psx_taken_BFC4086C = (psx_brA_BFC4086C == psx_brB_BFC4086C); + psx_taken_BFC4086C = (psx_brA_BFC4086C == psx_brB_BFC4086C); /* 0xBFC40870: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40870u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC4086C) goto label_BFC40B5C; @@ -207240,7 +213155,7 @@ label_BFC4087C: psx_check_interrupts(cpu); /* 0xBFC4087C: 100000B7 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC4087C = cpu->gpr[0]; uint32_t psx_brB_BFC4087C = cpu->gpr[0]; - int psx_taken_BFC4087C = (psx_brA_BFC4087C == psx_brB_BFC4087C); + psx_taken_BFC4087C = (psx_brA_BFC4087C == psx_brB_BFC4087C); /* 0xBFC40880: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40880u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC4087C) goto label_BFC40B5C; @@ -207261,7 +213176,7 @@ label_BFC4088C: psx_check_interrupts(cpu); /* 0xBFC4088C: 100000B3 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC4088C = cpu->gpr[0]; uint32_t psx_brB_BFC4088C = cpu->gpr[0]; - int psx_taken_BFC4088C = (psx_brA_BFC4088C == psx_brB_BFC4088C); + psx_taken_BFC4088C = (psx_brA_BFC4088C == psx_brB_BFC4088C); /* 0xBFC40890: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40890u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC4088C) goto label_BFC40B5C; @@ -207282,7 +213197,7 @@ label_BFC4089C: psx_check_interrupts(cpu); /* 0xBFC4089C: 100000AF beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC4089C = cpu->gpr[0]; uint32_t psx_brB_BFC4089C = cpu->gpr[0]; - int psx_taken_BFC4089C = (psx_brA_BFC4089C == psx_brB_BFC4089C); + psx_taken_BFC4089C = (psx_brA_BFC4089C == psx_brB_BFC4089C); /* 0xBFC408A0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC408A0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC4089C) goto label_BFC40B5C; @@ -207303,7 +213218,7 @@ label_BFC408AC: psx_check_interrupts(cpu); /* 0xBFC408AC: 100000AB beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC408AC = cpu->gpr[0]; uint32_t psx_brB_BFC408AC = cpu->gpr[0]; - int psx_taken_BFC408AC = (psx_brA_BFC408AC == psx_brB_BFC408AC); + psx_taken_BFC408AC = (psx_brA_BFC408AC == psx_brB_BFC408AC); /* 0xBFC408B0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC408B0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC408AC) goto label_BFC40B5C; @@ -207324,7 +213239,7 @@ label_BFC408BC: psx_check_interrupts(cpu); /* 0xBFC408BC: 100000A7 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC408BC = cpu->gpr[0]; uint32_t psx_brB_BFC408BC = cpu->gpr[0]; - int psx_taken_BFC408BC = (psx_brA_BFC408BC == psx_brB_BFC408BC); + psx_taken_BFC408BC = (psx_brA_BFC408BC == psx_brB_BFC408BC); /* 0xBFC408C0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC408C0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC408BC) goto label_BFC40B5C; @@ -207345,7 +213260,7 @@ label_BFC408CC: psx_check_interrupts(cpu); /* 0xBFC408CC: 100000A3 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC408CC = cpu->gpr[0]; uint32_t psx_brB_BFC408CC = cpu->gpr[0]; - int psx_taken_BFC408CC = (psx_brA_BFC408CC == psx_brB_BFC408CC); + psx_taken_BFC408CC = (psx_brA_BFC408CC == psx_brB_BFC408CC); /* 0xBFC408D0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC408D0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC408CC) goto label_BFC40B5C; @@ -207366,7 +213281,7 @@ label_BFC408DC: psx_check_interrupts(cpu); /* 0xBFC408DC: 1000009F beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC408DC = cpu->gpr[0]; uint32_t psx_brB_BFC408DC = cpu->gpr[0]; - int psx_taken_BFC408DC = (psx_brA_BFC408DC == psx_brB_BFC408DC); + psx_taken_BFC408DC = (psx_brA_BFC408DC == psx_brB_BFC408DC); /* 0xBFC408E0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC408E0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC408DC) goto label_BFC40B5C; @@ -207387,7 +213302,7 @@ label_BFC408EC: psx_check_interrupts(cpu); /* 0xBFC408EC: 1000009B beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC408EC = cpu->gpr[0]; uint32_t psx_brB_BFC408EC = cpu->gpr[0]; - int psx_taken_BFC408EC = (psx_brA_BFC408EC == psx_brB_BFC408EC); + psx_taken_BFC408EC = (psx_brA_BFC408EC == psx_brB_BFC408EC); /* 0xBFC408F0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC408F0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC408EC) goto label_BFC40B5C; @@ -207417,7 +213332,7 @@ label_BFC40904: psx_check_interrupts(cpu); /* 0xBFC40904: 10000095 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC40904 = cpu->gpr[0]; uint32_t psx_brB_BFC40904 = cpu->gpr[0]; - int psx_taken_BFC40904 = (psx_brA_BFC40904 == psx_brB_BFC40904); + psx_taken_BFC40904 = (psx_brA_BFC40904 == psx_brB_BFC40904); /* 0xBFC40908: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40908u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40904) goto label_BFC40B5C; @@ -207430,7 +213345,7 @@ label_BFC4090C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (25)); /* 0xBFC40910: 1041FFF4 beq $v0, $at, 0xBFC408E4 */ uint32_t psx_brA_BFC40910 = cpu->gpr[2]; uint32_t psx_brB_BFC40910 = cpu->gpr[1]; - int psx_taken_BFC40910 = (psx_brA_BFC40910 == psx_brB_BFC40910); + psx_taken_BFC40910 = (psx_brA_BFC40910 == psx_brB_BFC40910); /* 0xBFC40914: 2841001A slti $at, $v0, 26 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (26) ? 1 : 0); if (psx_taken_BFC40910) goto label_BFC408E4; @@ -207441,7 +213356,7 @@ label_BFC40918: psx_check_interrupts(cpu); /* 0xBFC40918: 1020004D beq $at, $zero, 0xBFC40A50 */ uint32_t psx_brA_BFC40918 = cpu->gpr[1]; uint32_t psx_brB_BFC40918 = cpu->gpr[0]; - int psx_taken_BFC40918 = (psx_brA_BFC40918 == psx_brB_BFC40918); + psx_taken_BFC40918 = (psx_brA_BFC40918 == psx_brB_BFC40918); /* 0xBFC4091C: 2401000E addiu $at, $zero, 14 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (14)); if (psx_taken_BFC40918) goto label_BFC40A50; @@ -207452,7 +213367,7 @@ label_BFC40920: psx_check_interrupts(cpu); /* 0xBFC40920: 1041FFE8 beq $v0, $at, 0xBFC408C4 */ uint32_t psx_brA_BFC40920 = cpu->gpr[2]; uint32_t psx_brB_BFC40920 = cpu->gpr[1]; - int psx_taken_BFC40920 = (psx_brA_BFC40920 == psx_brB_BFC40920); + psx_taken_BFC40920 = (psx_brA_BFC40920 == psx_brB_BFC40920); /* 0xBFC40924: 2841000F slti $at, $v0, 15 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (15) ? 1 : 0); if (psx_taken_BFC40920) goto label_BFC408C4; @@ -207463,7 +213378,7 @@ label_BFC40928: psx_check_interrupts(cpu); /* 0xBFC40928: 10200029 beq $at, $zero, 0xBFC409D0 */ uint32_t psx_brA_BFC40928 = cpu->gpr[1]; uint32_t psx_brB_BFC40928 = cpu->gpr[0]; - int psx_taken_BFC40928 = (psx_brA_BFC40928 == psx_brB_BFC40928); + psx_taken_BFC40928 = (psx_brA_BFC40928 == psx_brB_BFC40928); /* 0xBFC4092C: 24010008 addiu $at, $zero, 8 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); if (psx_taken_BFC40928) goto label_BFC409D0; @@ -207474,7 +213389,7 @@ label_BFC40930: psx_check_interrupts(cpu); /* 0xBFC40930: 10410089 beq $v0, $at, 0xBFC40B58 */ uint32_t psx_brA_BFC40930 = cpu->gpr[2]; uint32_t psx_brB_BFC40930 = cpu->gpr[1]; - int psx_taken_BFC40930 = (psx_brA_BFC40930 == psx_brB_BFC40930); + psx_taken_BFC40930 = (psx_brA_BFC40930 == psx_brB_BFC40930); /* 0xBFC40934: 28410009 slti $at, $v0, 9 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (9) ? 1 : 0); if (psx_taken_BFC40930) goto label_BFC40B58; @@ -207485,7 +213400,7 @@ label_BFC40938: psx_check_interrupts(cpu); /* 0xBFC40938: 10200017 beq $at, $zero, 0xBFC40998 */ uint32_t psx_brA_BFC40938 = cpu->gpr[1]; uint32_t psx_brB_BFC40938 = cpu->gpr[0]; - int psx_taken_BFC40938 = (psx_brA_BFC40938 == psx_brB_BFC40938); + psx_taken_BFC40938 = (psx_brA_BFC40938 == psx_brB_BFC40938); /* 0xBFC4093C: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC40938) goto label_BFC40998; @@ -207496,7 +213411,7 @@ label_BFC40940: psx_check_interrupts(cpu); /* 0xBFC40940: 1041FFC0 beq $v0, $at, 0xBFC40844 */ uint32_t psx_brA_BFC40940 = cpu->gpr[2]; uint32_t psx_brB_BFC40940 = cpu->gpr[1]; - int psx_taken_BFC40940 = (psx_brA_BFC40940 == psx_brB_BFC40940); + psx_taken_BFC40940 = (psx_brA_BFC40940 == psx_brB_BFC40940); /* 0xBFC40944: 28410006 slti $at, $v0, 6 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (6) ? 1 : 0); if (psx_taken_BFC40940) goto label_BFC40844; @@ -207507,7 +213422,7 @@ label_BFC40948: psx_check_interrupts(cpu); /* 0xBFC40948: 1020000E beq $at, $zero, 0xBFC40984 */ uint32_t psx_brA_BFC40948 = cpu->gpr[1]; uint32_t psx_brB_BFC40948 = cpu->gpr[0]; - int psx_taken_BFC40948 = (psx_brA_BFC40948 == psx_brB_BFC40948); + psx_taken_BFC40948 = (psx_brA_BFC40948 == psx_brB_BFC40948); /* 0xBFC4094C: 24010003 addiu $at, $zero, 3 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); if (psx_taken_BFC40948) goto label_BFC40984; @@ -207518,7 +213433,7 @@ label_BFC40950: psx_check_interrupts(cpu); /* 0xBFC40950: 1041FFBC beq $v0, $at, 0xBFC40844 */ uint32_t psx_brA_BFC40950 = cpu->gpr[2]; uint32_t psx_brB_BFC40950 = cpu->gpr[1]; - int psx_taken_BFC40950 = (psx_brA_BFC40950 == psx_brB_BFC40950); + psx_taken_BFC40950 = (psx_brA_BFC40950 == psx_brB_BFC40950); /* 0xBFC40954: 28410004 slti $at, $v0, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (4) ? 1 : 0); if (psx_taken_BFC40950) goto label_BFC40844; @@ -207529,7 +213444,7 @@ label_BFC40958: psx_check_interrupts(cpu); /* 0xBFC40958: 10200005 beq $at, $zero, 0xBFC40970 */ uint32_t psx_brA_BFC40958 = cpu->gpr[1]; uint32_t psx_brB_BFC40958 = cpu->gpr[0]; - int psx_taken_BFC40958 = (psx_brA_BFC40958 == psx_brB_BFC40958); + psx_taken_BFC40958 = (psx_brA_BFC40958 == psx_brB_BFC40958); /* 0xBFC4095C: 24010001 addiu $at, $zero, 1 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC40958) goto label_BFC40970; @@ -207540,7 +213455,7 @@ label_BFC40960: psx_check_interrupts(cpu); /* 0xBFC40960: 1041FFBC beq $v0, $at, 0xBFC40854 */ uint32_t psx_brA_BFC40960 = cpu->gpr[2]; uint32_t psx_brB_BFC40960 = cpu->gpr[1]; - int psx_taken_BFC40960 = (psx_brA_BFC40960 == psx_brB_BFC40960); + psx_taken_BFC40960 = (psx_brA_BFC40960 == psx_brB_BFC40960); /* 0xBFC40964: 00000000 nop */ /* nop */ if (psx_taken_BFC40960) goto label_BFC40854; @@ -207551,7 +213466,7 @@ label_BFC40968: psx_check_interrupts(cpu); /* 0xBFC40968: 1000007C beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC40968 = cpu->gpr[0]; uint32_t psx_brB_BFC40968 = cpu->gpr[0]; - int psx_taken_BFC40968 = (psx_brA_BFC40968 == psx_brB_BFC40968); + psx_taken_BFC40968 = (psx_brA_BFC40968 == psx_brB_BFC40968); /* 0xBFC4096C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC4096Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40968) goto label_BFC40B5C; @@ -207564,7 +213479,7 @@ label_BFC40970: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC40974: 1041FFB4 beq $v0, $at, 0xBFC40848 */ uint32_t psx_brA_BFC40974 = cpu->gpr[2]; uint32_t psx_brB_BFC40974 = cpu->gpr[1]; - int psx_taken_BFC40974 = (psx_brA_BFC40974 == psx_brB_BFC40974); + psx_taken_BFC40974 = (psx_brA_BFC40974 == psx_brB_BFC40974); /* 0xBFC40978: 24180001 addiu $t8, $zero, 1 */ cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC40974) goto label_BFC40848; @@ -207575,7 +213490,7 @@ label_BFC4097C: psx_check_interrupts(cpu); /* 0xBFC4097C: 10000077 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC4097C = cpu->gpr[0]; uint32_t psx_brB_BFC4097C = cpu->gpr[0]; - int psx_taken_BFC4097C = (psx_brA_BFC4097C == psx_brB_BFC4097C); + psx_taken_BFC4097C = (psx_brA_BFC4097C == psx_brB_BFC4097C); /* 0xBFC40980: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40980u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC4097C) goto label_BFC40B5C; @@ -207588,7 +213503,7 @@ label_BFC40984: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (7)); /* 0xBFC40988: 10410074 beq $v0, $at, 0xBFC40B5C */ uint32_t psx_brA_BFC40988 = cpu->gpr[2]; uint32_t psx_brB_BFC40988 = cpu->gpr[1]; - int psx_taken_BFC40988 = (psx_brA_BFC40988 == psx_brB_BFC40988); + psx_taken_BFC40988 = (psx_brA_BFC40988 == psx_brB_BFC40988); /* 0xBFC4098C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC4098Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40988) goto label_BFC40B5C; @@ -207599,7 +213514,7 @@ label_BFC40990: psx_check_interrupts(cpu); /* 0xBFC40990: 10000072 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC40990 = cpu->gpr[0]; uint32_t psx_brB_BFC40990 = cpu->gpr[0]; - int psx_taken_BFC40990 = (psx_brA_BFC40990 == psx_brB_BFC40990); + psx_taken_BFC40990 = (psx_brA_BFC40990 == psx_brB_BFC40990); /* 0xBFC40994: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40994u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40990) goto label_BFC40B5C; @@ -207612,7 +213527,7 @@ label_BFC40998: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (11)); /* 0xBFC4099C: 1041FFBD beq $v0, $at, 0xBFC40894 */ uint32_t psx_brA_BFC4099C = cpu->gpr[2]; uint32_t psx_brB_BFC4099C = cpu->gpr[1]; - int psx_taken_BFC4099C = (psx_brA_BFC4099C == psx_brB_BFC4099C); + psx_taken_BFC4099C = (psx_brA_BFC4099C == psx_brB_BFC4099C); /* 0xBFC409A0: 2841000C slti $at, $v0, 12 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (12) ? 1 : 0); if (psx_taken_BFC4099C) goto label_BFC40894; @@ -207623,7 +213538,7 @@ label_BFC409A4: psx_check_interrupts(cpu); /* 0xBFC409A4: 10200005 beq $at, $zero, 0xBFC409BC */ uint32_t psx_brA_BFC409A4 = cpu->gpr[1]; uint32_t psx_brB_BFC409A4 = cpu->gpr[0]; - int psx_taken_BFC409A4 = (psx_brA_BFC409A4 == psx_brB_BFC409A4); + psx_taken_BFC409A4 = (psx_brA_BFC409A4 == psx_brB_BFC409A4); /* 0xBFC409A8: 24010009 addiu $at, $zero, 9 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); if (psx_taken_BFC409A4) goto label_BFC409BC; @@ -207634,7 +213549,7 @@ label_BFC409AC: psx_check_interrupts(cpu); /* 0xBFC409AC: 1041006B beq $v0, $at, 0xBFC40B5C */ uint32_t psx_brA_BFC409AC = cpu->gpr[2]; uint32_t psx_brB_BFC409AC = cpu->gpr[1]; - int psx_taken_BFC409AC = (psx_brA_BFC409AC == psx_brB_BFC409AC); + psx_taken_BFC409AC = (psx_brA_BFC409AC == psx_brB_BFC409AC); /* 0xBFC409B0: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC409B0u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC409AC) goto label_BFC40B5C; @@ -207645,7 +213560,7 @@ label_BFC409B4: psx_check_interrupts(cpu); /* 0xBFC409B4: 10000069 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC409B4 = cpu->gpr[0]; uint32_t psx_brB_BFC409B4 = cpu->gpr[0]; - int psx_taken_BFC409B4 = (psx_brA_BFC409B4 == psx_brB_BFC409B4); + psx_taken_BFC409B4 = (psx_brA_BFC409B4 == psx_brB_BFC409B4); /* 0xBFC409B8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC409B8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC409B4) goto label_BFC40B5C; @@ -207658,7 +213573,7 @@ label_BFC409BC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (12)); /* 0xBFC409C0: 1041FFB4 beq $v0, $at, 0xBFC40894 */ uint32_t psx_brA_BFC409C0 = cpu->gpr[2]; uint32_t psx_brB_BFC409C0 = cpu->gpr[1]; - int psx_taken_BFC409C0 = (psx_brA_BFC409C0 == psx_brB_BFC409C0); + psx_taken_BFC409C0 = (psx_brA_BFC409C0 == psx_brB_BFC409C0); /* 0xBFC409C4: 00000000 nop */ /* nop */ if (psx_taken_BFC409C0) goto label_BFC40894; @@ -207669,7 +213584,7 @@ label_BFC409C8: psx_check_interrupts(cpu); /* 0xBFC409C8: 10000064 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC409C8 = cpu->gpr[0]; uint32_t psx_brB_BFC409C8 = cpu->gpr[0]; - int psx_taken_BFC409C8 = (psx_brA_BFC409C8 == psx_brB_BFC409C8); + psx_taken_BFC409C8 = (psx_brA_BFC409C8 == psx_brB_BFC409C8); /* 0xBFC409CC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC409CCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC409C8) goto label_BFC40B5C; @@ -207682,7 +213597,7 @@ label_BFC409D0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (20)); /* 0xBFC409D4: 1041FFB7 beq $v0, $at, 0xBFC408B4 */ uint32_t psx_brA_BFC409D4 = cpu->gpr[2]; uint32_t psx_brB_BFC409D4 = cpu->gpr[1]; - int psx_taken_BFC409D4 = (psx_brA_BFC409D4 == psx_brB_BFC409D4); + psx_taken_BFC409D4 = (psx_brA_BFC409D4 == psx_brB_BFC409D4); /* 0xBFC409D8: 28410015 slti $at, $v0, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (21) ? 1 : 0); if (psx_taken_BFC409D4) goto label_BFC408B4; @@ -207693,7 +213608,7 @@ label_BFC409DC: psx_check_interrupts(cpu); /* 0xBFC409DC: 1020000E beq $at, $zero, 0xBFC40A18 */ uint32_t psx_brA_BFC409DC = cpu->gpr[1]; uint32_t psx_brB_BFC409DC = cpu->gpr[0]; - int psx_taken_BFC409DC = (psx_brA_BFC409DC == psx_brB_BFC409DC); + psx_taken_BFC409DC = (psx_brA_BFC409DC == psx_brB_BFC409DC); /* 0xBFC409E0: 24010012 addiu $at, $zero, 18 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (18)); if (psx_taken_BFC409DC) goto label_BFC40A18; @@ -207704,7 +213619,7 @@ label_BFC409E4: psx_check_interrupts(cpu); /* 0xBFC409E4: 1041005C beq $v0, $at, 0xBFC40B58 */ uint32_t psx_brA_BFC409E4 = cpu->gpr[2]; uint32_t psx_brB_BFC409E4 = cpu->gpr[1]; - int psx_taken_BFC409E4 = (psx_brA_BFC409E4 == psx_brB_BFC409E4); + psx_taken_BFC409E4 = (psx_brA_BFC409E4 == psx_brB_BFC409E4); /* 0xBFC409E8: 28410013 slti $at, $v0, 19 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (19) ? 1 : 0); if (psx_taken_BFC409E4) goto label_BFC40B58; @@ -207715,7 +213630,7 @@ label_BFC409EC: psx_check_interrupts(cpu); /* 0xBFC409EC: 10200005 beq $at, $zero, 0xBFC40A04 */ uint32_t psx_brA_BFC409EC = cpu->gpr[1]; uint32_t psx_brB_BFC409EC = cpu->gpr[0]; - int psx_taken_BFC409EC = (psx_brA_BFC409EC == psx_brB_BFC409EC); + psx_taken_BFC409EC = (psx_brA_BFC409EC == psx_brB_BFC409EC); /* 0xBFC409F0: 2401000F addiu $at, $zero, 15 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (15)); if (psx_taken_BFC409EC) goto label_BFC40A04; @@ -207726,7 +213641,7 @@ label_BFC409F4: psx_check_interrupts(cpu); /* 0xBFC409F4: 1041FF9B beq $v0, $at, 0xBFC40864 */ uint32_t psx_brA_BFC409F4 = cpu->gpr[2]; uint32_t psx_brB_BFC409F4 = cpu->gpr[1]; - int psx_taken_BFC409F4 = (psx_brA_BFC409F4 == psx_brB_BFC409F4); + psx_taken_BFC409F4 = (psx_brA_BFC409F4 == psx_brB_BFC409F4); /* 0xBFC409F8: 00000000 nop */ /* nop */ if (psx_taken_BFC409F4) goto label_BFC40864; @@ -207737,7 +213652,7 @@ label_BFC409FC: psx_check_interrupts(cpu); /* 0xBFC409FC: 10000057 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC409FC = cpu->gpr[0]; uint32_t psx_brB_BFC409FC = cpu->gpr[0]; - int psx_taken_BFC409FC = (psx_brA_BFC409FC == psx_brB_BFC409FC); + psx_taken_BFC409FC = (psx_brA_BFC409FC == psx_brB_BFC409FC); /* 0xBFC40A00: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40A00u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC409FC) goto label_BFC40B5C; @@ -207750,7 +213665,7 @@ label_BFC40A04: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (19)); /* 0xBFC40A08: 1041FFB2 beq $v0, $at, 0xBFC408D4 */ uint32_t psx_brA_BFC40A08 = cpu->gpr[2]; uint32_t psx_brB_BFC40A08 = cpu->gpr[1]; - int psx_taken_BFC40A08 = (psx_brA_BFC40A08 == psx_brB_BFC40A08); + psx_taken_BFC40A08 = (psx_brA_BFC40A08 == psx_brB_BFC40A08); /* 0xBFC40A0C: 00000000 nop */ /* nop */ if (psx_taken_BFC40A08) goto label_BFC408D4; @@ -207761,7 +213676,7 @@ label_BFC40A10: psx_check_interrupts(cpu); /* 0xBFC40A10: 10000052 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC40A10 = cpu->gpr[0]; uint32_t psx_brB_BFC40A10 = cpu->gpr[0]; - int psx_taken_BFC40A10 = (psx_brA_BFC40A10 == psx_brB_BFC40A10); + psx_taken_BFC40A10 = (psx_brA_BFC40A10 == psx_brB_BFC40A10); /* 0xBFC40A14: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40A14u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40A10) goto label_BFC40B5C; @@ -207774,7 +213689,7 @@ label_BFC40A18: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (22)); /* 0xBFC40A1C: 1041004E beq $v0, $at, 0xBFC40B58 */ uint32_t psx_brA_BFC40A1C = cpu->gpr[2]; uint32_t psx_brB_BFC40A1C = cpu->gpr[1]; - int psx_taken_BFC40A1C = (psx_brA_BFC40A1C == psx_brB_BFC40A1C); + psx_taken_BFC40A1C = (psx_brA_BFC40A1C == psx_brB_BFC40A1C); /* 0xBFC40A20: 28410017 slti $at, $v0, 23 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (23) ? 1 : 0); if (psx_taken_BFC40A1C) goto label_BFC40B58; @@ -207785,7 +213700,7 @@ label_BFC40A24: psx_check_interrupts(cpu); /* 0xBFC40A24: 10200005 beq $at, $zero, 0xBFC40A3C */ uint32_t psx_brA_BFC40A24 = cpu->gpr[1]; uint32_t psx_brB_BFC40A24 = cpu->gpr[0]; - int psx_taken_BFC40A24 = (psx_brA_BFC40A24 == psx_brB_BFC40A24); + psx_taken_BFC40A24 = (psx_brA_BFC40A24 == psx_brB_BFC40A24); /* 0xBFC40A28: 24010015 addiu $at, $zero, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (21)); if (psx_taken_BFC40A24) goto label_BFC40A3C; @@ -207796,7 +213711,7 @@ label_BFC40A2C: psx_check_interrupts(cpu); /* 0xBFC40A2C: 1041004B beq $v0, $at, 0xBFC40B5C */ uint32_t psx_brA_BFC40A2C = cpu->gpr[2]; uint32_t psx_brB_BFC40A2C = cpu->gpr[1]; - int psx_taken_BFC40A2C = (psx_brA_BFC40A2C == psx_brB_BFC40A2C); + psx_taken_BFC40A2C = (psx_brA_BFC40A2C == psx_brB_BFC40A2C); /* 0xBFC40A30: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40A30u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40A2C) goto label_BFC40B5C; @@ -207807,7 +213722,7 @@ label_BFC40A34: psx_check_interrupts(cpu); /* 0xBFC40A34: 10000049 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC40A34 = cpu->gpr[0]; uint32_t psx_brB_BFC40A34 = cpu->gpr[0]; - int psx_taken_BFC40A34 = (psx_brA_BFC40A34 == psx_brB_BFC40A34); + psx_taken_BFC40A34 = (psx_brA_BFC40A34 == psx_brB_BFC40A34); /* 0xBFC40A38: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40A38u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40A34) goto label_BFC40B5C; @@ -207820,7 +213735,7 @@ label_BFC40A3C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (23)); /* 0xBFC40A40: 1041FFA0 beq $v0, $at, 0xBFC408C4 */ uint32_t psx_brA_BFC40A40 = cpu->gpr[2]; uint32_t psx_brB_BFC40A40 = cpu->gpr[1]; - int psx_taken_BFC40A40 = (psx_brA_BFC40A40 == psx_brB_BFC40A40); + psx_taken_BFC40A40 = (psx_brA_BFC40A40 == psx_brB_BFC40A40); /* 0xBFC40A44: 00000000 nop */ /* nop */ if (psx_taken_BFC40A40) goto label_BFC408C4; @@ -207831,7 +213746,7 @@ label_BFC40A48: psx_check_interrupts(cpu); /* 0xBFC40A48: 10000044 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC40A48 = cpu->gpr[0]; uint32_t psx_brB_BFC40A48 = cpu->gpr[0]; - int psx_taken_BFC40A48 = (psx_brA_BFC40A48 == psx_brB_BFC40A48); + psx_taken_BFC40A48 = (psx_brA_BFC40A48 == psx_brB_BFC40A48); /* 0xBFC40A4C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40A4Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40A48) goto label_BFC40B5C; @@ -207844,7 +213759,7 @@ label_BFC40A50: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (246)); /* 0xBFC40A54: 1041FF77 beq $v0, $at, 0xBFC40834 */ uint32_t psx_brA_BFC40A54 = cpu->gpr[2]; uint32_t psx_brB_BFC40A54 = cpu->gpr[1]; - int psx_taken_BFC40A54 = (psx_brA_BFC40A54 == psx_brB_BFC40A54); + psx_taken_BFC40A54 = (psx_brA_BFC40A54 == psx_brB_BFC40A54); /* 0xBFC40A58: 284100F7 slti $at, $v0, 247 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (247) ? 1 : 0); if (psx_taken_BFC40A54) goto label_BFC40834; @@ -207855,7 +213770,7 @@ label_BFC40A5C: psx_check_interrupts(cpu); /* 0xBFC40A5C: 10200020 beq $at, $zero, 0xBFC40AE0 */ uint32_t psx_brA_BFC40A5C = cpu->gpr[1]; uint32_t psx_brB_BFC40A5C = cpu->gpr[0]; - int psx_taken_BFC40A5C = (psx_brA_BFC40A5C == psx_brB_BFC40A5C); + psx_taken_BFC40A5C = (psx_brA_BFC40A5C == psx_brB_BFC40A5C); /* 0xBFC40A60: 240100E6 addiu $at, $zero, 230 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC40A5C) goto label_BFC40AE0; @@ -207866,7 +213781,7 @@ label_BFC40A64: psx_check_interrupts(cpu); /* 0xBFC40A64: 1041FF73 beq $v0, $at, 0xBFC40834 */ uint32_t psx_brA_BFC40A64 = cpu->gpr[2]; uint32_t psx_brB_BFC40A64 = cpu->gpr[1]; - int psx_taken_BFC40A64 = (psx_brA_BFC40A64 == psx_brB_BFC40A64); + psx_taken_BFC40A64 = (psx_brA_BFC40A64 == psx_brB_BFC40A64); /* 0xBFC40A68: 284100E7 slti $at, $v0, 231 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (231) ? 1 : 0); if (psx_taken_BFC40A64) goto label_BFC40834; @@ -207877,7 +213792,7 @@ label_BFC40A6C: psx_check_interrupts(cpu); /* 0xBFC40A6C: 1020000E beq $at, $zero, 0xBFC40AA8 */ uint32_t psx_brA_BFC40A6C = cpu->gpr[1]; uint32_t psx_brB_BFC40A6C = cpu->gpr[0]; - int psx_taken_BFC40A6C = (psx_brA_BFC40A6C == psx_brB_BFC40A6C); + psx_taken_BFC40A6C = (psx_brA_BFC40A6C == psx_brB_BFC40A6C); /* 0xBFC40A70: 24010050 addiu $at, $zero, 80 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (80)); if (psx_taken_BFC40A6C) goto label_BFC40AA8; @@ -207888,7 +213803,7 @@ label_BFC40A74: psx_check_interrupts(cpu); /* 0xBFC40A74: 1041FF83 beq $v0, $at, 0xBFC40884 */ uint32_t psx_brA_BFC40A74 = cpu->gpr[2]; uint32_t psx_brB_BFC40A74 = cpu->gpr[1]; - int psx_taken_BFC40A74 = (psx_brA_BFC40A74 == psx_brB_BFC40A74); + psx_taken_BFC40A74 = (psx_brA_BFC40A74 == psx_brB_BFC40A74); /* 0xBFC40A78: 28410051 slti $at, $v0, 81 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (81) ? 1 : 0); if (psx_taken_BFC40A74) goto label_BFC40884; @@ -207899,7 +213814,7 @@ label_BFC40A7C: psx_check_interrupts(cpu); /* 0xBFC40A7C: 10200005 beq $at, $zero, 0xBFC40A94 */ uint32_t psx_brA_BFC40A7C = cpu->gpr[1]; uint32_t psx_brB_BFC40A7C = cpu->gpr[0]; - int psx_taken_BFC40A7C = (psx_brA_BFC40A7C == psx_brB_BFC40A7C); + psx_taken_BFC40A7C = (psx_brA_BFC40A7C == psx_brB_BFC40A7C); /* 0xBFC40A80: 2401001A addiu $at, $zero, 26 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (26)); if (psx_taken_BFC40A7C) goto label_BFC40A94; @@ -207910,7 +213825,7 @@ label_BFC40A84: psx_check_interrupts(cpu); /* 0xBFC40A84: 10410035 beq $v0, $at, 0xBFC40B5C */ uint32_t psx_brA_BFC40A84 = cpu->gpr[2]; uint32_t psx_brB_BFC40A84 = cpu->gpr[1]; - int psx_taken_BFC40A84 = (psx_brA_BFC40A84 == psx_brB_BFC40A84); + psx_taken_BFC40A84 = (psx_brA_BFC40A84 == psx_brB_BFC40A84); /* 0xBFC40A88: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40A88u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40A84) goto label_BFC40B5C; @@ -207921,7 +213836,7 @@ label_BFC40A8C: psx_check_interrupts(cpu); /* 0xBFC40A8C: 10000033 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC40A8C = cpu->gpr[0]; uint32_t psx_brB_BFC40A8C = cpu->gpr[0]; - int psx_taken_BFC40A8C = (psx_brA_BFC40A8C == psx_brB_BFC40A8C); + psx_taken_BFC40A8C = (psx_brA_BFC40A8C == psx_brB_BFC40A8C); /* 0xBFC40A90: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40A90u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40A8C) goto label_BFC40B5C; @@ -207934,7 +213849,7 @@ label_BFC40A94: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (226)); /* 0xBFC40A98: 1041FF62 beq $v0, $at, 0xBFC40824 */ uint32_t psx_brA_BFC40A98 = cpu->gpr[2]; uint32_t psx_brB_BFC40A98 = cpu->gpr[1]; - int psx_taken_BFC40A98 = (psx_brA_BFC40A98 == psx_brB_BFC40A98); + psx_taken_BFC40A98 = (psx_brA_BFC40A98 == psx_brB_BFC40A98); /* 0xBFC40A9C: 00000000 nop */ /* nop */ if (psx_taken_BFC40A98) goto label_BFC40824; @@ -207945,7 +213860,7 @@ label_BFC40AA0: psx_check_interrupts(cpu); /* 0xBFC40AA0: 1000002E beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC40AA0 = cpu->gpr[0]; uint32_t psx_brB_BFC40AA0 = cpu->gpr[0]; - int psx_taken_BFC40AA0 = (psx_brA_BFC40AA0 == psx_brB_BFC40AA0); + psx_taken_BFC40AA0 = (psx_brA_BFC40AA0 == psx_brB_BFC40AA0); /* 0xBFC40AA4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40AA4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40AA0) goto label_BFC40B5C; @@ -207958,7 +213873,7 @@ label_BFC40AA8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (238)); /* 0xBFC40AAC: 1041FF71 beq $v0, $at, 0xBFC40874 */ uint32_t psx_brA_BFC40AAC = cpu->gpr[2]; uint32_t psx_brB_BFC40AAC = cpu->gpr[1]; - int psx_taken_BFC40AAC = (psx_brA_BFC40AAC == psx_brB_BFC40AAC); + psx_taken_BFC40AAC = (psx_brA_BFC40AAC == psx_brB_BFC40AAC); /* 0xBFC40AB0: 284100EF slti $at, $v0, 239 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (239) ? 1 : 0); if (psx_taken_BFC40AAC) goto label_BFC40874; @@ -207969,7 +213884,7 @@ label_BFC40AB4: psx_check_interrupts(cpu); /* 0xBFC40AB4: 10200005 beq $at, $zero, 0xBFC40ACC */ uint32_t psx_brA_BFC40AB4 = cpu->gpr[1]; uint32_t psx_brB_BFC40AB4 = cpu->gpr[0]; - int psx_taken_BFC40AB4 = (psx_brA_BFC40AB4 == psx_brB_BFC40AB4); + psx_taken_BFC40AB4 = (psx_brA_BFC40AB4 == psx_brB_BFC40AB4); /* 0xBFC40AB8: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC40AB4) goto label_BFC40ACC; @@ -207980,7 +213895,7 @@ label_BFC40ABC: psx_check_interrupts(cpu); /* 0xBFC40ABC: 1041FF5E beq $v0, $at, 0xBFC40838 */ uint32_t psx_brA_BFC40ABC = cpu->gpr[2]; uint32_t psx_brB_BFC40ABC = cpu->gpr[1]; - int psx_taken_BFC40ABC = (psx_brA_BFC40ABC == psx_brB_BFC40ABC); + psx_taken_BFC40ABC = (psx_brA_BFC40ABC == psx_brB_BFC40ABC); /* 0xBFC40AC0: 240F0001 addiu $t7, $zero, 1 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC40ABC) goto label_BFC40838; @@ -207991,7 +213906,7 @@ label_BFC40AC4: psx_check_interrupts(cpu); /* 0xBFC40AC4: 10000025 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC40AC4 = cpu->gpr[0]; uint32_t psx_brB_BFC40AC4 = cpu->gpr[0]; - int psx_taken_BFC40AC4 = (psx_brA_BFC40AC4 == psx_brB_BFC40AC4); + psx_taken_BFC40AC4 = (psx_brA_BFC40AC4 == psx_brB_BFC40AC4); /* 0xBFC40AC8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40AC8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40AC4) goto label_BFC40B5C; @@ -208004,7 +213919,7 @@ label_BFC40ACC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (242)); /* 0xBFC40AD0: 1041FF50 beq $v0, $at, 0xBFC40814 */ uint32_t psx_brA_BFC40AD0 = cpu->gpr[2]; uint32_t psx_brB_BFC40AD0 = cpu->gpr[1]; - int psx_taken_BFC40AD0 = (psx_brA_BFC40AD0 == psx_brB_BFC40AD0); + psx_taken_BFC40AD0 = (psx_brA_BFC40AD0 == psx_brB_BFC40AD0); /* 0xBFC40AD4: 00000000 nop */ /* nop */ if (psx_taken_BFC40AD0) goto label_BFC40814; @@ -208015,7 +213930,7 @@ label_BFC40AD8: psx_check_interrupts(cpu); /* 0xBFC40AD8: 10000020 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC40AD8 = cpu->gpr[0]; uint32_t psx_brB_BFC40AD8 = cpu->gpr[0]; - int psx_taken_BFC40AD8 = (psx_brA_BFC40AD8 == psx_brB_BFC40AD8); + psx_taken_BFC40AD8 = (psx_brA_BFC40AD8 == psx_brB_BFC40AD8); /* 0xBFC40ADC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40ADCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40AD8) goto label_BFC40B5C; @@ -208028,7 +213943,7 @@ label_BFC40AE0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3549)); /* 0xBFC40AE4: 1041001C beq $v0, $at, 0xBFC40B58 */ uint32_t psx_brA_BFC40AE4 = cpu->gpr[2]; uint32_t psx_brB_BFC40AE4 = cpu->gpr[1]; - int psx_taken_BFC40AE4 = (psx_brA_BFC40AE4 == psx_brB_BFC40AE4); + psx_taken_BFC40AE4 = (psx_brA_BFC40AE4 == psx_brB_BFC40AE4); /* 0xBFC40AE8: 28410DDE slti $at, $v0, 3550 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (3550) ? 1 : 0); if (psx_taken_BFC40AE4) goto label_BFC40B58; @@ -208039,7 +213954,7 @@ label_BFC40AEC: psx_check_interrupts(cpu); /* 0xBFC40AEC: 1020000E beq $at, $zero, 0xBFC40B28 */ uint32_t psx_brA_BFC40AEC = cpu->gpr[1]; uint32_t psx_brB_BFC40AEC = cpu->gpr[0]; - int psx_taken_BFC40AEC = (psx_brA_BFC40AEC == psx_brB_BFC40AEC); + psx_taken_BFC40AEC = (psx_brA_BFC40AEC == psx_brB_BFC40AEC); /* 0xBFC40AF0: 240100FE addiu $at, $zero, 254 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (254)); if (psx_taken_BFC40AEC) goto label_BFC40B28; @@ -208050,7 +213965,7 @@ label_BFC40AF4: psx_check_interrupts(cpu); /* 0xBFC40AF4: 1041FF5F beq $v0, $at, 0xBFC40874 */ uint32_t psx_brA_BFC40AF4 = cpu->gpr[2]; uint32_t psx_brB_BFC40AF4 = cpu->gpr[1]; - int psx_taken_BFC40AF4 = (psx_brA_BFC40AF4 == psx_brB_BFC40AF4); + psx_taken_BFC40AF4 = (psx_brA_BFC40AF4 == psx_brB_BFC40AF4); /* 0xBFC40AF8: 284100FF slti $at, $v0, 255 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (255) ? 1 : 0); if (psx_taken_BFC40AF4) goto label_BFC40874; @@ -208061,7 +213976,7 @@ label_BFC40AFC: psx_check_interrupts(cpu); /* 0xBFC40AFC: 10200005 beq $at, $zero, 0xBFC40B14 */ uint32_t psx_brA_BFC40AFC = cpu->gpr[1]; uint32_t psx_brB_BFC40AFC = cpu->gpr[0]; - int psx_taken_BFC40AFC = (psx_brA_BFC40AFC == psx_brB_BFC40AFC); + psx_taken_BFC40AFC = (psx_brA_BFC40AFC == psx_brB_BFC40AFC); /* 0xBFC40B00: 240100FB addiu $at, $zero, 251 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (251)); if (psx_taken_BFC40AFC) goto label_BFC40B14; @@ -208072,7 +213987,7 @@ label_BFC40B04: psx_check_interrupts(cpu); /* 0xBFC40B04: 1041FF4C beq $v0, $at, 0xBFC40838 */ uint32_t psx_brA_BFC40B04 = cpu->gpr[2]; uint32_t psx_brB_BFC40B04 = cpu->gpr[1]; - int psx_taken_BFC40B04 = (psx_brA_BFC40B04 == psx_brB_BFC40B04); + psx_taken_BFC40B04 = (psx_brA_BFC40B04 == psx_brB_BFC40B04); /* 0xBFC40B08: 240F0001 addiu $t7, $zero, 1 */ cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); if (psx_taken_BFC40B04) goto label_BFC40838; @@ -208083,7 +213998,7 @@ label_BFC40B0C: psx_check_interrupts(cpu); /* 0xBFC40B0C: 10000013 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC40B0C = cpu->gpr[0]; uint32_t psx_brB_BFC40B0C = cpu->gpr[0]; - int psx_taken_BFC40B0C = (psx_brA_BFC40B0C == psx_brB_BFC40B0C); + psx_taken_BFC40B0C = (psx_brA_BFC40B0C == psx_brB_BFC40B0C); /* 0xBFC40B10: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40B10u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40B0C) goto label_BFC40B5C; @@ -208096,7 +214011,7 @@ label_BFC40B14: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3276)); /* 0xBFC40B18: 10410010 beq $v0, $at, 0xBFC40B5C */ uint32_t psx_brA_BFC40B18 = cpu->gpr[2]; uint32_t psx_brB_BFC40B18 = cpu->gpr[1]; - int psx_taken_BFC40B18 = (psx_brA_BFC40B18 == psx_brB_BFC40B18); + psx_taken_BFC40B18 = (psx_brA_BFC40B18 == psx_brB_BFC40B18); /* 0xBFC40B1C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40B1Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40B18) goto label_BFC40B5C; @@ -208107,7 +214022,7 @@ label_BFC40B20: psx_check_interrupts(cpu); /* 0xBFC40B20: 1000000E beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC40B20 = cpu->gpr[0]; uint32_t psx_brB_BFC40B20 = cpu->gpr[0]; - int psx_taken_BFC40B20 = (psx_brA_BFC40B20 == psx_brB_BFC40B20); + psx_taken_BFC40B20 = (psx_brA_BFC40B20 == psx_brB_BFC40B20); /* 0xBFC40B24: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40B24u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40B20) goto label_BFC40B5C; @@ -208120,7 +214035,7 @@ label_BFC40B28: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4095)); /* 0xBFC40B2C: 1041000A beq $v0, $at, 0xBFC40B58 */ uint32_t psx_brA_BFC40B2C = cpu->gpr[2]; uint32_t psx_brB_BFC40B2C = cpu->gpr[1]; - int psx_taken_BFC40B2C = (psx_brA_BFC40B2C == psx_brB_BFC40B2C); + psx_taken_BFC40B2C = (psx_brA_BFC40B2C == psx_brB_BFC40B2C); /* 0xBFC40B30: 28411000 slti $at, $v0, 4096 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (4096) ? 1 : 0); if (psx_taken_BFC40B2C) goto label_BFC40B58; @@ -208131,7 +214046,7 @@ label_BFC40B34: psx_check_interrupts(cpu); /* 0xBFC40B34: 10200005 beq $at, $zero, 0xBFC40B4C */ uint32_t psx_brA_BFC40B34 = cpu->gpr[1]; uint32_t psx_brB_BFC40B34 = cpu->gpr[0]; - int psx_taken_BFC40B34 = (psx_brA_BFC40B34 == psx_brB_BFC40B34); + psx_taken_BFC40B34 = (psx_brA_BFC40B34 == psx_brB_BFC40B34); /* 0xBFC40B38: 24010F14 addiu $at, $zero, 3860 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3860)); if (psx_taken_BFC40B34) goto label_BFC40B4C; @@ -208142,7 +214057,7 @@ label_BFC40B3C: psx_check_interrupts(cpu); /* 0xBFC40B3C: 1041FF59 beq $v0, $at, 0xBFC408A4 */ uint32_t psx_brA_BFC40B3C = cpu->gpr[2]; uint32_t psx_brB_BFC40B3C = cpu->gpr[1]; - int psx_taken_BFC40B3C = (psx_brA_BFC40B3C == psx_brB_BFC40B3C); + psx_taken_BFC40B3C = (psx_brA_BFC40B3C == psx_brB_BFC40B3C); /* 0xBFC40B40: 00000000 nop */ /* nop */ if (psx_taken_BFC40B3C) goto label_BFC408A4; @@ -208153,7 +214068,7 @@ label_BFC40B44: psx_check_interrupts(cpu); /* 0xBFC40B44: 10000005 beq $zero, $zero, 0xBFC40B5C */ uint32_t psx_brA_BFC40B44 = cpu->gpr[0]; uint32_t psx_brB_BFC40B44 = cpu->gpr[0]; - int psx_taken_BFC40B44 = (psx_brA_BFC40B44 == psx_brB_BFC40B44); + psx_taken_BFC40B44 = (psx_brA_BFC40B44 == psx_brB_BFC40B44); /* 0xBFC40B48: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40B48u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40B44) goto label_BFC40B5C; @@ -208166,7 +214081,7 @@ label_BFC40B4C: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC40B50: 1041FF69 beq $v0, $at, 0xBFC408F8 */ uint32_t psx_brA_BFC40B50 = cpu->gpr[2]; uint32_t psx_brB_BFC40B50 = cpu->gpr[1]; - int psx_taken_BFC40B50 = (psx_brA_BFC40B50 == psx_brB_BFC40B50); + psx_taken_BFC40B50 = (psx_brA_BFC40B50 == psx_brB_BFC40B50); /* 0xBFC40B54: 3C04F000 lui $a0, 0xF000 */ cpu->gpr[4] = 0xF0000000u; if (psx_taken_BFC40B50) goto label_BFC408F8; @@ -208206,6 +214121,38 @@ void func_1FC40B68(CPUState* cpu) { default: break; } } + int psx_taken_BFC40B88 = 0; + int psx_taken_BFC40B98 = 0; + int psx_taken_BFC40BAC = 0; + int psx_taken_BFC40BB4 = 0; + int psx_taken_BFC40BBC = 0; + int psx_taken_BFC40BC4 = 0; + int psx_taken_BFC40BCC = 0; + int psx_taken_BFC40BFC = 0; + int psx_taken_BFC40C20 = 0; + int psx_taken_BFC40C4C = 0; + int psx_taken_BFC40C68 = 0; + int psx_taken_BFC40CD0 = 0; + int psx_taken_BFC40CF4 = 0; + int psx_taken_BFC40D0C = 0; + int psx_taken_BFC40D18 = 0; + int psx_taken_BFC40D20 = 0; + int psx_taken_BFC40D28 = 0; + int psx_taken_BFC40D30 = 0; + int psx_taken_BFC40D38 = 0; + int psx_taken_BFC40D40 = 0; + int psx_taken_BFC40D4C = 0; + int psx_taken_BFC40D54 = 0; + int psx_taken_BFC40D60 = 0; + int psx_taken_BFC40D84 = 0; + int psx_taken_BFC40D90 = 0; + int psx_taken_BFC40D98 = 0; + int psx_taken_BFC40DA4 = 0; + int psx_taken_BFC40DAC = 0; + int psx_taken_BFC40DB4 = 0; + int psx_taken_BFC40DBC = 0; + int psx_taken_BFC40DC8 = 0; + int psx_taken_BFC40DD0 = 0; label_BFC40B68: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -208229,7 +214176,7 @@ label_BFC40B68: cpu->gpr[3] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[5] + (0))); /* 0xBFC40B88: 14410063 bne $v0, $at, 0xBFC40D18 */ uint32_t psx_brA_BFC40B88 = cpu->gpr[2]; uint32_t psx_brB_BFC40B88 = cpu->gpr[1]; - int psx_taken_BFC40B88 = (psx_brA_BFC40B88 != psx_brB_BFC40B88); + psx_taken_BFC40B88 = (psx_brA_BFC40B88 != psx_brB_BFC40B88); /* 0xBFC40B8C: 24010CCC addiu $at, $zero, 3276 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3276)); if (psx_taken_BFC40B88) goto label_BFC40D18; @@ -208250,7 +214197,7 @@ label_BFC40B98: psx_check_interrupts(cpu); /* 0xBFC40B98: 10000090 beq $zero, $zero, 0xBFC40DDC */ uint32_t psx_brA_BFC40B98 = cpu->gpr[0]; uint32_t psx_brB_BFC40B98 = cpu->gpr[0]; - int psx_taken_BFC40B98 = (psx_brA_BFC40B98 == psx_brB_BFC40B98); + psx_taken_BFC40B98 = (psx_brA_BFC40B98 == psx_brB_BFC40B98); /* 0xBFC40B9C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40B9Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40B98) goto label_BFC40DDC; @@ -208267,7 +214214,7 @@ label_BFC40BA0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC40BAC: 10410009 beq $v0, $at, 0xBFC40BD4 */ uint32_t psx_brA_BFC40BAC = cpu->gpr[2]; uint32_t psx_brB_BFC40BAC = cpu->gpr[1]; - int psx_taken_BFC40BAC = (psx_brA_BFC40BAC == psx_brB_BFC40BAC); + psx_taken_BFC40BAC = (psx_brA_BFC40BAC == psx_brB_BFC40BAC); /* 0xBFC40BB0: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC40BAC) goto label_BFC40BD4; @@ -208278,7 +214225,7 @@ label_BFC40BB4: psx_check_interrupts(cpu); /* 0xBFC40BB4: 10410007 beq $v0, $at, 0xBFC40BD4 */ uint32_t psx_brA_BFC40BB4 = cpu->gpr[2]; uint32_t psx_brB_BFC40BB4 = cpu->gpr[1]; - int psx_taken_BFC40BB4 = (psx_brA_BFC40BB4 == psx_brB_BFC40BB4); + psx_taken_BFC40BB4 = (psx_brA_BFC40BB4 == psx_brB_BFC40BB4); /* 0xBFC40BB8: 24010003 addiu $at, $zero, 3 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); if (psx_taken_BFC40BB4) goto label_BFC40BD4; @@ -208289,7 +214236,7 @@ label_BFC40BBC: psx_check_interrupts(cpu); /* 0xBFC40BBC: 10410005 beq $v0, $at, 0xBFC40BD4 */ uint32_t psx_brA_BFC40BBC = cpu->gpr[2]; uint32_t psx_brB_BFC40BBC = cpu->gpr[1]; - int psx_taken_BFC40BBC = (psx_brA_BFC40BBC == psx_brB_BFC40BBC); + psx_taken_BFC40BBC = (psx_brA_BFC40BBC == psx_brB_BFC40BBC); /* 0xBFC40BC0: 24010004 addiu $at, $zero, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC40BBC) goto label_BFC40BD4; @@ -208300,7 +214247,7 @@ label_BFC40BC4: psx_check_interrupts(cpu); /* 0xBFC40BC4: 10410003 beq $v0, $at, 0xBFC40BD4 */ uint32_t psx_brA_BFC40BC4 = cpu->gpr[2]; uint32_t psx_brB_BFC40BC4 = cpu->gpr[1]; - int psx_taken_BFC40BC4 = (psx_brA_BFC40BC4 == psx_brB_BFC40BC4); + psx_taken_BFC40BC4 = (psx_brA_BFC40BC4 == psx_brB_BFC40BC4); /* 0xBFC40BC8: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC40BC4) goto label_BFC40BD4; @@ -208311,7 +214258,7 @@ label_BFC40BCC: psx_check_interrupts(cpu); /* 0xBFC40BCC: 14410005 bne $v0, $at, 0xBFC40BE4 */ uint32_t psx_brA_BFC40BCC = cpu->gpr[2]; uint32_t psx_brB_BFC40BCC = cpu->gpr[1]; - int psx_taken_BFC40BCC = (psx_brA_BFC40BCC != psx_brB_BFC40BCC); + psx_taken_BFC40BCC = (psx_brA_BFC40BCC != psx_brB_BFC40BCC); /* 0xBFC40BD0: 3402FFFF ori $v0, $zero, 0xFFFF */ cpu->gpr[2] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC40BCC) goto label_BFC40BE4; @@ -208353,7 +214300,7 @@ label_BFC40BFC: psx_check_interrupts(cpu); /* 0xBFC40BFC: 10000077 beq $zero, $zero, 0xBFC40DDC */ uint32_t psx_brA_BFC40BFC = cpu->gpr[0]; uint32_t psx_brB_BFC40BFC = cpu->gpr[0]; - int psx_taken_BFC40BFC = (psx_brA_BFC40BFC == psx_brB_BFC40BFC); + psx_taken_BFC40BFC = (psx_brA_BFC40BFC == psx_brB_BFC40BFC); /* 0xBFC40C00: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40C00u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40BFC) goto label_BFC40DDC; @@ -208384,7 +214331,7 @@ label_BFC40C20: psx_check_interrupts(cpu); /* 0xBFC40C20: 1000006E beq $zero, $zero, 0xBFC40DDC */ uint32_t psx_brA_BFC40C20 = cpu->gpr[0]; uint32_t psx_brB_BFC40C20 = cpu->gpr[0]; - int psx_taken_BFC40C20 = (psx_brA_BFC40C20 == psx_brB_BFC40C20); + psx_taken_BFC40C20 = (psx_brA_BFC40C20 == psx_brB_BFC40C20); /* 0xBFC40C24: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40C24u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40C20) goto label_BFC40DDC; @@ -208419,7 +214366,7 @@ label_BFC40C4C: psx_check_interrupts(cpu); /* 0xBFC40C4C: 10000063 beq $zero, $zero, 0xBFC40DDC */ uint32_t psx_brA_BFC40C4C = cpu->gpr[0]; uint32_t psx_brB_BFC40C4C = cpu->gpr[0]; - int psx_taken_BFC40C4C = (psx_brA_BFC40C4C == psx_brB_BFC40C4C); + psx_taken_BFC40C4C = (psx_brA_BFC40C4C == psx_brB_BFC40C4C); /* 0xBFC40C50: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40C50u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40C4C) goto label_BFC40DDC; @@ -208440,7 +214387,7 @@ label_BFC40C54: cpu->gpr[1] = 0x800E0000u; /* 0xBFC40C68: 1000005B beq $zero, $zero, 0xBFC40DD8 */ uint32_t psx_brA_BFC40C68 = cpu->gpr[0]; uint32_t psx_brB_BFC40C68 = cpu->gpr[0]; - int psx_taken_BFC40C68 = (psx_brA_BFC40C68 == psx_brB_BFC40C68); + psx_taken_BFC40C68 = (psx_brA_BFC40C68 == psx_brB_BFC40C68); /* 0xBFC40C6C: AC22EE54 sw $v0, -4524($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4524)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40C6Cu); return; } g_debug_last_store_pc = 0xBFC40C6Cu; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC40C68) goto label_BFC40DD8; @@ -208504,7 +214451,7 @@ label_BFC40CA8: cpu->gpr[11] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[5] + (0))); /* 0xBFC40CD0: 1464FFF5 bne $v1, $a0, 0xBFC40CA8 */ uint32_t psx_brA_BFC40CD0 = cpu->gpr[3]; uint32_t psx_brB_BFC40CD0 = cpu->gpr[4]; - int psx_taken_BFC40CD0 = (psx_brA_BFC40CD0 != psx_brB_BFC40CD0); + psx_taken_BFC40CD0 = (psx_brA_BFC40CD0 != psx_brB_BFC40CD0); /* 0xBFC40CD4: A04BFFFF sb $t3, -1($v0) */ g_debug_last_store_pc = 0xBFC40CD4u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-1)), (uint8_t)(cpu->gpr[11] & 0xFFu)); if (psx_taken_BFC40CD0) goto label_BFC40CA8; @@ -208535,7 +214482,7 @@ label_BFC40CF4: psx_check_interrupts(cpu); /* 0xBFC40CF4: 10000039 beq $zero, $zero, 0xBFC40DDC */ uint32_t psx_brA_BFC40CF4 = cpu->gpr[0]; uint32_t psx_brB_BFC40CF4 = cpu->gpr[0]; - int psx_taken_BFC40CF4 = (psx_brA_BFC40CF4 == psx_brB_BFC40CF4); + psx_taken_BFC40CF4 = (psx_brA_BFC40CF4 == psx_brB_BFC40CF4); /* 0xBFC40CF8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40CF8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40CF4) goto label_BFC40DDC; @@ -208565,7 +214512,7 @@ label_BFC40D0C: psx_check_interrupts(cpu); /* 0xBFC40D0C: 10000033 beq $zero, $zero, 0xBFC40DDC */ uint32_t psx_brA_BFC40D0C = cpu->gpr[0]; uint32_t psx_brB_BFC40D0C = cpu->gpr[0]; - int psx_taken_BFC40D0C = (psx_brA_BFC40D0C == psx_brB_BFC40D0C); + psx_taken_BFC40D0C = (psx_brA_BFC40D0C == psx_brB_BFC40D0C); /* 0xBFC40D10: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40D10u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40D0C) goto label_BFC40DDC; @@ -208583,7 +214530,7 @@ label_BFC40D18: psx_check_interrupts(cpu); /* 0xBFC40D18: 1041FFCE beq $v0, $at, 0xBFC40C54 */ uint32_t psx_brA_BFC40D18 = cpu->gpr[2]; uint32_t psx_brB_BFC40D18 = cpu->gpr[1]; - int psx_taken_BFC40D18 = (psx_brA_BFC40D18 == psx_brB_BFC40D18); + psx_taken_BFC40D18 = (psx_brA_BFC40D18 == psx_brB_BFC40D18); /* 0xBFC40D1C: 28410CCD slti $at, $v0, 3277 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (3277) ? 1 : 0); if (psx_taken_BFC40D18) goto label_BFC40C54; @@ -208594,7 +214541,7 @@ label_BFC40D20: psx_check_interrupts(cpu); /* 0xBFC40D20: 1020001F beq $at, $zero, 0xBFC40DA0 */ uint32_t psx_brA_BFC40D20 = cpu->gpr[1]; uint32_t psx_brB_BFC40D20 = cpu->gpr[0]; - int psx_taken_BFC40D20 = (psx_brA_BFC40D20 == psx_brB_BFC40D20); + psx_taken_BFC40D20 = (psx_brA_BFC40D20 == psx_brB_BFC40D20); /* 0xBFC40D24: 24010016 addiu $at, $zero, 22 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (22)); if (psx_taken_BFC40D20) goto label_BFC40DA0; @@ -208605,7 +214552,7 @@ label_BFC40D28: psx_check_interrupts(cpu); /* 0xBFC40D28: 1041FF9D beq $v0, $at, 0xBFC40BA0 */ uint32_t psx_brA_BFC40D28 = cpu->gpr[2]; uint32_t psx_brB_BFC40D28 = cpu->gpr[1]; - int psx_taken_BFC40D28 = (psx_brA_BFC40D28 == psx_brB_BFC40D28); + psx_taken_BFC40D28 = (psx_brA_BFC40D28 == psx_brB_BFC40D28); /* 0xBFC40D2C: 28410017 slti $at, $v0, 23 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (23) ? 1 : 0); if (psx_taken_BFC40D28) goto label_BFC40BA0; @@ -208616,7 +214563,7 @@ label_BFC40D30: psx_check_interrupts(cpu); /* 0xBFC40D30: 10200016 beq $at, $zero, 0xBFC40D8C */ uint32_t psx_brA_BFC40D30 = cpu->gpr[1]; uint32_t psx_brB_BFC40D30 = cpu->gpr[0]; - int psx_taken_BFC40D30 = (psx_brA_BFC40D30 == psx_brB_BFC40D30); + psx_taken_BFC40D30 = (psx_brA_BFC40D30 == psx_brB_BFC40D30); /* 0xBFC40D34: 24010009 addiu $at, $zero, 9 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); if (psx_taken_BFC40D30) goto label_BFC40D8C; @@ -208627,7 +214574,7 @@ label_BFC40D38: psx_check_interrupts(cpu); /* 0xBFC40D38: 1041FF99 beq $v0, $at, 0xBFC40BA0 */ uint32_t psx_brA_BFC40D38 = cpu->gpr[2]; uint32_t psx_brB_BFC40D38 = cpu->gpr[1]; - int psx_taken_BFC40D38 = (psx_brA_BFC40D38 == psx_brB_BFC40D38); + psx_taken_BFC40D38 = (psx_brA_BFC40D38 == psx_brB_BFC40D38); /* 0xBFC40D3C: 2841000A slti $at, $v0, 10 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (10) ? 1 : 0); if (psx_taken_BFC40D38) goto label_BFC40BA0; @@ -208638,7 +214585,7 @@ label_BFC40D40: psx_check_interrupts(cpu); /* 0xBFC40D40: 10200007 beq $at, $zero, 0xBFC40D60 */ uint32_t psx_brA_BFC40D40 = cpu->gpr[1]; uint32_t psx_brB_BFC40D40 = cpu->gpr[0]; - int psx_taken_BFC40D40 = (psx_brA_BFC40D40 == psx_brB_BFC40D40); + psx_taken_BFC40D40 = (psx_brA_BFC40D40 == psx_brB_BFC40D40); /* 0xBFC40D44: 24010015 addiu $at, $zero, 21 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (21)); if (psx_taken_BFC40D40) goto label_BFC40D60; @@ -208651,7 +214598,7 @@ label_BFC40D48: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (8)); /* 0xBFC40D4C: 1044FF94 beq $v0, $a0, 0xBFC40BA0 */ uint32_t psx_brA_BFC40D4C = cpu->gpr[2]; uint32_t psx_brB_BFC40D4C = cpu->gpr[4]; - int psx_taken_BFC40D4C = (psx_brA_BFC40D4C == psx_brB_BFC40D4C); + psx_taken_BFC40D4C = (psx_brA_BFC40D4C == psx_brB_BFC40D4C); /* 0xBFC40D50: 00000000 nop */ /* nop */ if (psx_taken_BFC40D4C) goto label_BFC40BA0; @@ -208662,7 +214609,7 @@ label_BFC40D54: psx_check_interrupts(cpu); /* 0xBFC40D54: 10000005 beq $zero, $zero, 0xBFC40D6C */ uint32_t psx_brA_BFC40D54 = cpu->gpr[0]; uint32_t psx_brB_BFC40D54 = cpu->gpr[0]; - int psx_taken_BFC40D54 = (psx_brA_BFC40D54 == psx_brB_BFC40D54); + psx_taken_BFC40D54 = (psx_brA_BFC40D54 == psx_brB_BFC40D54); /* 0xBFC40D58: 3402FFFF ori $v0, $zero, 0xFFFF */ cpu->gpr[2] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC40D54) goto label_BFC40D6C; @@ -208680,7 +214627,7 @@ label_BFC40D60: psx_check_interrupts(cpu); /* 0xBFC40D60: 1041FF8F beq $v0, $at, 0xBFC40BA0 */ uint32_t psx_brA_BFC40D60 = cpu->gpr[2]; uint32_t psx_brB_BFC40D60 = cpu->gpr[1]; - int psx_taken_BFC40D60 = (psx_brA_BFC40D60 == psx_brB_BFC40D60); + psx_taken_BFC40D60 = (psx_brA_BFC40D60 == psx_brB_BFC40D60); /* 0xBFC40D64: 00000000 nop */ /* nop */ if (psx_taken_BFC40D60) goto label_BFC40BA0; @@ -208716,7 +214663,7 @@ label_BFC40D84: psx_check_interrupts(cpu); /* 0xBFC40D84: 10000015 beq $zero, $zero, 0xBFC40DDC */ uint32_t psx_brA_BFC40D84 = cpu->gpr[0]; uint32_t psx_brB_BFC40D84 = cpu->gpr[0]; - int psx_taken_BFC40D84 = (psx_brA_BFC40D84 == psx_brB_BFC40D84); + psx_taken_BFC40D84 = (psx_brA_BFC40D84 == psx_brB_BFC40D84); /* 0xBFC40D88: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40D88u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40D84) goto label_BFC40DDC; @@ -208729,7 +214676,7 @@ label_BFC40D8C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (26)); /* 0xBFC40D90: 1041FFB7 beq $v0, $at, 0xBFC40C70 */ uint32_t psx_brA_BFC40D90 = cpu->gpr[2]; uint32_t psx_brB_BFC40D90 = cpu->gpr[1]; - int psx_taken_BFC40D90 = (psx_brA_BFC40D90 == psx_brB_BFC40D90); + psx_taken_BFC40D90 = (psx_brA_BFC40D90 == psx_brB_BFC40D90); /* 0xBFC40D94: 00000000 nop */ /* nop */ if (psx_taken_BFC40D90) goto label_BFC40C70; @@ -208740,7 +214687,7 @@ label_BFC40D98: psx_check_interrupts(cpu); /* 0xBFC40D98: 1000FFF4 beq $zero, $zero, 0xBFC40D6C */ uint32_t psx_brA_BFC40D98 = cpu->gpr[0]; uint32_t psx_brB_BFC40D98 = cpu->gpr[0]; - int psx_taken_BFC40D98 = (psx_brA_BFC40D98 == psx_brB_BFC40D98); + psx_taken_BFC40D98 = (psx_brA_BFC40D98 == psx_brB_BFC40D98); /* 0xBFC40D9C: 3402FFFF ori $v0, $zero, 0xFFFF */ cpu->gpr[2] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC40D98) goto label_BFC40D6C; @@ -208753,7 +214700,7 @@ label_BFC40DA0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4095)); /* 0xBFC40DA4: 1041FF97 beq $v0, $at, 0xBFC40C04 */ uint32_t psx_brA_BFC40DA4 = cpu->gpr[2]; uint32_t psx_brB_BFC40DA4 = cpu->gpr[1]; - int psx_taken_BFC40DA4 = (psx_brA_BFC40DA4 == psx_brB_BFC40DA4); + psx_taken_BFC40DA4 = (psx_brA_BFC40DA4 == psx_brB_BFC40DA4); /* 0xBFC40DA8: 28411000 slti $at, $v0, 4096 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[2] < (4096) ? 1 : 0); if (psx_taken_BFC40DA4) goto label_BFC40C04; @@ -208764,7 +214711,7 @@ label_BFC40DAC: psx_check_interrupts(cpu); /* 0xBFC40DAC: 10200005 beq $at, $zero, 0xBFC40DC4 */ uint32_t psx_brA_BFC40DAC = cpu->gpr[1]; uint32_t psx_brB_BFC40DAC = cpu->gpr[0]; - int psx_taken_BFC40DAC = (psx_brA_BFC40DAC == psx_brB_BFC40DAC); + psx_taken_BFC40DAC = (psx_brA_BFC40DAC == psx_brB_BFC40DAC); /* 0xBFC40DB0: 24010DDD addiu $at, $zero, 3549 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3549)); if (psx_taken_BFC40DAC) goto label_BFC40DC4; @@ -208775,7 +214722,7 @@ label_BFC40DB4: psx_check_interrupts(cpu); /* 0xBFC40DB4: 1041FF9C beq $v0, $at, 0xBFC40C28 */ uint32_t psx_brA_BFC40DB4 = cpu->gpr[2]; uint32_t psx_brB_BFC40DB4 = cpu->gpr[1]; - int psx_taken_BFC40DB4 = (psx_brA_BFC40DB4 == psx_brB_BFC40DB4); + psx_taken_BFC40DB4 = (psx_brA_BFC40DB4 == psx_brB_BFC40DB4); /* 0xBFC40DB8: 00000000 nop */ /* nop */ if (psx_taken_BFC40DB4) goto label_BFC40C28; @@ -208786,7 +214733,7 @@ label_BFC40DBC: psx_check_interrupts(cpu); /* 0xBFC40DBC: 1000FFEB beq $zero, $zero, 0xBFC40D6C */ uint32_t psx_brA_BFC40DBC = cpu->gpr[0]; uint32_t psx_brB_BFC40DBC = cpu->gpr[0]; - int psx_taken_BFC40DBC = (psx_brA_BFC40DBC == psx_brB_BFC40DBC); + psx_taken_BFC40DBC = (psx_brA_BFC40DBC == psx_brB_BFC40DBC); /* 0xBFC40DC0: 3402FFFF ori $v0, $zero, 0xFFFF */ cpu->gpr[2] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC40DBC) goto label_BFC40D6C; @@ -208799,7 +214746,7 @@ label_BFC40DC4: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC40DC8: 1041FFCD beq $v0, $at, 0xBFC40D00 */ uint32_t psx_brA_BFC40DC8 = cpu->gpr[2]; uint32_t psx_brB_BFC40DC8 = cpu->gpr[1]; - int psx_taken_BFC40DC8 = (psx_brA_BFC40DC8 == psx_brB_BFC40DC8); + psx_taken_BFC40DC8 = (psx_brA_BFC40DC8 == psx_brB_BFC40DC8); /* 0xBFC40DCC: 3C04F000 lui $a0, 0xF000 */ cpu->gpr[4] = 0xF0000000u; if (psx_taken_BFC40DC8) goto label_BFC40D00; @@ -208810,7 +214757,7 @@ label_BFC40DD0: psx_check_interrupts(cpu); /* 0xBFC40DD0: 1000FFE6 beq $zero, $zero, 0xBFC40D6C */ uint32_t psx_brA_BFC40DD0 = cpu->gpr[0]; uint32_t psx_brB_BFC40DD0 = cpu->gpr[0]; - int psx_taken_BFC40DD0 = (psx_brA_BFC40DD0 == psx_brB_BFC40DD0); + psx_taken_BFC40DD0 = (psx_brA_BFC40DD0 == psx_brB_BFC40DD0); /* 0xBFC40DD4: 3402FFFF ori $v0, $zero, 0xFFFF */ cpu->gpr[2] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC40DD0) goto label_BFC40D6C; @@ -208845,6 +214792,12 @@ void func_1FC40DE8(CPUState* cpu) { default: break; } } + int psx_taken_BFC40E1C = 0; + int psx_taken_BFC40E58 = 0; + int psx_taken_BFC40E90 = 0; + int psx_taken_BFC40EC0 = 0; + int psx_taken_BFC40ECC = 0; + int psx_taken_BFC40EE8 = 0; label_BFC40DE8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -208878,7 +214831,7 @@ label_BFC40DE8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (26)); /* 0xBFC40E1C: 1441002B bne $v0, $at, 0xBFC40ECC */ uint32_t psx_brA_BFC40E1C = cpu->gpr[2]; uint32_t psx_brB_BFC40E1C = cpu->gpr[1]; - int psx_taken_BFC40E1C = (psx_brA_BFC40E1C != psx_brB_BFC40E1C); + psx_taken_BFC40E1C = (psx_brA_BFC40E1C != psx_brB_BFC40E1C); /* 0xBFC40E20: 24010CCC addiu $at, $zero, 3276 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3276)); if (psx_taken_BFC40E1C) goto label_BFC40ECC; @@ -208915,7 +214868,7 @@ label_BFC40E24: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[9] < (4) ? 1 : 0); /* 0xBFC40E58: 10200010 beq $at, $zero, 0xBFC40E9C */ uint32_t psx_brA_BFC40E58 = cpu->gpr[1]; uint32_t psx_brB_BFC40E58 = cpu->gpr[0]; - int psx_taken_BFC40E58 = (psx_brA_BFC40E58 == psx_brB_BFC40E58); + psx_taken_BFC40E58 = (psx_brA_BFC40E58 == psx_brB_BFC40E58); /* 0xBFC40E5C: 3418FFFF ori $t8, $zero, 0xFFFF */ cpu->gpr[24] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC40E58) goto label_BFC40E9C; @@ -208950,7 +214903,7 @@ label_BFC40E60: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[15] < (4) ? 1 : 0); /* 0xBFC40E90: 1420FFF3 bne $at, $zero, 0xBFC40E60 */ uint32_t psx_brA_BFC40E90 = cpu->gpr[1]; uint32_t psx_brB_BFC40E90 = cpu->gpr[0]; - int psx_taken_BFC40E90 = (psx_brA_BFC40E90 != psx_brB_BFC40E90); + psx_taken_BFC40E90 = (psx_brA_BFC40E90 != psx_brB_BFC40E90); /* 0xBFC40E94: 00000000 nop */ /* nop */ if (psx_taken_BFC40E90) goto label_BFC40E60; @@ -208992,7 +214945,7 @@ label_BFC40EC0: psx_check_interrupts(cpu); /* 0xBFC40EC0: 10000019 beq $zero, $zero, 0xBFC40F28 */ uint32_t psx_brA_BFC40EC0 = cpu->gpr[0]; uint32_t psx_brB_BFC40EC0 = cpu->gpr[0]; - int psx_taken_BFC40EC0 = (psx_brA_BFC40EC0 == psx_brB_BFC40EC0); + psx_taken_BFC40EC0 = (psx_brA_BFC40EC0 == psx_brB_BFC40EC0); /* 0xBFC40EC4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40EC4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40EC0) goto label_BFC40F28; @@ -209010,7 +214963,7 @@ label_BFC40ECC: psx_check_interrupts(cpu); /* 0xBFC40ECC: 14410008 bne $v0, $at, 0xBFC40EF0 */ uint32_t psx_brA_BFC40ECC = cpu->gpr[2]; uint32_t psx_brB_BFC40ECC = cpu->gpr[1]; - int psx_taken_BFC40ECC = (psx_brA_BFC40ECC != psx_brB_BFC40ECC); + psx_taken_BFC40ECC = (psx_brA_BFC40ECC != psx_brB_BFC40ECC); /* 0xBFC40ED0: 00000000 nop */ /* nop */ if (psx_taken_BFC40ECC) goto label_BFC40EF0; @@ -209031,7 +214984,7 @@ label_BFC40ED4: cpu->gpr[1] = 0x800E0000u; /* 0xBFC40EE8: 1000000E beq $zero, $zero, 0xBFC40F24 */ uint32_t psx_brA_BFC40EE8 = cpu->gpr[0]; uint32_t psx_brB_BFC40EE8 = cpu->gpr[0]; - int psx_taken_BFC40EE8 = (psx_brA_BFC40EE8 == psx_brB_BFC40EE8); + psx_taken_BFC40EE8 = (psx_brA_BFC40EE8 == psx_brB_BFC40EE8); /* 0xBFC40EEC: AC22EE54 sw $v0, -4524($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4524)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40EECu); return; } g_debug_last_store_pc = 0xBFC40EECu; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC40EE8) goto label_BFC40F24; @@ -209100,6 +215053,22 @@ void func_1FC40F34(CPUState* cpu) { default: break; } } + int psx_taken_BFC40F58 = 0; + int psx_taken_BFC40F64 = 0; + int psx_taken_BFC40F78 = 0; + int psx_taken_BFC40F80 = 0; + int psx_taken_BFC40F90 = 0; + int psx_taken_BFC40F9C = 0; + int psx_taken_BFC40FA8 = 0; + int psx_taken_BFC40FB0 = 0; + int psx_taken_BFC40FB8 = 0; + int psx_taken_BFC40FC8 = 0; + int psx_taken_BFC40FD4 = 0; + int psx_taken_BFC40FDC = 0; + int psx_taken_BFC40FE4 = 0; + int psx_taken_BFC40FEC = 0; + int psx_taken_BFC40FF4 = 0; + int psx_taken_BFC41004 = 0; label_BFC40F34: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(11u); @@ -209125,7 +215094,7 @@ label_BFC40F34: cpu->gpr[1] = 0x800E0000u; /* 0xBFC40F58: 1044000B beq $v0, $a0, 0xBFC40F88 */ uint32_t psx_brA_BFC40F58 = cpu->gpr[2]; uint32_t psx_brB_BFC40F58 = cpu->gpr[4]; - int psx_taken_BFC40F58 = (psx_brA_BFC40F58 == psx_brB_BFC40F58); + psx_taken_BFC40F58 = (psx_brA_BFC40F58 == psx_brB_BFC40F58); /* 0xBFC40F5C: A026EEC0 sb $a2, -4416($at) */ g_debug_last_store_pc = 0xBFC40F5Cu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[1] + (-4416)), (uint8_t)(cpu->gpr[6] & 0xFFu)); if (psx_taken_BFC40F58) goto label_BFC40F88; @@ -209138,7 +215107,7 @@ label_BFC40F60: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (251)); /* 0xBFC40F64: 10450008 beq $v0, $a1, 0xBFC40F88 */ uint32_t psx_brA_BFC40F64 = cpu->gpr[2]; uint32_t psx_brB_BFC40F64 = cpu->gpr[5]; - int psx_taken_BFC40F64 = (psx_brA_BFC40F64 == psx_brB_BFC40F64); + psx_taken_BFC40F64 = (psx_brA_BFC40F64 == psx_brB_BFC40F64); /* 0xBFC40F68: 00000000 nop */ /* nop */ if (psx_taken_BFC40F64) goto label_BFC40F88; @@ -209155,7 +215124,7 @@ label_BFC40F6C: /* nop */ /* 0xBFC40F78: 10640003 beq $v1, $a0, 0xBFC40F88 */ uint32_t psx_brA_BFC40F78 = cpu->gpr[3]; uint32_t psx_brB_BFC40F78 = cpu->gpr[4]; - int psx_taken_BFC40F78 = (psx_brA_BFC40F78 == psx_brB_BFC40F78); + psx_taken_BFC40F78 = (psx_brA_BFC40F78 == psx_brB_BFC40F78); /* 0xBFC40F7C: 00000000 nop */ /* nop */ if (psx_taken_BFC40F78) goto label_BFC40F88; @@ -209166,7 +215135,7 @@ label_BFC40F80: psx_check_interrupts(cpu); /* 0xBFC40F80: 14650005 bne $v1, $a1, 0xBFC40F98 */ uint32_t psx_brA_BFC40F80 = cpu->gpr[3]; uint32_t psx_brB_BFC40F80 = cpu->gpr[5]; - int psx_taken_BFC40F80 = (psx_brA_BFC40F80 != psx_brB_BFC40F80); + psx_taken_BFC40F80 = (psx_brA_BFC40F80 != psx_brB_BFC40F80); /* 0xBFC40F84: 00000000 nop */ /* nop */ if (psx_taken_BFC40F80) goto label_BFC40F98; @@ -209187,7 +215156,7 @@ label_BFC40F90: psx_check_interrupts(cpu); /* 0xBFC40F90: 10000023 beq $zero, $zero, 0xBFC41020 */ uint32_t psx_brA_BFC40F90 = cpu->gpr[0]; uint32_t psx_brB_BFC40F90 = cpu->gpr[0]; - int psx_taken_BFC40F90 = (psx_brA_BFC40F90 == psx_brB_BFC40F90); + psx_taken_BFC40F90 = (psx_brA_BFC40F90 == psx_brB_BFC40F90); /* 0xBFC40F94: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40F94u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40F90) goto label_BFC41020; @@ -209200,7 +215169,7 @@ label_BFC40F98: cpu->gpr[4] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC40F9C: 10440008 beq $v0, $a0, 0xBFC40FC0 */ uint32_t psx_brA_BFC40F9C = cpu->gpr[2]; uint32_t psx_brB_BFC40F9C = cpu->gpr[4]; - int psx_taken_BFC40F9C = (psx_brA_BFC40F9C == psx_brB_BFC40F9C); + psx_taken_BFC40F9C = (psx_brA_BFC40F9C == psx_brB_BFC40F9C); /* 0xBFC40FA0: 00000000 nop */ /* nop */ if (psx_taken_BFC40F9C) goto label_BFC40FC0; @@ -209213,7 +215182,7 @@ label_BFC40FA4: cpu->gpr[5] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); /* 0xBFC40FA8: 10450005 beq $v0, $a1, 0xBFC40FC0 */ uint32_t psx_brA_BFC40FA8 = cpu->gpr[2]; uint32_t psx_brB_BFC40FA8 = cpu->gpr[5]; - int psx_taken_BFC40FA8 = (psx_brA_BFC40FA8 == psx_brB_BFC40FA8); + psx_taken_BFC40FA8 = (psx_brA_BFC40FA8 == psx_brB_BFC40FA8); /* 0xBFC40FAC: 00000000 nop */ /* nop */ if (psx_taken_BFC40FA8) goto label_BFC40FC0; @@ -209224,7 +215193,7 @@ label_BFC40FB0: psx_check_interrupts(cpu); /* 0xBFC40FB0: 10640003 beq $v1, $a0, 0xBFC40FC0 */ uint32_t psx_brA_BFC40FB0 = cpu->gpr[3]; uint32_t psx_brB_BFC40FB0 = cpu->gpr[4]; - int psx_taken_BFC40FB0 = (psx_brA_BFC40FB0 == psx_brB_BFC40FB0); + psx_taken_BFC40FB0 = (psx_brA_BFC40FB0 == psx_brB_BFC40FB0); /* 0xBFC40FB4: 00000000 nop */ /* nop */ if (psx_taken_BFC40FB0) goto label_BFC40FC0; @@ -209235,7 +215204,7 @@ label_BFC40FB8: psx_check_interrupts(cpu); /* 0xBFC40FB8: 14650006 bne $v1, $a1, 0xBFC40FD4 */ uint32_t psx_brA_BFC40FB8 = cpu->gpr[3]; uint32_t psx_brB_BFC40FB8 = cpu->gpr[5]; - int psx_taken_BFC40FB8 = (psx_brA_BFC40FB8 != psx_brB_BFC40FB8); + psx_taken_BFC40FB8 = (psx_brA_BFC40FB8 != psx_brB_BFC40FB8); /* 0xBFC40FBC: 24010003 addiu $at, $zero, 3 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); if (psx_taken_BFC40FB8) goto label_BFC40FD4; @@ -209256,7 +215225,7 @@ label_BFC40FC8: psx_check_interrupts(cpu); /* 0xBFC40FC8: 10000015 beq $zero, $zero, 0xBFC41020 */ uint32_t psx_brA_BFC40FC8 = cpu->gpr[0]; uint32_t psx_brB_BFC40FC8 = cpu->gpr[0]; - int psx_taken_BFC40FC8 = (psx_brA_BFC40FC8 == psx_brB_BFC40FC8); + psx_taken_BFC40FC8 = (psx_brA_BFC40FC8 == psx_brB_BFC40FC8); /* 0xBFC40FCC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC40FCCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC40FC8) goto label_BFC41020; @@ -209274,7 +215243,7 @@ label_BFC40FD4: psx_check_interrupts(cpu); /* 0xBFC40FD4: 10410009 beq $v0, $at, 0xBFC40FFC */ uint32_t psx_brA_BFC40FD4 = cpu->gpr[2]; uint32_t psx_brB_BFC40FD4 = cpu->gpr[1]; - int psx_taken_BFC40FD4 = (psx_brA_BFC40FD4 == psx_brB_BFC40FD4); + psx_taken_BFC40FD4 = (psx_brA_BFC40FD4 == psx_brB_BFC40FD4); /* 0xBFC40FD8: 24010004 addiu $at, $zero, 4 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); if (psx_taken_BFC40FD4) goto label_BFC40FFC; @@ -209285,7 +215254,7 @@ label_BFC40FDC: psx_check_interrupts(cpu); /* 0xBFC40FDC: 10410007 beq $v0, $at, 0xBFC40FFC */ uint32_t psx_brA_BFC40FDC = cpu->gpr[2]; uint32_t psx_brB_BFC40FDC = cpu->gpr[1]; - int psx_taken_BFC40FDC = (psx_brA_BFC40FDC == psx_brB_BFC40FDC); + psx_taken_BFC40FDC = (psx_brA_BFC40FDC == psx_brB_BFC40FDC); /* 0xBFC40FE0: 24010005 addiu $at, $zero, 5 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); if (psx_taken_BFC40FDC) goto label_BFC40FFC; @@ -209296,7 +215265,7 @@ label_BFC40FE4: psx_check_interrupts(cpu); /* 0xBFC40FE4: 10410005 beq $v0, $at, 0xBFC40FFC */ uint32_t psx_brA_BFC40FE4 = cpu->gpr[2]; uint32_t psx_brB_BFC40FE4 = cpu->gpr[1]; - int psx_taken_BFC40FE4 = (psx_brA_BFC40FE4 == psx_brB_BFC40FE4); + psx_taken_BFC40FE4 = (psx_brA_BFC40FE4 == psx_brB_BFC40FE4); /* 0xBFC40FE8: 24010009 addiu $at, $zero, 9 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); if (psx_taken_BFC40FE4) goto label_BFC40FFC; @@ -209307,7 +215276,7 @@ label_BFC40FEC: psx_check_interrupts(cpu); /* 0xBFC40FEC: 10410003 beq $v0, $at, 0xBFC40FFC */ uint32_t psx_brA_BFC40FEC = cpu->gpr[2]; uint32_t psx_brB_BFC40FEC = cpu->gpr[1]; - int psx_taken_BFC40FEC = (psx_brA_BFC40FEC == psx_brB_BFC40FEC); + psx_taken_BFC40FEC = (psx_brA_BFC40FEC == psx_brB_BFC40FEC); /* 0xBFC40FF0: 3401FFFF ori $at, $zero, 0xFFFF */ cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC40FEC) goto label_BFC40FFC; @@ -209318,7 +215287,7 @@ label_BFC40FF4: psx_check_interrupts(cpu); /* 0xBFC40FF4: 14410006 bne $v0, $at, 0xBFC41010 */ uint32_t psx_brA_BFC40FF4 = cpu->gpr[2]; uint32_t psx_brB_BFC40FF4 = cpu->gpr[1]; - int psx_taken_BFC40FF4 = (psx_brA_BFC40FF4 != psx_brB_BFC40FF4); + psx_taken_BFC40FF4 = (psx_brA_BFC40FF4 != psx_brB_BFC40FF4); /* 0xBFC40FF8: 3C04F000 lui $a0, 0xF000 */ cpu->gpr[4] = 0xF0000000u; if (psx_taken_BFC40FF4) goto label_BFC41010; @@ -209339,7 +215308,7 @@ label_BFC41004: psx_check_interrupts(cpu); /* 0xBFC41004: 10000006 beq $zero, $zero, 0xBFC41020 */ uint32_t psx_brA_BFC41004 = cpu->gpr[0]; uint32_t psx_brB_BFC41004 = cpu->gpr[0]; - int psx_taken_BFC41004 = (psx_brA_BFC41004 == psx_brB_BFC41004); + psx_taken_BFC41004 = (psx_brA_BFC41004 == psx_brB_BFC41004); /* 0xBFC41008: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41008u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC41004) goto label_BFC41020; @@ -209396,6 +215365,32 @@ void func_1FC4102C(CPUState* cpu) { default: break; } } + int psx_taken_BFC4103C = 0; + int psx_taken_BFC41048 = 0; + int psx_taken_BFC4105C = 0; + int psx_taken_BFC41064 = 0; + int psx_taken_BFC41078 = 0; + int psx_taken_BFC4109C = 0; + int psx_taken_BFC410A4 = 0; + int psx_taken_BFC410AC = 0; + int psx_taken_BFC410C4 = 0; + int psx_taken_BFC410CC = 0; + int psx_taken_BFC410D8 = 0; + int psx_taken_BFC410E0 = 0; + int psx_taken_BFC410F4 = 0; + int psx_taken_BFC410FC = 0; + int psx_taken_BFC41110 = 0; + int psx_taken_BFC41138 = 0; + int psx_taken_BFC41140 = 0; + int psx_taken_BFC41148 = 0; + int psx_taken_BFC41160 = 0; + int psx_taken_BFC41168 = 0; + int psx_taken_BFC41174 = 0; + int psx_taken_BFC4117C = 0; + int psx_taken_BFC41188 = 0; + int psx_taken_BFC411AC = 0; + int psx_taken_BFC411C0 = 0; + int psx_taken_BFC411D8 = 0; label_BFC4102C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -209411,7 +215406,7 @@ label_BFC4102C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (246)); /* 0xBFC4103C: 1062000B beq $v1, $v0, 0xBFC4106C */ uint32_t psx_brA_BFC4103C = cpu->gpr[3]; uint32_t psx_brB_BFC4103C = cpu->gpr[2]; - int psx_taken_BFC4103C = (psx_brA_BFC4103C == psx_brB_BFC4103C); + psx_taken_BFC4103C = (psx_brA_BFC4103C == psx_brB_BFC4103C); /* 0xBFC41040: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41040u); return; } g_debug_last_store_pc = 0xBFC41040u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC4103C) goto label_BFC4106C; @@ -209424,7 +215419,7 @@ label_BFC41044: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (251)); /* 0xBFC41048: 10610008 beq $v1, $at, 0xBFC4106C */ uint32_t psx_brA_BFC41048 = cpu->gpr[3]; uint32_t psx_brB_BFC41048 = cpu->gpr[1]; - int psx_taken_BFC41048 = (psx_brA_BFC41048 == psx_brB_BFC41048); + psx_taken_BFC41048 = (psx_brA_BFC41048 == psx_brB_BFC41048); /* 0xBFC4104C: 00000000 nop */ /* nop */ if (psx_taken_BFC41048) goto label_BFC4106C; @@ -209441,7 +215436,7 @@ label_BFC41050: /* nop */ /* 0xBFC4105C: 11C20003 beq $t6, $v0, 0xBFC4106C */ uint32_t psx_brA_BFC4105C = cpu->gpr[14]; uint32_t psx_brB_BFC4105C = cpu->gpr[2]; - int psx_taken_BFC4105C = (psx_brA_BFC4105C == psx_brB_BFC4105C); + psx_taken_BFC4105C = (psx_brA_BFC4105C == psx_brB_BFC4105C); /* 0xBFC41060: 240100FB addiu $at, $zero, 251 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (251)); if (psx_taken_BFC4105C) goto label_BFC4106C; @@ -209452,7 +215447,7 @@ label_BFC41064: psx_check_interrupts(cpu); /* 0xBFC41064: 15C10016 bne $t6, $at, 0xBFC410C0 */ uint32_t psx_brA_BFC41064 = cpu->gpr[14]; uint32_t psx_brB_BFC41064 = cpu->gpr[1]; - int psx_taken_BFC41064 = (psx_brA_BFC41064 != psx_brB_BFC41064); + psx_taken_BFC41064 = (psx_brA_BFC41064 != psx_brB_BFC41064); /* 0xBFC41068: 00000000 nop */ /* nop */ if (psx_taken_BFC41064) goto label_BFC410C0; @@ -209469,7 +215464,7 @@ label_BFC4106C: /* nop */ /* 0xBFC41078: 05E00008 bltz $t7, 0xBFC4109C */ uint32_t psx_brA_BFC41078 = cpu->gpr[15]; - int psx_taken_BFC41078 = ((int32_t)psx_brA_BFC41078 < 0); + psx_taken_BFC41078 = ((int32_t)psx_brA_BFC41078 < 0); /* 0xBFC4107C: 00000000 nop */ /* nop */ if (psx_taken_BFC41078) goto label_BFC4109C; @@ -209505,7 +215500,7 @@ label_BFC4109C: psx_check_interrupts(cpu); /* 0xBFC4109C: 10620003 beq $v1, $v0, 0xBFC410AC */ uint32_t psx_brA_BFC4109C = cpu->gpr[3]; uint32_t psx_brB_BFC4109C = cpu->gpr[2]; - int psx_taken_BFC4109C = (psx_brA_BFC4109C == psx_brB_BFC4109C); + psx_taken_BFC4109C = (psx_brA_BFC4109C == psx_brB_BFC4109C); /* 0xBFC410A0: 240100FB addiu $at, $zero, 251 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (251)); if (psx_taken_BFC4109C) goto label_BFC410AC; @@ -209516,7 +215511,7 @@ label_BFC410A4: psx_check_interrupts(cpu); /* 0xBFC410A4: 14610004 bne $v1, $at, 0xBFC410B8 */ uint32_t psx_brA_BFC410A4 = cpu->gpr[3]; uint32_t psx_brB_BFC410A4 = cpu->gpr[1]; - int psx_taken_BFC410A4 = (psx_brA_BFC410A4 != psx_brB_BFC410A4); + psx_taken_BFC410A4 = (psx_brA_BFC410A4 != psx_brB_BFC410A4); /* 0xBFC410A8: 3418FFFF ori $t8, $zero, 0xFFFF */ cpu->gpr[24] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC410A4) goto label_BFC410B8; @@ -209527,7 +215522,7 @@ label_BFC410AC: psx_check_interrupts(cpu); /* 0xBFC410AC: 10000004 beq $zero, $zero, 0xBFC410C0 */ uint32_t psx_brA_BFC410AC = cpu->gpr[0]; uint32_t psx_brB_BFC410AC = cpu->gpr[0]; - int psx_taken_BFC410AC = (psx_brA_BFC410AC == psx_brB_BFC410AC); + psx_taken_BFC410AC = (psx_brA_BFC410AC == psx_brB_BFC410AC); /* 0xBFC410B0: 3403FFFF ori $v1, $zero, 0xFFFF */ cpu->gpr[3] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC410AC) goto label_BFC410C0; @@ -209556,7 +215551,7 @@ label_BFC410C0: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC410C4: 14620003 bne $v1, $v0, 0xBFC410D4 */ uint32_t psx_brA_BFC410C4 = cpu->gpr[3]; uint32_t psx_brB_BFC410C4 = cpu->gpr[2]; - int psx_taken_BFC410C4 = (psx_brA_BFC410C4 != psx_brB_BFC410C4); + psx_taken_BFC410C4 = (psx_brA_BFC410C4 != psx_brB_BFC410C4); /* 0xBFC410C8: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC410C4) goto label_BFC410D4; @@ -209567,7 +215562,7 @@ label_BFC410CC: psx_check_interrupts(cpu); /* 0xBFC410CC: 10000013 beq $zero, $zero, 0xBFC4111C */ uint32_t psx_brA_BFC410CC = cpu->gpr[0]; uint32_t psx_brB_BFC410CC = cpu->gpr[0]; - int psx_taken_BFC410CC = (psx_brA_BFC410CC == psx_brB_BFC410CC); + psx_taken_BFC410CC = (psx_brA_BFC410CC == psx_brB_BFC410CC); /* 0xBFC410D0: AC23EE54 sw $v1, -4524($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4524)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC410D0u); return; } g_debug_last_store_pc = 0xBFC410D0u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC410CC) goto label_BFC4111C; @@ -209580,7 +215575,7 @@ label_BFC410D4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); /* 0xBFC410D8: 14610003 bne $v1, $at, 0xBFC410E8 */ uint32_t psx_brA_BFC410D8 = cpu->gpr[3]; uint32_t psx_brB_BFC410D8 = cpu->gpr[1]; - int psx_taken_BFC410D8 = (psx_brA_BFC410D8 != psx_brB_BFC410D8); + psx_taken_BFC410D8 = (psx_brA_BFC410D8 != psx_brB_BFC410D8); /* 0xBFC410DC: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC410D8) goto label_BFC410E8; @@ -209591,7 +215586,7 @@ label_BFC410E0: psx_check_interrupts(cpu); /* 0xBFC410E0: 1000000E beq $zero, $zero, 0xBFC4111C */ uint32_t psx_brA_BFC410E0 = cpu->gpr[0]; uint32_t psx_brB_BFC410E0 = cpu->gpr[0]; - int psx_taken_BFC410E0 = (psx_brA_BFC410E0 == psx_brB_BFC410E0); + psx_taken_BFC410E0 = (psx_brA_BFC410E0 == psx_brB_BFC410E0); /* 0xBFC410E4: AC23EE54 sw $v1, -4524($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4524)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC410E4u); return; } g_debug_last_store_pc = 0xBFC410E4u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC410E0) goto label_BFC4111C; @@ -209608,7 +215603,7 @@ label_BFC410E8: /* nop */ /* 0xBFC410F4: 17220003 bne $t9, $v0, 0xBFC41104 */ uint32_t psx_brA_BFC410F4 = cpu->gpr[25]; uint32_t psx_brB_BFC410F4 = cpu->gpr[2]; - int psx_taken_BFC410F4 = (psx_brA_BFC410F4 != psx_brB_BFC410F4); + psx_taken_BFC410F4 = (psx_brA_BFC410F4 != psx_brB_BFC410F4); /* 0xBFC410F8: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC410F4) goto label_BFC41104; @@ -209619,7 +215614,7 @@ label_BFC410FC: psx_check_interrupts(cpu); /* 0xBFC410FC: 10000007 beq $zero, $zero, 0xBFC4111C */ uint32_t psx_brA_BFC410FC = cpu->gpr[0]; uint32_t psx_brB_BFC410FC = cpu->gpr[0]; - int psx_taken_BFC410FC = (psx_brA_BFC410FC == psx_brB_BFC410FC); + psx_taken_BFC410FC = (psx_brA_BFC410FC == psx_brB_BFC410FC); /* 0xBFC41100: AC23EE54 sw $v1, -4524($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4524)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41100u); return; } g_debug_last_store_pc = 0xBFC41100u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC410FC) goto label_BFC4111C; @@ -209636,7 +215631,7 @@ label_BFC41104: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); /* 0xBFC41110: 15010012 bne $t0, $at, 0xBFC4115C */ uint32_t psx_brA_BFC41110 = cpu->gpr[8]; uint32_t psx_brB_BFC41110 = cpu->gpr[1]; - int psx_taken_BFC41110 = (psx_brA_BFC41110 != psx_brB_BFC41110); + psx_taken_BFC41110 = (psx_brA_BFC41110 != psx_brB_BFC41110); /* 0xBFC41114: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC41110) goto label_BFC4115C; @@ -209674,7 +215669,7 @@ label_BFC4112C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); /* 0xBFC41138: 10620003 beq $v1, $v0, 0xBFC41148 */ uint32_t psx_brA_BFC41138 = cpu->gpr[3]; uint32_t psx_brB_BFC41138 = cpu->gpr[2]; - int psx_taken_BFC41138 = (psx_brA_BFC41138 == psx_brB_BFC41138); + psx_taken_BFC41138 = (psx_brA_BFC41138 == psx_brB_BFC41138); /* 0xBFC4113C: 240100EB addiu $at, $zero, 235 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC41138) goto label_BFC41148; @@ -209685,7 +215680,7 @@ label_BFC41140: psx_check_interrupts(cpu); /* 0xBFC41140: 14610004 bne $v1, $at, 0xBFC41154 */ uint32_t psx_brA_BFC41140 = cpu->gpr[3]; uint32_t psx_brB_BFC41140 = cpu->gpr[1]; - int psx_taken_BFC41140 = (psx_brA_BFC41140 != psx_brB_BFC41140); + psx_taken_BFC41140 = (psx_brA_BFC41140 != psx_brB_BFC41140); /* 0xBFC41144: 3409FFFF ori $t1, $zero, 0xFFFF */ cpu->gpr[9] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC41140) goto label_BFC41154; @@ -209696,7 +215691,7 @@ label_BFC41148: psx_check_interrupts(cpu); /* 0xBFC41148: 10000004 beq $zero, $zero, 0xBFC4115C */ uint32_t psx_brA_BFC41148 = cpu->gpr[0]; uint32_t psx_brB_BFC41148 = cpu->gpr[0]; - int psx_taken_BFC41148 = (psx_brA_BFC41148 == psx_brB_BFC41148); + psx_taken_BFC41148 = (psx_brA_BFC41148 == psx_brB_BFC41148); /* 0xBFC4114C: 3403FFFF ori $v1, $zero, 0xFFFF */ cpu->gpr[3] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC41148) goto label_BFC4115C; @@ -209725,7 +215720,7 @@ label_BFC4115C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (3)); /* 0xBFC41160: 14610003 bne $v1, $at, 0xBFC41170 */ uint32_t psx_brA_BFC41160 = cpu->gpr[3]; uint32_t psx_brB_BFC41160 = cpu->gpr[1]; - int psx_taken_BFC41160 = (psx_brA_BFC41160 != psx_brB_BFC41160); + psx_taken_BFC41160 = (psx_brA_BFC41160 != psx_brB_BFC41160); /* 0xBFC41164: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC41160) goto label_BFC41170; @@ -209736,7 +215731,7 @@ label_BFC41168: psx_check_interrupts(cpu); /* 0xBFC41168: 1000000A beq $zero, $zero, 0xBFC41194 */ uint32_t psx_brA_BFC41168 = cpu->gpr[0]; uint32_t psx_brB_BFC41168 = cpu->gpr[0]; - int psx_taken_BFC41168 = (psx_brA_BFC41168 == psx_brB_BFC41168); + psx_taken_BFC41168 = (psx_brA_BFC41168 == psx_brB_BFC41168); /* 0xBFC4116C: AC23EE54 sw $v1, -4524($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4524)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC4116Cu); return; } g_debug_last_store_pc = 0xBFC4116Cu; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC41168) goto label_BFC41194; @@ -209749,7 +215744,7 @@ label_BFC41170: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (4)); /* 0xBFC41174: 14610003 bne $v1, $at, 0xBFC41184 */ uint32_t psx_brA_BFC41174 = cpu->gpr[3]; uint32_t psx_brB_BFC41174 = cpu->gpr[1]; - int psx_taken_BFC41174 = (psx_brA_BFC41174 != psx_brB_BFC41174); + psx_taken_BFC41174 = (psx_brA_BFC41174 != psx_brB_BFC41174); /* 0xBFC41178: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC41174) goto label_BFC41184; @@ -209760,7 +215755,7 @@ label_BFC4117C: psx_check_interrupts(cpu); /* 0xBFC4117C: 10000005 beq $zero, $zero, 0xBFC41194 */ uint32_t psx_brA_BFC4117C = cpu->gpr[0]; uint32_t psx_brB_BFC4117C = cpu->gpr[0]; - int psx_taken_BFC4117C = (psx_brA_BFC4117C == psx_brB_BFC4117C); + psx_taken_BFC4117C = (psx_brA_BFC4117C == psx_brB_BFC4117C); /* 0xBFC41180: AC23EE54 sw $v1, -4524($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4524)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41180u); return; } g_debug_last_store_pc = 0xBFC41180u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC4117C) goto label_BFC41194; @@ -209773,7 +215768,7 @@ label_BFC41184: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (5)); /* 0xBFC41188: 1461000A bne $v1, $at, 0xBFC411B4 */ uint32_t psx_brA_BFC41188 = cpu->gpr[3]; uint32_t psx_brB_BFC41188 = cpu->gpr[1]; - int psx_taken_BFC41188 = (psx_brA_BFC41188 != psx_brB_BFC41188); + psx_taken_BFC41188 = (psx_brA_BFC41188 != psx_brB_BFC41188); /* 0xBFC4118C: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC41188) goto label_BFC411B4; @@ -209809,7 +215804,7 @@ label_BFC411A4: cpu->gpr[1] = 0x800E0000u; /* 0xBFC411AC: 10000010 beq $zero, $zero, 0xBFC411F0 */ uint32_t psx_brA_BFC411AC = cpu->gpr[0]; uint32_t psx_brB_BFC411AC = cpu->gpr[0]; - int psx_taken_BFC411AC = (psx_brA_BFC411AC == psx_brB_BFC411AC); + psx_taken_BFC411AC = (psx_brA_BFC411AC == psx_brB_BFC411AC); /* 0xBFC411B0: AC23EE54 sw $v1, -4524($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4524)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC411B0u); return; } g_debug_last_store_pc = 0xBFC411B0u; cpu->write_word(psx_addr, cpu->gpr[3]); } if (psx_taken_BFC411AC) goto label_BFC411F0; @@ -209826,7 +215821,7 @@ label_BFC411B4: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC411C0: 14610008 bne $v1, $at, 0xBFC411E4 */ uint32_t psx_brA_BFC411C0 = cpu->gpr[3]; uint32_t psx_brB_BFC411C0 = cpu->gpr[1]; - int psx_taken_BFC411C0 = (psx_brA_BFC411C0 != psx_brB_BFC411C0); + psx_taken_BFC411C0 = (psx_brA_BFC411C0 != psx_brB_BFC411C0); /* 0xBFC411C4: 3C04F000 lui $a0, 0xF000 */ cpu->gpr[4] = 0xF0000000u; if (psx_taken_BFC411C0) goto label_BFC411E4; @@ -209851,7 +215846,7 @@ label_BFC411D8: psx_check_interrupts(cpu); /* 0xBFC411D8: 10000006 beq $zero, $zero, 0xBFC411F4 */ uint32_t psx_brA_BFC411D8 = cpu->gpr[0]; uint32_t psx_brB_BFC411D8 = cpu->gpr[0]; - int psx_taken_BFC411D8 = (psx_brA_BFC411D8 == psx_brB_BFC411D8); + psx_taken_BFC411D8 = (psx_brA_BFC411D8 == psx_brB_BFC411D8); /* 0xBFC411DC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC411DCu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC411D8) goto label_BFC411F4; @@ -209904,6 +215899,8 @@ void func_1FC41200(CPUState* cpu) { default: break; } } + int psx_taken_BFC41204 = 0; + int psx_taken_BFC4120C = 0; label_BFC41200: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(3u); @@ -209913,7 +215910,7 @@ label_BFC41200: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC41204: 14800003 bne $a0, $zero, 0xBFC41214 */ uint32_t psx_brA_BFC41204 = cpu->gpr[4]; uint32_t psx_brB_BFC41204 = cpu->gpr[0]; - int psx_taken_BFC41204 = (psx_brA_BFC41204 != psx_brB_BFC41204); + psx_taken_BFC41204 = (psx_brA_BFC41204 != psx_brB_BFC41204); /* 0xBFC41208: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41208u); return; } g_debug_last_store_pc = 0xBFC41208u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC41204) goto label_BFC41214; @@ -209924,7 +215921,7 @@ label_BFC4120C: psx_check_interrupts(cpu); /* 0xBFC4120C: 10000002 beq $zero, $zero, 0xBFC41218 */ uint32_t psx_brA_BFC4120C = cpu->gpr[0]; uint32_t psx_brB_BFC4120C = cpu->gpr[0]; - int psx_taken_BFC4120C = (psx_brA_BFC4120C == psx_brB_BFC4120C); + psx_taken_BFC4120C = (psx_brA_BFC4120C == psx_brB_BFC4120C); /* 0xBFC41210: 24020015 addiu $v0, $zero, 21 */ cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[0] + (21)); if (psx_taken_BFC4120C) goto label_BFC41218; @@ -209990,6 +215987,9 @@ void func_1FC41258(CPUState* cpu) { default: break; } } + int psx_taken_BFC412B0 = 0; + int psx_taken_BFC412C4 = 0; + int psx_taken_BFC412D8 = 0; label_BFC41258: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(17u); @@ -210046,7 +216046,7 @@ label_BFC4129C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (4)); /* 0xBFC412B0: 1444FFFA bne $v0, $a0, 0xBFC4129C */ uint32_t psx_brA_BFC412B0 = cpu->gpr[2]; uint32_t psx_brB_BFC412B0 = cpu->gpr[4]; - int psx_taken_BFC412B0 = (psx_brA_BFC412B0 != psx_brB_BFC412B0); + psx_taken_BFC412B0 = (psx_brA_BFC412B0 != psx_brB_BFC412B0); /* 0xBFC412B4: 00000000 nop */ /* nop */ if (psx_taken_BFC412B0) goto label_BFC4129C; @@ -210063,7 +216063,7 @@ label_BFC412B8: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC412C4: 10410006 beq $v0, $at, 0xBFC412E0 */ uint32_t psx_brA_BFC412C4 = cpu->gpr[2]; uint32_t psx_brB_BFC412C4 = cpu->gpr[1]; - int psx_taken_BFC412C4 = (psx_brA_BFC412C4 == psx_brB_BFC412C4); + psx_taken_BFC412C4 = (psx_brA_BFC412C4 == psx_brB_BFC412C4); /* 0xBFC412C8: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC412C4) goto label_BFC412E0; @@ -210080,7 +216080,7 @@ label_BFC412CC: cpu->gpr[1] = 0x800E0000u; /* 0xBFC412D8: 10000004 beq $zero, $zero, 0xBFC412EC */ uint32_t psx_brA_BFC412D8 = cpu->gpr[0]; uint32_t psx_brB_BFC412D8 = cpu->gpr[0]; - int psx_taken_BFC412D8 = (psx_brA_BFC412D8 == psx_brB_BFC412D8); + psx_taken_BFC412D8 = (psx_brA_BFC412D8 == psx_brB_BFC412D8); /* 0xBFC412DC: AC22EE58 sw $v0, -4520($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4520)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC412DCu); return; } g_debug_last_store_pc = 0xBFC412DCu; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC412D8) goto label_BFC412EC; @@ -210134,6 +216134,9 @@ void func_1FC4130C(CPUState* cpu) { default: break; } } + int psx_taken_BFC41354 = 0; + int psx_taken_BFC41368 = 0; + int psx_taken_BFC4137C = 0; label_BFC4130C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -210182,7 +216185,7 @@ label_BFC4132C: cpu->gpr[25] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[2] + (0))); /* 0xBFC41354: 1485FFF5 bne $a0, $a1, 0xBFC4132C */ uint32_t psx_brA_BFC41354 = cpu->gpr[4]; uint32_t psx_brB_BFC41354 = cpu->gpr[5]; - int psx_taken_BFC41354 = (psx_brA_BFC41354 != psx_brB_BFC41354); + psx_taken_BFC41354 = (psx_brA_BFC41354 != psx_brB_BFC41354); /* 0xBFC41358: A079FFFF sb $t9, -1($v1) */ g_debug_last_store_pc = 0xBFC41358u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[3] + (-1)), (uint8_t)(cpu->gpr[25] & 0xFFu)); if (psx_taken_BFC41354) goto label_BFC4132C; @@ -210199,7 +216202,7 @@ label_BFC4135C: cpu->gpr[1] = cpu->gpr[0] | 0xFFFFu; /* 0xBFC41368: 10410006 beq $v0, $at, 0xBFC41384 */ uint32_t psx_brA_BFC41368 = cpu->gpr[2]; uint32_t psx_brB_BFC41368 = cpu->gpr[1]; - int psx_taken_BFC41368 = (psx_brA_BFC41368 == psx_brB_BFC41368); + psx_taken_BFC41368 = (psx_brA_BFC41368 == psx_brB_BFC41368); /* 0xBFC4136C: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC41368) goto label_BFC41384; @@ -210216,7 +216219,7 @@ label_BFC41370: cpu->gpr[1] = 0x800E0000u; /* 0xBFC4137C: 10000004 beq $zero, $zero, 0xBFC41390 */ uint32_t psx_brA_BFC4137C = cpu->gpr[0]; uint32_t psx_brB_BFC4137C = cpu->gpr[0]; - int psx_taken_BFC4137C = (psx_brA_BFC4137C == psx_brB_BFC4137C); + psx_taken_BFC4137C = (psx_brA_BFC4137C == psx_brB_BFC4137C); /* 0xBFC41380: AC22EE58 sw $v0, -4520($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4520)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41380u); return; } g_debug_last_store_pc = 0xBFC41380u; cpu->write_word(psx_addr, cpu->gpr[2]); } if (psx_taken_BFC4137C) goto label_BFC41390; @@ -210327,6 +216330,7 @@ void func_1FC413F4(CPUState* cpu) { default: break; } } + int psx_taken_BFC41424 = 0; label_BFC413F4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -210363,7 +216367,7 @@ label_BFC4141C: cpu->gpr[2] = (uint32_t)((int32_t)cpu->gpr[2] + (1)); /* 0xBFC41424: 1443FFFD bne $v0, $v1, 0xBFC4141C */ uint32_t psx_brA_BFC41424 = cpu->gpr[2]; uint32_t psx_brB_BFC41424 = cpu->gpr[3]; - int psx_taken_BFC41424 = (psx_brA_BFC41424 != psx_brB_BFC41424); + psx_taken_BFC41424 = (psx_brA_BFC41424 != psx_brB_BFC41424); /* 0xBFC41428: 00000000 nop */ /* nop */ if (psx_taken_BFC41424) goto label_BFC4141C; @@ -210412,6 +216416,12 @@ void func_1FC41458(CPUState* cpu) { default: break; } } + int psx_taken_BFC41484 = 0; + int psx_taken_BFC41498 = 0; + int psx_taken_BFC414A8 = 0; + int psx_taken_BFC414C8 = 0; + int psx_taken_BFC414DC = 0; + int psx_taken_BFC414EC = 0; label_BFC41458: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -210447,7 +216457,7 @@ label_BFC41468: cpu->gpr[24] = cpu->gpr[15] & 0x100u; /* 0xBFC41484: 17000012 bne $t8, $zero, 0xBFC414D0 */ uint32_t psx_brA_BFC41484 = cpu->gpr[24]; uint32_t psx_brB_BFC41484 = cpu->gpr[0]; - int psx_taken_BFC41484 = (psx_brA_BFC41484 != psx_brB_BFC41484); + psx_taken_BFC41484 = (psx_brA_BFC41484 != psx_brB_BFC41484); /* 0xBFC41488: 00000000 nop */ /* nop */ if (psx_taken_BFC41484) goto label_BFC414D0; @@ -210464,7 +216474,7 @@ label_BFC4148C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (254)); /* 0xBFC41498: 17210006 bne $t9, $at, 0xBFC414B4 */ uint32_t psx_brA_BFC41498 = cpu->gpr[25]; uint32_t psx_brB_BFC41498 = cpu->gpr[1]; - int psx_taken_BFC41498 = (psx_brA_BFC41498 != psx_brB_BFC41498); + psx_taken_BFC41498 = (psx_brA_BFC41498 != psx_brB_BFC41498); /* 0xBFC4149C: 240900E6 addiu $t1, $zero, 230 */ cpu->gpr[9] = (uint32_t)((int32_t)cpu->gpr[0] + (230)); if (psx_taken_BFC41498) goto label_BFC414B4; @@ -210479,7 +216489,7 @@ label_BFC414A0: cpu->gpr[1] = 0x800E0000u; /* 0xBFC414A8: 10000004 beq $zero, $zero, 0xBFC414BC */ uint32_t psx_brA_BFC414A8 = cpu->gpr[0]; uint32_t psx_brB_BFC414A8 = cpu->gpr[0]; - int psx_taken_BFC414A8 = (psx_brA_BFC414A8 == psx_brB_BFC414A8); + psx_taken_BFC414A8 = (psx_brA_BFC414A8 == psx_brB_BFC414A8); /* 0xBFC414AC: AC28EE54 sw $t0, -4524($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4524)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC414ACu); return; } g_debug_last_store_pc = 0xBFC414ACu; cpu->write_word(psx_addr, cpu->gpr[8]); } if (psx_taken_BFC414A8) goto label_BFC414BC; @@ -210512,7 +216522,7 @@ label_BFC414BC: cpu->gpr[10] = (uint32_t)((int32_t)cpu->gpr[0] + (6)); /* 0xBFC414C8: 10000011 beq $zero, $zero, 0xBFC41510 */ uint32_t psx_brA_BFC414C8 = cpu->gpr[0]; uint32_t psx_brB_BFC414C8 = cpu->gpr[0]; - int psx_taken_BFC414C8 = (psx_brA_BFC414C8 == psx_brB_BFC414C8); + psx_taken_BFC414C8 = (psx_brA_BFC414C8 == psx_brB_BFC414C8); /* 0xBFC414CC: A16A0000 sb $t2, 0($t3) */ g_debug_last_store_pc = 0xBFC414CCu; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[11] + (0)), (uint8_t)(cpu->gpr[10] & 0xFFu)); if (psx_taken_BFC414C8) goto label_BFC41510; @@ -210529,7 +216539,7 @@ label_BFC414D0: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (254)); /* 0xBFC414DC: 15810006 bne $t4, $at, 0xBFC414F8 */ uint32_t psx_brA_BFC414DC = cpu->gpr[12]; uint32_t psx_brB_BFC414DC = cpu->gpr[1]; - int psx_taken_BFC414DC = (psx_brA_BFC414DC != psx_brB_BFC414DC); + psx_taken_BFC414DC = (psx_brA_BFC414DC != psx_brB_BFC414DC); /* 0xBFC414E0: 240E00EB addiu $t6, $zero, 235 */ cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[0] + (235)); if (psx_taken_BFC414DC) goto label_BFC414F8; @@ -210544,7 +216554,7 @@ label_BFC414E4: cpu->gpr[1] = 0x800E0000u; /* 0xBFC414EC: 10000004 beq $zero, $zero, 0xBFC41500 */ uint32_t psx_brA_BFC414EC = cpu->gpr[0]; uint32_t psx_brB_BFC414EC = cpu->gpr[0]; - int psx_taken_BFC414EC = (psx_brA_BFC414EC == psx_brB_BFC414EC); + psx_taken_BFC414EC = (psx_brA_BFC414EC == psx_brB_BFC414EC); /* 0xBFC414F0: AC2DEE54 sw $t5, -4524($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4524)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC414F0u); return; } g_debug_last_store_pc = 0xBFC414F0u; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC414EC) goto label_BFC41500; @@ -210604,6 +216614,10 @@ void func_1FC41520(CPUState* cpu) { default: break; } } + int psx_taken_BFC4152C = 0; + int psx_taken_BFC415E8 = 0; + int psx_taken_BFC4161C = 0; + int psx_taken_BFC41624 = 0; label_BFC41520: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -210617,7 +216631,7 @@ label_BFC41520: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-24)); /* 0xBFC4152C: 18C0003D blez $a2, 0xBFC41624 */ uint32_t psx_brA_BFC4152C = cpu->gpr[6]; - int psx_taken_BFC4152C = ((int32_t)psx_brA_BFC4152C <= 0); + psx_taken_BFC4152C = ((int32_t)psx_brA_BFC4152C <= 0); /* 0xBFC41530: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41530u); return; } g_debug_last_store_pc = 0xBFC41530u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC4152C) goto label_BFC41624; @@ -210730,7 +216744,7 @@ label_BFC415C4: cpu->gpr[13] = cpu->gpr[10] + cpu->gpr[12]; /* 0xBFC415E8: 14C00013 bne $a2, $zero, 0xBFC41638 */ uint32_t psx_brA_BFC415E8 = cpu->gpr[6]; uint32_t psx_brB_BFC415E8 = cpu->gpr[0]; - int psx_taken_BFC415E8 = (psx_brA_BFC415E8 != psx_brB_BFC415E8); + psx_taken_BFC415E8 = (psx_brA_BFC415E8 != psx_brB_BFC415E8); /* 0xBFC415EC: AC2DEE7C sw $t5, -4484($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-4484)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC415ECu); return; } g_debug_last_store_pc = 0xBFC415ECu; cpu->write_word(psx_addr, cpu->gpr[13]); } if (psx_taken_BFC415E8) goto label_BFC41638; @@ -210769,7 +216783,7 @@ label_BFC415F8: cpu->gpr[15] = (uint32_t)((int32_t)cpu->gpr[0] + (9)); /* 0xBFC4161C: 10000006 beq $zero, $zero, 0xBFC41638 */ uint32_t psx_brA_BFC4161C = cpu->gpr[0]; uint32_t psx_brB_BFC4161C = cpu->gpr[0]; - int psx_taken_BFC4161C = (psx_brA_BFC4161C == psx_brB_BFC4161C); + psx_taken_BFC4161C = (psx_brA_BFC4161C == psx_brB_BFC4161C); /* 0xBFC41620: A30F0000 sb $t7, 0($t8) */ g_debug_last_store_pc = 0xBFC41620u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[24] + (0)), (uint8_t)(cpu->gpr[15] & 0xFFu)); if (psx_taken_BFC4161C) goto label_BFC41638; @@ -210780,7 +216794,7 @@ label_BFC41624: psx_check_interrupts(cpu); /* 0xBFC41624: 14C00005 bne $a2, $zero, 0xBFC4163C */ uint32_t psx_brA_BFC41624 = cpu->gpr[6]; uint32_t psx_brB_BFC41624 = cpu->gpr[0]; - int psx_taken_BFC41624 = (psx_brA_BFC41624 != psx_brB_BFC41624); + psx_taken_BFC41624 = (psx_brA_BFC41624 != psx_brB_BFC41624); /* 0xBFC41628: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41628u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC41624) goto label_BFC4163C; @@ -210868,6 +216882,7 @@ void func_1FC41670(CPUState* cpu) { default: break; } } + int psx_taken_BFC416E0 = 0; label_BFC41670: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(18u); @@ -210936,7 +216951,7 @@ label_BFC416B8: cpu->gpr[10] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[3] + (0))); /* 0xBFC416E0: 1444FFF5 bne $v0, $a0, 0xBFC416B8 */ uint32_t psx_brA_BFC416E0 = cpu->gpr[2]; uint32_t psx_brB_BFC416E0 = cpu->gpr[4]; - int psx_taken_BFC416E0 = (psx_brA_BFC416E0 != psx_brB_BFC416E0); + psx_taken_BFC416E0 = (psx_brA_BFC416E0 != psx_brB_BFC416E0); /* 0xBFC416E4: A04AFFFF sb $t2, -1($v0) */ g_debug_last_store_pc = 0xBFC416E4u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[2] + (-1)), (uint8_t)(cpu->gpr[10] & 0xFFu)); if (psx_taken_BFC416E0) goto label_BFC416B8; @@ -210979,6 +216994,8 @@ void func_1FC41708(CPUState* cpu) { default: break; } } + int psx_taken_BFC41738 = 0; + int psx_taken_BFC41754 = 0; label_BFC41708: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -211015,7 +217032,7 @@ label_BFC41738: psx_check_interrupts(cpu); /* 0xBFC41738: 10400009 beq $v0, $zero, 0xBFC41760 */ uint32_t psx_brA_BFC41738 = cpu->gpr[2]; uint32_t psx_brB_BFC41738 = cpu->gpr[0]; - int psx_taken_BFC41738 = (psx_brA_BFC41738 == psx_brB_BFC41738); + psx_taken_BFC41738 = (psx_brA_BFC41738 == psx_brB_BFC41738); /* 0xBFC4173C: 3418FFFF ori $t8, $zero, 0xFFFF */ cpu->gpr[24] = cpu->gpr[0] | 0xFFFFu; if (psx_taken_BFC41738) goto label_BFC41760; @@ -211036,7 +217053,7 @@ label_BFC41740: cpu->gpr[3] = (uint32_t)((int32_t)cpu->gpr[3] + (1)); /* 0xBFC41754: 1000FFF8 beq $zero, $zero, 0xBFC41738 */ uint32_t psx_brA_BFC41754 = cpu->gpr[0]; uint32_t psx_brB_BFC41754 = cpu->gpr[0]; - int psx_taken_BFC41754 = (psx_brA_BFC41754 == psx_brB_BFC41754); + psx_taken_BFC41754 = (psx_brA_BFC41754 == psx_brB_BFC41754); /* 0xBFC41758: A1EE0002 sb $t6, 2($t7) */ g_debug_last_store_pc = 0xBFC41758u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[15] + (2)), (uint8_t)(cpu->gpr[14] & 0xFFu)); if (psx_taken_BFC41754) goto label_BFC41738; @@ -211256,6 +217273,8 @@ void func_1FC41848(CPUState* cpu) { default: break; } } + int psx_taken_BFC41864 = 0; + int psx_taken_BFC41874 = 0; label_BFC41848: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -211277,7 +217296,7 @@ label_BFC41848: cpu->gpr[15] = cpu->gpr[2] & 0x8u; /* 0xBFC41864: 11E10006 beq $t7, $at, 0xBFC41880 */ uint32_t psx_brA_BFC41864 = cpu->gpr[15]; uint32_t psx_brB_BFC41864 = cpu->gpr[1]; - int psx_taken_BFC41864 = (psx_brA_BFC41864 == psx_brB_BFC41864); + psx_taken_BFC41864 = (psx_brA_BFC41864 == psx_brB_BFC41864); /* 0xBFC41868: 24180F14 addiu $t8, $zero, 3860 */ cpu->gpr[24] = (uint32_t)((int32_t)cpu->gpr[0] + (3860)); if (psx_taken_BFC41864) goto label_BFC41880; @@ -211298,7 +217317,7 @@ label_BFC41874: psx_check_interrupts(cpu); /* 0xBFC41874: 10000010 beq $zero, $zero, 0xBFC418B8 */ uint32_t psx_brA_BFC41874 = cpu->gpr[0]; uint32_t psx_brB_BFC41874 = cpu->gpr[0]; - int psx_taken_BFC41874 = (psx_brA_BFC41874 == psx_brB_BFC41874); + psx_taken_BFC41874 = (psx_brA_BFC41874 == psx_brB_BFC41874); /* 0xBFC41878: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41878u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC41874) goto label_BFC418B8; @@ -211447,6 +217466,8 @@ void func_1FC4192C(CPUState* cpu) { default: break; } } + int psx_taken_BFC419B0 = 0; + int psx_taken_BFC419C0 = 0; label_BFC4192C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(35u); @@ -211520,7 +217541,7 @@ label_BFC4192C: cpu->gpr[25] = cpu->gpr[6] & 0x8u; /* 0xBFC419B0: 13210005 beq $t9, $at, 0xBFC419C8 */ uint32_t psx_brA_BFC419B0 = cpu->gpr[25]; uint32_t psx_brB_BFC419B0 = cpu->gpr[1]; - int psx_taken_BFC419B0 = (psx_brA_BFC419B0 == psx_brB_BFC419B0); + psx_taken_BFC419B0 = (psx_brA_BFC419B0 == psx_brB_BFC419B0); /* 0xBFC419B4: 3C01800E lui $at, 0x800E */ cpu->gpr[1] = 0x800E0000u; if (psx_taken_BFC419B0) goto label_BFC419C8; @@ -211541,7 +217562,7 @@ label_BFC419C0: psx_check_interrupts(cpu); /* 0xBFC419C0: 1000001D beq $zero, $zero, 0xBFC41A38 */ uint32_t psx_brA_BFC419C0 = cpu->gpr[0]; uint32_t psx_brB_BFC419C0 = cpu->gpr[0]; - int psx_taken_BFC419C0 = (psx_brA_BFC419C0 == psx_brB_BFC419C0); + psx_taken_BFC419C0 = (psx_brA_BFC419C0 == psx_brB_BFC419C0); /* 0xBFC419C4: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC419C4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC419C0) goto label_BFC41A38; @@ -211637,6 +217658,13 @@ void func_1FC41A44(CPUState* cpu) { default: break; } } + int psx_taken_BFC41A5C = 0; + int psx_taken_BFC41A84 = 0; + int psx_taken_BFC41AC4 = 0; + int psx_taken_BFC41AE8 = 0; + int psx_taken_BFC41B08 = 0; + int psx_taken_BFC41B18 = 0; + int psx_taken_BFC41B3C = 0; label_BFC41A44: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -211656,7 +217684,7 @@ label_BFC41A44: cpu->gpr[14] = (uint32_t)((int32_t)cpu->gpr[6] + (2)); /* 0xBFC41A5C: 148E000B bne $a0, $t6, 0xBFC41A8C */ uint32_t psx_brA_BFC41A5C = cpu->gpr[4]; uint32_t psx_brB_BFC41A5C = cpu->gpr[14]; - int psx_taken_BFC41A5C = (psx_brA_BFC41A5C != psx_brB_BFC41A5C); + psx_taken_BFC41A5C = (psx_brA_BFC41A5C != psx_brB_BFC41A5C); /* 0xBFC41A60: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41A60u); return; } g_debug_last_store_pc = 0xBFC41A60u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC41A5C) goto label_BFC41A8C; @@ -211683,7 +217711,7 @@ label_BFC41A64: cpu->gpr[24] = (uint32_t)cpu->read_byte((uint32_t)((int32_t)cpu->gpr[5] + (0))); /* 0xBFC41A84: 1000000D beq $zero, $zero, 0xBFC41ABC */ uint32_t psx_brA_BFC41A84 = cpu->gpr[0]; uint32_t psx_brB_BFC41A84 = cpu->gpr[0]; - int psx_taken_BFC41A84 = (psx_brA_BFC41A84 == psx_brB_BFC41A84); + psx_taken_BFC41A84 = (psx_brA_BFC41A84 == psx_brB_BFC41A84); /* 0xBFC41A88: A0780001 sb $t8, 1($v1) */ g_debug_last_store_pc = 0xBFC41A88u; cpu->write_byte((uint32_t)((int32_t)cpu->gpr[3] + (1)), (uint8_t)(cpu->gpr[24] & 0xFFu)); if (psx_taken_BFC41A84) goto label_BFC41ABC; @@ -211727,7 +217755,7 @@ label_BFC41ABC: cpu->gpr[1] = (uint32_t)(cpu->gpr[3] < cpu->gpr[4] ? 1 : 0); /* 0xBFC41AC4: 1020000A beq $at, $zero, 0xBFC41AF0 */ uint32_t psx_brA_BFC41AC4 = cpu->gpr[1]; uint32_t psx_brB_BFC41AC4 = cpu->gpr[0]; - int psx_taken_BFC41AC4 = (psx_brA_BFC41AC4 == psx_brB_BFC41AC4); + psx_taken_BFC41AC4 = (psx_brA_BFC41AC4 == psx_brB_BFC41AC4); /* 0xBFC41AC8: 00000000 nop */ /* nop */ if (psx_taken_BFC41AC4) goto label_BFC41AF0; @@ -211758,7 +217786,7 @@ label_BFC41AE8: psx_check_interrupts(cpu); /* 0xBFC41AE8: 1000002C beq $zero, $zero, 0xBFC41B9C */ uint32_t psx_brA_BFC41AE8 = cpu->gpr[0]; uint32_t psx_brB_BFC41AE8 = cpu->gpr[0]; - int psx_taken_BFC41AE8 = (psx_brA_BFC41AE8 == psx_brB_BFC41AE8); + psx_taken_BFC41AE8 = (psx_brA_BFC41AE8 == psx_brB_BFC41AE8); /* 0xBFC41AEC: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41AECu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC41AE8) goto label_BFC41B9C; @@ -211781,7 +217809,7 @@ label_BFC41AF0: cpu->gpr[12] = cpu->gpr[2] & 0x8u; /* 0xBFC41B08: 11810006 beq $t4, $at, 0xBFC41B24 */ uint32_t psx_brA_BFC41B08 = cpu->gpr[12]; uint32_t psx_brB_BFC41B08 = cpu->gpr[1]; - int psx_taken_BFC41B08 = (psx_brA_BFC41B08 == psx_brB_BFC41B08); + psx_taken_BFC41B08 = (psx_brA_BFC41B08 == psx_brB_BFC41B08); /* 0xBFC41B0C: 2401000A addiu $at, $zero, 10 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (10)); if (psx_taken_BFC41B08) goto label_BFC41B24; @@ -211802,7 +217830,7 @@ label_BFC41B18: psx_check_interrupts(cpu); /* 0xBFC41B18: 10000020 beq $zero, $zero, 0xBFC41B9C */ uint32_t psx_brA_BFC41B18 = cpu->gpr[0]; uint32_t psx_brB_BFC41B18 = cpu->gpr[0]; - int psx_taken_BFC41B18 = (psx_brA_BFC41B18 == psx_brB_BFC41B18); + psx_taken_BFC41B18 = (psx_brA_BFC41B18 == psx_brB_BFC41B18); /* 0xBFC41B1C: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41B1Cu); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC41B18) goto label_BFC41B9C; @@ -211832,7 +217860,7 @@ label_BFC41B24: cpu->gpr[2] = cpu->gpr[15] + cpu->gpr[24]; /* 0xBFC41B3C: 14830002 bne $a0, $v1, 0xBFC41B48 */ uint32_t psx_brA_BFC41B3C = cpu->gpr[4]; uint32_t psx_brB_BFC41B3C = cpu->gpr[3]; - int psx_taken_BFC41B3C = (psx_brA_BFC41B3C != psx_brB_BFC41B3C); + psx_taken_BFC41B3C = (psx_brA_BFC41B3C != psx_brB_BFC41B3C); /* 0xBFC41B40: 304200FF andi $v0, $v0, 0xFF */ cpu->gpr[2] = cpu->gpr[2] & 0xFFu; if (psx_taken_BFC41B3C) goto label_BFC41B48; @@ -211979,6 +218007,8 @@ label_BFC41C04: void func_1FC41C0C(CPUState* cpu) { debug_server_log_call_entry(0x1FC41C0Cu); + int psx_taken_BFC41C40 = 0; + int psx_taken_BFC41C70 = 0; label_BFC41C0C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(15u); @@ -212012,7 +218042,7 @@ label_BFC41C0C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (4) ? 1 : 0); /* 0xBFC41C40: 1020000D beq $at, $zero, 0xBFC41C78 */ uint32_t psx_brA_BFC41C40 = cpu->gpr[1]; uint32_t psx_brB_BFC41C40 = cpu->gpr[0]; - int psx_taken_BFC41C40 = (psx_brA_BFC41C40 == psx_brB_BFC41C40); + psx_taken_BFC41C40 = (psx_brA_BFC41C40 == psx_brB_BFC41C40); /* 0xBFC41C44: 00000000 nop */ /* nop */ if (psx_taken_BFC41C40) goto label_BFC41C78; @@ -212048,7 +218078,7 @@ label_BFC41C4C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[12] < (4) ? 1 : 0); /* 0xBFC41C70: 1420FFF6 bne $at, $zero, 0xBFC41C4C */ uint32_t psx_brA_BFC41C70 = cpu->gpr[1]; uint32_t psx_brB_BFC41C70 = cpu->gpr[0]; - int psx_taken_BFC41C70 = (psx_brA_BFC41C70 != psx_brB_BFC41C70); + psx_taken_BFC41C70 = (psx_brA_BFC41C70 != psx_brB_BFC41C70); /* 0xBFC41C74: 8FA90004 lw $t1, 4($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41C74u); return; } cpu->gpr[9] = cpu->read_word(psx_addr); } if (psx_taken_BFC41C70) goto label_BFC41C4C; @@ -212073,6 +218103,10 @@ void func_1FC41C80(CPUState* cpu) { default: break; } } + int psx_taken_BFC41CB0 = 0; + int psx_taken_BFC41CC0 = 0; + int psx_taken_BFC41CCC = 0; + int psx_taken_BFC41CD4 = 0; label_BFC41C80: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(14u); @@ -212104,7 +218138,7 @@ label_BFC41C80: cpu->gpr[6] = cpu->gpr[15] - cpu->gpr[24]; /* 0xBFC41CB0: 04610005 bgez $v1, 0xBFC41CC8 */ uint32_t psx_brA_BFC41CB0 = cpu->gpr[3]; - int psx_taken_BFC41CB0 = ((int32_t)psx_brA_BFC41CB0 >= 0); + psx_taken_BFC41CB0 = ((int32_t)psx_brA_BFC41CB0 >= 0); /* 0xBFC41CB4: 30C6FFFF andi $a2, $a2, 0xFFFF */ cpu->gpr[6] = cpu->gpr[6] & 0xFFFFu; if (psx_taken_BFC41CB0) goto label_BFC41CC8; @@ -212119,7 +218153,7 @@ label_BFC41CB8: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-25188)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41CBCu); return; } cpu->gpr[2] = cpu->read_word(psx_addr); } /* 0xBFC41CC0: 10000035 beq $zero, $zero, 0xBFC41D98 */ uint32_t psx_brA_BFC41CC0 = cpu->gpr[0]; uint32_t psx_brB_BFC41CC0 = cpu->gpr[0]; - int psx_taken_BFC41CC0 = (psx_brA_BFC41CC0 == psx_brB_BFC41CC0); + psx_taken_BFC41CC0 = (psx_brA_BFC41CC0 == psx_brB_BFC41CC0); /* 0xBFC41CC4: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41CC4u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC41CC0) { cpu->pc = 0xBFC41D98u; return; } @@ -212132,7 +218166,7 @@ label_BFC41CC8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC41CCC: 14610003 bne $v1, $at, 0xBFC41CDC */ uint32_t psx_brA_BFC41CCC = cpu->gpr[3]; uint32_t psx_brB_BFC41CCC = cpu->gpr[1]; - int psx_taken_BFC41CCC = (psx_brA_BFC41CCC != psx_brB_BFC41CCC); + psx_taken_BFC41CCC = (psx_brA_BFC41CCC != psx_brB_BFC41CCC); /* 0xBFC41CD0: 00000000 nop */ /* nop */ if (psx_taken_BFC41CCC) goto label_BFC41CDC; @@ -212143,7 +218177,7 @@ label_BFC41CD4: psx_check_interrupts(cpu); /* 0xBFC41CD4: 1000002F beq $zero, $zero, 0xBFC41D94 */ uint32_t psx_brA_BFC41CD4 = cpu->gpr[0]; uint32_t psx_brB_BFC41CD4 = cpu->gpr[0]; - int psx_taken_BFC41CD4 = (psx_brA_BFC41CD4 == psx_brB_BFC41CD4); + psx_taken_BFC41CD4 = (psx_brA_BFC41CD4 == psx_brB_BFC41CD4); /* 0xBFC41CD8: 00C01021 addu $v0, $a2, $zero */ cpu->gpr[2] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC41CD4) { cpu->pc = 0xBFC41D94u; return; } @@ -212203,6 +218237,9 @@ void func_1FC41D18(CPUState* cpu) { default: break; } } + int psx_taken_BFC41D28 = 0; + int psx_taken_BFC41D4C = 0; + int psx_taken_BFC41D64 = 0; label_BFC41D18: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -212218,7 +218255,7 @@ label_BFC41D18: cpu->gpr[8] = cpu->gpr[3] & cpu->gpr[1]; /* 0xBFC41D28: 11000010 beq $t0, $zero, 0xBFC41D6C */ uint32_t psx_brA_BFC41D28 = cpu->gpr[8]; uint32_t psx_brB_BFC41D28 = cpu->gpr[0]; - int psx_taken_BFC41D28 = (psx_brA_BFC41D28 == psx_brB_BFC41D28); + psx_taken_BFC41D28 = (psx_brA_BFC41D28 == psx_brB_BFC41D28); /* 0xBFC41D2C: 00000000 nop */ /* nop */ if (psx_taken_BFC41D28) goto label_BFC41D6C; @@ -212243,7 +218280,7 @@ label_BFC41D30: cpu->gpr[11] = cpu->gpr[10] & cpu->gpr[2]; /* 0xBFC41D4C: 15600007 bne $t3, $zero, 0xBFC41D6C */ uint32_t psx_brA_BFC41D4C = cpu->gpr[11]; uint32_t psx_brB_BFC41D4C = cpu->gpr[0]; - int psx_taken_BFC41D4C = (psx_brA_BFC41D4C != psx_brB_BFC41D4C); + psx_taken_BFC41D4C = (psx_brA_BFC41D4C != psx_brB_BFC41D4C); /* 0xBFC41D50: 00000000 nop */ /* nop */ if (psx_taken_BFC41D4C) goto label_BFC41D6C; @@ -212262,7 +218299,7 @@ label_BFC41D54: cpu->gpr[14] = cpu->gpr[13] & cpu->gpr[2]; /* 0xBFC41D64: 11C0FFFB beq $t6, $zero, 0xBFC41D54 */ uint32_t psx_brA_BFC41D64 = cpu->gpr[14]; uint32_t psx_brB_BFC41D64 = cpu->gpr[0]; - int psx_taken_BFC41D64 = (psx_brA_BFC41D64 == psx_brB_BFC41D64); + psx_taken_BFC41D64 = (psx_brA_BFC41D64 == psx_brB_BFC41D64); /* 0xBFC41D68: 00000000 nop */ /* nop */ if (psx_taken_BFC41D64) goto label_BFC41D54; @@ -212313,6 +218350,7 @@ label_BFC41D98: void func_1FC41DA4(CPUState* cpu) { debug_server_log_call_entry(0x1FC41DA4u); + int psx_taken_BFC41DC0 = 0; label_BFC41DA4: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -212334,7 +218372,7 @@ label_BFC41DA4: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[15] < (int32_t)cpu->gpr[5] ? 1 : 0); /* 0xBFC41DC0: 10200014 beq $at, $zero, 0xBFC41E14 */ uint32_t psx_brA_BFC41DC0 = cpu->gpr[1]; uint32_t psx_brB_BFC41DC0 = cpu->gpr[0]; - int psx_taken_BFC41DC0 = (psx_brA_BFC41DC0 == psx_brB_BFC41DC0); + psx_taken_BFC41DC0 = (psx_brA_BFC41DC0 == psx_brB_BFC41DC0); /* 0xBFC41DC4: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41DC4u); return; } g_debug_last_store_pc = 0xBFC41DC4u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC41DC0) { cpu->pc = 0xBFC41E14u; return; } @@ -212351,6 +218389,8 @@ void func_1FC41DC8(CPUState* cpu) { default: break; } } + int psx_taken_BFC41DD8 = 0; + int psx_taken_BFC41DF4 = 0; label_BFC41DC8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -212366,7 +218406,7 @@ label_BFC41DC8: cpu->gpr[25] = (uint32_t)((int32_t)cpu->gpr[24] + (-1)); /* 0xBFC41DD8: 14400008 bne $v0, $zero, 0xBFC41DFC */ uint32_t psx_brA_BFC41DD8 = cpu->gpr[2]; uint32_t psx_brB_BFC41DD8 = cpu->gpr[0]; - int psx_taken_BFC41DD8 = (psx_brA_BFC41DD8 != psx_brB_BFC41DD8); + psx_taken_BFC41DD8 = (psx_brA_BFC41DD8 != psx_brB_BFC41DD8); /* 0xBFC41DDC: AFB9001C sw $t9, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41DDCu); return; } g_debug_last_store_pc = 0xBFC41DDCu; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC41DD8) { cpu->pc = 0xBFC41DFCu; return; } @@ -212393,7 +218433,7 @@ label_BFC41DF4: psx_check_interrupts(cpu); /* 0xBFC41DF4: 10000008 beq $zero, $zero, 0xBFC41E18 */ uint32_t psx_brA_BFC41DF4 = cpu->gpr[0]; uint32_t psx_brB_BFC41DF4 = cpu->gpr[0]; - int psx_taken_BFC41DF4 = (psx_brA_BFC41DF4 == psx_brB_BFC41DF4); + psx_taken_BFC41DF4 = (psx_brA_BFC41DF4 == psx_brB_BFC41DF4); /* 0xBFC41DF8: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41DF8u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC41DF4) { cpu->pc = 0xBFC41E18u; return; } @@ -212402,6 +218442,7 @@ label_BFC41DF4: void func_1FC41DFC(CPUState* cpu) { debug_server_log_call_entry(0x1FC41DFCu); + int psx_taken_BFC41E0C = 0; label_BFC41DFC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(6u); @@ -212417,7 +218458,7 @@ label_BFC41DFC: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[8] < (int32_t)cpu->gpr[5] ? 1 : 0); /* 0xBFC41E0C: 1420FFEE bne $at, $zero, 0xBFC41DC8 */ uint32_t psx_brA_BFC41E0C = cpu->gpr[1]; uint32_t psx_brB_BFC41E0C = cpu->gpr[0]; - int psx_taken_BFC41E0C = (psx_brA_BFC41E0C != psx_brB_BFC41E0C); + psx_taken_BFC41E0C = (psx_brA_BFC41E0C != psx_brB_BFC41E0C); /* 0xBFC41E10: 00000000 nop */ /* nop */ if (psx_taken_BFC41E0C) { cpu->pc = 0xBFC41DC8u; return; } @@ -212456,6 +218497,15 @@ label_BFC41E18: void func_1FC41E30(CPUState* cpu) { debug_server_log_call_entry(0x1FC41E30u); + int psx_taken_BFC41E3C = 0; + int psx_taken_BFC41E64 = 0; + int psx_taken_BFC41E70 = 0; + int psx_taken_BFC41E7C = 0; + int psx_taken_BFC41E8C = 0; + int psx_taken_BFC41E94 = 0; + int psx_taken_BFC41EA0 = 0; + int psx_taken_BFC41EAC = 0; + int psx_taken_BFC41EBC = 0; label_BFC41E30: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -212469,7 +218519,7 @@ label_BFC41E30: cpu->gpr[5] = cpu->gpr[5] & 0xFFFFu; /* 0xBFC41E3C: 14200003 bne $at, $zero, 0xBFC41E4C */ uint32_t psx_brA_BFC41E3C = cpu->gpr[1]; uint32_t psx_brB_BFC41E3C = cpu->gpr[0]; - int psx_taken_BFC41E3C = (psx_brA_BFC41E3C != psx_brB_BFC41E3C); + psx_taken_BFC41E3C = (psx_brA_BFC41E3C != psx_brB_BFC41E3C); /* 0xBFC41E40: 00C03821 addu $a3, $a2, $zero */ cpu->gpr[7] = cpu->gpr[6] + cpu->gpr[0]; if (psx_taken_BFC41E3C) goto label_BFC41E4C; @@ -212501,7 +218551,7 @@ label_BFC41E4C: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (8)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41E60u); return; } g_debug_last_store_pc = 0xBFC41E60u; cpu->write_half(psx_addr, (uint16_t)(cpu->gpr[5] & 0xFFFFu)); } /* 0xBFC41E64: 10800004 beq $a0, $zero, 0xBFC41E78 */ uint32_t psx_brA_BFC41E64 = cpu->gpr[4]; uint32_t psx_brB_BFC41E64 = cpu->gpr[0]; - int psx_taken_BFC41E64 = (psx_brA_BFC41E64 == psx_brB_BFC41E64); + psx_taken_BFC41E64 = (psx_brA_BFC41E64 == psx_brB_BFC41E64); /* 0xBFC41E68: 24060048 addiu $a2, $zero, 72 */ cpu->gpr[6] = (uint32_t)((int32_t)cpu->gpr[0] + (72)); if (psx_taken_BFC41E64) goto label_BFC41E78; @@ -212514,7 +218564,7 @@ label_BFC41E6C: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (1)); /* 0xBFC41E70: 1481000B bne $a0, $at, 0xBFC41EA0 */ uint32_t psx_brA_BFC41E70 = cpu->gpr[4]; uint32_t psx_brB_BFC41E70 = cpu->gpr[1]; - int psx_taken_BFC41E70 = (psx_brA_BFC41E70 != psx_brB_BFC41E70); + psx_taken_BFC41E70 = (psx_brA_BFC41E70 != psx_brB_BFC41E70); /* 0xBFC41E74: 24010002 addiu $at, $zero, 2 */ cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[0] + (2)); if (psx_taken_BFC41E70) goto label_BFC41EA0; @@ -212527,7 +218577,7 @@ label_BFC41E78: cpu->gpr[24] = cpu->gpr[7] & 0x10u; /* 0xBFC41E7C: 13000003 beq $t8, $zero, 0xBFC41E8C */ uint32_t psx_brA_BFC41E7C = cpu->gpr[24]; uint32_t psx_brB_BFC41E7C = cpu->gpr[0]; - int psx_taken_BFC41E7C = (psx_brA_BFC41E7C == psx_brB_BFC41E7C); + psx_taken_BFC41E7C = (psx_brA_BFC41E7C == psx_brB_BFC41E7C); /* 0xBFC41E80: 30F90001 andi $t9, $a3, 0x1 */ cpu->gpr[25] = cpu->gpr[7] & 0x1u; if (psx_taken_BFC41E7C) goto label_BFC41E8C; @@ -212547,7 +218597,7 @@ label_BFC41E8C: psx_check_interrupts(cpu); /* 0xBFC41E8C: 1720000B bne $t9, $zero, 0xBFC41EBC */ uint32_t psx_brA_BFC41E8C = cpu->gpr[25]; uint32_t psx_brB_BFC41E8C = cpu->gpr[0]; - int psx_taken_BFC41E8C = (psx_brA_BFC41E8C != psx_brB_BFC41E8C); + psx_taken_BFC41E8C = (psx_brA_BFC41E8C != psx_brB_BFC41E8C); /* 0xBFC41E90: 30E91000 andi $t1, $a3, 0x1000 */ cpu->gpr[9] = cpu->gpr[7] & 0x1000u; if (psx_taken_BFC41E8C) goto label_BFC41EBC; @@ -212558,7 +218608,7 @@ label_BFC41E94: psx_check_interrupts(cpu); /* 0xBFC41E94: 10000008 beq $zero, $zero, 0xBFC41EB8 */ uint32_t psx_brA_BFC41E94 = cpu->gpr[0]; uint32_t psx_brB_BFC41E94 = cpu->gpr[0]; - int psx_taken_BFC41E94 = (psx_brA_BFC41E94 == psx_brB_BFC41E94); + psx_taken_BFC41E94 = (psx_brA_BFC41E94 == psx_brB_BFC41E94); /* 0xBFC41E98: 34C60100 ori $a2, $a2, 0x100 */ cpu->gpr[6] = cpu->gpr[6] | 0x100u; if (psx_taken_BFC41E94) goto label_BFC41EB8; @@ -212576,7 +218626,7 @@ label_BFC41EA0: psx_check_interrupts(cpu); /* 0xBFC41EA0: 14810006 bne $a0, $at, 0xBFC41EBC */ uint32_t psx_brA_BFC41EA0 = cpu->gpr[4]; uint32_t psx_brB_BFC41EA0 = cpu->gpr[1]; - int psx_taken_BFC41EA0 = (psx_brA_BFC41EA0 != psx_brB_BFC41EA0); + psx_taken_BFC41EA0 = (psx_brA_BFC41EA0 != psx_brB_BFC41EA0); /* 0xBFC41EA4: 30E91000 andi $t1, $a3, 0x1000 */ cpu->gpr[9] = cpu->gpr[7] & 0x1000u; if (psx_taken_BFC41EA0) goto label_BFC41EBC; @@ -212589,7 +218639,7 @@ label_BFC41EA8: cpu->gpr[8] = cpu->gpr[7] & 0x1u; /* 0xBFC41EAC: 15000003 bne $t0, $zero, 0xBFC41EBC */ uint32_t psx_brA_BFC41EAC = cpu->gpr[8]; uint32_t psx_brB_BFC41EAC = cpu->gpr[0]; - int psx_taken_BFC41EAC = (psx_brA_BFC41EAC != psx_brB_BFC41EAC); + psx_taken_BFC41EAC = (psx_brA_BFC41EAC != psx_brB_BFC41EAC); /* 0xBFC41EB0: 30E91000 andi $t1, $a3, 0x1000 */ cpu->gpr[9] = cpu->gpr[7] & 0x1000u; if (psx_taken_BFC41EAC) goto label_BFC41EBC; @@ -212614,7 +218664,7 @@ label_BFC41EBC: psx_check_interrupts(cpu); /* 0xBFC41EBC: 11200002 beq $t1, $zero, 0xBFC41EC8 */ uint32_t psx_brA_BFC41EBC = cpu->gpr[9]; uint32_t psx_brB_BFC41EBC = cpu->gpr[0]; - int psx_taken_BFC41EBC = (psx_brA_BFC41EBC == psx_brB_BFC41EBC); + psx_taken_BFC41EBC = (psx_brA_BFC41EBC == psx_brB_BFC41EBC); /* 0xBFC41EC0: 00000000 nop */ /* nop */ if (psx_taken_BFC41EBC) goto label_BFC41EC8; @@ -212642,6 +218692,7 @@ label_BFC41EC8: void func_1FC41ED8(CPUState* cpu) { debug_server_log_call_entry(0x1FC41ED8u); + int psx_taken_BFC41EE0 = 0; label_BFC41ED8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -212653,7 +218704,7 @@ label_BFC41ED8: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (3) ? 1 : 0); /* 0xBFC41EE0: 14200003 bne $at, $zero, 0xBFC41EF0 */ uint32_t psx_brA_BFC41EE0 = cpu->gpr[1]; uint32_t psx_brB_BFC41EE0 = cpu->gpr[0]; - int psx_taken_BFC41EE0 = (psx_brA_BFC41EE0 != psx_brB_BFC41EE0); + psx_taken_BFC41EE0 = (psx_brA_BFC41EE0 != psx_brB_BFC41EE0); /* 0xBFC41EE4: 00000000 nop */ /* nop */ if (psx_taken_BFC41EE0) goto label_BFC41EF0; @@ -212691,6 +218742,7 @@ label_BFC41EF0: void func_1FC41F10(CPUState* cpu) { debug_server_log_call_entry(0x1FC41F10u); + int psx_taken_BFC41F38 = 0; label_BFC41F10: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(12u); @@ -212718,7 +218770,7 @@ label_BFC41F10: cpu->gpr[25] = cpu->gpr[14] | cpu->gpr[24]; /* 0xBFC41F38: 14200003 bne $at, $zero, 0xBFC41F48 */ uint32_t psx_brA_BFC41F38 = cpu->gpr[1]; uint32_t psx_brB_BFC41F38 = cpu->gpr[0]; - int psx_taken_BFC41F38 = (psx_brA_BFC41F38 != psx_brB_BFC41F38); + psx_taken_BFC41F38 = (psx_brA_BFC41F38 != psx_brB_BFC41F38); /* 0xBFC41F3C: AC590004 sw $t9, 4($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC41F3Cu); return; } g_debug_last_store_pc = 0xBFC41F3Cu; cpu->write_word(psx_addr, cpu->gpr[25]); } if (psx_taken_BFC41F38) goto label_BFC41F48; @@ -212781,6 +218833,7 @@ label_BFC41F54: void func_1FC41F88(CPUState* cpu) { debug_server_log_call_entry(0x1FC41F88u); + int psx_taken_BFC41F90 = 0; label_BFC41F88: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -212792,7 +218845,7 @@ label_BFC41F88: cpu->gpr[1] = (uint32_t)((int32_t)cpu->gpr[4] < (3) ? 1 : 0); /* 0xBFC41F90: 14200003 bne $at, $zero, 0xBFC41FA0 */ uint32_t psx_brA_BFC41F90 = cpu->gpr[1]; uint32_t psx_brB_BFC41F90 = cpu->gpr[0]; - int psx_taken_BFC41F90 = (psx_brA_BFC41F90 != psx_brB_BFC41F90); + psx_taken_BFC41F90 = (psx_brA_BFC41F90 != psx_brB_BFC41F90); /* 0xBFC41F94: 00000000 nop */ /* nop */ if (psx_taken_BFC41F90) goto label_BFC41FA0; @@ -213235,6 +219288,8 @@ void func_1FC42160(CPUState* cpu) { default: break; } } + int psx_taken_BFC4216C = 0; + int psx_taken_BFC421C4 = 0; label_BFC42160: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(5u); @@ -213248,7 +219303,7 @@ label_BFC42160: cpu->gpr[29] = (uint32_t)((int32_t)cpu->gpr[29] + (-80)); /* 0xBFC4216C: 15C00080 bne $t6, $zero, 0xBFC42370 */ uint32_t psx_brA_BFC4216C = cpu->gpr[14]; uint32_t psx_brB_BFC4216C = cpu->gpr[0]; - int psx_taken_BFC4216C = (psx_brA_BFC4216C != psx_brB_BFC4216C); + psx_taken_BFC4216C = (psx_brA_BFC4216C != psx_brB_BFC4216C); /* 0xBFC42170: AFBF0014 sw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC42170u); return; } g_debug_last_store_pc = 0xBFC42170u; cpu->write_word(psx_addr, cpu->gpr[31]); } if (psx_taken_BFC4216C) { cpu->pc = 0xBFC42370u; return; } @@ -213316,7 +219371,7 @@ label_BFC421B4: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-8)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC421C0u); return; } g_debug_last_store_pc = 0xBFC421C0u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC421C4: 1443FFFB bne $v0, $v1, 0xBFC421B4 */ uint32_t psx_brA_BFC421C4 = cpu->gpr[2]; uint32_t psx_brB_BFC421C4 = cpu->gpr[3]; - int psx_taken_BFC421C4 = (psx_brA_BFC421C4 != psx_brB_BFC421C4); + psx_taken_BFC421C4 = (psx_brA_BFC421C4 != psx_brB_BFC421C4); /* 0xBFC421C8: AC40FFFC sw $zero, -4($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC421C8u); return; } g_debug_last_store_pc = 0xBFC421C8u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC421C4) goto label_BFC421B4; @@ -213346,6 +219401,10 @@ void func_1FC421D8(CPUState* cpu) { default: break; } } + int psx_taken_BFC421D8 = 0; + int psx_taken_BFC42218 = 0; + int psx_taken_BFC4223C = 0; + int psx_taken_BFC4225C = 0; label_BFC421D8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(2u); @@ -213353,7 +219412,7 @@ label_BFC421D8: psx_check_interrupts(cpu); /* 0xBFC421D8: 10400050 beq $v0, $zero, 0xBFC4231C */ uint32_t psx_brA_BFC421D8 = cpu->gpr[2]; uint32_t psx_brB_BFC421D8 = cpu->gpr[0]; - int psx_taken_BFC421D8 = (psx_brA_BFC421D8 == psx_brB_BFC421D8); + psx_taken_BFC421D8 = (psx_brA_BFC421D8 == psx_brB_BFC421D8); /* 0xBFC421DC: 00000000 nop */ /* nop */ if (psx_taken_BFC421D8) { cpu->pc = 0xBFC4231Cu; return; } @@ -213392,7 +219451,7 @@ label_BFC421E0: cpu->gpr[10] = cpu->gpr[8] & cpu->gpr[9]; /* 0xBFC42218: 1140003B beq $t2, $zero, 0xBFC42308 */ uint32_t psx_brA_BFC42218 = cpu->gpr[10]; uint32_t psx_brB_BFC42218 = cpu->gpr[0]; - int psx_taken_BFC42218 = (psx_brA_BFC42218 == psx_brB_BFC42218); + psx_taken_BFC42218 = (psx_brA_BFC42218 == psx_brB_BFC42218); /* 0xBFC4221C: 24140100 addiu $s4, $zero, 256 */ cpu->gpr[20] = (uint32_t)((int32_t)cpu->gpr[0] + (256)); if (psx_taken_BFC42218) { cpu->pc = 0xBFC42308u; return; } @@ -213422,7 +219481,7 @@ label_BFC4223C: psx_check_interrupts(cpu); /* 0xBFC4223C: 14400009 bne $v0, $zero, 0xBFC42264 */ uint32_t psx_brA_BFC4223C = cpu->gpr[2]; uint32_t psx_brB_BFC4223C = cpu->gpr[0]; - int psx_taken_BFC4223C = (psx_brA_BFC4223C != psx_brB_BFC4223C); + psx_taken_BFC4223C = (psx_brA_BFC4223C != psx_brB_BFC4223C); /* 0xBFC42240: 2694FFFF addiu $s4, $s4, -1 */ cpu->gpr[20] = (uint32_t)((int32_t)cpu->gpr[20] + (-1)); if (psx_taken_BFC4223C) goto label_BFC42264; @@ -213451,7 +219510,7 @@ label_BFC42250: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC42258u); return; } cpu->gpr[19] = cpu->read_word(psx_addr); } /* 0xBFC4225C: 1000002A beq $zero, $zero, 0xBFC42308 */ uint32_t psx_brA_BFC4225C = cpu->gpr[0]; uint32_t psx_brB_BFC4225C = cpu->gpr[0]; - int psx_taken_BFC4225C = (psx_brA_BFC4225C == psx_brB_BFC4225C); + psx_taken_BFC4225C = (psx_brA_BFC4225C == psx_brB_BFC4225C); /* 0xBFC42260: 00000000 nop */ /* nop */ if (psx_taken_BFC4225C) { cpu->pc = 0xBFC42308u; return; } @@ -213477,6 +219536,10 @@ void func_1FC4226C(CPUState* cpu) { default: break; } } + int psx_taken_BFC42288 = 0; + int psx_taken_BFC422A8 = 0; + int psx_taken_BFC422D0 = 0; + int psx_taken_BFC422F0 = 0; label_BFC4226C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(9u); @@ -213498,7 +219561,7 @@ label_BFC4226C: cpu->gpr[24] = cpu->gpr[14] & cpu->gpr[15]; /* 0xBFC42288: 13000010 beq $t8, $zero, 0xBFC422CC */ uint32_t psx_brA_BFC42288 = cpu->gpr[24]; uint32_t psx_brB_BFC42288 = cpu->gpr[0]; - int psx_taken_BFC42288 = (psx_brA_BFC42288 == psx_brB_BFC42288); + psx_taken_BFC42288 = (psx_brA_BFC42288 == psx_brB_BFC42288); /* 0xBFC4228C: 00000000 nop */ /* nop */ if (psx_taken_BFC42288) goto label_BFC422CC; @@ -213521,7 +219584,7 @@ label_BFC42290: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 1u) { psx_unaligned_access(cpu, psx_addr, 0xBFC422A4u); return; } (void)cpu->read_half(psx_addr); } /* 0xBFC422A8: 10400008 beq $v0, $zero, 0xBFC422CC */ uint32_t psx_brA_BFC422A8 = cpu->gpr[2]; uint32_t psx_brB_BFC422A8 = cpu->gpr[0]; - int psx_taken_BFC422A8 = (psx_brA_BFC422A8 == psx_brB_BFC422A8); + psx_taken_BFC422A8 = (psx_brA_BFC422A8 == psx_brB_BFC422A8); /* 0xBFC422AC: 00000000 nop */ /* nop */ if (psx_taken_BFC422A8) goto label_BFC422CC; @@ -213559,7 +219622,7 @@ label_BFC422CC: cpu->gpr[17] = (uint32_t)((int32_t)cpu->gpr[17] + (1)); /* 0xBFC422D0: 1633FFE6 bne $s1, $s3, 0xBFC4226C */ uint32_t psx_brA_BFC422D0 = cpu->gpr[17]; uint32_t psx_brB_BFC422D0 = cpu->gpr[19]; - int psx_taken_BFC422D0 = (psx_brA_BFC422D0 != psx_brB_BFC422D0); + psx_taken_BFC422D0 = (psx_brA_BFC422D0 != psx_brB_BFC422D0); /* 0xBFC422D4: 00108040 sll $s0, $s0, 1 */ cpu->gpr[16] = cpu->gpr[16] << 1u; if (psx_taken_BFC422D0) goto label_BFC4226C; @@ -213582,7 +219645,7 @@ label_BFC422D8: cpu->gpr[14] = cpu->gpr[12] & cpu->gpr[13]; /* 0xBFC422F0: 15C0FFD2 bne $t6, $zero, 0xBFC4223C */ uint32_t psx_brA_BFC422F0 = cpu->gpr[14]; uint32_t psx_brB_BFC422F0 = cpu->gpr[0]; - int psx_taken_BFC422F0 = (psx_brA_BFC422F0 != psx_brB_BFC422F0); + psx_taken_BFC422F0 = (psx_brA_BFC422F0 != psx_brB_BFC422F0); /* 0xBFC422F4: 02801021 addu $v0, $s4, $zero */ cpu->gpr[2] = cpu->gpr[20] + cpu->gpr[0]; if (psx_taken_BFC422F0) { cpu->pc = 0xBFC4223Cu; return; } @@ -213742,6 +219805,9 @@ label_BFC42370: void func_1FC42380(CPUState* cpu) { debug_server_log_call_entry(0x1FC42380u); + int psx_taken_BFC42398 = 0; + int psx_taken_BFC423A0 = 0; + int psx_taken_BFC423DC = 0; label_BFC42380: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -213761,7 +219827,7 @@ label_BFC42380: /* nop */ /* 0xBFC42398: 10A30020 beq $a1, $v1, 0xBFC4241C */ uint32_t psx_brA_BFC42398 = cpu->gpr[5]; uint32_t psx_brB_BFC42398 = cpu->gpr[3]; - int psx_taken_BFC42398 = (psx_brA_BFC42398 == psx_brB_BFC42398); + psx_taken_BFC42398 = (psx_brA_BFC42398 == psx_brB_BFC42398); /* 0xBFC4239C: 00000000 nop */ /* nop */ if (psx_taken_BFC42398) goto label_BFC4241C; @@ -213772,7 +219838,7 @@ label_BFC423A0: psx_check_interrupts(cpu); /* 0xBFC423A0: 10A00010 beq $a1, $zero, 0xBFC423E4 */ uint32_t psx_brA_BFC423A0 = cpu->gpr[5]; uint32_t psx_brB_BFC423A0 = cpu->gpr[0]; - int psx_taken_BFC423A0 = (psx_brA_BFC423A0 == psx_brB_BFC423A0); + psx_taken_BFC423A0 = (psx_brA_BFC423A0 == psx_brB_BFC423A0); /* 0xBFC423A4: AC400000 sw $zero, 0($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC423A4u); return; } g_debug_last_store_pc = 0xBFC423A4u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC423A0) goto label_BFC423E4; @@ -213809,7 +219875,7 @@ label_BFC423A8: cpu->gpr[11] = cpu->gpr[10] | cpu->gpr[7]; /* 0xBFC423DC: 1000000F beq $zero, $zero, 0xBFC4241C */ uint32_t psx_brA_BFC423DC = cpu->gpr[0]; uint32_t psx_brB_BFC423DC = cpu->gpr[0]; - int psx_taken_BFC423DC = (psx_brA_BFC423DC == psx_brB_BFC423DC); + psx_taken_BFC423DC = (psx_brA_BFC423DC == psx_brB_BFC423DC); /* 0xBFC423E0: AC2BFF0C sw $t3, -244($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-244)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC423E0u); return; } g_debug_last_store_pc = 0xBFC423E0u; cpu->write_word(psx_addr, cpu->gpr[11]); } if (psx_taken_BFC423DC) goto label_BFC4241C; @@ -213868,6 +219934,7 @@ void func_1FC42424(CPUState* cpu) { default: break; } } + int psx_taken_BFC42484 = 0; label_BFC42424: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -213934,7 +220001,7 @@ label_BFC42474: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-8)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC42480u); return; } g_debug_last_store_pc = 0xBFC42480u; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC42484: 1443FFFB bne $v0, $v1, 0xBFC42474 */ uint32_t psx_brA_BFC42484 = cpu->gpr[2]; uint32_t psx_brB_BFC42484 = cpu->gpr[3]; - int psx_taken_BFC42484 = (psx_brA_BFC42484 != psx_brB_BFC42484); + psx_taken_BFC42484 = (psx_brA_BFC42484 != psx_brB_BFC42484); /* 0xBFC42488: AC40FFFC sw $zero, -4($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC42488u); return; } g_debug_last_store_pc = 0xBFC42488u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC42484) goto label_BFC42474; @@ -213976,6 +220043,7 @@ void func_1FC424A8(CPUState* cpu) { default: break; } } + int psx_taken_BFC4250C = 0; label_BFC424A8: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(27u); @@ -214033,7 +220101,7 @@ label_BFC424A8: cpu->gpr[14] = cpu->gpr[13] & 0x1000u; /* 0xBFC4250C: 15C00009 bne $t6, $zero, 0xBFC42534 */ uint32_t psx_brA_BFC4250C = cpu->gpr[14]; uint32_t psx_brB_BFC4250C = cpu->gpr[0]; - int psx_taken_BFC4250C = (psx_brA_BFC4250C != psx_brB_BFC4250C); + psx_taken_BFC4250C = (psx_brA_BFC4250C != psx_brB_BFC4250C); /* 0xBFC42510: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC42510u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC4250C) goto label_BFC42534; @@ -214095,6 +220163,7 @@ void func_1FC42540(CPUState* cpu) { default: break; } } + int psx_taken_BFC42564 = 0; label_BFC42540: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -214126,7 +220195,7 @@ label_BFC4255C: /* nop */ /* 0xBFC42564: 10450011 beq $v0, $a1, 0xBFC425AC */ uint32_t psx_brA_BFC42564 = cpu->gpr[2]; uint32_t psx_brB_BFC42564 = cpu->gpr[5]; - int psx_taken_BFC42564 = (psx_brA_BFC42564 == psx_brB_BFC42564); + psx_taken_BFC42564 = (psx_brA_BFC42564 == psx_brB_BFC42564); /* 0xBFC42568: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC42568u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC42564) goto label_BFC425AC; @@ -214204,6 +220273,7 @@ void func_1FC425BC(CPUState* cpu) { default: break; } } + int psx_taken_BFC425DC = 0; label_BFC425BC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -214227,7 +220297,7 @@ label_BFC425BC: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC425D8u); return; } g_debug_last_store_pc = 0xBFC425D8u; cpu->write_word(psx_addr, cpu->gpr[31]); } /* 0xBFC425DC: 10400003 beq $v0, $zero, 0xBFC425EC */ uint32_t psx_brA_BFC425DC = cpu->gpr[2]; uint32_t psx_brB_BFC425DC = cpu->gpr[0]; - int psx_taken_BFC425DC = (psx_brA_BFC425DC == psx_brB_BFC425DC); + psx_taken_BFC425DC = (psx_brA_BFC425DC == psx_brB_BFC425DC); /* 0xBFC425E0: AC2F9D9C sw $t7, -25188($at) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[1] + (-25188)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC425E0u); return; } g_debug_last_store_pc = 0xBFC425E0u; cpu->write_word(psx_addr, cpu->gpr[15]); } if (psx_taken_BFC425DC) goto label_BFC425EC; @@ -214266,6 +220336,7 @@ void func_1FC425FC(CPUState* cpu) { default: break; } } + int psx_taken_BFC4261C = 0; label_BFC425FC: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(4u); @@ -214295,7 +220366,7 @@ label_BFC4260C: cpu->gpr[3] = cpu->gpr[2] + cpu->gpr[0]; /* 0xBFC4261C: 10820005 beq $a0, $v0, 0xBFC42634 */ uint32_t psx_brA_BFC4261C = cpu->gpr[4]; uint32_t psx_brB_BFC4261C = cpu->gpr[2]; - int psx_taken_BFC4261C = (psx_brA_BFC4261C == psx_brB_BFC4261C); + psx_taken_BFC4261C = (psx_brA_BFC4261C == psx_brB_BFC4261C); /* 0xBFC42620: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC42620u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC4261C) goto label_BFC42634; @@ -214335,6 +220406,8 @@ void func_1FC42640(CPUState* cpu) { default: break; } } + int psx_taken_BFC42664 = 0; + int psx_taken_BFC426B0 = 0; label_BFC42640: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(7u); @@ -214366,7 +220439,7 @@ label_BFC4265C: /* nop */ /* 0xBFC42664: 10450019 beq $v0, $a1, 0xBFC426CC */ uint32_t psx_brA_BFC42664 = cpu->gpr[2]; uint32_t psx_brB_BFC42664 = cpu->gpr[5]; - int psx_taken_BFC42664 = (psx_brA_BFC42664 == psx_brB_BFC42664); + psx_taken_BFC42664 = (psx_brA_BFC42664 == psx_brB_BFC42664); /* 0xBFC42668: 8FBF0014 lw $ra, 20($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (20)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC42668u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC42664) goto label_BFC426CC; @@ -214416,7 +220489,7 @@ label_BFC426A0: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-8)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC426ACu); return; } g_debug_last_store_pc = 0xBFC426ACu; cpu->write_word(psx_addr, cpu->gpr[0]); } /* 0xBFC426B0: 1443FFFB bne $v0, $v1, 0xBFC426A0 */ uint32_t psx_brA_BFC426B0 = cpu->gpr[2]; uint32_t psx_brB_BFC426B0 = cpu->gpr[3]; - int psx_taken_BFC426B0 = (psx_brA_BFC426B0 != psx_brB_BFC426B0); + psx_taken_BFC426B0 = (psx_brA_BFC426B0 != psx_brB_BFC426B0); /* 0xBFC426B4: AC40FFFC sw $zero, -4($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (-4)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC426B4u); return; } g_debug_last_store_pc = 0xBFC426B4u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC426B0) goto label_BFC426A0; @@ -214508,6 +220581,13 @@ void func_1FC4270C(CPUState* cpu) { default: break; } } + int psx_taken_BFC4272C = 0; + int psx_taken_BFC42778 = 0; + int psx_taken_BFC427A0 = 0; + int psx_taken_BFC427C0 = 0; + int psx_taken_BFC427D4 = 0; + int psx_taken_BFC42808 = 0; + int psx_taken_BFC4281C = 0; label_BFC4270C: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(10u); @@ -214531,7 +220611,7 @@ label_BFC4270C: cpu->gpr[15] = cpu->gpr[14] & cpu->gpr[22]; /* 0xBFC4272C: 11E00032 beq $t7, $zero, 0xBFC427F8 */ uint32_t psx_brA_BFC4272C = cpu->gpr[15]; uint32_t psx_brB_BFC4272C = cpu->gpr[0]; - int psx_taken_BFC4272C = (psx_brA_BFC4272C == psx_brB_BFC4272C); + psx_taken_BFC4272C = (psx_brA_BFC4272C == psx_brB_BFC4272C); /* 0xBFC42730: 00000000 nop */ /* nop */ if (psx_taken_BFC4272C) goto label_BFC427F8; @@ -214586,7 +220666,7 @@ label_BFC4276C: cpu->gpr[25] = cpu->gpr[24] & cpu->gpr[17]; /* 0xBFC42778: 13200010 beq $t9, $zero, 0xBFC427BC */ uint32_t psx_brA_BFC42778 = cpu->gpr[25]; uint32_t psx_brB_BFC42778 = cpu->gpr[0]; - int psx_taken_BFC42778 = (psx_brA_BFC42778 == psx_brB_BFC42778); + psx_taken_BFC42778 = (psx_brA_BFC42778 == psx_brB_BFC42778); /* 0xBFC4277C: 00000000 nop */ /* nop */ if (psx_taken_BFC42778) goto label_BFC427BC; @@ -214613,7 +220693,7 @@ label_BFC42780: { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[3] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC4279Cu); return; } (void)cpu->read_word(psx_addr); } /* 0xBFC427A0: 10400006 beq $v0, $zero, 0xBFC427BC */ uint32_t psx_brA_BFC427A0 = cpu->gpr[2]; uint32_t psx_brB_BFC427A0 = cpu->gpr[0]; - int psx_taken_BFC427A0 = (psx_brA_BFC427A0 == psx_brB_BFC427A0); + psx_taken_BFC427A0 = (psx_brA_BFC427A0 == psx_brB_BFC427A0); /* 0xBFC427A4: 00000000 nop */ /* nop */ if (psx_taken_BFC427A0) goto label_BFC427BC; @@ -214647,7 +220727,7 @@ label_BFC427BC: cpu->gpr[16] = (uint32_t)((int32_t)cpu->gpr[16] + (1)); /* 0xBFC427C0: 1614FFEA bne $s0, $s4, 0xBFC4276C */ uint32_t psx_brA_BFC427C0 = cpu->gpr[16]; uint32_t psx_brB_BFC427C0 = cpu->gpr[20]; - int psx_taken_BFC427C0 = (psx_brA_BFC427C0 != psx_brB_BFC427C0); + psx_taken_BFC427C0 = (psx_brA_BFC427C0 != psx_brB_BFC427C0); /* 0xBFC427C4: 00118840 sll $s1, $s1, 1 */ cpu->gpr[17] = cpu->gpr[17] << 1u; if (psx_taken_BFC427C0) goto label_BFC4276C; @@ -214664,7 +220744,7 @@ label_BFC427C8: cpu->gpr[14] = cpu->gpr[13] & cpu->gpr[22]; /* 0xBFC427D4: 15C0FFE4 bne $t6, $zero, 0xBFC42768 */ uint32_t psx_brA_BFC427D4 = cpu->gpr[14]; uint32_t psx_brB_BFC427D4 = cpu->gpr[0]; - int psx_taken_BFC427D4 = (psx_brA_BFC427D4 != psx_brB_BFC427D4); + psx_taken_BFC427D4 = (psx_brA_BFC427D4 != psx_brB_BFC427D4); /* 0xBFC427D8: 00008021 addu $s0, $zero, $zero */ cpu->gpr[16] = cpu->gpr[0] + cpu->gpr[0]; if (psx_taken_BFC427D4) goto label_BFC42768; @@ -214702,7 +220782,7 @@ label_BFC427F8: cpu->gpr[1] = 0x80000000u; /* 0xBFC42808: 13010006 beq $t8, $at, 0xBFC42824 */ uint32_t psx_brA_BFC42808 = cpu->gpr[24]; uint32_t psx_brB_BFC42808 = cpu->gpr[1]; - int psx_taken_BFC42808 = (psx_brA_BFC42808 == psx_brB_BFC42808); + psx_taken_BFC42808 = (psx_brA_BFC42808 == psx_brB_BFC42808); /* 0xBFC4280C: 00000000 nop */ /* nop */ if (psx_taken_BFC42808) goto label_BFC42824; @@ -214719,7 +220799,7 @@ label_BFC42810: cpu->gpr[8] = cpu->gpr[25] & 0x8000u; /* 0xBFC4281C: 11000006 beq $t0, $zero, 0xBFC42838 */ uint32_t psx_brA_BFC4281C = cpu->gpr[8]; uint32_t psx_brB_BFC4281C = cpu->gpr[0]; - int psx_taken_BFC4281C = (psx_brA_BFC4281C == psx_brB_BFC4281C); + psx_taken_BFC4281C = (psx_brA_BFC4281C == psx_brB_BFC4281C); /* 0xBFC42820: 8FBF001C lw $ra, 28($sp) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[29] + (28)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC42820u); return; } cpu->gpr[31] = cpu->read_word(psx_addr); } if (psx_taken_BFC4281C) goto label_BFC42838; @@ -214759,6 +220839,9 @@ label_BFC42838: void func_1FC42844(CPUState* cpu) { debug_server_log_call_entry(0x1FC42844u); + int psx_taken_BFC4285C = 0; + int psx_taken_BFC42864 = 0; + int psx_taken_BFC42890 = 0; label_BFC42844: #ifdef PSX_ENABLE_BLOCK_CYCLES psx_advance_cycles(8u); @@ -214778,7 +220861,7 @@ label_BFC42844: /* nop */ /* 0xBFC4285C: 10A30017 beq $a1, $v1, 0xBFC428BC */ uint32_t psx_brA_BFC4285C = cpu->gpr[5]; uint32_t psx_brB_BFC4285C = cpu->gpr[3]; - int psx_taken_BFC4285C = (psx_brA_BFC4285C == psx_brB_BFC4285C); + psx_taken_BFC4285C = (psx_brA_BFC4285C == psx_brB_BFC4285C); /* 0xBFC42860: 00000000 nop */ /* nop */ if (psx_taken_BFC4285C) goto label_BFC428BC; @@ -214789,7 +220872,7 @@ label_BFC42864: psx_check_interrupts(cpu); /* 0xBFC42864: 10A0000C beq $a1, $zero, 0xBFC42898 */ uint32_t psx_brA_BFC42864 = cpu->gpr[5]; uint32_t psx_brB_BFC42864 = cpu->gpr[0]; - int psx_taken_BFC42864 = (psx_brA_BFC42864 == psx_brB_BFC42864); + psx_taken_BFC42864 = (psx_brA_BFC42864 == psx_brB_BFC42864); /* 0xBFC42868: AC400000 sw $zero, 0($v0) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[2] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC42868u); return; } g_debug_last_store_pc = 0xBFC42868u; cpu->write_word(psx_addr, cpu->gpr[0]); } if (psx_taken_BFC42864) goto label_BFC42898; @@ -214818,7 +220901,7 @@ label_BFC4286C: cpu->gpr[10] = cpu->gpr[24] | cpu->gpr[9]; /* 0xBFC42890: 1000000A beq $zero, $zero, 0xBFC428BC */ uint32_t psx_brA_BFC42890 = cpu->gpr[0]; uint32_t psx_brB_BFC42890 = cpu->gpr[0]; - int psx_taken_BFC42890 = (psx_brA_BFC42890 == psx_brB_BFC42890); + psx_taken_BFC42890 = (psx_brA_BFC42890 == psx_brB_BFC42890); /* 0xBFC42894: ACCA0000 sw $t2, 0($a2) */ { uint32_t psx_addr = (uint32_t)((int32_t)cpu->gpr[6] + (0)); if (psx_addr & 3u) { psx_unaligned_access(cpu, psx_addr, 0xBFC42894u); return; } g_debug_last_store_pc = 0xBFC42894u; cpu->write_word(psx_addr, cpu->gpr[10]); } if (psx_taken_BFC42890) goto label_BFC428BC; diff --git a/recompiler/src/full_function_emitter.cpp b/recompiler/src/full_function_emitter.cpp index 180b3828..9f9c2a57 100644 --- a/recompiler/src/full_function_emitter.cpp +++ b/recompiler/src/full_function_emitter.cpp @@ -286,6 +286,19 @@ bool FullFunctionEmitter::emit_function( block_cycles[leader] = count; } + /* Emit branch-predicate variable declarations at function entry, + * each initialized to 0. Subsequent terminator-emit assigns instead of + * declares, so a `goto label_X` that lands on the delay slot of a + * preceding beq does NOT execute the dangling `if (psx_taken_X) goto Y` + * with an indeterminate value (would be UB per C; on MinGW the stack + * garbage was non-zero, causing a spurious branch — root cause of the + * memcard COPY confirm-modal freeze in widget 0xB → BFC21800 loop). */ + for (const auto& [ds_addr, pb] : pending_at) { + if (is_branch_kind(pb.kind.c_str())) { + out += fmt::format(" int psx_taken_{:08X} = 0;\n", pb.terminator_addr); + } + } + for (auto it = addr_to_raw.begin(); it != addr_to_raw.end(); ++it) { uint32_t addr = it->first; uint32_t raw = it->second; @@ -331,7 +344,10 @@ bool FullFunctionEmitter::emit_function( out += fmt::format(" {}\n", tr.pre_delay_code); } std::string cond = branch_condition(tr.terminator_kind, addr); - out += fmt::format(" int psx_taken_{:08X} = ({});\n", addr, cond); + /* Assignment, not declaration — variable is declared at + * function entry initialized to 0 (see fix for chained + * branch + delay-slot label-placement bug). */ + out += fmt::format(" psx_taken_{:08X} = ({});\n", addr, cond); } else if (kind == "rfe") { // RFE: emit cop0 stack pop immediately (no delay slot). //