summaryrefslogtreecommitdiff
path: root/mknes.h
diff options
context:
space:
mode:
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