Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 12th, 2004, 6:56 AM   #1
student
Newbie
 
Join Date: Dec 2004
Posts: 1
Rep Power: 0 student is on a distinguished road
Am going to learn about "Assembly langauge" can someone please explain to me what exactly is Assembly language?

Thank you so much.
Student.
student is offline   Reply With Quote
Old Dec 12th, 2004, 10:04 AM   #2
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 6 bl00dninja is on a distinguished road
"high-level" or "third-generation" languages are like C++ and java and C and fortran and BASIC, etc. with these you tell the computer to do something and it does it. binary code is the "on-off" ("one" or "zero") language the computer reads. assembly is in the middle. it is processor-specific and it tells the computer things like "move this bit here" and "move that bit here" with a syntax slightly more intelligible than: 0100101010000101001010001001001001100010100100100100100101010010010010010010010100110101011010101010010101010011111111111100000010101101000010110100100

you literally tell the processor what bits to move where. the "C" language allows you to integrate this into your code for the sake of speed. this is mainly because people programmed with assembly in the 70's with punchcards and shit. now, processors are so fast that it probably doesn't matter in most situations, but it is important for learning how the computer WORKS.

:ph34r:
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Dec 13th, 2004, 3:20 AM   #3
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
Assembly language is the lowest level programming language available without having to write your code in machine code.

Each assembly instruction has direct relation to a specific machine code instruction while higher level languages such as C++ actually expand to several machine code instructions.
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Old Dec 20th, 2004, 5:22 PM   #4
Xero
Hobbyist Programmer
 
Join Date: Dec 2004
Location: a cardboard box
Posts: 118
Rep Power: 4 Xero is on a distinguished road
so ASM is the general group for C++, C, and java?

err Im a bit confused between the C++ and ASM?

Also off topic, what is C#?

Thanks
__________________
...
Xero is offline   Reply With Quote
Old Dec 22nd, 2004, 10:15 PM   #5
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
C++, C, Java, etc. are what are called "high-level" languages. In a high level language, one instruction, such as printf(), could take dozens of actual processor instructions to execute.

In a low-level language like assembly, you tell the computer, one by one, what processor instructions to execute. So it could take many lines of assembly to do the same thing as one line of C.

And in regard to your question about C#, C# is basically Microsoft's version of Java.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Dec 23rd, 2004, 10:35 AM   #6
Lethns
Newbie
 
Join Date: Nov 2004
Posts: 22
Rep Power: 0 Lethns is on a distinguished road
Assembly is used to

1. Speed up a C program
2. To code an OS

But it is mainly used to make bootloader, since it's the only language that can.


mov 0x123
Lethns is offline   Reply With Quote
Old Jan 4th, 2005, 1:28 PM   #7
scientica
Newbie
 
scientica's Avatar
 
Join Date: Apr 2004
Location: Sweden
Posts: 10
Rep Power: 0 scientica is on a distinguished road
Send a message via ICQ to scientica
well don't forget:
3. To make use of cool stuff such as MMX,SSE[1-3],3Dnow!, etc -- stuff that many compilers can't make use of, well, not in a sane way at least... (I wonder if any comiler can make use of the parallellism of SIMD (single instruction, multiple data - eg, do 2-8 integer additions with one instruction with saturation (ie values 255+1 = 255 for bytes, normal add instruction make 255+1 = 0 for byte, btw)))
:ph34r: showoff: paddusb (~"Add unsigned with saturation on byte") will do 8 byte additions in one(sic) instruction cycle (MMX instruction) - actually, it's not that hard to "decode" the MMX instructions, once one has learned it, one way to describe the packed add instruction is (unless I'm misstaken): /padd([u]?[s]?[bw]|[bwd])/
__________________
Regards
Scienitca (registered user #335819 - http://counter.li.org )
--
Together in diversity, we each according to ability, to each according to needs, will help this world (to) become better - who did you help today?
scientica is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:50 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC