LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2005, 08:08 AM   #1
indian
Member
 
Registered: Aug 2004
Posts: 137

Rep: Reputation: 15
How to start Assembly Programming ?


Hi,
I have to do one college project on Assembly Programming but I don't anything about it.What ever I know about it,it looked really difficult mostly the systax ...

Can anyone give me any good link of Assembly Programming,which teaches ASM in detail(on Linux Platform) ..May be some online Forum/site dedicated to ASM would really help.

Thanks.
 
Old 04-15-2005, 08:20 AM   #2
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Rep: Reputation: 35
First you have to know which syntax of assembly you have to cover in your study project. Intel or AT&T (GAS). I was working with AT&T, which is used by Linux dissasemblers gdb and kdbg. I found an excellent book on the net with the title: Programming the ground up, google it up and download it!! The book covers GAS sytax. If you have to do a project covering the Intel syntax, then you'll have an easy task to find the documentation via google. Read the man page for gcc and documentation for gdb. And have fun!

And about the forums, i didn't find any usefull, i had to learn everything the hard way, until i discovered the book i've mentioned, there's everything covered!!

Last edited by zWaR; 04-15-2005 at 08:23 AM.
 
Old 04-16-2005, 03:31 AM   #3
indian
Member
 
Registered: Aug 2004
Posts: 137

Original Poster
Rep: Reputation: 15
thanks...I just search on google and though I am looking to work on x86 but I did I find some really good links and one awesoem E-Book.

Thanks...
 
Old 04-16-2005, 05:56 AM   #4
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31
may i know where's the link for that E-Book ?

thanks in advance
 
Old 04-16-2005, 06:31 AM   #5
ahwkong
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Fedora
Posts: 282

Rep: Reputation: 30
The Art of Assembly
Language Programming

http://webster.cs.ucr.edu/
 
Old 04-16-2005, 06:56 AM   #6
munchkins
LQ Newbie
 
Registered: Apr 2005
Distribution: Slackware 10.0
Posts: 20

Rep: Reputation: 0
Learn how to read hexadecimal nos (and their operations too.)
 
Old 04-16-2005, 07:24 AM   #7
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
http://savannah.nongnu.org/projects/pgubook
 
Old 04-16-2005, 08:03 AM   #8
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31
edit :: deleted , mistake

Last edited by alred; 04-16-2005 at 08:10 AM.
 
Old 04-16-2005, 08:07 AM   #9
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31
edit :: deleted , mistake

Last edited by alred; 04-16-2005 at 08:09 AM.
 
Old 04-16-2005, 08:08 AM   #10
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31
Quote:
Originally posted by ahwkong
The Art of Assembly
Language Programming

http://webster.cs.ucr.edu/
HLA ?
looks interesting ..... great links !
yup ... just downloaded the pgubook , thanks melinda_sayang


erh ? ..... sound like i'm the thread starter
 
Old 04-16-2005, 08:36 AM   #11
ahwkong
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Fedora
Posts: 282

Rep: Reputation: 30
I find this "The Art of Assembly Language Programming" very interesting as well!

When i was young, in a local library, I once found a book teaching people to write OO assembly to build Window application (Win3.1). Can't remember the name now but it is one of the books that left a strong strong impression.

Since then, assembly is on my 'must pay attention to' list. (i.e. not just a term in a glossary of my uni first year textbook :-) )
 
Old 04-16-2005, 08:59 AM   #12
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31
yup .... 'must pay attention to' :-)

my first strong impression about asm is from Micheal Abrash's book
back then when i play around with DOS video , never really learn
anything in-depth about asm ...

have you really code with HLA before , kind of funny and great for me ......
maybe i will play with HLA and try to speed up some of my stuff if possible ......

Last edited by alred; 04-16-2005 at 09:21 AM.
 
Old 04-16-2005, 10:12 AM   #13
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Rep: Reputation: 35
indian x86 is the platform you're working on, assembly syntax is something quite different!! You can use either GAS or Intel syntax on x86 platform, it depends on the disassembler and compiler you're using. In Linux as said GAS is commonly used.
 
Old 04-16-2005, 12:18 PM   #14
Roptaty
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Rep: Reputation: 0
http://linuxassembly.org/
 
Old 04-16-2005, 01:53 PM   #15
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
The Art of Assembly is good book, unfortunately it's quite huge, and the first couple hundred pages covers system organization. If you've already had a class in this, or if you've read a book on it, there is no need to read this. However, since you say you have no idea about assembly, I'm guessing you would benefit from reading it.

For an assembler, I would suggest you use NASM. It's free, it has a powerful C style preprocessor, and it's "literalness" is very good for beginners. It also uses Intel style syntax. If your using Windows, NASM also has support for obj (OMF), win32 (slightly different version of COFF that MS's LINK uses), and COFF object file formats (Borland, MASM / MSVS, and DJGPP (and others) respectively). If your using linux I suggest you use gcc to do the linking for you. It makes it easier to use the C library, or other libraries.

If your looking for some really good resources (these I use everytime I program in assembly). Check out the NASM documentation (they have descriptions for almost all of the x86 instructions, including mmx, sse, and sse2) and /usr/include/asm/unistd.h (it lists the system call numbers for each system call).

Last edited by 95se; 04-16-2005 at 01:56 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
assembly programming Ephracis Programming 5 05-08-2005 02:04 AM
How to start programming assembly in Linux? lowpro2k3 Programming 3 04-05-2005 12:10 AM
Programming Assembly with Power PC chutsu General 2 03-28-2005 12:36 AM
Assembly Programming Page programmershous Programming 6 07-17-2004 04:17 PM
assembly programming in linux chriscoelphoto Linux - Newbie 2 05-02-2004 05:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration