diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-04-16 12:37:40 +0200 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-04-16 12:37:40 +0200 |
| commit | 6321f071ed2ab36242e857a9414b7f4c53092d72 (patch) | |
| tree | 80eb868cc206c932d32943d101e7f337324fa7f4 /mknes.h | |
| parent | 18a2c1406f1fa585f4574cd687b0791e52ab5d7a (diff) | |
Battletoads working
Diffstat (limited to 'mknes.h')
| -rw-r--r-- | mknes.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -109,15 +109,15 @@ struct nes_state { uint8_t *pixels; uint8_t *ram; - uint8_t *sram; uint8_t *ciram; + uint8_t *chr_ram; uint8_t *prg_rom; uint8_t *chr_rom; - uint8_t *chr_ram; + uint8_t *sram; }; -__attribute__((aligned(4096))) static uint32_t nes_palette[64] = { +__attribute__((aligned(4096))) static uint32_t nes_palette[65] = { 0x585858ff, 0x00237cff, 0x0d1099ff, 0x300092ff, 0x4f006cff, 0x600035ff, 0x5c0500ff, 0x461800ff, 0x272d00ff, 0x093e00ff, 0x004500ff, 0x004106ff, 0x003545ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xa1a1a1ff, 0x0b53d7ff, 0x3337feff, 0x6621f7ff, 0x9515beff, 0xac166eff, 0xa62721ff, 0x864300ff, @@ -125,5 +125,5 @@ __attribute__((aligned(4096))) static uint32_t nes_palette[64] = { 0xffffffff, 0x51a5feff, 0x8084feff, 0xbc6afeff, 0xf15bfeff, 0xfe5ec4ff, 0xfe7269ff, 0xe19321ff, 0xadb600ff, 0x79d300ff, 0x51df21ff, 0x3ad974ff, 0x39c3dfff, 0x424242ff, 0x000000ff, 0x000000ff, 0xffffffff, 0xb5d9feff, 0xcacafeff, 0xe3befeff, 0xf9b8feff, 0xfebae7ff, 0xfec3bcff, 0xf4d199ff, - 0xdee086ff, 0xc6ec87ff, 0xb2f29dff, 0xa7f0c3ff, 0xa8e7f0ff, 0xacacacff, 0x000000ff, 0x000000ff + 0xdee086ff, 0xc6ec87ff, 0xb2f29dff, 0xa7f0c3ff, 0xa8e7f0ff, 0xacacacff, 0x000000ff, 0x000000ff, 0xffffffff }; |
