mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-09 04:24:58 +00:00
Merging master
This commit is contained in:
@@ -56,4 +56,9 @@ namespace ComSquare::CPU
|
||||
throw InvalidAddress("DMA read", addr);
|
||||
}
|
||||
}
|
||||
|
||||
uint8_t DMA::run(unsigned int cycles)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -61,6 +61,11 @@ namespace ComSquare::CPU
|
||||
//! @brief Bus helper to write to this channel.
|
||||
void write(uint8_t addr, uint8_t data);
|
||||
|
||||
//! @brief Run the DMA for x cycles
|
||||
//! @param cycles The maximum number of cycles this DMA should run.
|
||||
//! @return the number of cycles taken
|
||||
uint8_t run(unsigned cycles);
|
||||
|
||||
DMA() = default;
|
||||
DMA(const DMA &) = default;
|
||||
DMA &operator=(const DMA &) = default;
|
||||
|
||||
Reference in New Issue
Block a user