Assembly Language

Discussion in 'Programming' started by mcdude, Apr 23, 2009.

  1. mcdude

    mcdude New Member

    Joined:
    Apr 23, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

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

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Language which is understood by the CPU
     
  3. ljlong

    ljlong New Member

    Joined:
    Dec 30, 2008
    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Software engineer, embedded, rtos, machine control
    Location:
    Santa Rosa, CA
    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
     
    shabbir likes this.
  4. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    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).
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice