summaryrefslogtreecommitdiff
path: root/mknes_mapper.h
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-11-02 13:54:50 +0100
committerPeter Fors <peter.fors@mindkiller.com>2025-11-02 13:54:50 +0100
commit46d0f6aeb1588b85852487e581a8b4c9c2401646 (patch)
treeca93ed439b297fe8f59841b6885ba65ded81f9a3 /mknes_mapper.h
parentfc41466fe825eae4e5c2e2f4764482c53c687679 (diff)
Add MMC5, not in a working state, but can start castlevania iii, this is a horrible mapper to implement.
Diffstat (limited to 'mknes_mapper.h')
-rw-r--r--mknes_mapper.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mknes_mapper.h b/mknes_mapper.h
index 36d711a..923d7b8 100644
--- a/mknes_mapper.h
+++ b/mknes_mapper.h
@@ -6,6 +6,7 @@
#include "mappers/mapper_003_1.h"
#include "mappers/mapper_003_2.h"
#include "mappers/mapper_004_0.h"
+#include "mappers/mapper_005_0.h"
#include "mappers/mapper_007_2.h"
#include "mappers/mapper_011_0.h"
#include "mappers/mapper_066_0.h"
@@ -21,7 +22,7 @@ struct mapper_functions {
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);
+ void (*tick)(struct nes_state *state, uint16_t scanline, uint16_t dot);
} __attribute__((aligned(64)));
union mapper_data {
@@ -32,6 +33,7 @@ union mapper_data {
struct mapper_003_1 m003_1;
struct mapper_003_2 m003_2;
struct mapper_004_0 m004_0;
+ struct mapper_005_0 m005_0;
struct mapper_007_2 m007_2;
struct mapper_011_0 m011_0;
struct mapper_066_0 m066_0;