← Back to team overview

sslug-teknik team mailing list archive

Re: assembler til linux?

 

"Thomas M." wrote:
> 
> Hejsa sluggere
> 
>  Jeg har en .asm fil fra dos, som jeg gerne skulle have compilet til dos
> :) Det er en packetdriver til et netkort (fra crynwr samlingen), som jeg
> gerne vil have ændret lidt (fjernet noget tekst, som virker forstyrende).
> 
>  Det må kunne lade sig gøre under linux, men hur? Det skal helst ende i en
> .com fil til dos....
> 

I Unix skrives asm anderledes, såkaldt AT&T-syntaks, mens man typisk
bruger Intel-syntax i DOS/Win.
Hvis du læser i Assembly-HOWTO:

What is this AT&T syntax

Because GAS was invented to support a 32-bit unix compiler, it uses
standard ``AT&T'' syntax, which resembles a lot the syntax for standard
m68k assemblers, and is standard in the UNIX world. This syntax is no
worse, no better than the ``Intel'' syntax. It's just different. When
you get used to it, you find it much more regular than the Intel syntax,
though a bit boring. 

3.4 NASM 

The Netwide Assembler project is producing yet another assembler,
written in C, that should be modular enough to eventually support all
known syntaxes and object formats. 

Where to find NASM

http://www.cryogen.com/Nasm

Binary release on your usual sunsite mirror in devel/lang/asm/ Should
also be available as .rpm or .deb in your usual RedHat/Debian
distributions' contrib. 

--
Hroi Kristjan Sigurdsson  
Email:	hroi@xxxxxxxxxx


References