Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: memory.h
- Revision:
- 4:f537311ddc53
- Child:
- 5:b73ea174e997
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/memory.h Tue Oct 14 09:10:45 2014 +0000 @@ -0,0 +1,21 @@ +#ifndef MEMORY_HEADER +#define MEMORY_HEADER + +class Memory { + + public: + const static int MEMORY_SIZE = 16; + + private: + int memory[MEMORY_SIZE]; + + public: + Memory(); + void reset(); + void set(int address, int value); + int get(int address); + void print(); +}; + + +#endif \ No newline at end of file