Computer Science, asked by Nikhillll1875, 1 year ago

Short note on machine language and assembly language

Answers

Answered by Arsalan78666
3
Machine Language 

Machine Language is the language written as strings of binary 1`s and 0`s. It is the only language which a computer understands without using a translation program.

A machine language instruction has two parts. The first part is the operation code which tells the computer what function to perform and the second part is the operand which tells the computer where to find or store the data which is to be manipulated. A programmer needs to write numeric codes for the instruction and storage location of data.

Disadvantages –

It is machine dependant i.e. it differs from computer to computer.It is difficult to program and writeIt is prone to errorsIt is difficult to modify

 

Assembly Language

It is a low level programming language that allows a user to write a program using alphanumeric mnemonic codes, instead of numeric codes for a set of instructions.

It requires a translator known as assembler to convert assembly language into machine language so that it can be understood by the computer. It is easier to remember and write than machine language.

Assembler – It is a computer program which converts or translates assembly language into machine language. It assembles the machine language program in the main memory of the computer and makes it ready for execution.

Advantages –

It is easy to understand and useIt is easy to locate and correct errorsIt is easier to modify

Disadvantages –

It is machine dependan
Similar questions