blob: e075de5283603f4e378db8c60059f80800b8de97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
static void mapper_0000_init(struct nes_state *state) {
// Nothing to initialize for 001
}
__attribute__((hot))
static uint8_t mapper_0000_prg_read(struct nes_state *state, uint32_t addr) {
uint32_t prg_size = state->ines.prg_size;
uint32_t mask = (state->ines.prg_size == 16384) ? 0x3fff : 0x7fff;
return state->prg_rom[addr & mask];
}
static void mapper_0000_prg_write(struct nes_state *state, uint32_t addr, uint8_t value) {
}
__attribute__((hot))
static uint8_t mapper_0000_chr_read(struct nes_state *state, uint32_t addr) {
return state->chr_rom[addr];
}
static void mapper_0000_chr_write(struct nes_state *state, uint32_t addr, uint8_t value) {
}
|