ASM TOOLS

Programming, for all ages and all languages.
User avatar
crazygray
Member
Member
Posts: 73
Joined: Sat Nov 03, 2007 10:17 am
Location: Toky,Japan

ASM TOOLS

Post by crazygray »

Does anybody have any suggestions on the best assembly tools to use?
Imagine if a creature came from a 4 dimensional world, would he think you to be flat?
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Post by inflater »

FASM + Notepad?

Regards
inflater
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

Yasm and Vi?
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

GAS and nvi? :lol:
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
crazygray
Member
Member
Posts: 73
Joined: Sat Nov 03, 2007 10:17 am
Location: Toky,Japan

Post by crazygray »

How do you use an assembler with notpad
Imagine if a creature came from a 4 dimensional world, would he think you to be flat?
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

Traditionally one types out an assembly program using a text editor...

How does this not make sense to you? ;)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Osbios
Member
Member
Posts: 116
Joined: Fri Jun 10, 2005 11:00 pm

Post by Osbios »

inflater wrote:FASM + Notepad?
FASM + Notepad2! Asm Developer also like Syntax Highlighting! ;)
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Post by inflater »

Asm Developer like inflater doesn't like fancy colors on a (already long'n'thin) assembly code, until it starts to have the worst matemathical equations. :D
I like the Code Completion in Delphi, btw. :)

Regards
inflater
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
SpooK
Member
Member
Posts: 260
Joined: Sun Jun 18, 2006 7:21 pm

Re: ASM TOOLS

Post by SpooK »

crazygray wrote:Does anybody have any suggestions on the best assembly tools to use?
The two programs I am about to mention are both actively developed and run on DOS, Windows, Unix/Linux/BSD, Macintosh and OS/2.

VIM is a pretty robust editor and supports syntax highlighting. There are both graphical versions and command line versions.

NASM is the reason that assemblers such as YASM and FASM even exist. It is the original and most popular non-propriety syntax-deviant assembler out there. It comes with great documentation and there are thousands of examples you can find all over the web that work with NASM. Of course, as with any real assembler, it is a command-line tool.

Remember, both of the above programs will run on nearly any system that you want them to... and they work great ;)
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

yasm+context(win)/kate(*nix)

yasm beat nasm to 64-bit support, has a better design, and a more free license, supports both ATT and intel syntax properly and is nasm-compatible and therefore 0wns gas wrt the i386 architecture `-.-´
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

Combuster is correct 8)

Perhaps eventually the BSD's will be able to replace GAS.. There is already a lot of work going into the BSD licenced PCC compiler.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
niteice
Member
Member
Posts: 59
Joined: Tue Oct 03, 2006 3:49 pm

Post by niteice »

I wouldn't be surprised...an assembler is (in theory anyway) much simpler than a C compiler...
User avatar
XCHG
Member
Member
Posts: 416
Joined: Sat Nov 25, 2006 3:55 am
Location: Wisconsin
Contact:

Post by XCHG »

inflater wrote:Asm Developer like inflater doesn't like fancy colors on a (already long'n'thin) assembly code, until it starts to have the worst matemathical equations. :D

I bet my life right now that you don't write Assembly code in Notepad. You could but you don't! If you do, then your source code should have the most ridiculous formatting period since you can't even adjust the tab style/indention length in Notepad. Notepad is the worst editor for programmers as far as the code style and formatting is concerned :twisted:
On the field with sword and shield amidst the din of dying of men's wails. War is waged and the battle will rage until only the righteous prevails.
SpooK
Member
Member
Posts: 260
Joined: Sun Jun 18, 2006 7:21 pm

Post by SpooK »

Brynet-Inc wrote:Combuster is correct 8)
Not entirely. YASM does support AT&T and did beat NASM to 64-bit, but development of NASM has brought out bugs and design flaws within YASM, as well as diStorm64... some of which I think have already been fixed.

A big example, is that NASM will not use the the pseudo EIP/RIP register to dictate absolute/relative addressing... which just so happens to be one of the aforementioned design flaws due to various ambiguous situations it can create. We simply utilize ABS or REL, with an option to select the default mode.

Beacuse of this, and other reasons, the author of YASM is keeping sync with NASM development in order to (loosely?) mimic whatever NASM does.

Also, YASM does not necessarily have a better design, only a modular one. YASM is trying to be good at many things. NASM is trying to be great at one thing. So there lies a philosophical design difference that you just cannot bluntly compare. Although, NASM has recently gone through some very badly needed code optimization... especially in terms of dealing with label names and the like.

In the end, most zealots mark it up to the license. Personally, I don't care much for GPL and I avoid it (along with anything else that looks like a virus) whenever I can--in favor of Public Domain or BSD-like licenses. However, NASM is using LGPL and this is not limiting anyone from doing anything except blatantly copying the source code... so there is not much to actually complain about beyond foolish ideology 8)
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Post by AndrewAPrice »

The default Win32 FASM package comes with a nice little IDE with basic synatx highlighting. I use to use it before I switched to C++/NASM.
My OS is Perception.
Post Reply