mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-26 22:31:38 +00:00
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);
|
||
|
}
|