aiie/vmram.h

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