From 0ec98b5b1e3996b8256ea11a766539d8b8e31947 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Wed, 28 Dec 2022 16:48:27 +0100 Subject: [PATCH] Optimized SongInit a bit --- src/raspberry_casket.asm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/raspberry_casket.asm b/src/raspberry_casket.asm index 4fb8a77..0849ec0 100755 --- a/src/raspberry_casket.asm +++ b/src/raspberry_casket.asm @@ -900,7 +900,9 @@ pre_SongInit: move.l d1,sv_wavelength_table-sv_waveinfo_table(a1) btst #2,wi_flags_b(a3) beq.s .onlythreeocts - mulu #15,d1 + move.l d1,d2 + lsl.l #4,d1 ; * 16 + sub.l d2,d1 ; * 15 lsr.l #3,d1 ; * 1.875 .onlythreeocts move.l d1,sv_wavetotal_table-sv_waveinfo_table(a1) -- 2.25.1