From owner-freebsd-hackers Wed Jan 28 12:41:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA15715 for hackers-outgoing; Wed, 28 Jan 1998 12:41:36 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from picnic.mat.net (picnic.mat.net [206.246.122.117]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA15291; Wed, 28 Jan 1998 12:40:52 -0800 (PST) (envelope-from chuckr@glue.umd.edu) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.8.8/8.8.5) with SMTP id PAA17036; Wed, 28 Jan 1998 15:38:47 -0500 (EST) Date: Wed, 28 Jan 1998 15:38:47 -0500 (EST) From: Chuck Robey X-Sender: chuckr@localhost To: "Pedro F. Giffuni" cc: Mike Smith , Amancio Hasty , multimedia@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: http://www.descent2.com/ddn/sources/descent1/index.html In-Reply-To: <34CF7B95.41C67EA6@bachue.usc.unal.edu.co> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk 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, > > > 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! ----------------------------+-----------------------------------------------