A mnemonic is a name that groups different opcode that have the same purpose.
Precisely, a mnemonic is a reserved name for a class of instruction opcodes which have the same function.
Below is the jmp (jump) mnemonic of the Intel CPU where each row corresponds to an instruction.
The two letters in the first column are the opcode. You can see that for each row, they are all different but they are implementing the same function, a jump to another location.
Extended mnemonics specify a combination of:
- an opcode
- with a specific operand
E.g. from the System/360 assemblers :
- B = BC with a mask of 15
- NOP (“NO OPeration” – do nothing for one step) = BC with a mask of 0.
The mnemonic are given in the isa documentation reference and are a part of the instruction documentation.
See instruction list
- Increment the memory variable COUNT
- Transfer the value 48 in the memory variable TOTAL
MOV TOTAL, 48
- Transfer the value 10 to the AL register
MOV AL, 10
- Add the content of the BH register into the AH register
ADD AH, BH
- Add 10 to the variable MARKS
ADD MARKS, 10
- Perform AND operation on the variable MASK1 and 128
AND MASK1, 128