| | |
What is the assembly language?
Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jun 2008
Posts: 32
Reputation:
Solved Threads: 0
Please anybody tell me about the assembly language and the use of it.
•
•
Join Date: Mar 2008
Posts: 42
Reputation:
Solved Threads: 0
Assembly is the closer you can get to the computer hardware with a programming language.
Instead of using IFs, WHILEs, etc., you will move values to registers and memory locations by hand.
If you write a program in C (or C++, Java, Python, etc) you will be able to compile the same code (with some minor changes) on any computer and Operating System. But you won't be able to do the same with Assembly, as it is platform and OS dependent.
You will use Assembly to write hardware drivers or to perform tasks that would take a lot longer using higher level languages.
High performance dependent software (such as games) may use some routines written in ASM to make things faster. You can call an ASM routine from higher level languages.
Just as an example, here goes a small program in Assembly 8086.
This code calculates 6 elements of the Fibonacci numbers.
Instead of using IFs, WHILEs, etc., you will move values to registers and memory locations by hand.
If you write a program in C (or C++, Java, Python, etc) you will be able to compile the same code (with some minor changes) on any computer and Operating System. But you won't be able to do the same with Assembly, as it is platform and OS dependent.
You will use Assembly to write hardware drivers or to perform tasks that would take a lot longer using higher level languages.
High performance dependent software (such as games) may use some routines written in ASM to make things faster. You can call an ASM routine from higher level languages.
Just as an example, here goes a small program in Assembly 8086.
This code calculates 6 elements of the Fibonacci numbers.
assembly Syntax (Toggle Plain Text)
org 100h mov cx, 6; n Fibonacci elements mov ax, 0 mov bx, 1 mov fib, bx dec cx repeat: add fib, ax mov ax, bx mov bx, fib dec cx jz fim jmp repeat end: ret fib dw 0 end
![]() |
Similar Threads
- Assembly Language Resources (Assembly)
- Where can i learn about assembly language (Assembly)
- OOPic Microcontroller - Assembly Language Programming (Assembly)
- Using Assembly Language in .NET? (ASP.NET)
- Introduction to 80 x 86 Assembly Language and Computer Architecture - no CD - help (Assembly)
- machine/assembly language, syntax error (C++)
Other Threads in the Assembly Forum
- Previous Thread: Difference between Macro and Procedure
- Next Thread: Basic Program Help - file input
| Thread Tools | Search this Thread |





