Mapping the DMA's channels to the bus

This commit is contained in:
Anonymus Raccoon
2020-05-27 15:04:01 +02:00
parent 56d51425f3
commit 4c965e916f
5 changed files with 80 additions and 7 deletions
+3
View File
@@ -11,6 +11,7 @@
#include "../Cartridge/Cartridge.hpp"
#include "../Memory/AMemory.hpp"
#include "Instruction.hpp"
#include "DMA/DMA.hpp"
namespace ComSquare::CPU
{
@@ -201,6 +202,8 @@ namespace ComSquare::CPU
//! @brief The cartridge header (stored for interrupt vectors..
Cartridge::Header &_cartridgeHeader;
std::array<DMA, 8> _dmaChannels;
//! @brief True if an addressing mode with an iterator (x, y) has crossed the page. (Used because crossing the page boundary take one more cycle to run certain instructions).
bool _hasIndexCrossedPageBoundary = false;