summaryrefslogtreecommitdiff
path: root/mappers/mapper.h
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-05-27 15:03:30 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-05-27 15:03:30 +0200
commit7cca3bdbec289328b537c8256b43dcfedc5d56b8 (patch)
tree181c22764d3d881ccd41d5c0282cd364d3f5197d /mappers/mapper.h
parenta8e0c141b0184d629504b9f0ee8dbc4fefb90934 (diff)
renaming
Diffstat (limited to 'mappers/mapper.h')
-rw-r--r--mappers/mapper.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/mappers/mapper.h b/mappers/mapper.h
index 20ee906..d4384ac 100644
--- a/mappers/mapper.h
+++ b/mappers/mapper.h
@@ -12,8 +12,10 @@
struct nes_state;
struct mapper_functions {
- uint8_t (*prg_read)(struct nes_state *state, uint32_t addr);
- void (*prg_write)(struct nes_state *state, uint32_t addr, uint8_t value);
+ 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);
@@ -25,8 +27,8 @@ union mapper_data {
struct mapper_000_0 m000_0;
struct mapper_001_0 m001_0;
struct mapper_002_2 m002_2;
- struct mapper_003_2 m003_0;
- struct mapper_003_2 m003_1;
+ 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;