summaryrefslogtreecommitdiff
path: root/mknes.h
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-11-02 09:16:03 +0100
committerPeter Fors <peter.fors@mindkiller.com>2025-11-02 09:16:03 +0100
commited41715142f419021ed8fef5522ea1f363f16441 (patch)
tree9cf0049db6ac5b0da5552bba9e0376b82eaeb2b4 /mknes.h
parente137c881d835703d1030746cd7262899de7169c6 (diff)
fix multiple mappers
Diffstat (limited to 'mknes.h')
-rw-r--r--mknes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mknes.h b/mknes.h
index e9d3e0e..b6739d3 100644
--- a/mknes.h
+++ b/mknes.h
@@ -61,14 +61,14 @@ struct ppu_state {
// NOTE(peter): CACHELINE 2
uint8_t secondary_oam[32] __attribute__((aligned(64)));
- // NOTE(peter): CACHELINE 3
+ // NOTE(peter): CACHELINE 2 + 3, first 5 sprites in same cacheline as secondary_oam
struct sprite_data {
uint8_t shift_lo;
uint8_t shift_hi;
uint8_t position;
uint8_t priority;
uint8_t palette;
- } __attribute__((packed)) sprites[8] __attribute__((aligned(64)));
+ } __attribute__((packed)) sprites[8];
uint8_t input[2]; // 40 - Controller 1 & 2
uint8_t input_latch[2]; // 42 - Latched inputs after strobe