An opcode is a 6502 microprocessor instruction represented as a number and is what is actually executed by the 6502. Typically, you will program using three letter instructions (like INX). When this instruction is "assembled", it is converted to a number, thus becoming an opcode.
To clarify :
- People write instructions.
- Which are assembled into numbers (opcodes)
- Which are executed by the 6502