(&mut self, addr: u64, data: u8)
| 303 | Some((&mut self.l1_cache, addr)) |
| 304 | } |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | /// RAM size in bytes, for bounds checks. Reports `RAM_SIZE_DEFAULT` instead of |
| 309 | /// asking the cache-wrapped `Ram`; `new` always sizes RAM with that constant. |
| 310 | pub fn ram_size(&self) -> usize { |
| 311 | RAM_SIZE_DEFAULT |
| 312 | } |
| 313 | |
| 314 | pub fn rom_size(&self) -> usize { |
| 315 | self.rom.size() as usize |
| 316 | } |
| 317 |