diff --git a/compiler/src/prog8/compiler/target/cpu6502/codegen/ExpressionsAsmGen.kt b/compiler/src/prog8/compiler/target/cpu6502/codegen/ExpressionsAsmGen.kt index c80511cd8..97d6584e2 100644 --- a/compiler/src/prog8/compiler/target/cpu6502/codegen/ExpressionsAsmGen.kt +++ b/compiler/src/prog8/compiler/target/cpu6502/codegen/ExpressionsAsmGen.kt @@ -824,6 +824,11 @@ internal class ExpressionsAsmGen(private val program: Program, private val asmge } private fun translateUbyteGreaterOrEqualJump(left: Expression, right: Expression, leftConstVal: NumericLiteralValue?, rightConstVal: NumericLiteralValue?, jumpIfFalseLabel: String) { + + fun code(cmpOperand: String) { + asmgen.out(" cmp $cmpOperand | bcc $jumpIfFalseLabel") + } + if(rightConstVal!=null) { if(leftConstVal!=null) { if(rightConstVal