Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Assembly (http://www.programmingforums.org/forum20.html)
-   -   tutorial problems (http://www.programmingforums.org/showthread.php?t=10291)

Kilo Jun 11th, 2006 10:39 PM

tutorial problems
 
Ask i stated before a lot of tutorials use the "." bs (ex. .data .code .stack) and FASM won't let me. Well now other basic code from the tutorials are not working as well. Can someone please refere me to the perfect tutorial that uses fasm IDE or something?

DaWei Jun 11th, 2006 10:44 PM

Have you checked the FASM documentation? Tutorials for one assembler won't necessarily be valid for another assembler. Assembly language is mostly machine specific, of course, but it's also tool specific. Many projects will require you to decide where you are going to allocate stack versus data versus code. The mnemonics you refer to are shortcuts for doing that. If your tutorial uses syntax from one assembler and you are using another assembler, you have to know what's what for both, so you can adapt. You are below the level of wide applicability that you get with a high-level language.

Kilo Jun 11th, 2006 11:41 PM

ok thanks for the insight

Narue Jun 12th, 2006 8:24 AM

>Ask i stated before a lot of tutorials use the "." bs (ex. .data .code .stack) and FASM won't let me.
I assume you're talking about section headers? FASM treats an otherwise unadorned identifier starting with a period as a local label. Section headers will probably be different depending on the file format you're using. The manual explains which directives are available for which formats.

>Can someone please refere me to the perfect tutorial that uses fasm IDE or something?
There's no such thing as a perfect tutorial for you unless you write it yourself. But by then you don't need one. :) In all honesty, I don't know of any good tutorials that use FASM, though I'm writing an assembly book that focuses on FASM. Unfortunately, it's nowhere near completion. Your best bet is to make good use of the documentation and forums at http://flatassembler.net/.

lostcauz Jun 12th, 2006 5:04 PM

Quote:

Originally Posted by Narue
... though I'm writing an assembly book that focuses on FASM.

That's great to hear Narue! I haven't used FASM all that much but I am impressed with it. Good luck with your book, a decent x86 assembly book is certainly needed and I'm sure it will be well received. :)

Off topic slightly, have yall tried GoASM or PoASM yet? They are both worth a test drive.

Kilo Jun 14th, 2006 11:06 AM

I have never heard of either of those.. i guess looking into won't hurt.


All times are GMT -5. The time now is 7:59 AM.

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