Class ByteMemoryExpressions
java.lang.Object
net.emustudio.emulib.plugin.debugger.ByteMemoryExpressions
Optional expression functions for debuggers with a CPU-visible byte memory view.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringhelp()Returns plain-text help for the byte memory functions.resolve(String name, String machine, MemoryContext<?> memory, ToIntFunction<List<Object>> location) Resolves a byte memory function forExpressionParser.
-
Method Details
-
help
Returns plain-text help for the byte memory functions. -
resolve
public static Function<List<Object>, Object> resolve(String name, String machine, MemoryContext<?> memory, ToIntFunction<List<Object>> location) Resolves a byte memory function forExpressionParser. The returned function usesMemoryContext.peek(int)to inspect the requested bytes during evaluation.- Parameters:
name- case-insensitive function namemachine- machine name for diagnosticsmemory- CPU-visible memory viewlocation- machine-specific conversion of evaluated arguments to a byte address- Returns:
- the function, or
nullif the name is unrecognized - Throws:
IllegalArgumentException- if the function is recognized and the memory is not byte-addressable
-