From: Nate Eldredge Newsgroups: comp.os.msdos.djgpp Subject: Re: ....I know... Date: 16 Aug 2000 16:03:48 -0700 Organization: Posted via Supernews, http://www.supernews.com Lines: 32 Sender: nate AT mercury DOT bitbucket Message-ID: <83em3ox0yz.fsf@mercury.bitbucket> References: X-Complaints-To: newsabuse AT supernews DOT com User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Vermin" writes: > ..I'm quite aware of how asm works... I actually coded in asm before I > started in DJGPP/C++. > What I wanted to know was for instance that "&" gives the mem pos of the > variable, sort of like > > mov ax, anIntVar > > instead of > > mov ax, [anIntVar] > > ...but how does -> and * work?? For *, you load the pointer into some register, and then move indirectly. mov eax, pointer mov result, [eax] -> does the same thing, but adds the offset of the desired field. So if the field is 8 bytes from the beginning of the struct, you might have mov eax, pointer mov result, [eax+8] -- Nate Eldredge neldredge AT hmc DOT edu