mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-31 09:32:36 +00:00
Merge branch 'master' of https://github.com/AnonymusRaccoon/ComSquare into APU
# Conflicts: # CMakeLists.txt
This commit is contained in:
+21
-6
@@ -13,11 +13,26 @@ namespace ComSquare::APU
|
||||
{
|
||||
APU::APU(std::shared_ptr<MemoryMap> &map) :
|
||||
_map(map),
|
||||
_dsp(new DSP::DSP)
|
||||
_dsp(new DSP::DSP())
|
||||
{
|
||||
this->reset();
|
||||
}
|
||||
|
||||
bool APU::isDebugger()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string APU::getName()
|
||||
{
|
||||
return "APU";
|
||||
}
|
||||
|
||||
Component APU::getComponent()
|
||||
{
|
||||
return Apu;
|
||||
}
|
||||
|
||||
uint8_t APU::_internalRead(uint24_t addr) {
|
||||
switch (addr) {
|
||||
case 0x0000 ... 0x00EF:
|
||||
@@ -705,9 +720,9 @@ namespace ComSquare::APU
|
||||
}
|
||||
|
||||
MemoryMap::MemoryMap() :
|
||||
Page0(0x00F0),
|
||||
Page1(0x0100),
|
||||
Memory(0xFDC0),
|
||||
IPL()
|
||||
Page0(0x00F0, Apu, "APU's Page 0"),
|
||||
Page1(0x0100, Apu, "APU's Page 1"),
|
||||
Memory(0xFDC0, Apu, "APU's Ram"),
|
||||
IPL(Apu, "IPL Rom")
|
||||
{ }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user