From 59fb0bb456b51f5385a2e0b8b4cd8c043595b15d Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 23 Oct 2011 23:18:19 +0300 Subject: [PATCH] rcnt: remove gate guess for cnt 0 and 1 at least 1 is wrong according to Ryphecha's info, and breaks at least Wipeout XL. --- libpcsxcore/new_dynarec/pcsxmem.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/libpcsxcore/new_dynarec/pcsxmem.c b/libpcsxcore/new_dynarec/pcsxmem.c index e56abb7e..4e222308 100644 --- a/libpcsxcore/new_dynarec/pcsxmem.c +++ b/libpcsxcore/new_dynarec/pcsxmem.c @@ -79,11 +79,7 @@ static void io_write_sio32(u32 value) static void map_rcnt_rcount0(u32 mode) { - if (mode & 0x01) { // gate - map_item(&mem_iortab[IOMEM32(0x1100)], &psxH[0x1000], 0); - map_item(&mem_iortab[IOMEM16(0x1100)], &psxH[0x1000], 0); - } - else if (mode & 0x100) { // pixel clock + if (mode & 0x100) { // pixel clock map_item(&mem_iortab[IOMEM32(0x1100)], rcnt0_read_count_m1, 1); map_item(&mem_iortab[IOMEM16(0x1100)], rcnt0_read_count_m1, 1); } @@ -95,11 +91,7 @@ static void map_rcnt_rcount0(u32 mode) static void map_rcnt_rcount1(u32 mode) { - if (mode & 0x01) { // gate - map_item(&mem_iortab[IOMEM32(0x1110)], &psxH[0x1000], 0); - map_item(&mem_iortab[IOMEM16(0x1110)], &psxH[0x1000], 0); - } - else if (mode & 0x100) { // hcnt + if (mode & 0x100) { // hcnt map_item(&mem_iortab[IOMEM32(0x1110)], rcnt1_read_count_m1, 1); map_item(&mem_iortab[IOMEM16(0x1110)], rcnt1_read_count_m1, 1); } -- 2.39.5