mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-10-10 09:23:39 +00:00
24 lines
317 B
C++
24 lines
317 B
C++
#ifndef __VMRAM__H
|
|
#define __VMRAM__H
|
|
|
|
#include <stdint.h>
|
|
|
|
/* Preallocated RAM class. */
|
|
|
|
class VMRam {
|
|
public:
|
|
VMRam();
|
|
~VMRam();
|
|
|
|
void init();
|
|
|
|
uint8_t readByte(uint32_t addr);
|
|
void writeByte(uint32_t addr, uint8_t value);
|
|
|
|
private:
|
|
uint8_t preallocatedRam[591*256]; // 591 pages of RAM
|
|
};
|
|
|
|
|
|
#endif
|