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:
parent
7f7fdad8dc
commit
1f8db85688
@ -150,12 +150,12 @@ assemble_single(uint8_t **buf, uint8_t *bsize, const char *mnemonic, addressing_
|
||||
|
||||
/* fill the buffer */
|
||||
memset(*buf, 0, id.size);
|
||||
*buf[0] = opcode;
|
||||
(*buf)[0] = opcode;
|
||||
/* XXX */
|
||||
if (id.size > 1)
|
||||
*buf[1] = op1;
|
||||
(*buf)[1] = op1;
|
||||
if (id.size > 2)
|
||||
*buf[2] = op2;
|
||||
(*buf)[2] = op2;
|
||||
|
||||
return found;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user