8 class SRam
: public Memory
{
10 SRam(unsigned int size
);
14 * Reads a single bytes of raw data from memory at
17 * \exception AccessViolation { When the data requested is
18 * not available, this exception is thrown }
20 void writeByte(unsigned int offset
, byte val
);
23 * Reads a word of raw data from memory starting at
26 * \exception AccessViolation { When the data requested is
27 * not available, this exception is thrown }
29 void writeWord(unsigned int offset
, word val
);
32 inline SRam::SRam(unsigned int size
) : Memory(size
) {
36 inline void SRam::writeByte(unsigned int offset
, byte val
) {
37 write(offset
, &val
, 1);
40 inline void SRam::writeWord(unsigned int offset
, word val
) {
41 write(offset
, (unsigned char *)&val
, 2);