Assembly Language

Programs in assembly language are represented by certain words representing the operation of instruction. Thus programming gets easier. Assembly language statements are generally written in a standard form that has four fields. 
  • Label field 
  • Op-code field (Instruction or Mnemonic)
  • Operand field 
  • Comment field 
Let us consider a simple example to add two numbers 
Label
Mnemonic
Operand
Comment
Start:
MVI
A, 10h
; Move 10h into accumulator

MVI
B, 20h
; Move 20h into register B

ADD
B
; Add the contents of register B with accumulator

Thus, we see the ease with the assembly language rather than machine language. 

Mnemonic is a short alphabetic code used in assembly language for microprocessor operation. These are words (usually two-to-four letter) used to represent each instruction.

No comments:

Post a Comment