notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
setup spu r8 handlers
[pcsx_rearmed.git]
/
libpcsxcore
/
new_dynarec
/
pcsxmem.c
diff --git
a/libpcsxcore/new_dynarec/pcsxmem.c
b/libpcsxcore/new_dynarec/pcsxmem.c
index
7c670f8
..
fc19494
100644
(file)
--- a/
libpcsxcore/new_dynarec/pcsxmem.c
+++ b/
libpcsxcore/new_dynarec/pcsxmem.c
@@
-180,6
+180,16
@@
make_dma_func(3)
make_dma_func(4)
make_dma_func(6)
make_dma_func(4)
make_dma_func(6)
+static u32 io_spu_read8_even(u32 addr)
+{
+ return SPU_readRegister(addr, psxRegs.cycle) & 0xff;
+}
+
+static u32 io_spu_read8_odd(u32 addr)
+{
+ return SPU_readRegister(addr, psxRegs.cycle) >> 8;
+}
+
static u32 io_spu_read16(u32 addr)
{
return SPU_readRegister(addr, psxRegs.cycle);
static u32 io_spu_read16(u32 addr)
{
return SPU_readRegister(addr, psxRegs.cycle);
@@
-401,6
+411,8
@@
void new_dyna_pcsx_mem_init(void)
map_item(&mem_iortab[IOMEM8(0x1803)], cdrRead3, 1);
for (i = 0x1c00; i < 0x2000; i += 2) {
map_item(&mem_iortab[IOMEM8(0x1803)], cdrRead3, 1);
for (i = 0x1c00; i < 0x2000; i += 2) {
+ map_item(&mem_iortab[IOMEM8(i)], io_spu_read8_even, 1);
+ map_item(&mem_iortab[IOMEM8(i+1)], io_spu_read8_odd, 1);
map_item(&mem_iortab[IOMEM16(i)], io_spu_read16, 1);
map_item(&mem_iortab[IOMEM32(i)], io_spu_read32, 1);
}
map_item(&mem_iortab[IOMEM16(i)], io_spu_read16, 1);
map_item(&mem_iortab[IOMEM32(i)], io_spu_read32, 1);
}