From 2b6315f15bd998c55052945297bfca7cb619ff1c Mon Sep 17 00:00:00 2001 From: Karol Stasiak Date: Sun, 1 Jul 2018 19:07:47 +0200 Subject: [PATCH] Let the optimizer optimize the multiplication routine --- include/zp_reg.mfk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/zp_reg.mfk b/include/zp_reg.mfk index d09f9ac8..c0906359 100644 --- a/include/zp_reg.mfk +++ b/include/zp_reg.mfk @@ -3,13 +3,13 @@ inline asm byte __mul_u8u8u8() { ? LDA #0 ? JMP __mul_u8u8u8_start __mul_u8u8u8_add: - CLC - ADC __reg.lo + ? CLC + ? ADC __reg.lo __mul_u8u8u8_loop: - ASL __reg.lo + ? ASL __reg.lo __mul_u8u8u8_start: - LSR __reg.hi - BCS __mul_u8u8u8_add - BNE __mul_u8u8u8_loop + ? LSR __reg.hi + ? BCS __mul_u8u8u8_add + ? BNE __mul_u8u8u8_loop ? RTS }