10be89012c
-Better OAM DMA emulation -Better STAT IRQ emulation -Better LCD power on state -Moved DMA logic to GbDmaController
27 lines
No EOL
508 B
C++
27 lines
No EOL
508 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include "GbTypes.h"
|
|
#include "../Utilities/ISerializable.h"
|
|
|
|
class GbMemoryManager;
|
|
|
|
class GbDmaController : public ISerializable
|
|
{
|
|
private:
|
|
GbDmaControllerState _state;
|
|
GbMemoryManager* _memoryManager;
|
|
|
|
public:
|
|
GbDmaController(GbMemoryManager* memoryManager);
|
|
void Exec();
|
|
|
|
bool IsOamDmaRunning();
|
|
|
|
uint8_t Read();
|
|
void Write(uint8_t value);
|
|
|
|
uint8_t ReadCgb(uint16_t addr);
|
|
void WriteCgb(uint16_t addr, uint8_t value);
|
|
|
|
void Serialize(Serializer& s) override;
|
|
}; |