diff --git a/codeGenCpu6502/src/prog8/codegen/cpu6502/assignment/AugmentableAssignmentAsmGen.kt b/codeGenCpu6502/src/prog8/codegen/cpu6502/assignment/AugmentableAssignmentAsmGen.kt index 7a33ce925..8a6bde589 100644 --- a/codeGenCpu6502/src/prog8/codegen/cpu6502/assignment/AugmentableAssignmentAsmGen.kt +++ b/codeGenCpu6502/src/prog8/codegen/cpu6502/assignment/AugmentableAssignmentAsmGen.kt @@ -2058,8 +2058,6 @@ internal class AugmentableAssignmentAsmGen(private val program: PtProgram, } private fun inplaceModification_word_value_to_variable(name: String, dt: DataType, operator: String, value: PtExpression) { - // this should be the last resort for code generation for this, - // because the value is evaluated onto the eval stack (=slow). fun multiplyVarByWordInAY() { asmgen.out(""" sta P8ZP_SCRATCH_W1 diff --git a/docs/source/targetsystem.rst b/docs/source/targetsystem.rst index 8636efc6f..2c39ad021 100644 --- a/docs/source/targetsystem.rst +++ b/docs/source/targetsystem.rst @@ -63,11 +63,11 @@ Footnotes for the Commander X16 $02 - $21 are the 16 virtual cx16 registers R0-R15. - $22 - $7F are free to use, and Prog8 utilizes this to put variables in automatically. + $22 - $7F are used by Prog8 to put variables in. The top half of the ZP ($80-$FF) is reserved for use by the Kernal and Basic in normal operation. Zero page use by Prog8 can be manipulated with the ``%zeropage`` directive, various options - may free up more locations for use by Prog8. + may free up more locations for use by Prog8 or to reserve them for other things. Footnotes for the Commodore 64 @@ -80,7 +80,7 @@ Footnotes for the Commodore 64 *Zero Page $0000 - $00FF* Consider the full zero page to be reserved for use by the Kernal and Basic in normal operation. Zero page use by Prog8 can be manipulated with the ``%zeropage`` directive, various options - may free up more locations for use by Prog8. + may free up more locations for use by Prog8 or to reserve them for other things. Zero page usage by the Prog8 compiler diff --git a/docs/source/todo.rst b/docs/source/todo.rst index b3457fff1..8fd4a6dba 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -1,9 +1,6 @@ TODO ==== -- bugfixes: assem crashing, imageviewer not loading past boat image, rockrunner music borked. -- stackless: describe the changes in the manual. - - IR: reduce the number of branch instructions such as BEQ, BEQR, etc (gradually), replace with CMP(I) + status branch instruction - IR: reduce amount of CMP/CMPI after instructions that set the status bits correctly (LOADs? INC? etc), but only after setting the status bits is verified!