As we mentioned on previous lesson Machine language had so
many limitations to overcome from that assembly language introduced in 1952.
This language uses alphanumeric code and symbols instead binary digits to
represent instruction and memory address.
Alphanumeric code uses set of letters and numbers represent
an instruction.
Sample Program Snippet:
1)
LD, AX, 9
2)
LD,BX,10
3)
ADD,AX,BX
4)
LD(100),AX
5)
JMP,BX
6)
HTL
Code Line 1 - (Loads register AX
with value 9)
Code Line 2 - (Load register BX
with value 10)
Code Line 3 - (Adds value of
register BX to the value of AX)
Code Line 4 – (Store the value of
register AX in the main memory location, 100
Code Line 5 - (JUM to Jump to
register BX to transfer the control to register BX)
Code Line 6- (Stop the program
execute)
As we mentioned Lesson No 3 Computer only understand machine
language (Binary Numbers). As a result,
Assembly language code must translate into Machine Language to execute the
program this translation doing by an Assembler.
Introducing An Assembler
Best Regards
We will welcome your comments, New Ideas and etc.. for improve this site.
Sumiya. DNIIT, SCJP, Bsc ( Hons )
e-mail : sumiyalearns2you@gmail.com
Introducing An Assembler
Function of an Assembler
The Assembler takes each statement in the source code (A code written in any program languages call as source code) and generate a corresponding bit stream or pattern (A series of 0s and 1s of given length) Its known as an Object code. Object code can execute whenever required.
Advantage of Assembly Language
- Easy to write and understand than machine language because of use alphanumeric code instead binary numbers.
- Easy to remember the Opcode and Alphanumeric code for address (Memory location).
- Its save time consume cause easy to modify Assembly language program.
Disadvantage of Assembly Language.
Assembly language slower than machine language its take extra time to translate source code to object code.
Programs Created in Assembly language are depend on processors because Assembly language vocabulary varies from different processor. So program written in Assembly language for one processor might not work for another processor.
If you like this post don't forget to LIKE US on FaceBook : Career on Software Engineering ( VB.net )
Best Regards
We will welcome your comments, New Ideas and etc.. for improve this site.
Sumiya. DNIIT, SCJP, Bsc ( Hons )
e-mail : sumiyalearns2you@gmail.com
No comments:
Post a Comment