Home arrow Forums
OSDEV Forums  


anonymous
Visitor

Fresh Osdever
Posts: 0
graphgraph
Karma: 0  
how do I start? - 2005/07/11 15:20 how do I start with assembly?
can you give me the needed tutorials?
how do i compile assembly?
how do i work with it?

im sure that you see that i don't understand anything about assembly so help me.
  | | The administrator has disabled public write access.
OSDEV
Community
Advertisement
   
smiddy
User

Junior Osdever
Posts: 7
graphgraph
Karma: 0  
Re: how do I start? - 2005/07/12 06:49 I would recommend getting the online Art of Assembly and read it through once, from cover to cover. Then start applying what you've read with the information at your side.

FASM is one a good assembler and is pretty easy to use. For a text editor, Crimsom is what I use, but any text editor should work.

Good luck!

BTW, please register so you're not a nony mouse any longer.
  | | The administrator has disabled public write access.
deadmutex
User

Junior Osdever
Posts: 7
graphgraph
Karma: 0  
Re: how do I start? - 2005/07/13 20:58 I know some helpful tips on finding a good assembler. Be sure to know your machine's architecture (x86, PowerPC, 68K, ...). Different machine architectures use different instructions and usually require a different assembler! If your computer can run Windows, it is most likely an x86 (i hope i'm not wrong here).

Also when you are learning assembly, there are mainly 2 different syntaxes that are used: Intel syntax and AT&T syntax. This confused me a lot in the beginning when I was learning asm. Different tutorials had different syntaxes... :@

I prefer to use Intel syntax (it makes more sense to me), so I would recommend using FASM or NASM.

I dont really have good links for tutorials, but here are some that I learned from (assuming that use x86)

http://www.xs4all.nl/~smit/asm01001.htm - for DOS
http://www.tldp.org/HOWTO/Assembly-HOWTO/hello.html - for Linux
  | | The administrator has disabled public write access.
Dex4u
User

Junior Osdever
Posts: 11
graphgraph
Karma: 0  
Re: how do I start? - 2005/07/14 07:03 You may fined this ASM tut helpfull too, its a tut with a difference, as you go through the tut, you can see all the regs and what the code does to them.
http://www.btinternet.com/~btketman/tutpage.html
<span class='smallblacktext'>[ Edited Thu Jul 14 2005, 01:05PM ]</span>
  | | The administrator has disabled public write access.
anonymous
Visitor

Fresh Osdever
Posts: 0
graphgraph
Karma: 0  
Re: how do I start? - 2005/07/15 07:04 what exactly is fasm and nasm???
  | | The administrator has disabled public write access.
DennisCGc
User

Fresh Osdever
Posts: 1
graphgraph
Karma: 0  
Re: how do I start? - 2005/07/15 16:25 Hi,

FASM and NASM are assemblers, which are almost the same as compilers. Compilers are programs which translates human-readable commands to machine language. (if you don't know what compilers are, even before my short explination, I don't think you're ready for assembly then , of course, this is my opinion.)
NASM: http://nasm.sf.net
FASM: http://www.flatassembler.net

HTH,

DennisCGc.

PS. [blockquote]If your computer can run Windows, it is most likely an x86 (i hope i'm not wrong here). [/blockquote]
You're almost right here, except Windows NT, afaik, runs on an alpha too. Please correct me if I'm wrong.
  | | The administrator has disabled public write access.
Blaster
User

Fresh Osdever
Posts: 4
graphgraph
Karma: 0  
Re: how do I start? - 2005/07/16 13:41 Belive me I know what compiler is thanks.
  | | The administrator has disabled public write access.
DRF
User

Platinum Osdever
Posts: 123
graphgraph
Karma: 1  
Re: how do I start? - 2005/07/17 19:01 NASM is probably the most popular and has the most examples. NASM normally uses intel syntax.

FASM is very similar to NASM (wouldn't be hard to convert from one to the other). Seems to be coming more and more popular recently. Again Intel syntax.

GAS is the Gnu ASsember which uses AT&T syntax normally. AT&T syntax I find harder to use but is more common place when using inline assembly instructions in C compilers. So worth while knowing.

Personally I'm a NASM user. (not had the time to look into the differences between NASM and FASM properly so until I do I will use what I'm used to).

Intel, AMD, 386, 486 and similar products are the x86 achitecture. (some exceptions this is the common home market products)
AMD64 can run both x86 and x86-64 (difference being 32bit or 64bit code)

Palmtop style devices tend to run Alpha processors. (I think)

Apples (for now) run on IBM's PowerPC chips.

So if you write x86 code it should run on most desktop PC's if you only have Apples at home it might be worth while looking into the PowerPC assembers as well/instead.

Daniel
  | | The administrator has disabled public write access.

A WebArticles site. Sponsored by Evoleto. Motorola V525 / Business Directory / Delaware Incorporation / Home Made Bazaar