()
| 221 | } |
| 222 | |
| 223 | public void newSearch() { |
| 224 | Emulator.withMemory(memory -> { |
| 225 | resultList.clear(); |
| 226 | int compare = parseInt(searchValueProperty.get()); |
| 227 | for (int i = 0; i < 0x10000; i++) { |
| 228 | boolean signed = signedProperty.get(); |
| 229 | int val |
| 230 | = byteSized |
| 231 | ? signed ? memory.readRaw(i) : memory.readRaw(i) & 0x0ff |
| 232 | : signed ? memory.readWordRaw(i) : memory.readWordRaw(i) & 0x0ffff; |
| 233 | if (!searchType.equals(SearchType.VALUE) || val == compare) { |
| 234 | SearchResult result = new SearchResult(i, val); |
| 235 | resultList.add(result); |
| 236 | } |
| 237 | } |
| 238 | }); |
| 239 | } |
| 240 | |
| 241 | public void performSearch() { |
| 242 | Emulator.withMemory(memory -> { |
nothing calls this directly
no test coverage detected