mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-25 15:30:35 +00:00
887b89308a
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
14 lines
292 B
C++
14 lines
292 B
C++
#include "stdafx.h"
|
|
#include "Ram.h"
|
|
|
|
EightBit::Ram::Ram(const size_t size) noexcept
|
|
: Rom(size) {}
|
|
|
|
uint8_t& EightBit::Ram::reference(const uint16_t address) {
|
|
return BYTES()[address];
|
|
}
|
|
|
|
void EightBit::Ram::poke(const uint16_t address, const uint8_t value) {
|
|
Rom::poke(address, value);
|
|
}
|