added mappers (not working)
This commit is contained in:
parent
034645154d
commit
9039fa0ccf
14 changed files with 512 additions and 106 deletions
27
NES Emulator/mappers/mapper000.h
Normal file
27
NES Emulator/mappers/mapper000.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
#ifndef _MAPPER_000_
|
||||
#define _MAPPER_000_
|
||||
|
||||
#include <stdio.h>
|
||||
#include "../types.h"
|
||||
#include "SDL.h"
|
||||
|
||||
struct Mapper000
|
||||
{
|
||||
Byte prg_rom_size;
|
||||
Byte chr_rom_size;
|
||||
|
||||
Byte* prg_rom;
|
||||
Byte* chr_rom;
|
||||
};
|
||||
|
||||
struct Mapper000* createMapper000(Byte prg_rom_size, Byte chr_rom_size, FILE* fp);
|
||||
void destroyMapper000(struct Mapper000* mapper);
|
||||
|
||||
Byte Mapper000_ReadCPU(struct Mapper000* mapper, Word address);
|
||||
Byte Mapper000_ReadPPU(struct Mapper000* mapper, Word address);
|
||||
void Mapper000_WriteCPU(struct Mapper000* mapper, Word address, Byte value);
|
||||
void Mapper000_WritePPU(struct Mapper000* mapper, Word address, Byte value);
|
||||
|
||||
void Mapper000_GetPatternTableTexture(struct Mapper000* mapper, SDL_Texture* texture, int index);
|
||||
|
||||
#endif _MAPPER_000_
|
Loading…
Add table
Add a link
Reference in a new issue