You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
500 B
24 lines
500 B
/* PlipMemoryRom.h |
|
* |
|
* A read-only memory implementation. |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include "PlipMemory.h" |
|
|
|
namespace Plip { |
|
class PlipMemoryRom : public PlipMemory { |
|
public: |
|
explicit PlipMemoryRom(void *data, uint32_t length); |
|
~PlipMemoryRom(); |
|
|
|
uint8_t GetByte(uint32_t address) override; |
|
uint32_t GetLength() override; |
|
void SetByte(uint32_t address, uint8_t value) override {}; |
|
|
|
private: |
|
uint32_t m_length; |
|
uint8_t *m_data; |
|
}; |
|
}
|
|
|