From e63e94a3f40b099bc37d7c28ce4728de77c7c4be Mon Sep 17 00:00:00 2001 From: Alexander Kraus Date: Wed, 14 Aug 2024 13:57:47 +0200 Subject: [PATCH] Only include `su_delay_times` into source when a delay unit is present. --- vm/compiler/templates/amd64-386/player.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vm/compiler/templates/amd64-386/player.asm b/vm/compiler/templates/amd64-386/player.asm index a52efcc9..8e1dd20c 100644 --- a/vm/compiler/templates/amd64-386/player.asm +++ b/vm/compiler/templates/amd64-386/player.asm @@ -229,6 +229,7 @@ su_update_voices_skipadd: {{- end}} {{end}} +{{- if .HasOp "delay"}} {{- if gt (.DelayTimes | len ) 0}} ;------------------------------------------------------------------------------- ; Delay times @@ -236,6 +237,7 @@ su_update_voices_skipadd: {{.Data "su_delay_times"}} dw {{.DelayTimes | toStrings | join ","}} {{end}} +{{end}} ;------------------------------------------------------------------------------- ; The code for this patch, basically indices to vm jump table