summaryrefslogtreecommitdiff
path: root/mappers/mapper.c
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-06-08 17:32:05 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-06-08 17:32:05 +0200
commit412b2ef851516c1de8ba5006ddd284192cbcaf9b (patch)
treee8b68d60125bf89e375ec9acc4e7833825abbfaa /mappers/mapper.c
parent6dd73982c514445c4d2a4787c37666d0812a3dad (diff)
tests
Diffstat (limited to 'mappers/mapper.c')
-rw-r--r--mappers/mapper.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mappers/mapper.c b/mappers/mapper.c
index 0b5612b..84586e9 100644
--- a/mappers/mapper.c
+++ b/mappers/mapper.c
@@ -24,23 +24,23 @@ static void mapper_default_ciram_write(struct nes_state *state, uint32_t addr, u
// static void mapper_default_chr_write(struct nes_state *state, uint32_t addr, uint8_t value) { }
// static void mapper_default_tick(struct nes_state *state) { }
-__attribute__((naked)) void mapper_default_prg_rom_write(struct nes_state *state, uint32_t addr, uint8_t value) {
+__attribute__((naked)) static void mapper_default_prg_rom_write(struct nes_state *state, uint32_t addr, uint8_t value) {
__asm__ __volatile__("ret");
}
-__attribute__((naked)) uint8_t mapper_default_prg_ram_read(struct nes_state *state, uint32_t addr) {
+__attribute__((naked)) static uint8_t mapper_default_prg_ram_read(struct nes_state *state, uint32_t addr) {
__asm__ __volatile__("xor %%al, %%al\n\t" "ret" : : : "al");
}
-__attribute__((naked)) void mapper_default_prg_ram_write(struct nes_state *state, uint32_t addr, uint8_t value) {
+__attribute__((naked)) static void mapper_default_prg_ram_write(struct nes_state *state, uint32_t addr, uint8_t value) {
__asm__ __volatile__("ret");
}
-__attribute__((naked)) void mapper_default_chr_write(struct nes_state *state, uint32_t addr, uint8_t value) {
+__attribute__((naked)) static void mapper_default_chr_write(struct nes_state *state, uint32_t addr, uint8_t value) {
__asm__ __volatile__("ret");
}
-__attribute__((naked)) void mapper_default_tick(struct nes_state *state) {
+__attribute__((naked)) static void mapper_default_tick(struct nes_state *state) {
__asm__ __volatile__("ret");
}