added comments

This commit is contained in:
Robert 2021-07-12 05:26:38 +02:00
parent 54d6fc8c1e
commit ad4eafa882
9 changed files with 122 additions and 71 deletions

View file

@ -2,6 +2,7 @@
#include "util.hpp"
// The memory bank controller (MBC) needs to map addresses targeted at rom, to get the appropriate data from the ROM
class IMBC
{
public:
@ -11,7 +12,7 @@ public:
virtual ~IMBC() {}
virtual bool GetMappedRead(WORD address, DWORD& mappedAddr) = 0;
virtual bool GetMappedRead(WORD address, DWORD& mappedAddr) = 0; // Convert CPU address to ROM internal address
virtual bool GetMappedWrite(WORD address, BYTE val, DWORD& mappedAddr) = 0;
protected: