Tuesday, 6 November 2007

Assembly Language

Assembly language is a second-generation low-level language made up from mnemonics which can be used instead of machine code because it is easier to use. The format of an assembly-language instruction consists of four parts, but the "Label" isn't required.
The four parts are :


  • Label
  • Op Code
  • Operands
  • Comments

An example of these in operation would be :

  • Label - Start:
  • Op Code - mov
  • Operands - bx,80h
  • Comments - ;Load Character Count

The label is used as a reference and is useful when calculating relative jumps, for example. The operation code contains the mnemonic (a mnemonic to MOVe data) which describes the operation being carried out. The operands describe the source and destination of the data to be operated on. The comments are only to help the programmer.



No comments: