Thursday, August 1, 2013

2.Assembly Language Overview

If we want to add two numbers in Assembly Language...

*Store 1 in Location A.
*Store 2 in Location B.
*Add Location A,Location B.
*Store Results.


you guys knows computer will understands in the form of binary representation...then how it can understands Assembly language?
So we need to convert Assembly Language into Machine Understandable Form(Machine Code)...okay you just look at the above figure...here you are passing some assembly language into assembler...Assembler's job is to covert/interpret into machine understandable form and giving machine code to respective processor...then you will get an result/output...

In the Above figure we are having another language named  "C"...C language uses the compiler to convert it (printf(a+b);) into assembly language...No need to worry about compiler now..I will definitely discuss about it later...

We may have different processors like Intel, AMD, Power PC etc...

to add two numbers the statement changes according to processors,

For Intel---->Add Location A, Location B
For AMD-->ADDITION Location A, Location B
For PowerPC--->Math.ADD Location A, Location B

For each processor we need different compilers in C...You may face problems with compatibility issues...So we use platform independent language named "JAVA".

                                                      Next Chapter

No comments:

Post a Comment