Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 24th, 2005, 6:33 PM   #1
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 4 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
Choosing an Assembler

Yeah, well, recently I decided to switch off my old Assembler, Emu8086, and try another Assembler.
Since I'm on a Win32 machine, most people recommend MASM32, but a lot of people have also recommended NASM, which is more suited for *Nix systems.

I was just wondering which I should probably use. I know I can use Masm32 without the standard includes (because I like to see what's going on at the time of programming, and I like the style) but I don't know where to go, because Masm shouldn't use INTs and I should instead use the Win32 API, which I don't really know how to manipulate that well. Since Emu adapted me to INTs and Nasm uses them while Masm does not.


I was just wondering: Which should I use? Masm or Nasm?
Mad_guy is offline   Reply With Quote
Old Feb 24th, 2005, 7:02 PM   #2
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
Personally, I like NASM on both *nix machines and WIndows machines.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Feb 24th, 2005, 7:12 PM   #3
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 4 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
Quote:
Originally Posted by Machiavelli
Personally, I like NASM on both *nix machines and WIndows machines.
That's kinda the only problem.

I have no idea where to learn more about Nasm syntax, I can't just learn from trial and error because I don't have the foggiest on how Nasm syntax works in itself.


Any resources for learning to use Nasm? Or, tutorials by which the author uses Nasm or some such?
Mad_guy is offline   Reply With Quote
Old Feb 24th, 2005, 7:52 PM   #4
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
I find the following to be pretty good:

http://www.drpaulcarter.com/pcasm/
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Mar 9th, 2005, 4:10 PM   #5
Christian_Rosenkreuz_777
Newbie
 
Join Date: Feb 2005
Location: Charlottesville, VA (rated #1 place to live)
Posts: 25
Rep Power: 0 Christian_Rosenkreuz_777 is on a distinguished road
IMHO, TASM is best. Other assemblers, like MASM, add too much extra spiel in your program (at least in my experience. . . then again I've only tried it a few times). After all, the whole point of Assembly is to be able to tell the computer exactly what to do, without worrying about extras thrown in with the compiler. TASM is especially good when writing really low-level stuff. IMO, MASM is more under the category of High Level Assembler (though it's probably the best at that). Come to think of it, I may be thinking of something else. I'm thinking the MASM in The Art Of High-Level Programming. . . Oh well. I suppose it depends on what you're doing.
__________________
Cavear Emptor
Christian_Rosenkreuz_777 is offline   Reply With Quote
Old Mar 9th, 2005, 4:40 PM   #6
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 4 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
But you have to admit, MASM makes Windows Assembly a hell of a lot easier because you have the Win32 API at your fingertips.

Plus, because -you are not forced- to use the API during coding, you can make your ASM programs just as fast and usable as Assembly programs made with, TASM or NASM for example.

Some of the best Assembly coders I've ever seen use MASM, and don't use the API because they've found things to work around it.

I suppose for Win32 coding, MASM is way better than some other things.

I'm thinking MASM for Windows and the API, and T/NASM for just general stuff.
Mad_guy is offline   Reply With Quote
Old Mar 12th, 2005, 10:40 AM   #7
Christian_Rosenkreuz_777
Newbie
 
Join Date: Feb 2005
Location: Charlottesville, VA (rated #1 place to live)
Posts: 25
Rep Power: 0 Christian_Rosenkreuz_777 is on a distinguished road
You're right. MASM is a lot better for win32 programming, but I could never bother myself to learn the syntax. The only stuff I use assembly for is DOS stuff, like old-skool viruses and stuff like that.
So, in conclusion, MASM is good for 32-bit windows programming, TASM is good for DOS stuff.
Again, it's just what i learned first.
__________________
Cavear Emptor
Christian_Rosenkreuz_777 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:59 AM.

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