#include <rz_types.h>
#include <rz_lib.h>
#include <rz_util.h>
#include <rz_asm.h>
#include "../arch/pyc/pyc_dis.h"
Go to the source code of this file.
◆ disassemble()
Definition at line 14 of file asm_pyc.c.
23 if (!strcmp(plugin->
name,
"pyc")) {
39 RZ_LOG_ERROR(
"disassembler: pyc: unsupported pyc opcode cpu/version (asm.cpu=%s).\n",
a->cpu);
static pyc_opcodes * opcodes_cache
RZ_API RZ_BORROW void * rz_list_get_n(RZ_NONNULL const RzList *list, ut32 n)
Returns the N-th element of the list.
pyc_opcodes * get_opcode_by_version(char *version)
bool pyc_opcodes_equal(pyc_opcodes *op, const char *version)
int rz_pyc_disasm(RzAsmOp *opstruct, const ut8 *code, RzList *cobjs, RzList *interned_table, ut64 pc, pyc_opcodes *ops)
#define RZ_LOG_ERROR(fmtstr,...)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
References a, pyc_opcodes::bits, get_opcode_by_version(), len, rz_bin_plugin_t::name, NULL, opcodes_cache, pc, pyc_opcodes_equal(), r, rz_list_get_n(), RZ_LOG_ERROR, rz_pyc_disasm(), rz_asm_op_t::size, and ut64().
◆ finish()
static bool finish |
( |
void * |
user | ) |
|
|
static |
◆ opcodes_cache
◆ rizin_plugin
Initial value:= {
}
RzAsmPlugin rz_asm_plugin_pyc
Definition at line 68 of file asm_pyc.c.
◆ rz_asm_plugin_pyc
Initial value:= {
.name = "pyc",
.arch = "pyc",
.license = "LGPL3",
.bits = 16 | 8,
.desc = "PYC disassemble plugin",
}
static int disassemble(RzAsm *a, RzAsmOp *opstruct, const ut8 *buf, int len)
static bool finish(void *user)
Definition at line 57 of file asm_pyc.c.