MAP

Showing posts with label OPCODE. Show all posts
Showing posts with label OPCODE. Show all posts

What are the basic functions of an assembler | Assemler function in System Software. - GTU MCA MATERIAL


Functions of a Basic Assembler

Ø  Convert mnemonic operation codes to their machine
      language equivalents
           E.g. STL -> 14 (line 10)

Ø  Convert symbolic operands to their equivalent
      machine addresses
                  E.g. RETADR -> 1033 (line 10)

Ø  Build the machine instructions in the proper format

Ø  Convert the data constants to internal machine
        representations
                   E.g. EOF -> 454F46 (line 80)

Ø  Write the object program and the assembly listing

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

Twitter Delicious Facebook Digg Stumbleupon Favorites More