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:
parent
a2fdb78d2b
commit
4ff3f390db
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user