mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-11-17 04:09:14 +00:00
9960ad6012
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
18 lines
367 B
C++
18 lines
367 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "Rom.h"
|
|
|
|
namespace EightBit {
|
|
// The RAM class is everything the ROM class is, plus
|
|
// it's externally 'reference'able and 'poke'able.
|
|
class Ram : public Rom {
|
|
public:
|
|
Ram(size_t size = 0) noexcept;
|
|
|
|
[[nodiscard]] uint8_t& reference(uint16_t address) final;
|
|
void poke(uint16_t address, uint8_t value) final;
|
|
};
|
|
}
|