Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Programming (http://www.go4expert.com/forums/programming-forum/)
-   -   Assembly Language (http://www.go4expert.com/forums/assembly-language-t17079/)

mcdude 23Apr2009 20:36

Assembly Language
 
Hello,

In simple terms, can someone please explain what
Assembly Language is.

shabbir 24Apr2009 08:38

Re: Assembly Language
 
Language which is understood by the CPU

ljlong 25Apr2009 05:39

Re: Assembly Language
 
Assembly language is a human expression or 'language' that is almost one for one with the actual machine opcodes that comprise how a central processing unit (cpu ) execute operations on its registers.
An example would be the expression mov ax, #1006, what this actually represents is a numeric code that is dependent on the type of microprocessor you are writing for. The mov ax, #1006 is intel syntax while ld #1006, ax is if I recall correctly the Zylog syntax. Both would end up looking like three or four bytes of the same numbers that would be interpreted by the cup to move the number 1006 into the ax register. When people generally speak of assembly language they are actually talking about the human syntactical language interface that an assembler turns into a binary image that is understood by the cpu as a sequence of instructions that represents a program. Instructions are usually binary operations on a cpu's registers or memory. Embedded software engineers use assembly language to interface to hardware and other 'system' resources; however, much of this can also be done in c.


jim

xpi0t0s 7May2009 16:46

Re: Assembly Language
 
Quote:

Originally Posted by shabbir (Post 46258)
Language which is understood by the CPU

This is a common misconception. The CPU only understands 1s and 0s and that is machine code. Assembly language is one step up from the 1s and 0s and is a more memorable form of machine code. For example, 01111111 is machine code, but this is represented by the Z80 assembly language mnemonic ld a,(hl).


All times are GMT +5.5. The time now is 21:41.