diff options
Diffstat (limited to 'emu/memory.c')
-rw-r--r-- | emu/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emu/memory.c b/emu/memory.c index e879edd..620261b 100644 --- a/emu/memory.c +++ b/emu/memory.c @@ -54,7 +54,7 @@ void memory_write( void *obj, uint16_t addr, uint8_t data ) { memory_t *memory = (memory_t *)obj; - if( memory->type && MEMORY_ROM ) { + if( memory->type & MEMORY_ROM ) { // ignore writes to ROM } else { memory->cell[addr-memory->addr] = data; |