summaryrefslogtreecommitdiff
path: root/mappers/mapper.h
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-10-09 22:07:52 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-10-09 22:07:52 +0200
commit030724a9aea346e4a9843d5842fb28c6d6c4cf1a (patch)
treef06fb84aaef64b2f4e2d81b3d2d3eef71bad83ec /mappers/mapper.h
parent412b2ef851516c1de8ba5006ddd284192cbcaf9b (diff)
Rearrangement and refactoring and optimizations and more accuracy
Diffstat (limited to 'mappers/mapper.h')
-rw-r--r--mappers/mapper.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/mappers/mapper.h b/mappers/mapper.h
deleted file mode 100644
index d4384ac..0000000
--- a/mappers/mapper.h
+++ /dev/null
@@ -1,37 +0,0 @@
-
-#include "mapper_000_0.h"
-#include "mapper_001_0.h"
-#include "mapper_002_2.h"
-#include "mapper_003_0.h"
-#include "mapper_003_1.h"
-#include "mapper_003_2.h"
-#include "mapper_007_2.h"
-#include "mapper_011_0.h"
-#include "mapper_066_0.h"
-
-struct nes_state;
-
-struct mapper_functions {
- uint8_t (*prg_rom_read)(struct nes_state *state, uint32_t addr);
- void (*prg_rom_write)(struct nes_state *state, uint32_t addr, uint8_t value);
- uint8_t (*prg_ram_read)(struct nes_state *state, uint32_t addr);
- void (*prg_ram_write)(struct nes_state *state, uint32_t addr, uint8_t value);
- uint8_t (*chr_read)(struct nes_state *state, uint32_t addr);
- void (*chr_write)(struct nes_state *state, uint32_t addr, uint8_t value);
- uint8_t (*ciram_read)(struct nes_state *state, uint32_t addr);
- void (*ciram_write)(struct nes_state *state, uint32_t addr, uint8_t value);
- void (*tick)(struct nes_state *state);
-} __attribute__((aligned(64)));
-
-union mapper_data {
- struct mapper_000_0 m000_0;
- struct mapper_001_0 m001_0;
- struct mapper_002_2 m002_2;
- struct mapper_003_0 m003_0;
- struct mapper_003_1 m003_1;
- struct mapper_003_2 m003_2;
- struct mapper_007_2 m007_2;
- struct mapper_011_0 m011_0;
- struct mapper_066_0 m066_0;
-} __attribute__((aligned(64)));
-