How does an or instruction in MIPS work?

An OR instruction is a bitwise instruction. This means: Two numbers with the same number of bits (e.g. two 32-bit-numbers) are taken and the digits are processed bit-by-bit (and not the complete number). The OR instruction gives a result of 0 if both “input” bits are 0 and 1 if at least one input bit is 1.
For More Information Please Refer:

You May Also Like to Read: