From b35551ddc948be413d179b798a0350eb2202bba8 Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Fri, 5 Dec 2025 09:34:21 +0100 Subject: working --- mknes.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'mknes.h') diff --git a/mknes.h b/mknes.h index 944f762..8972897 100644 --- a/mknes.h +++ b/mknes.h @@ -69,14 +69,14 @@ struct ppu_state { uint8_t palette; } __attribute__((packed)) sprites[8]; // 32 -> +40 - uint8_t input_strobe; // 76 - Control bit (0 or 1) - uint8_t input[2]; // 73 - Controller 1 & 2 - uint8_t input_latch[2]; // 74 - Latched inputs after strobe - uint8_t input_bit[2]; // 75 - Current bit position being shifted out - uint8_t frame_ready; // 77 - uint8_t sprite_zero_in_range; // 78 - Boolean: is sprite 0 in range (will always be slot 0 if true) - - uint8_t palette[32]; // 79 + uint8_t input_strobe; // 73 - Control bit (0 or 1) + uint8_t input[2]; // 74 - Controller 1 & 2 + uint8_t input_latch[2]; // 76 - Latched inputs after strobe + uint8_t input_bit[2]; // 78 - Current bit position being shifted out + uint8_t frame_ready; // 80 + uint8_t sprite_zero_in_range; // 81 - Boolean: is sprite 0 in range (will always be slot 0 if true) + + uint8_t palette[32]; // 82 // NOTE(peter): CACHELINE 5 uint8_t oam[256] __attribute__((aligned(64))); -- cgit v1.2.3