Standardize opcode loop a little