folder reordering

This commit is contained in:
black
2025-07-06 11:25:11 +02:00
parent ff50d328fb
commit 487621748e
10 changed files with 20 additions and 18 deletions

18
src/components/Memory.cpp Normal file
View 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);
}