Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 1998 15:38:47 -0500 (EST)
From:      Chuck Robey <chuckr@glue.umd.edu>
To:        "Pedro F. Giffuni" <pfgiffun@bachue.usc.unal.edu.co>
Cc:        Mike Smith <mike@smith.net.au>, Amancio Hasty <hasty@rah.star-gate.com>, multimedia@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG
Subject:   Re: http://www.descent2.com/ddn/sources/descent1/index.html
Message-ID:  <Pine.BSF.3.96.980128153631.341S-100000@localhost>
In-Reply-To: <34CF7B95.41C67EA6@bachue.usc.unal.edu.co>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 28 Jan 1998, Pedro F. Giffuni wrote:

> FWIW, I think I saw a TASM to GAS utility in www.delorie.com, but I
> can't find it now.  There's another thing, though ATT to TASM, it's not
> too difficult to turn it around.

Don't consider using it.  Ta2as is incredibly buggy, take my word for it.
I didn't even use it as a first step helper.  If you need to do the
conversion, you can easily convert the .obj file to a .o with the o2c.exe
program, which seems to work ok, and then disassemble that, if need be via
gdb.

> 
> cheers,
> 	Pedro.
> 
> 
> Chuck Robey wrote:
> > 
> > On Wed, 28 Jan 1998, Mike Smith wrote:
> > 
> > > Like I said, you want an automated translator.  MASM's idea of a
> > > "macro" is pretty generous too, eg.
> > 
> > I think you're wrong ... I have done this recently, with some success ...
> > you take the original code and compile it (me with my Borland tools, which
> > compile Masm code ok) and then use the "o2c.exe" program to translate from
> > Intel OMF to coff.
> > 
> > Can you send me some of the assembler stuff?  I'll send back coff ... or
> > do you guys know if there's a coff disassembler?   Lemme see ...
> > 
> > >
> > > ;scales a vector, adds it to another, and stores in a 3rd
> > > ;takes edi=dest, ebx=src1, esi=src2, ecx=scale. returns edi=vector
> > > vm_vec_scale_add:       pushm   eax,edx
> > >
> > >         for     ofs,<x,y,z>
> > >          mov    eax,[esi].ofs
> > >          fixmul ecx
> > >          add    eax,[ebx].ofs
> > >          mov    [edi].ofs,eax
> > >         endm
> > >
> > >         popm    eax,edx
> > >         ret
> > >
> > > Making this work neatly with gas would be, er, fun.  And I invite you
> > > to understand the code in the div0 directory.  8)
> > >
> > > > To put it another way , Descent I will make one hell of a splash screen 8)
> > >
> > > Sure.  Just need a few keen punters with some time on their hands.
> > >
> > > --
> > > \\  Sometimes you're ahead,       \\  Mike Smith
> > > \\  sometimes you're behind.      \\  mike@smith.net.au
> > > \\  The race is long, and in the  \\  msmith@freebsd.org
> > > \\  end it's only with yourself.  \\
> > >
> > >
> > >
> > >
> > 
> > ----------------------------+-----------------------------------------------
> > Chuck Robey                 | Interests include any kind of voice or data
> > chuckr@glue.umd.edu         | communications topic, C programming, and Unix.
> > 213 Lakeside Drive Apt T-1  |
> > Greenbelt, MD 20770         | I run Journey2 and picnic, both FreeBSD
> > (301) 220-2114              | version 3.0 current -- and great FUN!
> > ----------------------------+-----------------------------------------------
> 
> 

----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@glue.umd.edu         | communications topic, C programming, and Unix.
213 Lakeside Drive Apt T-1  |
Greenbelt, MD 20770         | I run Journey2 and picnic, both FreeBSD
(301) 220-2114              | version 3.0 current -- and great FUN!
----------------------------+-----------------------------------------------







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980128153631.341S-100000>