1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-13 01:29:57 +00:00

Fix pointer precedence. Should resolve #1.

This commit is contained in:
Radosław Kujawa 2017-02-02 20:58:30 +01:00
parent 7f7fdad8dc
commit 1f8db85688

View File

@ -150,12 +150,12 @@ assemble_single(uint8_t **buf, uint8_t *bsize, const char *mnemonic, addressing_
/* fill the buffer */ /* fill the buffer */
memset(*buf, 0, id.size); memset(*buf, 0, id.size);
*buf[0] = opcode; (*buf)[0] = opcode;
/* XXX */ /* XXX */
if (id.size > 1) if (id.size > 1)
*buf[1] = op1; (*buf)[1] = op1;
if (id.size > 2) if (id.size > 2)
*buf[2] = op2; (*buf)[2] = op2;
return found; return found;
} }