x87 / scout

Scout Decompiler
https://scout.sannybuilder.com/
Other
9 stars 0 forks source link

Definitions generator should properly parse opcodes with variable arguments #17

Closed x87 closed 1 year ago

x87 commented 4 years ago

currently generator produces two parameters for each opcode with number of parameters -1. https://github.com/x87/scout/blob/master/opcodes/index.js#L53

instead in should parse the line and count all parameters, i.e.:

0xxx=-1,%d %d %d

should generate

    {
        "id": "0xxx",
        "name": "...",
        "params": [
            { "type": "any" }, { "type": "any" }, { "type": "any" }, { "type": "arguments" }
        ]
    },
x87 commented 1 year ago

Switch to SBL definitions https://github.com/sannybuilder/library