19 lines
319 B
C++
19 lines
319 B
C++
//
|
|
// Created by black on 12.06.25.
|
|
//
|
|
|
|
#include "Memory.h"
|
|
|
|
Memory *Memory::getInstance() {
|
|
static Memory instance;
|
|
return &instance;
|
|
}
|
|
|
|
void Memory::store(const int address, const int value) {
|
|
m_memory.at(address) = value;
|
|
}
|
|
|
|
int Memory::load(const int address) const {
|
|
return m_memory.at(address);
|
|
}
|