(Consumer<RAM> m)
| 107 | } |
| 108 | |
| 109 | public static void withMemory(Consumer<RAM> m) { |
| 110 | Emulator.withMemory(mem-> { |
| 111 | m.accept(mem); |
| 112 | return null; |
| 113 | }, null); |
| 114 | } |
| 115 | |
| 116 | public static <T> T withMemory(Function<RAM, T> m, T defaultValue) { |
| 117 | return withComputer(c->{ |
no test coverage detected