logoalt Hacker News

jdiff • yesterday at 10:34 PM • 0 replies • view on HN

https://gist.github.com/different55/08aff15e0f3b67b1feb1fd16...

It's for the Uxn VM, it's a multiply between a signed sample and an unsigned Q13 coefficient. My coefficients are almost always positive, or known negative in advance. If negative, I rewrite an ADD2 in the filter into a SUB2.

Ground rules for Astra were that JMP2r's (returns) aren't counted, no use of the zero page, and it must return the correct result within 9LSBs, which is the error from skipping the smallest partial product.