diff options
| author | Günther Neuwirth <e0626638@student.tuwien.ac.at> | 2009-05-12 23:00:03 +0200 |
|---|---|---|
| committer | Günther Neuwirth <e0626638@student.tuwien.ac.at> | 2009-05-12 23:00:03 +0200 |
| commit | ddf63e2765a6b225d18c59321595e69e1a126e0c (patch) | |
| tree | 36336d5b3a1f0af0f9c2782351e30efe31bcf159 /ue3/mycpu/cmem.h | |
| parent | e41c92320aef4a54b7f3b323f7302b180019b6d7 (diff) | |
| download | ooprog-ddf63e2765a6b225d18c59321595e69e1a126e0c.tar.gz ooprog-ddf63e2765a6b225d18c59321595e69e1a126e0c.tar.bz2 ooprog-ddf63e2765a6b225d18c59321595e69e1a126e0c.zip | |
adding tha rest
Diffstat (limited to 'ue3/mycpu/cmem.h')
| -rw-r--r-- | ue3/mycpu/cmem.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/ue3/mycpu/cmem.h b/ue3/mycpu/cmem.h index 06fa876..356c9c0 100644 --- a/ue3/mycpu/cmem.h +++ b/ue3/mycpu/cmem.h | |||
| @@ -60,13 +60,9 @@ class CMem | |||
| 60 | 60 | ||
| 61 | CDat& getRegister(const std::string reg); | 61 | CDat& getRegister(const std::string reg); |
| 62 | 62 | ||
| 63 | CDat& getMem(const std::string addr) | 63 | std::string getMemAt(const std::string addr); |
| 64 | { | 64 | |
| 65 | getRegister("R255") = 10; | 65 | void setMemAt(const std::string addr, const CDat& value); |
| 66 | return getRegister("R255"); | ||
| 67 | } | ||
| 68 | void setMem(const std::string addr, const CDat& value) | ||
| 69 | {} | ||
| 70 | 66 | ||
| 71 | #ifdef DEBUG | 67 | #ifdef DEBUG |
| 72 | /** | 68 | /** |
| @@ -83,11 +79,12 @@ class CMem | |||
| 83 | 79 | ||
| 84 | 80 | ||
| 85 | private: | 81 | private: |
| 86 | /* members */ | ||
| 87 | std::string m_memfile; | ||
| 88 | 82 | ||
| 89 | 83 | unsigned int getRegNr(const std::string reg); | |
| 90 | std::vector<CDat> m_registers; | 84 | |
| 85 | /* members */ | ||
| 86 | std::string m_memfile; | ||
| 87 | std::vector<CDat> m_registers; | ||
| 91 | }; | 88 | }; |
| 92 | 89 | ||
| 93 | #endif | 90 | #endif |
