emu_nes/rom.h
vin 77d37dd455 implement basic iNES and Mapper 0 ROM loading
It seems like the test ROM loads fine but the instructions are not,
but that's exactly what the test ROM is for I suppose.
2024-06-17 14:46:46 +05:30

18 lines
309 B
C

enum screen_mirroring {
M_HORIZONTAL,
M_VERTICAL,
M_FOUR,
};
struct Rom {
char *prg_rom;
char *chr_rom;
size_t prg_rom_size;
size_t chr_rom_size;
uint8_t mapper;
enum screen_mirroring mirror;
};
void parse_rom(const uint8_t *data, size_t data_len, struct Rom *rom);
void free_rom(struct Rom *rom);