onerom-wasm
    Preparing search index...

    Function parse_firmware

    • Parse a firmware image into a [DeviceSummary].

      Accepts a complete .bin, the first 64KB of a flash dump, or an entire flash dump. Handles both pre-v0.7.0 (original) and v0.7.0+ (schema) firmware via Parser::parse_device.

      The plugin/ROM list comes from flash. Whenever the parser follows a runtime pointer (into RAM), read_cb is invoked to fetch those bytes on demand — this is what lets the summary report running and mark the active ROM. On a stopped device the runtime magic will not match and the runtime is tolerantly dropped, so the list still parses.

      read_cb is a JS async (addr: number, len: number) => Uint8Array returning exactly len bytes at addr (see [CallbackReader]).

      Parameters

      • flash: Uint8Array
      • read_cb: Function

      Returns Promise<DeviceSummary>