diff options
Diffstat (limited to 'src/emu/debug/debugcpu.c')
-rw-r--r-- | src/emu/debug/debugcpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c index b05c702b587..83569bf9856 100644 --- a/src/emu/debug/debugcpu.c +++ b/src/emu/debug/debugcpu.c @@ -1271,7 +1271,7 @@ static UINT64 expression_read_memory_region(running_machine &machine, const char else if (address < region->bytes()) { /* lowmask specified which address bits are within the databus width */ - UINT32 lowmask = region->width() - 1; + UINT32 lowmask = region->bytewidth() - 1; UINT8 *base = region->base() + (address & ~lowmask); /* if we have a valid base, return the appropriate byte */ @@ -1453,7 +1453,7 @@ static void expression_write_memory_region(running_machine &machine, const char else if (address < region->bytes()) { /* lowmask specified which address bits are within the databus width */ - UINT32 lowmask = region->width() - 1; + UINT32 lowmask = region->bytewidth() - 1; UINT8 *base = region->base() + (address & ~lowmask); /* if we have a valid base, set the appropriate byte */ |