diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-04-06 12:27:12 +0200 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-04-06 12:27:12 +0200 |
| commit | 39715ca6bf65d2e2dd889cdef4b39d584464d9e7 (patch) | |
| tree | 39390f6fadd0ddbe913ae66e11847b8b3e7b16bb /mknes.h | |
| parent | dabd7a5848e6aa55e91cf4c804f6236b4f7fe30e (diff) | |
added more mappers (buggy)
Diffstat (limited to 'mknes.h')
| -rw-r--r-- | mknes.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -97,15 +97,22 @@ struct nes_state { struct cpu_state cpu; uint8_t irq_pending; uint8_t nmi_pending; + uint8_t input[2]; // Controller 1 & 2 + uint8_t input_latch[2]; // Latched inputs after strobe + uint8_t input_strobe; // Control bit (0 or 1) + uint8_t input_bit[2]; // Current bit position being shifted out struct ppu_state ppu; + struct mapper_entry mapper; union mapper_data map; + uint8_t *pixels; uint8_t *ram; uint8_t *sram; uint8_t *ciram; uint8_t *prg_rom; uint8_t *chr_rom; + uint8_t *chr_ram; }; |
