Handle '0x' in rasm2 -d

This commit is contained in:
pancake 2013-11-14 04:24:29 +01:00
parent 5ecf422335
commit ab7e57d568
1 changed files with 2 additions and 0 deletions

View File

@ -354,6 +354,8 @@ int main(int argc, char *argv[]) {
len -= skip;
buf[len] = 0;
}
if (!strncmp (buf, "0x", 2))
buf += 2;
ret = rasm_disasm (buf, offset, len,
a->bits, ascii, bin, dis-1);
} else ret = rasm_asm (argv[optind], offset, len, a->bits, bin);