![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
|
"." 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?
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
|
|
#2 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 747
Rep Power: 3
![]() |
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.
|
|
|
|
|
|
#3 |
|
Expert Programmer
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 548
Rep Power: 4
![]() |
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.
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4 |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 |
|
Expert Programmer
|
so im just fine using FASM without the asm directives... thanks everyone for the feedback
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|