Second Generation Language – Assembly Language
Assembly languages are processor-specific low-level languages. Assembly languages have the same structure and set of commands as machine languages, but they enable a programmer to use names instead of numbers.
Assembly languages use keywords and symbols, much like English, to form a programming language. Machine language, a pattern of bits encoding machine operations, is made readable by replacing the raw values with symbols called mnemonics. A mnemonic is a word or string which is intended to be easier to remember than the thing it stands for. An “instruction mnemonic” is a word or acronym used in assembly language to represent a binary machine instruction operation code.
Some of the mnemonics like ADD for addition, SUB for Subtraction, MUL for Multiplication were used to develop programs.
A problem using assembly language is that the computer doesn’t understand the assembly code, so you need a way to convert it to machine code, which are programs that convert assembly language code to machine language code. By using these assemblers programmers can write code in assembly language and convert into machine code.
Each type of CPU has its own machine language and assembly language, so an assembly language program written for one type of CPU would not run on another. In the early days of programming, all programs were written in assembly language.
Assembly languages are processor-specific low-level languages. Assembly languages have the same structure and set of commands as machine languages, but they enable a programmer to use names instead of numbers.
Assembly languages use keywords and symbols, much like English, to form a programming language. Machine language, a pattern of bits encoding machine operations, is made readable by replacing the raw values with symbols called mnemonics. A mnemonic is a word or string which is intended to be easier to remember than the thing it stands for. An “instruction mnemonic” is a word or acronym used in assembly language to represent a binary machine instruction operation code.
Some of the mnemonics like ADD for addition, SUB for Subtraction, MUL for Multiplication were used to develop programs.
A problem using assembly language is that the computer doesn’t understand the assembly code, so you need a way to convert it to machine code, which are programs that convert assembly language code to machine language code. By using these assemblers programmers can write code in assembly language and convert into machine code.
Each type of CPU has its own machine language and assembly language, so an assembly language program written for one type of CPU would not run on another. In the early days of programming, all programs were written in assembly language.
0 comments:
Post a Comment