mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-28 16:31:00 +00:00
22506ea56c
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
16 lines
365 B
C++
16 lines
365 B
C++
#pragma once
|
|
|
|
#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) noexcept final;
|
|
void poke(uint16_t address, uint8_t value) noexcept final;
|
|
};
|
|
}
|