Browse Source

* set the condition of Bxx instructions in the 6502 inline asm reader

Nikolay Nikolov 1 month ago
parent
commit
3ab29c1366
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/mos6502/ramos6502asm.pas

+ 2 - 0
compiler/mos6502/ramos6502asm.pas

@@ -1957,6 +1957,8 @@ Unit ramos6502asm;
         operandnum: Integer;
         operandnum: Integer;
       begin
       begin
         instr.opcode:=actopcode;
         instr.opcode:=actopcode;
+        if actopcode=A_Bxx then
+          instr.condition:=actasmcond;
         operandnum:=1;
         operandnum:=1;
         Consume(AS_OPCODE);
         Consume(AS_OPCODE);
         { Zero operand opcode ?  }
         { Zero operand opcode ?  }