MAP

Showing posts with label System Software. Show all posts
Showing posts with label System Software. 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

Need of an Assembly Language | Assembly Language - System Software | MCA SS Material


     Why an Assembly Language is needed?



Programming in machine code, by supplying the computer with the numbers of the operations it must perform, can be quite a burden, because for every operation the corresponding number must be looked up or remembered. Looking up all numbers takes a lot of time, and mis-remembering a number may introduce computer bugs.



So Assembly Languages are evolved which contains mnemonic instructions corresponding to the Machine codes using which the program can be written easily.


Therefore a set of mnemonics was devised. Each number was represented by an alphabetic code. So instead of entering the number corresponding to addition to add two numbers one can enter "add".

Although mnemonics differ between different CPU designs some are common, for instance: "sub" (subtract), "div" (divide), "add" (add) and "mul" (multiply).


GTU mca 3rd sem syllabus | 3rd Semester | gtu syllabus

MCA SEM - 3
SOOADM630001Download
Fundamental of Java Programming630002Download
Statistical Methods (SM)630003Download
Operating Systems (OS)630004Download
System Software630005Download
Prgramming Skill-IV (JAVA)630006Download
Prgramming Skill - V (OS)630007Download

Twitter Delicious Facebook Digg Stumbleupon Favorites More