diff options
| author | 2008-04-11 18:01:14 +0000 | |
|---|---|---|
| committer | 2008-04-11 18:01:14 +0000 | |
| commit | 22df06f7247e5aa1da999754f0e1af109dcce09a (patch) | |
| tree | a52f36aa448797ecfc7e1ac796584b9c9c80474d | |
| parent | c1658675f37f0015a7760e33e312cfbd17178b4f (diff) | |
fixed sign extension when inverting mem_mask.
| -rw-r--r-- | src/emu/memory.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/memory.c b/src/emu/memory.c index d5eb111c618..98df79026de 100644 --- a/src/emu/memory.c +++ b/src/emu/memory.c @@ -3376,7 +3376,7 @@ INLINE UINT16 read_word_masked_generic(UINT8 spacenum, offs_t address, UINT16 me entry = lookup_read_entry(space, address); handler = &space->readhandlers[entry]; - DEBUG_HOOK_READ(spacenum, address & ~1, ~mem_mask); + DEBUG_HOOK_READ(spacenum, address & ~1, (UINT16)~mem_mask); offset = (address - handler->bytestart) & handler->bytemask; if (entry < STATIC_RAM) @@ -3566,7 +3566,7 @@ INLINE void write_word_masked_generic(UINT8 spacenum, offs_t address, UINT16 dat entry = lookup_write_entry(space, address); handler = &space->writehandlers[entry]; - DEBUG_HOOK_WRITE(spacenum, address & ~1, data, ~mem_mask); + DEBUG_HOOK_WRITE(spacenum, address & ~1, data, (UINT16)~mem_mask); offset = (address - handler->bytestart) & handler->bytemask; if (entry < STATIC_RAM) @@ -3758,7 +3758,7 @@ INLINE UINT32 read_dword_masked_generic(UINT8 spacenum, offs_t address, UINT32 m entry = lookup_read_entry(space, address); handler = &space->readhandlers[entry]; - DEBUG_HOOK_READ(spacenum, address & ~3, ~mem_mask); + DEBUG_HOOK_READ(spacenum, address & ~3, (UINT32)~mem_mask); offset = (address - handler->bytestart) & handler->bytemask; if (entry < STATIC_RAM) @@ -3978,7 +3978,7 @@ INLINE void write_dword_masked_generic(UINT8 spacenum, offs_t address, UINT32 da entry = lookup_write_entry(space, address); handler = &space->writehandlers[entry]; - DEBUG_HOOK_WRITE(spacenum, address & ~3, data, ~mem_mask); + DEBUG_HOOK_WRITE(spacenum, address & ~3, data, (UINT32)~mem_mask); offset = (address - handler->bytestart) & handler->bytemask; if (entry < STATIC_RAM) |
