9 typedef int MEMORY_ADDRESS;
14 * Purpose: Class representing the memory of our emulated machine
20 //MAX_MEMORY-1 zugreifbare Speicherzellen
22 std::vector<T> m_memory;
24 /* aligns to BIT_LEN words, aka. does calc direct memorycell from address */
25 void set(const MEMORY_ADDRESS address, const T data);
26 T get(const MEMORY_ADDRESS address) const;
28 /* doesn't align, user has to do */
29 void setDirect(const MEMORY_ADDRESS address, const T data);
30 T getDirect(const MEMORY_ADDRESS address) const;
31 CMem(int size) : MAX_MEMORY(size), m_memory(size) {};