I just wrote a blog post about how the modern AVX instruction vpternlogd shares a similar design with a 1985 Amiga blitter chip. Even Amiga programmers will be interested in a simple method to finally get that damn "minterm" value! arnaud-carre.github.io/2024-10-06-vpt… #avx #amiga #demoscene
@leonard_coder That’s interesting! I’m very far behind in intel assembly so I had no idea that instruction existed, but the same sort of thing exists in microcontrollers with simple configurable logic. It also took me a while to figure out you’re just setting a lookup table! Very flexible.
@leonard_coder poke @lemire, this post could interest you
@leonard_coder Interesting! I’ve always assembled the minterm that way: “A is the mask, if it’s set, copy B, otherwise C” etc. It’s somehow satisfying to piece it together like that, one bit position at a time🙂(complete with the lil’ ASCII art, which I must have copied a hundred times by now)
@leonard_coder @nivrig That’s a great article. I never used the E2 function for cookie cutting sprites, i always used CA as suggested by the HRM, with the mask data in channel A.
@leonard_coder Excellent 😉😎, Enjoyed it !
@leonard_coder I'll keep following your posts through the RSS ... Ciao.