Skip to content

Commit

Permalink
md: add CD PCM RAM to debug memory viewer/editor
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeUsher committed Feb 14, 2024
1 parent 21ca9cf commit 32f2059
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ares/md/mcd/debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ auto MCD::Debugger::load(Node::Object parent) -> void {
mcd.bram[address] = data;
});

memory.pcmRam = parent->append<Node::Debugger::Memory>("CD PCM RAM");
memory.pcmRam->setSize(64_KiB);
memory.pcmRam->setRead([&](u32 address) -> u8 {
return mcd.pcm.ram[address];
});
memory.bram->setWrite([&](u32 address, u8 data) -> void {
mcd.pcm.ram[address] = data;
});

tracer.instruction = parent->append<Node::Debugger::Tracer::Instruction>("Instruction", "MCD");
tracer.instruction->setAddressBits(24);
tracer.instruction->setDepth(16);
Expand Down
1 change: 1 addition & 0 deletions ares/md/mcd/mcd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ struct MCD : M68000, Thread {
Node::Debugger::Memory pram;
Node::Debugger::Memory wram;
Node::Debugger::Memory bram;
Node::Debugger::Memory pcmRam;
} memory;

struct Tracer {
Expand Down

0 comments on commit 32f2059

Please sign in to comment.