folder reordering
This commit is contained in:
18
src/components/Memory.cpp
Normal file
18
src/components/Memory.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// 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);
|
||||
}
|
||||
Reference in New Issue
Block a user