diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-05-08 21:03:43 +0200 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-05-08 21:03:43 +0200 |
| commit | e28ad1546509de31b706f0fd300a906e5bc55199 (patch) | |
| tree | 40d708336cf770b8c68302bd32b069951a3df428 /mknes.h | |
| parent | da9d961bbc3662064599f4b0b4759a2c641924a2 (diff) | |
new and changed mappers
Diffstat (limited to 'mknes.h')
| -rw-r--r-- | mknes.h | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -117,15 +117,14 @@ struct nes_state { struct cpu_state cpu; // struct apu_state apu; - uint8_t *ram; - uint8_t *ciram; - uint8_t *prg_rom; - uint8_t *chr_rom; - uint8_t *chr_ram; - uint8_t *pixels; - uint8_t *sram; -} __attribute__((packed, aligned(64))); - + uint8_t ram[RAM_SIZE] __attribute__((aligned(4096))); + uint8_t ciram[CIRAM_SIZE] __attribute__((aligned(4096))); + uint8_t prg_rom[PRG_ROM_SIZE] __attribute__((aligned(4096))); + uint8_t chr_rom[CHR_ROM_SIZE] __attribute__((aligned(4096))); + uint8_t chr_ram[CHR_RAM_SIZE] __attribute__((aligned(4096))); + uint8_t pixels[PIXELS_SIZE] __attribute__((aligned(4096))); + uint8_t sram[SRAM_SIZE] __attribute__((aligned(4096))); +} __attribute__((packed, aligned(4096))); __attribute__((aligned(4096))) static uint32_t nes_palette[65] = { 0x585858ff, 0x00237cff, 0x0d1099ff, 0x300092ff, 0x4f006cff, 0x600035ff, 0x5c0500ff, 0x461800ff, |
