(int i, byte newValue)
| 189 | } |
| 190 | |
| 191 | private void writeMemory(int i, byte newValue) { |
| 192 | while (i >= cardRam.length) { |
| 193 | i -= cardRam.length; |
| 194 | } |
| 195 | cardRam[i] = newValue; |
| 196 | } |
| 197 | |
| 198 | private void allocateMemory(int size) { |
| 199 | if (cardRam != null && cardRam.length == size) return; |