diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-12-03 19:03:08 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-12-03 19:03:08 +0100 |
commit | c40499b83f238de9b1a88a080261546149784586 (patch) | |
tree | 0baf7b5dee58d2929cd43000a0b0782e68e0d847 /emu/memory.c | |
parent | c7b0b280339064ab1b673ab7767d0318b2e9b72a (diff) | |
download | 6502-c40499b83f238de9b1a88a080261546149784586.tar.gz 6502-c40499b83f238de9b1a88a080261546149784586.tar.bz2 |
some more opcodes for delay 7-seg example
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; |