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
489 B
24 lines
489 B
/* PlipMemoryRam.h |
|
* |
|
* A random access memory implementation. |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include "PlipMemory.h" |
|
|
|
namespace Plip { |
|
class PlipMemoryRam : public PlipMemory { |
|
public: |
|
explicit PlipMemoryRam(uint32_t amount); |
|
~PlipMemoryRam(); |
|
|
|
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; |
|
}; |
|
}
|
|
|