This commit is contained in:
Irmen de Jong 2021-12-02 00:10:06 +01:00
parent 5b56e0462d
commit c3144a20db
2 changed files with 3 additions and 3 deletions

View File

@ -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 -> {
}

View File

@ -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")
}