summaryrefslogtreecommitdiff
path: root/mknes.h
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-12-05 09:34:21 +0100
committerPeter Fors <peter.fors@mindkiller.com>2025-12-05 09:34:21 +0100
commitb35551ddc948be413d179b798a0350eb2202bba8 (patch)
tree508499b149c4aa147311c0993c061939f5b90ab6 /mknes.h
parentd1e416e8657521c77a929bab0dae819e51928088 (diff)
workingHEADmaster
Diffstat (limited to 'mknes.h')
-rw-r--r--mknes.h16
1 files changed, 8 insertions, 8 deletions
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)));