mirror of
https://github.com/irmen/prog8.git
synced 2024-11-27 03:50:27 +00:00
mult todo's
This commit is contained in:
parent
49a0584c54
commit
f69b17e165
@ -371,9 +371,7 @@ internal class AugmentableAssignmentAsmGen(private val program: Program,
|
||||
asmgen.out(" sta (P8ZP_SCRATCH_W1),y")
|
||||
}
|
||||
"*" -> {
|
||||
// make sure to check for optimized routines first:
|
||||
//asmgen.optimizedByteMultiplications
|
||||
//asmgen.optimizedWordMultiplications
|
||||
// TODO make sure to check for optimized routines first: asmgen.optimizedByteMultiplications don't use stack
|
||||
TODO("mem mul byte litval")
|
||||
// asmgen.out(" jsr prog8_lib.mul_byte")
|
||||
}
|
||||
@ -579,9 +577,7 @@ internal class AugmentableAssignmentAsmGen(private val program: Program,
|
||||
"+" -> asmgen.out(" lda $name | clc | adc #$value | sta $name")
|
||||
"-" -> asmgen.out(" lda $name | sec | sbc #$value | sta $name")
|
||||
"*" -> {
|
||||
// make sure to check for optimized routines first:
|
||||
//asmgen.optimizedByteMultiplications
|
||||
//asmgen.optimizedWordMultiplications
|
||||
// TODO make sure to check for optimized routines first: asmgen.optimizedByteMultiplications don't use stack
|
||||
TODO("var byte mul litval")
|
||||
// asmgen.out(" jsr prog8_lib.mul_byte")
|
||||
}
|
||||
@ -678,9 +674,7 @@ internal class AugmentableAssignmentAsmGen(private val program: Program,
|
||||
}
|
||||
}
|
||||
"*" -> {
|
||||
// TODO make sure to check for optimized routines first:
|
||||
//asmgen.optimizedByteMultiplications
|
||||
//asmgen.optimizedWordMultiplications
|
||||
// TODO make sure to check for optimized routines first: asmgen.optimizedWordMultiplications don't use stack
|
||||
asmgen.out("""
|
||||
lda $name
|
||||
sta P8ZP_SCRATCH_W1
|
||||
|
Loading…
Reference in New Issue
Block a user