Class ByteMemoryExpressions

java.lang.Object
net.emustudio.emulib.plugin.debugger.ByteMemoryExpressions

public final class ByteMemoryExpressions extends Object
Optional expression functions for debuggers with a CPU-visible byte memory view.
  • Method Details

    • help

      public static String 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 for ExpressionParser. The returned function uses MemoryContext.peek(int) to inspect the requested bytes during evaluation.
      Parameters:
      name - case-insensitive function name
      machine - machine name for diagnostics
      memory - CPU-visible memory view
      location - machine-specific conversion of evaluated arguments to a byte address
      Returns:
      the function, or null if the name is unrecognized
      Throws:
      IllegalArgumentException - if the function is recognized and the memory is not byte-addressable