1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-06-02 12:41:27 +00:00

Fix assembling opcode 0xFF (BBS7).

This commit is contained in:
Radosław Kujawa 2018-04-16 12:26:52 +02:00
parent a2fdb78d2b
commit 4ff3f390db

View File

@ -187,7 +187,7 @@ assemble_single_buf(uint8_t **buf, uint8_t *bsize, const char *mnemonic, address
opcode = 0;
/* find the opcode for given mnemonic and addressing mode */
while (opcode < 0xFF) {
while (opcode <= 0xFF) { /* this is stupid */
id = instruction_decode(opcode);
if ((strcmp(mnemonic, id.mnemonic) == 0) && (id.mode == mode)) {
found = true;