From 8d09448b6742d307ab643cc4aa48fd18567010cf Mon Sep 17 00:00:00 2001 From: pancake Date: Sun, 1 Dec 2024 18:35:10 +0100 Subject: [PATCH] Improve all the arch plugin descriptions ##arch --- libr/arch/p/6502/plugin.c | 2 +- libr/arch/p/6502_cs/plugin.c | 6 ++--- libr/arch/p/8051/plugin.c | 2 +- libr/arch/p/alpha/plugin.c | 2 +- libr/arch/p/any_as/plugin.c | 4 +-- libr/arch/p/any_vasm/plugin.c | 6 ++--- libr/arch/p/arc/plugin.c | 6 ++--- libr/arch/p/arm/plugin.c | 2 +- libr/arch/p/avr/plugin.c | 2 +- libr/arch/p/bf/plugin.c | 4 +-- libr/arch/p/bpf/plugin.c | 2 +- libr/arch/p/bpf_cs/plugin.c | 2 +- libr/arch/p/chip8/plugin.c | 2 +- libr/arch/p/dalvik/plugin.c | 2 +- libr/arch/p/evm/plugin.c | 2 +- libr/arch/p/fslsp/plugin.c | 44 ++++++++++++++++----------------- libr/arch/p/gb/plugin.c | 2 +- libr/arch/p/h8300/plugin.c | 4 +-- libr/arch/p/i4004/plugin.c | 2 +- libr/arch/p/i8080/plugin.c | 2 +- libr/arch/p/java/plugin.c | 2 +- libr/arch/p/jdh8/plugin.c | 2 +- libr/arch/p/lh5801/plugin.c | 2 +- libr/arch/p/lm32/plugin.c | 2 +- libr/arch/p/loongarch/plugin.c | 4 +-- libr/arch/p/lua/plugin.c | 2 +- libr/arch/p/m680x_cs/plugin.c | 4 +-- libr/arch/p/m68k_cs/plugin.c | 4 +-- libr/arch/p/malbolge/plugin.c | 2 +- libr/arch/p/mcore/plugin.c | 2 +- libr/arch/p/mips_gnu/plugin.c | 2 +- libr/arch/p/msp430/plugin.c | 2 +- libr/arch/p/pdp11/plugin.c | 2 +- libr/arch/p/pic/plugin.c | 2 +- libr/arch/p/ppc_cs/plugin.c | 2 +- libr/arch/p/propeller/plugin.c | 2 +- libr/arch/p/pyc/plugin.c | 2 +- libr/arch/p/riscv/plugin.c | 2 +- libr/arch/p/riscv_cs/plugin.c | 4 +-- libr/arch/p/rsp/plugin.c | 3 ++- libr/arch/p/s390/plugin.c | 1 + libr/arch/p/sh/plugin.c | 2 +- libr/arch/p/sh_cs/plugin.c | 2 +- libr/arch/p/snes/plugin.c | 2 +- libr/arch/p/sparc_cs/plugin.c | 2 +- libr/arch/p/stm8/plugin.c | 3 +-- libr/arch/p/tricore_cs/plugin.c | 2 +- libr/arch/p/uxn/plugin.c | 2 +- libr/arch/p/v810/plugin.c | 2 +- libr/arch/p/v850/plugin.c | 2 +- libr/arch/p/wasm/plugin.c | 4 +-- libr/arch/p/ws/plugin.c | 2 +- libr/arch/p/xap/plugin.c | 4 +-- libr/arch/p/xcore_cs/plugin.c | 2 +- libr/arch/p/xtensa/plugin.c | 2 +- libr/arch/p/z80/plugin.c | 2 +- libr/main/rasm2.c | 2 ++ test/db/tools/rasm2 | 4 +-- 58 files changed, 96 insertions(+), 95 deletions(-) diff --git a/libr/arch/p/6502/plugin.c b/libr/arch/p/6502/plugin.c index ee4ff8b9d511a..0df61ef363172 100644 --- a/libr/arch/p/6502/plugin.c +++ b/libr/arch/p/6502/plugin.c @@ -984,7 +984,7 @@ const RArchPlugin r_arch_plugin_6502 = { .meta = { .name = "6502", .author = "condret,riq,pancake", - .desc = "6502/NES analysis plugin", + .desc = "Disassembler for the 6502 microprocessor family (NES, c64, ..)", .license = "LGPL-3.0-only", }, .arch = "6502", diff --git a/libr/arch/p/6502_cs/plugin.c b/libr/arch/p/6502_cs/plugin.c index 7e25e47ca95a0..91c94290e0c28 100644 --- a/libr/arch/p/6502_cs/plugin.c +++ b/libr/arch/p/6502_cs/plugin.c @@ -255,7 +255,7 @@ static bool fini(RArchSession *s) { const RArchPlugin r_arch_plugin_6502_cs = { .meta = { .name = "6502.cs", - .desc = "Capstone mos65xx analysis plugin", + .desc = "Capstone mos65xx 8 bit microprocessors", .author = "pancake,Sylvain Pelissier", .license = "LGPL-3.0-only", }, @@ -276,12 +276,12 @@ R_API RLibStruct radare_plugin = { }; #endif #else -// empty plugin +// empty plugin const RArchPlugin r_arch_plugin_6502_cs = { .meta = { .name = "6502.cs", .author = "pancake,Sylvain Pelissier", - .desc = "Capstone mos65xx analysis plugin (not supported)", + .desc = "Capstone mos65xx (not supported)", .license = "LGPL-3.0-only", }, .arch = "6502", diff --git a/libr/arch/p/8051/plugin.c b/libr/arch/p/8051/plugin.c index 5c2533bf2bce6..77a868fb845b0 100644 --- a/libr/arch/p/8051/plugin.c +++ b/libr/arch/p/8051/plugin.c @@ -1149,7 +1149,7 @@ const RArchPlugin r_arch_plugin_8051 = { .meta = { .name = "8051", .author = "pancake,dkreuter,astuder", - .desc = "8051 CPU code analysis plugin", + .desc = "8051 microcontroller (also known as MCS-51)", .license = "LGPL-3.0-only", }, .arch = "8051", diff --git a/libr/arch/p/alpha/plugin.c b/libr/arch/p/alpha/plugin.c index 19e72ff8eb9a7..7fac7d97bb4a8 100644 --- a/libr/arch/p/alpha/plugin.c +++ b/libr/arch/p/alpha/plugin.c @@ -140,7 +140,7 @@ static int info(RArchSession *s, ut32 q) { const RArchPlugin r_arch_plugin_alpha = { .meta = { .name = "alpha", - .desc = "ALPHA architecture plugin", + .desc = "ALPHA architecture disassembler based on GNU binutils", .license = "GPL-3.0-only", }, .arch = "alpha", diff --git a/libr/arch/p/any_as/plugin.c b/libr/arch/p/any_as/plugin.c index 8060418d18a3c..0ee96305ef9ff 100644 --- a/libr/arch/p/any_as/plugin.c +++ b/libr/arch/p/any_as/plugin.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2008-2023 - pancake */ +/* Copyright (C) 2008-2024 - pancake */ #include #include "binutils_as.c" @@ -81,7 +81,7 @@ static bool as_encode(RArchSession *s, RAnalOp *op, RArchEncodeMask mask) { const RArchPlugin r_arch_plugin_any_as = { .meta = { .name = "any.as", - .desc = "Uses system gnu/clang 'as' assembler", + .desc = "Use system's gnu/clang 'as' assembler", .author = "pancake", .license = "LGPL-3.0-only", }, diff --git a/libr/arch/p/any_vasm/plugin.c b/libr/arch/p/any_vasm/plugin.c index 2be45acaf3c59..e4370dcb27428 100644 --- a/libr/arch/p/any_vasm/plugin.c +++ b/libr/arch/p/any_vasm/plugin.c @@ -1,4 +1,4 @@ -/* radare - LGPL - Copyright 2021-2022 - pancake */ +/* radare - LGPL - Copyright 2021-2024 - pancake */ #include @@ -22,12 +22,10 @@ static bool encode(RArchSession *as, RAnalOp *op, RArchEncodeMask mask) { return false; } -#define DESC "Use -a arm.vasm, 6502.vasm, 6809, c16x, jagrisc, m68k, pdp11, ppc, qnice, tr3200, vidcore, x86, z80" - const RArchPlugin r_arch_plugin_any_vasm = { .meta = { .name = "any.vasm", - .desc = DESC, + .desc = "Use asm.cpu=6502, 6809, c16x, jagrisc, m68k, pdp11, ppc,qnice, tr3200, vidcore, x86, z80", .author = "http://sun.hasenbraten.de/vasm/ (r2pm -ci vasm)", .license = "MIT", }, diff --git a/libr/arch/p/arc/plugin.c b/libr/arch/p/arc/plugin.c index c9bd0f966dd63..6f8f5b1d14743 100644 --- a/libr/arch/p/arc/plugin.c +++ b/libr/arch/p/arc/plugin.c @@ -1,4 +1,4 @@ -/* radare - LGPL - Copyright 2012-2023 - pancake */ +/* radare - LGPL - Copyright 2012-2024 - pancake */ #include #include @@ -1230,10 +1230,10 @@ const RArchPlugin r_arch_plugin_arc = { .name = "arc", .author = "pancake", .license = "LGPL-3.0-only", - .desc = "ARC code analysis plugin", + .desc = "ARC processor instruction decoder", }, .arch = "arc", - .bits = 16 | 32, + .bits = R_SYS_BITS_PACK2 (16, 32), .decode = decode, .info = archinfo, .regs = regs diff --git a/libr/arch/p/arm/plugin.c b/libr/arch/p/arm/plugin.c index a24214c90277a..95fb4897c321f 100644 --- a/libr/arch/p/arm/plugin.c +++ b/libr/arch/p/arm/plugin.c @@ -143,7 +143,7 @@ static int archinfo(RArchSession *a, ut32 q) { const RArchPlugin r_arch_plugin_arm = { .meta = { .name = "arm.nz", - .desc = "custom thumb, arm32 and arm64 assembler", + .desc = "Custom thumb, arm32 and arm64 assembler", .author = "pancake", .license = "LGPL-3.0-only", }, diff --git a/libr/arch/p/avr/plugin.c b/libr/arch/p/avr/plugin.c index 3e9326fb0399f..96cd11d859f60 100644 --- a/libr/arch/p/avr/plugin.c +++ b/libr/arch/p/avr/plugin.c @@ -2402,7 +2402,7 @@ const RArchPlugin r_arch_plugin_avr = { .meta = { .name = "avr", .author = "pancake,rvalles,condret,killabyte", - .desc = "AVR code analysis plugin", + .desc = "AVR microcontroller CPU by Atmel", .license = "LGPL-3.0-only", }, .arch = "avr", diff --git a/libr/arch/p/bf/plugin.c b/libr/arch/p/bf/plugin.c index ec52d2d7e6bee..4fdb178f07710 100644 --- a/libr/arch/p/bf/plugin.c +++ b/libr/arch/p/bf/plugin.c @@ -1,4 +1,4 @@ -/* radare2 - LGPL - Copyright 2011-2023 - pancake */ +/* radare2 - LGPL - Copyright 2011-2024 - pancake */ #include @@ -318,7 +318,7 @@ static int archinfo(RArchSession *as, ut32 q) { const RArchPlugin r_arch_plugin_bf = { .meta = { .name = "bf", - .desc = "brainfuck code analysis plugin", + .desc = "brainfuck architecture", .license = "LGPL-3.0-only", .author = "pancake" }, diff --git a/libr/arch/p/bpf/plugin.c b/libr/arch/p/bpf/plugin.c index 067a7d4e586ac..ec513adc09b14 100644 --- a/libr/arch/p/bpf/plugin.c +++ b/libr/arch/p/bpf/plugin.c @@ -1226,7 +1226,7 @@ static bool esilcb(RArchSession *as, RArchEsilAction action) { const RArchPlugin r_arch_plugin_bpf = { .meta = { .name = "bpf.mr", - .desc = "Classic BPF analysis plugin", + .desc = "BPF the Berkeley Packet Filter bytecode", .license = "LGPL-3.0-only", .author = "mrmacete" }, diff --git a/libr/arch/p/bpf_cs/plugin.c b/libr/arch/p/bpf_cs/plugin.c index e633fe7a9b00b..35e861ae7fff3 100644 --- a/libr/arch/p/bpf_cs/plugin.c +++ b/libr/arch/p/bpf_cs/plugin.c @@ -673,7 +673,7 @@ static bool fini(RArchSession *s) { const RArchPlugin r_arch_plugin_bpf_cs = { .meta = { .name = "bpf", - .desc = "Capstone BPF plugin", + .desc = "Capstone BPF bytecode", .license = "BSD-3-Clause", .author = "terorie,aemmitt", }, diff --git a/libr/arch/p/chip8/plugin.c b/libr/arch/p/chip8/plugin.c index 5c6664f905539..8341b3f421566 100644 --- a/libr/arch/p/chip8/plugin.c +++ b/libr/arch/p/chip8/plugin.c @@ -230,7 +230,7 @@ const RArchPlugin r_arch_plugin_chip8 = { .meta = { .name = "chip8", .author = "maijin", - .desc = "CHIP8 analysis plugin", + .desc = "CHIP8 virtual CPU architecture", .license = "LGPL-3.0-only", }, .arch = "chip8", diff --git a/libr/arch/p/dalvik/plugin.c b/libr/arch/p/dalvik/plugin.c index df19aed4f8985..7bb6236760a7c 100644 --- a/libr/arch/p/dalvik/plugin.c +++ b/libr/arch/p/dalvik/plugin.c @@ -1711,7 +1711,7 @@ const RArchPlugin r_arch_plugin_dalvik = { .meta = { .name = "dalvik", .author = "pancake", - .desc = "Dalvik (Android VM) bytecode analysis plugin", + .desc = "Dalvik (Android VM) bytecode", .license = "LGPL-3.0-only", }, .arch = "dalvik", diff --git a/libr/arch/p/evm/plugin.c b/libr/arch/p/evm/plugin.c index 7d9acf69136e0..bcbd82c7b7779 100644 --- a/libr/arch/p/evm/plugin.c +++ b/libr/arch/p/evm/plugin.c @@ -391,7 +391,7 @@ const RArchPlugin r_arch_plugin_evm = { .meta = { .name = "evm", .author = "pancake,Sylvain Pelissier", - .desc = "EthereumVM plugin", + .desc = "EthereumVM bytecode (EVM)", .license = "BSD-3-Clause", }, .arch = "evm", diff --git a/libr/arch/p/fslsp/plugin.c b/libr/arch/p/fslsp/plugin.c index 23441fe797818..2fbe088c39c36 100644 --- a/libr/arch/p/fslsp/plugin.c +++ b/libr/arch/p/fslsp/plugin.c @@ -1,4 +1,4 @@ -/* radare - LGPL-3.0-only - Copyright 2023 - eibachd, pancake */ +/* radare - LGPL-3.0-only - Copyright 2023-2024 - eibachd, pancake */ /* * QorIQ platform's trust architecture 3.0 Service processor (SP) provides @@ -7,28 +7,28 @@ * PBI (Pre-Boot Initialization) Command Summary * * Command | Number | Size(bytes) | Description - * ### Configuration Write Commands - * CCSR Write - 8 32-byte write to a CCSR register - * Alternate Configuration Write - variable variable size write to offset from current value of ALTCFG_BAR - * ### Block Copy Commands - * Block Copy 0x00 16 Copy data from any of the available memory interfaces to a RAM - * CCSR Write from Address 0x02 Update large number of CCSR register consecutively from random accessible memory(OCRAM, SPRAM). + * ### Configuration Write Command + * CCSR Write - 8 32-byte write to a CCSR register + * Alternate Configuration Write variable variable size write to offset from current value of ALTCFG_BAR + * ### Block Copy Command + * Block Copy 0x00 16 Copy data from any of the available memory interfaces to a RAM + * CCSR Write from Address 0x02 Update large number of CCSR register consecutively from random accessible memory(OCRAM, SPRAM). * ### Special Load commands - * Load RCW with Checksum 0x10 136 Read Reset Configuration Word, perform simple 32-bit checksum, and update RCW registers - * Load RCW w/o Checksum 0x11 136 Read Reset Configuration Word and update RCW registers without performing checksum - * Load Alternate Config Window 0x12 4 Read in condition 14-bit base pointer for alternate configuration space - * Load Condition 0x14 12 Read in condition information for subsequent Conditional Jump - * Load Security Header 0x20 84 Read CSF Header for authentication of PBI Image - * Load Boot 1 CSF Header Ptr 0x22 8 Read in a pointer to CSF header for authentication of Boot 1 code - * CCSR Read, Modify and Write 0x42 Reads a CCSR register and changes (SET/CLEAR ) its bits as per mask specified in the command + * Load RCW with Checksum 0x10 136 Read Reset Configuration Word, perform simple 32-bit checksum, and update RCW registers + * Load RCW w/o Checksum 0x11 136 Read Reset Configuration Word and update RCW registers without performing checksum + * Load Alternate Config Window 0x12 4 Read in condition 14-bit base pointer for alternate configuration space + * Load Condition 0x14 12 Read in condition information for subsequent Conditional Jump + * Load Security Header 0x20 84 Read CSF Header for authentication of PBI Image + * Load Boot 1 CSF Header Ptr 0x22 8 Read in a pointer to CSF header for authentication of Boot 1 code + * CCSR Read, Modify and Write 0x42 Reads a CCSR register and changes (SET/CLEAR ) its bits as per mask specified in the command * ### Control Commands - * Poll Short 0x80 16 Poll a specified address for a specified address for a specified value - * Poll Long 0x81 - * Wait 0x82 4 Pause PBI sequence for specified number of iteration of a FOR loop - * Jump 0x84 8 Unconditional jump forward in PBI command sequence - * Jump Conditional 0x85 12 Conditional jump forward in PBI boot sequence - * CRC and Stop 0x8F 8 Stop the PBI sequence and indicate the expected CRC value - * Stop 0xFF 8 Stop the PBI sequence + * Poll Short 0x80 16 Poll a specified address for a specified address for a specified value + * Poll Long 0x81 + * Wait 0x82 4 Pause PBI sequence for specified number of iteration of a FOR loop + * Jump 0x84 8 Unconditional jump forward in PBI command sequence + * Jump Conditional 0x85 12 Conditional jump forward in PBI boot sequence + * CRC and Stop 0x8F 8 Stop the PBI sequence and indicate the expected CRC value + * Stop 0xFF 8 Stop the PBI sequence */ #include @@ -246,7 +246,7 @@ const RArchPlugin r_arch_plugin_fslsp = { .meta = { .name = "fslsp", .author = "eibachd", - .desc = "Freescale QorIQ service processor analysis plugin", + .desc = "Freescale QorIQ service processor", .license = "LGPL-3.0-only", }, .arch = "fslsp", diff --git a/libr/arch/p/gb/plugin.c b/libr/arch/p/gb/plugin.c index c09a3801eafda..8bdd32200d7f4 100644 --- a/libr/arch/p/gb/plugin.c +++ b/libr/arch/p/gb/plugin.c @@ -1574,7 +1574,7 @@ const RArchPlugin r_arch_plugin_gb = { .meta = { .name = "gb", .author = "condret", - .desc = "Gameboy CPU code analysis plugin", + .desc = "Gameboy CPU analysis (modified Z80)", .license = "LGPL-3.0-only", }, .arch = "z80", diff --git a/libr/arch/p/h8300/plugin.c b/libr/arch/p/h8300/plugin.c index 7e45d1c4251cd..51d60bc84e6dd 100644 --- a/libr/arch/p/h8300/plugin.c +++ b/libr/arch/p/h8300/plugin.c @@ -745,11 +745,11 @@ const RArchPlugin r_arch_plugin_h8300 = { .meta = { .name = "h8300", .author = "pancake,Fedor Sakharov,Bhootravi", - .desc = "H8300 code analysis plugin", + .desc = "H8300 High Speed 8-bit cpu with internal 16 bit architecture", .license = "LGPL-3.0-only", }, .arch = "h8300", - .bits = R_SYS_BITS_PACK1 (16), + .bits = R_SYS_BITS_PACK2 (8, 16), .decode = &decode, .regs = regs, .info = archinfo, diff --git a/libr/arch/p/i4004/plugin.c b/libr/arch/p/i4004/plugin.c index e6bfec5fc5532..7d9926d282cbe 100644 --- a/libr/arch/p/i4004/plugin.c +++ b/libr/arch/p/i4004/plugin.c @@ -357,7 +357,7 @@ const RArchPlugin r_arch_plugin_i4004 = { .meta = { .name = "i4004", .author = "pancake,condret", - .desc = "i4004 decoder plugin", + .desc = "The classic Intel 4004", .license = "LGPL-3.0-only", }, .arch = "i4004", diff --git a/libr/arch/p/i8080/plugin.c b/libr/arch/p/i8080/plugin.c index df472eaddf43d..a6ee202f790bb 100644 --- a/libr/arch/p/i8080/plugin.c +++ b/libr/arch/p/i8080/plugin.c @@ -62,7 +62,7 @@ const RArchPlugin r_arch_plugin_i8080 = { .meta = { .name = "i8080", .author = "pancake", - .desc = "I8080 CPU code arch plugin", + .desc = "Intel 8080 CPU", .license = "LGPL-3.0-only", }, .arch = "i8080", diff --git a/libr/arch/p/java/plugin.c b/libr/arch/p/java/plugin.c index 8e9e2f6cfc65a..2e3cdfc0e331c 100644 --- a/libr/arch/p/java/plugin.c +++ b/libr/arch/p/java/plugin.c @@ -366,7 +366,7 @@ static int archinfo(RArchSession *as, ut32 q) { const RArchPlugin r_arch_plugin_java = { .meta = { .name = "java", - .desc = "Java bytecode analysis plugin", + .desc = "Java bytecode", .author = "dso", .license = "Apache-2.0", }, diff --git a/libr/arch/p/jdh8/plugin.c b/libr/arch/p/jdh8/plugin.c index 369b336c69044..371b60ecf9d08 100644 --- a/libr/arch/p/jdh8/plugin.c +++ b/libr/arch/p/jdh8/plugin.c @@ -21,7 +21,7 @@ const RArchPlugin r_arch_plugin_jdh8 = { .meta = { .name = "jdh8", .author = "slowhand99,condret", - .desc = "jdh-8 toy architecture", + .desc = "JDK-8 toy architecture", .license = "LGPL-3.0-only", }, .arch = "jdh8", diff --git a/libr/arch/p/lh5801/plugin.c b/libr/arch/p/lh5801/plugin.c index 3d24535ab52fe..26069df84f1a1 100644 --- a/libr/arch/p/lh5801/plugin.c +++ b/libr/arch/p/lh5801/plugin.c @@ -74,7 +74,7 @@ const RArchPlugin r_arch_plugin_lh5801 = { .name = "lh5801", .author = "jn", .license = "LGPL-3.0-only", - .desc = "SHARP LH5801 disassembler", + .desc = "SHARP LH5801 microprocessor", }, .arch = "LH5801", .bits = R_SYS_BITS_PACK1 (8), diff --git a/libr/arch/p/lm32/plugin.c b/libr/arch/p/lm32/plugin.c index c158dc555a106..b50111bd1f465 100644 --- a/libr/arch/p/lm32/plugin.c +++ b/libr/arch/p/lm32/plugin.c @@ -478,7 +478,7 @@ static char *get_reg_profile(RArchSession *as) { const RArchPlugin r_arch_plugin_lm32 = { .meta = { .name = "lm32", - .desc = "disassembly plugin for Lattice Micro 32 ISA", + .desc = "Lattice Micro 32 ISA", .author = "Felix Held", .license = "BSD-3-Clause", }, diff --git a/libr/arch/p/loongarch/plugin.c b/libr/arch/p/loongarch/plugin.c index a3015a3f1b9a3..dd5afc8617935 100644 --- a/libr/arch/p/loongarch/plugin.c +++ b/libr/arch/p/loongarch/plugin.c @@ -1,4 +1,4 @@ -/* radare - LGPL - Copyright 2021-2023 - junchao82@qq.com;zhaojunchao@loongson.cn love lanhy*/ +/* radare - LGPL - Copyright 2021-2024 - junchao82@qq.com;zhaojunchao@loongson.cn love lanhy*/ #include #include "../../include/disas-asm.h" @@ -1409,7 +1409,7 @@ const RArchPlugin r_arch_plugin_loongarch_gnu = { .meta = { .name = "loongarch", .author = "junchao82,zhaojunchao", - .desc = "loongson loongarch code analysis plugin", + .desc = "Loongson / loongarch architecture", .license = "LGPL-3.0-only", }, .arch = "loongarch", diff --git a/libr/arch/p/lua/plugin.c b/libr/arch/p/lua/plugin.c index eb17c4e2057c7..25f783f25a190 100644 --- a/libr/arch/p/lua/plugin.c +++ b/libr/arch/p/lua/plugin.c @@ -276,7 +276,7 @@ static bool fini(RArchSession *as) { const RArchPlugin r_arch_plugin_lua = { .meta = { .name = "lua", - .desc = "LUA Bytecode arch plugin", + .desc = "LUA Bytecode (5.3)", .license = "MIT", .author = "pancake", }, diff --git a/libr/arch/p/m680x_cs/plugin.c b/libr/arch/p/m680x_cs/plugin.c index cdd5b59f67da3..94bf247e95877 100644 --- a/libr/arch/p/m680x_cs/plugin.c +++ b/libr/arch/p/m680x_cs/plugin.c @@ -679,7 +679,7 @@ static char *mnemonics(RArchSession *as, int id, bool json) { const RArchPlugin r_arch_plugin_m680x_cs = { .meta = { .name = "m680x", - .desc = "Capstone M680X analysis plugin", + .desc = "Capstone M680X", .license = "Apache-2.0", }, .arch = "m680x", @@ -696,7 +696,7 @@ const RArchPlugin r_arch_plugin_m680x_cs = { const RArchPlugin r_anal_plugin_m680x_cs = { .meta = { .name = "m680x (unsupported)", - .desc = "Capstone M680X analyzer (unsupported)", + .desc = "Capstone M680X (unsupported)", .license = "Apache-2.0", }, .arch = "m680x", diff --git a/libr/arch/p/m68k_cs/plugin.c b/libr/arch/p/m68k_cs/plugin.c index 61ff423bf8baa..40cf3234c52a5 100644 --- a/libr/arch/p/m68k_cs/plugin.c +++ b/libr/arch/p/m68k_cs/plugin.c @@ -926,7 +926,7 @@ static bool encode(RArchSession *s, RAnalOp *op, ut32 mask) { const RArchPlugin r_arch_plugin_m68k_cs = { .meta = { .name = "m68k", - .desc = "Capstone M68K analyzer", + .desc = "Capstone M68K architecture", .license = "BSD-3-Clause", }, .cpus = "68000,68010,68020,68030,68040,68060", @@ -944,7 +944,7 @@ const RArchPlugin r_arch_plugin_m68k_cs = { const RArchPlugin r_arch_plugin_m68k_cs = { .meta = { .name = "m68k (unsupported)", - .desc = "Capstone M68K analyzer", + .desc = "Capstone M68K architecture", .license = "BSD-3-Clause", }, }; diff --git a/libr/arch/p/malbolge/plugin.c b/libr/arch/p/malbolge/plugin.c index 345853c5f7977..cd24433a9c9c8 100644 --- a/libr/arch/p/malbolge/plugin.c +++ b/libr/arch/p/malbolge/plugin.c @@ -67,7 +67,7 @@ const RArchPlugin r_arch_plugin_malbolge = { .meta = { .name = "malbolge", .author = "pancake", - .desc = "Malbolge analysis plugin", + .desc = "Malbolge esotheric virtual machine", .license = "LGPL-3.0-only", }, .arch = "malbolge", diff --git a/libr/arch/p/mcore/plugin.c b/libr/arch/p/mcore/plugin.c index 78c09baccc6dc..0df47f4268645 100644 --- a/libr/arch/p/mcore/plugin.c +++ b/libr/arch/p/mcore/plugin.c @@ -123,7 +123,7 @@ const RArchPlugin r_arch_plugin_mcore = { .meta = { .name = "mcore", .author = "deroad", - .desc = "MCore analysis plugin", + .desc = "MCore RISC-based microcontroller", .license = "LGPL-3.0-only", }, .arch = "mcore", diff --git a/libr/arch/p/mips_gnu/plugin.c b/libr/arch/p/mips_gnu/plugin.c index 868473379cc44..84cd56f011d27 100644 --- a/libr/arch/p/mips_gnu/plugin.c +++ b/libr/arch/p/mips_gnu/plugin.c @@ -1959,7 +1959,7 @@ const RArchPlugin r_arch_plugin_mips_gnu = { .meta = { .name = "mips.gnu", .author = "pancake", - .desc = "MIPS code analysis plugin", + .desc = "MIPS RISC architecture", .license = "LGPL-3.0-only", }, .cpus = "micro,mips64r2,mips32r2,mips64,mips32,loongson3a,gs464,gs464e,gs264e,loongson2e,loongson2f,mips32/64", diff --git a/libr/arch/p/msp430/plugin.c b/libr/arch/p/msp430/plugin.c index fce06ccd9312c..76f4381b86266 100644 --- a/libr/arch/p/msp430/plugin.c +++ b/libr/arch/p/msp430/plugin.c @@ -156,7 +156,7 @@ const RArchPlugin r_arch_plugin_msp430 = { .meta = { .name = "msp430", .author = "Fedor Sakharov,pancake", - .desc = "TI MSP430 code analysis plugin", + .desc = "TI MSP430 mixed signal microcontroller family from Texas Instruments", .license = "LGPL-3.0-only", }, .arch = "msp430", diff --git a/libr/arch/p/pdp11/plugin.c b/libr/arch/p/pdp11/plugin.c index ca828595f2871..1bb13e19bce5a 100644 --- a/libr/arch/p/pdp11/plugin.c +++ b/libr/arch/p/pdp11/plugin.c @@ -120,7 +120,7 @@ const RArchPlugin r_arch_plugin_pdp11 = { .name = "pdp11", .author = "pancake", .license = "GPL-3.0-only", - .desc = "PDP-11", + .desc = "PDP-11 16 bit micro-computer by DEC", }, .arch = "pdp11", .bits = R_SYS_BITS_PACK1 (16), diff --git a/libr/arch/p/pic/plugin.c b/libr/arch/p/pic/plugin.c index 0db9d604d541f..3966eb1bea9e5 100644 --- a/libr/arch/p/pic/plugin.c +++ b/libr/arch/p/pic/plugin.c @@ -1188,7 +1188,7 @@ const RArchPlugin r_arch_plugin_pic = { .meta = { .author = "oddcoder,thestr4ng3r,courk", .name = "pic", - .desc = "PIC analysis plugin", + .desc = "PIC microcontrollers family", .license = "LGPL-3.0-only", }, .cpus = "baseline,midrange,pic18", diff --git a/libr/arch/p/ppc_cs/plugin.c b/libr/arch/p/ppc_cs/plugin.c index 43dacdf173158..b48a3141b4603 100644 --- a/libr/arch/p/ppc_cs/plugin.c +++ b/libr/arch/p/ppc_cs/plugin.c @@ -1581,7 +1581,7 @@ const RArchPlugin r_arch_plugin_ppc_cs = { .meta = { .name = "ppc", .author = "pancake,deroad", - .desc = "Capstone (+vle+ps) PowerPC disassembler", + .desc = "Capstone (+vle+ps) PowerPC", .license = "Apache-2.0", }, .arch = "ppc", diff --git a/libr/arch/p/propeller/plugin.c b/libr/arch/p/propeller/plugin.c index 4c69d7e20f313..9b8c5411c351c 100644 --- a/libr/arch/p/propeller/plugin.c +++ b/libr/arch/p/propeller/plugin.c @@ -128,7 +128,7 @@ const RArchPlugin r_arch_plugin_propeller = { .meta = { .name = "propeller", .author = "Fedor Sakharov,pancake", - .desc = "Parallax propeller code analysis plugin", + .desc = "Parallax propeller multi-core processor parallel computer", .license = "LGPL-3.0-only", }, .arch = "propeller", diff --git a/libr/arch/p/pyc/plugin.c b/libr/arch/p/pyc/plugin.c index 6cf9ae82c0e86..b82aa8c0e9a48 100644 --- a/libr/arch/p/pyc/plugin.c +++ b/libr/arch/p/pyc/plugin.c @@ -198,7 +198,7 @@ const RArchPlugin r_arch_plugin_pyc = { .meta = { .name = "pyc", .author = "fxti", - .desc = "Python bytecode analysis plugin", + .desc = "Python bytecode (1.0 .. 3.9)", .license = "LGPL-3.0-only", }, .arch = "pyc", diff --git a/libr/arch/p/riscv/plugin.c b/libr/arch/p/riscv/plugin.c index be978c0852f36..33eb2446576cb 100644 --- a/libr/arch/p/riscv/plugin.c +++ b/libr/arch/p/riscv/plugin.c @@ -1011,7 +1011,7 @@ static bool _fini(RArchSession *as) { const RArchPlugin r_arch_plugin_riscv = { .meta = { .name = "riscv", - .desc = "RISC-V analysis plugin", + .desc = "RISC-V ISA architecture", .author = "pancake,qnix", .license = "GPL-3.0-only", }, diff --git a/libr/arch/p/riscv_cs/plugin.c b/libr/arch/p/riscv_cs/plugin.c index 241298aa4dfc8..dd1f55dfb75ec 100644 --- a/libr/arch/p/riscv_cs/plugin.c +++ b/libr/arch/p/riscv_cs/plugin.c @@ -1,4 +1,4 @@ -/* radare2 - LGPL - Copyright 2013-2023 - pancake */ +/* radare2 - LGPL - Copyright 2013-2024 - pancake */ #include @@ -644,7 +644,7 @@ const RArchPlugin r_arch_plugin_riscv_cs = { .meta = { .name = "riscv.cs", .author = "pancake", - .desc = "RISC-V analysis plugin", + .desc = "Capstone's RISC-V ISA architecture", .license = "Apache-2.0", }, .arch = "riscv", diff --git a/libr/arch/p/rsp/plugin.c b/libr/arch/p/rsp/plugin.c index 01f56aae575fc..b1ac39601b3aa 100644 --- a/libr/arch/p/rsp/plugin.c +++ b/libr/arch/p/rsp/plugin.c @@ -783,7 +783,8 @@ const RArchPlugin r_arch_plugin_rsp = { .meta = { .name = "rsp", .author = "bobby.smiles32,condret", - .desc = "RSP code analysis plugin", + .desc = "RSP - Reality Signal Processor (N64)", + .contact = "https://n64brew.dev/wiki/Reality_Signal_Processor", .license = "LGPL-3.0-only", }, .arch = "rsp", diff --git a/libr/arch/p/s390/plugin.c b/libr/arch/p/s390/plugin.c index e3d0eab4ff16f..ffbe0b53296b8 100644 --- a/libr/arch/p/s390/plugin.c +++ b/libr/arch/p/s390/plugin.c @@ -370,6 +370,7 @@ static RList *preludes(RArchSession *as) { r_list_append (l, strdup ("eb6ff03000")); // stgm return l; } + const RArchPlugin r_arch_plugin_s390_cs = { .meta = { .name = "s390", diff --git a/libr/arch/p/sh/plugin.c b/libr/arch/p/sh/plugin.c index 0e8c897fd5050..17f822a2b11ea 100644 --- a/libr/arch/p/sh/plugin.c +++ b/libr/arch/p/sh/plugin.c @@ -1324,7 +1324,7 @@ const RArchPlugin r_arch_plugin_sh = { .meta = { .name = "sh", .author = "Eloi Sanfelix", - .desc = "SH-4 code analysis plugin", + .desc = "Hitachi SH-4 CPU", .license = "LGPL-3.0-only", }, .endian = R_SYS_ENDIAN_LITTLE | R_SYS_ENDIAN_BIG, diff --git a/libr/arch/p/sh_cs/plugin.c b/libr/arch/p/sh_cs/plugin.c index 4f2972cd154d5..991f18d3a3010 100644 --- a/libr/arch/p/sh_cs/plugin.c +++ b/libr/arch/p/sh_cs/plugin.c @@ -416,7 +416,7 @@ static char *regs(RArchSession *s) { const RArchPlugin r_arch_plugin_sh_cs = { .meta = { .name = "sh.cs", - .desc = "Capstone SH analysis", + .desc = "Capstone Hitachi Super-H architecture", .license = "Apache-2.0", }, .arch = "sh", diff --git a/libr/arch/p/snes/plugin.c b/libr/arch/p/snes/plugin.c index f502d62b87753..ee020c8440cb0 100644 --- a/libr/arch/p/snes/plugin.c +++ b/libr/arch/p/snes/plugin.c @@ -337,7 +337,7 @@ static bool snes_anop(RArchSession *as, RAnalOp *op, RArchDecodeMask mask) { const RArchPlugin r_arch_plugin_snes = { .meta = { .name = "snes", - .desc = "SNES analysis plugin", + .desc = "SNES cpu (aka Ricoh 5A22) based on custom 65C816", .license = "LGPL-3.0-only", .author = "condret", }, diff --git a/libr/arch/p/sparc_cs/plugin.c b/libr/arch/p/sparc_cs/plugin.c index 17aaacb4488fb..98ef7d85bfde4 100644 --- a/libr/arch/p/sparc_cs/plugin.c +++ b/libr/arch/p/sparc_cs/plugin.c @@ -458,7 +458,7 @@ const RArchPlugin r_arch_plugin_sparc_cs = { .meta = { .name = "sparc", .author = "pancake", - .desc = "Capstone SPARC analysis", + .desc = "Capstone SPARC architecture", .license = "Apache-2.0", }, .arch = "sparc", diff --git a/libr/arch/p/stm8/plugin.c b/libr/arch/p/stm8/plugin.c index cb317b353dd7e..b75e1c186c8c7 100644 --- a/libr/arch/p/stm8/plugin.c +++ b/libr/arch/p/stm8/plugin.c @@ -88,12 +88,11 @@ static int archinfo(RArchSession *as, ut32 q) { const RArchPlugin r_arch_plugin_stm8 = { .meta = { .name = "stm8", - .desc = "STM8 microprocessor", + .desc = "STM8 MCU microcontroller", .author = "pancake", .license = "GPL-3.0-only", }, .arch = "stm8", - .cpus = NULL, .endian = R_SYS_ENDIAN_LITTLE, .bits = R_SYS_BITS_PACK2 (8, 16), .info = archinfo, diff --git a/libr/arch/p/tricore_cs/plugin.c b/libr/arch/p/tricore_cs/plugin.c index b7b9b65aad865..fb863761710cd 100644 --- a/libr/arch/p/tricore_cs/plugin.c +++ b/libr/arch/p/tricore_cs/plugin.c @@ -472,7 +472,7 @@ static char *regs(RArchSession *as) { const RArchPlugin r_arch_plugin_tricore_cs = { .meta = { .name = "tricore.cs", - .desc = "Capstone TriCore analysis", + .desc = "Capstone Infineon TriCore microcontroller architecture", .license = "Apache-2.0", }, .endian = R_SYS_ENDIAN_LITTLE, diff --git a/libr/arch/p/uxn/plugin.c b/libr/arch/p/uxn/plugin.c index 0705543c5f536..dc2b4e0502f2f 100644 --- a/libr/arch/p/uxn/plugin.c +++ b/libr/arch/p/uxn/plugin.c @@ -25,7 +25,7 @@ const RArchPlugin r_arch_plugin_uxn = { .meta = { .name = "uxn", .author = "pancake", - .desc = "UXN", + .desc = "The portable 8-bit virtual Varvara computer", .license = "MIT", }, .bits = 32, diff --git a/libr/arch/p/v810/plugin.c b/libr/arch/p/v810/plugin.c index 19a88d9705921..9ca97372ab4f1 100644 --- a/libr/arch/p/v810/plugin.c +++ b/libr/arch/p/v810/plugin.c @@ -465,7 +465,7 @@ const RArchPlugin r_arch_plugin_v810 = { .meta = { .name = "v810", .author = "danielps,pancake", - .desc = "V810 code analysis plugin", + .desc = "From the NEC V60 family", .license = "LGPL-3.0-only", }, .arch = "v810", diff --git a/libr/arch/p/v850/plugin.c b/libr/arch/p/v850/plugin.c index d67caed47d757..149b527b0cc3c 100644 --- a/libr/arch/p/v850/plugin.c +++ b/libr/arch/p/v850/plugin.c @@ -901,7 +901,7 @@ const RArchPlugin r_arch_plugin_v850 = { .meta = { .name = "v850", .author = "pancake,brainstorm,condret", - .desc = "V850 code analysis plugin", + .desc = "V850 Renesas Electronics microcontroller architecture", .license = "MIT", }, .preludes = preludes, diff --git a/libr/arch/p/wasm/plugin.c b/libr/arch/p/wasm/plugin.c index 3fa959ed9802c..7cb19bc9e863c 100644 --- a/libr/arch/p/wasm/plugin.c +++ b/libr/arch/p/wasm/plugin.c @@ -645,11 +645,11 @@ const RArchPlugin r_arch_plugin_wasm = { .meta = { .name = "wasm", .author = "pancake,xvilka,condret", - .desc = "WebAssembly analysis plugin", + .desc = "WebAssembly bytecode", .license = "LGPL-3.0-only", }, .arch = "wasm", - .bits = R_SYS_BITS_PACK1 (64), + .bits = R_SYS_BITS_PACK2 (32,64), .regs = wasm_regs, .decode = &wasm_decode, .encode = &wasm_encode, diff --git a/libr/arch/p/ws/plugin.c b/libr/arch/p/ws/plugin.c index 4eec8e552423d..72a26566fecb4 100644 --- a/libr/arch/p/ws/plugin.c +++ b/libr/arch/p/ws/plugin.c @@ -144,7 +144,7 @@ static int archinfo(RArchSession *as, ut32 q) { const RArchPlugin r_arch_plugin_ws = { .meta = { .name = "ws", - .desc = "Space, tab and linefeed analysis plugin", + .desc = "Kind of brainfuck but based on non-printable characters", .license = "LGPL-3.0-only", .author = "pancake" }, diff --git a/libr/arch/p/xap/plugin.c b/libr/arch/p/xap/plugin.c index 78543749d677e..91ef55f460ed8 100644 --- a/libr/arch/p/xap/plugin.c +++ b/libr/arch/p/xap/plugin.c @@ -215,12 +215,12 @@ static bool decode(RArchSession *as, RAnalOp *op, RArchDecodeMask mask) { const RArchPlugin r_arch_plugin_xap = { .meta = { .name = "xap", - .desc = "XAP code analysis plugin", + .desc = "XAP 32-bit signal processing RISC processor architecture", .license = "LGPL-3.0-only", .author = "pancake", }, .arch = "xap", - .bits = R_SYS_BITS_PACK1 (16), + .bits = R_SYS_BITS_PACK2 (16, 32), .endian = R_SYS_ENDIAN_LITTLE, .decode = &decode, }; diff --git a/libr/arch/p/xcore_cs/plugin.c b/libr/arch/p/xcore_cs/plugin.c index 43cc186e3f84b..725995fda64d8 100644 --- a/libr/arch/p/xcore_cs/plugin.c +++ b/libr/arch/p/xcore_cs/plugin.c @@ -166,7 +166,7 @@ static bool fini(RArchSession *as) { const RArchPlugin r_arch_plugin_xcore_cs = { .meta = { .name = "xcore", - .desc = "Capstone XCORE analysis", + .desc = "Capstone XCORE", .license = "Apache-2.0", }, .arch = "xcore", diff --git a/libr/arch/p/xtensa/plugin.c b/libr/arch/p/xtensa/plugin.c index d3dca77f9991e..b351c7f1fcd04 100644 --- a/libr/arch/p/xtensa/plugin.c +++ b/libr/arch/p/xtensa/plugin.c @@ -2121,7 +2121,7 @@ static bool fini(RArchSession *as) { const RArchPlugin r_arch_plugin_xtensa = { .meta = { .name = "xtensa", - .desc = "Xtensa disassembler", + .desc = "Tensilica's Xtensa modular RISC architecture", .license = "LGPL-3.0-only", }, .endian = R_SYS_ENDIAN_LITTLE | R_SYS_ENDIAN_BIG, diff --git a/libr/arch/p/z80/plugin.c b/libr/arch/p/z80/plugin.c index 32622e21670d0..d99c9ae14ba7c 100644 --- a/libr/arch/p/z80/plugin.c +++ b/libr/arch/p/z80/plugin.c @@ -2838,7 +2838,7 @@ const RArchPlugin r_arch_plugin_z80 = { .meta = { .name = "z80", .author = "pancake,condret,unlogic,Bas Wijnen,Jan Wilmans", - .desc = "Z80 CPU code analysis plugin", + .desc = "Generic Z80 architecture", .license = "GPL-3.0-only", }, .arch = "z80", diff --git a/libr/main/rasm2.c b/libr/main/rasm2.c index 677b046374cec..2974d71b745a1 100644 --- a/libr/main/rasm2.c +++ b/libr/main/rasm2.c @@ -224,12 +224,14 @@ static void rarch2_list(RAsmState *as, const char *arch) { pj_end (pj); } else { printf ("%s %-11s %-11s %s", feat, bitstr, h->meta.name, h->meta.desc); +#if 0 if (h->meta.author) { printf (" (by %s)", h->meta.author); } if (h->meta.version) { printf (" v%s", h->meta.version); } +#endif printf ("\n"); } r_list_free (bitslist); diff --git a/test/db/tools/rasm2 b/test/db/tools/rasm2 index e1a7ca44ae12f..ed7faf4c20980 100644 --- a/test/db/tools/rasm2 +++ b/test/db/tools/rasm2 @@ -45,7 +45,7 @@ CMDS=<