EightBit/inc/Ram.h
Adrian Conlon 44c6a8c3d1 Correct some EightBit project analysis warnings.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-04-06 23:11:21 +01:00

16 lines
347 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) final;
void poke(uint16_t address, uint8_t value) final;
};
}