pdp10-its-disassembler icon indicating copy to clipboard operation
pdp10-its-disassembler copied to clipboard

Pass parameters to file formats.

Open larsbrinkhoff opened this issue 3 years ago • 0 comments

Some file formats need parameter passed in. A recent example is the Harware Read-In format which needs to know the start and end of the memory region.

My current idea is to pass in an array. It can be NULL for no parameters. Each item is a function pointer and a string.

    struct param params[] = {
        { memory_start, "1234" },
        { memory_end, "4321" },
        { NULL, NULL }
    };

    output_file_format->write (stdout, &memory, params);

larsbrinkhoff avatar Apr 15 '22 15:04 larsbrinkhoff