From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: GAS question Date: Mon, 18 Aug 1997 12:25:02 +0200 Organization: TU Chemnitz-Zwickau Lines: 30 Message-ID: <33F822FE.3BC91100@Mathematik.TU-Chemnitz.DE> References: <33F69208 DOT 56E1 AT centuryinter DOT net> NNTP-Posting-Host: rigel.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Matt Gregory wrote: > > I'm a new DJGPP user and I need help translating this to GAS: > > .data > > sbflag db 0 #indicates how many port tests passed > sbport dw 0x210 #i/o port where SB is located Create a file (for instance foo.c) with the following contents: unsigned char sbflag=0; unsigned short sbport=0x210; and the compile it with gcc -S foo.c and then look at the generated file foo.s how it is done. Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************