X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fnew_dynarec%2Fpcsxmem.c;h=151fb4bba3c6ae38a448bc4f7d57e40210441ce1;hb=HEAD;hp=e61e8a3527553dc0c05dce35728e19a62887447d;hpb=20bfbac0014bac12af9aa63e49eeedfac725f812;p=pcsx_rearmed.git diff --git a/libpcsxcore/new_dynarec/pcsxmem.c b/libpcsxcore/new_dynarec/pcsxmem.c index e61e8a35..98e2c6be 100644 --- a/libpcsxcore/new_dynarec/pcsxmem.c +++ b/libpcsxcore/new_dynarec/pcsxmem.c @@ -85,21 +85,12 @@ static u32 io_read_sio32() static void io_write_sio16(u32 value) { - sioWrite8((unsigned char)value); - sioWrite8((unsigned char)(value>>8)); + sioWrite8(value); } static void io_write_sio32(u32 value) { - sioWrite8((unsigned char)value); - sioWrite8((unsigned char)(value >> 8)); - sioWrite8((unsigned char)(value >> 16)); - sioWrite8((unsigned char)(value >> 24)); -} - -static u32 io_read_sio2_status() -{ - return 0x80; + sioWrite8(value); } #if !defined(DRC_DBG) && defined(__arm__) @@ -272,7 +263,6 @@ make_forcew32_func(10a0) make_forcew32_func(10b0) make_forcew32_func(10c0) make_forcew32_func(10e0) -make_forcew32_func(10f0) void new_dyna_pcsx_mem_load_state(void) { @@ -386,7 +376,7 @@ void new_dyna_pcsx_mem_init(void) map_item(&mem_iortab[IOMEM16(0x1048)], sioReadMode16, 1); map_item(&mem_iortab[IOMEM16(0x104a)], sioReadCtrl16, 1); map_item(&mem_iortab[IOMEM16(0x104e)], sioReadBaud16, 1); - map_item(&mem_iortab[IOMEM16(0x1054)], io_read_sio2_status, 1); + map_item(&mem_iortab[IOMEM16(0x1054)], sio1ReadStat16, 1); map_item(&mem_iortab[IOMEM16(0x1100)], psxRcntRcount0, 1); map_item(&mem_iortab[IOMEM16(0x1104)], io_rcnt_read_mode0, 1); map_item(&mem_iortab[IOMEM16(0x1108)], io_rcnt_read_target0, 1); @@ -426,6 +416,7 @@ void new_dyna_pcsx_mem_init(void) map_item(&mem_iowtab[IOMEM32(0x10cc)], psxHwWriteChcr4, 1); map_item(&mem_iowtab[IOMEM32(0x10e8)], psxHwWriteChcr6, 1); map_item(&mem_iowtab[IOMEM32(0x10ec)], psxHwWriteChcr6, 1); + map_item(&mem_iowtab[IOMEM32(0x10f0)], psxHwWriteDmaPcr32, 1); map_item(&mem_iowtab[IOMEM32(0x10f4)], psxHwWriteDmaIcr32, 1); map_item(&mem_iowtab[IOMEM32(0x1100)], io_rcnt_write_count0, 1); map_item(&mem_iowtab[IOMEM32(0x1104)], io_rcnt_write_mode0, 1); @@ -468,7 +459,7 @@ void new_dyna_pcsx_mem_init(void) map_item(&mem_iowtab[IOMEM16(0x10e0)], io_write_force32_10e0, 1); map_item(&mem_iowtab[IOMEM16(0x10e8)], psxHwWriteChcr6, 1); map_item(&mem_iowtab[IOMEM16(0x10ec)], psxHwWriteChcr6, 1); - map_item(&mem_iowtab[IOMEM16(0x10f0)], io_write_force32_10f0, 1); + map_item(&mem_iowtab[IOMEM16(0x10f0)], psxHwWriteDmaPcr32, 1); map_item(&mem_iowtab[IOMEM16(0x10f4)], psxHwWriteDmaIcr32, 1); map_item(&mem_iowtab[IOMEM16(0x1100)], io_rcnt_write_count0, 1); map_item(&mem_iowtab[IOMEM16(0x1104)], io_rcnt_write_mode0, 1); @@ -510,10 +501,6 @@ void new_dyna_pcsx_mem_reset(void) // plugins might change so update the pointers map_item(&mem_iortab[IOMEM32(0x1810)], GPU_readData, 1); map_item(&mem_iowtab[IOMEM32(0x1810)], GPU_writeData, 1); - if (Config.hacks.gpu_busy) - map_item(&mem_iortab[IOMEM32(0x1814)], psxHwReadGpuSRbusyHack, 1); - else - map_item(&mem_iortab[IOMEM32(0x1814)], psxHwReadGpuSR, 1); } void new_dyna_pcsx_mem_shutdown(void)