"""Recover the ISL interpreter's 1023-slot command table from sub_822FE040. The builder fills every slot with a default, then overwrites individual slots. Each write is `stw rX, off(r1)` (a two-word stack pair) followed by `ld r9, off(r1)` and `std r9, N(r31)`, where slot = (N - 32) / 8. """ import duckdb, re, sys con=duckdb.connect('/work/xenia-rs/sylpheed.db', read_only=True) rows=con.execute("select address, coalesce(ext_disasm,disasm) from instructions " "where address>=? and address %s %s" % (s, '%08X'%hi if hi else 'None', '%08X'%lo if lo else ''))