Assembly - Mnemonic (instruction class)

Card Puncher Data Processing

About

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.

.

Example

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.

More instruction jmp example

Jmp Intel

Type

Extended

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.

Pseudo

Assembly - (Pseudo|Synthetic) Instruction

Management

List

The mnemonic are given in the isa documentation reference and are a part of the instruction documentation.

See instruction list

Example

Inc

  • Increment the memory variable COUNT
INC COUNT

Mov

  • Transfer the value 48 in the memory variable TOTAL
MOV TOTAL, 48    
  • Transfer the value 10 to the AL register
MOV AL, 10       

Add

  • Add the content of the BH register into the AH register
ADD AH, BH
  • Add 10 to the variable MARKS
ADD MARKS, 10  

And

  • Perform AND operation on the variable MASK1 and 128
AND MASK1, 128





Discover More
Card Puncher Data Processing
Assembly - (Pseudo|Synthetic) Instruction

Pseudo-instructions are not real machine instructions. They are extended mnemonics that are not available in the original instruction set and are implemented by the assembler Many CPU's do not have...
Card Puncher Data Processing
Assembly - Instruction

in Assembly The syntax of an instruction in assembly is as follow: where: A label A mnemonic is a reserved name for a class of instruction opcodes which have the same function. The operands...
Cpu Moore Law Transistor
Instruction - operation code (opcode)

An opcode (operation code) is the first part of an instruction that is read by the decoder to select the device (circuit) that implements the operations. It's a unique number that identifies an operation....
Instruction Format Intel64 Ia32
Intel Instruction Interpretation

This section is based on the section 3-1 - interpreting the instruction pages reference of the intel documentation and used the jmp mnemonic as example. Definition: The jmp mnemonic transfers program...
Card Puncher Data Processing
Language - Assembly (asm)

Assembly language is a low-level programming language. It's a the second generation of language just above machine language. This language is a much more readable language than machine language because...



Share this page:
Follow us:
Task Runner