Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Assembly (http://www.programmingforums.org/forum20.html)
-   -   "." operater? (http://www.programmingforums.org/showthread.php?t=10278)

Kilo Jun 11th, 2006 1:17 AM

"." operater?
 
Why is it that in the tutorial im reading they are telling me to use .model .stack .code .data crap. Now i have used this once before... anyway fasm doesn't like it and won't accept it.. so it i type the asm syntax like the turial without the .model .stack bs it still compiles and executes. Is this wrong.. are those things important to me if i want to get close with ASM?

Jimbo Jun 11th, 2006 2:41 AM

I believe that those are used to tag information for the compiler. IIRC, .text usually contains the actual assembly, but I don't know how many of the others are actually needed.

Benoit Jun 11th, 2006 10:53 AM

Those are callled assembler directives or pesudo-operations, they are instructions to the assembler itself.

The .stack tells the assembler that the stack segment starts there. .data is where the data segment starts, .code is where the code segment starts.

DaWei Jun 11th, 2006 11:20 AM

They also will vary syntactically from assembler to assembler. It's perfectly acceptable to ignore anything you or the assembler don't actually need. Sticking one's head in the sand merely because it's new or confusing is rarely the best approach, however.

Kilo Jun 11th, 2006 12:23 PM

so im just fine using FASM without the asm directives... thanks everyone for the feedback


All times are GMT -5. The time now is 8:05 AM.

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