FIx #905 - assemble rdtsc and fix /c

This commit is contained in:
pancake 2014-05-09 10:39:56 +02:00
parent ee276298b2
commit 731fc03a29
2 changed files with 6 additions and 1 deletions

View File

@ -134,6 +134,11 @@ static int assemble(RAsm *a, RAsmOp *ao, const char *str) {
data[l++] = 0xfe;
return l;
}
if (!strcmp (op, "rdtsc")) {
data[l++] = 0x0f;
data[l++] = 0x31;
return l;
}
arg = strchr (op, ' ');
if (arg) {
*arg = '\0';

View File

@ -93,7 +93,7 @@ R_API RList *r_core_asm_strsearch(RCore *core, const char *input, ut64 from, ut6
break;
tokens[tokcount] = r_str_trim_head_tail (tok);
}
tokens[tokcount-1] = NULL;
tokens[tokcount] = NULL;
r_cons_break (NULL, NULL);
for (at = from, matchcount = 0; at < to; at += core->blocksize-OPSZ) {
if (r_cons_singleton ()->breaked)