From e4f5418909a671708db3bb4ec3db09c0fb54f3fb Mon Sep 17 00:00:00 2001 From: "5684185+vsariola@users.noreply.github.com" <5684185+vsariola@users.noreply.github.com> Date: Sun, 28 Dec 2025 18:19:06 +0200 Subject: [PATCH] add dummy asm implementations --- vm/compiler/templates/amd64-386/effects.asm | 16 ++++++++++++++++ vm/compiler/templates/wasm/effects.wat | 12 ++++++++++++ 2 files changed, 28 insertions(+) diff --git a/vm/compiler/templates/amd64-386/effects.asm b/vm/compiler/templates/amd64-386/effects.asm index 1b2f608..d8a1f3b 100644 --- a/vm/compiler/templates/amd64-386/effects.asm +++ b/vm/compiler/templates/amd64-386/effects.asm @@ -198,6 +198,22 @@ su_op_filter_skipneghighpass: {{end}} +{{- if .HasOp "eq"}} +;------------------------------------------------------------------------------- +; EQ opcode: perform low/high/band-pass/notch etc. filtering on the signal +;------------------------------------------------------------------------------- +; Mono: x -> filtered(x) +; Stereo: l r -> filtered(l) filtered(r) +;------------------------------------------------------------------------------- +{{.Func "su_op_eq" "Opcode"}} + lodsb ; load the flags to al +{{- if .Stereo "eq"}} + {{.Call "su_effects_stereohelper"}} +{{- end}} + ret +{{end}} + + {{- if .HasOp "clip"}} ;------------------------------------------------------------------------------- ; CLIP opcode: clips the signal into [-1,1] range diff --git a/vm/compiler/templates/wasm/effects.wat b/vm/compiler/templates/wasm/effects.wat index 27d9fd2..b36657d 100644 --- a/vm/compiler/templates/wasm/effects.wat +++ b/vm/compiler/templates/wasm/effects.wat @@ -203,6 +203,18 @@ {{end}} +{{- if .HasOp "eq"}} +;;------------------------------------------------------------------------------- +;; EQ opcode: perform low/high/band-pass/notch etc. filtering on the signal +;;------------------------------------------------------------------------------- +;; Mono: x -> eq(x) +;; Stereo: l r -> eq(l) eq(r) +;;------------------------------------------------------------------------------- +(func $su_op_eq (param $stereo i32) +) +{{end}} + + {{- if .HasOp "clip"}} ;;------------------------------------------------------------------------------- ;; CLIP opcode: clips the signal into [-1,1] range