1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-22 15:31:12 +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; opcode = 0;
/* find the opcode for given mnemonic and addressing mode */ /* find the opcode for given mnemonic and addressing mode */
while (opcode < 0xFF) { while (opcode <= 0xFF) { /* this is stupid */
id = instruction_decode(opcode); id = instruction_decode(opcode);
if ((strcmp(mnemonic, id.mnemonic) == 0) && (id.mode == mode)) { if ((strcmp(mnemonic, id.mnemonic) == 0) && (id.mode == mode)) {
found = true; found = true;