delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/16/15:31:51

From: "Vermin" <ratspl AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <zvFl5.2159$By6 DOT 31387 AT news1 DOT online DOT no> <t0sfpsgrntmfofa91jq7ut5cc1p1943729 AT 4ax DOT com>
Subject: ....I know...
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <JXBm5.4390$By6.71767@news1.online.no>
Date: Wed, 16 Aug 2000 21:36:05 +0200
NNTP-Posting-Host: 130.67.72.21
X-Complaints-To: news-abuse AT online DOT no
X-Trace: news1.online.no 966454121 130.67.72.21 (Wed, 16 Aug 2000 21:28:41 MET DST)
NNTP-Posting-Date: Wed, 16 Aug 2000 21:28:41 MET DST
Organization: Telenor Online Public Access
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

..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??

"AndrewJ" <luminous-is AT REMOVE DOT home DOT com> wrote in message
news:t0sfpsgrntmfofa91jq7ut5cc1p1943729 AT 4ax DOT com...
> >What does -> & and * look like in asm??
>
> Simply put, it doesn't.
>
> These are C (and C++) specifiers for manipulating an object by its memory
> address .  In assembler code, addresses are stored as immediate values or
in
> memory themselves.
>
> -------
> AndrewJ
>
> "This is a wonderful answer.  It's off-topic, it's incorrect, and it
doesn't
> answer the question." - Richard Heathfield.


- Raw text -


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