delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/05/09:12:41

From: xmerm05 AT vse DOT cz (Mertl Michal - UC,,student,UID=22797)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Great new 386/GAS guide
Date: Fri, 5 Sep 1997 11:53:27 GMT
Organization: University of Economy, Prague
Lines: 12
Message-ID: <xmerm05.28.340FF2B7@vse.cz>
References: <Pine DOT LNX DOT 3 DOT 91 DOT 970902200029 DOT 359A-100000 AT aditya DOT unigoa DOT ernet DOT in> <340F167A DOT 62C2 AT cam DOT org>
NNTP-Posting-Host: j357h10.vse.cz
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Vic <tudor AT cam DOT org> wrote:
>Gurunandan R. Bhat wrote:
>> 1) How does one reserve space in a (stand-alone) assembly program
>if you mean, reserving space for a variable, then you use the .comm
>directive like this:
>.comm _x,4 will create a variable (global variable, AFAIK) that could be
>a char, an int, a float or anything that will get into those 4 bytes.
>a long will take 8 bytes IIRC so you could say .comm _y,8 and so on.
Doesn't long use also 4 bytes (32 bit)? 

 Michal "MiMe" Mertl
 E-Mail: XMERM05vse.cz

- Raw text -


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