Article View: comp.lang.asm.x86
Article #49Re: Absolute addresses, relative addresses
From: Koms Bomb
Date: Tue, 26 Aug 2003 02:32
Date: Tue, 26 Aug 2003 02:32
35 lines
3062 bytes
3062 bytes
"Eric Minso" <minso@altern.org> wrote in message news:7db38e60.0308250121.6135ebc1@posting.google.com... > Hello, Hi, > In which cases can you use relative addresses ? When jump (call, jmp ,jcc, etc). > In which cases must you use absolute addresses ? When access data (mov eax, [mydata]) > This instruction : > mov [ ebp + cst ], val > (with 'ebp' initialised with loading address, and 'cst' initialised > with offset) can solve the absolute addresses problem, so where is the > trap ? Usual program won't use such style because it will make the program more complex to read and maintain and slower when running. Such style is very popular in virus world, because they can't be relocated by the system. btw, Why do you hate absolute addresses? :-) -- Koms Bomb *****Pardon my poor English***** --------------------- My TASM homepage, resource for assembly. Tools, articles, links. http://komsbomb.ols-lab.com
Technical Details
Message-ID:
<bieiii$8dsqb$1@ID-165313.news.uni-berlin.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!news.crayne.org!clax86!robomod!not-for-mailReferences:
<7db38e60.0308250121.6135ebc1@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7d8d,44f17f79ebe31523 X-Google-Attributes: gidf7d8d,public X-Google-Thread: 1093da,44f17f79ebe31523 X-Google-Attributes: gid1093da,public X-Google-Thread: 114917,44f17f79ebe31523 X-Google-Attributes: gid114917,public X-Google-Thread: feaef,44f17f79ebe31523 X-Google-Attributes: gidfeaef,public X-Google-ArrivalTime: 2003-08-25 21:56:40 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!news.crayne.org!clax86!robomod!not-for-mail From: "Koms Bomb" <KomsBombREMOVETHIS@hotmail.com> Newsgroups: comp.lang.asm.x86,alt.lang.asm,alt.os.assembly,borland.public.tasm Subject: Re: Absolute addresses, relative addresses Approved: CLAX86 Moderators <ccrayne@crayne.org> Date: Tue, 26 Aug 2003 10:32:00 +0800 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <bieiii$8dsqb$1@ID-165313.news.uni-berlin.de> X-CLAX86-Policy: http://www.pacificsites.com/~ccrayne/clax86.html X-CLAX86-Faq: http://www.faqs.org/faqs/by-newsgroup/comp/comp.lang.asm.x86.html X-CLAX86-Info-1: Send submissions to comp-lang-asm-x86@moderators.isc.org X-CLAX86-Info-2: Send technical complaints to ccrayne@crayne.org X-CLAX86-Info-3: Send complaints about policy to ccrayne@crayne.org X-Comment: moderators do not necessarily agree or disagree with this article. References: <7db38e60.0308250121.6135ebc1@posting.google.com> X-Orig-NNTP-Posting-Host: 61.51.172.94 X-Orig-X-Trace: news.uni-berlin.de 1061866916 8844107 61.51.172.94 (16 [165313]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=0.6, required 4, FORGED_HOTMAIL_RCVD 1.10, PRIORITY_NO_NAME 0.46, QUOTED_EMAIL_TEXT -0.48, REFERENCES -0.50) X-UIDL: `9P!!^:K"!+4g!!(*]"! X-Complaints-To: abuse@supernews.com Lines: 39