summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Phil Bennett <philipjbennett@users.noreply.github.com>2009-06-29 23:03:49 +0000
committer Phil Bennett <philipjbennett@users.noreply.github.com>2009-06-29 23:03:49 +0000
commitda382ee6b20272dfbe8d35706d61acc67f9fdabd (patch)
treeed63f7f174718745f4c2a35578f80ed31bc22973
parenta42c1c0299062d10c9bde0dde48f7c46c706c823 (diff)
Fixed Model 3 Real3D DMA source addressing
-rw-r--r--src/mame/video/model3.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/video/model3.c b/src/mame/video/model3.c
index afa36d78aa3..62476813c18 100644
--- a/src/mame/video/model3.c
+++ b/src/mame/video/model3.c
@@ -824,9 +824,9 @@ void real3d_display_list1_dma(const address_space *space, UINT32 src, UINT32 dst
for(i=0; i < length; i+=4) {
UINT32 w;
if (byteswap) {
- w = BYTE_REVERSE32(memory_read_dword(space, src^4));
+ w = BYTE_REVERSE32(memory_read_dword(space, src));
} else {
- w = memory_read_dword(space, src^4);
+ w = memory_read_dword(space, src);
}
display_list_ram[d++] = w;
src += 4;
@@ -840,9 +840,9 @@ void real3d_display_list2_dma(const address_space *space, UINT32 src, UINT32 dst
for(i=0; i < length; i+=4) {
UINT32 w;
if (byteswap) {
- w = BYTE_REVERSE32(memory_read_dword(space, src^4));
+ w = BYTE_REVERSE32(memory_read_dword(space, src));
} else {
- w = memory_read_dword(space, src^4);
+ w = memory_read_dword(space, src);
}
culling_ram[d++] = w;
src += 4;
@@ -856,11 +856,11 @@ void real3d_vrom_texture_dma(const address_space *space, UINT32 src, UINT32 dst,
UINT32 address, header;
if (byteswap) {
- address = BYTE_REVERSE32(memory_read_dword(space, (src+0)^4));
- header = BYTE_REVERSE32(memory_read_dword(space, (src+4)^4));
+ address = BYTE_REVERSE32(memory_read_dword(space, (src+0)));
+ header = BYTE_REVERSE32(memory_read_dword(space, (src+4)));
} else {
- address = memory_read_dword(space, (src+0)^4);
- header = memory_read_dword(space, (src+4)^4);
+ address = memory_read_dword(space, (src+0));
+ header = memory_read_dword(space, (src+4));
}
real3d_upload_texture(header, (UINT32*)&model3_vrom[address]);
}
@@ -872,9 +872,9 @@ void real3d_texture_fifo_dma(const address_space *space, UINT32 src, int length,
for(i=0; i < length; i+=4) {
UINT32 w;
if (byteswap) {
- w = BYTE_REVERSE32(memory_read_dword(space, src^4));
+ w = BYTE_REVERSE32(memory_read_dword(space, src));
} else {
- w = memory_read_dword(space, src^4);
+ w = memory_read_dword(space, src);
}
texture_fifo[texture_fifo_pos] = w;
texture_fifo_pos++;
@@ -889,9 +889,9 @@ void real3d_polygon_ram_dma(const address_space *space, UINT32 src, UINT32 dst,
for(i=0; i < length; i+=4) {
UINT32 w;
if (byteswap) {
- w = BYTE_REVERSE32(memory_read_dword(space, src^4));
+ w = BYTE_REVERSE32(memory_read_dword(space, src));
} else {
- w = memory_read_dword(space, src^4);
+ w = memory_read_dword(space, src);
}
polygon_ram[d++] = w;
src += 4;