Code: Select all
rdax adcl, -1 ; Read & invert input
skp GEZ, 1 ; If neg
sof 0.01, 0 ; Soft cut negative wave segment
sof -2, 0 ; Make up gain loss, fix phase
;
rdax adcl, -1 ; Crossmixer
mulx pot0
rdax adcl, 1
;
wrax dacl, 0 ; output, clear acc