mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-03 03:35:37 +00:00
FIx #905 - assemble rdtsc and fix /c
This commit is contained in:
parent
ee276298b2
commit
731fc03a29
@ -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';
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user