Is there something like a modulo operator or instruction in x86 assembly?
An easy way to see what a modulus operator looks like on various architectures is to use the Godbolt Compiler Explorer.
https://godbolt.org/z/64zKGr