- Now instructions are splitted by '\n' '\r' and ';'
This commit is contained in:
Nibble 2009-04-21 13:39:33 +02:00
parent 656d9613ca
commit 0d5f0531e5

View File

@ -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';