Low-level Programming Language - Assembly

Assembly

Assembly language is not considered a programming language as it has no semantics and no specification, being only a mapping of human readable tokens to op codes. The human readable tokens are assembled directly into machine code on a, usually, one to one basis. The assembly code can also be abstracted to another layer in a similar manner as machine code is abstracted into assembly code.

Example: The same Fibonacci number calculator as above, but in x86 assembly language using MASM syntax:

fib: mov edx, cmp edx, 0 ja @f mov eax, 0 ret @@: cmp edx, 2 ja @f mov eax, 1 ret @@: push ebx mov ebx, 1 mov ecx, 1 @@: lea eax, cmp edx, 3 jbe @f mov ebx, ecx mov ecx, eax dec edx jmp @b @@: pop ebx ret

Read more about this topic:  Low-level Programming Language

Famous quotes containing the word assembly:

    There is a sacred horror about everything grand. It is easy to admire mediocrity and hills; but whatever is too lofty, a genius as well as a mountain, an assembly as well as a masterpiece, seen too near, is appalling.
    Victor Hugo (1802–1885)

    Had every Athenian citizen been a Socrates, every Athenian assembly would still have been a mob.
    James Madison (1751–1836)

    There is a sacred horror about everything grand. It is easy to admire mediocrity and hills; but whatever is too lofty, a genius as well as a mountain, an assembly as well as a masterpiece, seen too near, is appalling.
    Victor Hugo (1802–1885)