From c3144a20dbba46f2107679fb690ddecf7b2e9add Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Thu, 2 Dec 2021 00:10:06 +0100 Subject: [PATCH] spacing --- .../src/prog8/compiler/target/cpu6502/codegen/AsmGen.kt | 4 ++-- .../compiler/target/cpu6502/codegen/ExpressionsAsmGen.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/codeGeneration/src/prog8/compiler/target/cpu6502/codegen/AsmGen.kt b/codeGeneration/src/prog8/compiler/target/cpu6502/codegen/AsmGen.kt index 69ac0ccb4..129a7a518 100644 --- a/codeGeneration/src/prog8/compiler/target/cpu6502/codegen/AsmGen.kt +++ b/codeGeneration/src/prog8/compiler/target/cpu6502/codegen/AsmGen.kt @@ -777,7 +777,7 @@ class AsmGen(private val program: Program, } } in WordDatatypes -> { - out(" lda $indexName | sec | rol a") + out(" lda $indexName | sec | rol a") when (register) { CpuRegister.A -> { } @@ -808,7 +808,7 @@ class AsmGen(private val program: Program, when (elementDt) { in ByteDatatypes -> out(" ld$reg $indexName") in WordDatatypes -> { - out(" lda $indexName | asl a") + out(" lda $indexName | asl a") when (register) { CpuRegister.A -> { } diff --git a/codeGeneration/src/prog8/compiler/target/cpu6502/codegen/ExpressionsAsmGen.kt b/codeGeneration/src/prog8/compiler/target/cpu6502/codegen/ExpressionsAsmGen.kt index 5adc25f9f..9b4e6ed29 100644 --- a/codeGeneration/src/prog8/compiler/target/cpu6502/codegen/ExpressionsAsmGen.kt +++ b/codeGeneration/src/prog8/compiler/target/cpu6502/codegen/ExpressionsAsmGen.kt @@ -420,7 +420,7 @@ internal class ExpressionsAsmGen(private val program: Program, private val asmge left -= 7 } if (left in 0..2) - repeat(left) { asmgen.out(" lda P8ESTACK_HI+1,x | asl a | ror P8ESTACK_HI+1,x | ror P8ESTACK_LO+1,x") } + repeat(left) { asmgen.out(" lda P8ESTACK_HI+1,x | asl a | ror P8ESTACK_HI+1,x | ror P8ESTACK_LO+1,x") } else asmgen.out(" jsr math.shift_right_w_$left") }