Dungeon Object Renderer updates

This commit is contained in:
scawful
2024-02-03 00:03:06 -05:00
parent 326d1dbba4
commit 13b588fa75
4 changed files with 32 additions and 33 deletions

View File

@@ -1576,6 +1576,8 @@ void CPU::LogInstructions(uint16_t PC, uint8_t opcode, uint16_t operand,
<< static_cast<int>(DB);
std::cout << " D:" << std::hex << std::setw(2) << std::setfill('0')
<< static_cast<int>(D);
std::cout << " SP:" << std::hex << std::setw(4) << std::setfill('0')
<< SP();
std::cout << std::endl;
}

View File

@@ -394,6 +394,13 @@ class CPU : public Memory, public Loggable, public core::ExperimentFlags {
}
}
void PushByte(uint8_t value) override { memory.PushByte(value); }
void PushWord(uint16_t value) override { memory.PushWord(value); }
uint8_t PopByte() override { return memory.PopByte(); }
uint16_t PopWord() override { return memory.PopWord(); }
void PushLong(uint32_t value) override { memory.PushLong(value); }
uint32_t PopLong() override { return memory.PopLong(); }
// ======================================================
// Instructions
@@ -702,12 +709,6 @@ class CPU : public Memory, public Loggable, public core::ExperimentFlags {
}
bool GetFlag(uint8_t mask) const { return (status & mask) != 0; }
void PushByte(uint8_t value) override { memory.PushByte(value); }
void PushWord(uint16_t value) override { memory.PushWord(value); }
uint8_t PopByte() override { return memory.PopByte(); }
uint16_t PopWord() override { return memory.PopWord(); }
void PushLong(uint32_t value) override { memory.PushLong(value); }
uint32_t PopLong() override { return memory.PopLong(); }
void ClearMemory() override { memory.ClearMemory(); }
uint8_t operator[](int i) const override { return 0; }
uint8_t at(int i) const override { return 0; }