LinuxQuestions.org
Help answer threads with 0 replies.
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 09-01-2003, 04:24 PM   #1
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
Assembly syntax



Im learning assembly right now and the book I am reading teaches in NASM/ Intel syntax, but it says nothing of AT&T syntax. So I was wondering, what is the difference between them....any web sites you guys think would help me? BTW is at&t syntax dead?
 
Old 09-01-2003, 05:07 PM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
basically, if i can remember
  1. operations like mov are src,dest not dest,src
  2. constants are prefixed with $, registers with %
  3. operations always specify size so instead of mov, you have movb, movw, movl.
  4. index addressing is really weird

try googling for linux assembly or AT&T assembly, im sure you'll find something. you could also write a simple C program and compile it to assembly(gcc -S) to see what it looks like.
 
  


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
Printing to screen using AT&T assembly syntax doron_bl Programming 2 08-30-2005 01:00 AM
C++ syntax error before :: token HELP, i cant find the syntax error :( qwijibow Programming 2 12-14-2004 06:09 PM
Help!! loading up GDT (switching to protected mode) assembly AT&T syntax aXoneX Programming 14 07-17-2004 03:55 PM
Assembly jinksys Programming 3 09-14-2003 04:33 PM
assembly sanjay pradhan Programming 1 02-01-2002 10:05 AM

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

All times are GMT -5. The time now is 06:51 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