rizin/librz/arch/p/asm/asm_spc700.c
NOT XVilka e282e551f3
librz/asm: improve plugin descriptions (#5012)
Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
2025-03-19 03:14:03 +08:00

25 lines
714 B
C

// SPDX-FileCopyrightText: 2012-2014 pancake <pancake@nopcode.org>
// SPDX-FileCopyrightText: 2014 condret <condr3t@protonmail.com>
// SPDX-License-Identifier: LGPL-3.0-only
#include <rz_types.h>
#include <rz_util.h>
#include <rz_asm.h>
#include <rz_lib.h>
#include <spc700/spc700dis.h>
static int disassemble(RzAsm *a, RzAsmOp *rz_op, const ut8 *buf, int len) {
size_t dlen = spc700_disas(&rz_op->buf_asm, a->pc, buf, len);
rz_op->size = dlen;
return (int)dlen;
}
RzAsmPlugin rz_asm_plugin_spc700 = {
.name = "spc700",
.desc = "Sony SPC700 (Nintendo SuperNES sound-chip) disassembler",
.arch = "spc700",
.license = "LGPL3",
.bits = 16,
.endian = RZ_SYS_ENDIAN_LITTLE,
.disassemble = &disassemble,
};