mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 07:30:33 +00:00
Fix rasm2 -L bits field for 4 and 0-bit plugins ##asm (#17686)
This commit is contained in:
parent
1c485e8bfc
commit
19f941509b
@ -204,7 +204,12 @@ static void rasm2_list(RAsmState *as, const char *arch) {
|
||||
bits[0] = 0;
|
||||
if (h->bits == 27) {
|
||||
strcat (bits, "27");
|
||||
} else if (h->bits == 0) {
|
||||
strcat (bits, "any");
|
||||
} else {
|
||||
if (h->bits & 4) {
|
||||
strcat (bits, "4 ");
|
||||
}
|
||||
if (h->bits & 8) {
|
||||
strcat (bits, "8 ");
|
||||
}
|
||||
|
@ -1,3 +1,13 @@
|
||||
NAME=rasm2 i4004
|
||||
FILE=-
|
||||
CMDS=<<EOF
|
||||
!!rasm2 -L~4004
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
_dAe 4 i4004 LGPL3 Intel 4004 microprocessor
|
||||
EOF
|
||||
RUN
|
||||
|
||||
NAME=rasm2 arm asm/dis endian
|
||||
FILE=-
|
||||
CMDS=<<EOF
|
||||
|
Loading…
Reference in New Issue
Block a user