diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-11-02 09:16:03 +0100 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-11-02 09:16:03 +0100 |
| commit | ed41715142f419021ed8fef5522ea1f363f16441 (patch) | |
| tree | 9cf0049db6ac5b0da5552bba9e0376b82eaeb2b4 /mknes.h | |
| parent | e137c881d835703d1030746cd7262899de7169c6 (diff) | |
fix multiple mappers
Diffstat (limited to 'mknes.h')
| -rw-r--r-- | mknes.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
