Mail Archives: djgpp/1997/08/18/10:37:59
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 -