- [CHG] Tot el codi mogut a la carpeta "source"

This commit is contained in:
2026-06-03 18:07:16 +02:00
parent 88a02d49f7
commit 2fe0ce6152
32 changed files with 4 additions and 5 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "mbc_none.h"
namespace mbc_none
{
uint8_t *rom;
void reset() { } // nothing to do
uint8_t readRom(uint16_t address) { return rom[address]; }
void writeRom(uint16_t address, uint8_t value) { } // do nothing
uint8_t readRam(uint16_t address) { return 0xff; }
void writeRam(uint16_t address, uint8_t value) { } // do nothing
void init(uint8_t *rom, uint32_t rom_size, uint32_t ram_size)
{
mbc_none::rom = rom;
reset();
}
}