(RAM memory)
| 100 | } |
| 101 | |
| 102 | final public void setMemory(RAM memory) { |
| 103 | if (this.memory != memory) { |
| 104 | RAM oldMemory = this.memory; |
| 105 | if (oldMemory != null) { |
| 106 | oldMemory.detach(); |
| 107 | } |
| 108 | this.memory = memory; |
| 109 | if (memory != null) { |
| 110 | if (oldMemory != null) { |
| 111 | memory.copyFrom(oldMemory); |
| 112 | oldMemory.detach(); |
| 113 | } |
| 114 | memory.attach(); |
| 115 | } |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | public void waitForNextCycle() { |
| 120 | //@TODO IMPLEMENT TIMER SLEEP CODE! |
no test coverage detected