delorie.com/archives/browse.cgi | search |
From: | Vic <tudor AT cam DOT org> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Great new 386/GAS guide |
Date: | Thu, 04 Sep 1997 16:13:46 -0400 |
Organization: | Communications Accessibles Montreal, Quebec Canada |
Lines: | 11 |
Message-ID: | <340F167A.62C2@cam.org> |
References: | <Pine DOT LNX DOT 3 DOT 91 DOT 970902200029 DOT 359A-100000 AT aditya DOT unigoa DOT ernet DOT in> |
NNTP-Posting-Host: | dynamicppp-236.hip.cam.org |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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. -- --> http://www.cam.org/~tudor <-- Go ahead and build another Messiah We dig another grave...
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |