nesemu/include/mapper.h

23 lines
338 B
C
Raw Permalink Normal View History

2023-11-26 12:11:49 -05:00
//
// Created by william on 10/15/23.
//
2024-01-06 14:27:09 -05:00
#include "types.h"
2023-11-26 12:11:49 -05:00
#ifndef NESEMULATOR_MAPPER_H
#define NESEMULATOR_MAPPER_H
2024-01-06 14:27:09 -05:00
typedef struct mapper {
2024-05-23 22:44:52 -04:00
byte *(*mem_read)(address);
2023-11-26 12:11:49 -05:00
2024-05-23 22:44:52 -04:00
byte *(*ppu_read)(address);
2023-11-26 12:11:49 -05:00
} Mapper;
enum MapperType {
MAPPER_TYPE_SIMPLE
};
Mapper get_mapper(enum MapperType type);
#endif //NESEMULATOR_MAPPER_H