summaryrefslogtreecommitdiff
path: root/mappers/mapper_002_2.c
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-05-24 15:45:54 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-05-24 15:45:54 +0200
commita8e0c141b0184d629504b9f0ee8dbc4fefb90934 (patch)
treecff0f7e64ce58dc8f1e4ff4501743d9b94449c94 /mappers/mapper_002_2.c
parente28ad1546509de31b706f0fd300a906e5bc55199 (diff)
3011fps
Diffstat (limited to 'mappers/mapper_002_2.c')
-rw-r--r--mappers/mapper_002_2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mappers/mapper_002_2.c b/mappers/mapper_002_2.c
index b88c95b..4dbea85 100644
--- a/mappers/mapper_002_2.c
+++ b/mappers/mapper_002_2.c
@@ -1,6 +1,6 @@
-__attribute__((section(".mapper_002_2"), hot))
+__attribute__((section(".mapper_002_2")))
static uint8_t mapper_002_2_prg_read(struct nes_state *state, uint32_t addr) {
struct mapper_002_2 *mapper = (struct mapper_002_2 *)&state->map;
@@ -13,7 +13,7 @@ static uint8_t mapper_002_2_prg_read(struct nes_state *state, uint32_t addr) {
return 0;
}
-__attribute__((section(".mapper_002_2"), hot))
+__attribute__((section(".mapper_002_2")))
static void mapper_002_2_prg_write(struct nes_state *state, uint32_t addr, uint8_t value) {
struct mapper_002_2 *mapper = (struct mapper_002_2 *)&state->map;
@@ -22,12 +22,12 @@ static void mapper_002_2_prg_write(struct nes_state *state, uint32_t addr, uint8
}
}
-__attribute__((section(".mapper_002_2"), hot))
+__attribute__((section(".mapper_002_2")))
static uint8_t mapper_002_2_chr_read(struct nes_state *state, uint32_t addr) {
return state->chr_ram[addr];
}
-__attribute__((section(".mapper_002_2"), hot))
+__attribute__((section(".mapper_002_2")))
static void mapper_002_2_chr_write(struct nes_state *state, uint32_t addr, uint8_t value) {
state->chr_ram[addr] = value;
}