Finds the position of an instruction by value.
Program to search.
Instruction to match, compared by opcode and payload.
The index, or -1 when absent.
-1
Finds the position of an instruction by value.