![]() |
"." 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?
|
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.
|
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. |
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.
|
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