From owner-freebsd-hackers Wed Jan 28 10:41:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA22248 for hackers-outgoing; Wed, 28 Jan 1998 10:41:55 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bachue.usc.unal.edu.co ([168.176.3.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA22001; Wed, 28 Jan 1998 10:40:57 -0800 (PST) (envelope-from pfgiffun@bachue.usc.unal.edu.co) Received: from pedro.unal.edu.co ([168.176.3.38]) by bachue.usc.unal.edu.co (Netscape Messaging Server 3.0) with SMTP id AAA4730; Wed, 28 Jan 1998 13:43:25 +0500 Message-ID: <34CF7B95.41C67EA6@bachue.usc.unal.edu.co> Date: Wed, 28 Jan 1998 13:40:21 -0500 From: "Pedro F. Giffuni" Organization: U. Nacional de Colombia X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: Chuck Robey CC: Mike Smith , Amancio Hasty , multimedia@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: http://www.descent2.com/ddn/sources/descent1/index.html References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk 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. 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, > > 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! > ----------------------------+-----------------------------------------------