From 25cf0d2b946a4de0cc9d759133e0c06f7ec56a01 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Tue, 22 Sep 2020 21:19:01 +0200 Subject: [PATCH] don't suggest a mult replacement routine to be used, faster ones are likely to require large tables --- compiler/res/prog8lib/math.asm | 1 - .../target/c64/codegen/assignment/AugmentableAssignmentAsmGen.kt | 1 - 2 files changed, 2 deletions(-) diff --git a/compiler/res/prog8lib/math.asm b/compiler/res/prog8lib/math.asm index e810fbf14..bbaa1f626 100644 --- a/compiler/res/prog8lib/math.asm +++ b/compiler/res/prog8lib/math.asm @@ -58,7 +58,6 @@ multiply_words .proc ; input: A/Y = first 16-bit number, P8ZP_SCRATCH_W1 in ZP = second 16-bit number ; output: multiply_words.result 4-bytes/32-bits product, LSB order (low-to-high) ; clobbers: A - ; TODO find a faster 16*16 -> 16 bits multiplication routine sta P8ZP_SCRATCH_W2 sty P8ZP_SCRATCH_W2+1 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 102851cd0..a6690010b 100644 --- a/compiler/src/prog8/compiler/target/c64/codegen/assignment/AugmentableAssignmentAsmGen.kt +++ b/compiler/src/prog8/compiler/target/c64/codegen/assignment/AugmentableAssignmentAsmGen.kt @@ -857,7 +857,6 @@ internal class AugmentableAssignmentAsmGen(private val program: Program, dec $name+1 + """) "*" -> { - // TODO use a more efficient 16 *8 -> 16 multiplication routine asmgen.out(""" lda $otherName sta P8ZP_SCRATCH_W1