delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/18/10:37:59

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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                       *
*****************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019