From: notaz Date: Sun, 23 Oct 2011 20:18:19 +0000 (+0300) Subject: rcnt: remove gate guess for cnt 0 and 1 X-Git-Tag: r11~31 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59fb0bb456b51f5385a2e0b8b4cd8c043595b15d;p=pcsx_rearmed.git 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. --- 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); }