summaryrefslogtreecommitdiff
path: root/cpu.c
diff options
context:
space:
mode:
authorvin <git@vineetk.net>2024-09-01 15:39:32 -0400
committervin <git@vineetk.net>2024-09-01 15:39:32 -0400
commit2084552c536a8299a3578c8b9b687cff98e6d9a3 (patch)
tree0a4db4405e2dfaf4d9ee63c1f86b2836790bfbe1 /cpu.c
parentf591b4adf2cfe5d7cde5ecccf95879bfe09cf57a (diff)
add basic ppu register reading
Diffstat (limited to 'cpu.c')
-rw-r--r--cpu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpu.c b/cpu.c
index 97ece60..a04c603 100644
--- a/cpu.c
+++ b/cpu.c
@@ -28,9 +28,7 @@
#define MEMORY_MIRROR(addr) \
if (addr < 0x2000) \
- addr &= 0x07FF; \
- else if (addr < 0x4000) \
- addr &= 0x2007;
+ addr &= 0x07FF;
#define PUSH(b) \
(memwrite(0x0100 + regs.sp--, b))