EightBit/inc/Ram.h
Adrian Conlon b640da1910 Add some noexcept specifications. Just to experiment.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-08-07 23:06:15 +01:00

22 lines
345 B
C++

#pragma once
#include <cstdint>
#include "Memory.h"
namespace EightBit {
class Ram : public Memory {
public:
Ram(const size_t size = 0) noexcept
: Memory(size) {
}
uint8_t& reference(const uint16_t address) {
return BYTES()[address];
}
void poke(uint16_t address, uint8_t value) {
Memory::poke(address, value);
}
};
}