MAP

What is an Assembler - System Software material - GTU MCA | Label | Opcode | Operand | Comment - System Software MCA Material


      What is an Assembler?

An assembler is a  program that accepts an assembly language program as input and produces its machine language equivalent along with information for the loader
(An Assembler translates a program written in an assembly language to it machine language equivalent)



      Explain the terms a)Label,b)Opcode,c)Operand,and d)Comment
(What is the format in which the assembly language program is written?).


Ø  Label field.
o   The label is a symbolic name that represents the memory address of an executable statement or a variable.

Ø  Opcode/directive fields.
o   The opcode (e.g. operation code) specifies the symbolic name for a machine  instruction.
o   The directive specifies commands to the assembler about the way to assemble the program.

Ø  Operand field.
o   The operand specifies the data that is needed by a statement.

Ø  Comment field.
                     The comment provides clear explanation for a statement

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More