summaryrefslogtreecommitdiff
path: root/emu/memory.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-12-03 19:03:08 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-12-03 19:03:08 +0100
commitc40499b83f238de9b1a88a080261546149784586 (patch)
tree0baf7b5dee58d2929cd43000a0b0782e68e0d847 /emu/memory.c
parentc7b0b280339064ab1b673ab7767d0318b2e9b72a (diff)
download6502-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.c2
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;