mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-22 22:06:50 +00:00
* r_asm
- Now instructions are splitted by '\n' '\r' and ';'
This commit is contained in:
parent
656d9613ca
commit
0d5f0531e5
@ -228,7 +228,8 @@ R_API int r_asm_massemble(struct r_asm_t *a, struct r_asm_aop_t *aop, char *buf)
|
||||
labels = 1;
|
||||
|
||||
for (tokens[0] = lbuf, ctr = 0;
|
||||
(ptr = strchr(tokens[ctr], ';'));
|
||||
(ptr = strchr(tokens[ctr], ';')) ||
|
||||
(ptr = strchr(tokens[ctr], '\n')) || (ptr = strchr(tokens[ctr], '\r'));
|
||||
tokens[++ctr] = ptr+1)
|
||||
*ptr = '\0';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user