From bac51f4b318d4334691d9454e3a134bc5ec4ad12 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Fri, 2 Oct 2020 21:30:32 +0200 Subject: [PATCH] fix subtraction error for bytes --- .../c64/codegen/assignment/AugmentableAssignmentAsmGen.kt | 2 +- examples/line-circle-gfx.p8 | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/compiler/src/prog8/compiler/target/c64/codegen/assignment/AugmentableAssignmentAsmGen.kt b/compiler/src/prog8/compiler/target/c64/codegen/assignment/AugmentableAssignmentAsmGen.kt index 5ff6fd19b..d543056ff 100644 --- a/compiler/src/prog8/compiler/target/c64/codegen/assignment/AugmentableAssignmentAsmGen.kt +++ b/compiler/src/prog8/compiler/target/c64/codegen/assignment/AugmentableAssignmentAsmGen.kt @@ -919,7 +919,7 @@ internal class AugmentableAssignmentAsmGen(private val program: Program, sec sbc $otherName sta $name - bcc + + bcs + dec $name+1 +""") else diff --git a/examples/line-circle-gfx.p8 b/examples/line-circle-gfx.p8 index 36ec9b4c8..75a2f8698 100644 --- a/examples/line-circle-gfx.p8 +++ b/examples/line-circle-gfx.p8 @@ -2,9 +2,6 @@ ; Note: this program is compatible with C64 and CX16. -; TODO FIX circle drawing errors. was caused by commit e828c013 - - main { sub start() {