From: nikki AT gameboutique DOT co (nikki) Newsgroups: comp.os.msdos.djgpp Subject: Re: AT&T assembly code won't compile Date: 2 Feb 1997 00:56:15 GMT Organization: GameBoutique Ltd. Lines: 22 Message-ID: <5d0onf$dua@flex.uunet.pipex.com> References: <19970125 DOT 171134 DOT 4439 DOT 2 DOT aclemmer AT juno DOT com> NNTP-Posting-Host: www.gameboutique.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp [Posted and mailed] > When I try to compile this code, it tells me "not a known 386 > instruction". I don't know which two lines they are (I'm using RHIDE), > "pusha \n" > "movl %%ebx, %%ds \n" // load up the values in the > "movl %%eax, %%es \n" // segment regs. my guess is these 2 lines above. you probably don't want to move a value like this :) actually why are you doing it like this? i think you can pass the values directly into the inline without having to move them can't you? ok i admit i don't know the letter to use tho ;) but ds is 16bits wide and ebx eax are 32bit, so use movw %%bx,%ds instead or try passing the values into the inline. hope that's some use :) regards, nik Graham Tootell nikki AT gameboutique DOT com